/* ** 2000-05-29 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Driver template for the LEMON parser generator. ** ** The "lemon" program processes an LALR(1) input grammar file, then uses ** this template to construct a parser. The "lemon" program inserts text ** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the ** interstitial "-" characters) contained in this template is changed into ** the value of the %name directive from the grammar. Otherwise, the content ** of this template is copied straight through into the generate parser ** source file. ** ** The following is the concatenation of all %include directives from the ** input grammar file: */ #include #include /************ Begin %include sections from the grammar ************************/ #include #include #include #include #include #define ALLOW_FORBID_FUNC #include "functionMgt.h" #include "nodes.h" #include "parToken.h" #include "ttokendef.h" #include "parAst.h" #define YYSTACKDEPTH 0 /**************** End of %include directives **********************************/ /* These constants specify the various numeric values for terminal symbols ** in a format understandable to "makeheaders". This section is blank unless ** "lemon" is run with the "-m" command-line option. ***************** Begin makeheaders token definitions *************************/ /**************** End makeheaders token definitions ***************************/ /* The next sections is a series of control #defines. ** various aspects of the generated parser. ** YYCODETYPE is the data type used to store the integer codes ** that represent terminal and non-terminal symbols. ** "unsigned char" is used if there are fewer than ** 256 symbols. Larger types otherwise. ** YYNOCODE is a number of type YYCODETYPE that is not used for ** any terminal or nonterminal symbol. ** YYFALLBACK If defined, this indicates that one or more tokens ** (also known as: "terminal symbols") have fall-back ** values which should be used if the original symbol ** would not parse. This permits keywords to sometimes ** be used as identifiers, for example. ** YYACTIONTYPE is the data type used for "action codes" - numbers ** that indicate what to do in response to the next ** token. ** ParseTOKENTYPE is the data type used for minor type for terminal ** symbols. Background: A "minor type" is a semantic ** value associated with a terminal or non-terminal ** symbols. For example, for an "ID" terminal symbol, ** the minor type might be the name of the identifier. ** Each non-terminal can have a different minor type. ** Terminal symbols all have the same minor type, though. ** This macros defines the minor type for terminal ** symbols. ** YYMINORTYPE is the data type used for all minor types. ** This is typically a union of many types, one of ** which is ParseTOKENTYPE. The entry in the union ** for terminal symbols is called "yy0". ** YYSTACKDEPTH is the maximum depth of the parser's stack. If ** zero the stack is dynamically sized using realloc() ** ParseARG_SDECL A static variable declaration for the %extra_argument ** ParseARG_PDECL A parameter declaration for the %extra_argument ** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter ** ParseARG_STORE Code to store %extra_argument into yypParser ** ParseARG_FETCH Code to extract %extra_argument from yypParser ** ParseCTX_* As ParseARG_ except for %extra_context ** YYERRORSYMBOL is the code number of the error symbol. If not ** defined, then do no error processing. ** YYNSTATE the combined number of states. ** YYNRULE the number of rules in the grammar ** YYNTOKEN Number of terminal symbols ** YY_MAX_SHIFT Maximum value for shift actions ** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions ** YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions ** YY_ERROR_ACTION The yy_action[] code for syntax error ** YY_ACCEPT_ACTION The yy_action[] code for accept ** YY_NO_ACTION The yy_action[] code for no-op ** YY_MIN_REDUCE Minimum value for reduce actions ** YY_MAX_REDUCE Maximum value for reduce actions */ #ifndef INTERFACE # define INTERFACE 1 #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int #define YYNOCODE 461 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; EOrder yy32; SToken yy77; int32_t yy248; int8_t yy287; ENullOrder yy385; EJoinType yy560; SNode* yy600; SNodeList* yy601; SAlterOption yy661; EOperatorType yy666; int64_t yy717; EFillMode yy798; bool yy841; SDataType yy888; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 #endif #define ParseARG_SDECL SAstCreateContext* pCxt ; #define ParseARG_PDECL , SAstCreateContext* pCxt #define ParseARG_PARAM ,pCxt #define ParseARG_FETCH SAstCreateContext* pCxt =yypParser->pCxt ; #define ParseARG_STORE yypParser->pCxt =pCxt ; #define ParseCTX_SDECL #define ParseCTX_PDECL #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 #define YYNSTATE 715 #define YYNRULE 544 #define YYNTOKEN 324 #define YY_MAX_SHIFT 714 #define YY_MIN_SHIFTREDUCE 1061 #define YY_MAX_SHIFTREDUCE 1604 #define YY_ERROR_ACTION 1605 #define YY_ACCEPT_ACTION 1606 #define YY_NO_ACTION 1607 #define YY_MIN_REDUCE 1608 #define YY_MAX_REDUCE 2151 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) /* Define the yytestcase() macro to be a no-op if is not already defined ** otherwise. ** ** Applications can choose to define yytestcase() in the %include section ** to a macro that can assist in verifying code coverage. For production ** code the yytestcase() macro should be turned off. But it is useful ** for testing. */ #ifndef yytestcase # define yytestcase(X) #endif /* Next are the tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an ** action integer. ** ** Suppose the action integer is N. Then the action is determined as ** follows ** ** 0 <= N <= YY_MAX_SHIFT Shift N. That is, push the lookahead ** token onto the stack and goto state N. ** ** N between YY_MIN_SHIFTREDUCE Shift to an arbitrary state then ** and YY_MAX_SHIFTREDUCE reduce by rule N-YY_MIN_SHIFTREDUCE. ** ** N == YY_ERROR_ACTION A syntax error has occurred. ** ** N == YY_ACCEPT_ACTION The parser accepts its input. ** ** N == YY_NO_ACTION No such action. Denotes unused ** slots in the yy_action[] table. ** ** N between YY_MIN_REDUCE Reduce by rule N-YY_MIN_REDUCE ** and YY_MAX_REDUCE ** ** The action table is constructed as a single large table named yy_action[]. ** Given state S and lookahead X, the action is computed as either: ** ** (A) N = yy_action[ yy_shift_ofst[S] + X ] ** (B) N = yy_default[S] ** ** The (A) formula is preferred. The B formula is used instead if ** yy_lookahead[yy_shift_ofst[S]+X] is not equal to X. ** ** The formulas above are for computing the action when the lookahead is ** a terminal symbol. If the lookahead is a non-terminal (as occurs after ** a reduce action) then the yy_reduce_ofst[] array is used in place of ** the yy_shift_ofst[] array. ** ** The following are the tables generated in this section: ** ** yy_action[] A single table containing all actions. ** yy_lookahead[] A table containing the lookahead for each entry in ** yy_action. Used to detect hash collisions. ** yy_shift_ofst[] For each state, the offset into yy_action for ** shifting terminals. ** yy_reduce_ofst[] For each state, the offset into yy_action for ** shifting non-terminals after a reduce. ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ #define YY_ACTTAB_COUNT (2733) static const YYACTIONTYPE yy_action[] = { /* 0 */ 462, 369, 463, 1644, 1807, 1809, 403, 1965, 1752, 33, /* 10 */ 276, 170, 43, 41, 1533, 1631, 1750, 570, 168, 1947, /* 20 */ 364, 2122, 1383, 1951, 1801, 42, 40, 39, 38, 37, /* 30 */ 1965, 604, 1606, 1463, 1947, 1381, 569, 174, 1983, 334, /* 40 */ 1861, 2123, 571, 1808, 1809, 52, 621, 590, 549, 1943, /* 50 */ 1949, 1933, 2122, 620, 11, 10, 1408, 588, 1458, 1933, /* 60 */ 614, 1983, 1761, 16, 1943, 1949, 346, 2128, 174, 585, /* 70 */ 1389, 1409, 2123, 571, 1933, 614, 620, 461, 1964, 603, /* 80 */ 466, 1650, 1999, 43, 41, 161, 1966, 624, 1968, 1969, /* 90 */ 619, 364, 614, 1383, 478, 12, 1870, 379, 603, 549, /* 100 */ 604, 1964, 159, 2122, 1463, 1999, 1381, 1715, 101, 1966, /* 110 */ 624, 1968, 1969, 619, 124, 614, 259, 711, 2128, 174, /* 120 */ 171, 501, 2052, 2123, 571, 228, 358, 2048, 1791, 1458, /* 130 */ 603, 1761, 1465, 1466, 16, 97, 604, 572, 2143, 549, /* 140 */ 176, 1389, 582, 2122, 471, 94, 463, 1644, 2078, 1506, /* 150 */ 124, 157, 1180, 59, 46, 86, 296, 506, 2128, 174, /* 160 */ 591, 1439, 1448, 2123, 571, 470, 12, 1761, 466, 1650, /* 170 */ 294, 67, 355, 132, 66, 1874, 2067, 516, 515, 514, /* 180 */ 1384, 1677, 1382, 1263, 1264, 129, 510, 1182, 711, 1952, /* 190 */ 509, 356, 194, 458, 456, 508, 513, 1316, 1317, 156, /* 200 */ 1947, 507, 2064, 1465, 1466, 46, 1387, 1388, 1763, 1438, /* 210 */ 1441, 1442, 1443, 1444, 1445, 1446, 1447, 616, 612, 1456, /* 220 */ 1457, 1459, 1460, 1461, 1462, 1464, 1467, 2, 59, 604, /* 230 */ 1943, 1949, 1439, 1448, 256, 2060, 581, 589, 125, 580, /* 240 */ 1410, 614, 2122, 179, 468, 1408, 516, 515, 514, 168, /* 250 */ 464, 1384, 226, 1382, 129, 510, 50, 569, 174, 509, /* 260 */ 1761, 548, 2123, 571, 508, 513, 480, 100, 36, 35, /* 270 */ 507, 1862, 42, 40, 39, 38, 37, 1387, 1388, 377, /* 280 */ 1438, 1441, 1442, 1443, 1444, 1445, 1446, 1447, 616, 612, /* 290 */ 1456, 1457, 1459, 1460, 1461, 1462, 1464, 1467, 2, 521, /* 300 */ 9, 43, 41, 177, 177, 75, 74, 406, 92, 364, /* 310 */ 181, 1383, 83, 322, 531, 1983, 344, 98, 532, 1965, /* 320 */ 59, 549, 1463, 564, 1381, 2122, 1814, 145, 225, 318, /* 330 */ 1754, 133, 394, 357, 392, 388, 384, 381, 378, 1753, /* 340 */ 2128, 174, 1812, 524, 1951, 2123, 571, 1458, 518, 367, /* 350 */ 1983, 63, 16, 224, 370, 1947, 1571, 156, 621, 1389, /* 360 */ 2127, 658, 156, 1933, 563, 620, 1763, 39, 38, 37, /* 370 */ 590, 1763, 43, 41, 1468, 565, 59, 1410, 177, 51, /* 380 */ 364, 1965, 1383, 258, 12, 1943, 1949, 347, 59, 65, /* 390 */ 1964, 81, 64, 1463, 1999, 1381, 614, 101, 1966, 624, /* 400 */ 1968, 1969, 619, 9, 614, 128, 711, 135, 1494, 142, /* 410 */ 2023, 2052, 1983, 1739, 1756, 358, 2048, 599, 1458, 1870, /* 420 */ 621, 1465, 1466, 267, 268, 1933, 1094, 620, 266, 1737, /* 430 */ 1389, 1220, 646, 645, 644, 1224, 643, 1226, 1227, 642, /* 440 */ 1229, 639, 59, 1235, 636, 1237, 1238, 633, 630, 649, /* 450 */ 1439, 1448, 1964, 1594, 1409, 44, 1999, 1608, 186, 102, /* 460 */ 1966, 624, 1968, 1969, 619, 1096, 614, 1099, 1100, 1384, /* 470 */ 177, 1382, 402, 2052, 401, 480, 1408, 711, 2049, 409, /* 480 */ 30, 123, 122, 121, 120, 119, 118, 117, 116, 115, /* 490 */ 1499, 658, 1465, 1466, 78, 1387, 1388, 77, 1438, 1441, /* 500 */ 1442, 1443, 1444, 1445, 1446, 1447, 616, 612, 1456, 1457, /* 510 */ 1459, 1460, 1461, 1462, 1464, 1467, 2, 512, 511, 320, /* 520 */ 258, 1439, 1448, 1609, 114, 604, 177, 113, 112, 111, /* 530 */ 110, 109, 108, 107, 106, 105, 81, 1407, 177, 407, /* 540 */ 1384, 158, 1382, 1620, 114, 1389, 1630, 113, 112, 111, /* 550 */ 110, 109, 108, 107, 106, 105, 1761, 36, 35, 1757, /* 560 */ 1965, 42, 40, 39, 38, 37, 1387, 1388, 47, 1438, /* 570 */ 1441, 1442, 1443, 1444, 1445, 1446, 1447, 616, 612, 1456, /* 580 */ 1457, 1459, 1460, 1461, 1462, 1464, 1467, 2, 43, 41, /* 590 */ 1933, 1983, 177, 25, 410, 445, 364, 591, 1383, 585, /* 600 */ 339, 1113, 670, 1112, 1933, 560, 620, 411, 9, 1463, /* 610 */ 7, 1381, 1875, 1814, 1814, 606, 211, 2024, 36, 35, /* 620 */ 368, 331, 42, 40, 39, 38, 37, 6, 1629, 1812, /* 630 */ 1812, 1964, 1114, 1951, 1458, 1999, 530, 582, 101, 1966, /* 640 */ 624, 1968, 1969, 619, 1947, 614, 1389, 1560, 604, 528, /* 650 */ 171, 526, 2052, 190, 189, 582, 358, 2048, 2067, 43, /* 660 */ 41, 340, 408, 338, 337, 1746, 503, 364, 132, 1383, /* 670 */ 505, 44, 1933, 327, 1943, 1949, 359, 1748, 2079, 1761, /* 680 */ 1463, 398, 1381, 1411, 2063, 614, 132, 570, 1537, 566, /* 690 */ 561, 2122, 504, 711, 1408, 557, 556, 1558, 1559, 1561, /* 700 */ 1562, 1563, 544, 400, 396, 1458, 569, 174, 1465, 1466, /* 710 */ 1628, 2123, 571, 227, 1492, 2127, 1627, 1389, 177, 2122, /* 720 */ 36, 35, 604, 1744, 42, 40, 39, 38, 37, 173, /* 730 */ 2060, 2061, 1411, 130, 2065, 2126, 417, 1439, 1448, 2123, /* 740 */ 2125, 2127, 12, 2067, 1473, 2122, 584, 172, 2060, 2061, /* 750 */ 1408, 130, 2065, 1761, 1933, 231, 1384, 608, 1382, 2024, /* 760 */ 1933, 2126, 505, 1626, 711, 2123, 2124, 36, 35, 2062, /* 770 */ 1493, 42, 40, 39, 38, 37, 1359, 1360, 134, 1465, /* 780 */ 1466, 2023, 1387, 1388, 504, 1438, 1441, 1442, 1443, 1444, /* 790 */ 1445, 1446, 1447, 616, 612, 1456, 1457, 1459, 1460, 1461, /* 800 */ 1462, 1464, 1467, 2, 319, 2126, 1406, 1933, 1439, 1448, /* 810 */ 1113, 615, 1112, 439, 682, 680, 452, 36, 35, 451, /* 820 */ 1857, 42, 40, 39, 38, 37, 183, 1384, 1674, 1382, /* 830 */ 650, 182, 1526, 1805, 423, 1440, 453, 1625, 1530, 425, /* 840 */ 1624, 1114, 32, 362, 1487, 1488, 1489, 1490, 1491, 1495, /* 850 */ 1496, 1497, 1498, 1387, 1388, 1549, 1438, 1441, 1442, 1443, /* 860 */ 1444, 1445, 1446, 1447, 616, 612, 1456, 1457, 1459, 1460, /* 870 */ 1461, 1462, 1464, 1467, 2, 236, 29, 1623, 648, 1622, /* 880 */ 335, 1933, 36, 35, 1933, 1621, 42, 40, 39, 38, /* 890 */ 37, 1440, 413, 688, 687, 686, 685, 374, 1619, 684, /* 900 */ 683, 136, 678, 677, 676, 675, 674, 673, 672, 149, /* 910 */ 668, 667, 666, 373, 372, 663, 662, 661, 660, 659, /* 920 */ 1618, 1933, 449, 1933, 1965, 444, 443, 442, 441, 438, /* 930 */ 437, 436, 435, 434, 430, 429, 428, 427, 336, 420, /* 940 */ 419, 418, 1933, 415, 414, 333, 1617, 1965, 1616, 1857, /* 950 */ 1857, 290, 361, 360, 1791, 1983, 1615, 604, 604, 1411, /* 960 */ 184, 188, 1397, 621, 1933, 604, 604, 1614, 1933, 1738, /* 970 */ 620, 431, 432, 1463, 156, 1390, 1408, 582, 1983, 371, /* 980 */ 479, 1601, 671, 1764, 1731, 1814, 621, 2092, 1761, 1761, /* 990 */ 1933, 1933, 1933, 620, 376, 1964, 1761, 1761, 1458, 1999, /* 1000 */ 1933, 1813, 101, 1966, 624, 1968, 1969, 619, 132, 614, /* 1010 */ 1389, 1933, 1099, 1100, 2142, 1613, 2052, 1716, 1964, 1612, /* 1020 */ 358, 2048, 1999, 1844, 1611, 101, 1966, 624, 1968, 1969, /* 1030 */ 619, 2086, 614, 1965, 574, 31, 549, 2142, 253, 2052, /* 1040 */ 2122, 36, 35, 358, 2048, 42, 40, 39, 38, 37, /* 1050 */ 654, 2072, 1526, 1805, 2116, 2128, 174, 610, 1920, 1933, /* 1060 */ 2123, 571, 655, 1933, 1983, 1805, 573, 212, 1933, 175, /* 1070 */ 2060, 2061, 621, 130, 2065, 210, 656, 1933, 1600, 620, /* 1080 */ 1529, 1664, 163, 1657, 48, 138, 3, 126, 497, 493, /* 1090 */ 489, 485, 209, 68, 558, 147, 146, 653, 652, 651, /* 1100 */ 144, 577, 235, 517, 1964, 519, 386, 534, 1999, 533, /* 1110 */ 1965, 101, 1966, 624, 1968, 1969, 619, 1440, 614, 604, /* 1120 */ 1398, 217, 1393, 2142, 215, 2052, 1603, 1604, 82, 358, /* 1130 */ 2048, 207, 1392, 1758, 1965, 664, 219, 234, 1383, 218, /* 1140 */ 2071, 1983, 61, 76, 61, 240, 1401, 1403, 656, 621, /* 1150 */ 1761, 1381, 604, 1655, 1933, 1391, 620, 1161, 612, 1456, /* 1160 */ 1457, 1459, 1460, 1461, 1462, 1983, 140, 147, 146, 653, /* 1170 */ 652, 651, 144, 621, 426, 522, 84, 611, 1933, 1965, /* 1180 */ 620, 1964, 247, 1761, 221, 1999, 1389, 220, 101, 1966, /* 1190 */ 624, 1968, 1969, 619, 1557, 614, 1556, 242, 206, 200, /* 1200 */ 2027, 205, 2052, 45, 476, 1964, 358, 2048, 1984, 1999, /* 1210 */ 1983, 1736, 101, 1966, 624, 1968, 1969, 619, 621, 614, /* 1220 */ 198, 11, 10, 1933, 2025, 620, 2052, 375, 1866, 264, /* 1230 */ 358, 2048, 604, 711, 1965, 36, 35, 604, 1645, 42, /* 1240 */ 40, 39, 38, 37, 2082, 141, 545, 143, 145, 61, /* 1250 */ 1964, 586, 604, 604, 1999, 1329, 575, 101, 1966, 624, /* 1260 */ 1968, 1969, 619, 1761, 614, 1983, 271, 601, 1761, 607, /* 1270 */ 1802, 2052, 604, 621, 223, 358, 2048, 222, 1933, 1395, /* 1280 */ 620, 269, 537, 1761, 1761, 255, 602, 36, 35, 583, /* 1290 */ 1965, 42, 40, 39, 38, 37, 1384, 596, 1382, 273, /* 1300 */ 1213, 1500, 1394, 1761, 45, 1964, 1954, 45, 628, 1999, /* 1310 */ 143, 145, 102, 1966, 624, 1968, 1969, 619, 656, 614, /* 1320 */ 1484, 1983, 1387, 1388, 549, 578, 2052, 1651, 2122, 621, /* 1330 */ 2051, 2048, 127, 604, 1933, 1965, 620, 147, 146, 653, /* 1340 */ 652, 651, 144, 2128, 174, 665, 143, 277, 2123, 571, /* 1350 */ 1142, 252, 1, 4, 1956, 380, 1449, 385, 1965, 289, /* 1360 */ 1241, 1964, 1245, 1252, 1761, 1999, 1983, 1159, 102, 1966, /* 1370 */ 624, 1968, 1969, 619, 621, 614, 706, 332, 1346, 1933, /* 1380 */ 284, 620, 2052, 187, 1250, 1143, 609, 2048, 412, 1983, /* 1390 */ 155, 1411, 1867, 416, 447, 421, 1406, 618, 148, 433, /* 1400 */ 1859, 454, 1933, 440, 620, 446, 622, 191, 448, 455, /* 1410 */ 1999, 457, 459, 102, 1966, 624, 1968, 1969, 619, 1412, /* 1420 */ 614, 460, 469, 1414, 473, 472, 1413, 2052, 197, 1964, /* 1430 */ 199, 326, 2048, 1999, 1415, 474, 312, 1966, 624, 1968, /* 1440 */ 1969, 619, 617, 614, 605, 2017, 1965, 477, 202, 475, /* 1450 */ 204, 79, 481, 80, 208, 500, 1116, 1909, 538, 498, /* 1460 */ 502, 499, 1965, 1751, 536, 321, 214, 104, 285, 539, /* 1470 */ 559, 2083, 229, 1747, 1908, 2093, 216, 1983, 540, 232, /* 1480 */ 546, 2098, 150, 151, 594, 621, 1749, 1745, 152, 153, /* 1490 */ 1933, 2097, 620, 1983, 5, 568, 2074, 246, 554, 552, /* 1500 */ 543, 621, 249, 164, 551, 553, 1933, 248, 620, 555, /* 1510 */ 348, 349, 562, 250, 579, 2145, 576, 1964, 1965, 1526, /* 1520 */ 131, 1999, 2121, 238, 160, 1966, 624, 1968, 1969, 619, /* 1530 */ 241, 614, 1410, 1964, 587, 254, 260, 1999, 352, 1416, /* 1540 */ 160, 1966, 624, 1968, 1969, 619, 1965, 614, 251, 1983, /* 1550 */ 2068, 1871, 286, 592, 593, 1880, 287, 621, 1879, 1878, /* 1560 */ 354, 597, 1933, 598, 620, 550, 2089, 89, 288, 91, /* 1570 */ 58, 2033, 1762, 93, 626, 291, 707, 1983, 1806, 1732, /* 1580 */ 708, 280, 2090, 710, 49, 621, 315, 295, 300, 1964, /* 1590 */ 1933, 314, 620, 1999, 1927, 323, 306, 1966, 624, 1968, /* 1600 */ 1969, 619, 324, 614, 304, 293, 1926, 72, 1965, 1925, /* 1610 */ 1924, 73, 1921, 382, 1375, 383, 1376, 1964, 180, 387, /* 1620 */ 714, 1999, 1919, 389, 161, 1966, 624, 1968, 1969, 619, /* 1630 */ 390, 614, 391, 1918, 283, 393, 1917, 395, 1916, 1983, /* 1640 */ 567, 397, 1915, 399, 353, 1349, 1348, 621, 1891, 167, /* 1650 */ 1890, 405, 1933, 404, 620, 704, 700, 696, 692, 281, /* 1660 */ 1889, 1888, 1307, 1965, 185, 137, 1848, 1847, 1850, 1846, /* 1670 */ 1845, 1843, 1842, 1841, 422, 1840, 424, 2144, 1852, 1964, /* 1680 */ 1851, 1849, 1839, 1999, 1838, 1837, 313, 1966, 624, 1968, /* 1690 */ 1969, 619, 1836, 614, 1983, 99, 1835, 1834, 274, 1833, /* 1700 */ 1832, 1831, 618, 1830, 1829, 1828, 1827, 1933, 1826, 620, /* 1710 */ 1825, 1824, 1823, 1822, 1821, 1820, 139, 1309, 1819, 1818, /* 1720 */ 1817, 450, 1816, 1815, 1188, 1965, 70, 169, 195, 1639, /* 1730 */ 1102, 600, 1679, 1678, 1964, 192, 1676, 193, 1999, 1640, /* 1740 */ 1953, 312, 1966, 624, 1968, 1969, 619, 1904, 614, 465, /* 1750 */ 2018, 1101, 1898, 1887, 467, 1965, 1983, 196, 203, 1886, /* 1760 */ 71, 363, 1869, 201, 621, 1740, 1675, 1673, 261, 1933, /* 1770 */ 482, 620, 1671, 1135, 1669, 483, 486, 484, 487, 488, /* 1780 */ 490, 492, 491, 1667, 494, 1353, 1983, 230, 1654, 496, /* 1790 */ 1653, 365, 495, 1636, 621, 1742, 1964, 1256, 60, 1933, /* 1800 */ 1999, 620, 1741, 313, 1966, 624, 1968, 1969, 619, 1171, /* 1810 */ 614, 1257, 1179, 1965, 1178, 1177, 1176, 679, 1665, 1173, /* 1820 */ 1172, 1170, 681, 341, 1658, 342, 1964, 213, 1656, 1965, /* 1830 */ 1999, 343, 520, 313, 1966, 624, 1968, 1969, 619, 523, /* 1840 */ 614, 1635, 525, 1634, 1983, 527, 1633, 529, 1364, 103, /* 1850 */ 1365, 1363, 621, 1367, 1903, 24, 1355, 1933, 1897, 620, /* 1860 */ 1983, 53, 541, 1885, 1883, 2127, 17, 14, 621, 18, /* 1870 */ 56, 154, 62, 1933, 1965, 620, 57, 244, 245, 28, /* 1880 */ 15, 1954, 19, 1588, 535, 1573, 26, 237, 1999, 162, /* 1890 */ 1965, 308, 1966, 624, 1968, 1969, 619, 547, 614, 257, /* 1900 */ 1964, 239, 1555, 243, 1999, 1983, 542, 297, 1966, 624, /* 1910 */ 1968, 1969, 619, 621, 614, 27, 233, 345, 1933, 1548, /* 1920 */ 620, 1983, 85, 1587, 350, 1592, 55, 1591, 351, 621, /* 1930 */ 165, 1884, 1593, 1594, 1933, 1523, 620, 1882, 1522, 1881, /* 1940 */ 20, 262, 1868, 263, 265, 1964, 1553, 88, 270, 1999, /* 1950 */ 87, 90, 298, 1966, 624, 1968, 1969, 619, 275, 614, /* 1960 */ 21, 1964, 595, 272, 94, 1999, 10, 1965, 299, 1966, /* 1970 */ 624, 1968, 1969, 619, 54, 614, 1475, 1399, 1431, 2002, /* 1980 */ 166, 1453, 613, 178, 625, 8, 1474, 627, 366, 631, /* 1990 */ 34, 1965, 1451, 1450, 13, 22, 634, 1423, 1983, 23, /* 2000 */ 637, 1242, 629, 1485, 640, 1239, 621, 632, 623, 1236, /* 2010 */ 635, 1933, 638, 620, 1230, 1228, 641, 1234, 1219, 95, /* 2020 */ 278, 1233, 1983, 96, 1251, 1232, 1247, 647, 1167, 1231, /* 2030 */ 621, 1133, 1166, 69, 657, 1933, 1165, 620, 1964, 669, /* 2040 */ 1164, 1163, 1999, 1162, 1160, 305, 1966, 624, 1968, 1969, /* 2050 */ 619, 1158, 614, 1965, 1157, 1156, 1186, 279, 1154, 1153, /* 2060 */ 1152, 1151, 1964, 1150, 1149, 1148, 1999, 1181, 1183, 309, /* 2070 */ 1966, 624, 1968, 1969, 619, 1145, 614, 1144, 1141, 1140, /* 2080 */ 1139, 1138, 1672, 1965, 1983, 689, 690, 691, 1670, 694, /* 2090 */ 693, 695, 621, 1668, 697, 698, 699, 1933, 1666, 620, /* 2100 */ 701, 702, 703, 1652, 705, 1091, 1632, 282, 709, 1607, /* 2110 */ 1607, 1385, 292, 712, 1983, 713, 1607, 1607, 1607, 1607, /* 2120 */ 1607, 1607, 621, 1607, 1964, 1607, 1607, 1933, 1999, 620, /* 2130 */ 1607, 301, 1966, 624, 1968, 1969, 619, 1607, 614, 1607, /* 2140 */ 1607, 1965, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2150 */ 1607, 1607, 1607, 1607, 1964, 1607, 1607, 1965, 1999, 1607, /* 2160 */ 1607, 310, 1966, 624, 1968, 1969, 619, 1607, 614, 1607, /* 2170 */ 1607, 1607, 1983, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2180 */ 621, 1607, 1607, 1607, 1607, 1933, 1607, 620, 1983, 1607, /* 2190 */ 1607, 1607, 1607, 1607, 1607, 1607, 621, 1607, 1607, 1607, /* 2200 */ 1607, 1933, 1965, 620, 1607, 1607, 1607, 1607, 1607, 1607, /* 2210 */ 1607, 1607, 1964, 1607, 1607, 1607, 1999, 1607, 1965, 302, /* 2220 */ 1966, 624, 1968, 1969, 619, 1607, 614, 1607, 1964, 1607, /* 2230 */ 1607, 1607, 1999, 1983, 1607, 311, 1966, 624, 1968, 1969, /* 2240 */ 619, 621, 614, 1607, 1607, 1607, 1933, 1607, 620, 1983, /* 2250 */ 1607, 1607, 1607, 1607, 1607, 1607, 1607, 621, 1607, 1607, /* 2260 */ 1607, 1607, 1933, 1607, 620, 1607, 1607, 1607, 1607, 1607, /* 2270 */ 1607, 1607, 1607, 1964, 1607, 1607, 1607, 1999, 1607, 1607, /* 2280 */ 303, 1966, 624, 1968, 1969, 619, 1607, 614, 1607, 1964, /* 2290 */ 1607, 1607, 1607, 1999, 1607, 1965, 316, 1966, 624, 1968, /* 2300 */ 1969, 619, 1607, 614, 1607, 1607, 1607, 1607, 1607, 1607, /* 2310 */ 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1965, /* 2320 */ 1607, 1607, 1607, 1607, 1607, 1607, 1983, 1607, 1607, 1607, /* 2330 */ 1607, 1607, 1607, 1607, 621, 1607, 1607, 1607, 1607, 1933, /* 2340 */ 1607, 620, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2350 */ 1983, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 621, 1607, /* 2360 */ 1607, 1607, 1607, 1933, 1607, 620, 1964, 1607, 1607, 1607, /* 2370 */ 1999, 1607, 1607, 317, 1966, 624, 1968, 1969, 619, 1607, /* 2380 */ 614, 1965, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2390 */ 1964, 1607, 1607, 1607, 1999, 1607, 1607, 1977, 1966, 624, /* 2400 */ 1968, 1969, 619, 1607, 614, 1607, 1607, 1607, 1607, 1607, /* 2410 */ 1607, 1965, 1983, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2420 */ 621, 1607, 1607, 1607, 1607, 1933, 1607, 620, 1607, 1607, /* 2430 */ 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2440 */ 1607, 1607, 1983, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2450 */ 621, 1607, 1964, 1607, 1607, 1933, 1999, 620, 1607, 1976, /* 2460 */ 1966, 624, 1968, 1969, 619, 1607, 614, 1607, 1607, 1965, /* 2470 */ 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2480 */ 1607, 1607, 1964, 1607, 1607, 1965, 1999, 1607, 1607, 1975, /* 2490 */ 1966, 624, 1968, 1969, 619, 1607, 614, 1607, 1607, 1607, /* 2500 */ 1983, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 621, 1607, /* 2510 */ 1607, 1607, 1607, 1933, 1607, 620, 1983, 1607, 1607, 1607, /* 2520 */ 1607, 1607, 1607, 1607, 621, 1607, 1607, 1607, 1607, 1933, /* 2530 */ 1965, 620, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2540 */ 1964, 1607, 1607, 1607, 1999, 1607, 1965, 328, 1966, 624, /* 2550 */ 1968, 1969, 619, 1607, 614, 1607, 1964, 1607, 1607, 1607, /* 2560 */ 1999, 1983, 1607, 329, 1966, 624, 1968, 1969, 619, 621, /* 2570 */ 614, 1607, 1607, 1607, 1933, 1607, 620, 1983, 1607, 1607, /* 2580 */ 1607, 1607, 1607, 1607, 1607, 621, 1607, 1607, 1607, 1607, /* 2590 */ 1933, 1607, 620, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2600 */ 1607, 1964, 1607, 1607, 1607, 1999, 1607, 1607, 325, 1966, /* 2610 */ 624, 1968, 1969, 619, 1607, 614, 1607, 1964, 1607, 1607, /* 2620 */ 1607, 1999, 1607, 1965, 330, 1966, 624, 1968, 1969, 619, /* 2630 */ 1607, 614, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, /* 2640 */ 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1965, 1607, 1607, /* 2650 */ 1607, 1607, 1607, 1607, 1983, 1607, 1607, 1607, 1607, 1607, /* 2660 */ 1607, 1607, 621, 1607, 1607, 1607, 1607, 1933, 1607, 620, /* 2670 */ 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1983, 1607, /* 2680 */ 1607, 1607, 1607, 1607, 1607, 1607, 621, 1607, 1607, 1607, /* 2690 */ 1607, 1933, 1607, 620, 622, 1607, 1607, 1607, 1999, 1607, /* 2700 */ 1607, 308, 1966, 624, 1968, 1969, 619, 1607, 614, 1607, /* 2710 */ 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1607, 1964, 1607, /* 2720 */ 1607, 1607, 1999, 1607, 1607, 307, 1966, 624, 1968, 1969, /* 2730 */ 619, 1607, 614, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 331, 369, 333, 334, 372, 373, 389, 327, 360, 420, /* 10 */ 421, 357, 12, 13, 14, 327, 359, 431, 358, 371, /* 20 */ 20, 435, 22, 360, 370, 12, 13, 14, 15, 16, /* 30 */ 327, 335, 324, 33, 371, 35, 450, 451, 358, 379, /* 40 */ 380, 455, 456, 372, 373, 349, 366, 335, 431, 401, /* 50 */ 402, 371, 435, 373, 1, 2, 20, 389, 58, 371, /* 60 */ 412, 358, 366, 63, 401, 402, 403, 450, 451, 366, /* 70 */ 70, 20, 455, 456, 371, 412, 373, 332, 398, 20, /* 80 */ 335, 336, 402, 12, 13, 405, 406, 407, 408, 409, /* 90 */ 410, 20, 412, 22, 382, 95, 384, 389, 20, 431, /* 100 */ 335, 398, 342, 435, 33, 402, 35, 347, 405, 406, /* 110 */ 407, 408, 409, 410, 349, 412, 58, 117, 450, 451, /* 120 */ 417, 356, 419, 455, 456, 351, 423, 424, 354, 58, /* 130 */ 20, 366, 132, 133, 63, 95, 335, 457, 458, 431, /* 140 */ 437, 70, 335, 435, 331, 105, 333, 334, 445, 96, /* 150 */ 349, 18, 35, 95, 95, 97, 23, 356, 450, 451, /* 160 */ 373, 161, 162, 455, 456, 332, 95, 366, 335, 336, /* 170 */ 37, 38, 385, 366, 41, 388, 404, 65, 66, 67, /* 180 */ 180, 0, 182, 132, 133, 73, 74, 70, 117, 360, /* 190 */ 78, 350, 59, 60, 61, 83, 84, 161, 162, 358, /* 200 */ 371, 89, 430, 132, 133, 95, 206, 207, 367, 209, /* 210 */ 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, /* 220 */ 220, 221, 222, 223, 224, 225, 226, 227, 95, 335, /* 230 */ 401, 402, 161, 162, 427, 428, 429, 20, 431, 432, /* 240 */ 20, 412, 435, 349, 14, 20, 65, 66, 67, 358, /* 250 */ 20, 180, 127, 182, 73, 74, 163, 450, 451, 78, /* 260 */ 366, 168, 455, 456, 83, 84, 62, 134, 8, 9, /* 270 */ 89, 380, 12, 13, 14, 15, 16, 206, 207, 389, /* 280 */ 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, /* 290 */ 219, 220, 221, 222, 223, 224, 225, 226, 227, 4, /* 300 */ 229, 12, 13, 245, 245, 172, 173, 174, 339, 20, /* 310 */ 177, 22, 187, 188, 19, 358, 191, 339, 193, 327, /* 320 */ 95, 431, 33, 366, 35, 435, 358, 44, 33, 196, /* 330 */ 361, 353, 199, 365, 201, 202, 203, 204, 205, 361, /* 340 */ 450, 451, 374, 48, 360, 455, 456, 58, 53, 350, /* 350 */ 358, 4, 63, 58, 350, 371, 96, 358, 366, 70, /* 360 */ 3, 62, 358, 371, 407, 373, 367, 14, 15, 16, /* 370 */ 335, 367, 12, 13, 14, 20, 95, 20, 245, 96, /* 380 */ 20, 327, 22, 163, 95, 401, 402, 403, 95, 94, /* 390 */ 398, 341, 97, 33, 402, 35, 412, 405, 406, 407, /* 400 */ 408, 409, 410, 229, 412, 355, 117, 415, 160, 417, /* 410 */ 418, 419, 358, 0, 364, 423, 424, 382, 58, 384, /* 420 */ 366, 132, 133, 126, 127, 371, 4, 373, 131, 0, /* 430 */ 70, 108, 109, 110, 111, 112, 113, 114, 115, 116, /* 440 */ 117, 118, 95, 120, 121, 122, 123, 124, 125, 106, /* 450 */ 161, 162, 398, 96, 20, 95, 402, 0, 58, 405, /* 460 */ 406, 407, 408, 409, 410, 43, 412, 45, 46, 180, /* 470 */ 245, 182, 179, 419, 181, 62, 20, 117, 424, 335, /* 480 */ 232, 24, 25, 26, 27, 28, 29, 30, 31, 32, /* 490 */ 242, 62, 132, 133, 94, 206, 207, 97, 209, 210, /* 500 */ 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, /* 510 */ 221, 222, 223, 224, 225, 226, 227, 344, 345, 375, /* 520 */ 163, 161, 162, 0, 21, 335, 245, 24, 25, 26, /* 530 */ 27, 28, 29, 30, 31, 32, 341, 20, 245, 349, /* 540 */ 180, 326, 182, 328, 21, 70, 327, 24, 25, 26, /* 550 */ 27, 28, 29, 30, 31, 32, 366, 8, 9, 364, /* 560 */ 327, 12, 13, 14, 15, 16, 206, 207, 95, 209, /* 570 */ 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, /* 580 */ 220, 221, 222, 223, 224, 225, 226, 227, 12, 13, /* 590 */ 371, 358, 245, 44, 22, 79, 20, 373, 22, 366, /* 600 */ 37, 20, 70, 22, 371, 166, 373, 35, 229, 33, /* 610 */ 231, 35, 388, 358, 358, 416, 35, 418, 8, 9, /* 620 */ 365, 365, 12, 13, 14, 15, 16, 39, 327, 374, /* 630 */ 374, 398, 51, 360, 58, 402, 21, 335, 405, 406, /* 640 */ 407, 408, 409, 410, 371, 412, 70, 206, 335, 34, /* 650 */ 417, 36, 419, 137, 138, 335, 423, 424, 404, 12, /* 660 */ 13, 98, 349, 100, 101, 359, 103, 20, 366, 22, /* 670 */ 107, 95, 371, 63, 401, 402, 403, 359, 445, 366, /* 680 */ 33, 175, 35, 20, 430, 412, 366, 431, 14, 250, /* 690 */ 251, 435, 129, 117, 20, 254, 255, 256, 257, 258, /* 700 */ 259, 260, 393, 197, 198, 58, 450, 451, 132, 133, /* 710 */ 327, 455, 456, 126, 104, 431, 327, 70, 245, 435, /* 720 */ 8, 9, 335, 359, 12, 13, 14, 15, 16, 427, /* 730 */ 428, 429, 20, 431, 432, 451, 349, 161, 162, 455, /* 740 */ 456, 431, 95, 404, 14, 435, 426, 427, 428, 429, /* 750 */ 20, 431, 432, 366, 371, 359, 180, 416, 182, 418, /* 760 */ 371, 451, 107, 327, 117, 455, 456, 8, 9, 430, /* 770 */ 160, 12, 13, 14, 15, 16, 189, 190, 415, 132, /* 780 */ 133, 418, 206, 207, 129, 209, 210, 211, 212, 213, /* 790 */ 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, /* 800 */ 224, 225, 226, 227, 18, 3, 20, 371, 161, 162, /* 810 */ 20, 359, 22, 27, 344, 345, 30, 8, 9, 33, /* 820 */ 366, 12, 13, 14, 15, 16, 163, 180, 0, 182, /* 830 */ 368, 377, 244, 371, 48, 161, 50, 327, 4, 53, /* 840 */ 327, 51, 232, 233, 234, 235, 236, 237, 238, 239, /* 850 */ 240, 241, 242, 206, 207, 96, 209, 210, 211, 212, /* 860 */ 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, /* 870 */ 223, 224, 225, 226, 227, 163, 2, 327, 359, 327, /* 880 */ 94, 371, 8, 9, 371, 328, 12, 13, 14, 15, /* 890 */ 16, 161, 106, 65, 66, 67, 68, 69, 327, 71, /* 900 */ 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, /* 910 */ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, /* 920 */ 327, 371, 136, 371, 327, 139, 140, 141, 142, 143, /* 930 */ 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, /* 940 */ 154, 155, 371, 157, 158, 159, 327, 327, 327, 366, /* 950 */ 366, 351, 12, 13, 354, 358, 327, 335, 335, 20, /* 960 */ 377, 377, 22, 366, 371, 335, 335, 327, 371, 0, /* 970 */ 373, 349, 349, 33, 358, 35, 20, 335, 358, 349, /* 980 */ 349, 172, 346, 367, 348, 358, 366, 381, 366, 366, /* 990 */ 371, 371, 371, 373, 389, 398, 366, 366, 58, 402, /* 1000 */ 371, 374, 405, 406, 407, 408, 409, 410, 366, 412, /* 1010 */ 70, 371, 45, 46, 417, 327, 419, 347, 398, 327, /* 1020 */ 423, 424, 402, 0, 327, 405, 406, 407, 408, 409, /* 1030 */ 410, 434, 412, 327, 44, 2, 431, 417, 459, 419, /* 1040 */ 435, 8, 9, 423, 424, 12, 13, 14, 15, 16, /* 1050 */ 368, 243, 244, 371, 434, 450, 451, 117, 0, 371, /* 1060 */ 455, 456, 368, 371, 358, 371, 264, 33, 371, 427, /* 1070 */ 428, 429, 366, 431, 432, 337, 107, 371, 269, 373, /* 1080 */ 246, 0, 48, 0, 42, 42, 44, 44, 54, 55, /* 1090 */ 56, 57, 58, 106, 448, 126, 127, 128, 129, 130, /* 1100 */ 131, 44, 163, 22, 398, 22, 48, 192, 402, 194, /* 1110 */ 327, 405, 406, 407, 408, 409, 410, 161, 412, 335, /* 1120 */ 180, 99, 182, 417, 102, 419, 132, 133, 94, 423, /* 1130 */ 424, 97, 35, 349, 327, 13, 99, 58, 22, 102, /* 1140 */ 434, 358, 44, 156, 44, 44, 206, 207, 107, 366, /* 1150 */ 366, 35, 335, 0, 371, 35, 373, 35, 218, 219, /* 1160 */ 220, 221, 222, 223, 224, 358, 349, 126, 127, 128, /* 1170 */ 129, 130, 131, 366, 151, 22, 97, 63, 371, 327, /* 1180 */ 373, 398, 442, 366, 99, 402, 70, 102, 405, 406, /* 1190 */ 407, 408, 409, 410, 96, 412, 96, 96, 164, 165, /* 1200 */ 417, 167, 419, 44, 170, 398, 423, 424, 358, 402, /* 1210 */ 358, 0, 405, 406, 407, 408, 409, 410, 366, 412, /* 1220 */ 186, 1, 2, 371, 417, 373, 419, 337, 381, 44, /* 1230 */ 423, 424, 335, 117, 327, 8, 9, 335, 334, 12, /* 1240 */ 13, 14, 15, 16, 381, 44, 349, 44, 44, 44, /* 1250 */ 398, 349, 335, 335, 402, 96, 266, 405, 406, 407, /* 1260 */ 408, 409, 410, 366, 412, 358, 349, 349, 366, 417, /* 1270 */ 370, 419, 335, 366, 99, 423, 424, 102, 371, 182, /* 1280 */ 373, 96, 389, 366, 366, 452, 349, 8, 9, 433, /* 1290 */ 327, 12, 13, 14, 15, 16, 180, 96, 182, 96, /* 1300 */ 96, 96, 182, 366, 44, 398, 47, 44, 44, 402, /* 1310 */ 44, 44, 405, 406, 407, 408, 409, 410, 107, 412, /* 1320 */ 206, 358, 206, 207, 431, 268, 419, 0, 435, 366, /* 1330 */ 423, 424, 44, 335, 371, 327, 373, 126, 127, 128, /* 1340 */ 129, 130, 131, 450, 451, 13, 44, 349, 455, 456, /* 1350 */ 35, 425, 436, 247, 95, 400, 96, 48, 327, 96, /* 1360 */ 96, 398, 96, 96, 366, 402, 358, 35, 405, 406, /* 1370 */ 407, 408, 409, 410, 366, 412, 49, 399, 178, 371, /* 1380 */ 391, 373, 419, 42, 96, 70, 423, 424, 378, 358, /* 1390 */ 163, 20, 381, 378, 160, 376, 20, 366, 96, 335, /* 1400 */ 335, 93, 371, 378, 373, 376, 398, 335, 376, 343, /* 1410 */ 402, 335, 335, 405, 406, 407, 408, 409, 410, 20, /* 1420 */ 412, 329, 329, 20, 373, 395, 20, 419, 341, 398, /* 1430 */ 341, 423, 424, 402, 20, 336, 405, 406, 407, 408, /* 1440 */ 409, 410, 411, 412, 413, 414, 327, 336, 341, 390, /* 1450 */ 341, 341, 335, 341, 341, 329, 52, 371, 397, 338, /* 1460 */ 358, 338, 327, 358, 195, 329, 358, 335, 395, 185, /* 1470 */ 253, 381, 339, 358, 371, 381, 358, 358, 394, 339, /* 1480 */ 335, 441, 358, 358, 252, 366, 358, 358, 358, 358, /* 1490 */ 371, 441, 373, 358, 261, 171, 444, 443, 263, 262, /* 1500 */ 373, 366, 439, 441, 248, 371, 371, 440, 373, 371, /* 1510 */ 371, 270, 371, 438, 267, 460, 265, 398, 327, 244, /* 1520 */ 366, 402, 454, 386, 405, 406, 407, 408, 409, 410, /* 1530 */ 386, 412, 20, 398, 335, 453, 339, 402, 336, 20, /* 1540 */ 405, 406, 407, 408, 409, 410, 327, 412, 400, 358, /* 1550 */ 404, 384, 386, 371, 371, 371, 386, 366, 371, 371, /* 1560 */ 371, 165, 371, 383, 373, 446, 447, 339, 354, 339, /* 1570 */ 95, 422, 366, 95, 362, 335, 36, 358, 371, 348, /* 1580 */ 330, 339, 447, 329, 392, 366, 396, 325, 352, 398, /* 1590 */ 371, 352, 373, 402, 0, 387, 405, 406, 407, 408, /* 1600 */ 409, 410, 387, 412, 352, 340, 0, 187, 327, 0, /* 1610 */ 0, 42, 0, 35, 35, 200, 35, 398, 35, 200, /* 1620 */ 19, 402, 0, 35, 405, 406, 407, 408, 409, 410, /* 1630 */ 35, 412, 200, 0, 33, 200, 0, 35, 0, 358, /* 1640 */ 449, 22, 0, 35, 363, 182, 180, 366, 0, 48, /* 1650 */ 0, 175, 371, 176, 373, 54, 55, 56, 57, 58, /* 1660 */ 0, 0, 47, 327, 151, 42, 0, 0, 0, 0, /* 1670 */ 0, 0, 0, 0, 35, 0, 151, 458, 0, 398, /* 1680 */ 0, 0, 0, 402, 0, 0, 405, 406, 407, 408, /* 1690 */ 409, 410, 0, 412, 358, 94, 0, 0, 97, 0, /* 1700 */ 0, 0, 366, 0, 0, 0, 0, 371, 0, 373, /* 1710 */ 0, 0, 0, 0, 0, 0, 42, 22, 0, 0, /* 1720 */ 0, 135, 0, 0, 35, 327, 39, 44, 42, 0, /* 1730 */ 14, 130, 0, 0, 398, 58, 0, 58, 402, 0, /* 1740 */ 47, 405, 406, 407, 408, 409, 410, 0, 412, 47, /* 1750 */ 414, 14, 0, 0, 47, 327, 358, 40, 171, 0, /* 1760 */ 39, 363, 0, 39, 366, 0, 0, 0, 167, 371, /* 1770 */ 35, 373, 0, 64, 0, 48, 35, 39, 48, 39, /* 1780 */ 35, 39, 48, 0, 35, 184, 358, 186, 0, 39, /* 1790 */ 0, 363, 48, 0, 366, 0, 398, 22, 104, 371, /* 1800 */ 402, 373, 0, 405, 406, 407, 408, 409, 410, 22, /* 1810 */ 412, 35, 35, 327, 35, 35, 35, 44, 0, 35, /* 1820 */ 35, 35, 44, 22, 0, 22, 398, 102, 0, 327, /* 1830 */ 402, 22, 50, 405, 406, 407, 408, 409, 410, 35, /* 1840 */ 412, 0, 35, 0, 358, 35, 0, 22, 35, 20, /* 1850 */ 35, 35, 366, 96, 0, 95, 35, 371, 0, 373, /* 1860 */ 358, 163, 22, 0, 0, 3, 44, 249, 366, 249, /* 1870 */ 44, 183, 3, 371, 327, 373, 44, 44, 47, 44, /* 1880 */ 249, 47, 44, 35, 398, 96, 95, 95, 402, 95, /* 1890 */ 327, 405, 406, 407, 408, 409, 410, 169, 412, 47, /* 1900 */ 398, 96, 96, 95, 402, 358, 163, 405, 406, 407, /* 1910 */ 408, 409, 410, 366, 412, 95, 165, 163, 371, 96, /* 1920 */ 373, 358, 95, 35, 35, 35, 44, 35, 35, 366, /* 1930 */ 47, 0, 96, 96, 371, 96, 373, 0, 96, 0, /* 1940 */ 95, 47, 0, 96, 95, 398, 96, 39, 95, 402, /* 1950 */ 95, 95, 405, 406, 407, 408, 409, 410, 47, 412, /* 1960 */ 44, 398, 166, 164, 105, 402, 2, 327, 405, 406, /* 1970 */ 407, 408, 409, 410, 243, 412, 228, 22, 22, 95, /* 1980 */ 47, 96, 95, 47, 106, 230, 228, 35, 35, 35, /* 1990 */ 95, 327, 96, 96, 95, 95, 35, 96, 358, 95, /* 2000 */ 35, 96, 95, 206, 35, 96, 366, 95, 208, 96, /* 2010 */ 95, 371, 95, 373, 96, 96, 95, 119, 22, 95, /* 2020 */ 44, 119, 358, 95, 35, 119, 22, 107, 35, 119, /* 2030 */ 366, 64, 35, 95, 63, 371, 35, 373, 398, 92, /* 2040 */ 35, 35, 402, 35, 35, 405, 406, 407, 408, 409, /* 2050 */ 410, 35, 412, 327, 35, 35, 70, 44, 35, 35, /* 2060 */ 35, 22, 398, 35, 35, 35, 402, 35, 70, 405, /* 2070 */ 406, 407, 408, 409, 410, 35, 412, 35, 35, 35, /* 2080 */ 22, 35, 0, 327, 358, 35, 48, 39, 0, 48, /* 2090 */ 35, 39, 366, 0, 35, 48, 39, 371, 0, 373, /* 2100 */ 35, 48, 39, 0, 35, 35, 0, 22, 21, 461, /* 2110 */ 461, 22, 22, 21, 358, 20, 461, 461, 461, 461, /* 2120 */ 461, 461, 366, 461, 398, 461, 461, 371, 402, 373, /* 2130 */ 461, 405, 406, 407, 408, 409, 410, 461, 412, 461, /* 2140 */ 461, 327, 461, 461, 461, 461, 461, 461, 461, 461, /* 2150 */ 461, 461, 461, 461, 398, 461, 461, 327, 402, 461, /* 2160 */ 461, 405, 406, 407, 408, 409, 410, 461, 412, 461, /* 2170 */ 461, 461, 358, 461, 461, 461, 461, 461, 461, 461, /* 2180 */ 366, 461, 461, 461, 461, 371, 461, 373, 358, 461, /* 2190 */ 461, 461, 461, 461, 461, 461, 366, 461, 461, 461, /* 2200 */ 461, 371, 327, 373, 461, 461, 461, 461, 461, 461, /* 2210 */ 461, 461, 398, 461, 461, 461, 402, 461, 327, 405, /* 2220 */ 406, 407, 408, 409, 410, 461, 412, 461, 398, 461, /* 2230 */ 461, 461, 402, 358, 461, 405, 406, 407, 408, 409, /* 2240 */ 410, 366, 412, 461, 461, 461, 371, 461, 373, 358, /* 2250 */ 461, 461, 461, 461, 461, 461, 461, 366, 461, 461, /* 2260 */ 461, 461, 371, 461, 373, 461, 461, 461, 461, 461, /* 2270 */ 461, 461, 461, 398, 461, 461, 461, 402, 461, 461, /* 2280 */ 405, 406, 407, 408, 409, 410, 461, 412, 461, 398, /* 2290 */ 461, 461, 461, 402, 461, 327, 405, 406, 407, 408, /* 2300 */ 409, 410, 461, 412, 461, 461, 461, 461, 461, 461, /* 2310 */ 461, 461, 461, 461, 461, 461, 461, 461, 461, 327, /* 2320 */ 461, 461, 461, 461, 461, 461, 358, 461, 461, 461, /* 2330 */ 461, 461, 461, 461, 366, 461, 461, 461, 461, 371, /* 2340 */ 461, 373, 461, 461, 461, 461, 461, 461, 461, 461, /* 2350 */ 358, 461, 461, 461, 461, 461, 461, 461, 366, 461, /* 2360 */ 461, 461, 461, 371, 461, 373, 398, 461, 461, 461, /* 2370 */ 402, 461, 461, 405, 406, 407, 408, 409, 410, 461, /* 2380 */ 412, 327, 461, 461, 461, 461, 461, 461, 461, 461, /* 2390 */ 398, 461, 461, 461, 402, 461, 461, 405, 406, 407, /* 2400 */ 408, 409, 410, 461, 412, 461, 461, 461, 461, 461, /* 2410 */ 461, 327, 358, 461, 461, 461, 461, 461, 461, 461, /* 2420 */ 366, 461, 461, 461, 461, 371, 461, 373, 461, 461, /* 2430 */ 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, /* 2440 */ 461, 461, 358, 461, 461, 461, 461, 461, 461, 461, /* 2450 */ 366, 461, 398, 461, 461, 371, 402, 373, 461, 405, /* 2460 */ 406, 407, 408, 409, 410, 461, 412, 461, 461, 327, /* 2470 */ 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, /* 2480 */ 461, 461, 398, 461, 461, 327, 402, 461, 461, 405, /* 2490 */ 406, 407, 408, 409, 410, 461, 412, 461, 461, 461, /* 2500 */ 358, 461, 461, 461, 461, 461, 461, 461, 366, 461, /* 2510 */ 461, 461, 461, 371, 461, 373, 358, 461, 461, 461, /* 2520 */ 461, 461, 461, 461, 366, 461, 461, 461, 461, 371, /* 2530 */ 327, 373, 461, 461, 461, 461, 461, 461, 461, 461, /* 2540 */ 398, 461, 461, 461, 402, 461, 327, 405, 406, 407, /* 2550 */ 408, 409, 410, 461, 412, 461, 398, 461, 461, 461, /* 2560 */ 402, 358, 461, 405, 406, 407, 408, 409, 410, 366, /* 2570 */ 412, 461, 461, 461, 371, 461, 373, 358, 461, 461, /* 2580 */ 461, 461, 461, 461, 461, 366, 461, 461, 461, 461, /* 2590 */ 371, 461, 373, 461, 461, 461, 461, 461, 461, 461, /* 2600 */ 461, 398, 461, 461, 461, 402, 461, 461, 405, 406, /* 2610 */ 407, 408, 409, 410, 461, 412, 461, 398, 461, 461, /* 2620 */ 461, 402, 461, 327, 405, 406, 407, 408, 409, 410, /* 2630 */ 461, 412, 461, 461, 461, 461, 461, 461, 461, 461, /* 2640 */ 461, 461, 461, 461, 461, 461, 461, 327, 461, 461, /* 2650 */ 461, 461, 461, 461, 358, 461, 461, 461, 461, 461, /* 2660 */ 461, 461, 366, 461, 461, 461, 461, 371, 461, 373, /* 2670 */ 461, 461, 461, 461, 461, 461, 461, 461, 358, 461, /* 2680 */ 461, 461, 461, 461, 461, 461, 366, 461, 461, 461, /* 2690 */ 461, 371, 461, 373, 398, 461, 461, 461, 402, 461, /* 2700 */ 461, 405, 406, 407, 408, 409, 410, 461, 412, 461, /* 2710 */ 461, 461, 461, 461, 461, 461, 461, 461, 398, 461, /* 2720 */ 461, 461, 402, 461, 461, 405, 406, 407, 408, 409, /* 2730 */ 410, 461, 412, }; #define YY_SHIFT_COUNT (714) #define YY_SHIFT_MIN (0) #define YY_SHIFT_MAX (2106) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 133, 0, 71, 0, 289, 289, 289, 289, 289, 289, /* 10 */ 289, 289, 289, 360, 576, 576, 647, 576, 576, 576, /* 20 */ 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, /* 30 */ 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, /* 40 */ 576, 576, 576, 576, 576, 576, 59, 225, 110, 293, /* 50 */ 58, 281, 473, 281, 110, 110, 940, 940, 940, 281, /* 60 */ 940, 940, 347, 281, 78, 78, 422, 422, 36, 51, /* 70 */ 230, 230, 78, 78, 78, 78, 78, 78, 78, 217, /* 80 */ 78, 78, 204, 78, 78, 355, 78, 434, 78, 217, /* 90 */ 456, 78, 78, 456, 78, 456, 456, 456, 78, 299, /* 100 */ 786, 610, 610, 503, 112, 1116, 1116, 1116, 1116, 1116, /* 110 */ 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, /* 120 */ 1116, 1116, 1116, 1116, 563, 357, 36, 51, 413, 117, /* 130 */ 220, 220, 220, 429, 379, 379, 117, 517, 517, 517, /* 140 */ 343, 434, 174, 456, 475, 456, 475, 475, 343, 532, /* 150 */ 323, 323, 323, 323, 323, 323, 323, 1601, 523, 181, /* 160 */ 712, 809, 441, 581, 439, 674, 730, 790, 663, 967, /* 170 */ 655, 939, 808, 588, 802, 808, 1042, 834, 956, 1106, /* 180 */ 1309, 1200, 1341, 1371, 1341, 1234, 1376, 1376, 1341, 1234, /* 190 */ 1234, 1308, 1376, 1376, 1376, 1399, 1399, 1403, 204, 434, /* 200 */ 204, 1406, 1414, 204, 1406, 204, 204, 204, 1376, 204, /* 210 */ 1404, 1404, 1399, 456, 456, 456, 456, 456, 456, 456, /* 220 */ 456, 456, 456, 456, 1376, 1399, 475, 475, 1269, 1403, /* 230 */ 299, 1284, 434, 299, 1376, 1371, 1371, 475, 1217, 1232, /* 240 */ 475, 1217, 1232, 475, 475, 456, 1233, 1324, 1217, 1235, /* 250 */ 1237, 1256, 1106, 1241, 1247, 1251, 1275, 517, 1512, 1376, /* 260 */ 1406, 299, 1519, 1232, 475, 475, 475, 475, 475, 1232, /* 270 */ 475, 1396, 299, 343, 299, 517, 1475, 1478, 475, 532, /* 280 */ 1376, 299, 1540, 1399, 2733, 2733, 2733, 2733, 2733, 2733, /* 290 */ 2733, 2733, 2733, 828, 1034, 457, 295, 260, 549, 759, /* 300 */ 969, 874, 1033, 1227, 1211, 1279, 1279, 1279, 1279, 1279, /* 310 */ 1279, 1279, 1279, 1279, 1041, 125, 13, 13, 506, 400, /* 320 */ 516, 615, 587, 297, 297, 353, 53, 248, 353, 353, /* 330 */ 353, 283, 1058, 572, 1043, 987, 1023, 1022, 1037, 1085, /* 340 */ 1175, 1081, 1083, 1153, 915, 1079, 1098, 1100, 1101, 994, /* 350 */ 990, 1057, 93, 1159, 1185, 1201, 1203, 1204, 1220, 1205, /* 360 */ 1097, 1120, 1114, 1260, 1259, 1263, 1264, 1266, 1267, 1288, /* 370 */ 1302, 40, 1122, 1332, 1315, 1327, 1594, 1606, 1420, 1609, /* 380 */ 1610, 1569, 1612, 1578, 1415, 1579, 1581, 1583, 1419, 1622, /* 390 */ 1588, 1595, 1432, 1633, 1435, 1636, 1602, 1638, 1619, 1642, /* 400 */ 1608, 1463, 1466, 1648, 1650, 1477, 1476, 1660, 1661, 1615, /* 410 */ 1678, 1680, 1681, 1623, 1666, 1667, 1668, 1669, 1670, 1671, /* 420 */ 1672, 1673, 1513, 1639, 1675, 1525, 1682, 1684, 1685, 1692, /* 430 */ 1696, 1697, 1699, 1700, 1701, 1703, 1704, 1705, 1706, 1708, /* 440 */ 1710, 1674, 1711, 1712, 1713, 1714, 1715, 1695, 1718, 1719, /* 450 */ 1720, 1586, 1722, 1723, 1689, 1732, 1677, 1733, 1679, 1736, /* 460 */ 1739, 1686, 1687, 1683, 1693, 1716, 1702, 1737, 1707, 1729, /* 470 */ 1717, 1721, 1747, 1752, 1753, 1724, 1587, 1759, 1762, 1765, /* 480 */ 1709, 1766, 1767, 1735, 1727, 1738, 1772, 1741, 1730, 1740, /* 490 */ 1774, 1745, 1734, 1742, 1783, 1749, 1744, 1750, 1788, 1790, /* 500 */ 1793, 1795, 1694, 1725, 1776, 1775, 1802, 1777, 1779, 1780, /* 510 */ 1781, 1773, 1778, 1784, 1785, 1787, 1786, 1818, 1801, 1824, /* 520 */ 1803, 1782, 1828, 1809, 1804, 1841, 1807, 1843, 1810, 1846, /* 530 */ 1825, 1829, 1813, 1815, 1816, 1757, 1760, 1854, 1698, 1821, /* 540 */ 1858, 1688, 1840, 1743, 1751, 1863, 1864, 1754, 1728, 1862, /* 550 */ 1822, 1618, 1791, 1789, 1792, 1805, 1826, 1832, 1806, 1794, /* 560 */ 1808, 1820, 1823, 1833, 1831, 1834, 1827, 1835, 1620, 1836, /* 570 */ 1837, 1869, 1838, 1631, 1848, 1888, 1889, 1890, 1892, 1893, /* 580 */ 1839, 1842, 1852, 1731, 1882, 1883, 1931, 1937, 1939, 1693, /* 590 */ 1894, 1845, 1847, 1850, 1849, 1853, 1796, 1855, 1942, 1908, /* 600 */ 1799, 1856, 1859, 1693, 1911, 1916, 1748, 1755, 1758, 1964, /* 610 */ 1955, 1797, 1884, 1885, 1887, 1896, 1895, 1897, 1933, 1899, /* 620 */ 1900, 1936, 1901, 1956, 1800, 1904, 1878, 1905, 1952, 1953, /* 630 */ 1907, 1909, 1954, 1912, 1913, 1961, 1915, 1918, 1965, 1917, /* 640 */ 1919, 1969, 1921, 1898, 1902, 1906, 1910, 1996, 1920, 1924, /* 650 */ 1976, 1928, 1989, 1938, 1976, 1976, 2004, 1967, 1971, 1993, /* 660 */ 1997, 2001, 2005, 2006, 2008, 2009, 2016, 2019, 2020, 1986, /* 670 */ 1947, 2013, 2023, 2024, 2025, 2039, 2028, 2029, 2030, 1998, /* 680 */ 1773, 2032, 1778, 2040, 2042, 2043, 2044, 2058, 2046, 2082, /* 690 */ 2050, 2038, 2048, 2088, 2055, 2041, 2052, 2093, 2059, 2047, /* 700 */ 2057, 2098, 2065, 2053, 2063, 2103, 2069, 2070, 2106, 2085, /* 710 */ 2087, 2089, 2090, 2092, 2095, }; #define YY_REDUCE_COUNT (292) #define YY_REDUCE_MIN (-414) #define YY_REDUCE_MAX (2320) static const short yy_reduce_ofst[] = { /* 0 */ -292, -297, -8, 233, 597, 620, 706, 783, 807, 852, /* 10 */ 907, 963, 1008, 1031, 1119, -320, 54, 1135, 1191, 1219, /* 20 */ 1281, 1336, 1398, 1428, 1486, 1502, 1547, 1563, 1640, 1664, /* 30 */ 1726, 1756, 1814, 1830, 1875, 1891, 1968, 1992, 2054, 2084, /* 40 */ 2142, 2158, 2203, 2219, 2296, 2320, -193, 256, 320, -383, /* 50 */ -332, -110, 605, 893, 302, 642, -337, -16, 273, -414, /* 60 */ -352, -171, 284, 310, -235, -199, -331, -187, -340, -368, /* 70 */ -255, -167, -304, -106, 190, 313, 387, 622, 623, -288, /* 80 */ 631, 784, 50, 817, 897, -43, 902, -213, 917, 35, /* 90 */ -159, 918, 937, -32, 998, -1, 255, 4, 630, -22, /* 100 */ 144, -411, -411, 215, -240, -312, 219, 301, 383, 389, /* 110 */ 436, 510, 513, 550, 552, 571, 593, 619, 621, 629, /* 120 */ 640, 688, 692, 697, -346, -228, -109, -329, 195, 173, /* 130 */ -228, 254, 339, -31, 199, 341, 470, 454, 583, 584, /* 140 */ -226, 224, 363, 616, 462, 627, 682, 694, 600, 636, /* 150 */ -343, 306, 318, 364, 396, 452, 519, 309, 557, 670, /* 160 */ 606, 579, 646, 738, 740, 850, 850, 890, 847, 904, /* 170 */ 900, 863, 856, 856, 833, 856, 926, 916, 850, 955, /* 180 */ 978, 989, 1010, 1011, 1015, 1019, 1064, 1065, 1025, 1029, /* 190 */ 1032, 1066, 1072, 1076, 1077, 1092, 1093, 1030, 1087, 1051, /* 200 */ 1089, 1099, 1059, 1107, 1111, 1109, 1110, 1112, 1117, 1113, /* 210 */ 1121, 1123, 1126, 1102, 1105, 1108, 1115, 1118, 1124, 1125, /* 220 */ 1128, 1129, 1130, 1131, 1132, 1136, 1086, 1103, 1061, 1073, /* 230 */ 1133, 1084, 1127, 1140, 1145, 1090, 1094, 1134, 1040, 1137, /* 240 */ 1138, 1050, 1144, 1139, 1141, 850, 1052, 1054, 1062, 1067, /* 250 */ 1063, 1075, 1148, 1055, 1068, 1082, 856, 1154, 1146, 1199, /* 260 */ 1202, 1197, 1167, 1166, 1182, 1183, 1184, 1187, 1188, 1170, /* 270 */ 1189, 1180, 1228, 1214, 1230, 1206, 1149, 1212, 1207, 1231, /* 280 */ 1240, 1242, 1250, 1254, 1192, 1190, 1208, 1215, 1236, 1239, /* 290 */ 1252, 1265, 1262, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 10 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 20 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 30 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 40 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 50 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 60 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1860, 1605, /* 70 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 80 */ 1605, 1605, 1683, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 90 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1681, /* 100 */ 1853, 2054, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 110 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 120 */ 1605, 1605, 1605, 1605, 1605, 2066, 1605, 1605, 1683, 1605, /* 130 */ 2066, 2066, 2066, 1681, 2026, 2026, 1605, 1605, 1605, 1605, /* 140 */ 1790, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1790, 1605, /* 150 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1899, 1605, 1605, /* 160 */ 2091, 2146, 1605, 1605, 2094, 1605, 1605, 1605, 1865, 1605, /* 170 */ 1743, 2081, 2058, 2072, 2130, 2059, 2056, 2075, 1605, 2085, /* 180 */ 1605, 1892, 1858, 1605, 1858, 1855, 1605, 1605, 1858, 1855, /* 190 */ 1855, 1734, 1605, 1605, 1605, 1605, 1605, 1605, 1683, 1605, /* 200 */ 1683, 1605, 1605, 1683, 1605, 1683, 1683, 1683, 1605, 1683, /* 210 */ 1662, 1662, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 220 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1913, 1605, /* 230 */ 1681, 1901, 1605, 1681, 1605, 1605, 1605, 1605, 2101, 2099, /* 240 */ 1605, 2101, 2099, 1605, 1605, 1605, 2115, 2111, 2101, 2119, /* 250 */ 2117, 2087, 2085, 2149, 2136, 2132, 2072, 1605, 1605, 1605, /* 260 */ 1605, 1681, 1605, 2099, 1605, 1605, 1605, 1605, 1605, 2099, /* 270 */ 1605, 1605, 1681, 1605, 1681, 1605, 1605, 1759, 1605, 1605, /* 280 */ 1605, 1681, 1637, 1605, 1894, 1905, 1877, 1877, 1793, 1793, /* 290 */ 1793, 1684, 1610, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 300 */ 1605, 1605, 1605, 1605, 1605, 2114, 2113, 1982, 1605, 2030, /* 310 */ 2029, 2028, 2019, 1981, 1755, 1605, 1980, 1979, 1605, 1605, /* 320 */ 1605, 1605, 1605, 1873, 1872, 1973, 1605, 1605, 1974, 1972, /* 330 */ 1971, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 340 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 350 */ 2133, 2137, 1605, 1605, 1605, 1605, 1605, 1605, 2055, 1605, /* 360 */ 1605, 1605, 1605, 1605, 1955, 1605, 1605, 1605, 1605, 1605, /* 370 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 380 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 390 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 400 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 410 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 420 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 430 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 440 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 450 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 460 */ 1605, 1605, 1605, 1642, 1960, 1605, 1605, 1605, 1605, 1605, /* 470 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 480 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 490 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 500 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 510 */ 1605, 1722, 1721, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 520 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 530 */ 1605, 1605, 1605, 1605, 1605, 1964, 1605, 1605, 1605, 1605, /* 540 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 2129, /* 550 */ 2088, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 560 */ 1605, 1605, 1605, 1605, 1605, 1955, 1605, 2112, 1605, 1605, /* 570 */ 2127, 1605, 2131, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 580 */ 2065, 2061, 1605, 1605, 2057, 1605, 1605, 1605, 1605, 1963, /* 590 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 600 */ 1605, 1605, 1605, 1954, 1605, 2016, 1605, 1605, 1605, 2050, /* 610 */ 1605, 1605, 2001, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 620 */ 1605, 1605, 1964, 1605, 1967, 1605, 1605, 1605, 1605, 1605, /* 630 */ 1787, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 640 */ 1605, 1605, 1605, 1772, 1770, 1769, 1768, 1605, 1765, 1605, /* 650 */ 1800, 1605, 1605, 1605, 1796, 1795, 1605, 1605, 1605, 1605, /* 660 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 670 */ 1605, 1702, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 680 */ 1694, 1605, 1693, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 690 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 700 */ 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, 1605, /* 710 */ 1605, 1605, 1605, 1605, 1605, }; /********** End of lemon-generated parsing tables *****************************/ /* The next table maps tokens (terminal symbols) into fallback tokens. ** If a construct like the following: ** ** %fallback ID X Y Z. ** ** appears in the grammar, then ID becomes a fallback token for X, Y, ** and Z. Whenever one of the tokens X, Y, or Z is input to the parser ** but it does not parse, the type of the token is changed to ID and ** the parse is retried before an error is thrown. ** ** This feature can be used, for example, to cause some keywords in a language ** to revert to identifiers if they keyword does not apply in the context where ** it appears. */ #ifdef YYFALLBACK static const YYCODETYPE yyFallback[] = { 0, /* $ => nothing */ 0, /* OR => nothing */ 0, /* AND => nothing */ 0, /* UNION => nothing */ 0, /* ALL => nothing */ 0, /* MINUS => nothing */ 0, /* EXCEPT => nothing */ 0, /* INTERSECT => nothing */ 0, /* NK_BITAND => nothing */ 0, /* NK_BITOR => nothing */ 0, /* NK_LSHIFT => nothing */ 0, /* NK_RSHIFT => nothing */ 0, /* NK_PLUS => nothing */ 0, /* NK_MINUS => nothing */ 0, /* NK_STAR => nothing */ 0, /* NK_SLASH => nothing */ 0, /* NK_REM => nothing */ 0, /* NK_CONCAT => nothing */ 0, /* CREATE => nothing */ 0, /* ACCOUNT => nothing */ 0, /* NK_ID => nothing */ 0, /* PASS => nothing */ 0, /* NK_STRING => nothing */ 0, /* ALTER => nothing */ 0, /* PPS => nothing */ 0, /* TSERIES => nothing */ 0, /* STORAGE => nothing */ 0, /* STREAMS => nothing */ 0, /* QTIME => nothing */ 0, /* DBS => nothing */ 0, /* USERS => nothing */ 0, /* CONNS => nothing */ 0, /* STATE => nothing */ 0, /* USER => nothing */ 0, /* ENABLE => nothing */ 0, /* NK_INTEGER => nothing */ 0, /* SYSINFO => nothing */ 0, /* DROP => nothing */ 0, /* GRANT => nothing */ 0, /* ON => nothing */ 0, /* TO => nothing */ 0, /* REVOKE => nothing */ 0, /* FROM => nothing */ 0, /* SUBSCRIBE => nothing */ 0, /* NK_COMMA => nothing */ 0, /* READ => nothing */ 0, /* WRITE => nothing */ 0, /* NK_DOT => nothing */ 0, /* DNODE => nothing */ 0, /* PORT => nothing */ 0, /* DNODES => nothing */ 0, /* NK_IPTOKEN => nothing */ 0, /* FORCE => nothing */ 0, /* LOCAL => nothing */ 0, /* QNODE => nothing */ 0, /* BNODE => nothing */ 0, /* SNODE => nothing */ 0, /* MNODE => nothing */ 0, /* DATABASE => nothing */ 0, /* USE => nothing */ 0, /* FLUSH => nothing */ 0, /* TRIM => nothing */ 0, /* IF => nothing */ 0, /* NOT => nothing */ 0, /* EXISTS => nothing */ 0, /* BUFFER => nothing */ 0, /* CACHEMODEL => nothing */ 0, /* CACHESIZE => nothing */ 0, /* COMP => nothing */ 0, /* DURATION => nothing */ 0, /* NK_VARIABLE => nothing */ 0, /* MAXROWS => nothing */ 0, /* MINROWS => nothing */ 0, /* KEEP => nothing */ 0, /* PAGES => nothing */ 0, /* PAGESIZE => nothing */ 0, /* TSDB_PAGESIZE => nothing */ 0, /* PRECISION => nothing */ 0, /* REPLICA => nothing */ 0, /* VGROUPS => nothing */ 0, /* SINGLE_STABLE => nothing */ 0, /* RETENTIONS => nothing */ 0, /* SCHEMALESS => nothing */ 0, /* WAL_LEVEL => nothing */ 0, /* WAL_FSYNC_PERIOD => nothing */ 0, /* WAL_RETENTION_PERIOD => nothing */ 0, /* WAL_RETENTION_SIZE => nothing */ 0, /* WAL_ROLL_PERIOD => nothing */ 0, /* WAL_SEGMENT_SIZE => nothing */ 0, /* STT_TRIGGER => nothing */ 0, /* TABLE_PREFIX => nothing */ 0, /* TABLE_SUFFIX => nothing */ 0, /* NK_COLON => nothing */ 0, /* MAX_SPEED => nothing */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ 0, /* STABLE => nothing */ 0, /* ADD => nothing */ 0, /* COLUMN => nothing */ 0, /* MODIFY => nothing */ 0, /* RENAME => nothing */ 0, /* TAG => nothing */ 0, /* SET => nothing */ 0, /* NK_EQ => nothing */ 0, /* USING => nothing */ 0, /* TAGS => nothing */ 0, /* COMMENT => nothing */ 0, /* BOOL => nothing */ 0, /* TINYINT => nothing */ 0, /* SMALLINT => nothing */ 0, /* INT => nothing */ 0, /* INTEGER => nothing */ 0, /* BIGINT => nothing */ 0, /* FLOAT => nothing */ 0, /* DOUBLE => nothing */ 0, /* BINARY => nothing */ 0, /* TIMESTAMP => nothing */ 0, /* NCHAR => nothing */ 0, /* UNSIGNED => nothing */ 0, /* JSON => nothing */ 0, /* VARCHAR => nothing */ 0, /* MEDIUMBLOB => nothing */ 0, /* BLOB => nothing */ 0, /* VARBINARY => nothing */ 0, /* DECIMAL => nothing */ 0, /* MAX_DELAY => nothing */ 0, /* WATERMARK => nothing */ 0, /* ROLLUP => nothing */ 0, /* TTL => nothing */ 0, /* SMA => nothing */ 0, /* DELETE_MARK => nothing */ 0, /* FIRST => nothing */ 0, /* LAST => nothing */ 0, /* SHOW => nothing */ 0, /* PRIVILEGES => nothing */ 0, /* DATABASES => nothing */ 0, /* TABLES => nothing */ 0, /* STABLES => nothing */ 0, /* MNODES => nothing */ 0, /* QNODES => nothing */ 0, /* FUNCTIONS => nothing */ 0, /* INDEXES => nothing */ 0, /* ACCOUNTS => nothing */ 0, /* APPS => nothing */ 0, /* CONNECTIONS => nothing */ 0, /* LICENCES => nothing */ 0, /* GRANTS => nothing */ 0, /* QUERIES => nothing */ 0, /* SCORES => nothing */ 0, /* TOPICS => nothing */ 0, /* VARIABLES => nothing */ 0, /* CLUSTER => nothing */ 0, /* BNODES => nothing */ 0, /* SNODES => nothing */ 0, /* TRANSACTIONS => nothing */ 0, /* DISTRIBUTED => nothing */ 0, /* CONSUMERS => nothing */ 0, /* SUBSCRIPTIONS => nothing */ 0, /* VNODES => nothing */ 0, /* LIKE => nothing */ 0, /* TBNAME => nothing */ 0, /* QTAGS => nothing */ 0, /* AS => nothing */ 0, /* INDEX => nothing */ 0, /* FUNCTION => nothing */ 0, /* INTERVAL => nothing */ 0, /* TOPIC => nothing */ 0, /* WITH => nothing */ 0, /* META => nothing */ 0, /* CONSUMER => nothing */ 0, /* GROUP => nothing */ 0, /* DESC => nothing */ 0, /* DESCRIBE => nothing */ 0, /* RESET => nothing */ 0, /* QUERY => nothing */ 0, /* CACHE => nothing */ 0, /* EXPLAIN => nothing */ 0, /* ANALYZE => nothing */ 0, /* VERBOSE => nothing */ 0, /* NK_BOOL => nothing */ 0, /* RATIO => nothing */ 0, /* NK_FLOAT => nothing */ 0, /* OUTPUTTYPE => nothing */ 0, /* AGGREGATE => nothing */ 0, /* BUFSIZE => nothing */ 0, /* STREAM => nothing */ 0, /* INTO => nothing */ 0, /* TRIGGER => nothing */ 0, /* AT_ONCE => nothing */ 0, /* WINDOW_CLOSE => nothing */ 0, /* IGNORE => nothing */ 0, /* EXPIRED => nothing */ 0, /* FILL_HISTORY => nothing */ 0, /* UPDATE => nothing */ 0, /* SUBTABLE => nothing */ 0, /* KILL => nothing */ 0, /* CONNECTION => nothing */ 0, /* TRANSACTION => nothing */ 0, /* BALANCE => nothing */ 0, /* VGROUP => nothing */ 0, /* MERGE => nothing */ 0, /* REDISTRIBUTE => nothing */ 0, /* SPLIT => nothing */ 0, /* DELETE => nothing */ 0, /* INSERT => nothing */ 0, /* NULL => nothing */ 0, /* NK_QUESTION => nothing */ 0, /* NK_ARROW => nothing */ 0, /* ROWTS => nothing */ 0, /* QSTART => nothing */ 0, /* QEND => nothing */ 0, /* QDURATION => nothing */ 0, /* WSTART => nothing */ 0, /* WEND => nothing */ 0, /* WDURATION => nothing */ 0, /* IROWTS => nothing */ 0, /* CAST => nothing */ 0, /* NOW => nothing */ 0, /* TODAY => nothing */ 0, /* TIMEZONE => nothing */ 0, /* CLIENT_VERSION => nothing */ 0, /* SERVER_VERSION => nothing */ 0, /* SERVER_STATUS => nothing */ 0, /* CURRENT_USER => nothing */ 0, /* COUNT => nothing */ 0, /* LAST_ROW => nothing */ 0, /* CASE => nothing */ 271, /* END => ABORT */ 0, /* WHEN => nothing */ 0, /* THEN => nothing */ 0, /* ELSE => nothing */ 0, /* BETWEEN => nothing */ 0, /* IS => nothing */ 0, /* NK_LT => nothing */ 0, /* NK_GT => nothing */ 0, /* NK_LE => nothing */ 0, /* NK_GE => nothing */ 0, /* NK_NE => nothing */ 0, /* MATCH => nothing */ 0, /* NMATCH => nothing */ 0, /* CONTAINS => nothing */ 0, /* IN => nothing */ 0, /* JOIN => nothing */ 0, /* INNER => nothing */ 0, /* SELECT => nothing */ 0, /* DISTINCT => nothing */ 0, /* WHERE => nothing */ 0, /* PARTITION => nothing */ 0, /* BY => nothing */ 0, /* SESSION => nothing */ 0, /* STATE_WINDOW => nothing */ 0, /* SLIDING => nothing */ 0, /* FILL => nothing */ 0, /* VALUE => nothing */ 0, /* VALUE_F => nothing */ 0, /* NONE => nothing */ 0, /* PREV => nothing */ 0, /* NULL_F => nothing */ 0, /* LINEAR => nothing */ 0, /* NEXT => nothing */ 0, /* HAVING => nothing */ 0, /* RANGE => nothing */ 0, /* EVERY => nothing */ 0, /* ORDER => nothing */ 0, /* SLIMIT => nothing */ 0, /* SOFFSET => nothing */ 0, /* LIMIT => nothing */ 0, /* OFFSET => nothing */ 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ABORT => nothing */ 271, /* AFTER => ABORT */ 271, /* ATTACH => ABORT */ 271, /* BEFORE => ABORT */ 271, /* BEGIN => ABORT */ 271, /* BITAND => ABORT */ 271, /* BITNOT => ABORT */ 271, /* BITOR => ABORT */ 271, /* BLOCKS => ABORT */ 271, /* CHANGE => ABORT */ 271, /* COMMA => ABORT */ 271, /* COMPACT => ABORT */ 271, /* CONCAT => ABORT */ 271, /* CONFLICT => ABORT */ 271, /* COPY => ABORT */ 271, /* DEFERRED => ABORT */ 271, /* DELIMITERS => ABORT */ 271, /* DETACH => ABORT */ 271, /* DIVIDE => ABORT */ 271, /* DOT => ABORT */ 271, /* EACH => ABORT */ 271, /* FAIL => ABORT */ 271, /* FILE => ABORT */ 271, /* FOR => ABORT */ 271, /* GLOB => ABORT */ 271, /* ID => ABORT */ 271, /* IMMEDIATE => ABORT */ 271, /* IMPORT => ABORT */ 271, /* INITIALLY => ABORT */ 271, /* INSTEAD => ABORT */ 271, /* ISNULL => ABORT */ 271, /* KEY => ABORT */ 271, /* MODULES => ABORT */ 271, /* NK_BITNOT => ABORT */ 271, /* NK_SEMI => ABORT */ 271, /* NOTNULL => ABORT */ 271, /* OF => ABORT */ 271, /* PLUS => ABORT */ 271, /* PRIVILEGE => ABORT */ 271, /* RAISE => ABORT */ 271, /* REPLACE => ABORT */ 271, /* RESTRICT => ABORT */ 271, /* ROW => ABORT */ 271, /* SEMI => ABORT */ 271, /* STAR => ABORT */ 271, /* STATEMENT => ABORT */ 271, /* STRICT => ABORT */ 271, /* STRING => ABORT */ 271, /* TIMES => ABORT */ 271, /* VALUES => ABORT */ 271, /* VARIABLE => ABORT */ 271, /* VIEW => ABORT */ 271, /* WAL => ABORT */ }; #endif /* YYFALLBACK */ /* The following structure represents a single element of the ** parser's stack. Information stored includes: ** ** + The state number for the parser at this level of the stack. ** ** + The value of the token stored at this level of the stack. ** (In other words, the "major" token.) ** ** + The semantic value stored at this level of the stack. This is ** the information used by the action routines in the grammar. ** It is sometimes called the "minor" token. ** ** After the "shift" half of a SHIFTREDUCE action, the stateno field ** actually contains the reduce action for the second half of the ** SHIFTREDUCE. */ struct yyStackEntry { YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */ YYCODETYPE major; /* The major token value. This is the code ** number for the token at this stack level */ YYMINORTYPE minor; /* The user-supplied minor token value. This ** is the value of the token */ }; typedef struct yyStackEntry yyStackEntry; /* The state of the parser is completely contained in an instance of ** the following structure */ struct yyParser { yyStackEntry *yytos; /* Pointer to top element of the stack */ #ifdef YYTRACKMAXSTACKDEPTH int yyhwm; /* High-water mark of the stack */ #endif #ifndef YYNOERRORRECOVERY int yyerrcnt; /* Shifts left before out of the error */ #endif ParseARG_SDECL /* A place to hold %extra_argument */ ParseCTX_SDECL /* A place to hold %extra_context */ #if YYSTACKDEPTH<=0 int yystksz; /* Current side of the stack */ yyStackEntry *yystack; /* The parser's stack */ yyStackEntry yystk0; /* First stack entry */ #else yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */ yyStackEntry *yystackEnd; /* Last entry in the stack */ #endif }; typedef struct yyParser yyParser; #ifndef NDEBUG #include static FILE *yyTraceFILE = 0; static char *yyTracePrompt = 0; #endif /* NDEBUG */ #ifndef NDEBUG /* ** Turn parser tracing on by giving a stream to which to write the trace ** and a prompt to preface each trace message. Tracing is turned off ** by making either argument NULL ** ** Inputs: **
    **
  • A FILE* to which trace output should be written. ** If NULL, then tracing is turned off. **
  • A prefix string written at the beginning of every ** line of trace output. If NULL, then tracing is ** turned off. **
** ** Outputs: ** None. */ void ParseTrace(FILE *TraceFILE, char *zTracePrompt){ yyTraceFILE = TraceFILE; yyTracePrompt = zTracePrompt; if( yyTraceFILE==0 ) yyTracePrompt = 0; else if( yyTracePrompt==0 ) yyTraceFILE = 0; } #endif /* NDEBUG */ #if defined(YYCOVERAGE) || !defined(NDEBUG) /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ static const char *const yyTokenName[] = { /* 0 */ "$", /* 1 */ "OR", /* 2 */ "AND", /* 3 */ "UNION", /* 4 */ "ALL", /* 5 */ "MINUS", /* 6 */ "EXCEPT", /* 7 */ "INTERSECT", /* 8 */ "NK_BITAND", /* 9 */ "NK_BITOR", /* 10 */ "NK_LSHIFT", /* 11 */ "NK_RSHIFT", /* 12 */ "NK_PLUS", /* 13 */ "NK_MINUS", /* 14 */ "NK_STAR", /* 15 */ "NK_SLASH", /* 16 */ "NK_REM", /* 17 */ "NK_CONCAT", /* 18 */ "CREATE", /* 19 */ "ACCOUNT", /* 20 */ "NK_ID", /* 21 */ "PASS", /* 22 */ "NK_STRING", /* 23 */ "ALTER", /* 24 */ "PPS", /* 25 */ "TSERIES", /* 26 */ "STORAGE", /* 27 */ "STREAMS", /* 28 */ "QTIME", /* 29 */ "DBS", /* 30 */ "USERS", /* 31 */ "CONNS", /* 32 */ "STATE", /* 33 */ "USER", /* 34 */ "ENABLE", /* 35 */ "NK_INTEGER", /* 36 */ "SYSINFO", /* 37 */ "DROP", /* 38 */ "GRANT", /* 39 */ "ON", /* 40 */ "TO", /* 41 */ "REVOKE", /* 42 */ "FROM", /* 43 */ "SUBSCRIBE", /* 44 */ "NK_COMMA", /* 45 */ "READ", /* 46 */ "WRITE", /* 47 */ "NK_DOT", /* 48 */ "DNODE", /* 49 */ "PORT", /* 50 */ "DNODES", /* 51 */ "NK_IPTOKEN", /* 52 */ "FORCE", /* 53 */ "LOCAL", /* 54 */ "QNODE", /* 55 */ "BNODE", /* 56 */ "SNODE", /* 57 */ "MNODE", /* 58 */ "DATABASE", /* 59 */ "USE", /* 60 */ "FLUSH", /* 61 */ "TRIM", /* 62 */ "IF", /* 63 */ "NOT", /* 64 */ "EXISTS", /* 65 */ "BUFFER", /* 66 */ "CACHEMODEL", /* 67 */ "CACHESIZE", /* 68 */ "COMP", /* 69 */ "DURATION", /* 70 */ "NK_VARIABLE", /* 71 */ "MAXROWS", /* 72 */ "MINROWS", /* 73 */ "KEEP", /* 74 */ "PAGES", /* 75 */ "PAGESIZE", /* 76 */ "TSDB_PAGESIZE", /* 77 */ "PRECISION", /* 78 */ "REPLICA", /* 79 */ "VGROUPS", /* 80 */ "SINGLE_STABLE", /* 81 */ "RETENTIONS", /* 82 */ "SCHEMALESS", /* 83 */ "WAL_LEVEL", /* 84 */ "WAL_FSYNC_PERIOD", /* 85 */ "WAL_RETENTION_PERIOD", /* 86 */ "WAL_RETENTION_SIZE", /* 87 */ "WAL_ROLL_PERIOD", /* 88 */ "WAL_SEGMENT_SIZE", /* 89 */ "STT_TRIGGER", /* 90 */ "TABLE_PREFIX", /* 91 */ "TABLE_SUFFIX", /* 92 */ "NK_COLON", /* 93 */ "MAX_SPEED", /* 94 */ "TABLE", /* 95 */ "NK_LP", /* 96 */ "NK_RP", /* 97 */ "STABLE", /* 98 */ "ADD", /* 99 */ "COLUMN", /* 100 */ "MODIFY", /* 101 */ "RENAME", /* 102 */ "TAG", /* 103 */ "SET", /* 104 */ "NK_EQ", /* 105 */ "USING", /* 106 */ "TAGS", /* 107 */ "COMMENT", /* 108 */ "BOOL", /* 109 */ "TINYINT", /* 110 */ "SMALLINT", /* 111 */ "INT", /* 112 */ "INTEGER", /* 113 */ "BIGINT", /* 114 */ "FLOAT", /* 115 */ "DOUBLE", /* 116 */ "BINARY", /* 117 */ "TIMESTAMP", /* 118 */ "NCHAR", /* 119 */ "UNSIGNED", /* 120 */ "JSON", /* 121 */ "VARCHAR", /* 122 */ "MEDIUMBLOB", /* 123 */ "BLOB", /* 124 */ "VARBINARY", /* 125 */ "DECIMAL", /* 126 */ "MAX_DELAY", /* 127 */ "WATERMARK", /* 128 */ "ROLLUP", /* 129 */ "TTL", /* 130 */ "SMA", /* 131 */ "DELETE_MARK", /* 132 */ "FIRST", /* 133 */ "LAST", /* 134 */ "SHOW", /* 135 */ "PRIVILEGES", /* 136 */ "DATABASES", /* 137 */ "TABLES", /* 138 */ "STABLES", /* 139 */ "MNODES", /* 140 */ "QNODES", /* 141 */ "FUNCTIONS", /* 142 */ "INDEXES", /* 143 */ "ACCOUNTS", /* 144 */ "APPS", /* 145 */ "CONNECTIONS", /* 146 */ "LICENCES", /* 147 */ "GRANTS", /* 148 */ "QUERIES", /* 149 */ "SCORES", /* 150 */ "TOPICS", /* 151 */ "VARIABLES", /* 152 */ "CLUSTER", /* 153 */ "BNODES", /* 154 */ "SNODES", /* 155 */ "TRANSACTIONS", /* 156 */ "DISTRIBUTED", /* 157 */ "CONSUMERS", /* 158 */ "SUBSCRIPTIONS", /* 159 */ "VNODES", /* 160 */ "LIKE", /* 161 */ "TBNAME", /* 162 */ "QTAGS", /* 163 */ "AS", /* 164 */ "INDEX", /* 165 */ "FUNCTION", /* 166 */ "INTERVAL", /* 167 */ "TOPIC", /* 168 */ "WITH", /* 169 */ "META", /* 170 */ "CONSUMER", /* 171 */ "GROUP", /* 172 */ "DESC", /* 173 */ "DESCRIBE", /* 174 */ "RESET", /* 175 */ "QUERY", /* 176 */ "CACHE", /* 177 */ "EXPLAIN", /* 178 */ "ANALYZE", /* 179 */ "VERBOSE", /* 180 */ "NK_BOOL", /* 181 */ "RATIO", /* 182 */ "NK_FLOAT", /* 183 */ "OUTPUTTYPE", /* 184 */ "AGGREGATE", /* 185 */ "BUFSIZE", /* 186 */ "STREAM", /* 187 */ "INTO", /* 188 */ "TRIGGER", /* 189 */ "AT_ONCE", /* 190 */ "WINDOW_CLOSE", /* 191 */ "IGNORE", /* 192 */ "EXPIRED", /* 193 */ "FILL_HISTORY", /* 194 */ "UPDATE", /* 195 */ "SUBTABLE", /* 196 */ "KILL", /* 197 */ "CONNECTION", /* 198 */ "TRANSACTION", /* 199 */ "BALANCE", /* 200 */ "VGROUP", /* 201 */ "MERGE", /* 202 */ "REDISTRIBUTE", /* 203 */ "SPLIT", /* 204 */ "DELETE", /* 205 */ "INSERT", /* 206 */ "NULL", /* 207 */ "NK_QUESTION", /* 208 */ "NK_ARROW", /* 209 */ "ROWTS", /* 210 */ "QSTART", /* 211 */ "QEND", /* 212 */ "QDURATION", /* 213 */ "WSTART", /* 214 */ "WEND", /* 215 */ "WDURATION", /* 216 */ "IROWTS", /* 217 */ "CAST", /* 218 */ "NOW", /* 219 */ "TODAY", /* 220 */ "TIMEZONE", /* 221 */ "CLIENT_VERSION", /* 222 */ "SERVER_VERSION", /* 223 */ "SERVER_STATUS", /* 224 */ "CURRENT_USER", /* 225 */ "COUNT", /* 226 */ "LAST_ROW", /* 227 */ "CASE", /* 228 */ "END", /* 229 */ "WHEN", /* 230 */ "THEN", /* 231 */ "ELSE", /* 232 */ "BETWEEN", /* 233 */ "IS", /* 234 */ "NK_LT", /* 235 */ "NK_GT", /* 236 */ "NK_LE", /* 237 */ "NK_GE", /* 238 */ "NK_NE", /* 239 */ "MATCH", /* 240 */ "NMATCH", /* 241 */ "CONTAINS", /* 242 */ "IN", /* 243 */ "JOIN", /* 244 */ "INNER", /* 245 */ "SELECT", /* 246 */ "DISTINCT", /* 247 */ "WHERE", /* 248 */ "PARTITION", /* 249 */ "BY", /* 250 */ "SESSION", /* 251 */ "STATE_WINDOW", /* 252 */ "SLIDING", /* 253 */ "FILL", /* 254 */ "VALUE", /* 255 */ "VALUE_F", /* 256 */ "NONE", /* 257 */ "PREV", /* 258 */ "NULL_F", /* 259 */ "LINEAR", /* 260 */ "NEXT", /* 261 */ "HAVING", /* 262 */ "RANGE", /* 263 */ "EVERY", /* 264 */ "ORDER", /* 265 */ "SLIMIT", /* 266 */ "SOFFSET", /* 267 */ "LIMIT", /* 268 */ "OFFSET", /* 269 */ "ASC", /* 270 */ "NULLS", /* 271 */ "ABORT", /* 272 */ "AFTER", /* 273 */ "ATTACH", /* 274 */ "BEFORE", /* 275 */ "BEGIN", /* 276 */ "BITAND", /* 277 */ "BITNOT", /* 278 */ "BITOR", /* 279 */ "BLOCKS", /* 280 */ "CHANGE", /* 281 */ "COMMA", /* 282 */ "COMPACT", /* 283 */ "CONCAT", /* 284 */ "CONFLICT", /* 285 */ "COPY", /* 286 */ "DEFERRED", /* 287 */ "DELIMITERS", /* 288 */ "DETACH", /* 289 */ "DIVIDE", /* 290 */ "DOT", /* 291 */ "EACH", /* 292 */ "FAIL", /* 293 */ "FILE", /* 294 */ "FOR", /* 295 */ "GLOB", /* 296 */ "ID", /* 297 */ "IMMEDIATE", /* 298 */ "IMPORT", /* 299 */ "INITIALLY", /* 300 */ "INSTEAD", /* 301 */ "ISNULL", /* 302 */ "KEY", /* 303 */ "MODULES", /* 304 */ "NK_BITNOT", /* 305 */ "NK_SEMI", /* 306 */ "NOTNULL", /* 307 */ "OF", /* 308 */ "PLUS", /* 309 */ "PRIVILEGE", /* 310 */ "RAISE", /* 311 */ "REPLACE", /* 312 */ "RESTRICT", /* 313 */ "ROW", /* 314 */ "SEMI", /* 315 */ "STAR", /* 316 */ "STATEMENT", /* 317 */ "STRICT", /* 318 */ "STRING", /* 319 */ "TIMES", /* 320 */ "VALUES", /* 321 */ "VARIABLE", /* 322 */ "VIEW", /* 323 */ "WAL", /* 324 */ "cmd", /* 325 */ "account_options", /* 326 */ "alter_account_options", /* 327 */ "literal", /* 328 */ "alter_account_option", /* 329 */ "user_name", /* 330 */ "sysinfo_opt", /* 331 */ "privileges", /* 332 */ "priv_level", /* 333 */ "priv_type_list", /* 334 */ "priv_type", /* 335 */ "db_name", /* 336 */ "topic_name", /* 337 */ "dnode_endpoint", /* 338 */ "force_opt", /* 339 */ "not_exists_opt", /* 340 */ "db_options", /* 341 */ "exists_opt", /* 342 */ "alter_db_options", /* 343 */ "speed_opt", /* 344 */ "integer_list", /* 345 */ "variable_list", /* 346 */ "retention_list", /* 347 */ "alter_db_option", /* 348 */ "retention", /* 349 */ "full_table_name", /* 350 */ "column_def_list", /* 351 */ "tags_def_opt", /* 352 */ "table_options", /* 353 */ "multi_create_clause", /* 354 */ "tags_def", /* 355 */ "multi_drop_clause", /* 356 */ "alter_table_clause", /* 357 */ "alter_table_options", /* 358 */ "column_name", /* 359 */ "type_name", /* 360 */ "signed_literal", /* 361 */ "create_subtable_clause", /* 362 */ "specific_cols_opt", /* 363 */ "expression_list", /* 364 */ "drop_table_clause", /* 365 */ "col_name_list", /* 366 */ "table_name", /* 367 */ "column_def", /* 368 */ "duration_list", /* 369 */ "rollup_func_list", /* 370 */ "alter_table_option", /* 371 */ "duration_literal", /* 372 */ "rollup_func_name", /* 373 */ "function_name", /* 374 */ "col_name", /* 375 */ "db_name_cond_opt", /* 376 */ "like_pattern_opt", /* 377 */ "table_name_cond", /* 378 */ "from_db_opt", /* 379 */ "tag_list_opt", /* 380 */ "tag_item", /* 381 */ "column_alias", /* 382 */ "full_index_name", /* 383 */ "index_options", /* 384 */ "index_name", /* 385 */ "func_list", /* 386 */ "sliding_opt", /* 387 */ "sma_stream_opt", /* 388 */ "func", /* 389 */ "query_or_subquery", /* 390 */ "cgroup_name", /* 391 */ "analyze_opt", /* 392 */ "explain_options", /* 393 */ "agg_func_opt", /* 394 */ "bufsize_opt", /* 395 */ "stream_name", /* 396 */ "stream_options", /* 397 */ "subtable_opt", /* 398 */ "expression", /* 399 */ "dnode_list", /* 400 */ "where_clause_opt", /* 401 */ "signed", /* 402 */ "literal_func", /* 403 */ "literal_list", /* 404 */ "table_alias", /* 405 */ "expr_or_subquery", /* 406 */ "pseudo_column", /* 407 */ "column_reference", /* 408 */ "function_expression", /* 409 */ "case_when_expression", /* 410 */ "star_func", /* 411 */ "star_func_para_list", /* 412 */ "noarg_func", /* 413 */ "other_para_list", /* 414 */ "star_func_para", /* 415 */ "when_then_list", /* 416 */ "case_when_else_opt", /* 417 */ "common_expression", /* 418 */ "when_then_expr", /* 419 */ "predicate", /* 420 */ "compare_op", /* 421 */ "in_op", /* 422 */ "in_predicate_value", /* 423 */ "boolean_value_expression", /* 424 */ "boolean_primary", /* 425 */ "from_clause_opt", /* 426 */ "table_reference_list", /* 427 */ "table_reference", /* 428 */ "table_primary", /* 429 */ "joined_table", /* 430 */ "alias_opt", /* 431 */ "subquery", /* 432 */ "parenthesized_joined_table", /* 433 */ "join_type", /* 434 */ "search_condition", /* 435 */ "query_specification", /* 436 */ "set_quantifier_opt", /* 437 */ "select_list", /* 438 */ "partition_by_clause_opt", /* 439 */ "range_opt", /* 440 */ "every_opt", /* 441 */ "fill_opt", /* 442 */ "twindow_clause_opt", /* 443 */ "group_by_clause_opt", /* 444 */ "having_clause_opt", /* 445 */ "select_item", /* 446 */ "partition_list", /* 447 */ "partition_item", /* 448 */ "fill_mode", /* 449 */ "group_by_list", /* 450 */ "query_expression", /* 451 */ "query_simple", /* 452 */ "order_by_clause_opt", /* 453 */ "slimit_clause_opt", /* 454 */ "limit_clause_opt", /* 455 */ "union_query_expression", /* 456 */ "query_simple_or_subquery", /* 457 */ "sort_specification_list", /* 458 */ "sort_specification", /* 459 */ "ordering_specification_opt", /* 460 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ #ifndef NDEBUG /* For tracing reduce actions, the names of all rules are required. */ static const char *const yyRuleName[] = { /* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options", /* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options", /* 2 */ "account_options ::=", /* 3 */ "account_options ::= account_options PPS literal", /* 4 */ "account_options ::= account_options TSERIES literal", /* 5 */ "account_options ::= account_options STORAGE literal", /* 6 */ "account_options ::= account_options STREAMS literal", /* 7 */ "account_options ::= account_options QTIME literal", /* 8 */ "account_options ::= account_options DBS literal", /* 9 */ "account_options ::= account_options USERS literal", /* 10 */ "account_options ::= account_options CONNS literal", /* 11 */ "account_options ::= account_options STATE literal", /* 12 */ "alter_account_options ::= alter_account_option", /* 13 */ "alter_account_options ::= alter_account_options alter_account_option", /* 14 */ "alter_account_option ::= PASS literal", /* 15 */ "alter_account_option ::= PPS literal", /* 16 */ "alter_account_option ::= TSERIES literal", /* 17 */ "alter_account_option ::= STORAGE literal", /* 18 */ "alter_account_option ::= STREAMS literal", /* 19 */ "alter_account_option ::= QTIME literal", /* 20 */ "alter_account_option ::= DBS literal", /* 21 */ "alter_account_option ::= USERS literal", /* 22 */ "alter_account_option ::= CONNS literal", /* 23 */ "alter_account_option ::= STATE literal", /* 24 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt", /* 25 */ "cmd ::= ALTER USER user_name PASS NK_STRING", /* 26 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER", /* 27 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER", /* 28 */ "cmd ::= DROP USER user_name", /* 29 */ "sysinfo_opt ::=", /* 30 */ "sysinfo_opt ::= SYSINFO NK_INTEGER", /* 31 */ "cmd ::= GRANT privileges ON priv_level TO user_name", /* 32 */ "cmd ::= REVOKE privileges ON priv_level FROM user_name", /* 33 */ "privileges ::= ALL", /* 34 */ "privileges ::= priv_type_list", /* 35 */ "privileges ::= SUBSCRIBE", /* 36 */ "priv_type_list ::= priv_type", /* 37 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", /* 38 */ "priv_type ::= READ", /* 39 */ "priv_type ::= WRITE", /* 40 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", /* 41 */ "priv_level ::= db_name NK_DOT NK_STAR", /* 42 */ "priv_level ::= topic_name", /* 43 */ "cmd ::= CREATE DNODE dnode_endpoint", /* 44 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", /* 45 */ "cmd ::= DROP DNODE NK_INTEGER force_opt", /* 46 */ "cmd ::= DROP DNODE dnode_endpoint force_opt", /* 47 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", /* 48 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", /* 49 */ "cmd ::= ALTER ALL DNODES NK_STRING", /* 50 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", /* 51 */ "dnode_endpoint ::= NK_STRING", /* 52 */ "dnode_endpoint ::= NK_ID", /* 53 */ "dnode_endpoint ::= NK_IPTOKEN", /* 54 */ "force_opt ::=", /* 55 */ "force_opt ::= FORCE", /* 56 */ "cmd ::= ALTER LOCAL NK_STRING", /* 57 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", /* 58 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", /* 59 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", /* 60 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", /* 61 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", /* 62 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", /* 63 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", /* 64 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", /* 65 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", /* 66 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", /* 67 */ "cmd ::= DROP DATABASE exists_opt db_name", /* 68 */ "cmd ::= USE db_name", /* 69 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 70 */ "cmd ::= FLUSH DATABASE db_name", /* 71 */ "cmd ::= TRIM DATABASE db_name speed_opt", /* 72 */ "not_exists_opt ::= IF NOT EXISTS", /* 73 */ "not_exists_opt ::=", /* 74 */ "exists_opt ::= IF EXISTS", /* 75 */ "exists_opt ::=", /* 76 */ "db_options ::=", /* 77 */ "db_options ::= db_options BUFFER NK_INTEGER", /* 78 */ "db_options ::= db_options CACHEMODEL NK_STRING", /* 79 */ "db_options ::= db_options CACHESIZE NK_INTEGER", /* 80 */ "db_options ::= db_options COMP NK_INTEGER", /* 81 */ "db_options ::= db_options DURATION NK_INTEGER", /* 82 */ "db_options ::= db_options DURATION NK_VARIABLE", /* 83 */ "db_options ::= db_options MAXROWS NK_INTEGER", /* 84 */ "db_options ::= db_options MINROWS NK_INTEGER", /* 85 */ "db_options ::= db_options KEEP integer_list", /* 86 */ "db_options ::= db_options KEEP variable_list", /* 87 */ "db_options ::= db_options PAGES NK_INTEGER", /* 88 */ "db_options ::= db_options PAGESIZE NK_INTEGER", /* 89 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", /* 90 */ "db_options ::= db_options PRECISION NK_STRING", /* 91 */ "db_options ::= db_options REPLICA NK_INTEGER", /* 92 */ "db_options ::= db_options VGROUPS NK_INTEGER", /* 93 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", /* 94 */ "db_options ::= db_options RETENTIONS retention_list", /* 95 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", /* 96 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", /* 97 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", /* 98 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", /* 99 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 100 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", /* 101 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 102 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", /* 103 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", /* 104 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", /* 105 */ "db_options ::= db_options TABLE_PREFIX NK_INTEGER", /* 106 */ "db_options ::= db_options TABLE_SUFFIX NK_INTEGER", /* 107 */ "alter_db_options ::= alter_db_option", /* 108 */ "alter_db_options ::= alter_db_options alter_db_option", /* 109 */ "alter_db_option ::= BUFFER NK_INTEGER", /* 110 */ "alter_db_option ::= CACHEMODEL NK_STRING", /* 111 */ "alter_db_option ::= CACHESIZE NK_INTEGER", /* 112 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", /* 113 */ "alter_db_option ::= KEEP integer_list", /* 114 */ "alter_db_option ::= KEEP variable_list", /* 115 */ "alter_db_option ::= PAGES NK_INTEGER", /* 116 */ "alter_db_option ::= REPLICA NK_INTEGER", /* 117 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", /* 118 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", /* 119 */ "integer_list ::= NK_INTEGER", /* 120 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", /* 121 */ "variable_list ::= NK_VARIABLE", /* 122 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", /* 123 */ "retention_list ::= retention", /* 124 */ "retention_list ::= retention_list NK_COMMA retention", /* 125 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", /* 126 */ "speed_opt ::=", /* 127 */ "speed_opt ::= MAX_SPEED NK_INTEGER", /* 128 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", /* 129 */ "cmd ::= CREATE TABLE multi_create_clause", /* 130 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", /* 131 */ "cmd ::= DROP TABLE multi_drop_clause", /* 132 */ "cmd ::= DROP STABLE exists_opt full_table_name", /* 133 */ "cmd ::= ALTER TABLE alter_table_clause", /* 134 */ "cmd ::= ALTER STABLE alter_table_clause", /* 135 */ "alter_table_clause ::= full_table_name alter_table_options", /* 136 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", /* 137 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", /* 138 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", /* 139 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", /* 140 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", /* 141 */ "alter_table_clause ::= full_table_name DROP TAG column_name", /* 142 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", /* 143 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", /* 144 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", /* 145 */ "multi_create_clause ::= create_subtable_clause", /* 146 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", /* 147 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options", /* 148 */ "multi_drop_clause ::= drop_table_clause", /* 149 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", /* 150 */ "drop_table_clause ::= exists_opt full_table_name", /* 151 */ "specific_cols_opt ::=", /* 152 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", /* 153 */ "full_table_name ::= table_name", /* 154 */ "full_table_name ::= db_name NK_DOT table_name", /* 155 */ "column_def_list ::= column_def", /* 156 */ "column_def_list ::= column_def_list NK_COMMA column_def", /* 157 */ "column_def ::= column_name type_name", /* 158 */ "column_def ::= column_name type_name COMMENT NK_STRING", /* 159 */ "type_name ::= BOOL", /* 160 */ "type_name ::= TINYINT", /* 161 */ "type_name ::= SMALLINT", /* 162 */ "type_name ::= INT", /* 163 */ "type_name ::= INTEGER", /* 164 */ "type_name ::= BIGINT", /* 165 */ "type_name ::= FLOAT", /* 166 */ "type_name ::= DOUBLE", /* 167 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", /* 168 */ "type_name ::= TIMESTAMP", /* 169 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", /* 170 */ "type_name ::= TINYINT UNSIGNED", /* 171 */ "type_name ::= SMALLINT UNSIGNED", /* 172 */ "type_name ::= INT UNSIGNED", /* 173 */ "type_name ::= BIGINT UNSIGNED", /* 174 */ "type_name ::= JSON", /* 175 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", /* 176 */ "type_name ::= MEDIUMBLOB", /* 177 */ "type_name ::= BLOB", /* 178 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", /* 179 */ "type_name ::= DECIMAL", /* 180 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 181 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 182 */ "tags_def_opt ::=", /* 183 */ "tags_def_opt ::= tags_def", /* 184 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", /* 185 */ "table_options ::=", /* 186 */ "table_options ::= table_options COMMENT NK_STRING", /* 187 */ "table_options ::= table_options MAX_DELAY duration_list", /* 188 */ "table_options ::= table_options WATERMARK duration_list", /* 189 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", /* 190 */ "table_options ::= table_options TTL NK_INTEGER", /* 191 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", /* 192 */ "table_options ::= table_options DELETE_MARK duration_list", /* 193 */ "alter_table_options ::= alter_table_option", /* 194 */ "alter_table_options ::= alter_table_options alter_table_option", /* 195 */ "alter_table_option ::= COMMENT NK_STRING", /* 196 */ "alter_table_option ::= TTL NK_INTEGER", /* 197 */ "duration_list ::= duration_literal", /* 198 */ "duration_list ::= duration_list NK_COMMA duration_literal", /* 199 */ "rollup_func_list ::= rollup_func_name", /* 200 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", /* 201 */ "rollup_func_name ::= function_name", /* 202 */ "rollup_func_name ::= FIRST", /* 203 */ "rollup_func_name ::= LAST", /* 204 */ "col_name_list ::= col_name", /* 205 */ "col_name_list ::= col_name_list NK_COMMA col_name", /* 206 */ "col_name ::= column_name", /* 207 */ "cmd ::= SHOW DNODES", /* 208 */ "cmd ::= SHOW USERS", /* 209 */ "cmd ::= SHOW USER PRIVILEGES", /* 210 */ "cmd ::= SHOW DATABASES", /* 211 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", /* 212 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", /* 213 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", /* 214 */ "cmd ::= SHOW MNODES", /* 215 */ "cmd ::= SHOW QNODES", /* 216 */ "cmd ::= SHOW FUNCTIONS", /* 217 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", /* 218 */ "cmd ::= SHOW STREAMS", /* 219 */ "cmd ::= SHOW ACCOUNTS", /* 220 */ "cmd ::= SHOW APPS", /* 221 */ "cmd ::= SHOW CONNECTIONS", /* 222 */ "cmd ::= SHOW LICENCES", /* 223 */ "cmd ::= SHOW GRANTS", /* 224 */ "cmd ::= SHOW CREATE DATABASE db_name", /* 225 */ "cmd ::= SHOW CREATE TABLE full_table_name", /* 226 */ "cmd ::= SHOW CREATE STABLE full_table_name", /* 227 */ "cmd ::= SHOW QUERIES", /* 228 */ "cmd ::= SHOW SCORES", /* 229 */ "cmd ::= SHOW TOPICS", /* 230 */ "cmd ::= SHOW VARIABLES", /* 231 */ "cmd ::= SHOW CLUSTER VARIABLES", /* 232 */ "cmd ::= SHOW LOCAL VARIABLES", /* 233 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", /* 234 */ "cmd ::= SHOW BNODES", /* 235 */ "cmd ::= SHOW SNODES", /* 236 */ "cmd ::= SHOW CLUSTER", /* 237 */ "cmd ::= SHOW TRANSACTIONS", /* 238 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", /* 239 */ "cmd ::= SHOW CONSUMERS", /* 240 */ "cmd ::= SHOW SUBSCRIPTIONS", /* 241 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", /* 242 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", /* 243 */ "cmd ::= SHOW VNODES NK_INTEGER", /* 244 */ "cmd ::= SHOW VNODES NK_STRING", /* 245 */ "db_name_cond_opt ::=", /* 246 */ "db_name_cond_opt ::= db_name NK_DOT", /* 247 */ "like_pattern_opt ::=", /* 248 */ "like_pattern_opt ::= LIKE NK_STRING", /* 249 */ "table_name_cond ::= table_name", /* 250 */ "from_db_opt ::=", /* 251 */ "from_db_opt ::= FROM db_name", /* 252 */ "tag_list_opt ::=", /* 253 */ "tag_list_opt ::= tag_item", /* 254 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", /* 255 */ "tag_item ::= TBNAME", /* 256 */ "tag_item ::= QTAGS", /* 257 */ "tag_item ::= column_name", /* 258 */ "tag_item ::= column_name column_alias", /* 259 */ "tag_item ::= column_name AS column_alias", /* 260 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options", /* 261 */ "cmd ::= DROP INDEX exists_opt full_index_name", /* 262 */ "full_index_name ::= index_name", /* 263 */ "full_index_name ::= db_name NK_DOT index_name", /* 264 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", /* 265 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt", /* 266 */ "func_list ::= func", /* 267 */ "func_list ::= func_list NK_COMMA func", /* 268 */ "func ::= function_name NK_LP expression_list NK_RP", /* 269 */ "sma_stream_opt ::=", /* 270 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", /* 271 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", /* 272 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", /* 273 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", /* 274 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", /* 275 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", /* 276 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", /* 277 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", /* 278 */ "cmd ::= DROP TOPIC exists_opt topic_name", /* 279 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", /* 280 */ "cmd ::= DESC full_table_name", /* 281 */ "cmd ::= DESCRIBE full_table_name", /* 282 */ "cmd ::= RESET QUERY CACHE", /* 283 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", /* 284 */ "analyze_opt ::=", /* 285 */ "analyze_opt ::= ANALYZE", /* 286 */ "explain_options ::=", /* 287 */ "explain_options ::= explain_options VERBOSE NK_BOOL", /* 288 */ "explain_options ::= explain_options RATIO NK_FLOAT", /* 289 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", /* 290 */ "cmd ::= DROP FUNCTION exists_opt function_name", /* 291 */ "agg_func_opt ::=", /* 292 */ "agg_func_opt ::= AGGREGATE", /* 293 */ "bufsize_opt ::=", /* 294 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", /* 295 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery", /* 296 */ "cmd ::= DROP STREAM exists_opt stream_name", /* 297 */ "stream_options ::=", /* 298 */ "stream_options ::= stream_options TRIGGER AT_ONCE", /* 299 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", /* 300 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", /* 301 */ "stream_options ::= stream_options WATERMARK duration_literal", /* 302 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", /* 303 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", /* 304 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", /* 305 */ "subtable_opt ::=", /* 306 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", /* 307 */ "cmd ::= KILL CONNECTION NK_INTEGER", /* 308 */ "cmd ::= KILL QUERY NK_STRING", /* 309 */ "cmd ::= KILL TRANSACTION NK_INTEGER", /* 310 */ "cmd ::= BALANCE VGROUP", /* 311 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", /* 312 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", /* 313 */ "cmd ::= SPLIT VGROUP NK_INTEGER", /* 314 */ "dnode_list ::= DNODE NK_INTEGER", /* 315 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", /* 316 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 317 */ "cmd ::= query_or_subquery", /* 318 */ "cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", /* 319 */ "cmd ::= INSERT INTO full_table_name query_or_subquery", /* 320 */ "literal ::= NK_INTEGER", /* 321 */ "literal ::= NK_FLOAT", /* 322 */ "literal ::= NK_STRING", /* 323 */ "literal ::= NK_BOOL", /* 324 */ "literal ::= TIMESTAMP NK_STRING", /* 325 */ "literal ::= duration_literal", /* 326 */ "literal ::= NULL", /* 327 */ "literal ::= NK_QUESTION", /* 328 */ "duration_literal ::= NK_VARIABLE", /* 329 */ "signed ::= NK_INTEGER", /* 330 */ "signed ::= NK_PLUS NK_INTEGER", /* 331 */ "signed ::= NK_MINUS NK_INTEGER", /* 332 */ "signed ::= NK_FLOAT", /* 333 */ "signed ::= NK_PLUS NK_FLOAT", /* 334 */ "signed ::= NK_MINUS NK_FLOAT", /* 335 */ "signed_literal ::= signed", /* 336 */ "signed_literal ::= NK_STRING", /* 337 */ "signed_literal ::= NK_BOOL", /* 338 */ "signed_literal ::= TIMESTAMP NK_STRING", /* 339 */ "signed_literal ::= duration_literal", /* 340 */ "signed_literal ::= NULL", /* 341 */ "signed_literal ::= literal_func", /* 342 */ "signed_literal ::= NK_QUESTION", /* 343 */ "literal_list ::= signed_literal", /* 344 */ "literal_list ::= literal_list NK_COMMA signed_literal", /* 345 */ "db_name ::= NK_ID", /* 346 */ "table_name ::= NK_ID", /* 347 */ "column_name ::= NK_ID", /* 348 */ "function_name ::= NK_ID", /* 349 */ "table_alias ::= NK_ID", /* 350 */ "column_alias ::= NK_ID", /* 351 */ "user_name ::= NK_ID", /* 352 */ "topic_name ::= NK_ID", /* 353 */ "stream_name ::= NK_ID", /* 354 */ "cgroup_name ::= NK_ID", /* 355 */ "index_name ::= NK_ID", /* 356 */ "expr_or_subquery ::= expression", /* 357 */ "expression ::= literal", /* 358 */ "expression ::= pseudo_column", /* 359 */ "expression ::= column_reference", /* 360 */ "expression ::= function_expression", /* 361 */ "expression ::= case_when_expression", /* 362 */ "expression ::= NK_LP expression NK_RP", /* 363 */ "expression ::= NK_PLUS expr_or_subquery", /* 364 */ "expression ::= NK_MINUS expr_or_subquery", /* 365 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", /* 366 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", /* 367 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", /* 368 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", /* 369 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", /* 370 */ "expression ::= column_reference NK_ARROW NK_STRING", /* 371 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", /* 372 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", /* 373 */ "expression_list ::= expr_or_subquery", /* 374 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", /* 375 */ "column_reference ::= column_name", /* 376 */ "column_reference ::= table_name NK_DOT column_name", /* 377 */ "pseudo_column ::= ROWTS", /* 378 */ "pseudo_column ::= TBNAME", /* 379 */ "pseudo_column ::= table_name NK_DOT TBNAME", /* 380 */ "pseudo_column ::= QSTART", /* 381 */ "pseudo_column ::= QEND", /* 382 */ "pseudo_column ::= QDURATION", /* 383 */ "pseudo_column ::= WSTART", /* 384 */ "pseudo_column ::= WEND", /* 385 */ "pseudo_column ::= WDURATION", /* 386 */ "pseudo_column ::= IROWTS", /* 387 */ "pseudo_column ::= QTAGS", /* 388 */ "function_expression ::= function_name NK_LP expression_list NK_RP", /* 389 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", /* 390 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", /* 391 */ "function_expression ::= literal_func", /* 392 */ "literal_func ::= noarg_func NK_LP NK_RP", /* 393 */ "literal_func ::= NOW", /* 394 */ "noarg_func ::= NOW", /* 395 */ "noarg_func ::= TODAY", /* 396 */ "noarg_func ::= TIMEZONE", /* 397 */ "noarg_func ::= DATABASE", /* 398 */ "noarg_func ::= CLIENT_VERSION", /* 399 */ "noarg_func ::= SERVER_VERSION", /* 400 */ "noarg_func ::= SERVER_STATUS", /* 401 */ "noarg_func ::= CURRENT_USER", /* 402 */ "noarg_func ::= USER", /* 403 */ "star_func ::= COUNT", /* 404 */ "star_func ::= FIRST", /* 405 */ "star_func ::= LAST", /* 406 */ "star_func ::= LAST_ROW", /* 407 */ "star_func_para_list ::= NK_STAR", /* 408 */ "star_func_para_list ::= other_para_list", /* 409 */ "other_para_list ::= star_func_para", /* 410 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", /* 411 */ "star_func_para ::= expr_or_subquery", /* 412 */ "star_func_para ::= table_name NK_DOT NK_STAR", /* 413 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", /* 414 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", /* 415 */ "when_then_list ::= when_then_expr", /* 416 */ "when_then_list ::= when_then_list when_then_expr", /* 417 */ "when_then_expr ::= WHEN common_expression THEN common_expression", /* 418 */ "case_when_else_opt ::=", /* 419 */ "case_when_else_opt ::= ELSE common_expression", /* 420 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", /* 421 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", /* 422 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", /* 423 */ "predicate ::= expr_or_subquery IS NULL", /* 424 */ "predicate ::= expr_or_subquery IS NOT NULL", /* 425 */ "predicate ::= expr_or_subquery in_op in_predicate_value", /* 426 */ "compare_op ::= NK_LT", /* 427 */ "compare_op ::= NK_GT", /* 428 */ "compare_op ::= NK_LE", /* 429 */ "compare_op ::= NK_GE", /* 430 */ "compare_op ::= NK_NE", /* 431 */ "compare_op ::= NK_EQ", /* 432 */ "compare_op ::= LIKE", /* 433 */ "compare_op ::= NOT LIKE", /* 434 */ "compare_op ::= MATCH", /* 435 */ "compare_op ::= NMATCH", /* 436 */ "compare_op ::= CONTAINS", /* 437 */ "in_op ::= IN", /* 438 */ "in_op ::= NOT IN", /* 439 */ "in_predicate_value ::= NK_LP literal_list NK_RP", /* 440 */ "boolean_value_expression ::= boolean_primary", /* 441 */ "boolean_value_expression ::= NOT boolean_primary", /* 442 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 443 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 444 */ "boolean_primary ::= predicate", /* 445 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 446 */ "common_expression ::= expr_or_subquery", /* 447 */ "common_expression ::= boolean_value_expression", /* 448 */ "from_clause_opt ::=", /* 449 */ "from_clause_opt ::= FROM table_reference_list", /* 450 */ "table_reference_list ::= table_reference", /* 451 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 452 */ "table_reference ::= table_primary", /* 453 */ "table_reference ::= joined_table", /* 454 */ "table_primary ::= table_name alias_opt", /* 455 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 456 */ "table_primary ::= subquery alias_opt", /* 457 */ "table_primary ::= parenthesized_joined_table", /* 458 */ "alias_opt ::=", /* 459 */ "alias_opt ::= table_alias", /* 460 */ "alias_opt ::= AS table_alias", /* 461 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 462 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 463 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 464 */ "join_type ::=", /* 465 */ "join_type ::= INNER", /* 466 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", /* 467 */ "set_quantifier_opt ::=", /* 468 */ "set_quantifier_opt ::= DISTINCT", /* 469 */ "set_quantifier_opt ::= ALL", /* 470 */ "select_list ::= select_item", /* 471 */ "select_list ::= select_list NK_COMMA select_item", /* 472 */ "select_item ::= NK_STAR", /* 473 */ "select_item ::= common_expression", /* 474 */ "select_item ::= common_expression column_alias", /* 475 */ "select_item ::= common_expression AS column_alias", /* 476 */ "select_item ::= table_name NK_DOT NK_STAR", /* 477 */ "where_clause_opt ::=", /* 478 */ "where_clause_opt ::= WHERE search_condition", /* 479 */ "partition_by_clause_opt ::=", /* 480 */ "partition_by_clause_opt ::= PARTITION BY partition_list", /* 481 */ "partition_list ::= partition_item", /* 482 */ "partition_list ::= partition_list NK_COMMA partition_item", /* 483 */ "partition_item ::= expr_or_subquery", /* 484 */ "partition_item ::= expr_or_subquery column_alias", /* 485 */ "partition_item ::= expr_or_subquery AS column_alias", /* 486 */ "twindow_clause_opt ::=", /* 487 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", /* 488 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", /* 489 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", /* 490 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", /* 491 */ "sliding_opt ::=", /* 492 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", /* 493 */ "fill_opt ::=", /* 494 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 495 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", /* 496 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP", /* 497 */ "fill_mode ::= NONE", /* 498 */ "fill_mode ::= PREV", /* 499 */ "fill_mode ::= NULL", /* 500 */ "fill_mode ::= NULL_F", /* 501 */ "fill_mode ::= LINEAR", /* 502 */ "fill_mode ::= NEXT", /* 503 */ "group_by_clause_opt ::=", /* 504 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 505 */ "group_by_list ::= expr_or_subquery", /* 506 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", /* 507 */ "having_clause_opt ::=", /* 508 */ "having_clause_opt ::= HAVING search_condition", /* 509 */ "range_opt ::=", /* 510 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", /* 511 */ "every_opt ::=", /* 512 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", /* 513 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 514 */ "query_simple ::= query_specification", /* 515 */ "query_simple ::= union_query_expression", /* 516 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", /* 517 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", /* 518 */ "query_simple_or_subquery ::= query_simple", /* 519 */ "query_simple_or_subquery ::= subquery", /* 520 */ "query_or_subquery ::= query_expression", /* 521 */ "query_or_subquery ::= subquery", /* 522 */ "order_by_clause_opt ::=", /* 523 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 524 */ "slimit_clause_opt ::=", /* 525 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 526 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 527 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 528 */ "limit_clause_opt ::=", /* 529 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 530 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 531 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 532 */ "subquery ::= NK_LP query_expression NK_RP", /* 533 */ "subquery ::= NK_LP subquery NK_RP", /* 534 */ "search_condition ::= common_expression", /* 535 */ "sort_specification_list ::= sort_specification", /* 536 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 537 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", /* 538 */ "ordering_specification_opt ::=", /* 539 */ "ordering_specification_opt ::= ASC", /* 540 */ "ordering_specification_opt ::= DESC", /* 541 */ "null_ordering_opt ::=", /* 542 */ "null_ordering_opt ::= NULLS FIRST", /* 543 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ #if YYSTACKDEPTH<=0 /* ** Try to increase the size of the parser stack. Return the number ** of errors. Return 0 on success. */ static int yyGrowStack(yyParser *p){ int newSize; int idx; yyStackEntry *pNew; newSize = p->yystksz*2 + 100; idx = p->yytos ? (int)(p->yytos - p->yystack) : 0; if( p->yystack==&p->yystk0 ){ pNew = malloc(newSize*sizeof(pNew[0])); if( pNew ) pNew[0] = p->yystk0; }else{ pNew = realloc(p->yystack, newSize*sizeof(pNew[0])); } if( pNew ){ p->yystack = pNew; p->yytos = &p->yystack[idx]; #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n", yyTracePrompt, p->yystksz, newSize); } #endif p->yystksz = newSize; } return pNew==0; } #endif /* Datatype of the argument to the memory allocated passed as the ** second argument to ParseAlloc() below. This can be changed by ** putting an appropriate #define in the %include section of the input ** grammar. */ #ifndef YYMALLOCARGTYPE # define YYMALLOCARGTYPE size_t #endif /* Initialize a new parser that has already been allocated. */ void ParseInit(void *yypRawParser ParseCTX_PDECL){ yyParser *yypParser = (yyParser*)yypRawParser; ParseCTX_STORE #ifdef YYTRACKMAXSTACKDEPTH yypParser->yyhwm = 0; #endif #if YYSTACKDEPTH<=0 yypParser->yytos = NULL; yypParser->yystack = NULL; yypParser->yystksz = 0; if( yyGrowStack(yypParser) ){ yypParser->yystack = &yypParser->yystk0; yypParser->yystksz = 1; } #endif #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif yypParser->yytos = yypParser->yystack; yypParser->yystack[0].stateno = 0; yypParser->yystack[0].major = 0; #if YYSTACKDEPTH>0 yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1]; #endif } #ifndef Parse_ENGINEALWAYSONSTACK /* ** This function allocates a new parser. ** The only argument is a pointer to a function which works like ** malloc. ** ** Inputs: ** A pointer to the function used to allocate memory. ** ** Outputs: ** A pointer to a parser. This pointer is used in subsequent calls ** to Parse and ParseFree. */ void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){ yyParser *yypParser; yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) ); if( yypParser ){ ParseCTX_STORE ParseInit(yypParser ParseCTX_PARAM); } return (void*)yypParser; } #endif /* Parse_ENGINEALWAYSONSTACK */ /* The following function deletes the "minor type" or semantic value ** associated with a symbol. The symbol can be either a terminal ** or nonterminal. "yymajor" is the symbol code, and "yypminor" is ** a pointer to the value to be deleted. The code used to do the ** deletions is derived from the %destructor and/or %token_destructor ** directives of the input grammar. */ static void yy_destructor( yyParser *yypParser, /* The parser */ YYCODETYPE yymajor, /* Type code for object to destroy */ YYMINORTYPE *yypminor /* The object to be destroyed */ ){ ParseARG_FETCH ParseCTX_FETCH switch( yymajor ){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those ** which appear on the RHS of the rule, but which are *not* used ** inside the C code. */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ case 324: /* cmd */ case 327: /* literal */ case 340: /* db_options */ case 342: /* alter_db_options */ case 348: /* retention */ case 349: /* full_table_name */ case 352: /* table_options */ case 356: /* alter_table_clause */ case 357: /* alter_table_options */ case 360: /* signed_literal */ case 361: /* create_subtable_clause */ case 364: /* drop_table_clause */ case 367: /* column_def */ case 371: /* duration_literal */ case 372: /* rollup_func_name */ case 374: /* col_name */ case 375: /* db_name_cond_opt */ case 376: /* like_pattern_opt */ case 377: /* table_name_cond */ case 378: /* from_db_opt */ case 380: /* tag_item */ case 382: /* full_index_name */ case 383: /* index_options */ case 386: /* sliding_opt */ case 387: /* sma_stream_opt */ case 388: /* func */ case 389: /* query_or_subquery */ case 392: /* explain_options */ case 396: /* stream_options */ case 397: /* subtable_opt */ case 398: /* expression */ case 400: /* where_clause_opt */ case 401: /* signed */ case 402: /* literal_func */ case 405: /* expr_or_subquery */ case 406: /* pseudo_column */ case 407: /* column_reference */ case 408: /* function_expression */ case 409: /* case_when_expression */ case 414: /* star_func_para */ case 416: /* case_when_else_opt */ case 417: /* common_expression */ case 418: /* when_then_expr */ case 419: /* predicate */ case 422: /* in_predicate_value */ case 423: /* boolean_value_expression */ case 424: /* boolean_primary */ case 425: /* from_clause_opt */ case 426: /* table_reference_list */ case 427: /* table_reference */ case 428: /* table_primary */ case 429: /* joined_table */ case 431: /* subquery */ case 432: /* parenthesized_joined_table */ case 434: /* search_condition */ case 435: /* query_specification */ case 439: /* range_opt */ case 440: /* every_opt */ case 441: /* fill_opt */ case 442: /* twindow_clause_opt */ case 444: /* having_clause_opt */ case 445: /* select_item */ case 447: /* partition_item */ case 450: /* query_expression */ case 451: /* query_simple */ case 453: /* slimit_clause_opt */ case 454: /* limit_clause_opt */ case 455: /* union_query_expression */ case 456: /* query_simple_or_subquery */ case 458: /* sort_specification */ { nodesDestroyNode((yypminor->yy600)); } break; case 325: /* account_options */ case 326: /* alter_account_options */ case 328: /* alter_account_option */ case 343: /* speed_opt */ case 394: /* bufsize_opt */ { } break; case 329: /* user_name */ case 332: /* priv_level */ case 335: /* db_name */ case 336: /* topic_name */ case 337: /* dnode_endpoint */ case 358: /* column_name */ case 366: /* table_name */ case 373: /* function_name */ case 381: /* column_alias */ case 384: /* index_name */ case 390: /* cgroup_name */ case 395: /* stream_name */ case 404: /* table_alias */ case 410: /* star_func */ case 412: /* noarg_func */ case 430: /* alias_opt */ { } break; case 330: /* sysinfo_opt */ { } break; case 331: /* privileges */ case 333: /* priv_type_list */ case 334: /* priv_type */ { } break; case 338: /* force_opt */ case 339: /* not_exists_opt */ case 341: /* exists_opt */ case 391: /* analyze_opt */ case 393: /* agg_func_opt */ case 436: /* set_quantifier_opt */ { } break; case 344: /* integer_list */ case 345: /* variable_list */ case 346: /* retention_list */ case 350: /* column_def_list */ case 351: /* tags_def_opt */ case 353: /* multi_create_clause */ case 354: /* tags_def */ case 355: /* multi_drop_clause */ case 362: /* specific_cols_opt */ case 363: /* expression_list */ case 365: /* col_name_list */ case 368: /* duration_list */ case 369: /* rollup_func_list */ case 379: /* tag_list_opt */ case 385: /* func_list */ case 399: /* dnode_list */ case 403: /* literal_list */ case 411: /* star_func_para_list */ case 413: /* other_para_list */ case 415: /* when_then_list */ case 437: /* select_list */ case 438: /* partition_by_clause_opt */ case 443: /* group_by_clause_opt */ case 446: /* partition_list */ case 449: /* group_by_list */ case 452: /* order_by_clause_opt */ case 457: /* sort_specification_list */ { nodesDestroyList((yypminor->yy601)); } break; case 347: /* alter_db_option */ case 370: /* alter_table_option */ { } break; case 359: /* type_name */ { } break; case 420: /* compare_op */ case 421: /* in_op */ { } break; case 433: /* join_type */ { } break; case 448: /* fill_mode */ { } break; case 459: /* ordering_specification_opt */ { } break; case 460: /* null_ordering_opt */ { } break; /********* End destructor definitions *****************************************/ default: break; /* If no destructor action specified: do nothing */ } } /* ** Pop the parser's stack once. ** ** If there is a destructor routine associated with the token which ** is popped from the stack, then call it. */ static void yy_pop_parser_stack(yyParser *pParser){ yyStackEntry *yytos; assert( pParser->yytos!=0 ); assert( pParser->yytos > pParser->yystack ); yytos = pParser->yytos--; #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sPopping %s\n", yyTracePrompt, yyTokenName[yytos->major]); } #endif yy_destructor(pParser, yytos->major, &yytos->minor); } /* ** Clear all secondary memory allocations from the parser */ void ParseFinalize(void *p){ yyParser *pParser = (yyParser*)p; while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser); #if YYSTACKDEPTH<=0 if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack); #endif } #ifndef Parse_ENGINEALWAYSONSTACK /* ** Deallocate and destroy a parser. Destructors are called for ** all stack elements before shutting the parser down. ** ** If the YYPARSEFREENEVERNULL macro exists (for example because it ** is defined in a %include section of the input grammar) then it is ** assumed that the input pointer is never NULL. */ void ParseFree( void *p, /* The parser to be deleted */ void (*freeProc)(void*) /* Function used to reclaim memory */ ){ #ifndef YYPARSEFREENEVERNULL if( p==0 ) return; #endif ParseFinalize(p); (*freeProc)(p); } #endif /* Parse_ENGINEALWAYSONSTACK */ /* ** Return the peak depth of the stack for a parser. */ #ifdef YYTRACKMAXSTACKDEPTH int ParseStackPeak(void *p){ yyParser *pParser = (yyParser*)p; return pParser->yyhwm; } #endif /* This array of booleans keeps track of the parser statement ** coverage. The element yycoverage[X][Y] is set when the parser ** is in state X and has a lookahead token Y. In a well-tested ** systems, every element of this matrix should end up being set. */ #if defined(YYCOVERAGE) static unsigned char yycoverage[YYNSTATE][YYNTOKEN]; #endif /* ** Write into out a description of every state/lookahead combination that ** ** (1) has not been used by the parser, and ** (2) is not a syntax error. ** ** Return the number of missed state/lookahead combinations. */ #if defined(YYCOVERAGE) int ParseCoverage(FILE *out){ int stateno, iLookAhead, i; int nMissed = 0; for(stateno=0; statenoYY_MAX_SHIFT ) return stateno; assert( stateno <= YY_SHIFT_COUNT ); #if defined(YYCOVERAGE) yycoverage[stateno][iLookAhead] = 1; #endif do{ i = yy_shift_ofst[stateno]; assert( i>=0 ); /* assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); */ assert( iLookAhead!=YYNOCODE ); assert( iLookAhead < YYNTOKEN ); i += iLookAhead; if( i>=YY_NLOOKAHEAD || yy_lookahead[i]!=iLookAhead ){ #ifdef YYFALLBACK YYCODETYPE iFallback; /* Fallback token */ if( iLookAhead %s\n", yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]); } #endif assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */ iLookAhead = iFallback; continue; } #endif #ifdef YYWILDCARD { int j = i - iLookAhead + YYWILDCARD; if( #if YY_SHIFT_MIN+YYWILDCARD<0 j>=0 && #endif #if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT j0 ){ #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n", yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[YYWILDCARD]); } #endif /* NDEBUG */ return yy_action[j]; } } #endif /* YYWILDCARD */ return yy_default[stateno]; }else{ return yy_action[i]; } }while(1); } /* ** Find the appropriate action for a parser given the non-terminal ** look-ahead token iLookAhead. */ static YYACTIONTYPE yy_find_reduce_action( YYACTIONTYPE stateno, /* Current state number */ YYCODETYPE iLookAhead /* The look-ahead token */ ){ int i; #ifdef YYERRORSYMBOL if( stateno>YY_REDUCE_COUNT ){ return yy_default[stateno]; } #else assert( stateno<=YY_REDUCE_COUNT ); #endif i = yy_reduce_ofst[stateno]; assert( iLookAhead!=YYNOCODE ); i += iLookAhead; #ifdef YYERRORSYMBOL if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){ return yy_default[stateno]; } #else assert( i>=0 && iyytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will execute if the parser ** stack every overflows */ /******** Begin %stack_overflow code ******************************************/ /******** End %stack_overflow code ********************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument var */ ParseCTX_STORE } /* ** Print tracing information for a SHIFT action */ #ifndef NDEBUG static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){ if( yyTraceFILE ){ if( yyNewStateyytos->major], yyNewState); }else{ fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n", yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major], yyNewState - YY_MIN_REDUCE); } } } #else # define yyTraceShift(X,Y,Z) #endif /* ** Perform a shift action. */ static void yy_shift( yyParser *yypParser, /* The parser to be shifted */ YYACTIONTYPE yyNewState, /* The new state to shift in */ YYCODETYPE yyMajor, /* The major token to shift in */ ParseTOKENTYPE yyMinor /* The minor token to shift in */ ){ yyStackEntry *yytos; yypParser->yytos++; #ifdef YYTRACKMAXSTACKDEPTH if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) ); } #endif #if YYSTACKDEPTH>0 if( yypParser->yytos>yypParser->yystackEnd ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){ if( yyGrowStack(yypParser) ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } } #endif if( yyNewState > YY_MAX_SHIFT ){ yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE; } yytos = yypParser->yytos; yytos->stateno = yyNewState; yytos->major = yyMajor; yytos->minor.yy0 = yyMinor; yyTraceShift(yypParser, yyNewState, "Shift"); } /* The following table contains information about every rule that ** is used during the reduce. */ static const struct { YYCODETYPE lhs; /* Symbol on the left-hand side of the rule */ signed char nrhs; /* Negative of the number of RHS symbols in the rule */ } yyRuleInfo[] = { { 324, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { 324, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { 325, 0 }, /* (2) account_options ::= */ { 325, -3 }, /* (3) account_options ::= account_options PPS literal */ { 325, -3 }, /* (4) account_options ::= account_options TSERIES literal */ { 325, -3 }, /* (5) account_options ::= account_options STORAGE literal */ { 325, -3 }, /* (6) account_options ::= account_options STREAMS literal */ { 325, -3 }, /* (7) account_options ::= account_options QTIME literal */ { 325, -3 }, /* (8) account_options ::= account_options DBS literal */ { 325, -3 }, /* (9) account_options ::= account_options USERS literal */ { 325, -3 }, /* (10) account_options ::= account_options CONNS literal */ { 325, -3 }, /* (11) account_options ::= account_options STATE literal */ { 326, -1 }, /* (12) alter_account_options ::= alter_account_option */ { 326, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ { 328, -2 }, /* (14) alter_account_option ::= PASS literal */ { 328, -2 }, /* (15) alter_account_option ::= PPS literal */ { 328, -2 }, /* (16) alter_account_option ::= TSERIES literal */ { 328, -2 }, /* (17) alter_account_option ::= STORAGE literal */ { 328, -2 }, /* (18) alter_account_option ::= STREAMS literal */ { 328, -2 }, /* (19) alter_account_option ::= QTIME literal */ { 328, -2 }, /* (20) alter_account_option ::= DBS literal */ { 328, -2 }, /* (21) alter_account_option ::= USERS literal */ { 328, -2 }, /* (22) alter_account_option ::= CONNS literal */ { 328, -2 }, /* (23) alter_account_option ::= STATE literal */ { 324, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ { 324, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ { 324, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ { 324, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ { 324, -3 }, /* (28) cmd ::= DROP USER user_name */ { 330, 0 }, /* (29) sysinfo_opt ::= */ { 330, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ { 324, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */ { 324, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */ { 331, -1 }, /* (33) privileges ::= ALL */ { 331, -1 }, /* (34) privileges ::= priv_type_list */ { 331, -1 }, /* (35) privileges ::= SUBSCRIBE */ { 333, -1 }, /* (36) priv_type_list ::= priv_type */ { 333, -3 }, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ { 334, -1 }, /* (38) priv_type ::= READ */ { 334, -1 }, /* (39) priv_type ::= WRITE */ { 332, -3 }, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ { 332, -3 }, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ { 332, -1 }, /* (42) priv_level ::= topic_name */ { 324, -3 }, /* (43) cmd ::= CREATE DNODE dnode_endpoint */ { 324, -5 }, /* (44) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ { 324, -4 }, /* (45) cmd ::= DROP DNODE NK_INTEGER force_opt */ { 324, -4 }, /* (46) cmd ::= DROP DNODE dnode_endpoint force_opt */ { 324, -4 }, /* (47) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { 324, -5 }, /* (48) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ { 324, -4 }, /* (49) cmd ::= ALTER ALL DNODES NK_STRING */ { 324, -5 }, /* (50) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ { 337, -1 }, /* (51) dnode_endpoint ::= NK_STRING */ { 337, -1 }, /* (52) dnode_endpoint ::= NK_ID */ { 337, -1 }, /* (53) dnode_endpoint ::= NK_IPTOKEN */ { 338, 0 }, /* (54) force_opt ::= */ { 338, -1 }, /* (55) force_opt ::= FORCE */ { 324, -3 }, /* (56) cmd ::= ALTER LOCAL NK_STRING */ { 324, -4 }, /* (57) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { 324, -5 }, /* (58) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { 324, -5 }, /* (59) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { 324, -5 }, /* (60) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { 324, -5 }, /* (61) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { 324, -5 }, /* (62) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { 324, -5 }, /* (63) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { 324, -5 }, /* (64) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { 324, -5 }, /* (65) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { 324, -5 }, /* (66) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ { 324, -4 }, /* (67) cmd ::= DROP DATABASE exists_opt db_name */ { 324, -2 }, /* (68) cmd ::= USE db_name */ { 324, -4 }, /* (69) cmd ::= ALTER DATABASE db_name alter_db_options */ { 324, -3 }, /* (70) cmd ::= FLUSH DATABASE db_name */ { 324, -4 }, /* (71) cmd ::= TRIM DATABASE db_name speed_opt */ { 339, -3 }, /* (72) not_exists_opt ::= IF NOT EXISTS */ { 339, 0 }, /* (73) not_exists_opt ::= */ { 341, -2 }, /* (74) exists_opt ::= IF EXISTS */ { 341, 0 }, /* (75) exists_opt ::= */ { 340, 0 }, /* (76) db_options ::= */ { 340, -3 }, /* (77) db_options ::= db_options BUFFER NK_INTEGER */ { 340, -3 }, /* (78) db_options ::= db_options CACHEMODEL NK_STRING */ { 340, -3 }, /* (79) db_options ::= db_options CACHESIZE NK_INTEGER */ { 340, -3 }, /* (80) db_options ::= db_options COMP NK_INTEGER */ { 340, -3 }, /* (81) db_options ::= db_options DURATION NK_INTEGER */ { 340, -3 }, /* (82) db_options ::= db_options DURATION NK_VARIABLE */ { 340, -3 }, /* (83) db_options ::= db_options MAXROWS NK_INTEGER */ { 340, -3 }, /* (84) db_options ::= db_options MINROWS NK_INTEGER */ { 340, -3 }, /* (85) db_options ::= db_options KEEP integer_list */ { 340, -3 }, /* (86) db_options ::= db_options KEEP variable_list */ { 340, -3 }, /* (87) db_options ::= db_options PAGES NK_INTEGER */ { 340, -3 }, /* (88) db_options ::= db_options PAGESIZE NK_INTEGER */ { 340, -3 }, /* (89) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ { 340, -3 }, /* (90) db_options ::= db_options PRECISION NK_STRING */ { 340, -3 }, /* (91) db_options ::= db_options REPLICA NK_INTEGER */ { 340, -3 }, /* (92) db_options ::= db_options VGROUPS NK_INTEGER */ { 340, -3 }, /* (93) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ { 340, -3 }, /* (94) db_options ::= db_options RETENTIONS retention_list */ { 340, -3 }, /* (95) db_options ::= db_options SCHEMALESS NK_INTEGER */ { 340, -3 }, /* (96) db_options ::= db_options WAL_LEVEL NK_INTEGER */ { 340, -3 }, /* (97) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ { 340, -3 }, /* (98) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ { 340, -4 }, /* (99) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { 340, -3 }, /* (100) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ { 340, -4 }, /* (101) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { 340, -3 }, /* (102) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ { 340, -3 }, /* (103) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ { 340, -3 }, /* (104) db_options ::= db_options STT_TRIGGER NK_INTEGER */ { 340, -3 }, /* (105) db_options ::= db_options TABLE_PREFIX NK_INTEGER */ { 340, -3 }, /* (106) db_options ::= db_options TABLE_SUFFIX NK_INTEGER */ { 342, -1 }, /* (107) alter_db_options ::= alter_db_option */ { 342, -2 }, /* (108) alter_db_options ::= alter_db_options alter_db_option */ { 347, -2 }, /* (109) alter_db_option ::= BUFFER NK_INTEGER */ { 347, -2 }, /* (110) alter_db_option ::= CACHEMODEL NK_STRING */ { 347, -2 }, /* (111) alter_db_option ::= CACHESIZE NK_INTEGER */ { 347, -2 }, /* (112) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ { 347, -2 }, /* (113) alter_db_option ::= KEEP integer_list */ { 347, -2 }, /* (114) alter_db_option ::= KEEP variable_list */ { 347, -2 }, /* (115) alter_db_option ::= PAGES NK_INTEGER */ { 347, -2 }, /* (116) alter_db_option ::= REPLICA NK_INTEGER */ { 347, -2 }, /* (117) alter_db_option ::= WAL_LEVEL NK_INTEGER */ { 347, -2 }, /* (118) alter_db_option ::= STT_TRIGGER NK_INTEGER */ { 344, -1 }, /* (119) integer_list ::= NK_INTEGER */ { 344, -3 }, /* (120) integer_list ::= integer_list NK_COMMA NK_INTEGER */ { 345, -1 }, /* (121) variable_list ::= NK_VARIABLE */ { 345, -3 }, /* (122) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { 346, -1 }, /* (123) retention_list ::= retention */ { 346, -3 }, /* (124) retention_list ::= retention_list NK_COMMA retention */ { 348, -3 }, /* (125) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ { 343, 0 }, /* (126) speed_opt ::= */ { 343, -2 }, /* (127) speed_opt ::= MAX_SPEED NK_INTEGER */ { 324, -9 }, /* (128) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ { 324, -3 }, /* (129) cmd ::= CREATE TABLE multi_create_clause */ { 324, -9 }, /* (130) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ { 324, -3 }, /* (131) cmd ::= DROP TABLE multi_drop_clause */ { 324, -4 }, /* (132) cmd ::= DROP STABLE exists_opt full_table_name */ { 324, -3 }, /* (133) cmd ::= ALTER TABLE alter_table_clause */ { 324, -3 }, /* (134) cmd ::= ALTER STABLE alter_table_clause */ { 356, -2 }, /* (135) alter_table_clause ::= full_table_name alter_table_options */ { 356, -5 }, /* (136) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { 356, -4 }, /* (137) alter_table_clause ::= full_table_name DROP COLUMN column_name */ { 356, -5 }, /* (138) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { 356, -5 }, /* (139) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { 356, -5 }, /* (140) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { 356, -4 }, /* (141) alter_table_clause ::= full_table_name DROP TAG column_name */ { 356, -5 }, /* (142) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { 356, -5 }, /* (143) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { 356, -6 }, /* (144) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { 353, -1 }, /* (145) multi_create_clause ::= create_subtable_clause */ { 353, -2 }, /* (146) multi_create_clause ::= multi_create_clause create_subtable_clause */ { 361, -10 }, /* (147) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ { 355, -1 }, /* (148) multi_drop_clause ::= drop_table_clause */ { 355, -2 }, /* (149) multi_drop_clause ::= multi_drop_clause drop_table_clause */ { 364, -2 }, /* (150) drop_table_clause ::= exists_opt full_table_name */ { 362, 0 }, /* (151) specific_cols_opt ::= */ { 362, -3 }, /* (152) specific_cols_opt ::= NK_LP col_name_list NK_RP */ { 349, -1 }, /* (153) full_table_name ::= table_name */ { 349, -3 }, /* (154) full_table_name ::= db_name NK_DOT table_name */ { 350, -1 }, /* (155) column_def_list ::= column_def */ { 350, -3 }, /* (156) column_def_list ::= column_def_list NK_COMMA column_def */ { 367, -2 }, /* (157) column_def ::= column_name type_name */ { 367, -4 }, /* (158) column_def ::= column_name type_name COMMENT NK_STRING */ { 359, -1 }, /* (159) type_name ::= BOOL */ { 359, -1 }, /* (160) type_name ::= TINYINT */ { 359, -1 }, /* (161) type_name ::= SMALLINT */ { 359, -1 }, /* (162) type_name ::= INT */ { 359, -1 }, /* (163) type_name ::= INTEGER */ { 359, -1 }, /* (164) type_name ::= BIGINT */ { 359, -1 }, /* (165) type_name ::= FLOAT */ { 359, -1 }, /* (166) type_name ::= DOUBLE */ { 359, -4 }, /* (167) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { 359, -1 }, /* (168) type_name ::= TIMESTAMP */ { 359, -4 }, /* (169) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { 359, -2 }, /* (170) type_name ::= TINYINT UNSIGNED */ { 359, -2 }, /* (171) type_name ::= SMALLINT UNSIGNED */ { 359, -2 }, /* (172) type_name ::= INT UNSIGNED */ { 359, -2 }, /* (173) type_name ::= BIGINT UNSIGNED */ { 359, -1 }, /* (174) type_name ::= JSON */ { 359, -4 }, /* (175) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { 359, -1 }, /* (176) type_name ::= MEDIUMBLOB */ { 359, -1 }, /* (177) type_name ::= BLOB */ { 359, -4 }, /* (178) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { 359, -1 }, /* (179) type_name ::= DECIMAL */ { 359, -4 }, /* (180) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { 359, -6 }, /* (181) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { 351, 0 }, /* (182) tags_def_opt ::= */ { 351, -1 }, /* (183) tags_def_opt ::= tags_def */ { 354, -4 }, /* (184) tags_def ::= TAGS NK_LP column_def_list NK_RP */ { 352, 0 }, /* (185) table_options ::= */ { 352, -3 }, /* (186) table_options ::= table_options COMMENT NK_STRING */ { 352, -3 }, /* (187) table_options ::= table_options MAX_DELAY duration_list */ { 352, -3 }, /* (188) table_options ::= table_options WATERMARK duration_list */ { 352, -5 }, /* (189) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { 352, -3 }, /* (190) table_options ::= table_options TTL NK_INTEGER */ { 352, -5 }, /* (191) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { 352, -3 }, /* (192) table_options ::= table_options DELETE_MARK duration_list */ { 357, -1 }, /* (193) alter_table_options ::= alter_table_option */ { 357, -2 }, /* (194) alter_table_options ::= alter_table_options alter_table_option */ { 370, -2 }, /* (195) alter_table_option ::= COMMENT NK_STRING */ { 370, -2 }, /* (196) alter_table_option ::= TTL NK_INTEGER */ { 368, -1 }, /* (197) duration_list ::= duration_literal */ { 368, -3 }, /* (198) duration_list ::= duration_list NK_COMMA duration_literal */ { 369, -1 }, /* (199) rollup_func_list ::= rollup_func_name */ { 369, -3 }, /* (200) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ { 372, -1 }, /* (201) rollup_func_name ::= function_name */ { 372, -1 }, /* (202) rollup_func_name ::= FIRST */ { 372, -1 }, /* (203) rollup_func_name ::= LAST */ { 365, -1 }, /* (204) col_name_list ::= col_name */ { 365, -3 }, /* (205) col_name_list ::= col_name_list NK_COMMA col_name */ { 374, -1 }, /* (206) col_name ::= column_name */ { 324, -2 }, /* (207) cmd ::= SHOW DNODES */ { 324, -2 }, /* (208) cmd ::= SHOW USERS */ { 324, -3 }, /* (209) cmd ::= SHOW USER PRIVILEGES */ { 324, -2 }, /* (210) cmd ::= SHOW DATABASES */ { 324, -4 }, /* (211) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ { 324, -4 }, /* (212) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { 324, -3 }, /* (213) cmd ::= SHOW db_name_cond_opt VGROUPS */ { 324, -2 }, /* (214) cmd ::= SHOW MNODES */ { 324, -2 }, /* (215) cmd ::= SHOW QNODES */ { 324, -2 }, /* (216) cmd ::= SHOW FUNCTIONS */ { 324, -5 }, /* (217) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { 324, -2 }, /* (218) cmd ::= SHOW STREAMS */ { 324, -2 }, /* (219) cmd ::= SHOW ACCOUNTS */ { 324, -2 }, /* (220) cmd ::= SHOW APPS */ { 324, -2 }, /* (221) cmd ::= SHOW CONNECTIONS */ { 324, -2 }, /* (222) cmd ::= SHOW LICENCES */ { 324, -2 }, /* (223) cmd ::= SHOW GRANTS */ { 324, -4 }, /* (224) cmd ::= SHOW CREATE DATABASE db_name */ { 324, -4 }, /* (225) cmd ::= SHOW CREATE TABLE full_table_name */ { 324, -4 }, /* (226) cmd ::= SHOW CREATE STABLE full_table_name */ { 324, -2 }, /* (227) cmd ::= SHOW QUERIES */ { 324, -2 }, /* (228) cmd ::= SHOW SCORES */ { 324, -2 }, /* (229) cmd ::= SHOW TOPICS */ { 324, -2 }, /* (230) cmd ::= SHOW VARIABLES */ { 324, -3 }, /* (231) cmd ::= SHOW CLUSTER VARIABLES */ { 324, -3 }, /* (232) cmd ::= SHOW LOCAL VARIABLES */ { 324, -5 }, /* (233) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ { 324, -2 }, /* (234) cmd ::= SHOW BNODES */ { 324, -2 }, /* (235) cmd ::= SHOW SNODES */ { 324, -2 }, /* (236) cmd ::= SHOW CLUSTER */ { 324, -2 }, /* (237) cmd ::= SHOW TRANSACTIONS */ { 324, -4 }, /* (238) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { 324, -2 }, /* (239) cmd ::= SHOW CONSUMERS */ { 324, -2 }, /* (240) cmd ::= SHOW SUBSCRIPTIONS */ { 324, -5 }, /* (241) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { 324, -7 }, /* (242) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { 324, -3 }, /* (243) cmd ::= SHOW VNODES NK_INTEGER */ { 324, -3 }, /* (244) cmd ::= SHOW VNODES NK_STRING */ { 375, 0 }, /* (245) db_name_cond_opt ::= */ { 375, -2 }, /* (246) db_name_cond_opt ::= db_name NK_DOT */ { 376, 0 }, /* (247) like_pattern_opt ::= */ { 376, -2 }, /* (248) like_pattern_opt ::= LIKE NK_STRING */ { 377, -1 }, /* (249) table_name_cond ::= table_name */ { 378, 0 }, /* (250) from_db_opt ::= */ { 378, -2 }, /* (251) from_db_opt ::= FROM db_name */ { 379, 0 }, /* (252) tag_list_opt ::= */ { 379, -1 }, /* (253) tag_list_opt ::= tag_item */ { 379, -3 }, /* (254) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ { 380, -1 }, /* (255) tag_item ::= TBNAME */ { 380, -1 }, /* (256) tag_item ::= QTAGS */ { 380, -1 }, /* (257) tag_item ::= column_name */ { 380, -2 }, /* (258) tag_item ::= column_name column_alias */ { 380, -3 }, /* (259) tag_item ::= column_name AS column_alias */ { 324, -8 }, /* (260) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ { 324, -4 }, /* (261) cmd ::= DROP INDEX exists_opt full_index_name */ { 382, -1 }, /* (262) full_index_name ::= index_name */ { 382, -3 }, /* (263) full_index_name ::= db_name NK_DOT index_name */ { 383, -10 }, /* (264) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { 383, -12 }, /* (265) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ { 385, -1 }, /* (266) func_list ::= func */ { 385, -3 }, /* (267) func_list ::= func_list NK_COMMA func */ { 388, -4 }, /* (268) func ::= function_name NK_LP expression_list NK_RP */ { 387, 0 }, /* (269) sma_stream_opt ::= */ { 387, -3 }, /* (270) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ { 387, -3 }, /* (271) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { 387, -3 }, /* (272) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { 324, -6 }, /* (273) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { 324, -7 }, /* (274) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ { 324, -9 }, /* (275) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ { 324, -7 }, /* (276) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ { 324, -9 }, /* (277) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ { 324, -4 }, /* (278) cmd ::= DROP TOPIC exists_opt topic_name */ { 324, -7 }, /* (279) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { 324, -2 }, /* (280) cmd ::= DESC full_table_name */ { 324, -2 }, /* (281) cmd ::= DESCRIBE full_table_name */ { 324, -3 }, /* (282) cmd ::= RESET QUERY CACHE */ { 324, -4 }, /* (283) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ { 391, 0 }, /* (284) analyze_opt ::= */ { 391, -1 }, /* (285) analyze_opt ::= ANALYZE */ { 392, 0 }, /* (286) explain_options ::= */ { 392, -3 }, /* (287) explain_options ::= explain_options VERBOSE NK_BOOL */ { 392, -3 }, /* (288) explain_options ::= explain_options RATIO NK_FLOAT */ { 324, -10 }, /* (289) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ { 324, -4 }, /* (290) cmd ::= DROP FUNCTION exists_opt function_name */ { 393, 0 }, /* (291) agg_func_opt ::= */ { 393, -1 }, /* (292) agg_func_opt ::= AGGREGATE */ { 394, 0 }, /* (293) bufsize_opt ::= */ { 394, -2 }, /* (294) bufsize_opt ::= BUFSIZE NK_INTEGER */ { 324, -11 }, /* (295) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */ { 324, -4 }, /* (296) cmd ::= DROP STREAM exists_opt stream_name */ { 396, 0 }, /* (297) stream_options ::= */ { 396, -3 }, /* (298) stream_options ::= stream_options TRIGGER AT_ONCE */ { 396, -3 }, /* (299) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ { 396, -4 }, /* (300) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { 396, -3 }, /* (301) stream_options ::= stream_options WATERMARK duration_literal */ { 396, -4 }, /* (302) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { 396, -3 }, /* (303) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { 396, -4 }, /* (304) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { 397, 0 }, /* (305) subtable_opt ::= */ { 397, -4 }, /* (306) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ { 324, -3 }, /* (307) cmd ::= KILL CONNECTION NK_INTEGER */ { 324, -3 }, /* (308) cmd ::= KILL QUERY NK_STRING */ { 324, -3 }, /* (309) cmd ::= KILL TRANSACTION NK_INTEGER */ { 324, -2 }, /* (310) cmd ::= BALANCE VGROUP */ { 324, -4 }, /* (311) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { 324, -4 }, /* (312) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { 324, -3 }, /* (313) cmd ::= SPLIT VGROUP NK_INTEGER */ { 399, -2 }, /* (314) dnode_list ::= DNODE NK_INTEGER */ { 399, -3 }, /* (315) dnode_list ::= dnode_list DNODE NK_INTEGER */ { 324, -4 }, /* (316) cmd ::= DELETE FROM full_table_name where_clause_opt */ { 324, -1 }, /* (317) cmd ::= query_or_subquery */ { 324, -7 }, /* (318) cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { 324, -4 }, /* (319) cmd ::= INSERT INTO full_table_name query_or_subquery */ { 327, -1 }, /* (320) literal ::= NK_INTEGER */ { 327, -1 }, /* (321) literal ::= NK_FLOAT */ { 327, -1 }, /* (322) literal ::= NK_STRING */ { 327, -1 }, /* (323) literal ::= NK_BOOL */ { 327, -2 }, /* (324) literal ::= TIMESTAMP NK_STRING */ { 327, -1 }, /* (325) literal ::= duration_literal */ { 327, -1 }, /* (326) literal ::= NULL */ { 327, -1 }, /* (327) literal ::= NK_QUESTION */ { 371, -1 }, /* (328) duration_literal ::= NK_VARIABLE */ { 401, -1 }, /* (329) signed ::= NK_INTEGER */ { 401, -2 }, /* (330) signed ::= NK_PLUS NK_INTEGER */ { 401, -2 }, /* (331) signed ::= NK_MINUS NK_INTEGER */ { 401, -1 }, /* (332) signed ::= NK_FLOAT */ { 401, -2 }, /* (333) signed ::= NK_PLUS NK_FLOAT */ { 401, -2 }, /* (334) signed ::= NK_MINUS NK_FLOAT */ { 360, -1 }, /* (335) signed_literal ::= signed */ { 360, -1 }, /* (336) signed_literal ::= NK_STRING */ { 360, -1 }, /* (337) signed_literal ::= NK_BOOL */ { 360, -2 }, /* (338) signed_literal ::= TIMESTAMP NK_STRING */ { 360, -1 }, /* (339) signed_literal ::= duration_literal */ { 360, -1 }, /* (340) signed_literal ::= NULL */ { 360, -1 }, /* (341) signed_literal ::= literal_func */ { 360, -1 }, /* (342) signed_literal ::= NK_QUESTION */ { 403, -1 }, /* (343) literal_list ::= signed_literal */ { 403, -3 }, /* (344) literal_list ::= literal_list NK_COMMA signed_literal */ { 335, -1 }, /* (345) db_name ::= NK_ID */ { 366, -1 }, /* (346) table_name ::= NK_ID */ { 358, -1 }, /* (347) column_name ::= NK_ID */ { 373, -1 }, /* (348) function_name ::= NK_ID */ { 404, -1 }, /* (349) table_alias ::= NK_ID */ { 381, -1 }, /* (350) column_alias ::= NK_ID */ { 329, -1 }, /* (351) user_name ::= NK_ID */ { 336, -1 }, /* (352) topic_name ::= NK_ID */ { 395, -1 }, /* (353) stream_name ::= NK_ID */ { 390, -1 }, /* (354) cgroup_name ::= NK_ID */ { 384, -1 }, /* (355) index_name ::= NK_ID */ { 405, -1 }, /* (356) expr_or_subquery ::= expression */ { 398, -1 }, /* (357) expression ::= literal */ { 398, -1 }, /* (358) expression ::= pseudo_column */ { 398, -1 }, /* (359) expression ::= column_reference */ { 398, -1 }, /* (360) expression ::= function_expression */ { 398, -1 }, /* (361) expression ::= case_when_expression */ { 398, -3 }, /* (362) expression ::= NK_LP expression NK_RP */ { 398, -2 }, /* (363) expression ::= NK_PLUS expr_or_subquery */ { 398, -2 }, /* (364) expression ::= NK_MINUS expr_or_subquery */ { 398, -3 }, /* (365) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { 398, -3 }, /* (366) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { 398, -3 }, /* (367) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { 398, -3 }, /* (368) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { 398, -3 }, /* (369) expression ::= expr_or_subquery NK_REM expr_or_subquery */ { 398, -3 }, /* (370) expression ::= column_reference NK_ARROW NK_STRING */ { 398, -3 }, /* (371) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { 398, -3 }, /* (372) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { 363, -1 }, /* (373) expression_list ::= expr_or_subquery */ { 363, -3 }, /* (374) expression_list ::= expression_list NK_COMMA expr_or_subquery */ { 407, -1 }, /* (375) column_reference ::= column_name */ { 407, -3 }, /* (376) column_reference ::= table_name NK_DOT column_name */ { 406, -1 }, /* (377) pseudo_column ::= ROWTS */ { 406, -1 }, /* (378) pseudo_column ::= TBNAME */ { 406, -3 }, /* (379) pseudo_column ::= table_name NK_DOT TBNAME */ { 406, -1 }, /* (380) pseudo_column ::= QSTART */ { 406, -1 }, /* (381) pseudo_column ::= QEND */ { 406, -1 }, /* (382) pseudo_column ::= QDURATION */ { 406, -1 }, /* (383) pseudo_column ::= WSTART */ { 406, -1 }, /* (384) pseudo_column ::= WEND */ { 406, -1 }, /* (385) pseudo_column ::= WDURATION */ { 406, -1 }, /* (386) pseudo_column ::= IROWTS */ { 406, -1 }, /* (387) pseudo_column ::= QTAGS */ { 408, -4 }, /* (388) function_expression ::= function_name NK_LP expression_list NK_RP */ { 408, -4 }, /* (389) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ { 408, -6 }, /* (390) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { 408, -1 }, /* (391) function_expression ::= literal_func */ { 402, -3 }, /* (392) literal_func ::= noarg_func NK_LP NK_RP */ { 402, -1 }, /* (393) literal_func ::= NOW */ { 412, -1 }, /* (394) noarg_func ::= NOW */ { 412, -1 }, /* (395) noarg_func ::= TODAY */ { 412, -1 }, /* (396) noarg_func ::= TIMEZONE */ { 412, -1 }, /* (397) noarg_func ::= DATABASE */ { 412, -1 }, /* (398) noarg_func ::= CLIENT_VERSION */ { 412, -1 }, /* (399) noarg_func ::= SERVER_VERSION */ { 412, -1 }, /* (400) noarg_func ::= SERVER_STATUS */ { 412, -1 }, /* (401) noarg_func ::= CURRENT_USER */ { 412, -1 }, /* (402) noarg_func ::= USER */ { 410, -1 }, /* (403) star_func ::= COUNT */ { 410, -1 }, /* (404) star_func ::= FIRST */ { 410, -1 }, /* (405) star_func ::= LAST */ { 410, -1 }, /* (406) star_func ::= LAST_ROW */ { 411, -1 }, /* (407) star_func_para_list ::= NK_STAR */ { 411, -1 }, /* (408) star_func_para_list ::= other_para_list */ { 413, -1 }, /* (409) other_para_list ::= star_func_para */ { 413, -3 }, /* (410) other_para_list ::= other_para_list NK_COMMA star_func_para */ { 414, -1 }, /* (411) star_func_para ::= expr_or_subquery */ { 414, -3 }, /* (412) star_func_para ::= table_name NK_DOT NK_STAR */ { 409, -4 }, /* (413) case_when_expression ::= CASE when_then_list case_when_else_opt END */ { 409, -5 }, /* (414) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { 415, -1 }, /* (415) when_then_list ::= when_then_expr */ { 415, -2 }, /* (416) when_then_list ::= when_then_list when_then_expr */ { 418, -4 }, /* (417) when_then_expr ::= WHEN common_expression THEN common_expression */ { 416, 0 }, /* (418) case_when_else_opt ::= */ { 416, -2 }, /* (419) case_when_else_opt ::= ELSE common_expression */ { 419, -3 }, /* (420) predicate ::= expr_or_subquery compare_op expr_or_subquery */ { 419, -5 }, /* (421) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { 419, -6 }, /* (422) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { 419, -3 }, /* (423) predicate ::= expr_or_subquery IS NULL */ { 419, -4 }, /* (424) predicate ::= expr_or_subquery IS NOT NULL */ { 419, -3 }, /* (425) predicate ::= expr_or_subquery in_op in_predicate_value */ { 420, -1 }, /* (426) compare_op ::= NK_LT */ { 420, -1 }, /* (427) compare_op ::= NK_GT */ { 420, -1 }, /* (428) compare_op ::= NK_LE */ { 420, -1 }, /* (429) compare_op ::= NK_GE */ { 420, -1 }, /* (430) compare_op ::= NK_NE */ { 420, -1 }, /* (431) compare_op ::= NK_EQ */ { 420, -1 }, /* (432) compare_op ::= LIKE */ { 420, -2 }, /* (433) compare_op ::= NOT LIKE */ { 420, -1 }, /* (434) compare_op ::= MATCH */ { 420, -1 }, /* (435) compare_op ::= NMATCH */ { 420, -1 }, /* (436) compare_op ::= CONTAINS */ { 421, -1 }, /* (437) in_op ::= IN */ { 421, -2 }, /* (438) in_op ::= NOT IN */ { 422, -3 }, /* (439) in_predicate_value ::= NK_LP literal_list NK_RP */ { 423, -1 }, /* (440) boolean_value_expression ::= boolean_primary */ { 423, -2 }, /* (441) boolean_value_expression ::= NOT boolean_primary */ { 423, -3 }, /* (442) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { 423, -3 }, /* (443) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { 424, -1 }, /* (444) boolean_primary ::= predicate */ { 424, -3 }, /* (445) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ { 417, -1 }, /* (446) common_expression ::= expr_or_subquery */ { 417, -1 }, /* (447) common_expression ::= boolean_value_expression */ { 425, 0 }, /* (448) from_clause_opt ::= */ { 425, -2 }, /* (449) from_clause_opt ::= FROM table_reference_list */ { 426, -1 }, /* (450) table_reference_list ::= table_reference */ { 426, -3 }, /* (451) table_reference_list ::= table_reference_list NK_COMMA table_reference */ { 427, -1 }, /* (452) table_reference ::= table_primary */ { 427, -1 }, /* (453) table_reference ::= joined_table */ { 428, -2 }, /* (454) table_primary ::= table_name alias_opt */ { 428, -4 }, /* (455) table_primary ::= db_name NK_DOT table_name alias_opt */ { 428, -2 }, /* (456) table_primary ::= subquery alias_opt */ { 428, -1 }, /* (457) table_primary ::= parenthesized_joined_table */ { 430, 0 }, /* (458) alias_opt ::= */ { 430, -1 }, /* (459) alias_opt ::= table_alias */ { 430, -2 }, /* (460) alias_opt ::= AS table_alias */ { 432, -3 }, /* (461) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ { 432, -3 }, /* (462) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ { 429, -6 }, /* (463) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { 433, 0 }, /* (464) join_type ::= */ { 433, -1 }, /* (465) join_type ::= INNER */ { 435, -12 }, /* (466) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { 436, 0 }, /* (467) set_quantifier_opt ::= */ { 436, -1 }, /* (468) set_quantifier_opt ::= DISTINCT */ { 436, -1 }, /* (469) set_quantifier_opt ::= ALL */ { 437, -1 }, /* (470) select_list ::= select_item */ { 437, -3 }, /* (471) select_list ::= select_list NK_COMMA select_item */ { 445, -1 }, /* (472) select_item ::= NK_STAR */ { 445, -1 }, /* (473) select_item ::= common_expression */ { 445, -2 }, /* (474) select_item ::= common_expression column_alias */ { 445, -3 }, /* (475) select_item ::= common_expression AS column_alias */ { 445, -3 }, /* (476) select_item ::= table_name NK_DOT NK_STAR */ { 400, 0 }, /* (477) where_clause_opt ::= */ { 400, -2 }, /* (478) where_clause_opt ::= WHERE search_condition */ { 438, 0 }, /* (479) partition_by_clause_opt ::= */ { 438, -3 }, /* (480) partition_by_clause_opt ::= PARTITION BY partition_list */ { 446, -1 }, /* (481) partition_list ::= partition_item */ { 446, -3 }, /* (482) partition_list ::= partition_list NK_COMMA partition_item */ { 447, -1 }, /* (483) partition_item ::= expr_or_subquery */ { 447, -2 }, /* (484) partition_item ::= expr_or_subquery column_alias */ { 447, -3 }, /* (485) partition_item ::= expr_or_subquery AS column_alias */ { 442, 0 }, /* (486) twindow_clause_opt ::= */ { 442, -6 }, /* (487) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { 442, -4 }, /* (488) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { 442, -6 }, /* (489) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { 442, -8 }, /* (490) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { 386, 0 }, /* (491) sliding_opt ::= */ { 386, -4 }, /* (492) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ { 441, 0 }, /* (493) fill_opt ::= */ { 441, -4 }, /* (494) fill_opt ::= FILL NK_LP fill_mode NK_RP */ { 441, -6 }, /* (495) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ { 441, -6 }, /* (496) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP */ { 448, -1 }, /* (497) fill_mode ::= NONE */ { 448, -1 }, /* (498) fill_mode ::= PREV */ { 448, -1 }, /* (499) fill_mode ::= NULL */ { 448, -1 }, /* (500) fill_mode ::= NULL_F */ { 448, -1 }, /* (501) fill_mode ::= LINEAR */ { 448, -1 }, /* (502) fill_mode ::= NEXT */ { 443, 0 }, /* (503) group_by_clause_opt ::= */ { 443, -3 }, /* (504) group_by_clause_opt ::= GROUP BY group_by_list */ { 449, -1 }, /* (505) group_by_list ::= expr_or_subquery */ { 449, -3 }, /* (506) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { 444, 0 }, /* (507) having_clause_opt ::= */ { 444, -2 }, /* (508) having_clause_opt ::= HAVING search_condition */ { 439, 0 }, /* (509) range_opt ::= */ { 439, -6 }, /* (510) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { 440, 0 }, /* (511) every_opt ::= */ { 440, -4 }, /* (512) every_opt ::= EVERY NK_LP duration_literal NK_RP */ { 450, -4 }, /* (513) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { 451, -1 }, /* (514) query_simple ::= query_specification */ { 451, -1 }, /* (515) query_simple ::= union_query_expression */ { 455, -4 }, /* (516) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { 455, -3 }, /* (517) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { 456, -1 }, /* (518) query_simple_or_subquery ::= query_simple */ { 456, -1 }, /* (519) query_simple_or_subquery ::= subquery */ { 389, -1 }, /* (520) query_or_subquery ::= query_expression */ { 389, -1 }, /* (521) query_or_subquery ::= subquery */ { 452, 0 }, /* (522) order_by_clause_opt ::= */ { 452, -3 }, /* (523) order_by_clause_opt ::= ORDER BY sort_specification_list */ { 453, 0 }, /* (524) slimit_clause_opt ::= */ { 453, -2 }, /* (525) slimit_clause_opt ::= SLIMIT NK_INTEGER */ { 453, -4 }, /* (526) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ { 453, -4 }, /* (527) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ { 454, 0 }, /* (528) limit_clause_opt ::= */ { 454, -2 }, /* (529) limit_clause_opt ::= LIMIT NK_INTEGER */ { 454, -4 }, /* (530) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ { 454, -4 }, /* (531) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ { 431, -3 }, /* (532) subquery ::= NK_LP query_expression NK_RP */ { 431, -3 }, /* (533) subquery ::= NK_LP subquery NK_RP */ { 434, -1 }, /* (534) search_condition ::= common_expression */ { 457, -1 }, /* (535) sort_specification_list ::= sort_specification */ { 457, -3 }, /* (536) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ { 458, -3 }, /* (537) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { 459, 0 }, /* (538) ordering_specification_opt ::= */ { 459, -1 }, /* (539) ordering_specification_opt ::= ASC */ { 459, -1 }, /* (540) ordering_specification_opt ::= DESC */ { 460, 0 }, /* (541) null_ordering_opt ::= */ { 460, -2 }, /* (542) null_ordering_opt ::= NULLS FIRST */ { 460, -2 }, /* (543) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ /* ** Perform a reduce action and the shift that must immediately ** follow the reduce. ** ** The yyLookahead and yyLookaheadToken parameters provide reduce actions ** access to the lookahead token (if any). The yyLookahead will be YYNOCODE ** if the lookahead token has already been consumed. As this procedure is ** only called from one place, optimizing compilers will in-line it, which ** means that the extra parameters have no performance impact. */ static YYACTIONTYPE yy_reduce( yyParser *yypParser, /* The parser */ unsigned int yyruleno, /* Number of the rule by which to reduce */ int yyLookahead, /* Lookahead token, or YYNOCODE if none */ ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */ ParseCTX_PDECL /* %extra_context */ ){ int yygoto; /* The next state */ YYACTIONTYPE yyact; /* The next action */ yyStackEntry *yymsp; /* The top of the parser's stack */ int yysize; /* Amount to pop the stack */ ParseARG_FETCH (void)yyLookahead; (void)yyLookaheadToken; yymsp = yypParser->yytos; #ifndef NDEBUG if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){ yysize = yyRuleInfo[yyruleno].nrhs; if( yysize ){ fprintf(yyTraceFILE, "%sReduce %d [%s], go to state %d.\n", yyTracePrompt, yyruleno, yyRuleName[yyruleno], yymsp[yysize].stateno); }else{ fprintf(yyTraceFILE, "%sReduce %d [%s].\n", yyTracePrompt, yyruleno, yyRuleName[yyruleno]); } } #endif /* NDEBUG */ /* Check that the stack is large enough to grow by a single entry ** if the RHS of the rule is empty. This ensures that there is room ** enough on the stack to push the LHS value */ if( yyRuleInfo[yyruleno].nrhs==0 ){ #ifdef YYTRACKMAXSTACKDEPTH if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack)); } #endif #if YYSTACKDEPTH>0 if( yypParser->yytos>=yypParser->yystackEnd ){ yyStackOverflow(yypParser); /* The call to yyStackOverflow() above pops the stack until it is ** empty, causing the main parser loop to exit. So the return value ** is never used and does not matter. */ return 0; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){ if( yyGrowStack(yypParser) ){ yyStackOverflow(yypParser); /* The call to yyStackOverflow() above pops the stack until it is ** empty, causing the main parser loop to exit. So the return value ** is never used and does not matter. */ return 0; } yymsp = yypParser->yytos; } #endif } switch( yyruleno ){ /* Beginning here are the reduction cases. A typical example ** follows: ** case 0: ** #line ** { ... } // User supplied code ** #line ** break; */ /********** Begin reduce actions **********************************************/ YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } yy_destructor(yypParser,325,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } yy_destructor(yypParser,326,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } break; case 3: /* account_options ::= account_options PPS literal */ case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5); case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6); case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7); case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8); 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,325,&yymsp[-2].minor); { } yy_destructor(yypParser,327,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,328,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,326,&yymsp[-1].minor); { } yy_destructor(yypParser,328,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ case 15: /* alter_account_option ::= PPS literal */ yytestcase(yyruleno==15); case 16: /* alter_account_option ::= TSERIES literal */ yytestcase(yyruleno==16); case 17: /* alter_account_option ::= STORAGE literal */ yytestcase(yyruleno==17); case 18: /* alter_account_option ::= STREAMS literal */ yytestcase(yyruleno==18); case 19: /* alter_account_option ::= QTIME literal */ yytestcase(yyruleno==19); case 20: /* alter_account_option ::= DBS literal */ yytestcase(yyruleno==20); case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21); case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } yy_destructor(yypParser,327,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy77, &yymsp[-1].minor.yy0, yymsp[0].minor.yy287); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy77, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy77, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy77, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 28: /* cmd ::= DROP USER user_name */ { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy77); } break; case 29: /* sysinfo_opt ::= */ { yymsp[1].minor.yy287 = 1; } break; case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ { yymsp[-1].minor.yy287 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; case 31: /* cmd ::= GRANT privileges ON priv_level TO user_name */ { pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy717, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77); } break; case 32: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */ { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy717, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77); } break; case 33: /* privileges ::= ALL */ { yymsp[0].minor.yy717 = PRIVILEGE_TYPE_ALL; } break; case 34: /* privileges ::= priv_type_list */ case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36); { yylhsminor.yy717 = yymsp[0].minor.yy717; } yymsp[0].minor.yy717 = yylhsminor.yy717; break; case 35: /* privileges ::= SUBSCRIBE */ { yymsp[0].minor.yy717 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ { yylhsminor.yy717 = yymsp[-2].minor.yy717 | yymsp[0].minor.yy717; } yymsp[-2].minor.yy717 = yylhsminor.yy717; break; case 38: /* priv_type ::= READ */ { yymsp[0].minor.yy717 = PRIVILEGE_TYPE_READ; } break; case 39: /* priv_type ::= WRITE */ { yymsp[0].minor.yy717 = PRIVILEGE_TYPE_WRITE; } break; case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ { yylhsminor.yy77 = yymsp[-2].minor.yy0; } yymsp[-2].minor.yy77 = yylhsminor.yy77; break; case 41: /* priv_level ::= db_name NK_DOT NK_STAR */ { yylhsminor.yy77 = yymsp[-2].minor.yy77; } yymsp[-2].minor.yy77 = yylhsminor.yy77; break; case 42: /* priv_level ::= topic_name */ case 459: /* alias_opt ::= table_alias */ yytestcase(yyruleno==459); { yylhsminor.yy77 = yymsp[0].minor.yy77; } yymsp[0].minor.yy77 = yylhsminor.yy77; break; case 43: /* cmd ::= CREATE DNODE dnode_endpoint */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy77, NULL); } break; case 44: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy0); } break; case 45: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy841); } break; case 46: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy77, yymsp[0].minor.yy841); } break; case 47: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } break; case 48: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 49: /* cmd ::= ALTER ALL DNODES NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } break; case 50: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 51: /* dnode_endpoint ::= NK_STRING */ case 52: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==52); case 53: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==53); case 345: /* db_name ::= NK_ID */ yytestcase(yyruleno==345); case 346: /* table_name ::= NK_ID */ yytestcase(yyruleno==346); case 347: /* column_name ::= NK_ID */ yytestcase(yyruleno==347); case 348: /* function_name ::= NK_ID */ yytestcase(yyruleno==348); case 349: /* table_alias ::= NK_ID */ yytestcase(yyruleno==349); case 350: /* column_alias ::= NK_ID */ yytestcase(yyruleno==350); case 351: /* user_name ::= NK_ID */ yytestcase(yyruleno==351); case 352: /* topic_name ::= NK_ID */ yytestcase(yyruleno==352); case 353: /* stream_name ::= NK_ID */ yytestcase(yyruleno==353); case 354: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==354); case 355: /* index_name ::= NK_ID */ yytestcase(yyruleno==355); case 394: /* noarg_func ::= NOW */ yytestcase(yyruleno==394); case 395: /* noarg_func ::= TODAY */ yytestcase(yyruleno==395); case 396: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==396); case 397: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==397); case 398: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==398); case 399: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==399); case 400: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==400); case 401: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==401); case 402: /* noarg_func ::= USER */ yytestcase(yyruleno==402); case 403: /* star_func ::= COUNT */ yytestcase(yyruleno==403); case 404: /* star_func ::= FIRST */ yytestcase(yyruleno==404); case 405: /* star_func ::= LAST */ yytestcase(yyruleno==405); case 406: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==406); { yylhsminor.yy77 = yymsp[0].minor.yy0; } yymsp[0].minor.yy77 = yylhsminor.yy77; break; case 54: /* force_opt ::= */ case 73: /* not_exists_opt ::= */ yytestcase(yyruleno==73); case 75: /* exists_opt ::= */ yytestcase(yyruleno==75); case 284: /* analyze_opt ::= */ yytestcase(yyruleno==284); case 291: /* agg_func_opt ::= */ yytestcase(yyruleno==291); case 467: /* set_quantifier_opt ::= */ yytestcase(yyruleno==467); { yymsp[1].minor.yy841 = false; } break; case 55: /* force_opt ::= FORCE */ case 285: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==285); case 292: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==292); case 468: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==468); { yymsp[0].minor.yy841 = true; } break; case 56: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 57: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 58: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 59: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 60: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 61: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 62: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 63: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 64: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 65: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 66: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy841, &yymsp[-1].minor.yy77, yymsp[0].minor.yy600); } break; case 67: /* cmd ::= DROP DATABASE exists_opt db_name */ { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy841, &yymsp[0].minor.yy77); } break; case 68: /* cmd ::= USE db_name */ { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy77); } break; case 69: /* cmd ::= ALTER DATABASE db_name alter_db_options */ { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy77, yymsp[0].minor.yy600); } break; case 70: /* cmd ::= FLUSH DATABASE db_name */ { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy77); } break; case 71: /* cmd ::= TRIM DATABASE db_name speed_opt */ { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy77, yymsp[0].minor.yy248); } break; case 72: /* not_exists_opt ::= IF NOT EXISTS */ { yymsp[-2].minor.yy841 = true; } break; case 74: /* exists_opt ::= IF EXISTS */ { yymsp[-1].minor.yy841 = true; } break; case 76: /* db_options ::= */ { yymsp[1].minor.yy600 = createDefaultDatabaseOptions(pCxt); } break; case 77: /* db_options ::= db_options BUFFER NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 78: /* db_options ::= db_options CACHEMODEL NK_STRING */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 79: /* db_options ::= db_options CACHESIZE NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 80: /* db_options ::= db_options COMP NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_COMP, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 81: /* db_options ::= db_options DURATION NK_INTEGER */ case 82: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==82); { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 83: /* db_options ::= db_options MAXROWS NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 84: /* db_options ::= db_options MINROWS NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 85: /* db_options ::= db_options KEEP integer_list */ case 86: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==86); { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_KEEP, yymsp[0].minor.yy601); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 87: /* db_options ::= db_options PAGES NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 88: /* db_options ::= db_options PAGESIZE NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 89: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 90: /* db_options ::= db_options PRECISION NK_STRING */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 91: /* db_options ::= db_options REPLICA NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 92: /* db_options ::= db_options VGROUPS NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 93: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 94: /* db_options ::= db_options RETENTIONS retention_list */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_RETENTIONS, yymsp[0].minor.yy601); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 95: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 96: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 97: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 98: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 99: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-3].minor.yy600, DB_OPTION_WAL_RETENTION_PERIOD, &t); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 100: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 101: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-3].minor.yy600, DB_OPTION_WAL_RETENTION_SIZE, &t); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 102: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 103: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 104: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 105: /* db_options ::= db_options TABLE_PREFIX NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_TABLE_PREFIX, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 106: /* db_options ::= db_options TABLE_SUFFIX NK_INTEGER */ { yylhsminor.yy600 = setDatabaseOption(pCxt, yymsp[-2].minor.yy600, DB_OPTION_TABLE_SUFFIX, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 107: /* alter_db_options ::= alter_db_option */ { yylhsminor.yy600 = createAlterDatabaseOptions(pCxt); yylhsminor.yy600 = setAlterDatabaseOption(pCxt, yylhsminor.yy600, &yymsp[0].minor.yy661); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 108: /* alter_db_options ::= alter_db_options alter_db_option */ { yylhsminor.yy600 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy600, &yymsp[0].minor.yy661); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 109: /* alter_db_option ::= BUFFER NK_INTEGER */ { yymsp[-1].minor.yy661.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 110: /* alter_db_option ::= CACHEMODEL NK_STRING */ { yymsp[-1].minor.yy661.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 111: /* alter_db_option ::= CACHESIZE NK_INTEGER */ { yymsp[-1].minor.yy661.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 112: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy661.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 113: /* alter_db_option ::= KEEP integer_list */ case 114: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==114); { yymsp[-1].minor.yy661.type = DB_OPTION_KEEP; yymsp[-1].minor.yy661.pList = yymsp[0].minor.yy601; } break; case 115: /* alter_db_option ::= PAGES NK_INTEGER */ { yymsp[-1].minor.yy661.type = DB_OPTION_PAGES; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 116: /* alter_db_option ::= REPLICA NK_INTEGER */ { yymsp[-1].minor.yy661.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 117: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ { yymsp[-1].minor.yy661.type = DB_OPTION_WAL; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 118: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ { yymsp[-1].minor.yy661.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 119: /* integer_list ::= NK_INTEGER */ { yylhsminor.yy601 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy601 = yylhsminor.yy601; break; case 120: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 315: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==315); { yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy601 = yylhsminor.yy601; break; case 121: /* variable_list ::= NK_VARIABLE */ { yylhsminor.yy601 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy601 = yylhsminor.yy601; break; case 122: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy601 = yylhsminor.yy601; break; case 123: /* retention_list ::= retention */ case 145: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==145); case 148: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==148); case 155: /* column_def_list ::= column_def */ yytestcase(yyruleno==155); case 199: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==199); case 204: /* col_name_list ::= col_name */ yytestcase(yyruleno==204); case 253: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==253); case 266: /* func_list ::= func */ yytestcase(yyruleno==266); case 343: /* literal_list ::= signed_literal */ yytestcase(yyruleno==343); case 409: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==409); case 415: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==415); case 470: /* select_list ::= select_item */ yytestcase(yyruleno==470); case 481: /* partition_list ::= partition_item */ yytestcase(yyruleno==481); case 535: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==535); { yylhsminor.yy601 = createNodeList(pCxt, yymsp[0].minor.yy600); } yymsp[0].minor.yy601 = yylhsminor.yy601; break; case 124: /* retention_list ::= retention_list NK_COMMA retention */ case 156: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==156); case 200: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==200); case 205: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==205); case 254: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==254); case 267: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==267); case 344: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==344); case 410: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==410); case 471: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==471); case 482: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==482); case 536: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==536); { yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, yymsp[0].minor.yy600); } yymsp[-2].minor.yy601 = yylhsminor.yy601; break; case 125: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ { yylhsminor.yy600 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 126: /* speed_opt ::= */ case 293: /* bufsize_opt ::= */ yytestcase(yyruleno==293); { yymsp[1].minor.yy248 = 0; } break; case 127: /* speed_opt ::= MAX_SPEED NK_INTEGER */ case 294: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==294); { yymsp[-1].minor.yy248 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 128: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 130: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==130); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy841, yymsp[-5].minor.yy600, yymsp[-3].minor.yy601, yymsp[-1].minor.yy601, yymsp[0].minor.yy600); } break; case 129: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy601); } break; case 131: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy601); } break; case 132: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy841, yymsp[0].minor.yy600); } break; case 133: /* cmd ::= ALTER TABLE alter_table_clause */ case 317: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==317); { pCxt->pRootNode = yymsp[0].minor.yy600; } break; case 134: /* cmd ::= ALTER STABLE alter_table_clause */ { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy600); } break; case 135: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy600 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 136: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 137: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy600 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy600, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy77); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 138: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 139: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy600 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy77, &yymsp[0].minor.yy77); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 140: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 141: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy600 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy600, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy77); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 142: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy600 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 143: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy600 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy600, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy77, &yymsp[0].minor.yy77); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 144: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { yylhsminor.yy600 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy600, &yymsp[-2].minor.yy77, yymsp[0].minor.yy600); } yymsp[-5].minor.yy600 = yylhsminor.yy600; break; case 146: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 149: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==149); case 416: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==416); { yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-1].minor.yy601, yymsp[0].minor.yy600); } yymsp[-1].minor.yy601 = yylhsminor.yy601; break; case 147: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ { yylhsminor.yy600 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy841, yymsp[-8].minor.yy600, yymsp[-6].minor.yy600, yymsp[-5].minor.yy601, yymsp[-2].minor.yy601, yymsp[0].minor.yy600); } yymsp[-9].minor.yy600 = yylhsminor.yy600; break; case 150: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy600 = createDropTableClause(pCxt, yymsp[-1].minor.yy841, yymsp[0].minor.yy600); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 151: /* specific_cols_opt ::= */ case 182: /* tags_def_opt ::= */ yytestcase(yyruleno==182); case 252: /* tag_list_opt ::= */ yytestcase(yyruleno==252); case 479: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==479); case 503: /* group_by_clause_opt ::= */ yytestcase(yyruleno==503); case 522: /* order_by_clause_opt ::= */ yytestcase(yyruleno==522); { yymsp[1].minor.yy601 = NULL; } break; case 152: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ { yymsp[-2].minor.yy601 = yymsp[-1].minor.yy601; } break; case 153: /* full_table_name ::= table_name */ { yylhsminor.yy600 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy77, NULL); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 154: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy600 = createRealTableNode(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77, NULL); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 157: /* column_def ::= column_name type_name */ { yylhsminor.yy600 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy77, yymsp[0].minor.yy888, NULL); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 158: /* column_def ::= column_name type_name COMMENT NK_STRING */ { yylhsminor.yy600 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy77, yymsp[-2].minor.yy888, &yymsp[0].minor.yy0); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 159: /* type_name ::= BOOL */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 160: /* type_name ::= TINYINT */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 161: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 162: /* type_name ::= INT */ case 163: /* type_name ::= INTEGER */ yytestcase(yyruleno==163); { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_INT); } break; case 164: /* type_name ::= BIGINT */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 165: /* type_name ::= FLOAT */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 166: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 167: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy888 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 168: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 169: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy888 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 170: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy888 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 171: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy888 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 172: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy888 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 173: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy888 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 174: /* type_name ::= JSON */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 175: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy888 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 176: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 177: /* type_name ::= BLOB */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 178: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy888 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 179: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy888 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 180: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy888 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 181: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy888 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 183: /* tags_def_opt ::= tags_def */ case 408: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==408); { yylhsminor.yy601 = yymsp[0].minor.yy601; } yymsp[0].minor.yy601 = yylhsminor.yy601; break; case 184: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ { yymsp[-3].minor.yy601 = yymsp[-1].minor.yy601; } break; case 185: /* table_options ::= */ { yymsp[1].minor.yy600 = createDefaultTableOptions(pCxt); } break; case 186: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 187: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy601); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 188: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy601); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 189: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy600 = setTableOption(pCxt, yymsp[-4].minor.yy600, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy601); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 190: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 191: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy600 = setTableOption(pCxt, yymsp[-4].minor.yy600, TABLE_OPTION_SMA, yymsp[-1].minor.yy601); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 192: /* table_options ::= table_options DELETE_MARK duration_list */ { yylhsminor.yy600 = setTableOption(pCxt, yymsp[-2].minor.yy600, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy601); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 193: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy600 = createAlterTableOptions(pCxt); yylhsminor.yy600 = setTableOption(pCxt, yylhsminor.yy600, yymsp[0].minor.yy661.type, &yymsp[0].minor.yy661.val); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 194: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy600 = setTableOption(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy661.type, &yymsp[0].minor.yy661.val); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 195: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy661.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 196: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy661.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy661.val = yymsp[0].minor.yy0; } break; case 197: /* duration_list ::= duration_literal */ case 373: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==373); { yylhsminor.yy601 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } yymsp[0].minor.yy601 = yylhsminor.yy601; break; case 198: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 374: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==374); { yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } yymsp[-2].minor.yy601 = yylhsminor.yy601; break; case 201: /* rollup_func_name ::= function_name */ { yylhsminor.yy600 = createFunctionNode(pCxt, &yymsp[0].minor.yy77, NULL); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 202: /* rollup_func_name ::= FIRST */ case 203: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==203); case 256: /* tag_item ::= QTAGS */ yytestcase(yyruleno==256); { yylhsminor.yy600 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 206: /* col_name ::= column_name */ case 257: /* tag_item ::= column_name */ yytestcase(yyruleno==257); { yylhsminor.yy600 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy77); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 207: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; case 208: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; case 209: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } break; case 210: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; case 211: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, OP_TYPE_LIKE); } break; case 212: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, OP_TYPE_LIKE); } break; case 213: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy600, NULL, OP_TYPE_LIKE); } break; case 214: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; case 215: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; case 216: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 217: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy600, yymsp[-1].minor.yy600, OP_TYPE_EQUAL); } break; case 218: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; case 219: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; case 220: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; case 221: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; case 222: /* cmd ::= SHOW LICENCES */ case 223: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==223); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; case 224: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy77); } break; case 225: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy600); } break; case 226: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy600); } break; case 227: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; case 228: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; case 229: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; case 230: /* cmd ::= SHOW VARIABLES */ case 231: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==231); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; case 232: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; case 233: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy600); } break; case 234: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; case 235: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; case 236: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; case 237: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 238: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy600); } break; case 239: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; case 240: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; case 241: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy600, yymsp[-1].minor.yy600, OP_TYPE_EQUAL); } break; case 242: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy600, yymsp[-3].minor.yy601); } break; case 243: /* cmd ::= SHOW VNODES NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; case 244: /* cmd ::= SHOW VNODES NK_STRING */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, createValueNode(pCxt, TSDB_DATA_TYPE_VARCHAR, &yymsp[0].minor.yy0)); } break; case 245: /* db_name_cond_opt ::= */ case 250: /* from_db_opt ::= */ yytestcase(yyruleno==250); { yymsp[1].minor.yy600 = createDefaultDatabaseCondValue(pCxt); } break; case 246: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy600 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy77); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 247: /* like_pattern_opt ::= */ case 305: /* subtable_opt ::= */ yytestcase(yyruleno==305); case 418: /* case_when_else_opt ::= */ yytestcase(yyruleno==418); case 448: /* from_clause_opt ::= */ yytestcase(yyruleno==448); case 477: /* where_clause_opt ::= */ yytestcase(yyruleno==477); case 486: /* twindow_clause_opt ::= */ yytestcase(yyruleno==486); case 491: /* sliding_opt ::= */ yytestcase(yyruleno==491); case 493: /* fill_opt ::= */ yytestcase(yyruleno==493); case 507: /* having_clause_opt ::= */ yytestcase(yyruleno==507); case 509: /* range_opt ::= */ yytestcase(yyruleno==509); case 511: /* every_opt ::= */ yytestcase(yyruleno==511); case 524: /* slimit_clause_opt ::= */ yytestcase(yyruleno==524); case 528: /* limit_clause_opt ::= */ yytestcase(yyruleno==528); { yymsp[1].minor.yy600 = NULL; } break; case 248: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 249: /* table_name_cond ::= table_name */ { yylhsminor.yy600 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy77); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 251: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy600 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy77); } break; case 255: /* tag_item ::= TBNAME */ { yylhsminor.yy600 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 258: /* tag_item ::= column_name column_alias */ { yylhsminor.yy600 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy77), &yymsp[0].minor.yy77); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 259: /* tag_item ::= column_name AS column_alias */ { yylhsminor.yy600 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy77), &yymsp[0].minor.yy77); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 260: /* cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy841, yymsp[-3].minor.yy600, yymsp[-1].minor.yy600, NULL, yymsp[0].minor.yy600); } break; case 261: /* cmd ::= DROP INDEX exists_opt full_index_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy841, yymsp[0].minor.yy600); } break; case 262: /* full_index_name ::= index_name */ { yylhsminor.yy600 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy77); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 263: /* full_index_name ::= db_name NK_DOT index_name */ { yylhsminor.yy600 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 264: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-9].minor.yy600 = createIndexOption(pCxt, yymsp[-7].minor.yy601, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), NULL, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } break; case 265: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-11].minor.yy600 = createIndexOption(pCxt, yymsp[-9].minor.yy601, releaseRawExprNode(pCxt, yymsp[-5].minor.yy600), releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } break; case 268: /* func ::= function_name NK_LP expression_list NK_RP */ { yylhsminor.yy600 = createFunctionNode(pCxt, &yymsp[-3].minor.yy77, yymsp[-1].minor.yy601); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 269: /* sma_stream_opt ::= */ case 297: /* stream_options ::= */ yytestcase(yyruleno==297); { yymsp[1].minor.yy600 = createStreamOptions(pCxt); } break; case 270: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ case 301: /* stream_options ::= stream_options WATERMARK duration_literal */ yytestcase(yyruleno==301); { ((SStreamOptions*)yymsp[-2].minor.yy600)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-2].minor.yy600; } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 271: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy600)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-2].minor.yy600; } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 272: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy600)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-2].minor.yy600; } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 273: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy841, &yymsp[-2].minor.yy77, yymsp[0].minor.yy600); } break; case 274: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy841, &yymsp[-3].minor.yy77, &yymsp[0].minor.yy77, false); } break; case 275: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy841, &yymsp[-5].minor.yy77, &yymsp[0].minor.yy77, true); } break; case 276: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy841, &yymsp[-3].minor.yy77, yymsp[0].minor.yy600, false); } break; case 277: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy841, &yymsp[-5].minor.yy77, yymsp[0].minor.yy600, true); } break; case 278: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy841, &yymsp[0].minor.yy77); } break; case 279: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy841, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77); } break; case 280: /* cmd ::= DESC full_table_name */ case 281: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==281); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy600); } break; case 282: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 283: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy841, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } break; case 286: /* explain_options ::= */ { yymsp[1].minor.yy600 = createDefaultExplainOptions(pCxt); } break; case 287: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy600 = setExplainVerbose(pCxt, yymsp[-2].minor.yy600, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 288: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy600 = setExplainRatio(pCxt, yymsp[-2].minor.yy600, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 289: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ { pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy841, yymsp[-8].minor.yy841, &yymsp[-5].minor.yy77, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy888, yymsp[0].minor.yy248); } break; case 290: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy841, &yymsp[0].minor.yy77); } break; case 295: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */ { pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-8].minor.yy841, &yymsp[-7].minor.yy77, yymsp[-4].minor.yy600, yymsp[-6].minor.yy600, yymsp[-3].minor.yy601, yymsp[-2].minor.yy600, yymsp[0].minor.yy600); } break; case 296: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy841, &yymsp[0].minor.yy77); } break; case 298: /* stream_options ::= stream_options TRIGGER AT_ONCE */ { ((SStreamOptions*)yymsp[-2].minor.yy600)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy600 = yymsp[-2].minor.yy600; } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 299: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ { ((SStreamOptions*)yymsp[-2].minor.yy600)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy600 = yymsp[-2].minor.yy600; } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 300: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-3].minor.yy600)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy600)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = yymsp[-3].minor.yy600; } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 302: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { ((SStreamOptions*)yymsp[-3].minor.yy600)->ignoreExpired = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy600 = yymsp[-3].minor.yy600; } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 303: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { ((SStreamOptions*)yymsp[-2].minor.yy600)->fillHistory = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy600 = yymsp[-2].minor.yy600; } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 304: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { ((SStreamOptions*)yymsp[-3].minor.yy600)->ignoreUpdate = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy600 = yymsp[-3].minor.yy600; } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 306: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ case 492: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==492); case 512: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==512); { yymsp[-3].minor.yy600 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy600); } break; case 307: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; case 308: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; case 309: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; case 310: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; case 311: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 312: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy601); } break; case 313: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 314: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy601 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 316: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } break; case 318: /* cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-4].minor.yy600, yymsp[-2].minor.yy601, yymsp[0].minor.yy600); } break; case 319: /* cmd ::= INSERT INTO full_table_name query_or_subquery */ { pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-1].minor.yy600, NULL, yymsp[0].minor.yy600); } break; case 320: /* literal ::= NK_INTEGER */ { yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 321: /* literal ::= NK_FLOAT */ { yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 322: /* literal ::= NK_STRING */ { yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 323: /* literal ::= NK_BOOL */ { yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 324: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 325: /* literal ::= duration_literal */ case 335: /* signed_literal ::= signed */ yytestcase(yyruleno==335); case 356: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==356); case 357: /* expression ::= literal */ yytestcase(yyruleno==357); case 358: /* expression ::= pseudo_column */ yytestcase(yyruleno==358); case 359: /* expression ::= column_reference */ yytestcase(yyruleno==359); case 360: /* expression ::= function_expression */ yytestcase(yyruleno==360); case 361: /* expression ::= case_when_expression */ yytestcase(yyruleno==361); case 391: /* function_expression ::= literal_func */ yytestcase(yyruleno==391); case 440: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==440); case 444: /* boolean_primary ::= predicate */ yytestcase(yyruleno==444); case 446: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==446); case 447: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==447); case 450: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==450); case 452: /* table_reference ::= table_primary */ yytestcase(yyruleno==452); case 453: /* table_reference ::= joined_table */ yytestcase(yyruleno==453); case 457: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==457); case 514: /* query_simple ::= query_specification */ yytestcase(yyruleno==514); case 515: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==515); case 518: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==518); case 520: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==520); { yylhsminor.yy600 = yymsp[0].minor.yy600; } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 326: /* literal ::= NULL */ { yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 327: /* literal ::= NK_QUESTION */ { yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 328: /* duration_literal ::= NK_VARIABLE */ { yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 329: /* signed ::= NK_INTEGER */ { yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 330: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; case 331: /* 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.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 332: /* signed ::= NK_FLOAT */ { yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 333: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 334: /* 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.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 336: /* signed_literal ::= NK_STRING */ { yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 337: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 338: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 339: /* signed_literal ::= duration_literal */ case 341: /* signed_literal ::= literal_func */ yytestcase(yyruleno==341); case 411: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==411); case 473: /* select_item ::= common_expression */ yytestcase(yyruleno==473); case 483: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==483); case 519: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==519); case 521: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==521); case 534: /* search_condition ::= common_expression */ yytestcase(yyruleno==534); { yylhsminor.yy600 = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 340: /* signed_literal ::= NULL */ { yylhsminor.yy600 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 342: /* signed_literal ::= NK_QUESTION */ { yylhsminor.yy600 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 362: /* expression ::= NK_LP expression NK_RP */ case 445: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==445); case 533: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==533); { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 363: /* expression ::= NK_PLUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 364: /* expression ::= NK_MINUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy600), NULL)); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 365: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 366: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 367: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 368: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 369: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 370: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 371: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 372: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 375: /* column_reference ::= column_name */ { yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy77, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy77)); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 376: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77, createColumnNode(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy77)); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 377: /* pseudo_column ::= ROWTS */ case 378: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==378); case 380: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==380); case 381: /* pseudo_column ::= QEND */ yytestcase(yyruleno==381); case 382: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==382); case 383: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==383); case 384: /* pseudo_column ::= WEND */ yytestcase(yyruleno==384); case 385: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==385); case 386: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==386); case 387: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==387); case 393: /* literal_func ::= NOW */ yytestcase(yyruleno==393); { yylhsminor.yy600 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 379: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy77)))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 388: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 389: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==389); { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy77, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy77, yymsp[-1].minor.yy601)); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 390: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-1].minor.yy888)); } yymsp[-5].minor.yy600 = yylhsminor.yy600; break; case 392: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy77, NULL)); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 407: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy601 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy601 = yylhsminor.yy601; break; case 412: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 476: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==476); { yylhsminor.yy600 = createColumnNode(pCxt, &yymsp[-2].minor.yy77, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 413: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy601, yymsp[-1].minor.yy600)); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 414: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-2].minor.yy601, yymsp[-1].minor.yy600)); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 417: /* when_then_expr ::= WHEN common_expression THEN common_expression */ { yymsp[-3].minor.yy600 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600)); } break; case 419: /* case_when_else_opt ::= ELSE common_expression */ { yymsp[-1].minor.yy600 = releaseRawExprNode(pCxt, yymsp[0].minor.yy600); } break; case 420: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 425: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==425); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy666, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 421: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy600), releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-4].minor.yy600 = yylhsminor.yy600; break; case 422: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy600), releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-5].minor.yy600 = yylhsminor.yy600; break; case 423: /* predicate ::= expr_or_subquery IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), NULL)); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 424: /* predicate ::= expr_or_subquery IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), NULL)); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 426: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy666 = OP_TYPE_LOWER_THAN; } break; case 427: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy666 = OP_TYPE_GREATER_THAN; } break; case 428: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy666 = OP_TYPE_LOWER_EQUAL; } break; case 429: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy666 = OP_TYPE_GREATER_EQUAL; } break; case 430: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy666 = OP_TYPE_NOT_EQUAL; } break; case 431: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy666 = OP_TYPE_EQUAL; } break; case 432: /* compare_op ::= LIKE */ { yymsp[0].minor.yy666 = OP_TYPE_LIKE; } break; case 433: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy666 = OP_TYPE_NOT_LIKE; } break; case 434: /* compare_op ::= MATCH */ { yymsp[0].minor.yy666 = OP_TYPE_MATCH; } break; case 435: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy666 = OP_TYPE_NMATCH; } break; case 436: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy666 = OP_TYPE_JSON_CONTAINS; } break; case 437: /* in_op ::= IN */ { yymsp[0].minor.yy666 = OP_TYPE_IN; } break; case 438: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy666 = OP_TYPE_NOT_IN; } break; case 439: /* in_predicate_value ::= NK_LP literal_list NK_RP */ { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy601)); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 441: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy600), NULL)); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 442: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 443: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy600); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy600); yylhsminor.yy600 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 449: /* from_clause_opt ::= FROM table_reference_list */ case 478: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==478); case 508: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==508); { yymsp[-1].minor.yy600 = yymsp[0].minor.yy600; } break; case 451: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy600 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy600, yymsp[0].minor.yy600, NULL); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 454: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy600 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy77, &yymsp[0].minor.yy77); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 455: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy600 = createRealTableNode(pCxt, &yymsp[-3].minor.yy77, &yymsp[-1].minor.yy77, &yymsp[0].minor.yy77); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 456: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy600 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600), &yymsp[0].minor.yy77); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 458: /* alias_opt ::= */ { yymsp[1].minor.yy77 = nil_token; } break; case 460: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy77 = yymsp[0].minor.yy77; } break; case 461: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 462: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==462); { yymsp[-2].minor.yy600 = yymsp[-1].minor.yy600; } break; case 463: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy600 = createJoinTableNode(pCxt, yymsp[-4].minor.yy560, yymsp[-5].minor.yy600, yymsp[-2].minor.yy600, yymsp[0].minor.yy600); } yymsp[-5].minor.yy600 = yylhsminor.yy600; break; case 464: /* join_type ::= */ { yymsp[1].minor.yy560 = JOIN_TYPE_INNER; } break; case 465: /* join_type ::= INNER */ { yymsp[0].minor.yy560 = JOIN_TYPE_INNER; } break; case 466: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { yymsp[-11].minor.yy600 = createSelectStmt(pCxt, yymsp[-10].minor.yy841, yymsp[-9].minor.yy601, yymsp[-8].minor.yy600); yymsp[-11].minor.yy600 = addWhereClause(pCxt, yymsp[-11].minor.yy600, yymsp[-7].minor.yy600); yymsp[-11].minor.yy600 = addPartitionByClause(pCxt, yymsp[-11].minor.yy600, yymsp[-6].minor.yy601); yymsp[-11].minor.yy600 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy600, yymsp[-2].minor.yy600); yymsp[-11].minor.yy600 = addGroupByClause(pCxt, yymsp[-11].minor.yy600, yymsp[-1].minor.yy601); yymsp[-11].minor.yy600 = addHavingClause(pCxt, yymsp[-11].minor.yy600, yymsp[0].minor.yy600); yymsp[-11].minor.yy600 = addRangeClause(pCxt, yymsp[-11].minor.yy600, yymsp[-5].minor.yy600); yymsp[-11].minor.yy600 = addEveryClause(pCxt, yymsp[-11].minor.yy600, yymsp[-4].minor.yy600); yymsp[-11].minor.yy600 = addFillClause(pCxt, yymsp[-11].minor.yy600, yymsp[-3].minor.yy600); } break; case 469: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy841 = false; } break; case 472: /* select_item ::= NK_STAR */ { yylhsminor.yy600 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 474: /* select_item ::= common_expression column_alias */ case 484: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==484); { yylhsminor.yy600 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600), &yymsp[0].minor.yy77); } yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 475: /* select_item ::= common_expression AS column_alias */ case 485: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==485); { yylhsminor.yy600 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), &yymsp[0].minor.yy77); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 480: /* partition_by_clause_opt ::= PARTITION BY partition_list */ case 504: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==504); case 523: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==523); { yymsp[-2].minor.yy601 = yymsp[0].minor.yy601; } break; case 487: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy600 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } break; case 488: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy600 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } break; case 489: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy600 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), NULL, yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } break; case 490: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy600 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy600), releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), yymsp[-1].minor.yy600, yymsp[0].minor.yy600); } break; case 494: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy600 = createFillNode(pCxt, yymsp[-1].minor.yy798, NULL); } break; case 495: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ { yymsp[-5].minor.yy600 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy601)); } break; case 496: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP */ { yymsp[-5].minor.yy600 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy601)); } break; case 497: /* fill_mode ::= NONE */ { yymsp[0].minor.yy798 = FILL_MODE_NONE; } break; case 498: /* fill_mode ::= PREV */ { yymsp[0].minor.yy798 = FILL_MODE_PREV; } break; case 499: /* fill_mode ::= NULL */ { yymsp[0].minor.yy798 = FILL_MODE_NULL; } break; case 500: /* fill_mode ::= NULL_F */ { yymsp[0].minor.yy798 = FILL_MODE_NULL_F; } break; case 501: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy798 = FILL_MODE_LINEAR; } break; case 502: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy798 = FILL_MODE_NEXT; } break; case 505: /* group_by_list ::= expr_or_subquery */ { yylhsminor.yy601 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[0].minor.yy601 = yylhsminor.yy601; break; case 506: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { yylhsminor.yy601 = addNodeToList(pCxt, yymsp[-2].minor.yy601, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy600))); } yymsp[-2].minor.yy601 = yylhsminor.yy601; break; case 510: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { yymsp[-5].minor.yy600 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy600), releaseRawExprNode(pCxt, yymsp[-1].minor.yy600)); } break; case 513: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy600 = addOrderByClause(pCxt, yymsp[-3].minor.yy600, yymsp[-2].minor.yy601); yylhsminor.yy600 = addSlimitClause(pCxt, yylhsminor.yy600, yymsp[-1].minor.yy600); yylhsminor.yy600 = addLimitClause(pCxt, yylhsminor.yy600, yymsp[0].minor.yy600); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 516: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { yylhsminor.yy600 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy600, yymsp[0].minor.yy600); } yymsp[-3].minor.yy600 = yylhsminor.yy600; break; case 517: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { yylhsminor.yy600 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy600, yymsp[0].minor.yy600); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 525: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 529: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==529); { yymsp[-1].minor.yy600 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 526: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 530: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==530); { yymsp[-3].minor.yy600 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; case 527: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 531: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==531); { yymsp[-3].minor.yy600 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; case 532: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy600 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy600); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 537: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { yylhsminor.yy600 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy600), yymsp[-1].minor.yy32, yymsp[0].minor.yy385); } yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 538: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy32 = ORDER_ASC; } break; case 539: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy32 = ORDER_ASC; } break; case 540: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy32 = ORDER_DESC; } break; case 541: /* null_ordering_opt ::= */ { yymsp[1].minor.yy385 = NULL_ORDER_DEFAULT; } break; case 542: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy385 = NULL_ORDER_FIRST; } break; case 543: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy385 = NULL_ORDER_LAST; } break; default: break; /********** End reduce actions ************************************************/ }; assert( yyrulenoYY_MAX_SHIFT && yyact<=YY_MAX_SHIFTREDUCE) ); /* It is not possible for a REDUCE to be followed by an error */ assert( yyact!=YY_ERROR_ACTION ); yymsp += yysize+1; yypParser->yytos = yymsp; yymsp->stateno = (YYACTIONTYPE)yyact; yymsp->major = (YYCODETYPE)yygoto; yyTraceShift(yypParser, yyact, "... then shift"); return yyact; } /* ** The following code executes when the parse fails */ #ifndef YYNOERRORRECOVERY static void yy_parse_failed( yyParser *yypParser /* The parser */ ){ ParseARG_FETCH ParseCTX_FETCH #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt); } #endif while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will be executed whenever the ** parser fails */ /************ Begin %parse_failure code ***************************************/ /************ End %parse_failure code *****************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE } #endif /* YYNOERRORRECOVERY */ /* ** The following code executes when a syntax error first occurs. */ static void yy_syntax_error( yyParser *yypParser, /* The parser */ int yymajor, /* The major type of the error token */ ParseTOKENTYPE yyminor /* The minor type of the error token */ ){ ParseARG_FETCH ParseCTX_FETCH #define TOKEN yyminor /************ Begin %syntax_error code ****************************************/ if (TSDB_CODE_SUCCESS == pCxt->errCode) { if(TOKEN.z) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } else { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL); } } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } /************ End %syntax_error code ******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE } /* ** The following is executed when the parser accepts */ static void yy_accept( yyParser *yypParser /* The parser */ ){ ParseARG_FETCH ParseCTX_FETCH #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt); } #endif #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif assert( yypParser->yytos==yypParser->yystack ); /* Here code is inserted which will be executed whenever the ** parser accepts */ /*********** Begin %parse_accept code *****************************************/ /*********** End %parse_accept code *******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE } /* The main parser program. ** The first argument is a pointer to a structure obtained from ** "ParseAlloc" which describes the current state of the parser. ** The second argument is the major token number. The third is ** the minor token. The fourth optional argument is whatever the ** user wants (and specified in the grammar) and is available for ** use by the action routines. ** ** Inputs: **
    **
  • A pointer to the parser (an opaque structure.) **
  • The major token number. **
  • The minor token number. **
  • An option argument of a grammar-specified type. **
** ** Outputs: ** None. */ void Parse( void *yyp, /* The parser */ int yymajor, /* The major token code number */ ParseTOKENTYPE yyminor /* The value for the token */ ParseARG_PDECL /* Optional %extra_argument parameter */ ){ YYMINORTYPE yyminorunion; YYACTIONTYPE yyact; /* The parser action. */ #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) int yyendofinput; /* True if we are at the end of input */ #endif #ifdef YYERRORSYMBOL int yyerrorhit = 0; /* True if yymajor has invoked an error */ #endif yyParser *yypParser = (yyParser*)yyp; /* The parser */ ParseCTX_FETCH ParseARG_STORE assert( yypParser->yytos!=0 ); #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) yyendofinput = (yymajor==0); #endif yyact = yypParser->yytos->stateno; #ifndef NDEBUG if( yyTraceFILE ){ if( yyact < YY_MIN_REDUCE ){ fprintf(yyTraceFILE,"%sInput '%s' in state %d\n", yyTracePrompt,yyTokenName[yymajor],yyact); }else{ fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n", yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE); } } #endif do{ assert( yyact==yypParser->yytos->stateno ); yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact); if( yyact >= YY_MIN_REDUCE ){ yyact = yy_reduce(yypParser,yyact-YY_MIN_REDUCE,yymajor, yyminor ParseCTX_PARAM); }else if( yyact <= YY_MAX_SHIFTREDUCE ){ yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt--; #endif break; }else if( yyact==YY_ACCEPT_ACTION ){ yypParser->yytos--; yy_accept(yypParser); return; }else{ assert( yyact == YY_ERROR_ACTION ); yyminorunion.yy0 = yyminor; #ifdef YYERRORSYMBOL int yymx; #endif #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt); } #endif #ifdef YYERRORSYMBOL /* A syntax error has occurred. ** The response to an error depends upon whether or not the ** grammar defines an error token "ERROR". ** ** This is what we do if the grammar does define ERROR: ** ** * Call the %syntax_error function. ** ** * Begin popping the stack until we enter a state where ** it is legal to shift the error symbol, then shift ** the error symbol. ** ** * Set the error count to three. ** ** * Begin accepting and shifting new tokens. No new error ** processing will occur until three tokens have been ** shifted successfully. ** */ if( yypParser->yyerrcnt<0 ){ yy_syntax_error(yypParser,yymajor,yyminor); } yymx = yypParser->yytos->major; if( yymx==YYERRORSYMBOL || yyerrorhit ){ #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sDiscard input token %s\n", yyTracePrompt,yyTokenName[yymajor]); } #endif yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion); yymajor = YYNOCODE; }else{ while( yypParser->yytos >= yypParser->yystack && (yyact = yy_find_reduce_action( yypParser->yytos->stateno, YYERRORSYMBOL)) > YY_MAX_SHIFTREDUCE ){ yy_pop_parser_stack(yypParser); } if( yypParser->yytos < yypParser->yystack || yymajor==0 ){ yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); yy_parse_failed(yypParser); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif yymajor = YYNOCODE; }else if( yymx!=YYERRORSYMBOL ){ yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor); } } yypParser->yyerrcnt = 3; yyerrorhit = 1; if( yymajor==YYNOCODE ) break; yyact = yypParser->yytos->stateno; #elif defined(YYNOERRORRECOVERY) /* If the YYNOERRORRECOVERY macro is defined, then do not attempt to ** do any kind of error recovery. Instead, simply invoke the syntax ** error routine and continue going as if nothing had happened. ** ** Applications can set this macro (for example inside %include) if ** they intend to abandon the parse upon the first syntax error seen. */ yy_syntax_error(yypParser,yymajor, yyminor); yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); break; #else /* YYERRORSYMBOL is not defined */ /* This is what we do if the grammar does not define ERROR: ** ** * Report an error message, and throw away the input token. ** ** * If the input token is $, then fail the parse. ** ** As before, subsequent error messages are suppressed until ** three input tokens have been successfully shifted. */ if( yypParser->yyerrcnt<=0 ){ yy_syntax_error(yypParser,yymajor, yyminor); } yypParser->yyerrcnt = 3; yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); if( yyendofinput ){ yy_parse_failed(yypParser); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif } break; #endif } }while( yypParser->yytos>yypParser->yystack ); #ifndef NDEBUG if( yyTraceFILE ){ yyStackEntry *i; char cDiv = '['; fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt); for(i=&yypParser->yystack[1]; i<=yypParser->yytos; i++){ fprintf(yyTraceFILE,"%c%s", cDiv, yyTokenName[i->major]); cDiv = ' '; } fprintf(yyTraceFILE,"]\n"); } #endif return; } /* ** Return the fallback token corresponding to canonical token iToken, or ** 0 if iToken has no fallback. */ int ParseFallback(int iToken){ #ifdef YYFALLBACK if( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) ){ return yyFallback[iToken]; } #else (void)iToken; #endif return 0; }