diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 0137b714797eff64ddc91e6bfd30828bb8d3379b..3ea93cc60b54e85b87eeef6f776d92e5394b7a42 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -183,48 +183,49 @@ #define TK_LAST 165 #define TK_NOW 166 #define TK_TODAY 167 -#define TK_CAST 168 -#define TK_ROWTS 169 -#define TK_TBNAME 170 -#define TK_QSTARTTS 171 -#define TK_QENDTS 172 -#define TK_WSTARTTS 173 -#define TK_WENDTS 174 -#define TK_WDURATION 175 -#define TK_BETWEEN 176 -#define TK_IS 177 -#define TK_NK_LT 178 -#define TK_NK_GT 179 -#define TK_NK_LE 180 -#define TK_NK_GE 181 -#define TK_NK_NE 182 -#define TK_MATCH 183 -#define TK_NMATCH 184 -#define TK_JOIN 185 -#define TK_INNER 186 -#define TK_SELECT 187 -#define TK_DISTINCT 188 -#define TK_WHERE 189 -#define TK_PARTITION 190 -#define TK_BY 191 -#define TK_SESSION 192 -#define TK_STATE_WINDOW 193 -#define TK_SLIDING 194 -#define TK_FILL 195 -#define TK_VALUE 196 -#define TK_NONE 197 -#define TK_PREV 198 -#define TK_LINEAR 199 -#define TK_NEXT 200 -#define TK_GROUP 201 -#define TK_HAVING 202 -#define TK_ORDER 203 -#define TK_SLIMIT 204 -#define TK_SOFFSET 205 -#define TK_LIMIT 206 -#define TK_OFFSET 207 -#define TK_ASC 208 -#define TK_NULLS 209 +#define TK_TIMEZONE 168 +#define TK_CAST 169 +#define TK_ROWTS 170 +#define TK_TBNAME 171 +#define TK_QSTARTTS 172 +#define TK_QENDTS 173 +#define TK_WSTARTTS 174 +#define TK_WENDTS 175 +#define TK_WDURATION 176 +#define TK_BETWEEN 177 +#define TK_IS 178 +#define TK_NK_LT 179 +#define TK_NK_GT 180 +#define TK_NK_LE 181 +#define TK_NK_GE 182 +#define TK_NK_NE 183 +#define TK_MATCH 184 +#define TK_NMATCH 185 +#define TK_JOIN 186 +#define TK_INNER 187 +#define TK_SELECT 188 +#define TK_DISTINCT 189 +#define TK_WHERE 190 +#define TK_PARTITION 191 +#define TK_BY 192 +#define TK_SESSION 193 +#define TK_STATE_WINDOW 194 +#define TK_SLIDING 195 +#define TK_FILL 196 +#define TK_VALUE 197 +#define TK_NONE 198 +#define TK_PREV 199 +#define TK_LINEAR 200 +#define TK_NEXT 201 +#define TK_GROUP 202 +#define TK_HAVING 203 +#define TK_ORDER 204 +#define TK_SLIMIT 205 +#define TK_SOFFSET 206 +#define TK_LIMIT 207 +#define TK_OFFSET 208 +#define TK_ASC 209 +#define TK_NULLS 210 #define TK_NK_SPACE 300 #define TK_NK_COMMENT 301 diff --git a/include/libs/scalar/scalar.h b/include/libs/scalar/scalar.h index 49af10cd2cfad2c089f13051479284391fae6b3d..7d765bf13964ca4dc26594e88d221a66cd817c8a 100644 --- a/include/libs/scalar/scalar.h +++ b/include/libs/scalar/scalar.h @@ -80,6 +80,7 @@ int32_t timeTruncateFunction(SScalarParam *pInput, int32_t inputNum, SScalarPara int32_t timeDiffFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput); int32_t nowFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput); int32_t todayFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput); +int32_t timezoneFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput); bool getTimePseudoFuncEnv(struct SFunctionNode* pFunc, SFuncExecEnv* pEnv); diff --git a/source/libs/function/src/builtins.c b/source/libs/function/src/builtins.c index 6ed1f891a469178435c29f95bbea9d9daa8760c6..120119610d8d2a05a2efd95872f56e360866b28a 100644 --- a/source/libs/function/src/builtins.c +++ b/source/libs/function/src/builtins.c @@ -138,6 +138,12 @@ static int32_t translateTimePseudoColumn(SFunctionNode* pFunc, char* pErrBuf, in return TSDB_CODE_SUCCESS; } +static int32_t translateTimezone(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { + // pseudo column do not need to check parameters + pFunc->node.resType = (SDataType){.bytes = TD_TIMEZONE_LEN, .type = TSDB_DATA_TYPE_BINARY}; + return TSDB_CODE_SUCCESS; +} + static int32_t translatePercentile(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { if (2 != LIST_LENGTH(pFunc->pParameterList)) { return invaildFuncParaNumErrMsg(pErrBuf, len, pFunc->functionName); @@ -802,6 +808,16 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { .sprocessFunc = todayFunction, .finalizeFunc = NULL }, + { + .name = "timezone", + .type = FUNCTION_TYPE_TIMEZONE, + .classification = FUNC_MGT_SCALAR_FUNC, + .translateFunc = translateTimezone, + .getEnvFunc = NULL, + .initFunc = NULL, + .sprocessFunc = timezoneFunction, + .finalizeFunc = NULL + }, { .name = "_rowts", .type = FUNCTION_TYPE_ROWTS, diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index d6fc9432655beddd53365591ae951a0542e95b40..54453fde2e25e1c4a7b3bc07edec32a107fd7ba2 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -505,6 +505,7 @@ function_name(A) ::= FIRST(B). function_name(A) ::= LAST(B). { A = B; } function_name(A) ::= NOW(B). { A = B; } function_name(A) ::= TODAY(B). { A = B; } +function_name(A) ::= TIMEZONE(B). { A = B; } %type table_alias { SToken } %destructor table_alias { } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 884549b118e189029beb1add1c3d1feb2558a57e..ecf2e717f2b1e0cdf4697ee9ce4d89fe546f4025 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -260,7 +260,8 @@ SNode* createValueNode(SAstCreateContext* pCxt, int32_t dataType, const SToken* CHECK_OUT_OF_MEM(val); if (NULL != pLiteral) { val->literal = strndup(pLiteral->z, pLiteral->n); - if (TK_NK_ID != pLiteral->type && (IS_VAR_DATA_TYPE(dataType) || TSDB_DATA_TYPE_TIMESTAMP == dataType)) { + if (TK_NK_ID != pLiteral->type && TK_TIMEZONE != pLiteral->type && + (IS_VAR_DATA_TYPE(dataType) || TSDB_DATA_TYPE_TIMESTAMP == dataType)) { trimString(pLiteral->z, pLiteral->n, val->literal, pLiteral->n); } CHECK_OUT_OF_MEM(val->literal); @@ -379,11 +380,11 @@ SNode* createFunctionNodeNoParam(SAstCreateContext* pCxt, const SToken* pFuncNam dataType = TSDB_DATA_TYPE_BIGINT; break; } - //case TK_TIMEZONE: { - // strncpy(buf, tsTimezoneStr, strlen(tsTimezoneStr)); - // dataType = TSDB_DATA_TYPE_BINARY; - // break; - //} + case TK_TIMEZONE: { + strncpy(buf, tsTimezoneStr, strlen(tsTimezoneStr)); + dataType = TSDB_DATA_TYPE_BINARY; + break; + } } SToken token = {.type = pFuncName->type, .n = strlen(buf), .z = buf}; diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 0493771b61bea090534be3f5d4bdacae0da72f99..48d73ffa6683a4bca193062910fe96ad40b2c17e 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -174,6 +174,7 @@ static SKeyword keywordTable[] = { {"TAGS", TK_TAGS}, {"TBNAME", TK_TBNAME}, {"TIMESTAMP", TK_TIMESTAMP}, + {"TIMEZONE", TK_TIMEZONE}, {"TINYINT", TK_TINYINT}, {"TODAY", TK_TODAY}, {"TOPIC", TK_TOPIC}, diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index f4436bb3e2a72cbf78cfc3ceaba94d6e97212519..96345ecb887ca3107dfac3f540231d7479c00049 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -100,24 +100,24 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 316 +#define YYNOCODE 317 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - SAlterOption yy21; - EFillMode yy22; - EOperatorType yy84; - bool yy121; - SDataType yy160; - ENullOrder yy281; - SToken yy409; - int32_t yy452; - SNodeList* yy488; - SNode* yy504; - EOrder yy522; - EJoinType yy556; + EOperatorType yy142; + EOrder yy216; + SDataType yy274; + SNode* yy286; + EFillMode yy287; + SNodeList* yy352; + EJoinType yy448; + ENullOrder yy473; + bool yy495; + SToken yy567; + SAlterOption yy583; + int32_t yy634; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -133,17 +133,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYNSTATE 550 -#define YYNRULE 412 -#define YYNRULE_WITH_ACTION 412 -#define YYNTOKEN 210 +#define YYNRULE 413 +#define YYNRULE_WITH_ACTION 413 +#define YYNTOKEN 211 #define YY_MAX_SHIFT 549 -#define YY_MIN_SHIFTREDUCE 811 -#define YY_MAX_SHIFTREDUCE 1222 -#define YY_ERROR_ACTION 1223 -#define YY_ACCEPT_ACTION 1224 -#define YY_NO_ACTION 1225 -#define YY_MIN_REDUCE 1226 -#define YY_MAX_REDUCE 1637 +#define YY_MIN_SHIFTREDUCE 812 +#define YY_MAX_SHIFTREDUCE 1224 +#define YY_ERROR_ACTION 1225 +#define YY_ACCEPT_ACTION 1226 +#define YY_NO_ACTION 1227 +#define YY_MIN_REDUCE 1228 +#define YY_MAX_REDUCE 1640 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -210,487 +210,489 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (1559) +#define YY_ACTTAB_COUNT (1567) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 452, 1224, 258, 270, 452, 465, 1436, 25, 195, 118, - /* 10 */ 1437, 1238, 30, 28, 73, 21, 307, 1505, 1337, 1487, - /* 20 */ 267, 370, 1056, 23, 464, 32, 31, 29, 27, 26, - /* 30 */ 1346, 1483, 1489, 32, 31, 29, 27, 26, 1054, 275, - /* 40 */ 1078, 1523, 32, 31, 29, 27, 26, 1616, 434, 464, - /* 50 */ 11, 30, 28, 1165, 283, 1324, 1487, 1061, 451, 267, - /* 60 */ 132, 1056, 1474, 1474, 1614, 30, 28, 450, 1483, 1489, - /* 70 */ 1505, 464, 349, 267, 1, 1056, 278, 1054, 70, 1506, - /* 80 */ 1507, 1512, 1555, 1427, 1429, 1616, 260, 1551, 127, 11, - /* 90 */ 1076, 1054, 1226, 1278, 1523, 1616, 1061, 546, 132, 1164, - /* 100 */ 191, 434, 1614, 12, 349, 1098, 414, 1582, 1615, 1055, - /* 110 */ 1061, 451, 1614, 1, 500, 1474, 94, 93, 92, 91, - /* 120 */ 90, 89, 88, 87, 86, 12, 124, 7, 1095, 138, - /* 130 */ 1487, 70, 1506, 1507, 1512, 1555, 546, 1386, 1393, 260, - /* 140 */ 1551, 127, 1483, 1490, 257, 384, 1057, 378, 1055, 1391, - /* 150 */ 546, 383, 465, 313, 98, 51, 379, 377, 50, 380, - /* 160 */ 1583, 311, 1055, 1060, 1080, 1081, 1082, 1083, 449, 1110, - /* 170 */ 1111, 1112, 1113, 1114, 1115, 1116, 431, 1346, 32, 31, - /* 180 */ 29, 27, 26, 239, 1079, 1057, 85, 133, 133, 84, - /* 190 */ 83, 82, 81, 80, 79, 78, 77, 76, 503, 1057, - /* 200 */ 1318, 101, 1060, 1080, 1081, 1082, 1083, 449, 1110, 1111, - /* 210 */ 1112, 1113, 1114, 1115, 1116, 1249, 1060, 1080, 1081, 1082, - /* 220 */ 1083, 449, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 30, - /* 230 */ 28, 306, 119, 305, 99, 425, 1304, 267, 133, 1056, - /* 240 */ 1523, 398, 30, 28, 129, 1562, 1563, 447, 1567, 238, - /* 250 */ 267, 1076, 1056, 542, 541, 1054, 251, 133, 328, 1569, - /* 260 */ 1474, 340, 32, 31, 29, 27, 26, 11, 1054, 1077, - /* 270 */ 341, 1505, 1616, 133, 1061, 899, 271, 1566, 53, 424, - /* 280 */ 30, 28, 165, 1163, 116, 132, 373, 1061, 267, 1614, - /* 290 */ 1056, 1, 1348, 165, 901, 1523, 66, 373, 252, 1342, - /* 300 */ 250, 249, 447, 372, 7, 1219, 1054, 491, 375, 384, - /* 310 */ 102, 378, 451, 465, 546, 383, 1474, 1338, 98, 375, - /* 320 */ 379, 377, 312, 380, 53, 1061, 1055, 546, 1080, 1081, - /* 330 */ 1082, 1083, 71, 1506, 1507, 1512, 1555, 97, 1346, 1055, - /* 340 */ 1554, 1551, 7, 339, 6, 1341, 334, 333, 332, 331, - /* 350 */ 330, 502, 327, 326, 325, 324, 323, 319, 318, 317, - /* 360 */ 316, 315, 314, 1057, 421, 546, 32, 31, 29, 27, - /* 370 */ 26, 382, 381, 1189, 1218, 514, 1057, 1055, 335, 301, - /* 380 */ 1060, 1080, 1081, 1082, 1083, 449, 1110, 1111, 1112, 1113, - /* 390 */ 1114, 1115, 1116, 1060, 1080, 1081, 1082, 1083, 449, 1110, - /* 400 */ 1111, 1112, 1113, 1114, 1115, 1116, 418, 1187, 1188, 1190, - /* 410 */ 1191, 29, 27, 26, 1057, 116, 1393, 133, 30, 28, - /* 420 */ 426, 422, 272, 1349, 142, 141, 267, 1391, 1056, 1179, - /* 430 */ 60, 1060, 1080, 1081, 1082, 1083, 449, 1110, 1111, 1112, - /* 440 */ 1113, 1114, 1115, 1116, 1054, 32, 31, 29, 27, 26, - /* 450 */ 1084, 1339, 937, 488, 487, 486, 941, 485, 943, 944, - /* 460 */ 484, 946, 481, 1061, 952, 478, 954, 955, 475, 472, - /* 470 */ 32, 31, 29, 27, 26, 515, 513, 1335, 1393, 1056, - /* 480 */ 1, 1275, 465, 242, 465, 465, 1248, 1160, 465, 1428, - /* 490 */ 1393, 73, 1424, 320, 321, 1054, 277, 348, 376, 140, - /* 500 */ 117, 1392, 465, 546, 116, 223, 1322, 1346, 1098, 1346, - /* 510 */ 1346, 1343, 1348, 1346, 1061, 1055, 1128, 221, 848, 1247, - /* 520 */ 847, 32, 31, 29, 27, 26, 217, 1346, 1331, 1376, - /* 530 */ 143, 1474, 431, 522, 521, 520, 519, 282, 849, 518, - /* 540 */ 517, 516, 103, 511, 510, 509, 508, 507, 506, 505, - /* 550 */ 504, 109, 1057, 1246, 546, 500, 1393, 101, 1333, 242, - /* 560 */ 438, 1245, 279, 1244, 1474, 1129, 1055, 1391, 190, 1060, - /* 570 */ 1080, 1081, 1082, 1083, 449, 1110, 1111, 1112, 1113, 1114, - /* 580 */ 1115, 1116, 465, 1133, 1329, 407, 442, 9, 8, 280, - /* 590 */ 99, 462, 1128, 68, 1243, 170, 115, 116, 1474, 433, - /* 600 */ 128, 1562, 1563, 1057, 1567, 1348, 1474, 1346, 1474, 24, - /* 610 */ 265, 1123, 1124, 1125, 1126, 1127, 1131, 1132, 1242, 406, - /* 620 */ 1060, 49, 48, 310, 1227, 137, 1241, 1240, 448, 408, - /* 630 */ 304, 1085, 1463, 1505, 1237, 1236, 1235, 465, 247, 1474, - /* 640 */ 296, 1129, 292, 288, 134, 85, 463, 1569, 84, 83, - /* 650 */ 82, 81, 80, 79, 78, 77, 76, 1523, 1569, 1133, - /* 660 */ 1616, 1141, 1346, 1474, 447, 1565, 1234, 1233, 290, 133, - /* 670 */ 490, 1474, 1474, 132, 451, 1505, 1564, 1614, 1474, 1474, - /* 680 */ 1474, 1474, 1130, 435, 431, 24, 265, 1123, 1124, 1125, - /* 690 */ 1126, 1127, 1131, 1132, 69, 1506, 1507, 1512, 1555, 1523, - /* 700 */ 1134, 1239, 241, 1551, 465, 1232, 447, 549, 1323, 101, - /* 710 */ 439, 1474, 1474, 209, 1616, 107, 451, 1505, 1231, 410, - /* 720 */ 1474, 214, 443, 1230, 96, 1229, 22, 132, 435, 1346, - /* 730 */ 538, 1614, 534, 530, 526, 213, 70, 1506, 1507, 1512, - /* 740 */ 1555, 1523, 99, 45, 260, 1551, 1628, 1186, 447, 176, - /* 750 */ 1474, 847, 188, 1562, 430, 1589, 429, 1305, 451, 1616, - /* 760 */ 437, 67, 1474, 1474, 207, 1505, 465, 368, 1474, 210, - /* 770 */ 1474, 1172, 132, 496, 446, 281, 1614, 1078, 70, 1506, - /* 780 */ 1507, 1512, 1555, 1574, 1160, 298, 260, 1551, 1628, 1523, - /* 790 */ 158, 1346, 431, 156, 461, 498, 447, 1612, 1265, 160, - /* 800 */ 300, 1260, 159, 9, 8, 162, 451, 1505, 161, 164, - /* 810 */ 1474, 1258, 163, 873, 495, 494, 493, 101, 492, 419, - /* 820 */ 385, 192, 413, 387, 396, 172, 70, 1506, 1507, 1512, - /* 830 */ 1555, 1523, 874, 390, 260, 1551, 1628, 394, 447, 179, - /* 840 */ 1040, 344, 169, 181, 440, 1573, 1221, 1222, 451, 34, - /* 850 */ 99, 34, 1474, 1135, 1505, 1093, 1064, 435, 405, 1387, - /* 860 */ 130, 1562, 1563, 153, 1567, 1063, 126, 1494, 229, 1506, - /* 870 */ 1507, 1512, 366, 65, 362, 358, 354, 152, 1523, 1492, - /* 880 */ 34, 185, 367, 62, 1023, 447, 198, 1120, 1616, 1505, - /* 890 */ 200, 1585, 95, 432, 105, 451, 457, 1505, 206, 1474, - /* 900 */ 1524, 132, 2, 54, 194, 1614, 150, 1076, 107, 285, - /* 910 */ 45, 389, 930, 1523, 925, 71, 1506, 1507, 1512, 1555, - /* 920 */ 447, 1523, 289, 445, 1551, 470, 397, 1067, 447, 958, - /* 930 */ 451, 1505, 899, 105, 1474, 106, 1066, 962, 451, 968, - /* 940 */ 167, 1032, 1474, 392, 246, 266, 248, 215, 386, 322, - /* 950 */ 120, 1506, 1507, 1512, 166, 1523, 1426, 329, 234, 1506, - /* 960 */ 1507, 1512, 447, 149, 107, 122, 1505, 146, 967, 105, - /* 970 */ 139, 342, 451, 108, 337, 1505, 1474, 1089, 336, 343, - /* 980 */ 43, 1088, 338, 42, 144, 145, 346, 345, 436, 1629, - /* 990 */ 1523, 1087, 71, 1506, 1507, 1512, 1555, 447, 347, 1523, - /* 1000 */ 1505, 1552, 148, 52, 350, 151, 447, 451, 1086, 369, - /* 1010 */ 371, 1474, 400, 1336, 415, 374, 451, 402, 399, 75, - /* 1020 */ 1474, 1321, 401, 155, 1523, 1332, 157, 234, 1506, 1507, - /* 1030 */ 1512, 447, 110, 111, 256, 171, 233, 1506, 1507, 1512, - /* 1040 */ 174, 451, 1505, 1334, 1330, 1474, 412, 112, 1505, 113, - /* 1050 */ 1085, 420, 409, 1596, 1505, 455, 1586, 411, 1595, 1061, - /* 1060 */ 5, 120, 1506, 1507, 1512, 184, 1523, 177, 427, 428, - /* 1070 */ 1576, 416, 1523, 447, 417, 125, 186, 4, 1523, 447, - /* 1080 */ 100, 1160, 210, 451, 180, 447, 496, 1474, 1084, 451, - /* 1090 */ 264, 259, 423, 1474, 35, 451, 268, 444, 1570, 1474, - /* 1100 */ 1630, 261, 1505, 234, 1506, 1507, 1512, 441, 498, 234, - /* 1110 */ 1506, 1507, 1512, 1505, 193, 226, 1506, 1507, 1512, 1631, - /* 1120 */ 17, 1537, 1435, 187, 1613, 453, 1523, 495, 494, 493, - /* 1130 */ 454, 492, 1434, 447, 269, 458, 459, 1523, 1505, 460, - /* 1140 */ 202, 204, 216, 451, 447, 59, 1347, 1474, 61, 497, - /* 1150 */ 468, 1319, 218, 212, 451, 545, 220, 222, 1474, 224, - /* 1160 */ 225, 1468, 1523, 232, 1506, 1507, 1512, 1505, 1467, 447, - /* 1170 */ 41, 284, 1505, 286, 235, 1506, 1507, 1512, 1464, 451, - /* 1180 */ 1505, 287, 291, 1474, 1050, 1051, 135, 1462, 293, 294, - /* 1190 */ 295, 1523, 1461, 297, 1460, 299, 1523, 1451, 447, 227, - /* 1200 */ 1506, 1507, 1512, 447, 1523, 136, 302, 303, 451, 1035, - /* 1210 */ 1034, 447, 1474, 451, 1505, 1445, 1444, 1474, 308, 309, - /* 1220 */ 1443, 451, 1442, 1006, 1419, 1474, 1418, 1417, 236, 1506, - /* 1230 */ 1507, 1512, 1416, 228, 1506, 1507, 1512, 1415, 1523, 1414, - /* 1240 */ 1413, 237, 1506, 1507, 1512, 447, 1412, 1411, 1410, 1409, - /* 1250 */ 1505, 1408, 1407, 1406, 1405, 451, 1505, 1404, 1403, 1474, - /* 1260 */ 104, 1402, 1505, 1401, 1400, 1399, 1398, 1008, 1397, 1396, - /* 1270 */ 1395, 1394, 1277, 1459, 1523, 1520, 1506, 1507, 1512, 1453, - /* 1280 */ 1523, 447, 1441, 1432, 147, 1325, 1523, 447, 1276, 866, - /* 1290 */ 1274, 451, 1272, 447, 351, 1474, 352, 451, 353, 1270, - /* 1300 */ 355, 1474, 357, 451, 1505, 359, 1268, 1474, 1257, 1505, - /* 1310 */ 356, 1519, 1506, 1507, 1512, 363, 360, 244, 1506, 1507, - /* 1320 */ 1512, 361, 364, 1518, 1506, 1507, 1512, 365, 1523, 1256, - /* 1330 */ 1253, 1327, 975, 1523, 973, 447, 1326, 1266, 274, 273, - /* 1340 */ 447, 898, 897, 896, 253, 451, 1261, 514, 1069, 1474, - /* 1350 */ 451, 1505, 895, 892, 1474, 891, 254, 1505, 74, 388, - /* 1360 */ 512, 1259, 154, 255, 1062, 245, 1506, 1507, 1512, 1252, - /* 1370 */ 243, 1506, 1507, 1512, 393, 1523, 391, 1251, 395, 72, - /* 1380 */ 1458, 1523, 447, 1061, 168, 1042, 1505, 1452, 447, 403, - /* 1390 */ 1440, 1439, 451, 114, 1431, 55, 1474, 173, 451, 3, - /* 1400 */ 14, 121, 1474, 34, 1492, 15, 39, 57, 178, 189, - /* 1410 */ 1523, 183, 240, 1506, 1507, 1512, 182, 447, 230, 1506, - /* 1420 */ 1507, 1512, 19, 466, 1185, 44, 1178, 451, 123, 404, - /* 1430 */ 175, 1474, 56, 38, 20, 1065, 37, 1157, 1207, 1156, - /* 1440 */ 1206, 131, 16, 1212, 262, 1211, 1210, 231, 1506, 1507, - /* 1450 */ 1512, 263, 8, 1096, 1094, 33, 196, 13, 18, 1430, - /* 1460 */ 197, 1121, 203, 1183, 1071, 469, 199, 201, 1491, 46, - /* 1470 */ 58, 467, 1070, 62, 959, 456, 205, 276, 40, 471, - /* 1480 */ 936, 36, 473, 208, 956, 474, 476, 953, 477, 1073, - /* 1490 */ 947, 10, 479, 945, 480, 482, 483, 951, 63, 970, - /* 1500 */ 950, 966, 47, 64, 489, 964, 864, 501, 905, 949, - /* 1510 */ 499, 211, 887, 886, 885, 948, 884, 883, 882, 881, - /* 1520 */ 880, 902, 900, 877, 876, 875, 872, 871, 870, 869, - /* 1530 */ 969, 1273, 523, 524, 1271, 525, 528, 527, 529, 1269, - /* 1540 */ 531, 532, 1267, 1255, 533, 535, 536, 537, 1254, 539, - /* 1550 */ 540, 1250, 543, 544, 1225, 1058, 548, 219, 547, + /* 0 */ 452, 1226, 258, 270, 452, 465, 1438, 25, 195, 118, + /* 10 */ 1439, 1240, 30, 28, 73, 21, 307, 1508, 1339, 1489, + /* 20 */ 267, 370, 1057, 23, 848, 32, 31, 29, 27, 26, + /* 30 */ 1348, 1485, 1491, 32, 31, 29, 27, 26, 1055, 275, + /* 40 */ 368, 1526, 32, 31, 29, 27, 26, 1619, 434, 464, + /* 50 */ 11, 30, 28, 1167, 283, 464, 1489, 1062, 451, 267, + /* 60 */ 132, 1057, 1476, 1476, 1617, 30, 28, 450, 1485, 1491, + /* 70 */ 1508, 464, 1572, 267, 1, 1057, 278, 1055, 70, 1509, + /* 80 */ 1510, 1515, 1558, 1429, 1431, 1619, 260, 1554, 127, 11, + /* 90 */ 1569, 1055, 1228, 1280, 1526, 1619, 1062, 546, 132, 349, + /* 100 */ 191, 434, 1617, 12, 1077, 1100, 414, 1585, 1618, 1056, + /* 110 */ 1062, 451, 1617, 1, 1496, 1476, 94, 93, 92, 91, + /* 120 */ 90, 89, 88, 87, 86, 12, 1494, 7, 1097, 138, + /* 130 */ 1489, 70, 1509, 1510, 1515, 1558, 546, 335, 1395, 260, + /* 140 */ 1554, 127, 1485, 1492, 257, 384, 1058, 378, 1056, 1393, + /* 150 */ 546, 383, 465, 1086, 98, 51, 379, 377, 50, 380, + /* 160 */ 1586, 311, 1056, 1061, 1081, 1082, 1083, 1084, 1085, 449, + /* 170 */ 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1348, 32, 31, + /* 180 */ 29, 27, 26, 142, 141, 1058, 85, 124, 133, 84, + /* 190 */ 83, 82, 81, 80, 79, 78, 77, 76, 1388, 1058, + /* 200 */ 542, 541, 1061, 1081, 1082, 1083, 1084, 1085, 449, 1112, + /* 210 */ 1113, 1114, 1115, 1116, 1117, 1118, 1061, 1081, 1082, 1083, + /* 220 */ 1084, 1085, 449, 1112, 1113, 1114, 1115, 1116, 1117, 1118, + /* 230 */ 30, 28, 32, 31, 29, 27, 26, 465, 267, 133, + /* 240 */ 1057, 1251, 1191, 165, 30, 28, 73, 373, 133, 384, + /* 250 */ 398, 378, 267, 376, 1057, 383, 1055, 306, 98, 305, + /* 260 */ 379, 377, 1348, 380, 438, 1080, 313, 1132, 11, 375, + /* 270 */ 1055, 190, 133, 1508, 1465, 1062, 418, 1189, 1190, 1192, + /* 280 */ 1193, 1619, 431, 30, 28, 1136, 1476, 389, 396, 1062, + /* 290 */ 53, 267, 1, 1057, 132, 1181, 239, 1526, 1617, 66, + /* 300 */ 133, 394, 397, 97, 447, 1221, 7, 101, 465, 1055, + /* 310 */ 290, 1343, 22, 102, 451, 546, 167, 312, 1476, 392, + /* 320 */ 1340, 119, 465, 465, 386, 1306, 435, 1056, 1062, 546, + /* 330 */ 166, 320, 321, 1348, 70, 1509, 1510, 1515, 1558, 53, + /* 340 */ 99, 1056, 260, 1554, 1631, 7, 465, 1348, 1348, 1079, + /* 350 */ 188, 1565, 430, 1592, 429, 348, 43, 1619, 421, 42, + /* 360 */ 1344, 271, 382, 381, 1058, 29, 27, 26, 546, 116, + /* 370 */ 132, 1348, 515, 513, 1617, 1220, 217, 1350, 1058, 1378, + /* 380 */ 1056, 1061, 1081, 1082, 1083, 1084, 1085, 449, 1112, 1113, + /* 390 */ 1114, 1115, 1116, 1117, 1118, 1061, 1081, 1082, 1083, 1084, + /* 400 */ 1085, 449, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1081, + /* 410 */ 1082, 1083, 1084, 1085, 1572, 426, 422, 1058, 9, 8, + /* 420 */ 133, 32, 31, 29, 27, 26, 32, 31, 29, 27, + /* 430 */ 26, 425, 1568, 1250, 1061, 1081, 1082, 1083, 1084, 1085, + /* 440 */ 449, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 30, 28, + /* 450 */ 32, 31, 29, 27, 26, 238, 267, 1077, 1057, 32, + /* 460 */ 31, 29, 27, 26, 328, 437, 1249, 340, 1326, 1572, + /* 470 */ 465, 849, 153, 848, 1055, 126, 341, 1229, 1476, 1345, + /* 480 */ 1248, 366, 1324, 362, 358, 354, 152, 1567, 242, 1526, + /* 490 */ 251, 850, 1143, 1062, 1174, 1348, 447, 242, 85, 1247, + /* 500 */ 1079, 84, 83, 82, 81, 80, 79, 78, 77, 76, + /* 510 */ 1, 1476, 54, 1100, 465, 150, 165, 349, 465, 900, + /* 520 */ 373, 1130, 1426, 462, 500, 1476, 1246, 463, 424, 140, + /* 530 */ 1130, 500, 252, 546, 250, 249, 6, 372, 902, 1348, + /* 540 */ 1245, 1078, 375, 1348, 1476, 1056, 1244, 115, 465, 339, + /* 550 */ 1243, 1242, 334, 333, 332, 331, 330, 209, 327, 326, + /* 560 */ 325, 324, 323, 319, 318, 317, 316, 315, 314, 1395, + /* 570 */ 1131, 1476, 149, 1348, 121, 272, 146, 502, 277, 1131, + /* 580 */ 1393, 1395, 1058, 1277, 491, 1476, 116, 279, 1135, 465, + /* 590 */ 1166, 1476, 1393, 144, 1350, 1476, 1476, 1135, 281, 1061, + /* 600 */ 1081, 1082, 1083, 1084, 1085, 449, 1112, 1113, 1114, 1115, + /* 610 */ 1116, 1117, 1118, 60, 1348, 24, 265, 1125, 1126, 1127, + /* 620 */ 1128, 1129, 1133, 1134, 24, 265, 1125, 1126, 1127, 1128, + /* 630 */ 1129, 1133, 1134, 1239, 1341, 522, 521, 520, 519, 282, + /* 640 */ 1087, 518, 517, 516, 103, 511, 510, 509, 508, 507, + /* 650 */ 506, 505, 504, 109, 938, 488, 487, 486, 942, 485, + /* 660 */ 944, 945, 484, 947, 481, 549, 953, 478, 955, 956, + /* 670 */ 475, 472, 117, 1508, 1337, 1238, 1237, 223, 1476, 214, + /* 680 */ 1162, 1236, 96, 158, 274, 273, 156, 280, 538, 221, + /* 690 */ 534, 530, 526, 213, 1070, 116, 298, 1526, 1395, 1235, + /* 700 */ 1508, 1234, 143, 1350, 447, 1233, 1232, 116, 1231, 1430, + /* 710 */ 1063, 300, 1577, 1162, 451, 1351, 1395, 1267, 1476, 67, + /* 720 */ 1476, 1476, 207, 435, 1526, 1508, 1476, 1394, 503, 1062, + /* 730 */ 1320, 447, 9, 8, 69, 1509, 1510, 1515, 1558, 385, + /* 740 */ 439, 451, 241, 1554, 1476, 1476, 1476, 65, 266, 1526, + /* 750 */ 1476, 1476, 461, 1476, 1619, 107, 447, 62, 176, 410, + /* 760 */ 1508, 234, 1509, 1510, 1515, 68, 451, 132, 514, 466, + /* 770 */ 1476, 1617, 301, 415, 160, 1165, 162, 159, 1333, 161, + /* 780 */ 413, 1066, 164, 172, 1526, 163, 234, 1509, 1510, 1515, + /* 790 */ 442, 447, 45, 49, 48, 310, 1188, 137, 1041, 1335, + /* 800 */ 169, 451, 304, 1508, 1262, 1476, 1260, 179, 1223, 1224, + /* 810 */ 247, 181, 296, 34, 292, 288, 134, 1137, 1071, 446, + /* 820 */ 1331, 70, 1509, 1510, 1515, 1558, 387, 1526, 390, 260, + /* 830 */ 1554, 1631, 34, 34, 447, 1074, 1095, 1024, 170, 1508, + /* 840 */ 1615, 874, 133, 198, 451, 1508, 95, 200, 1476, 105, + /* 850 */ 457, 107, 45, 206, 448, 931, 926, 1065, 1064, 406, + /* 860 */ 875, 490, 1241, 1526, 70, 1509, 1510, 1515, 1558, 1526, + /* 870 */ 447, 192, 260, 1554, 1631, 440, 447, 1307, 470, 407, + /* 880 */ 451, 1508, 959, 1576, 1476, 344, 451, 405, 105, 435, + /* 890 */ 1476, 431, 963, 106, 1508, 107, 419, 969, 185, 968, + /* 900 */ 229, 1509, 1510, 1515, 1389, 1526, 71, 1509, 1510, 1515, + /* 910 */ 1558, 367, 447, 1588, 1557, 1554, 101, 105, 1526, 432, + /* 920 */ 1619, 108, 451, 408, 1527, 447, 1476, 443, 1068, 1067, + /* 930 */ 194, 2, 1122, 132, 1077, 451, 285, 1617, 1508, 1476, + /* 940 */ 289, 900, 71, 1509, 1510, 1515, 1558, 246, 215, 99, + /* 950 */ 445, 1554, 248, 1033, 1619, 120, 1509, 1510, 1515, 129, + /* 960 */ 1565, 1566, 1526, 1570, 1508, 322, 431, 132, 1428, 447, + /* 970 */ 139, 1617, 337, 329, 336, 342, 338, 1091, 343, 451, + /* 980 */ 1090, 345, 145, 1476, 346, 1089, 347, 148, 1526, 52, + /* 990 */ 350, 101, 1088, 436, 1632, 447, 151, 371, 1508, 71, + /* 1000 */ 1509, 1510, 1515, 1558, 369, 451, 1508, 75, 1555, 1476, + /* 1010 */ 374, 1338, 256, 399, 155, 1334, 400, 157, 401, 402, + /* 1020 */ 110, 111, 1526, 1336, 99, 233, 1509, 1510, 1515, 447, + /* 1030 */ 1526, 1332, 112, 433, 128, 1565, 1566, 447, 1570, 451, + /* 1040 */ 1508, 1087, 171, 1476, 411, 1589, 113, 451, 174, 1508, + /* 1050 */ 420, 1476, 409, 412, 264, 1508, 455, 427, 1599, 120, + /* 1060 */ 1509, 1510, 1515, 1062, 1526, 177, 5, 234, 1509, 1510, + /* 1070 */ 1515, 447, 417, 1526, 180, 259, 428, 423, 416, 1526, + /* 1080 */ 447, 451, 4, 1508, 1162, 1476, 447, 100, 268, 1086, + /* 1090 */ 451, 1508, 261, 1579, 1476, 1598, 451, 35, 1633, 184, + /* 1100 */ 1476, 234, 1509, 1510, 1515, 1573, 444, 1526, 17, 125, + /* 1110 */ 226, 1509, 1510, 1515, 447, 1526, 232, 1509, 1510, 1515, + /* 1120 */ 1325, 441, 447, 186, 451, 1508, 1540, 1057, 1476, 187, + /* 1130 */ 1437, 1634, 451, 1508, 453, 454, 1476, 269, 1616, 1436, + /* 1140 */ 193, 459, 458, 1055, 235, 1509, 1510, 1515, 204, 1526, + /* 1150 */ 202, 460, 227, 1509, 1510, 1515, 447, 1526, 216, 1508, + /* 1160 */ 59, 61, 1062, 1349, 447, 1321, 451, 468, 497, 218, + /* 1170 */ 1476, 212, 545, 41, 451, 224, 220, 1470, 1476, 225, + /* 1180 */ 222, 210, 1469, 1526, 1508, 496, 236, 1509, 1510, 1515, + /* 1190 */ 447, 284, 1466, 286, 228, 1509, 1510, 1515, 287, 1051, + /* 1200 */ 451, 1052, 546, 135, 1476, 291, 1464, 498, 1526, 1508, + /* 1210 */ 293, 294, 295, 1463, 1056, 447, 297, 1462, 1508, 299, + /* 1220 */ 237, 1509, 1510, 1515, 1453, 451, 495, 494, 493, 1476, + /* 1230 */ 492, 136, 302, 1526, 303, 1036, 1035, 1447, 1446, 308, + /* 1240 */ 447, 1445, 1526, 1508, 309, 1523, 1509, 1510, 1515, 447, + /* 1250 */ 451, 1058, 1508, 1444, 1476, 1007, 1421, 1420, 1419, 451, + /* 1260 */ 1418, 1417, 1416, 1476, 1415, 1414, 1413, 1526, 1061, 1412, + /* 1270 */ 1522, 1509, 1510, 1515, 447, 1411, 1526, 1508, 1410, 244, + /* 1280 */ 1509, 1510, 1515, 447, 451, 1409, 1508, 1408, 1476, 1407, + /* 1290 */ 1406, 104, 1405, 451, 1404, 1403, 1402, 1476, 1323, 1401, + /* 1300 */ 1400, 1526, 1009, 1399, 1521, 1509, 1510, 1515, 447, 1398, + /* 1310 */ 1526, 1508, 1397, 245, 1509, 1510, 1515, 447, 451, 431, + /* 1320 */ 1396, 1279, 1476, 1461, 1455, 1443, 1434, 451, 1327, 147, + /* 1330 */ 867, 1476, 1278, 1276, 353, 1526, 1274, 1508, 243, 1509, + /* 1340 */ 1510, 1515, 447, 351, 101, 355, 352, 240, 1509, 1510, + /* 1350 */ 1515, 356, 451, 1272, 357, 359, 1476, 361, 360, 210, + /* 1360 */ 1270, 1526, 365, 496, 1259, 363, 364, 1258, 447, 1255, + /* 1370 */ 1329, 74, 230, 1509, 1510, 1515, 976, 99, 451, 514, + /* 1380 */ 974, 1328, 1476, 154, 899, 498, 898, 130, 1565, 1566, + /* 1390 */ 897, 1570, 896, 893, 892, 1268, 253, 1263, 231, 1509, + /* 1400 */ 1510, 1515, 512, 1261, 495, 494, 493, 254, 492, 255, + /* 1410 */ 388, 391, 1254, 393, 1253, 395, 72, 1460, 168, 44, + /* 1420 */ 1043, 1454, 114, 403, 1442, 1441, 1433, 173, 3, 1494, + /* 1430 */ 189, 404, 122, 55, 34, 14, 178, 175, 15, 38, + /* 1440 */ 1187, 1180, 123, 39, 10, 36, 57, 1209, 183, 182, + /* 1450 */ 19, 20, 56, 1208, 1159, 8, 262, 37, 1158, 1432, + /* 1460 */ 1213, 16, 203, 1072, 1214, 1212, 263, 1275, 33, 1123, + /* 1470 */ 456, 469, 205, 1098, 131, 1096, 13, 276, 196, 18, + /* 1480 */ 937, 197, 1185, 62, 199, 201, 473, 46, 476, 467, + /* 1490 */ 58, 965, 479, 482, 1493, 971, 881, 40, 967, 543, + /* 1500 */ 1227, 544, 524, 1273, 960, 471, 208, 957, 474, 888, + /* 1510 */ 954, 477, 865, 948, 480, 499, 887, 886, 946, 483, + /* 1520 */ 906, 885, 884, 63, 883, 882, 47, 903, 901, 952, + /* 1530 */ 64, 878, 877, 211, 489, 951, 501, 876, 525, 529, + /* 1540 */ 1271, 528, 527, 950, 873, 949, 872, 871, 870, 523, + /* 1550 */ 531, 532, 1269, 536, 535, 1257, 533, 537, 539, 540, + /* 1560 */ 970, 1256, 1252, 1059, 219, 547, 548, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 254, 210, 241, 257, 254, 219, 260, 279, 280, 212, - /* 10 */ 260, 214, 12, 13, 228, 2, 263, 213, 213, 258, - /* 20 */ 20, 235, 22, 2, 20, 12, 13, 14, 15, 16, - /* 30 */ 244, 270, 271, 12, 13, 14, 15, 16, 38, 241, - /* 40 */ 20, 237, 12, 13, 14, 15, 16, 294, 244, 20, - /* 50 */ 50, 12, 13, 14, 263, 0, 258, 57, 254, 20, - /* 60 */ 307, 22, 258, 258, 311, 12, 13, 14, 270, 271, - /* 70 */ 213, 20, 49, 20, 74, 22, 246, 38, 274, 275, - /* 80 */ 276, 277, 278, 253, 254, 294, 282, 283, 284, 50, - /* 90 */ 20, 38, 0, 0, 237, 294, 57, 97, 307, 4, - /* 100 */ 296, 244, 311, 74, 49, 75, 302, 303, 307, 109, - /* 110 */ 57, 254, 311, 74, 49, 258, 24, 25, 26, 27, - /* 120 */ 28, 29, 30, 31, 32, 74, 236, 74, 75, 47, - /* 130 */ 258, 274, 275, 276, 277, 278, 97, 247, 237, 282, - /* 140 */ 283, 284, 270, 271, 243, 52, 146, 54, 109, 248, - /* 150 */ 97, 58, 219, 219, 61, 73, 63, 64, 76, 66, - /* 160 */ 303, 228, 109, 163, 164, 165, 166, 167, 168, 169, - /* 170 */ 170, 171, 172, 173, 174, 175, 219, 244, 12, 13, - /* 180 */ 14, 15, 16, 249, 20, 146, 21, 187, 187, 24, - /* 190 */ 25, 26, 27, 28, 29, 30, 31, 32, 225, 146, - /* 200 */ 227, 244, 163, 164, 165, 166, 167, 168, 169, 170, - /* 210 */ 171, 172, 173, 174, 175, 213, 163, 164, 165, 166, - /* 220 */ 167, 168, 169, 170, 171, 172, 173, 174, 175, 12, - /* 230 */ 13, 145, 222, 147, 277, 20, 226, 20, 187, 22, - /* 240 */ 237, 263, 12, 13, 287, 288, 289, 244, 291, 18, - /* 250 */ 20, 20, 22, 216, 217, 38, 35, 187, 27, 272, - /* 260 */ 258, 30, 12, 13, 14, 15, 16, 50, 38, 20, - /* 270 */ 39, 213, 294, 187, 57, 38, 229, 290, 221, 276, - /* 280 */ 12, 13, 61, 188, 237, 307, 65, 57, 20, 311, - /* 290 */ 22, 74, 245, 61, 57, 237, 218, 65, 77, 242, - /* 300 */ 79, 80, 244, 82, 74, 139, 38, 85, 87, 52, - /* 310 */ 232, 54, 254, 219, 97, 58, 258, 239, 61, 87, - /* 320 */ 63, 64, 228, 66, 221, 57, 109, 97, 164, 165, - /* 330 */ 166, 167, 274, 275, 276, 277, 278, 234, 244, 109, - /* 340 */ 282, 283, 74, 112, 43, 242, 115, 116, 117, 118, - /* 350 */ 119, 57, 121, 122, 123, 124, 125, 126, 127, 128, - /* 360 */ 129, 130, 131, 146, 136, 97, 12, 13, 14, 15, - /* 370 */ 16, 223, 224, 163, 208, 71, 146, 109, 67, 75, - /* 380 */ 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, - /* 390 */ 173, 174, 175, 163, 164, 165, 166, 167, 168, 169, - /* 400 */ 170, 171, 172, 173, 174, 175, 196, 197, 198, 199, - /* 410 */ 200, 14, 15, 16, 146, 237, 237, 187, 12, 13, - /* 420 */ 192, 193, 243, 245, 113, 114, 20, 248, 22, 75, - /* 430 */ 218, 163, 164, 165, 166, 167, 168, 169, 170, 171, - /* 440 */ 172, 173, 174, 175, 38, 12, 13, 14, 15, 16, - /* 450 */ 20, 239, 88, 89, 90, 91, 92, 93, 94, 95, - /* 460 */ 96, 97, 98, 57, 100, 101, 102, 103, 104, 105, - /* 470 */ 12, 13, 14, 15, 16, 223, 224, 238, 237, 22, - /* 480 */ 74, 0, 219, 50, 219, 219, 213, 186, 219, 248, - /* 490 */ 237, 228, 244, 228, 228, 38, 229, 228, 235, 251, - /* 500 */ 18, 248, 219, 97, 237, 23, 0, 244, 75, 244, - /* 510 */ 244, 228, 245, 244, 57, 109, 83, 35, 20, 213, - /* 520 */ 22, 12, 13, 14, 15, 16, 230, 244, 238, 233, - /* 530 */ 48, 258, 219, 52, 53, 54, 55, 56, 40, 58, - /* 540 */ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, - /* 550 */ 69, 70, 146, 213, 97, 49, 237, 244, 238, 50, - /* 560 */ 3, 213, 243, 213, 258, 132, 109, 248, 138, 163, - /* 570 */ 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, - /* 580 */ 174, 175, 219, 150, 238, 219, 71, 1, 2, 229, - /* 590 */ 277, 228, 83, 111, 213, 238, 138, 237, 258, 286, - /* 600 */ 287, 288, 289, 146, 291, 245, 258, 244, 258, 176, - /* 610 */ 177, 178, 179, 180, 181, 182, 183, 184, 213, 266, - /* 620 */ 163, 139, 140, 141, 0, 143, 213, 213, 238, 263, - /* 630 */ 148, 20, 0, 213, 213, 213, 213, 219, 156, 258, - /* 640 */ 158, 132, 160, 161, 162, 21, 228, 272, 24, 25, - /* 650 */ 26, 27, 28, 29, 30, 31, 32, 237, 272, 150, - /* 660 */ 294, 75, 244, 258, 244, 290, 213, 213, 36, 187, - /* 670 */ 238, 258, 258, 307, 254, 213, 290, 311, 258, 258, - /* 680 */ 258, 258, 132, 263, 219, 176, 177, 178, 179, 180, - /* 690 */ 181, 182, 183, 184, 274, 275, 276, 277, 278, 237, - /* 700 */ 150, 214, 282, 283, 219, 213, 244, 19, 0, 244, - /* 710 */ 71, 258, 258, 228, 294, 71, 254, 213, 213, 75, - /* 720 */ 258, 33, 207, 213, 36, 213, 176, 307, 263, 244, - /* 730 */ 42, 311, 44, 45, 46, 47, 274, 275, 276, 277, - /* 740 */ 278, 237, 277, 71, 282, 283, 284, 75, 244, 138, - /* 750 */ 258, 22, 287, 288, 289, 293, 291, 226, 254, 294, - /* 760 */ 203, 73, 258, 258, 76, 213, 219, 38, 258, 61, - /* 770 */ 258, 14, 307, 65, 50, 228, 311, 20, 274, 275, - /* 780 */ 276, 277, 278, 185, 186, 142, 282, 283, 284, 237, - /* 790 */ 78, 244, 219, 81, 106, 87, 244, 293, 0, 78, - /* 800 */ 157, 0, 81, 1, 2, 78, 254, 213, 81, 78, - /* 810 */ 258, 0, 81, 38, 106, 107, 108, 244, 110, 305, - /* 820 */ 22, 314, 134, 22, 21, 137, 274, 275, 276, 277, - /* 830 */ 278, 237, 57, 22, 282, 283, 284, 34, 244, 71, - /* 840 */ 152, 254, 154, 75, 205, 293, 164, 165, 254, 71, - /* 850 */ 277, 71, 258, 75, 213, 75, 38, 263, 254, 247, - /* 860 */ 287, 288, 289, 33, 291, 38, 36, 74, 274, 275, - /* 870 */ 276, 277, 42, 74, 44, 45, 46, 47, 237, 86, - /* 880 */ 71, 299, 216, 84, 75, 244, 71, 163, 294, 213, - /* 890 */ 75, 273, 71, 292, 71, 254, 75, 213, 75, 258, - /* 900 */ 237, 307, 295, 73, 308, 311, 76, 20, 71, 219, - /* 910 */ 71, 4, 75, 237, 75, 274, 275, 276, 277, 278, - /* 920 */ 244, 237, 36, 282, 283, 71, 19, 109, 244, 75, - /* 930 */ 254, 213, 38, 71, 258, 71, 109, 75, 254, 75, - /* 940 */ 33, 144, 258, 36, 269, 261, 223, 264, 41, 219, - /* 950 */ 274, 275, 276, 277, 47, 237, 219, 252, 274, 275, - /* 960 */ 276, 277, 244, 133, 71, 135, 213, 137, 75, 71, - /* 970 */ 120, 219, 254, 75, 132, 213, 258, 20, 250, 268, - /* 980 */ 73, 20, 250, 76, 154, 221, 244, 262, 312, 313, - /* 990 */ 237, 20, 274, 275, 276, 277, 278, 244, 255, 237, - /* 1000 */ 213, 283, 221, 221, 219, 221, 244, 254, 20, 215, - /* 1010 */ 237, 258, 268, 237, 261, 223, 254, 267, 244, 219, - /* 1020 */ 258, 0, 153, 237, 237, 237, 237, 274, 275, 276, - /* 1030 */ 277, 244, 237, 237, 215, 218, 274, 275, 276, 277, - /* 1040 */ 218, 254, 213, 237, 237, 258, 255, 237, 213, 237, - /* 1050 */ 20, 195, 262, 304, 213, 194, 273, 244, 304, 57, - /* 1060 */ 202, 274, 275, 276, 277, 300, 237, 259, 306, 201, - /* 1070 */ 301, 190, 237, 244, 258, 298, 297, 189, 237, 244, - /* 1080 */ 244, 186, 61, 254, 259, 244, 65, 258, 20, 254, - /* 1090 */ 261, 258, 258, 258, 120, 254, 261, 206, 272, 258, - /* 1100 */ 313, 209, 213, 274, 275, 276, 277, 204, 87, 274, - /* 1110 */ 275, 276, 277, 213, 309, 274, 275, 276, 277, 315, - /* 1120 */ 74, 281, 259, 285, 310, 258, 237, 106, 107, 108, - /* 1130 */ 258, 110, 259, 244, 258, 135, 256, 237, 213, 255, - /* 1140 */ 244, 218, 233, 254, 244, 218, 244, 258, 74, 223, - /* 1150 */ 240, 227, 219, 218, 254, 215, 220, 211, 258, 231, - /* 1160 */ 231, 0, 237, 274, 275, 276, 277, 213, 0, 244, - /* 1170 */ 265, 64, 213, 38, 274, 275, 276, 277, 0, 254, - /* 1180 */ 213, 159, 159, 258, 38, 38, 38, 0, 38, 38, - /* 1190 */ 159, 237, 0, 38, 0, 38, 237, 0, 244, 274, - /* 1200 */ 275, 276, 277, 244, 237, 74, 150, 149, 254, 109, - /* 1210 */ 146, 244, 258, 254, 213, 0, 0, 258, 53, 142, - /* 1220 */ 0, 254, 0, 86, 0, 258, 0, 0, 274, 275, - /* 1230 */ 276, 277, 0, 274, 275, 276, 277, 0, 237, 0, - /* 1240 */ 0, 274, 275, 276, 277, 244, 0, 0, 0, 0, - /* 1250 */ 213, 0, 0, 0, 0, 254, 213, 0, 0, 258, - /* 1260 */ 120, 0, 213, 0, 0, 0, 0, 22, 0, 0, - /* 1270 */ 0, 0, 0, 0, 237, 274, 275, 276, 277, 0, - /* 1280 */ 237, 244, 0, 0, 43, 0, 237, 244, 0, 51, - /* 1290 */ 0, 254, 0, 244, 38, 258, 36, 254, 43, 0, - /* 1300 */ 38, 258, 43, 254, 213, 38, 0, 258, 0, 213, - /* 1310 */ 36, 274, 275, 276, 277, 38, 36, 274, 275, 276, - /* 1320 */ 277, 43, 36, 274, 275, 276, 277, 43, 237, 0, - /* 1330 */ 0, 0, 38, 237, 22, 244, 0, 0, 12, 13, - /* 1340 */ 244, 38, 38, 38, 22, 254, 0, 71, 22, 258, - /* 1350 */ 254, 213, 38, 38, 258, 38, 22, 213, 83, 39, - /* 1360 */ 71, 0, 81, 22, 38, 274, 275, 276, 277, 0, - /* 1370 */ 274, 275, 276, 277, 22, 237, 38, 0, 22, 20, - /* 1380 */ 0, 237, 244, 57, 155, 38, 213, 0, 244, 22, - /* 1390 */ 0, 0, 254, 151, 0, 74, 258, 43, 254, 71, - /* 1400 */ 191, 74, 258, 71, 86, 191, 71, 4, 75, 86, - /* 1410 */ 237, 71, 274, 275, 276, 277, 74, 244, 274, 275, - /* 1420 */ 276, 277, 74, 97, 75, 138, 75, 254, 135, 138, - /* 1430 */ 133, 258, 74, 138, 71, 109, 71, 75, 38, 75, - /* 1440 */ 38, 86, 71, 75, 38, 38, 38, 274, 275, 276, - /* 1450 */ 277, 38, 2, 75, 75, 74, 86, 74, 74, 0, - /* 1460 */ 75, 163, 43, 75, 22, 38, 74, 74, 86, 74, - /* 1470 */ 74, 85, 146, 84, 75, 136, 133, 38, 74, 74, - /* 1480 */ 22, 185, 38, 86, 75, 74, 38, 75, 74, 163, - /* 1490 */ 75, 191, 38, 75, 74, 38, 74, 99, 74, 38, - /* 1500 */ 99, 38, 74, 74, 87, 22, 51, 72, 57, 99, - /* 1510 */ 50, 71, 38, 38, 38, 99, 38, 38, 38, 38, - /* 1520 */ 22, 57, 38, 38, 38, 38, 38, 38, 38, 38, - /* 1530 */ 109, 0, 38, 36, 0, 43, 36, 38, 43, 0, - /* 1540 */ 38, 36, 0, 0, 43, 38, 36, 43, 0, 38, - /* 1550 */ 37, 0, 22, 21, 316, 22, 20, 22, 21, 316, - /* 1560 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1570 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1580 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1590 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1600 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1610 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1620 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1630 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1640 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1650 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1660 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1670 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1680 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1690 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1700 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1710 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1720 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1730 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1740 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1750 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, - /* 1760 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, + /* 0 */ 255, 211, 242, 258, 255, 220, 261, 280, 281, 213, + /* 10 */ 261, 215, 12, 13, 229, 2, 264, 214, 214, 259, + /* 20 */ 20, 236, 22, 2, 22, 12, 13, 14, 15, 16, + /* 30 */ 245, 271, 272, 12, 13, 14, 15, 16, 38, 242, + /* 40 */ 38, 238, 12, 13, 14, 15, 16, 295, 245, 20, + /* 50 */ 50, 12, 13, 14, 264, 20, 259, 57, 255, 20, + /* 60 */ 308, 22, 259, 259, 312, 12, 13, 14, 271, 272, + /* 70 */ 214, 20, 273, 20, 74, 22, 247, 38, 275, 276, + /* 80 */ 277, 278, 279, 254, 255, 295, 283, 284, 285, 50, + /* 90 */ 291, 38, 0, 0, 238, 295, 57, 97, 308, 49, + /* 100 */ 297, 245, 312, 74, 20, 75, 303, 304, 308, 109, + /* 110 */ 57, 255, 312, 74, 74, 259, 24, 25, 26, 27, + /* 120 */ 28, 29, 30, 31, 32, 74, 86, 74, 75, 47, + /* 130 */ 259, 275, 276, 277, 278, 279, 97, 67, 238, 283, + /* 140 */ 284, 285, 271, 272, 244, 52, 146, 54, 109, 249, + /* 150 */ 97, 58, 220, 20, 61, 73, 63, 64, 76, 66, + /* 160 */ 304, 229, 109, 163, 164, 165, 166, 167, 168, 169, + /* 170 */ 170, 171, 172, 173, 174, 175, 176, 245, 12, 13, + /* 180 */ 14, 15, 16, 113, 114, 146, 21, 237, 188, 24, + /* 190 */ 25, 26, 27, 28, 29, 30, 31, 32, 248, 146, + /* 200 */ 217, 218, 163, 164, 165, 166, 167, 168, 169, 170, + /* 210 */ 171, 172, 173, 174, 175, 176, 163, 164, 165, 166, + /* 220 */ 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, + /* 230 */ 12, 13, 12, 13, 14, 15, 16, 220, 20, 188, + /* 240 */ 22, 214, 163, 61, 12, 13, 229, 65, 188, 52, + /* 250 */ 264, 54, 20, 236, 22, 58, 38, 145, 61, 147, + /* 260 */ 63, 64, 245, 66, 3, 20, 220, 132, 50, 87, + /* 270 */ 38, 138, 188, 214, 0, 57, 197, 198, 199, 200, + /* 280 */ 201, 295, 220, 12, 13, 150, 259, 4, 21, 57, + /* 290 */ 222, 20, 74, 22, 308, 75, 250, 238, 312, 219, + /* 300 */ 188, 34, 19, 235, 245, 139, 74, 245, 220, 38, + /* 310 */ 36, 243, 177, 233, 255, 97, 33, 229, 259, 36, + /* 320 */ 240, 223, 220, 220, 41, 227, 264, 109, 57, 97, + /* 330 */ 47, 229, 229, 245, 275, 276, 277, 278, 279, 222, + /* 340 */ 278, 109, 283, 284, 285, 74, 220, 245, 245, 20, + /* 350 */ 288, 289, 290, 294, 292, 229, 73, 295, 136, 76, + /* 360 */ 243, 230, 224, 225, 146, 14, 15, 16, 97, 238, + /* 370 */ 308, 245, 224, 225, 312, 209, 231, 246, 146, 234, + /* 380 */ 109, 163, 164, 165, 166, 167, 168, 169, 170, 171, + /* 390 */ 172, 173, 174, 175, 176, 163, 164, 165, 166, 167, + /* 400 */ 168, 169, 170, 171, 172, 173, 174, 175, 176, 164, + /* 410 */ 165, 166, 167, 168, 273, 193, 194, 146, 1, 2, + /* 420 */ 188, 12, 13, 14, 15, 16, 12, 13, 14, 15, + /* 430 */ 16, 20, 291, 214, 163, 164, 165, 166, 167, 168, + /* 440 */ 169, 170, 171, 172, 173, 174, 175, 176, 12, 13, + /* 450 */ 12, 13, 14, 15, 16, 18, 20, 20, 22, 12, + /* 460 */ 13, 14, 15, 16, 27, 204, 214, 30, 0, 273, + /* 470 */ 220, 20, 33, 22, 38, 36, 39, 0, 259, 229, + /* 480 */ 214, 42, 0, 44, 45, 46, 47, 291, 50, 238, + /* 490 */ 35, 40, 75, 57, 14, 245, 245, 50, 21, 214, + /* 500 */ 20, 24, 25, 26, 27, 28, 29, 30, 31, 32, + /* 510 */ 74, 259, 73, 75, 220, 76, 61, 49, 220, 38, + /* 520 */ 65, 83, 245, 229, 49, 259, 214, 229, 277, 252, + /* 530 */ 83, 49, 77, 97, 79, 80, 43, 82, 57, 245, + /* 540 */ 214, 20, 87, 245, 259, 109, 214, 138, 220, 112, + /* 550 */ 214, 214, 115, 116, 117, 118, 119, 229, 121, 122, + /* 560 */ 123, 124, 125, 126, 127, 128, 129, 130, 131, 238, + /* 570 */ 132, 259, 133, 245, 135, 244, 137, 57, 230, 132, + /* 580 */ 249, 238, 146, 0, 85, 259, 238, 244, 150, 220, + /* 590 */ 4, 259, 249, 154, 246, 259, 259, 150, 229, 163, + /* 600 */ 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, + /* 610 */ 174, 175, 176, 219, 245, 177, 178, 179, 180, 181, + /* 620 */ 182, 183, 184, 185, 177, 178, 179, 180, 181, 182, + /* 630 */ 183, 184, 185, 214, 240, 52, 53, 54, 55, 56, + /* 640 */ 20, 58, 59, 60, 61, 62, 63, 64, 65, 66, + /* 650 */ 67, 68, 69, 70, 88, 89, 90, 91, 92, 93, + /* 660 */ 94, 95, 96, 97, 98, 19, 100, 101, 102, 103, + /* 670 */ 104, 105, 18, 214, 239, 214, 214, 23, 259, 33, + /* 680 */ 187, 214, 36, 78, 12, 13, 81, 230, 42, 35, + /* 690 */ 44, 45, 46, 47, 22, 238, 142, 238, 238, 214, + /* 700 */ 214, 214, 48, 246, 245, 214, 214, 238, 214, 249, + /* 710 */ 38, 157, 186, 187, 255, 246, 238, 0, 259, 73, + /* 720 */ 259, 259, 76, 264, 238, 214, 259, 249, 226, 57, + /* 730 */ 228, 245, 1, 2, 275, 276, 277, 278, 279, 22, + /* 740 */ 71, 255, 283, 284, 259, 259, 259, 74, 262, 238, + /* 750 */ 259, 259, 106, 259, 295, 71, 245, 84, 138, 75, + /* 760 */ 214, 275, 276, 277, 278, 111, 255, 308, 71, 97, + /* 770 */ 259, 312, 75, 262, 78, 189, 78, 81, 239, 81, + /* 780 */ 134, 109, 78, 137, 238, 81, 275, 276, 277, 278, + /* 790 */ 71, 245, 71, 139, 140, 141, 75, 143, 152, 239, + /* 800 */ 154, 255, 148, 214, 0, 259, 0, 71, 164, 165, + /* 810 */ 156, 75, 158, 71, 160, 161, 162, 75, 146, 50, + /* 820 */ 239, 275, 276, 277, 278, 279, 22, 238, 22, 283, + /* 830 */ 284, 285, 71, 71, 245, 163, 75, 75, 239, 214, + /* 840 */ 294, 38, 188, 71, 255, 214, 71, 75, 259, 71, + /* 850 */ 75, 71, 71, 75, 239, 75, 75, 38, 38, 267, + /* 860 */ 57, 239, 215, 238, 275, 276, 277, 278, 279, 238, + /* 870 */ 245, 315, 283, 284, 285, 206, 245, 227, 71, 220, + /* 880 */ 255, 214, 75, 294, 259, 255, 255, 255, 71, 264, + /* 890 */ 259, 220, 75, 71, 214, 71, 306, 75, 300, 75, + /* 900 */ 275, 276, 277, 278, 248, 238, 275, 276, 277, 278, + /* 910 */ 279, 217, 245, 274, 283, 284, 245, 71, 238, 293, + /* 920 */ 295, 75, 255, 264, 238, 245, 259, 208, 109, 109, + /* 930 */ 309, 296, 163, 308, 20, 255, 220, 312, 214, 259, + /* 940 */ 36, 38, 275, 276, 277, 278, 279, 270, 265, 278, + /* 950 */ 283, 284, 224, 144, 295, 275, 276, 277, 278, 288, + /* 960 */ 289, 290, 238, 292, 214, 220, 220, 308, 220, 245, + /* 970 */ 120, 312, 132, 253, 251, 220, 251, 20, 269, 255, + /* 980 */ 20, 263, 222, 259, 245, 20, 256, 222, 238, 222, + /* 990 */ 220, 245, 20, 313, 314, 245, 222, 238, 214, 275, + /* 1000 */ 276, 277, 278, 279, 216, 255, 214, 220, 284, 259, + /* 1010 */ 224, 238, 216, 245, 238, 238, 269, 238, 153, 268, + /* 1020 */ 238, 238, 238, 238, 278, 275, 276, 277, 278, 245, + /* 1030 */ 238, 238, 238, 287, 288, 289, 290, 245, 292, 255, + /* 1040 */ 214, 20, 219, 259, 245, 274, 238, 255, 219, 214, + /* 1050 */ 196, 259, 263, 256, 262, 214, 195, 307, 305, 275, + /* 1060 */ 276, 277, 278, 57, 238, 260, 203, 275, 276, 277, + /* 1070 */ 278, 245, 259, 238, 260, 259, 202, 259, 191, 238, + /* 1080 */ 245, 255, 190, 214, 187, 259, 245, 245, 262, 20, + /* 1090 */ 255, 214, 210, 302, 259, 305, 255, 120, 314, 301, + /* 1100 */ 259, 275, 276, 277, 278, 273, 207, 238, 74, 299, + /* 1110 */ 275, 276, 277, 278, 245, 238, 275, 276, 277, 278, + /* 1120 */ 0, 205, 245, 298, 255, 214, 282, 22, 259, 286, + /* 1130 */ 260, 316, 255, 214, 259, 259, 259, 259, 311, 260, + /* 1140 */ 310, 257, 135, 38, 275, 276, 277, 278, 219, 238, + /* 1150 */ 245, 256, 275, 276, 277, 278, 245, 238, 234, 214, + /* 1160 */ 219, 74, 57, 245, 245, 228, 255, 241, 224, 220, + /* 1170 */ 259, 219, 216, 266, 255, 232, 221, 0, 259, 232, + /* 1180 */ 212, 61, 0, 238, 214, 65, 275, 276, 277, 278, + /* 1190 */ 245, 64, 0, 38, 275, 276, 277, 278, 159, 38, + /* 1200 */ 255, 38, 97, 38, 259, 159, 0, 87, 238, 214, + /* 1210 */ 38, 38, 159, 0, 109, 245, 38, 0, 214, 38, + /* 1220 */ 275, 276, 277, 278, 0, 255, 106, 107, 108, 259, + /* 1230 */ 110, 74, 150, 238, 149, 109, 146, 0, 0, 53, + /* 1240 */ 245, 0, 238, 214, 142, 275, 276, 277, 278, 245, + /* 1250 */ 255, 146, 214, 0, 259, 86, 0, 0, 0, 255, + /* 1260 */ 0, 0, 0, 259, 0, 0, 0, 238, 163, 0, + /* 1270 */ 275, 276, 277, 278, 245, 0, 238, 214, 0, 275, + /* 1280 */ 276, 277, 278, 245, 255, 0, 214, 0, 259, 0, + /* 1290 */ 0, 120, 0, 255, 0, 0, 0, 259, 0, 0, + /* 1300 */ 0, 238, 22, 0, 275, 276, 277, 278, 245, 0, + /* 1310 */ 238, 214, 0, 275, 276, 277, 278, 245, 255, 220, + /* 1320 */ 0, 0, 259, 0, 0, 0, 0, 255, 0, 43, + /* 1330 */ 51, 259, 0, 0, 43, 238, 0, 214, 275, 276, + /* 1340 */ 277, 278, 245, 38, 245, 38, 36, 275, 276, 277, + /* 1350 */ 278, 36, 255, 0, 43, 38, 259, 43, 36, 61, + /* 1360 */ 0, 238, 43, 65, 0, 38, 36, 0, 245, 0, + /* 1370 */ 0, 83, 275, 276, 277, 278, 38, 278, 255, 71, + /* 1380 */ 22, 0, 259, 81, 38, 87, 38, 288, 289, 290, + /* 1390 */ 38, 292, 38, 38, 38, 0, 22, 0, 275, 276, + /* 1400 */ 277, 278, 71, 0, 106, 107, 108, 22, 110, 22, + /* 1410 */ 39, 38, 0, 22, 0, 22, 20, 0, 155, 138, + /* 1420 */ 38, 0, 151, 22, 0, 0, 0, 43, 71, 86, + /* 1430 */ 86, 138, 135, 74, 71, 192, 75, 133, 192, 138, + /* 1440 */ 75, 75, 74, 71, 192, 186, 4, 38, 71, 74, + /* 1450 */ 74, 71, 74, 38, 75, 2, 38, 71, 75, 0, + /* 1460 */ 38, 71, 43, 22, 75, 38, 38, 0, 74, 163, + /* 1470 */ 136, 38, 133, 75, 86, 75, 74, 38, 86, 74, + /* 1480 */ 22, 75, 75, 84, 74, 74, 38, 74, 38, 85, + /* 1490 */ 74, 22, 38, 38, 86, 38, 22, 74, 38, 22, + /* 1500 */ 317, 21, 36, 0, 75, 74, 86, 75, 74, 38, + /* 1510 */ 75, 74, 51, 75, 74, 50, 38, 38, 75, 74, + /* 1520 */ 57, 38, 38, 74, 38, 38, 74, 57, 38, 99, + /* 1530 */ 74, 38, 38, 71, 87, 99, 72, 38, 43, 43, + /* 1540 */ 0, 36, 38, 99, 38, 99, 38, 38, 38, 38, + /* 1550 */ 38, 36, 0, 36, 38, 0, 43, 43, 38, 37, + /* 1560 */ 109, 0, 0, 22, 22, 21, 20, 317, 317, 317, + /* 1570 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1580 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1590 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1600 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1610 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1620 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1630 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1640 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1650 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1660 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1670 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1680 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1690 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1700 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1710 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1720 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1730 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1740 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1750 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1760 */ 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, + /* 1770 */ 317, 317, 317, 317, 317, 317, 317, 317, }; #define YY_SHIFT_COUNT (549) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1551) +#define YY_SHIFT_MAX (1562) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 482, 0, 39, 217, 217, 217, 217, 230, 217, 217, - /* 10 */ 268, 406, 51, 53, 268, 268, 268, 268, 268, 268, - /* 20 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 30 */ 268, 268, 268, 268, 268, 29, 29, 29, 70, 1326, - /* 40 */ 1326, 86, 4, 4, 1, 1326, 164, 164, 4, 4, - /* 50 */ 4, 4, 4, 4, 23, 20, 215, 1, 20, 4, - /* 60 */ 4, 20, 4, 20, 20, 20, 4, 65, 231, 433, - /* 70 */ 509, 509, 165, 221, 457, 257, 457, 457, 457, 457, - /* 80 */ 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, - /* 90 */ 457, 457, 457, 457, 457, 164, 498, 55, 237, 430, - /* 100 */ 430, 430, 506, 237, 249, 20, 20, 20, 222, 294, - /* 110 */ 364, 364, 364, 364, 364, 364, 364, 688, 624, 93, - /* 120 */ 166, 210, 164, 164, 232, 228, 729, 611, 598, 301, - /* 130 */ 598, 757, 557, 95, 887, 886, 894, 797, 887, 887, - /* 140 */ 850, 842, 842, 887, 957, 961, 23, 249, 971, 23, - /* 150 */ 23, 887, 23, 988, 20, 20, 20, 20, 20, 20, - /* 160 */ 20, 20, 20, 20, 20, 894, 887, 988, 249, 957, - /* 170 */ 869, 961, 65, 249, 971, 65, 1030, 856, 861, 1002, - /* 180 */ 856, 861, 1002, 1002, 858, 868, 881, 888, 895, 249, - /* 190 */ 1068, 974, 892, 891, 903, 1046, 20, 861, 1002, 1002, - /* 200 */ 861, 1002, 1000, 249, 971, 65, 222, 65, 249, 1074, - /* 210 */ 894, 294, 887, 65, 988, 1559, 1559, 1559, 1559, 1559, - /* 220 */ 481, 830, 92, 907, 708, 1021, 354, 13, 21, 30, - /* 230 */ 458, 250, 250, 250, 250, 250, 250, 250, 82, 311, - /* 240 */ 397, 586, 550, 397, 397, 397, 632, 643, 304, 712, - /* 250 */ 721, 727, 731, 798, 801, 811, 803, 644, 672, 768, - /* 260 */ 802, 682, 639, 515, 778, 724, 780, 793, 809, 815, - /* 270 */ 821, 823, 837, 818, 827, 839, 854, 862, 864, 893, - /* 280 */ 898, 799, 775, 1161, 1168, 1107, 1178, 1135, 1022, 1146, - /* 290 */ 1147, 1148, 1023, 1187, 1150, 1151, 1031, 1192, 1155, 1194, - /* 300 */ 1157, 1197, 1131, 1056, 1058, 1100, 1064, 1215, 1216, 1165, - /* 310 */ 1077, 1220, 1222, 1137, 1224, 1226, 1227, 1232, 1237, 1239, - /* 320 */ 1240, 1246, 1247, 1248, 1249, 1251, 1252, 1253, 1254, 1257, - /* 330 */ 1140, 1258, 1261, 1263, 1264, 1265, 1266, 1245, 1268, 1269, - /* 340 */ 1270, 1271, 1272, 1273, 1279, 1282, 1283, 1241, 1285, 1238, - /* 350 */ 1288, 1290, 1256, 1260, 1255, 1292, 1262, 1274, 1259, 1299, - /* 360 */ 1267, 1280, 1278, 1306, 1277, 1286, 1284, 1308, 1329, 1330, - /* 370 */ 1331, 1275, 1281, 1294, 1276, 1312, 1336, 1303, 1304, 1305, - /* 380 */ 1314, 1289, 1276, 1315, 1317, 1337, 1322, 1346, 1334, 1320, - /* 390 */ 1361, 1341, 1338, 1369, 1352, 1377, 1356, 1359, 1380, 1287, - /* 400 */ 1229, 1347, 1387, 1242, 1367, 1291, 1293, 1390, 1391, 1295, - /* 410 */ 1394, 1321, 1354, 1297, 1328, 1332, 1209, 1333, 1335, 1349, - /* 420 */ 1327, 1342, 1348, 1351, 1340, 1318, 1358, 1363, 1214, 1362, - /* 430 */ 1364, 1323, 1296, 1365, 1355, 1368, 1371, 1300, 1403, 1400, - /* 440 */ 1402, 1406, 1407, 1408, 1413, 1450, 1298, 1370, 1378, 1381, - /* 450 */ 1379, 1383, 1384, 1385, 1388, 1392, 1393, 1339, 1395, 1459, - /* 460 */ 1419, 1343, 1396, 1389, 1382, 1397, 1442, 1404, 1386, 1399, - /* 470 */ 1427, 1439, 1405, 1409, 1444, 1411, 1412, 1448, 1414, 1415, - /* 480 */ 1454, 1420, 1418, 1457, 1422, 1398, 1401, 1410, 1416, 1458, - /* 490 */ 1417, 1424, 1461, 1421, 1428, 1429, 1463, 1276, 1483, 1455, - /* 500 */ 1460, 1451, 1435, 1440, 1474, 1475, 1476, 1478, 1479, 1480, - /* 510 */ 1481, 1498, 1464, 1289, 1484, 1276, 1485, 1486, 1487, 1488, - /* 520 */ 1489, 1490, 1491, 1531, 1494, 1497, 1492, 1534, 1499, 1500, - /* 530 */ 1495, 1539, 1502, 1505, 1501, 1542, 1507, 1510, 1504, 1543, - /* 540 */ 1511, 1513, 1548, 1551, 1530, 1532, 1533, 1535, 1537, 1536, + /* 0 */ 654, 0, 39, 218, 218, 218, 218, 232, 218, 218, + /* 10 */ 271, 436, 51, 53, 271, 271, 271, 271, 271, 271, + /* 20 */ 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, + /* 30 */ 271, 271, 271, 271, 271, 29, 29, 29, 84, 672, + /* 40 */ 672, 112, 35, 35, 60, 672, 245, 245, 35, 35, + /* 50 */ 35, 35, 35, 35, 50, 329, 411, 60, 329, 35, + /* 60 */ 35, 329, 35, 329, 329, 329, 35, 475, 437, 438, + /* 70 */ 447, 447, 165, 455, 1105, 197, 1105, 1105, 1105, 1105, + /* 80 */ 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, + /* 90 */ 1105, 1105, 1105, 1105, 1105, 245, 451, 468, 481, 133, + /* 100 */ 133, 133, 482, 481, 521, 329, 329, 329, 499, 520, + /* 110 */ 566, 566, 566, 566, 566, 566, 566, 646, 477, 93, + /* 120 */ 166, 245, 245, 79, 182, 222, 2, 620, 526, 493, + /* 130 */ 526, 480, 261, 586, 914, 904, 903, 809, 914, 914, + /* 140 */ 850, 840, 840, 914, 957, 960, 50, 521, 965, 50, + /* 150 */ 50, 914, 50, 972, 329, 329, 329, 329, 329, 329, + /* 160 */ 329, 329, 329, 329, 329, 903, 914, 972, 521, 957, + /* 170 */ 865, 960, 475, 521, 965, 475, 1021, 854, 861, 1006, + /* 180 */ 854, 861, 1006, 1006, 863, 874, 887, 892, 897, 521, + /* 190 */ 1069, 977, 882, 899, 916, 1034, 329, 861, 1006, 1006, + /* 200 */ 861, 1006, 1007, 521, 965, 475, 499, 475, 521, 1087, + /* 210 */ 903, 520, 914, 475, 972, 1567, 1567, 1567, 1567, 1567, + /* 220 */ 583, 439, 92, 283, 1120, 1298, 220, 13, 21, 30, + /* 230 */ 409, 414, 414, 414, 414, 414, 414, 414, 82, 70, + /* 240 */ 351, 417, 135, 351, 351, 351, 274, 554, 697, 605, + /* 250 */ 696, 698, 704, 717, 804, 806, 267, 684, 721, 736, + /* 260 */ 731, 644, 669, 719, 742, 769, 761, 40, 762, 772, + /* 270 */ 775, 778, 780, 819, 820, 781, 807, 817, 822, 824, + /* 280 */ 846, 673, 803, 1177, 1182, 1127, 1192, 1155, 1039, 1161, + /* 290 */ 1163, 1165, 1046, 1206, 1172, 1173, 1053, 1213, 1178, 1217, + /* 300 */ 1181, 1224, 1157, 1082, 1085, 1126, 1090, 1237, 1238, 1186, + /* 310 */ 1102, 1241, 1253, 1169, 1256, 1257, 1258, 1260, 1261, 1262, + /* 320 */ 1264, 1265, 1266, 1269, 1275, 1278, 1285, 1287, 1289, 1290, + /* 330 */ 1171, 1292, 1294, 1295, 1296, 1299, 1300, 1280, 1303, 1309, + /* 340 */ 1312, 1320, 1321, 1323, 1324, 1325, 1326, 1286, 1328, 1279, + /* 350 */ 1332, 1333, 1305, 1310, 1291, 1336, 1307, 1315, 1311, 1353, + /* 360 */ 1317, 1322, 1314, 1360, 1327, 1330, 1319, 1364, 1367, 1369, + /* 370 */ 1370, 1288, 1302, 1338, 1308, 1358, 1381, 1346, 1348, 1352, + /* 380 */ 1354, 1331, 1308, 1355, 1356, 1395, 1374, 1397, 1385, 1371, + /* 390 */ 1403, 1387, 1373, 1412, 1391, 1414, 1393, 1396, 1417, 1281, + /* 400 */ 1263, 1382, 1421, 1271, 1401, 1293, 1297, 1424, 1425, 1301, + /* 410 */ 1426, 1359, 1384, 1304, 1357, 1363, 1243, 1361, 1372, 1365, + /* 420 */ 1368, 1375, 1376, 1366, 1377, 1343, 1378, 1380, 1246, 1379, + /* 430 */ 1383, 1344, 1259, 1386, 1388, 1389, 1390, 1252, 1442, 1409, + /* 440 */ 1415, 1418, 1422, 1427, 1428, 1453, 1306, 1392, 1398, 1394, + /* 450 */ 1400, 1402, 1405, 1406, 1407, 1410, 1411, 1334, 1413, 1459, + /* 460 */ 1419, 1339, 1416, 1399, 1408, 1420, 1441, 1423, 1404, 1429, + /* 470 */ 1433, 1439, 1431, 1432, 1448, 1434, 1435, 1450, 1437, 1438, + /* 480 */ 1454, 1440, 1443, 1455, 1445, 1430, 1436, 1444, 1446, 1458, + /* 490 */ 1447, 1449, 1457, 1451, 1452, 1456, 1460, 1308, 1469, 1461, + /* 500 */ 1465, 1463, 1464, 1462, 1471, 1478, 1479, 1483, 1484, 1486, + /* 510 */ 1487, 1474, 1470, 1331, 1490, 1308, 1493, 1494, 1499, 1506, + /* 520 */ 1508, 1509, 1510, 1467, 1511, 1466, 1495, 1503, 1504, 1505, + /* 530 */ 1496, 1540, 1512, 1515, 1513, 1552, 1516, 1517, 1514, 1555, + /* 540 */ 1520, 1522, 1561, 1562, 1477, 1480, 1541, 1542, 1544, 1546, }; #define YY_REDUCE_COUNT (219) -#define YY_REDUCE_MIN (-272) -#define YY_REDUCE_MAX (1173) +#define YY_REDUCE_MIN (-273) +#define YY_REDUCE_MAX (1123) static const short yy_reduce_ofst[] = { - /* 0 */ -209, 420, -196, -143, 462, 504, 552, 594, 58, 641, - /* 10 */ 676, 718, 465, 684, 753, 762, 787, 829, 835, 841, - /* 20 */ 889, 900, 925, 954, 959, 967, 1001, 1037, 1043, 1049, - /* 30 */ 1091, 1096, 1138, 1144, 1173, 313, -43, 573, 366, -239, - /* 40 */ -202, -247, -214, 263, -22, -128, -254, -170, -67, 94, - /* 50 */ 265, 266, 269, 283, 103, -99, 3, -199, 47, 363, - /* 60 */ 418, 179, 485, 267, 319, 360, 547, 78, -66, -272, - /* 70 */ -272, -272, -203, -110, -195, 10, 2, 273, 306, 340, - /* 80 */ 348, 350, 381, 405, 413, 414, 421, 422, 423, 453, - /* 90 */ 454, 492, 505, 510, 512, -250, 37, 57, 148, -13, - /* 100 */ 375, 386, 212, 252, 248, 178, 241, 253, 296, -27, - /* 110 */ 239, 290, 320, 346, 357, 390, 432, 353, 487, 531, - /* 120 */ 507, 514, 587, 604, 612, 582, 666, 618, 601, 601, - /* 130 */ 601, 663, 596, 607, 690, 675, 723, 683, 730, 737, - /* 140 */ 705, 728, 732, 752, 711, 725, 764, 742, 743, 781, - /* 150 */ 782, 785, 784, 794, 773, 776, 786, 788, 789, 795, - /* 160 */ 796, 806, 807, 810, 812, 792, 800, 819, 774, 744, - /* 170 */ 750, 790, 817, 813, 791, 822, 783, 749, 808, 816, - /* 180 */ 754, 825, 833, 834, 769, 765, 777, 779, 601, 836, - /* 190 */ 826, 838, 804, 814, 805, 840, 663, 863, 867, 872, - /* 200 */ 873, 876, 880, 896, 884, 923, 909, 927, 902, 910, - /* 210 */ 926, 924, 933, 935, 940, 905, 928, 929, 936, 946, + /* 0 */ -210, 459, -197, -144, 59, 546, 589, 625, 631, 667, + /* 10 */ 680, 724, 62, 486, 511, 750, 784, 792, 826, 835, + /* 20 */ 841, 869, 877, 911, 919, 945, 970, 995, 1004, 1029, + /* 30 */ 1038, 1063, 1072, 1097, 1123, 746, 671, 1099, 659, -240, + /* 40 */ -203, -248, -215, 17, -14, -129, -255, -171, -68, 88, + /* 50 */ 102, 103, 126, 250, 68, -100, 251, -200, 131, 294, + /* 60 */ 298, 331, 328, 348, 343, 457, 369, 80, 46, -273, + /* 70 */ -273, -273, -204, -50, -196, 98, 27, 219, 252, 266, + /* 80 */ 285, 312, 326, 332, 336, 337, 419, 461, 462, 467, + /* 90 */ 485, 487, 491, 492, 494, -251, -17, 117, 138, -201, + /* 100 */ 141, 196, 394, 148, 277, 469, 460, 478, 145, 502, + /* 110 */ 435, 539, 560, 581, 599, 615, 622, 592, 647, 650, + /* 120 */ 556, 630, 632, 590, 656, 598, 694, 639, 626, 626, + /* 130 */ 626, 686, 621, 635, 716, 677, 728, 683, 745, 748, + /* 140 */ 720, 723, 725, 755, 709, 718, 760, 739, 730, 765, + /* 150 */ 767, 770, 774, 788, 759, 773, 776, 777, 779, 782, + /* 160 */ 783, 785, 793, 794, 808, 786, 787, 796, 768, 747, + /* 170 */ 751, 789, 823, 799, 797, 829, 771, 753, 805, 813, + /* 180 */ 790, 814, 816, 818, 791, 798, 810, 825, 626, 842, + /* 190 */ 832, 843, 815, 827, 830, 844, 686, 870, 875, 876, + /* 200 */ 879, 878, 884, 905, 895, 929, 924, 941, 918, 926, + /* 210 */ 944, 937, 949, 952, 956, 907, 943, 947, 955, 968, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 10 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 20 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 30 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 40 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 50 */ 1223, 1223, 1223, 1223, 1282, 1223, 1223, 1223, 1223, 1223, - /* 60 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1280, 1420, 1223, - /* 70 */ 1557, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 80 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 90 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1282, 1223, 1568, - /* 100 */ 1568, 1568, 1280, 1223, 1223, 1223, 1223, 1223, 1375, 1223, - /* 110 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1454, 1223, 1223, - /* 120 */ 1632, 1223, 1223, 1223, 1328, 1592, 1223, 1584, 1560, 1574, - /* 130 */ 1561, 1223, 1617, 1577, 1223, 1223, 1223, 1446, 1223, 1223, - /* 140 */ 1425, 1422, 1422, 1223, 1223, 1223, 1282, 1223, 1223, 1282, - /* 150 */ 1282, 1223, 1282, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 160 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 170 */ 1456, 1223, 1280, 1223, 1223, 1280, 1223, 1599, 1597, 1223, - /* 180 */ 1599, 1597, 1223, 1223, 1611, 1607, 1590, 1588, 1574, 1223, - /* 190 */ 1223, 1223, 1635, 1623, 1619, 1223, 1223, 1597, 1223, 1223, - /* 200 */ 1597, 1223, 1433, 1223, 1223, 1280, 1223, 1280, 1223, 1344, - /* 210 */ 1223, 1223, 1223, 1280, 1223, 1448, 1378, 1378, 1283, 1228, - /* 220 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 230 */ 1223, 1522, 1610, 1609, 1521, 1534, 1533, 1532, 1223, 1223, - /* 240 */ 1516, 1223, 1223, 1517, 1515, 1514, 1223, 1223, 1223, 1223, - /* 250 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 260 */ 1558, 1223, 1620, 1624, 1223, 1223, 1223, 1493, 1223, 1223, - /* 270 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 280 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 290 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 300 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 310 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 320 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 330 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 340 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 350 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 360 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 370 */ 1223, 1223, 1223, 1223, 1389, 1223, 1223, 1223, 1223, 1223, - /* 380 */ 1223, 1309, 1308, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 390 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 400 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 410 */ 1223, 1223, 1223, 1223, 1581, 1591, 1223, 1223, 1223, 1223, - /* 420 */ 1223, 1223, 1223, 1223, 1223, 1493, 1223, 1608, 1223, 1567, - /* 430 */ 1563, 1223, 1223, 1559, 1223, 1223, 1618, 1223, 1223, 1223, - /* 440 */ 1223, 1223, 1223, 1223, 1223, 1553, 1223, 1223, 1223, 1223, - /* 450 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 460 */ 1223, 1223, 1223, 1223, 1492, 1223, 1223, 1223, 1223, 1223, - /* 470 */ 1223, 1223, 1372, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 480 */ 1223, 1223, 1223, 1223, 1223, 1357, 1355, 1354, 1353, 1223, - /* 490 */ 1350, 1223, 1223, 1223, 1223, 1223, 1223, 1380, 1223, 1223, - /* 500 */ 1223, 1223, 1223, 1303, 1223, 1223, 1223, 1223, 1223, 1223, - /* 510 */ 1223, 1223, 1223, 1294, 1223, 1293, 1223, 1223, 1223, 1223, - /* 520 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 530 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, - /* 540 */ 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, 1223, + /* 0 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 10 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 20 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 30 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 40 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 50 */ 1225, 1225, 1225, 1225, 1284, 1225, 1225, 1225, 1225, 1225, + /* 60 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1282, 1422, 1225, + /* 70 */ 1560, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 80 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 90 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1284, 1225, 1571, + /* 100 */ 1571, 1571, 1282, 1225, 1225, 1225, 1225, 1225, 1377, 1225, + /* 110 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1456, 1225, 1225, + /* 120 */ 1635, 1225, 1225, 1225, 1330, 1595, 1225, 1587, 1563, 1577, + /* 130 */ 1564, 1225, 1620, 1580, 1225, 1225, 1225, 1448, 1225, 1225, + /* 140 */ 1427, 1424, 1424, 1225, 1225, 1225, 1284, 1225, 1225, 1284, + /* 150 */ 1284, 1225, 1284, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 160 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 170 */ 1458, 1225, 1282, 1225, 1225, 1282, 1225, 1602, 1600, 1225, + /* 180 */ 1602, 1600, 1225, 1225, 1614, 1610, 1593, 1591, 1577, 1225, + /* 190 */ 1225, 1225, 1638, 1626, 1622, 1225, 1225, 1600, 1225, 1225, + /* 200 */ 1600, 1225, 1435, 1225, 1225, 1282, 1225, 1282, 1225, 1346, + /* 210 */ 1225, 1225, 1225, 1282, 1225, 1450, 1380, 1380, 1285, 1230, + /* 220 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 230 */ 1225, 1525, 1613, 1612, 1524, 1537, 1536, 1535, 1225, 1225, + /* 240 */ 1519, 1225, 1225, 1520, 1518, 1517, 1225, 1225, 1225, 1225, + /* 250 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 260 */ 1561, 1225, 1623, 1627, 1225, 1225, 1225, 1495, 1225, 1225, + /* 270 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 280 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 290 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 300 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 310 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 320 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 330 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 340 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 350 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 360 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 370 */ 1225, 1225, 1225, 1225, 1391, 1225, 1225, 1225, 1225, 1225, + /* 380 */ 1225, 1311, 1310, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 390 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 400 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 410 */ 1225, 1225, 1225, 1225, 1584, 1594, 1225, 1225, 1225, 1225, + /* 420 */ 1225, 1225, 1225, 1225, 1225, 1495, 1225, 1611, 1225, 1570, + /* 430 */ 1566, 1225, 1225, 1562, 1225, 1225, 1621, 1225, 1225, 1225, + /* 440 */ 1225, 1225, 1225, 1225, 1225, 1556, 1225, 1225, 1225, 1225, + /* 450 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 460 */ 1225, 1225, 1225, 1225, 1494, 1225, 1225, 1225, 1225, 1225, + /* 470 */ 1225, 1225, 1374, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 480 */ 1225, 1225, 1225, 1225, 1225, 1359, 1357, 1356, 1355, 1225, + /* 490 */ 1352, 1225, 1225, 1225, 1225, 1225, 1225, 1382, 1225, 1225, + /* 500 */ 1225, 1225, 1225, 1305, 1225, 1225, 1225, 1225, 1225, 1225, + /* 510 */ 1225, 1225, 1225, 1296, 1225, 1295, 1225, 1225, 1225, 1225, + /* 520 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 530 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 540 */ 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, }; /********** End of lemon-generated parsing tables *****************************/ @@ -965,154 +967,155 @@ static const char *const yyTokenName[] = { /* 165 */ "LAST", /* 166 */ "NOW", /* 167 */ "TODAY", - /* 168 */ "CAST", - /* 169 */ "ROWTS", - /* 170 */ "TBNAME", - /* 171 */ "QSTARTTS", - /* 172 */ "QENDTS", - /* 173 */ "WSTARTTS", - /* 174 */ "WENDTS", - /* 175 */ "WDURATION", - /* 176 */ "BETWEEN", - /* 177 */ "IS", - /* 178 */ "NK_LT", - /* 179 */ "NK_GT", - /* 180 */ "NK_LE", - /* 181 */ "NK_GE", - /* 182 */ "NK_NE", - /* 183 */ "MATCH", - /* 184 */ "NMATCH", - /* 185 */ "JOIN", - /* 186 */ "INNER", - /* 187 */ "SELECT", - /* 188 */ "DISTINCT", - /* 189 */ "WHERE", - /* 190 */ "PARTITION", - /* 191 */ "BY", - /* 192 */ "SESSION", - /* 193 */ "STATE_WINDOW", - /* 194 */ "SLIDING", - /* 195 */ "FILL", - /* 196 */ "VALUE", - /* 197 */ "NONE", - /* 198 */ "PREV", - /* 199 */ "LINEAR", - /* 200 */ "NEXT", - /* 201 */ "GROUP", - /* 202 */ "HAVING", - /* 203 */ "ORDER", - /* 204 */ "SLIMIT", - /* 205 */ "SOFFSET", - /* 206 */ "LIMIT", - /* 207 */ "OFFSET", - /* 208 */ "ASC", - /* 209 */ "NULLS", - /* 210 */ "cmd", - /* 211 */ "account_options", - /* 212 */ "alter_account_options", - /* 213 */ "literal", - /* 214 */ "alter_account_option", - /* 215 */ "user_name", - /* 216 */ "dnode_endpoint", - /* 217 */ "dnode_host_name", - /* 218 */ "not_exists_opt", - /* 219 */ "db_name", - /* 220 */ "db_options", - /* 221 */ "exists_opt", - /* 222 */ "alter_db_options", - /* 223 */ "integer_list", - /* 224 */ "variable_list", - /* 225 */ "retention_list", - /* 226 */ "alter_db_option", - /* 227 */ "retention", - /* 228 */ "full_table_name", - /* 229 */ "column_def_list", - /* 230 */ "tags_def_opt", - /* 231 */ "table_options", - /* 232 */ "multi_create_clause", - /* 233 */ "tags_def", - /* 234 */ "multi_drop_clause", - /* 235 */ "alter_table_clause", - /* 236 */ "alter_table_options", - /* 237 */ "column_name", - /* 238 */ "type_name", - /* 239 */ "create_subtable_clause", - /* 240 */ "specific_tags_opt", - /* 241 */ "literal_list", - /* 242 */ "drop_table_clause", - /* 243 */ "col_name_list", - /* 244 */ "table_name", - /* 245 */ "column_def", - /* 246 */ "func_name_list", - /* 247 */ "alter_table_option", - /* 248 */ "col_name", - /* 249 */ "db_name_cond_opt", - /* 250 */ "like_pattern_opt", - /* 251 */ "table_name_cond", - /* 252 */ "from_db_opt", - /* 253 */ "func_name", - /* 254 */ "function_name", - /* 255 */ "index_name", - /* 256 */ "index_options", - /* 257 */ "func_list", - /* 258 */ "duration_literal", - /* 259 */ "sliding_opt", - /* 260 */ "func", - /* 261 */ "expression_list", - /* 262 */ "topic_name", - /* 263 */ "query_expression", - /* 264 */ "analyze_opt", - /* 265 */ "explain_options", - /* 266 */ "agg_func_opt", - /* 267 */ "bufsize_opt", - /* 268 */ "stream_name", - /* 269 */ "dnode_list", - /* 270 */ "signed", - /* 271 */ "signed_literal", - /* 272 */ "table_alias", - /* 273 */ "column_alias", - /* 274 */ "expression", - /* 275 */ "pseudo_column", - /* 276 */ "column_reference", - /* 277 */ "subquery", - /* 278 */ "predicate", - /* 279 */ "compare_op", - /* 280 */ "in_op", - /* 281 */ "in_predicate_value", - /* 282 */ "boolean_value_expression", - /* 283 */ "boolean_primary", - /* 284 */ "common_expression", - /* 285 */ "from_clause", - /* 286 */ "table_reference_list", - /* 287 */ "table_reference", - /* 288 */ "table_primary", - /* 289 */ "joined_table", - /* 290 */ "alias_opt", - /* 291 */ "parenthesized_joined_table", - /* 292 */ "join_type", - /* 293 */ "search_condition", - /* 294 */ "query_specification", - /* 295 */ "set_quantifier_opt", - /* 296 */ "select_list", - /* 297 */ "where_clause_opt", - /* 298 */ "partition_by_clause_opt", - /* 299 */ "twindow_clause_opt", - /* 300 */ "group_by_clause_opt", - /* 301 */ "having_clause_opt", - /* 302 */ "select_sublist", - /* 303 */ "select_item", - /* 304 */ "fill_opt", - /* 305 */ "fill_mode", - /* 306 */ "group_by_list", - /* 307 */ "query_expression_body", - /* 308 */ "order_by_clause_opt", - /* 309 */ "slimit_clause_opt", - /* 310 */ "limit_clause_opt", - /* 311 */ "query_primary", - /* 312 */ "sort_specification_list", - /* 313 */ "sort_specification", - /* 314 */ "ordering_specification_opt", - /* 315 */ "null_ordering_opt", + /* 168 */ "TIMEZONE", + /* 169 */ "CAST", + /* 170 */ "ROWTS", + /* 171 */ "TBNAME", + /* 172 */ "QSTARTTS", + /* 173 */ "QENDTS", + /* 174 */ "WSTARTTS", + /* 175 */ "WENDTS", + /* 176 */ "WDURATION", + /* 177 */ "BETWEEN", + /* 178 */ "IS", + /* 179 */ "NK_LT", + /* 180 */ "NK_GT", + /* 181 */ "NK_LE", + /* 182 */ "NK_GE", + /* 183 */ "NK_NE", + /* 184 */ "MATCH", + /* 185 */ "NMATCH", + /* 186 */ "JOIN", + /* 187 */ "INNER", + /* 188 */ "SELECT", + /* 189 */ "DISTINCT", + /* 190 */ "WHERE", + /* 191 */ "PARTITION", + /* 192 */ "BY", + /* 193 */ "SESSION", + /* 194 */ "STATE_WINDOW", + /* 195 */ "SLIDING", + /* 196 */ "FILL", + /* 197 */ "VALUE", + /* 198 */ "NONE", + /* 199 */ "PREV", + /* 200 */ "LINEAR", + /* 201 */ "NEXT", + /* 202 */ "GROUP", + /* 203 */ "HAVING", + /* 204 */ "ORDER", + /* 205 */ "SLIMIT", + /* 206 */ "SOFFSET", + /* 207 */ "LIMIT", + /* 208 */ "OFFSET", + /* 209 */ "ASC", + /* 210 */ "NULLS", + /* 211 */ "cmd", + /* 212 */ "account_options", + /* 213 */ "alter_account_options", + /* 214 */ "literal", + /* 215 */ "alter_account_option", + /* 216 */ "user_name", + /* 217 */ "dnode_endpoint", + /* 218 */ "dnode_host_name", + /* 219 */ "not_exists_opt", + /* 220 */ "db_name", + /* 221 */ "db_options", + /* 222 */ "exists_opt", + /* 223 */ "alter_db_options", + /* 224 */ "integer_list", + /* 225 */ "variable_list", + /* 226 */ "retention_list", + /* 227 */ "alter_db_option", + /* 228 */ "retention", + /* 229 */ "full_table_name", + /* 230 */ "column_def_list", + /* 231 */ "tags_def_opt", + /* 232 */ "table_options", + /* 233 */ "multi_create_clause", + /* 234 */ "tags_def", + /* 235 */ "multi_drop_clause", + /* 236 */ "alter_table_clause", + /* 237 */ "alter_table_options", + /* 238 */ "column_name", + /* 239 */ "type_name", + /* 240 */ "create_subtable_clause", + /* 241 */ "specific_tags_opt", + /* 242 */ "literal_list", + /* 243 */ "drop_table_clause", + /* 244 */ "col_name_list", + /* 245 */ "table_name", + /* 246 */ "column_def", + /* 247 */ "func_name_list", + /* 248 */ "alter_table_option", + /* 249 */ "col_name", + /* 250 */ "db_name_cond_opt", + /* 251 */ "like_pattern_opt", + /* 252 */ "table_name_cond", + /* 253 */ "from_db_opt", + /* 254 */ "func_name", + /* 255 */ "function_name", + /* 256 */ "index_name", + /* 257 */ "index_options", + /* 258 */ "func_list", + /* 259 */ "duration_literal", + /* 260 */ "sliding_opt", + /* 261 */ "func", + /* 262 */ "expression_list", + /* 263 */ "topic_name", + /* 264 */ "query_expression", + /* 265 */ "analyze_opt", + /* 266 */ "explain_options", + /* 267 */ "agg_func_opt", + /* 268 */ "bufsize_opt", + /* 269 */ "stream_name", + /* 270 */ "dnode_list", + /* 271 */ "signed", + /* 272 */ "signed_literal", + /* 273 */ "table_alias", + /* 274 */ "column_alias", + /* 275 */ "expression", + /* 276 */ "pseudo_column", + /* 277 */ "column_reference", + /* 278 */ "subquery", + /* 279 */ "predicate", + /* 280 */ "compare_op", + /* 281 */ "in_op", + /* 282 */ "in_predicate_value", + /* 283 */ "boolean_value_expression", + /* 284 */ "boolean_primary", + /* 285 */ "common_expression", + /* 286 */ "from_clause", + /* 287 */ "table_reference_list", + /* 288 */ "table_reference", + /* 289 */ "table_primary", + /* 290 */ "joined_table", + /* 291 */ "alias_opt", + /* 292 */ "parenthesized_joined_table", + /* 293 */ "join_type", + /* 294 */ "search_condition", + /* 295 */ "query_specification", + /* 296 */ "set_quantifier_opt", + /* 297 */ "select_list", + /* 298 */ "where_clause_opt", + /* 299 */ "partition_by_clause_opt", + /* 300 */ "twindow_clause_opt", + /* 301 */ "group_by_clause_opt", + /* 302 */ "having_clause_opt", + /* 303 */ "select_sublist", + /* 304 */ "select_item", + /* 305 */ "fill_opt", + /* 306 */ "fill_mode", + /* 307 */ "group_by_list", + /* 308 */ "query_expression_body", + /* 309 */ "order_by_clause_opt", + /* 310 */ "slimit_clause_opt", + /* 311 */ "limit_clause_opt", + /* 312 */ "query_primary", + /* 313 */ "sort_specification_list", + /* 314 */ "sort_specification", + /* 315 */ "ordering_specification_opt", + /* 316 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1393,145 +1396,146 @@ static const char *const yyRuleName[] = { /* 270 */ "function_name ::= LAST", /* 271 */ "function_name ::= NOW", /* 272 */ "function_name ::= TODAY", - /* 273 */ "table_alias ::= NK_ID", - /* 274 */ "column_alias ::= NK_ID", - /* 275 */ "user_name ::= NK_ID", - /* 276 */ "index_name ::= NK_ID", - /* 277 */ "topic_name ::= NK_ID", - /* 278 */ "stream_name ::= NK_ID", - /* 279 */ "expression ::= literal", - /* 280 */ "expression ::= pseudo_column", - /* 281 */ "expression ::= column_reference", - /* 282 */ "expression ::= function_name NK_LP expression_list NK_RP", - /* 283 */ "expression ::= function_name NK_LP NK_STAR NK_RP", - /* 284 */ "expression ::= function_name NK_LP NK_RP", - /* 285 */ "expression ::= CAST NK_LP expression AS type_name NK_RP", - /* 286 */ "expression ::= subquery", - /* 287 */ "expression ::= NK_LP expression NK_RP", - /* 288 */ "expression ::= NK_PLUS expression", - /* 289 */ "expression ::= NK_MINUS expression", - /* 290 */ "expression ::= expression NK_PLUS expression", - /* 291 */ "expression ::= expression NK_MINUS expression", - /* 292 */ "expression ::= expression NK_STAR expression", - /* 293 */ "expression ::= expression NK_SLASH expression", - /* 294 */ "expression ::= expression NK_REM expression", - /* 295 */ "expression_list ::= expression", - /* 296 */ "expression_list ::= expression_list NK_COMMA expression", - /* 297 */ "column_reference ::= column_name", - /* 298 */ "column_reference ::= table_name NK_DOT column_name", - /* 299 */ "pseudo_column ::= ROWTS", - /* 300 */ "pseudo_column ::= TBNAME", - /* 301 */ "pseudo_column ::= QSTARTTS", - /* 302 */ "pseudo_column ::= QENDTS", - /* 303 */ "pseudo_column ::= WSTARTTS", - /* 304 */ "pseudo_column ::= WENDTS", - /* 305 */ "pseudo_column ::= WDURATION", - /* 306 */ "predicate ::= expression compare_op expression", - /* 307 */ "predicate ::= expression BETWEEN expression AND expression", - /* 308 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 309 */ "predicate ::= expression IS NULL", - /* 310 */ "predicate ::= expression IS NOT NULL", - /* 311 */ "predicate ::= expression in_op in_predicate_value", - /* 312 */ "compare_op ::= NK_LT", - /* 313 */ "compare_op ::= NK_GT", - /* 314 */ "compare_op ::= NK_LE", - /* 315 */ "compare_op ::= NK_GE", - /* 316 */ "compare_op ::= NK_NE", - /* 317 */ "compare_op ::= NK_EQ", - /* 318 */ "compare_op ::= LIKE", - /* 319 */ "compare_op ::= NOT LIKE", - /* 320 */ "compare_op ::= MATCH", - /* 321 */ "compare_op ::= NMATCH", - /* 322 */ "in_op ::= IN", - /* 323 */ "in_op ::= NOT IN", - /* 324 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 325 */ "boolean_value_expression ::= boolean_primary", - /* 326 */ "boolean_value_expression ::= NOT boolean_primary", - /* 327 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 328 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 329 */ "boolean_primary ::= predicate", - /* 330 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 331 */ "common_expression ::= expression", - /* 332 */ "common_expression ::= boolean_value_expression", - /* 333 */ "from_clause ::= FROM table_reference_list", - /* 334 */ "table_reference_list ::= table_reference", - /* 335 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 336 */ "table_reference ::= table_primary", - /* 337 */ "table_reference ::= joined_table", - /* 338 */ "table_primary ::= table_name alias_opt", - /* 339 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 340 */ "table_primary ::= subquery alias_opt", - /* 341 */ "table_primary ::= parenthesized_joined_table", - /* 342 */ "alias_opt ::=", - /* 343 */ "alias_opt ::= table_alias", - /* 344 */ "alias_opt ::= AS table_alias", - /* 345 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 346 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 347 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 348 */ "join_type ::=", - /* 349 */ "join_type ::= INNER", - /* 350 */ "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", - /* 351 */ "set_quantifier_opt ::=", - /* 352 */ "set_quantifier_opt ::= DISTINCT", - /* 353 */ "set_quantifier_opt ::= ALL", - /* 354 */ "select_list ::= NK_STAR", - /* 355 */ "select_list ::= select_sublist", - /* 356 */ "select_sublist ::= select_item", - /* 357 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 358 */ "select_item ::= common_expression", - /* 359 */ "select_item ::= common_expression column_alias", - /* 360 */ "select_item ::= common_expression AS column_alias", - /* 361 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 362 */ "where_clause_opt ::=", - /* 363 */ "where_clause_opt ::= WHERE search_condition", - /* 364 */ "partition_by_clause_opt ::=", - /* 365 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 366 */ "twindow_clause_opt ::=", - /* 367 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 368 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 369 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 370 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 371 */ "sliding_opt ::=", - /* 372 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 373 */ "fill_opt ::=", - /* 374 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 375 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 376 */ "fill_mode ::= NONE", - /* 377 */ "fill_mode ::= PREV", - /* 378 */ "fill_mode ::= NULL", - /* 379 */ "fill_mode ::= LINEAR", - /* 380 */ "fill_mode ::= NEXT", - /* 381 */ "group_by_clause_opt ::=", - /* 382 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 383 */ "group_by_list ::= expression", - /* 384 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 385 */ "having_clause_opt ::=", - /* 386 */ "having_clause_opt ::= HAVING search_condition", - /* 387 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 388 */ "query_expression_body ::= query_primary", - /* 389 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 390 */ "query_primary ::= query_specification", - /* 391 */ "order_by_clause_opt ::=", - /* 392 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 393 */ "slimit_clause_opt ::=", - /* 394 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 395 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 396 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 397 */ "limit_clause_opt ::=", - /* 398 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 399 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 400 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 401 */ "subquery ::= NK_LP query_expression NK_RP", - /* 402 */ "search_condition ::= common_expression", - /* 403 */ "sort_specification_list ::= sort_specification", - /* 404 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 405 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 406 */ "ordering_specification_opt ::=", - /* 407 */ "ordering_specification_opt ::= ASC", - /* 408 */ "ordering_specification_opt ::= DESC", - /* 409 */ "null_ordering_opt ::=", - /* 410 */ "null_ordering_opt ::= NULLS FIRST", - /* 411 */ "null_ordering_opt ::= NULLS LAST", + /* 273 */ "function_name ::= TIMEZONE", + /* 274 */ "table_alias ::= NK_ID", + /* 275 */ "column_alias ::= NK_ID", + /* 276 */ "user_name ::= NK_ID", + /* 277 */ "index_name ::= NK_ID", + /* 278 */ "topic_name ::= NK_ID", + /* 279 */ "stream_name ::= NK_ID", + /* 280 */ "expression ::= literal", + /* 281 */ "expression ::= pseudo_column", + /* 282 */ "expression ::= column_reference", + /* 283 */ "expression ::= function_name NK_LP expression_list NK_RP", + /* 284 */ "expression ::= function_name NK_LP NK_STAR NK_RP", + /* 285 */ "expression ::= function_name NK_LP NK_RP", + /* 286 */ "expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 287 */ "expression ::= subquery", + /* 288 */ "expression ::= NK_LP expression NK_RP", + /* 289 */ "expression ::= NK_PLUS expression", + /* 290 */ "expression ::= NK_MINUS expression", + /* 291 */ "expression ::= expression NK_PLUS expression", + /* 292 */ "expression ::= expression NK_MINUS expression", + /* 293 */ "expression ::= expression NK_STAR expression", + /* 294 */ "expression ::= expression NK_SLASH expression", + /* 295 */ "expression ::= expression NK_REM expression", + /* 296 */ "expression_list ::= expression", + /* 297 */ "expression_list ::= expression_list NK_COMMA expression", + /* 298 */ "column_reference ::= column_name", + /* 299 */ "column_reference ::= table_name NK_DOT column_name", + /* 300 */ "pseudo_column ::= ROWTS", + /* 301 */ "pseudo_column ::= TBNAME", + /* 302 */ "pseudo_column ::= QSTARTTS", + /* 303 */ "pseudo_column ::= QENDTS", + /* 304 */ "pseudo_column ::= WSTARTTS", + /* 305 */ "pseudo_column ::= WENDTS", + /* 306 */ "pseudo_column ::= WDURATION", + /* 307 */ "predicate ::= expression compare_op expression", + /* 308 */ "predicate ::= expression BETWEEN expression AND expression", + /* 309 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 310 */ "predicate ::= expression IS NULL", + /* 311 */ "predicate ::= expression IS NOT NULL", + /* 312 */ "predicate ::= expression in_op in_predicate_value", + /* 313 */ "compare_op ::= NK_LT", + /* 314 */ "compare_op ::= NK_GT", + /* 315 */ "compare_op ::= NK_LE", + /* 316 */ "compare_op ::= NK_GE", + /* 317 */ "compare_op ::= NK_NE", + /* 318 */ "compare_op ::= NK_EQ", + /* 319 */ "compare_op ::= LIKE", + /* 320 */ "compare_op ::= NOT LIKE", + /* 321 */ "compare_op ::= MATCH", + /* 322 */ "compare_op ::= NMATCH", + /* 323 */ "in_op ::= IN", + /* 324 */ "in_op ::= NOT IN", + /* 325 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 326 */ "boolean_value_expression ::= boolean_primary", + /* 327 */ "boolean_value_expression ::= NOT boolean_primary", + /* 328 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 329 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 330 */ "boolean_primary ::= predicate", + /* 331 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 332 */ "common_expression ::= expression", + /* 333 */ "common_expression ::= boolean_value_expression", + /* 334 */ "from_clause ::= FROM table_reference_list", + /* 335 */ "table_reference_list ::= table_reference", + /* 336 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 337 */ "table_reference ::= table_primary", + /* 338 */ "table_reference ::= joined_table", + /* 339 */ "table_primary ::= table_name alias_opt", + /* 340 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 341 */ "table_primary ::= subquery alias_opt", + /* 342 */ "table_primary ::= parenthesized_joined_table", + /* 343 */ "alias_opt ::=", + /* 344 */ "alias_opt ::= table_alias", + /* 345 */ "alias_opt ::= AS table_alias", + /* 346 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 347 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 348 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 349 */ "join_type ::=", + /* 350 */ "join_type ::= INNER", + /* 351 */ "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", + /* 352 */ "set_quantifier_opt ::=", + /* 353 */ "set_quantifier_opt ::= DISTINCT", + /* 354 */ "set_quantifier_opt ::= ALL", + /* 355 */ "select_list ::= NK_STAR", + /* 356 */ "select_list ::= select_sublist", + /* 357 */ "select_sublist ::= select_item", + /* 358 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 359 */ "select_item ::= common_expression", + /* 360 */ "select_item ::= common_expression column_alias", + /* 361 */ "select_item ::= common_expression AS column_alias", + /* 362 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 363 */ "where_clause_opt ::=", + /* 364 */ "where_clause_opt ::= WHERE search_condition", + /* 365 */ "partition_by_clause_opt ::=", + /* 366 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 367 */ "twindow_clause_opt ::=", + /* 368 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 369 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 370 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 371 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 372 */ "sliding_opt ::=", + /* 373 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 374 */ "fill_opt ::=", + /* 375 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 376 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 377 */ "fill_mode ::= NONE", + /* 378 */ "fill_mode ::= PREV", + /* 379 */ "fill_mode ::= NULL", + /* 380 */ "fill_mode ::= LINEAR", + /* 381 */ "fill_mode ::= NEXT", + /* 382 */ "group_by_clause_opt ::=", + /* 383 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 384 */ "group_by_list ::= expression", + /* 385 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 386 */ "having_clause_opt ::=", + /* 387 */ "having_clause_opt ::= HAVING search_condition", + /* 388 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 389 */ "query_expression_body ::= query_primary", + /* 390 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 391 */ "query_primary ::= query_specification", + /* 392 */ "order_by_clause_opt ::=", + /* 393 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 394 */ "slimit_clause_opt ::=", + /* 395 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 396 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 397 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 398 */ "limit_clause_opt ::=", + /* 399 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 400 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 401 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 402 */ "subquery ::= NK_LP query_expression NK_RP", + /* 403 */ "search_condition ::= common_expression", + /* 404 */ "sort_specification_list ::= sort_specification", + /* 405 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 406 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 407 */ "ordering_specification_opt ::=", + /* 408 */ "ordering_specification_opt ::= ASC", + /* 409 */ "ordering_specification_opt ::= DESC", + /* 410 */ "null_ordering_opt ::=", + /* 411 */ "null_ordering_opt ::= NULLS FIRST", + /* 412 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -1658,156 +1662,156 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 210: /* cmd */ - case 213: /* literal */ - case 220: /* db_options */ - case 222: /* alter_db_options */ - case 227: /* retention */ - case 228: /* full_table_name */ - case 231: /* table_options */ - case 235: /* alter_table_clause */ - case 236: /* alter_table_options */ - case 239: /* create_subtable_clause */ - case 242: /* drop_table_clause */ - case 245: /* column_def */ - case 248: /* col_name */ - case 249: /* db_name_cond_opt */ - case 250: /* like_pattern_opt */ - case 251: /* table_name_cond */ - case 252: /* from_db_opt */ - case 253: /* func_name */ - case 256: /* index_options */ - case 258: /* duration_literal */ - case 259: /* sliding_opt */ - case 260: /* func */ - case 263: /* query_expression */ - case 265: /* explain_options */ - case 270: /* signed */ - case 271: /* signed_literal */ - case 274: /* expression */ - case 275: /* pseudo_column */ - case 276: /* column_reference */ - case 277: /* subquery */ - case 278: /* predicate */ - case 281: /* in_predicate_value */ - case 282: /* boolean_value_expression */ - case 283: /* boolean_primary */ - case 284: /* common_expression */ - case 285: /* from_clause */ - case 286: /* table_reference_list */ - case 287: /* table_reference */ - case 288: /* table_primary */ - case 289: /* joined_table */ - case 291: /* parenthesized_joined_table */ - case 293: /* search_condition */ - case 294: /* query_specification */ - case 297: /* where_clause_opt */ - case 299: /* twindow_clause_opt */ - case 301: /* having_clause_opt */ - case 303: /* select_item */ - case 304: /* fill_opt */ - case 307: /* query_expression_body */ - case 309: /* slimit_clause_opt */ - case 310: /* limit_clause_opt */ - case 311: /* query_primary */ - case 313: /* sort_specification */ + case 211: /* cmd */ + case 214: /* literal */ + case 221: /* db_options */ + case 223: /* alter_db_options */ + case 228: /* retention */ + case 229: /* full_table_name */ + case 232: /* table_options */ + case 236: /* alter_table_clause */ + case 237: /* alter_table_options */ + case 240: /* create_subtable_clause */ + case 243: /* drop_table_clause */ + case 246: /* column_def */ + case 249: /* col_name */ + case 250: /* db_name_cond_opt */ + case 251: /* like_pattern_opt */ + case 252: /* table_name_cond */ + case 253: /* from_db_opt */ + case 254: /* func_name */ + case 257: /* index_options */ + case 259: /* duration_literal */ + case 260: /* sliding_opt */ + case 261: /* func */ + case 264: /* query_expression */ + case 266: /* explain_options */ + case 271: /* signed */ + case 272: /* signed_literal */ + case 275: /* expression */ + case 276: /* pseudo_column */ + case 277: /* column_reference */ + case 278: /* subquery */ + case 279: /* predicate */ + case 282: /* in_predicate_value */ + case 283: /* boolean_value_expression */ + case 284: /* boolean_primary */ + case 285: /* common_expression */ + case 286: /* from_clause */ + case 287: /* table_reference_list */ + case 288: /* table_reference */ + case 289: /* table_primary */ + case 290: /* joined_table */ + case 292: /* parenthesized_joined_table */ + case 294: /* search_condition */ + case 295: /* query_specification */ + case 298: /* where_clause_opt */ + case 300: /* twindow_clause_opt */ + case 302: /* having_clause_opt */ + case 304: /* select_item */ + case 305: /* fill_opt */ + case 308: /* query_expression_body */ + case 310: /* slimit_clause_opt */ + case 311: /* limit_clause_opt */ + case 312: /* query_primary */ + case 314: /* sort_specification */ { - nodesDestroyNode((yypminor->yy504)); + nodesDestroyNode((yypminor->yy286)); } break; - case 211: /* account_options */ - case 212: /* alter_account_options */ - case 214: /* alter_account_option */ - case 267: /* bufsize_opt */ + case 212: /* account_options */ + case 213: /* alter_account_options */ + case 215: /* alter_account_option */ + case 268: /* bufsize_opt */ { } break; - case 215: /* user_name */ - case 216: /* dnode_endpoint */ - case 217: /* dnode_host_name */ - case 219: /* db_name */ - case 237: /* column_name */ - case 244: /* table_name */ - case 254: /* function_name */ - case 255: /* index_name */ - case 262: /* topic_name */ - case 268: /* stream_name */ - case 272: /* table_alias */ - case 273: /* column_alias */ - case 290: /* alias_opt */ + case 216: /* user_name */ + case 217: /* dnode_endpoint */ + case 218: /* dnode_host_name */ + case 220: /* db_name */ + case 238: /* column_name */ + case 245: /* table_name */ + case 255: /* function_name */ + case 256: /* index_name */ + case 263: /* topic_name */ + case 269: /* stream_name */ + case 273: /* table_alias */ + case 274: /* column_alias */ + case 291: /* alias_opt */ { } break; - case 218: /* not_exists_opt */ - case 221: /* exists_opt */ - case 264: /* analyze_opt */ - case 266: /* agg_func_opt */ - case 295: /* set_quantifier_opt */ + case 219: /* not_exists_opt */ + case 222: /* exists_opt */ + case 265: /* analyze_opt */ + case 267: /* agg_func_opt */ + case 296: /* set_quantifier_opt */ { } break; - case 223: /* integer_list */ - case 224: /* variable_list */ - case 225: /* retention_list */ - case 229: /* column_def_list */ - case 230: /* tags_def_opt */ - case 232: /* multi_create_clause */ - case 233: /* tags_def */ - case 234: /* multi_drop_clause */ - case 240: /* specific_tags_opt */ - case 241: /* literal_list */ - case 243: /* col_name_list */ - case 246: /* func_name_list */ - case 257: /* func_list */ - case 261: /* expression_list */ - case 269: /* dnode_list */ - case 296: /* select_list */ - case 298: /* partition_by_clause_opt */ - case 300: /* group_by_clause_opt */ - case 302: /* select_sublist */ - case 306: /* group_by_list */ - case 308: /* order_by_clause_opt */ - case 312: /* sort_specification_list */ + case 224: /* integer_list */ + case 225: /* variable_list */ + case 226: /* retention_list */ + case 230: /* column_def_list */ + case 231: /* tags_def_opt */ + case 233: /* multi_create_clause */ + case 234: /* tags_def */ + case 235: /* multi_drop_clause */ + case 241: /* specific_tags_opt */ + case 242: /* literal_list */ + case 244: /* col_name_list */ + case 247: /* func_name_list */ + case 258: /* func_list */ + case 262: /* expression_list */ + case 270: /* dnode_list */ + case 297: /* select_list */ + case 299: /* partition_by_clause_opt */ + case 301: /* group_by_clause_opt */ + case 303: /* select_sublist */ + case 307: /* group_by_list */ + case 309: /* order_by_clause_opt */ + case 313: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy488)); + nodesDestroyList((yypminor->yy352)); } break; - case 226: /* alter_db_option */ - case 247: /* alter_table_option */ + case 227: /* alter_db_option */ + case 248: /* alter_table_option */ { } break; - case 238: /* type_name */ + case 239: /* type_name */ { } break; - case 279: /* compare_op */ - case 280: /* in_op */ + case 280: /* compare_op */ + case 281: /* in_op */ { } break; - case 292: /* join_type */ + case 293: /* join_type */ { } break; - case 305: /* fill_mode */ + case 306: /* fill_mode */ { } break; - case 314: /* ordering_specification_opt */ + case 315: /* ordering_specification_opt */ { } break; - case 315: /* null_ordering_opt */ + case 316: /* null_ordering_opt */ { } @@ -2098,418 +2102,419 @@ static void yy_shift( /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side ** of that rule */ static const YYCODETYPE yyRuleInfoLhs[] = { - 210, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - 210, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - 211, /* (2) account_options ::= */ - 211, /* (3) account_options ::= account_options PPS literal */ - 211, /* (4) account_options ::= account_options TSERIES literal */ - 211, /* (5) account_options ::= account_options STORAGE literal */ - 211, /* (6) account_options ::= account_options STREAMS literal */ - 211, /* (7) account_options ::= account_options QTIME literal */ - 211, /* (8) account_options ::= account_options DBS literal */ - 211, /* (9) account_options ::= account_options USERS literal */ - 211, /* (10) account_options ::= account_options CONNS literal */ - 211, /* (11) account_options ::= account_options STATE literal */ - 212, /* (12) alter_account_options ::= alter_account_option */ - 212, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - 214, /* (14) alter_account_option ::= PASS literal */ - 214, /* (15) alter_account_option ::= PPS literal */ - 214, /* (16) alter_account_option ::= TSERIES literal */ - 214, /* (17) alter_account_option ::= STORAGE literal */ - 214, /* (18) alter_account_option ::= STREAMS literal */ - 214, /* (19) alter_account_option ::= QTIME literal */ - 214, /* (20) alter_account_option ::= DBS literal */ - 214, /* (21) alter_account_option ::= USERS literal */ - 214, /* (22) alter_account_option ::= CONNS literal */ - 214, /* (23) alter_account_option ::= STATE literal */ - 210, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ - 210, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - 210, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - 210, /* (27) cmd ::= DROP USER user_name */ - 210, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ - 210, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ - 210, /* (30) cmd ::= DROP DNODE NK_INTEGER */ - 210, /* (31) cmd ::= DROP DNODE dnode_endpoint */ - 210, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - 210, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - 210, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ - 210, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - 216, /* (36) dnode_endpoint ::= NK_STRING */ - 217, /* (37) dnode_host_name ::= NK_ID */ - 217, /* (38) dnode_host_name ::= NK_IPTOKEN */ - 210, /* (39) cmd ::= ALTER LOCAL NK_STRING */ - 210, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - 210, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - 210, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - 210, /* (43) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - 210, /* (44) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - 210, /* (45) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - 210, /* (46) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - 210, /* (47) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - 210, /* (48) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - 210, /* (49) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - 210, /* (50) cmd ::= DROP DATABASE exists_opt db_name */ - 210, /* (51) cmd ::= USE db_name */ - 210, /* (52) cmd ::= ALTER DATABASE db_name alter_db_options */ - 218, /* (53) not_exists_opt ::= IF NOT EXISTS */ - 218, /* (54) not_exists_opt ::= */ - 221, /* (55) exists_opt ::= IF EXISTS */ - 221, /* (56) exists_opt ::= */ - 220, /* (57) db_options ::= */ - 220, /* (58) db_options ::= db_options BLOCKS NK_INTEGER */ - 220, /* (59) db_options ::= db_options CACHE NK_INTEGER */ - 220, /* (60) db_options ::= db_options CACHELAST NK_INTEGER */ - 220, /* (61) db_options ::= db_options COMP NK_INTEGER */ - 220, /* (62) db_options ::= db_options DAYS NK_INTEGER */ - 220, /* (63) db_options ::= db_options DAYS NK_VARIABLE */ - 220, /* (64) db_options ::= db_options FSYNC NK_INTEGER */ - 220, /* (65) db_options ::= db_options MAXROWS NK_INTEGER */ - 220, /* (66) db_options ::= db_options MINROWS NK_INTEGER */ - 220, /* (67) db_options ::= db_options KEEP integer_list */ - 220, /* (68) db_options ::= db_options KEEP variable_list */ - 220, /* (69) db_options ::= db_options PRECISION NK_STRING */ - 220, /* (70) db_options ::= db_options QUORUM NK_INTEGER */ - 220, /* (71) db_options ::= db_options REPLICA NK_INTEGER */ - 220, /* (72) db_options ::= db_options TTL NK_INTEGER */ - 220, /* (73) db_options ::= db_options WAL NK_INTEGER */ - 220, /* (74) db_options ::= db_options VGROUPS NK_INTEGER */ - 220, /* (75) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - 220, /* (76) db_options ::= db_options STREAM_MODE NK_INTEGER */ - 220, /* (77) db_options ::= db_options RETENTIONS retention_list */ - 222, /* (78) alter_db_options ::= alter_db_option */ - 222, /* (79) alter_db_options ::= alter_db_options alter_db_option */ - 226, /* (80) alter_db_option ::= BLOCKS NK_INTEGER */ - 226, /* (81) alter_db_option ::= FSYNC NK_INTEGER */ - 226, /* (82) alter_db_option ::= KEEP integer_list */ - 226, /* (83) alter_db_option ::= KEEP variable_list */ - 226, /* (84) alter_db_option ::= WAL NK_INTEGER */ - 226, /* (85) alter_db_option ::= QUORUM NK_INTEGER */ - 226, /* (86) alter_db_option ::= CACHELAST NK_INTEGER */ - 226, /* (87) alter_db_option ::= REPLICA NK_INTEGER */ - 223, /* (88) integer_list ::= NK_INTEGER */ - 223, /* (89) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - 224, /* (90) variable_list ::= NK_VARIABLE */ - 224, /* (91) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - 225, /* (92) retention_list ::= retention */ - 225, /* (93) retention_list ::= retention_list NK_COMMA retention */ - 227, /* (94) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - 210, /* (95) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - 210, /* (96) cmd ::= CREATE TABLE multi_create_clause */ - 210, /* (97) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - 210, /* (98) cmd ::= DROP TABLE multi_drop_clause */ - 210, /* (99) cmd ::= DROP STABLE exists_opt full_table_name */ - 210, /* (100) cmd ::= ALTER TABLE alter_table_clause */ - 210, /* (101) cmd ::= ALTER STABLE alter_table_clause */ - 235, /* (102) alter_table_clause ::= full_table_name alter_table_options */ - 235, /* (103) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - 235, /* (104) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - 235, /* (105) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - 235, /* (106) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - 235, /* (107) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - 235, /* (108) alter_table_clause ::= full_table_name DROP TAG column_name */ - 235, /* (109) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - 235, /* (110) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - 235, /* (111) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ - 232, /* (112) multi_create_clause ::= create_subtable_clause */ - 232, /* (113) multi_create_clause ::= multi_create_clause create_subtable_clause */ - 239, /* (114) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ - 234, /* (115) multi_drop_clause ::= drop_table_clause */ - 234, /* (116) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - 242, /* (117) drop_table_clause ::= exists_opt full_table_name */ - 240, /* (118) specific_tags_opt ::= */ - 240, /* (119) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - 228, /* (120) full_table_name ::= table_name */ - 228, /* (121) full_table_name ::= db_name NK_DOT table_name */ - 229, /* (122) column_def_list ::= column_def */ - 229, /* (123) column_def_list ::= column_def_list NK_COMMA column_def */ - 245, /* (124) column_def ::= column_name type_name */ - 245, /* (125) column_def ::= column_name type_name COMMENT NK_STRING */ - 238, /* (126) type_name ::= BOOL */ - 238, /* (127) type_name ::= TINYINT */ - 238, /* (128) type_name ::= SMALLINT */ - 238, /* (129) type_name ::= INT */ - 238, /* (130) type_name ::= INTEGER */ - 238, /* (131) type_name ::= BIGINT */ - 238, /* (132) type_name ::= FLOAT */ - 238, /* (133) type_name ::= DOUBLE */ - 238, /* (134) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - 238, /* (135) type_name ::= TIMESTAMP */ - 238, /* (136) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - 238, /* (137) type_name ::= TINYINT UNSIGNED */ - 238, /* (138) type_name ::= SMALLINT UNSIGNED */ - 238, /* (139) type_name ::= INT UNSIGNED */ - 238, /* (140) type_name ::= BIGINT UNSIGNED */ - 238, /* (141) type_name ::= JSON */ - 238, /* (142) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - 238, /* (143) type_name ::= MEDIUMBLOB */ - 238, /* (144) type_name ::= BLOB */ - 238, /* (145) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - 238, /* (146) type_name ::= DECIMAL */ - 238, /* (147) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - 238, /* (148) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 230, /* (149) tags_def_opt ::= */ - 230, /* (150) tags_def_opt ::= tags_def */ - 233, /* (151) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - 231, /* (152) table_options ::= */ - 231, /* (153) table_options ::= table_options COMMENT NK_STRING */ - 231, /* (154) table_options ::= table_options KEEP integer_list */ - 231, /* (155) table_options ::= table_options TTL NK_INTEGER */ - 231, /* (156) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - 231, /* (157) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ - 231, /* (158) table_options ::= table_options FILE_FACTOR NK_FLOAT */ - 231, /* (159) table_options ::= table_options DELAY NK_INTEGER */ - 236, /* (160) alter_table_options ::= alter_table_option */ - 236, /* (161) alter_table_options ::= alter_table_options alter_table_option */ - 247, /* (162) alter_table_option ::= COMMENT NK_STRING */ - 247, /* (163) alter_table_option ::= KEEP integer_list */ - 247, /* (164) alter_table_option ::= TTL NK_INTEGER */ - 243, /* (165) col_name_list ::= col_name */ - 243, /* (166) col_name_list ::= col_name_list NK_COMMA col_name */ - 248, /* (167) col_name ::= column_name */ - 210, /* (168) cmd ::= SHOW DNODES */ - 210, /* (169) cmd ::= SHOW USERS */ - 210, /* (170) cmd ::= SHOW DATABASES */ - 210, /* (171) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - 210, /* (172) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - 210, /* (173) cmd ::= SHOW db_name_cond_opt VGROUPS */ - 210, /* (174) cmd ::= SHOW MNODES */ - 210, /* (175) cmd ::= SHOW MODULES */ - 210, /* (176) cmd ::= SHOW QNODES */ - 210, /* (177) cmd ::= SHOW FUNCTIONS */ - 210, /* (178) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - 210, /* (179) cmd ::= SHOW STREAMS */ - 210, /* (180) cmd ::= SHOW ACCOUNTS */ - 210, /* (181) cmd ::= SHOW APPS */ - 210, /* (182) cmd ::= SHOW CONNECTIONS */ - 210, /* (183) cmd ::= SHOW LICENCE */ - 210, /* (184) cmd ::= SHOW GRANTS */ - 210, /* (185) cmd ::= SHOW CREATE DATABASE db_name */ - 210, /* (186) cmd ::= SHOW CREATE TABLE full_table_name */ - 210, /* (187) cmd ::= SHOW CREATE STABLE full_table_name */ - 210, /* (188) cmd ::= SHOW QUERIES */ - 210, /* (189) cmd ::= SHOW SCORES */ - 210, /* (190) cmd ::= SHOW TOPICS */ - 210, /* (191) cmd ::= SHOW VARIABLES */ - 210, /* (192) cmd ::= SHOW BNODES */ - 210, /* (193) cmd ::= SHOW SNODES */ - 249, /* (194) db_name_cond_opt ::= */ - 249, /* (195) db_name_cond_opt ::= db_name NK_DOT */ - 250, /* (196) like_pattern_opt ::= */ - 250, /* (197) like_pattern_opt ::= LIKE NK_STRING */ - 251, /* (198) table_name_cond ::= table_name */ - 252, /* (199) from_db_opt ::= */ - 252, /* (200) from_db_opt ::= FROM db_name */ - 246, /* (201) func_name_list ::= func_name */ - 246, /* (202) func_name_list ::= func_name_list NK_COMMA col_name */ - 253, /* (203) func_name ::= function_name */ - 210, /* (204) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - 210, /* (205) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - 210, /* (206) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - 256, /* (207) index_options ::= */ - 256, /* (208) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - 256, /* (209) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - 257, /* (210) func_list ::= func */ - 257, /* (211) func_list ::= func_list NK_COMMA func */ - 260, /* (212) func ::= function_name NK_LP expression_list NK_RP */ - 210, /* (213) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - 210, /* (214) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ - 210, /* (215) cmd ::= DROP TOPIC exists_opt topic_name */ - 210, /* (216) cmd ::= DESC full_table_name */ - 210, /* (217) cmd ::= DESCRIBE full_table_name */ - 210, /* (218) cmd ::= RESET QUERY CACHE */ - 210, /* (219) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - 264, /* (220) analyze_opt ::= */ - 264, /* (221) analyze_opt ::= ANALYZE */ - 265, /* (222) explain_options ::= */ - 265, /* (223) explain_options ::= explain_options VERBOSE NK_BOOL */ - 265, /* (224) explain_options ::= explain_options RATIO NK_FLOAT */ - 210, /* (225) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - 210, /* (226) cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - 210, /* (227) cmd ::= DROP FUNCTION function_name */ - 266, /* (228) agg_func_opt ::= */ - 266, /* (229) agg_func_opt ::= AGGREGATE */ - 267, /* (230) bufsize_opt ::= */ - 267, /* (231) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 210, /* (232) cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */ - 210, /* (233) cmd ::= DROP STREAM stream_name */ - 210, /* (234) cmd ::= KILL CONNECTION NK_INTEGER */ - 210, /* (235) cmd ::= KILL QUERY NK_INTEGER */ - 210, /* (236) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - 210, /* (237) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - 210, /* (238) cmd ::= SPLIT VGROUP NK_INTEGER */ - 269, /* (239) dnode_list ::= DNODE NK_INTEGER */ - 269, /* (240) dnode_list ::= dnode_list DNODE NK_INTEGER */ - 210, /* (241) cmd ::= SYNCDB db_name REPLICA */ - 210, /* (242) cmd ::= query_expression */ - 213, /* (243) literal ::= NK_INTEGER */ - 213, /* (244) literal ::= NK_FLOAT */ - 213, /* (245) literal ::= NK_STRING */ - 213, /* (246) literal ::= NK_BOOL */ - 213, /* (247) literal ::= TIMESTAMP NK_STRING */ - 213, /* (248) literal ::= duration_literal */ - 213, /* (249) literal ::= NULL */ - 258, /* (250) duration_literal ::= NK_VARIABLE */ - 270, /* (251) signed ::= NK_INTEGER */ - 270, /* (252) signed ::= NK_PLUS NK_INTEGER */ - 270, /* (253) signed ::= NK_MINUS NK_INTEGER */ - 270, /* (254) signed ::= NK_FLOAT */ - 270, /* (255) signed ::= NK_PLUS NK_FLOAT */ - 270, /* (256) signed ::= NK_MINUS NK_FLOAT */ - 271, /* (257) signed_literal ::= signed */ - 271, /* (258) signed_literal ::= NK_STRING */ - 271, /* (259) signed_literal ::= NK_BOOL */ - 271, /* (260) signed_literal ::= TIMESTAMP NK_STRING */ - 271, /* (261) signed_literal ::= duration_literal */ - 271, /* (262) signed_literal ::= NULL */ - 241, /* (263) literal_list ::= signed_literal */ - 241, /* (264) literal_list ::= literal_list NK_COMMA signed_literal */ - 219, /* (265) db_name ::= NK_ID */ - 244, /* (266) table_name ::= NK_ID */ - 237, /* (267) column_name ::= NK_ID */ - 254, /* (268) function_name ::= NK_ID */ - 254, /* (269) function_name ::= FIRST */ - 254, /* (270) function_name ::= LAST */ - 254, /* (271) function_name ::= NOW */ - 254, /* (272) function_name ::= TODAY */ - 272, /* (273) table_alias ::= NK_ID */ - 273, /* (274) column_alias ::= NK_ID */ - 215, /* (275) user_name ::= NK_ID */ - 255, /* (276) index_name ::= NK_ID */ - 262, /* (277) topic_name ::= NK_ID */ - 268, /* (278) stream_name ::= NK_ID */ - 274, /* (279) expression ::= literal */ - 274, /* (280) expression ::= pseudo_column */ - 274, /* (281) expression ::= column_reference */ - 274, /* (282) expression ::= function_name NK_LP expression_list NK_RP */ - 274, /* (283) expression ::= function_name NK_LP NK_STAR NK_RP */ - 274, /* (284) expression ::= function_name NK_LP NK_RP */ - 274, /* (285) expression ::= CAST NK_LP expression AS type_name NK_RP */ - 274, /* (286) expression ::= subquery */ - 274, /* (287) expression ::= NK_LP expression NK_RP */ - 274, /* (288) expression ::= NK_PLUS expression */ - 274, /* (289) expression ::= NK_MINUS expression */ - 274, /* (290) expression ::= expression NK_PLUS expression */ - 274, /* (291) expression ::= expression NK_MINUS expression */ - 274, /* (292) expression ::= expression NK_STAR expression */ - 274, /* (293) expression ::= expression NK_SLASH expression */ - 274, /* (294) expression ::= expression NK_REM expression */ - 261, /* (295) expression_list ::= expression */ - 261, /* (296) expression_list ::= expression_list NK_COMMA expression */ - 276, /* (297) column_reference ::= column_name */ - 276, /* (298) column_reference ::= table_name NK_DOT column_name */ - 275, /* (299) pseudo_column ::= ROWTS */ - 275, /* (300) pseudo_column ::= TBNAME */ - 275, /* (301) pseudo_column ::= QSTARTTS */ - 275, /* (302) pseudo_column ::= QENDTS */ - 275, /* (303) pseudo_column ::= WSTARTTS */ - 275, /* (304) pseudo_column ::= WENDTS */ - 275, /* (305) pseudo_column ::= WDURATION */ - 278, /* (306) predicate ::= expression compare_op expression */ - 278, /* (307) predicate ::= expression BETWEEN expression AND expression */ - 278, /* (308) predicate ::= expression NOT BETWEEN expression AND expression */ - 278, /* (309) predicate ::= expression IS NULL */ - 278, /* (310) predicate ::= expression IS NOT NULL */ - 278, /* (311) predicate ::= expression in_op in_predicate_value */ - 279, /* (312) compare_op ::= NK_LT */ - 279, /* (313) compare_op ::= NK_GT */ - 279, /* (314) compare_op ::= NK_LE */ - 279, /* (315) compare_op ::= NK_GE */ - 279, /* (316) compare_op ::= NK_NE */ - 279, /* (317) compare_op ::= NK_EQ */ - 279, /* (318) compare_op ::= LIKE */ - 279, /* (319) compare_op ::= NOT LIKE */ - 279, /* (320) compare_op ::= MATCH */ - 279, /* (321) compare_op ::= NMATCH */ - 280, /* (322) in_op ::= IN */ - 280, /* (323) in_op ::= NOT IN */ - 281, /* (324) in_predicate_value ::= NK_LP expression_list NK_RP */ - 282, /* (325) boolean_value_expression ::= boolean_primary */ - 282, /* (326) boolean_value_expression ::= NOT boolean_primary */ - 282, /* (327) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - 282, /* (328) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - 283, /* (329) boolean_primary ::= predicate */ - 283, /* (330) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - 284, /* (331) common_expression ::= expression */ - 284, /* (332) common_expression ::= boolean_value_expression */ - 285, /* (333) from_clause ::= FROM table_reference_list */ - 286, /* (334) table_reference_list ::= table_reference */ - 286, /* (335) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - 287, /* (336) table_reference ::= table_primary */ - 287, /* (337) table_reference ::= joined_table */ - 288, /* (338) table_primary ::= table_name alias_opt */ - 288, /* (339) table_primary ::= db_name NK_DOT table_name alias_opt */ - 288, /* (340) table_primary ::= subquery alias_opt */ - 288, /* (341) table_primary ::= parenthesized_joined_table */ - 290, /* (342) alias_opt ::= */ - 290, /* (343) alias_opt ::= table_alias */ - 290, /* (344) alias_opt ::= AS table_alias */ - 291, /* (345) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - 291, /* (346) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - 289, /* (347) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - 292, /* (348) join_type ::= */ - 292, /* (349) join_type ::= INNER */ - 294, /* (350) 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 */ - 295, /* (351) set_quantifier_opt ::= */ - 295, /* (352) set_quantifier_opt ::= DISTINCT */ - 295, /* (353) set_quantifier_opt ::= ALL */ - 296, /* (354) select_list ::= NK_STAR */ - 296, /* (355) select_list ::= select_sublist */ - 302, /* (356) select_sublist ::= select_item */ - 302, /* (357) select_sublist ::= select_sublist NK_COMMA select_item */ - 303, /* (358) select_item ::= common_expression */ - 303, /* (359) select_item ::= common_expression column_alias */ - 303, /* (360) select_item ::= common_expression AS column_alias */ - 303, /* (361) select_item ::= table_name NK_DOT NK_STAR */ - 297, /* (362) where_clause_opt ::= */ - 297, /* (363) where_clause_opt ::= WHERE search_condition */ - 298, /* (364) partition_by_clause_opt ::= */ - 298, /* (365) partition_by_clause_opt ::= PARTITION BY expression_list */ - 299, /* (366) twindow_clause_opt ::= */ - 299, /* (367) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - 299, /* (368) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - 299, /* (369) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - 299, /* (370) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - 259, /* (371) sliding_opt ::= */ - 259, /* (372) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - 304, /* (373) fill_opt ::= */ - 304, /* (374) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - 304, /* (375) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - 305, /* (376) fill_mode ::= NONE */ - 305, /* (377) fill_mode ::= PREV */ - 305, /* (378) fill_mode ::= NULL */ - 305, /* (379) fill_mode ::= LINEAR */ - 305, /* (380) fill_mode ::= NEXT */ - 300, /* (381) group_by_clause_opt ::= */ - 300, /* (382) group_by_clause_opt ::= GROUP BY group_by_list */ - 306, /* (383) group_by_list ::= expression */ - 306, /* (384) group_by_list ::= group_by_list NK_COMMA expression */ - 301, /* (385) having_clause_opt ::= */ - 301, /* (386) having_clause_opt ::= HAVING search_condition */ - 263, /* (387) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - 307, /* (388) query_expression_body ::= query_primary */ - 307, /* (389) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - 311, /* (390) query_primary ::= query_specification */ - 308, /* (391) order_by_clause_opt ::= */ - 308, /* (392) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 309, /* (393) slimit_clause_opt ::= */ - 309, /* (394) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - 309, /* (395) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - 309, /* (396) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 310, /* (397) limit_clause_opt ::= */ - 310, /* (398) limit_clause_opt ::= LIMIT NK_INTEGER */ - 310, /* (399) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - 310, /* (400) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 277, /* (401) subquery ::= NK_LP query_expression NK_RP */ - 293, /* (402) search_condition ::= common_expression */ - 312, /* (403) sort_specification_list ::= sort_specification */ - 312, /* (404) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - 313, /* (405) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - 314, /* (406) ordering_specification_opt ::= */ - 314, /* (407) ordering_specification_opt ::= ASC */ - 314, /* (408) ordering_specification_opt ::= DESC */ - 315, /* (409) null_ordering_opt ::= */ - 315, /* (410) null_ordering_opt ::= NULLS FIRST */ - 315, /* (411) null_ordering_opt ::= NULLS LAST */ + 211, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + 211, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + 212, /* (2) account_options ::= */ + 212, /* (3) account_options ::= account_options PPS literal */ + 212, /* (4) account_options ::= account_options TSERIES literal */ + 212, /* (5) account_options ::= account_options STORAGE literal */ + 212, /* (6) account_options ::= account_options STREAMS literal */ + 212, /* (7) account_options ::= account_options QTIME literal */ + 212, /* (8) account_options ::= account_options DBS literal */ + 212, /* (9) account_options ::= account_options USERS literal */ + 212, /* (10) account_options ::= account_options CONNS literal */ + 212, /* (11) account_options ::= account_options STATE literal */ + 213, /* (12) alter_account_options ::= alter_account_option */ + 213, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + 215, /* (14) alter_account_option ::= PASS literal */ + 215, /* (15) alter_account_option ::= PPS literal */ + 215, /* (16) alter_account_option ::= TSERIES literal */ + 215, /* (17) alter_account_option ::= STORAGE literal */ + 215, /* (18) alter_account_option ::= STREAMS literal */ + 215, /* (19) alter_account_option ::= QTIME literal */ + 215, /* (20) alter_account_option ::= DBS literal */ + 215, /* (21) alter_account_option ::= USERS literal */ + 215, /* (22) alter_account_option ::= CONNS literal */ + 215, /* (23) alter_account_option ::= STATE literal */ + 211, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ + 211, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + 211, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + 211, /* (27) cmd ::= DROP USER user_name */ + 211, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ + 211, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ + 211, /* (30) cmd ::= DROP DNODE NK_INTEGER */ + 211, /* (31) cmd ::= DROP DNODE dnode_endpoint */ + 211, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + 211, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + 211, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ + 211, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + 217, /* (36) dnode_endpoint ::= NK_STRING */ + 218, /* (37) dnode_host_name ::= NK_ID */ + 218, /* (38) dnode_host_name ::= NK_IPTOKEN */ + 211, /* (39) cmd ::= ALTER LOCAL NK_STRING */ + 211, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + 211, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + 211, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + 211, /* (43) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + 211, /* (44) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + 211, /* (45) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + 211, /* (46) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + 211, /* (47) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + 211, /* (48) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + 211, /* (49) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + 211, /* (50) cmd ::= DROP DATABASE exists_opt db_name */ + 211, /* (51) cmd ::= USE db_name */ + 211, /* (52) cmd ::= ALTER DATABASE db_name alter_db_options */ + 219, /* (53) not_exists_opt ::= IF NOT EXISTS */ + 219, /* (54) not_exists_opt ::= */ + 222, /* (55) exists_opt ::= IF EXISTS */ + 222, /* (56) exists_opt ::= */ + 221, /* (57) db_options ::= */ + 221, /* (58) db_options ::= db_options BLOCKS NK_INTEGER */ + 221, /* (59) db_options ::= db_options CACHE NK_INTEGER */ + 221, /* (60) db_options ::= db_options CACHELAST NK_INTEGER */ + 221, /* (61) db_options ::= db_options COMP NK_INTEGER */ + 221, /* (62) db_options ::= db_options DAYS NK_INTEGER */ + 221, /* (63) db_options ::= db_options DAYS NK_VARIABLE */ + 221, /* (64) db_options ::= db_options FSYNC NK_INTEGER */ + 221, /* (65) db_options ::= db_options MAXROWS NK_INTEGER */ + 221, /* (66) db_options ::= db_options MINROWS NK_INTEGER */ + 221, /* (67) db_options ::= db_options KEEP integer_list */ + 221, /* (68) db_options ::= db_options KEEP variable_list */ + 221, /* (69) db_options ::= db_options PRECISION NK_STRING */ + 221, /* (70) db_options ::= db_options QUORUM NK_INTEGER */ + 221, /* (71) db_options ::= db_options REPLICA NK_INTEGER */ + 221, /* (72) db_options ::= db_options TTL NK_INTEGER */ + 221, /* (73) db_options ::= db_options WAL NK_INTEGER */ + 221, /* (74) db_options ::= db_options VGROUPS NK_INTEGER */ + 221, /* (75) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + 221, /* (76) db_options ::= db_options STREAM_MODE NK_INTEGER */ + 221, /* (77) db_options ::= db_options RETENTIONS retention_list */ + 223, /* (78) alter_db_options ::= alter_db_option */ + 223, /* (79) alter_db_options ::= alter_db_options alter_db_option */ + 227, /* (80) alter_db_option ::= BLOCKS NK_INTEGER */ + 227, /* (81) alter_db_option ::= FSYNC NK_INTEGER */ + 227, /* (82) alter_db_option ::= KEEP integer_list */ + 227, /* (83) alter_db_option ::= KEEP variable_list */ + 227, /* (84) alter_db_option ::= WAL NK_INTEGER */ + 227, /* (85) alter_db_option ::= QUORUM NK_INTEGER */ + 227, /* (86) alter_db_option ::= CACHELAST NK_INTEGER */ + 227, /* (87) alter_db_option ::= REPLICA NK_INTEGER */ + 224, /* (88) integer_list ::= NK_INTEGER */ + 224, /* (89) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + 225, /* (90) variable_list ::= NK_VARIABLE */ + 225, /* (91) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + 226, /* (92) retention_list ::= retention */ + 226, /* (93) retention_list ::= retention_list NK_COMMA retention */ + 228, /* (94) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + 211, /* (95) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + 211, /* (96) cmd ::= CREATE TABLE multi_create_clause */ + 211, /* (97) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + 211, /* (98) cmd ::= DROP TABLE multi_drop_clause */ + 211, /* (99) cmd ::= DROP STABLE exists_opt full_table_name */ + 211, /* (100) cmd ::= ALTER TABLE alter_table_clause */ + 211, /* (101) cmd ::= ALTER STABLE alter_table_clause */ + 236, /* (102) alter_table_clause ::= full_table_name alter_table_options */ + 236, /* (103) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + 236, /* (104) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + 236, /* (105) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + 236, /* (106) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + 236, /* (107) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + 236, /* (108) alter_table_clause ::= full_table_name DROP TAG column_name */ + 236, /* (109) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + 236, /* (110) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + 236, /* (111) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ + 233, /* (112) multi_create_clause ::= create_subtable_clause */ + 233, /* (113) multi_create_clause ::= multi_create_clause create_subtable_clause */ + 240, /* (114) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ + 235, /* (115) multi_drop_clause ::= drop_table_clause */ + 235, /* (116) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + 243, /* (117) drop_table_clause ::= exists_opt full_table_name */ + 241, /* (118) specific_tags_opt ::= */ + 241, /* (119) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + 229, /* (120) full_table_name ::= table_name */ + 229, /* (121) full_table_name ::= db_name NK_DOT table_name */ + 230, /* (122) column_def_list ::= column_def */ + 230, /* (123) column_def_list ::= column_def_list NK_COMMA column_def */ + 246, /* (124) column_def ::= column_name type_name */ + 246, /* (125) column_def ::= column_name type_name COMMENT NK_STRING */ + 239, /* (126) type_name ::= BOOL */ + 239, /* (127) type_name ::= TINYINT */ + 239, /* (128) type_name ::= SMALLINT */ + 239, /* (129) type_name ::= INT */ + 239, /* (130) type_name ::= INTEGER */ + 239, /* (131) type_name ::= BIGINT */ + 239, /* (132) type_name ::= FLOAT */ + 239, /* (133) type_name ::= DOUBLE */ + 239, /* (134) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + 239, /* (135) type_name ::= TIMESTAMP */ + 239, /* (136) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + 239, /* (137) type_name ::= TINYINT UNSIGNED */ + 239, /* (138) type_name ::= SMALLINT UNSIGNED */ + 239, /* (139) type_name ::= INT UNSIGNED */ + 239, /* (140) type_name ::= BIGINT UNSIGNED */ + 239, /* (141) type_name ::= JSON */ + 239, /* (142) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + 239, /* (143) type_name ::= MEDIUMBLOB */ + 239, /* (144) type_name ::= BLOB */ + 239, /* (145) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + 239, /* (146) type_name ::= DECIMAL */ + 239, /* (147) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + 239, /* (148) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 231, /* (149) tags_def_opt ::= */ + 231, /* (150) tags_def_opt ::= tags_def */ + 234, /* (151) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + 232, /* (152) table_options ::= */ + 232, /* (153) table_options ::= table_options COMMENT NK_STRING */ + 232, /* (154) table_options ::= table_options KEEP integer_list */ + 232, /* (155) table_options ::= table_options TTL NK_INTEGER */ + 232, /* (156) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + 232, /* (157) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + 232, /* (158) table_options ::= table_options FILE_FACTOR NK_FLOAT */ + 232, /* (159) table_options ::= table_options DELAY NK_INTEGER */ + 237, /* (160) alter_table_options ::= alter_table_option */ + 237, /* (161) alter_table_options ::= alter_table_options alter_table_option */ + 248, /* (162) alter_table_option ::= COMMENT NK_STRING */ + 248, /* (163) alter_table_option ::= KEEP integer_list */ + 248, /* (164) alter_table_option ::= TTL NK_INTEGER */ + 244, /* (165) col_name_list ::= col_name */ + 244, /* (166) col_name_list ::= col_name_list NK_COMMA col_name */ + 249, /* (167) col_name ::= column_name */ + 211, /* (168) cmd ::= SHOW DNODES */ + 211, /* (169) cmd ::= SHOW USERS */ + 211, /* (170) cmd ::= SHOW DATABASES */ + 211, /* (171) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + 211, /* (172) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + 211, /* (173) cmd ::= SHOW db_name_cond_opt VGROUPS */ + 211, /* (174) cmd ::= SHOW MNODES */ + 211, /* (175) cmd ::= SHOW MODULES */ + 211, /* (176) cmd ::= SHOW QNODES */ + 211, /* (177) cmd ::= SHOW FUNCTIONS */ + 211, /* (178) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + 211, /* (179) cmd ::= SHOW STREAMS */ + 211, /* (180) cmd ::= SHOW ACCOUNTS */ + 211, /* (181) cmd ::= SHOW APPS */ + 211, /* (182) cmd ::= SHOW CONNECTIONS */ + 211, /* (183) cmd ::= SHOW LICENCE */ + 211, /* (184) cmd ::= SHOW GRANTS */ + 211, /* (185) cmd ::= SHOW CREATE DATABASE db_name */ + 211, /* (186) cmd ::= SHOW CREATE TABLE full_table_name */ + 211, /* (187) cmd ::= SHOW CREATE STABLE full_table_name */ + 211, /* (188) cmd ::= SHOW QUERIES */ + 211, /* (189) cmd ::= SHOW SCORES */ + 211, /* (190) cmd ::= SHOW TOPICS */ + 211, /* (191) cmd ::= SHOW VARIABLES */ + 211, /* (192) cmd ::= SHOW BNODES */ + 211, /* (193) cmd ::= SHOW SNODES */ + 250, /* (194) db_name_cond_opt ::= */ + 250, /* (195) db_name_cond_opt ::= db_name NK_DOT */ + 251, /* (196) like_pattern_opt ::= */ + 251, /* (197) like_pattern_opt ::= LIKE NK_STRING */ + 252, /* (198) table_name_cond ::= table_name */ + 253, /* (199) from_db_opt ::= */ + 253, /* (200) from_db_opt ::= FROM db_name */ + 247, /* (201) func_name_list ::= func_name */ + 247, /* (202) func_name_list ::= func_name_list NK_COMMA col_name */ + 254, /* (203) func_name ::= function_name */ + 211, /* (204) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + 211, /* (205) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + 211, /* (206) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + 257, /* (207) index_options ::= */ + 257, /* (208) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + 257, /* (209) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + 258, /* (210) func_list ::= func */ + 258, /* (211) func_list ::= func_list NK_COMMA func */ + 261, /* (212) func ::= function_name NK_LP expression_list NK_RP */ + 211, /* (213) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + 211, /* (214) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ + 211, /* (215) cmd ::= DROP TOPIC exists_opt topic_name */ + 211, /* (216) cmd ::= DESC full_table_name */ + 211, /* (217) cmd ::= DESCRIBE full_table_name */ + 211, /* (218) cmd ::= RESET QUERY CACHE */ + 211, /* (219) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + 265, /* (220) analyze_opt ::= */ + 265, /* (221) analyze_opt ::= ANALYZE */ + 266, /* (222) explain_options ::= */ + 266, /* (223) explain_options ::= explain_options VERBOSE NK_BOOL */ + 266, /* (224) explain_options ::= explain_options RATIO NK_FLOAT */ + 211, /* (225) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + 211, /* (226) cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + 211, /* (227) cmd ::= DROP FUNCTION function_name */ + 267, /* (228) agg_func_opt ::= */ + 267, /* (229) agg_func_opt ::= AGGREGATE */ + 268, /* (230) bufsize_opt ::= */ + 268, /* (231) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 211, /* (232) cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */ + 211, /* (233) cmd ::= DROP STREAM stream_name */ + 211, /* (234) cmd ::= KILL CONNECTION NK_INTEGER */ + 211, /* (235) cmd ::= KILL QUERY NK_INTEGER */ + 211, /* (236) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + 211, /* (237) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + 211, /* (238) cmd ::= SPLIT VGROUP NK_INTEGER */ + 270, /* (239) dnode_list ::= DNODE NK_INTEGER */ + 270, /* (240) dnode_list ::= dnode_list DNODE NK_INTEGER */ + 211, /* (241) cmd ::= SYNCDB db_name REPLICA */ + 211, /* (242) cmd ::= query_expression */ + 214, /* (243) literal ::= NK_INTEGER */ + 214, /* (244) literal ::= NK_FLOAT */ + 214, /* (245) literal ::= NK_STRING */ + 214, /* (246) literal ::= NK_BOOL */ + 214, /* (247) literal ::= TIMESTAMP NK_STRING */ + 214, /* (248) literal ::= duration_literal */ + 214, /* (249) literal ::= NULL */ + 259, /* (250) duration_literal ::= NK_VARIABLE */ + 271, /* (251) signed ::= NK_INTEGER */ + 271, /* (252) signed ::= NK_PLUS NK_INTEGER */ + 271, /* (253) signed ::= NK_MINUS NK_INTEGER */ + 271, /* (254) signed ::= NK_FLOAT */ + 271, /* (255) signed ::= NK_PLUS NK_FLOAT */ + 271, /* (256) signed ::= NK_MINUS NK_FLOAT */ + 272, /* (257) signed_literal ::= signed */ + 272, /* (258) signed_literal ::= NK_STRING */ + 272, /* (259) signed_literal ::= NK_BOOL */ + 272, /* (260) signed_literal ::= TIMESTAMP NK_STRING */ + 272, /* (261) signed_literal ::= duration_literal */ + 272, /* (262) signed_literal ::= NULL */ + 242, /* (263) literal_list ::= signed_literal */ + 242, /* (264) literal_list ::= literal_list NK_COMMA signed_literal */ + 220, /* (265) db_name ::= NK_ID */ + 245, /* (266) table_name ::= NK_ID */ + 238, /* (267) column_name ::= NK_ID */ + 255, /* (268) function_name ::= NK_ID */ + 255, /* (269) function_name ::= FIRST */ + 255, /* (270) function_name ::= LAST */ + 255, /* (271) function_name ::= NOW */ + 255, /* (272) function_name ::= TODAY */ + 255, /* (273) function_name ::= TIMEZONE */ + 273, /* (274) table_alias ::= NK_ID */ + 274, /* (275) column_alias ::= NK_ID */ + 216, /* (276) user_name ::= NK_ID */ + 256, /* (277) index_name ::= NK_ID */ + 263, /* (278) topic_name ::= NK_ID */ + 269, /* (279) stream_name ::= NK_ID */ + 275, /* (280) expression ::= literal */ + 275, /* (281) expression ::= pseudo_column */ + 275, /* (282) expression ::= column_reference */ + 275, /* (283) expression ::= function_name NK_LP expression_list NK_RP */ + 275, /* (284) expression ::= function_name NK_LP NK_STAR NK_RP */ + 275, /* (285) expression ::= function_name NK_LP NK_RP */ + 275, /* (286) expression ::= CAST NK_LP expression AS type_name NK_RP */ + 275, /* (287) expression ::= subquery */ + 275, /* (288) expression ::= NK_LP expression NK_RP */ + 275, /* (289) expression ::= NK_PLUS expression */ + 275, /* (290) expression ::= NK_MINUS expression */ + 275, /* (291) expression ::= expression NK_PLUS expression */ + 275, /* (292) expression ::= expression NK_MINUS expression */ + 275, /* (293) expression ::= expression NK_STAR expression */ + 275, /* (294) expression ::= expression NK_SLASH expression */ + 275, /* (295) expression ::= expression NK_REM expression */ + 262, /* (296) expression_list ::= expression */ + 262, /* (297) expression_list ::= expression_list NK_COMMA expression */ + 277, /* (298) column_reference ::= column_name */ + 277, /* (299) column_reference ::= table_name NK_DOT column_name */ + 276, /* (300) pseudo_column ::= ROWTS */ + 276, /* (301) pseudo_column ::= TBNAME */ + 276, /* (302) pseudo_column ::= QSTARTTS */ + 276, /* (303) pseudo_column ::= QENDTS */ + 276, /* (304) pseudo_column ::= WSTARTTS */ + 276, /* (305) pseudo_column ::= WENDTS */ + 276, /* (306) pseudo_column ::= WDURATION */ + 279, /* (307) predicate ::= expression compare_op expression */ + 279, /* (308) predicate ::= expression BETWEEN expression AND expression */ + 279, /* (309) predicate ::= expression NOT BETWEEN expression AND expression */ + 279, /* (310) predicate ::= expression IS NULL */ + 279, /* (311) predicate ::= expression IS NOT NULL */ + 279, /* (312) predicate ::= expression in_op in_predicate_value */ + 280, /* (313) compare_op ::= NK_LT */ + 280, /* (314) compare_op ::= NK_GT */ + 280, /* (315) compare_op ::= NK_LE */ + 280, /* (316) compare_op ::= NK_GE */ + 280, /* (317) compare_op ::= NK_NE */ + 280, /* (318) compare_op ::= NK_EQ */ + 280, /* (319) compare_op ::= LIKE */ + 280, /* (320) compare_op ::= NOT LIKE */ + 280, /* (321) compare_op ::= MATCH */ + 280, /* (322) compare_op ::= NMATCH */ + 281, /* (323) in_op ::= IN */ + 281, /* (324) in_op ::= NOT IN */ + 282, /* (325) in_predicate_value ::= NK_LP expression_list NK_RP */ + 283, /* (326) boolean_value_expression ::= boolean_primary */ + 283, /* (327) boolean_value_expression ::= NOT boolean_primary */ + 283, /* (328) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + 283, /* (329) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + 284, /* (330) boolean_primary ::= predicate */ + 284, /* (331) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + 285, /* (332) common_expression ::= expression */ + 285, /* (333) common_expression ::= boolean_value_expression */ + 286, /* (334) from_clause ::= FROM table_reference_list */ + 287, /* (335) table_reference_list ::= table_reference */ + 287, /* (336) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + 288, /* (337) table_reference ::= table_primary */ + 288, /* (338) table_reference ::= joined_table */ + 289, /* (339) table_primary ::= table_name alias_opt */ + 289, /* (340) table_primary ::= db_name NK_DOT table_name alias_opt */ + 289, /* (341) table_primary ::= subquery alias_opt */ + 289, /* (342) table_primary ::= parenthesized_joined_table */ + 291, /* (343) alias_opt ::= */ + 291, /* (344) alias_opt ::= table_alias */ + 291, /* (345) alias_opt ::= AS table_alias */ + 292, /* (346) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + 292, /* (347) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + 290, /* (348) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + 293, /* (349) join_type ::= */ + 293, /* (350) join_type ::= INNER */ + 295, /* (351) 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, /* (352) set_quantifier_opt ::= */ + 296, /* (353) set_quantifier_opt ::= DISTINCT */ + 296, /* (354) set_quantifier_opt ::= ALL */ + 297, /* (355) select_list ::= NK_STAR */ + 297, /* (356) select_list ::= select_sublist */ + 303, /* (357) select_sublist ::= select_item */ + 303, /* (358) select_sublist ::= select_sublist NK_COMMA select_item */ + 304, /* (359) select_item ::= common_expression */ + 304, /* (360) select_item ::= common_expression column_alias */ + 304, /* (361) select_item ::= common_expression AS column_alias */ + 304, /* (362) select_item ::= table_name NK_DOT NK_STAR */ + 298, /* (363) where_clause_opt ::= */ + 298, /* (364) where_clause_opt ::= WHERE search_condition */ + 299, /* (365) partition_by_clause_opt ::= */ + 299, /* (366) partition_by_clause_opt ::= PARTITION BY expression_list */ + 300, /* (367) twindow_clause_opt ::= */ + 300, /* (368) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + 300, /* (369) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + 300, /* (370) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + 300, /* (371) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + 260, /* (372) sliding_opt ::= */ + 260, /* (373) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + 305, /* (374) fill_opt ::= */ + 305, /* (375) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + 305, /* (376) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + 306, /* (377) fill_mode ::= NONE */ + 306, /* (378) fill_mode ::= PREV */ + 306, /* (379) fill_mode ::= NULL */ + 306, /* (380) fill_mode ::= LINEAR */ + 306, /* (381) fill_mode ::= NEXT */ + 301, /* (382) group_by_clause_opt ::= */ + 301, /* (383) group_by_clause_opt ::= GROUP BY group_by_list */ + 307, /* (384) group_by_list ::= expression */ + 307, /* (385) group_by_list ::= group_by_list NK_COMMA expression */ + 302, /* (386) having_clause_opt ::= */ + 302, /* (387) having_clause_opt ::= HAVING search_condition */ + 264, /* (388) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + 308, /* (389) query_expression_body ::= query_primary */ + 308, /* (390) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + 312, /* (391) query_primary ::= query_specification */ + 309, /* (392) order_by_clause_opt ::= */ + 309, /* (393) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 310, /* (394) slimit_clause_opt ::= */ + 310, /* (395) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + 310, /* (396) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + 310, /* (397) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 311, /* (398) limit_clause_opt ::= */ + 311, /* (399) limit_clause_opt ::= LIMIT NK_INTEGER */ + 311, /* (400) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + 311, /* (401) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 278, /* (402) subquery ::= NK_LP query_expression NK_RP */ + 294, /* (403) search_condition ::= common_expression */ + 313, /* (404) sort_specification_list ::= sort_specification */ + 313, /* (405) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + 314, /* (406) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + 315, /* (407) ordering_specification_opt ::= */ + 315, /* (408) ordering_specification_opt ::= ASC */ + 315, /* (409) ordering_specification_opt ::= DESC */ + 316, /* (410) null_ordering_opt ::= */ + 316, /* (411) null_ordering_opt ::= NULLS FIRST */ + 316, /* (412) null_ordering_opt ::= NULLS LAST */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number @@ -2788,145 +2793,146 @@ static const signed char yyRuleInfoNRhs[] = { -1, /* (270) function_name ::= LAST */ -1, /* (271) function_name ::= NOW */ -1, /* (272) function_name ::= TODAY */ - -1, /* (273) table_alias ::= NK_ID */ - -1, /* (274) column_alias ::= NK_ID */ - -1, /* (275) user_name ::= NK_ID */ - -1, /* (276) index_name ::= NK_ID */ - -1, /* (277) topic_name ::= NK_ID */ - -1, /* (278) stream_name ::= NK_ID */ - -1, /* (279) expression ::= literal */ - -1, /* (280) expression ::= pseudo_column */ - -1, /* (281) expression ::= column_reference */ - -4, /* (282) expression ::= function_name NK_LP expression_list NK_RP */ - -4, /* (283) expression ::= function_name NK_LP NK_STAR NK_RP */ - -3, /* (284) expression ::= function_name NK_LP NK_RP */ - -6, /* (285) expression ::= CAST NK_LP expression AS type_name NK_RP */ - -1, /* (286) expression ::= subquery */ - -3, /* (287) expression ::= NK_LP expression NK_RP */ - -2, /* (288) expression ::= NK_PLUS expression */ - -2, /* (289) expression ::= NK_MINUS expression */ - -3, /* (290) expression ::= expression NK_PLUS expression */ - -3, /* (291) expression ::= expression NK_MINUS expression */ - -3, /* (292) expression ::= expression NK_STAR expression */ - -3, /* (293) expression ::= expression NK_SLASH expression */ - -3, /* (294) expression ::= expression NK_REM expression */ - -1, /* (295) expression_list ::= expression */ - -3, /* (296) expression_list ::= expression_list NK_COMMA expression */ - -1, /* (297) column_reference ::= column_name */ - -3, /* (298) column_reference ::= table_name NK_DOT column_name */ - -1, /* (299) pseudo_column ::= ROWTS */ - -1, /* (300) pseudo_column ::= TBNAME */ - -1, /* (301) pseudo_column ::= QSTARTTS */ - -1, /* (302) pseudo_column ::= QENDTS */ - -1, /* (303) pseudo_column ::= WSTARTTS */ - -1, /* (304) pseudo_column ::= WENDTS */ - -1, /* (305) pseudo_column ::= WDURATION */ - -3, /* (306) predicate ::= expression compare_op expression */ - -5, /* (307) predicate ::= expression BETWEEN expression AND expression */ - -6, /* (308) predicate ::= expression NOT BETWEEN expression AND expression */ - -3, /* (309) predicate ::= expression IS NULL */ - -4, /* (310) predicate ::= expression IS NOT NULL */ - -3, /* (311) predicate ::= expression in_op in_predicate_value */ - -1, /* (312) compare_op ::= NK_LT */ - -1, /* (313) compare_op ::= NK_GT */ - -1, /* (314) compare_op ::= NK_LE */ - -1, /* (315) compare_op ::= NK_GE */ - -1, /* (316) compare_op ::= NK_NE */ - -1, /* (317) compare_op ::= NK_EQ */ - -1, /* (318) compare_op ::= LIKE */ - -2, /* (319) compare_op ::= NOT LIKE */ - -1, /* (320) compare_op ::= MATCH */ - -1, /* (321) compare_op ::= NMATCH */ - -1, /* (322) in_op ::= IN */ - -2, /* (323) in_op ::= NOT IN */ - -3, /* (324) in_predicate_value ::= NK_LP expression_list NK_RP */ - -1, /* (325) boolean_value_expression ::= boolean_primary */ - -2, /* (326) boolean_value_expression ::= NOT boolean_primary */ - -3, /* (327) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - -3, /* (328) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - -1, /* (329) boolean_primary ::= predicate */ - -3, /* (330) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - -1, /* (331) common_expression ::= expression */ - -1, /* (332) common_expression ::= boolean_value_expression */ - -2, /* (333) from_clause ::= FROM table_reference_list */ - -1, /* (334) table_reference_list ::= table_reference */ - -3, /* (335) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - -1, /* (336) table_reference ::= table_primary */ - -1, /* (337) table_reference ::= joined_table */ - -2, /* (338) table_primary ::= table_name alias_opt */ - -4, /* (339) table_primary ::= db_name NK_DOT table_name alias_opt */ - -2, /* (340) table_primary ::= subquery alias_opt */ - -1, /* (341) table_primary ::= parenthesized_joined_table */ - 0, /* (342) alias_opt ::= */ - -1, /* (343) alias_opt ::= table_alias */ - -2, /* (344) alias_opt ::= AS table_alias */ - -3, /* (345) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - -3, /* (346) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - -6, /* (347) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - 0, /* (348) join_type ::= */ - -1, /* (349) join_type ::= INNER */ - -9, /* (350) 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 */ - 0, /* (351) set_quantifier_opt ::= */ - -1, /* (352) set_quantifier_opt ::= DISTINCT */ - -1, /* (353) set_quantifier_opt ::= ALL */ - -1, /* (354) select_list ::= NK_STAR */ - -1, /* (355) select_list ::= select_sublist */ - -1, /* (356) select_sublist ::= select_item */ - -3, /* (357) select_sublist ::= select_sublist NK_COMMA select_item */ - -1, /* (358) select_item ::= common_expression */ - -2, /* (359) select_item ::= common_expression column_alias */ - -3, /* (360) select_item ::= common_expression AS column_alias */ - -3, /* (361) select_item ::= table_name NK_DOT NK_STAR */ - 0, /* (362) where_clause_opt ::= */ - -2, /* (363) where_clause_opt ::= WHERE search_condition */ - 0, /* (364) partition_by_clause_opt ::= */ - -3, /* (365) partition_by_clause_opt ::= PARTITION BY expression_list */ - 0, /* (366) twindow_clause_opt ::= */ - -6, /* (367) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - -4, /* (368) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - -6, /* (369) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - -8, /* (370) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - 0, /* (371) sliding_opt ::= */ - -4, /* (372) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - 0, /* (373) fill_opt ::= */ - -4, /* (374) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - -6, /* (375) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - -1, /* (376) fill_mode ::= NONE */ - -1, /* (377) fill_mode ::= PREV */ - -1, /* (378) fill_mode ::= NULL */ - -1, /* (379) fill_mode ::= LINEAR */ - -1, /* (380) fill_mode ::= NEXT */ - 0, /* (381) group_by_clause_opt ::= */ - -3, /* (382) group_by_clause_opt ::= GROUP BY group_by_list */ - -1, /* (383) group_by_list ::= expression */ - -3, /* (384) group_by_list ::= group_by_list NK_COMMA expression */ - 0, /* (385) having_clause_opt ::= */ - -2, /* (386) having_clause_opt ::= HAVING search_condition */ - -4, /* (387) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - -1, /* (388) query_expression_body ::= query_primary */ - -4, /* (389) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - -1, /* (390) query_primary ::= query_specification */ - 0, /* (391) order_by_clause_opt ::= */ - -3, /* (392) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 0, /* (393) slimit_clause_opt ::= */ - -2, /* (394) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - -4, /* (395) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - -4, /* (396) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 0, /* (397) limit_clause_opt ::= */ - -2, /* (398) limit_clause_opt ::= LIMIT NK_INTEGER */ - -4, /* (399) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - -4, /* (400) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - -3, /* (401) subquery ::= NK_LP query_expression NK_RP */ - -1, /* (402) search_condition ::= common_expression */ - -1, /* (403) sort_specification_list ::= sort_specification */ - -3, /* (404) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - -3, /* (405) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - 0, /* (406) ordering_specification_opt ::= */ - -1, /* (407) ordering_specification_opt ::= ASC */ - -1, /* (408) ordering_specification_opt ::= DESC */ - 0, /* (409) null_ordering_opt ::= */ - -2, /* (410) null_ordering_opt ::= NULLS FIRST */ - -2, /* (411) null_ordering_opt ::= NULLS LAST */ + -1, /* (273) function_name ::= TIMEZONE */ + -1, /* (274) table_alias ::= NK_ID */ + -1, /* (275) column_alias ::= NK_ID */ + -1, /* (276) user_name ::= NK_ID */ + -1, /* (277) index_name ::= NK_ID */ + -1, /* (278) topic_name ::= NK_ID */ + -1, /* (279) stream_name ::= NK_ID */ + -1, /* (280) expression ::= literal */ + -1, /* (281) expression ::= pseudo_column */ + -1, /* (282) expression ::= column_reference */ + -4, /* (283) expression ::= function_name NK_LP expression_list NK_RP */ + -4, /* (284) expression ::= function_name NK_LP NK_STAR NK_RP */ + -3, /* (285) expression ::= function_name NK_LP NK_RP */ + -6, /* (286) expression ::= CAST NK_LP expression AS type_name NK_RP */ + -1, /* (287) expression ::= subquery */ + -3, /* (288) expression ::= NK_LP expression NK_RP */ + -2, /* (289) expression ::= NK_PLUS expression */ + -2, /* (290) expression ::= NK_MINUS expression */ + -3, /* (291) expression ::= expression NK_PLUS expression */ + -3, /* (292) expression ::= expression NK_MINUS expression */ + -3, /* (293) expression ::= expression NK_STAR expression */ + -3, /* (294) expression ::= expression NK_SLASH expression */ + -3, /* (295) expression ::= expression NK_REM expression */ + -1, /* (296) expression_list ::= expression */ + -3, /* (297) expression_list ::= expression_list NK_COMMA expression */ + -1, /* (298) column_reference ::= column_name */ + -3, /* (299) column_reference ::= table_name NK_DOT column_name */ + -1, /* (300) pseudo_column ::= ROWTS */ + -1, /* (301) pseudo_column ::= TBNAME */ + -1, /* (302) pseudo_column ::= QSTARTTS */ + -1, /* (303) pseudo_column ::= QENDTS */ + -1, /* (304) pseudo_column ::= WSTARTTS */ + -1, /* (305) pseudo_column ::= WENDTS */ + -1, /* (306) pseudo_column ::= WDURATION */ + -3, /* (307) predicate ::= expression compare_op expression */ + -5, /* (308) predicate ::= expression BETWEEN expression AND expression */ + -6, /* (309) predicate ::= expression NOT BETWEEN expression AND expression */ + -3, /* (310) predicate ::= expression IS NULL */ + -4, /* (311) predicate ::= expression IS NOT NULL */ + -3, /* (312) predicate ::= expression in_op in_predicate_value */ + -1, /* (313) compare_op ::= NK_LT */ + -1, /* (314) compare_op ::= NK_GT */ + -1, /* (315) compare_op ::= NK_LE */ + -1, /* (316) compare_op ::= NK_GE */ + -1, /* (317) compare_op ::= NK_NE */ + -1, /* (318) compare_op ::= NK_EQ */ + -1, /* (319) compare_op ::= LIKE */ + -2, /* (320) compare_op ::= NOT LIKE */ + -1, /* (321) compare_op ::= MATCH */ + -1, /* (322) compare_op ::= NMATCH */ + -1, /* (323) in_op ::= IN */ + -2, /* (324) in_op ::= NOT IN */ + -3, /* (325) in_predicate_value ::= NK_LP expression_list NK_RP */ + -1, /* (326) boolean_value_expression ::= boolean_primary */ + -2, /* (327) boolean_value_expression ::= NOT boolean_primary */ + -3, /* (328) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + -3, /* (329) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + -1, /* (330) boolean_primary ::= predicate */ + -3, /* (331) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + -1, /* (332) common_expression ::= expression */ + -1, /* (333) common_expression ::= boolean_value_expression */ + -2, /* (334) from_clause ::= FROM table_reference_list */ + -1, /* (335) table_reference_list ::= table_reference */ + -3, /* (336) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + -1, /* (337) table_reference ::= table_primary */ + -1, /* (338) table_reference ::= joined_table */ + -2, /* (339) table_primary ::= table_name alias_opt */ + -4, /* (340) table_primary ::= db_name NK_DOT table_name alias_opt */ + -2, /* (341) table_primary ::= subquery alias_opt */ + -1, /* (342) table_primary ::= parenthesized_joined_table */ + 0, /* (343) alias_opt ::= */ + -1, /* (344) alias_opt ::= table_alias */ + -2, /* (345) alias_opt ::= AS table_alias */ + -3, /* (346) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + -3, /* (347) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + -6, /* (348) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + 0, /* (349) join_type ::= */ + -1, /* (350) join_type ::= INNER */ + -9, /* (351) 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 */ + 0, /* (352) set_quantifier_opt ::= */ + -1, /* (353) set_quantifier_opt ::= DISTINCT */ + -1, /* (354) set_quantifier_opt ::= ALL */ + -1, /* (355) select_list ::= NK_STAR */ + -1, /* (356) select_list ::= select_sublist */ + -1, /* (357) select_sublist ::= select_item */ + -3, /* (358) select_sublist ::= select_sublist NK_COMMA select_item */ + -1, /* (359) select_item ::= common_expression */ + -2, /* (360) select_item ::= common_expression column_alias */ + -3, /* (361) select_item ::= common_expression AS column_alias */ + -3, /* (362) select_item ::= table_name NK_DOT NK_STAR */ + 0, /* (363) where_clause_opt ::= */ + -2, /* (364) where_clause_opt ::= WHERE search_condition */ + 0, /* (365) partition_by_clause_opt ::= */ + -3, /* (366) partition_by_clause_opt ::= PARTITION BY expression_list */ + 0, /* (367) twindow_clause_opt ::= */ + -6, /* (368) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + -4, /* (369) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + -6, /* (370) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + -8, /* (371) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + 0, /* (372) sliding_opt ::= */ + -4, /* (373) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + 0, /* (374) fill_opt ::= */ + -4, /* (375) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + -6, /* (376) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + -1, /* (377) fill_mode ::= NONE */ + -1, /* (378) fill_mode ::= PREV */ + -1, /* (379) fill_mode ::= NULL */ + -1, /* (380) fill_mode ::= LINEAR */ + -1, /* (381) fill_mode ::= NEXT */ + 0, /* (382) group_by_clause_opt ::= */ + -3, /* (383) group_by_clause_opt ::= GROUP BY group_by_list */ + -1, /* (384) group_by_list ::= expression */ + -3, /* (385) group_by_list ::= group_by_list NK_COMMA expression */ + 0, /* (386) having_clause_opt ::= */ + -2, /* (387) having_clause_opt ::= HAVING search_condition */ + -4, /* (388) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + -1, /* (389) query_expression_body ::= query_primary */ + -4, /* (390) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + -1, /* (391) query_primary ::= query_specification */ + 0, /* (392) order_by_clause_opt ::= */ + -3, /* (393) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 0, /* (394) slimit_clause_opt ::= */ + -2, /* (395) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + -4, /* (396) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + -4, /* (397) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 0, /* (398) limit_clause_opt ::= */ + -2, /* (399) limit_clause_opt ::= LIMIT NK_INTEGER */ + -4, /* (400) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + -4, /* (401) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + -3, /* (402) subquery ::= NK_LP query_expression NK_RP */ + -1, /* (403) search_condition ::= common_expression */ + -1, /* (404) sort_specification_list ::= sort_specification */ + -3, /* (405) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + -3, /* (406) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + 0, /* (407) ordering_specification_opt ::= */ + -1, /* (408) ordering_specification_opt ::= ASC */ + -1, /* (409) ordering_specification_opt ::= DESC */ + 0, /* (410) null_ordering_opt ::= */ + -2, /* (411) null_ordering_opt ::= NULLS FIRST */ + -2, /* (412) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3018,11 +3024,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,211,&yymsp[0].minor); + yy_destructor(yypParser,212,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,212,&yymsp[0].minor); + yy_destructor(yypParser,213,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3036,20 +3042,20 @@ static YYACTIONTYPE yy_reduce( case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); -{ yy_destructor(yypParser,211,&yymsp[-2].minor); +{ yy_destructor(yypParser,212,&yymsp[-2].minor); { } - yy_destructor(yypParser,213,&yymsp[0].minor); + yy_destructor(yypParser,214,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,214,&yymsp[0].minor); +{ yy_destructor(yypParser,215,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,212,&yymsp[-1].minor); +{ yy_destructor(yypParser,213,&yymsp[-1].minor); { } - yy_destructor(yypParser,214,&yymsp[0].minor); + yy_destructor(yypParser,215,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3063,31 +3069,31 @@ static YYACTIONTYPE yy_reduce( case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } - yy_destructor(yypParser,213,&yymsp[0].minor); + yy_destructor(yypParser,214,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy409, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy567, &yymsp[0].minor.yy0); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy409, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy567, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 26: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy409, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy567, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy409); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy567); } break; case 28: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy409, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy567, NULL); } break; case 29: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy409, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy567, &yymsp[0].minor.yy0); } break; case 30: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 31: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy409); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy567); } break; case 32: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -3112,14 +3118,15 @@ static YYACTIONTYPE yy_reduce( case 270: /* function_name ::= LAST */ yytestcase(yyruleno==270); case 271: /* function_name ::= NOW */ yytestcase(yyruleno==271); case 272: /* function_name ::= TODAY */ yytestcase(yyruleno==272); - case 273: /* table_alias ::= NK_ID */ yytestcase(yyruleno==273); - case 274: /* column_alias ::= NK_ID */ yytestcase(yyruleno==274); - case 275: /* user_name ::= NK_ID */ yytestcase(yyruleno==275); - case 276: /* index_name ::= NK_ID */ yytestcase(yyruleno==276); - case 277: /* topic_name ::= NK_ID */ yytestcase(yyruleno==277); - case 278: /* stream_name ::= NK_ID */ yytestcase(yyruleno==278); -{ yylhsminor.yy409 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy409 = yylhsminor.yy409; + case 273: /* function_name ::= TIMEZONE */ yytestcase(yyruleno==273); + case 274: /* table_alias ::= NK_ID */ yytestcase(yyruleno==274); + case 275: /* column_alias ::= NK_ID */ yytestcase(yyruleno==275); + case 276: /* user_name ::= NK_ID */ yytestcase(yyruleno==276); + case 277: /* index_name ::= NK_ID */ yytestcase(yyruleno==277); + case 278: /* topic_name ::= NK_ID */ yytestcase(yyruleno==278); + case 279: /* stream_name ::= NK_ID */ yytestcase(yyruleno==279); +{ yylhsminor.yy567 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy567 = yylhsminor.yy567; break; case 39: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -3152,156 +3159,156 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 49: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy121, &yymsp[-1].minor.yy409, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy495, &yymsp[-1].minor.yy567, yymsp[0].minor.yy286); } break; case 50: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy121, &yymsp[0].minor.yy409); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy495, &yymsp[0].minor.yy567); } break; case 51: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy409); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy567); } break; case 52: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy409, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy567, yymsp[0].minor.yy286); } break; case 53: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy121 = true; } +{ yymsp[-2].minor.yy495 = true; } break; case 54: /* not_exists_opt ::= */ case 56: /* exists_opt ::= */ yytestcase(yyruleno==56); case 220: /* analyze_opt ::= */ yytestcase(yyruleno==220); case 228: /* agg_func_opt ::= */ yytestcase(yyruleno==228); - case 351: /* set_quantifier_opt ::= */ yytestcase(yyruleno==351); -{ yymsp[1].minor.yy121 = false; } + case 352: /* set_quantifier_opt ::= */ yytestcase(yyruleno==352); +{ yymsp[1].minor.yy495 = false; } break; case 55: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy121 = true; } +{ yymsp[-1].minor.yy495 = true; } break; case 57: /* db_options ::= */ -{ yymsp[1].minor.yy504 = createDatabaseOptions(pCxt); } +{ yymsp[1].minor.yy286 = createDatabaseOptions(pCxt); } break; case 58: /* db_options ::= db_options BLOCKS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pNumOfBlocks = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pNumOfBlocks = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 59: /* db_options ::= db_options CACHE NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pCacheBlockSize = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pCacheBlockSize = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 60: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pCachelast = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pCachelast = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 61: /* db_options ::= db_options COMP NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pCompressionLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pCompressionLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 62: /* db_options ::= db_options DAYS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pDaysPerFile = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pDaysPerFile = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 63: /* db_options ::= db_options DAYS NK_VARIABLE */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pDaysPerFile = (SValueNode*)createDurationValueNode(pCxt, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pDaysPerFile = (SValueNode*)createDurationValueNode(pCxt, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 64: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pFsyncPeriod = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pFsyncPeriod = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 65: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pMaxRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pMaxRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 66: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pMinRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pMinRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 67: /* db_options ::= db_options KEEP integer_list */ case 68: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==68); -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pKeep = yymsp[0].minor.yy488; yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pKeep = yymsp[0].minor.yy352; yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 69: /* db_options ::= db_options PRECISION NK_STRING */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pPrecision = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pPrecision = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 70: /* db_options ::= db_options QUORUM NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pQuorum = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pQuorum = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 71: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pReplica = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pReplica = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 72: /* db_options ::= db_options TTL NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 73: /* db_options ::= db_options WAL NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pWalLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pWalLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 74: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pNumOfVgroups = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pNumOfVgroups = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 75: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pSingleStable = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pSingleStable = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 76: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pStreamMode = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pStreamMode = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 77: /* db_options ::= db_options RETENTIONS retention_list */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy504)->pRetentions = yymsp[0].minor.yy488; yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy286)->pRetentions = yymsp[0].minor.yy352; yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 78: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy504 = createDatabaseOptions(pCxt); yylhsminor.yy504 = setDatabaseAlterOption(pCxt, yylhsminor.yy504, &yymsp[0].minor.yy21); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createDatabaseOptions(pCxt); yylhsminor.yy286 = setDatabaseAlterOption(pCxt, yylhsminor.yy286, &yymsp[0].minor.yy583); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 79: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy504 = setDatabaseAlterOption(pCxt, yymsp[-1].minor.yy504, &yymsp[0].minor.yy21); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = setDatabaseAlterOption(pCxt, yymsp[-1].minor.yy286, &yymsp[0].minor.yy583); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; case 80: /* alter_db_option ::= BLOCKS NK_INTEGER */ -{ yymsp[-1].minor.yy21.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy21.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy583.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy583.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 81: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy21.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy21.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy583.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy583.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 82: /* alter_db_option ::= KEEP integer_list */ case 83: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==83); -{ yymsp[-1].minor.yy21.type = DB_OPTION_KEEP; yymsp[-1].minor.yy21.pList = yymsp[0].minor.yy488; } +{ yymsp[-1].minor.yy583.type = DB_OPTION_KEEP; yymsp[-1].minor.yy583.pList = yymsp[0].minor.yy352; } break; case 84: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy21.type = DB_OPTION_WAL; yymsp[-1].minor.yy21.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy583.type = DB_OPTION_WAL; yymsp[-1].minor.yy583.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 85: /* alter_db_option ::= QUORUM NK_INTEGER */ -{ yymsp[-1].minor.yy21.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy21.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy583.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy583.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 86: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy21.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy21.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy583.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy583.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 87: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy21.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy21.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy583.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy583.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 88: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy488 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy488 = yylhsminor.yy488; +{ yylhsminor.yy352 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy352 = yylhsminor.yy352; break; case 89: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 240: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==240); -{ yylhsminor.yy488 = addNodeToList(pCxt, yymsp[-2].minor.yy488, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy488 = yylhsminor.yy488; +{ yylhsminor.yy352 = addNodeToList(pCxt, yymsp[-2].minor.yy352, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy352 = yylhsminor.yy352; break; case 90: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy488 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy488 = yylhsminor.yy488; +{ yylhsminor.yy352 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy352 = yylhsminor.yy352; break; case 91: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy488 = addNodeToList(pCxt, yymsp[-2].minor.yy488, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy488 = yylhsminor.yy488; +{ yylhsminor.yy352 = addNodeToList(pCxt, yymsp[-2].minor.yy352, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy352 = yylhsminor.yy352; break; case 92: /* retention_list ::= retention */ case 112: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==112); @@ -3311,10 +3318,10 @@ static YYACTIONTYPE yy_reduce( case 201: /* func_name_list ::= func_name */ yytestcase(yyruleno==201); case 210: /* func_list ::= func */ yytestcase(yyruleno==210); case 263: /* literal_list ::= signed_literal */ yytestcase(yyruleno==263); - case 356: /* select_sublist ::= select_item */ yytestcase(yyruleno==356); - case 403: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==403); -{ yylhsminor.yy488 = createNodeList(pCxt, yymsp[0].minor.yy504); } - yymsp[0].minor.yy488 = yylhsminor.yy488; + case 357: /* select_sublist ::= select_item */ yytestcase(yyruleno==357); + case 404: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==404); +{ yylhsminor.yy352 = createNodeList(pCxt, yymsp[0].minor.yy286); } + yymsp[0].minor.yy352 = yylhsminor.yy352; break; case 93: /* retention_list ::= retention_list NK_COMMA retention */ case 123: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==123); @@ -3322,238 +3329,238 @@ static YYACTIONTYPE yy_reduce( case 202: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==202); case 211: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==211); case 264: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==264); - case 357: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==357); - case 404: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==404); -{ yylhsminor.yy488 = addNodeToList(pCxt, yymsp[-2].minor.yy488, yymsp[0].minor.yy504); } - yymsp[-2].minor.yy488 = yylhsminor.yy488; + case 358: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==358); + case 405: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==405); +{ yylhsminor.yy352 = addNodeToList(pCxt, yymsp[-2].minor.yy352, yymsp[0].minor.yy286); } + yymsp[-2].minor.yy352 = yylhsminor.yy352; break; case 94: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy504 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 95: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 97: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==97); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy121, yymsp[-5].minor.yy504, yymsp[-3].minor.yy488, yymsp[-1].minor.yy488, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy495, yymsp[-5].minor.yy286, yymsp[-3].minor.yy352, yymsp[-1].minor.yy352, yymsp[0].minor.yy286); } break; case 96: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy488); } +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy352); } break; case 98: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy488); } +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy352); } break; case 99: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy121, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy495, yymsp[0].minor.yy286); } break; case 100: /* cmd ::= ALTER TABLE alter_table_clause */ case 101: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==101); case 242: /* cmd ::= query_expression */ yytestcase(yyruleno==242); -{ pCxt->pRootNode = yymsp[0].minor.yy504; } +{ pCxt->pRootNode = yymsp[0].minor.yy286; } break; case 102: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy504 = createAlterTableOption(pCxt, yymsp[-1].minor.yy504, yymsp[0].minor.yy504); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableOption(pCxt, yymsp[-1].minor.yy286, yymsp[0].minor.yy286); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; case 103: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy504 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy504, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy409, yymsp[0].minor.yy160); } - yymsp[-4].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy286, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy567, yymsp[0].minor.yy274); } + yymsp[-4].minor.yy286 = yylhsminor.yy286; break; case 104: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy504 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy504, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy409); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy286, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy567); } + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; case 105: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy504 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy504, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy409, yymsp[0].minor.yy160); } - yymsp[-4].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy286, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy567, yymsp[0].minor.yy274); } + yymsp[-4].minor.yy286 = yylhsminor.yy286; break; case 106: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy504 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy504, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy409, &yymsp[0].minor.yy409); } - yymsp[-4].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy286, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy567, &yymsp[0].minor.yy567); } + yymsp[-4].minor.yy286 = yylhsminor.yy286; break; case 107: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy504 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy504, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy409, yymsp[0].minor.yy160); } - yymsp[-4].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy286, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy567, yymsp[0].minor.yy274); } + yymsp[-4].minor.yy286 = yylhsminor.yy286; break; case 108: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy504 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy504, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy409); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy286, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy567); } + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; case 109: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy504 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy504, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy409, yymsp[0].minor.yy160); } - yymsp[-4].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy286, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy567, yymsp[0].minor.yy274); } + yymsp[-4].minor.yy286 = yylhsminor.yy286; break; case 110: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy504 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy504, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy409, &yymsp[0].minor.yy409); } - yymsp[-4].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy286, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy567, &yymsp[0].minor.yy567); } + yymsp[-4].minor.yy286 = yylhsminor.yy286; break; case 111: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ -{ yylhsminor.yy504 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy504, &yymsp[-2].minor.yy409, yymsp[0].minor.yy504); } - yymsp[-5].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy286, &yymsp[-2].minor.yy567, yymsp[0].minor.yy286); } + yymsp[-5].minor.yy286 = yylhsminor.yy286; break; case 113: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 116: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==116); -{ yylhsminor.yy488 = addNodeToList(pCxt, yymsp[-1].minor.yy488, yymsp[0].minor.yy504); } - yymsp[-1].minor.yy488 = yylhsminor.yy488; +{ yylhsminor.yy352 = addNodeToList(pCxt, yymsp[-1].minor.yy352, yymsp[0].minor.yy286); } + yymsp[-1].minor.yy352 = yylhsminor.yy352; break; case 114: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ -{ yylhsminor.yy504 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy121, yymsp[-7].minor.yy504, yymsp[-5].minor.yy504, yymsp[-4].minor.yy488, yymsp[-1].minor.yy488); } - yymsp[-8].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy495, yymsp[-7].minor.yy286, yymsp[-5].minor.yy286, yymsp[-4].minor.yy352, yymsp[-1].minor.yy352); } + yymsp[-8].minor.yy286 = yylhsminor.yy286; break; case 117: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy504 = createDropTableClause(pCxt, yymsp[-1].minor.yy121, yymsp[0].minor.yy504); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createDropTableClause(pCxt, yymsp[-1].minor.yy495, yymsp[0].minor.yy286); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; case 118: /* specific_tags_opt ::= */ case 149: /* tags_def_opt ::= */ yytestcase(yyruleno==149); - case 364: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==364); - case 381: /* group_by_clause_opt ::= */ yytestcase(yyruleno==381); - case 391: /* order_by_clause_opt ::= */ yytestcase(yyruleno==391); -{ yymsp[1].minor.yy488 = NULL; } + case 365: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==365); + case 382: /* group_by_clause_opt ::= */ yytestcase(yyruleno==382); + case 392: /* order_by_clause_opt ::= */ yytestcase(yyruleno==392); +{ yymsp[1].minor.yy352 = NULL; } break; case 119: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy488 = yymsp[-1].minor.yy488; } +{ yymsp[-2].minor.yy352 = yymsp[-1].minor.yy352; } break; case 120: /* full_table_name ::= table_name */ -{ yylhsminor.yy504 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy409, NULL); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy567, NULL); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 121: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy504 = createRealTableNode(pCxt, &yymsp[-2].minor.yy409, &yymsp[0].minor.yy409, NULL); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createRealTableNode(pCxt, &yymsp[-2].minor.yy567, &yymsp[0].minor.yy567, NULL); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 124: /* column_def ::= column_name type_name */ -{ yylhsminor.yy504 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy409, yymsp[0].minor.yy160, NULL); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy567, yymsp[0].minor.yy274, NULL); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; case 125: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy504 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy409, yymsp[-2].minor.yy160, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy567, yymsp[-2].minor.yy274, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; case 126: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_BOOL); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 127: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_TINYINT); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 128: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 129: /* type_name ::= INT */ case 130: /* type_name ::= INTEGER */ yytestcase(yyruleno==130); -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_INT); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_INT); } break; case 131: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_BIGINT); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 132: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_FLOAT); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 133: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 134: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy160 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy274 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 135: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 136: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy160 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy274 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 137: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy160 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +{ yymsp[-1].minor.yy274 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 138: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy160 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +{ yymsp[-1].minor.yy274 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 139: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy160 = createDataType(TSDB_DATA_TYPE_UINT); } +{ yymsp[-1].minor.yy274 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 140: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy160 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +{ yymsp[-1].minor.yy274 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 141: /* type_name ::= JSON */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_JSON); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 142: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy160 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy274 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 143: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 144: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_BLOB); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 145: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy160 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy274 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 146: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy160 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[0].minor.yy274 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 147: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy160 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-3].minor.yy274 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 148: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy160 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-5].minor.yy274 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 150: /* tags_def_opt ::= tags_def */ - case 355: /* select_list ::= select_sublist */ yytestcase(yyruleno==355); -{ yylhsminor.yy488 = yymsp[0].minor.yy488; } - yymsp[0].minor.yy488 = yylhsminor.yy488; + case 356: /* select_list ::= select_sublist */ yytestcase(yyruleno==356); +{ yylhsminor.yy352 = yymsp[0].minor.yy352; } + yymsp[0].minor.yy352 = yylhsminor.yy352; break; case 151: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy488 = yymsp[-1].minor.yy488; } +{ yymsp[-3].minor.yy352 = yymsp[-1].minor.yy352; } break; case 152: /* table_options ::= */ -{ yymsp[1].minor.yy504 = createTableOptions(pCxt); } +{ yymsp[1].minor.yy286 = createTableOptions(pCxt); } break; case 153: /* table_options ::= table_options COMMENT NK_STRING */ -{ ((STableOptions*)yymsp[-2].minor.yy504)->pComments = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((STableOptions*)yymsp[-2].minor.yy286)->pComments = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 154: /* table_options ::= table_options KEEP integer_list */ -{ ((STableOptions*)yymsp[-2].minor.yy504)->pKeep = yymsp[0].minor.yy488; yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((STableOptions*)yymsp[-2].minor.yy286)->pKeep = yymsp[0].minor.yy352; yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 155: /* table_options ::= table_options TTL NK_INTEGER */ -{ ((STableOptions*)yymsp[-2].minor.yy504)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((STableOptions*)yymsp[-2].minor.yy286)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 156: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ ((STableOptions*)yymsp[-4].minor.yy504)->pSma = yymsp[-1].minor.yy488; yylhsminor.yy504 = yymsp[-4].minor.yy504; } - yymsp[-4].minor.yy504 = yylhsminor.yy504; +{ ((STableOptions*)yymsp[-4].minor.yy286)->pSma = yymsp[-1].minor.yy352; yylhsminor.yy286 = yymsp[-4].minor.yy286; } + yymsp[-4].minor.yy286 = yylhsminor.yy286; break; case 157: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ -{ ((STableOptions*)yymsp[-4].minor.yy504)->pFuncs = yymsp[-1].minor.yy488; yylhsminor.yy504 = yymsp[-4].minor.yy504; } - yymsp[-4].minor.yy504 = yylhsminor.yy504; +{ ((STableOptions*)yymsp[-4].minor.yy286)->pFuncs = yymsp[-1].minor.yy352; yylhsminor.yy286 = yymsp[-4].minor.yy286; } + yymsp[-4].minor.yy286 = yylhsminor.yy286; break; case 158: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ -{ ((STableOptions*)yymsp[-2].minor.yy504)->pFilesFactor = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((STableOptions*)yymsp[-2].minor.yy286)->pFilesFactor = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 159: /* table_options ::= table_options DELAY NK_INTEGER */ -{ ((STableOptions*)yymsp[-2].minor.yy504)->pDelay = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy504 = yymsp[-2].minor.yy504; } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ ((STableOptions*)yymsp[-2].minor.yy286)->pDelay = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy286 = yymsp[-2].minor.yy286; } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 160: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy504 = createTableOptions(pCxt); yylhsminor.yy504 = setTableAlterOption(pCxt, yylhsminor.yy504, &yymsp[0].minor.yy21); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createTableOptions(pCxt); yylhsminor.yy286 = setTableAlterOption(pCxt, yylhsminor.yy286, &yymsp[0].minor.yy583); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 161: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy504 = setTableAlterOption(pCxt, yymsp[-1].minor.yy504, &yymsp[0].minor.yy21); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = setTableAlterOption(pCxt, yymsp[-1].minor.yy286, &yymsp[0].minor.yy583); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; case 162: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy21.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy21.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy583.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy583.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 163: /* alter_table_option ::= KEEP integer_list */ -{ yymsp[-1].minor.yy21.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy21.pList = yymsp[0].minor.yy488; } +{ yymsp[-1].minor.yy583.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy583.pList = yymsp[0].minor.yy352; } break; case 164: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy21.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy21.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy583.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy583.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 167: /* col_name ::= column_name */ -{ yylhsminor.yy504 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy409); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy567); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 168: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } @@ -3565,13 +3572,13 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } break; case 171: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy504, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy286, yymsp[0].minor.yy286); } break; case 172: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy504, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy286, yymsp[0].minor.yy286); } break; case 173: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy504, NULL); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy286, NULL); } break; case 174: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } @@ -3586,7 +3593,7 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } break; case 178: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy504, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy286, yymsp[0].minor.yy286); } break; case 179: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } @@ -3605,13 +3612,13 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT, NULL, NULL); } break; case 185: /* cmd ::= SHOW CREATE DATABASE db_name */ -//{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy409); } +//{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy567); } break; case 186: /* cmd ::= SHOW CREATE TABLE full_table_name */ -//{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy504); } +//{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy286); } break; case 187: /* cmd ::= SHOW CREATE STABLE full_table_name */ -//{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy504); } +//{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy286); } break; case 188: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); } @@ -3633,111 +3640,111 @@ static YYACTIONTYPE yy_reduce( break; case 194: /* db_name_cond_opt ::= */ case 199: /* from_db_opt ::= */ yytestcase(yyruleno==199); -{ yymsp[1].minor.yy504 = createDefaultDatabaseCondValue(pCxt); } +{ yymsp[1].minor.yy286 = createDefaultDatabaseCondValue(pCxt); } break; case 195: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy409); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy567); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; case 196: /* like_pattern_opt ::= */ case 207: /* index_options ::= */ yytestcase(yyruleno==207); - case 362: /* where_clause_opt ::= */ yytestcase(yyruleno==362); - case 366: /* twindow_clause_opt ::= */ yytestcase(yyruleno==366); - case 371: /* sliding_opt ::= */ yytestcase(yyruleno==371); - case 373: /* fill_opt ::= */ yytestcase(yyruleno==373); - case 385: /* having_clause_opt ::= */ yytestcase(yyruleno==385); - case 393: /* slimit_clause_opt ::= */ yytestcase(yyruleno==393); - case 397: /* limit_clause_opt ::= */ yytestcase(yyruleno==397); -{ yymsp[1].minor.yy504 = NULL; } + case 363: /* where_clause_opt ::= */ yytestcase(yyruleno==363); + case 367: /* twindow_clause_opt ::= */ yytestcase(yyruleno==367); + case 372: /* sliding_opt ::= */ yytestcase(yyruleno==372); + case 374: /* fill_opt ::= */ yytestcase(yyruleno==374); + case 386: /* having_clause_opt ::= */ yytestcase(yyruleno==386); + case 394: /* slimit_clause_opt ::= */ yytestcase(yyruleno==394); + case 398: /* limit_clause_opt ::= */ yytestcase(yyruleno==398); +{ yymsp[1].minor.yy286 = NULL; } break; case 197: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 198: /* table_name_cond ::= table_name */ -{ yylhsminor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy409); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy567); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 200: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy409); } +{ yymsp[-1].minor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy567); } break; case 203: /* func_name ::= function_name */ -{ yylhsminor.yy504 = createFunctionNode(pCxt, &yymsp[0].minor.yy409, NULL); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createFunctionNode(pCxt, &yymsp[0].minor.yy567, NULL); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 204: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy121, &yymsp[-3].minor.yy409, &yymsp[-1].minor.yy409, NULL, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy495, &yymsp[-3].minor.yy567, &yymsp[-1].minor.yy567, NULL, yymsp[0].minor.yy286); } break; case 205: /* 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.yy121, &yymsp[-5].minor.yy409, &yymsp[-3].minor.yy409, yymsp[-1].minor.yy488, NULL); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy495, &yymsp[-5].minor.yy567, &yymsp[-3].minor.yy567, yymsp[-1].minor.yy352, NULL); } break; case 206: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy121, &yymsp[-2].minor.yy409, &yymsp[0].minor.yy409); } +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy495, &yymsp[-2].minor.yy567, &yymsp[0].minor.yy567); } break; case 208: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy504 = createIndexOption(pCxt, yymsp[-6].minor.yy488, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), NULL, yymsp[0].minor.yy504); } +{ yymsp[-8].minor.yy286 = createIndexOption(pCxt, yymsp[-6].minor.yy352, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), NULL, yymsp[0].minor.yy286); } break; case 209: /* 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.yy504 = createIndexOption(pCxt, yymsp[-8].minor.yy488, releaseRawExprNode(pCxt, yymsp[-4].minor.yy504), releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), yymsp[0].minor.yy504); } +{ yymsp[-10].minor.yy286 = createIndexOption(pCxt, yymsp[-8].minor.yy352, releaseRawExprNode(pCxt, yymsp[-4].minor.yy286), releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), yymsp[0].minor.yy286); } break; case 212: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy504 = createFunctionNode(pCxt, &yymsp[-3].minor.yy409, yymsp[-1].minor.yy488); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createFunctionNode(pCxt, &yymsp[-3].minor.yy567, yymsp[-1].minor.yy352); } + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; case 213: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy121, &yymsp[-2].minor.yy409, yymsp[0].minor.yy504, NULL); } +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy495, &yymsp[-2].minor.yy567, yymsp[0].minor.yy286, NULL); } break; case 214: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy121, &yymsp[-2].minor.yy409, NULL, &yymsp[0].minor.yy409); } +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy495, &yymsp[-2].minor.yy567, NULL, &yymsp[0].minor.yy567); } break; case 215: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy121, &yymsp[0].minor.yy409); } +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy495, &yymsp[0].minor.yy567); } break; case 216: /* cmd ::= DESC full_table_name */ case 217: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==217); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy286); } break; case 218: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 219: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy121, yymsp[-1].minor.yy504, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy495, yymsp[-1].minor.yy286, yymsp[0].minor.yy286); } break; case 221: /* analyze_opt ::= ANALYZE */ case 229: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==229); - case 352: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==352); -{ yymsp[0].minor.yy121 = true; } + case 353: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==353); +{ yymsp[0].minor.yy495 = true; } break; case 222: /* explain_options ::= */ -{ yymsp[1].minor.yy504 = createDefaultExplainOptions(pCxt); } +{ yymsp[1].minor.yy286 = createDefaultExplainOptions(pCxt); } break; case 223: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy504 = setExplainVerbose(pCxt, yymsp[-2].minor.yy504, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = setExplainVerbose(pCxt, yymsp[-2].minor.yy286, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 224: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy504 = setExplainRatio(pCxt, yymsp[-2].minor.yy504, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = setExplainRatio(pCxt, yymsp[-2].minor.yy286, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; case 225: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ -{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy488); } +{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy352); } break; case 226: /* cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy121, &yymsp[-5].minor.yy409, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy160, yymsp[0].minor.yy452); } +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy495, &yymsp[-5].minor.yy567, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy274, yymsp[0].minor.yy634); } break; case 227: /* cmd ::= DROP FUNCTION function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, &yymsp[0].minor.yy409); } +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, &yymsp[0].minor.yy567); } break; case 230: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy452 = 0; } +{ yymsp[1].minor.yy634 = 0; } break; case 231: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy452 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy634 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } break; case 232: /* cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, &yymsp[-4].minor.yy409, &yymsp[-2].minor.yy409, yymsp[0].minor.yy504); } +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, &yymsp[-4].minor.yy567, &yymsp[-2].minor.yy567, yymsp[0].minor.yy286); } break; case 233: /* cmd ::= DROP STREAM stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, &yymsp[0].minor.yy409); } +{ pCxt->pRootNode = createDropStreamStmt(pCxt, &yymsp[0].minor.yy567); } break; case 234: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } @@ -3749,488 +3756,488 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 237: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy488); } +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy352); } break; case 238: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 239: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy488 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +{ yymsp[-1].minor.yy352 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 241: /* cmd ::= SYNCDB db_name REPLICA */ -{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy409); } +{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy567); } break; case 243: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy504 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 244: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy504 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 245: /* literal ::= NK_STRING */ -{ yylhsminor.yy504 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 246: /* literal ::= NK_BOOL */ -{ yylhsminor.yy504 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 247: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; case 248: /* literal ::= duration_literal */ case 257: /* signed_literal ::= signed */ yytestcase(yyruleno==257); - case 279: /* expression ::= literal */ yytestcase(yyruleno==279); - case 280: /* expression ::= pseudo_column */ yytestcase(yyruleno==280); - case 281: /* expression ::= column_reference */ yytestcase(yyruleno==281); - case 286: /* expression ::= subquery */ yytestcase(yyruleno==286); - case 325: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==325); - case 329: /* boolean_primary ::= predicate */ yytestcase(yyruleno==329); - case 331: /* common_expression ::= expression */ yytestcase(yyruleno==331); - case 332: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==332); - case 334: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==334); - case 336: /* table_reference ::= table_primary */ yytestcase(yyruleno==336); - case 337: /* table_reference ::= joined_table */ yytestcase(yyruleno==337); - case 341: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==341); - case 388: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==388); - case 390: /* query_primary ::= query_specification */ yytestcase(yyruleno==390); -{ yylhsminor.yy504 = yymsp[0].minor.yy504; } - yymsp[0].minor.yy504 = yylhsminor.yy504; + case 280: /* expression ::= literal */ yytestcase(yyruleno==280); + case 281: /* expression ::= pseudo_column */ yytestcase(yyruleno==281); + case 282: /* expression ::= column_reference */ yytestcase(yyruleno==282); + case 287: /* expression ::= subquery */ yytestcase(yyruleno==287); + case 326: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==326); + case 330: /* boolean_primary ::= predicate */ yytestcase(yyruleno==330); + case 332: /* common_expression ::= expression */ yytestcase(yyruleno==332); + case 333: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==333); + case 335: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==335); + case 337: /* table_reference ::= table_primary */ yytestcase(yyruleno==337); + case 338: /* table_reference ::= joined_table */ yytestcase(yyruleno==338); + case 342: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==342); + case 389: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==389); + case 391: /* query_primary ::= query_specification */ yytestcase(yyruleno==391); +{ yylhsminor.yy286 = yymsp[0].minor.yy286; } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 249: /* literal ::= NULL */ -{ yylhsminor.yy504 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL)); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL)); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 250: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy504 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 251: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 252: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 253: /* signed ::= NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; case 254: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 255: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 256: /* signed ::= NK_MINUS NK_FLOAT */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; case 258: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 259: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy504 = yylhsminor.yy504; +{ yylhsminor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 260: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 261: /* signed_literal ::= duration_literal */ - case 358: /* select_item ::= common_expression */ yytestcase(yyruleno==358); - case 402: /* search_condition ::= common_expression */ yytestcase(yyruleno==402); -{ yylhsminor.yy504 = releaseRawExprNode(pCxt, yymsp[0].minor.yy504); } - yymsp[0].minor.yy504 = yylhsminor.yy504; + case 359: /* select_item ::= common_expression */ yytestcase(yyruleno==359); + case 403: /* search_condition ::= common_expression */ yytestcase(yyruleno==403); +{ yylhsminor.yy286 = releaseRawExprNode(pCxt, yymsp[0].minor.yy286); } + yymsp[0].minor.yy286 = yylhsminor.yy286; break; case 262: /* signed_literal ::= NULL */ -{ yymsp[0].minor.yy504 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } +{ yymsp[0].minor.yy286 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } break; - case 282: /* expression ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy409, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy409, yymsp[-1].minor.yy488)); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; + case 283: /* expression ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy567, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy567, yymsp[-1].minor.yy352)); } + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; - case 283: /* expression ::= function_name NK_LP NK_STAR NK_RP */ -{ yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy409, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy409, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; + case 284: /* expression ::= function_name NK_LP NK_STAR NK_RP */ +{ yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy567, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy567, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; - case 284: /* expression ::= function_name NK_LP NK_RP */ -{ yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy409, &yymsp[0].minor.yy0, createFunctionNodeNoParam(pCxt, &yymsp[-2].minor.yy409)); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + case 285: /* expression ::= function_name NK_LP NK_RP */ +{ yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy567, &yymsp[0].minor.yy0, createFunctionNodeNoParam(pCxt, &yymsp[-2].minor.yy567)); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 285: /* expression ::= CAST NK_LP expression AS type_name NK_RP */ -{ yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy504), yymsp[-1].minor.yy160)); } - yymsp[-5].minor.yy504 = yylhsminor.yy504; + case 286: /* expression ::= CAST NK_LP expression AS type_name NK_RP */ +{ yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy286), yymsp[-1].minor.yy274)); } + yymsp[-5].minor.yy286 = yylhsminor.yy286; break; - case 287: /* expression ::= NK_LP expression NK_RP */ - case 330: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==330); -{ yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy504)); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + case 288: /* expression ::= NK_LP expression NK_RP */ + case 331: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==331); +{ yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy286)); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 288: /* expression ::= NK_PLUS expression */ + case 289: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy504)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy286)); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; - case 289: /* expression ::= NK_MINUS expression */ + case 290: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy504), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy286), NULL)); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; - case 290: /* expression ::= expression NK_PLUS expression */ + case 291: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 291: /* expression ::= expression NK_MINUS expression */ + case 292: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 292: /* expression ::= expression NK_STAR expression */ + case 293: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 293: /* expression ::= expression NK_SLASH expression */ + case 294: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 294: /* expression ::= expression NK_REM expression */ + case 295: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; - break; - case 295: /* expression_list ::= expression */ -{ yylhsminor.yy488 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy504)); } - yymsp[0].minor.yy488 = yylhsminor.yy488; - break; - case 296: /* expression_list ::= expression_list NK_COMMA expression */ -{ yylhsminor.yy488 = addNodeToList(pCxt, yymsp[-2].minor.yy488, releaseRawExprNode(pCxt, yymsp[0].minor.yy504)); } - yymsp[-2].minor.yy488 = yylhsminor.yy488; - break; - case 297: /* column_reference ::= column_name */ -{ yylhsminor.yy504 = createRawExprNode(pCxt, &yymsp[0].minor.yy409, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy409)); } - yymsp[0].minor.yy504 = yylhsminor.yy504; - break; - case 298: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy409, &yymsp[0].minor.yy409, createColumnNode(pCxt, &yymsp[-2].minor.yy409, &yymsp[0].minor.yy409)); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; - break; - case 299: /* pseudo_column ::= ROWTS */ - case 300: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==300); - case 301: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==301); - case 302: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==302); - case 303: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==303); - case 304: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==304); - case 305: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==305); -{ yylhsminor.yy504 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy504 = yylhsminor.yy504; - break; - case 306: /* predicate ::= expression compare_op expression */ - case 311: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==311); + yymsp[-2].minor.yy286 = yylhsminor.yy286; + break; + case 296: /* expression_list ::= expression */ +{ yylhsminor.yy352 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy286)); } + yymsp[0].minor.yy352 = yylhsminor.yy352; + break; + case 297: /* expression_list ::= expression_list NK_COMMA expression */ +{ yylhsminor.yy352 = addNodeToList(pCxt, yymsp[-2].minor.yy352, releaseRawExprNode(pCxt, yymsp[0].minor.yy286)); } + yymsp[-2].minor.yy352 = yylhsminor.yy352; + break; + case 298: /* column_reference ::= column_name */ +{ yylhsminor.yy286 = createRawExprNode(pCxt, &yymsp[0].minor.yy567, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy567)); } + yymsp[0].minor.yy286 = yylhsminor.yy286; + break; + case 299: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy567, &yymsp[0].minor.yy567, createColumnNode(pCxt, &yymsp[-2].minor.yy567, &yymsp[0].minor.yy567)); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; + break; + case 300: /* pseudo_column ::= ROWTS */ + case 301: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==301); + case 302: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==302); + case 303: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==303); + case 304: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==304); + case 305: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==305); + case 306: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==306); +{ yylhsminor.yy286 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy286 = yylhsminor.yy286; + break; + case 307: /* predicate ::= expression compare_op expression */ + case 312: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==312); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy84, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy142, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 307: /* predicate ::= expression BETWEEN expression AND expression */ + case 308: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy504), releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy286), releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-4].minor.yy504 = yylhsminor.yy504; + yymsp[-4].minor.yy286 = yylhsminor.yy286; break; - case 308: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 309: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[-5].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[-5].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-5].minor.yy504 = yylhsminor.yy504; + yymsp[-5].minor.yy286 = yylhsminor.yy286; break; - case 309: /* predicate ::= expression IS NULL */ + case 310: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), NULL)); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 310: /* predicate ::= expression IS NOT NULL */ + case 311: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy504), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy286), NULL)); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; - case 312: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy84 = OP_TYPE_LOWER_THAN; } + case 313: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy142 = OP_TYPE_LOWER_THAN; } break; - case 313: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy84 = OP_TYPE_GREATER_THAN; } + case 314: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy142 = OP_TYPE_GREATER_THAN; } break; - case 314: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy84 = OP_TYPE_LOWER_EQUAL; } + case 315: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy142 = OP_TYPE_LOWER_EQUAL; } break; - case 315: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy84 = OP_TYPE_GREATER_EQUAL; } + case 316: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy142 = OP_TYPE_GREATER_EQUAL; } break; - case 316: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy84 = OP_TYPE_NOT_EQUAL; } + case 317: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy142 = OP_TYPE_NOT_EQUAL; } break; - case 317: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy84 = OP_TYPE_EQUAL; } + case 318: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy142 = OP_TYPE_EQUAL; } break; - case 318: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy84 = OP_TYPE_LIKE; } + case 319: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy142 = OP_TYPE_LIKE; } break; - case 319: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy84 = OP_TYPE_NOT_LIKE; } + case 320: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy142 = OP_TYPE_NOT_LIKE; } break; - case 320: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy84 = OP_TYPE_MATCH; } + case 321: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy142 = OP_TYPE_MATCH; } break; - case 321: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy84 = OP_TYPE_NMATCH; } + case 322: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy142 = OP_TYPE_NMATCH; } break; - case 322: /* in_op ::= IN */ -{ yymsp[0].minor.yy84 = OP_TYPE_IN; } + case 323: /* in_op ::= IN */ +{ yymsp[0].minor.yy142 = OP_TYPE_IN; } break; - case 323: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy84 = OP_TYPE_NOT_IN; } + case 324: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy142 = OP_TYPE_NOT_IN; } break; - case 324: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy488)); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + case 325: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy352)); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 326: /* boolean_value_expression ::= NOT boolean_primary */ + case 327: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy504), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy286), NULL)); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; - case 327: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 328: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 328: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 329: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy504); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy504); - yylhsminor.yy504 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy286); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy286); + yylhsminor.yy286 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 333: /* from_clause ::= FROM table_reference_list */ - case 363: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==363); - case 386: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==386); -{ yymsp[-1].minor.yy504 = yymsp[0].minor.yy504; } + case 334: /* from_clause ::= FROM table_reference_list */ + case 364: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==364); + case 387: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==387); +{ yymsp[-1].minor.yy286 = yymsp[0].minor.yy286; } break; - case 335: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy504 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy504, yymsp[0].minor.yy504, NULL); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + case 336: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy286 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy286, yymsp[0].minor.yy286, NULL); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 338: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy504 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy409, &yymsp[0].minor.yy409); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; + case 339: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy286 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy567, &yymsp[0].minor.yy567); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; - case 339: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy504 = createRealTableNode(pCxt, &yymsp[-3].minor.yy409, &yymsp[-1].minor.yy409, &yymsp[0].minor.yy409); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; + case 340: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy286 = createRealTableNode(pCxt, &yymsp[-3].minor.yy567, &yymsp[-1].minor.yy567, &yymsp[0].minor.yy567); } + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; - case 340: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy504 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy504), &yymsp[0].minor.yy409); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; + case 341: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy286 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy286), &yymsp[0].minor.yy567); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; - case 342: /* alias_opt ::= */ -{ yymsp[1].minor.yy409 = nil_token; } + case 343: /* alias_opt ::= */ +{ yymsp[1].minor.yy567 = nil_token; } break; - case 343: /* alias_opt ::= table_alias */ -{ yylhsminor.yy409 = yymsp[0].minor.yy409; } - yymsp[0].minor.yy409 = yylhsminor.yy409; + case 344: /* alias_opt ::= table_alias */ +{ yylhsminor.yy567 = yymsp[0].minor.yy567; } + yymsp[0].minor.yy567 = yylhsminor.yy567; break; - case 344: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy409 = yymsp[0].minor.yy409; } + case 345: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy567 = yymsp[0].minor.yy567; } break; - case 345: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 346: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==346); -{ yymsp[-2].minor.yy504 = yymsp[-1].minor.yy504; } + case 346: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 347: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==347); +{ yymsp[-2].minor.yy286 = yymsp[-1].minor.yy286; } break; - case 347: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy504 = createJoinTableNode(pCxt, yymsp[-4].minor.yy556, yymsp[-5].minor.yy504, yymsp[-2].minor.yy504, yymsp[0].minor.yy504); } - yymsp[-5].minor.yy504 = yylhsminor.yy504; + case 348: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy286 = createJoinTableNode(pCxt, yymsp[-4].minor.yy448, yymsp[-5].minor.yy286, yymsp[-2].minor.yy286, yymsp[0].minor.yy286); } + yymsp[-5].minor.yy286 = yylhsminor.yy286; break; - case 348: /* join_type ::= */ -{ yymsp[1].minor.yy556 = JOIN_TYPE_INNER; } + case 349: /* join_type ::= */ +{ yymsp[1].minor.yy448 = JOIN_TYPE_INNER; } break; - case 349: /* join_type ::= INNER */ -{ yymsp[0].minor.yy556 = JOIN_TYPE_INNER; } + case 350: /* join_type ::= INNER */ +{ yymsp[0].minor.yy448 = JOIN_TYPE_INNER; } break; - case 350: /* 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 351: /* 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.yy504 = createSelectStmt(pCxt, yymsp[-7].minor.yy121, yymsp[-6].minor.yy488, yymsp[-5].minor.yy504); - yymsp[-8].minor.yy504 = addWhereClause(pCxt, yymsp[-8].minor.yy504, yymsp[-4].minor.yy504); - yymsp[-8].minor.yy504 = addPartitionByClause(pCxt, yymsp[-8].minor.yy504, yymsp[-3].minor.yy488); - yymsp[-8].minor.yy504 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy504, yymsp[-2].minor.yy504); - yymsp[-8].minor.yy504 = addGroupByClause(pCxt, yymsp[-8].minor.yy504, yymsp[-1].minor.yy488); - yymsp[-8].minor.yy504 = addHavingClause(pCxt, yymsp[-8].minor.yy504, yymsp[0].minor.yy504); + yymsp[-8].minor.yy286 = createSelectStmt(pCxt, yymsp[-7].minor.yy495, yymsp[-6].minor.yy352, yymsp[-5].minor.yy286); + yymsp[-8].minor.yy286 = addWhereClause(pCxt, yymsp[-8].minor.yy286, yymsp[-4].minor.yy286); + yymsp[-8].minor.yy286 = addPartitionByClause(pCxt, yymsp[-8].minor.yy286, yymsp[-3].minor.yy352); + yymsp[-8].minor.yy286 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy286, yymsp[-2].minor.yy286); + yymsp[-8].minor.yy286 = addGroupByClause(pCxt, yymsp[-8].minor.yy286, yymsp[-1].minor.yy352); + yymsp[-8].minor.yy286 = addHavingClause(pCxt, yymsp[-8].minor.yy286, yymsp[0].minor.yy286); } break; - case 353: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy121 = false; } + case 354: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy495 = false; } break; - case 354: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy488 = NULL; } + case 355: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy352 = NULL; } break; - case 359: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy504 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy504), &yymsp[0].minor.yy409); } - yymsp[-1].minor.yy504 = yylhsminor.yy504; + case 360: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy286 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy286), &yymsp[0].minor.yy567); } + yymsp[-1].minor.yy286 = yylhsminor.yy286; break; - case 360: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy504 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), &yymsp[0].minor.yy409); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + case 361: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy286 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), &yymsp[0].minor.yy567); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 361: /* select_item ::= table_name NK_DOT NK_STAR */ -{ yylhsminor.yy504 = createColumnNode(pCxt, &yymsp[-2].minor.yy409, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + case 362: /* select_item ::= table_name NK_DOT NK_STAR */ +{ yylhsminor.yy286 = createColumnNode(pCxt, &yymsp[-2].minor.yy567, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 365: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 382: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==382); - case 392: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==392); -{ yymsp[-2].minor.yy488 = yymsp[0].minor.yy488; } + case 366: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 383: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==383); + case 393: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==393); +{ yymsp[-2].minor.yy352 = yymsp[0].minor.yy352; } break; - case 367: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy504 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy504), releaseRawExprNode(pCxt, yymsp[-1].minor.yy504)); } + case 368: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy286 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy286), releaseRawExprNode(pCxt, yymsp[-1].minor.yy286)); } break; - case 368: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ -{ yymsp[-3].minor.yy504 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy504)); } + case 369: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ +{ yymsp[-3].minor.yy286 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy286)); } break; - case 369: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy504 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy504), NULL, yymsp[-1].minor.yy504, yymsp[0].minor.yy504); } + case 370: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy286 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy286), NULL, yymsp[-1].minor.yy286, yymsp[0].minor.yy286); } break; - case 370: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy504 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy504), releaseRawExprNode(pCxt, yymsp[-3].minor.yy504), yymsp[-1].minor.yy504, yymsp[0].minor.yy504); } + case 371: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy286 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy286), releaseRawExprNode(pCxt, yymsp[-3].minor.yy286), yymsp[-1].minor.yy286, yymsp[0].minor.yy286); } break; - case 372: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy504 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy504); } + case 373: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ +{ yymsp[-3].minor.yy286 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy286); } break; - case 374: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy504 = createFillNode(pCxt, yymsp[-1].minor.yy22, NULL); } + case 375: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy286 = createFillNode(pCxt, yymsp[-1].minor.yy287, NULL); } break; - case 375: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy504 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy488)); } + case 376: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy286 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy352)); } break; - case 376: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy22 = FILL_MODE_NONE; } + case 377: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy287 = FILL_MODE_NONE; } break; - case 377: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy22 = FILL_MODE_PREV; } + case 378: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy287 = FILL_MODE_PREV; } break; - case 378: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy22 = FILL_MODE_NULL; } + case 379: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy287 = FILL_MODE_NULL; } break; - case 379: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy22 = FILL_MODE_LINEAR; } + case 380: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy287 = FILL_MODE_LINEAR; } break; - case 380: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy22 = FILL_MODE_NEXT; } + case 381: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy287 = FILL_MODE_NEXT; } break; - case 383: /* group_by_list ::= expression */ -{ yylhsminor.yy488 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); } - yymsp[0].minor.yy488 = yylhsminor.yy488; + case 384: /* group_by_list ::= expression */ +{ yylhsminor.yy352 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } + yymsp[0].minor.yy352 = yylhsminor.yy352; break; - case 384: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy488 = addNodeToList(pCxt, yymsp[-2].minor.yy488, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy504))); } - yymsp[-2].minor.yy488 = yylhsminor.yy488; + case 385: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy352 = addNodeToList(pCxt, yymsp[-2].minor.yy352, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy286))); } + yymsp[-2].minor.yy352 = yylhsminor.yy352; break; - case 387: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 388: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy504 = addOrderByClause(pCxt, yymsp[-3].minor.yy504, yymsp[-2].minor.yy488); - yylhsminor.yy504 = addSlimitClause(pCxt, yylhsminor.yy504, yymsp[-1].minor.yy504); - yylhsminor.yy504 = addLimitClause(pCxt, yylhsminor.yy504, yymsp[0].minor.yy504); + yylhsminor.yy286 = addOrderByClause(pCxt, yymsp[-3].minor.yy286, yymsp[-2].minor.yy352); + yylhsminor.yy286 = addSlimitClause(pCxt, yylhsminor.yy286, yymsp[-1].minor.yy286); + yylhsminor.yy286 = addLimitClause(pCxt, yylhsminor.yy286, yymsp[0].minor.yy286); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; - case 389: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy504 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy504, yymsp[0].minor.yy504); } - yymsp[-3].minor.yy504 = yylhsminor.yy504; + case 390: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy286 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy286, yymsp[0].minor.yy286); } + yymsp[-3].minor.yy286 = yylhsminor.yy286; break; - case 394: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 398: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==398); -{ yymsp[-1].minor.yy504 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 395: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 399: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==399); +{ yymsp[-1].minor.yy286 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 395: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 399: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==399); -{ yymsp[-3].minor.yy504 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 396: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 400: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==400); +{ yymsp[-3].minor.yy286 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 396: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 400: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==400); -{ yymsp[-3].minor.yy504 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 397: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 401: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==401); +{ yymsp[-3].minor.yy286 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 401: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy504 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy504); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + case 402: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy286 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy286); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 405: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy504 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy504), yymsp[-1].minor.yy522, yymsp[0].minor.yy281); } - yymsp[-2].minor.yy504 = yylhsminor.yy504; + case 406: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy286 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy286), yymsp[-1].minor.yy216, yymsp[0].minor.yy473); } + yymsp[-2].minor.yy286 = yylhsminor.yy286; break; - case 406: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy522 = ORDER_ASC; } + case 407: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy216 = ORDER_ASC; } break; - case 407: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy522 = ORDER_ASC; } + case 408: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy216 = ORDER_ASC; } break; - case 408: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy522 = ORDER_DESC; } + case 409: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy216 = ORDER_DESC; } break; - case 409: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy281 = NULL_ORDER_DEFAULT; } + case 410: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy473 = NULL_ORDER_DEFAULT; } break; - case 410: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy281 = NULL_ORDER_FIRST; } + case 411: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy473 = NULL_ORDER_FIRST; } break; - case 411: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy281 = NULL_ORDER_LAST; } + case 412: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy473 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/scalar/src/sclfunc.c b/source/libs/scalar/src/sclfunc.c index 97cc80b946b33f4e8c2d07595b3312d2a1615fc8..cf08116d28ae17954bc0c4551cb4540f9d4f265c 100644 --- a/source/libs/scalar/src/sclfunc.c +++ b/source/libs/scalar/src/sclfunc.c @@ -1275,6 +1275,14 @@ int32_t todayFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOut return TSDB_CODE_SUCCESS; } +int32_t timezoneFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput) { + if (inputNum != 1) { + return TSDB_CODE_FAILED; + } + colDataAppend(pOutput->columnData, pOutput->numOfRows, (char *)colDataGetData(pInput->columnData, 0), false); + return TSDB_CODE_SUCCESS; +} + int32_t atanFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput) { return doScalarFunctionUnique(pInput, inputNum, pOutput, atan); }