From baa238eead7a88d564250b33a434248f0bb58c0c Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Thu, 31 Mar 2022 05:20:26 -0400 Subject: [PATCH] TD-14409 TD-14436 bugfix --- include/common/tmsg.h | 1 + include/util/taoserror.h | 2 + include/util/tdef.h | 2 +- source/common/src/tmsg.c | 2 + source/libs/parser/inc/sql.y | 1 + source/libs/parser/src/parAstCreater.c | 51 +- source/libs/parser/src/parTranslater.c | 1 + source/libs/parser/src/parUtil.c | 4 + source/libs/parser/src/sql.c | 2382 ++++++++++++------------ 9 files changed, 1232 insertions(+), 1214 deletions(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index ca46657473..1123f5f020 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -524,6 +524,7 @@ typedef struct { int8_t walLevel; int8_t quorum; int8_t cacheLastRow; + int8_t replications; } SAlterDbReq; int32_t tSerializeSAlterDbReq(void* buf, int32_t bufLen, SAlterDbReq* pReq); diff --git a/include/util/taoserror.h b/include/util/taoserror.h index d49e83b012..42f4490051 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -478,6 +478,8 @@ int32_t* taosGetErrno(); #define TSDB_CODE_PAR_INVALID_ENDPOINT TAOS_DEF_ERROR_CODE(0, 0x2613) #define TSDB_CODE_PAR_EXPRIE_STATEMENT TAOS_DEF_ERROR_CODE(0, 0x2614) #define TSDB_CODE_PAR_INTERVAL_VALUE_TOO_SMALL TAOS_DEF_ERROR_CODE(0, 0x2615) +#define TSDB_CODE_PAR_DB_NOT_SPECIFIED TAOS_DEF_ERROR_CODE(0, 0x2616) +#define TSDB_CODE_PAR_INVALID_IDENTIFIER_NAME TAOS_DEF_ERROR_CODE(0, 0x2617) #ifdef __cplusplus } diff --git a/include/util/tdef.h b/include/util/tdef.h index 43981adea2..3a9e32c8c3 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -327,7 +327,7 @@ typedef enum ELogicConditionType { #define TSDB_MAX_FSYNC_PERIOD 180000 // millisecond #define TSDB_DEFAULT_FSYNC_PERIOD 3000 // three second -#define TSDB_MIN_WAL_LEVEL 0 +#define TSDB_MIN_WAL_LEVEL 1 #define TSDB_MAX_WAL_LEVEL 2 #define TSDB_DEFAULT_WAL_LEVEL 1 diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index c85184ffba..06dd2906be 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -1629,6 +1629,7 @@ int32_t tSerializeSAlterDbReq(void *buf, int32_t bufLen, SAlterDbReq *pReq) { if (tEncodeI8(&encoder, pReq->walLevel) < 0) return -1; if (tEncodeI8(&encoder, pReq->quorum) < 0) return -1; if (tEncodeI8(&encoder, pReq->cacheLastRow) < 0) return -1; + if (tEncodeI8(&encoder, pReq->replications) < 0) return -1; tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -1650,6 +1651,7 @@ int32_t tDeserializeSAlterDbReq(void *buf, int32_t bufLen, SAlterDbReq *pReq) { if (tDecodeI8(&decoder, &pReq->walLevel) < 0) return -1; if (tDecodeI8(&decoder, &pReq->quorum) < 0) return -1; if (tDecodeI8(&decoder, &pReq->cacheLastRow) < 0) return -1; + if (tDecodeI8(&decoder, &pReq->replications) < 0) return -1; tEndDecode(&decoder); tCoderClear(&decoder); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 60c3e29913..b8e5df8708 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -159,6 +159,7 @@ alter_db_option(A) ::= KEEP NK_INTEGER(B). alter_db_option(A) ::= WAL NK_INTEGER(B). { A.type = DB_OPTION_WAL; A.val = B; } alter_db_option(A) ::= QUORUM NK_INTEGER(B). { A.type = DB_OPTION_QUORUM; A.val = B; } alter_db_option(A) ::= CACHELAST NK_INTEGER(B). { A.type = DB_OPTION_CACHELAST; A.val = B; } +alter_db_option(A) ::= REPLICA NK_INTEGER(B). { A.type = DB_OPTION_REPLICA; A.val = B; } /************************************************ create/drop table/stable ********************************************/ cmd ::= CREATE TABLE not_exists_opt(A) full_table_name(B) diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 7f3ba6d508..dd03a63759 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -180,9 +180,9 @@ static SDatabaseOptions* setDbQuorum(SAstCreateContext* pCxt, SDatabaseOptions* static SDatabaseOptions* setDbReplica(SAstCreateContext* pCxt, SDatabaseOptions* pOptions, const SToken* pVal) { int64_t val = strtol(pVal->z, NULL, 10); - if (val < TSDB_MIN_DB_REPLICA_OPTION || val > TSDB_MAX_DB_REPLICA_OPTION) { + if (!(val == TSDB_MIN_DB_REPLICA_OPTION || val == TSDB_MAX_DB_REPLICA_OPTION)) { snprintf(pCxt->pQueryCxt->pMsg, pCxt->pQueryCxt->msgLen, - "invalid db option replications: %"PRId64" valid range: [%d, %d]", val, TSDB_MIN_DB_REPLICA_OPTION, TSDB_MAX_DB_REPLICA_OPTION); + "invalid db option replications: %"PRId64", only 1, 3 allowed", val); pCxt->valid = false; return pOptions; } @@ -397,7 +397,9 @@ static bool checkUserName(SAstCreateContext* pCxt, SToken* pUserName) { pCxt->valid = false; } } - trimEscape(pUserName); + if (pCxt->valid) { + trimEscape(pUserName); + } return pCxt->valid; } @@ -472,45 +474,50 @@ static bool checkPort(SAstCreateContext* pCxt, const SToken* pPortToken, int32_t static bool checkDbName(SAstCreateContext* pCxt, SToken* pDbName, bool query) { if (NULL == pDbName) { - pCxt->valid = (query ? NULL != pCxt->pQueryCxt->db : true); - if (!pCxt->valid) { - snprintf(pCxt->pQueryCxt->pMsg, pCxt->pQueryCxt->msgLen, "db not specified"); + if (query && NULL == pCxt->pQueryCxt->db) { + generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_DB_NOT_SPECIFIED); + pCxt->valid = false; } } else { - pCxt->valid = pDbName->n < TSDB_DB_NAME_LEN ? true : false; + if (pDbName->n >= TSDB_DB_NAME_LEN) { + generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_IDENTIFIER_NAME, pDbName->z); + pCxt->valid = false; + } + } + if (pCxt->valid) { + trimEscape(pDbName); } - trimEscape(pDbName); return pCxt->valid; } static bool checkTableName(SAstCreateContext* pCxt, SToken* pTableName) { - if (NULL == pTableName) { - pCxt->valid = true; - } else { - pCxt->valid = pTableName->n < TSDB_TABLE_NAME_LEN ? true : false; + if (NULL != pTableName && pTableName->n >= TSDB_TABLE_NAME_LEN) { + generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_IDENTIFIER_NAME, pTableName->z); + pCxt->valid = false; + return false; } trimEscape(pTableName); - return pCxt->valid; + return true; } static bool checkColumnName(SAstCreateContext* pCxt, SToken* pColumnName) { - if (NULL == pColumnName) { - pCxt->valid = true; - } else { - pCxt->valid = pColumnName->n < TSDB_COL_NAME_LEN ? true : false; + if (NULL != pColumnName && pColumnName->n >= TSDB_COL_NAME_LEN) { + generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_IDENTIFIER_NAME, pColumnName->z); + pCxt->valid = false; + return false; } trimEscape(pColumnName); - return pCxt->valid; + return true; } static bool checkIndexName(SAstCreateContext* pCxt, SToken* pIndexName) { - if (NULL == pIndexName) { + if (NULL != pIndexName && pIndexName->n >= TSDB_INDEX_NAME_LEN) { + generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_IDENTIFIER_NAME, pIndexName->z); pCxt->valid = false; - } else { - pCxt->valid = pIndexName->n < TSDB_INDEX_NAME_LEN ? true : false; + return false; } trimEscape(pIndexName); - return pCxt->valid; + return true; } SNode* createRawExprNode(SAstCreateContext* pCxt, const SToken* pToken, SNode* pNode) { diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index a8ef762a73..0ea865882a 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -1048,6 +1048,7 @@ static void buildAlterDbReq(STranslateContext* pCxt, SAlterDatabaseStmt* pStmt, pReq->walLevel = pStmt->pOptions->walLevel; pReq->quorum = pStmt->pOptions->quorum; pReq->cacheLastRow = pStmt->pOptions->cachelast; + pReq->replications = pStmt->pOptions->replica; return; } diff --git a/source/libs/parser/src/parUtil.c b/source/libs/parser/src/parUtil.c index 80d04c5ee4..0b999322ce 100644 --- a/source/libs/parser/src/parUtil.c +++ b/source/libs/parser/src/parUtil.c @@ -61,6 +61,10 @@ static char* getSyntaxErrFormat(int32_t errCode) { return "This statement is no longer supported"; case TSDB_CODE_PAR_INTERVAL_VALUE_TOO_SMALL: return "This interval value is too small : %s"; + case TSDB_CODE_PAR_DB_NOT_SPECIFIED: + return "db not specified"; + case TSDB_CODE_PAR_INVALID_IDENTIFIER_NAME: + return "Invalid identifier name : %s"; case TSDB_CODE_OUT_OF_MEMORY: return "Out of memory"; default: diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index fc6a582da5..e94ef34783 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -132,17 +132,17 @@ typedef union { #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE -#define YYNSTATE 445 -#define YYNRULE 357 +#define YYNSTATE 446 +#define YYNRULE 358 #define YYNTOKEN 179 -#define YY_MAX_SHIFT 444 -#define YY_MIN_SHIFTREDUCE 691 -#define YY_MAX_SHIFTREDUCE 1047 -#define YY_ERROR_ACTION 1048 -#define YY_ACCEPT_ACTION 1049 -#define YY_NO_ACTION 1050 -#define YY_MIN_REDUCE 1051 -#define YY_MAX_REDUCE 1407 +#define YY_MAX_SHIFT 445 +#define YY_MIN_SHIFTREDUCE 693 +#define YY_MAX_SHIFTREDUCE 1050 +#define YY_ERROR_ACTION 1051 +#define YY_ACCEPT_ACTION 1052 +#define YY_NO_ACTION 1053 +#define YY_MIN_REDUCE 1054 +#define YY_MAX_REDUCE 1411 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -209,144 +209,142 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (1352) +#define YY_ACTTAB_COUNT (1331) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 1264, 344, 24, 174, 363, 363, 258, 243, 1260, 1267, - /* 10 */ 1230, 1231, 31, 29, 27, 26, 25, 1277, 376, 376, + /* 0 */ 1268, 345, 24, 174, 364, 364, 258, 243, 1264, 1271, + /* 10 */ 1234, 1235, 31, 29, 27, 26, 25, 1281, 377, 377, /* 20 */ 9, 8, 95, 69, 69, 31, 29, 27, 26, 25, - /* 30 */ 293, 299, 344, 1386, 108, 62, 1063, 1293, 376, 1154, - /* 40 */ 1154, 348, 1145, 262, 360, 96, 120, 217, 1094, 251, - /* 50 */ 1384, 93, 1146, 95, 362, 375, 1221, 1223, 1251, 1154, - /* 60 */ 217, 167, 1332, 343, 112, 342, 1097, 46, 1386, 923, - /* 70 */ 65, 1278, 1279, 1282, 1325, 1194, 92, 953, 233, 1321, - /* 80 */ 1398, 120, 93, 1251, 1149, 1384, 109, 1121, 966, 1359, - /* 90 */ 953, 346, 116, 1332, 1333, 272, 1337, 429, 428, 427, - /* 100 */ 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, - /* 110 */ 416, 415, 414, 413, 412, 305, 954, 300, 375, 1293, - /* 120 */ 304, 1132, 908, 303, 1049, 301, 360, 80, 302, 954, - /* 130 */ 79, 78, 77, 76, 75, 74, 73, 72, 71, 317, - /* 140 */ 126, 125, 23, 238, 948, 949, 950, 951, 952, 956, - /* 150 */ 957, 958, 315, 375, 334, 23, 238, 948, 949, 950, - /* 160 */ 951, 952, 956, 957, 958, 1277, 12, 284, 31, 29, - /* 170 */ 27, 26, 25, 255, 800, 399, 398, 397, 804, 396, - /* 180 */ 806, 807, 395, 809, 392, 1293, 815, 389, 817, 818, - /* 190 */ 386, 383, 360, 31, 29, 27, 26, 25, 231, 1201, - /* 200 */ 1386, 12, 362, 1074, 30, 28, 1251, 257, 1277, 256, - /* 210 */ 1222, 348, 240, 120, 888, 1264, 1386, 1384, 64, 1278, - /* 220 */ 1279, 1282, 1325, 1260, 1266, 923, 216, 1321, 1293, 1385, - /* 230 */ 886, 46, 121, 1384, 912, 347, 333, 376, 1386, 11, - /* 240 */ 247, 246, 263, 297, 1251, 362, 1218, 296, 1150, 1251, - /* 250 */ 901, 120, 121, 124, 1277, 1384, 121, 1073, 1154, 284, - /* 260 */ 1, 65, 1278, 1279, 1282, 1325, 894, 376, 298, 233, - /* 270 */ 1321, 115, 283, 264, 1293, 339, 335, 30, 28, 990, - /* 280 */ 248, 360, 910, 170, 441, 240, 6, 888, 1154, 326, - /* 290 */ 1352, 362, 30, 28, 1293, 1251, 887, 1264, 1251, 215, - /* 300 */ 240, 360, 888, 886, 1044, 1260, 1266, 66, 1278, 1279, - /* 310 */ 1282, 1325, 11, 1052, 1072, 1324, 1321, 1339, 886, 1014, - /* 320 */ 377, 913, 889, 319, 892, 893, 206, 11, 936, 337, - /* 330 */ 437, 436, 897, 1, 80, 1336, 169, 79, 78, 77, - /* 340 */ 76, 75, 74, 73, 72, 71, 121, 1130, 1, 1051, - /* 350 */ 330, 1012, 1013, 1015, 1016, 1251, 1043, 441, 902, 1071, - /* 360 */ 905, 893, 376, 320, 1070, 1277, 376, 1151, 989, 887, - /* 370 */ 1271, 373, 441, 89, 88, 87, 86, 85, 84, 83, - /* 380 */ 82, 81, 1269, 1154, 887, 1293, 107, 1154, 1277, 338, - /* 390 */ 1386, 1069, 347, 411, 1157, 889, 985, 892, 893, 206, - /* 400 */ 1251, 936, 362, 120, 351, 1251, 1251, 1384, 1293, 121, - /* 410 */ 889, 1277, 892, 893, 206, 360, 936, 727, 65, 1278, - /* 420 */ 1279, 1282, 1325, 155, 1201, 362, 233, 1321, 115, 1251, - /* 430 */ 230, 1293, 1251, 291, 344, 1199, 1339, 728, 360, 727, - /* 440 */ 1068, 65, 1278, 1279, 1282, 1325, 55, 1353, 362, 233, - /* 450 */ 1321, 1398, 1251, 355, 1335, 95, 955, 729, 1067, 1339, - /* 460 */ 1382, 30, 28, 1147, 65, 1278, 1279, 1282, 1325, 240, - /* 470 */ 1277, 888, 233, 1321, 1398, 1131, 911, 1334, 30, 28, - /* 480 */ 361, 1251, 21, 1343, 93, 411, 240, 886, 888, 909, - /* 490 */ 1293, 959, 30, 28, 117, 1332, 1333, 360, 1337, 1251, - /* 500 */ 240, 1066, 888, 194, 886, 244, 1184, 362, 1065, 376, - /* 510 */ 1062, 1251, 141, 107, 374, 139, 348, 7, 886, 988, - /* 520 */ 1061, 1156, 402, 207, 1278, 1279, 1282, 322, 224, 1201, - /* 530 */ 1154, 1064, 408, 1060, 7, 245, 407, 30, 28, 101, - /* 540 */ 1199, 441, 1251, 1386, 1201, 240, 356, 888, 7, 1251, - /* 550 */ 297, 1251, 61, 887, 296, 1200, 120, 409, 441, 997, - /* 560 */ 1384, 1251, 57, 886, 225, 910, 223, 222, 1277, 295, - /* 570 */ 887, 350, 441, 1143, 1251, 298, 406, 405, 404, 889, - /* 580 */ 403, 892, 893, 206, 887, 936, 1139, 376, 1293, 1344, - /* 590 */ 985, 1277, 188, 1, 359, 360, 889, 1141, 892, 893, - /* 600 */ 206, 143, 936, 121, 142, 362, 9, 8, 1154, 1251, - /* 610 */ 889, 1293, 892, 893, 206, 376, 936, 441, 360, 250, - /* 620 */ 254, 66, 1278, 1279, 1282, 1325, 1137, 107, 362, 887, - /* 630 */ 1322, 1201, 1251, 199, 1059, 1156, 1154, 252, 201, 27, - /* 640 */ 26, 25, 1199, 1277, 66, 1278, 1279, 1282, 1325, 1277, - /* 650 */ 200, 344, 358, 1321, 1277, 889, 896, 892, 893, 206, - /* 660 */ 127, 936, 935, 1293, 937, 938, 939, 940, 941, 1293, - /* 670 */ 360, 1011, 95, 1058, 1293, 1251, 360, 1057, 1056, 945, - /* 680 */ 362, 360, 1055, 42, 1251, 145, 362, 1054, 144, 147, - /* 690 */ 1251, 362, 146, 239, 1122, 1251, 110, 1278, 1279, 1282, - /* 700 */ 1277, 93, 211, 1278, 1279, 1282, 1277, 110, 1278, 1279, - /* 710 */ 1282, 118, 1332, 1333, 1251, 1337, 253, 352, 1251, 1251, - /* 720 */ 1293, 67, 899, 1251, 107, 171, 1293, 360, 1251, 1090, - /* 730 */ 1277, 401, 1156, 360, 349, 1399, 888, 362, 44, 43, - /* 740 */ 261, 1251, 122, 362, 327, 331, 1400, 1251, 1046, 1047, - /* 750 */ 1293, 306, 886, 211, 1278, 1279, 1282, 360, 1085, 210, - /* 760 */ 1278, 1279, 1282, 908, 1195, 160, 960, 362, 1277, 121, - /* 770 */ 265, 1251, 1083, 277, 237, 895, 164, 158, 32, 444, - /* 780 */ 308, 290, 278, 211, 1278, 1279, 1282, 20, 1293, 1355, - /* 790 */ 345, 340, 1294, 191, 311, 360, 91, 31, 29, 27, - /* 800 */ 26, 25, 433, 22, 190, 362, 441, 920, 353, 1251, - /* 810 */ 173, 1277, 241, 31, 29, 27, 26, 25, 887, 32, - /* 820 */ 872, 211, 1278, 1279, 1282, 179, 2, 63, 368, 881, - /* 830 */ 186, 1293, 32, 185, 908, 192, 1220, 177, 360, 793, - /* 840 */ 98, 898, 1277, 123, 889, 99, 892, 893, 362, 266, - /* 850 */ 276, 101, 1251, 271, 270, 269, 268, 267, 788, 273, - /* 860 */ 274, 372, 1293, 821, 209, 1278, 1279, 1282, 825, 360, - /* 870 */ 42, 275, 831, 1277, 279, 381, 916, 280, 325, 362, - /* 880 */ 99, 151, 1277, 1251, 100, 128, 31, 29, 27, 26, - /* 890 */ 25, 830, 281, 1293, 102, 212, 1278, 1279, 1282, 915, - /* 900 */ 360, 282, 1293, 101, 1277, 131, 99, 45, 285, 360, - /* 910 */ 362, 134, 914, 1277, 1251, 294, 292, 229, 1144, 362, - /* 920 */ 138, 1140, 90, 1251, 1293, 140, 204, 1278, 1279, 1282, - /* 930 */ 321, 360, 103, 1293, 1129, 213, 1278, 1279, 1282, 150, - /* 940 */ 360, 362, 104, 1277, 1142, 1251, 324, 1138, 105, 106, - /* 950 */ 362, 1277, 153, 913, 1251, 332, 366, 205, 1278, 1279, - /* 960 */ 1282, 1356, 323, 1293, 1366, 156, 214, 1278, 1279, 1282, - /* 970 */ 360, 1293, 329, 893, 1277, 1365, 5, 305, 360, 300, - /* 980 */ 362, 159, 304, 341, 1251, 303, 232, 301, 362, 336, - /* 990 */ 302, 408, 1251, 328, 1293, 407, 1290, 1278, 1279, 1282, - /* 1000 */ 163, 360, 4, 985, 1289, 1278, 1279, 1282, 912, 113, - /* 1010 */ 1346, 362, 165, 1277, 94, 1251, 409, 1340, 33, 166, - /* 1020 */ 234, 1277, 357, 354, 17, 1307, 1229, 1288, 1278, 1279, - /* 1030 */ 1282, 1401, 172, 1293, 364, 406, 405, 404, 1383, 403, - /* 1040 */ 360, 1293, 365, 242, 1277, 1228, 369, 370, 360, 371, - /* 1050 */ 362, 181, 1277, 183, 1251, 310, 193, 1155, 362, 54, - /* 1060 */ 56, 195, 1251, 189, 1293, 379, 220, 1278, 1279, 1282, - /* 1070 */ 318, 360, 1293, 440, 219, 1278, 1279, 1282, 202, 360, - /* 1080 */ 203, 362, 197, 1277, 149, 1251, 198, 313, 1245, 362, - /* 1090 */ 884, 39, 307, 1251, 883, 148, 1239, 221, 1278, 1279, - /* 1100 */ 1282, 1238, 259, 1293, 260, 218, 1278, 1279, 1282, 1237, - /* 1110 */ 360, 1236, 855, 1213, 1212, 97, 1211, 1210, 41, 136, - /* 1120 */ 362, 40, 114, 1209, 1251, 1208, 1207, 1206, 289, 857, - /* 1130 */ 135, 1205, 1204, 1203, 1202, 1096, 208, 1278, 1279, 1282, - /* 1140 */ 1235, 1226, 130, 1133, 1095, 740, 1093, 288, 286, 1082, - /* 1150 */ 1081, 287, 1078, 47, 1135, 70, 133, 137, 838, 837, - /* 1160 */ 836, 1134, 768, 1091, 226, 1086, 767, 766, 765, 227, - /* 1170 */ 1084, 1077, 1076, 228, 764, 763, 68, 314, 309, 316, - /* 1180 */ 1234, 1233, 36, 312, 1225, 154, 48, 3, 14, 32, - /* 1190 */ 111, 152, 15, 37, 34, 10, 51, 8, 946, 367, - /* 1200 */ 162, 184, 832, 132, 1224, 1050, 1050, 129, 1050, 1050, - /* 1210 */ 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1032, 1050, 1050, - /* 1220 */ 1031, 235, 157, 1036, 1035, 236, 1050, 1010, 161, 1050, - /* 1230 */ 903, 1004, 49, 182, 1050, 1003, 50, 1050, 982, 1269, - /* 1240 */ 1050, 829, 981, 1050, 1050, 1037, 1050, 1050, 19, 1050, - /* 1250 */ 1050, 1050, 1050, 1050, 168, 1050, 35, 119, 921, 16, - /* 1260 */ 176, 13, 18, 380, 249, 1008, 178, 180, 175, 52, - /* 1270 */ 53, 384, 387, 1050, 1050, 57, 1092, 390, 1050, 1050, - /* 1280 */ 1268, 393, 799, 1050, 1050, 187, 38, 1050, 827, 760, - /* 1290 */ 738, 822, 382, 752, 438, 1050, 1050, 819, 816, 385, - /* 1300 */ 378, 810, 833, 828, 388, 391, 759, 758, 757, 808, - /* 1310 */ 410, 756, 1080, 1079, 394, 430, 755, 814, 1075, 754, - /* 1320 */ 753, 751, 439, 442, 750, 749, 435, 58, 748, 59, - /* 1330 */ 60, 747, 746, 890, 432, 443, 745, 744, 743, 431, - /* 1340 */ 400, 196, 434, 813, 1050, 1050, 1050, 1050, 1050, 812, - /* 1350 */ 1050, 811, + /* 30 */ 293, 299, 345, 1390, 108, 62, 1066, 1297, 377, 1158, + /* 40 */ 1158, 349, 1149, 262, 361, 96, 120, 217, 1097, 251, + /* 50 */ 1388, 93, 1150, 95, 363, 376, 1225, 1227, 1255, 1158, + /* 60 */ 217, 167, 1336, 344, 112, 343, 1100, 46, 1390, 926, + /* 70 */ 65, 1282, 1283, 1286, 1329, 1198, 92, 956, 233, 1325, + /* 80 */ 1402, 120, 93, 1255, 1153, 1388, 109, 1124, 969, 1363, + /* 90 */ 956, 347, 116, 1336, 1337, 272, 1341, 430, 429, 428, + /* 100 */ 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, + /* 110 */ 417, 416, 415, 414, 413, 306, 957, 301, 376, 730, + /* 120 */ 305, 729, 911, 304, 1052, 302, 300, 81, 303, 957, + /* 130 */ 80, 79, 78, 77, 76, 75, 74, 73, 72, 731, + /* 140 */ 126, 125, 23, 238, 951, 952, 953, 954, 955, 959, + /* 150 */ 960, 961, 27, 26, 25, 23, 238, 951, 952, 953, + /* 160 */ 954, 955, 959, 960, 961, 1281, 12, 284, 31, 29, + /* 170 */ 27, 26, 25, 255, 803, 400, 399, 398, 807, 397, + /* 180 */ 809, 810, 396, 812, 393, 1297, 818, 390, 820, 821, + /* 190 */ 387, 384, 361, 31, 29, 27, 26, 25, 231, 1205, + /* 200 */ 1390, 352, 363, 1077, 30, 28, 1255, 257, 1281, 256, + /* 210 */ 1226, 349, 240, 120, 891, 1268, 1390, 1388, 64, 1282, + /* 220 */ 1283, 1286, 1329, 1264, 1270, 926, 216, 1325, 1297, 1389, + /* 230 */ 889, 46, 121, 1388, 376, 348, 334, 377, 1390, 11, + /* 240 */ 247, 246, 263, 297, 1255, 363, 1222, 296, 1154, 1255, + /* 250 */ 904, 120, 121, 124, 1281, 1388, 121, 1076, 1158, 913, + /* 260 */ 1, 65, 1282, 1283, 1286, 1329, 897, 377, 298, 233, + /* 270 */ 1325, 115, 283, 264, 1297, 340, 336, 30, 28, 993, + /* 280 */ 248, 361, 12, 170, 442, 240, 6, 891, 1158, 327, + /* 290 */ 1356, 363, 30, 28, 1297, 1255, 890, 1268, 1255, 215, + /* 300 */ 240, 361, 891, 889, 1047, 1264, 1270, 66, 1282, 1283, + /* 310 */ 1286, 1329, 11, 1055, 1075, 1328, 1325, 339, 889, 1017, + /* 320 */ 378, 915, 892, 320, 895, 896, 206, 11, 939, 335, + /* 330 */ 1074, 121, 900, 1, 81, 438, 437, 80, 79, 78, + /* 340 */ 77, 76, 75, 74, 73, 72, 121, 1136, 1, 1054, + /* 350 */ 331, 1015, 1016, 1018, 1019, 1255, 1046, 442, 905, 1297, + /* 360 */ 908, 896, 377, 321, 1073, 1281, 361, 1155, 351, 890, + /* 370 */ 914, 1255, 442, 90, 89, 88, 87, 86, 85, 84, + /* 380 */ 83, 82, 1343, 1158, 890, 1297, 1343, 1134, 1281, 412, + /* 390 */ 1390, 1072, 348, 284, 338, 892, 988, 895, 896, 206, + /* 400 */ 1340, 939, 363, 120, 1339, 1255, 1255, 1388, 1297, 912, + /* 410 */ 892, 1281, 895, 896, 206, 361, 939, 1071, 65, 1282, + /* 420 */ 1283, 1286, 1329, 169, 1205, 363, 233, 1325, 115, 1255, + /* 430 */ 230, 1297, 1255, 412, 345, 1203, 1343, 729, 361, 992, + /* 440 */ 1070, 65, 1282, 1283, 1286, 1329, 55, 1357, 363, 233, + /* 450 */ 1325, 1402, 1255, 291, 1338, 95, 958, 916, 1255, 356, + /* 460 */ 1386, 30, 28, 1151, 65, 1282, 1283, 1286, 1329, 240, + /* 470 */ 1281, 891, 233, 1325, 1402, 1135, 318, 107, 30, 28, + /* 480 */ 362, 1255, 21, 1347, 93, 1161, 240, 889, 891, 316, + /* 490 */ 1297, 962, 30, 28, 117, 1336, 1337, 361, 1341, 403, + /* 500 */ 240, 1069, 891, 194, 889, 244, 1188, 363, 1068, 377, + /* 510 */ 1065, 1255, 141, 107, 374, 139, 349, 7, 889, 143, + /* 520 */ 1064, 1160, 142, 207, 1282, 1283, 1286, 323, 224, 1205, + /* 530 */ 1158, 1067, 409, 1063, 7, 245, 408, 30, 28, 101, + /* 540 */ 1203, 442, 1255, 1390, 1205, 240, 1125, 891, 7, 1255, + /* 550 */ 297, 1255, 357, 890, 296, 1204, 120, 410, 442, 155, + /* 560 */ 1388, 1255, 1147, 889, 225, 1000, 223, 222, 1281, 295, + /* 570 */ 890, 913, 442, 1143, 1255, 298, 407, 406, 405, 892, + /* 580 */ 404, 895, 896, 206, 890, 939, 145, 377, 1297, 144, + /* 590 */ 991, 1281, 375, 1, 353, 361, 892, 1145, 895, 896, + /* 600 */ 206, 147, 939, 121, 146, 363, 1348, 988, 1158, 1255, + /* 610 */ 892, 1297, 895, 896, 206, 377, 939, 442, 361, 250, + /* 620 */ 188, 66, 1282, 1283, 1286, 1329, 1141, 107, 363, 890, + /* 630 */ 1326, 1205, 1255, 199, 1062, 1160, 1158, 252, 201, 9, + /* 640 */ 8, 1061, 1203, 1281, 66, 1282, 1283, 1286, 1329, 1281, + /* 650 */ 200, 345, 359, 1325, 1281, 892, 402, 895, 896, 206, + /* 660 */ 127, 939, 938, 1297, 940, 941, 942, 943, 944, 1297, + /* 670 */ 361, 1014, 95, 377, 1297, 1255, 361, 1060, 254, 899, + /* 680 */ 363, 361, 1255, 42, 1255, 354, 363, 1059, 1058, 171, + /* 690 */ 1255, 363, 1093, 239, 1158, 1255, 110, 1282, 1283, 1286, + /* 700 */ 1281, 93, 211, 1282, 1283, 1286, 1281, 110, 1282, 1283, + /* 710 */ 1286, 118, 1336, 1337, 307, 1341, 253, 1057, 1255, 160, + /* 720 */ 1297, 67, 1049, 1050, 107, 360, 1297, 361, 1255, 1255, + /* 730 */ 1281, 158, 1160, 361, 350, 1403, 891, 363, 44, 43, + /* 740 */ 261, 1255, 122, 363, 328, 902, 1404, 1255, 332, 1199, + /* 750 */ 1297, 164, 889, 211, 1282, 1283, 1286, 361, 1255, 210, + /* 760 */ 1282, 1283, 1286, 911, 963, 923, 1275, 363, 1281, 121, + /* 770 */ 265, 1255, 1088, 277, 237, 898, 32, 32, 1273, 445, + /* 780 */ 875, 290, 278, 211, 1282, 1283, 1286, 20, 1297, 1359, + /* 790 */ 1298, 341, 32, 191, 309, 361, 91, 31, 29, 27, + /* 800 */ 26, 25, 434, 22, 190, 363, 442, 1086, 179, 1255, + /* 810 */ 948, 1281, 241, 31, 29, 27, 26, 25, 890, 346, + /* 820 */ 177, 211, 1282, 1283, 1286, 369, 61, 63, 185, 312, + /* 830 */ 186, 1297, 173, 796, 2, 884, 57, 98, 361, 791, + /* 840 */ 99, 901, 1281, 192, 892, 101, 895, 896, 363, 911, + /* 850 */ 276, 42, 1255, 271, 270, 269, 268, 267, 824, 1224, + /* 860 */ 123, 373, 1297, 828, 209, 1282, 1283, 1286, 834, 361, + /* 870 */ 382, 266, 833, 1281, 273, 99, 275, 279, 326, 363, + /* 880 */ 100, 151, 1281, 1255, 101, 919, 31, 29, 27, 26, + /* 890 */ 25, 102, 274, 1297, 280, 212, 1282, 1283, 1286, 128, + /* 900 */ 361, 918, 1297, 99, 1281, 282, 281, 131, 45, 361, + /* 910 */ 363, 285, 917, 1281, 1255, 134, 292, 294, 1148, 363, + /* 920 */ 229, 138, 1144, 1255, 1297, 150, 204, 1282, 1283, 1286, + /* 930 */ 140, 361, 103, 1297, 1133, 213, 1282, 1283, 1286, 71, + /* 940 */ 361, 363, 104, 1281, 1146, 1255, 1142, 325, 105, 106, + /* 950 */ 363, 1281, 153, 322, 1255, 916, 367, 205, 1282, 1283, + /* 960 */ 1286, 324, 333, 1297, 1370, 896, 214, 1282, 1283, 1286, + /* 970 */ 361, 1297, 156, 330, 1281, 1360, 232, 1369, 361, 159, + /* 980 */ 363, 5, 342, 1350, 1255, 337, 94, 329, 363, 4, + /* 990 */ 163, 409, 1255, 113, 1297, 408, 1294, 1282, 1283, 1286, + /* 1000 */ 988, 361, 915, 33, 1293, 1282, 1283, 1286, 1344, 166, + /* 1010 */ 234, 363, 165, 1281, 358, 1255, 410, 355, 17, 365, + /* 1020 */ 1311, 1281, 1233, 370, 181, 1405, 1232, 1292, 1282, 1283, + /* 1030 */ 1286, 366, 242, 1297, 371, 407, 406, 405, 1387, 404, + /* 1040 */ 361, 1297, 183, 172, 1281, 372, 193, 54, 361, 1159, + /* 1050 */ 363, 56, 1281, 189, 1255, 311, 380, 195, 363, 441, + /* 1060 */ 202, 197, 1255, 203, 1297, 39, 220, 1282, 1283, 1286, + /* 1070 */ 319, 361, 1297, 198, 219, 1282, 1283, 1286, 1249, 361, + /* 1080 */ 887, 363, 886, 1281, 149, 1255, 259, 314, 1243, 363, + /* 1090 */ 1242, 260, 308, 1255, 1241, 148, 1240, 221, 1282, 1283, + /* 1100 */ 1286, 858, 1217, 1297, 1216, 218, 1282, 1283, 1286, 97, + /* 1110 */ 361, 1215, 1214, 1213, 1212, 1211, 1210, 860, 41, 136, + /* 1120 */ 363, 40, 114, 1209, 1255, 1208, 1207, 1206, 289, 1099, + /* 1130 */ 135, 1239, 1230, 1137, 130, 742, 208, 1282, 1283, 1286, + /* 1140 */ 1098, 1096, 287, 286, 288, 1085, 1084, 306, 1081, 301, + /* 1150 */ 1139, 70, 305, 47, 137, 304, 133, 302, 300, 841, + /* 1160 */ 303, 839, 840, 1138, 1094, 226, 771, 1089, 770, 227, + /* 1170 */ 1087, 228, 769, 768, 767, 766, 765, 1080, 315, 1079, + /* 1180 */ 317, 310, 313, 1238, 1237, 68, 36, 1229, 48, 154, + /* 1190 */ 3, 32, 14, 15, 152, 34, 10, 51, 37, 162, + /* 1200 */ 19, 8, 1273, 132, 368, 949, 1228, 129, 1053, 184, + /* 1210 */ 1053, 835, 1035, 1034, 235, 1053, 1039, 1053, 1038, 236, + /* 1220 */ 1053, 157, 1013, 111, 906, 161, 1053, 1053, 1007, 49, + /* 1230 */ 1053, 1006, 1053, 1053, 50, 35, 1053, 985, 984, 1053, + /* 1240 */ 168, 1040, 1053, 182, 1053, 381, 249, 1053, 1053, 1053, + /* 1250 */ 832, 119, 385, 13, 16, 924, 18, 388, 176, 1011, + /* 1260 */ 178, 391, 175, 180, 52, 53, 802, 394, 1095, 57, + /* 1270 */ 1053, 38, 1053, 825, 1272, 830, 444, 836, 187, 822, + /* 1280 */ 379, 383, 762, 386, 831, 754, 819, 1083, 389, 761, + /* 1290 */ 760, 813, 392, 759, 811, 740, 758, 757, 395, 817, + /* 1300 */ 756, 411, 755, 753, 752, 751, 58, 431, 750, 59, + /* 1310 */ 60, 1082, 749, 748, 747, 433, 746, 745, 401, 432, + /* 1320 */ 816, 1078, 435, 436, 439, 440, 815, 893, 196, 814, + /* 1330 */ 443, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 223, 188, 240, 241, 219, 219, 228, 222, 231, 232, @@ -360,131 +358,131 @@ static const YYCODETYPE yy_lookahead[] = { /* 80 */ 245, 268, 238, 223, 207, 272, 191, 192, 69, 254, /* 90 */ 77, 247, 248, 249, 250, 63, 252, 49, 50, 51, /* 100 */ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - /* 110 */ 62, 63, 64, 65, 66, 49, 116, 51, 20, 202, - /* 120 */ 54, 0, 20, 57, 179, 59, 209, 21, 62, 116, - /* 130 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 21, + /* 110 */ 62, 63, 64, 65, 66, 49, 116, 51, 20, 20, + /* 120 */ 54, 22, 20, 57, 179, 59, 60, 21, 62, 116, + /* 130 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 40, /* 140 */ 108, 109, 142, 143, 144, 145, 146, 147, 148, 149, - /* 150 */ 150, 151, 34, 20, 237, 142, 143, 144, 145, 146, + /* 150 */ 150, 151, 14, 15, 16, 142, 143, 144, 145, 146, /* 160 */ 147, 148, 149, 150, 151, 182, 68, 46, 12, 13, /* 170 */ 14, 15, 16, 228, 83, 84, 85, 86, 87, 88, /* 180 */ 89, 90, 91, 92, 93, 202, 95, 96, 97, 98, /* 190 */ 99, 100, 209, 12, 13, 14, 15, 16, 206, 202, - /* 200 */ 255, 68, 219, 182, 12, 13, 223, 129, 182, 131, + /* 200 */ 255, 3, 219, 182, 12, 13, 223, 129, 182, 131, /* 210 */ 213, 228, 20, 268, 22, 223, 255, 272, 235, 236, /* 220 */ 237, 238, 239, 231, 232, 69, 243, 244, 202, 268, /* 230 */ 38, 190, 154, 272, 20, 209, 120, 188, 255, 47, /* 240 */ 12, 13, 193, 57, 223, 219, 209, 61, 207, 223, - /* 250 */ 22, 268, 154, 216, 182, 272, 154, 182, 209, 46, + /* 250 */ 22, 268, 154, 216, 182, 272, 154, 182, 209, 20, /* 260 */ 68, 235, 236, 237, 238, 239, 38, 188, 82, 243, /* 270 */ 244, 245, 193, 188, 202, 159, 160, 12, 13, 14, - /* 280 */ 206, 209, 20, 257, 92, 20, 43, 22, 209, 263, + /* 280 */ 206, 209, 68, 257, 92, 20, 43, 22, 209, 263, /* 290 */ 264, 219, 12, 13, 202, 223, 104, 223, 223, 214, /* 300 */ 20, 209, 22, 38, 123, 231, 232, 235, 236, 237, - /* 310 */ 238, 239, 47, 0, 182, 243, 244, 233, 38, 132, + /* 310 */ 238, 239, 47, 0, 182, 243, 244, 20, 38, 132, /* 320 */ 92, 20, 130, 188, 132, 133, 134, 47, 136, 237, - /* 330 */ 185, 186, 104, 68, 21, 251, 122, 24, 25, 26, + /* 330 */ 182, 154, 104, 68, 21, 185, 186, 24, 25, 26, /* 340 */ 27, 28, 29, 30, 31, 32, 154, 0, 68, 0, - /* 350 */ 163, 164, 165, 166, 167, 223, 175, 92, 130, 182, - /* 360 */ 132, 133, 188, 228, 182, 182, 188, 193, 4, 104, - /* 370 */ 68, 193, 92, 24, 25, 26, 27, 28, 29, 30, - /* 380 */ 31, 32, 80, 209, 104, 202, 202, 209, 182, 20, - /* 390 */ 255, 182, 209, 46, 210, 130, 153, 132, 133, 134, - /* 400 */ 223, 136, 219, 268, 3, 223, 223, 272, 202, 154, - /* 410 */ 130, 182, 132, 133, 134, 209, 136, 22, 235, 236, + /* 350 */ 163, 164, 165, 166, 167, 223, 175, 92, 130, 202, + /* 360 */ 132, 133, 188, 228, 182, 182, 209, 193, 170, 104, + /* 370 */ 20, 223, 92, 24, 25, 26, 27, 28, 29, 30, + /* 380 */ 31, 32, 233, 209, 104, 202, 233, 0, 182, 46, + /* 390 */ 255, 182, 209, 46, 237, 130, 153, 132, 133, 134, + /* 400 */ 251, 136, 219, 268, 251, 223, 223, 272, 202, 20, + /* 410 */ 130, 182, 132, 133, 134, 209, 136, 182, 235, 236, /* 420 */ 237, 238, 239, 122, 202, 219, 243, 244, 245, 223, - /* 430 */ 208, 202, 223, 38, 188, 213, 233, 20, 209, 22, + /* 430 */ 208, 202, 223, 46, 188, 213, 233, 22, 209, 4, /* 440 */ 182, 235, 236, 237, 238, 239, 187, 264, 219, 243, - /* 450 */ 244, 245, 223, 81, 251, 209, 116, 40, 182, 233, + /* 450 */ 244, 245, 223, 38, 251, 209, 116, 20, 223, 81, /* 460 */ 254, 12, 13, 204, 235, 236, 237, 238, 239, 20, - /* 470 */ 182, 22, 243, 244, 245, 0, 20, 251, 12, 13, - /* 480 */ 14, 223, 142, 254, 238, 46, 20, 38, 22, 20, - /* 490 */ 202, 151, 12, 13, 248, 249, 250, 209, 252, 223, + /* 470 */ 182, 22, 243, 244, 245, 0, 21, 202, 12, 13, + /* 480 */ 14, 223, 142, 254, 238, 210, 20, 38, 22, 34, + /* 490 */ 202, 151, 12, 13, 248, 249, 250, 209, 252, 79, /* 500 */ 20, 182, 22, 195, 38, 194, 198, 219, 182, 188, - /* 510 */ 182, 223, 72, 202, 193, 75, 228, 68, 38, 155, - /* 520 */ 182, 210, 79, 235, 236, 237, 238, 69, 35, 202, + /* 510 */ 182, 223, 72, 202, 193, 75, 228, 68, 38, 72, + /* 520 */ 182, 210, 75, 235, 236, 237, 238, 69, 35, 202, /* 530 */ 209, 183, 57, 182, 68, 208, 61, 12, 13, 81, - /* 540 */ 213, 92, 223, 255, 202, 20, 174, 22, 68, 223, - /* 550 */ 57, 223, 68, 104, 61, 213, 268, 82, 92, 14, - /* 560 */ 272, 223, 78, 38, 71, 20, 73, 74, 182, 76, - /* 570 */ 104, 170, 92, 203, 223, 82, 101, 102, 103, 130, - /* 580 */ 105, 132, 133, 134, 104, 136, 203, 188, 202, 152, - /* 590 */ 153, 182, 193, 68, 47, 209, 130, 203, 132, 133, - /* 600 */ 134, 72, 136, 154, 75, 219, 1, 2, 209, 223, + /* 540 */ 213, 92, 223, 255, 202, 20, 192, 22, 68, 223, + /* 550 */ 57, 223, 174, 104, 61, 213, 268, 82, 92, 122, + /* 560 */ 272, 223, 203, 38, 71, 14, 73, 74, 182, 76, + /* 570 */ 104, 20, 92, 203, 223, 82, 101, 102, 103, 130, + /* 580 */ 105, 132, 133, 134, 104, 136, 72, 188, 202, 75, + /* 590 */ 155, 182, 193, 68, 81, 209, 130, 203, 132, 133, + /* 600 */ 134, 72, 136, 154, 75, 219, 152, 153, 209, 223, /* 610 */ 130, 202, 132, 133, 134, 188, 136, 92, 209, 194, /* 620 */ 193, 235, 236, 237, 238, 239, 203, 202, 219, 104, - /* 630 */ 244, 202, 223, 18, 182, 210, 209, 208, 23, 14, - /* 640 */ 15, 16, 213, 182, 235, 236, 237, 238, 239, 182, - /* 650 */ 35, 188, 243, 244, 182, 130, 38, 132, 133, 134, + /* 630 */ 244, 202, 223, 18, 182, 210, 209, 208, 23, 1, + /* 640 */ 2, 182, 213, 182, 235, 236, 237, 238, 239, 182, + /* 650 */ 35, 188, 243, 244, 182, 130, 203, 132, 133, 134, /* 660 */ 45, 136, 135, 202, 137, 138, 139, 140, 141, 202, - /* 670 */ 209, 69, 209, 182, 202, 223, 209, 182, 182, 132, - /* 680 */ 219, 209, 182, 81, 223, 72, 219, 182, 75, 72, - /* 690 */ 223, 219, 75, 226, 192, 223, 235, 236, 237, 238, + /* 670 */ 209, 69, 209, 188, 202, 223, 209, 182, 193, 38, + /* 680 */ 219, 209, 223, 81, 223, 172, 219, 182, 182, 275, + /* 690 */ 223, 219, 0, 226, 209, 223, 235, 236, 237, 238, /* 700 */ 182, 238, 235, 236, 237, 238, 182, 235, 236, 237, - /* 710 */ 238, 248, 249, 250, 223, 252, 194, 81, 223, 223, - /* 720 */ 202, 106, 104, 223, 202, 275, 202, 209, 223, 0, - /* 730 */ 182, 203, 210, 209, 273, 274, 22, 219, 123, 124, - /* 740 */ 125, 223, 127, 219, 226, 266, 274, 223, 177, 178, - /* 750 */ 202, 22, 38, 235, 236, 237, 238, 209, 0, 235, - /* 760 */ 236, 237, 238, 20, 212, 69, 69, 219, 182, 154, - /* 770 */ 27, 223, 0, 30, 226, 38, 260, 81, 81, 19, - /* 780 */ 22, 185, 39, 235, 236, 237, 238, 2, 202, 234, - /* 790 */ 253, 267, 202, 33, 22, 209, 36, 12, 13, 14, - /* 800 */ 15, 16, 42, 2, 44, 219, 92, 69, 172, 223, - /* 810 */ 269, 182, 226, 12, 13, 14, 15, 16, 104, 81, - /* 820 */ 69, 235, 236, 237, 238, 69, 256, 67, 69, 128, - /* 830 */ 70, 202, 81, 69, 20, 229, 188, 81, 209, 69, - /* 840 */ 81, 104, 182, 115, 130, 81, 132, 133, 219, 217, - /* 850 */ 107, 81, 223, 110, 111, 112, 113, 114, 69, 215, - /* 860 */ 116, 101, 202, 69, 235, 236, 237, 238, 69, 209, - /* 870 */ 81, 215, 69, 182, 188, 81, 20, 227, 118, 219, - /* 880 */ 81, 121, 182, 223, 81, 190, 12, 13, 14, 15, - /* 890 */ 16, 69, 209, 202, 69, 235, 236, 237, 238, 20, - /* 900 */ 209, 220, 202, 81, 182, 190, 81, 190, 188, 209, - /* 910 */ 219, 190, 20, 182, 223, 202, 184, 184, 202, 219, - /* 920 */ 202, 202, 188, 223, 202, 202, 235, 236, 237, 238, - /* 930 */ 227, 209, 202, 202, 0, 235, 236, 237, 238, 187, - /* 940 */ 209, 219, 202, 182, 202, 223, 220, 202, 202, 202, - /* 950 */ 219, 182, 187, 20, 223, 162, 161, 235, 236, 237, - /* 960 */ 238, 234, 209, 202, 265, 224, 235, 236, 237, 238, - /* 970 */ 209, 202, 223, 133, 182, 265, 169, 49, 209, 51, - /* 980 */ 219, 224, 54, 168, 223, 57, 223, 59, 219, 223, - /* 990 */ 62, 57, 223, 157, 202, 61, 235, 236, 237, 238, - /* 1000 */ 261, 209, 156, 153, 235, 236, 237, 238, 20, 259, - /* 1010 */ 262, 219, 258, 182, 209, 223, 82, 233, 115, 246, - /* 1020 */ 176, 182, 173, 171, 68, 242, 224, 235, 236, 237, - /* 1030 */ 238, 276, 270, 202, 223, 101, 102, 103, 271, 105, - /* 1040 */ 209, 202, 223, 223, 182, 224, 119, 221, 209, 220, - /* 1050 */ 219, 209, 182, 187, 223, 4, 198, 209, 219, 187, - /* 1060 */ 68, 188, 223, 187, 202, 205, 235, 236, 237, 238, - /* 1070 */ 19, 209, 202, 184, 235, 236, 237, 238, 196, 209, - /* 1080 */ 196, 219, 189, 182, 33, 223, 180, 36, 0, 219, - /* 1090 */ 104, 230, 41, 223, 130, 44, 0, 235, 236, 237, - /* 1100 */ 238, 0, 50, 202, 126, 235, 236, 237, 238, 0, - /* 1110 */ 209, 0, 80, 0, 0, 115, 0, 0, 67, 33, - /* 1120 */ 219, 70, 36, 0, 223, 0, 0, 0, 42, 22, - /* 1130 */ 44, 0, 0, 0, 0, 0, 235, 236, 237, 238, - /* 1140 */ 0, 0, 43, 0, 0, 48, 0, 43, 38, 0, - /* 1150 */ 0, 36, 0, 67, 0, 77, 70, 75, 38, 38, - /* 1160 */ 22, 0, 38, 0, 22, 0, 38, 38, 38, 22, - /* 1170 */ 0, 0, 0, 22, 38, 38, 20, 22, 39, 22, - /* 1180 */ 0, 0, 122, 38, 0, 117, 68, 81, 158, 81, - /* 1190 */ 68, 43, 158, 81, 152, 158, 4, 2, 132, 120, - /* 1200 */ 81, 117, 104, 117, 0, 277, 277, 121, 277, 277, - /* 1210 */ 277, 277, 277, 277, 277, 277, 277, 38, 277, 277, - /* 1220 */ 38, 38, 69, 38, 38, 38, 277, 69, 68, 277, - /* 1230 */ 22, 69, 68, 43, 277, 69, 68, 277, 69, 80, - /* 1240 */ 277, 38, 69, 277, 277, 69, 277, 277, 81, 277, - /* 1250 */ 277, 277, 277, 277, 80, 277, 81, 80, 69, 81, - /* 1260 */ 69, 68, 68, 38, 38, 69, 68, 68, 80, 68, - /* 1270 */ 68, 38, 38, 277, 277, 78, 0, 38, 277, 277, - /* 1280 */ 80, 38, 22, 277, 277, 80, 68, 277, 22, 22, - /* 1290 */ 48, 69, 68, 22, 22, 277, 277, 69, 69, 68, - /* 1300 */ 79, 69, 38, 38, 68, 68, 38, 38, 38, 69, - /* 1310 */ 47, 38, 0, 0, 68, 38, 38, 94, 0, 38, - /* 1320 */ 38, 38, 21, 21, 38, 38, 37, 68, 38, 68, - /* 1330 */ 68, 38, 38, 22, 43, 20, 38, 38, 38, 36, - /* 1340 */ 82, 22, 38, 94, 277, 277, 277, 277, 277, 94, - /* 1350 */ 277, 94, 277, 277, 277, 277, 277, 277, 277, 277, + /* 710 */ 238, 248, 249, 250, 22, 252, 194, 182, 223, 69, + /* 720 */ 202, 106, 177, 178, 202, 47, 202, 209, 223, 223, + /* 730 */ 182, 81, 210, 209, 273, 274, 22, 219, 123, 124, + /* 740 */ 125, 223, 127, 219, 226, 104, 274, 223, 266, 212, + /* 750 */ 202, 260, 38, 235, 236, 237, 238, 209, 223, 235, + /* 760 */ 236, 237, 238, 20, 69, 69, 68, 219, 182, 154, + /* 770 */ 27, 223, 0, 30, 226, 38, 81, 81, 80, 19, + /* 780 */ 69, 185, 39, 235, 236, 237, 238, 2, 202, 234, + /* 790 */ 202, 267, 81, 33, 22, 209, 36, 12, 13, 14, + /* 800 */ 15, 16, 42, 2, 44, 219, 92, 0, 69, 223, + /* 810 */ 132, 182, 226, 12, 13, 14, 15, 16, 104, 253, + /* 820 */ 81, 235, 236, 237, 238, 69, 68, 67, 69, 22, + /* 830 */ 70, 202, 269, 69, 256, 128, 78, 81, 209, 69, + /* 840 */ 81, 104, 182, 229, 130, 81, 132, 133, 219, 20, + /* 850 */ 107, 81, 223, 110, 111, 112, 113, 114, 69, 188, + /* 860 */ 115, 101, 202, 69, 235, 236, 237, 238, 69, 209, + /* 870 */ 81, 217, 69, 182, 215, 81, 215, 188, 118, 219, + /* 880 */ 81, 121, 182, 223, 81, 20, 12, 13, 14, 15, + /* 890 */ 16, 69, 116, 202, 227, 235, 236, 237, 238, 190, + /* 900 */ 209, 20, 202, 81, 182, 220, 209, 190, 190, 209, + /* 910 */ 219, 188, 20, 182, 223, 190, 184, 202, 202, 219, + /* 920 */ 184, 202, 202, 223, 202, 187, 235, 236, 237, 238, + /* 930 */ 202, 209, 202, 202, 0, 235, 236, 237, 238, 188, + /* 940 */ 209, 219, 202, 182, 202, 223, 202, 220, 202, 202, + /* 950 */ 219, 182, 187, 227, 223, 20, 161, 235, 236, 237, + /* 960 */ 238, 209, 162, 202, 265, 133, 235, 236, 237, 238, + /* 970 */ 209, 202, 224, 223, 182, 234, 223, 265, 209, 224, + /* 980 */ 219, 169, 168, 262, 223, 223, 209, 157, 219, 156, + /* 990 */ 261, 57, 223, 259, 202, 61, 235, 236, 237, 238, + /* 1000 */ 153, 209, 20, 115, 235, 236, 237, 238, 233, 246, + /* 1010 */ 176, 219, 258, 182, 173, 223, 82, 171, 68, 223, + /* 1020 */ 242, 182, 224, 119, 209, 276, 224, 235, 236, 237, + /* 1030 */ 238, 223, 223, 202, 221, 101, 102, 103, 271, 105, + /* 1040 */ 209, 202, 187, 270, 182, 220, 198, 187, 209, 209, + /* 1050 */ 219, 68, 182, 187, 223, 4, 205, 188, 219, 184, + /* 1060 */ 196, 189, 223, 196, 202, 230, 235, 236, 237, 238, + /* 1070 */ 19, 209, 202, 180, 235, 236, 237, 238, 0, 209, + /* 1080 */ 104, 219, 130, 182, 33, 223, 50, 36, 0, 219, + /* 1090 */ 0, 126, 41, 223, 0, 44, 0, 235, 236, 237, + /* 1100 */ 238, 80, 0, 202, 0, 235, 236, 237, 238, 115, + /* 1110 */ 209, 0, 0, 0, 0, 0, 0, 22, 67, 33, + /* 1120 */ 219, 70, 36, 0, 223, 0, 0, 0, 42, 0, + /* 1130 */ 44, 0, 0, 0, 43, 48, 235, 236, 237, 238, + /* 1140 */ 0, 0, 36, 38, 43, 0, 0, 49, 0, 51, + /* 1150 */ 0, 77, 54, 67, 75, 57, 70, 59, 60, 38, + /* 1160 */ 62, 22, 38, 0, 0, 22, 38, 0, 38, 22, + /* 1170 */ 0, 22, 38, 38, 38, 38, 38, 0, 22, 0, + /* 1180 */ 22, 39, 38, 0, 0, 20, 122, 0, 68, 117, + /* 1190 */ 81, 81, 158, 158, 43, 152, 158, 4, 81, 81, + /* 1200 */ 81, 2, 80, 117, 120, 132, 0, 121, 277, 117, + /* 1210 */ 277, 104, 38, 38, 38, 277, 38, 277, 38, 38, + /* 1220 */ 277, 69, 69, 68, 22, 68, 277, 277, 69, 68, + /* 1230 */ 277, 69, 277, 277, 68, 81, 277, 69, 69, 277, + /* 1240 */ 80, 69, 277, 43, 277, 38, 38, 277, 277, 277, + /* 1250 */ 38, 80, 38, 68, 81, 69, 68, 38, 69, 69, + /* 1260 */ 68, 38, 80, 68, 68, 68, 22, 38, 0, 78, + /* 1270 */ 277, 68, 277, 69, 80, 22, 20, 38, 80, 69, + /* 1280 */ 79, 68, 22, 68, 38, 22, 69, 0, 68, 38, + /* 1290 */ 38, 69, 68, 38, 69, 48, 38, 38, 68, 94, + /* 1300 */ 38, 47, 38, 38, 38, 38, 68, 38, 38, 68, + /* 1310 */ 68, 0, 38, 38, 38, 43, 38, 38, 82, 36, + /* 1320 */ 94, 0, 38, 37, 22, 21, 94, 22, 22, 94, + /* 1330 */ 21, 277, 277, 277, 277, 277, 277, 277, 277, 277, + /* 1340 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, + /* 1350 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, /* 1360 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, /* 1370 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, /* 1380 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, @@ -500,131 +498,128 @@ static const YYCODETYPE yy_lookahead[] = { /* 1480 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, /* 1490 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, /* 1500 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1510 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1520 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1530 */ 277, }; -#define YY_SHIFT_COUNT (444) +#define YY_SHIFT_COUNT (445) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1319) +#define YY_SHIFT_MAX (1321) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 615, 192, 265, 280, 280, 280, 280, 449, 280, 280, /* 10 */ 480, 525, 98, 466, 480, 480, 480, 480, 480, 480, /* 20 */ 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, - /* 30 */ 480, 480, 480, 133, 133, 133, 102, 228, 228, 78, - /* 40 */ 35, 35, 228, 35, 35, 35, 35, 213, 262, 369, - /* 50 */ 369, 255, 456, 262, 35, 35, 262, 35, 262, 456, - /* 60 */ 262, 262, 35, 439, 0, 13, 13, 743, 106, 493, - /* 70 */ 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + /* 30 */ 480, 480, 480, 214, 214, 214, 102, 228, 228, 78, + /* 40 */ 35, 35, 228, 35, 35, 35, 35, 121, 239, 297, + /* 50 */ 297, 177, 350, 239, 35, 35, 239, 35, 239, 350, + /* 60 */ 239, 239, 35, 343, 0, 13, 13, 743, 106, 493, + /* 70 */ 714, 1098, 714, 714, 714, 714, 714, 714, 714, 714, /* 80 */ 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, - /* 90 */ 928, 417, 121, 214, 214, 214, 347, 469, 456, 262, - /* 100 */ 262, 262, 443, 91, 91, 91, 91, 91, 313, 66, - /* 110 */ 181, 187, 186, 116, 395, 301, 437, 243, 437, 545, - /* 120 */ 401, 364, 701, 814, 728, 744, 744, 814, 856, 213, - /* 130 */ 469, 879, 213, 213, 814, 213, 892, 262, 262, 262, - /* 140 */ 262, 262, 262, 262, 262, 262, 262, 262, 814, 892, - /* 150 */ 856, 439, 469, 879, 439, 933, 793, 795, 840, 793, - /* 160 */ 795, 840, 840, 807, 815, 836, 846, 850, 469, 988, - /* 170 */ 903, 844, 849, 852, 956, 262, 795, 840, 840, 795, - /* 180 */ 840, 927, 469, 879, 439, 443, 439, 469, 992, 814, - /* 190 */ 439, 892, 1352, 1352, 1352, 1352, 1352, 48, 349, 760, + /* 90 */ 714, 99, 347, 301, 301, 301, 387, 389, 350, 239, + /* 100 */ 239, 239, 420, 91, 91, 91, 91, 91, 313, 66, + /* 110 */ 181, 187, 186, 116, 415, 437, 454, 243, 454, 551, + /* 120 */ 198, 435, 707, 829, 745, 776, 776, 829, 865, 121, + /* 130 */ 389, 881, 121, 121, 829, 121, 892, 239, 239, 239, + /* 140 */ 239, 239, 239, 239, 239, 239, 239, 239, 829, 892, + /* 150 */ 865, 343, 389, 881, 343, 935, 800, 795, 832, 800, + /* 160 */ 795, 832, 832, 812, 814, 830, 833, 847, 389, 982, + /* 170 */ 888, 834, 841, 846, 950, 239, 795, 832, 832, 795, + /* 180 */ 832, 904, 389, 881, 343, 420, 343, 389, 983, 829, + /* 190 */ 343, 892, 1331, 1331, 1331, 1331, 1331, 48, 349, 760, /* 200 */ 1086, 1051, 475, 934, 785, 801, 527, 156, 874, 874, - /* 210 */ 874, 874, 874, 874, 874, 32, 19, 340, 625, 625, - /* 220 */ 625, 625, 440, 529, 613, 617, 729, 758, 772, 118, - /* 230 */ 458, 602, 696, 605, 571, 636, 372, 697, 547, 738, - /* 240 */ 302, 751, 756, 759, 764, 770, 618, 737, 789, 794, - /* 250 */ 799, 803, 822, 825, 484, 1088, 986, 964, 1096, 1101, - /* 260 */ 1052, 978, 1109, 1111, 1032, 1113, 1114, 1000, 1116, 1117, - /* 270 */ 1123, 1125, 1126, 1127, 1107, 1131, 1132, 1133, 1134, 1135, - /* 280 */ 1140, 1141, 1099, 1143, 1097, 1144, 1146, 1110, 1115, 1104, - /* 290 */ 1149, 1150, 1152, 1154, 1078, 1082, 1120, 1121, 1138, 1161, - /* 300 */ 1124, 1128, 1129, 1130, 1136, 1137, 1163, 1142, 1165, 1147, - /* 310 */ 1139, 1170, 1151, 1145, 1171, 1155, 1172, 1157, 1156, 1180, - /* 320 */ 1181, 1060, 1184, 1118, 1148, 1068, 1106, 1108, 1030, 1153, - /* 330 */ 1112, 1158, 1122, 1160, 1162, 1164, 1166, 1119, 1159, 1168, - /* 340 */ 1167, 1034, 1169, 1173, 1174, 1042, 1175, 1177, 1176, 1178, - /* 350 */ 1037, 1192, 1179, 1182, 1183, 1185, 1186, 1187, 1195, 1066, - /* 360 */ 1188, 1189, 1193, 1194, 1191, 1196, 1198, 1199, 1079, 1201, - /* 370 */ 1204, 1190, 1084, 1202, 1197, 1200, 1205, 1208, 1218, 1221, - /* 380 */ 1222, 1225, 1226, 1224, 1228, 1233, 1231, 1229, 1234, 1236, - /* 390 */ 1232, 1239, 1237, 1240, 1243, 1246, 1223, 1249, 1255, 1257, - /* 400 */ 1260, 1258, 1259, 1264, 1098, 1261, 1262, 1203, 1265, 1266, - /* 410 */ 1242, 1263, 1267, 1268, 1269, 1270, 1273, 1278, 1281, 1282, - /* 420 */ 1271, 1283, 1286, 1287, 1290, 1293, 1294, 1298, 1299, 1300, - /* 430 */ 1276, 1277, 1303, 1291, 1312, 1304, 1289, 1313, 1318, 1272, - /* 440 */ 1301, 1311, 1319, 1302, 1315, + /* 210 */ 874, 874, 874, 874, 874, 32, 19, 340, 138, 138, + /* 220 */ 138, 138, 440, 447, 514, 529, 692, 772, 807, 455, + /* 230 */ 458, 602, 650, 638, 545, 513, 378, 695, 678, 696, + /* 240 */ 698, 711, 739, 756, 759, 764, 641, 737, 770, 789, + /* 250 */ 794, 799, 803, 822, 758, 1078, 976, 952, 1088, 1090, + /* 260 */ 1036, 965, 1094, 1096, 1021, 1102, 1104, 994, 1111, 1112, + /* 270 */ 1113, 1114, 1115, 1116, 1095, 1123, 1125, 1126, 1127, 1129, + /* 280 */ 1131, 1132, 1091, 1133, 1087, 1140, 1141, 1105, 1106, 1101, + /* 290 */ 1145, 1146, 1148, 1150, 1074, 1079, 1121, 1124, 1139, 1163, + /* 300 */ 1128, 1130, 1134, 1135, 1136, 1137, 1138, 1164, 1143, 1167, + /* 310 */ 1147, 1142, 1170, 1149, 1144, 1177, 1156, 1179, 1158, 1165, + /* 320 */ 1183, 1184, 1064, 1187, 1120, 1151, 1072, 1109, 1110, 1034, + /* 330 */ 1152, 1117, 1153, 1155, 1157, 1159, 1161, 1162, 1118, 1122, + /* 340 */ 1166, 1119, 1035, 1168, 1169, 1160, 1043, 1154, 1171, 1172, + /* 350 */ 1173, 1038, 1193, 1174, 1175, 1176, 1178, 1180, 1181, 1199, + /* 360 */ 1073, 1182, 1186, 1185, 1188, 1189, 1190, 1192, 1195, 1084, + /* 370 */ 1196, 1206, 1200, 1092, 1197, 1191, 1194, 1198, 1202, 1203, + /* 380 */ 1201, 1204, 1207, 1208, 1213, 1210, 1214, 1215, 1217, 1219, + /* 390 */ 1220, 1222, 1223, 1224, 1225, 1229, 1230, 1205, 1226, 1232, + /* 400 */ 1235, 1244, 1236, 1238, 1239, 1107, 1241, 1242, 1212, 1246, + /* 410 */ 1253, 1247, 1254, 1260, 1251, 1252, 1255, 1258, 1259, 1262, + /* 420 */ 1264, 1263, 1265, 1266, 1267, 1270, 1274, 1275, 1276, 1278, + /* 430 */ 1279, 1268, 1269, 1283, 1272, 1287, 1284, 1286, 1311, 1321, + /* 440 */ 1302, 1304, 1305, 1306, 1309, 1256, }; #define YY_REDUCE_COUNT (196) #define YY_REDUCE_MIN (-238) -#define YY_REDUCE_MAX (906) +#define YY_REDUCE_MAX (901) static const short yy_reduce_ofst[] = { /* 0 */ -55, -17, 26, 183, -165, 206, 229, 288, 72, 409, /* 10 */ 461, 386, -187, 467, 518, 524, 472, 548, 586, 629, /* 20 */ 660, 691, 700, 722, 731, 761, 769, 792, 831, 839, /* 30 */ 862, 870, 901, -156, 246, 463, 135, -8, 74, -222, - /* 40 */ -170, -169, -223, -150, 49, 79, 174, -123, 222, -83, - /* 50 */ 92, -39, -215, 311, 178, 321, 327, 399, 425, -162, - /* 60 */ 429, 522, 427, -152, -238, -238, -238, 85, -147, -137, - /* 70 */ -140, 21, 75, 132, 177, 182, 209, 258, 276, 319, - /* 80 */ 326, 328, 338, 351, 452, 491, 495, 496, 500, 505, - /* 90 */ -105, 145, 41, 84, 203, 226, 259, 37, -214, 184, - /* 100 */ -3, 342, 308, 370, 383, 394, 423, 528, 348, 502, - /* 110 */ 450, 479, 552, 516, 596, 555, 537, 537, 537, 590, - /* 120 */ 541, 570, 606, 648, 632, 644, 656, 686, 650, 695, - /* 130 */ 683, 681, 715, 717, 720, 721, 732, 713, 716, 718, - /* 140 */ 719, 723, 730, 740, 742, 745, 746, 747, 734, 733, - /* 150 */ 703, 752, 753, 726, 765, 727, 699, 741, 749, 710, - /* 160 */ 757, 763, 766, 748, 739, 750, 754, 537, 805, 784, - /* 170 */ 773, 755, 767, 762, 783, 590, 802, 811, 819, 821, - /* 180 */ 820, 826, 842, 829, 866, 858, 872, 848, 860, 873, - /* 190 */ 876, 889, 861, 882, 884, 893, 906, + /* 40 */ -170, -169, -223, -150, 49, 79, 174, -123, 222, 92, + /* 50 */ 157, -39, -215, 311, 321, 399, 327, 427, 425, -162, + /* 60 */ 429, 522, 485, -152, -238, -238, -238, 85, -147, -137, + /* 70 */ -140, -105, 21, 75, 132, 148, 182, 209, 235, 258, + /* 80 */ 319, 326, 328, 338, 351, 452, 459, 495, 505, 506, + /* 90 */ 535, 150, 41, 149, 153, 203, 259, 37, -214, 275, + /* 100 */ -3, 342, 308, 359, 370, 394, 423, 453, 348, 354, + /* 110 */ 414, 482, 537, 491, 596, 555, 566, 566, 566, 588, + /* 120 */ 563, 578, 614, 671, 654, 659, 661, 689, 667, 709, + /* 130 */ 697, 685, 717, 718, 723, 725, 732, 715, 716, 719, + /* 140 */ 720, 728, 730, 740, 742, 744, 746, 747, 751, 736, + /* 150 */ 726, 738, 752, 727, 765, 741, 699, 748, 750, 712, + /* 160 */ 755, 753, 762, 721, 729, 734, 754, 566, 777, 775, + /* 170 */ 763, 749, 767, 773, 778, 588, 798, 796, 808, 802, + /* 180 */ 809, 813, 815, 825, 855, 848, 860, 840, 851, 869, + /* 190 */ 866, 875, 835, 864, 867, 872, 893, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 10 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 20 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 30 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 40 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1101, 1048, 1048, - /* 50 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 60 */ 1048, 1048, 1048, 1099, 1048, 1327, 1048, 1214, 1048, 1048, - /* 70 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 80 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 90 */ 1048, 1048, 1101, 1338, 1338, 1338, 1099, 1048, 1048, 1048, - /* 100 */ 1048, 1048, 1183, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 110 */ 1402, 1048, 1136, 1362, 1048, 1354, 1330, 1344, 1331, 1048, - /* 120 */ 1387, 1347, 1240, 1048, 1219, 1216, 1216, 1048, 1048, 1101, - /* 130 */ 1048, 1048, 1101, 1101, 1048, 1101, 1048, 1048, 1048, 1048, - /* 140 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 150 */ 1048, 1099, 1048, 1048, 1099, 1048, 1369, 1367, 1048, 1369, - /* 160 */ 1367, 1048, 1048, 1381, 1377, 1360, 1358, 1344, 1048, 1048, - /* 170 */ 1048, 1405, 1393, 1389, 1048, 1048, 1367, 1048, 1048, 1367, - /* 180 */ 1048, 1227, 1048, 1048, 1099, 1048, 1099, 1048, 1152, 1048, - /* 190 */ 1099, 1048, 1242, 1186, 1186, 1102, 1053, 1048, 1048, 1048, - /* 200 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1292, 1380, - /* 210 */ 1379, 1291, 1304, 1303, 1302, 1048, 1048, 1048, 1286, 1287, - /* 220 */ 1285, 1284, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 230 */ 1048, 1048, 1048, 1328, 1048, 1390, 1394, 1048, 1048, 1048, - /* 240 */ 1270, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 250 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 260 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 270 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 280 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 290 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 300 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 310 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 320 */ 1048, 1048, 1048, 1048, 1048, 1048, 1351, 1361, 1048, 1048, - /* 330 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1270, 1048, - /* 340 */ 1378, 1048, 1337, 1333, 1048, 1048, 1329, 1048, 1048, 1388, - /* 350 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1323, 1048, - /* 360 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 370 */ 1048, 1048, 1048, 1048, 1048, 1269, 1048, 1048, 1048, 1048, - /* 380 */ 1048, 1048, 1048, 1180, 1048, 1048, 1048, 1048, 1048, 1048, - /* 390 */ 1048, 1048, 1048, 1048, 1048, 1048, 1165, 1163, 1162, 1161, - /* 400 */ 1048, 1158, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 410 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 420 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 430 */ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, - /* 440 */ 1048, 1048, 1048, 1048, 1048, + /* 0 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 10 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 20 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 30 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 40 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1104, 1051, 1051, + /* 50 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 60 */ 1051, 1051, 1051, 1102, 1051, 1331, 1051, 1218, 1051, 1051, + /* 70 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 80 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 90 */ 1051, 1051, 1104, 1342, 1342, 1342, 1102, 1051, 1051, 1051, + /* 100 */ 1051, 1051, 1187, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 110 */ 1406, 1051, 1140, 1366, 1051, 1358, 1334, 1348, 1335, 1051, + /* 120 */ 1391, 1351, 1244, 1051, 1223, 1220, 1220, 1051, 1051, 1104, + /* 130 */ 1051, 1051, 1104, 1104, 1051, 1104, 1051, 1051, 1051, 1051, + /* 140 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 150 */ 1051, 1102, 1051, 1051, 1102, 1051, 1373, 1371, 1051, 1373, + /* 160 */ 1371, 1051, 1051, 1385, 1381, 1364, 1362, 1348, 1051, 1051, + /* 170 */ 1051, 1409, 1397, 1393, 1051, 1051, 1371, 1051, 1051, 1371, + /* 180 */ 1051, 1231, 1051, 1051, 1102, 1051, 1102, 1051, 1156, 1051, + /* 190 */ 1102, 1051, 1246, 1190, 1190, 1105, 1056, 1051, 1051, 1051, + /* 200 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1296, 1384, + /* 210 */ 1383, 1295, 1308, 1307, 1306, 1051, 1051, 1051, 1290, 1291, + /* 220 */ 1289, 1288, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 230 */ 1051, 1051, 1051, 1332, 1051, 1394, 1398, 1051, 1051, 1051, + /* 240 */ 1274, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 250 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 260 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 270 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 280 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 290 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 300 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 310 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 320 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1355, 1365, 1051, + /* 330 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1274, + /* 340 */ 1051, 1382, 1051, 1341, 1337, 1051, 1051, 1333, 1051, 1051, + /* 350 */ 1392, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1327, + /* 360 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 370 */ 1051, 1051, 1051, 1051, 1051, 1051, 1273, 1051, 1051, 1051, + /* 380 */ 1051, 1051, 1051, 1051, 1184, 1051, 1051, 1051, 1051, 1051, + /* 390 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1169, 1167, 1166, + /* 400 */ 1165, 1051, 1162, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 410 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 420 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 430 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, + /* 440 */ 1051, 1051, 1051, 1051, 1051, 1051, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1093,285 +1088,286 @@ static const char *const yyRuleName[] = { /* 75 */ "alter_db_option ::= WAL NK_INTEGER", /* 76 */ "alter_db_option ::= QUORUM NK_INTEGER", /* 77 */ "alter_db_option ::= CACHELAST NK_INTEGER", - /* 78 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 79 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 80 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 81 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 82 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 83 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 84 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 85 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 86 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 87 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 88 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 89 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 90 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 91 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 92 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 93 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 94 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", - /* 95 */ "multi_create_clause ::= create_subtable_clause", - /* 96 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 97 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", - /* 98 */ "multi_drop_clause ::= drop_table_clause", - /* 99 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 100 */ "drop_table_clause ::= exists_opt full_table_name", - /* 101 */ "specific_tags_opt ::=", - /* 102 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", - /* 103 */ "full_table_name ::= table_name", - /* 104 */ "full_table_name ::= db_name NK_DOT table_name", - /* 105 */ "column_def_list ::= column_def", - /* 106 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 107 */ "column_def ::= column_name type_name", - /* 108 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 109 */ "type_name ::= BOOL", - /* 110 */ "type_name ::= TINYINT", - /* 111 */ "type_name ::= SMALLINT", - /* 112 */ "type_name ::= INT", - /* 113 */ "type_name ::= INTEGER", - /* 114 */ "type_name ::= BIGINT", - /* 115 */ "type_name ::= FLOAT", - /* 116 */ "type_name ::= DOUBLE", - /* 117 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 118 */ "type_name ::= TIMESTAMP", - /* 119 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 120 */ "type_name ::= TINYINT UNSIGNED", - /* 121 */ "type_name ::= SMALLINT UNSIGNED", - /* 122 */ "type_name ::= INT UNSIGNED", - /* 123 */ "type_name ::= BIGINT UNSIGNED", - /* 124 */ "type_name ::= JSON", - /* 125 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 126 */ "type_name ::= MEDIUMBLOB", - /* 127 */ "type_name ::= BLOB", - /* 128 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 129 */ "type_name ::= DECIMAL", - /* 130 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 131 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 132 */ "tags_def_opt ::=", - /* 133 */ "tags_def_opt ::= tags_def", - /* 134 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 135 */ "table_options ::=", - /* 136 */ "table_options ::= table_options COMMENT NK_STRING", - /* 137 */ "table_options ::= table_options KEEP NK_INTEGER", - /* 138 */ "table_options ::= table_options TTL NK_INTEGER", - /* 139 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 140 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", - /* 141 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT", - /* 142 */ "table_options ::= table_options DELAY NK_INTEGER", - /* 143 */ "alter_table_options ::= alter_table_option", - /* 144 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 145 */ "alter_table_option ::= COMMENT NK_STRING", - /* 146 */ "alter_table_option ::= KEEP NK_INTEGER", - /* 147 */ "alter_table_option ::= TTL NK_INTEGER", - /* 148 */ "col_name_list ::= col_name", - /* 149 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 150 */ "col_name ::= column_name", - /* 151 */ "cmd ::= SHOW DNODES", - /* 152 */ "cmd ::= SHOW USERS", - /* 153 */ "cmd ::= SHOW DATABASES", - /* 154 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 155 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 156 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 157 */ "cmd ::= SHOW MNODES", - /* 158 */ "cmd ::= SHOW MODULES", - /* 159 */ "cmd ::= SHOW QNODES", - /* 160 */ "cmd ::= SHOW FUNCTIONS", - /* 161 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 162 */ "cmd ::= SHOW STREAMS", - /* 163 */ "db_name_cond_opt ::=", - /* 164 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 165 */ "like_pattern_opt ::=", - /* 166 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 167 */ "table_name_cond ::= table_name", - /* 168 */ "from_db_opt ::=", - /* 169 */ "from_db_opt ::= FROM db_name", - /* 170 */ "func_name_list ::= func_name", - /* 171 */ "func_name_list ::= func_name_list NK_COMMA col_name", - /* 172 */ "func_name ::= function_name", - /* 173 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 174 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", - /* 175 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", - /* 176 */ "index_options ::=", - /* 177 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 178 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 179 */ "func_list ::= func", - /* 180 */ "func_list ::= func_list NK_COMMA func", - /* 181 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 182 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 183 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", - /* 184 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 185 */ "cmd ::= DESC full_table_name", - /* 186 */ "cmd ::= DESCRIBE full_table_name", - /* 187 */ "cmd ::= RESET QUERY CACHE", - /* 188 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 189 */ "analyze_opt ::=", - /* 190 */ "analyze_opt ::= ANALYZE", - /* 191 */ "explain_options ::=", - /* 192 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 193 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 194 */ "cmd ::= query_expression", - /* 195 */ "literal ::= NK_INTEGER", - /* 196 */ "literal ::= NK_FLOAT", - /* 197 */ "literal ::= NK_STRING", - /* 198 */ "literal ::= NK_BOOL", - /* 199 */ "literal ::= TIMESTAMP NK_STRING", - /* 200 */ "literal ::= duration_literal", - /* 201 */ "literal ::= NULL", - /* 202 */ "duration_literal ::= NK_VARIABLE", - /* 203 */ "signed ::= NK_INTEGER", - /* 204 */ "signed ::= NK_PLUS NK_INTEGER", - /* 205 */ "signed ::= NK_MINUS NK_INTEGER", - /* 206 */ "signed ::= NK_FLOAT", - /* 207 */ "signed ::= NK_PLUS NK_FLOAT", - /* 208 */ "signed ::= NK_MINUS NK_FLOAT", - /* 209 */ "signed_literal ::= signed", - /* 210 */ "signed_literal ::= NK_STRING", - /* 211 */ "signed_literal ::= NK_BOOL", - /* 212 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 213 */ "signed_literal ::= duration_literal", - /* 214 */ "signed_literal ::= NULL", - /* 215 */ "literal_list ::= signed_literal", - /* 216 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 217 */ "db_name ::= NK_ID", - /* 218 */ "table_name ::= NK_ID", - /* 219 */ "column_name ::= NK_ID", - /* 220 */ "function_name ::= NK_ID", - /* 221 */ "table_alias ::= NK_ID", - /* 222 */ "column_alias ::= NK_ID", - /* 223 */ "user_name ::= NK_ID", - /* 224 */ "index_name ::= NK_ID", - /* 225 */ "topic_name ::= NK_ID", - /* 226 */ "expression ::= literal", - /* 227 */ "expression ::= pseudo_column", - /* 228 */ "expression ::= column_reference", - /* 229 */ "expression ::= function_name NK_LP expression_list NK_RP", - /* 230 */ "expression ::= function_name NK_LP NK_STAR NK_RP", - /* 231 */ "expression ::= subquery", - /* 232 */ "expression ::= NK_LP expression NK_RP", - /* 233 */ "expression ::= NK_PLUS expression", - /* 234 */ "expression ::= NK_MINUS expression", - /* 235 */ "expression ::= expression NK_PLUS expression", - /* 236 */ "expression ::= expression NK_MINUS expression", - /* 237 */ "expression ::= expression NK_STAR expression", - /* 238 */ "expression ::= expression NK_SLASH expression", - /* 239 */ "expression ::= expression NK_REM expression", - /* 240 */ "expression_list ::= expression", - /* 241 */ "expression_list ::= expression_list NK_COMMA expression", - /* 242 */ "column_reference ::= column_name", - /* 243 */ "column_reference ::= table_name NK_DOT column_name", - /* 244 */ "pseudo_column ::= NK_UNDERLINE ROWTS", - /* 245 */ "pseudo_column ::= TBNAME", - /* 246 */ "pseudo_column ::= NK_UNDERLINE QSTARTTS", - /* 247 */ "pseudo_column ::= NK_UNDERLINE QENDTS", - /* 248 */ "pseudo_column ::= NK_UNDERLINE WSTARTTS", - /* 249 */ "pseudo_column ::= NK_UNDERLINE WENDTS", - /* 250 */ "pseudo_column ::= NK_UNDERLINE WDURATION", - /* 251 */ "predicate ::= expression compare_op expression", - /* 252 */ "predicate ::= expression BETWEEN expression AND expression", - /* 253 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 254 */ "predicate ::= expression IS NULL", - /* 255 */ "predicate ::= expression IS NOT NULL", - /* 256 */ "predicate ::= expression in_op in_predicate_value", - /* 257 */ "compare_op ::= NK_LT", - /* 258 */ "compare_op ::= NK_GT", - /* 259 */ "compare_op ::= NK_LE", - /* 260 */ "compare_op ::= NK_GE", - /* 261 */ "compare_op ::= NK_NE", - /* 262 */ "compare_op ::= NK_EQ", - /* 263 */ "compare_op ::= LIKE", - /* 264 */ "compare_op ::= NOT LIKE", - /* 265 */ "compare_op ::= MATCH", - /* 266 */ "compare_op ::= NMATCH", - /* 267 */ "in_op ::= IN", - /* 268 */ "in_op ::= NOT IN", - /* 269 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 270 */ "boolean_value_expression ::= boolean_primary", - /* 271 */ "boolean_value_expression ::= NOT boolean_primary", - /* 272 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 273 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 274 */ "boolean_primary ::= predicate", - /* 275 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 276 */ "common_expression ::= expression", - /* 277 */ "common_expression ::= boolean_value_expression", - /* 278 */ "from_clause ::= FROM table_reference_list", - /* 279 */ "table_reference_list ::= table_reference", - /* 280 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 281 */ "table_reference ::= table_primary", - /* 282 */ "table_reference ::= joined_table", - /* 283 */ "table_primary ::= table_name alias_opt", - /* 284 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 285 */ "table_primary ::= subquery alias_opt", - /* 286 */ "table_primary ::= parenthesized_joined_table", - /* 287 */ "alias_opt ::=", - /* 288 */ "alias_opt ::= table_alias", - /* 289 */ "alias_opt ::= AS table_alias", - /* 290 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 291 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 292 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 293 */ "join_type ::=", - /* 294 */ "join_type ::= INNER", - /* 295 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 296 */ "set_quantifier_opt ::=", - /* 297 */ "set_quantifier_opt ::= DISTINCT", - /* 298 */ "set_quantifier_opt ::= ALL", - /* 299 */ "select_list ::= NK_STAR", - /* 300 */ "select_list ::= select_sublist", - /* 301 */ "select_sublist ::= select_item", - /* 302 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 303 */ "select_item ::= common_expression", - /* 304 */ "select_item ::= common_expression column_alias", - /* 305 */ "select_item ::= common_expression AS column_alias", - /* 306 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 307 */ "where_clause_opt ::=", - /* 308 */ "where_clause_opt ::= WHERE search_condition", - /* 309 */ "partition_by_clause_opt ::=", - /* 310 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 311 */ "twindow_clause_opt ::=", - /* 312 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 313 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", - /* 314 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 315 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 316 */ "sliding_opt ::=", - /* 317 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 318 */ "fill_opt ::=", - /* 319 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 320 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 321 */ "fill_mode ::= NONE", - /* 322 */ "fill_mode ::= PREV", - /* 323 */ "fill_mode ::= NULL", - /* 324 */ "fill_mode ::= LINEAR", - /* 325 */ "fill_mode ::= NEXT", - /* 326 */ "group_by_clause_opt ::=", - /* 327 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 328 */ "group_by_list ::= expression", - /* 329 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 330 */ "having_clause_opt ::=", - /* 331 */ "having_clause_opt ::= HAVING search_condition", - /* 332 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 333 */ "query_expression_body ::= query_primary", - /* 334 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 335 */ "query_primary ::= query_specification", - /* 336 */ "order_by_clause_opt ::=", - /* 337 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 338 */ "slimit_clause_opt ::=", - /* 339 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 340 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 341 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 342 */ "limit_clause_opt ::=", - /* 343 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 344 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 345 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 346 */ "subquery ::= NK_LP query_expression NK_RP", - /* 347 */ "search_condition ::= common_expression", - /* 348 */ "sort_specification_list ::= sort_specification", - /* 349 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 350 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 351 */ "ordering_specification_opt ::=", - /* 352 */ "ordering_specification_opt ::= ASC", - /* 353 */ "ordering_specification_opt ::= DESC", - /* 354 */ "null_ordering_opt ::=", - /* 355 */ "null_ordering_opt ::= NULLS FIRST", - /* 356 */ "null_ordering_opt ::= NULLS LAST", + /* 78 */ "alter_db_option ::= REPLICA NK_INTEGER", + /* 79 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 80 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 81 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 82 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 83 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 84 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 85 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 86 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 87 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 88 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 89 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 90 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 91 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 92 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 93 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 94 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 95 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", + /* 96 */ "multi_create_clause ::= create_subtable_clause", + /* 97 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 98 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", + /* 99 */ "multi_drop_clause ::= drop_table_clause", + /* 100 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 101 */ "drop_table_clause ::= exists_opt full_table_name", + /* 102 */ "specific_tags_opt ::=", + /* 103 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 104 */ "full_table_name ::= table_name", + /* 105 */ "full_table_name ::= db_name NK_DOT table_name", + /* 106 */ "column_def_list ::= column_def", + /* 107 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 108 */ "column_def ::= column_name type_name", + /* 109 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 110 */ "type_name ::= BOOL", + /* 111 */ "type_name ::= TINYINT", + /* 112 */ "type_name ::= SMALLINT", + /* 113 */ "type_name ::= INT", + /* 114 */ "type_name ::= INTEGER", + /* 115 */ "type_name ::= BIGINT", + /* 116 */ "type_name ::= FLOAT", + /* 117 */ "type_name ::= DOUBLE", + /* 118 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 119 */ "type_name ::= TIMESTAMP", + /* 120 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 121 */ "type_name ::= TINYINT UNSIGNED", + /* 122 */ "type_name ::= SMALLINT UNSIGNED", + /* 123 */ "type_name ::= INT UNSIGNED", + /* 124 */ "type_name ::= BIGINT UNSIGNED", + /* 125 */ "type_name ::= JSON", + /* 126 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 127 */ "type_name ::= MEDIUMBLOB", + /* 128 */ "type_name ::= BLOB", + /* 129 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 130 */ "type_name ::= DECIMAL", + /* 131 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 132 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 133 */ "tags_def_opt ::=", + /* 134 */ "tags_def_opt ::= tags_def", + /* 135 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 136 */ "table_options ::=", + /* 137 */ "table_options ::= table_options COMMENT NK_STRING", + /* 138 */ "table_options ::= table_options KEEP NK_INTEGER", + /* 139 */ "table_options ::= table_options TTL NK_INTEGER", + /* 140 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 141 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", + /* 142 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT", + /* 143 */ "table_options ::= table_options DELAY NK_INTEGER", + /* 144 */ "alter_table_options ::= alter_table_option", + /* 145 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 146 */ "alter_table_option ::= COMMENT NK_STRING", + /* 147 */ "alter_table_option ::= KEEP NK_INTEGER", + /* 148 */ "alter_table_option ::= TTL NK_INTEGER", + /* 149 */ "col_name_list ::= col_name", + /* 150 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 151 */ "col_name ::= column_name", + /* 152 */ "cmd ::= SHOW DNODES", + /* 153 */ "cmd ::= SHOW USERS", + /* 154 */ "cmd ::= SHOW DATABASES", + /* 155 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 156 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 157 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 158 */ "cmd ::= SHOW MNODES", + /* 159 */ "cmd ::= SHOW MODULES", + /* 160 */ "cmd ::= SHOW QNODES", + /* 161 */ "cmd ::= SHOW FUNCTIONS", + /* 162 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 163 */ "cmd ::= SHOW STREAMS", + /* 164 */ "db_name_cond_opt ::=", + /* 165 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 166 */ "like_pattern_opt ::=", + /* 167 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 168 */ "table_name_cond ::= table_name", + /* 169 */ "from_db_opt ::=", + /* 170 */ "from_db_opt ::= FROM db_name", + /* 171 */ "func_name_list ::= func_name", + /* 172 */ "func_name_list ::= func_name_list NK_COMMA col_name", + /* 173 */ "func_name ::= function_name", + /* 174 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 175 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", + /* 176 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", + /* 177 */ "index_options ::=", + /* 178 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 179 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 180 */ "func_list ::= func", + /* 181 */ "func_list ::= func_list NK_COMMA func", + /* 182 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 183 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 184 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", + /* 185 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 186 */ "cmd ::= DESC full_table_name", + /* 187 */ "cmd ::= DESCRIBE full_table_name", + /* 188 */ "cmd ::= RESET QUERY CACHE", + /* 189 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 190 */ "analyze_opt ::=", + /* 191 */ "analyze_opt ::= ANALYZE", + /* 192 */ "explain_options ::=", + /* 193 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 194 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 195 */ "cmd ::= query_expression", + /* 196 */ "literal ::= NK_INTEGER", + /* 197 */ "literal ::= NK_FLOAT", + /* 198 */ "literal ::= NK_STRING", + /* 199 */ "literal ::= NK_BOOL", + /* 200 */ "literal ::= TIMESTAMP NK_STRING", + /* 201 */ "literal ::= duration_literal", + /* 202 */ "literal ::= NULL", + /* 203 */ "duration_literal ::= NK_VARIABLE", + /* 204 */ "signed ::= NK_INTEGER", + /* 205 */ "signed ::= NK_PLUS NK_INTEGER", + /* 206 */ "signed ::= NK_MINUS NK_INTEGER", + /* 207 */ "signed ::= NK_FLOAT", + /* 208 */ "signed ::= NK_PLUS NK_FLOAT", + /* 209 */ "signed ::= NK_MINUS NK_FLOAT", + /* 210 */ "signed_literal ::= signed", + /* 211 */ "signed_literal ::= NK_STRING", + /* 212 */ "signed_literal ::= NK_BOOL", + /* 213 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 214 */ "signed_literal ::= duration_literal", + /* 215 */ "signed_literal ::= NULL", + /* 216 */ "literal_list ::= signed_literal", + /* 217 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 218 */ "db_name ::= NK_ID", + /* 219 */ "table_name ::= NK_ID", + /* 220 */ "column_name ::= NK_ID", + /* 221 */ "function_name ::= NK_ID", + /* 222 */ "table_alias ::= NK_ID", + /* 223 */ "column_alias ::= NK_ID", + /* 224 */ "user_name ::= NK_ID", + /* 225 */ "index_name ::= NK_ID", + /* 226 */ "topic_name ::= NK_ID", + /* 227 */ "expression ::= literal", + /* 228 */ "expression ::= pseudo_column", + /* 229 */ "expression ::= column_reference", + /* 230 */ "expression ::= function_name NK_LP expression_list NK_RP", + /* 231 */ "expression ::= function_name NK_LP NK_STAR NK_RP", + /* 232 */ "expression ::= subquery", + /* 233 */ "expression ::= NK_LP expression NK_RP", + /* 234 */ "expression ::= NK_PLUS expression", + /* 235 */ "expression ::= NK_MINUS expression", + /* 236 */ "expression ::= expression NK_PLUS expression", + /* 237 */ "expression ::= expression NK_MINUS expression", + /* 238 */ "expression ::= expression NK_STAR expression", + /* 239 */ "expression ::= expression NK_SLASH expression", + /* 240 */ "expression ::= expression NK_REM expression", + /* 241 */ "expression_list ::= expression", + /* 242 */ "expression_list ::= expression_list NK_COMMA expression", + /* 243 */ "column_reference ::= column_name", + /* 244 */ "column_reference ::= table_name NK_DOT column_name", + /* 245 */ "pseudo_column ::= NK_UNDERLINE ROWTS", + /* 246 */ "pseudo_column ::= TBNAME", + /* 247 */ "pseudo_column ::= NK_UNDERLINE QSTARTTS", + /* 248 */ "pseudo_column ::= NK_UNDERLINE QENDTS", + /* 249 */ "pseudo_column ::= NK_UNDERLINE WSTARTTS", + /* 250 */ "pseudo_column ::= NK_UNDERLINE WENDTS", + /* 251 */ "pseudo_column ::= NK_UNDERLINE WDURATION", + /* 252 */ "predicate ::= expression compare_op expression", + /* 253 */ "predicate ::= expression BETWEEN expression AND expression", + /* 254 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 255 */ "predicate ::= expression IS NULL", + /* 256 */ "predicate ::= expression IS NOT NULL", + /* 257 */ "predicate ::= expression in_op in_predicate_value", + /* 258 */ "compare_op ::= NK_LT", + /* 259 */ "compare_op ::= NK_GT", + /* 260 */ "compare_op ::= NK_LE", + /* 261 */ "compare_op ::= NK_GE", + /* 262 */ "compare_op ::= NK_NE", + /* 263 */ "compare_op ::= NK_EQ", + /* 264 */ "compare_op ::= LIKE", + /* 265 */ "compare_op ::= NOT LIKE", + /* 266 */ "compare_op ::= MATCH", + /* 267 */ "compare_op ::= NMATCH", + /* 268 */ "in_op ::= IN", + /* 269 */ "in_op ::= NOT IN", + /* 270 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 271 */ "boolean_value_expression ::= boolean_primary", + /* 272 */ "boolean_value_expression ::= NOT boolean_primary", + /* 273 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 274 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 275 */ "boolean_primary ::= predicate", + /* 276 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 277 */ "common_expression ::= expression", + /* 278 */ "common_expression ::= boolean_value_expression", + /* 279 */ "from_clause ::= FROM table_reference_list", + /* 280 */ "table_reference_list ::= table_reference", + /* 281 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 282 */ "table_reference ::= table_primary", + /* 283 */ "table_reference ::= joined_table", + /* 284 */ "table_primary ::= table_name alias_opt", + /* 285 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 286 */ "table_primary ::= subquery alias_opt", + /* 287 */ "table_primary ::= parenthesized_joined_table", + /* 288 */ "alias_opt ::=", + /* 289 */ "alias_opt ::= table_alias", + /* 290 */ "alias_opt ::= AS table_alias", + /* 291 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 292 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 293 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 294 */ "join_type ::=", + /* 295 */ "join_type ::= INNER", + /* 296 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 297 */ "set_quantifier_opt ::=", + /* 298 */ "set_quantifier_opt ::= DISTINCT", + /* 299 */ "set_quantifier_opt ::= ALL", + /* 300 */ "select_list ::= NK_STAR", + /* 301 */ "select_list ::= select_sublist", + /* 302 */ "select_sublist ::= select_item", + /* 303 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 304 */ "select_item ::= common_expression", + /* 305 */ "select_item ::= common_expression column_alias", + /* 306 */ "select_item ::= common_expression AS column_alias", + /* 307 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 308 */ "where_clause_opt ::=", + /* 309 */ "where_clause_opt ::= WHERE search_condition", + /* 310 */ "partition_by_clause_opt ::=", + /* 311 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 312 */ "twindow_clause_opt ::=", + /* 313 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 314 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", + /* 315 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 316 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 317 */ "sliding_opt ::=", + /* 318 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 319 */ "fill_opt ::=", + /* 320 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 321 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 322 */ "fill_mode ::= NONE", + /* 323 */ "fill_mode ::= PREV", + /* 324 */ "fill_mode ::= NULL", + /* 325 */ "fill_mode ::= LINEAR", + /* 326 */ "fill_mode ::= NEXT", + /* 327 */ "group_by_clause_opt ::=", + /* 328 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 329 */ "group_by_list ::= expression", + /* 330 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 331 */ "having_clause_opt ::=", + /* 332 */ "having_clause_opt ::= HAVING search_condition", + /* 333 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 334 */ "query_expression_body ::= query_primary", + /* 335 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 336 */ "query_primary ::= query_specification", + /* 337 */ "order_by_clause_opt ::=", + /* 338 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 339 */ "slimit_clause_opt ::=", + /* 340 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 341 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 342 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 343 */ "limit_clause_opt ::=", + /* 344 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 345 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 346 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 347 */ "subquery ::= NK_LP query_expression NK_RP", + /* 348 */ "search_condition ::= common_expression", + /* 349 */ "sort_specification_list ::= sort_specification", + /* 350 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 351 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 352 */ "ordering_specification_opt ::=", + /* 353 */ "ordering_specification_opt ::= ASC", + /* 354 */ "ordering_specification_opt ::= DESC", + /* 355 */ "null_ordering_opt ::=", + /* 356 */ "null_ordering_opt ::= NULLS FIRST", + /* 357 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2016,285 +2012,286 @@ static const struct { { 192, -2 }, /* (75) alter_db_option ::= WAL NK_INTEGER */ { 192, -2 }, /* (76) alter_db_option ::= QUORUM NK_INTEGER */ { 192, -2 }, /* (77) alter_db_option ::= CACHELAST NK_INTEGER */ - { 179, -9 }, /* (78) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 179, -3 }, /* (79) cmd ::= CREATE TABLE multi_create_clause */ - { 179, -9 }, /* (80) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 179, -3 }, /* (81) cmd ::= DROP TABLE multi_drop_clause */ - { 179, -4 }, /* (82) cmd ::= DROP STABLE exists_opt full_table_name */ - { 179, -3 }, /* (83) cmd ::= ALTER TABLE alter_table_clause */ - { 179, -3 }, /* (84) cmd ::= ALTER STABLE alter_table_clause */ - { 200, -2 }, /* (85) alter_table_clause ::= full_table_name alter_table_options */ - { 200, -5 }, /* (86) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 200, -4 }, /* (87) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 200, -5 }, /* (88) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 200, -5 }, /* (89) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 200, -5 }, /* (90) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 200, -4 }, /* (91) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 200, -5 }, /* (92) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 200, -5 }, /* (93) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 200, -6 }, /* (94) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ - { 197, -1 }, /* (95) multi_create_clause ::= create_subtable_clause */ - { 197, -2 }, /* (96) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 204, -9 }, /* (97) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ - { 199, -1 }, /* (98) multi_drop_clause ::= drop_table_clause */ - { 199, -2 }, /* (99) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 207, -2 }, /* (100) drop_table_clause ::= exists_opt full_table_name */ - { 205, 0 }, /* (101) specific_tags_opt ::= */ - { 205, -3 }, /* (102) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 193, -1 }, /* (103) full_table_name ::= table_name */ - { 193, -3 }, /* (104) full_table_name ::= db_name NK_DOT table_name */ - { 194, -1 }, /* (105) column_def_list ::= column_def */ - { 194, -3 }, /* (106) column_def_list ::= column_def_list NK_COMMA column_def */ - { 210, -2 }, /* (107) column_def ::= column_name type_name */ - { 210, -4 }, /* (108) column_def ::= column_name type_name COMMENT NK_STRING */ - { 203, -1 }, /* (109) type_name ::= BOOL */ - { 203, -1 }, /* (110) type_name ::= TINYINT */ - { 203, -1 }, /* (111) type_name ::= SMALLINT */ - { 203, -1 }, /* (112) type_name ::= INT */ - { 203, -1 }, /* (113) type_name ::= INTEGER */ - { 203, -1 }, /* (114) type_name ::= BIGINT */ - { 203, -1 }, /* (115) type_name ::= FLOAT */ - { 203, -1 }, /* (116) type_name ::= DOUBLE */ - { 203, -4 }, /* (117) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 203, -1 }, /* (118) type_name ::= TIMESTAMP */ - { 203, -4 }, /* (119) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 203, -2 }, /* (120) type_name ::= TINYINT UNSIGNED */ - { 203, -2 }, /* (121) type_name ::= SMALLINT UNSIGNED */ - { 203, -2 }, /* (122) type_name ::= INT UNSIGNED */ - { 203, -2 }, /* (123) type_name ::= BIGINT UNSIGNED */ - { 203, -1 }, /* (124) type_name ::= JSON */ - { 203, -4 }, /* (125) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 203, -1 }, /* (126) type_name ::= MEDIUMBLOB */ - { 203, -1 }, /* (127) type_name ::= BLOB */ - { 203, -4 }, /* (128) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 203, -1 }, /* (129) type_name ::= DECIMAL */ - { 203, -4 }, /* (130) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 203, -6 }, /* (131) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 195, 0 }, /* (132) tags_def_opt ::= */ - { 195, -1 }, /* (133) tags_def_opt ::= tags_def */ - { 198, -4 }, /* (134) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 196, 0 }, /* (135) table_options ::= */ - { 196, -3 }, /* (136) table_options ::= table_options COMMENT NK_STRING */ - { 196, -3 }, /* (137) table_options ::= table_options KEEP NK_INTEGER */ - { 196, -3 }, /* (138) table_options ::= table_options TTL NK_INTEGER */ - { 196, -5 }, /* (139) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 196, -5 }, /* (140) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ - { 196, -3 }, /* (141) table_options ::= table_options FILE_FACTOR NK_FLOAT */ - { 196, -3 }, /* (142) table_options ::= table_options DELAY NK_INTEGER */ - { 201, -1 }, /* (143) alter_table_options ::= alter_table_option */ - { 201, -2 }, /* (144) alter_table_options ::= alter_table_options alter_table_option */ - { 212, -2 }, /* (145) alter_table_option ::= COMMENT NK_STRING */ - { 212, -2 }, /* (146) alter_table_option ::= KEEP NK_INTEGER */ - { 212, -2 }, /* (147) alter_table_option ::= TTL NK_INTEGER */ - { 208, -1 }, /* (148) col_name_list ::= col_name */ - { 208, -3 }, /* (149) col_name_list ::= col_name_list NK_COMMA col_name */ - { 213, -1 }, /* (150) col_name ::= column_name */ - { 179, -2 }, /* (151) cmd ::= SHOW DNODES */ - { 179, -2 }, /* (152) cmd ::= SHOW USERS */ - { 179, -2 }, /* (153) cmd ::= SHOW DATABASES */ - { 179, -4 }, /* (154) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 179, -4 }, /* (155) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 179, -3 }, /* (156) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 179, -2 }, /* (157) cmd ::= SHOW MNODES */ - { 179, -2 }, /* (158) cmd ::= SHOW MODULES */ - { 179, -2 }, /* (159) cmd ::= SHOW QNODES */ - { 179, -2 }, /* (160) cmd ::= SHOW FUNCTIONS */ - { 179, -5 }, /* (161) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 179, -2 }, /* (162) cmd ::= SHOW STREAMS */ - { 214, 0 }, /* (163) db_name_cond_opt ::= */ - { 214, -2 }, /* (164) db_name_cond_opt ::= db_name NK_DOT */ - { 215, 0 }, /* (165) like_pattern_opt ::= */ - { 215, -2 }, /* (166) like_pattern_opt ::= LIKE NK_STRING */ - { 216, -1 }, /* (167) table_name_cond ::= table_name */ - { 217, 0 }, /* (168) from_db_opt ::= */ - { 217, -2 }, /* (169) from_db_opt ::= FROM db_name */ - { 211, -1 }, /* (170) func_name_list ::= func_name */ - { 211, -3 }, /* (171) func_name_list ::= func_name_list NK_COMMA col_name */ - { 218, -1 }, /* (172) func_name ::= function_name */ - { 179, -8 }, /* (173) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 179, -10 }, /* (174) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 179, -6 }, /* (175) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 221, 0 }, /* (176) index_options ::= */ - { 221, -9 }, /* (177) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 221, -11 }, /* (178) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 222, -1 }, /* (179) func_list ::= func */ - { 222, -3 }, /* (180) func_list ::= func_list NK_COMMA func */ - { 225, -4 }, /* (181) func ::= function_name NK_LP expression_list NK_RP */ - { 179, -6 }, /* (182) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 179, -6 }, /* (183) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ - { 179, -4 }, /* (184) cmd ::= DROP TOPIC exists_opt topic_name */ - { 179, -2 }, /* (185) cmd ::= DESC full_table_name */ - { 179, -2 }, /* (186) cmd ::= DESCRIBE full_table_name */ - { 179, -3 }, /* (187) cmd ::= RESET QUERY CACHE */ - { 179, -4 }, /* (188) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 229, 0 }, /* (189) analyze_opt ::= */ - { 229, -1 }, /* (190) analyze_opt ::= ANALYZE */ - { 230, 0 }, /* (191) explain_options ::= */ - { 230, -3 }, /* (192) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 230, -3 }, /* (193) explain_options ::= explain_options RATIO NK_FLOAT */ - { 179, -1 }, /* (194) cmd ::= query_expression */ - { 182, -1 }, /* (195) literal ::= NK_INTEGER */ - { 182, -1 }, /* (196) literal ::= NK_FLOAT */ - { 182, -1 }, /* (197) literal ::= NK_STRING */ - { 182, -1 }, /* (198) literal ::= NK_BOOL */ - { 182, -2 }, /* (199) literal ::= TIMESTAMP NK_STRING */ - { 182, -1 }, /* (200) literal ::= duration_literal */ - { 182, -1 }, /* (201) literal ::= NULL */ - { 223, -1 }, /* (202) duration_literal ::= NK_VARIABLE */ - { 231, -1 }, /* (203) signed ::= NK_INTEGER */ - { 231, -2 }, /* (204) signed ::= NK_PLUS NK_INTEGER */ - { 231, -2 }, /* (205) signed ::= NK_MINUS NK_INTEGER */ - { 231, -1 }, /* (206) signed ::= NK_FLOAT */ - { 231, -2 }, /* (207) signed ::= NK_PLUS NK_FLOAT */ - { 231, -2 }, /* (208) signed ::= NK_MINUS NK_FLOAT */ - { 232, -1 }, /* (209) signed_literal ::= signed */ - { 232, -1 }, /* (210) signed_literal ::= NK_STRING */ - { 232, -1 }, /* (211) signed_literal ::= NK_BOOL */ - { 232, -2 }, /* (212) signed_literal ::= TIMESTAMP NK_STRING */ - { 232, -1 }, /* (213) signed_literal ::= duration_literal */ - { 232, -1 }, /* (214) signed_literal ::= NULL */ - { 206, -1 }, /* (215) literal_list ::= signed_literal */ - { 206, -3 }, /* (216) literal_list ::= literal_list NK_COMMA signed_literal */ - { 188, -1 }, /* (217) db_name ::= NK_ID */ - { 209, -1 }, /* (218) table_name ::= NK_ID */ - { 202, -1 }, /* (219) column_name ::= NK_ID */ - { 219, -1 }, /* (220) function_name ::= NK_ID */ - { 233, -1 }, /* (221) table_alias ::= NK_ID */ - { 234, -1 }, /* (222) column_alias ::= NK_ID */ - { 184, -1 }, /* (223) user_name ::= NK_ID */ - { 220, -1 }, /* (224) index_name ::= NK_ID */ - { 227, -1 }, /* (225) topic_name ::= NK_ID */ - { 235, -1 }, /* (226) expression ::= literal */ - { 235, -1 }, /* (227) expression ::= pseudo_column */ - { 235, -1 }, /* (228) expression ::= column_reference */ - { 235, -4 }, /* (229) expression ::= function_name NK_LP expression_list NK_RP */ - { 235, -4 }, /* (230) expression ::= function_name NK_LP NK_STAR NK_RP */ - { 235, -1 }, /* (231) expression ::= subquery */ - { 235, -3 }, /* (232) expression ::= NK_LP expression NK_RP */ - { 235, -2 }, /* (233) expression ::= NK_PLUS expression */ - { 235, -2 }, /* (234) expression ::= NK_MINUS expression */ - { 235, -3 }, /* (235) expression ::= expression NK_PLUS expression */ - { 235, -3 }, /* (236) expression ::= expression NK_MINUS expression */ - { 235, -3 }, /* (237) expression ::= expression NK_STAR expression */ - { 235, -3 }, /* (238) expression ::= expression NK_SLASH expression */ - { 235, -3 }, /* (239) expression ::= expression NK_REM expression */ - { 226, -1 }, /* (240) expression_list ::= expression */ - { 226, -3 }, /* (241) expression_list ::= expression_list NK_COMMA expression */ - { 237, -1 }, /* (242) column_reference ::= column_name */ - { 237, -3 }, /* (243) column_reference ::= table_name NK_DOT column_name */ - { 236, -2 }, /* (244) pseudo_column ::= NK_UNDERLINE ROWTS */ - { 236, -1 }, /* (245) pseudo_column ::= TBNAME */ - { 236, -2 }, /* (246) pseudo_column ::= NK_UNDERLINE QSTARTTS */ - { 236, -2 }, /* (247) pseudo_column ::= NK_UNDERLINE QENDTS */ - { 236, -2 }, /* (248) pseudo_column ::= NK_UNDERLINE WSTARTTS */ - { 236, -2 }, /* (249) pseudo_column ::= NK_UNDERLINE WENDTS */ - { 236, -2 }, /* (250) pseudo_column ::= NK_UNDERLINE WDURATION */ - { 239, -3 }, /* (251) predicate ::= expression compare_op expression */ - { 239, -5 }, /* (252) predicate ::= expression BETWEEN expression AND expression */ - { 239, -6 }, /* (253) predicate ::= expression NOT BETWEEN expression AND expression */ - { 239, -3 }, /* (254) predicate ::= expression IS NULL */ - { 239, -4 }, /* (255) predicate ::= expression IS NOT NULL */ - { 239, -3 }, /* (256) predicate ::= expression in_op in_predicate_value */ - { 240, -1 }, /* (257) compare_op ::= NK_LT */ - { 240, -1 }, /* (258) compare_op ::= NK_GT */ - { 240, -1 }, /* (259) compare_op ::= NK_LE */ - { 240, -1 }, /* (260) compare_op ::= NK_GE */ - { 240, -1 }, /* (261) compare_op ::= NK_NE */ - { 240, -1 }, /* (262) compare_op ::= NK_EQ */ - { 240, -1 }, /* (263) compare_op ::= LIKE */ - { 240, -2 }, /* (264) compare_op ::= NOT LIKE */ - { 240, -1 }, /* (265) compare_op ::= MATCH */ - { 240, -1 }, /* (266) compare_op ::= NMATCH */ - { 241, -1 }, /* (267) in_op ::= IN */ - { 241, -2 }, /* (268) in_op ::= NOT IN */ - { 242, -3 }, /* (269) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 243, -1 }, /* (270) boolean_value_expression ::= boolean_primary */ - { 243, -2 }, /* (271) boolean_value_expression ::= NOT boolean_primary */ - { 243, -3 }, /* (272) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 243, -3 }, /* (273) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 244, -1 }, /* (274) boolean_primary ::= predicate */ - { 244, -3 }, /* (275) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 245, -1 }, /* (276) common_expression ::= expression */ - { 245, -1 }, /* (277) common_expression ::= boolean_value_expression */ - { 246, -2 }, /* (278) from_clause ::= FROM table_reference_list */ - { 247, -1 }, /* (279) table_reference_list ::= table_reference */ - { 247, -3 }, /* (280) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 248, -1 }, /* (281) table_reference ::= table_primary */ - { 248, -1 }, /* (282) table_reference ::= joined_table */ - { 249, -2 }, /* (283) table_primary ::= table_name alias_opt */ - { 249, -4 }, /* (284) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 249, -2 }, /* (285) table_primary ::= subquery alias_opt */ - { 249, -1 }, /* (286) table_primary ::= parenthesized_joined_table */ - { 251, 0 }, /* (287) alias_opt ::= */ - { 251, -1 }, /* (288) alias_opt ::= table_alias */ - { 251, -2 }, /* (289) alias_opt ::= AS table_alias */ - { 252, -3 }, /* (290) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 252, -3 }, /* (291) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 250, -6 }, /* (292) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 253, 0 }, /* (293) join_type ::= */ - { 253, -1 }, /* (294) join_type ::= INNER */ - { 255, -9 }, /* (295) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 256, 0 }, /* (296) set_quantifier_opt ::= */ - { 256, -1 }, /* (297) set_quantifier_opt ::= DISTINCT */ - { 256, -1 }, /* (298) set_quantifier_opt ::= ALL */ - { 257, -1 }, /* (299) select_list ::= NK_STAR */ - { 257, -1 }, /* (300) select_list ::= select_sublist */ - { 263, -1 }, /* (301) select_sublist ::= select_item */ - { 263, -3 }, /* (302) select_sublist ::= select_sublist NK_COMMA select_item */ - { 264, -1 }, /* (303) select_item ::= common_expression */ - { 264, -2 }, /* (304) select_item ::= common_expression column_alias */ - { 264, -3 }, /* (305) select_item ::= common_expression AS column_alias */ - { 264, -3 }, /* (306) select_item ::= table_name NK_DOT NK_STAR */ - { 258, 0 }, /* (307) where_clause_opt ::= */ - { 258, -2 }, /* (308) where_clause_opt ::= WHERE search_condition */ - { 259, 0 }, /* (309) partition_by_clause_opt ::= */ - { 259, -3 }, /* (310) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 260, 0 }, /* (311) twindow_clause_opt ::= */ - { 260, -6 }, /* (312) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 260, -4 }, /* (313) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ - { 260, -6 }, /* (314) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 260, -8 }, /* (315) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 224, 0 }, /* (316) sliding_opt ::= */ - { 224, -4 }, /* (317) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 265, 0 }, /* (318) fill_opt ::= */ - { 265, -4 }, /* (319) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 265, -6 }, /* (320) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 266, -1 }, /* (321) fill_mode ::= NONE */ - { 266, -1 }, /* (322) fill_mode ::= PREV */ - { 266, -1 }, /* (323) fill_mode ::= NULL */ - { 266, -1 }, /* (324) fill_mode ::= LINEAR */ - { 266, -1 }, /* (325) fill_mode ::= NEXT */ - { 261, 0 }, /* (326) group_by_clause_opt ::= */ - { 261, -3 }, /* (327) group_by_clause_opt ::= GROUP BY group_by_list */ - { 267, -1 }, /* (328) group_by_list ::= expression */ - { 267, -3 }, /* (329) group_by_list ::= group_by_list NK_COMMA expression */ - { 262, 0 }, /* (330) having_clause_opt ::= */ - { 262, -2 }, /* (331) having_clause_opt ::= HAVING search_condition */ - { 228, -4 }, /* (332) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 268, -1 }, /* (333) query_expression_body ::= query_primary */ - { 268, -4 }, /* (334) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 272, -1 }, /* (335) query_primary ::= query_specification */ - { 269, 0 }, /* (336) order_by_clause_opt ::= */ - { 269, -3 }, /* (337) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 270, 0 }, /* (338) slimit_clause_opt ::= */ - { 270, -2 }, /* (339) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 270, -4 }, /* (340) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 270, -4 }, /* (341) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 271, 0 }, /* (342) limit_clause_opt ::= */ - { 271, -2 }, /* (343) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 271, -4 }, /* (344) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 271, -4 }, /* (345) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 238, -3 }, /* (346) subquery ::= NK_LP query_expression NK_RP */ - { 254, -1 }, /* (347) search_condition ::= common_expression */ - { 273, -1 }, /* (348) sort_specification_list ::= sort_specification */ - { 273, -3 }, /* (349) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 274, -3 }, /* (350) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 275, 0 }, /* (351) ordering_specification_opt ::= */ - { 275, -1 }, /* (352) ordering_specification_opt ::= ASC */ - { 275, -1 }, /* (353) ordering_specification_opt ::= DESC */ - { 276, 0 }, /* (354) null_ordering_opt ::= */ - { 276, -2 }, /* (355) null_ordering_opt ::= NULLS FIRST */ - { 276, -2 }, /* (356) null_ordering_opt ::= NULLS LAST */ + { 192, -2 }, /* (78) alter_db_option ::= REPLICA NK_INTEGER */ + { 179, -9 }, /* (79) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 179, -3 }, /* (80) cmd ::= CREATE TABLE multi_create_clause */ + { 179, -9 }, /* (81) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 179, -3 }, /* (82) cmd ::= DROP TABLE multi_drop_clause */ + { 179, -4 }, /* (83) cmd ::= DROP STABLE exists_opt full_table_name */ + { 179, -3 }, /* (84) cmd ::= ALTER TABLE alter_table_clause */ + { 179, -3 }, /* (85) cmd ::= ALTER STABLE alter_table_clause */ + { 200, -2 }, /* (86) alter_table_clause ::= full_table_name alter_table_options */ + { 200, -5 }, /* (87) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 200, -4 }, /* (88) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 200, -5 }, /* (89) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 200, -5 }, /* (90) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 200, -5 }, /* (91) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 200, -4 }, /* (92) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 200, -5 }, /* (93) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 200, -5 }, /* (94) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 200, -6 }, /* (95) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ + { 197, -1 }, /* (96) multi_create_clause ::= create_subtable_clause */ + { 197, -2 }, /* (97) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 204, -9 }, /* (98) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ + { 199, -1 }, /* (99) multi_drop_clause ::= drop_table_clause */ + { 199, -2 }, /* (100) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 207, -2 }, /* (101) drop_table_clause ::= exists_opt full_table_name */ + { 205, 0 }, /* (102) specific_tags_opt ::= */ + { 205, -3 }, /* (103) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 193, -1 }, /* (104) full_table_name ::= table_name */ + { 193, -3 }, /* (105) full_table_name ::= db_name NK_DOT table_name */ + { 194, -1 }, /* (106) column_def_list ::= column_def */ + { 194, -3 }, /* (107) column_def_list ::= column_def_list NK_COMMA column_def */ + { 210, -2 }, /* (108) column_def ::= column_name type_name */ + { 210, -4 }, /* (109) column_def ::= column_name type_name COMMENT NK_STRING */ + { 203, -1 }, /* (110) type_name ::= BOOL */ + { 203, -1 }, /* (111) type_name ::= TINYINT */ + { 203, -1 }, /* (112) type_name ::= SMALLINT */ + { 203, -1 }, /* (113) type_name ::= INT */ + { 203, -1 }, /* (114) type_name ::= INTEGER */ + { 203, -1 }, /* (115) type_name ::= BIGINT */ + { 203, -1 }, /* (116) type_name ::= FLOAT */ + { 203, -1 }, /* (117) type_name ::= DOUBLE */ + { 203, -4 }, /* (118) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 203, -1 }, /* (119) type_name ::= TIMESTAMP */ + { 203, -4 }, /* (120) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 203, -2 }, /* (121) type_name ::= TINYINT UNSIGNED */ + { 203, -2 }, /* (122) type_name ::= SMALLINT UNSIGNED */ + { 203, -2 }, /* (123) type_name ::= INT UNSIGNED */ + { 203, -2 }, /* (124) type_name ::= BIGINT UNSIGNED */ + { 203, -1 }, /* (125) type_name ::= JSON */ + { 203, -4 }, /* (126) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 203, -1 }, /* (127) type_name ::= MEDIUMBLOB */ + { 203, -1 }, /* (128) type_name ::= BLOB */ + { 203, -4 }, /* (129) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 203, -1 }, /* (130) type_name ::= DECIMAL */ + { 203, -4 }, /* (131) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 203, -6 }, /* (132) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 195, 0 }, /* (133) tags_def_opt ::= */ + { 195, -1 }, /* (134) tags_def_opt ::= tags_def */ + { 198, -4 }, /* (135) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 196, 0 }, /* (136) table_options ::= */ + { 196, -3 }, /* (137) table_options ::= table_options COMMENT NK_STRING */ + { 196, -3 }, /* (138) table_options ::= table_options KEEP NK_INTEGER */ + { 196, -3 }, /* (139) table_options ::= table_options TTL NK_INTEGER */ + { 196, -5 }, /* (140) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 196, -5 }, /* (141) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + { 196, -3 }, /* (142) table_options ::= table_options FILE_FACTOR NK_FLOAT */ + { 196, -3 }, /* (143) table_options ::= table_options DELAY NK_INTEGER */ + { 201, -1 }, /* (144) alter_table_options ::= alter_table_option */ + { 201, -2 }, /* (145) alter_table_options ::= alter_table_options alter_table_option */ + { 212, -2 }, /* (146) alter_table_option ::= COMMENT NK_STRING */ + { 212, -2 }, /* (147) alter_table_option ::= KEEP NK_INTEGER */ + { 212, -2 }, /* (148) alter_table_option ::= TTL NK_INTEGER */ + { 208, -1 }, /* (149) col_name_list ::= col_name */ + { 208, -3 }, /* (150) col_name_list ::= col_name_list NK_COMMA col_name */ + { 213, -1 }, /* (151) col_name ::= column_name */ + { 179, -2 }, /* (152) cmd ::= SHOW DNODES */ + { 179, -2 }, /* (153) cmd ::= SHOW USERS */ + { 179, -2 }, /* (154) cmd ::= SHOW DATABASES */ + { 179, -4 }, /* (155) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 179, -4 }, /* (156) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 179, -3 }, /* (157) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 179, -2 }, /* (158) cmd ::= SHOW MNODES */ + { 179, -2 }, /* (159) cmd ::= SHOW MODULES */ + { 179, -2 }, /* (160) cmd ::= SHOW QNODES */ + { 179, -2 }, /* (161) cmd ::= SHOW FUNCTIONS */ + { 179, -5 }, /* (162) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 179, -2 }, /* (163) cmd ::= SHOW STREAMS */ + { 214, 0 }, /* (164) db_name_cond_opt ::= */ + { 214, -2 }, /* (165) db_name_cond_opt ::= db_name NK_DOT */ + { 215, 0 }, /* (166) like_pattern_opt ::= */ + { 215, -2 }, /* (167) like_pattern_opt ::= LIKE NK_STRING */ + { 216, -1 }, /* (168) table_name_cond ::= table_name */ + { 217, 0 }, /* (169) from_db_opt ::= */ + { 217, -2 }, /* (170) from_db_opt ::= FROM db_name */ + { 211, -1 }, /* (171) func_name_list ::= func_name */ + { 211, -3 }, /* (172) func_name_list ::= func_name_list NK_COMMA col_name */ + { 218, -1 }, /* (173) func_name ::= function_name */ + { 179, -8 }, /* (174) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 179, -10 }, /* (175) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 179, -6 }, /* (176) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 221, 0 }, /* (177) index_options ::= */ + { 221, -9 }, /* (178) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 221, -11 }, /* (179) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 222, -1 }, /* (180) func_list ::= func */ + { 222, -3 }, /* (181) func_list ::= func_list NK_COMMA func */ + { 225, -4 }, /* (182) func ::= function_name NK_LP expression_list NK_RP */ + { 179, -6 }, /* (183) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 179, -6 }, /* (184) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ + { 179, -4 }, /* (185) cmd ::= DROP TOPIC exists_opt topic_name */ + { 179, -2 }, /* (186) cmd ::= DESC full_table_name */ + { 179, -2 }, /* (187) cmd ::= DESCRIBE full_table_name */ + { 179, -3 }, /* (188) cmd ::= RESET QUERY CACHE */ + { 179, -4 }, /* (189) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 229, 0 }, /* (190) analyze_opt ::= */ + { 229, -1 }, /* (191) analyze_opt ::= ANALYZE */ + { 230, 0 }, /* (192) explain_options ::= */ + { 230, -3 }, /* (193) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 230, -3 }, /* (194) explain_options ::= explain_options RATIO NK_FLOAT */ + { 179, -1 }, /* (195) cmd ::= query_expression */ + { 182, -1 }, /* (196) literal ::= NK_INTEGER */ + { 182, -1 }, /* (197) literal ::= NK_FLOAT */ + { 182, -1 }, /* (198) literal ::= NK_STRING */ + { 182, -1 }, /* (199) literal ::= NK_BOOL */ + { 182, -2 }, /* (200) literal ::= TIMESTAMP NK_STRING */ + { 182, -1 }, /* (201) literal ::= duration_literal */ + { 182, -1 }, /* (202) literal ::= NULL */ + { 223, -1 }, /* (203) duration_literal ::= NK_VARIABLE */ + { 231, -1 }, /* (204) signed ::= NK_INTEGER */ + { 231, -2 }, /* (205) signed ::= NK_PLUS NK_INTEGER */ + { 231, -2 }, /* (206) signed ::= NK_MINUS NK_INTEGER */ + { 231, -1 }, /* (207) signed ::= NK_FLOAT */ + { 231, -2 }, /* (208) signed ::= NK_PLUS NK_FLOAT */ + { 231, -2 }, /* (209) signed ::= NK_MINUS NK_FLOAT */ + { 232, -1 }, /* (210) signed_literal ::= signed */ + { 232, -1 }, /* (211) signed_literal ::= NK_STRING */ + { 232, -1 }, /* (212) signed_literal ::= NK_BOOL */ + { 232, -2 }, /* (213) signed_literal ::= TIMESTAMP NK_STRING */ + { 232, -1 }, /* (214) signed_literal ::= duration_literal */ + { 232, -1 }, /* (215) signed_literal ::= NULL */ + { 206, -1 }, /* (216) literal_list ::= signed_literal */ + { 206, -3 }, /* (217) literal_list ::= literal_list NK_COMMA signed_literal */ + { 188, -1 }, /* (218) db_name ::= NK_ID */ + { 209, -1 }, /* (219) table_name ::= NK_ID */ + { 202, -1 }, /* (220) column_name ::= NK_ID */ + { 219, -1 }, /* (221) function_name ::= NK_ID */ + { 233, -1 }, /* (222) table_alias ::= NK_ID */ + { 234, -1 }, /* (223) column_alias ::= NK_ID */ + { 184, -1 }, /* (224) user_name ::= NK_ID */ + { 220, -1 }, /* (225) index_name ::= NK_ID */ + { 227, -1 }, /* (226) topic_name ::= NK_ID */ + { 235, -1 }, /* (227) expression ::= literal */ + { 235, -1 }, /* (228) expression ::= pseudo_column */ + { 235, -1 }, /* (229) expression ::= column_reference */ + { 235, -4 }, /* (230) expression ::= function_name NK_LP expression_list NK_RP */ + { 235, -4 }, /* (231) expression ::= function_name NK_LP NK_STAR NK_RP */ + { 235, -1 }, /* (232) expression ::= subquery */ + { 235, -3 }, /* (233) expression ::= NK_LP expression NK_RP */ + { 235, -2 }, /* (234) expression ::= NK_PLUS expression */ + { 235, -2 }, /* (235) expression ::= NK_MINUS expression */ + { 235, -3 }, /* (236) expression ::= expression NK_PLUS expression */ + { 235, -3 }, /* (237) expression ::= expression NK_MINUS expression */ + { 235, -3 }, /* (238) expression ::= expression NK_STAR expression */ + { 235, -3 }, /* (239) expression ::= expression NK_SLASH expression */ + { 235, -3 }, /* (240) expression ::= expression NK_REM expression */ + { 226, -1 }, /* (241) expression_list ::= expression */ + { 226, -3 }, /* (242) expression_list ::= expression_list NK_COMMA expression */ + { 237, -1 }, /* (243) column_reference ::= column_name */ + { 237, -3 }, /* (244) column_reference ::= table_name NK_DOT column_name */ + { 236, -2 }, /* (245) pseudo_column ::= NK_UNDERLINE ROWTS */ + { 236, -1 }, /* (246) pseudo_column ::= TBNAME */ + { 236, -2 }, /* (247) pseudo_column ::= NK_UNDERLINE QSTARTTS */ + { 236, -2 }, /* (248) pseudo_column ::= NK_UNDERLINE QENDTS */ + { 236, -2 }, /* (249) pseudo_column ::= NK_UNDERLINE WSTARTTS */ + { 236, -2 }, /* (250) pseudo_column ::= NK_UNDERLINE WENDTS */ + { 236, -2 }, /* (251) pseudo_column ::= NK_UNDERLINE WDURATION */ + { 239, -3 }, /* (252) predicate ::= expression compare_op expression */ + { 239, -5 }, /* (253) predicate ::= expression BETWEEN expression AND expression */ + { 239, -6 }, /* (254) predicate ::= expression NOT BETWEEN expression AND expression */ + { 239, -3 }, /* (255) predicate ::= expression IS NULL */ + { 239, -4 }, /* (256) predicate ::= expression IS NOT NULL */ + { 239, -3 }, /* (257) predicate ::= expression in_op in_predicate_value */ + { 240, -1 }, /* (258) compare_op ::= NK_LT */ + { 240, -1 }, /* (259) compare_op ::= NK_GT */ + { 240, -1 }, /* (260) compare_op ::= NK_LE */ + { 240, -1 }, /* (261) compare_op ::= NK_GE */ + { 240, -1 }, /* (262) compare_op ::= NK_NE */ + { 240, -1 }, /* (263) compare_op ::= NK_EQ */ + { 240, -1 }, /* (264) compare_op ::= LIKE */ + { 240, -2 }, /* (265) compare_op ::= NOT LIKE */ + { 240, -1 }, /* (266) compare_op ::= MATCH */ + { 240, -1 }, /* (267) compare_op ::= NMATCH */ + { 241, -1 }, /* (268) in_op ::= IN */ + { 241, -2 }, /* (269) in_op ::= NOT IN */ + { 242, -3 }, /* (270) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 243, -1 }, /* (271) boolean_value_expression ::= boolean_primary */ + { 243, -2 }, /* (272) boolean_value_expression ::= NOT boolean_primary */ + { 243, -3 }, /* (273) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 243, -3 }, /* (274) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 244, -1 }, /* (275) boolean_primary ::= predicate */ + { 244, -3 }, /* (276) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 245, -1 }, /* (277) common_expression ::= expression */ + { 245, -1 }, /* (278) common_expression ::= boolean_value_expression */ + { 246, -2 }, /* (279) from_clause ::= FROM table_reference_list */ + { 247, -1 }, /* (280) table_reference_list ::= table_reference */ + { 247, -3 }, /* (281) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 248, -1 }, /* (282) table_reference ::= table_primary */ + { 248, -1 }, /* (283) table_reference ::= joined_table */ + { 249, -2 }, /* (284) table_primary ::= table_name alias_opt */ + { 249, -4 }, /* (285) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 249, -2 }, /* (286) table_primary ::= subquery alias_opt */ + { 249, -1 }, /* (287) table_primary ::= parenthesized_joined_table */ + { 251, 0 }, /* (288) alias_opt ::= */ + { 251, -1 }, /* (289) alias_opt ::= table_alias */ + { 251, -2 }, /* (290) alias_opt ::= AS table_alias */ + { 252, -3 }, /* (291) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 252, -3 }, /* (292) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 250, -6 }, /* (293) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 253, 0 }, /* (294) join_type ::= */ + { 253, -1 }, /* (295) join_type ::= INNER */ + { 255, -9 }, /* (296) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 256, 0 }, /* (297) set_quantifier_opt ::= */ + { 256, -1 }, /* (298) set_quantifier_opt ::= DISTINCT */ + { 256, -1 }, /* (299) set_quantifier_opt ::= ALL */ + { 257, -1 }, /* (300) select_list ::= NK_STAR */ + { 257, -1 }, /* (301) select_list ::= select_sublist */ + { 263, -1 }, /* (302) select_sublist ::= select_item */ + { 263, -3 }, /* (303) select_sublist ::= select_sublist NK_COMMA select_item */ + { 264, -1 }, /* (304) select_item ::= common_expression */ + { 264, -2 }, /* (305) select_item ::= common_expression column_alias */ + { 264, -3 }, /* (306) select_item ::= common_expression AS column_alias */ + { 264, -3 }, /* (307) select_item ::= table_name NK_DOT NK_STAR */ + { 258, 0 }, /* (308) where_clause_opt ::= */ + { 258, -2 }, /* (309) where_clause_opt ::= WHERE search_condition */ + { 259, 0 }, /* (310) partition_by_clause_opt ::= */ + { 259, -3 }, /* (311) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 260, 0 }, /* (312) twindow_clause_opt ::= */ + { 260, -6 }, /* (313) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 260, -4 }, /* (314) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ + { 260, -6 }, /* (315) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 260, -8 }, /* (316) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 224, 0 }, /* (317) sliding_opt ::= */ + { 224, -4 }, /* (318) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 265, 0 }, /* (319) fill_opt ::= */ + { 265, -4 }, /* (320) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 265, -6 }, /* (321) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 266, -1 }, /* (322) fill_mode ::= NONE */ + { 266, -1 }, /* (323) fill_mode ::= PREV */ + { 266, -1 }, /* (324) fill_mode ::= NULL */ + { 266, -1 }, /* (325) fill_mode ::= LINEAR */ + { 266, -1 }, /* (326) fill_mode ::= NEXT */ + { 261, 0 }, /* (327) group_by_clause_opt ::= */ + { 261, -3 }, /* (328) group_by_clause_opt ::= GROUP BY group_by_list */ + { 267, -1 }, /* (329) group_by_list ::= expression */ + { 267, -3 }, /* (330) group_by_list ::= group_by_list NK_COMMA expression */ + { 262, 0 }, /* (331) having_clause_opt ::= */ + { 262, -2 }, /* (332) having_clause_opt ::= HAVING search_condition */ + { 228, -4 }, /* (333) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 268, -1 }, /* (334) query_expression_body ::= query_primary */ + { 268, -4 }, /* (335) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 272, -1 }, /* (336) query_primary ::= query_specification */ + { 269, 0 }, /* (337) order_by_clause_opt ::= */ + { 269, -3 }, /* (338) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 270, 0 }, /* (339) slimit_clause_opt ::= */ + { 270, -2 }, /* (340) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 270, -4 }, /* (341) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 270, -4 }, /* (342) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 271, 0 }, /* (343) limit_clause_opt ::= */ + { 271, -2 }, /* (344) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 271, -4 }, /* (345) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 271, -4 }, /* (346) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 238, -3 }, /* (347) subquery ::= NK_LP query_expression NK_RP */ + { 254, -1 }, /* (348) search_condition ::= common_expression */ + { 273, -1 }, /* (349) sort_specification_list ::= sort_specification */ + { 273, -3 }, /* (350) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 274, -3 }, /* (351) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 275, 0 }, /* (352) ordering_specification_opt ::= */ + { 275, -1 }, /* (353) ordering_specification_opt ::= ASC */ + { 275, -1 }, /* (354) ordering_specification_opt ::= DESC */ + { 276, 0 }, /* (355) null_ordering_opt ::= */ + { 276, -2 }, /* (356) null_ordering_opt ::= NULLS FIRST */ + { 276, -2 }, /* (357) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -2469,15 +2466,15 @@ static YYACTIONTYPE yy_reduce( case 36: /* dnode_endpoint ::= NK_STRING */ case 37: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==37); case 38: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==38); - case 217: /* db_name ::= NK_ID */ yytestcase(yyruleno==217); - case 218: /* table_name ::= NK_ID */ yytestcase(yyruleno==218); - case 219: /* column_name ::= NK_ID */ yytestcase(yyruleno==219); - case 220: /* function_name ::= NK_ID */ yytestcase(yyruleno==220); - case 221: /* table_alias ::= NK_ID */ yytestcase(yyruleno==221); - case 222: /* column_alias ::= NK_ID */ yytestcase(yyruleno==222); - case 223: /* user_name ::= NK_ID */ yytestcase(yyruleno==223); - case 224: /* index_name ::= NK_ID */ yytestcase(yyruleno==224); - case 225: /* topic_name ::= NK_ID */ yytestcase(yyruleno==225); + case 218: /* db_name ::= NK_ID */ yytestcase(yyruleno==218); + case 219: /* table_name ::= NK_ID */ yytestcase(yyruleno==219); + case 220: /* column_name ::= NK_ID */ yytestcase(yyruleno==220); + case 221: /* function_name ::= NK_ID */ yytestcase(yyruleno==221); + case 222: /* table_alias ::= NK_ID */ yytestcase(yyruleno==222); + case 223: /* column_alias ::= NK_ID */ yytestcase(yyruleno==223); + case 224: /* user_name ::= NK_ID */ yytestcase(yyruleno==224); + case 225: /* index_name ::= NK_ID */ yytestcase(yyruleno==225); + case 226: /* topic_name ::= NK_ID */ yytestcase(yyruleno==226); { yylhsminor.yy95 = yymsp[0].minor.yy0; } yymsp[0].minor.yy95 = yylhsminor.yy95; break; @@ -2510,8 +2507,8 @@ static YYACTIONTYPE yy_reduce( break; case 48: /* not_exists_opt ::= */ case 50: /* exists_opt ::= */ yytestcase(yyruleno==50); - case 189: /* analyze_opt ::= */ yytestcase(yyruleno==189); - case 296: /* set_quantifier_opt ::= */ yytestcase(yyruleno==296); + case 190: /* analyze_opt ::= */ yytestcase(yyruleno==190); + case 297: /* set_quantifier_opt ::= */ yytestcase(yyruleno==297); { yymsp[1].minor.yy151 = false; } break; case 49: /* exists_opt ::= IF EXISTS */ @@ -2618,429 +2615,432 @@ static YYACTIONTYPE yy_reduce( case 77: /* alter_db_option ::= CACHELAST NK_INTEGER */ { yymsp[-1].minor.yy145.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } break; - case 78: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 80: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==80); + case 78: /* alter_db_option ::= REPLICA NK_INTEGER */ +{ yymsp[-1].minor.yy145.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } + break; + case 79: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 81: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==81); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy151, yymsp[-5].minor.yy46, yymsp[-3].minor.yy194, yymsp[-1].minor.yy194, yymsp[0].minor.yy46); } break; - case 79: /* cmd ::= CREATE TABLE multi_create_clause */ + case 80: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy194); } break; - case 81: /* cmd ::= DROP TABLE multi_drop_clause */ + case 82: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy194); } break; - case 82: /* cmd ::= DROP STABLE exists_opt full_table_name */ + case 83: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy151, yymsp[0].minor.yy46); } break; - case 83: /* cmd ::= ALTER TABLE alter_table_clause */ - case 84: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==84); - case 194: /* cmd ::= query_expression */ yytestcase(yyruleno==194); + case 84: /* cmd ::= ALTER TABLE alter_table_clause */ + case 85: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==85); + case 195: /* cmd ::= query_expression */ yytestcase(yyruleno==195); { pCxt->pRootNode = yymsp[0].minor.yy46; } break; - case 85: /* alter_table_clause ::= full_table_name alter_table_options */ + case 86: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy46 = createAlterTableOption(pCxt, yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 86: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + case 87: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy46 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400); } yymsp[-4].minor.yy46 = yylhsminor.yy46; break; - case 87: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ + case 88: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy46 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy46, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy95); } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 88: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + case 89: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy46 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400); } yymsp[-4].minor.yy46 = yylhsminor.yy46; break; - case 89: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + case 90: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy46 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy95, &yymsp[0].minor.yy95); } yymsp[-4].minor.yy46 = yylhsminor.yy46; break; - case 90: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + case 91: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy46 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400); } yymsp[-4].minor.yy46 = yylhsminor.yy46; break; - case 91: /* alter_table_clause ::= full_table_name DROP TAG column_name */ + case 92: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy46 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy46, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy95); } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 92: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + case 93: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy46 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400); } yymsp[-4].minor.yy46 = yylhsminor.yy46; break; - case 93: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + case 94: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy46 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy95, &yymsp[0].minor.yy95); } yymsp[-4].minor.yy46 = yylhsminor.yy46; break; - case 94: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ + case 95: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ { yylhsminor.yy46 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy46, &yymsp[-2].minor.yy95, yymsp[0].minor.yy46); } yymsp[-5].minor.yy46 = yylhsminor.yy46; break; - case 95: /* multi_create_clause ::= create_subtable_clause */ - case 98: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==98); - case 105: /* column_def_list ::= column_def */ yytestcase(yyruleno==105); - case 148: /* col_name_list ::= col_name */ yytestcase(yyruleno==148); - case 170: /* func_name_list ::= func_name */ yytestcase(yyruleno==170); - case 179: /* func_list ::= func */ yytestcase(yyruleno==179); - case 215: /* literal_list ::= signed_literal */ yytestcase(yyruleno==215); - case 301: /* select_sublist ::= select_item */ yytestcase(yyruleno==301); - case 348: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==348); + case 96: /* multi_create_clause ::= create_subtable_clause */ + case 99: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==99); + case 106: /* column_def_list ::= column_def */ yytestcase(yyruleno==106); + case 149: /* col_name_list ::= col_name */ yytestcase(yyruleno==149); + case 171: /* func_name_list ::= func_name */ yytestcase(yyruleno==171); + case 180: /* func_list ::= func */ yytestcase(yyruleno==180); + case 216: /* literal_list ::= signed_literal */ yytestcase(yyruleno==216); + case 302: /* select_sublist ::= select_item */ yytestcase(yyruleno==302); + case 349: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==349); { yylhsminor.yy194 = createNodeList(pCxt, yymsp[0].minor.yy46); } yymsp[0].minor.yy194 = yylhsminor.yy194; break; - case 96: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 99: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==99); + case 97: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 100: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==100); { yylhsminor.yy194 = addNodeToList(pCxt, yymsp[-1].minor.yy194, yymsp[0].minor.yy46); } yymsp[-1].minor.yy194 = yylhsminor.yy194; break; - case 97: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ + case 98: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ { yylhsminor.yy46 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy151, yymsp[-7].minor.yy46, yymsp[-5].minor.yy46, yymsp[-4].minor.yy194, yymsp[-1].minor.yy194); } yymsp[-8].minor.yy46 = yylhsminor.yy46; break; - case 100: /* drop_table_clause ::= exists_opt full_table_name */ + case 101: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy46 = createDropTableClause(pCxt, yymsp[-1].minor.yy151, yymsp[0].minor.yy46); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 101: /* specific_tags_opt ::= */ - case 132: /* tags_def_opt ::= */ yytestcase(yyruleno==132); - case 309: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==309); - case 326: /* group_by_clause_opt ::= */ yytestcase(yyruleno==326); - case 336: /* order_by_clause_opt ::= */ yytestcase(yyruleno==336); + case 102: /* specific_tags_opt ::= */ + case 133: /* tags_def_opt ::= */ yytestcase(yyruleno==133); + case 310: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==310); + case 327: /* group_by_clause_opt ::= */ yytestcase(yyruleno==327); + case 337: /* order_by_clause_opt ::= */ yytestcase(yyruleno==337); { yymsp[1].minor.yy194 = NULL; } break; - case 102: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ + case 103: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ { yymsp[-2].minor.yy194 = yymsp[-1].minor.yy194; } break; - case 103: /* full_table_name ::= table_name */ + case 104: /* full_table_name ::= table_name */ { yylhsminor.yy46 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy95, NULL); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 104: /* full_table_name ::= db_name NK_DOT table_name */ + case 105: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy46 = createRealTableNode(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy95, NULL); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 106: /* column_def_list ::= column_def_list NK_COMMA column_def */ - case 149: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==149); - case 171: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==171); - case 180: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==180); - case 216: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==216); - case 302: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==302); - case 349: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==349); + case 107: /* column_def_list ::= column_def_list NK_COMMA column_def */ + case 150: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==150); + case 172: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==172); + case 181: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==181); + case 217: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==217); + case 303: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==303); + case 350: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==350); { yylhsminor.yy194 = addNodeToList(pCxt, yymsp[-2].minor.yy194, yymsp[0].minor.yy46); } yymsp[-2].minor.yy194 = yylhsminor.yy194; break; - case 107: /* column_def ::= column_name type_name */ + case 108: /* column_def ::= column_name type_name */ { yylhsminor.yy46 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400, NULL); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 108: /* column_def ::= column_name type_name COMMENT NK_STRING */ + case 109: /* column_def ::= column_name type_name COMMENT NK_STRING */ { yylhsminor.yy46 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy95, yymsp[-2].minor.yy400, &yymsp[0].minor.yy0); } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 109: /* type_name ::= BOOL */ + case 110: /* type_name ::= BOOL */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 110: /* type_name ::= TINYINT */ + case 111: /* type_name ::= TINYINT */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 111: /* type_name ::= SMALLINT */ + case 112: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 112: /* type_name ::= INT */ - case 113: /* type_name ::= INTEGER */ yytestcase(yyruleno==113); + case 113: /* type_name ::= INT */ + case 114: /* type_name ::= INTEGER */ yytestcase(yyruleno==114); { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 114: /* type_name ::= BIGINT */ + case 115: /* type_name ::= BIGINT */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 115: /* type_name ::= FLOAT */ + case 116: /* type_name ::= FLOAT */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 116: /* type_name ::= DOUBLE */ + case 117: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 117: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + case 118: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 118: /* type_name ::= TIMESTAMP */ + case 119: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 119: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + case 120: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 120: /* type_name ::= TINYINT UNSIGNED */ + case 121: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 121: /* type_name ::= SMALLINT UNSIGNED */ + case 122: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 122: /* type_name ::= INT UNSIGNED */ + case 123: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 123: /* type_name ::= BIGINT UNSIGNED */ + case 124: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 124: /* type_name ::= JSON */ + case 125: /* type_name ::= JSON */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 125: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + case 126: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 126: /* type_name ::= MEDIUMBLOB */ + case 127: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 127: /* type_name ::= BLOB */ + case 128: /* type_name ::= BLOB */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 128: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + case 129: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 129: /* type_name ::= DECIMAL */ + case 130: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 130: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + case 131: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 131: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + case 132: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 133: /* tags_def_opt ::= tags_def */ - case 300: /* select_list ::= select_sublist */ yytestcase(yyruleno==300); + case 134: /* tags_def_opt ::= tags_def */ + case 301: /* select_list ::= select_sublist */ yytestcase(yyruleno==301); { yylhsminor.yy194 = yymsp[0].minor.yy194; } yymsp[0].minor.yy194 = yylhsminor.yy194; break; - case 134: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ + case 135: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ { yymsp[-3].minor.yy194 = yymsp[-1].minor.yy194; } break; - case 135: /* table_options ::= */ + case 136: /* table_options ::= */ { yymsp[1].minor.yy46 = createDefaultTableOptions(pCxt); } break; - case 136: /* table_options ::= table_options COMMENT NK_STRING */ + case 137: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 137: /* table_options ::= table_options KEEP NK_INTEGER */ + case 138: /* table_options ::= table_options KEEP NK_INTEGER */ { yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_KEEP, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 138: /* table_options ::= table_options TTL NK_INTEGER */ + case 139: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 139: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + case 140: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy46 = setTableSmaOption(pCxt, yymsp[-4].minor.yy46, yymsp[-1].minor.yy194); } yymsp[-4].minor.yy46 = yylhsminor.yy46; break; - case 140: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + case 141: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ { yylhsminor.yy46 = setTableRollupOption(pCxt, yymsp[-4].minor.yy46, yymsp[-1].minor.yy194); } yymsp[-4].minor.yy46 = yylhsminor.yy46; break; - case 141: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ + case 142: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ { yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 142: /* table_options ::= table_options DELAY NK_INTEGER */ + case 143: /* table_options ::= table_options DELAY NK_INTEGER */ { yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_DELAY, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 143: /* alter_table_options ::= alter_table_option */ + case 144: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy46 = createDefaultAlterTableOptions(pCxt); yylhsminor.yy46 = setTableOption(pCxt, yylhsminor.yy46, yymsp[0].minor.yy145.type, &yymsp[0].minor.yy145.val); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 144: /* alter_table_options ::= alter_table_options alter_table_option */ + case 145: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy46 = setTableOption(pCxt, yymsp[-1].minor.yy46, yymsp[0].minor.yy145.type, &yymsp[0].minor.yy145.val); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 145: /* alter_table_option ::= COMMENT NK_STRING */ + case 146: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy145.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } break; - case 146: /* alter_table_option ::= KEEP NK_INTEGER */ + case 147: /* alter_table_option ::= KEEP NK_INTEGER */ { yymsp[-1].minor.yy145.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } break; - case 147: /* alter_table_option ::= TTL NK_INTEGER */ + case 148: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy145.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } break; - case 150: /* col_name ::= column_name */ + case 151: /* col_name ::= column_name */ { yylhsminor.yy46 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy95); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 151: /* cmd ::= SHOW DNODES */ + case 152: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } break; - case 152: /* cmd ::= SHOW USERS */ + case 153: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); } break; - case 153: /* cmd ::= SHOW DATABASES */ + case 154: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } break; - case 154: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + case 155: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy46, yymsp[0].minor.yy46); } break; - case 155: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + case 156: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy46, yymsp[0].minor.yy46); } break; - case 156: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ + case 157: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy46, NULL); } break; - case 157: /* cmd ::= SHOW MNODES */ + case 158: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } break; - case 158: /* cmd ::= SHOW MODULES */ + case 159: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); } break; - case 159: /* cmd ::= SHOW QNODES */ + case 160: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); } break; - case 160: /* cmd ::= SHOW FUNCTIONS */ + case 161: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } break; - case 161: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + case 162: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } break; - case 162: /* cmd ::= SHOW STREAMS */ + case 163: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } break; - case 163: /* db_name_cond_opt ::= */ - case 168: /* from_db_opt ::= */ yytestcase(yyruleno==168); + case 164: /* db_name_cond_opt ::= */ + case 169: /* from_db_opt ::= */ yytestcase(yyruleno==169); { yymsp[1].minor.yy46 = createDefaultDatabaseCondValue(pCxt); } break; - case 164: /* db_name_cond_opt ::= db_name NK_DOT */ + case 165: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy95); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 165: /* like_pattern_opt ::= */ - case 176: /* index_options ::= */ yytestcase(yyruleno==176); - case 307: /* where_clause_opt ::= */ yytestcase(yyruleno==307); - case 311: /* twindow_clause_opt ::= */ yytestcase(yyruleno==311); - case 316: /* sliding_opt ::= */ yytestcase(yyruleno==316); - case 318: /* fill_opt ::= */ yytestcase(yyruleno==318); - case 330: /* having_clause_opt ::= */ yytestcase(yyruleno==330); - case 338: /* slimit_clause_opt ::= */ yytestcase(yyruleno==338); - case 342: /* limit_clause_opt ::= */ yytestcase(yyruleno==342); + case 166: /* like_pattern_opt ::= */ + case 177: /* index_options ::= */ yytestcase(yyruleno==177); + case 308: /* where_clause_opt ::= */ yytestcase(yyruleno==308); + case 312: /* twindow_clause_opt ::= */ yytestcase(yyruleno==312); + case 317: /* sliding_opt ::= */ yytestcase(yyruleno==317); + case 319: /* fill_opt ::= */ yytestcase(yyruleno==319); + case 331: /* having_clause_opt ::= */ yytestcase(yyruleno==331); + case 339: /* slimit_clause_opt ::= */ yytestcase(yyruleno==339); + case 343: /* limit_clause_opt ::= */ yytestcase(yyruleno==343); { yymsp[1].minor.yy46 = NULL; } break; - case 166: /* like_pattern_opt ::= LIKE NK_STRING */ + case 167: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 167: /* table_name_cond ::= table_name */ + case 168: /* table_name_cond ::= table_name */ { yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy95); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 169: /* from_db_opt ::= FROM db_name */ + case 170: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy95); } break; - case 172: /* func_name ::= function_name */ + case 173: /* func_name ::= function_name */ { yylhsminor.yy46 = createFunctionNode(pCxt, &yymsp[0].minor.yy95, NULL); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 173: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + case 174: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy151, &yymsp[-3].minor.yy95, &yymsp[-1].minor.yy95, NULL, yymsp[0].minor.yy46); } break; - case 174: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + case 175: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy151, &yymsp[-5].minor.yy95, &yymsp[-3].minor.yy95, yymsp[-1].minor.yy194, NULL); } break; - case 175: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ + case 176: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy151, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy95); } break; - case 177: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + case 178: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ { yymsp[-8].minor.yy46 = createIndexOption(pCxt, yymsp[-6].minor.yy194, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), NULL, yymsp[0].minor.yy46); } break; - case 178: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + case 179: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ { yymsp[-10].minor.yy46 = createIndexOption(pCxt, yymsp[-8].minor.yy194, releaseRawExprNode(pCxt, yymsp[-4].minor.yy46), releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), yymsp[0].minor.yy46); } break; - case 181: /* func ::= function_name NK_LP expression_list NK_RP */ + case 182: /* func ::= function_name NK_LP expression_list NK_RP */ { yylhsminor.yy46 = createFunctionNode(pCxt, &yymsp[-3].minor.yy95, yymsp[-1].minor.yy194); } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 182: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + case 183: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ { pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy151, &yymsp[-2].minor.yy95, yymsp[0].minor.yy46, NULL); } break; - case 183: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ + case 184: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ { pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy151, &yymsp[-2].minor.yy95, NULL, &yymsp[0].minor.yy95); } break; - case 184: /* cmd ::= DROP TOPIC exists_opt topic_name */ + case 185: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy151, &yymsp[0].minor.yy95); } break; - case 185: /* cmd ::= DESC full_table_name */ - case 186: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==186); + case 186: /* cmd ::= DESC full_table_name */ + case 187: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==187); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy46); } break; - case 187: /* cmd ::= RESET QUERY CACHE */ + case 188: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 188: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + case 189: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy151, yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } break; - case 190: /* analyze_opt ::= ANALYZE */ - case 297: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==297); + case 191: /* analyze_opt ::= ANALYZE */ + case 298: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==298); { yymsp[0].minor.yy151 = true; } break; - case 191: /* explain_options ::= */ + case 192: /* explain_options ::= */ { yymsp[1].minor.yy46 = createDefaultExplainOptions(pCxt); } break; - case 192: /* explain_options ::= explain_options VERBOSE NK_BOOL */ + case 193: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy46 = setExplainVerbose(pCxt, yymsp[-2].minor.yy46, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 193: /* explain_options ::= explain_options RATIO NK_FLOAT */ + case 194: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy46 = setExplainRatio(pCxt, yymsp[-2].minor.yy46, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 195: /* literal ::= NK_INTEGER */ + case 196: /* literal ::= NK_INTEGER */ { yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 196: /* literal ::= NK_FLOAT */ + case 197: /* literal ::= NK_FLOAT */ { yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 197: /* literal ::= NK_STRING */ + case 198: /* literal ::= NK_STRING */ { yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 198: /* literal ::= NK_BOOL */ + case 199: /* literal ::= NK_BOOL */ { yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 199: /* literal ::= TIMESTAMP NK_STRING */ + case 200: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 200: /* literal ::= duration_literal */ - case 209: /* signed_literal ::= signed */ yytestcase(yyruleno==209); - case 226: /* expression ::= literal */ yytestcase(yyruleno==226); - case 227: /* expression ::= pseudo_column */ yytestcase(yyruleno==227); - case 228: /* expression ::= column_reference */ yytestcase(yyruleno==228); - case 231: /* expression ::= subquery */ yytestcase(yyruleno==231); - case 270: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==270); - case 274: /* boolean_primary ::= predicate */ yytestcase(yyruleno==274); - case 276: /* common_expression ::= expression */ yytestcase(yyruleno==276); - case 277: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==277); - case 279: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==279); - case 281: /* table_reference ::= table_primary */ yytestcase(yyruleno==281); - case 282: /* table_reference ::= joined_table */ yytestcase(yyruleno==282); - case 286: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==286); - case 333: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==333); - case 335: /* query_primary ::= query_specification */ yytestcase(yyruleno==335); + case 201: /* literal ::= duration_literal */ + case 210: /* signed_literal ::= signed */ yytestcase(yyruleno==210); + case 227: /* expression ::= literal */ yytestcase(yyruleno==227); + case 228: /* expression ::= pseudo_column */ yytestcase(yyruleno==228); + case 229: /* expression ::= column_reference */ yytestcase(yyruleno==229); + case 232: /* expression ::= subquery */ yytestcase(yyruleno==232); + case 271: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==271); + case 275: /* boolean_primary ::= predicate */ yytestcase(yyruleno==275); + case 277: /* common_expression ::= expression */ yytestcase(yyruleno==277); + case 278: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==278); + case 280: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==280); + case 282: /* table_reference ::= table_primary */ yytestcase(yyruleno==282); + case 283: /* table_reference ::= joined_table */ yytestcase(yyruleno==283); + case 287: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==287); + case 334: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==334); + case 336: /* query_primary ::= query_specification */ yytestcase(yyruleno==336); { yylhsminor.yy46 = yymsp[0].minor.yy46; } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 201: /* literal ::= NULL */ + case 202: /* literal ::= NULL */ { yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL)); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 202: /* duration_literal ::= NK_VARIABLE */ + case 203: /* duration_literal ::= NK_VARIABLE */ { yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 203: /* signed ::= NK_INTEGER */ + case 204: /* signed ::= NK_INTEGER */ { yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 204: /* signed ::= NK_PLUS NK_INTEGER */ + case 205: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; - case 205: /* signed ::= NK_MINUS NK_INTEGER */ + case 206: /* 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; @@ -3048,14 +3048,14 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 206: /* signed ::= NK_FLOAT */ + case 207: /* signed ::= NK_FLOAT */ { yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 207: /* signed ::= NK_PLUS NK_FLOAT */ + case 208: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 208: /* signed ::= NK_MINUS NK_FLOAT */ + case 209: /* 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; @@ -3063,53 +3063,53 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 210: /* signed_literal ::= NK_STRING */ + case 211: /* signed_literal ::= NK_STRING */ { yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 211: /* signed_literal ::= NK_BOOL */ + case 212: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 212: /* signed_literal ::= TIMESTAMP NK_STRING */ + case 213: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 213: /* signed_literal ::= duration_literal */ - case 347: /* search_condition ::= common_expression */ yytestcase(yyruleno==347); + case 214: /* signed_literal ::= duration_literal */ + case 348: /* search_condition ::= common_expression */ yytestcase(yyruleno==348); { yylhsminor.yy46 = releaseRawExprNode(pCxt, yymsp[0].minor.yy46); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 214: /* signed_literal ::= NULL */ + case 215: /* signed_literal ::= NULL */ { yymsp[0].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } break; - case 229: /* expression ::= function_name NK_LP expression_list NK_RP */ + case 230: /* expression ::= function_name NK_LP expression_list NK_RP */ { yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy95, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy95, yymsp[-1].minor.yy194)); } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 230: /* expression ::= function_name NK_LP NK_STAR NK_RP */ + case 231: /* expression ::= function_name NK_LP NK_STAR NK_RP */ { yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy95, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy95, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 232: /* expression ::= NK_LP expression NK_RP */ - case 275: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==275); + case 233: /* expression ::= NK_LP expression NK_RP */ + case 276: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==276); { yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy46)); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 233: /* expression ::= NK_PLUS expression */ + case 234: /* expression ::= NK_PLUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy46)); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 234: /* expression ::= NK_MINUS expression */ + case 235: /* expression ::= NK_MINUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[0].minor.yy46), NULL)); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 235: /* expression ::= expression NK_PLUS expression */ + case 236: /* expression ::= expression NK_PLUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3117,7 +3117,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 236: /* expression ::= expression NK_MINUS expression */ + case 237: /* expression ::= expression NK_MINUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3125,7 +3125,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 237: /* expression ::= expression NK_STAR expression */ + case 238: /* expression ::= expression NK_STAR expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3133,7 +3133,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 238: /* expression ::= expression NK_SLASH expression */ + case 239: /* expression ::= expression NK_SLASH expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3141,7 +3141,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 239: /* expression ::= expression NK_REM expression */ + case 240: /* expression ::= expression NK_REM expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3149,28 +3149,28 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 240: /* expression_list ::= expression */ + case 241: /* expression_list ::= expression */ { yylhsminor.yy194 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy46)); } yymsp[0].minor.yy194 = yylhsminor.yy194; break; - case 241: /* expression_list ::= expression_list NK_COMMA expression */ + case 242: /* expression_list ::= expression_list NK_COMMA expression */ { yylhsminor.yy194 = addNodeToList(pCxt, yymsp[-2].minor.yy194, releaseRawExprNode(pCxt, yymsp[0].minor.yy46)); } yymsp[-2].minor.yy194 = yylhsminor.yy194; break; - case 242: /* column_reference ::= column_name */ + case 243: /* column_reference ::= column_name */ { yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy95, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy95)); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 243: /* column_reference ::= table_name NK_DOT column_name */ + case 244: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy95, createColumnNode(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy95)); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 244: /* pseudo_column ::= NK_UNDERLINE ROWTS */ - case 246: /* pseudo_column ::= NK_UNDERLINE QSTARTTS */ yytestcase(yyruleno==246); - case 247: /* pseudo_column ::= NK_UNDERLINE QENDTS */ yytestcase(yyruleno==247); - case 248: /* pseudo_column ::= NK_UNDERLINE WSTARTTS */ yytestcase(yyruleno==248); - case 249: /* pseudo_column ::= NK_UNDERLINE WENDTS */ yytestcase(yyruleno==249); - case 250: /* pseudo_column ::= NK_UNDERLINE WDURATION */ yytestcase(yyruleno==250); + case 245: /* pseudo_column ::= NK_UNDERLINE ROWTS */ + case 247: /* pseudo_column ::= NK_UNDERLINE QSTARTTS */ yytestcase(yyruleno==247); + case 248: /* pseudo_column ::= NK_UNDERLINE QENDTS */ yytestcase(yyruleno==248); + case 249: /* pseudo_column ::= NK_UNDERLINE WSTARTTS */ yytestcase(yyruleno==249); + case 250: /* pseudo_column ::= NK_UNDERLINE WENDTS */ yytestcase(yyruleno==250); + case 251: /* pseudo_column ::= NK_UNDERLINE WDURATION */ yytestcase(yyruleno==251); { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; @@ -3178,12 +3178,12 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 245: /* pseudo_column ::= TBNAME */ + case 246: /* pseudo_column ::= TBNAME */ { yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 251: /* predicate ::= expression compare_op expression */ - case 256: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==256); + case 252: /* predicate ::= expression compare_op expression */ + case 257: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==257); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3191,7 +3191,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 252: /* predicate ::= expression BETWEEN expression AND expression */ + case 253: /* predicate ::= expression BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3199,7 +3199,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-4].minor.yy46 = yylhsminor.yy46; break; - case 253: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 254: /* predicate ::= expression NOT BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3207,68 +3207,68 @@ static YYACTIONTYPE yy_reduce( } yymsp[-5].minor.yy46 = yylhsminor.yy46; break; - case 254: /* predicate ::= expression IS NULL */ + case 255: /* predicate ::= expression IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), NULL)); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 255: /* predicate ::= expression IS NOT NULL */ + case 256: /* predicate ::= expression IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy46); yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy46), NULL)); } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 257: /* compare_op ::= NK_LT */ + case 258: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy292 = OP_TYPE_LOWER_THAN; } break; - case 258: /* compare_op ::= NK_GT */ + case 259: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy292 = OP_TYPE_GREATER_THAN; } break; - case 259: /* compare_op ::= NK_LE */ + case 260: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy292 = OP_TYPE_LOWER_EQUAL; } break; - case 260: /* compare_op ::= NK_GE */ + case 261: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy292 = OP_TYPE_GREATER_EQUAL; } break; - case 261: /* compare_op ::= NK_NE */ + case 262: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy292 = OP_TYPE_NOT_EQUAL; } break; - case 262: /* compare_op ::= NK_EQ */ + case 263: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy292 = OP_TYPE_EQUAL; } break; - case 263: /* compare_op ::= LIKE */ + case 264: /* compare_op ::= LIKE */ { yymsp[0].minor.yy292 = OP_TYPE_LIKE; } break; - case 264: /* compare_op ::= NOT LIKE */ + case 265: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy292 = OP_TYPE_NOT_LIKE; } break; - case 265: /* compare_op ::= MATCH */ + case 266: /* compare_op ::= MATCH */ { yymsp[0].minor.yy292 = OP_TYPE_MATCH; } break; - case 266: /* compare_op ::= NMATCH */ + case 267: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy292 = OP_TYPE_NMATCH; } break; - case 267: /* in_op ::= IN */ + case 268: /* in_op ::= IN */ { yymsp[0].minor.yy292 = OP_TYPE_IN; } break; - case 268: /* in_op ::= NOT IN */ + case 269: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy292 = OP_TYPE_NOT_IN; } break; - case 269: /* in_predicate_value ::= NK_LP expression_list NK_RP */ + case 270: /* in_predicate_value ::= NK_LP expression_list NK_RP */ { yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy194)); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 271: /* boolean_value_expression ::= NOT boolean_primary */ + case 272: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy46), NULL)); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 272: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 273: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3276,7 +3276,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 273: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 274: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); @@ -3284,52 +3284,52 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 278: /* from_clause ::= FROM table_reference_list */ - case 308: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==308); - case 331: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==331); + case 279: /* from_clause ::= FROM table_reference_list */ + case 309: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==309); + case 332: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==332); { yymsp[-1].minor.yy46 = yymsp[0].minor.yy46; } break; - case 280: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ + case 281: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy46 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy46, yymsp[0].minor.yy46, NULL); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 283: /* table_primary ::= table_name alias_opt */ + case 284: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy46 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy95, &yymsp[0].minor.yy95); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 284: /* table_primary ::= db_name NK_DOT table_name alias_opt */ + case 285: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy46 = createRealTableNode(pCxt, &yymsp[-3].minor.yy95, &yymsp[-1].minor.yy95, &yymsp[0].minor.yy95); } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 285: /* table_primary ::= subquery alias_opt */ + case 286: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy46 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy46), &yymsp[0].minor.yy95); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 287: /* alias_opt ::= */ + case 288: /* alias_opt ::= */ { yymsp[1].minor.yy95 = nil_token; } break; - case 288: /* alias_opt ::= table_alias */ + case 289: /* alias_opt ::= table_alias */ { yylhsminor.yy95 = yymsp[0].minor.yy95; } yymsp[0].minor.yy95 = yylhsminor.yy95; break; - case 289: /* alias_opt ::= AS table_alias */ + case 290: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy95 = yymsp[0].minor.yy95; } break; - case 290: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 291: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==291); + case 291: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 292: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==292); { yymsp[-2].minor.yy46 = yymsp[-1].minor.yy46; } break; - case 292: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + case 293: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy46 = createJoinTableNode(pCxt, yymsp[-4].minor.yy10, yymsp[-5].minor.yy46, yymsp[-2].minor.yy46, yymsp[0].minor.yy46); } yymsp[-5].minor.yy46 = yylhsminor.yy46; break; - case 293: /* join_type ::= */ + case 294: /* join_type ::= */ { yymsp[1].minor.yy10 = JOIN_TYPE_INNER; } break; - case 294: /* join_type ::= INNER */ + case 295: /* join_type ::= INNER */ { yymsp[0].minor.yy10 = JOIN_TYPE_INNER; } break; - case 295: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 296: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { yymsp[-8].minor.yy46 = createSelectStmt(pCxt, yymsp[-7].minor.yy151, yymsp[-6].minor.yy194, yymsp[-5].minor.yy46); yymsp[-8].minor.yy46 = addWhereClause(pCxt, yymsp[-8].minor.yy46, yymsp[-4].minor.yy46); @@ -3339,81 +3339,81 @@ static YYACTIONTYPE yy_reduce( yymsp[-8].minor.yy46 = addHavingClause(pCxt, yymsp[-8].minor.yy46, yymsp[0].minor.yy46); } break; - case 298: /* set_quantifier_opt ::= ALL */ + case 299: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy151 = false; } break; - case 299: /* select_list ::= NK_STAR */ + case 300: /* select_list ::= NK_STAR */ { yymsp[0].minor.yy194 = NULL; } break; - case 303: /* select_item ::= common_expression */ + case 304: /* select_item ::= common_expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); yylhsminor.yy46 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy46), &t); } yymsp[0].minor.yy46 = yylhsminor.yy46; break; - case 304: /* select_item ::= common_expression column_alias */ + case 305: /* select_item ::= common_expression column_alias */ { yylhsminor.yy46 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy46), &yymsp[0].minor.yy95); } yymsp[-1].minor.yy46 = yylhsminor.yy46; break; - case 305: /* select_item ::= common_expression AS column_alias */ + case 306: /* select_item ::= common_expression AS column_alias */ { yylhsminor.yy46 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), &yymsp[0].minor.yy95); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 306: /* select_item ::= table_name NK_DOT NK_STAR */ + case 307: /* select_item ::= table_name NK_DOT NK_STAR */ { yylhsminor.yy46 = createColumnNode(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 310: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 327: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==327); - case 337: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==337); + case 311: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 328: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==328); + case 338: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==338); { yymsp[-2].minor.yy194 = yymsp[0].minor.yy194; } break; - case 312: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + case 313: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy46 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy46), releaseRawExprNode(pCxt, yymsp[-1].minor.yy46)); } break; - case 313: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ + case 314: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ { yymsp[-3].minor.yy46 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy46)); } break; - case 314: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + case 315: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy46 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy46), NULL, yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } break; - case 315: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + case 316: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy46 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy46), releaseRawExprNode(pCxt, yymsp[-3].minor.yy46), yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } break; - case 317: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + case 318: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ { yymsp[-3].minor.yy46 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy46); } break; - case 319: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ + case 320: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy46 = createFillNode(pCxt, yymsp[-1].minor.yy6, NULL); } break; - case 320: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + case 321: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ { yymsp[-5].minor.yy46 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy194)); } break; - case 321: /* fill_mode ::= NONE */ + case 322: /* fill_mode ::= NONE */ { yymsp[0].minor.yy6 = FILL_MODE_NONE; } break; - case 322: /* fill_mode ::= PREV */ + case 323: /* fill_mode ::= PREV */ { yymsp[0].minor.yy6 = FILL_MODE_PREV; } break; - case 323: /* fill_mode ::= NULL */ + case 324: /* fill_mode ::= NULL */ { yymsp[0].minor.yy6 = FILL_MODE_NULL; } break; - case 324: /* fill_mode ::= LINEAR */ + case 325: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy6 = FILL_MODE_LINEAR; } break; - case 325: /* fill_mode ::= NEXT */ + case 326: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy6 = FILL_MODE_NEXT; } break; - case 328: /* group_by_list ::= expression */ + case 329: /* group_by_list ::= expression */ { yylhsminor.yy194 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); } yymsp[0].minor.yy194 = yylhsminor.yy194; break; - case 329: /* group_by_list ::= group_by_list NK_COMMA expression */ + case 330: /* group_by_list ::= group_by_list NK_COMMA expression */ { yylhsminor.yy194 = addNodeToList(pCxt, yymsp[-2].minor.yy194, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); } yymsp[-2].minor.yy194 = yylhsminor.yy194; break; - case 332: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 333: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy46 = addOrderByClause(pCxt, yymsp[-3].minor.yy46, yymsp[-2].minor.yy194); yylhsminor.yy46 = addSlimitClause(pCxt, yylhsminor.yy46, yymsp[-1].minor.yy46); @@ -3421,46 +3421,46 @@ static YYACTIONTYPE yy_reduce( } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 334: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + case 335: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ { yylhsminor.yy46 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy46, yymsp[0].minor.yy46); } yymsp[-3].minor.yy46 = yylhsminor.yy46; break; - case 339: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 343: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==343); + case 340: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 344: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==344); { yymsp[-1].minor.yy46 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 340: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 344: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==344); + case 341: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 345: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==345); { yymsp[-3].minor.yy46 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 341: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 345: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==345); + case 342: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 346: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==346); { yymsp[-3].minor.yy46 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 346: /* subquery ::= NK_LP query_expression NK_RP */ + case 347: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy46); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 350: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + case 351: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ { yylhsminor.yy46 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), yymsp[-1].minor.yy456, yymsp[0].minor.yy273); } yymsp[-2].minor.yy46 = yylhsminor.yy46; break; - case 351: /* ordering_specification_opt ::= */ + case 352: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy456 = ORDER_ASC; } break; - case 352: /* ordering_specification_opt ::= ASC */ + case 353: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy456 = ORDER_ASC; } break; - case 353: /* ordering_specification_opt ::= DESC */ + case 354: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy456 = ORDER_DESC; } break; - case 354: /* null_ordering_opt ::= */ + case 355: /* null_ordering_opt ::= */ { yymsp[1].minor.yy273 = NULL_ORDER_DEFAULT; } break; - case 355: /* null_ordering_opt ::= NULLS FIRST */ + case 356: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy273 = NULL_ORDER_FIRST; } break; - case 356: /* null_ordering_opt ::= NULLS LAST */ + case 357: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy273 = NULL_ORDER_LAST; } break; default: