/* ** 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 494 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; SNode* yy28; SDataType yy32; EJoinType yy152; SNodeList* yy236; EFillMode yy322; SAlterOption yy481; int64_t yy701; EOrder yy734; bool yy793; STokenPair yy833; int8_t yy847; SToken yy889; EOperatorType yy896; ENullOrder yy945; int32_t yy956; } 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 807 #define YYNRULE 607 #define YYNRULE_WITH_ACTION 607 #define YYNTOKEN 342 #define YY_MAX_SHIFT 806 #define YY_MIN_SHIFTREDUCE 1192 #define YY_MAX_SHIFTREDUCE 1798 #define YY_ERROR_ACTION 1799 #define YY_ACCEPT_ACTION 1800 #define YY_NO_ACTION 1801 #define YY_MIN_REDUCE 1802 #define YY_MAX_REDUCE 2408 /************* 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 (2787) static const YYACTIONTYPE yy_action[] = { /* 0 */ 2212, 1968, 2190, 2101, 450, 697, 1979, 38, 309, 449, /* 10 */ 714, 2173, 48, 46, 1725, 397, 2198, 1825, 2098, 684, /* 20 */ 404, 1592, 1567, 41, 40, 135, 2194, 47, 45, 44, /* 30 */ 43, 42, 577, 1648, 1338, 1565, 41, 40, 2230, 542, /* 40 */ 47, 45, 44, 43, 42, 539, 2190, 1337, 1595, 696, /* 50 */ 2180, 633, 713, 696, 2379, 1800, 9, 2190, 633, 2212, /* 60 */ 1970, 2379, 1643, 696, 2196, 401, 66, 2180, 19, 677, /* 70 */ 2194, 2199, 2385, 190, 707, 1573, 1592, 2380, 663, 2385, /* 80 */ 190, 2194, 169, 364, 2380, 663, 2211, 1250, 2247, 1249, /* 90 */ 1920, 171, 2213, 717, 2215, 2216, 712, 2230, 707, 407, /* 100 */ 803, 1593, 183, 15, 2384, 697, 1979, 164, 2196, 2180, /* 110 */ 183, 713, 509, 682, 386, 1981, 48, 46, 707, 2196, /* 120 */ 1251, 1594, 2030, 2085, 404, 135, 1567, 1677, 419, 707, /* 130 */ 372, 2084, 582, 418, 638, 2344, 51, 1648, 223, 1565, /* 140 */ 1650, 1651, 540, 456, 1845, 2211, 51, 2247, 674, 145, /* 150 */ 112, 2213, 717, 2215, 2216, 712, 554, 707, 2101, 62, /* 160 */ 2026, 2027, 187, 62, 2300, 62, 1643, 52, 400, 2296, /* 170 */ 1623, 1633, 19, 2099, 684, 633, 1649, 1652, 2379, 1573, /* 180 */ 674, 145, 192, 657, 1678, 1803, 537, 534, 351, 538, /* 190 */ 1838, 1568, 2333, 1566, 1955, 532, 2385, 190, 528, 524, /* 200 */ 268, 2380, 663, 752, 803, 1788, 125, 15, 2212, 124, /* 210 */ 123, 122, 121, 120, 119, 118, 117, 116, 714, 1233, /* 220 */ 1679, 1418, 1419, 1571, 1572, 1591, 1622, 1625, 1626, 1627, /* 230 */ 1628, 1629, 1630, 1631, 1632, 709, 705, 1641, 1642, 1644, /* 240 */ 1645, 1646, 1647, 2, 1650, 1651, 2230, 47, 45, 44, /* 250 */ 43, 42, 288, 2308, 673, 2383, 136, 672, 2180, 2379, /* 260 */ 713, 752, 37, 402, 1672, 1673, 1674, 1675, 1676, 1680, /* 270 */ 1681, 1682, 1683, 290, 1623, 1633, 1711, 661, 190, 62, /* 280 */ 1649, 1652, 2380, 663, 189, 2308, 2309, 254, 143, 2313, /* 290 */ 1250, 253, 1249, 291, 2211, 1568, 2247, 1566, 35, 112, /* 300 */ 2213, 717, 2215, 2216, 712, 140, 707, 1592, 1684, 148, /* 310 */ 683, 152, 2271, 2300, 2032, 2212, 291, 400, 2296, 12, /* 320 */ 291, 385, 291, 1251, 291, 677, 618, 1571, 1572, 2030, /* 330 */ 1622, 1625, 1626, 1627, 1628, 1629, 1630, 1631, 1632, 709, /* 340 */ 705, 1641, 1642, 1644, 1645, 1646, 1647, 2, 12, 48, /* 350 */ 46, 632, 93, 2230, 2032, 359, 1573, 404, 384, 1567, /* 360 */ 611, 394, 552, 1383, 2094, 2180, 448, 713, 447, 2030, /* 370 */ 1648, 409, 1565, 545, 2025, 2027, 538, 1838, 1374, 742, /* 380 */ 741, 740, 1378, 739, 1380, 1381, 738, 735, 209, 1389, /* 390 */ 732, 1391, 1392, 729, 726, 723, 674, 145, 446, 1643, /* 400 */ 90, 2211, 652, 2247, 1225, 19, 112, 2213, 717, 2215, /* 410 */ 2216, 712, 1573, 707, 595, 594, 593, 374, 187, 743, /* 420 */ 2300, 585, 141, 589, 400, 2296, 1974, 588, 86, 2212, /* 430 */ 266, 85, 587, 592, 380, 379, 291, 803, 586, 714, /* 440 */ 15, 1847, 170, 1227, 1814, 1230, 1231, 186, 2334, 2163, /* 450 */ 674, 145, 656, 48, 46, 1653, 225, 1476, 1477, 2019, /* 460 */ 540, 404, 1845, 1567, 41, 40, 762, 2230, 47, 45, /* 470 */ 44, 43, 42, 94, 1648, 60, 1565, 1650, 1651, 2180, /* 480 */ 2230, 713, 630, 125, 460, 2080, 124, 123, 122, 121, /* 490 */ 120, 119, 118, 117, 116, 74, 658, 653, 646, 2212, /* 500 */ 191, 2308, 2309, 1643, 143, 2313, 1729, 1623, 1633, 714, /* 510 */ 398, 2341, 1592, 1649, 1652, 2211, 1573, 2247, 167, 438, /* 520 */ 112, 2213, 717, 2215, 2216, 712, 1981, 707, 1568, 1964, /* 530 */ 1566, 204, 2399, 2032, 2300, 655, 665, 2230, 400, 2296, /* 540 */ 399, 803, 697, 1979, 49, 84, 440, 436, 2030, 2180, /* 550 */ 155, 713, 1881, 676, 188, 2308, 2309, 255, 143, 2313, /* 560 */ 1571, 1572, 195, 1622, 1625, 1626, 1627, 1628, 1629, 1630, /* 570 */ 1631, 1632, 709, 705, 1641, 1642, 1644, 1645, 1646, 1647, /* 580 */ 2, 1650, 1651, 697, 1979, 2211, 2174, 2247, 14, 13, /* 590 */ 112, 2213, 717, 2215, 2216, 712, 1753, 707, 413, 412, /* 600 */ 697, 1979, 2399, 56, 2300, 12, 2212, 10, 400, 2296, /* 610 */ 55, 1623, 1633, 1824, 466, 2080, 714, 1649, 1652, 1658, /* 620 */ 454, 1574, 595, 594, 593, 1592, 500, 1538, 1539, 585, /* 630 */ 141, 589, 1568, 633, 1566, 588, 2379, 697, 1979, 1795, /* 640 */ 587, 592, 380, 379, 2230, 264, 586, 649, 648, 1751, /* 650 */ 1752, 1754, 1755, 1756, 2385, 190, 2180, 455, 713, 2380, /* 660 */ 663, 207, 1624, 2180, 1571, 1572, 433, 1622, 1625, 1626, /* 670 */ 1627, 1628, 1629, 1630, 1631, 1632, 709, 705, 1641, 1642, /* 680 */ 1644, 1645, 1646, 1647, 2, 48, 46, 214, 213, 493, /* 690 */ 2080, 1691, 2211, 404, 2247, 1567, 1802, 112, 2213, 717, /* 700 */ 2215, 2216, 712, 1966, 707, 699, 1648, 2272, 1565, 2275, /* 710 */ 499, 2300, 1962, 239, 1593, 400, 2296, 2315, 1253, 1254, /* 720 */ 134, 133, 132, 131, 130, 129, 128, 127, 126, 174, /* 730 */ 2063, 2212, 377, 697, 1979, 1643, 212, 571, 567, 563, /* 740 */ 559, 714, 238, 2312, 683, 1794, 637, 635, 1573, 1719, /* 750 */ 41, 40, 1823, 468, 47, 45, 44, 43, 42, 41, /* 760 */ 40, 1822, 407, 47, 45, 44, 43, 42, 90, 2230, /* 770 */ 167, 697, 1979, 803, 1576, 1624, 49, 2032, 1981, 1577, /* 780 */ 609, 2180, 91, 713, 408, 236, 30, 697, 1979, 48, /* 790 */ 46, 483, 2030, 607, 1975, 605, 681, 404, 2094, 1567, /* 800 */ 410, 378, 2180, 376, 375, 2315, 579, 484, 167, 1921, /* 810 */ 1648, 2180, 1565, 1650, 1651, 147, 1981, 2211, 2271, 2247, /* 820 */ 683, 1594, 113, 2213, 717, 2215, 2216, 712, 581, 707, /* 830 */ 600, 2311, 580, 1815, 1493, 1494, 2300, 300, 301, 1643, /* 840 */ 2299, 2296, 299, 1623, 1633, 610, 1765, 697, 1979, 1649, /* 850 */ 1652, 1983, 1573, 235, 229, 1764, 697, 1979, 2032, 252, /* 860 */ 234, 550, 573, 572, 1568, 370, 1566, 553, 1342, 109, /* 870 */ 1492, 1495, 692, 2030, 2094, 603, 1976, 803, 1722, 227, /* 880 */ 15, 1341, 597, 2212, 1821, 701, 146, 2272, 251, 478, /* 890 */ 575, 574, 616, 714, 1971, 2354, 1571, 1572, 477, 1622, /* 900 */ 1625, 1626, 1627, 1628, 1629, 1630, 1631, 1632, 709, 705, /* 910 */ 1641, 1642, 1644, 1645, 1646, 1647, 2, 1650, 1651, 41, /* 920 */ 40, 2230, 1820, 47, 45, 44, 43, 42, 70, 697, /* 930 */ 1979, 69, 1579, 2180, 2180, 713, 2315, 662, 2145, 633, /* 940 */ 2379, 1819, 2379, 44, 43, 42, 511, 1623, 1633, 257, /* 950 */ 591, 590, 2032, 1649, 1652, 1327, 2326, 178, 661, 190, /* 960 */ 2385, 190, 2310, 2380, 663, 2380, 663, 2031, 1568, 2211, /* 970 */ 1566, 2247, 2180, 290, 112, 2213, 717, 2215, 2216, 712, /* 980 */ 285, 707, 1595, 1818, 637, 635, 2399, 256, 2300, 1817, /* 990 */ 1816, 2180, 400, 2296, 1956, 1329, 103, 1813, 1812, 669, /* 1000 */ 1571, 1572, 1878, 1622, 1625, 1626, 1627, 1628, 1629, 1630, /* 1010 */ 1631, 1632, 709, 705, 1641, 1642, 1644, 1645, 1646, 1647, /* 1020 */ 2, 1972, 355, 168, 1590, 697, 1979, 1811, 330, 697, /* 1030 */ 1979, 491, 2384, 2180, 507, 2379, 1592, 506, 261, 2180, /* 1040 */ 2180, 744, 327, 73, 2023, 265, 72, 2180, 2180, 680, /* 1050 */ 1810, 708, 1809, 474, 2383, 508, 2347, 352, 2380, 2382, /* 1060 */ 476, 750, 157, 156, 747, 746, 745, 154, 221, 519, /* 1070 */ 517, 514, 780, 779, 778, 777, 416, 2180, 776, 775, /* 1080 */ 149, 770, 769, 768, 767, 766, 765, 764, 159, 760, /* 1090 */ 759, 758, 415, 414, 755, 754, 753, 177, 176, 167, /* 1100 */ 2180, 581, 2180, 774, 772, 580, 373, 1982, 62, 748, /* 1110 */ 749, 1595, 2023, 2023, 323, 41, 40, 2009, 462, 47, /* 1120 */ 45, 44, 43, 42, 650, 697, 1979, 750, 157, 156, /* 1130 */ 747, 746, 745, 154, 205, 763, 41, 40, 1941, 1721, /* 1140 */ 47, 45, 44, 43, 42, 411, 2384, 111, 504, 2379, /* 1150 */ 139, 498, 497, 496, 495, 490, 489, 488, 487, 486, /* 1160 */ 482, 481, 480, 479, 354, 471, 470, 469, 2383, 464, /* 1170 */ 463, 371, 2380, 2381, 662, 1230, 1231, 2379, 1808, 697, /* 1180 */ 1979, 1807, 413, 412, 697, 1979, 1624, 1806, 81, 80, /* 1190 */ 453, 666, 1581, 202, 1805, 661, 190, 2166, 2212, 304, /* 1200 */ 2380, 663, 155, 1648, 694, 1574, 445, 443, 714, 457, /* 1210 */ 644, 1741, 1957, 697, 1979, 697, 1979, 353, 2320, 1711, /* 1220 */ 434, 1567, 458, 432, 428, 424, 421, 446, 2180, 2212, /* 1230 */ 704, 2180, 1643, 695, 1565, 310, 2230, 2180, 54, 714, /* 1240 */ 3, 2372, 155, 670, 2180, 1573, 426, 83, 2180, 137, /* 1250 */ 713, 244, 246, 583, 242, 245, 150, 248, 584, 2212, /* 1260 */ 247, 250, 1533, 267, 249, 291, 1865, 2230, 1575, 714, /* 1270 */ 703, 2319, 279, 50, 1573, 1325, 1856, 1797, 1798, 2180, /* 1280 */ 1323, 713, 1854, 613, 2211, 612, 2247, 1919, 596, 112, /* 1290 */ 2213, 717, 2215, 2216, 712, 1918, 707, 2230, 598, 803, /* 1300 */ 166, 2399, 1536, 2300, 601, 50, 108, 400, 2296, 2180, /* 1310 */ 2327, 713, 272, 14, 13, 2211, 105, 2247, 2231, 2201, /* 1320 */ 112, 2213, 717, 2215, 2216, 712, 756, 707, 155, 50, /* 1330 */ 34, 297, 2399, 1750, 2300, 71, 41, 40, 400, 2296, /* 1340 */ 47, 45, 44, 43, 42, 2211, 2212, 2247, 1303, 757, /* 1350 */ 112, 2213, 717, 2215, 2216, 712, 714, 707, 1954, 64, /* 1360 */ 153, 1582, 2399, 1577, 2300, 1749, 2212, 36, 400, 2296, /* 1370 */ 155, 1301, 274, 41, 40, 2203, 714, 47, 45, 44, /* 1380 */ 43, 42, 417, 50, 2230, 1669, 50, 721, 679, 1490, /* 1390 */ 1568, 302, 1566, 1585, 1587, 689, 2180, 387, 713, 1839, /* 1400 */ 2089, 2020, 1844, 153, 2230, 2337, 705, 1641, 1642, 1644, /* 1410 */ 1645, 1646, 1647, 675, 284, 2212, 2180, 155, 713, 1685, /* 1420 */ 306, 138, 1571, 1572, 153, 714, 1578, 287, 1284, 1848, /* 1430 */ 1368, 1, 2211, 667, 2247, 2212, 420, 112, 2213, 717, /* 1440 */ 2215, 2216, 712, 1634, 707, 714, 322, 1396, 5, 2273, /* 1450 */ 425, 2300, 2211, 2230, 2247, 400, 2296, 112, 2213, 717, /* 1460 */ 2215, 2216, 712, 1400, 707, 2180, 368, 713, 1285, 700, /* 1470 */ 1598, 2300, 197, 2230, 442, 400, 2296, 1407, 198, 798, /* 1480 */ 441, 1405, 444, 200, 158, 2180, 1514, 713, 1591, 317, /* 1490 */ 459, 750, 157, 156, 747, 746, 745, 154, 211, 461, /* 1500 */ 1595, 2211, 678, 2247, 2212, 2090, 113, 2213, 717, 2215, /* 1510 */ 2216, 712, 465, 707, 711, 467, 502, 472, 1590, 485, /* 1520 */ 2300, 715, 492, 2247, 702, 2296, 113, 2213, 717, 2215, /* 1530 */ 2216, 712, 2082, 707, 494, 512, 2212, 215, 501, 503, /* 1540 */ 2300, 513, 2230, 510, 363, 2296, 714, 216, 516, 633, /* 1550 */ 515, 1596, 2379, 4, 2180, 218, 713, 535, 518, 536, /* 1560 */ 520, 543, 544, 226, 1593, 546, 547, 1597, 1599, 2212, /* 1570 */ 2385, 190, 228, 548, 2230, 2380, 663, 549, 231, 714, /* 1580 */ 555, 551, 233, 88, 89, 237, 2180, 2154, 713, 576, /* 1590 */ 2211, 358, 2247, 114, 615, 345, 2213, 717, 2215, 2216, /* 1600 */ 712, 710, 707, 698, 2265, 617, 578, 2230, 2151, 92, /* 1610 */ 1969, 241, 151, 1965, 243, 160, 2212, 161, 1967, 2180, /* 1620 */ 1963, 713, 2211, 258, 2247, 621, 714, 172, 2213, 717, /* 1630 */ 2215, 2216, 712, 162, 707, 2212, 163, 620, 2150, 262, /* 1640 */ 1521, 318, 622, 625, 641, 714, 628, 651, 687, 2353, /* 1650 */ 647, 270, 2352, 2338, 2230, 2211, 2348, 2247, 390, 260, /* 1660 */ 113, 2213, 717, 2215, 2216, 712, 2180, 707, 713, 626, /* 1670 */ 627, 8, 654, 2230, 2300, 273, 660, 2322, 388, 2297, /* 1680 */ 642, 664, 2400, 639, 640, 2180, 283, 713, 391, 668, /* 1690 */ 671, 1711, 144, 1594, 142, 2316, 2212, 180, 1600, 292, /* 1700 */ 2402, 98, 2211, 2095, 2247, 685, 714, 171, 2213, 717, /* 1710 */ 2215, 2216, 712, 319, 707, 2212, 686, 2109, 2108, 2107, /* 1720 */ 396, 2211, 100, 2247, 175, 714, 346, 2213, 717, 2215, /* 1730 */ 2216, 712, 278, 707, 2230, 280, 690, 281, 282, 389, /* 1740 */ 320, 193, 691, 2378, 102, 286, 2180, 321, 713, 1980, /* 1750 */ 61, 2345, 2281, 2230, 104, 2024, 719, 313, 1942, 324, /* 1760 */ 799, 800, 2212, 53, 360, 2180, 802, 713, 361, 333, /* 1770 */ 326, 348, 714, 328, 2172, 2171, 347, 337, 2170, 78, /* 1780 */ 2167, 422, 2211, 2212, 2247, 423, 1558, 346, 2213, 717, /* 1790 */ 2215, 2216, 712, 714, 707, 1559, 196, 427, 2165, 429, /* 1800 */ 2230, 2211, 430, 2247, 431, 2164, 339, 2213, 717, 2215, /* 1810 */ 2216, 712, 2180, 707, 713, 369, 2162, 435, 2161, 437, /* 1820 */ 2160, 2230, 439, 1549, 2141, 199, 395, 79, 201, 1517, /* 1830 */ 1516, 2122, 2121, 2180, 2140, 713, 2120, 451, 452, 2119, /* 1840 */ 2118, 2073, 1467, 2072, 2069, 2068, 203, 2067, 2211, 2212, /* 1850 */ 2247, 82, 659, 172, 2213, 717, 2215, 2216, 712, 711, /* 1860 */ 707, 2066, 2071, 2070, 206, 2065, 2064, 2062, 2061, 2211, /* 1870 */ 2060, 2247, 2212, 208, 346, 2213, 717, 2215, 2216, 712, /* 1880 */ 2059, 707, 714, 473, 475, 2075, 2058, 2230, 2057, 2056, /* 1890 */ 2055, 2054, 2053, 2052, 2051, 2050, 2049, 2048, 2047, 2180, /* 1900 */ 2046, 713, 2045, 2044, 210, 2043, 87, 2042, 2401, 2041, /* 1910 */ 2230, 2040, 2074, 2039, 2038, 403, 2037, 2036, 2035, 505, /* 1920 */ 2034, 1469, 2180, 2033, 713, 356, 1339, 357, 1343, 1884, /* 1930 */ 1883, 217, 1882, 219, 220, 2211, 2212, 2247, 1232, 619, /* 1940 */ 345, 2213, 717, 2215, 2216, 712, 714, 707, 1880, 2266, /* 1950 */ 1335, 1877, 1876, 1869, 521, 1858, 525, 806, 2211, 522, /* 1960 */ 2247, 523, 529, 346, 2213, 717, 2215, 2216, 712, 533, /* 1970 */ 707, 316, 527, 2212, 2230, 526, 531, 530, 1834, 405, /* 1980 */ 76, 1833, 222, 714, 2139, 2129, 2180, 182, 713, 184, /* 1990 */ 2200, 185, 2117, 541, 224, 796, 792, 788, 784, 77, /* 2000 */ 314, 230, 2116, 2212, 232, 2093, 1958, 1879, 1277, 1875, /* 2010 */ 556, 2230, 557, 714, 1873, 558, 561, 560, 562, 1871, /* 2020 */ 565, 564, 2211, 2180, 2247, 713, 1868, 346, 2213, 717, /* 2030 */ 2215, 2216, 712, 566, 707, 568, 570, 569, 1853, 1851, /* 2040 */ 110, 2230, 1852, 307, 1850, 1830, 1960, 63, 1412, 1411, /* 2050 */ 2212, 1959, 240, 2180, 771, 713, 1326, 1324, 1322, 614, /* 2060 */ 714, 2247, 773, 1321, 341, 2213, 717, 2215, 2216, 712, /* 2070 */ 1320, 707, 2212, 1866, 1313, 1319, 693, 381, 1318, 1857, /* 2080 */ 382, 599, 714, 1315, 1314, 1312, 1855, 383, 2230, 2211, /* 2090 */ 2384, 2247, 602, 1829, 331, 2213, 717, 2215, 2216, 712, /* 2100 */ 2180, 707, 713, 604, 1828, 606, 1827, 608, 115, 1543, /* 2110 */ 2230, 294, 1547, 1545, 29, 1542, 2138, 1523, 293, 57, /* 2120 */ 67, 1525, 2180, 1527, 713, 2128, 2115, 623, 2114, 624, /* 2130 */ 65, 6, 634, 263, 643, 1714, 2211, 259, 2247, 2212, /* 2140 */ 1502, 329, 2213, 717, 2215, 2216, 712, 20, 707, 714, /* 2150 */ 165, 629, 2212, 645, 21, 1501, 7, 1713, 2211, 636, /* 2160 */ 2247, 22, 714, 332, 2213, 717, 2215, 2216, 712, 631, /* 2170 */ 707, 1767, 2212, 271, 31, 269, 17, 2230, 276, 1748, /* 2180 */ 1740, 33, 714, 277, 173, 2201, 24, 275, 1782, 2180, /* 2190 */ 2230, 713, 32, 1781, 95, 392, 1787, 1786, 1788, 23, /* 2200 */ 1785, 2212, 2180, 393, 713, 2113, 1708, 59, 289, 2092, /* 2210 */ 2230, 714, 97, 1707, 96, 25, 179, 18, 295, 58, /* 2220 */ 2091, 298, 2180, 296, 713, 2211, 1746, 2247, 99, 308, /* 2230 */ 338, 2213, 717, 2215, 2216, 712, 303, 707, 2211, 2230, /* 2240 */ 2247, 26, 68, 342, 2213, 717, 2215, 2216, 712, 101, /* 2250 */ 707, 2180, 1660, 713, 105, 1659, 1583, 11, 2211, 1670, /* 2260 */ 2247, 13, 2250, 334, 2213, 717, 2215, 2216, 712, 706, /* 2270 */ 707, 688, 181, 305, 1638, 194, 1636, 39, 1615, 1635, /* 2280 */ 16, 2212, 27, 720, 1607, 716, 28, 2211, 1397, 2247, /* 2290 */ 718, 714, 343, 2213, 717, 2215, 2216, 712, 406, 707, /* 2300 */ 1394, 722, 724, 2212, 725, 727, 1393, 728, 730, 733, /* 2310 */ 1390, 731, 736, 714, 2212, 1384, 734, 1388, 1382, 2230, /* 2320 */ 737, 106, 311, 1406, 714, 1387, 107, 75, 1386, 1402, /* 2330 */ 1275, 2180, 2212, 713, 751, 1385, 1307, 1306, 1305, 1304, /* 2340 */ 1302, 2230, 714, 1300, 1299, 1298, 1333, 761, 1296, 1295, /* 2350 */ 312, 1294, 2230, 2180, 1293, 713, 1292, 1291, 1290, 1330, /* 2360 */ 1328, 1287, 1286, 1283, 2180, 1282, 713, 2211, 1281, 2247, /* 2370 */ 2230, 1280, 335, 2213, 717, 2215, 2216, 712, 1874, 707, /* 2380 */ 781, 783, 2180, 782, 713, 1872, 785, 786, 787, 2211, /* 2390 */ 1870, 2247, 789, 790, 344, 2213, 717, 2215, 2216, 712, /* 2400 */ 2211, 707, 2247, 791, 1867, 336, 2213, 717, 2215, 2216, /* 2410 */ 712, 2212, 707, 795, 793, 794, 1849, 797, 2211, 1222, /* 2420 */ 2247, 714, 2212, 349, 2213, 717, 2215, 2216, 712, 1826, /* 2430 */ 707, 315, 714, 801, 804, 2212, 1569, 325, 805, 1801, /* 2440 */ 1801, 1801, 1801, 1801, 1801, 714, 2212, 1801, 1801, 2230, /* 2450 */ 1801, 1801, 1801, 1801, 1801, 1801, 714, 1801, 1801, 1801, /* 2460 */ 2230, 2180, 1801, 713, 1801, 1801, 1801, 1801, 1801, 1801, /* 2470 */ 1801, 1801, 2180, 2230, 713, 1801, 1801, 1801, 1801, 1801, /* 2480 */ 1801, 1801, 1801, 1801, 2230, 2180, 1801, 713, 1801, 1801, /* 2490 */ 1801, 1801, 1801, 1801, 1801, 1801, 2180, 2211, 713, 2247, /* 2500 */ 1801, 1801, 350, 2213, 717, 2215, 2216, 712, 2211, 707, /* 2510 */ 2247, 1801, 2212, 2224, 2213, 717, 2215, 2216, 712, 1801, /* 2520 */ 707, 2211, 714, 2247, 1801, 1801, 2223, 2213, 717, 2215, /* 2530 */ 2216, 712, 2211, 707, 2247, 2212, 1801, 2222, 2213, 717, /* 2540 */ 2215, 2216, 712, 1801, 707, 714, 1801, 1801, 1801, 1801, /* 2550 */ 2230, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, /* 2560 */ 1801, 1801, 2180, 1801, 713, 1801, 1801, 1801, 1801, 1801, /* 2570 */ 1801, 1801, 1801, 2230, 1801, 1801, 1801, 1801, 1801, 1801, /* 2580 */ 1801, 1801, 1801, 1801, 2212, 2180, 1801, 713, 1801, 1801, /* 2590 */ 1801, 1801, 1801, 1801, 714, 1801, 1801, 1801, 2211, 2212, /* 2600 */ 2247, 1801, 1801, 365, 2213, 717, 2215, 2216, 712, 714, /* 2610 */ 707, 1801, 1801, 1801, 2212, 1801, 1801, 1801, 1801, 1801, /* 2620 */ 1801, 2211, 2230, 2247, 714, 1801, 366, 2213, 717, 2215, /* 2630 */ 2216, 712, 1801, 707, 2180, 1801, 713, 2230, 1801, 1801, /* 2640 */ 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 2180, /* 2650 */ 1801, 713, 2230, 1801, 1801, 1801, 1801, 1801, 1801, 1801, /* 2660 */ 1801, 1801, 1801, 1801, 2180, 1801, 713, 1801, 1801, 1801, /* 2670 */ 2211, 1801, 2247, 1801, 1801, 362, 2213, 717, 2215, 2216, /* 2680 */ 712, 1801, 707, 1801, 1801, 2211, 1801, 2247, 2212, 1801, /* 2690 */ 367, 2213, 717, 2215, 2216, 712, 1801, 707, 714, 1801, /* 2700 */ 715, 1801, 2247, 1801, 1801, 341, 2213, 717, 2215, 2216, /* 2710 */ 712, 1801, 707, 1801, 1801, 1801, 1801, 1801, 1801, 1801, /* 2720 */ 1801, 1801, 1801, 1801, 1801, 1801, 2230, 1801, 1801, 1801, /* 2730 */ 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 2180, 1801, /* 2740 */ 713, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, /* 2750 */ 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, /* 2760 */ 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, /* 2770 */ 1801, 1801, 1801, 1801, 2211, 1801, 2247, 1801, 1801, 340, /* 2780 */ 2213, 717, 2215, 2216, 712, 1801, 707, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 345, 384, 371, 397, 415, 354, 355, 451, 452, 420, /* 10 */ 355, 415, 12, 13, 14, 409, 385, 345, 412, 413, /* 20 */ 20, 20, 22, 8, 9, 374, 395, 12, 13, 14, /* 30 */ 15, 16, 381, 33, 22, 35, 8, 9, 383, 14, /* 40 */ 12, 13, 14, 15, 16, 20, 371, 35, 20, 20, /* 50 */ 395, 462, 397, 20, 465, 342, 39, 371, 462, 345, /* 60 */ 385, 465, 62, 20, 433, 434, 4, 395, 68, 355, /* 70 */ 395, 385, 483, 484, 443, 75, 20, 488, 489, 483, /* 80 */ 484, 395, 364, 68, 488, 489, 431, 20, 433, 22, /* 90 */ 372, 436, 437, 438, 439, 440, 441, 383, 443, 375, /* 100 */ 100, 20, 383, 103, 3, 354, 355, 383, 433, 395, /* 110 */ 383, 397, 100, 20, 390, 391, 12, 13, 443, 433, /* 120 */ 53, 20, 398, 404, 20, 374, 22, 112, 415, 443, /* 130 */ 403, 404, 381, 420, 479, 480, 103, 33, 350, 35, /* 140 */ 140, 141, 354, 354, 356, 431, 103, 433, 354, 355, /* 150 */ 436, 437, 438, 439, 440, 441, 67, 443, 397, 103, /* 160 */ 396, 397, 448, 103, 450, 103, 62, 103, 454, 455, /* 170 */ 170, 171, 68, 412, 413, 462, 176, 177, 465, 75, /* 180 */ 354, 355, 468, 20, 169, 0, 349, 49, 399, 352, /* 190 */ 353, 191, 478, 193, 0, 57, 483, 484, 60, 61, /* 200 */ 172, 488, 489, 67, 100, 104, 21, 103, 345, 24, /* 210 */ 25, 26, 27, 28, 29, 30, 31, 32, 355, 14, /* 220 */ 169, 140, 141, 223, 224, 20, 226, 227, 228, 229, /* 230 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, /* 240 */ 240, 241, 242, 243, 140, 141, 383, 12, 13, 14, /* 250 */ 15, 16, 458, 459, 460, 3, 462, 463, 395, 465, /* 260 */ 397, 67, 247, 248, 249, 250, 251, 252, 253, 254, /* 270 */ 255, 256, 257, 172, 170, 171, 259, 483, 484, 103, /* 280 */ 176, 177, 488, 489, 458, 459, 460, 135, 462, 463, /* 290 */ 20, 139, 22, 260, 431, 191, 433, 193, 247, 436, /* 300 */ 437, 438, 439, 440, 441, 35, 443, 20, 257, 446, /* 310 */ 354, 448, 449, 450, 383, 345, 260, 454, 455, 244, /* 320 */ 260, 390, 260, 53, 260, 355, 114, 223, 224, 398, /* 330 */ 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, /* 340 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 12, /* 350 */ 13, 48, 200, 383, 383, 203, 75, 20, 206, 22, /* 360 */ 208, 390, 406, 100, 408, 395, 190, 397, 192, 398, /* 370 */ 33, 393, 35, 349, 396, 397, 352, 353, 115, 116, /* 380 */ 117, 118, 119, 120, 121, 122, 123, 124, 62, 126, /* 390 */ 127, 128, 129, 130, 131, 132, 354, 355, 222, 62, /* 400 */ 363, 431, 175, 433, 4, 68, 436, 437, 438, 439, /* 410 */ 440, 441, 75, 443, 70, 71, 72, 380, 448, 114, /* 420 */ 450, 77, 78, 79, 454, 455, 389, 83, 102, 345, /* 430 */ 62, 105, 88, 89, 90, 91, 260, 100, 94, 355, /* 440 */ 103, 357, 344, 43, 346, 45, 46, 382, 478, 0, /* 450 */ 354, 355, 355, 12, 13, 14, 350, 170, 171, 394, /* 460 */ 354, 20, 356, 22, 8, 9, 75, 383, 12, 13, /* 470 */ 14, 15, 16, 105, 33, 172, 35, 140, 141, 395, /* 480 */ 383, 397, 179, 21, 354, 355, 24, 25, 26, 27, /* 490 */ 28, 29, 30, 31, 32, 114, 269, 270, 271, 345, /* 500 */ 458, 459, 460, 62, 462, 463, 14, 170, 171, 355, /* 510 */ 375, 357, 20, 176, 177, 431, 75, 433, 383, 186, /* 520 */ 436, 437, 438, 439, 440, 441, 391, 443, 191, 384, /* 530 */ 193, 401, 448, 383, 450, 438, 284, 383, 454, 455, /* 540 */ 390, 100, 354, 355, 103, 164, 213, 214, 398, 395, /* 550 */ 44, 397, 0, 457, 458, 459, 460, 134, 462, 463, /* 560 */ 223, 224, 374, 226, 227, 228, 229, 230, 231, 232, /* 570 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, /* 580 */ 243, 140, 141, 354, 355, 431, 415, 433, 1, 2, /* 590 */ 436, 437, 438, 439, 440, 441, 223, 443, 12, 13, /* 600 */ 354, 355, 448, 374, 450, 244, 345, 246, 454, 455, /* 610 */ 104, 170, 171, 345, 354, 355, 355, 176, 177, 14, /* 620 */ 374, 35, 70, 71, 72, 20, 84, 204, 205, 77, /* 630 */ 78, 79, 191, 462, 193, 83, 465, 354, 355, 183, /* 640 */ 88, 89, 90, 91, 383, 421, 94, 274, 275, 276, /* 650 */ 277, 278, 279, 280, 483, 484, 395, 374, 397, 488, /* 660 */ 489, 401, 170, 395, 223, 224, 217, 226, 227, 228, /* 670 */ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, /* 680 */ 239, 240, 241, 242, 243, 12, 13, 145, 146, 354, /* 690 */ 355, 104, 431, 20, 433, 22, 0, 436, 437, 438, /* 700 */ 439, 440, 441, 384, 443, 447, 33, 449, 35, 448, /* 710 */ 168, 450, 384, 33, 20, 454, 455, 435, 54, 55, /* 720 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 49, /* 730 */ 0, 345, 37, 354, 355, 62, 401, 57, 58, 59, /* 740 */ 60, 355, 62, 461, 354, 289, 261, 262, 75, 264, /* 750 */ 8, 9, 345, 374, 12, 13, 14, 15, 16, 8, /* 760 */ 9, 345, 375, 12, 13, 14, 15, 16, 363, 383, /* 770 */ 383, 354, 355, 100, 35, 170, 103, 383, 391, 193, /* 780 */ 21, 395, 102, 397, 390, 105, 44, 354, 355, 12, /* 790 */ 13, 374, 398, 34, 389, 36, 406, 20, 408, 22, /* 800 */ 375, 106, 395, 108, 109, 435, 111, 374, 383, 372, /* 810 */ 33, 395, 35, 140, 141, 446, 391, 431, 449, 433, /* 820 */ 354, 20, 436, 437, 438, 439, 440, 441, 133, 443, /* 830 */ 4, 461, 137, 346, 140, 141, 450, 134, 135, 62, /* 840 */ 454, 455, 139, 170, 171, 19, 104, 354, 355, 176, /* 850 */ 177, 384, 75, 173, 174, 104, 354, 355, 383, 33, /* 860 */ 180, 181, 359, 360, 191, 390, 193, 374, 22, 361, /* 870 */ 176, 177, 406, 398, 408, 49, 374, 100, 4, 199, /* 880 */ 103, 35, 56, 345, 345, 447, 378, 449, 62, 159, /* 890 */ 359, 360, 415, 355, 386, 357, 223, 224, 168, 226, /* 900 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, /* 910 */ 237, 238, 239, 240, 241, 242, 243, 140, 141, 8, /* 920 */ 9, 383, 345, 12, 13, 14, 15, 16, 102, 354, /* 930 */ 355, 105, 193, 395, 395, 397, 435, 462, 379, 462, /* 940 */ 465, 345, 465, 14, 15, 16, 100, 170, 171, 374, /* 950 */ 368, 369, 383, 176, 177, 35, 476, 477, 483, 484, /* 960 */ 483, 484, 461, 488, 489, 488, 489, 398, 191, 431, /* 970 */ 193, 433, 395, 172, 436, 437, 438, 439, 440, 441, /* 980 */ 492, 443, 20, 345, 261, 262, 448, 428, 450, 345, /* 990 */ 345, 395, 454, 455, 0, 75, 361, 345, 345, 44, /* 1000 */ 223, 224, 0, 226, 227, 228, 229, 230, 231, 232, /* 1010 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, /* 1020 */ 243, 386, 18, 18, 20, 354, 355, 345, 23, 354, /* 1030 */ 355, 27, 462, 395, 30, 465, 20, 33, 384, 395, /* 1040 */ 395, 392, 37, 38, 395, 374, 41, 395, 395, 374, /* 1050 */ 345, 384, 345, 49, 484, 51, 405, 52, 488, 489, /* 1060 */ 56, 133, 134, 135, 136, 137, 138, 139, 63, 64, /* 1070 */ 65, 66, 70, 71, 72, 73, 74, 395, 76, 77, /* 1080 */ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, /* 1090 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 383, /* 1100 */ 395, 133, 395, 368, 369, 137, 102, 391, 103, 392, /* 1110 */ 392, 20, 395, 395, 376, 8, 9, 379, 114, 12, /* 1120 */ 13, 14, 15, 16, 481, 354, 355, 133, 134, 135, /* 1130 */ 136, 137, 138, 139, 172, 370, 8, 9, 373, 265, /* 1140 */ 12, 13, 14, 15, 16, 374, 462, 142, 144, 465, /* 1150 */ 358, 147, 148, 149, 150, 151, 152, 153, 154, 155, /* 1160 */ 156, 157, 158, 159, 160, 161, 162, 163, 484, 165, /* 1170 */ 166, 167, 488, 489, 462, 45, 46, 465, 345, 354, /* 1180 */ 355, 345, 12, 13, 354, 355, 170, 345, 183, 184, /* 1190 */ 185, 44, 22, 188, 345, 483, 484, 0, 345, 374, /* 1200 */ 488, 489, 44, 33, 374, 35, 201, 202, 355, 22, /* 1210 */ 357, 104, 0, 354, 355, 354, 355, 212, 258, 259, /* 1220 */ 215, 22, 35, 218, 219, 220, 221, 222, 395, 345, /* 1230 */ 68, 395, 62, 374, 35, 374, 383, 395, 42, 355, /* 1240 */ 44, 357, 44, 288, 395, 75, 49, 42, 395, 44, /* 1250 */ 397, 107, 107, 13, 110, 110, 44, 107, 13, 345, /* 1260 */ 110, 107, 104, 172, 110, 260, 0, 383, 35, 355, /* 1270 */ 100, 357, 473, 44, 75, 35, 0, 140, 141, 395, /* 1280 */ 35, 397, 0, 207, 431, 209, 433, 371, 22, 436, /* 1290 */ 437, 438, 439, 440, 441, 371, 443, 383, 22, 100, /* 1300 */ 172, 448, 104, 450, 22, 44, 103, 454, 455, 395, /* 1310 */ 476, 397, 44, 1, 2, 431, 113, 433, 383, 47, /* 1320 */ 436, 437, 438, 439, 440, 441, 13, 443, 44, 44, /* 1330 */ 2, 44, 448, 104, 450, 44, 8, 9, 454, 455, /* 1340 */ 12, 13, 14, 15, 16, 431, 345, 433, 35, 13, /* 1350 */ 436, 437, 438, 439, 440, 441, 355, 443, 0, 44, /* 1360 */ 44, 191, 448, 193, 450, 104, 345, 2, 454, 455, /* 1370 */ 44, 35, 104, 8, 9, 103, 355, 12, 13, 14, /* 1380 */ 15, 16, 358, 44, 383, 223, 44, 44, 104, 104, /* 1390 */ 191, 104, 193, 223, 224, 104, 395, 414, 397, 353, /* 1400 */ 405, 394, 355, 44, 383, 405, 236, 237, 238, 239, /* 1410 */ 240, 241, 242, 464, 456, 345, 395, 44, 397, 104, /* 1420 */ 104, 44, 223, 224, 44, 355, 193, 485, 35, 0, /* 1430 */ 104, 467, 431, 286, 433, 345, 416, 436, 437, 438, /* 1440 */ 439, 440, 441, 104, 443, 355, 104, 104, 266, 448, /* 1450 */ 49, 450, 431, 383, 433, 454, 455, 436, 437, 438, /* 1460 */ 439, 440, 441, 104, 443, 395, 432, 397, 75, 448, /* 1470 */ 20, 450, 430, 383, 425, 454, 455, 104, 363, 50, /* 1480 */ 206, 104, 425, 363, 104, 395, 189, 397, 20, 418, /* 1490 */ 355, 133, 134, 135, 136, 137, 138, 139, 42, 402, /* 1500 */ 20, 431, 415, 433, 345, 405, 436, 437, 438, 439, /* 1510 */ 440, 441, 355, 443, 355, 402, 169, 400, 20, 354, /* 1520 */ 450, 431, 355, 433, 454, 455, 436, 437, 438, 439, /* 1530 */ 440, 441, 354, 443, 402, 101, 345, 366, 400, 400, /* 1540 */ 450, 367, 383, 99, 454, 455, 355, 354, 365, 462, /* 1550 */ 98, 20, 465, 48, 395, 354, 397, 347, 354, 351, /* 1560 */ 354, 347, 351, 363, 20, 425, 397, 20, 20, 345, /* 1570 */ 483, 484, 363, 356, 383, 488, 489, 417, 363, 355, /* 1580 */ 354, 356, 363, 363, 363, 363, 395, 395, 397, 347, /* 1590 */ 431, 347, 433, 354, 210, 436, 437, 438, 439, 440, /* 1600 */ 441, 442, 443, 444, 445, 429, 383, 383, 395, 103, /* 1610 */ 383, 383, 427, 383, 383, 383, 345, 383, 383, 395, /* 1620 */ 383, 397, 431, 361, 433, 197, 355, 436, 437, 438, /* 1630 */ 439, 440, 441, 383, 443, 345, 383, 196, 395, 361, /* 1640 */ 195, 425, 424, 397, 395, 355, 354, 273, 272, 472, /* 1650 */ 395, 410, 472, 405, 383, 431, 405, 433, 395, 423, /* 1660 */ 436, 437, 438, 439, 440, 441, 395, 443, 397, 422, /* 1670 */ 416, 281, 395, 383, 450, 410, 182, 475, 388, 455, /* 1680 */ 283, 490, 491, 267, 282, 395, 416, 397, 290, 285, /* 1690 */ 287, 259, 355, 20, 263, 435, 345, 356, 20, 361, /* 1700 */ 493, 361, 431, 408, 433, 395, 355, 436, 437, 438, /* 1710 */ 439, 440, 441, 410, 443, 345, 395, 395, 395, 395, /* 1720 */ 395, 431, 361, 433, 472, 355, 436, 437, 438, 439, /* 1730 */ 440, 441, 474, 443, 383, 471, 174, 470, 469, 388, /* 1740 */ 410, 466, 407, 487, 361, 486, 395, 379, 397, 355, /* 1750 */ 103, 480, 453, 383, 103, 395, 387, 361, 373, 354, /* 1760 */ 36, 348, 345, 419, 411, 395, 347, 397, 411, 377, /* 1770 */ 362, 426, 355, 343, 0, 0, 377, 377, 0, 42, /* 1780 */ 0, 35, 431, 345, 433, 216, 35, 436, 437, 438, /* 1790 */ 439, 440, 441, 355, 443, 35, 35, 216, 0, 35, /* 1800 */ 383, 431, 35, 433, 216, 0, 436, 437, 438, 439, /* 1810 */ 440, 441, 395, 443, 397, 216, 0, 35, 0, 22, /* 1820 */ 0, 383, 35, 211, 0, 199, 388, 200, 199, 193, /* 1830 */ 191, 0, 0, 395, 0, 397, 0, 187, 186, 0, /* 1840 */ 0, 0, 47, 0, 0, 0, 47, 0, 431, 345, /* 1850 */ 433, 42, 482, 436, 437, 438, 439, 440, 441, 355, /* 1860 */ 443, 0, 0, 0, 47, 0, 0, 0, 0, 431, /* 1870 */ 0, 433, 345, 159, 436, 437, 438, 439, 440, 441, /* 1880 */ 0, 443, 355, 35, 159, 0, 0, 383, 0, 0, /* 1890 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 395, /* 1900 */ 0, 397, 0, 0, 47, 0, 42, 0, 491, 0, /* 1910 */ 383, 0, 0, 0, 0, 388, 0, 0, 0, 143, /* 1920 */ 0, 22, 395, 0, 397, 48, 22, 48, 22, 0, /* 1930 */ 0, 62, 0, 62, 62, 431, 345, 433, 14, 1, /* 1940 */ 436, 437, 438, 439, 440, 441, 355, 443, 0, 445, /* 1950 */ 35, 0, 0, 0, 35, 0, 35, 19, 431, 49, /* 1960 */ 433, 39, 35, 436, 437, 438, 439, 440, 441, 35, /* 1970 */ 443, 33, 39, 345, 383, 49, 39, 49, 0, 388, /* 1980 */ 39, 0, 42, 355, 0, 0, 395, 49, 397, 44, /* 1990 */ 47, 47, 0, 47, 40, 57, 58, 59, 60, 39, /* 2000 */ 62, 39, 0, 345, 182, 0, 0, 0, 69, 0, /* 2010 */ 35, 383, 49, 355, 0, 39, 49, 35, 39, 0, /* 2020 */ 49, 35, 431, 395, 433, 397, 0, 436, 437, 438, /* 2030 */ 439, 440, 441, 39, 443, 35, 39, 49, 0, 0, /* 2040 */ 102, 383, 0, 105, 0, 0, 0, 112, 35, 22, /* 2050 */ 345, 0, 110, 395, 44, 397, 35, 35, 35, 431, /* 2060 */ 355, 433, 44, 35, 436, 437, 438, 439, 440, 441, /* 2070 */ 35, 443, 345, 0, 22, 35, 138, 22, 35, 0, /* 2080 */ 22, 51, 355, 35, 35, 35, 0, 22, 383, 431, /* 2090 */ 3, 433, 35, 0, 436, 437, 438, 439, 440, 441, /* 2100 */ 395, 443, 397, 35, 0, 35, 0, 22, 20, 35, /* 2110 */ 383, 173, 104, 35, 103, 35, 0, 35, 180, 172, /* 2120 */ 103, 22, 395, 198, 397, 0, 0, 22, 0, 172, /* 2130 */ 3, 48, 103, 174, 101, 104, 431, 199, 433, 345, /* 2140 */ 172, 436, 437, 438, 439, 440, 441, 44, 443, 355, /* 2150 */ 194, 178, 345, 99, 44, 172, 48, 104, 431, 103, /* 2160 */ 433, 44, 355, 436, 437, 438, 439, 440, 441, 178, /* 2170 */ 443, 104, 345, 104, 103, 103, 268, 383, 44, 104, /* 2180 */ 104, 44, 355, 47, 103, 47, 44, 103, 35, 395, /* 2190 */ 383, 397, 103, 35, 103, 35, 104, 35, 104, 268, /* 2200 */ 35, 345, 395, 35, 397, 0, 104, 44, 47, 0, /* 2210 */ 383, 355, 39, 104, 103, 103, 47, 268, 47, 258, /* 2220 */ 0, 103, 395, 104, 397, 431, 104, 433, 39, 47, /* 2230 */ 436, 437, 438, 439, 440, 441, 103, 443, 431, 383, /* 2240 */ 433, 44, 103, 436, 437, 438, 439, 440, 441, 103, /* 2250 */ 443, 395, 101, 397, 113, 101, 22, 245, 431, 223, /* 2260 */ 433, 2, 103, 436, 437, 438, 439, 440, 441, 103, /* 2270 */ 443, 175, 47, 173, 104, 47, 104, 103, 22, 104, /* 2280 */ 103, 345, 103, 35, 104, 225, 103, 431, 104, 433, /* 2290 */ 114, 355, 436, 437, 438, 439, 440, 441, 35, 443, /* 2300 */ 104, 103, 35, 345, 103, 35, 104, 103, 35, 35, /* 2310 */ 104, 103, 35, 355, 345, 104, 103, 125, 104, 383, /* 2320 */ 103, 103, 44, 35, 355, 125, 103, 103, 125, 22, /* 2330 */ 69, 395, 345, 397, 68, 125, 35, 35, 35, 35, /* 2340 */ 35, 383, 355, 35, 35, 35, 75, 97, 35, 35, /* 2350 */ 44, 35, 383, 395, 22, 397, 35, 35, 35, 75, /* 2360 */ 35, 35, 35, 35, 395, 35, 397, 431, 22, 433, /* 2370 */ 383, 35, 436, 437, 438, 439, 440, 441, 0, 443, /* 2380 */ 35, 39, 395, 49, 397, 0, 35, 49, 39, 431, /* 2390 */ 0, 433, 35, 49, 436, 437, 438, 439, 440, 441, /* 2400 */ 431, 443, 433, 39, 0, 436, 437, 438, 439, 440, /* 2410 */ 441, 345, 443, 39, 35, 49, 0, 35, 431, 35, /* 2420 */ 433, 355, 345, 436, 437, 438, 439, 440, 441, 0, /* 2430 */ 443, 22, 355, 21, 21, 345, 22, 22, 20, 494, /* 2440 */ 494, 494, 494, 494, 494, 355, 345, 494, 494, 383, /* 2450 */ 494, 494, 494, 494, 494, 494, 355, 494, 494, 494, /* 2460 */ 383, 395, 494, 397, 494, 494, 494, 494, 494, 494, /* 2470 */ 494, 494, 395, 383, 397, 494, 494, 494, 494, 494, /* 2480 */ 494, 494, 494, 494, 383, 395, 494, 397, 494, 494, /* 2490 */ 494, 494, 494, 494, 494, 494, 395, 431, 397, 433, /* 2500 */ 494, 494, 436, 437, 438, 439, 440, 441, 431, 443, /* 2510 */ 433, 494, 345, 436, 437, 438, 439, 440, 441, 494, /* 2520 */ 443, 431, 355, 433, 494, 494, 436, 437, 438, 439, /* 2530 */ 440, 441, 431, 443, 433, 345, 494, 436, 437, 438, /* 2540 */ 439, 440, 441, 494, 443, 355, 494, 494, 494, 494, /* 2550 */ 383, 494, 494, 494, 494, 494, 494, 494, 494, 494, /* 2560 */ 494, 494, 395, 494, 397, 494, 494, 494, 494, 494, /* 2570 */ 494, 494, 494, 383, 494, 494, 494, 494, 494, 494, /* 2580 */ 494, 494, 494, 494, 345, 395, 494, 397, 494, 494, /* 2590 */ 494, 494, 494, 494, 355, 494, 494, 494, 431, 345, /* 2600 */ 433, 494, 494, 436, 437, 438, 439, 440, 441, 355, /* 2610 */ 443, 494, 494, 494, 345, 494, 494, 494, 494, 494, /* 2620 */ 494, 431, 383, 433, 355, 494, 436, 437, 438, 439, /* 2630 */ 440, 441, 494, 443, 395, 494, 397, 383, 494, 494, /* 2640 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 395, /* 2650 */ 494, 397, 383, 494, 494, 494, 494, 494, 494, 494, /* 2660 */ 494, 494, 494, 494, 395, 494, 397, 494, 494, 494, /* 2670 */ 431, 494, 433, 494, 494, 436, 437, 438, 439, 440, /* 2680 */ 441, 494, 443, 494, 494, 431, 494, 433, 345, 494, /* 2690 */ 436, 437, 438, 439, 440, 441, 494, 443, 355, 494, /* 2700 */ 431, 494, 433, 494, 494, 436, 437, 438, 439, 440, /* 2710 */ 441, 494, 443, 494, 494, 494, 494, 494, 494, 494, /* 2720 */ 494, 494, 494, 494, 494, 494, 383, 494, 494, 494, /* 2730 */ 494, 494, 494, 494, 494, 494, 494, 494, 395, 494, /* 2740 */ 397, 494, 494, 494, 494, 494, 494, 494, 494, 494, /* 2750 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, /* 2760 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, /* 2770 */ 494, 494, 494, 494, 431, 494, 433, 494, 494, 436, /* 2780 */ 437, 438, 439, 440, 441, 494, 443, 342, 342, 342, /* 2790 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2800 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2810 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2820 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2830 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2840 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2850 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2860 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2870 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2880 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2890 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2900 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2910 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2920 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2930 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2940 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2950 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2960 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2970 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2980 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 2990 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3000 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3010 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3020 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3030 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3040 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3050 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3060 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3070 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3080 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3090 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3100 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3110 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, /* 3120 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, }; #define YY_SHIFT_COUNT (806) #define YY_SHIFT_MIN (0) #define YY_SHIFT_MAX (2429) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 1005, 0, 104, 0, 337, 337, 337, 337, 337, 337, /* 10 */ 337, 337, 337, 337, 337, 337, 441, 673, 673, 777, /* 20 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, /* 30 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, /* 40 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, /* 50 */ 673, 33, 56, 176, 43, 60, 64, 60, 43, 43, /* 60 */ 60, 1170, 60, 1170, 1170, 62, 60, 1, 694, 29, /* 70 */ 29, 694, 400, 400, 287, 81, 25, 25, 29, 29, /* 80 */ 29, 29, 29, 29, 29, 29, 29, 29, 93, 29, /* 90 */ 29, 89, 1, 29, 29, 163, 1, 29, 93, 29, /* 100 */ 93, 1, 29, 29, 1, 29, 1, 1, 1, 29, /* 110 */ 136, 1004, 15, 15, 344, 462, 1199, 1199, 1199, 1199, /* 120 */ 1199, 1199, 1199, 1199, 1199, 1199, 1199, 1199, 1199, 1199, /* 130 */ 1199, 1199, 1199, 1199, 1199, 695, 101, 287, 81, 664, /* 140 */ 664, 920, 723, 801, 801, 801, 194, 361, 361, 920, /* 150 */ 89, 212, 75, 1, 281, 1, 281, 281, 305, 391, /* 160 */ 263, 263, 263, 263, 263, 263, 263, 263, 1938, 552, /* 170 */ 185, 28, 456, 373, 270, 227, 586, 586, 485, 492, /* 180 */ 303, 605, 67, 962, 1130, 205, 968, 1091, 960, 17, /* 190 */ 252, 960, 1196, 874, 1016, 1182, 1401, 1450, 1274, 89, /* 200 */ 1450, 89, 1297, 1468, 1456, 1480, 1468, 1456, 1347, 1498, /* 210 */ 1468, 1498, 1456, 1347, 1347, 1434, 1444, 1498, 1452, 1498, /* 220 */ 1498, 1498, 1531, 1505, 1531, 1505, 1450, 89, 1544, 89, /* 230 */ 1547, 1548, 89, 1547, 89, 89, 89, 1498, 89, 1531, /* 240 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* 250 */ 1, 1498, 1531, 281, 281, 281, 1384, 1506, 1450, 136, /* 260 */ 1428, 1441, 1544, 136, 1445, 1182, 1498, 1480, 1480, 281, /* 270 */ 1374, 1376, 281, 1374, 1376, 281, 281, 1, 1390, 1494, /* 280 */ 1374, 1397, 1402, 1416, 1182, 1398, 1403, 1404, 1432, 1468, /* 290 */ 1673, 1431, 1547, 136, 136, 1678, 1376, 281, 281, 281, /* 300 */ 281, 281, 1376, 281, 1562, 136, 305, 136, 1468, 1647, /* 310 */ 1651, 281, 391, 1498, 136, 1724, 1531, 2787, 2787, 2787, /* 320 */ 2787, 2787, 2787, 2787, 2787, 2787, 1002, 680, 696, 742, /* 330 */ 826, 751, 1107, 994, 1328, 1365, 1128, 1358, 911, 911, /* 340 */ 911, 911, 911, 911, 911, 911, 911, 928, 152, 235, /* 350 */ 235, 542, 138, 333, 730, 326, 12, 846, 759, 423, /* 360 */ 703, 703, 929, 587, 51, 929, 929, 929, 1197, 449, /* 370 */ 506, 1187, 1205, 381, 1212, 1144, 1145, 1150, 1154, 1240, /* 380 */ 1245, 1266, 1276, 1282, 1076, 1158, 1198, 368, 1229, 1261, /* 390 */ 1268, 1137, 1147, 955, 1284, 1285, 1287, 1291, 1316, 1326, /* 400 */ 1312, 1315, 1162, 1339, 1272, 1342, 1343, 1359, 1373, 1377, /* 410 */ 1380, 1203, 739, 1233, 1313, 1336, 1393, 1429, 1774, 1775, /* 420 */ 1778, 1737, 1780, 1746, 1569, 1751, 1760, 1761, 1581, 1798, /* 430 */ 1764, 1767, 1588, 1805, 1599, 1816, 1782, 1818, 1797, 1820, /* 440 */ 1787, 1612, 1824, 1626, 1834, 1629, 1627, 1636, 1639, 1831, /* 450 */ 1832, 1836, 1650, 1652, 1839, 1840, 1795, 1841, 1843, 1844, /* 460 */ 1799, 1845, 1809, 1847, 1861, 1862, 1817, 1863, 1865, 1866, /* 470 */ 1867, 1868, 1870, 1714, 1848, 1880, 1725, 1885, 1886, 1888, /* 480 */ 1889, 1890, 1891, 1892, 1893, 1894, 1895, 1896, 1897, 1898, /* 490 */ 1900, 1902, 1903, 1857, 1905, 1864, 1907, 1909, 1911, 1912, /* 500 */ 1913, 1914, 1899, 1916, 1917, 1918, 1776, 1920, 1923, 1904, /* 510 */ 1877, 1906, 1879, 1929, 1869, 1915, 1930, 1871, 1932, 1872, /* 520 */ 1948, 1951, 1919, 1910, 1922, 1952, 1921, 1926, 1933, 1953, /* 530 */ 1927, 1928, 1937, 1955, 1934, 1978, 1940, 1941, 1945, 1943, /* 540 */ 1944, 1924, 1946, 1981, 1954, 1960, 1984, 1985, 1992, 1962, /* 550 */ 1822, 2002, 2005, 2006, 1939, 2007, 2009, 1975, 1963, 1976, /* 560 */ 2014, 1982, 1967, 1979, 2019, 1986, 1971, 1994, 2026, 2000, /* 570 */ 1988, 1997, 2038, 2039, 2042, 2044, 2045, 2046, 1935, 1942, /* 580 */ 2013, 2027, 2051, 2021, 2022, 2023, 2028, 2035, 2040, 2043, /* 590 */ 2010, 2018, 2048, 2049, 2052, 2050, 2073, 2055, 2079, 2058, /* 600 */ 2030, 2086, 2065, 2057, 2093, 2068, 2104, 2070, 2106, 2085, /* 610 */ 2088, 2074, 2078, 2080, 2008, 2011, 2116, 1947, 2017, 1925, /* 620 */ 2082, 2099, 2125, 1956, 2105, 1957, 1959, 2126, 2128, 1968, /* 630 */ 1973, 1983, 1991, 2087, 2031, 2029, 2053, 2056, 2103, 1908, /* 640 */ 2071, 2067, 2072, 2083, 2033, 2108, 2054, 2069, 2110, 2117, /* 650 */ 2075, 2081, 2084, 2089, 2076, 2134, 2136, 2138, 2091, 2137, /* 660 */ 1931, 2092, 2094, 2127, 2142, 1949, 2153, 2158, 2160, 2162, /* 670 */ 2165, 2168, 2102, 2109, 2161, 1961, 2163, 2169, 2205, 2209, /* 680 */ 2111, 2173, 1943, 2171, 2112, 2119, 2122, 2118, 2133, 2096, /* 690 */ 2139, 2220, 2189, 2100, 2146, 2141, 1943, 2182, 2197, 2151, /* 700 */ 2012, 2154, 2259, 2234, 2036, 2159, 2170, 2166, 2172, 2174, /* 710 */ 2175, 2225, 2177, 2179, 2228, 2180, 2256, 2060, 2183, 2176, /* 720 */ 2184, 2248, 2263, 2198, 2196, 2267, 2201, 2202, 2270, 2204, /* 730 */ 2206, 2273, 2208, 2211, 2274, 2213, 2214, 2277, 2217, 2192, /* 740 */ 2200, 2203, 2210, 2218, 2278, 2223, 2288, 2224, 2278, 2278, /* 750 */ 2307, 2261, 2266, 2301, 2302, 2303, 2304, 2305, 2308, 2309, /* 760 */ 2310, 2271, 2250, 2306, 2313, 2314, 2316, 2332, 2321, 2322, /* 770 */ 2323, 2284, 2010, 2325, 2018, 2326, 2327, 2328, 2330, 2346, /* 780 */ 2336, 2378, 2345, 2334, 2342, 2385, 2351, 2338, 2349, 2390, /* 790 */ 2357, 2344, 2364, 2404, 2379, 2366, 2374, 2416, 2382, 2384, /* 800 */ 2429, 2409, 2412, 2414, 2415, 2413, 2418, }; #define YY_REDUCE_COUNT (325) #define YY_REDUCE_MIN (-444) #define YY_REDUCE_MAX (2343) static const short yy_reduce_ofst[] = { /* 0 */ -287, -286, -137, -30, 84, 154, 538, 853, 884, 914, /* 10 */ 261, 1001, 1021, 386, 1070, 1090, 1159, -345, 1191, 1224, /* 20 */ 1271, 1290, 1351, 1370, 1417, 1438, 1504, 1527, 1591, 1628, /* 30 */ 1658, 1705, 1727, 1794, 1807, 1827, 1856, 1936, 1958, 1969, /* 40 */ 1987, 2066, 2077, 2090, 2101, 2167, 2190, 2239, 2254, 2269, /* 50 */ 2343, -206, 475, -411, 96, -404, 171, 477, -174, 42, /* 60 */ 1087, -369, 712, -325, -314, 570, 684, -276, -394, -349, /* 70 */ -249, -239, -163, 24, -273, -22, -212, 106, 188, 229, /* 80 */ 246, 283, 130, 260, 379, 417, 433, 335, -44, 493, /* 90 */ 502, 37, -69, 575, 671, 97, -29, 675, 390, 825, /* 100 */ 466, 135, 830, 859, 150, 861, 387, 394, 425, 771, /* 110 */ 508, -211, -444, -444, -282, 98, -328, 268, 407, 416, /* 120 */ 539, 577, 596, 638, 644, 645, 652, 653, 682, 705, /* 130 */ 707, 833, 836, 842, 849, 65, 282, -281, -236, 503, /* 140 */ 531, 582, 480, 282, 370, 501, 635, 258, 438, 735, /* 150 */ 405, 559, 369, 716, 649, 569, 717, 718, 738, 765, /* 160 */ -383, 145, 319, 328, 467, 654, 667, 467, 224, 437, /* 170 */ 487, 651, 488, 643, 792, 799, 916, 924, 834, 935, /* 180 */ 983, 935, 1024, 995, 1046, 1047, 1007, 1000, 949, 949, /* 190 */ 942, 949, 958, 964, 935, 1020, 1034, 1049, 1042, 1115, /* 200 */ 1057, 1120, 1071, 1135, 1097, 1100, 1157, 1113, 1117, 1165, /* 210 */ 1167, 1178, 1132, 1138, 1139, 1174, 1171, 1193, 1183, 1201, /* 220 */ 1204, 1206, 1210, 1208, 1214, 1211, 1140, 1200, 1169, 1209, /* 230 */ 1217, 1160, 1215, 1225, 1219, 1220, 1221, 1226, 1222, 1242, /* 240 */ 1223, 1227, 1228, 1230, 1231, 1232, 1234, 1235, 1237, 1250, /* 250 */ 1253, 1239, 1244, 1192, 1213, 1243, 1176, 1185, 1216, 1262, /* 260 */ 1218, 1236, 1246, 1278, 1247, 1254, 1292, 1248, 1251, 1249, /* 270 */ 1177, 1241, 1255, 1180, 1265, 1263, 1277, 935, 1202, 1258, /* 280 */ 1252, 1264, 1267, 1269, 1270, 1207, 1256, 1259, 949, 1337, /* 290 */ 1260, 1275, 1341, 1338, 1340, 1295, 1303, 1310, 1321, 1322, /* 300 */ 1323, 1324, 1330, 1325, 1335, 1361, 1368, 1383, 1394, 1299, /* 310 */ 1369, 1360, 1385, 1405, 1396, 1413, 1419, 1344, 1345, 1353, /* 320 */ 1357, 1392, 1399, 1400, 1408, 1430, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 10 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 20 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 30 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 40 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 50 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 60 */ 2110, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 70 */ 1799, 1799, 1799, 1799, 2083, 1799, 1799, 1799, 1799, 1799, /* 80 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 90 */ 1799, 1888, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 100 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 110 */ 1886, 2076, 2302, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 120 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 130 */ 1799, 1799, 1799, 1799, 1799, 1799, 2314, 1799, 1799, 1862, /* 140 */ 1862, 1799, 2325, 2314, 2314, 2314, 1886, 2274, 2274, 1799, /* 150 */ 1888, 2144, 1799, 1799, 1799, 1799, 1799, 1799, 2008, 1799, /* 160 */ 1799, 1799, 1799, 1799, 2032, 1799, 1799, 1799, 2136, 1799, /* 170 */ 1799, 2346, 2403, 1799, 1799, 2349, 1799, 1799, 1799, 1799, /* 180 */ 1799, 1799, 1799, 2088, 1799, 1799, 1961, 2336, 2306, 2320, /* 190 */ 2387, 2307, 2304, 2330, 1799, 2340, 1799, 1799, 2158, 1888, /* 200 */ 1799, 1888, 2123, 1799, 2081, 1799, 1799, 2081, 2078, 1799, /* 210 */ 1799, 1799, 2081, 2078, 2078, 1950, 1946, 1799, 1944, 1799, /* 220 */ 1799, 1799, 1799, 1846, 1799, 1846, 1799, 1888, 1799, 1888, /* 230 */ 1799, 1799, 1888, 1799, 1888, 1888, 1888, 1799, 1888, 1799, /* 240 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 250 */ 1799, 1799, 1799, 1799, 1799, 1799, 2156, 2142, 1799, 1886, /* 260 */ 2134, 2132, 1799, 1886, 2130, 2340, 1799, 1799, 1799, 1799, /* 270 */ 2357, 2355, 1799, 2357, 2355, 1799, 1799, 1799, 2371, 2367, /* 280 */ 2357, 2376, 2373, 2342, 2340, 2406, 2393, 2389, 2320, 1799, /* 290 */ 1799, 2328, 1799, 1886, 1886, 1799, 2355, 1799, 1799, 1799, /* 300 */ 1799, 1799, 2355, 1799, 1799, 1886, 1799, 1886, 1799, 1799, /* 310 */ 1977, 1799, 1799, 1799, 1886, 1831, 1799, 2125, 2147, 2106, /* 320 */ 2106, 2011, 2011, 2011, 1889, 1804, 1799, 1799, 1799, 1799, /* 330 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 2370, 2369, /* 340 */ 2229, 1799, 2278, 2277, 2276, 2267, 2228, 1973, 1799, 2227, /* 350 */ 2226, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 360 */ 2097, 2096, 2220, 1799, 1799, 2221, 2219, 2218, 1799, 1799, /* 370 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 380 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 390 */ 1799, 1799, 2390, 2394, 1799, 1799, 1799, 1799, 1799, 1799, /* 400 */ 2303, 1799, 1799, 1799, 2202, 1799, 1799, 1799, 1799, 1799, /* 410 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 420 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 430 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 440 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 450 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 460 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 470 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 480 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 490 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 500 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 510 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 520 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 530 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1836, 2207, /* 540 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 550 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 560 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 570 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 580 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 590 */ 1927, 1926, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 600 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 610 */ 1799, 1799, 1799, 1799, 2211, 1799, 1799, 1799, 1799, 1799, /* 620 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 630 */ 1799, 1799, 1799, 2386, 1799, 1799, 1799, 1799, 2343, 1799, /* 640 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 650 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 2202, 1799, 2368, /* 660 */ 1799, 1799, 2384, 1799, 2388, 1799, 1799, 1799, 1799, 1799, /* 670 */ 1799, 1799, 2313, 2309, 1799, 1799, 2305, 1799, 1799, 1799, /* 680 */ 1799, 1799, 2210, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 690 */ 1799, 1799, 1799, 1799, 1799, 1799, 2201, 1799, 2264, 1799, /* 700 */ 1799, 1799, 2298, 1799, 1799, 2249, 1799, 1799, 1799, 1799, /* 710 */ 1799, 1799, 1799, 1799, 1799, 2211, 1799, 2214, 1799, 1799, /* 720 */ 1799, 1799, 1799, 2005, 1799, 1799, 1799, 1799, 1799, 1799, /* 730 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1989, /* 740 */ 1987, 1986, 1985, 1799, 2018, 1799, 1799, 1799, 2014, 2013, /* 750 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 760 */ 1799, 1799, 1799, 1907, 1799, 1799, 1799, 1799, 1799, 1799, /* 770 */ 1799, 1799, 1899, 1799, 1898, 1799, 1799, 1799, 1799, 1799, /* 780 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 790 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, /* 800 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, }; /********** 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, /* WITH => nothing */ 0, /* DNODE => nothing */ 0, /* PORT => nothing */ 0, /* DNODES => nothing */ 0, /* RESTORE => nothing */ 0, /* NK_IPTOKEN => nothing */ 0, /* FORCE => nothing */ 0, /* UNSAFE => nothing */ 0, /* LOCAL => nothing */ 0, /* QNODE => nothing */ 0, /* BNODE => nothing */ 0, /* SNODE => nothing */ 0, /* MNODE => nothing */ 0, /* VNODE => nothing */ 0, /* DATABASE => nothing */ 0, /* USE => nothing */ 0, /* FLUSH => nothing */ 0, /* TRIM => nothing */ 0, /* COMPACT => 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, /* START => nothing */ 0, /* TIMESTAMP => nothing */ 291, /* END => ABORT */ 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, /* 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, /* NCHAR => nothing */ 0, /* UNSIGNED => nothing */ 0, /* JSON => nothing */ 0, /* VARCHAR => nothing */ 0, /* MEDIUMBLOB => nothing */ 0, /* BLOB => nothing */ 0, /* VARBINARY => nothing */ 0, /* GEOMETRY => nothing */ 0, /* DECIMAL => nothing */ 0, /* COMMENT => 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, /* ALIVE => nothing */ 0, /* LIKE => nothing */ 0, /* TBNAME => nothing */ 0, /* QTAGS => nothing */ 0, /* AS => nothing */ 0, /* INDEX => nothing */ 0, /* FUNCTION => nothing */ 0, /* INTERVAL => nothing */ 0, /* COUNT => nothing */ 0, /* LAST_ROW => nothing */ 0, /* META => nothing */ 0, /* ONLY => nothing */ 0, /* TOPIC => 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, /* LANGUAGE => nothing */ 0, /* REPLACE => nothing */ 0, /* STREAM => nothing */ 0, /* INTO => nothing */ 0, /* PAUSE => nothing */ 0, /* RESUME => 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, /* UNTREATED => nothing */ 0, /* KILL => nothing */ 0, /* CONNECTION => nothing */ 0, /* TRANSACTION => nothing */ 0, /* BALANCE => nothing */ 0, /* VGROUP => nothing */ 0, /* LEADER => 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, /* ISFILLED => 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, /* CASE => nothing */ 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, /* NO_BATCH_SCAN => nothing */ 0, /* BATCH_SCAN => nothing */ 0, /* NK_HINT_BEGIN => nothing */ 0, /* NK_HINT_END => nothing */ 0, /* DISTINCT => nothing */ 0, /* WHERE => nothing */ 0, /* PARTITION => nothing */ 0, /* BY => nothing */ 0, /* SESSION => nothing */ 0, /* STATE_WINDOW => nothing */ 0, /* EVENT_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 */ 291, /* AFTER => ABORT */ 291, /* ATTACH => ABORT */ 291, /* BEFORE => ABORT */ 291, /* BEGIN => ABORT */ 291, /* BITAND => ABORT */ 291, /* BITNOT => ABORT */ 291, /* BITOR => ABORT */ 291, /* BLOCKS => ABORT */ 291, /* CHANGE => ABORT */ 291, /* COMMA => ABORT */ 291, /* CONCAT => ABORT */ 291, /* CONFLICT => ABORT */ 291, /* COPY => ABORT */ 291, /* DEFERRED => ABORT */ 291, /* DELIMITERS => ABORT */ 291, /* DETACH => ABORT */ 291, /* DIVIDE => ABORT */ 291, /* DOT => ABORT */ 291, /* EACH => ABORT */ 291, /* FAIL => ABORT */ 291, /* FILE => ABORT */ 291, /* FOR => ABORT */ 291, /* GLOB => ABORT */ 291, /* ID => ABORT */ 291, /* IMMEDIATE => ABORT */ 291, /* IMPORT => ABORT */ 291, /* INITIALLY => ABORT */ 291, /* INSTEAD => ABORT */ 291, /* ISNULL => ABORT */ 291, /* KEY => ABORT */ 291, /* MODULES => ABORT */ 291, /* NK_BITNOT => ABORT */ 291, /* NK_SEMI => ABORT */ 291, /* NOTNULL => ABORT */ 291, /* OF => ABORT */ 291, /* PLUS => ABORT */ 291, /* PRIVILEGE => ABORT */ 291, /* RAISE => ABORT */ 291, /* RESTRICT => ABORT */ 291, /* ROW => ABORT */ 291, /* SEMI => ABORT */ 291, /* STAR => ABORT */ 291, /* STATEMENT => ABORT */ 291, /* STRICT => ABORT */ 291, /* STRING => ABORT */ 291, /* TIMES => ABORT */ 291, /* VALUES => ABORT */ 291, /* VARIABLE => ABORT */ 291, /* VIEW => ABORT */ 291, /* 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 */ "WITH", /* 49 */ "DNODE", /* 50 */ "PORT", /* 51 */ "DNODES", /* 52 */ "RESTORE", /* 53 */ "NK_IPTOKEN", /* 54 */ "FORCE", /* 55 */ "UNSAFE", /* 56 */ "LOCAL", /* 57 */ "QNODE", /* 58 */ "BNODE", /* 59 */ "SNODE", /* 60 */ "MNODE", /* 61 */ "VNODE", /* 62 */ "DATABASE", /* 63 */ "USE", /* 64 */ "FLUSH", /* 65 */ "TRIM", /* 66 */ "COMPACT", /* 67 */ "IF", /* 68 */ "NOT", /* 69 */ "EXISTS", /* 70 */ "BUFFER", /* 71 */ "CACHEMODEL", /* 72 */ "CACHESIZE", /* 73 */ "COMP", /* 74 */ "DURATION", /* 75 */ "NK_VARIABLE", /* 76 */ "MAXROWS", /* 77 */ "MINROWS", /* 78 */ "KEEP", /* 79 */ "PAGES", /* 80 */ "PAGESIZE", /* 81 */ "TSDB_PAGESIZE", /* 82 */ "PRECISION", /* 83 */ "REPLICA", /* 84 */ "VGROUPS", /* 85 */ "SINGLE_STABLE", /* 86 */ "RETENTIONS", /* 87 */ "SCHEMALESS", /* 88 */ "WAL_LEVEL", /* 89 */ "WAL_FSYNC_PERIOD", /* 90 */ "WAL_RETENTION_PERIOD", /* 91 */ "WAL_RETENTION_SIZE", /* 92 */ "WAL_ROLL_PERIOD", /* 93 */ "WAL_SEGMENT_SIZE", /* 94 */ "STT_TRIGGER", /* 95 */ "TABLE_PREFIX", /* 96 */ "TABLE_SUFFIX", /* 97 */ "NK_COLON", /* 98 */ "MAX_SPEED", /* 99 */ "START", /* 100 */ "TIMESTAMP", /* 101 */ "END", /* 102 */ "TABLE", /* 103 */ "NK_LP", /* 104 */ "NK_RP", /* 105 */ "STABLE", /* 106 */ "ADD", /* 107 */ "COLUMN", /* 108 */ "MODIFY", /* 109 */ "RENAME", /* 110 */ "TAG", /* 111 */ "SET", /* 112 */ "NK_EQ", /* 113 */ "USING", /* 114 */ "TAGS", /* 115 */ "BOOL", /* 116 */ "TINYINT", /* 117 */ "SMALLINT", /* 118 */ "INT", /* 119 */ "INTEGER", /* 120 */ "BIGINT", /* 121 */ "FLOAT", /* 122 */ "DOUBLE", /* 123 */ "BINARY", /* 124 */ "NCHAR", /* 125 */ "UNSIGNED", /* 126 */ "JSON", /* 127 */ "VARCHAR", /* 128 */ "MEDIUMBLOB", /* 129 */ "BLOB", /* 130 */ "VARBINARY", /* 131 */ "GEOMETRY", /* 132 */ "DECIMAL", /* 133 */ "COMMENT", /* 134 */ "MAX_DELAY", /* 135 */ "WATERMARK", /* 136 */ "ROLLUP", /* 137 */ "TTL", /* 138 */ "SMA", /* 139 */ "DELETE_MARK", /* 140 */ "FIRST", /* 141 */ "LAST", /* 142 */ "SHOW", /* 143 */ "PRIVILEGES", /* 144 */ "DATABASES", /* 145 */ "TABLES", /* 146 */ "STABLES", /* 147 */ "MNODES", /* 148 */ "QNODES", /* 149 */ "FUNCTIONS", /* 150 */ "INDEXES", /* 151 */ "ACCOUNTS", /* 152 */ "APPS", /* 153 */ "CONNECTIONS", /* 154 */ "LICENCES", /* 155 */ "GRANTS", /* 156 */ "QUERIES", /* 157 */ "SCORES", /* 158 */ "TOPICS", /* 159 */ "VARIABLES", /* 160 */ "CLUSTER", /* 161 */ "BNODES", /* 162 */ "SNODES", /* 163 */ "TRANSACTIONS", /* 164 */ "DISTRIBUTED", /* 165 */ "CONSUMERS", /* 166 */ "SUBSCRIPTIONS", /* 167 */ "VNODES", /* 168 */ "ALIVE", /* 169 */ "LIKE", /* 170 */ "TBNAME", /* 171 */ "QTAGS", /* 172 */ "AS", /* 173 */ "INDEX", /* 174 */ "FUNCTION", /* 175 */ "INTERVAL", /* 176 */ "COUNT", /* 177 */ "LAST_ROW", /* 178 */ "META", /* 179 */ "ONLY", /* 180 */ "TOPIC", /* 181 */ "CONSUMER", /* 182 */ "GROUP", /* 183 */ "DESC", /* 184 */ "DESCRIBE", /* 185 */ "RESET", /* 186 */ "QUERY", /* 187 */ "CACHE", /* 188 */ "EXPLAIN", /* 189 */ "ANALYZE", /* 190 */ "VERBOSE", /* 191 */ "NK_BOOL", /* 192 */ "RATIO", /* 193 */ "NK_FLOAT", /* 194 */ "OUTPUTTYPE", /* 195 */ "AGGREGATE", /* 196 */ "BUFSIZE", /* 197 */ "LANGUAGE", /* 198 */ "REPLACE", /* 199 */ "STREAM", /* 200 */ "INTO", /* 201 */ "PAUSE", /* 202 */ "RESUME", /* 203 */ "TRIGGER", /* 204 */ "AT_ONCE", /* 205 */ "WINDOW_CLOSE", /* 206 */ "IGNORE", /* 207 */ "EXPIRED", /* 208 */ "FILL_HISTORY", /* 209 */ "UPDATE", /* 210 */ "SUBTABLE", /* 211 */ "UNTREATED", /* 212 */ "KILL", /* 213 */ "CONNECTION", /* 214 */ "TRANSACTION", /* 215 */ "BALANCE", /* 216 */ "VGROUP", /* 217 */ "LEADER", /* 218 */ "MERGE", /* 219 */ "REDISTRIBUTE", /* 220 */ "SPLIT", /* 221 */ "DELETE", /* 222 */ "INSERT", /* 223 */ "NULL", /* 224 */ "NK_QUESTION", /* 225 */ "NK_ARROW", /* 226 */ "ROWTS", /* 227 */ "QSTART", /* 228 */ "QEND", /* 229 */ "QDURATION", /* 230 */ "WSTART", /* 231 */ "WEND", /* 232 */ "WDURATION", /* 233 */ "IROWTS", /* 234 */ "ISFILLED", /* 235 */ "CAST", /* 236 */ "NOW", /* 237 */ "TODAY", /* 238 */ "TIMEZONE", /* 239 */ "CLIENT_VERSION", /* 240 */ "SERVER_VERSION", /* 241 */ "SERVER_STATUS", /* 242 */ "CURRENT_USER", /* 243 */ "CASE", /* 244 */ "WHEN", /* 245 */ "THEN", /* 246 */ "ELSE", /* 247 */ "BETWEEN", /* 248 */ "IS", /* 249 */ "NK_LT", /* 250 */ "NK_GT", /* 251 */ "NK_LE", /* 252 */ "NK_GE", /* 253 */ "NK_NE", /* 254 */ "MATCH", /* 255 */ "NMATCH", /* 256 */ "CONTAINS", /* 257 */ "IN", /* 258 */ "JOIN", /* 259 */ "INNER", /* 260 */ "SELECT", /* 261 */ "NO_BATCH_SCAN", /* 262 */ "BATCH_SCAN", /* 263 */ "NK_HINT_BEGIN", /* 264 */ "NK_HINT_END", /* 265 */ "DISTINCT", /* 266 */ "WHERE", /* 267 */ "PARTITION", /* 268 */ "BY", /* 269 */ "SESSION", /* 270 */ "STATE_WINDOW", /* 271 */ "EVENT_WINDOW", /* 272 */ "SLIDING", /* 273 */ "FILL", /* 274 */ "VALUE", /* 275 */ "VALUE_F", /* 276 */ "NONE", /* 277 */ "PREV", /* 278 */ "NULL_F", /* 279 */ "LINEAR", /* 280 */ "NEXT", /* 281 */ "HAVING", /* 282 */ "RANGE", /* 283 */ "EVERY", /* 284 */ "ORDER", /* 285 */ "SLIMIT", /* 286 */ "SOFFSET", /* 287 */ "LIMIT", /* 288 */ "OFFSET", /* 289 */ "ASC", /* 290 */ "NULLS", /* 291 */ "ABORT", /* 292 */ "AFTER", /* 293 */ "ATTACH", /* 294 */ "BEFORE", /* 295 */ "BEGIN", /* 296 */ "BITAND", /* 297 */ "BITNOT", /* 298 */ "BITOR", /* 299 */ "BLOCKS", /* 300 */ "CHANGE", /* 301 */ "COMMA", /* 302 */ "CONCAT", /* 303 */ "CONFLICT", /* 304 */ "COPY", /* 305 */ "DEFERRED", /* 306 */ "DELIMITERS", /* 307 */ "DETACH", /* 308 */ "DIVIDE", /* 309 */ "DOT", /* 310 */ "EACH", /* 311 */ "FAIL", /* 312 */ "FILE", /* 313 */ "FOR", /* 314 */ "GLOB", /* 315 */ "ID", /* 316 */ "IMMEDIATE", /* 317 */ "IMPORT", /* 318 */ "INITIALLY", /* 319 */ "INSTEAD", /* 320 */ "ISNULL", /* 321 */ "KEY", /* 322 */ "MODULES", /* 323 */ "NK_BITNOT", /* 324 */ "NK_SEMI", /* 325 */ "NOTNULL", /* 326 */ "OF", /* 327 */ "PLUS", /* 328 */ "PRIVILEGE", /* 329 */ "RAISE", /* 330 */ "RESTRICT", /* 331 */ "ROW", /* 332 */ "SEMI", /* 333 */ "STAR", /* 334 */ "STATEMENT", /* 335 */ "STRICT", /* 336 */ "STRING", /* 337 */ "TIMES", /* 338 */ "VALUES", /* 339 */ "VARIABLE", /* 340 */ "VIEW", /* 341 */ "WAL", /* 342 */ "cmd", /* 343 */ "account_options", /* 344 */ "alter_account_options", /* 345 */ "literal", /* 346 */ "alter_account_option", /* 347 */ "user_name", /* 348 */ "sysinfo_opt", /* 349 */ "privileges", /* 350 */ "priv_level", /* 351 */ "with_opt", /* 352 */ "priv_type_list", /* 353 */ "priv_type", /* 354 */ "db_name", /* 355 */ "table_name", /* 356 */ "topic_name", /* 357 */ "search_condition", /* 358 */ "dnode_endpoint", /* 359 */ "force_opt", /* 360 */ "unsafe_opt", /* 361 */ "not_exists_opt", /* 362 */ "db_options", /* 363 */ "exists_opt", /* 364 */ "alter_db_options", /* 365 */ "speed_opt", /* 366 */ "start_opt", /* 367 */ "end_opt", /* 368 */ "integer_list", /* 369 */ "variable_list", /* 370 */ "retention_list", /* 371 */ "signed", /* 372 */ "alter_db_option", /* 373 */ "retention", /* 374 */ "full_table_name", /* 375 */ "column_def_list", /* 376 */ "tags_def_opt", /* 377 */ "table_options", /* 378 */ "multi_create_clause", /* 379 */ "tags_def", /* 380 */ "multi_drop_clause", /* 381 */ "alter_table_clause", /* 382 */ "alter_table_options", /* 383 */ "column_name", /* 384 */ "type_name", /* 385 */ "signed_literal", /* 386 */ "create_subtable_clause", /* 387 */ "specific_cols_opt", /* 388 */ "expression_list", /* 389 */ "drop_table_clause", /* 390 */ "col_name_list", /* 391 */ "column_def", /* 392 */ "duration_list", /* 393 */ "rollup_func_list", /* 394 */ "alter_table_option", /* 395 */ "duration_literal", /* 396 */ "rollup_func_name", /* 397 */ "function_name", /* 398 */ "col_name", /* 399 */ "db_name_cond_opt", /* 400 */ "like_pattern_opt", /* 401 */ "table_name_cond", /* 402 */ "from_db_opt", /* 403 */ "tag_list_opt", /* 404 */ "tag_item", /* 405 */ "column_alias", /* 406 */ "full_index_name", /* 407 */ "index_options", /* 408 */ "index_name", /* 409 */ "func_list", /* 410 */ "sliding_opt", /* 411 */ "sma_stream_opt", /* 412 */ "func", /* 413 */ "sma_func_name", /* 414 */ "with_meta", /* 415 */ "query_or_subquery", /* 416 */ "where_clause_opt", /* 417 */ "cgroup_name", /* 418 */ "analyze_opt", /* 419 */ "explain_options", /* 420 */ "insert_query", /* 421 */ "or_replace_opt", /* 422 */ "agg_func_opt", /* 423 */ "bufsize_opt", /* 424 */ "language_opt", /* 425 */ "stream_name", /* 426 */ "stream_options", /* 427 */ "col_list_opt", /* 428 */ "tag_def_or_ref_opt", /* 429 */ "subtable_opt", /* 430 */ "ignore_opt", /* 431 */ "expression", /* 432 */ "dnode_list", /* 433 */ "literal_func", /* 434 */ "literal_list", /* 435 */ "table_alias", /* 436 */ "expr_or_subquery", /* 437 */ "pseudo_column", /* 438 */ "column_reference", /* 439 */ "function_expression", /* 440 */ "case_when_expression", /* 441 */ "star_func", /* 442 */ "star_func_para_list", /* 443 */ "noarg_func", /* 444 */ "other_para_list", /* 445 */ "star_func_para", /* 446 */ "when_then_list", /* 447 */ "case_when_else_opt", /* 448 */ "common_expression", /* 449 */ "when_then_expr", /* 450 */ "predicate", /* 451 */ "compare_op", /* 452 */ "in_op", /* 453 */ "in_predicate_value", /* 454 */ "boolean_value_expression", /* 455 */ "boolean_primary", /* 456 */ "from_clause_opt", /* 457 */ "table_reference_list", /* 458 */ "table_reference", /* 459 */ "table_primary", /* 460 */ "joined_table", /* 461 */ "alias_opt", /* 462 */ "subquery", /* 463 */ "parenthesized_joined_table", /* 464 */ "join_type", /* 465 */ "query_specification", /* 466 */ "hint_list", /* 467 */ "set_quantifier_opt", /* 468 */ "select_list", /* 469 */ "partition_by_clause_opt", /* 470 */ "range_opt", /* 471 */ "every_opt", /* 472 */ "fill_opt", /* 473 */ "twindow_clause_opt", /* 474 */ "group_by_clause_opt", /* 475 */ "having_clause_opt", /* 476 */ "hint_opt", /* 477 */ "hint_opt_list", /* 478 */ "select_item", /* 479 */ "partition_list", /* 480 */ "partition_item", /* 481 */ "fill_mode", /* 482 */ "group_by_list", /* 483 */ "query_expression", /* 484 */ "query_simple", /* 485 */ "order_by_clause_opt", /* 486 */ "slimit_clause_opt", /* 487 */ "limit_clause_opt", /* 488 */ "union_query_expression", /* 489 */ "query_simple_or_subquery", /* 490 */ "sort_specification_list", /* 491 */ "sort_specification", /* 492 */ "ordering_specification_opt", /* 493 */ "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 with_opt TO user_name", /* 32 */ "cmd ::= REVOKE privileges ON priv_level with_opt 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 ::= db_name NK_DOT table_name", /* 43 */ "priv_level ::= topic_name", /* 44 */ "with_opt ::=", /* 45 */ "with_opt ::= WITH search_condition", /* 46 */ "cmd ::= CREATE DNODE dnode_endpoint", /* 47 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", /* 48 */ "cmd ::= DROP DNODE NK_INTEGER force_opt", /* 49 */ "cmd ::= DROP DNODE dnode_endpoint force_opt", /* 50 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt", /* 51 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt", /* 52 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", /* 53 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", /* 54 */ "cmd ::= ALTER ALL DNODES NK_STRING", /* 55 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", /* 56 */ "cmd ::= RESTORE DNODE NK_INTEGER", /* 57 */ "dnode_endpoint ::= NK_STRING", /* 58 */ "dnode_endpoint ::= NK_ID", /* 59 */ "dnode_endpoint ::= NK_IPTOKEN", /* 60 */ "force_opt ::=", /* 61 */ "force_opt ::= FORCE", /* 62 */ "unsafe_opt ::= UNSAFE", /* 63 */ "cmd ::= ALTER LOCAL NK_STRING", /* 64 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", /* 65 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", /* 66 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", /* 67 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER", /* 68 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", /* 69 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", /* 70 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", /* 71 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", /* 72 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", /* 73 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", /* 74 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER", /* 75 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER", /* 76 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", /* 77 */ "cmd ::= DROP DATABASE exists_opt db_name", /* 78 */ "cmd ::= USE db_name", /* 79 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 80 */ "cmd ::= FLUSH DATABASE db_name", /* 81 */ "cmd ::= TRIM DATABASE db_name speed_opt", /* 82 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt", /* 83 */ "not_exists_opt ::= IF NOT EXISTS", /* 84 */ "not_exists_opt ::=", /* 85 */ "exists_opt ::= IF EXISTS", /* 86 */ "exists_opt ::=", /* 87 */ "db_options ::=", /* 88 */ "db_options ::= db_options BUFFER NK_INTEGER", /* 89 */ "db_options ::= db_options CACHEMODEL NK_STRING", /* 90 */ "db_options ::= db_options CACHESIZE NK_INTEGER", /* 91 */ "db_options ::= db_options COMP NK_INTEGER", /* 92 */ "db_options ::= db_options DURATION NK_INTEGER", /* 93 */ "db_options ::= db_options DURATION NK_VARIABLE", /* 94 */ "db_options ::= db_options MAXROWS NK_INTEGER", /* 95 */ "db_options ::= db_options MINROWS NK_INTEGER", /* 96 */ "db_options ::= db_options KEEP integer_list", /* 97 */ "db_options ::= db_options KEEP variable_list", /* 98 */ "db_options ::= db_options PAGES NK_INTEGER", /* 99 */ "db_options ::= db_options PAGESIZE NK_INTEGER", /* 100 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", /* 101 */ "db_options ::= db_options PRECISION NK_STRING", /* 102 */ "db_options ::= db_options REPLICA NK_INTEGER", /* 103 */ "db_options ::= db_options VGROUPS NK_INTEGER", /* 104 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", /* 105 */ "db_options ::= db_options RETENTIONS retention_list", /* 106 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", /* 107 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", /* 108 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", /* 109 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", /* 110 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 111 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", /* 112 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 113 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", /* 114 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", /* 115 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", /* 116 */ "db_options ::= db_options TABLE_PREFIX signed", /* 117 */ "db_options ::= db_options TABLE_SUFFIX signed", /* 118 */ "alter_db_options ::= alter_db_option", /* 119 */ "alter_db_options ::= alter_db_options alter_db_option", /* 120 */ "alter_db_option ::= BUFFER NK_INTEGER", /* 121 */ "alter_db_option ::= CACHEMODEL NK_STRING", /* 122 */ "alter_db_option ::= CACHESIZE NK_INTEGER", /* 123 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", /* 124 */ "alter_db_option ::= KEEP integer_list", /* 125 */ "alter_db_option ::= KEEP variable_list", /* 126 */ "alter_db_option ::= PAGES NK_INTEGER", /* 127 */ "alter_db_option ::= REPLICA NK_INTEGER", /* 128 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", /* 129 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", /* 130 */ "alter_db_option ::= MINROWS NK_INTEGER", /* 131 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER", /* 132 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 133 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER", /* 134 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 135 */ "integer_list ::= NK_INTEGER", /* 136 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", /* 137 */ "variable_list ::= NK_VARIABLE", /* 138 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", /* 139 */ "retention_list ::= retention", /* 140 */ "retention_list ::= retention_list NK_COMMA retention", /* 141 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", /* 142 */ "speed_opt ::=", /* 143 */ "speed_opt ::= MAX_SPEED NK_INTEGER", /* 144 */ "start_opt ::=", /* 145 */ "start_opt ::= START WITH NK_INTEGER", /* 146 */ "start_opt ::= START WITH NK_STRING", /* 147 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", /* 148 */ "end_opt ::=", /* 149 */ "end_opt ::= END WITH NK_INTEGER", /* 150 */ "end_opt ::= END WITH NK_STRING", /* 151 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", /* 152 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", /* 153 */ "cmd ::= CREATE TABLE multi_create_clause", /* 154 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", /* 155 */ "cmd ::= DROP TABLE multi_drop_clause", /* 156 */ "cmd ::= DROP STABLE exists_opt full_table_name", /* 157 */ "cmd ::= ALTER TABLE alter_table_clause", /* 158 */ "cmd ::= ALTER STABLE alter_table_clause", /* 159 */ "alter_table_clause ::= full_table_name alter_table_options", /* 160 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", /* 161 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", /* 162 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", /* 163 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", /* 164 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", /* 165 */ "alter_table_clause ::= full_table_name DROP TAG column_name", /* 166 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", /* 167 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", /* 168 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", /* 169 */ "multi_create_clause ::= create_subtable_clause", /* 170 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", /* 171 */ "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", /* 172 */ "multi_drop_clause ::= drop_table_clause", /* 173 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", /* 174 */ "drop_table_clause ::= exists_opt full_table_name", /* 175 */ "specific_cols_opt ::=", /* 176 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", /* 177 */ "full_table_name ::= table_name", /* 178 */ "full_table_name ::= db_name NK_DOT table_name", /* 179 */ "column_def_list ::= column_def", /* 180 */ "column_def_list ::= column_def_list NK_COMMA column_def", /* 181 */ "column_def ::= column_name type_name", /* 182 */ "type_name ::= BOOL", /* 183 */ "type_name ::= TINYINT", /* 184 */ "type_name ::= SMALLINT", /* 185 */ "type_name ::= INT", /* 186 */ "type_name ::= INTEGER", /* 187 */ "type_name ::= BIGINT", /* 188 */ "type_name ::= FLOAT", /* 189 */ "type_name ::= DOUBLE", /* 190 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", /* 191 */ "type_name ::= TIMESTAMP", /* 192 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", /* 193 */ "type_name ::= TINYINT UNSIGNED", /* 194 */ "type_name ::= SMALLINT UNSIGNED", /* 195 */ "type_name ::= INT UNSIGNED", /* 196 */ "type_name ::= BIGINT UNSIGNED", /* 197 */ "type_name ::= JSON", /* 198 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", /* 199 */ "type_name ::= MEDIUMBLOB", /* 200 */ "type_name ::= BLOB", /* 201 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", /* 202 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", /* 203 */ "type_name ::= DECIMAL", /* 204 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 205 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 206 */ "tags_def_opt ::=", /* 207 */ "tags_def_opt ::= tags_def", /* 208 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", /* 209 */ "table_options ::=", /* 210 */ "table_options ::= table_options COMMENT NK_STRING", /* 211 */ "table_options ::= table_options MAX_DELAY duration_list", /* 212 */ "table_options ::= table_options WATERMARK duration_list", /* 213 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", /* 214 */ "table_options ::= table_options TTL NK_INTEGER", /* 215 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", /* 216 */ "table_options ::= table_options DELETE_MARK duration_list", /* 217 */ "alter_table_options ::= alter_table_option", /* 218 */ "alter_table_options ::= alter_table_options alter_table_option", /* 219 */ "alter_table_option ::= COMMENT NK_STRING", /* 220 */ "alter_table_option ::= TTL NK_INTEGER", /* 221 */ "duration_list ::= duration_literal", /* 222 */ "duration_list ::= duration_list NK_COMMA duration_literal", /* 223 */ "rollup_func_list ::= rollup_func_name", /* 224 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", /* 225 */ "rollup_func_name ::= function_name", /* 226 */ "rollup_func_name ::= FIRST", /* 227 */ "rollup_func_name ::= LAST", /* 228 */ "col_name_list ::= col_name", /* 229 */ "col_name_list ::= col_name_list NK_COMMA col_name", /* 230 */ "col_name ::= column_name", /* 231 */ "cmd ::= SHOW DNODES", /* 232 */ "cmd ::= SHOW USERS", /* 233 */ "cmd ::= SHOW USER PRIVILEGES", /* 234 */ "cmd ::= SHOW DATABASES", /* 235 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", /* 236 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", /* 237 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", /* 238 */ "cmd ::= SHOW MNODES", /* 239 */ "cmd ::= SHOW QNODES", /* 240 */ "cmd ::= SHOW FUNCTIONS", /* 241 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", /* 242 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", /* 243 */ "cmd ::= SHOW STREAMS", /* 244 */ "cmd ::= SHOW ACCOUNTS", /* 245 */ "cmd ::= SHOW APPS", /* 246 */ "cmd ::= SHOW CONNECTIONS", /* 247 */ "cmd ::= SHOW LICENCES", /* 248 */ "cmd ::= SHOW GRANTS", /* 249 */ "cmd ::= SHOW CREATE DATABASE db_name", /* 250 */ "cmd ::= SHOW CREATE TABLE full_table_name", /* 251 */ "cmd ::= SHOW CREATE STABLE full_table_name", /* 252 */ "cmd ::= SHOW QUERIES", /* 253 */ "cmd ::= SHOW SCORES", /* 254 */ "cmd ::= SHOW TOPICS", /* 255 */ "cmd ::= SHOW VARIABLES", /* 256 */ "cmd ::= SHOW CLUSTER VARIABLES", /* 257 */ "cmd ::= SHOW LOCAL VARIABLES", /* 258 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", /* 259 */ "cmd ::= SHOW BNODES", /* 260 */ "cmd ::= SHOW SNODES", /* 261 */ "cmd ::= SHOW CLUSTER", /* 262 */ "cmd ::= SHOW TRANSACTIONS", /* 263 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", /* 264 */ "cmd ::= SHOW CONSUMERS", /* 265 */ "cmd ::= SHOW SUBSCRIPTIONS", /* 266 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", /* 267 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", /* 268 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", /* 269 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", /* 270 */ "cmd ::= SHOW VNODES NK_INTEGER", /* 271 */ "cmd ::= SHOW VNODES NK_STRING", /* 272 */ "cmd ::= SHOW db_name_cond_opt ALIVE", /* 273 */ "cmd ::= SHOW CLUSTER ALIVE", /* 274 */ "db_name_cond_opt ::=", /* 275 */ "db_name_cond_opt ::= db_name NK_DOT", /* 276 */ "like_pattern_opt ::=", /* 277 */ "like_pattern_opt ::= LIKE NK_STRING", /* 278 */ "table_name_cond ::= table_name", /* 279 */ "from_db_opt ::=", /* 280 */ "from_db_opt ::= FROM db_name", /* 281 */ "tag_list_opt ::=", /* 282 */ "tag_list_opt ::= tag_item", /* 283 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", /* 284 */ "tag_item ::= TBNAME", /* 285 */ "tag_item ::= QTAGS", /* 286 */ "tag_item ::= column_name", /* 287 */ "tag_item ::= column_name column_alias", /* 288 */ "tag_item ::= column_name AS column_alias", /* 289 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options", /* 290 */ "cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP", /* 291 */ "cmd ::= DROP INDEX exists_opt full_index_name", /* 292 */ "full_index_name ::= index_name", /* 293 */ "full_index_name ::= db_name NK_DOT index_name", /* 294 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", /* 295 */ "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", /* 296 */ "func_list ::= func", /* 297 */ "func_list ::= func_list NK_COMMA func", /* 298 */ "func ::= sma_func_name NK_LP expression_list NK_RP", /* 299 */ "sma_func_name ::= function_name", /* 300 */ "sma_func_name ::= COUNT", /* 301 */ "sma_func_name ::= FIRST", /* 302 */ "sma_func_name ::= LAST", /* 303 */ "sma_func_name ::= LAST_ROW", /* 304 */ "sma_stream_opt ::=", /* 305 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", /* 306 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", /* 307 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", /* 308 */ "with_meta ::= AS", /* 309 */ "with_meta ::= WITH META AS", /* 310 */ "with_meta ::= ONLY META AS", /* 311 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", /* 312 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", /* 313 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", /* 314 */ "cmd ::= DROP TOPIC exists_opt topic_name", /* 315 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", /* 316 */ "cmd ::= DESC full_table_name", /* 317 */ "cmd ::= DESCRIBE full_table_name", /* 318 */ "cmd ::= RESET QUERY CACHE", /* 319 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", /* 320 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", /* 321 */ "analyze_opt ::=", /* 322 */ "analyze_opt ::= ANALYZE", /* 323 */ "explain_options ::=", /* 324 */ "explain_options ::= explain_options VERBOSE NK_BOOL", /* 325 */ "explain_options ::= explain_options RATIO NK_FLOAT", /* 326 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", /* 327 */ "cmd ::= DROP FUNCTION exists_opt function_name", /* 328 */ "agg_func_opt ::=", /* 329 */ "agg_func_opt ::= AGGREGATE", /* 330 */ "bufsize_opt ::=", /* 331 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", /* 332 */ "language_opt ::=", /* 333 */ "language_opt ::= LANGUAGE NK_STRING", /* 334 */ "or_replace_opt ::=", /* 335 */ "or_replace_opt ::= OR REPLACE", /* 336 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery", /* 337 */ "cmd ::= DROP STREAM exists_opt stream_name", /* 338 */ "cmd ::= PAUSE STREAM exists_opt stream_name", /* 339 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", /* 340 */ "col_list_opt ::=", /* 341 */ "col_list_opt ::= NK_LP col_name_list NK_RP", /* 342 */ "tag_def_or_ref_opt ::=", /* 343 */ "tag_def_or_ref_opt ::= tags_def", /* 344 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", /* 345 */ "stream_options ::=", /* 346 */ "stream_options ::= stream_options TRIGGER AT_ONCE", /* 347 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", /* 348 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", /* 349 */ "stream_options ::= stream_options WATERMARK duration_literal", /* 350 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", /* 351 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", /* 352 */ "stream_options ::= stream_options DELETE_MARK duration_literal", /* 353 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", /* 354 */ "subtable_opt ::=", /* 355 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", /* 356 */ "ignore_opt ::=", /* 357 */ "ignore_opt ::= IGNORE UNTREATED", /* 358 */ "cmd ::= KILL CONNECTION NK_INTEGER", /* 359 */ "cmd ::= KILL QUERY NK_STRING", /* 360 */ "cmd ::= KILL TRANSACTION NK_INTEGER", /* 361 */ "cmd ::= BALANCE VGROUP", /* 362 */ "cmd ::= BALANCE VGROUP LEADER", /* 363 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", /* 364 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", /* 365 */ "cmd ::= SPLIT VGROUP NK_INTEGER", /* 366 */ "dnode_list ::= DNODE NK_INTEGER", /* 367 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", /* 368 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 369 */ "cmd ::= query_or_subquery", /* 370 */ "cmd ::= insert_query", /* 371 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", /* 372 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", /* 373 */ "literal ::= NK_INTEGER", /* 374 */ "literal ::= NK_FLOAT", /* 375 */ "literal ::= NK_STRING", /* 376 */ "literal ::= NK_BOOL", /* 377 */ "literal ::= TIMESTAMP NK_STRING", /* 378 */ "literal ::= duration_literal", /* 379 */ "literal ::= NULL", /* 380 */ "literal ::= NK_QUESTION", /* 381 */ "duration_literal ::= NK_VARIABLE", /* 382 */ "signed ::= NK_INTEGER", /* 383 */ "signed ::= NK_PLUS NK_INTEGER", /* 384 */ "signed ::= NK_MINUS NK_INTEGER", /* 385 */ "signed ::= NK_FLOAT", /* 386 */ "signed ::= NK_PLUS NK_FLOAT", /* 387 */ "signed ::= NK_MINUS NK_FLOAT", /* 388 */ "signed_literal ::= signed", /* 389 */ "signed_literal ::= NK_STRING", /* 390 */ "signed_literal ::= NK_BOOL", /* 391 */ "signed_literal ::= TIMESTAMP NK_STRING", /* 392 */ "signed_literal ::= duration_literal", /* 393 */ "signed_literal ::= NULL", /* 394 */ "signed_literal ::= literal_func", /* 395 */ "signed_literal ::= NK_QUESTION", /* 396 */ "literal_list ::= signed_literal", /* 397 */ "literal_list ::= literal_list NK_COMMA signed_literal", /* 398 */ "db_name ::= NK_ID", /* 399 */ "table_name ::= NK_ID", /* 400 */ "column_name ::= NK_ID", /* 401 */ "function_name ::= NK_ID", /* 402 */ "table_alias ::= NK_ID", /* 403 */ "column_alias ::= NK_ID", /* 404 */ "user_name ::= NK_ID", /* 405 */ "topic_name ::= NK_ID", /* 406 */ "stream_name ::= NK_ID", /* 407 */ "cgroup_name ::= NK_ID", /* 408 */ "index_name ::= NK_ID", /* 409 */ "expr_or_subquery ::= expression", /* 410 */ "expression ::= literal", /* 411 */ "expression ::= pseudo_column", /* 412 */ "expression ::= column_reference", /* 413 */ "expression ::= function_expression", /* 414 */ "expression ::= case_when_expression", /* 415 */ "expression ::= NK_LP expression NK_RP", /* 416 */ "expression ::= NK_PLUS expr_or_subquery", /* 417 */ "expression ::= NK_MINUS expr_or_subquery", /* 418 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", /* 419 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", /* 420 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", /* 421 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", /* 422 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", /* 423 */ "expression ::= column_reference NK_ARROW NK_STRING", /* 424 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", /* 425 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", /* 426 */ "expression_list ::= expr_or_subquery", /* 427 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", /* 428 */ "column_reference ::= column_name", /* 429 */ "column_reference ::= table_name NK_DOT column_name", /* 430 */ "pseudo_column ::= ROWTS", /* 431 */ "pseudo_column ::= TBNAME", /* 432 */ "pseudo_column ::= table_name NK_DOT TBNAME", /* 433 */ "pseudo_column ::= QSTART", /* 434 */ "pseudo_column ::= QEND", /* 435 */ "pseudo_column ::= QDURATION", /* 436 */ "pseudo_column ::= WSTART", /* 437 */ "pseudo_column ::= WEND", /* 438 */ "pseudo_column ::= WDURATION", /* 439 */ "pseudo_column ::= IROWTS", /* 440 */ "pseudo_column ::= ISFILLED", /* 441 */ "pseudo_column ::= QTAGS", /* 442 */ "function_expression ::= function_name NK_LP expression_list NK_RP", /* 443 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", /* 444 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", /* 445 */ "function_expression ::= literal_func", /* 446 */ "literal_func ::= noarg_func NK_LP NK_RP", /* 447 */ "literal_func ::= NOW", /* 448 */ "noarg_func ::= NOW", /* 449 */ "noarg_func ::= TODAY", /* 450 */ "noarg_func ::= TIMEZONE", /* 451 */ "noarg_func ::= DATABASE", /* 452 */ "noarg_func ::= CLIENT_VERSION", /* 453 */ "noarg_func ::= SERVER_VERSION", /* 454 */ "noarg_func ::= SERVER_STATUS", /* 455 */ "noarg_func ::= CURRENT_USER", /* 456 */ "noarg_func ::= USER", /* 457 */ "star_func ::= COUNT", /* 458 */ "star_func ::= FIRST", /* 459 */ "star_func ::= LAST", /* 460 */ "star_func ::= LAST_ROW", /* 461 */ "star_func_para_list ::= NK_STAR", /* 462 */ "star_func_para_list ::= other_para_list", /* 463 */ "other_para_list ::= star_func_para", /* 464 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", /* 465 */ "star_func_para ::= expr_or_subquery", /* 466 */ "star_func_para ::= table_name NK_DOT NK_STAR", /* 467 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", /* 468 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", /* 469 */ "when_then_list ::= when_then_expr", /* 470 */ "when_then_list ::= when_then_list when_then_expr", /* 471 */ "when_then_expr ::= WHEN common_expression THEN common_expression", /* 472 */ "case_when_else_opt ::=", /* 473 */ "case_when_else_opt ::= ELSE common_expression", /* 474 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", /* 475 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", /* 476 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", /* 477 */ "predicate ::= expr_or_subquery IS NULL", /* 478 */ "predicate ::= expr_or_subquery IS NOT NULL", /* 479 */ "predicate ::= expr_or_subquery in_op in_predicate_value", /* 480 */ "compare_op ::= NK_LT", /* 481 */ "compare_op ::= NK_GT", /* 482 */ "compare_op ::= NK_LE", /* 483 */ "compare_op ::= NK_GE", /* 484 */ "compare_op ::= NK_NE", /* 485 */ "compare_op ::= NK_EQ", /* 486 */ "compare_op ::= LIKE", /* 487 */ "compare_op ::= NOT LIKE", /* 488 */ "compare_op ::= MATCH", /* 489 */ "compare_op ::= NMATCH", /* 490 */ "compare_op ::= CONTAINS", /* 491 */ "in_op ::= IN", /* 492 */ "in_op ::= NOT IN", /* 493 */ "in_predicate_value ::= NK_LP literal_list NK_RP", /* 494 */ "boolean_value_expression ::= boolean_primary", /* 495 */ "boolean_value_expression ::= NOT boolean_primary", /* 496 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 497 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 498 */ "boolean_primary ::= predicate", /* 499 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 500 */ "common_expression ::= expr_or_subquery", /* 501 */ "common_expression ::= boolean_value_expression", /* 502 */ "from_clause_opt ::=", /* 503 */ "from_clause_opt ::= FROM table_reference_list", /* 504 */ "table_reference_list ::= table_reference", /* 505 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 506 */ "table_reference ::= table_primary", /* 507 */ "table_reference ::= joined_table", /* 508 */ "table_primary ::= table_name alias_opt", /* 509 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 510 */ "table_primary ::= subquery alias_opt", /* 511 */ "table_primary ::= parenthesized_joined_table", /* 512 */ "alias_opt ::=", /* 513 */ "alias_opt ::= table_alias", /* 514 */ "alias_opt ::= AS table_alias", /* 515 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 516 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 517 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 518 */ "join_type ::=", /* 519 */ "join_type ::= INNER", /* 520 */ "query_specification ::= SELECT hint_list 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", /* 521 */ "hint_opt ::= NO_BATCH_SCAN NK_LP NK_RP", /* 522 */ "hint_opt ::= BATCH_SCAN NK_LP NK_RP", /* 523 */ "hint_opt_list ::=", /* 524 */ "hint_opt_list ::= hint_opt", /* 525 */ "hint_opt_list ::= hint_opt_list hint_opt", /* 526 */ "hint_list ::=", /* 527 */ "hint_list ::= NK_HINT_BEGIN hint_opt_list NK_HINT_END", /* 528 */ "set_quantifier_opt ::=", /* 529 */ "set_quantifier_opt ::= DISTINCT", /* 530 */ "set_quantifier_opt ::= ALL", /* 531 */ "select_list ::= select_item", /* 532 */ "select_list ::= select_list NK_COMMA select_item", /* 533 */ "select_item ::= NK_STAR", /* 534 */ "select_item ::= common_expression", /* 535 */ "select_item ::= common_expression column_alias", /* 536 */ "select_item ::= common_expression AS column_alias", /* 537 */ "select_item ::= table_name NK_DOT NK_STAR", /* 538 */ "where_clause_opt ::=", /* 539 */ "where_clause_opt ::= WHERE search_condition", /* 540 */ "partition_by_clause_opt ::=", /* 541 */ "partition_by_clause_opt ::= PARTITION BY partition_list", /* 542 */ "partition_list ::= partition_item", /* 543 */ "partition_list ::= partition_list NK_COMMA partition_item", /* 544 */ "partition_item ::= expr_or_subquery", /* 545 */ "partition_item ::= expr_or_subquery column_alias", /* 546 */ "partition_item ::= expr_or_subquery AS column_alias", /* 547 */ "twindow_clause_opt ::=", /* 548 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", /* 549 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", /* 550 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", /* 551 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", /* 552 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", /* 553 */ "sliding_opt ::=", /* 554 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", /* 555 */ "fill_opt ::=", /* 556 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 557 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", /* 558 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", /* 559 */ "fill_mode ::= NONE", /* 560 */ "fill_mode ::= PREV", /* 561 */ "fill_mode ::= NULL", /* 562 */ "fill_mode ::= NULL_F", /* 563 */ "fill_mode ::= LINEAR", /* 564 */ "fill_mode ::= NEXT", /* 565 */ "group_by_clause_opt ::=", /* 566 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 567 */ "group_by_list ::= expr_or_subquery", /* 568 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", /* 569 */ "having_clause_opt ::=", /* 570 */ "having_clause_opt ::= HAVING search_condition", /* 571 */ "range_opt ::=", /* 572 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", /* 573 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", /* 574 */ "every_opt ::=", /* 575 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", /* 576 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 577 */ "query_simple ::= query_specification", /* 578 */ "query_simple ::= union_query_expression", /* 579 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", /* 580 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", /* 581 */ "query_simple_or_subquery ::= query_simple", /* 582 */ "query_simple_or_subquery ::= subquery", /* 583 */ "query_or_subquery ::= query_expression", /* 584 */ "query_or_subquery ::= subquery", /* 585 */ "order_by_clause_opt ::=", /* 586 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 587 */ "slimit_clause_opt ::=", /* 588 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 589 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 590 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 591 */ "limit_clause_opt ::=", /* 592 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 593 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 594 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 595 */ "subquery ::= NK_LP query_expression NK_RP", /* 596 */ "subquery ::= NK_LP subquery NK_RP", /* 597 */ "search_condition ::= common_expression", /* 598 */ "sort_specification_list ::= sort_specification", /* 599 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 600 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", /* 601 */ "ordering_specification_opt ::=", /* 602 */ "ordering_specification_opt ::= ASC", /* 603 */ "ordering_specification_opt ::= DESC", /* 604 */ "null_ordering_opt ::=", /* 605 */ "null_ordering_opt ::= NULLS FIRST", /* 606 */ "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 342: /* cmd */ case 345: /* literal */ case 351: /* with_opt */ case 357: /* search_condition */ case 362: /* db_options */ case 364: /* alter_db_options */ case 366: /* start_opt */ case 367: /* end_opt */ case 371: /* signed */ case 373: /* retention */ case 374: /* full_table_name */ case 377: /* table_options */ case 381: /* alter_table_clause */ case 382: /* alter_table_options */ case 385: /* signed_literal */ case 386: /* create_subtable_clause */ case 389: /* drop_table_clause */ case 391: /* column_def */ case 395: /* duration_literal */ case 396: /* rollup_func_name */ case 398: /* col_name */ case 399: /* db_name_cond_opt */ case 400: /* like_pattern_opt */ case 401: /* table_name_cond */ case 402: /* from_db_opt */ case 404: /* tag_item */ case 406: /* full_index_name */ case 407: /* index_options */ case 410: /* sliding_opt */ case 411: /* sma_stream_opt */ case 412: /* func */ case 415: /* query_or_subquery */ case 416: /* where_clause_opt */ case 419: /* explain_options */ case 420: /* insert_query */ case 426: /* stream_options */ case 429: /* subtable_opt */ case 431: /* expression */ case 433: /* literal_func */ case 436: /* expr_or_subquery */ case 437: /* pseudo_column */ case 438: /* column_reference */ case 439: /* function_expression */ case 440: /* case_when_expression */ case 445: /* star_func_para */ case 447: /* case_when_else_opt */ case 448: /* common_expression */ case 449: /* when_then_expr */ case 450: /* predicate */ case 453: /* in_predicate_value */ case 454: /* boolean_value_expression */ case 455: /* boolean_primary */ case 456: /* from_clause_opt */ case 457: /* table_reference_list */ case 458: /* table_reference */ case 459: /* table_primary */ case 460: /* joined_table */ case 462: /* subquery */ case 463: /* parenthesized_joined_table */ case 465: /* query_specification */ case 470: /* range_opt */ case 471: /* every_opt */ case 472: /* fill_opt */ case 473: /* twindow_clause_opt */ case 475: /* having_clause_opt */ case 476: /* hint_opt */ case 478: /* select_item */ case 480: /* partition_item */ case 483: /* query_expression */ case 484: /* query_simple */ case 486: /* slimit_clause_opt */ case 487: /* limit_clause_opt */ case 488: /* union_query_expression */ case 489: /* query_simple_or_subquery */ case 491: /* sort_specification */ { nodesDestroyNode((yypminor->yy28)); } break; case 343: /* account_options */ case 344: /* alter_account_options */ case 346: /* alter_account_option */ case 365: /* speed_opt */ case 414: /* with_meta */ case 423: /* bufsize_opt */ { } break; case 347: /* user_name */ case 354: /* db_name */ case 355: /* table_name */ case 356: /* topic_name */ case 358: /* dnode_endpoint */ case 383: /* column_name */ case 397: /* function_name */ case 405: /* column_alias */ case 408: /* index_name */ case 413: /* sma_func_name */ case 417: /* cgroup_name */ case 424: /* language_opt */ case 425: /* stream_name */ case 435: /* table_alias */ case 441: /* star_func */ case 443: /* noarg_func */ case 461: /* alias_opt */ { } break; case 348: /* sysinfo_opt */ { } break; case 349: /* privileges */ case 352: /* priv_type_list */ case 353: /* priv_type */ { } break; case 350: /* priv_level */ { } break; case 359: /* force_opt */ case 360: /* unsafe_opt */ case 361: /* not_exists_opt */ case 363: /* exists_opt */ case 418: /* analyze_opt */ case 421: /* or_replace_opt */ case 422: /* agg_func_opt */ case 430: /* ignore_opt */ case 467: /* set_quantifier_opt */ { } break; case 368: /* integer_list */ case 369: /* variable_list */ case 370: /* retention_list */ case 375: /* column_def_list */ case 376: /* tags_def_opt */ case 378: /* multi_create_clause */ case 379: /* tags_def */ case 380: /* multi_drop_clause */ case 387: /* specific_cols_opt */ case 388: /* expression_list */ case 390: /* col_name_list */ case 392: /* duration_list */ case 393: /* rollup_func_list */ case 403: /* tag_list_opt */ case 409: /* func_list */ case 427: /* col_list_opt */ case 428: /* tag_def_or_ref_opt */ case 432: /* dnode_list */ case 434: /* literal_list */ case 442: /* star_func_para_list */ case 444: /* other_para_list */ case 446: /* when_then_list */ case 466: /* hint_list */ case 468: /* select_list */ case 469: /* partition_by_clause_opt */ case 474: /* group_by_clause_opt */ case 477: /* hint_opt_list */ case 479: /* partition_list */ case 482: /* group_by_list */ case 485: /* order_by_clause_opt */ case 490: /* sort_specification_list */ { nodesDestroyList((yypminor->yy236)); } break; case 372: /* alter_db_option */ case 394: /* alter_table_option */ { } break; case 384: /* type_name */ { } break; case 451: /* compare_op */ case 452: /* in_op */ { } break; case 464: /* join_type */ { } break; case 481: /* fill_mode */ { } break; case 492: /* ordering_specification_opt */ { } break; case 493: /* 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<=YY_ACTTAB_COUNT ); assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); assert( iLookAhead!=YYNOCODE ); assert( iLookAhead < YYNTOKEN ); i += iLookAhead; assert( i<(int)YY_NLOOKAHEAD ); if( yy_lookahead[i]!=iLookAhead ){ #ifdef YYFALLBACK YYCODETYPE iFallback; /* Fallback token */ assert( 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; assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) ); if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){ #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{ assert( i>=0 && iYY_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"); } /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side ** of that rule */ static const YYCODETYPE yyRuleInfoLhs[] = { 342, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ 342, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 343, /* (2) account_options ::= */ 343, /* (3) account_options ::= account_options PPS literal */ 343, /* (4) account_options ::= account_options TSERIES literal */ 343, /* (5) account_options ::= account_options STORAGE literal */ 343, /* (6) account_options ::= account_options STREAMS literal */ 343, /* (7) account_options ::= account_options QTIME literal */ 343, /* (8) account_options ::= account_options DBS literal */ 343, /* (9) account_options ::= account_options USERS literal */ 343, /* (10) account_options ::= account_options CONNS literal */ 343, /* (11) account_options ::= account_options STATE literal */ 344, /* (12) alter_account_options ::= alter_account_option */ 344, /* (13) alter_account_options ::= alter_account_options alter_account_option */ 346, /* (14) alter_account_option ::= PASS literal */ 346, /* (15) alter_account_option ::= PPS literal */ 346, /* (16) alter_account_option ::= TSERIES literal */ 346, /* (17) alter_account_option ::= STORAGE literal */ 346, /* (18) alter_account_option ::= STREAMS literal */ 346, /* (19) alter_account_option ::= QTIME literal */ 346, /* (20) alter_account_option ::= DBS literal */ 346, /* (21) alter_account_option ::= USERS literal */ 346, /* (22) alter_account_option ::= CONNS literal */ 346, /* (23) alter_account_option ::= STATE literal */ 342, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ 342, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ 342, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ 342, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ 342, /* (28) cmd ::= DROP USER user_name */ 348, /* (29) sysinfo_opt ::= */ 348, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ 342, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ 342, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ 349, /* (33) privileges ::= ALL */ 349, /* (34) privileges ::= priv_type_list */ 349, /* (35) privileges ::= SUBSCRIBE */ 352, /* (36) priv_type_list ::= priv_type */ 352, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ 353, /* (38) priv_type ::= READ */ 353, /* (39) priv_type ::= WRITE */ 350, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ 350, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ 350, /* (42) priv_level ::= db_name NK_DOT table_name */ 350, /* (43) priv_level ::= topic_name */ 351, /* (44) with_opt ::= */ 351, /* (45) with_opt ::= WITH search_condition */ 342, /* (46) cmd ::= CREATE DNODE dnode_endpoint */ 342, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ 342, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */ 342, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */ 342, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ 342, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ 342, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ 342, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ 342, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */ 342, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ 342, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */ 358, /* (57) dnode_endpoint ::= NK_STRING */ 358, /* (58) dnode_endpoint ::= NK_ID */ 358, /* (59) dnode_endpoint ::= NK_IPTOKEN */ 359, /* (60) force_opt ::= */ 359, /* (61) force_opt ::= FORCE */ 360, /* (62) unsafe_opt ::= UNSAFE */ 342, /* (63) cmd ::= ALTER LOCAL NK_STRING */ 342, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ 342, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ 342, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ 342, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ 342, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ 342, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ 342, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ 342, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ 342, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ 342, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ 342, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ 342, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ 342, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ 342, /* (77) cmd ::= DROP DATABASE exists_opt db_name */ 342, /* (78) cmd ::= USE db_name */ 342, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */ 342, /* (80) cmd ::= FLUSH DATABASE db_name */ 342, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */ 342, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ 361, /* (83) not_exists_opt ::= IF NOT EXISTS */ 361, /* (84) not_exists_opt ::= */ 363, /* (85) exists_opt ::= IF EXISTS */ 363, /* (86) exists_opt ::= */ 362, /* (87) db_options ::= */ 362, /* (88) db_options ::= db_options BUFFER NK_INTEGER */ 362, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */ 362, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */ 362, /* (91) db_options ::= db_options COMP NK_INTEGER */ 362, /* (92) db_options ::= db_options DURATION NK_INTEGER */ 362, /* (93) db_options ::= db_options DURATION NK_VARIABLE */ 362, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */ 362, /* (95) db_options ::= db_options MINROWS NK_INTEGER */ 362, /* (96) db_options ::= db_options KEEP integer_list */ 362, /* (97) db_options ::= db_options KEEP variable_list */ 362, /* (98) db_options ::= db_options PAGES NK_INTEGER */ 362, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */ 362, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ 362, /* (101) db_options ::= db_options PRECISION NK_STRING */ 362, /* (102) db_options ::= db_options REPLICA NK_INTEGER */ 362, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */ 362, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ 362, /* (105) db_options ::= db_options RETENTIONS retention_list */ 362, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */ 362, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */ 362, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ 362, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ 362, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 362, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ 362, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 362, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ 362, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ 362, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */ 362, /* (116) db_options ::= db_options TABLE_PREFIX signed */ 362, /* (117) db_options ::= db_options TABLE_SUFFIX signed */ 364, /* (118) alter_db_options ::= alter_db_option */ 364, /* (119) alter_db_options ::= alter_db_options alter_db_option */ 372, /* (120) alter_db_option ::= BUFFER NK_INTEGER */ 372, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */ 372, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */ 372, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ 372, /* (124) alter_db_option ::= KEEP integer_list */ 372, /* (125) alter_db_option ::= KEEP variable_list */ 372, /* (126) alter_db_option ::= PAGES NK_INTEGER */ 372, /* (127) alter_db_option ::= REPLICA NK_INTEGER */ 372, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */ 372, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */ 372, /* (130) alter_db_option ::= MINROWS NK_INTEGER */ 372, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ 372, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 372, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ 372, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 368, /* (135) integer_list ::= NK_INTEGER */ 368, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */ 369, /* (137) variable_list ::= NK_VARIABLE */ 369, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ 370, /* (139) retention_list ::= retention */ 370, /* (140) retention_list ::= retention_list NK_COMMA retention */ 373, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 365, /* (142) speed_opt ::= */ 365, /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */ 366, /* (144) start_opt ::= */ 366, /* (145) start_opt ::= START WITH NK_INTEGER */ 366, /* (146) start_opt ::= START WITH NK_STRING */ 366, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */ 367, /* (148) end_opt ::= */ 367, /* (149) end_opt ::= END WITH NK_INTEGER */ 367, /* (150) end_opt ::= END WITH NK_STRING */ 367, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */ 342, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ 342, /* (153) cmd ::= CREATE TABLE multi_create_clause */ 342, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ 342, /* (155) cmd ::= DROP TABLE multi_drop_clause */ 342, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */ 342, /* (157) cmd ::= ALTER TABLE alter_table_clause */ 342, /* (158) cmd ::= ALTER STABLE alter_table_clause */ 381, /* (159) alter_table_clause ::= full_table_name alter_table_options */ 381, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ 381, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ 381, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ 381, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ 381, /* (164) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ 381, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ 381, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ 381, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ 381, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ 378, /* (169) multi_create_clause ::= create_subtable_clause */ 378, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */ 386, /* (171) 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 */ 380, /* (172) multi_drop_clause ::= drop_table_clause */ 380, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ 389, /* (174) drop_table_clause ::= exists_opt full_table_name */ 387, /* (175) specific_cols_opt ::= */ 387, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */ 374, /* (177) full_table_name ::= table_name */ 374, /* (178) full_table_name ::= db_name NK_DOT table_name */ 375, /* (179) column_def_list ::= column_def */ 375, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */ 391, /* (181) column_def ::= column_name type_name */ 384, /* (182) type_name ::= BOOL */ 384, /* (183) type_name ::= TINYINT */ 384, /* (184) type_name ::= SMALLINT */ 384, /* (185) type_name ::= INT */ 384, /* (186) type_name ::= INTEGER */ 384, /* (187) type_name ::= BIGINT */ 384, /* (188) type_name ::= FLOAT */ 384, /* (189) type_name ::= DOUBLE */ 384, /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ 384, /* (191) type_name ::= TIMESTAMP */ 384, /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ 384, /* (193) type_name ::= TINYINT UNSIGNED */ 384, /* (194) type_name ::= SMALLINT UNSIGNED */ 384, /* (195) type_name ::= INT UNSIGNED */ 384, /* (196) type_name ::= BIGINT UNSIGNED */ 384, /* (197) type_name ::= JSON */ 384, /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ 384, /* (199) type_name ::= MEDIUMBLOB */ 384, /* (200) type_name ::= BLOB */ 384, /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ 384, /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ 384, /* (203) type_name ::= DECIMAL */ 384, /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 384, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 376, /* (206) tags_def_opt ::= */ 376, /* (207) tags_def_opt ::= tags_def */ 379, /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 377, /* (209) table_options ::= */ 377, /* (210) table_options ::= table_options COMMENT NK_STRING */ 377, /* (211) table_options ::= table_options MAX_DELAY duration_list */ 377, /* (212) table_options ::= table_options WATERMARK duration_list */ 377, /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ 377, /* (214) table_options ::= table_options TTL NK_INTEGER */ 377, /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ 377, /* (216) table_options ::= table_options DELETE_MARK duration_list */ 382, /* (217) alter_table_options ::= alter_table_option */ 382, /* (218) alter_table_options ::= alter_table_options alter_table_option */ 394, /* (219) alter_table_option ::= COMMENT NK_STRING */ 394, /* (220) alter_table_option ::= TTL NK_INTEGER */ 392, /* (221) duration_list ::= duration_literal */ 392, /* (222) duration_list ::= duration_list NK_COMMA duration_literal */ 393, /* (223) rollup_func_list ::= rollup_func_name */ 393, /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ 396, /* (225) rollup_func_name ::= function_name */ 396, /* (226) rollup_func_name ::= FIRST */ 396, /* (227) rollup_func_name ::= LAST */ 390, /* (228) col_name_list ::= col_name */ 390, /* (229) col_name_list ::= col_name_list NK_COMMA col_name */ 398, /* (230) col_name ::= column_name */ 342, /* (231) cmd ::= SHOW DNODES */ 342, /* (232) cmd ::= SHOW USERS */ 342, /* (233) cmd ::= SHOW USER PRIVILEGES */ 342, /* (234) cmd ::= SHOW DATABASES */ 342, /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ 342, /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ 342, /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */ 342, /* (238) cmd ::= SHOW MNODES */ 342, /* (239) cmd ::= SHOW QNODES */ 342, /* (240) cmd ::= SHOW FUNCTIONS */ 342, /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ 342, /* (242) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ 342, /* (243) cmd ::= SHOW STREAMS */ 342, /* (244) cmd ::= SHOW ACCOUNTS */ 342, /* (245) cmd ::= SHOW APPS */ 342, /* (246) cmd ::= SHOW CONNECTIONS */ 342, /* (247) cmd ::= SHOW LICENCES */ 342, /* (248) cmd ::= SHOW GRANTS */ 342, /* (249) cmd ::= SHOW CREATE DATABASE db_name */ 342, /* (250) cmd ::= SHOW CREATE TABLE full_table_name */ 342, /* (251) cmd ::= SHOW CREATE STABLE full_table_name */ 342, /* (252) cmd ::= SHOW QUERIES */ 342, /* (253) cmd ::= SHOW SCORES */ 342, /* (254) cmd ::= SHOW TOPICS */ 342, /* (255) cmd ::= SHOW VARIABLES */ 342, /* (256) cmd ::= SHOW CLUSTER VARIABLES */ 342, /* (257) cmd ::= SHOW LOCAL VARIABLES */ 342, /* (258) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ 342, /* (259) cmd ::= SHOW BNODES */ 342, /* (260) cmd ::= SHOW SNODES */ 342, /* (261) cmd ::= SHOW CLUSTER */ 342, /* (262) cmd ::= SHOW TRANSACTIONS */ 342, /* (263) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ 342, /* (264) cmd ::= SHOW CONSUMERS */ 342, /* (265) cmd ::= SHOW SUBSCRIPTIONS */ 342, /* (266) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ 342, /* (267) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ 342, /* (268) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ 342, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ 342, /* (270) cmd ::= SHOW VNODES NK_INTEGER */ 342, /* (271) cmd ::= SHOW VNODES NK_STRING */ 342, /* (272) cmd ::= SHOW db_name_cond_opt ALIVE */ 342, /* (273) cmd ::= SHOW CLUSTER ALIVE */ 399, /* (274) db_name_cond_opt ::= */ 399, /* (275) db_name_cond_opt ::= db_name NK_DOT */ 400, /* (276) like_pattern_opt ::= */ 400, /* (277) like_pattern_opt ::= LIKE NK_STRING */ 401, /* (278) table_name_cond ::= table_name */ 402, /* (279) from_db_opt ::= */ 402, /* (280) from_db_opt ::= FROM db_name */ 403, /* (281) tag_list_opt ::= */ 403, /* (282) tag_list_opt ::= tag_item */ 403, /* (283) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ 404, /* (284) tag_item ::= TBNAME */ 404, /* (285) tag_item ::= QTAGS */ 404, /* (286) tag_item ::= column_name */ 404, /* (287) tag_item ::= column_name column_alias */ 404, /* (288) tag_item ::= column_name AS column_alias */ 342, /* (289) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ 342, /* (290) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ 342, /* (291) cmd ::= DROP INDEX exists_opt full_index_name */ 406, /* (292) full_index_name ::= index_name */ 406, /* (293) full_index_name ::= db_name NK_DOT index_name */ 407, /* (294) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ 407, /* (295) 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 */ 409, /* (296) func_list ::= func */ 409, /* (297) func_list ::= func_list NK_COMMA func */ 412, /* (298) func ::= sma_func_name NK_LP expression_list NK_RP */ 413, /* (299) sma_func_name ::= function_name */ 413, /* (300) sma_func_name ::= COUNT */ 413, /* (301) sma_func_name ::= FIRST */ 413, /* (302) sma_func_name ::= LAST */ 413, /* (303) sma_func_name ::= LAST_ROW */ 411, /* (304) sma_stream_opt ::= */ 411, /* (305) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ 411, /* (306) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ 411, /* (307) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ 414, /* (308) with_meta ::= AS */ 414, /* (309) with_meta ::= WITH META AS */ 414, /* (310) with_meta ::= ONLY META AS */ 342, /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ 342, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ 342, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ 342, /* (314) cmd ::= DROP TOPIC exists_opt topic_name */ 342, /* (315) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ 342, /* (316) cmd ::= DESC full_table_name */ 342, /* (317) cmd ::= DESCRIBE full_table_name */ 342, /* (318) cmd ::= RESET QUERY CACHE */ 342, /* (319) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ 342, /* (320) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 418, /* (321) analyze_opt ::= */ 418, /* (322) analyze_opt ::= ANALYZE */ 419, /* (323) explain_options ::= */ 419, /* (324) explain_options ::= explain_options VERBOSE NK_BOOL */ 419, /* (325) explain_options ::= explain_options RATIO NK_FLOAT */ 342, /* (326) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ 342, /* (327) cmd ::= DROP FUNCTION exists_opt function_name */ 422, /* (328) agg_func_opt ::= */ 422, /* (329) agg_func_opt ::= AGGREGATE */ 423, /* (330) bufsize_opt ::= */ 423, /* (331) bufsize_opt ::= BUFSIZE NK_INTEGER */ 424, /* (332) language_opt ::= */ 424, /* (333) language_opt ::= LANGUAGE NK_STRING */ 421, /* (334) or_replace_opt ::= */ 421, /* (335) or_replace_opt ::= OR REPLACE */ 342, /* (336) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ 342, /* (337) cmd ::= DROP STREAM exists_opt stream_name */ 342, /* (338) cmd ::= PAUSE STREAM exists_opt stream_name */ 342, /* (339) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 427, /* (340) col_list_opt ::= */ 427, /* (341) col_list_opt ::= NK_LP col_name_list NK_RP */ 428, /* (342) tag_def_or_ref_opt ::= */ 428, /* (343) tag_def_or_ref_opt ::= tags_def */ 428, /* (344) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 426, /* (345) stream_options ::= */ 426, /* (346) stream_options ::= stream_options TRIGGER AT_ONCE */ 426, /* (347) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ 426, /* (348) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ 426, /* (349) stream_options ::= stream_options WATERMARK duration_literal */ 426, /* (350) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ 426, /* (351) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ 426, /* (352) stream_options ::= stream_options DELETE_MARK duration_literal */ 426, /* (353) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 429, /* (354) subtable_opt ::= */ 429, /* (355) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 430, /* (356) ignore_opt ::= */ 430, /* (357) ignore_opt ::= IGNORE UNTREATED */ 342, /* (358) cmd ::= KILL CONNECTION NK_INTEGER */ 342, /* (359) cmd ::= KILL QUERY NK_STRING */ 342, /* (360) cmd ::= KILL TRANSACTION NK_INTEGER */ 342, /* (361) cmd ::= BALANCE VGROUP */ 342, /* (362) cmd ::= BALANCE VGROUP LEADER */ 342, /* (363) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ 342, /* (364) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ 342, /* (365) cmd ::= SPLIT VGROUP NK_INTEGER */ 432, /* (366) dnode_list ::= DNODE NK_INTEGER */ 432, /* (367) dnode_list ::= dnode_list DNODE NK_INTEGER */ 342, /* (368) cmd ::= DELETE FROM full_table_name where_clause_opt */ 342, /* (369) cmd ::= query_or_subquery */ 342, /* (370) cmd ::= insert_query */ 420, /* (371) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ 420, /* (372) insert_query ::= INSERT INTO full_table_name query_or_subquery */ 345, /* (373) literal ::= NK_INTEGER */ 345, /* (374) literal ::= NK_FLOAT */ 345, /* (375) literal ::= NK_STRING */ 345, /* (376) literal ::= NK_BOOL */ 345, /* (377) literal ::= TIMESTAMP NK_STRING */ 345, /* (378) literal ::= duration_literal */ 345, /* (379) literal ::= NULL */ 345, /* (380) literal ::= NK_QUESTION */ 395, /* (381) duration_literal ::= NK_VARIABLE */ 371, /* (382) signed ::= NK_INTEGER */ 371, /* (383) signed ::= NK_PLUS NK_INTEGER */ 371, /* (384) signed ::= NK_MINUS NK_INTEGER */ 371, /* (385) signed ::= NK_FLOAT */ 371, /* (386) signed ::= NK_PLUS NK_FLOAT */ 371, /* (387) signed ::= NK_MINUS NK_FLOAT */ 385, /* (388) signed_literal ::= signed */ 385, /* (389) signed_literal ::= NK_STRING */ 385, /* (390) signed_literal ::= NK_BOOL */ 385, /* (391) signed_literal ::= TIMESTAMP NK_STRING */ 385, /* (392) signed_literal ::= duration_literal */ 385, /* (393) signed_literal ::= NULL */ 385, /* (394) signed_literal ::= literal_func */ 385, /* (395) signed_literal ::= NK_QUESTION */ 434, /* (396) literal_list ::= signed_literal */ 434, /* (397) literal_list ::= literal_list NK_COMMA signed_literal */ 354, /* (398) db_name ::= NK_ID */ 355, /* (399) table_name ::= NK_ID */ 383, /* (400) column_name ::= NK_ID */ 397, /* (401) function_name ::= NK_ID */ 435, /* (402) table_alias ::= NK_ID */ 405, /* (403) column_alias ::= NK_ID */ 347, /* (404) user_name ::= NK_ID */ 356, /* (405) topic_name ::= NK_ID */ 425, /* (406) stream_name ::= NK_ID */ 417, /* (407) cgroup_name ::= NK_ID */ 408, /* (408) index_name ::= NK_ID */ 436, /* (409) expr_or_subquery ::= expression */ 431, /* (410) expression ::= literal */ 431, /* (411) expression ::= pseudo_column */ 431, /* (412) expression ::= column_reference */ 431, /* (413) expression ::= function_expression */ 431, /* (414) expression ::= case_when_expression */ 431, /* (415) expression ::= NK_LP expression NK_RP */ 431, /* (416) expression ::= NK_PLUS expr_or_subquery */ 431, /* (417) expression ::= NK_MINUS expr_or_subquery */ 431, /* (418) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ 431, /* (419) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ 431, /* (420) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ 431, /* (421) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ 431, /* (422) expression ::= expr_or_subquery NK_REM expr_or_subquery */ 431, /* (423) expression ::= column_reference NK_ARROW NK_STRING */ 431, /* (424) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ 431, /* (425) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ 388, /* (426) expression_list ::= expr_or_subquery */ 388, /* (427) expression_list ::= expression_list NK_COMMA expr_or_subquery */ 438, /* (428) column_reference ::= column_name */ 438, /* (429) column_reference ::= table_name NK_DOT column_name */ 437, /* (430) pseudo_column ::= ROWTS */ 437, /* (431) pseudo_column ::= TBNAME */ 437, /* (432) pseudo_column ::= table_name NK_DOT TBNAME */ 437, /* (433) pseudo_column ::= QSTART */ 437, /* (434) pseudo_column ::= QEND */ 437, /* (435) pseudo_column ::= QDURATION */ 437, /* (436) pseudo_column ::= WSTART */ 437, /* (437) pseudo_column ::= WEND */ 437, /* (438) pseudo_column ::= WDURATION */ 437, /* (439) pseudo_column ::= IROWTS */ 437, /* (440) pseudo_column ::= ISFILLED */ 437, /* (441) pseudo_column ::= QTAGS */ 439, /* (442) function_expression ::= function_name NK_LP expression_list NK_RP */ 439, /* (443) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ 439, /* (444) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ 439, /* (445) function_expression ::= literal_func */ 433, /* (446) literal_func ::= noarg_func NK_LP NK_RP */ 433, /* (447) literal_func ::= NOW */ 443, /* (448) noarg_func ::= NOW */ 443, /* (449) noarg_func ::= TODAY */ 443, /* (450) noarg_func ::= TIMEZONE */ 443, /* (451) noarg_func ::= DATABASE */ 443, /* (452) noarg_func ::= CLIENT_VERSION */ 443, /* (453) noarg_func ::= SERVER_VERSION */ 443, /* (454) noarg_func ::= SERVER_STATUS */ 443, /* (455) noarg_func ::= CURRENT_USER */ 443, /* (456) noarg_func ::= USER */ 441, /* (457) star_func ::= COUNT */ 441, /* (458) star_func ::= FIRST */ 441, /* (459) star_func ::= LAST */ 441, /* (460) star_func ::= LAST_ROW */ 442, /* (461) star_func_para_list ::= NK_STAR */ 442, /* (462) star_func_para_list ::= other_para_list */ 444, /* (463) other_para_list ::= star_func_para */ 444, /* (464) other_para_list ::= other_para_list NK_COMMA star_func_para */ 445, /* (465) star_func_para ::= expr_or_subquery */ 445, /* (466) star_func_para ::= table_name NK_DOT NK_STAR */ 440, /* (467) case_when_expression ::= CASE when_then_list case_when_else_opt END */ 440, /* (468) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ 446, /* (469) when_then_list ::= when_then_expr */ 446, /* (470) when_then_list ::= when_then_list when_then_expr */ 449, /* (471) when_then_expr ::= WHEN common_expression THEN common_expression */ 447, /* (472) case_when_else_opt ::= */ 447, /* (473) case_when_else_opt ::= ELSE common_expression */ 450, /* (474) predicate ::= expr_or_subquery compare_op expr_or_subquery */ 450, /* (475) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ 450, /* (476) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ 450, /* (477) predicate ::= expr_or_subquery IS NULL */ 450, /* (478) predicate ::= expr_or_subquery IS NOT NULL */ 450, /* (479) predicate ::= expr_or_subquery in_op in_predicate_value */ 451, /* (480) compare_op ::= NK_LT */ 451, /* (481) compare_op ::= NK_GT */ 451, /* (482) compare_op ::= NK_LE */ 451, /* (483) compare_op ::= NK_GE */ 451, /* (484) compare_op ::= NK_NE */ 451, /* (485) compare_op ::= NK_EQ */ 451, /* (486) compare_op ::= LIKE */ 451, /* (487) compare_op ::= NOT LIKE */ 451, /* (488) compare_op ::= MATCH */ 451, /* (489) compare_op ::= NMATCH */ 451, /* (490) compare_op ::= CONTAINS */ 452, /* (491) in_op ::= IN */ 452, /* (492) in_op ::= NOT IN */ 453, /* (493) in_predicate_value ::= NK_LP literal_list NK_RP */ 454, /* (494) boolean_value_expression ::= boolean_primary */ 454, /* (495) boolean_value_expression ::= NOT boolean_primary */ 454, /* (496) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ 454, /* (497) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ 455, /* (498) boolean_primary ::= predicate */ 455, /* (499) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ 448, /* (500) common_expression ::= expr_or_subquery */ 448, /* (501) common_expression ::= boolean_value_expression */ 456, /* (502) from_clause_opt ::= */ 456, /* (503) from_clause_opt ::= FROM table_reference_list */ 457, /* (504) table_reference_list ::= table_reference */ 457, /* (505) table_reference_list ::= table_reference_list NK_COMMA table_reference */ 458, /* (506) table_reference ::= table_primary */ 458, /* (507) table_reference ::= joined_table */ 459, /* (508) table_primary ::= table_name alias_opt */ 459, /* (509) table_primary ::= db_name NK_DOT table_name alias_opt */ 459, /* (510) table_primary ::= subquery alias_opt */ 459, /* (511) table_primary ::= parenthesized_joined_table */ 461, /* (512) alias_opt ::= */ 461, /* (513) alias_opt ::= table_alias */ 461, /* (514) alias_opt ::= AS table_alias */ 463, /* (515) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ 463, /* (516) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ 460, /* (517) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 464, /* (518) join_type ::= */ 464, /* (519) join_type ::= INNER */ 465, /* (520) query_specification ::= SELECT hint_list 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 */ 476, /* (521) hint_opt ::= NO_BATCH_SCAN NK_LP NK_RP */ 476, /* (522) hint_opt ::= BATCH_SCAN NK_LP NK_RP */ 477, /* (523) hint_opt_list ::= */ 477, /* (524) hint_opt_list ::= hint_opt */ 477, /* (525) hint_opt_list ::= hint_opt_list hint_opt */ 466, /* (526) hint_list ::= */ 466, /* (527) hint_list ::= NK_HINT_BEGIN hint_opt_list NK_HINT_END */ 467, /* (528) set_quantifier_opt ::= */ 467, /* (529) set_quantifier_opt ::= DISTINCT */ 467, /* (530) set_quantifier_opt ::= ALL */ 468, /* (531) select_list ::= select_item */ 468, /* (532) select_list ::= select_list NK_COMMA select_item */ 478, /* (533) select_item ::= NK_STAR */ 478, /* (534) select_item ::= common_expression */ 478, /* (535) select_item ::= common_expression column_alias */ 478, /* (536) select_item ::= common_expression AS column_alias */ 478, /* (537) select_item ::= table_name NK_DOT NK_STAR */ 416, /* (538) where_clause_opt ::= */ 416, /* (539) where_clause_opt ::= WHERE search_condition */ 469, /* (540) partition_by_clause_opt ::= */ 469, /* (541) partition_by_clause_opt ::= PARTITION BY partition_list */ 479, /* (542) partition_list ::= partition_item */ 479, /* (543) partition_list ::= partition_list NK_COMMA partition_item */ 480, /* (544) partition_item ::= expr_or_subquery */ 480, /* (545) partition_item ::= expr_or_subquery column_alias */ 480, /* (546) partition_item ::= expr_or_subquery AS column_alias */ 473, /* (547) twindow_clause_opt ::= */ 473, /* (548) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ 473, /* (549) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ 473, /* (550) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ 473, /* (551) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ 473, /* (552) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 410, /* (553) sliding_opt ::= */ 410, /* (554) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ 472, /* (555) fill_opt ::= */ 472, /* (556) fill_opt ::= FILL NK_LP fill_mode NK_RP */ 472, /* (557) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ 472, /* (558) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ 481, /* (559) fill_mode ::= NONE */ 481, /* (560) fill_mode ::= PREV */ 481, /* (561) fill_mode ::= NULL */ 481, /* (562) fill_mode ::= NULL_F */ 481, /* (563) fill_mode ::= LINEAR */ 481, /* (564) fill_mode ::= NEXT */ 474, /* (565) group_by_clause_opt ::= */ 474, /* (566) group_by_clause_opt ::= GROUP BY group_by_list */ 482, /* (567) group_by_list ::= expr_or_subquery */ 482, /* (568) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 475, /* (569) having_clause_opt ::= */ 475, /* (570) having_clause_opt ::= HAVING search_condition */ 470, /* (571) range_opt ::= */ 470, /* (572) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ 470, /* (573) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 471, /* (574) every_opt ::= */ 471, /* (575) every_opt ::= EVERY NK_LP duration_literal NK_RP */ 483, /* (576) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ 484, /* (577) query_simple ::= query_specification */ 484, /* (578) query_simple ::= union_query_expression */ 488, /* (579) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ 488, /* (580) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ 489, /* (581) query_simple_or_subquery ::= query_simple */ 489, /* (582) query_simple_or_subquery ::= subquery */ 415, /* (583) query_or_subquery ::= query_expression */ 415, /* (584) query_or_subquery ::= subquery */ 485, /* (585) order_by_clause_opt ::= */ 485, /* (586) order_by_clause_opt ::= ORDER BY sort_specification_list */ 486, /* (587) slimit_clause_opt ::= */ 486, /* (588) slimit_clause_opt ::= SLIMIT NK_INTEGER */ 486, /* (589) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ 486, /* (590) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 487, /* (591) limit_clause_opt ::= */ 487, /* (592) limit_clause_opt ::= LIMIT NK_INTEGER */ 487, /* (593) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ 487, /* (594) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 462, /* (595) subquery ::= NK_LP query_expression NK_RP */ 462, /* (596) subquery ::= NK_LP subquery NK_RP */ 357, /* (597) search_condition ::= common_expression */ 490, /* (598) sort_specification_list ::= sort_specification */ 490, /* (599) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ 491, /* (600) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 492, /* (601) ordering_specification_opt ::= */ 492, /* (602) ordering_specification_opt ::= ASC */ 492, /* (603) ordering_specification_opt ::= DESC */ 493, /* (604) null_ordering_opt ::= */ 493, /* (605) null_ordering_opt ::= NULLS FIRST */ 493, /* (606) null_ordering_opt ::= NULLS LAST */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number ** of symbols on the right-hand side of that rule. */ static const signed char yyRuleInfoNRhs[] = { -6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ -4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 0, /* (2) account_options ::= */ -3, /* (3) account_options ::= account_options PPS literal */ -3, /* (4) account_options ::= account_options TSERIES literal */ -3, /* (5) account_options ::= account_options STORAGE literal */ -3, /* (6) account_options ::= account_options STREAMS literal */ -3, /* (7) account_options ::= account_options QTIME literal */ -3, /* (8) account_options ::= account_options DBS literal */ -3, /* (9) account_options ::= account_options USERS literal */ -3, /* (10) account_options ::= account_options CONNS literal */ -3, /* (11) account_options ::= account_options STATE literal */ -1, /* (12) alter_account_options ::= alter_account_option */ -2, /* (13) alter_account_options ::= alter_account_options alter_account_option */ -2, /* (14) alter_account_option ::= PASS literal */ -2, /* (15) alter_account_option ::= PPS literal */ -2, /* (16) alter_account_option ::= TSERIES literal */ -2, /* (17) alter_account_option ::= STORAGE literal */ -2, /* (18) alter_account_option ::= STREAMS literal */ -2, /* (19) alter_account_option ::= QTIME literal */ -2, /* (20) alter_account_option ::= DBS literal */ -2, /* (21) alter_account_option ::= USERS literal */ -2, /* (22) alter_account_option ::= CONNS literal */ -2, /* (23) alter_account_option ::= STATE literal */ -6, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ -5, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ -5, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -5, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -3, /* (28) cmd ::= DROP USER user_name */ 0, /* (29) sysinfo_opt ::= */ -2, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ -7, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -7, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -1, /* (33) privileges ::= ALL */ -1, /* (34) privileges ::= priv_type_list */ -1, /* (35) privileges ::= SUBSCRIBE */ -1, /* (36) priv_type_list ::= priv_type */ -3, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ -1, /* (38) priv_type ::= READ */ -1, /* (39) priv_type ::= WRITE */ -3, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ -3, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ -3, /* (42) priv_level ::= db_name NK_DOT table_name */ -1, /* (43) priv_level ::= topic_name */ 0, /* (44) with_opt ::= */ -2, /* (45) with_opt ::= WITH search_condition */ -3, /* (46) cmd ::= CREATE DNODE dnode_endpoint */ -5, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -4, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */ -4, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */ -4, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -4, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -4, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ -5, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ -4, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */ -5, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ -3, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */ -1, /* (57) dnode_endpoint ::= NK_STRING */ -1, /* (58) dnode_endpoint ::= NK_ID */ -1, /* (59) dnode_endpoint ::= NK_IPTOKEN */ 0, /* (60) force_opt ::= */ -1, /* (61) force_opt ::= FORCE */ -1, /* (62) unsafe_opt ::= UNSAFE */ -3, /* (63) cmd ::= ALTER LOCAL NK_STRING */ -4, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ -5, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ -5, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ -5, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ -5, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ -5, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ -5, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ -5, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ -5, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ -5, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ -5, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ -5, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ -5, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -4, /* (77) cmd ::= DROP DATABASE exists_opt db_name */ -2, /* (78) cmd ::= USE db_name */ -4, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */ -3, /* (80) cmd ::= FLUSH DATABASE db_name */ -4, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */ -5, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -3, /* (83) not_exists_opt ::= IF NOT EXISTS */ 0, /* (84) not_exists_opt ::= */ -2, /* (85) exists_opt ::= IF EXISTS */ 0, /* (86) exists_opt ::= */ 0, /* (87) db_options ::= */ -3, /* (88) db_options ::= db_options BUFFER NK_INTEGER */ -3, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */ -3, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */ -3, /* (91) db_options ::= db_options COMP NK_INTEGER */ -3, /* (92) db_options ::= db_options DURATION NK_INTEGER */ -3, /* (93) db_options ::= db_options DURATION NK_VARIABLE */ -3, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */ -3, /* (95) db_options ::= db_options MINROWS NK_INTEGER */ -3, /* (96) db_options ::= db_options KEEP integer_list */ -3, /* (97) db_options ::= db_options KEEP variable_list */ -3, /* (98) db_options ::= db_options PAGES NK_INTEGER */ -3, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */ -3, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -3, /* (101) db_options ::= db_options PRECISION NK_STRING */ -3, /* (102) db_options ::= db_options REPLICA NK_INTEGER */ -3, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */ -3, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -3, /* (105) db_options ::= db_options RETENTIONS retention_list */ -3, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */ -3, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */ -3, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -3, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -4, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -3, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -4, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -3, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -3, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -3, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */ -3, /* (116) db_options ::= db_options TABLE_PREFIX signed */ -3, /* (117) db_options ::= db_options TABLE_SUFFIX signed */ -1, /* (118) alter_db_options ::= alter_db_option */ -2, /* (119) alter_db_options ::= alter_db_options alter_db_option */ -2, /* (120) alter_db_option ::= BUFFER NK_INTEGER */ -2, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */ -2, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */ -2, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -2, /* (124) alter_db_option ::= KEEP integer_list */ -2, /* (125) alter_db_option ::= KEEP variable_list */ -2, /* (126) alter_db_option ::= PAGES NK_INTEGER */ -2, /* (127) alter_db_option ::= REPLICA NK_INTEGER */ -2, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */ -2, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */ -2, /* (130) alter_db_option ::= MINROWS NK_INTEGER */ -2, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -3, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -2, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -3, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -1, /* (135) integer_list ::= NK_INTEGER */ -3, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */ -1, /* (137) variable_list ::= NK_VARIABLE */ -3, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -1, /* (139) retention_list ::= retention */ -3, /* (140) retention_list ::= retention_list NK_COMMA retention */ -3, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 0, /* (142) speed_opt ::= */ -2, /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */ 0, /* (144) start_opt ::= */ -3, /* (145) start_opt ::= START WITH NK_INTEGER */ -3, /* (146) start_opt ::= START WITH NK_STRING */ -4, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */ 0, /* (148) end_opt ::= */ -3, /* (149) end_opt ::= END WITH NK_INTEGER */ -3, /* (150) end_opt ::= END WITH NK_STRING */ -4, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */ -9, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ -3, /* (153) cmd ::= CREATE TABLE multi_create_clause */ -9, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ -3, /* (155) cmd ::= DROP TABLE multi_drop_clause */ -4, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */ -3, /* (157) cmd ::= ALTER TABLE alter_table_clause */ -3, /* (158) cmd ::= ALTER STABLE alter_table_clause */ -2, /* (159) alter_table_clause ::= full_table_name alter_table_options */ -5, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -4, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ -5, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -5, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -5, /* (164) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -4, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ -5, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -5, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -6, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -1, /* (169) multi_create_clause ::= create_subtable_clause */ -2, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */ -10, /* (171) 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 */ -1, /* (172) multi_drop_clause ::= drop_table_clause */ -3, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ -2, /* (174) drop_table_clause ::= exists_opt full_table_name */ 0, /* (175) specific_cols_opt ::= */ -3, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */ -1, /* (177) full_table_name ::= table_name */ -3, /* (178) full_table_name ::= db_name NK_DOT table_name */ -1, /* (179) column_def_list ::= column_def */ -3, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */ -2, /* (181) column_def ::= column_name type_name */ -1, /* (182) type_name ::= BOOL */ -1, /* (183) type_name ::= TINYINT */ -1, /* (184) type_name ::= SMALLINT */ -1, /* (185) type_name ::= INT */ -1, /* (186) type_name ::= INTEGER */ -1, /* (187) type_name ::= BIGINT */ -1, /* (188) type_name ::= FLOAT */ -1, /* (189) type_name ::= DOUBLE */ -4, /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -1, /* (191) type_name ::= TIMESTAMP */ -4, /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -2, /* (193) type_name ::= TINYINT UNSIGNED */ -2, /* (194) type_name ::= SMALLINT UNSIGNED */ -2, /* (195) type_name ::= INT UNSIGNED */ -2, /* (196) type_name ::= BIGINT UNSIGNED */ -1, /* (197) type_name ::= JSON */ -4, /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -1, /* (199) type_name ::= MEDIUMBLOB */ -1, /* (200) type_name ::= BLOB */ -4, /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -4, /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -1, /* (203) type_name ::= DECIMAL */ -4, /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 0, /* (206) tags_def_opt ::= */ -1, /* (207) tags_def_opt ::= tags_def */ -4, /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 0, /* (209) table_options ::= */ -3, /* (210) table_options ::= table_options COMMENT NK_STRING */ -3, /* (211) table_options ::= table_options MAX_DELAY duration_list */ -3, /* (212) table_options ::= table_options WATERMARK duration_list */ -5, /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -3, /* (214) table_options ::= table_options TTL NK_INTEGER */ -5, /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -3, /* (216) table_options ::= table_options DELETE_MARK duration_list */ -1, /* (217) alter_table_options ::= alter_table_option */ -2, /* (218) alter_table_options ::= alter_table_options alter_table_option */ -2, /* (219) alter_table_option ::= COMMENT NK_STRING */ -2, /* (220) alter_table_option ::= TTL NK_INTEGER */ -1, /* (221) duration_list ::= duration_literal */ -3, /* (222) duration_list ::= duration_list NK_COMMA duration_literal */ -1, /* (223) rollup_func_list ::= rollup_func_name */ -3, /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ -1, /* (225) rollup_func_name ::= function_name */ -1, /* (226) rollup_func_name ::= FIRST */ -1, /* (227) rollup_func_name ::= LAST */ -1, /* (228) col_name_list ::= col_name */ -3, /* (229) col_name_list ::= col_name_list NK_COMMA col_name */ -1, /* (230) col_name ::= column_name */ -2, /* (231) cmd ::= SHOW DNODES */ -2, /* (232) cmd ::= SHOW USERS */ -3, /* (233) cmd ::= SHOW USER PRIVILEGES */ -2, /* (234) cmd ::= SHOW DATABASES */ -4, /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -4, /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -3, /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */ -2, /* (238) cmd ::= SHOW MNODES */ -2, /* (239) cmd ::= SHOW QNODES */ -2, /* (240) cmd ::= SHOW FUNCTIONS */ -5, /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -6, /* (242) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -2, /* (243) cmd ::= SHOW STREAMS */ -2, /* (244) cmd ::= SHOW ACCOUNTS */ -2, /* (245) cmd ::= SHOW APPS */ -2, /* (246) cmd ::= SHOW CONNECTIONS */ -2, /* (247) cmd ::= SHOW LICENCES */ -2, /* (248) cmd ::= SHOW GRANTS */ -4, /* (249) cmd ::= SHOW CREATE DATABASE db_name */ -4, /* (250) cmd ::= SHOW CREATE TABLE full_table_name */ -4, /* (251) cmd ::= SHOW CREATE STABLE full_table_name */ -2, /* (252) cmd ::= SHOW QUERIES */ -2, /* (253) cmd ::= SHOW SCORES */ -2, /* (254) cmd ::= SHOW TOPICS */ -2, /* (255) cmd ::= SHOW VARIABLES */ -3, /* (256) cmd ::= SHOW CLUSTER VARIABLES */ -3, /* (257) cmd ::= SHOW LOCAL VARIABLES */ -5, /* (258) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -2, /* (259) cmd ::= SHOW BNODES */ -2, /* (260) cmd ::= SHOW SNODES */ -2, /* (261) cmd ::= SHOW CLUSTER */ -2, /* (262) cmd ::= SHOW TRANSACTIONS */ -4, /* (263) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -2, /* (264) cmd ::= SHOW CONSUMERS */ -2, /* (265) cmd ::= SHOW SUBSCRIPTIONS */ -5, /* (266) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -6, /* (267) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -7, /* (268) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -8, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -3, /* (270) cmd ::= SHOW VNODES NK_INTEGER */ -3, /* (271) cmd ::= SHOW VNODES NK_STRING */ -3, /* (272) cmd ::= SHOW db_name_cond_opt ALIVE */ -3, /* (273) cmd ::= SHOW CLUSTER ALIVE */ 0, /* (274) db_name_cond_opt ::= */ -2, /* (275) db_name_cond_opt ::= db_name NK_DOT */ 0, /* (276) like_pattern_opt ::= */ -2, /* (277) like_pattern_opt ::= LIKE NK_STRING */ -1, /* (278) table_name_cond ::= table_name */ 0, /* (279) from_db_opt ::= */ -2, /* (280) from_db_opt ::= FROM db_name */ 0, /* (281) tag_list_opt ::= */ -1, /* (282) tag_list_opt ::= tag_item */ -3, /* (283) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ -1, /* (284) tag_item ::= TBNAME */ -1, /* (285) tag_item ::= QTAGS */ -1, /* (286) tag_item ::= column_name */ -2, /* (287) tag_item ::= column_name column_alias */ -3, /* (288) tag_item ::= column_name AS column_alias */ -8, /* (289) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ -9, /* (290) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ -4, /* (291) cmd ::= DROP INDEX exists_opt full_index_name */ -1, /* (292) full_index_name ::= index_name */ -3, /* (293) full_index_name ::= db_name NK_DOT index_name */ -10, /* (294) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -12, /* (295) 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 */ -1, /* (296) func_list ::= func */ -3, /* (297) func_list ::= func_list NK_COMMA func */ -4, /* (298) func ::= sma_func_name NK_LP expression_list NK_RP */ -1, /* (299) sma_func_name ::= function_name */ -1, /* (300) sma_func_name ::= COUNT */ -1, /* (301) sma_func_name ::= FIRST */ -1, /* (302) sma_func_name ::= LAST */ -1, /* (303) sma_func_name ::= LAST_ROW */ 0, /* (304) sma_stream_opt ::= */ -3, /* (305) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -3, /* (306) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -3, /* (307) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -1, /* (308) with_meta ::= AS */ -3, /* (309) with_meta ::= WITH META AS */ -3, /* (310) with_meta ::= ONLY META AS */ -6, /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -7, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -8, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -4, /* (314) cmd ::= DROP TOPIC exists_opt topic_name */ -7, /* (315) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -2, /* (316) cmd ::= DESC full_table_name */ -2, /* (317) cmd ::= DESCRIBE full_table_name */ -3, /* (318) cmd ::= RESET QUERY CACHE */ -4, /* (319) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ -4, /* (320) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 0, /* (321) analyze_opt ::= */ -1, /* (322) analyze_opt ::= ANALYZE */ 0, /* (323) explain_options ::= */ -3, /* (324) explain_options ::= explain_options VERBOSE NK_BOOL */ -3, /* (325) explain_options ::= explain_options RATIO NK_FLOAT */ -12, /* (326) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ -4, /* (327) cmd ::= DROP FUNCTION exists_opt function_name */ 0, /* (328) agg_func_opt ::= */ -1, /* (329) agg_func_opt ::= AGGREGATE */ 0, /* (330) bufsize_opt ::= */ -2, /* (331) bufsize_opt ::= BUFSIZE NK_INTEGER */ 0, /* (332) language_opt ::= */ -2, /* (333) language_opt ::= LANGUAGE NK_STRING */ 0, /* (334) or_replace_opt ::= */ -2, /* (335) or_replace_opt ::= OR REPLACE */ -12, /* (336) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ -4, /* (337) cmd ::= DROP STREAM exists_opt stream_name */ -4, /* (338) cmd ::= PAUSE STREAM exists_opt stream_name */ -5, /* (339) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 0, /* (340) col_list_opt ::= */ -3, /* (341) col_list_opt ::= NK_LP col_name_list NK_RP */ 0, /* (342) tag_def_or_ref_opt ::= */ -1, /* (343) tag_def_or_ref_opt ::= tags_def */ -4, /* (344) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 0, /* (345) stream_options ::= */ -3, /* (346) stream_options ::= stream_options TRIGGER AT_ONCE */ -3, /* (347) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -4, /* (348) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -3, /* (349) stream_options ::= stream_options WATERMARK duration_literal */ -4, /* (350) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -3, /* (351) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -3, /* (352) stream_options ::= stream_options DELETE_MARK duration_literal */ -4, /* (353) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 0, /* (354) subtable_opt ::= */ -4, /* (355) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 0, /* (356) ignore_opt ::= */ -2, /* (357) ignore_opt ::= IGNORE UNTREATED */ -3, /* (358) cmd ::= KILL CONNECTION NK_INTEGER */ -3, /* (359) cmd ::= KILL QUERY NK_STRING */ -3, /* (360) cmd ::= KILL TRANSACTION NK_INTEGER */ -2, /* (361) cmd ::= BALANCE VGROUP */ -3, /* (362) cmd ::= BALANCE VGROUP LEADER */ -4, /* (363) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -4, /* (364) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -3, /* (365) cmd ::= SPLIT VGROUP NK_INTEGER */ -2, /* (366) dnode_list ::= DNODE NK_INTEGER */ -3, /* (367) dnode_list ::= dnode_list DNODE NK_INTEGER */ -4, /* (368) cmd ::= DELETE FROM full_table_name where_clause_opt */ -1, /* (369) cmd ::= query_or_subquery */ -1, /* (370) cmd ::= insert_query */ -7, /* (371) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -4, /* (372) insert_query ::= INSERT INTO full_table_name query_or_subquery */ -1, /* (373) literal ::= NK_INTEGER */ -1, /* (374) literal ::= NK_FLOAT */ -1, /* (375) literal ::= NK_STRING */ -1, /* (376) literal ::= NK_BOOL */ -2, /* (377) literal ::= TIMESTAMP NK_STRING */ -1, /* (378) literal ::= duration_literal */ -1, /* (379) literal ::= NULL */ -1, /* (380) literal ::= NK_QUESTION */ -1, /* (381) duration_literal ::= NK_VARIABLE */ -1, /* (382) signed ::= NK_INTEGER */ -2, /* (383) signed ::= NK_PLUS NK_INTEGER */ -2, /* (384) signed ::= NK_MINUS NK_INTEGER */ -1, /* (385) signed ::= NK_FLOAT */ -2, /* (386) signed ::= NK_PLUS NK_FLOAT */ -2, /* (387) signed ::= NK_MINUS NK_FLOAT */ -1, /* (388) signed_literal ::= signed */ -1, /* (389) signed_literal ::= NK_STRING */ -1, /* (390) signed_literal ::= NK_BOOL */ -2, /* (391) signed_literal ::= TIMESTAMP NK_STRING */ -1, /* (392) signed_literal ::= duration_literal */ -1, /* (393) signed_literal ::= NULL */ -1, /* (394) signed_literal ::= literal_func */ -1, /* (395) signed_literal ::= NK_QUESTION */ -1, /* (396) literal_list ::= signed_literal */ -3, /* (397) literal_list ::= literal_list NK_COMMA signed_literal */ -1, /* (398) db_name ::= NK_ID */ -1, /* (399) table_name ::= NK_ID */ -1, /* (400) column_name ::= NK_ID */ -1, /* (401) function_name ::= NK_ID */ -1, /* (402) table_alias ::= NK_ID */ -1, /* (403) column_alias ::= NK_ID */ -1, /* (404) user_name ::= NK_ID */ -1, /* (405) topic_name ::= NK_ID */ -1, /* (406) stream_name ::= NK_ID */ -1, /* (407) cgroup_name ::= NK_ID */ -1, /* (408) index_name ::= NK_ID */ -1, /* (409) expr_or_subquery ::= expression */ -1, /* (410) expression ::= literal */ -1, /* (411) expression ::= pseudo_column */ -1, /* (412) expression ::= column_reference */ -1, /* (413) expression ::= function_expression */ -1, /* (414) expression ::= case_when_expression */ -3, /* (415) expression ::= NK_LP expression NK_RP */ -2, /* (416) expression ::= NK_PLUS expr_or_subquery */ -2, /* (417) expression ::= NK_MINUS expr_or_subquery */ -3, /* (418) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ -3, /* (419) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -3, /* (420) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -3, /* (421) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -3, /* (422) expression ::= expr_or_subquery NK_REM expr_or_subquery */ -3, /* (423) expression ::= column_reference NK_ARROW NK_STRING */ -3, /* (424) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ -3, /* (425) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -1, /* (426) expression_list ::= expr_or_subquery */ -3, /* (427) expression_list ::= expression_list NK_COMMA expr_or_subquery */ -1, /* (428) column_reference ::= column_name */ -3, /* (429) column_reference ::= table_name NK_DOT column_name */ -1, /* (430) pseudo_column ::= ROWTS */ -1, /* (431) pseudo_column ::= TBNAME */ -3, /* (432) pseudo_column ::= table_name NK_DOT TBNAME */ -1, /* (433) pseudo_column ::= QSTART */ -1, /* (434) pseudo_column ::= QEND */ -1, /* (435) pseudo_column ::= QDURATION */ -1, /* (436) pseudo_column ::= WSTART */ -1, /* (437) pseudo_column ::= WEND */ -1, /* (438) pseudo_column ::= WDURATION */ -1, /* (439) pseudo_column ::= IROWTS */ -1, /* (440) pseudo_column ::= ISFILLED */ -1, /* (441) pseudo_column ::= QTAGS */ -4, /* (442) function_expression ::= function_name NK_LP expression_list NK_RP */ -4, /* (443) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ -6, /* (444) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -1, /* (445) function_expression ::= literal_func */ -3, /* (446) literal_func ::= noarg_func NK_LP NK_RP */ -1, /* (447) literal_func ::= NOW */ -1, /* (448) noarg_func ::= NOW */ -1, /* (449) noarg_func ::= TODAY */ -1, /* (450) noarg_func ::= TIMEZONE */ -1, /* (451) noarg_func ::= DATABASE */ -1, /* (452) noarg_func ::= CLIENT_VERSION */ -1, /* (453) noarg_func ::= SERVER_VERSION */ -1, /* (454) noarg_func ::= SERVER_STATUS */ -1, /* (455) noarg_func ::= CURRENT_USER */ -1, /* (456) noarg_func ::= USER */ -1, /* (457) star_func ::= COUNT */ -1, /* (458) star_func ::= FIRST */ -1, /* (459) star_func ::= LAST */ -1, /* (460) star_func ::= LAST_ROW */ -1, /* (461) star_func_para_list ::= NK_STAR */ -1, /* (462) star_func_para_list ::= other_para_list */ -1, /* (463) other_para_list ::= star_func_para */ -3, /* (464) other_para_list ::= other_para_list NK_COMMA star_func_para */ -1, /* (465) star_func_para ::= expr_or_subquery */ -3, /* (466) star_func_para ::= table_name NK_DOT NK_STAR */ -4, /* (467) case_when_expression ::= CASE when_then_list case_when_else_opt END */ -5, /* (468) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -1, /* (469) when_then_list ::= when_then_expr */ -2, /* (470) when_then_list ::= when_then_list when_then_expr */ -4, /* (471) when_then_expr ::= WHEN common_expression THEN common_expression */ 0, /* (472) case_when_else_opt ::= */ -2, /* (473) case_when_else_opt ::= ELSE common_expression */ -3, /* (474) predicate ::= expr_or_subquery compare_op expr_or_subquery */ -5, /* (475) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -6, /* (476) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -3, /* (477) predicate ::= expr_or_subquery IS NULL */ -4, /* (478) predicate ::= expr_or_subquery IS NOT NULL */ -3, /* (479) predicate ::= expr_or_subquery in_op in_predicate_value */ -1, /* (480) compare_op ::= NK_LT */ -1, /* (481) compare_op ::= NK_GT */ -1, /* (482) compare_op ::= NK_LE */ -1, /* (483) compare_op ::= NK_GE */ -1, /* (484) compare_op ::= NK_NE */ -1, /* (485) compare_op ::= NK_EQ */ -1, /* (486) compare_op ::= LIKE */ -2, /* (487) compare_op ::= NOT LIKE */ -1, /* (488) compare_op ::= MATCH */ -1, /* (489) compare_op ::= NMATCH */ -1, /* (490) compare_op ::= CONTAINS */ -1, /* (491) in_op ::= IN */ -2, /* (492) in_op ::= NOT IN */ -3, /* (493) in_predicate_value ::= NK_LP literal_list NK_RP */ -1, /* (494) boolean_value_expression ::= boolean_primary */ -2, /* (495) boolean_value_expression ::= NOT boolean_primary */ -3, /* (496) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -3, /* (497) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -1, /* (498) boolean_primary ::= predicate */ -3, /* (499) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ -1, /* (500) common_expression ::= expr_or_subquery */ -1, /* (501) common_expression ::= boolean_value_expression */ 0, /* (502) from_clause_opt ::= */ -2, /* (503) from_clause_opt ::= FROM table_reference_list */ -1, /* (504) table_reference_list ::= table_reference */ -3, /* (505) table_reference_list ::= table_reference_list NK_COMMA table_reference */ -1, /* (506) table_reference ::= table_primary */ -1, /* (507) table_reference ::= joined_table */ -2, /* (508) table_primary ::= table_name alias_opt */ -4, /* (509) table_primary ::= db_name NK_DOT table_name alias_opt */ -2, /* (510) table_primary ::= subquery alias_opt */ -1, /* (511) table_primary ::= parenthesized_joined_table */ 0, /* (512) alias_opt ::= */ -1, /* (513) alias_opt ::= table_alias */ -2, /* (514) alias_opt ::= AS table_alias */ -3, /* (515) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ -3, /* (516) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ -6, /* (517) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 0, /* (518) join_type ::= */ -1, /* (519) join_type ::= INNER */ -13, /* (520) query_specification ::= SELECT hint_list 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 */ -3, /* (521) hint_opt ::= NO_BATCH_SCAN NK_LP NK_RP */ -3, /* (522) hint_opt ::= BATCH_SCAN NK_LP NK_RP */ 0, /* (523) hint_opt_list ::= */ -1, /* (524) hint_opt_list ::= hint_opt */ -2, /* (525) hint_opt_list ::= hint_opt_list hint_opt */ 0, /* (526) hint_list ::= */ -3, /* (527) hint_list ::= NK_HINT_BEGIN hint_opt_list NK_HINT_END */ 0, /* (528) set_quantifier_opt ::= */ -1, /* (529) set_quantifier_opt ::= DISTINCT */ -1, /* (530) set_quantifier_opt ::= ALL */ -1, /* (531) select_list ::= select_item */ -3, /* (532) select_list ::= select_list NK_COMMA select_item */ -1, /* (533) select_item ::= NK_STAR */ -1, /* (534) select_item ::= common_expression */ -2, /* (535) select_item ::= common_expression column_alias */ -3, /* (536) select_item ::= common_expression AS column_alias */ -3, /* (537) select_item ::= table_name NK_DOT NK_STAR */ 0, /* (538) where_clause_opt ::= */ -2, /* (539) where_clause_opt ::= WHERE search_condition */ 0, /* (540) partition_by_clause_opt ::= */ -3, /* (541) partition_by_clause_opt ::= PARTITION BY partition_list */ -1, /* (542) partition_list ::= partition_item */ -3, /* (543) partition_list ::= partition_list NK_COMMA partition_item */ -1, /* (544) partition_item ::= expr_or_subquery */ -2, /* (545) partition_item ::= expr_or_subquery column_alias */ -3, /* (546) partition_item ::= expr_or_subquery AS column_alias */ 0, /* (547) twindow_clause_opt ::= */ -6, /* (548) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -4, /* (549) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -6, /* (550) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -8, /* (551) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -7, /* (552) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 0, /* (553) sliding_opt ::= */ -4, /* (554) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ 0, /* (555) fill_opt ::= */ -4, /* (556) fill_opt ::= FILL NK_LP fill_mode NK_RP */ -6, /* (557) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -6, /* (558) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -1, /* (559) fill_mode ::= NONE */ -1, /* (560) fill_mode ::= PREV */ -1, /* (561) fill_mode ::= NULL */ -1, /* (562) fill_mode ::= NULL_F */ -1, /* (563) fill_mode ::= LINEAR */ -1, /* (564) fill_mode ::= NEXT */ 0, /* (565) group_by_clause_opt ::= */ -3, /* (566) group_by_clause_opt ::= GROUP BY group_by_list */ -1, /* (567) group_by_list ::= expr_or_subquery */ -3, /* (568) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 0, /* (569) having_clause_opt ::= */ -2, /* (570) having_clause_opt ::= HAVING search_condition */ 0, /* (571) range_opt ::= */ -6, /* (572) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -4, /* (573) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 0, /* (574) every_opt ::= */ -4, /* (575) every_opt ::= EVERY NK_LP duration_literal NK_RP */ -4, /* (576) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -1, /* (577) query_simple ::= query_specification */ -1, /* (578) query_simple ::= union_query_expression */ -4, /* (579) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -3, /* (580) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -1, /* (581) query_simple_or_subquery ::= query_simple */ -1, /* (582) query_simple_or_subquery ::= subquery */ -1, /* (583) query_or_subquery ::= query_expression */ -1, /* (584) query_or_subquery ::= subquery */ 0, /* (585) order_by_clause_opt ::= */ -3, /* (586) order_by_clause_opt ::= ORDER BY sort_specification_list */ 0, /* (587) slimit_clause_opt ::= */ -2, /* (588) slimit_clause_opt ::= SLIMIT NK_INTEGER */ -4, /* (589) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ -4, /* (590) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 0, /* (591) limit_clause_opt ::= */ -2, /* (592) limit_clause_opt ::= LIMIT NK_INTEGER */ -4, /* (593) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ -4, /* (594) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ -3, /* (595) subquery ::= NK_LP query_expression NK_RP */ -3, /* (596) subquery ::= NK_LP subquery NK_RP */ -1, /* (597) search_condition ::= common_expression */ -1, /* (598) sort_specification_list ::= sort_specification */ -3, /* (599) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ -3, /* (600) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 0, /* (601) ordering_specification_opt ::= */ -1, /* (602) ordering_specification_opt ::= ASC */ -1, /* (603) ordering_specification_opt ::= DESC */ 0, /* (604) null_ordering_opt ::= */ -2, /* (605) null_ordering_opt ::= NULLS FIRST */ -2, /* (606) 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 = yyRuleInfoNRhs[yyruleno]; if( yysize ){ fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", yyTracePrompt, yyruleno, yyRuleName[yyruleno], yyrulenoyytos - 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,343,&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,344,&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,343,&yymsp[-2].minor); { } yy_destructor(yypParser,345,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,346,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,344,&yymsp[-1].minor); { } yy_destructor(yypParser,346,&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,345,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy889, &yymsp[-1].minor.yy0, yymsp[0].minor.yy847); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, 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.yy889, 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.yy889, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 28: /* cmd ::= DROP USER user_name */ { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy889); } break; case 29: /* sysinfo_opt ::= */ { yymsp[1].minor.yy847 = 1; } break; case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ { yymsp[-1].minor.yy847 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; case 31: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ { pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy701, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy889, yymsp[-2].minor.yy28); } break; case 32: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy701, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy889, yymsp[-2].minor.yy28); } break; case 33: /* privileges ::= ALL */ { yymsp[0].minor.yy701 = PRIVILEGE_TYPE_ALL; } break; case 34: /* privileges ::= priv_type_list */ case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36); { yylhsminor.yy701 = yymsp[0].minor.yy701; } yymsp[0].minor.yy701 = yylhsminor.yy701; break; case 35: /* privileges ::= SUBSCRIBE */ { yymsp[0].minor.yy701 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ { yylhsminor.yy701 = yymsp[-2].minor.yy701 | yymsp[0].minor.yy701; } yymsp[-2].minor.yy701 = yylhsminor.yy701; break; case 38: /* priv_type ::= READ */ { yymsp[0].minor.yy701 = PRIVILEGE_TYPE_READ; } break; case 39: /* priv_type ::= WRITE */ { yymsp[0].minor.yy701 = PRIVILEGE_TYPE_WRITE; } break; case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ { yylhsminor.yy833.first = yymsp[-2].minor.yy0; yylhsminor.yy833.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy833 = yylhsminor.yy833; break; case 41: /* priv_level ::= db_name NK_DOT NK_STAR */ { yylhsminor.yy833.first = yymsp[-2].minor.yy889; yylhsminor.yy833.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy833 = yylhsminor.yy833; break; case 42: /* priv_level ::= db_name NK_DOT table_name */ { yylhsminor.yy833.first = yymsp[-2].minor.yy889; yylhsminor.yy833.second = yymsp[0].minor.yy889; } yymsp[-2].minor.yy833 = yylhsminor.yy833; break; case 43: /* priv_level ::= topic_name */ { yylhsminor.yy833.first = yymsp[0].minor.yy889; yylhsminor.yy833.second = nil_token; } yymsp[0].minor.yy833 = yylhsminor.yy833; break; case 44: /* with_opt ::= */ case 144: /* start_opt ::= */ yytestcase(yyruleno==144); case 148: /* end_opt ::= */ yytestcase(yyruleno==148); case 276: /* like_pattern_opt ::= */ yytestcase(yyruleno==276); case 354: /* subtable_opt ::= */ yytestcase(yyruleno==354); case 472: /* case_when_else_opt ::= */ yytestcase(yyruleno==472); case 502: /* from_clause_opt ::= */ yytestcase(yyruleno==502); case 538: /* where_clause_opt ::= */ yytestcase(yyruleno==538); case 547: /* twindow_clause_opt ::= */ yytestcase(yyruleno==547); case 553: /* sliding_opt ::= */ yytestcase(yyruleno==553); case 555: /* fill_opt ::= */ yytestcase(yyruleno==555); case 569: /* having_clause_opt ::= */ yytestcase(yyruleno==569); case 571: /* range_opt ::= */ yytestcase(yyruleno==571); case 574: /* every_opt ::= */ yytestcase(yyruleno==574); case 587: /* slimit_clause_opt ::= */ yytestcase(yyruleno==587); case 591: /* limit_clause_opt ::= */ yytestcase(yyruleno==591); { yymsp[1].minor.yy28 = NULL; } break; case 45: /* with_opt ::= WITH search_condition */ case 503: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==503); case 539: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==539); case 570: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==570); { yymsp[-1].minor.yy28 = yymsp[0].minor.yy28; } break; case 46: /* cmd ::= CREATE DNODE dnode_endpoint */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy889, NULL); } break; case 47: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0); } break; case 48: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy793, false); } break; case 49: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy793, false); } break; case 50: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy793); } break; case 51: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy889, false, yymsp[0].minor.yy793); } break; case 52: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } break; case 53: /* 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 54: /* cmd ::= ALTER ALL DNODES NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } break; case 55: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 56: /* cmd ::= RESTORE DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } break; case 57: /* dnode_endpoint ::= NK_STRING */ case 58: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==58); case 59: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==59); case 300: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==300); case 301: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==301); case 302: /* sma_func_name ::= LAST */ yytestcase(yyruleno==302); case 303: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==303); case 398: /* db_name ::= NK_ID */ yytestcase(yyruleno==398); case 399: /* table_name ::= NK_ID */ yytestcase(yyruleno==399); case 400: /* column_name ::= NK_ID */ yytestcase(yyruleno==400); case 401: /* function_name ::= NK_ID */ yytestcase(yyruleno==401); case 402: /* table_alias ::= NK_ID */ yytestcase(yyruleno==402); case 403: /* column_alias ::= NK_ID */ yytestcase(yyruleno==403); case 404: /* user_name ::= NK_ID */ yytestcase(yyruleno==404); case 405: /* topic_name ::= NK_ID */ yytestcase(yyruleno==405); case 406: /* stream_name ::= NK_ID */ yytestcase(yyruleno==406); case 407: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==407); case 408: /* index_name ::= NK_ID */ yytestcase(yyruleno==408); case 448: /* noarg_func ::= NOW */ yytestcase(yyruleno==448); case 449: /* noarg_func ::= TODAY */ yytestcase(yyruleno==449); case 450: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==450); case 451: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==451); case 452: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==452); case 453: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==453); case 454: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==454); case 455: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==455); case 456: /* noarg_func ::= USER */ yytestcase(yyruleno==456); case 457: /* star_func ::= COUNT */ yytestcase(yyruleno==457); case 458: /* star_func ::= FIRST */ yytestcase(yyruleno==458); case 459: /* star_func ::= LAST */ yytestcase(yyruleno==459); case 460: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==460); { yylhsminor.yy889 = yymsp[0].minor.yy0; } yymsp[0].minor.yy889 = yylhsminor.yy889; break; case 60: /* force_opt ::= */ case 84: /* not_exists_opt ::= */ yytestcase(yyruleno==84); case 86: /* exists_opt ::= */ yytestcase(yyruleno==86); case 321: /* analyze_opt ::= */ yytestcase(yyruleno==321); case 328: /* agg_func_opt ::= */ yytestcase(yyruleno==328); case 334: /* or_replace_opt ::= */ yytestcase(yyruleno==334); case 356: /* ignore_opt ::= */ yytestcase(yyruleno==356); case 528: /* set_quantifier_opt ::= */ yytestcase(yyruleno==528); { yymsp[1].minor.yy793 = false; } break; case 61: /* force_opt ::= FORCE */ case 62: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==62); case 322: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==322); case 329: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==329); case 529: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==529); { yymsp[0].minor.yy793 = true; } break; case 63: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 64: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 65: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 66: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 67: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 68: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 69: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 70: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 71: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 72: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 73: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 74: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 75: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } break; case 76: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy793, &yymsp[-1].minor.yy889, yymsp[0].minor.yy28); } break; case 77: /* cmd ::= DROP DATABASE exists_opt db_name */ { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } break; case 78: /* cmd ::= USE db_name */ { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy889); } break; case 79: /* cmd ::= ALTER DATABASE db_name alter_db_options */ { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy28); } break; case 80: /* cmd ::= FLUSH DATABASE db_name */ { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy889); } break; case 81: /* cmd ::= TRIM DATABASE db_name speed_opt */ { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy956); } break; case 82: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy889, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } break; case 83: /* not_exists_opt ::= IF NOT EXISTS */ { yymsp[-2].minor.yy793 = true; } break; case 85: /* exists_opt ::= IF EXISTS */ case 335: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==335); case 357: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==357); { yymsp[-1].minor.yy793 = true; } break; case 87: /* db_options ::= */ { yymsp[1].minor.yy28 = createDefaultDatabaseOptions(pCxt); } break; case 88: /* db_options ::= db_options BUFFER NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 89: /* db_options ::= db_options CACHEMODEL NK_STRING */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 90: /* db_options ::= db_options CACHESIZE NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 91: /* db_options ::= db_options COMP NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_COMP, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 92: /* db_options ::= db_options DURATION NK_INTEGER */ case 93: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==93); { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 94: /* db_options ::= db_options MAXROWS NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 95: /* db_options ::= db_options MINROWS NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 96: /* db_options ::= db_options KEEP integer_list */ case 97: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==97); { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_KEEP, yymsp[0].minor.yy236); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 98: /* db_options ::= db_options PAGES NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 99: /* db_options ::= db_options PAGESIZE NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 100: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 101: /* db_options ::= db_options PRECISION NK_STRING */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 102: /* db_options ::= db_options REPLICA NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 103: /* db_options ::= db_options VGROUPS NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 104: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 105: /* db_options ::= db_options RETENTIONS retention_list */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_RETENTIONS, yymsp[0].minor.yy236); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 106: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 107: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 108: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 109: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 110: /* 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.yy28 = setDatabaseOption(pCxt, yymsp[-3].minor.yy28, DB_OPTION_WAL_RETENTION_PERIOD, &t); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 111: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 112: /* 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.yy28 = setDatabaseOption(pCxt, yymsp[-3].minor.yy28, DB_OPTION_WAL_RETENTION_SIZE, &t); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 113: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 114: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 115: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 116: /* db_options ::= db_options TABLE_PREFIX signed */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy28); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 117: /* db_options ::= db_options TABLE_SUFFIX signed */ { yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy28); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 118: /* alter_db_options ::= alter_db_option */ { yylhsminor.yy28 = createAlterDatabaseOptions(pCxt); yylhsminor.yy28 = setAlterDatabaseOption(pCxt, yylhsminor.yy28, &yymsp[0].minor.yy481); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 119: /* alter_db_options ::= alter_db_options alter_db_option */ { yylhsminor.yy28 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy28, &yymsp[0].minor.yy481); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 120: /* alter_db_option ::= BUFFER NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 121: /* alter_db_option ::= CACHEMODEL NK_STRING */ { yymsp[-1].minor.yy481.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 122: /* alter_db_option ::= CACHESIZE NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 123: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 124: /* alter_db_option ::= KEEP integer_list */ case 125: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==125); { yymsp[-1].minor.yy481.type = DB_OPTION_KEEP; yymsp[-1].minor.yy481.pList = yymsp[0].minor.yy236; } break; case 126: /* alter_db_option ::= PAGES NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_PAGES; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 127: /* alter_db_option ::= REPLICA NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 128: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_WAL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 129: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 130: /* alter_db_option ::= MINROWS NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 131: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 132: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy481.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy481.val = t; } break; case 133: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ { yymsp[-1].minor.yy481.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 134: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy481.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy481.val = t; } break; case 135: /* integer_list ::= NK_INTEGER */ { yylhsminor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy236 = yylhsminor.yy236; break; case 136: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 367: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==367); { yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy236 = yylhsminor.yy236; break; case 137: /* variable_list ::= NK_VARIABLE */ { yylhsminor.yy236 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy236 = yylhsminor.yy236; break; case 138: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy236 = yylhsminor.yy236; break; case 139: /* retention_list ::= retention */ case 169: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==169); case 172: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==172); case 179: /* column_def_list ::= column_def */ yytestcase(yyruleno==179); case 223: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==223); case 228: /* col_name_list ::= col_name */ yytestcase(yyruleno==228); case 282: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==282); case 296: /* func_list ::= func */ yytestcase(yyruleno==296); case 396: /* literal_list ::= signed_literal */ yytestcase(yyruleno==396); case 463: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==463); case 469: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==469); case 524: /* hint_opt_list ::= hint_opt */ yytestcase(yyruleno==524); case 531: /* select_list ::= select_item */ yytestcase(yyruleno==531); case 542: /* partition_list ::= partition_item */ yytestcase(yyruleno==542); case 598: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==598); { yylhsminor.yy236 = createNodeList(pCxt, yymsp[0].minor.yy28); } yymsp[0].minor.yy236 = yylhsminor.yy236; break; case 140: /* retention_list ::= retention_list NK_COMMA retention */ case 173: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==173); case 180: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==180); case 224: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==224); case 229: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==229); case 283: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==283); case 297: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==297); case 397: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==397); case 464: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==464); case 532: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==532); case 543: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==543); case 599: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==599); { yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); } yymsp[-2].minor.yy236 = yylhsminor.yy236; break; case 141: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ { yylhsminor.yy28 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 142: /* speed_opt ::= */ case 330: /* bufsize_opt ::= */ yytestcase(yyruleno==330); { yymsp[1].minor.yy956 = 0; } break; case 143: /* speed_opt ::= MAX_SPEED NK_INTEGER */ case 331: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==331); { yymsp[-1].minor.yy956 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 145: /* start_opt ::= START WITH NK_INTEGER */ case 149: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==149); { yymsp[-2].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 146: /* start_opt ::= START WITH NK_STRING */ case 150: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==150); { yymsp[-2].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 147: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 151: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==151); { yymsp[-3].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 152: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 154: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==154); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy793, yymsp[-5].minor.yy28, yymsp[-3].minor.yy236, yymsp[-1].minor.yy236, yymsp[0].minor.yy28); } break; case 153: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy236); } break; case 155: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy236); } break; case 156: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); } break; case 157: /* cmd ::= ALTER TABLE alter_table_clause */ case 369: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==369); case 370: /* cmd ::= insert_query */ yytestcase(yyruleno==370); { pCxt->pRootNode = yymsp[0].minor.yy28; } break; case 158: /* cmd ::= ALTER STABLE alter_table_clause */ { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy28); } break; case 159: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy28 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 160: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 161: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy28 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy28, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy889); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 162: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 163: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy28 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 164: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 165: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy28 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy28, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy889); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 166: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 167: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy28 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 168: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { yylhsminor.yy28 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy28, &yymsp[-2].minor.yy889, yymsp[0].minor.yy28); } yymsp[-5].minor.yy28 = yylhsminor.yy28; break; case 170: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 470: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==470); case 525: /* hint_opt_list ::= hint_opt_list hint_opt */ yytestcase(yyruleno==525); { yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-1].minor.yy236, yymsp[0].minor.yy28); } yymsp[-1].minor.yy236 = yylhsminor.yy236; break; case 171: /* 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.yy28 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy793, yymsp[-8].minor.yy28, yymsp[-6].minor.yy28, yymsp[-5].minor.yy236, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); } yymsp[-9].minor.yy28 = yylhsminor.yy28; break; case 174: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy28 = createDropTableClause(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 175: /* specific_cols_opt ::= */ case 206: /* tags_def_opt ::= */ yytestcase(yyruleno==206); case 281: /* tag_list_opt ::= */ yytestcase(yyruleno==281); case 340: /* col_list_opt ::= */ yytestcase(yyruleno==340); case 342: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==342); case 523: /* hint_opt_list ::= */ yytestcase(yyruleno==523); case 526: /* hint_list ::= */ yytestcase(yyruleno==526); case 540: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==540); case 565: /* group_by_clause_opt ::= */ yytestcase(yyruleno==565); case 585: /* order_by_clause_opt ::= */ yytestcase(yyruleno==585); { yymsp[1].minor.yy236 = NULL; } break; case 176: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 341: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==341); case 527: /* hint_list ::= NK_HINT_BEGIN hint_opt_list NK_HINT_END */ yytestcase(yyruleno==527); { yymsp[-2].minor.yy236 = yymsp[-1].minor.yy236; } break; case 177: /* full_table_name ::= table_name */ { yylhsminor.yy28 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy889, NULL); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 178: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy28 = createRealTableNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889, NULL); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 181: /* column_def ::= column_name type_name */ { yylhsminor.yy28 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32, NULL); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 182: /* type_name ::= BOOL */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 183: /* type_name ::= TINYINT */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 184: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 185: /* type_name ::= INT */ case 186: /* type_name ::= INTEGER */ yytestcase(yyruleno==186); { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_INT); } break; case 187: /* type_name ::= BIGINT */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 188: /* type_name ::= FLOAT */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 189: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 190: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 191: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 192: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 193: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 194: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 195: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 196: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 197: /* type_name ::= JSON */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 198: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 199: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 200: /* type_name ::= BLOB */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 201: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 202: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } break; case 203: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 204: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 205: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 207: /* tags_def_opt ::= tags_def */ case 343: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==343); case 462: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==462); { yylhsminor.yy236 = yymsp[0].minor.yy236; } yymsp[0].minor.yy236 = yylhsminor.yy236; break; case 208: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ case 344: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==344); { yymsp[-3].minor.yy236 = yymsp[-1].minor.yy236; } break; case 209: /* table_options ::= */ { yymsp[1].minor.yy28 = createDefaultTableOptions(pCxt); } break; case 210: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 211: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy236); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 212: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy236); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 213: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy28 = setTableOption(pCxt, yymsp[-4].minor.yy28, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy236); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 214: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 215: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy28 = setTableOption(pCxt, yymsp[-4].minor.yy28, TABLE_OPTION_SMA, yymsp[-1].minor.yy236); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 216: /* table_options ::= table_options DELETE_MARK duration_list */ { yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy236); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 217: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy28 = createAlterTableOptions(pCxt); yylhsminor.yy28 = setTableOption(pCxt, yylhsminor.yy28, yymsp[0].minor.yy481.type, &yymsp[0].minor.yy481.val); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 218: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy28 = setTableOption(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy481.type, &yymsp[0].minor.yy481.val); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 219: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy481.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 220: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy481.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } break; case 221: /* duration_list ::= duration_literal */ case 426: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==426); { yylhsminor.yy236 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } yymsp[0].minor.yy236 = yylhsminor.yy236; break; case 222: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 427: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==427); { yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } yymsp[-2].minor.yy236 = yylhsminor.yy236; break; case 225: /* rollup_func_name ::= function_name */ { yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[0].minor.yy889, NULL); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 226: /* rollup_func_name ::= FIRST */ case 227: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==227); case 285: /* tag_item ::= QTAGS */ yytestcase(yyruleno==285); { yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 230: /* col_name ::= column_name */ case 286: /* tag_item ::= column_name */ yytestcase(yyruleno==286); { yylhsminor.yy28 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy889); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 231: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; case 232: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; case 233: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } break; case 234: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; case 235: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, OP_TYPE_LIKE); } break; case 236: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, OP_TYPE_LIKE); } break; case 237: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy28, NULL, OP_TYPE_LIKE); } break; case 238: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; case 239: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; case 240: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 241: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy28, yymsp[-1].minor.yy28, OP_TYPE_EQUAL); } break; case 242: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), OP_TYPE_EQUAL); } break; case 243: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; case 244: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; case 245: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; case 246: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; case 247: /* cmd ::= SHOW LICENCES */ case 248: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==248); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; case 249: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy889); } break; case 250: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy28); } break; case 251: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy28); } break; case 252: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; case 253: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; case 254: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; case 255: /* cmd ::= SHOW VARIABLES */ case 256: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==256); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; case 257: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; case 258: /* 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.yy28); } break; case 259: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; case 260: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; case 261: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; case 262: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 263: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy28); } break; case 264: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; case 265: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; case 266: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy28, yymsp[-1].minor.yy28, OP_TYPE_EQUAL); } break; case 267: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), OP_TYPE_EQUAL); } break; case 268: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28, yymsp[-3].minor.yy236); } break; case 269: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), yymsp[-4].minor.yy236); } break; case 270: /* cmd ::= SHOW VNODES NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; case 271: /* cmd ::= SHOW VNODES NK_STRING */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, createValueNode(pCxt, TSDB_DATA_TYPE_VARCHAR, &yymsp[0].minor.yy0)); } break; case 272: /* cmd ::= SHOW db_name_cond_opt ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy28, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; case 273: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; case 274: /* db_name_cond_opt ::= */ case 279: /* from_db_opt ::= */ yytestcase(yyruleno==279); { yymsp[1].minor.yy28 = createDefaultDatabaseCondValue(pCxt); } break; case 275: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy28 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy889); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 277: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 278: /* table_name_cond ::= table_name */ { yylhsminor.yy28 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 280: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy28 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889); } break; case 284: /* tag_item ::= TBNAME */ { yylhsminor.yy28 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 287: /* tag_item ::= column_name column_alias */ { yylhsminor.yy28 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy889), &yymsp[0].minor.yy889); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 288: /* tag_item ::= column_name AS column_alias */ { yylhsminor.yy28 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy889), &yymsp[0].minor.yy889); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 289: /* 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.yy793, yymsp[-3].minor.yy28, yymsp[-1].minor.yy28, NULL, yymsp[0].minor.yy28); } break; case 290: /* cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy793, yymsp[-5].minor.yy28, yymsp[-3].minor.yy28, yymsp[-1].minor.yy236, NULL); } break; case 291: /* cmd ::= DROP INDEX exists_opt full_index_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); } break; case 292: /* full_index_name ::= index_name */ { yylhsminor.yy28 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy889); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 293: /* full_index_name ::= db_name NK_DOT index_name */ { yylhsminor.yy28 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 294: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-9].minor.yy28 = createIndexOption(pCxt, yymsp[-7].minor.yy236, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } break; case 295: /* 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.yy28 = createIndexOption(pCxt, yymsp[-9].minor.yy236, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } break; case 298: /* func ::= sma_func_name NK_LP expression_list NK_RP */ { yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[-3].minor.yy889, yymsp[-1].minor.yy236); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 299: /* sma_func_name ::= function_name */ case 513: /* alias_opt ::= table_alias */ yytestcase(yyruleno==513); { yylhsminor.yy889 = yymsp[0].minor.yy889; } yymsp[0].minor.yy889 = yylhsminor.yy889; break; case 304: /* sma_stream_opt ::= */ case 345: /* stream_options ::= */ yytestcase(yyruleno==345); { yymsp[1].minor.yy28 = createStreamOptions(pCxt); } break; case 305: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy28)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 306: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy28)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 307: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy28)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 308: /* with_meta ::= AS */ { yymsp[0].minor.yy956 = 0; } break; case 309: /* with_meta ::= WITH META AS */ { yymsp[-2].minor.yy956 = 1; } break; case 310: /* with_meta ::= ONLY META AS */ { yymsp[-2].minor.yy956 = 2; } break; case 311: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy793, &yymsp[-2].minor.yy889, yymsp[0].minor.yy28); } break; case 312: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy793, &yymsp[-3].minor.yy889, &yymsp[0].minor.yy889, yymsp[-2].minor.yy956); } break; case 313: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy793, &yymsp[-4].minor.yy889, yymsp[-1].minor.yy28, yymsp[-3].minor.yy956, yymsp[0].minor.yy28); } break; case 314: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } break; case 315: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy793, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889); } break; case 316: /* cmd ::= DESC full_table_name */ case 317: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==317); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy28); } break; case 318: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 319: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 320: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==320); { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy793, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } break; case 323: /* explain_options ::= */ { yymsp[1].minor.yy28 = createDefaultExplainOptions(pCxt); } break; case 324: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy28 = setExplainVerbose(pCxt, yymsp[-2].minor.yy28, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 325: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy28 = setExplainRatio(pCxt, yymsp[-2].minor.yy28, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 326: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ { pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy793, yymsp[-9].minor.yy793, &yymsp[-6].minor.yy889, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy32, yymsp[-1].minor.yy956, &yymsp[0].minor.yy889, yymsp[-10].minor.yy793); } break; case 327: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } break; case 332: /* language_opt ::= */ { yymsp[1].minor.yy889 = nil_token; } break; case 333: /* language_opt ::= LANGUAGE NK_STRING */ { yymsp[-1].minor.yy889 = yymsp[0].minor.yy0; } break; case 336: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ { pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy793, &yymsp[-8].minor.yy889, yymsp[-5].minor.yy28, yymsp[-7].minor.yy28, yymsp[-3].minor.yy236, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, yymsp[-4].minor.yy236); } break; case 337: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } break; case 338: /* cmd ::= PAUSE STREAM exists_opt stream_name */ { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } break; case 339: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy793, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } break; case 346: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 347: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==347); { yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 348: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 349: /* stream_options ::= stream_options WATERMARK duration_literal */ { yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 350: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 351: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 352: /* stream_options ::= stream_options DELETE_MARK duration_literal */ { yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 353: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 355: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ case 554: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==554); case 575: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==575); { yymsp[-3].minor.yy28 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy28); } break; case 358: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; case 359: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; case 360: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; case 361: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; case 362: /* cmd ::= BALANCE VGROUP LEADER */ { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); } break; case 363: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 364: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy236); } break; case 365: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 366: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 368: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } break; case 371: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { yymsp[-6].minor.yy28 = createInsertStmt(pCxt, yymsp[-4].minor.yy28, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); } break; case 372: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ { yymsp[-3].minor.yy28 = createInsertStmt(pCxt, yymsp[-1].minor.yy28, NULL, yymsp[0].minor.yy28); } break; case 373: /* literal ::= NK_INTEGER */ { yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 374: /* literal ::= NK_FLOAT */ { yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 375: /* literal ::= NK_STRING */ { yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 376: /* literal ::= NK_BOOL */ { yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 377: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 378: /* literal ::= duration_literal */ case 388: /* signed_literal ::= signed */ yytestcase(yyruleno==388); case 409: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==409); case 410: /* expression ::= literal */ yytestcase(yyruleno==410); case 411: /* expression ::= pseudo_column */ yytestcase(yyruleno==411); case 412: /* expression ::= column_reference */ yytestcase(yyruleno==412); case 413: /* expression ::= function_expression */ yytestcase(yyruleno==413); case 414: /* expression ::= case_when_expression */ yytestcase(yyruleno==414); case 445: /* function_expression ::= literal_func */ yytestcase(yyruleno==445); case 494: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==494); case 498: /* boolean_primary ::= predicate */ yytestcase(yyruleno==498); case 500: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==500); case 501: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==501); case 504: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==504); case 506: /* table_reference ::= table_primary */ yytestcase(yyruleno==506); case 507: /* table_reference ::= joined_table */ yytestcase(yyruleno==507); case 511: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==511); case 577: /* query_simple ::= query_specification */ yytestcase(yyruleno==577); case 578: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==578); case 581: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==581); case 583: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==583); { yylhsminor.yy28 = yymsp[0].minor.yy28; } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 379: /* literal ::= NULL */ { yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 380: /* literal ::= NK_QUESTION */ { yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 381: /* duration_literal ::= NK_VARIABLE */ { yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 382: /* signed ::= NK_INTEGER */ { yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 383: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; case 384: /* 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.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 385: /* signed ::= NK_FLOAT */ { yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 386: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 387: /* 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.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 389: /* signed_literal ::= NK_STRING */ { yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 390: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 391: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 392: /* signed_literal ::= duration_literal */ case 394: /* signed_literal ::= literal_func */ yytestcase(yyruleno==394); case 465: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==465); case 534: /* select_item ::= common_expression */ yytestcase(yyruleno==534); case 544: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==544); case 582: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==582); case 584: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==584); case 597: /* search_condition ::= common_expression */ yytestcase(yyruleno==597); { yylhsminor.yy28 = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 393: /* signed_literal ::= NULL */ { yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 395: /* signed_literal ::= NK_QUESTION */ { yylhsminor.yy28 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 415: /* expression ::= NK_LP expression NK_RP */ case 499: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==499); case 596: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==596); { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 416: /* expression ::= NK_PLUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 417: /* expression ::= NK_MINUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy28), NULL)); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 418: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 419: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 420: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 421: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 422: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 423: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 424: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 425: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 428: /* column_reference ::= column_name */ { yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy889, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy889)); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 429: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889, createColumnNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889)); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 430: /* pseudo_column ::= ROWTS */ case 431: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==431); case 433: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==433); case 434: /* pseudo_column ::= QEND */ yytestcase(yyruleno==434); case 435: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==435); case 436: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==436); case 437: /* pseudo_column ::= WEND */ yytestcase(yyruleno==437); case 438: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==438); case 439: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==439); case 440: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==440); case 441: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==441); case 447: /* literal_func ::= NOW */ yytestcase(yyruleno==447); { yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 432: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy889)))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 442: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 443: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==443); { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy889, yymsp[-1].minor.yy236)); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 444: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy32)); } yymsp[-5].minor.yy28 = yylhsminor.yy28; break; case 446: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy889, NULL)); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 461: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy236 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy236 = yylhsminor.yy236; break; case 466: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 537: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==537); { yylhsminor.yy28 = createColumnNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 467: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy236, yymsp[-1].minor.yy28)); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 468: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-2].minor.yy236, yymsp[-1].minor.yy28)); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 471: /* when_then_expr ::= WHEN common_expression THEN common_expression */ { yymsp[-3].minor.yy28 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } break; case 473: /* case_when_else_opt ::= ELSE common_expression */ { yymsp[-1].minor.yy28 = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); } break; case 474: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 479: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==479); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy896, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 475: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy28), releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-4].minor.yy28 = yylhsminor.yy28; break; case 476: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-5].minor.yy28 = yylhsminor.yy28; break; case 477: /* predicate ::= expr_or_subquery IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), NULL)); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 478: /* predicate ::= expr_or_subquery IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL)); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 480: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy896 = OP_TYPE_LOWER_THAN; } break; case 481: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy896 = OP_TYPE_GREATER_THAN; } break; case 482: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy896 = OP_TYPE_LOWER_EQUAL; } break; case 483: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy896 = OP_TYPE_GREATER_EQUAL; } break; case 484: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy896 = OP_TYPE_NOT_EQUAL; } break; case 485: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy896 = OP_TYPE_EQUAL; } break; case 486: /* compare_op ::= LIKE */ { yymsp[0].minor.yy896 = OP_TYPE_LIKE; } break; case 487: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy896 = OP_TYPE_NOT_LIKE; } break; case 488: /* compare_op ::= MATCH */ { yymsp[0].minor.yy896 = OP_TYPE_MATCH; } break; case 489: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy896 = OP_TYPE_NMATCH; } break; case 490: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy896 = OP_TYPE_JSON_CONTAINS; } break; case 491: /* in_op ::= IN */ { yymsp[0].minor.yy896 = OP_TYPE_IN; } break; case 492: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy896 = OP_TYPE_NOT_IN; } break; case 493: /* in_predicate_value ::= NK_LP literal_list NK_RP */ { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 495: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy28), NULL)); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 496: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 497: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 505: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy28 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, NULL); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 508: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy28 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 509: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy28 = createRealTableNode(pCxt, &yymsp[-3].minor.yy889, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 510: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy28 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28), &yymsp[0].minor.yy889); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 512: /* alias_opt ::= */ { yymsp[1].minor.yy889 = nil_token; } break; case 514: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy889 = yymsp[0].minor.yy889; } break; case 515: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 516: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==516); { yymsp[-2].minor.yy28 = yymsp[-1].minor.yy28; } break; case 517: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy28 = createJoinTableNode(pCxt, yymsp[-4].minor.yy152, yymsp[-5].minor.yy28, yymsp[-2].minor.yy28, yymsp[0].minor.yy28); } yymsp[-5].minor.yy28 = yylhsminor.yy28; break; case 518: /* join_type ::= */ { yymsp[1].minor.yy152 = JOIN_TYPE_INNER; } break; case 519: /* join_type ::= INNER */ { yymsp[0].minor.yy152 = JOIN_TYPE_INNER; } break; case 520: /* query_specification ::= SELECT hint_list 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[-12].minor.yy28 = createSelectStmt(pCxt, yymsp[-10].minor.yy793, yymsp[-9].minor.yy236, yymsp[-8].minor.yy28, yymsp[-11].minor.yy236); yymsp[-12].minor.yy28 = addWhereClause(pCxt, yymsp[-12].minor.yy28, yymsp[-7].minor.yy28); yymsp[-12].minor.yy28 = addPartitionByClause(pCxt, yymsp[-12].minor.yy28, yymsp[-6].minor.yy236); yymsp[-12].minor.yy28 = addWindowClauseClause(pCxt, yymsp[-12].minor.yy28, yymsp[-2].minor.yy28); yymsp[-12].minor.yy28 = addGroupByClause(pCxt, yymsp[-12].minor.yy28, yymsp[-1].minor.yy236); yymsp[-12].minor.yy28 = addHavingClause(pCxt, yymsp[-12].minor.yy28, yymsp[0].minor.yy28); yymsp[-12].minor.yy28 = addRangeClause(pCxt, yymsp[-12].minor.yy28, yymsp[-5].minor.yy28); yymsp[-12].minor.yy28 = addEveryClause(pCxt, yymsp[-12].minor.yy28, yymsp[-4].minor.yy28); yymsp[-12].minor.yy28 = addFillClause(pCxt, yymsp[-12].minor.yy28, yymsp[-3].minor.yy28); } break; case 521: /* hint_opt ::= NO_BATCH_SCAN NK_LP NK_RP */ { yymsp[-2].minor.yy28 = createHintNode(pCxt, HINT_NO_BATCH_SCAN, NULL); } break; case 522: /* hint_opt ::= BATCH_SCAN NK_LP NK_RP */ { yymsp[-2].minor.yy28 = createHintNode(pCxt, HINT_BATCH_SCAN, NULL); } break; case 530: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy793 = false; } break; case 533: /* select_item ::= NK_STAR */ { yylhsminor.yy28 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy28 = yylhsminor.yy28; break; case 535: /* select_item ::= common_expression column_alias */ case 545: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==545); { yylhsminor.yy28 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28), &yymsp[0].minor.yy889); } yymsp[-1].minor.yy28 = yylhsminor.yy28; break; case 536: /* select_item ::= common_expression AS column_alias */ case 546: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==546); { yylhsminor.yy28 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), &yymsp[0].minor.yy889); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 541: /* partition_by_clause_opt ::= PARTITION BY partition_list */ case 566: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==566); case 586: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==586); { yymsp[-2].minor.yy236 = yymsp[0].minor.yy236; } break; case 548: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy28 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } break; case 549: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy28 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } break; case 550: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy28 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } break; case 551: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy28 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } break; case 552: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ { yymsp[-6].minor.yy28 = createEventWindowNode(pCxt, yymsp[-3].minor.yy28, yymsp[0].minor.yy28); } break; case 556: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy28 = createFillNode(pCxt, yymsp[-1].minor.yy322, NULL); } break; case 557: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy28 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); } break; case 558: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy28 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); } break; case 559: /* fill_mode ::= NONE */ { yymsp[0].minor.yy322 = FILL_MODE_NONE; } break; case 560: /* fill_mode ::= PREV */ { yymsp[0].minor.yy322 = FILL_MODE_PREV; } break; case 561: /* fill_mode ::= NULL */ { yymsp[0].minor.yy322 = FILL_MODE_NULL; } break; case 562: /* fill_mode ::= NULL_F */ { yymsp[0].minor.yy322 = FILL_MODE_NULL_F; } break; case 563: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy322 = FILL_MODE_LINEAR; } break; case 564: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy322 = FILL_MODE_NEXT; } break; case 567: /* group_by_list ::= expr_or_subquery */ { yylhsminor.yy236 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[0].minor.yy236 = yylhsminor.yy236; break; case 568: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } yymsp[-2].minor.yy236 = yylhsminor.yy236; break; case 572: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { yymsp[-5].minor.yy28 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } break; case 573: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy28 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } break; case 576: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy28 = addOrderByClause(pCxt, yymsp[-3].minor.yy28, yymsp[-2].minor.yy236); yylhsminor.yy28 = addSlimitClause(pCxt, yylhsminor.yy28, yymsp[-1].minor.yy28); yylhsminor.yy28 = addLimitClause(pCxt, yylhsminor.yy28, yymsp[0].minor.yy28); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 579: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { yylhsminor.yy28 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy28, yymsp[0].minor.yy28); } yymsp[-3].minor.yy28 = yylhsminor.yy28; break; case 580: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { yylhsminor.yy28 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy28, yymsp[0].minor.yy28); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 588: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 592: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==592); { yymsp[-1].minor.yy28 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 589: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 593: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==593); { yymsp[-3].minor.yy28 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; case 590: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 594: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==594); { yymsp[-3].minor.yy28 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; case 595: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy28); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 600: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { yylhsminor.yy28 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), yymsp[-1].minor.yy734, yymsp[0].minor.yy945); } yymsp[-2].minor.yy28 = yylhsminor.yy28; break; case 601: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy734 = ORDER_ASC; } break; case 602: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy734 = ORDER_ASC; } break; case 603: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy734 = ORDER_DESC; } break; case 604: /* null_ordering_opt ::= */ { yymsp[1].minor.yy945 = NULL_ORDER_DEFAULT; } break; case 605: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy945 = NULL_ORDER_FIRST; } break; case 606: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy945 = 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 assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) ); return yyFallback[iToken]; #else (void)iToken; return 0; #endif }