/* This file is automatically generated by Lemon from input grammar ** source file "sql.y". */ /* ** 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: */ /************ 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 **********************************/ /* 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 487 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; EJoinType yy140; SDataType yy310; STokenPair yy347; EOperatorType yy354; SAlterOption yy365; SToken yy371; ENullOrder yy399; int32_t yy416; SNode* yy452; int8_t yy475; bool yy667; EOrder yy690; int64_t yy729; SNodeList* yy812; EFillMode yy844; } 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 798 #define YYNRULE 601 #define YYNRULE_WITH_ACTION 601 #define YYNTOKEN 338 #define YY_MAX_SHIFT 797 #define YY_MIN_SHIFTREDUCE 1178 #define YY_MAX_SHIFTREDUCE 1778 #define YY_ERROR_ACTION 1779 #define YY_ACCEPT_ACTION 1780 #define YY_NO_ACTION 1781 #define YY_MIN_REDUCE 1782 #define YY_MAX_REDUCE 2382 /************* 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 (3033) static const YYACTIONTYPE yy_action[] = { /* 0 */ 443, 2193, 221, 2013, 449, 442, 533, 2154, 1825, 378, /* 10 */ 2082, 666, 48, 46, 1705, 2358, 733, 2011, 2353, 645, /* 20 */ 397, 181, 1554, 41, 40, 2080, 673, 47, 45, 44, /* 30 */ 43, 42, 255, 1635, 2357, 1552, 685, 400, 2354, 2356, /* 40 */ 2211, 2066, 1780, 2082, 1579, 1961, 163, 626, 2211, 344, /* 50 */ 2353, 2161, 379, 702, 626, 390, 685, 2353, 2079, 673, /* 60 */ 2011, 651, 1630, 223, 2353, 2359, 188, 533, 19, 1825, /* 70 */ 2354, 652, 2359, 188, 1236, 1560, 1235, 2354, 652, 650, /* 80 */ 188, 686, 1959, 357, 2354, 652, 1579, 2192, 90, 2228, /* 90 */ 663, 144, 112, 2194, 706, 2196, 2197, 701, 2182, 696, /* 100 */ 794, 135, 644, 15, 185, 367, 2281, 1237, 570, 530, /* 110 */ 393, 2277, 531, 1818, 1954, 412, 48, 46, 1805, 51, /* 120 */ 411, 527, 1554, 190, 397, 655, 1554, 1664, 1370, 525, /* 130 */ 260, 2307, 521, 517, 671, 1552, 685, 1635, 672, 1552, /* 140 */ 1637, 1638, 453, 2061, 1361, 731, 730, 729, 1365, 728, /* 150 */ 1367, 1368, 727, 724, 2184, 1376, 721, 1378, 1379, 718, /* 160 */ 715, 712, 626, 547, 2358, 2353, 1630, 2353, 2161, 62, /* 170 */ 1610, 1620, 19, 94, 66, 1560, 1636, 1639, 2144, 1560, /* 180 */ 2359, 188, 646, 2357, 1665, 2354, 652, 2354, 2355, 202, /* 190 */ 545, 1555, 2075, 1553, 282, 2289, 662, 2358, 136, 661, /* 200 */ 794, 2353, 38, 302, 794, 41, 40, 15, 2193, 47, /* 210 */ 45, 44, 43, 42, 1581, 743, 650, 188, 703, 51, /* 220 */ 611, 2354, 652, 1558, 1559, 1783, 1609, 1612, 1613, 1614, /* 230 */ 1615, 1616, 1617, 1618, 1619, 698, 694, 1628, 1629, 1631, /* 240 */ 1632, 1633, 1634, 2, 1637, 1638, 125, 2211, 12, 124, /* 250 */ 123, 122, 121, 120, 119, 118, 117, 116, 2161, 169, /* 260 */ 702, 1794, 37, 395, 1659, 1660, 1661, 1662, 1663, 1667, /* 270 */ 1668, 1669, 1670, 62, 1610, 1620, 191, 1579, 1560, 125, /* 280 */ 1636, 1639, 124, 123, 122, 121, 120, 119, 118, 117, /* 290 */ 116, 1555, 602, 1553, 2192, 1555, 2228, 1553, 1768, 112, /* 300 */ 2194, 706, 2196, 2197, 701, 600, 696, 598, 2013, 147, /* 310 */ 734, 155, 2252, 2281, 387, 2193, 538, 393, 2277, 531, /* 320 */ 1818, 168, 2011, 1558, 1559, 666, 191, 1558, 1559, 1900, /* 330 */ 1609, 1612, 1613, 1614, 1615, 1616, 1617, 1618, 1619, 698, /* 340 */ 694, 1628, 1629, 1631, 1632, 1633, 1634, 2, 12, 48, /* 350 */ 46, 686, 1959, 62, 2211, 2013, 753, 397, 535, 1554, /* 360 */ 493, 363, 1580, 656, 532, 2161, 284, 702, 181, 2011, /* 370 */ 1635, 135, 1552, 588, 587, 586, 686, 1959, 575, 103, /* 380 */ 578, 141, 582, 1236, 658, 1235, 581, 365, 2065, 52, /* 390 */ 184, 580, 585, 373, 372, 426, 193, 579, 140, 1630, /* 400 */ 2296, 2192, 2000, 2228, 1952, 19, 112, 2194, 706, 2196, /* 410 */ 2197, 701, 1560, 696, 686, 1959, 1237, 697, 185, 1324, /* 420 */ 2281, 212, 211, 1211, 393, 2277, 2293, 1463, 1464, 2193, /* 430 */ 191, 248, 1323, 651, 56, 247, 2353, 794, 1935, 703, /* 440 */ 15, 1827, 41, 40, 492, 2308, 47, 45, 44, 43, /* 450 */ 42, 650, 188, 48, 46, 1640, 2354, 652, 258, 2193, /* 460 */ 1782, 397, 1213, 1554, 1216, 1217, 2013, 402, 2211, 700, /* 470 */ 2006, 2008, 392, 431, 1635, 1901, 1552, 1637, 1638, 2161, /* 480 */ 2011, 702, 1480, 1481, 134, 133, 132, 131, 130, 129, /* 490 */ 128, 127, 126, 459, 2061, 1580, 93, 502, 2211, 352, /* 500 */ 433, 429, 377, 1630, 604, 743, 1709, 1610, 1620, 2161, /* 510 */ 191, 702, 1579, 1636, 1639, 2192, 1560, 2228, 1479, 1482, /* 520 */ 112, 2194, 706, 2196, 2197, 701, 146, 696, 1555, 2252, /* 530 */ 1553, 1861, 2373, 1795, 2281, 663, 144, 2321, 393, 2277, /* 540 */ 205, 794, 686, 1959, 49, 2192, 191, 2228, 2007, 2008, /* 550 */ 338, 2194, 706, 2196, 2197, 701, 699, 696, 687, 2246, /* 560 */ 1558, 1559, 447, 1609, 1612, 1613, 1614, 1615, 1616, 1617, /* 570 */ 1618, 1619, 698, 694, 1628, 1629, 1631, 1632, 1633, 1634, /* 580 */ 2, 1637, 1638, 41, 40, 686, 1959, 47, 45, 44, /* 590 */ 43, 42, 41, 40, 450, 1582, 47, 45, 44, 43, /* 600 */ 42, 588, 587, 586, 1733, 448, 165, 451, 578, 141, /* 610 */ 582, 1610, 1620, 1328, 581, 1405, 1406, 1636, 1639, 580, /* 620 */ 585, 373, 372, 2013, 659, 579, 1327, 391, 30, 401, /* 630 */ 686, 1959, 1555, 370, 1553, 1961, 166, 2011, 665, 186, /* 640 */ 2289, 2290, 279, 142, 2294, 486, 2061, 2155, 2193, 1936, /* 650 */ 461, 638, 637, 1731, 1732, 1734, 1735, 1736, 703, 1581, /* 660 */ 2315, 1313, 1611, 9, 1558, 1559, 1934, 1609, 1612, 1613, /* 670 */ 1614, 1615, 1616, 1617, 1618, 1619, 698, 694, 1628, 1629, /* 680 */ 1631, 1632, 1633, 1634, 2, 48, 46, 2211, 1745, 686, /* 690 */ 1959, 504, 210, 397, 626, 1554, 2126, 2353, 2161, 1804, /* 700 */ 702, 1315, 371, 639, 369, 368, 1635, 572, 1552, 476, /* 710 */ 1270, 574, 2359, 188, 2044, 41, 40, 2354, 652, 47, /* 720 */ 45, 44, 43, 42, 41, 40, 1239, 1240, 47, 45, /* 730 */ 44, 43, 42, 573, 2192, 1630, 2228, 566, 565, 112, /* 740 */ 2194, 706, 2196, 2197, 701, 250, 696, 262, 1560, 2161, /* 750 */ 1271, 2373, 207, 2281, 2296, 41, 40, 393, 2277, 47, /* 760 */ 45, 44, 43, 42, 741, 14, 13, 2193, 47, 45, /* 770 */ 44, 43, 42, 794, 686, 1959, 49, 700, 593, 641, /* 780 */ 2292, 741, 2013, 160, 159, 738, 737, 736, 157, 48, /* 790 */ 46, 139, 86, 603, 477, 85, 2012, 397, 2296, 1554, /* 800 */ 160, 159, 738, 737, 736, 157, 2211, 246, 568, 567, /* 810 */ 1635, 284, 1552, 1637, 1638, 34, 273, 2161, 249, 702, /* 820 */ 1744, 41, 40, 596, 2291, 47, 45, 44, 43, 42, /* 830 */ 590, 1899, 672, 672, 686, 1959, 245, 686, 1959, 1630, /* 840 */ 293, 294, 1645, 1610, 1620, 292, 1666, 1898, 1579, 1636, /* 850 */ 1639, 1721, 1560, 2192, 546, 2228, 2212, 1956, 338, 2194, /* 860 */ 706, 2196, 2197, 701, 1555, 696, 1553, 2247, 1678, 647, /* 870 */ 642, 635, 609, 471, 686, 1959, 70, 794, 1803, 69, /* 880 */ 15, 2193, 470, 1698, 670, 681, 2075, 2075, 1525, 1526, /* 890 */ 1775, 703, 735, 2328, 251, 2004, 1558, 1559, 2357, 1609, /* 900 */ 1612, 1613, 1614, 1615, 1616, 1617, 1618, 1619, 698, 694, /* 910 */ 1628, 1629, 1631, 1632, 1633, 1634, 2, 1637, 1638, 626, /* 920 */ 2211, 2171, 2353, 739, 35, 2171, 2004, 2171, 2161, 406, /* 930 */ 405, 2161, 380, 702, 1671, 1950, 410, 2359, 188, 2179, /* 940 */ 1219, 2180, 2354, 652, 1802, 2175, 1578, 1610, 1620, 2175, /* 950 */ 36, 2175, 1561, 1636, 1639, 1702, 41, 40, 584, 583, /* 960 */ 47, 45, 44, 43, 42, 686, 1959, 2192, 1555, 2228, /* 970 */ 1553, 1801, 112, 2194, 706, 2196, 2197, 701, 625, 696, /* 980 */ 44, 43, 42, 2177, 2373, 259, 2281, 2177, 394, 2177, /* 990 */ 393, 2277, 1774, 696, 2161, 663, 144, 696, 1611, 696, /* 1000 */ 1558, 1559, 1858, 1609, 1612, 1613, 1614, 1615, 1616, 1617, /* 1010 */ 1618, 1619, 698, 694, 1628, 1629, 1631, 1632, 1633, 1634, /* 1020 */ 2, 2161, 348, 167, 1577, 574, 62, 1800, 323, 686, /* 1030 */ 1959, 484, 686, 1959, 500, 663, 144, 499, 686, 1959, /* 1040 */ 765, 763, 320, 73, 686, 1959, 72, 573, 12, 669, /* 1050 */ 10, 2070, 297, 467, 400, 501, 1824, 345, 683, 688, /* 1060 */ 469, 2253, 1961, 166, 684, 2311, 1799, 1798, 219, 512, /* 1070 */ 510, 507, 771, 770, 769, 768, 409, 2161, 767, 766, /* 1080 */ 148, 761, 760, 759, 758, 757, 756, 755, 162, 751, /* 1090 */ 750, 749, 408, 407, 746, 745, 744, 176, 175, 187, /* 1100 */ 2289, 2290, 60, 142, 2294, 1582, 366, 237, 62, 623, /* 1110 */ 1564, 403, 690, 441, 2253, 440, 2161, 2161, 455, 1961, /* 1120 */ 166, 1948, 166, 173, 1582, 109, 686, 1959, 1797, 686, /* 1130 */ 1959, 564, 560, 556, 552, 1796, 236, 1793, 1579, 189, /* 1140 */ 2289, 2290, 145, 142, 2294, 439, 303, 111, 497, 404, /* 1150 */ 1951, 491, 490, 489, 488, 483, 482, 481, 480, 479, /* 1160 */ 475, 474, 473, 472, 347, 464, 463, 462, 667, 457, /* 1170 */ 456, 364, 1792, 1819, 90, 654, 91, 693, 2161, 234, /* 1180 */ 1944, 166, 1791, 191, 664, 2161, 1790, 2161, 81, 80, /* 1190 */ 446, 2193, 1789, 200, 1788, 1787, 1786, 1946, 166, 1785, /* 1200 */ 1955, 703, 1563, 633, 1942, 166, 438, 436, 1962, 166, /* 1210 */ 740, 316, 1701, 2004, 1990, 626, 1937, 346, 2353, 2193, /* 1220 */ 427, 2147, 2161, 425, 421, 417, 414, 439, 74, 703, /* 1230 */ 2211, 2346, 2161, 2359, 188, 158, 2161, 754, 2354, 652, /* 1240 */ 1921, 2161, 2161, 702, 2161, 2161, 2161, 233, 227, 2161, /* 1250 */ 1216, 1217, 2193, 242, 232, 543, 240, 203, 2211, 576, /* 1260 */ 149, 54, 703, 3, 2300, 191, 2301, 1698, 1562, 2161, /* 1270 */ 419, 702, 83, 225, 137, 577, 261, 2192, 84, 2228, /* 1280 */ 2001, 1311, 112, 2194, 706, 2196, 2197, 701, 1611, 696, /* 1290 */ 151, 2211, 281, 150, 2373, 55, 2281, 1309, 1845, 1836, /* 1300 */ 393, 2277, 2161, 244, 702, 2192, 243, 2228, 1834, 158, /* 1310 */ 112, 2194, 706, 2196, 2197, 701, 153, 696, 158, 152, /* 1320 */ 589, 591, 2373, 606, 2281, 605, 1777, 1778, 393, 2277, /* 1330 */ 594, 50, 1656, 50, 747, 266, 158, 278, 2192, 50, /* 1340 */ 2228, 290, 2193, 112, 2194, 706, 2196, 2197, 701, 1, /* 1350 */ 696, 71, 703, 406, 405, 2373, 1289, 2281, 156, 158, /* 1360 */ 1566, 393, 2277, 1568, 741, 14, 13, 64, 5, 1520, /* 1370 */ 2193, 50, 413, 418, 1635, 1828, 1561, 361, 1523, 1585, /* 1380 */ 703, 2211, 435, 160, 159, 738, 737, 736, 157, 50, /* 1390 */ 710, 1730, 2161, 1729, 702, 268, 668, 156, 434, 1477, /* 1400 */ 158, 295, 748, 1630, 108, 195, 196, 138, 437, 2211, /* 1410 */ 156, 678, 198, 1501, 105, 452, 1560, 310, 299, 1354, /* 1420 */ 2161, 1578, 702, 209, 1287, 789, 1565, 1672, 2192, 454, /* 1430 */ 2228, 1621, 2193, 112, 2194, 706, 2196, 2197, 701, 1582, /* 1440 */ 696, 692, 703, 2071, 458, 2256, 460, 2281, 495, 315, /* 1450 */ 1383, 393, 2277, 465, 1577, 478, 2192, 1387, 2228, 485, /* 1460 */ 1394, 112, 2194, 706, 2196, 2197, 701, 1392, 696, 2063, /* 1470 */ 161, 2211, 505, 2254, 487, 2281, 494, 496, 506, 393, /* 1480 */ 2277, 503, 2161, 213, 702, 214, 508, 509, 216, 511, /* 1490 */ 513, 1583, 528, 4, 529, 536, 539, 537, 1580, 2193, /* 1500 */ 224, 226, 1584, 540, 1586, 541, 544, 542, 569, 703, /* 1510 */ 229, 548, 571, 1949, 231, 88, 89, 239, 2192, 235, /* 1520 */ 2228, 114, 351, 112, 2194, 706, 2196, 2197, 701, 608, /* 1530 */ 696, 92, 1569, 311, 1564, 689, 2135, 2281, 2211, 1945, /* 1540 */ 154, 393, 2277, 241, 1947, 610, 1943, 252, 614, 2161, /* 1550 */ 615, 702, 256, 2132, 621, 254, 613, 1508, 676, 2131, /* 1560 */ 2303, 2193, 618, 640, 1572, 1574, 619, 630, 2327, 636, /* 1570 */ 2326, 703, 383, 643, 2312, 2322, 264, 694, 1628, 1629, /* 1580 */ 1631, 1632, 1633, 1634, 620, 2192, 267, 2228, 8, 649, /* 1590 */ 113, 2194, 706, 2196, 2197, 701, 272, 696, 174, 631, /* 1600 */ 2211, 628, 384, 629, 2281, 277, 1698, 276, 2280, 2277, /* 1610 */ 274, 2161, 660, 702, 2376, 657, 1581, 143, 2297, 178, /* 1620 */ 285, 98, 1587, 312, 2193, 674, 2076, 675, 2090, 2089, /* 1630 */ 2088, 313, 389, 679, 703, 680, 314, 100, 102, 1960, /* 1640 */ 275, 61, 104, 2262, 2005, 1922, 317, 2192, 790, 2228, /* 1650 */ 306, 708, 113, 2194, 706, 2196, 2197, 701, 53, 696, /* 1660 */ 2153, 791, 341, 2211, 2352, 793, 2281, 280, 319, 321, /* 1670 */ 691, 2277, 2152, 326, 2161, 340, 702, 353, 354, 330, /* 1680 */ 2151, 78, 2148, 415, 416, 2193, 1545, 1546, 194, 420, /* 1690 */ 2146, 422, 423, 424, 2145, 703, 362, 2143, 428, 2193, /* 1700 */ 2142, 430, 2141, 432, 1536, 2122, 197, 2121, 199, 703, /* 1710 */ 704, 79, 2228, 1504, 1503, 113, 2194, 706, 2196, 2197, /* 1720 */ 701, 2103, 696, 2102, 2211, 2101, 2100, 444, 445, 2281, /* 1730 */ 2099, 1454, 2054, 356, 2277, 2161, 2193, 702, 2211, 2053, /* 1740 */ 2050, 2049, 201, 82, 2048, 2047, 703, 206, 466, 2161, /* 1750 */ 2052, 702, 2051, 204, 2046, 2045, 2043, 2042, 2041, 2040, /* 1760 */ 468, 2056, 2193, 2039, 2038, 2037, 2036, 2035, 2034, 2033, /* 1770 */ 2032, 2192, 703, 2228, 2031, 2211, 170, 2194, 706, 2196, /* 1780 */ 2197, 701, 2030, 696, 2029, 2192, 2161, 2228, 702, 2028, /* 1790 */ 171, 2194, 706, 2196, 2197, 701, 2027, 696, 2026, 2025, /* 1800 */ 208, 2211, 2024, 2023, 87, 2022, 2021, 2055, 2020, 2019, /* 1810 */ 1456, 2018, 2161, 2017, 702, 2016, 627, 2318, 498, 2015, /* 1820 */ 2014, 1864, 2192, 1325, 2228, 349, 2193, 170, 2194, 706, /* 1830 */ 2196, 2197, 701, 350, 696, 1321, 703, 215, 1329, 1863, /* 1840 */ 217, 653, 2374, 1862, 1860, 218, 1857, 514, 2192, 1856, /* 1850 */ 2228, 2193, 518, 113, 2194, 706, 2196, 2197, 701, 515, /* 1860 */ 696, 703, 516, 519, 520, 2211, 1849, 2281, 2319, 381, /* 1870 */ 522, 523, 2278, 524, 1838, 526, 2161, 2193, 702, 1814, /* 1880 */ 220, 76, 1218, 2181, 1813, 182, 77, 703, 2120, 2110, /* 1890 */ 2211, 222, 183, 2098, 382, 534, 228, 230, 2097, 2074, /* 1900 */ 1938, 2161, 1263, 702, 1859, 1855, 549, 550, 551, 1853, /* 1910 */ 553, 554, 2192, 1851, 2228, 555, 2211, 339, 2194, 706, /* 1920 */ 2196, 2197, 701, 1848, 696, 557, 558, 2161, 1833, 702, /* 1930 */ 559, 561, 562, 563, 1831, 1832, 1830, 2192, 1810, 2228, /* 1940 */ 1940, 63, 339, 2194, 706, 2196, 2197, 701, 1398, 696, /* 1950 */ 2193, 1399, 1939, 1312, 1310, 1308, 1307, 1306, 762, 1305, /* 1960 */ 703, 764, 1304, 2192, 238, 2228, 2193, 612, 332, 2194, /* 1970 */ 706, 2196, 2197, 701, 1301, 696, 703, 1300, 1299, 1298, /* 1980 */ 1846, 374, 1837, 375, 592, 797, 376, 1809, 595, 2211, /* 1990 */ 1835, 1808, 597, 599, 1807, 601, 115, 1530, 1532, 309, /* 2000 */ 2161, 1534, 702, 1529, 29, 2211, 2119, 1510, 2109, 388, /* 2010 */ 67, 648, 164, 2096, 1512, 180, 2161, 616, 702, 2095, /* 2020 */ 2358, 20, 57, 787, 783, 779, 775, 2193, 307, 1514, /* 2030 */ 257, 617, 1489, 622, 31, 1488, 2192, 703, 2228, 624, /* 2040 */ 17, 171, 2194, 706, 2196, 2197, 701, 1747, 696, 263, /* 2050 */ 6, 632, 2192, 7, 2228, 265, 21, 339, 2194, 706, /* 2060 */ 2196, 2197, 701, 172, 696, 22, 2211, 270, 110, 634, /* 2070 */ 396, 300, 271, 1728, 269, 2182, 33, 2161, 32, 702, /* 2080 */ 65, 1762, 1720, 1767, 95, 24, 1761, 1768, 2193, 385, /* 2090 */ 23, 18, 1766, 2375, 1765, 386, 283, 1695, 703, 59, /* 2100 */ 1694, 2094, 2073, 177, 682, 97, 96, 25, 288, 2072, /* 2110 */ 291, 58, 296, 2192, 2193, 2228, 677, 68, 339, 2194, /* 2120 */ 706, 2196, 2197, 701, 703, 696, 289, 2211, 1726, 99, /* 2130 */ 101, 398, 301, 105, 1647, 26, 1646, 11, 2161, 287, /* 2140 */ 702, 13, 1570, 2231, 179, 695, 286, 298, 1657, 1625, /* 2150 */ 192, 1623, 1622, 2211, 1594, 39, 16, 1602, 707, 709, /* 2160 */ 399, 27, 705, 713, 2161, 253, 702, 28, 716, 1384, /* 2170 */ 711, 719, 1381, 714, 2192, 1380, 2228, 717, 2193, 339, /* 2180 */ 2194, 706, 2196, 2197, 701, 1377, 696, 720, 703, 722, /* 2190 */ 1371, 723, 725, 2193, 1360, 1375, 1369, 726, 1374, 1373, /* 2200 */ 607, 1372, 2228, 703, 732, 334, 2194, 706, 2196, 2197, /* 2210 */ 701, 2193, 696, 106, 304, 107, 1393, 2211, 75, 1389, /* 2220 */ 1261, 703, 1293, 742, 1292, 1291, 1290, 1288, 2161, 1286, /* 2230 */ 702, 1285, 2211, 1284, 1319, 752, 1282, 305, 1281, 1280, /* 2240 */ 1279, 1278, 1277, 2161, 1276, 702, 1316, 1314, 1273, 1272, /* 2250 */ 2211, 1269, 1268, 1267, 1266, 1854, 772, 773, 1852, 774, /* 2260 */ 776, 2161, 778, 702, 2192, 1850, 2228, 780, 782, 324, /* 2270 */ 2194, 706, 2196, 2197, 701, 777, 696, 781, 1847, 2192, /* 2280 */ 784, 2228, 785, 1829, 322, 2194, 706, 2196, 2197, 701, /* 2290 */ 786, 696, 788, 1806, 1208, 308, 792, 2192, 1556, 2228, /* 2300 */ 796, 318, 325, 2194, 706, 2196, 2197, 701, 2193, 696, /* 2310 */ 795, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 703, 1781, /* 2320 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 2193, 1781, 1781, /* 2330 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 703, 1781, 1781, /* 2340 */ 1781, 2193, 1781, 1781, 1781, 1781, 1781, 2211, 1781, 1781, /* 2350 */ 1781, 703, 1781, 1781, 1781, 1781, 1781, 1781, 2161, 1781, /* 2360 */ 702, 1781, 1781, 1781, 1781, 1781, 2211, 1781, 1781, 1781, /* 2370 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 2161, 2193, 702, /* 2380 */ 2211, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 703, 1781, /* 2390 */ 1781, 2161, 1781, 702, 2192, 1781, 2228, 1781, 1781, 331, /* 2400 */ 2194, 706, 2196, 2197, 701, 1781, 696, 1781, 1781, 1781, /* 2410 */ 1781, 1781, 1781, 2192, 1781, 2228, 1781, 2211, 335, 2194, /* 2420 */ 706, 2196, 2197, 701, 1781, 696, 1781, 2192, 2161, 2228, /* 2430 */ 702, 1781, 327, 2194, 706, 2196, 2197, 701, 1781, 696, /* 2440 */ 2193, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2450 */ 703, 1781, 1781, 1781, 1781, 2193, 1781, 1781, 1781, 1781, /* 2460 */ 1781, 1781, 1781, 1781, 2192, 703, 2228, 1781, 1781, 336, /* 2470 */ 2194, 706, 2196, 2197, 701, 1781, 696, 1781, 1781, 2211, /* 2480 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2490 */ 2161, 1781, 702, 1781, 2211, 1781, 1781, 1781, 1781, 1781, /* 2500 */ 1781, 1781, 1781, 1781, 1781, 2161, 2193, 702, 1781, 1781, /* 2510 */ 1781, 1781, 1781, 1781, 1781, 1781, 703, 1781, 1781, 1781, /* 2520 */ 2193, 1781, 1781, 1781, 1781, 1781, 2192, 1781, 2228, 1781, /* 2530 */ 703, 328, 2194, 706, 2196, 2197, 701, 1781, 696, 1781, /* 2540 */ 1781, 2192, 1781, 2228, 1781, 2211, 337, 2194, 706, 2196, /* 2550 */ 2197, 701, 1781, 696, 1781, 1781, 2161, 1781, 702, 2211, /* 2560 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2570 */ 2161, 1781, 702, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2580 */ 1781, 1781, 1781, 1781, 1781, 2193, 1781, 1781, 1781, 1781, /* 2590 */ 1781, 1781, 2192, 1781, 2228, 703, 1781, 329, 2194, 706, /* 2600 */ 2196, 2197, 701, 1781, 696, 1781, 2192, 1781, 2228, 1781, /* 2610 */ 1781, 342, 2194, 706, 2196, 2197, 701, 1781, 696, 1781, /* 2620 */ 1781, 1781, 1781, 1781, 2211, 1781, 1781, 1781, 1781, 1781, /* 2630 */ 1781, 1781, 1781, 1781, 1781, 2161, 1781, 702, 1781, 1781, /* 2640 */ 1781, 1781, 1781, 1781, 1781, 2193, 1781, 1781, 1781, 1781, /* 2650 */ 1781, 1781, 1781, 1781, 1781, 703, 1781, 1781, 1781, 1781, /* 2660 */ 2193, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2670 */ 703, 2192, 1781, 2228, 1781, 1781, 343, 2194, 706, 2196, /* 2680 */ 2197, 701, 1781, 696, 2211, 1781, 1781, 1781, 1781, 1781, /* 2690 */ 1781, 1781, 1781, 1781, 1781, 2161, 1781, 702, 1781, 2211, /* 2700 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2710 */ 2161, 1781, 702, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2720 */ 2193, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2730 */ 703, 2192, 1781, 2228, 1781, 2193, 2205, 2194, 706, 2196, /* 2740 */ 2197, 701, 1781, 696, 1781, 703, 2192, 1781, 2228, 1781, /* 2750 */ 1781, 2204, 2194, 706, 2196, 2197, 701, 2193, 696, 2211, /* 2760 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 703, 1781, 1781, /* 2770 */ 2161, 1781, 702, 1781, 2211, 1781, 1781, 1781, 1781, 1781, /* 2780 */ 1781, 1781, 1781, 1781, 1781, 2161, 1781, 702, 1781, 1781, /* 2790 */ 1781, 1781, 1781, 1781, 1781, 1781, 2211, 1781, 1781, 1781, /* 2800 */ 1781, 1781, 1781, 1781, 1781, 1781, 2192, 2161, 2228, 702, /* 2810 */ 1781, 2203, 2194, 706, 2196, 2197, 701, 1781, 696, 1781, /* 2820 */ 1781, 2192, 1781, 2228, 1781, 1781, 358, 2194, 706, 2196, /* 2830 */ 2197, 701, 2193, 696, 1781, 1781, 1781, 1781, 1781, 1781, /* 2840 */ 1781, 1781, 703, 2192, 1781, 2228, 1781, 2193, 359, 2194, /* 2850 */ 706, 2196, 2197, 701, 1781, 696, 1781, 703, 1781, 1781, /* 2860 */ 1781, 1781, 2193, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2870 */ 1781, 2211, 703, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2880 */ 1781, 1781, 2161, 1781, 702, 1781, 2211, 1781, 1781, 1781, /* 2890 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 2161, 1781, 702, /* 2900 */ 1781, 2211, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2910 */ 1781, 1781, 2161, 1781, 702, 1781, 1781, 1781, 2192, 1781, /* 2920 */ 2228, 1781, 1781, 355, 2194, 706, 2196, 2197, 701, 1781, /* 2930 */ 696, 1781, 1781, 2192, 2193, 2228, 1781, 1781, 360, 2194, /* 2940 */ 706, 2196, 2197, 701, 703, 696, 1781, 1781, 704, 1781, /* 2950 */ 2228, 1781, 1781, 334, 2194, 706, 2196, 2197, 701, 1781, /* 2960 */ 696, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 2970 */ 1781, 1781, 1781, 2211, 1781, 1781, 1781, 1781, 1781, 1781, /* 2980 */ 1781, 1781, 1781, 1781, 2161, 1781, 702, 1781, 1781, 1781, /* 2990 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 3000 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 3010 */ 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, 1781, /* 3020 */ 2192, 1781, 2228, 1781, 1781, 333, 2194, 706, 2196, 2197, /* 3030 */ 701, 1781, 696, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 411, 341, 346, 380, 350, 416, 350, 411, 352, 386, /* 10 */ 393, 351, 12, 13, 14, 458, 387, 394, 461, 351, /* 20 */ 20, 380, 22, 8, 9, 408, 409, 12, 13, 14, /* 30 */ 15, 16, 387, 33, 477, 35, 20, 371, 481, 482, /* 40 */ 380, 400, 338, 393, 20, 379, 380, 458, 380, 395, /* 50 */ 461, 391, 386, 393, 458, 405, 20, 461, 408, 409, /* 60 */ 394, 458, 62, 346, 461, 476, 477, 350, 68, 352, /* 70 */ 481, 482, 476, 477, 20, 75, 22, 481, 482, 476, /* 80 */ 477, 350, 351, 68, 481, 482, 20, 427, 359, 429, /* 90 */ 350, 351, 432, 433, 434, 435, 436, 437, 47, 439, /* 100 */ 100, 370, 434, 103, 444, 376, 446, 53, 377, 345, /* 110 */ 450, 451, 348, 349, 385, 411, 12, 13, 341, 103, /* 120 */ 416, 49, 22, 463, 20, 44, 22, 112, 100, 57, /* 130 */ 62, 471, 60, 61, 20, 35, 20, 33, 350, 35, /* 140 */ 140, 141, 350, 351, 116, 117, 118, 119, 120, 121, /* 150 */ 122, 123, 124, 125, 103, 127, 128, 129, 130, 131, /* 160 */ 132, 133, 458, 67, 458, 461, 62, 461, 391, 103, /* 170 */ 170, 171, 68, 105, 4, 75, 176, 177, 0, 75, /* 180 */ 476, 477, 20, 477, 169, 481, 482, 481, 482, 397, /* 190 */ 402, 191, 404, 193, 454, 455, 456, 3, 458, 459, /* 200 */ 100, 461, 447, 448, 100, 8, 9, 103, 341, 12, /* 210 */ 13, 14, 15, 16, 20, 67, 476, 477, 351, 103, /* 220 */ 114, 481, 482, 223, 224, 0, 226, 227, 228, 229, /* 230 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, /* 240 */ 240, 241, 242, 243, 140, 141, 21, 380, 244, 24, /* 250 */ 25, 26, 27, 28, 29, 30, 31, 32, 391, 340, /* 260 */ 393, 342, 247, 248, 249, 250, 251, 252, 253, 254, /* 270 */ 255, 256, 257, 103, 170, 171, 260, 20, 75, 21, /* 280 */ 176, 177, 24, 25, 26, 27, 28, 29, 30, 31, /* 290 */ 32, 191, 21, 193, 427, 191, 429, 193, 104, 432, /* 300 */ 433, 434, 435, 436, 437, 34, 439, 36, 380, 442, /* 310 */ 114, 444, 445, 446, 386, 341, 345, 450, 451, 348, /* 320 */ 349, 360, 394, 223, 224, 351, 260, 223, 224, 368, /* 330 */ 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, /* 340 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 12, /* 350 */ 13, 350, 351, 103, 380, 380, 75, 20, 14, 22, /* 360 */ 84, 386, 20, 282, 20, 391, 172, 393, 380, 394, /* 370 */ 33, 370, 35, 70, 71, 72, 350, 351, 377, 357, /* 380 */ 77, 78, 79, 20, 44, 22, 83, 399, 400, 103, /* 390 */ 378, 88, 89, 90, 91, 217, 370, 94, 35, 62, /* 400 */ 431, 427, 390, 429, 382, 68, 432, 433, 434, 435, /* 410 */ 436, 437, 75, 439, 350, 351, 53, 387, 444, 22, /* 420 */ 446, 145, 146, 4, 450, 451, 457, 170, 171, 341, /* 430 */ 260, 135, 35, 458, 370, 139, 461, 100, 0, 351, /* 440 */ 103, 353, 8, 9, 168, 471, 12, 13, 14, 15, /* 450 */ 16, 476, 477, 12, 13, 14, 481, 482, 417, 341, /* 460 */ 0, 20, 43, 22, 45, 46, 380, 389, 380, 351, /* 470 */ 392, 393, 386, 186, 33, 368, 35, 140, 141, 391, /* 480 */ 394, 393, 140, 141, 24, 25, 26, 27, 28, 29, /* 490 */ 30, 31, 32, 350, 351, 20, 200, 100, 380, 203, /* 500 */ 213, 214, 206, 62, 208, 67, 14, 170, 171, 391, /* 510 */ 260, 393, 20, 176, 177, 427, 75, 429, 176, 177, /* 520 */ 432, 433, 434, 435, 436, 437, 442, 439, 191, 445, /* 530 */ 193, 0, 444, 342, 446, 350, 351, 401, 450, 451, /* 540 */ 397, 100, 350, 351, 103, 427, 260, 429, 392, 393, /* 550 */ 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, /* 560 */ 223, 224, 370, 226, 227, 228, 229, 230, 231, 232, /* 570 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, /* 580 */ 243, 140, 141, 8, 9, 350, 351, 12, 13, 14, /* 590 */ 15, 16, 8, 9, 22, 20, 12, 13, 14, 15, /* 600 */ 16, 70, 71, 72, 223, 370, 172, 35, 77, 78, /* 610 */ 79, 170, 171, 22, 83, 140, 141, 176, 177, 88, /* 620 */ 89, 90, 91, 380, 284, 94, 35, 371, 44, 386, /* 630 */ 350, 351, 191, 37, 193, 379, 380, 394, 453, 454, /* 640 */ 455, 456, 485, 458, 459, 350, 351, 411, 341, 0, /* 650 */ 370, 270, 271, 272, 273, 274, 275, 276, 351, 20, /* 660 */ 353, 35, 170, 39, 223, 224, 0, 226, 227, 228, /* 670 */ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, /* 680 */ 239, 240, 241, 242, 243, 12, 13, 380, 104, 350, /* 690 */ 351, 100, 397, 20, 458, 22, 375, 461, 391, 341, /* 700 */ 393, 75, 106, 474, 108, 109, 33, 111, 35, 370, /* 710 */ 35, 115, 476, 477, 0, 8, 9, 481, 482, 12, /* 720 */ 13, 14, 15, 16, 8, 9, 54, 55, 12, 13, /* 730 */ 14, 15, 16, 137, 427, 62, 429, 355, 356, 432, /* 740 */ 433, 434, 435, 436, 437, 424, 439, 172, 75, 391, /* 750 */ 75, 444, 62, 446, 431, 8, 9, 450, 451, 12, /* 760 */ 13, 14, 15, 16, 115, 1, 2, 341, 12, 13, /* 770 */ 14, 15, 16, 100, 350, 351, 103, 351, 4, 175, /* 780 */ 457, 115, 380, 134, 135, 136, 137, 138, 139, 12, /* 790 */ 13, 354, 102, 19, 370, 105, 394, 20, 431, 22, /* 800 */ 134, 135, 136, 137, 138, 139, 380, 33, 355, 356, /* 810 */ 33, 172, 35, 140, 141, 2, 468, 391, 134, 393, /* 820 */ 104, 8, 9, 49, 457, 12, 13, 14, 15, 16, /* 830 */ 56, 367, 350, 350, 350, 351, 62, 350, 351, 62, /* 840 */ 134, 135, 14, 170, 171, 139, 169, 367, 20, 176, /* 850 */ 177, 104, 75, 427, 370, 429, 380, 370, 432, 433, /* 860 */ 434, 435, 436, 437, 191, 439, 193, 441, 104, 265, /* 870 */ 266, 267, 411, 159, 350, 351, 102, 100, 341, 105, /* 880 */ 103, 341, 168, 259, 402, 402, 404, 404, 204, 205, /* 890 */ 183, 351, 388, 353, 370, 391, 223, 224, 3, 226, /* 900 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, /* 910 */ 237, 238, 239, 240, 241, 242, 243, 140, 141, 458, /* 920 */ 380, 367, 461, 388, 247, 367, 391, 367, 391, 12, /* 930 */ 13, 391, 410, 393, 257, 381, 354, 476, 477, 381, /* 940 */ 14, 381, 481, 482, 341, 391, 20, 170, 171, 391, /* 950 */ 2, 391, 35, 176, 177, 4, 8, 9, 364, 365, /* 960 */ 12, 13, 14, 15, 16, 350, 351, 427, 191, 429, /* 970 */ 193, 341, 432, 433, 434, 435, 436, 437, 48, 439, /* 980 */ 14, 15, 16, 429, 444, 370, 446, 429, 430, 429, /* 990 */ 450, 451, 285, 439, 391, 350, 351, 439, 170, 439, /* 1000 */ 223, 224, 0, 226, 227, 228, 229, 230, 231, 232, /* 1010 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, /* 1020 */ 243, 391, 18, 18, 20, 115, 103, 341, 23, 350, /* 1030 */ 351, 27, 350, 351, 30, 350, 351, 33, 350, 351, /* 1040 */ 364, 365, 37, 38, 350, 351, 41, 137, 244, 370, /* 1050 */ 246, 401, 370, 49, 371, 51, 351, 52, 370, 443, /* 1060 */ 56, 445, 379, 380, 370, 401, 341, 341, 63, 64, /* 1070 */ 65, 66, 70, 71, 72, 73, 74, 391, 76, 77, /* 1080 */ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, /* 1090 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 454, /* 1100 */ 455, 456, 172, 458, 459, 20, 102, 33, 103, 179, /* 1110 */ 193, 371, 443, 190, 445, 192, 391, 391, 114, 379, /* 1120 */ 380, 379, 380, 49, 20, 357, 350, 351, 341, 350, /* 1130 */ 351, 57, 58, 59, 60, 341, 62, 341, 20, 454, /* 1140 */ 455, 456, 374, 458, 459, 222, 370, 142, 144, 370, /* 1150 */ 382, 147, 148, 149, 150, 151, 152, 153, 154, 155, /* 1160 */ 156, 157, 158, 159, 160, 161, 162, 163, 411, 165, /* 1170 */ 166, 167, 341, 349, 359, 280, 102, 68, 391, 105, /* 1180 */ 379, 380, 341, 260, 460, 391, 341, 391, 183, 184, /* 1190 */ 185, 341, 341, 188, 341, 341, 341, 379, 380, 341, /* 1200 */ 385, 351, 35, 353, 379, 380, 201, 202, 379, 380, /* 1210 */ 388, 372, 261, 391, 375, 458, 0, 212, 461, 341, /* 1220 */ 215, 0, 391, 218, 219, 220, 221, 222, 114, 351, /* 1230 */ 380, 353, 391, 476, 477, 44, 391, 366, 481, 482, /* 1240 */ 369, 391, 391, 393, 391, 391, 391, 173, 174, 391, /* 1250 */ 45, 46, 341, 107, 180, 181, 110, 172, 380, 13, /* 1260 */ 44, 42, 351, 44, 353, 260, 258, 259, 35, 391, /* 1270 */ 49, 393, 42, 199, 44, 13, 172, 427, 164, 429, /* 1280 */ 390, 35, 432, 433, 434, 435, 436, 437, 170, 439, /* 1290 */ 107, 380, 478, 110, 444, 104, 446, 35, 0, 0, /* 1300 */ 450, 451, 391, 107, 393, 427, 110, 429, 0, 44, /* 1310 */ 432, 433, 434, 435, 436, 437, 107, 439, 44, 110, /* 1320 */ 22, 22, 444, 207, 446, 209, 140, 141, 450, 451, /* 1330 */ 22, 44, 223, 44, 13, 44, 44, 452, 427, 44, /* 1340 */ 429, 44, 341, 432, 433, 434, 435, 436, 437, 462, /* 1350 */ 439, 44, 351, 12, 13, 444, 35, 446, 44, 44, /* 1360 */ 193, 450, 451, 22, 115, 1, 2, 44, 262, 104, /* 1370 */ 341, 44, 412, 49, 33, 0, 35, 428, 104, 20, /* 1380 */ 351, 380, 421, 134, 135, 136, 137, 138, 139, 44, /* 1390 */ 44, 104, 391, 104, 393, 104, 104, 44, 206, 104, /* 1400 */ 44, 104, 13, 62, 103, 426, 359, 44, 421, 380, /* 1410 */ 44, 104, 359, 189, 113, 351, 75, 414, 104, 104, /* 1420 */ 391, 20, 393, 42, 35, 50, 193, 104, 427, 398, /* 1430 */ 429, 104, 341, 432, 433, 434, 435, 436, 437, 20, /* 1440 */ 439, 100, 351, 401, 351, 444, 398, 446, 169, 104, /* 1450 */ 104, 450, 451, 396, 20, 350, 427, 104, 429, 351, /* 1460 */ 104, 432, 433, 434, 435, 436, 437, 104, 439, 350, /* 1470 */ 104, 380, 101, 444, 398, 446, 396, 396, 363, 450, /* 1480 */ 451, 99, 391, 362, 393, 350, 98, 361, 350, 350, /* 1490 */ 350, 20, 343, 48, 347, 343, 421, 347, 20, 341, /* 1500 */ 359, 359, 20, 393, 20, 352, 352, 413, 343, 351, /* 1510 */ 359, 350, 380, 380, 359, 359, 359, 380, 427, 359, /* 1520 */ 429, 350, 343, 432, 433, 434, 435, 436, 437, 210, /* 1530 */ 439, 103, 191, 421, 193, 444, 391, 446, 380, 380, /* 1540 */ 423, 450, 451, 380, 380, 425, 380, 357, 197, 391, /* 1550 */ 420, 393, 357, 391, 350, 419, 196, 195, 268, 391, /* 1560 */ 470, 341, 393, 269, 223, 224, 418, 391, 467, 391, /* 1570 */ 467, 351, 391, 391, 401, 401, 406, 236, 237, 238, /* 1580 */ 239, 240, 241, 242, 412, 427, 406, 429, 277, 182, /* 1590 */ 432, 433, 434, 435, 436, 437, 469, 439, 467, 279, /* 1600 */ 380, 263, 286, 278, 446, 412, 259, 464, 450, 451, /* 1610 */ 466, 391, 283, 393, 486, 281, 20, 351, 431, 352, /* 1620 */ 357, 357, 20, 406, 341, 391, 404, 391, 391, 391, /* 1630 */ 391, 406, 391, 174, 351, 403, 375, 357, 357, 351, /* 1640 */ 465, 103, 103, 449, 391, 369, 350, 427, 36, 429, /* 1650 */ 357, 383, 432, 433, 434, 435, 436, 437, 415, 439, /* 1660 */ 0, 344, 422, 380, 480, 343, 446, 479, 358, 339, /* 1670 */ 450, 451, 0, 373, 391, 373, 393, 407, 407, 373, /* 1680 */ 0, 42, 0, 35, 216, 341, 35, 35, 35, 216, /* 1690 */ 0, 35, 35, 216, 0, 351, 216, 0, 35, 341, /* 1700 */ 0, 22, 0, 35, 211, 0, 199, 0, 199, 351, /* 1710 */ 427, 200, 429, 193, 191, 432, 433, 434, 435, 436, /* 1720 */ 437, 0, 439, 0, 380, 0, 0, 187, 186, 446, /* 1730 */ 0, 47, 0, 450, 451, 391, 341, 393, 380, 0, /* 1740 */ 0, 0, 47, 42, 0, 0, 351, 159, 35, 391, /* 1750 */ 0, 393, 0, 47, 0, 0, 0, 0, 0, 0, /* 1760 */ 159, 0, 341, 0, 0, 0, 0, 0, 0, 0, /* 1770 */ 0, 427, 351, 429, 0, 380, 432, 433, 434, 435, /* 1780 */ 436, 437, 0, 439, 0, 427, 391, 429, 393, 0, /* 1790 */ 432, 433, 434, 435, 436, 437, 0, 439, 0, 0, /* 1800 */ 47, 380, 0, 0, 42, 0, 0, 0, 0, 0, /* 1810 */ 22, 0, 391, 0, 393, 0, 472, 473, 143, 0, /* 1820 */ 0, 0, 427, 22, 429, 48, 341, 432, 433, 434, /* 1830 */ 435, 436, 437, 48, 439, 35, 351, 62, 22, 0, /* 1840 */ 62, 483, 484, 0, 0, 62, 0, 35, 427, 0, /* 1850 */ 429, 341, 35, 432, 433, 434, 435, 436, 437, 49, /* 1860 */ 439, 351, 39, 49, 39, 380, 0, 446, 473, 384, /* 1870 */ 35, 49, 451, 39, 0, 35, 391, 341, 393, 0, /* 1880 */ 42, 39, 14, 47, 0, 44, 39, 351, 0, 0, /* 1890 */ 380, 40, 47, 0, 384, 47, 39, 182, 0, 0, /* 1900 */ 0, 391, 69, 393, 0, 0, 35, 49, 39, 0, /* 1910 */ 35, 49, 427, 0, 429, 39, 380, 432, 433, 434, /* 1920 */ 435, 436, 437, 0, 439, 35, 49, 391, 0, 393, /* 1930 */ 39, 35, 49, 39, 0, 0, 0, 427, 0, 429, /* 1940 */ 0, 112, 432, 433, 434, 435, 436, 437, 22, 439, /* 1950 */ 341, 35, 0, 35, 35, 35, 35, 35, 44, 35, /* 1960 */ 351, 44, 35, 427, 110, 429, 341, 1, 432, 433, /* 1970 */ 434, 435, 436, 437, 35, 439, 351, 35, 22, 35, /* 1980 */ 0, 22, 0, 22, 51, 19, 22, 0, 35, 380, /* 1990 */ 0, 0, 35, 35, 0, 22, 20, 35, 35, 33, /* 2000 */ 391, 104, 393, 35, 103, 380, 0, 35, 0, 384, /* 2010 */ 103, 475, 194, 0, 22, 49, 391, 22, 393, 0, /* 2020 */ 3, 44, 172, 57, 58, 59, 60, 341, 62, 198, /* 2030 */ 174, 172, 172, 178, 103, 172, 427, 351, 429, 178, /* 2040 */ 264, 432, 433, 434, 435, 436, 437, 104, 439, 103, /* 2050 */ 48, 101, 427, 48, 429, 104, 44, 432, 433, 434, /* 2060 */ 435, 436, 437, 103, 439, 44, 380, 44, 102, 99, /* 2070 */ 384, 105, 47, 104, 103, 47, 44, 391, 103, 393, /* 2080 */ 3, 35, 104, 104, 103, 44, 35, 104, 341, 35, /* 2090 */ 264, 264, 35, 484, 35, 35, 47, 104, 351, 44, /* 2100 */ 104, 0, 0, 47, 138, 39, 103, 103, 47, 0, /* 2110 */ 103, 258, 103, 427, 341, 429, 175, 103, 432, 433, /* 2120 */ 434, 435, 436, 437, 351, 439, 104, 380, 104, 39, /* 2130 */ 103, 384, 47, 113, 101, 44, 101, 245, 391, 173, /* 2140 */ 393, 2, 22, 103, 47, 103, 180, 173, 223, 104, /* 2150 */ 47, 104, 104, 380, 104, 103, 103, 22, 114, 35, /* 2160 */ 35, 103, 225, 35, 391, 199, 393, 103, 35, 104, /* 2170 */ 103, 35, 104, 103, 427, 104, 429, 103, 341, 432, /* 2180 */ 433, 434, 435, 436, 437, 104, 439, 103, 351, 35, /* 2190 */ 104, 103, 35, 341, 22, 126, 104, 103, 126, 126, /* 2200 */ 427, 126, 429, 351, 115, 432, 433, 434, 435, 436, /* 2210 */ 437, 341, 439, 103, 44, 103, 35, 380, 103, 22, /* 2220 */ 69, 351, 35, 68, 35, 35, 35, 35, 391, 35, /* 2230 */ 393, 35, 380, 35, 75, 97, 35, 44, 35, 35, /* 2240 */ 22, 35, 35, 391, 35, 393, 75, 35, 35, 35, /* 2250 */ 380, 35, 35, 22, 35, 0, 35, 49, 0, 39, /* 2260 */ 35, 391, 39, 393, 427, 0, 429, 35, 39, 432, /* 2270 */ 433, 434, 435, 436, 437, 49, 439, 49, 0, 427, /* 2280 */ 35, 429, 49, 0, 432, 433, 434, 435, 436, 437, /* 2290 */ 39, 439, 35, 0, 35, 22, 21, 427, 22, 429, /* 2300 */ 20, 22, 432, 433, 434, 435, 436, 437, 341, 439, /* 2310 */ 21, 487, 487, 487, 487, 487, 487, 487, 351, 487, /* 2320 */ 487, 487, 487, 487, 487, 487, 487, 341, 487, 487, /* 2330 */ 487, 487, 487, 487, 487, 487, 487, 351, 487, 487, /* 2340 */ 487, 341, 487, 487, 487, 487, 487, 380, 487, 487, /* 2350 */ 487, 351, 487, 487, 487, 487, 487, 487, 391, 487, /* 2360 */ 393, 487, 487, 487, 487, 487, 380, 487, 487, 487, /* 2370 */ 487, 487, 487, 487, 487, 487, 487, 391, 341, 393, /* 2380 */ 380, 487, 487, 487, 487, 487, 487, 487, 351, 487, /* 2390 */ 487, 391, 487, 393, 427, 487, 429, 487, 487, 432, /* 2400 */ 433, 434, 435, 436, 437, 487, 439, 487, 487, 487, /* 2410 */ 487, 487, 487, 427, 487, 429, 487, 380, 432, 433, /* 2420 */ 434, 435, 436, 437, 487, 439, 487, 427, 391, 429, /* 2430 */ 393, 487, 432, 433, 434, 435, 436, 437, 487, 439, /* 2440 */ 341, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 2450 */ 351, 487, 487, 487, 487, 341, 487, 487, 487, 487, /* 2460 */ 487, 487, 487, 487, 427, 351, 429, 487, 487, 432, /* 2470 */ 433, 434, 435, 436, 437, 487, 439, 487, 487, 380, /* 2480 */ 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 2490 */ 391, 487, 393, 487, 380, 487, 487, 487, 487, 487, /* 2500 */ 487, 487, 487, 487, 487, 391, 341, 393, 487, 487, /* 2510 */ 487, 487, 487, 487, 487, 487, 351, 487, 487, 487, /* 2520 */ 341, 487, 487, 487, 487, 487, 427, 487, 429, 487, /* 2530 */ 351, 432, 433, 434, 435, 436, 437, 487, 439, 487, /* 2540 */ 487, 427, 487, 429, 487, 380, 432, 433, 434, 435, /* 2550 */ 436, 437, 487, 439, 487, 487, 391, 487, 393, 380, /* 2560 */ 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 2570 */ 391, 487, 393, 487, 487, 487, 487, 487, 487, 487, /* 2580 */ 487, 487, 487, 487, 487, 341, 487, 487, 487, 487, /* 2590 */ 487, 487, 427, 487, 429, 351, 487, 432, 433, 434, /* 2600 */ 435, 436, 437, 487, 439, 487, 427, 487, 429, 487, /* 2610 */ 487, 432, 433, 434, 435, 436, 437, 487, 439, 487, /* 2620 */ 487, 487, 487, 487, 380, 487, 487, 487, 487, 487, /* 2630 */ 487, 487, 487, 487, 487, 391, 487, 393, 487, 487, /* 2640 */ 487, 487, 487, 487, 487, 341, 487, 487, 487, 487, /* 2650 */ 487, 487, 487, 487, 487, 351, 487, 487, 487, 487, /* 2660 */ 341, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 2670 */ 351, 427, 487, 429, 487, 487, 432, 433, 434, 435, /* 2680 */ 436, 437, 487, 439, 380, 487, 487, 487, 487, 487, /* 2690 */ 487, 487, 487, 487, 487, 391, 487, 393, 487, 380, /* 2700 */ 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 2710 */ 391, 487, 393, 487, 487, 487, 487, 487, 487, 487, /* 2720 */ 341, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 2730 */ 351, 427, 487, 429, 487, 341, 432, 433, 434, 435, /* 2740 */ 436, 437, 487, 439, 487, 351, 427, 487, 429, 487, /* 2750 */ 487, 432, 433, 434, 435, 436, 437, 341, 439, 380, /* 2760 */ 487, 487, 487, 487, 487, 487, 487, 351, 487, 487, /* 2770 */ 391, 487, 393, 487, 380, 487, 487, 487, 487, 487, /* 2780 */ 487, 487, 487, 487, 487, 391, 487, 393, 487, 487, /* 2790 */ 487, 487, 487, 487, 487, 487, 380, 487, 487, 487, /* 2800 */ 487, 487, 487, 487, 487, 487, 427, 391, 429, 393, /* 2810 */ 487, 432, 433, 434, 435, 436, 437, 487, 439, 487, /* 2820 */ 487, 427, 487, 429, 487, 487, 432, 433, 434, 435, /* 2830 */ 436, 437, 341, 439, 487, 487, 487, 487, 487, 487, /* 2840 */ 487, 487, 351, 427, 487, 429, 487, 341, 432, 433, /* 2850 */ 434, 435, 436, 437, 487, 439, 487, 351, 487, 487, /* 2860 */ 487, 487, 341, 487, 487, 487, 487, 487, 487, 487, /* 2870 */ 487, 380, 351, 487, 487, 487, 487, 487, 487, 487, /* 2880 */ 487, 487, 391, 487, 393, 487, 380, 487, 487, 487, /* 2890 */ 487, 487, 487, 487, 487, 487, 487, 391, 487, 393, /* 2900 */ 487, 380, 487, 487, 487, 487, 487, 487, 487, 487, /* 2910 */ 487, 487, 391, 487, 393, 487, 487, 487, 427, 487, /* 2920 */ 429, 487, 487, 432, 433, 434, 435, 436, 437, 487, /* 2930 */ 439, 487, 487, 427, 341, 429, 487, 487, 432, 433, /* 2940 */ 434, 435, 436, 437, 351, 439, 487, 487, 427, 487, /* 2950 */ 429, 487, 487, 432, 433, 434, 435, 436, 437, 487, /* 2960 */ 439, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 2970 */ 487, 487, 487, 380, 487, 487, 487, 487, 487, 487, /* 2980 */ 487, 487, 487, 487, 391, 487, 393, 487, 487, 487, /* 2990 */ 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 3000 */ 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 3010 */ 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, /* 3020 */ 427, 487, 429, 487, 487, 432, 433, 434, 435, 436, /* 3030 */ 437, 487, 439, 338, 338, 338, 338, 338, 338, 338, /* 3040 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3050 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3060 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3070 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3080 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3090 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3100 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3110 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3120 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3130 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3140 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3150 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3160 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3170 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3180 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3190 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3200 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3210 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3220 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3230 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3240 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3250 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3260 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3270 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3280 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3290 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3300 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3310 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3320 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3330 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3340 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3350 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3360 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3370 */ 338, }; #define YY_SHIFT_COUNT (797) #define YY_SHIFT_MIN (0) #define YY_SHIFT_MAX (2293) 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, 16, 66, 923, 116, 250, 286, 250, 116, 116, /* 60 */ 250, 1341, 250, 1341, 1341, 170, 250, 24, 342, 36, /* 70 */ 36, 342, 419, 419, 257, 475, 344, 344, 36, 36, /* 80 */ 36, 36, 36, 36, 36, 36, 36, 36, 114, 36, /* 90 */ 36, 96, 24, 36, 36, 162, 24, 36, 114, 36, /* 100 */ 114, 24, 36, 36, 24, 36, 24, 24, 24, 36, /* 110 */ 148, 1004, 15, 15, 303, 258, 100, 100, 100, 100, /* 120 */ 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, /* 130 */ 100, 100, 100, 100, 100, 596, 194, 257, 475, 672, /* 140 */ 672, 626, 639, 639, 639, 438, 804, 804, 626, 96, /* 150 */ 24, 24, 24, 24, 106, 4, 24, 203, 24, 203, /* 160 */ 203, 196, 281, 28, 28, 28, 28, 1966, 531, 225, /* 170 */ 575, 707, 381, 363, 604, 917, 917, 492, 930, 828, /* 180 */ 54, 1085, 1205, 926, 910, 1104, 1008, 624, 895, 1008, /* 190 */ 1219, 951, 1118, 1106, 1324, 1359, 1192, 96, 1359, 96, /* 200 */ 1224, 1401, 1381, 1419, 1401, 1381, 1279, 1434, 1401, 1434, /* 210 */ 1381, 1279, 1279, 1371, 1382, 1434, 1388, 1434, 1434, 1434, /* 220 */ 1471, 1445, 1471, 1445, 1359, 96, 1478, 96, 1482, 1484, /* 230 */ 96, 1482, 96, 96, 96, 1434, 96, 1471, 24, 24, /* 240 */ 24, 24, 24, 24, 24, 1434, 1471, 203, 203, 203, /* 250 */ 1319, 1428, 1359, 148, 1351, 1360, 1478, 148, 1362, 1106, /* 260 */ 1434, 1419, 1419, 203, 1294, 1290, 203, 1294, 1290, 203, /* 270 */ 203, 24, 1311, 1407, 1294, 1320, 1325, 1338, 1106, 1316, /* 280 */ 1329, 1334, 1347, 1401, 1596, 1482, 148, 148, 1602, 1290, /* 290 */ 203, 203, 203, 203, 203, 1290, 203, 1459, 148, 196, /* 300 */ 148, 1401, 1538, 1539, 203, 281, 1434, 148, 1612, 1471, /* 310 */ 3033, 3033, 3033, 3033, 3033, 3033, 3033, 3033, 3033, 1002, /* 320 */ 1074, 460, 584, 774, 716, 747, 649, 813, 948, 434, /* 330 */ 666, 197, 197, 197, 197, 197, 197, 197, 197, 197, /* 340 */ 1249, 296, 756, 756, 276, 72, 287, 714, 690, 397, /* 350 */ 591, 271, 684, 706, 706, 966, 764, 677, 966, 966, /* 360 */ 966, 1221, 178, 1191, 572, 1230, 1114, 1216, 1146, 1183, /* 370 */ 1196, 1209, 1246, 1262, 1298, 1299, 1308, 1116, 1265, 1274, /* 380 */ 68, 1287, 1289, 1291, 1186, 81, 340, 1292, 1295, 1297, /* 390 */ 1307, 1314, 1315, 1364, 1323, 1109, 1327, 51, 1345, 1346, /* 400 */ 1353, 1356, 1363, 1366, 1301, 1167, 1233, 1321, 1389, 675, /* 410 */ 1375, 1660, 1672, 1680, 1639, 1682, 1648, 1468, 1651, 1652, /* 420 */ 1653, 1473, 1690, 1656, 1657, 1477, 1694, 1480, 1697, 1663, /* 430 */ 1700, 1679, 1702, 1668, 1493, 1705, 1507, 1707, 1509, 1511, /* 440 */ 1520, 1523, 1721, 1723, 1725, 1540, 1542, 1726, 1730, 1684, /* 450 */ 1732, 1739, 1740, 1695, 1741, 1701, 1744, 1745, 1750, 1706, /* 460 */ 1752, 1754, 1755, 1756, 1757, 1758, 1588, 1713, 1759, 1601, /* 470 */ 1761, 1763, 1764, 1765, 1766, 1767, 1768, 1769, 1770, 1774, /* 480 */ 1782, 1784, 1789, 1796, 1798, 1799, 1753, 1802, 1762, 1803, /* 490 */ 1805, 1806, 1807, 1808, 1809, 1788, 1811, 1813, 1815, 1675, /* 500 */ 1819, 1820, 1801, 1777, 1816, 1785, 1821, 1775, 1800, 1839, /* 510 */ 1778, 1843, 1783, 1844, 1846, 1812, 1810, 1823, 1849, 1817, /* 520 */ 1814, 1825, 1866, 1835, 1822, 1834, 1874, 1840, 1879, 1838, /* 530 */ 1842, 1841, 1836, 1845, 1868, 1848, 1884, 1851, 1847, 1888, /* 540 */ 1889, 1893, 1857, 1715, 1898, 1899, 1900, 1833, 1904, 1905, /* 550 */ 1871, 1858, 1869, 1909, 1875, 1862, 1876, 1913, 1890, 1877, /* 560 */ 1891, 1923, 1896, 1883, 1894, 1928, 1934, 1935, 1936, 1938, /* 570 */ 1940, 1829, 1854, 1916, 1926, 1952, 1918, 1919, 1920, 1921, /* 580 */ 1922, 1924, 1927, 1914, 1917, 1939, 1942, 1956, 1944, 1980, /* 590 */ 1959, 1982, 1961, 1933, 1990, 1964, 1953, 1987, 1957, 1991, /* 600 */ 1958, 1994, 1973, 1976, 1962, 1963, 1968, 1897, 1901, 2006, /* 610 */ 1850, 1907, 1831, 1972, 1992, 2008, 1818, 1995, 1859, 1856, /* 620 */ 2013, 2019, 1860, 1855, 1863, 1861, 2017, 1977, 1776, 1931, /* 630 */ 1943, 1946, 2002, 1950, 2005, 1970, 1951, 2012, 2021, 1969, /* 640 */ 1960, 1971, 1975, 1978, 2023, 2025, 2028, 1981, 2032, 1826, /* 650 */ 1979, 1983, 2077, 2041, 1827, 2046, 2051, 2054, 2057, 2059, /* 660 */ 2060, 1993, 1996, 2049, 1853, 2055, 2056, 2101, 2102, 2003, /* 670 */ 2066, 1836, 2061, 2004, 2022, 2024, 2007, 2009, 1941, 2014, /* 680 */ 2109, 2090, 1974, 2027, 2020, 1836, 2085, 2091, 2033, 1892, /* 690 */ 2035, 2139, 2120, 1925, 2040, 2045, 2042, 2047, 2052, 2048, /* 700 */ 2097, 2053, 2058, 2103, 2050, 2135, 1937, 2064, 2044, 2065, /* 710 */ 2124, 2125, 2067, 2068, 2128, 2070, 2071, 2133, 2074, 2081, /* 720 */ 2136, 2084, 2086, 2154, 2088, 2092, 2157, 2094, 2069, 2072, /* 730 */ 2073, 2075, 2172, 2089, 2110, 2170, 2112, 2181, 2115, 2170, /* 740 */ 2170, 2197, 2151, 2155, 2187, 2189, 2190, 2191, 2192, 2194, /* 750 */ 2196, 2198, 2159, 2138, 2193, 2201, 2203, 2204, 2218, 2206, /* 760 */ 2207, 2209, 2171, 1914, 2212, 1917, 2213, 2214, 2216, 2217, /* 770 */ 2231, 2219, 2255, 2221, 2208, 2220, 2258, 2225, 2226, 2223, /* 780 */ 2265, 2232, 2228, 2229, 2278, 2245, 2233, 2251, 2283, 2257, /* 790 */ 2259, 2293, 2273, 2275, 2276, 2279, 2289, 2280, }; #define YY_REDUCE_COUNT (318) #define YY_REDUCE_MIN (-443) #define YY_REDUCE_MAX (2593) static const short yy_reduce_ofst[] = { /* 0 */ -296, -340, -133, -26, 88, 307, 540, 850, 878, 911, /* 10 */ 1001, 1029, 1091, 1158, 1220, 1283, 118, 1344, 1358, 1421, /* 20 */ 1395, 1485, 1510, 1536, 1609, 1625, 426, 1686, 1747, 1773, /* 30 */ 1837, 1852, 1870, 1967, 1986, 2000, 2037, 2099, 2114, 2165, /* 40 */ 2179, 2244, 2304, 2319, 2379, 2394, 2416, 2491, 2506, 2521, /* 50 */ 2593, -260, -25, -411, 185, -404, 236, 461, 645, 685, /* 60 */ 757, 558, -397, 554, 560, -443, -294, -334, -350, -269, /* 70 */ 1, -383, -236, -29, -12, 78, -344, -283, 26, 64, /* 80 */ 192, 235, -208, 143, 280, 339, 424, 295, -212, 484, /* 90 */ 487, -271, -377, 524, 615, -332, -72, 679, 482, 682, /* 100 */ 483, 256, 688, 694, 86, 776, 683, 243, 740, 779, /* 110 */ 768, -346, -245, -245, -39, -81, -223, 358, 537, 603, /* 120 */ 630, 686, 725, 726, 787, 794, 796, 831, 841, 845, /* 130 */ 851, 853, 854, 855, 858, 12, -31, -359, 156, 382, /* 140 */ 453, 594, -31, 323, 367, 22, 616, 669, 676, 815, /* 150 */ 742, 801, 818, 825, 321, 84, 829, 504, 402, 535, /* 160 */ 822, 839, 871, -371, -355, 30, -371, 41, 107, 191, /* 170 */ 136, 157, 229, 437, 348, 464, 480, 476, 522, 476, /* 180 */ 582, 650, 824, 705, 890, 664, 724, 724, 814, 724, /* 190 */ 885, 887, 476, 960, 949, 961, 979, 1047, 987, 1053, /* 200 */ 1003, 1064, 1031, 1042, 1093, 1048, 1057, 1105, 1108, 1119, /* 210 */ 1076, 1080, 1081, 1115, 1121, 1135, 1126, 1138, 1139, 1140, /* 220 */ 1149, 1147, 1152, 1150, 1075, 1141, 1110, 1142, 1153, 1094, /* 230 */ 1151, 1154, 1155, 1156, 1157, 1161, 1160, 1165, 1132, 1133, /* 240 */ 1137, 1159, 1163, 1164, 1166, 1171, 1179, 1145, 1162, 1168, /* 250 */ 1120, 1117, 1112, 1190, 1130, 1136, 1169, 1195, 1148, 1172, /* 260 */ 1204, 1173, 1174, 1176, 1101, 1170, 1178, 1103, 1180, 1181, /* 270 */ 1182, 476, 1090, 1127, 1131, 1144, 1175, 1143, 1193, 1128, /* 280 */ 1184, 1188, 724, 1266, 1187, 1267, 1263, 1264, 1222, 1217, /* 290 */ 1234, 1236, 1237, 1238, 1239, 1225, 1241, 1232, 1280, 1261, /* 300 */ 1281, 1288, 1194, 1268, 1253, 1276, 1296, 1293, 1317, 1322, /* 310 */ 1243, 1240, 1270, 1271, 1300, 1302, 1306, 1310, 1330, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 10 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 20 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 30 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 40 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 50 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 60 */ 2091, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 70 */ 1779, 1779, 1779, 1779, 2064, 1779, 1779, 1779, 1779, 1779, /* 80 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 90 */ 1779, 1868, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 100 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 110 */ 1866, 2057, 2283, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 120 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 130 */ 1779, 1779, 1779, 1779, 1779, 1779, 2295, 1779, 1779, 1842, /* 140 */ 1842, 1779, 2295, 2295, 2295, 1866, 2255, 2255, 1779, 1868, /* 150 */ 1779, 1779, 1779, 1779, 2125, 1779, 1779, 1779, 1779, 1779, /* 160 */ 1779, 1989, 1779, 2013, 1779, 1779, 1779, 2117, 1779, 1779, /* 170 */ 2320, 2377, 1779, 1779, 2323, 1779, 1779, 1779, 1779, 1779, /* 180 */ 1779, 2069, 1779, 1779, 1941, 2310, 2287, 2301, 2361, 2288, /* 190 */ 2285, 2304, 1779, 2314, 1779, 1779, 2139, 1868, 1779, 1868, /* 200 */ 2104, 1779, 2062, 1779, 1779, 2062, 2059, 1779, 1779, 1779, /* 210 */ 2062, 2059, 2059, 1930, 1926, 1779, 1924, 1779, 1779, 1779, /* 220 */ 1779, 1826, 1779, 1826, 1779, 1868, 1779, 1868, 1779, 1779, /* 230 */ 1868, 1779, 1868, 1868, 1868, 1779, 1868, 1779, 1779, 1779, /* 240 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 250 */ 2137, 2123, 1779, 1866, 2115, 2113, 1779, 1866, 2111, 2314, /* 260 */ 1779, 1779, 1779, 1779, 2331, 2329, 1779, 2331, 2329, 1779, /* 270 */ 1779, 1779, 2345, 2341, 2331, 2350, 2347, 2316, 2314, 2380, /* 280 */ 2367, 2363, 2301, 1779, 1779, 1779, 1866, 1866, 1779, 2329, /* 290 */ 1779, 1779, 1779, 1779, 1779, 2329, 1779, 1779, 1866, 1779, /* 300 */ 1866, 1779, 1779, 1957, 1779, 1779, 1779, 1866, 1811, 1779, /* 310 */ 2106, 2128, 2087, 2087, 1992, 1992, 1992, 1869, 1784, 1779, /* 320 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 330 */ 1779, 2344, 2343, 2210, 1779, 2259, 2258, 2257, 2248, 2209, /* 340 */ 1953, 1779, 2208, 2207, 1779, 1779, 1779, 1779, 1779, 1779, /* 350 */ 1779, 1779, 1779, 2078, 2077, 2201, 1779, 1779, 2202, 2200, /* 360 */ 2199, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 370 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 380 */ 1779, 1779, 1779, 1779, 1779, 2364, 2368, 1779, 1779, 1779, /* 390 */ 1779, 1779, 1779, 2284, 1779, 1779, 1779, 2183, 1779, 1779, /* 400 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 410 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 420 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 430 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 440 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 450 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 460 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 470 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 480 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 490 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 500 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 510 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 520 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 530 */ 1779, 1816, 2188, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 540 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 550 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 560 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 570 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 580 */ 1779, 1779, 1779, 1907, 1906, 1779, 1779, 1779, 1779, 1779, /* 590 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 600 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 2192, 1779, 1779, /* 610 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 620 */ 1779, 1779, 1779, 1779, 1779, 1779, 2360, 2317, 1779, 1779, /* 630 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 640 */ 1779, 1779, 1779, 1779, 1779, 1779, 2183, 1779, 2342, 1779, /* 650 */ 1779, 2358, 1779, 2362, 1779, 1779, 1779, 1779, 1779, 1779, /* 660 */ 1779, 2294, 2290, 1779, 1779, 2286, 1779, 1779, 1779, 1779, /* 670 */ 1779, 2191, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 680 */ 1779, 1779, 1779, 1779, 1779, 2182, 1779, 2245, 1779, 1779, /* 690 */ 1779, 2279, 1779, 1779, 2230, 1779, 1779, 1779, 1779, 1779, /* 700 */ 1779, 1779, 1779, 1779, 2192, 1779, 2195, 1779, 1779, 1779, /* 710 */ 1779, 1779, 1986, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 720 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1970, 1968, /* 730 */ 1967, 1966, 1779, 1963, 1779, 1999, 1779, 1779, 1779, 1995, /* 740 */ 1994, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 750 */ 1779, 1779, 1779, 1779, 1887, 1779, 1779, 1779, 1779, 1779, /* 760 */ 1779, 1779, 1779, 1879, 1779, 1878, 1779, 1779, 1779, 1779, /* 770 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 780 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, /* 790 */ 1779, 1779, 1779, 1779, 1779, 1779, 1779, 1779, }; /********** 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 */ 287, /* 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, /* COMMENT => nothing */ 0, /* BOOL => nothing */ 0, /* TINYINT => nothing */ 0, /* SMALLINT => nothing */ 0, /* INT => nothing */ 0, /* INTEGER => nothing */ 0, /* BIGINT => nothing */ 0, /* FLOAT => nothing */ 0, /* DOUBLE => nothing */ 0, /* BINARY => nothing */ 0, /* 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, /* 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, /* 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 */ 287, /* AFTER => ABORT */ 287, /* ATTACH => ABORT */ 287, /* BEFORE => ABORT */ 287, /* BEGIN => ABORT */ 287, /* BITAND => ABORT */ 287, /* BITNOT => ABORT */ 287, /* BITOR => ABORT */ 287, /* BLOCKS => ABORT */ 287, /* CHANGE => ABORT */ 287, /* COMMA => ABORT */ 287, /* CONCAT => ABORT */ 287, /* CONFLICT => ABORT */ 287, /* COPY => ABORT */ 287, /* DEFERRED => ABORT */ 287, /* DELIMITERS => ABORT */ 287, /* DETACH => ABORT */ 287, /* DIVIDE => ABORT */ 287, /* DOT => ABORT */ 287, /* EACH => ABORT */ 287, /* FAIL => ABORT */ 287, /* FILE => ABORT */ 287, /* FOR => ABORT */ 287, /* GLOB => ABORT */ 287, /* ID => ABORT */ 287, /* IMMEDIATE => ABORT */ 287, /* IMPORT => ABORT */ 287, /* INITIALLY => ABORT */ 287, /* INSTEAD => ABORT */ 287, /* ISNULL => ABORT */ 287, /* KEY => ABORT */ 287, /* MODULES => ABORT */ 287, /* NK_BITNOT => ABORT */ 287, /* NK_SEMI => ABORT */ 287, /* NOTNULL => ABORT */ 287, /* OF => ABORT */ 287, /* PLUS => ABORT */ 287, /* PRIVILEGE => ABORT */ 287, /* RAISE => ABORT */ 287, /* RESTRICT => ABORT */ 287, /* ROW => ABORT */ 287, /* SEMI => ABORT */ 287, /* STAR => ABORT */ 287, /* STATEMENT => ABORT */ 287, /* STRICT => ABORT */ 287, /* STRING => ABORT */ 287, /* TIMES => ABORT */ 287, /* VALUES => ABORT */ 287, /* VARIABLE => ABORT */ 287, /* VIEW => ABORT */ 287, /* 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 #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 */ "COMMENT", /* 116 */ "BOOL", /* 117 */ "TINYINT", /* 118 */ "SMALLINT", /* 119 */ "INT", /* 120 */ "INTEGER", /* 121 */ "BIGINT", /* 122 */ "FLOAT", /* 123 */ "DOUBLE", /* 124 */ "BINARY", /* 125 */ "NCHAR", /* 126 */ "UNSIGNED", /* 127 */ "JSON", /* 128 */ "VARCHAR", /* 129 */ "MEDIUMBLOB", /* 130 */ "BLOB", /* 131 */ "VARBINARY", /* 132 */ "GEOMETRY", /* 133 */ "DECIMAL", /* 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 */ "DISTINCT", /* 262 */ "WHERE", /* 263 */ "PARTITION", /* 264 */ "BY", /* 265 */ "SESSION", /* 266 */ "STATE_WINDOW", /* 267 */ "EVENT_WINDOW", /* 268 */ "SLIDING", /* 269 */ "FILL", /* 270 */ "VALUE", /* 271 */ "VALUE_F", /* 272 */ "NONE", /* 273 */ "PREV", /* 274 */ "NULL_F", /* 275 */ "LINEAR", /* 276 */ "NEXT", /* 277 */ "HAVING", /* 278 */ "RANGE", /* 279 */ "EVERY", /* 280 */ "ORDER", /* 281 */ "SLIMIT", /* 282 */ "SOFFSET", /* 283 */ "LIMIT", /* 284 */ "OFFSET", /* 285 */ "ASC", /* 286 */ "NULLS", /* 287 */ "ABORT", /* 288 */ "AFTER", /* 289 */ "ATTACH", /* 290 */ "BEFORE", /* 291 */ "BEGIN", /* 292 */ "BITAND", /* 293 */ "BITNOT", /* 294 */ "BITOR", /* 295 */ "BLOCKS", /* 296 */ "CHANGE", /* 297 */ "COMMA", /* 298 */ "CONCAT", /* 299 */ "CONFLICT", /* 300 */ "COPY", /* 301 */ "DEFERRED", /* 302 */ "DELIMITERS", /* 303 */ "DETACH", /* 304 */ "DIVIDE", /* 305 */ "DOT", /* 306 */ "EACH", /* 307 */ "FAIL", /* 308 */ "FILE", /* 309 */ "FOR", /* 310 */ "GLOB", /* 311 */ "ID", /* 312 */ "IMMEDIATE", /* 313 */ "IMPORT", /* 314 */ "INITIALLY", /* 315 */ "INSTEAD", /* 316 */ "ISNULL", /* 317 */ "KEY", /* 318 */ "MODULES", /* 319 */ "NK_BITNOT", /* 320 */ "NK_SEMI", /* 321 */ "NOTNULL", /* 322 */ "OF", /* 323 */ "PLUS", /* 324 */ "PRIVILEGE", /* 325 */ "RAISE", /* 326 */ "RESTRICT", /* 327 */ "ROW", /* 328 */ "SEMI", /* 329 */ "STAR", /* 330 */ "STATEMENT", /* 331 */ "STRICT", /* 332 */ "STRING", /* 333 */ "TIMES", /* 334 */ "VALUES", /* 335 */ "VARIABLE", /* 336 */ "VIEW", /* 337 */ "WAL", /* 338 */ "cmd", /* 339 */ "account_options", /* 340 */ "alter_account_options", /* 341 */ "literal", /* 342 */ "alter_account_option", /* 343 */ "user_name", /* 344 */ "sysinfo_opt", /* 345 */ "privileges", /* 346 */ "priv_level", /* 347 */ "with_opt", /* 348 */ "priv_type_list", /* 349 */ "priv_type", /* 350 */ "db_name", /* 351 */ "table_name", /* 352 */ "topic_name", /* 353 */ "search_condition", /* 354 */ "dnode_endpoint", /* 355 */ "force_opt", /* 356 */ "unsafe_opt", /* 357 */ "not_exists_opt", /* 358 */ "db_options", /* 359 */ "exists_opt", /* 360 */ "alter_db_options", /* 361 */ "speed_opt", /* 362 */ "start_opt", /* 363 */ "end_opt", /* 364 */ "integer_list", /* 365 */ "variable_list", /* 366 */ "retention_list", /* 367 */ "signed", /* 368 */ "alter_db_option", /* 369 */ "retention", /* 370 */ "full_table_name", /* 371 */ "column_def_list", /* 372 */ "tags_def_opt", /* 373 */ "table_options", /* 374 */ "multi_create_clause", /* 375 */ "tags_def", /* 376 */ "multi_drop_clause", /* 377 */ "alter_table_clause", /* 378 */ "alter_table_options", /* 379 */ "column_def", /* 380 */ "column_name", /* 381 */ "signed_literal", /* 382 */ "create_subtable_clause", /* 383 */ "specific_cols_opt", /* 384 */ "expression_list", /* 385 */ "drop_table_clause", /* 386 */ "col_name_list", /* 387 */ "type_name", /* 388 */ "duration_list", /* 389 */ "rollup_func_list", /* 390 */ "alter_table_option", /* 391 */ "duration_literal", /* 392 */ "rollup_func_name", /* 393 */ "function_name", /* 394 */ "col_name", /* 395 */ "db_name_cond_opt", /* 396 */ "like_pattern_opt", /* 397 */ "table_name_cond", /* 398 */ "from_db_opt", /* 399 */ "tag_list_opt", /* 400 */ "tag_item", /* 401 */ "column_alias", /* 402 */ "full_index_name", /* 403 */ "index_options", /* 404 */ "index_name", /* 405 */ "func_list", /* 406 */ "sliding_opt", /* 407 */ "sma_stream_opt", /* 408 */ "func", /* 409 */ "sma_func_name", /* 410 */ "with_meta", /* 411 */ "query_or_subquery", /* 412 */ "where_clause_opt", /* 413 */ "cgroup_name", /* 414 */ "analyze_opt", /* 415 */ "explain_options", /* 416 */ "insert_query", /* 417 */ "or_replace_opt", /* 418 */ "agg_func_opt", /* 419 */ "bufsize_opt", /* 420 */ "language_opt", /* 421 */ "stream_name", /* 422 */ "stream_options", /* 423 */ "col_list_opt", /* 424 */ "tag_def_or_ref_opt", /* 425 */ "subtable_opt", /* 426 */ "ignore_opt", /* 427 */ "expression", /* 428 */ "dnode_list", /* 429 */ "literal_func", /* 430 */ "literal_list", /* 431 */ "table_alias", /* 432 */ "expr_or_subquery", /* 433 */ "pseudo_column", /* 434 */ "column_reference", /* 435 */ "function_expression", /* 436 */ "case_when_expression", /* 437 */ "star_func", /* 438 */ "star_func_para_list", /* 439 */ "noarg_func", /* 440 */ "other_para_list", /* 441 */ "star_func_para", /* 442 */ "when_then_list", /* 443 */ "case_when_else_opt", /* 444 */ "common_expression", /* 445 */ "when_then_expr", /* 446 */ "predicate", /* 447 */ "compare_op", /* 448 */ "in_op", /* 449 */ "in_predicate_value", /* 450 */ "boolean_value_expression", /* 451 */ "boolean_primary", /* 452 */ "from_clause_opt", /* 453 */ "table_reference_list", /* 454 */ "table_reference", /* 455 */ "table_primary", /* 456 */ "joined_table", /* 457 */ "alias_opt", /* 458 */ "subquery", /* 459 */ "parenthesized_joined_table", /* 460 */ "join_type", /* 461 */ "query_specification", /* 462 */ "set_quantifier_opt", /* 463 */ "select_list", /* 464 */ "partition_by_clause_opt", /* 465 */ "range_opt", /* 466 */ "every_opt", /* 467 */ "fill_opt", /* 468 */ "twindow_clause_opt", /* 469 */ "group_by_clause_opt", /* 470 */ "having_clause_opt", /* 471 */ "select_item", /* 472 */ "partition_list", /* 473 */ "partition_item", /* 474 */ "fill_mode", /* 475 */ "group_by_list", /* 476 */ "query_expression", /* 477 */ "query_simple", /* 478 */ "order_by_clause_opt", /* 479 */ "slimit_clause_opt", /* 480 */ "limit_clause_opt", /* 481 */ "union_query_expression", /* 482 */ "query_simple_or_subquery", /* 483 */ "sort_specification_list", /* 484 */ "sort_specification", /* 485 */ "ordering_specification_opt", /* 486 */ "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_def", /* 161 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", /* 162 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_def", /* 163 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", /* 164 */ "alter_table_clause ::= full_table_name ADD TAG column_def", /* 165 */ "alter_table_clause ::= full_table_name DROP TAG column_name", /* 166 */ "alter_table_clause ::= full_table_name MODIFY TAG column_def", /* 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 */ "column_def ::= column_name type_name COMMENT NK_STRING", /* 183 */ "type_name ::= BOOL", /* 184 */ "type_name ::= TINYINT", /* 185 */ "type_name ::= SMALLINT", /* 186 */ "type_name ::= INT", /* 187 */ "type_name ::= INTEGER", /* 188 */ "type_name ::= BIGINT", /* 189 */ "type_name ::= FLOAT", /* 190 */ "type_name ::= DOUBLE", /* 191 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", /* 192 */ "type_name ::= TIMESTAMP", /* 193 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", /* 194 */ "type_name ::= TINYINT UNSIGNED", /* 195 */ "type_name ::= SMALLINT UNSIGNED", /* 196 */ "type_name ::= INT UNSIGNED", /* 197 */ "type_name ::= BIGINT UNSIGNED", /* 198 */ "type_name ::= JSON", /* 199 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", /* 200 */ "type_name ::= MEDIUMBLOB", /* 201 */ "type_name ::= BLOB", /* 202 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", /* 203 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", /* 204 */ "type_name ::= DECIMAL", /* 205 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 206 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 207 */ "tags_def_opt ::=", /* 208 */ "tags_def_opt ::= tags_def", /* 209 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", /* 210 */ "table_options ::=", /* 211 */ "table_options ::= table_options COMMENT NK_STRING", /* 212 */ "table_options ::= table_options MAX_DELAY duration_list", /* 213 */ "table_options ::= table_options WATERMARK duration_list", /* 214 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", /* 215 */ "table_options ::= table_options TTL NK_INTEGER", /* 216 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", /* 217 */ "table_options ::= table_options DELETE_MARK duration_list", /* 218 */ "alter_table_options ::= alter_table_option", /* 219 */ "alter_table_options ::= alter_table_options alter_table_option", /* 220 */ "alter_table_option ::= COMMENT NK_STRING", /* 221 */ "alter_table_option ::= TTL NK_INTEGER", /* 222 */ "duration_list ::= duration_literal", /* 223 */ "duration_list ::= duration_list NK_COMMA duration_literal", /* 224 */ "rollup_func_list ::= rollup_func_name", /* 225 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", /* 226 */ "rollup_func_name ::= function_name", /* 227 */ "rollup_func_name ::= FIRST", /* 228 */ "rollup_func_name ::= LAST", /* 229 */ "col_name_list ::= col_name", /* 230 */ "col_name_list ::= col_name_list NK_COMMA col_name", /* 231 */ "col_name ::= column_name", /* 232 */ "cmd ::= SHOW DNODES", /* 233 */ "cmd ::= SHOW USERS", /* 234 */ "cmd ::= SHOW USER PRIVILEGES", /* 235 */ "cmd ::= SHOW DATABASES", /* 236 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", /* 237 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", /* 238 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", /* 239 */ "cmd ::= SHOW MNODES", /* 240 */ "cmd ::= SHOW QNODES", /* 241 */ "cmd ::= SHOW FUNCTIONS", /* 242 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", /* 243 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", /* 244 */ "cmd ::= SHOW STREAMS", /* 245 */ "cmd ::= SHOW ACCOUNTS", /* 246 */ "cmd ::= SHOW APPS", /* 247 */ "cmd ::= SHOW CONNECTIONS", /* 248 */ "cmd ::= SHOW LICENCES", /* 249 */ "cmd ::= SHOW GRANTS", /* 250 */ "cmd ::= SHOW CREATE DATABASE db_name", /* 251 */ "cmd ::= SHOW CREATE TABLE full_table_name", /* 252 */ "cmd ::= SHOW CREATE STABLE full_table_name", /* 253 */ "cmd ::= SHOW QUERIES", /* 254 */ "cmd ::= SHOW SCORES", /* 255 */ "cmd ::= SHOW TOPICS", /* 256 */ "cmd ::= SHOW VARIABLES", /* 257 */ "cmd ::= SHOW CLUSTER VARIABLES", /* 258 */ "cmd ::= SHOW LOCAL VARIABLES", /* 259 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", /* 260 */ "cmd ::= SHOW BNODES", /* 261 */ "cmd ::= SHOW SNODES", /* 262 */ "cmd ::= SHOW CLUSTER", /* 263 */ "cmd ::= SHOW TRANSACTIONS", /* 264 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", /* 265 */ "cmd ::= SHOW CONSUMERS", /* 266 */ "cmd ::= SHOW SUBSCRIPTIONS", /* 267 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", /* 268 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", /* 269 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", /* 270 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", /* 271 */ "cmd ::= SHOW VNODES NK_INTEGER", /* 272 */ "cmd ::= SHOW VNODES NK_STRING", /* 273 */ "cmd ::= SHOW db_name_cond_opt ALIVE", /* 274 */ "cmd ::= SHOW CLUSTER ALIVE", /* 275 */ "db_name_cond_opt ::=", /* 276 */ "db_name_cond_opt ::= db_name NK_DOT", /* 277 */ "like_pattern_opt ::=", /* 278 */ "like_pattern_opt ::= LIKE NK_STRING", /* 279 */ "table_name_cond ::= table_name", /* 280 */ "from_db_opt ::=", /* 281 */ "from_db_opt ::= FROM db_name", /* 282 */ "tag_list_opt ::=", /* 283 */ "tag_list_opt ::= tag_item", /* 284 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", /* 285 */ "tag_item ::= TBNAME", /* 286 */ "tag_item ::= QTAGS", /* 287 */ "tag_item ::= column_name", /* 288 */ "tag_item ::= column_name column_alias", /* 289 */ "tag_item ::= column_name AS column_alias", /* 290 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options", /* 291 */ "cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP", /* 292 */ "cmd ::= DROP INDEX exists_opt full_index_name", /* 293 */ "full_index_name ::= index_name", /* 294 */ "full_index_name ::= db_name NK_DOT index_name", /* 295 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", /* 296 */ "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", /* 297 */ "func_list ::= func", /* 298 */ "func_list ::= func_list NK_COMMA func", /* 299 */ "func ::= sma_func_name NK_LP expression_list NK_RP", /* 300 */ "sma_func_name ::= function_name", /* 301 */ "sma_func_name ::= COUNT", /* 302 */ "sma_func_name ::= FIRST", /* 303 */ "sma_func_name ::= LAST", /* 304 */ "sma_func_name ::= LAST_ROW", /* 305 */ "sma_stream_opt ::=", /* 306 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", /* 307 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", /* 308 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", /* 309 */ "with_meta ::= AS", /* 310 */ "with_meta ::= WITH META AS", /* 311 */ "with_meta ::= ONLY META AS", /* 312 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", /* 313 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", /* 314 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", /* 315 */ "cmd ::= DROP TOPIC exists_opt topic_name", /* 316 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", /* 317 */ "cmd ::= DESC full_table_name", /* 318 */ "cmd ::= DESCRIBE full_table_name", /* 319 */ "cmd ::= RESET QUERY CACHE", /* 320 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", /* 321 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", /* 322 */ "analyze_opt ::=", /* 323 */ "analyze_opt ::= ANALYZE", /* 324 */ "explain_options ::=", /* 325 */ "explain_options ::= explain_options VERBOSE NK_BOOL", /* 326 */ "explain_options ::= explain_options RATIO NK_FLOAT", /* 327 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", /* 328 */ "cmd ::= DROP FUNCTION exists_opt function_name", /* 329 */ "agg_func_opt ::=", /* 330 */ "agg_func_opt ::= AGGREGATE", /* 331 */ "bufsize_opt ::=", /* 332 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", /* 333 */ "language_opt ::=", /* 334 */ "language_opt ::= LANGUAGE NK_STRING", /* 335 */ "or_replace_opt ::=", /* 336 */ "or_replace_opt ::= OR REPLACE", /* 337 */ "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", /* 338 */ "cmd ::= DROP STREAM exists_opt stream_name", /* 339 */ "cmd ::= PAUSE STREAM exists_opt stream_name", /* 340 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", /* 341 */ "col_list_opt ::=", /* 342 */ "col_list_opt ::= NK_LP col_name_list NK_RP", /* 343 */ "tag_def_or_ref_opt ::=", /* 344 */ "tag_def_or_ref_opt ::= tags_def", /* 345 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", /* 346 */ "stream_options ::=", /* 347 */ "stream_options ::= stream_options TRIGGER AT_ONCE", /* 348 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", /* 349 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", /* 350 */ "stream_options ::= stream_options WATERMARK duration_literal", /* 351 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", /* 352 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", /* 353 */ "stream_options ::= stream_options DELETE_MARK duration_literal", /* 354 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", /* 355 */ "subtable_opt ::=", /* 356 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", /* 357 */ "ignore_opt ::=", /* 358 */ "ignore_opt ::= IGNORE UNTREATED", /* 359 */ "cmd ::= KILL CONNECTION NK_INTEGER", /* 360 */ "cmd ::= KILL QUERY NK_STRING", /* 361 */ "cmd ::= KILL TRANSACTION NK_INTEGER", /* 362 */ "cmd ::= BALANCE VGROUP", /* 363 */ "cmd ::= BALANCE VGROUP LEADER", /* 364 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", /* 365 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", /* 366 */ "cmd ::= SPLIT VGROUP NK_INTEGER", /* 367 */ "dnode_list ::= DNODE NK_INTEGER", /* 368 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", /* 369 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 370 */ "cmd ::= query_or_subquery", /* 371 */ "cmd ::= insert_query", /* 372 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", /* 373 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", /* 374 */ "literal ::= NK_INTEGER", /* 375 */ "literal ::= NK_FLOAT", /* 376 */ "literal ::= NK_STRING", /* 377 */ "literal ::= NK_BOOL", /* 378 */ "literal ::= TIMESTAMP NK_STRING", /* 379 */ "literal ::= duration_literal", /* 380 */ "literal ::= NULL", /* 381 */ "literal ::= NK_QUESTION", /* 382 */ "duration_literal ::= NK_VARIABLE", /* 383 */ "signed ::= NK_INTEGER", /* 384 */ "signed ::= NK_PLUS NK_INTEGER", /* 385 */ "signed ::= NK_MINUS NK_INTEGER", /* 386 */ "signed ::= NK_FLOAT", /* 387 */ "signed ::= NK_PLUS NK_FLOAT", /* 388 */ "signed ::= NK_MINUS NK_FLOAT", /* 389 */ "signed_literal ::= signed", /* 390 */ "signed_literal ::= NK_STRING", /* 391 */ "signed_literal ::= NK_BOOL", /* 392 */ "signed_literal ::= TIMESTAMP NK_STRING", /* 393 */ "signed_literal ::= duration_literal", /* 394 */ "signed_literal ::= NULL", /* 395 */ "signed_literal ::= literal_func", /* 396 */ "signed_literal ::= NK_QUESTION", /* 397 */ "literal_list ::= signed_literal", /* 398 */ "literal_list ::= literal_list NK_COMMA signed_literal", /* 399 */ "db_name ::= NK_ID", /* 400 */ "table_name ::= NK_ID", /* 401 */ "column_name ::= NK_ID", /* 402 */ "function_name ::= NK_ID", /* 403 */ "table_alias ::= NK_ID", /* 404 */ "column_alias ::= NK_ID", /* 405 */ "user_name ::= NK_ID", /* 406 */ "topic_name ::= NK_ID", /* 407 */ "stream_name ::= NK_ID", /* 408 */ "cgroup_name ::= NK_ID", /* 409 */ "index_name ::= NK_ID", /* 410 */ "expr_or_subquery ::= expression", /* 411 */ "expression ::= literal", /* 412 */ "expression ::= pseudo_column", /* 413 */ "expression ::= column_reference", /* 414 */ "expression ::= function_expression", /* 415 */ "expression ::= case_when_expression", /* 416 */ "expression ::= NK_LP expression NK_RP", /* 417 */ "expression ::= NK_PLUS expr_or_subquery", /* 418 */ "expression ::= NK_MINUS expr_or_subquery", /* 419 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", /* 420 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", /* 421 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", /* 422 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", /* 423 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", /* 424 */ "expression ::= column_reference NK_ARROW NK_STRING", /* 425 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", /* 426 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", /* 427 */ "expression_list ::= expr_or_subquery", /* 428 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", /* 429 */ "column_reference ::= column_name", /* 430 */ "column_reference ::= table_name NK_DOT column_name", /* 431 */ "pseudo_column ::= ROWTS", /* 432 */ "pseudo_column ::= TBNAME", /* 433 */ "pseudo_column ::= table_name NK_DOT TBNAME", /* 434 */ "pseudo_column ::= QSTART", /* 435 */ "pseudo_column ::= QEND", /* 436 */ "pseudo_column ::= QDURATION", /* 437 */ "pseudo_column ::= WSTART", /* 438 */ "pseudo_column ::= WEND", /* 439 */ "pseudo_column ::= WDURATION", /* 440 */ "pseudo_column ::= IROWTS", /* 441 */ "pseudo_column ::= ISFILLED", /* 442 */ "pseudo_column ::= QTAGS", /* 443 */ "function_expression ::= function_name NK_LP expression_list NK_RP", /* 444 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", /* 445 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", /* 446 */ "function_expression ::= literal_func", /* 447 */ "literal_func ::= noarg_func NK_LP NK_RP", /* 448 */ "literal_func ::= NOW", /* 449 */ "noarg_func ::= NOW", /* 450 */ "noarg_func ::= TODAY", /* 451 */ "noarg_func ::= TIMEZONE", /* 452 */ "noarg_func ::= DATABASE", /* 453 */ "noarg_func ::= CLIENT_VERSION", /* 454 */ "noarg_func ::= SERVER_VERSION", /* 455 */ "noarg_func ::= SERVER_STATUS", /* 456 */ "noarg_func ::= CURRENT_USER", /* 457 */ "noarg_func ::= USER", /* 458 */ "star_func ::= COUNT", /* 459 */ "star_func ::= FIRST", /* 460 */ "star_func ::= LAST", /* 461 */ "star_func ::= LAST_ROW", /* 462 */ "star_func_para_list ::= NK_STAR", /* 463 */ "star_func_para_list ::= other_para_list", /* 464 */ "other_para_list ::= star_func_para", /* 465 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", /* 466 */ "star_func_para ::= expr_or_subquery", /* 467 */ "star_func_para ::= table_name NK_DOT NK_STAR", /* 468 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", /* 469 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", /* 470 */ "when_then_list ::= when_then_expr", /* 471 */ "when_then_list ::= when_then_list when_then_expr", /* 472 */ "when_then_expr ::= WHEN common_expression THEN common_expression", /* 473 */ "case_when_else_opt ::=", /* 474 */ "case_when_else_opt ::= ELSE common_expression", /* 475 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", /* 476 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", /* 477 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", /* 478 */ "predicate ::= expr_or_subquery IS NULL", /* 479 */ "predicate ::= expr_or_subquery IS NOT NULL", /* 480 */ "predicate ::= expr_or_subquery in_op in_predicate_value", /* 481 */ "compare_op ::= NK_LT", /* 482 */ "compare_op ::= NK_GT", /* 483 */ "compare_op ::= NK_LE", /* 484 */ "compare_op ::= NK_GE", /* 485 */ "compare_op ::= NK_NE", /* 486 */ "compare_op ::= NK_EQ", /* 487 */ "compare_op ::= LIKE", /* 488 */ "compare_op ::= NOT LIKE", /* 489 */ "compare_op ::= MATCH", /* 490 */ "compare_op ::= NMATCH", /* 491 */ "compare_op ::= CONTAINS", /* 492 */ "in_op ::= IN", /* 493 */ "in_op ::= NOT IN", /* 494 */ "in_predicate_value ::= NK_LP literal_list NK_RP", /* 495 */ "boolean_value_expression ::= boolean_primary", /* 496 */ "boolean_value_expression ::= NOT boolean_primary", /* 497 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 498 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 499 */ "boolean_primary ::= predicate", /* 500 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 501 */ "common_expression ::= expr_or_subquery", /* 502 */ "common_expression ::= boolean_value_expression", /* 503 */ "from_clause_opt ::=", /* 504 */ "from_clause_opt ::= FROM table_reference_list", /* 505 */ "table_reference_list ::= table_reference", /* 506 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 507 */ "table_reference ::= table_primary", /* 508 */ "table_reference ::= joined_table", /* 509 */ "table_primary ::= table_name alias_opt", /* 510 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 511 */ "table_primary ::= subquery alias_opt", /* 512 */ "table_primary ::= parenthesized_joined_table", /* 513 */ "alias_opt ::=", /* 514 */ "alias_opt ::= table_alias", /* 515 */ "alias_opt ::= AS table_alias", /* 516 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 517 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 518 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 519 */ "join_type ::=", /* 520 */ "join_type ::= INNER", /* 521 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", /* 522 */ "set_quantifier_opt ::=", /* 523 */ "set_quantifier_opt ::= DISTINCT", /* 524 */ "set_quantifier_opt ::= ALL", /* 525 */ "select_list ::= select_item", /* 526 */ "select_list ::= select_list NK_COMMA select_item", /* 527 */ "select_item ::= NK_STAR", /* 528 */ "select_item ::= common_expression", /* 529 */ "select_item ::= common_expression column_alias", /* 530 */ "select_item ::= common_expression AS column_alias", /* 531 */ "select_item ::= table_name NK_DOT NK_STAR", /* 532 */ "where_clause_opt ::=", /* 533 */ "where_clause_opt ::= WHERE search_condition", /* 534 */ "partition_by_clause_opt ::=", /* 535 */ "partition_by_clause_opt ::= PARTITION BY partition_list", /* 536 */ "partition_list ::= partition_item", /* 537 */ "partition_list ::= partition_list NK_COMMA partition_item", /* 538 */ "partition_item ::= expr_or_subquery", /* 539 */ "partition_item ::= expr_or_subquery column_alias", /* 540 */ "partition_item ::= expr_or_subquery AS column_alias", /* 541 */ "twindow_clause_opt ::=", /* 542 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", /* 543 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", /* 544 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", /* 545 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", /* 546 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", /* 547 */ "sliding_opt ::=", /* 548 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", /* 549 */ "fill_opt ::=", /* 550 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 551 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", /* 552 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", /* 553 */ "fill_mode ::= NONE", /* 554 */ "fill_mode ::= PREV", /* 555 */ "fill_mode ::= NULL", /* 556 */ "fill_mode ::= NULL_F", /* 557 */ "fill_mode ::= LINEAR", /* 558 */ "fill_mode ::= NEXT", /* 559 */ "group_by_clause_opt ::=", /* 560 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 561 */ "group_by_list ::= expr_or_subquery", /* 562 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", /* 563 */ "having_clause_opt ::=", /* 564 */ "having_clause_opt ::= HAVING search_condition", /* 565 */ "range_opt ::=", /* 566 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", /* 567 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", /* 568 */ "every_opt ::=", /* 569 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", /* 570 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 571 */ "query_simple ::= query_specification", /* 572 */ "query_simple ::= union_query_expression", /* 573 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", /* 574 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", /* 575 */ "query_simple_or_subquery ::= query_simple", /* 576 */ "query_simple_or_subquery ::= subquery", /* 577 */ "query_or_subquery ::= query_expression", /* 578 */ "query_or_subquery ::= subquery", /* 579 */ "order_by_clause_opt ::=", /* 580 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 581 */ "slimit_clause_opt ::=", /* 582 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 583 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 584 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 585 */ "limit_clause_opt ::=", /* 586 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 587 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 588 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 589 */ "subquery ::= NK_LP query_expression NK_RP", /* 590 */ "subquery ::= NK_LP subquery NK_RP", /* 591 */ "search_condition ::= common_expression", /* 592 */ "sort_specification_list ::= sort_specification", /* 593 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 594 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", /* 595 */ "ordering_specification_opt ::=", /* 596 */ "ordering_specification_opt ::= ASC", /* 597 */ "ordering_specification_opt ::= DESC", /* 598 */ "null_ordering_opt ::=", /* 599 */ "null_ordering_opt ::= NULLS FIRST", /* 600 */ "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 338: /* cmd */ case 341: /* literal */ case 347: /* with_opt */ case 353: /* search_condition */ case 358: /* db_options */ case 360: /* alter_db_options */ case 362: /* start_opt */ case 363: /* end_opt */ case 367: /* signed */ case 369: /* retention */ case 370: /* full_table_name */ case 373: /* table_options */ case 377: /* alter_table_clause */ case 378: /* alter_table_options */ case 379: /* column_def */ case 381: /* signed_literal */ case 382: /* create_subtable_clause */ case 385: /* drop_table_clause */ case 391: /* duration_literal */ case 392: /* rollup_func_name */ case 394: /* col_name */ case 395: /* db_name_cond_opt */ case 396: /* like_pattern_opt */ case 397: /* table_name_cond */ case 398: /* from_db_opt */ case 400: /* tag_item */ case 402: /* full_index_name */ case 403: /* index_options */ case 406: /* sliding_opt */ case 407: /* sma_stream_opt */ case 408: /* func */ case 411: /* query_or_subquery */ case 412: /* where_clause_opt */ case 415: /* explain_options */ case 416: /* insert_query */ case 422: /* stream_options */ case 425: /* subtable_opt */ case 427: /* expression */ case 429: /* literal_func */ case 432: /* expr_or_subquery */ case 433: /* pseudo_column */ case 434: /* column_reference */ case 435: /* function_expression */ case 436: /* case_when_expression */ case 441: /* star_func_para */ case 443: /* case_when_else_opt */ case 444: /* common_expression */ case 445: /* when_then_expr */ case 446: /* predicate */ case 449: /* in_predicate_value */ case 450: /* boolean_value_expression */ case 451: /* boolean_primary */ case 452: /* from_clause_opt */ case 453: /* table_reference_list */ case 454: /* table_reference */ case 455: /* table_primary */ case 456: /* joined_table */ case 458: /* subquery */ case 459: /* parenthesized_joined_table */ case 461: /* query_specification */ case 465: /* range_opt */ case 466: /* every_opt */ case 467: /* fill_opt */ case 468: /* twindow_clause_opt */ case 470: /* having_clause_opt */ case 471: /* select_item */ case 473: /* partition_item */ case 476: /* query_expression */ case 477: /* query_simple */ case 479: /* slimit_clause_opt */ case 480: /* limit_clause_opt */ case 481: /* union_query_expression */ case 482: /* query_simple_or_subquery */ case 484: /* sort_specification */ { nodesDestroyNode((yypminor->yy452)); } break; case 339: /* account_options */ case 340: /* alter_account_options */ case 342: /* alter_account_option */ case 361: /* speed_opt */ case 410: /* with_meta */ case 419: /* bufsize_opt */ { } break; case 343: /* user_name */ case 350: /* db_name */ case 351: /* table_name */ case 352: /* topic_name */ case 354: /* dnode_endpoint */ case 380: /* column_name */ case 393: /* function_name */ case 401: /* column_alias */ case 404: /* index_name */ case 409: /* sma_func_name */ case 413: /* cgroup_name */ case 420: /* language_opt */ case 421: /* stream_name */ case 431: /* table_alias */ case 437: /* star_func */ case 439: /* noarg_func */ case 457: /* alias_opt */ { } break; case 344: /* sysinfo_opt */ { } break; case 345: /* privileges */ case 348: /* priv_type_list */ case 349: /* priv_type */ { } break; case 346: /* priv_level */ { } break; case 355: /* force_opt */ case 356: /* unsafe_opt */ case 357: /* not_exists_opt */ case 359: /* exists_opt */ case 414: /* analyze_opt */ case 417: /* or_replace_opt */ case 418: /* agg_func_opt */ case 426: /* ignore_opt */ case 462: /* set_quantifier_opt */ { } break; case 364: /* integer_list */ case 365: /* variable_list */ case 366: /* retention_list */ case 371: /* column_def_list */ case 372: /* tags_def_opt */ case 374: /* multi_create_clause */ case 375: /* tags_def */ case 376: /* multi_drop_clause */ case 383: /* specific_cols_opt */ case 384: /* expression_list */ case 386: /* col_name_list */ case 388: /* duration_list */ case 389: /* rollup_func_list */ case 399: /* tag_list_opt */ case 405: /* func_list */ case 423: /* col_list_opt */ case 424: /* tag_def_or_ref_opt */ case 428: /* dnode_list */ case 430: /* literal_list */ case 438: /* star_func_para_list */ case 440: /* other_para_list */ case 442: /* when_then_list */ case 463: /* select_list */ case 464: /* partition_by_clause_opt */ case 469: /* group_by_clause_opt */ case 472: /* partition_list */ case 475: /* group_by_list */ case 478: /* order_by_clause_opt */ case 483: /* sort_specification_list */ { nodesDestroyList((yypminor->yy812)); } break; case 368: /* alter_db_option */ case 390: /* alter_table_option */ { } break; case 387: /* type_name */ { } break; case 447: /* compare_op */ case 448: /* in_op */ { } break; case 460: /* join_type */ { } break; case 474: /* fill_mode */ { } break; case 485: /* ordering_specification_opt */ { } break; case 486: /* 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 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) ); return yy_action[i]; } }while(1); } /* ** Find the appropriate action for a parser given the non-terminal ** look-ahead token iLookAhead. */ static YYACTIONTYPE yy_find_reduce_action( YYACTIONTYPE stateno, /* Current state number */ YYCODETYPE iLookAhead /* The look-ahead token */ ){ int i; #ifdef YYERRORSYMBOL if( stateno>YY_REDUCE_COUNT ){ return yy_default[stateno]; } #else assert( stateno<=YY_REDUCE_COUNT ); #endif i = yy_reduce_ofst[stateno]; assert( iLookAhead!=YYNOCODE ); i += iLookAhead; #ifdef YYERRORSYMBOL if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){ return yy_default[stateno]; } #else assert( i>=0 && iyytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will execute if the parser ** stack every overflows */ /******** Begin %stack_overflow code ******************************************/ /******** End %stack_overflow code ********************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument var */ ParseCTX_STORE } /* ** Print tracing information for a SHIFT action */ #ifndef NDEBUG static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){ if( yyTraceFILE ){ if( yyNewStateyytos->major], yyNewState); }else{ fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n", yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major], yyNewState - YY_MIN_REDUCE); } } } #else # define yyTraceShift(X,Y,Z) #endif /* ** Perform a shift action. */ static void yy_shift( yyParser *yypParser, /* The parser to be shifted */ YYACTIONTYPE yyNewState, /* The new state to shift in */ YYCODETYPE yyMajor, /* The major token to shift in */ ParseTOKENTYPE yyMinor /* The minor token to shift in */ ){ yyStackEntry *yytos; yypParser->yytos++; #ifdef YYTRACKMAXSTACKDEPTH if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) ); } #endif #if YYSTACKDEPTH>0 if( yypParser->yytos>yypParser->yystackEnd ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){ if( yyGrowStack(yypParser) ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } } #endif if( yyNewState > YY_MAX_SHIFT ){ yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE; } yytos = yypParser->yytos; yytos->stateno = yyNewState; yytos->major = yyMajor; yytos->minor.yy0 = yyMinor; yyTraceShift(yypParser, yyNewState, "Shift"); } /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side ** of that rule */ static const YYCODETYPE yyRuleInfoLhs[] = { 338, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ 338, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 339, /* (2) account_options ::= */ 339, /* (3) account_options ::= account_options PPS literal */ 339, /* (4) account_options ::= account_options TSERIES literal */ 339, /* (5) account_options ::= account_options STORAGE literal */ 339, /* (6) account_options ::= account_options STREAMS literal */ 339, /* (7) account_options ::= account_options QTIME literal */ 339, /* (8) account_options ::= account_options DBS literal */ 339, /* (9) account_options ::= account_options USERS literal */ 339, /* (10) account_options ::= account_options CONNS literal */ 339, /* (11) account_options ::= account_options STATE literal */ 340, /* (12) alter_account_options ::= alter_account_option */ 340, /* (13) alter_account_options ::= alter_account_options alter_account_option */ 342, /* (14) alter_account_option ::= PASS literal */ 342, /* (15) alter_account_option ::= PPS literal */ 342, /* (16) alter_account_option ::= TSERIES literal */ 342, /* (17) alter_account_option ::= STORAGE literal */ 342, /* (18) alter_account_option ::= STREAMS literal */ 342, /* (19) alter_account_option ::= QTIME literal */ 342, /* (20) alter_account_option ::= DBS literal */ 342, /* (21) alter_account_option ::= USERS literal */ 342, /* (22) alter_account_option ::= CONNS literal */ 342, /* (23) alter_account_option ::= STATE literal */ 338, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ 338, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ 338, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ 338, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ 338, /* (28) cmd ::= DROP USER user_name */ 344, /* (29) sysinfo_opt ::= */ 344, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ 338, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ 338, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ 345, /* (33) privileges ::= ALL */ 345, /* (34) privileges ::= priv_type_list */ 345, /* (35) privileges ::= SUBSCRIBE */ 348, /* (36) priv_type_list ::= priv_type */ 348, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ 349, /* (38) priv_type ::= READ */ 349, /* (39) priv_type ::= WRITE */ 346, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ 346, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ 346, /* (42) priv_level ::= db_name NK_DOT table_name */ 346, /* (43) priv_level ::= topic_name */ 347, /* (44) with_opt ::= */ 347, /* (45) with_opt ::= WITH search_condition */ 338, /* (46) cmd ::= CREATE DNODE dnode_endpoint */ 338, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ 338, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */ 338, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */ 338, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ 338, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ 338, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ 338, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ 338, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */ 338, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ 338, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */ 354, /* (57) dnode_endpoint ::= NK_STRING */ 354, /* (58) dnode_endpoint ::= NK_ID */ 354, /* (59) dnode_endpoint ::= NK_IPTOKEN */ 355, /* (60) force_opt ::= */ 355, /* (61) force_opt ::= FORCE */ 356, /* (62) unsafe_opt ::= UNSAFE */ 338, /* (63) cmd ::= ALTER LOCAL NK_STRING */ 338, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ 338, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ 338, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ 338, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ 338, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ 338, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ 338, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ 338, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ 338, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ 338, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ 338, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ 338, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ 338, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ 338, /* (77) cmd ::= DROP DATABASE exists_opt db_name */ 338, /* (78) cmd ::= USE db_name */ 338, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */ 338, /* (80) cmd ::= FLUSH DATABASE db_name */ 338, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */ 338, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ 357, /* (83) not_exists_opt ::= IF NOT EXISTS */ 357, /* (84) not_exists_opt ::= */ 359, /* (85) exists_opt ::= IF EXISTS */ 359, /* (86) exists_opt ::= */ 358, /* (87) db_options ::= */ 358, /* (88) db_options ::= db_options BUFFER NK_INTEGER */ 358, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */ 358, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */ 358, /* (91) db_options ::= db_options COMP NK_INTEGER */ 358, /* (92) db_options ::= db_options DURATION NK_INTEGER */ 358, /* (93) db_options ::= db_options DURATION NK_VARIABLE */ 358, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */ 358, /* (95) db_options ::= db_options MINROWS NK_INTEGER */ 358, /* (96) db_options ::= db_options KEEP integer_list */ 358, /* (97) db_options ::= db_options KEEP variable_list */ 358, /* (98) db_options ::= db_options PAGES NK_INTEGER */ 358, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */ 358, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ 358, /* (101) db_options ::= db_options PRECISION NK_STRING */ 358, /* (102) db_options ::= db_options REPLICA NK_INTEGER */ 358, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */ 358, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ 358, /* (105) db_options ::= db_options RETENTIONS retention_list */ 358, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */ 358, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */ 358, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ 358, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ 358, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 358, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ 358, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 358, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ 358, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ 358, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */ 358, /* (116) db_options ::= db_options TABLE_PREFIX signed */ 358, /* (117) db_options ::= db_options TABLE_SUFFIX signed */ 360, /* (118) alter_db_options ::= alter_db_option */ 360, /* (119) alter_db_options ::= alter_db_options alter_db_option */ 368, /* (120) alter_db_option ::= BUFFER NK_INTEGER */ 368, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */ 368, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */ 368, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ 368, /* (124) alter_db_option ::= KEEP integer_list */ 368, /* (125) alter_db_option ::= KEEP variable_list */ 368, /* (126) alter_db_option ::= PAGES NK_INTEGER */ 368, /* (127) alter_db_option ::= REPLICA NK_INTEGER */ 368, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */ 368, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */ 368, /* (130) alter_db_option ::= MINROWS NK_INTEGER */ 368, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ 368, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 368, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ 368, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 364, /* (135) integer_list ::= NK_INTEGER */ 364, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */ 365, /* (137) variable_list ::= NK_VARIABLE */ 365, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ 366, /* (139) retention_list ::= retention */ 366, /* (140) retention_list ::= retention_list NK_COMMA retention */ 369, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 361, /* (142) speed_opt ::= */ 361, /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */ 362, /* (144) start_opt ::= */ 362, /* (145) start_opt ::= START WITH NK_INTEGER */ 362, /* (146) start_opt ::= START WITH NK_STRING */ 362, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */ 363, /* (148) end_opt ::= */ 363, /* (149) end_opt ::= END WITH NK_INTEGER */ 363, /* (150) end_opt ::= END WITH NK_STRING */ 363, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */ 338, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ 338, /* (153) cmd ::= CREATE TABLE multi_create_clause */ 338, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ 338, /* (155) cmd ::= DROP TABLE multi_drop_clause */ 338, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */ 338, /* (157) cmd ::= ALTER TABLE alter_table_clause */ 338, /* (158) cmd ::= ALTER STABLE alter_table_clause */ 377, /* (159) alter_table_clause ::= full_table_name alter_table_options */ 377, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_def */ 377, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ 377, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_def */ 377, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ 377, /* (164) alter_table_clause ::= full_table_name ADD TAG column_def */ 377, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ 377, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_def */ 377, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ 377, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ 374, /* (169) multi_create_clause ::= create_subtable_clause */ 374, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */ 382, /* (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 */ 376, /* (172) multi_drop_clause ::= drop_table_clause */ 376, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ 385, /* (174) drop_table_clause ::= exists_opt full_table_name */ 383, /* (175) specific_cols_opt ::= */ 383, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */ 370, /* (177) full_table_name ::= table_name */ 370, /* (178) full_table_name ::= db_name NK_DOT table_name */ 371, /* (179) column_def_list ::= column_def */ 371, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */ 379, /* (181) column_def ::= column_name type_name */ 379, /* (182) column_def ::= column_name type_name COMMENT NK_STRING */ 387, /* (183) type_name ::= BOOL */ 387, /* (184) type_name ::= TINYINT */ 387, /* (185) type_name ::= SMALLINT */ 387, /* (186) type_name ::= INT */ 387, /* (187) type_name ::= INTEGER */ 387, /* (188) type_name ::= BIGINT */ 387, /* (189) type_name ::= FLOAT */ 387, /* (190) type_name ::= DOUBLE */ 387, /* (191) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ 387, /* (192) type_name ::= TIMESTAMP */ 387, /* (193) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ 387, /* (194) type_name ::= TINYINT UNSIGNED */ 387, /* (195) type_name ::= SMALLINT UNSIGNED */ 387, /* (196) type_name ::= INT UNSIGNED */ 387, /* (197) type_name ::= BIGINT UNSIGNED */ 387, /* (198) type_name ::= JSON */ 387, /* (199) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ 387, /* (200) type_name ::= MEDIUMBLOB */ 387, /* (201) type_name ::= BLOB */ 387, /* (202) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ 387, /* (203) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ 387, /* (204) type_name ::= DECIMAL */ 387, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 387, /* (206) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 372, /* (207) tags_def_opt ::= */ 372, /* (208) tags_def_opt ::= tags_def */ 375, /* (209) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 373, /* (210) table_options ::= */ 373, /* (211) table_options ::= table_options COMMENT NK_STRING */ 373, /* (212) table_options ::= table_options MAX_DELAY duration_list */ 373, /* (213) table_options ::= table_options WATERMARK duration_list */ 373, /* (214) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ 373, /* (215) table_options ::= table_options TTL NK_INTEGER */ 373, /* (216) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ 373, /* (217) table_options ::= table_options DELETE_MARK duration_list */ 378, /* (218) alter_table_options ::= alter_table_option */ 378, /* (219) alter_table_options ::= alter_table_options alter_table_option */ 390, /* (220) alter_table_option ::= COMMENT NK_STRING */ 390, /* (221) alter_table_option ::= TTL NK_INTEGER */ 388, /* (222) duration_list ::= duration_literal */ 388, /* (223) duration_list ::= duration_list NK_COMMA duration_literal */ 389, /* (224) rollup_func_list ::= rollup_func_name */ 389, /* (225) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ 392, /* (226) rollup_func_name ::= function_name */ 392, /* (227) rollup_func_name ::= FIRST */ 392, /* (228) rollup_func_name ::= LAST */ 386, /* (229) col_name_list ::= col_name */ 386, /* (230) col_name_list ::= col_name_list NK_COMMA col_name */ 394, /* (231) col_name ::= column_name */ 338, /* (232) cmd ::= SHOW DNODES */ 338, /* (233) cmd ::= SHOW USERS */ 338, /* (234) cmd ::= SHOW USER PRIVILEGES */ 338, /* (235) cmd ::= SHOW DATABASES */ 338, /* (236) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ 338, /* (237) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ 338, /* (238) cmd ::= SHOW db_name_cond_opt VGROUPS */ 338, /* (239) cmd ::= SHOW MNODES */ 338, /* (240) cmd ::= SHOW QNODES */ 338, /* (241) cmd ::= SHOW FUNCTIONS */ 338, /* (242) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ 338, /* (243) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ 338, /* (244) cmd ::= SHOW STREAMS */ 338, /* (245) cmd ::= SHOW ACCOUNTS */ 338, /* (246) cmd ::= SHOW APPS */ 338, /* (247) cmd ::= SHOW CONNECTIONS */ 338, /* (248) cmd ::= SHOW LICENCES */ 338, /* (249) cmd ::= SHOW GRANTS */ 338, /* (250) cmd ::= SHOW CREATE DATABASE db_name */ 338, /* (251) cmd ::= SHOW CREATE TABLE full_table_name */ 338, /* (252) cmd ::= SHOW CREATE STABLE full_table_name */ 338, /* (253) cmd ::= SHOW QUERIES */ 338, /* (254) cmd ::= SHOW SCORES */ 338, /* (255) cmd ::= SHOW TOPICS */ 338, /* (256) cmd ::= SHOW VARIABLES */ 338, /* (257) cmd ::= SHOW CLUSTER VARIABLES */ 338, /* (258) cmd ::= SHOW LOCAL VARIABLES */ 338, /* (259) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ 338, /* (260) cmd ::= SHOW BNODES */ 338, /* (261) cmd ::= SHOW SNODES */ 338, /* (262) cmd ::= SHOW CLUSTER */ 338, /* (263) cmd ::= SHOW TRANSACTIONS */ 338, /* (264) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ 338, /* (265) cmd ::= SHOW CONSUMERS */ 338, /* (266) cmd ::= SHOW SUBSCRIPTIONS */ 338, /* (267) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ 338, /* (268) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ 338, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ 338, /* (270) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ 338, /* (271) cmd ::= SHOW VNODES NK_INTEGER */ 338, /* (272) cmd ::= SHOW VNODES NK_STRING */ 338, /* (273) cmd ::= SHOW db_name_cond_opt ALIVE */ 338, /* (274) cmd ::= SHOW CLUSTER ALIVE */ 395, /* (275) db_name_cond_opt ::= */ 395, /* (276) db_name_cond_opt ::= db_name NK_DOT */ 396, /* (277) like_pattern_opt ::= */ 396, /* (278) like_pattern_opt ::= LIKE NK_STRING */ 397, /* (279) table_name_cond ::= table_name */ 398, /* (280) from_db_opt ::= */ 398, /* (281) from_db_opt ::= FROM db_name */ 399, /* (282) tag_list_opt ::= */ 399, /* (283) tag_list_opt ::= tag_item */ 399, /* (284) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ 400, /* (285) tag_item ::= TBNAME */ 400, /* (286) tag_item ::= QTAGS */ 400, /* (287) tag_item ::= column_name */ 400, /* (288) tag_item ::= column_name column_alias */ 400, /* (289) tag_item ::= column_name AS column_alias */ 338, /* (290) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ 338, /* (291) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ 338, /* (292) cmd ::= DROP INDEX exists_opt full_index_name */ 402, /* (293) full_index_name ::= index_name */ 402, /* (294) full_index_name ::= db_name NK_DOT index_name */ 403, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ 403, /* (296) 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 */ 405, /* (297) func_list ::= func */ 405, /* (298) func_list ::= func_list NK_COMMA func */ 408, /* (299) func ::= sma_func_name NK_LP expression_list NK_RP */ 409, /* (300) sma_func_name ::= function_name */ 409, /* (301) sma_func_name ::= COUNT */ 409, /* (302) sma_func_name ::= FIRST */ 409, /* (303) sma_func_name ::= LAST */ 409, /* (304) sma_func_name ::= LAST_ROW */ 407, /* (305) sma_stream_opt ::= */ 407, /* (306) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ 407, /* (307) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ 407, /* (308) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ 410, /* (309) with_meta ::= AS */ 410, /* (310) with_meta ::= WITH META AS */ 410, /* (311) with_meta ::= ONLY META AS */ 338, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ 338, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ 338, /* (314) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ 338, /* (315) cmd ::= DROP TOPIC exists_opt topic_name */ 338, /* (316) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ 338, /* (317) cmd ::= DESC full_table_name */ 338, /* (318) cmd ::= DESCRIBE full_table_name */ 338, /* (319) cmd ::= RESET QUERY CACHE */ 338, /* (320) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ 338, /* (321) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 414, /* (322) analyze_opt ::= */ 414, /* (323) analyze_opt ::= ANALYZE */ 415, /* (324) explain_options ::= */ 415, /* (325) explain_options ::= explain_options VERBOSE NK_BOOL */ 415, /* (326) explain_options ::= explain_options RATIO NK_FLOAT */ 338, /* (327) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ 338, /* (328) cmd ::= DROP FUNCTION exists_opt function_name */ 418, /* (329) agg_func_opt ::= */ 418, /* (330) agg_func_opt ::= AGGREGATE */ 419, /* (331) bufsize_opt ::= */ 419, /* (332) bufsize_opt ::= BUFSIZE NK_INTEGER */ 420, /* (333) language_opt ::= */ 420, /* (334) language_opt ::= LANGUAGE NK_STRING */ 417, /* (335) or_replace_opt ::= */ 417, /* (336) or_replace_opt ::= OR REPLACE */ 338, /* (337) 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 */ 338, /* (338) cmd ::= DROP STREAM exists_opt stream_name */ 338, /* (339) cmd ::= PAUSE STREAM exists_opt stream_name */ 338, /* (340) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 423, /* (341) col_list_opt ::= */ 423, /* (342) col_list_opt ::= NK_LP col_name_list NK_RP */ 424, /* (343) tag_def_or_ref_opt ::= */ 424, /* (344) tag_def_or_ref_opt ::= tags_def */ 424, /* (345) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 422, /* (346) stream_options ::= */ 422, /* (347) stream_options ::= stream_options TRIGGER AT_ONCE */ 422, /* (348) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ 422, /* (349) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ 422, /* (350) stream_options ::= stream_options WATERMARK duration_literal */ 422, /* (351) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ 422, /* (352) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ 422, /* (353) stream_options ::= stream_options DELETE_MARK duration_literal */ 422, /* (354) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 425, /* (355) subtable_opt ::= */ 425, /* (356) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 426, /* (357) ignore_opt ::= */ 426, /* (358) ignore_opt ::= IGNORE UNTREATED */ 338, /* (359) cmd ::= KILL CONNECTION NK_INTEGER */ 338, /* (360) cmd ::= KILL QUERY NK_STRING */ 338, /* (361) cmd ::= KILL TRANSACTION NK_INTEGER */ 338, /* (362) cmd ::= BALANCE VGROUP */ 338, /* (363) cmd ::= BALANCE VGROUP LEADER */ 338, /* (364) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ 338, /* (365) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ 338, /* (366) cmd ::= SPLIT VGROUP NK_INTEGER */ 428, /* (367) dnode_list ::= DNODE NK_INTEGER */ 428, /* (368) dnode_list ::= dnode_list DNODE NK_INTEGER */ 338, /* (369) cmd ::= DELETE FROM full_table_name where_clause_opt */ 338, /* (370) cmd ::= query_or_subquery */ 338, /* (371) cmd ::= insert_query */ 416, /* (372) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ 416, /* (373) insert_query ::= INSERT INTO full_table_name query_or_subquery */ 341, /* (374) literal ::= NK_INTEGER */ 341, /* (375) literal ::= NK_FLOAT */ 341, /* (376) literal ::= NK_STRING */ 341, /* (377) literal ::= NK_BOOL */ 341, /* (378) literal ::= TIMESTAMP NK_STRING */ 341, /* (379) literal ::= duration_literal */ 341, /* (380) literal ::= NULL */ 341, /* (381) literal ::= NK_QUESTION */ 391, /* (382) duration_literal ::= NK_VARIABLE */ 367, /* (383) signed ::= NK_INTEGER */ 367, /* (384) signed ::= NK_PLUS NK_INTEGER */ 367, /* (385) signed ::= NK_MINUS NK_INTEGER */ 367, /* (386) signed ::= NK_FLOAT */ 367, /* (387) signed ::= NK_PLUS NK_FLOAT */ 367, /* (388) signed ::= NK_MINUS NK_FLOAT */ 381, /* (389) signed_literal ::= signed */ 381, /* (390) signed_literal ::= NK_STRING */ 381, /* (391) signed_literal ::= NK_BOOL */ 381, /* (392) signed_literal ::= TIMESTAMP NK_STRING */ 381, /* (393) signed_literal ::= duration_literal */ 381, /* (394) signed_literal ::= NULL */ 381, /* (395) signed_literal ::= literal_func */ 381, /* (396) signed_literal ::= NK_QUESTION */ 430, /* (397) literal_list ::= signed_literal */ 430, /* (398) literal_list ::= literal_list NK_COMMA signed_literal */ 350, /* (399) db_name ::= NK_ID */ 351, /* (400) table_name ::= NK_ID */ 380, /* (401) column_name ::= NK_ID */ 393, /* (402) function_name ::= NK_ID */ 431, /* (403) table_alias ::= NK_ID */ 401, /* (404) column_alias ::= NK_ID */ 343, /* (405) user_name ::= NK_ID */ 352, /* (406) topic_name ::= NK_ID */ 421, /* (407) stream_name ::= NK_ID */ 413, /* (408) cgroup_name ::= NK_ID */ 404, /* (409) index_name ::= NK_ID */ 432, /* (410) expr_or_subquery ::= expression */ 427, /* (411) expression ::= literal */ 427, /* (412) expression ::= pseudo_column */ 427, /* (413) expression ::= column_reference */ 427, /* (414) expression ::= function_expression */ 427, /* (415) expression ::= case_when_expression */ 427, /* (416) expression ::= NK_LP expression NK_RP */ 427, /* (417) expression ::= NK_PLUS expr_or_subquery */ 427, /* (418) expression ::= NK_MINUS expr_or_subquery */ 427, /* (419) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ 427, /* (420) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ 427, /* (421) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ 427, /* (422) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ 427, /* (423) expression ::= expr_or_subquery NK_REM expr_or_subquery */ 427, /* (424) expression ::= column_reference NK_ARROW NK_STRING */ 427, /* (425) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ 427, /* (426) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ 384, /* (427) expression_list ::= expr_or_subquery */ 384, /* (428) expression_list ::= expression_list NK_COMMA expr_or_subquery */ 434, /* (429) column_reference ::= column_name */ 434, /* (430) column_reference ::= table_name NK_DOT column_name */ 433, /* (431) pseudo_column ::= ROWTS */ 433, /* (432) pseudo_column ::= TBNAME */ 433, /* (433) pseudo_column ::= table_name NK_DOT TBNAME */ 433, /* (434) pseudo_column ::= QSTART */ 433, /* (435) pseudo_column ::= QEND */ 433, /* (436) pseudo_column ::= QDURATION */ 433, /* (437) pseudo_column ::= WSTART */ 433, /* (438) pseudo_column ::= WEND */ 433, /* (439) pseudo_column ::= WDURATION */ 433, /* (440) pseudo_column ::= IROWTS */ 433, /* (441) pseudo_column ::= ISFILLED */ 433, /* (442) pseudo_column ::= QTAGS */ 435, /* (443) function_expression ::= function_name NK_LP expression_list NK_RP */ 435, /* (444) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ 435, /* (445) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ 435, /* (446) function_expression ::= literal_func */ 429, /* (447) literal_func ::= noarg_func NK_LP NK_RP */ 429, /* (448) literal_func ::= NOW */ 439, /* (449) noarg_func ::= NOW */ 439, /* (450) noarg_func ::= TODAY */ 439, /* (451) noarg_func ::= TIMEZONE */ 439, /* (452) noarg_func ::= DATABASE */ 439, /* (453) noarg_func ::= CLIENT_VERSION */ 439, /* (454) noarg_func ::= SERVER_VERSION */ 439, /* (455) noarg_func ::= SERVER_STATUS */ 439, /* (456) noarg_func ::= CURRENT_USER */ 439, /* (457) noarg_func ::= USER */ 437, /* (458) star_func ::= COUNT */ 437, /* (459) star_func ::= FIRST */ 437, /* (460) star_func ::= LAST */ 437, /* (461) star_func ::= LAST_ROW */ 438, /* (462) star_func_para_list ::= NK_STAR */ 438, /* (463) star_func_para_list ::= other_para_list */ 440, /* (464) other_para_list ::= star_func_para */ 440, /* (465) other_para_list ::= other_para_list NK_COMMA star_func_para */ 441, /* (466) star_func_para ::= expr_or_subquery */ 441, /* (467) star_func_para ::= table_name NK_DOT NK_STAR */ 436, /* (468) case_when_expression ::= CASE when_then_list case_when_else_opt END */ 436, /* (469) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ 442, /* (470) when_then_list ::= when_then_expr */ 442, /* (471) when_then_list ::= when_then_list when_then_expr */ 445, /* (472) when_then_expr ::= WHEN common_expression THEN common_expression */ 443, /* (473) case_when_else_opt ::= */ 443, /* (474) case_when_else_opt ::= ELSE common_expression */ 446, /* (475) predicate ::= expr_or_subquery compare_op expr_or_subquery */ 446, /* (476) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ 446, /* (477) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ 446, /* (478) predicate ::= expr_or_subquery IS NULL */ 446, /* (479) predicate ::= expr_or_subquery IS NOT NULL */ 446, /* (480) predicate ::= expr_or_subquery in_op in_predicate_value */ 447, /* (481) compare_op ::= NK_LT */ 447, /* (482) compare_op ::= NK_GT */ 447, /* (483) compare_op ::= NK_LE */ 447, /* (484) compare_op ::= NK_GE */ 447, /* (485) compare_op ::= NK_NE */ 447, /* (486) compare_op ::= NK_EQ */ 447, /* (487) compare_op ::= LIKE */ 447, /* (488) compare_op ::= NOT LIKE */ 447, /* (489) compare_op ::= MATCH */ 447, /* (490) compare_op ::= NMATCH */ 447, /* (491) compare_op ::= CONTAINS */ 448, /* (492) in_op ::= IN */ 448, /* (493) in_op ::= NOT IN */ 449, /* (494) in_predicate_value ::= NK_LP literal_list NK_RP */ 450, /* (495) boolean_value_expression ::= boolean_primary */ 450, /* (496) boolean_value_expression ::= NOT boolean_primary */ 450, /* (497) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ 450, /* (498) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ 451, /* (499) boolean_primary ::= predicate */ 451, /* (500) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ 444, /* (501) common_expression ::= expr_or_subquery */ 444, /* (502) common_expression ::= boolean_value_expression */ 452, /* (503) from_clause_opt ::= */ 452, /* (504) from_clause_opt ::= FROM table_reference_list */ 453, /* (505) table_reference_list ::= table_reference */ 453, /* (506) table_reference_list ::= table_reference_list NK_COMMA table_reference */ 454, /* (507) table_reference ::= table_primary */ 454, /* (508) table_reference ::= joined_table */ 455, /* (509) table_primary ::= table_name alias_opt */ 455, /* (510) table_primary ::= db_name NK_DOT table_name alias_opt */ 455, /* (511) table_primary ::= subquery alias_opt */ 455, /* (512) table_primary ::= parenthesized_joined_table */ 457, /* (513) alias_opt ::= */ 457, /* (514) alias_opt ::= table_alias */ 457, /* (515) alias_opt ::= AS table_alias */ 459, /* (516) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ 459, /* (517) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ 456, /* (518) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 460, /* (519) join_type ::= */ 460, /* (520) join_type ::= INNER */ 461, /* (521) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ 462, /* (522) set_quantifier_opt ::= */ 462, /* (523) set_quantifier_opt ::= DISTINCT */ 462, /* (524) set_quantifier_opt ::= ALL */ 463, /* (525) select_list ::= select_item */ 463, /* (526) select_list ::= select_list NK_COMMA select_item */ 471, /* (527) select_item ::= NK_STAR */ 471, /* (528) select_item ::= common_expression */ 471, /* (529) select_item ::= common_expression column_alias */ 471, /* (530) select_item ::= common_expression AS column_alias */ 471, /* (531) select_item ::= table_name NK_DOT NK_STAR */ 412, /* (532) where_clause_opt ::= */ 412, /* (533) where_clause_opt ::= WHERE search_condition */ 464, /* (534) partition_by_clause_opt ::= */ 464, /* (535) partition_by_clause_opt ::= PARTITION BY partition_list */ 472, /* (536) partition_list ::= partition_item */ 472, /* (537) partition_list ::= partition_list NK_COMMA partition_item */ 473, /* (538) partition_item ::= expr_or_subquery */ 473, /* (539) partition_item ::= expr_or_subquery column_alias */ 473, /* (540) partition_item ::= expr_or_subquery AS column_alias */ 468, /* (541) twindow_clause_opt ::= */ 468, /* (542) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ 468, /* (543) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ 468, /* (544) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ 468, /* (545) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ 468, /* (546) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 406, /* (547) sliding_opt ::= */ 406, /* (548) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ 467, /* (549) fill_opt ::= */ 467, /* (550) fill_opt ::= FILL NK_LP fill_mode NK_RP */ 467, /* (551) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ 467, /* (552) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ 474, /* (553) fill_mode ::= NONE */ 474, /* (554) fill_mode ::= PREV */ 474, /* (555) fill_mode ::= NULL */ 474, /* (556) fill_mode ::= NULL_F */ 474, /* (557) fill_mode ::= LINEAR */ 474, /* (558) fill_mode ::= NEXT */ 469, /* (559) group_by_clause_opt ::= */ 469, /* (560) group_by_clause_opt ::= GROUP BY group_by_list */ 475, /* (561) group_by_list ::= expr_or_subquery */ 475, /* (562) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 470, /* (563) having_clause_opt ::= */ 470, /* (564) having_clause_opt ::= HAVING search_condition */ 465, /* (565) range_opt ::= */ 465, /* (566) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ 465, /* (567) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 466, /* (568) every_opt ::= */ 466, /* (569) every_opt ::= EVERY NK_LP duration_literal NK_RP */ 476, /* (570) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ 477, /* (571) query_simple ::= query_specification */ 477, /* (572) query_simple ::= union_query_expression */ 481, /* (573) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ 481, /* (574) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ 482, /* (575) query_simple_or_subquery ::= query_simple */ 482, /* (576) query_simple_or_subquery ::= subquery */ 411, /* (577) query_or_subquery ::= query_expression */ 411, /* (578) query_or_subquery ::= subquery */ 478, /* (579) order_by_clause_opt ::= */ 478, /* (580) order_by_clause_opt ::= ORDER BY sort_specification_list */ 479, /* (581) slimit_clause_opt ::= */ 479, /* (582) slimit_clause_opt ::= SLIMIT NK_INTEGER */ 479, /* (583) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ 479, /* (584) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 480, /* (585) limit_clause_opt ::= */ 480, /* (586) limit_clause_opt ::= LIMIT NK_INTEGER */ 480, /* (587) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ 480, /* (588) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 458, /* (589) subquery ::= NK_LP query_expression NK_RP */ 458, /* (590) subquery ::= NK_LP subquery NK_RP */ 353, /* (591) search_condition ::= common_expression */ 483, /* (592) sort_specification_list ::= sort_specification */ 483, /* (593) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ 484, /* (594) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 485, /* (595) ordering_specification_opt ::= */ 485, /* (596) ordering_specification_opt ::= ASC */ 485, /* (597) ordering_specification_opt ::= DESC */ 486, /* (598) null_ordering_opt ::= */ 486, /* (599) null_ordering_opt ::= NULLS FIRST */ 486, /* (600) 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 */ -4, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_def */ -4, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ -4, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_def */ -5, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -4, /* (164) alter_table_clause ::= full_table_name ADD TAG column_def */ -4, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ -4, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_def */ -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 */ -4, /* (182) column_def ::= column_name type_name COMMENT NK_STRING */ -1, /* (183) type_name ::= BOOL */ -1, /* (184) type_name ::= TINYINT */ -1, /* (185) type_name ::= SMALLINT */ -1, /* (186) type_name ::= INT */ -1, /* (187) type_name ::= INTEGER */ -1, /* (188) type_name ::= BIGINT */ -1, /* (189) type_name ::= FLOAT */ -1, /* (190) type_name ::= DOUBLE */ -4, /* (191) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -1, /* (192) type_name ::= TIMESTAMP */ -4, /* (193) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -2, /* (194) type_name ::= TINYINT UNSIGNED */ -2, /* (195) type_name ::= SMALLINT UNSIGNED */ -2, /* (196) type_name ::= INT UNSIGNED */ -2, /* (197) type_name ::= BIGINT UNSIGNED */ -1, /* (198) type_name ::= JSON */ -4, /* (199) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -1, /* (200) type_name ::= MEDIUMBLOB */ -1, /* (201) type_name ::= BLOB */ -4, /* (202) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -4, /* (203) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -1, /* (204) type_name ::= DECIMAL */ -4, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (206) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 0, /* (207) tags_def_opt ::= */ -1, /* (208) tags_def_opt ::= tags_def */ -4, /* (209) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 0, /* (210) table_options ::= */ -3, /* (211) table_options ::= table_options COMMENT NK_STRING */ -3, /* (212) table_options ::= table_options MAX_DELAY duration_list */ -3, /* (213) table_options ::= table_options WATERMARK duration_list */ -5, /* (214) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -3, /* (215) table_options ::= table_options TTL NK_INTEGER */ -5, /* (216) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -3, /* (217) table_options ::= table_options DELETE_MARK duration_list */ -1, /* (218) alter_table_options ::= alter_table_option */ -2, /* (219) alter_table_options ::= alter_table_options alter_table_option */ -2, /* (220) alter_table_option ::= COMMENT NK_STRING */ -2, /* (221) alter_table_option ::= TTL NK_INTEGER */ -1, /* (222) duration_list ::= duration_literal */ -3, /* (223) duration_list ::= duration_list NK_COMMA duration_literal */ -1, /* (224) rollup_func_list ::= rollup_func_name */ -3, /* (225) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ -1, /* (226) rollup_func_name ::= function_name */ -1, /* (227) rollup_func_name ::= FIRST */ -1, /* (228) rollup_func_name ::= LAST */ -1, /* (229) col_name_list ::= col_name */ -3, /* (230) col_name_list ::= col_name_list NK_COMMA col_name */ -1, /* (231) col_name ::= column_name */ -2, /* (232) cmd ::= SHOW DNODES */ -2, /* (233) cmd ::= SHOW USERS */ -3, /* (234) cmd ::= SHOW USER PRIVILEGES */ -2, /* (235) cmd ::= SHOW DATABASES */ -4, /* (236) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -4, /* (237) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -3, /* (238) cmd ::= SHOW db_name_cond_opt VGROUPS */ -2, /* (239) cmd ::= SHOW MNODES */ -2, /* (240) cmd ::= SHOW QNODES */ -2, /* (241) cmd ::= SHOW FUNCTIONS */ -5, /* (242) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -6, /* (243) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -2, /* (244) cmd ::= SHOW STREAMS */ -2, /* (245) cmd ::= SHOW ACCOUNTS */ -2, /* (246) cmd ::= SHOW APPS */ -2, /* (247) cmd ::= SHOW CONNECTIONS */ -2, /* (248) cmd ::= SHOW LICENCES */ -2, /* (249) cmd ::= SHOW GRANTS */ -4, /* (250) cmd ::= SHOW CREATE DATABASE db_name */ -4, /* (251) cmd ::= SHOW CREATE TABLE full_table_name */ -4, /* (252) cmd ::= SHOW CREATE STABLE full_table_name */ -2, /* (253) cmd ::= SHOW QUERIES */ -2, /* (254) cmd ::= SHOW SCORES */ -2, /* (255) cmd ::= SHOW TOPICS */ -2, /* (256) cmd ::= SHOW VARIABLES */ -3, /* (257) cmd ::= SHOW CLUSTER VARIABLES */ -3, /* (258) cmd ::= SHOW LOCAL VARIABLES */ -5, /* (259) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -2, /* (260) cmd ::= SHOW BNODES */ -2, /* (261) cmd ::= SHOW SNODES */ -2, /* (262) cmd ::= SHOW CLUSTER */ -2, /* (263) cmd ::= SHOW TRANSACTIONS */ -4, /* (264) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -2, /* (265) cmd ::= SHOW CONSUMERS */ -2, /* (266) cmd ::= SHOW SUBSCRIPTIONS */ -5, /* (267) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -6, /* (268) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -7, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -8, /* (270) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -3, /* (271) cmd ::= SHOW VNODES NK_INTEGER */ -3, /* (272) cmd ::= SHOW VNODES NK_STRING */ -3, /* (273) cmd ::= SHOW db_name_cond_opt ALIVE */ -3, /* (274) cmd ::= SHOW CLUSTER ALIVE */ 0, /* (275) db_name_cond_opt ::= */ -2, /* (276) db_name_cond_opt ::= db_name NK_DOT */ 0, /* (277) like_pattern_opt ::= */ -2, /* (278) like_pattern_opt ::= LIKE NK_STRING */ -1, /* (279) table_name_cond ::= table_name */ 0, /* (280) from_db_opt ::= */ -2, /* (281) from_db_opt ::= FROM db_name */ 0, /* (282) tag_list_opt ::= */ -1, /* (283) tag_list_opt ::= tag_item */ -3, /* (284) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ -1, /* (285) tag_item ::= TBNAME */ -1, /* (286) tag_item ::= QTAGS */ -1, /* (287) tag_item ::= column_name */ -2, /* (288) tag_item ::= column_name column_alias */ -3, /* (289) tag_item ::= column_name AS column_alias */ -8, /* (290) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ -9, /* (291) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ -4, /* (292) cmd ::= DROP INDEX exists_opt full_index_name */ -1, /* (293) full_index_name ::= index_name */ -3, /* (294) full_index_name ::= db_name NK_DOT index_name */ -10, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -12, /* (296) 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, /* (297) func_list ::= func */ -3, /* (298) func_list ::= func_list NK_COMMA func */ -4, /* (299) func ::= sma_func_name NK_LP expression_list NK_RP */ -1, /* (300) sma_func_name ::= function_name */ -1, /* (301) sma_func_name ::= COUNT */ -1, /* (302) sma_func_name ::= FIRST */ -1, /* (303) sma_func_name ::= LAST */ -1, /* (304) sma_func_name ::= LAST_ROW */ 0, /* (305) sma_stream_opt ::= */ -3, /* (306) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -3, /* (307) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -3, /* (308) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -1, /* (309) with_meta ::= AS */ -3, /* (310) with_meta ::= WITH META AS */ -3, /* (311) with_meta ::= ONLY META AS */ -6, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -7, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -8, /* (314) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -4, /* (315) cmd ::= DROP TOPIC exists_opt topic_name */ -7, /* (316) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -2, /* (317) cmd ::= DESC full_table_name */ -2, /* (318) cmd ::= DESCRIBE full_table_name */ -3, /* (319) cmd ::= RESET QUERY CACHE */ -4, /* (320) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ -4, /* (321) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 0, /* (322) analyze_opt ::= */ -1, /* (323) analyze_opt ::= ANALYZE */ 0, /* (324) explain_options ::= */ -3, /* (325) explain_options ::= explain_options VERBOSE NK_BOOL */ -3, /* (326) explain_options ::= explain_options RATIO NK_FLOAT */ -12, /* (327) 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, /* (328) cmd ::= DROP FUNCTION exists_opt function_name */ 0, /* (329) agg_func_opt ::= */ -1, /* (330) agg_func_opt ::= AGGREGATE */ 0, /* (331) bufsize_opt ::= */ -2, /* (332) bufsize_opt ::= BUFSIZE NK_INTEGER */ 0, /* (333) language_opt ::= */ -2, /* (334) language_opt ::= LANGUAGE NK_STRING */ 0, /* (335) or_replace_opt ::= */ -2, /* (336) or_replace_opt ::= OR REPLACE */ -12, /* (337) 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, /* (338) cmd ::= DROP STREAM exists_opt stream_name */ -4, /* (339) cmd ::= PAUSE STREAM exists_opt stream_name */ -5, /* (340) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 0, /* (341) col_list_opt ::= */ -3, /* (342) col_list_opt ::= NK_LP col_name_list NK_RP */ 0, /* (343) tag_def_or_ref_opt ::= */ -1, /* (344) tag_def_or_ref_opt ::= tags_def */ -4, /* (345) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 0, /* (346) stream_options ::= */ -3, /* (347) stream_options ::= stream_options TRIGGER AT_ONCE */ -3, /* (348) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -4, /* (349) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -3, /* (350) stream_options ::= stream_options WATERMARK duration_literal */ -4, /* (351) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -3, /* (352) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -3, /* (353) stream_options ::= stream_options DELETE_MARK duration_literal */ -4, /* (354) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 0, /* (355) subtable_opt ::= */ -4, /* (356) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 0, /* (357) ignore_opt ::= */ -2, /* (358) ignore_opt ::= IGNORE UNTREATED */ -3, /* (359) cmd ::= KILL CONNECTION NK_INTEGER */ -3, /* (360) cmd ::= KILL QUERY NK_STRING */ -3, /* (361) cmd ::= KILL TRANSACTION NK_INTEGER */ -2, /* (362) cmd ::= BALANCE VGROUP */ -3, /* (363) cmd ::= BALANCE VGROUP LEADER */ -4, /* (364) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -4, /* (365) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -3, /* (366) cmd ::= SPLIT VGROUP NK_INTEGER */ -2, /* (367) dnode_list ::= DNODE NK_INTEGER */ -3, /* (368) dnode_list ::= dnode_list DNODE NK_INTEGER */ -4, /* (369) cmd ::= DELETE FROM full_table_name where_clause_opt */ -1, /* (370) cmd ::= query_or_subquery */ -1, /* (371) cmd ::= insert_query */ -7, /* (372) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -4, /* (373) insert_query ::= INSERT INTO full_table_name query_or_subquery */ -1, /* (374) literal ::= NK_INTEGER */ -1, /* (375) literal ::= NK_FLOAT */ -1, /* (376) literal ::= NK_STRING */ -1, /* (377) literal ::= NK_BOOL */ -2, /* (378) literal ::= TIMESTAMP NK_STRING */ -1, /* (379) literal ::= duration_literal */ -1, /* (380) literal ::= NULL */ -1, /* (381) literal ::= NK_QUESTION */ -1, /* (382) duration_literal ::= NK_VARIABLE */ -1, /* (383) signed ::= NK_INTEGER */ -2, /* (384) signed ::= NK_PLUS NK_INTEGER */ -2, /* (385) signed ::= NK_MINUS NK_INTEGER */ -1, /* (386) signed ::= NK_FLOAT */ -2, /* (387) signed ::= NK_PLUS NK_FLOAT */ -2, /* (388) signed ::= NK_MINUS NK_FLOAT */ -1, /* (389) signed_literal ::= signed */ -1, /* (390) signed_literal ::= NK_STRING */ -1, /* (391) signed_literal ::= NK_BOOL */ -2, /* (392) signed_literal ::= TIMESTAMP NK_STRING */ -1, /* (393) signed_literal ::= duration_literal */ -1, /* (394) signed_literal ::= NULL */ -1, /* (395) signed_literal ::= literal_func */ -1, /* (396) signed_literal ::= NK_QUESTION */ -1, /* (397) literal_list ::= signed_literal */ -3, /* (398) literal_list ::= literal_list NK_COMMA signed_literal */ -1, /* (399) db_name ::= NK_ID */ -1, /* (400) table_name ::= NK_ID */ -1, /* (401) column_name ::= NK_ID */ -1, /* (402) function_name ::= NK_ID */ -1, /* (403) table_alias ::= NK_ID */ -1, /* (404) column_alias ::= NK_ID */ -1, /* (405) user_name ::= NK_ID */ -1, /* (406) topic_name ::= NK_ID */ -1, /* (407) stream_name ::= NK_ID */ -1, /* (408) cgroup_name ::= NK_ID */ -1, /* (409) index_name ::= NK_ID */ -1, /* (410) expr_or_subquery ::= expression */ -1, /* (411) expression ::= literal */ -1, /* (412) expression ::= pseudo_column */ -1, /* (413) expression ::= column_reference */ -1, /* (414) expression ::= function_expression */ -1, /* (415) expression ::= case_when_expression */ -3, /* (416) expression ::= NK_LP expression NK_RP */ -2, /* (417) expression ::= NK_PLUS expr_or_subquery */ -2, /* (418) expression ::= NK_MINUS expr_or_subquery */ -3, /* (419) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ -3, /* (420) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -3, /* (421) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -3, /* (422) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -3, /* (423) expression ::= expr_or_subquery NK_REM expr_or_subquery */ -3, /* (424) expression ::= column_reference NK_ARROW NK_STRING */ -3, /* (425) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ -3, /* (426) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -1, /* (427) expression_list ::= expr_or_subquery */ -3, /* (428) expression_list ::= expression_list NK_COMMA expr_or_subquery */ -1, /* (429) column_reference ::= column_name */ -3, /* (430) column_reference ::= table_name NK_DOT column_name */ -1, /* (431) pseudo_column ::= ROWTS */ -1, /* (432) pseudo_column ::= TBNAME */ -3, /* (433) pseudo_column ::= table_name NK_DOT TBNAME */ -1, /* (434) pseudo_column ::= QSTART */ -1, /* (435) pseudo_column ::= QEND */ -1, /* (436) pseudo_column ::= QDURATION */ -1, /* (437) pseudo_column ::= WSTART */ -1, /* (438) pseudo_column ::= WEND */ -1, /* (439) pseudo_column ::= WDURATION */ -1, /* (440) pseudo_column ::= IROWTS */ -1, /* (441) pseudo_column ::= ISFILLED */ -1, /* (442) pseudo_column ::= QTAGS */ -4, /* (443) function_expression ::= function_name NK_LP expression_list NK_RP */ -4, /* (444) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ -6, /* (445) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -1, /* (446) function_expression ::= literal_func */ -3, /* (447) literal_func ::= noarg_func NK_LP NK_RP */ -1, /* (448) literal_func ::= NOW */ -1, /* (449) noarg_func ::= NOW */ -1, /* (450) noarg_func ::= TODAY */ -1, /* (451) noarg_func ::= TIMEZONE */ -1, /* (452) noarg_func ::= DATABASE */ -1, /* (453) noarg_func ::= CLIENT_VERSION */ -1, /* (454) noarg_func ::= SERVER_VERSION */ -1, /* (455) noarg_func ::= SERVER_STATUS */ -1, /* (456) noarg_func ::= CURRENT_USER */ -1, /* (457) noarg_func ::= USER */ -1, /* (458) star_func ::= COUNT */ -1, /* (459) star_func ::= FIRST */ -1, /* (460) star_func ::= LAST */ -1, /* (461) star_func ::= LAST_ROW */ -1, /* (462) star_func_para_list ::= NK_STAR */ -1, /* (463) star_func_para_list ::= other_para_list */ -1, /* (464) other_para_list ::= star_func_para */ -3, /* (465) other_para_list ::= other_para_list NK_COMMA star_func_para */ -1, /* (466) star_func_para ::= expr_or_subquery */ -3, /* (467) star_func_para ::= table_name NK_DOT NK_STAR */ -4, /* (468) case_when_expression ::= CASE when_then_list case_when_else_opt END */ -5, /* (469) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -1, /* (470) when_then_list ::= when_then_expr */ -2, /* (471) when_then_list ::= when_then_list when_then_expr */ -4, /* (472) when_then_expr ::= WHEN common_expression THEN common_expression */ 0, /* (473) case_when_else_opt ::= */ -2, /* (474) case_when_else_opt ::= ELSE common_expression */ -3, /* (475) predicate ::= expr_or_subquery compare_op expr_or_subquery */ -5, /* (476) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -6, /* (477) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -3, /* (478) predicate ::= expr_or_subquery IS NULL */ -4, /* (479) predicate ::= expr_or_subquery IS NOT NULL */ -3, /* (480) predicate ::= expr_or_subquery in_op in_predicate_value */ -1, /* (481) compare_op ::= NK_LT */ -1, /* (482) compare_op ::= NK_GT */ -1, /* (483) compare_op ::= NK_LE */ -1, /* (484) compare_op ::= NK_GE */ -1, /* (485) compare_op ::= NK_NE */ -1, /* (486) compare_op ::= NK_EQ */ -1, /* (487) compare_op ::= LIKE */ -2, /* (488) compare_op ::= NOT LIKE */ -1, /* (489) compare_op ::= MATCH */ -1, /* (490) compare_op ::= NMATCH */ -1, /* (491) compare_op ::= CONTAINS */ -1, /* (492) in_op ::= IN */ -2, /* (493) in_op ::= NOT IN */ -3, /* (494) in_predicate_value ::= NK_LP literal_list NK_RP */ -1, /* (495) boolean_value_expression ::= boolean_primary */ -2, /* (496) boolean_value_expression ::= NOT boolean_primary */ -3, /* (497) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -3, /* (498) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -1, /* (499) boolean_primary ::= predicate */ -3, /* (500) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ -1, /* (501) common_expression ::= expr_or_subquery */ -1, /* (502) common_expression ::= boolean_value_expression */ 0, /* (503) from_clause_opt ::= */ -2, /* (504) from_clause_opt ::= FROM table_reference_list */ -1, /* (505) table_reference_list ::= table_reference */ -3, /* (506) table_reference_list ::= table_reference_list NK_COMMA table_reference */ -1, /* (507) table_reference ::= table_primary */ -1, /* (508) table_reference ::= joined_table */ -2, /* (509) table_primary ::= table_name alias_opt */ -4, /* (510) table_primary ::= db_name NK_DOT table_name alias_opt */ -2, /* (511) table_primary ::= subquery alias_opt */ -1, /* (512) table_primary ::= parenthesized_joined_table */ 0, /* (513) alias_opt ::= */ -1, /* (514) alias_opt ::= table_alias */ -2, /* (515) alias_opt ::= AS table_alias */ -3, /* (516) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ -3, /* (517) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ -6, /* (518) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 0, /* (519) join_type ::= */ -1, /* (520) join_type ::= INNER */ -12, /* (521) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ 0, /* (522) set_quantifier_opt ::= */ -1, /* (523) set_quantifier_opt ::= DISTINCT */ -1, /* (524) set_quantifier_opt ::= ALL */ -1, /* (525) select_list ::= select_item */ -3, /* (526) select_list ::= select_list NK_COMMA select_item */ -1, /* (527) select_item ::= NK_STAR */ -1, /* (528) select_item ::= common_expression */ -2, /* (529) select_item ::= common_expression column_alias */ -3, /* (530) select_item ::= common_expression AS column_alias */ -3, /* (531) select_item ::= table_name NK_DOT NK_STAR */ 0, /* (532) where_clause_opt ::= */ -2, /* (533) where_clause_opt ::= WHERE search_condition */ 0, /* (534) partition_by_clause_opt ::= */ -3, /* (535) partition_by_clause_opt ::= PARTITION BY partition_list */ -1, /* (536) partition_list ::= partition_item */ -3, /* (537) partition_list ::= partition_list NK_COMMA partition_item */ -1, /* (538) partition_item ::= expr_or_subquery */ -2, /* (539) partition_item ::= expr_or_subquery column_alias */ -3, /* (540) partition_item ::= expr_or_subquery AS column_alias */ 0, /* (541) twindow_clause_opt ::= */ -6, /* (542) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -4, /* (543) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -6, /* (544) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -8, /* (545) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -7, /* (546) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 0, /* (547) sliding_opt ::= */ -4, /* (548) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ 0, /* (549) fill_opt ::= */ -4, /* (550) fill_opt ::= FILL NK_LP fill_mode NK_RP */ -6, /* (551) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -6, /* (552) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -1, /* (553) fill_mode ::= NONE */ -1, /* (554) fill_mode ::= PREV */ -1, /* (555) fill_mode ::= NULL */ -1, /* (556) fill_mode ::= NULL_F */ -1, /* (557) fill_mode ::= LINEAR */ -1, /* (558) fill_mode ::= NEXT */ 0, /* (559) group_by_clause_opt ::= */ -3, /* (560) group_by_clause_opt ::= GROUP BY group_by_list */ -1, /* (561) group_by_list ::= expr_or_subquery */ -3, /* (562) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 0, /* (563) having_clause_opt ::= */ -2, /* (564) having_clause_opt ::= HAVING search_condition */ 0, /* (565) range_opt ::= */ -6, /* (566) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -4, /* (567) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 0, /* (568) every_opt ::= */ -4, /* (569) every_opt ::= EVERY NK_LP duration_literal NK_RP */ -4, /* (570) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -1, /* (571) query_simple ::= query_specification */ -1, /* (572) query_simple ::= union_query_expression */ -4, /* (573) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -3, /* (574) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -1, /* (575) query_simple_or_subquery ::= query_simple */ -1, /* (576) query_simple_or_subquery ::= subquery */ -1, /* (577) query_or_subquery ::= query_expression */ -1, /* (578) query_or_subquery ::= subquery */ 0, /* (579) order_by_clause_opt ::= */ -3, /* (580) order_by_clause_opt ::= ORDER BY sort_specification_list */ 0, /* (581) slimit_clause_opt ::= */ -2, /* (582) slimit_clause_opt ::= SLIMIT NK_INTEGER */ -4, /* (583) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ -4, /* (584) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 0, /* (585) limit_clause_opt ::= */ -2, /* (586) limit_clause_opt ::= LIMIT NK_INTEGER */ -4, /* (587) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ -4, /* (588) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ -3, /* (589) subquery ::= NK_LP query_expression NK_RP */ -3, /* (590) subquery ::= NK_LP subquery NK_RP */ -1, /* (591) search_condition ::= common_expression */ -1, /* (592) sort_specification_list ::= sort_specification */ -3, /* (593) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ -3, /* (594) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 0, /* (595) ordering_specification_opt ::= */ -1, /* (596) ordering_specification_opt ::= ASC */ -1, /* (597) ordering_specification_opt ::= DESC */ 0, /* (598) null_ordering_opt ::= */ -2, /* (599) null_ordering_opt ::= NULLS FIRST */ -2, /* (600) 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; assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ); #ifndef NDEBUG if( yyTraceFILE ){ 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,339,&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,340,&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,339,&yymsp[-2].minor); { } yy_destructor(yypParser,341,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,342,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,340,&yymsp[-1].minor); { } yy_destructor(yypParser,342,&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,341,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy371, &yymsp[-1].minor.yy0, yymsp[0].minor.yy475); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy371, 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.yy371, 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.yy371, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 28: /* cmd ::= DROP USER user_name */ { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy371); } break; case 29: /* sysinfo_opt ::= */ { yymsp[1].minor.yy475 = 1; } break; case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ { yymsp[-1].minor.yy475 = 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.yy729, &yymsp[-3].minor.yy347, &yymsp[0].minor.yy371, yymsp[-2].minor.yy452); } break; case 32: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy729, &yymsp[-3].minor.yy347, &yymsp[0].minor.yy371, yymsp[-2].minor.yy452); } break; case 33: /* privileges ::= ALL */ { yymsp[0].minor.yy729 = PRIVILEGE_TYPE_ALL; } break; case 34: /* privileges ::= priv_type_list */ case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36); { yylhsminor.yy729 = yymsp[0].minor.yy729; } yymsp[0].minor.yy729 = yylhsminor.yy729; break; case 35: /* privileges ::= SUBSCRIBE */ { yymsp[0].minor.yy729 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ { yylhsminor.yy729 = yymsp[-2].minor.yy729 | yymsp[0].minor.yy729; } yymsp[-2].minor.yy729 = yylhsminor.yy729; break; case 38: /* priv_type ::= READ */ { yymsp[0].minor.yy729 = PRIVILEGE_TYPE_READ; } break; case 39: /* priv_type ::= WRITE */ { yymsp[0].minor.yy729 = PRIVILEGE_TYPE_WRITE; } break; case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ { yylhsminor.yy347.first = yymsp[-2].minor.yy0; yylhsminor.yy347.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy347 = yylhsminor.yy347; break; case 41: /* priv_level ::= db_name NK_DOT NK_STAR */ { yylhsminor.yy347.first = yymsp[-2].minor.yy371; yylhsminor.yy347.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy347 = yylhsminor.yy347; break; case 42: /* priv_level ::= db_name NK_DOT table_name */ { yylhsminor.yy347.first = yymsp[-2].minor.yy371; yylhsminor.yy347.second = yymsp[0].minor.yy371; } yymsp[-2].minor.yy347 = yylhsminor.yy347; break; case 43: /* priv_level ::= topic_name */ { yylhsminor.yy347.first = yymsp[0].minor.yy371; yylhsminor.yy347.second = nil_token; } yymsp[0].minor.yy347 = yylhsminor.yy347; break; case 44: /* with_opt ::= */ case 144: /* start_opt ::= */ yytestcase(yyruleno==144); case 148: /* end_opt ::= */ yytestcase(yyruleno==148); case 277: /* like_pattern_opt ::= */ yytestcase(yyruleno==277); case 355: /* subtable_opt ::= */ yytestcase(yyruleno==355); case 473: /* case_when_else_opt ::= */ yytestcase(yyruleno==473); case 503: /* from_clause_opt ::= */ yytestcase(yyruleno==503); case 532: /* where_clause_opt ::= */ yytestcase(yyruleno==532); case 541: /* twindow_clause_opt ::= */ yytestcase(yyruleno==541); case 547: /* sliding_opt ::= */ yytestcase(yyruleno==547); case 549: /* fill_opt ::= */ yytestcase(yyruleno==549); case 563: /* having_clause_opt ::= */ yytestcase(yyruleno==563); case 565: /* range_opt ::= */ yytestcase(yyruleno==565); case 568: /* every_opt ::= */ yytestcase(yyruleno==568); case 581: /* slimit_clause_opt ::= */ yytestcase(yyruleno==581); case 585: /* limit_clause_opt ::= */ yytestcase(yyruleno==585); { yymsp[1].minor.yy452 = NULL; } break; case 45: /* with_opt ::= WITH search_condition */ case 504: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==504); case 533: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==533); case 564: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==564); { yymsp[-1].minor.yy452 = yymsp[0].minor.yy452; } break; case 46: /* cmd ::= CREATE DNODE dnode_endpoint */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy371, NULL); } break; case 47: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy371, &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.yy667, false); } break; case 49: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy371, yymsp[0].minor.yy667, false); } break; case 50: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy667); } break; case 51: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy371, false, yymsp[0].minor.yy667); } 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 301: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==301); case 302: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==302); case 303: /* sma_func_name ::= LAST */ yytestcase(yyruleno==303); case 304: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==304); case 399: /* db_name ::= NK_ID */ yytestcase(yyruleno==399); case 400: /* table_name ::= NK_ID */ yytestcase(yyruleno==400); case 401: /* column_name ::= NK_ID */ yytestcase(yyruleno==401); case 402: /* function_name ::= NK_ID */ yytestcase(yyruleno==402); case 403: /* table_alias ::= NK_ID */ yytestcase(yyruleno==403); case 404: /* column_alias ::= NK_ID */ yytestcase(yyruleno==404); case 405: /* user_name ::= NK_ID */ yytestcase(yyruleno==405); case 406: /* topic_name ::= NK_ID */ yytestcase(yyruleno==406); case 407: /* stream_name ::= NK_ID */ yytestcase(yyruleno==407); case 408: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==408); case 409: /* index_name ::= NK_ID */ yytestcase(yyruleno==409); case 449: /* noarg_func ::= NOW */ yytestcase(yyruleno==449); case 450: /* noarg_func ::= TODAY */ yytestcase(yyruleno==450); case 451: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==451); case 452: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==452); case 453: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==453); case 454: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==454); case 455: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==455); case 456: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==456); case 457: /* noarg_func ::= USER */ yytestcase(yyruleno==457); case 458: /* star_func ::= COUNT */ yytestcase(yyruleno==458); case 459: /* star_func ::= FIRST */ yytestcase(yyruleno==459); case 460: /* star_func ::= LAST */ yytestcase(yyruleno==460); case 461: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==461); { yylhsminor.yy371 = yymsp[0].minor.yy0; } yymsp[0].minor.yy371 = yylhsminor.yy371; break; case 60: /* force_opt ::= */ case 84: /* not_exists_opt ::= */ yytestcase(yyruleno==84); case 86: /* exists_opt ::= */ yytestcase(yyruleno==86); case 322: /* analyze_opt ::= */ yytestcase(yyruleno==322); case 329: /* agg_func_opt ::= */ yytestcase(yyruleno==329); case 335: /* or_replace_opt ::= */ yytestcase(yyruleno==335); case 357: /* ignore_opt ::= */ yytestcase(yyruleno==357); case 522: /* set_quantifier_opt ::= */ yytestcase(yyruleno==522); { yymsp[1].minor.yy667 = false; } break; case 61: /* force_opt ::= FORCE */ case 62: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==62); case 323: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==323); case 330: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==330); case 523: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==523); { yymsp[0].minor.yy667 = 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.yy667, &yymsp[-1].minor.yy371, yymsp[0].minor.yy452); } break; case 77: /* cmd ::= DROP DATABASE exists_opt db_name */ { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy667, &yymsp[0].minor.yy371); } break; case 78: /* cmd ::= USE db_name */ { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy371); } break; case 79: /* cmd ::= ALTER DATABASE db_name alter_db_options */ { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy371, yymsp[0].minor.yy452); } break; case 80: /* cmd ::= FLUSH DATABASE db_name */ { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy371); } break; case 81: /* cmd ::= TRIM DATABASE db_name speed_opt */ { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy371, yymsp[0].minor.yy416); } break; case 82: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy371, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } break; case 83: /* not_exists_opt ::= IF NOT EXISTS */ { yymsp[-2].minor.yy667 = true; } break; case 85: /* exists_opt ::= IF EXISTS */ case 336: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==336); case 358: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==358); { yymsp[-1].minor.yy667 = true; } break; case 87: /* db_options ::= */ { yymsp[1].minor.yy452 = createDefaultDatabaseOptions(pCxt); } break; case 88: /* db_options ::= db_options BUFFER NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 89: /* db_options ::= db_options CACHEMODEL NK_STRING */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 90: /* db_options ::= db_options CACHESIZE NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 91: /* db_options ::= db_options COMP NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_COMP, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 92: /* db_options ::= db_options DURATION NK_INTEGER */ case 93: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==93); { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 94: /* db_options ::= db_options MAXROWS NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 95: /* db_options ::= db_options MINROWS NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 96: /* db_options ::= db_options KEEP integer_list */ case 97: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==97); { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_KEEP, yymsp[0].minor.yy812); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 98: /* db_options ::= db_options PAGES NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 99: /* db_options ::= db_options PAGESIZE NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 100: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 101: /* db_options ::= db_options PRECISION NK_STRING */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 102: /* db_options ::= db_options REPLICA NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 103: /* db_options ::= db_options VGROUPS NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 104: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 105: /* db_options ::= db_options RETENTIONS retention_list */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_RETENTIONS, yymsp[0].minor.yy812); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 106: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 107: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 108: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 109: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; 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.yy452 = setDatabaseOption(pCxt, yymsp[-3].minor.yy452, DB_OPTION_WAL_RETENTION_PERIOD, &t); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 111: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; 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.yy452 = setDatabaseOption(pCxt, yymsp[-3].minor.yy452, DB_OPTION_WAL_RETENTION_SIZE, &t); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 113: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 114: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 115: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 116: /* db_options ::= db_options TABLE_PREFIX signed */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy452); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 117: /* db_options ::= db_options TABLE_SUFFIX signed */ { yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy452); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 118: /* alter_db_options ::= alter_db_option */ { yylhsminor.yy452 = createAlterDatabaseOptions(pCxt); yylhsminor.yy452 = setAlterDatabaseOption(pCxt, yylhsminor.yy452, &yymsp[0].minor.yy365); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 119: /* alter_db_options ::= alter_db_options alter_db_option */ { yylhsminor.yy452 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy452, &yymsp[0].minor.yy365); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 120: /* alter_db_option ::= BUFFER NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 121: /* alter_db_option ::= CACHEMODEL NK_STRING */ { yymsp[-1].minor.yy365.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 122: /* alter_db_option ::= CACHESIZE NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 123: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy365.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.yy365.type = DB_OPTION_KEEP; yymsp[-1].minor.yy365.pList = yymsp[0].minor.yy812; } break; case 126: /* alter_db_option ::= PAGES NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_PAGES; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 127: /* alter_db_option ::= REPLICA NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 128: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_WAL; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 129: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 130: /* alter_db_option ::= MINROWS NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 131: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy365.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.yy365.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy365.val = t; } break; case 133: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ { yymsp[-1].minor.yy365.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy365.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.yy365.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy365.val = t; } break; case 135: /* integer_list ::= NK_INTEGER */ { yylhsminor.yy812 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy812 = yylhsminor.yy812; break; case 136: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 368: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==368); { yylhsminor.yy812 = addNodeToList(pCxt, yymsp[-2].minor.yy812, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy812 = yylhsminor.yy812; break; case 137: /* variable_list ::= NK_VARIABLE */ { yylhsminor.yy812 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy812 = yylhsminor.yy812; break; case 138: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { yylhsminor.yy812 = addNodeToList(pCxt, yymsp[-2].minor.yy812, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy812 = yylhsminor.yy812; 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 224: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==224); case 229: /* col_name_list ::= col_name */ yytestcase(yyruleno==229); case 283: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==283); case 297: /* func_list ::= func */ yytestcase(yyruleno==297); case 397: /* literal_list ::= signed_literal */ yytestcase(yyruleno==397); case 464: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==464); case 470: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==470); case 525: /* select_list ::= select_item */ yytestcase(yyruleno==525); case 536: /* partition_list ::= partition_item */ yytestcase(yyruleno==536); case 592: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==592); { yylhsminor.yy812 = createNodeList(pCxt, yymsp[0].minor.yy452); } yymsp[0].minor.yy812 = yylhsminor.yy812; 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 225: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==225); case 230: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==230); case 284: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==284); case 298: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==298); case 398: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==398); case 465: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==465); case 526: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==526); case 537: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==537); case 593: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==593); { yylhsminor.yy812 = addNodeToList(pCxt, yymsp[-2].minor.yy812, yymsp[0].minor.yy452); } yymsp[-2].minor.yy812 = yylhsminor.yy812; break; case 141: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ { yylhsminor.yy452 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 142: /* speed_opt ::= */ case 331: /* bufsize_opt ::= */ yytestcase(yyruleno==331); { yymsp[1].minor.yy416 = 0; } break; case 143: /* speed_opt ::= MAX_SPEED NK_INTEGER */ case 332: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==332); { yymsp[-1].minor.yy416 = 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.yy452 = 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.yy452 = 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.yy452 = 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.yy667, yymsp[-5].minor.yy452, yymsp[-3].minor.yy812, yymsp[-1].minor.yy812, yymsp[0].minor.yy452); } break; case 153: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy812); } break; case 155: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy812); } break; case 156: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy667, yymsp[0].minor.yy452); } break; case 157: /* cmd ::= ALTER TABLE alter_table_clause */ case 370: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==370); case 371: /* cmd ::= insert_query */ yytestcase(yyruleno==371); { pCxt->pRootNode = yymsp[0].minor.yy452; } break; case 158: /* cmd ::= ALTER STABLE alter_table_clause */ { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy452); } break; case 159: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy452 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 160: /* alter_table_clause ::= full_table_name ADD COLUMN column_def */ { yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_ADD_COLUMN, yymsp[0].minor.yy452); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 161: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy452 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy371); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 162: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_def */ { yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, yymsp[0].minor.yy452); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 163: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy452 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy371, &yymsp[0].minor.yy371); } yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 164: /* alter_table_clause ::= full_table_name ADD TAG column_def */ { yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_ADD_TAG, yymsp[0].minor.yy452); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 165: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy452 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy371); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 166: /* alter_table_clause ::= full_table_name MODIFY TAG column_def */ { yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, yymsp[0].minor.yy452); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 167: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy452 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy371, &yymsp[0].minor.yy371); } yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 168: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { yylhsminor.yy452 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy452, &yymsp[-2].minor.yy371, yymsp[0].minor.yy452); } yymsp[-5].minor.yy452 = yylhsminor.yy452; break; case 170: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 471: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==471); { yylhsminor.yy812 = addNodeToList(pCxt, yymsp[-1].minor.yy812, yymsp[0].minor.yy452); } yymsp[-1].minor.yy812 = yylhsminor.yy812; 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.yy452 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy667, yymsp[-8].minor.yy452, yymsp[-6].minor.yy452, yymsp[-5].minor.yy812, yymsp[-2].minor.yy812, yymsp[0].minor.yy452); } yymsp[-9].minor.yy452 = yylhsminor.yy452; break; case 174: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy452 = createDropTableClause(pCxt, yymsp[-1].minor.yy667, yymsp[0].minor.yy452); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 175: /* specific_cols_opt ::= */ case 207: /* tags_def_opt ::= */ yytestcase(yyruleno==207); case 282: /* tag_list_opt ::= */ yytestcase(yyruleno==282); case 341: /* col_list_opt ::= */ yytestcase(yyruleno==341); case 343: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==343); case 534: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==534); case 559: /* group_by_clause_opt ::= */ yytestcase(yyruleno==559); case 579: /* order_by_clause_opt ::= */ yytestcase(yyruleno==579); { yymsp[1].minor.yy812 = NULL; } break; case 176: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 342: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==342); { yymsp[-2].minor.yy812 = yymsp[-1].minor.yy812; } break; case 177: /* full_table_name ::= table_name */ { yylhsminor.yy452 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy371, NULL); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 178: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy452 = createRealTableNode(pCxt, &yymsp[-2].minor.yy371, &yymsp[0].minor.yy371, NULL); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 181: /* column_def ::= column_name type_name */ { yylhsminor.yy452 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy371, yymsp[0].minor.yy310, NULL); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 182: /* column_def ::= column_name type_name COMMENT NK_STRING */ { yylhsminor.yy452 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy371, yymsp[-2].minor.yy310, &yymsp[0].minor.yy0); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 183: /* type_name ::= BOOL */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 184: /* type_name ::= TINYINT */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 185: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 186: /* type_name ::= INT */ case 187: /* type_name ::= INTEGER */ yytestcase(yyruleno==187); { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_INT); } break; case 188: /* type_name ::= BIGINT */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 189: /* type_name ::= FLOAT */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 190: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 191: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy310 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 192: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 193: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy310 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 194: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy310 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 195: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy310 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 196: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy310 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 197: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy310 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 198: /* type_name ::= JSON */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 199: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy310 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 200: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 201: /* type_name ::= BLOB */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 202: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy310 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 203: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy310 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } break; case 204: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy310 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 205: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy310 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 206: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy310 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 208: /* tags_def_opt ::= tags_def */ case 344: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==344); case 463: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==463); { yylhsminor.yy812 = yymsp[0].minor.yy812; } yymsp[0].minor.yy812 = yylhsminor.yy812; break; case 209: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ case 345: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==345); { yymsp[-3].minor.yy812 = yymsp[-1].minor.yy812; } break; case 210: /* table_options ::= */ { yymsp[1].minor.yy452 = createDefaultTableOptions(pCxt); } break; case 211: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 212: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy812); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 213: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy812); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 214: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy452 = setTableOption(pCxt, yymsp[-4].minor.yy452, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy812); } yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 215: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 216: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy452 = setTableOption(pCxt, yymsp[-4].minor.yy452, TABLE_OPTION_SMA, yymsp[-1].minor.yy812); } yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 217: /* table_options ::= table_options DELETE_MARK duration_list */ { yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy812); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 218: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy452 = createAlterTableOptions(pCxt); yylhsminor.yy452 = setTableOption(pCxt, yylhsminor.yy452, yymsp[0].minor.yy365.type, &yymsp[0].minor.yy365.val); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 219: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy452 = setTableOption(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy365.type, &yymsp[0].minor.yy365.val); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 220: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy365.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 221: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy365.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy365.val = yymsp[0].minor.yy0; } break; case 222: /* duration_list ::= duration_literal */ case 427: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==427); { yylhsminor.yy812 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } yymsp[0].minor.yy812 = yylhsminor.yy812; break; case 223: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 428: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==428); { yylhsminor.yy812 = addNodeToList(pCxt, yymsp[-2].minor.yy812, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } yymsp[-2].minor.yy812 = yylhsminor.yy812; break; case 226: /* rollup_func_name ::= function_name */ { yylhsminor.yy452 = createFunctionNode(pCxt, &yymsp[0].minor.yy371, NULL); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 227: /* rollup_func_name ::= FIRST */ case 228: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==228); case 286: /* tag_item ::= QTAGS */ yytestcase(yyruleno==286); { yylhsminor.yy452 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 231: /* col_name ::= column_name */ case 287: /* tag_item ::= column_name */ yytestcase(yyruleno==287); { yylhsminor.yy452 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy371); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 232: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; case 233: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; case 234: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } break; case 235: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; case 236: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, OP_TYPE_LIKE); } break; case 237: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, OP_TYPE_LIKE); } break; case 238: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy452, NULL, OP_TYPE_LIKE); } break; case 239: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; case 240: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; case 241: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 242: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy452, yymsp[-1].minor.yy452, OP_TYPE_EQUAL); } break; case 243: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy371), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy371), OP_TYPE_EQUAL); } break; case 244: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; case 245: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; case 246: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; case 247: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; case 248: /* cmd ::= SHOW LICENCES */ case 249: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==249); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; case 250: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy371); } break; case 251: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy452); } break; case 252: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy452); } break; case 253: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; case 254: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; case 255: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; case 256: /* cmd ::= SHOW VARIABLES */ case 257: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==257); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; case 258: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; case 259: /* 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.yy452); } break; case 260: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; case 261: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; case 262: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; case 263: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 264: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy452); } break; case 265: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; case 266: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; case 267: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy452, yymsp[-1].minor.yy452, OP_TYPE_EQUAL); } break; case 268: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy371), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy371), OP_TYPE_EQUAL); } break; case 269: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy452, yymsp[-3].minor.yy812); } break; case 270: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy371), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy371), yymsp[-4].minor.yy812); } break; case 271: /* cmd ::= SHOW VNODES NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; case 272: /* cmd ::= SHOW VNODES NK_STRING */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, createValueNode(pCxt, TSDB_DATA_TYPE_VARCHAR, &yymsp[0].minor.yy0)); } break; case 273: /* cmd ::= SHOW db_name_cond_opt ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy452, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; case 274: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; case 275: /* db_name_cond_opt ::= */ case 280: /* from_db_opt ::= */ yytestcase(yyruleno==280); { yymsp[1].minor.yy452 = createDefaultDatabaseCondValue(pCxt); } break; case 276: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy452 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy371); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 278: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 279: /* table_name_cond ::= table_name */ { yylhsminor.yy452 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy371); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 281: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy452 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy371); } break; case 285: /* tag_item ::= TBNAME */ { yylhsminor.yy452 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 288: /* tag_item ::= column_name column_alias */ { yylhsminor.yy452 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy371), &yymsp[0].minor.yy371); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 289: /* tag_item ::= column_name AS column_alias */ { yylhsminor.yy452 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy371), &yymsp[0].minor.yy371); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 290: /* 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.yy667, yymsp[-3].minor.yy452, yymsp[-1].minor.yy452, NULL, yymsp[0].minor.yy452); } break; case 291: /* 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.yy667, yymsp[-5].minor.yy452, yymsp[-3].minor.yy452, yymsp[-1].minor.yy812, NULL); } break; case 292: /* cmd ::= DROP INDEX exists_opt full_index_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy667, yymsp[0].minor.yy452); } break; case 293: /* full_index_name ::= index_name */ { yylhsminor.yy452 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy371); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 294: /* full_index_name ::= db_name NK_DOT index_name */ { yylhsminor.yy452 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy371, &yymsp[0].minor.yy371); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 295: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-9].minor.yy452 = createIndexOption(pCxt, yymsp[-7].minor.yy812, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), NULL, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } break; case 296: /* 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.yy452 = createIndexOption(pCxt, yymsp[-9].minor.yy812, releaseRawExprNode(pCxt, yymsp[-5].minor.yy452), releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } break; case 299: /* func ::= sma_func_name NK_LP expression_list NK_RP */ { yylhsminor.yy452 = createFunctionNode(pCxt, &yymsp[-3].minor.yy371, yymsp[-1].minor.yy812); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 300: /* sma_func_name ::= function_name */ case 514: /* alias_opt ::= table_alias */ yytestcase(yyruleno==514); { yylhsminor.yy371 = yymsp[0].minor.yy371; } yymsp[0].minor.yy371 = yylhsminor.yy371; break; case 305: /* sma_stream_opt ::= */ case 346: /* stream_options ::= */ yytestcase(yyruleno==346); { yymsp[1].minor.yy452 = createStreamOptions(pCxt); } break; case 306: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy452)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = yymsp[-2].minor.yy452; } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 307: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy452)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = yymsp[-2].minor.yy452; } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 308: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy452)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = yymsp[-2].minor.yy452; } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 309: /* with_meta ::= AS */ { yymsp[0].minor.yy416 = 0; } break; case 310: /* with_meta ::= WITH META AS */ { yymsp[-2].minor.yy416 = 1; } break; case 311: /* with_meta ::= ONLY META AS */ { yymsp[-2].minor.yy416 = 2; } break; case 312: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy667, &yymsp[-2].minor.yy371, yymsp[0].minor.yy452); } break; case 313: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy667, &yymsp[-3].minor.yy371, &yymsp[0].minor.yy371, yymsp[-2].minor.yy416); } break; case 314: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy667, &yymsp[-4].minor.yy371, yymsp[-1].minor.yy452, yymsp[-3].minor.yy416, yymsp[0].minor.yy452); } break; case 315: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy667, &yymsp[0].minor.yy371); } break; case 316: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy667, &yymsp[-2].minor.yy371, &yymsp[0].minor.yy371); } break; case 317: /* cmd ::= DESC full_table_name */ case 318: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==318); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy452); } break; case 319: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 320: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 321: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==321); { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy667, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } break; case 324: /* explain_options ::= */ { yymsp[1].minor.yy452 = createDefaultExplainOptions(pCxt); } break; case 325: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy452 = setExplainVerbose(pCxt, yymsp[-2].minor.yy452, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 326: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy452 = setExplainRatio(pCxt, yymsp[-2].minor.yy452, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 327: /* 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.yy667, yymsp[-9].minor.yy667, &yymsp[-6].minor.yy371, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy310, yymsp[-1].minor.yy416, &yymsp[0].minor.yy371, yymsp[-10].minor.yy667); } break; case 328: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy667, &yymsp[0].minor.yy371); } break; case 333: /* language_opt ::= */ { yymsp[1].minor.yy371 = nil_token; } break; case 334: /* language_opt ::= LANGUAGE NK_STRING */ { yymsp[-1].minor.yy371 = yymsp[0].minor.yy0; } break; case 337: /* 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.yy667, &yymsp[-8].minor.yy371, yymsp[-5].minor.yy452, yymsp[-7].minor.yy452, yymsp[-3].minor.yy812, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, yymsp[-4].minor.yy812); } break; case 338: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy667, &yymsp[0].minor.yy371); } break; case 339: /* cmd ::= PAUSE STREAM exists_opt stream_name */ { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy667, &yymsp[0].minor.yy371); } break; case 340: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy667, yymsp[-1].minor.yy667, &yymsp[0].minor.yy371); } break; case 347: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 348: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==348); { yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-2].minor.yy452, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 349: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-3].minor.yy452, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 350: /* stream_options ::= stream_options WATERMARK duration_literal */ { yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-2].minor.yy452, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 351: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-3].minor.yy452, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 352: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-2].minor.yy452, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 353: /* stream_options ::= stream_options DELETE_MARK duration_literal */ { yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-2].minor.yy452, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 354: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { yylhsminor.yy452 = setStreamOptions(pCxt, yymsp[-3].minor.yy452, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 356: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ case 548: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==548); case 569: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==569); { yymsp[-3].minor.yy452 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy452); } break; case 359: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; case 360: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; case 361: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; case 362: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; case 363: /* cmd ::= BALANCE VGROUP LEADER */ { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); } break; case 364: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 365: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy812); } break; case 366: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 367: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy812 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 369: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } break; case 372: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { yymsp[-6].minor.yy452 = createInsertStmt(pCxt, yymsp[-4].minor.yy452, yymsp[-2].minor.yy812, yymsp[0].minor.yy452); } break; case 373: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ { yymsp[-3].minor.yy452 = createInsertStmt(pCxt, yymsp[-1].minor.yy452, NULL, yymsp[0].minor.yy452); } break; case 374: /* literal ::= NK_INTEGER */ { yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 375: /* literal ::= NK_FLOAT */ { yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 376: /* literal ::= NK_STRING */ { yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 377: /* literal ::= NK_BOOL */ { yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 378: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 379: /* literal ::= duration_literal */ case 389: /* signed_literal ::= signed */ yytestcase(yyruleno==389); case 410: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==410); case 411: /* expression ::= literal */ yytestcase(yyruleno==411); case 412: /* expression ::= pseudo_column */ yytestcase(yyruleno==412); case 413: /* expression ::= column_reference */ yytestcase(yyruleno==413); case 414: /* expression ::= function_expression */ yytestcase(yyruleno==414); case 415: /* expression ::= case_when_expression */ yytestcase(yyruleno==415); case 446: /* function_expression ::= literal_func */ yytestcase(yyruleno==446); case 495: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==495); case 499: /* boolean_primary ::= predicate */ yytestcase(yyruleno==499); case 501: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==501); case 502: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==502); case 505: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==505); case 507: /* table_reference ::= table_primary */ yytestcase(yyruleno==507); case 508: /* table_reference ::= joined_table */ yytestcase(yyruleno==508); case 512: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==512); case 571: /* query_simple ::= query_specification */ yytestcase(yyruleno==571); case 572: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==572); case 575: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==575); case 577: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==577); { yylhsminor.yy452 = yymsp[0].minor.yy452; } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 380: /* literal ::= NULL */ { yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 381: /* literal ::= NK_QUESTION */ { yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 382: /* duration_literal ::= NK_VARIABLE */ { yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 383: /* signed ::= NK_INTEGER */ { yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 384: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; case 385: /* 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.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 386: /* signed ::= NK_FLOAT */ { yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 387: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 388: /* 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.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 390: /* signed_literal ::= NK_STRING */ { yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 391: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 392: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 393: /* signed_literal ::= duration_literal */ case 395: /* signed_literal ::= literal_func */ yytestcase(yyruleno==395); case 466: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==466); case 528: /* select_item ::= common_expression */ yytestcase(yyruleno==528); case 538: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==538); case 576: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==576); case 578: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==578); case 591: /* search_condition ::= common_expression */ yytestcase(yyruleno==591); { yylhsminor.yy452 = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 394: /* signed_literal ::= NULL */ { yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 396: /* signed_literal ::= NK_QUESTION */ { yylhsminor.yy452 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 416: /* expression ::= NK_LP expression NK_RP */ case 500: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==500); case 590: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==590); { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 417: /* expression ::= NK_PLUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 418: /* expression ::= NK_MINUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy452), NULL)); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 419: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 420: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 421: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 422: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 423: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 424: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 425: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 426: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 429: /* column_reference ::= column_name */ { yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy371, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy371)); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 430: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy371, &yymsp[0].minor.yy371, createColumnNode(pCxt, &yymsp[-2].minor.yy371, &yymsp[0].minor.yy371)); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 431: /* pseudo_column ::= ROWTS */ case 432: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==432); case 434: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==434); case 435: /* pseudo_column ::= QEND */ yytestcase(yyruleno==435); case 436: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==436); case 437: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==437); case 438: /* pseudo_column ::= WEND */ yytestcase(yyruleno==438); case 439: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==439); case 440: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==440); case 441: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==441); case 442: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==442); case 448: /* literal_func ::= NOW */ yytestcase(yyruleno==448); { yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 433: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy371, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy371)))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 443: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 444: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==444); { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy371, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy371, yymsp[-1].minor.yy812)); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 445: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-1].minor.yy310)); } yymsp[-5].minor.yy452 = yylhsminor.yy452; break; case 447: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy371, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy371, NULL)); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 462: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy812 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy812 = yylhsminor.yy812; break; case 467: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 531: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==531); { yylhsminor.yy452 = createColumnNode(pCxt, &yymsp[-2].minor.yy371, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 468: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy812, yymsp[-1].minor.yy452)); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 469: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-2].minor.yy812, yymsp[-1].minor.yy452)); } yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 472: /* when_then_expr ::= WHEN common_expression THEN common_expression */ { yymsp[-3].minor.yy452 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } break; case 474: /* case_when_else_opt ::= ELSE common_expression */ { yymsp[-1].minor.yy452 = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); } break; case 475: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 480: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==480); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy354, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 476: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy452), releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-4].minor.yy452 = yylhsminor.yy452; break; case 477: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy452), releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-5].minor.yy452 = yylhsminor.yy452; break; case 478: /* predicate ::= expr_or_subquery IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), NULL)); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 479: /* predicate ::= expr_or_subquery IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), NULL)); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 481: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy354 = OP_TYPE_LOWER_THAN; } break; case 482: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy354 = OP_TYPE_GREATER_THAN; } break; case 483: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy354 = OP_TYPE_LOWER_EQUAL; } break; case 484: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy354 = OP_TYPE_GREATER_EQUAL; } break; case 485: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy354 = OP_TYPE_NOT_EQUAL; } break; case 486: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy354 = OP_TYPE_EQUAL; } break; case 487: /* compare_op ::= LIKE */ { yymsp[0].minor.yy354 = OP_TYPE_LIKE; } break; case 488: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy354 = OP_TYPE_NOT_LIKE; } break; case 489: /* compare_op ::= MATCH */ { yymsp[0].minor.yy354 = OP_TYPE_MATCH; } break; case 490: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy354 = OP_TYPE_NMATCH; } break; case 491: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy354 = OP_TYPE_JSON_CONTAINS; } break; case 492: /* in_op ::= IN */ { yymsp[0].minor.yy354 = OP_TYPE_IN; } break; case 493: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy354 = OP_TYPE_NOT_IN; } break; case 494: /* in_predicate_value ::= NK_LP literal_list NK_RP */ { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy812)); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 496: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy452), NULL)); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 497: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 498: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 506: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy452 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, NULL); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 509: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy452 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy371, &yymsp[0].minor.yy371); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 510: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy452 = createRealTableNode(pCxt, &yymsp[-3].minor.yy371, &yymsp[-1].minor.yy371, &yymsp[0].minor.yy371); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 511: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy452 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452), &yymsp[0].minor.yy371); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 513: /* alias_opt ::= */ { yymsp[1].minor.yy371 = nil_token; } break; case 515: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy371 = yymsp[0].minor.yy371; } break; case 516: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 517: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==517); { yymsp[-2].minor.yy452 = yymsp[-1].minor.yy452; } break; case 518: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy452 = createJoinTableNode(pCxt, yymsp[-4].minor.yy140, yymsp[-5].minor.yy452, yymsp[-2].minor.yy452, yymsp[0].minor.yy452); } yymsp[-5].minor.yy452 = yylhsminor.yy452; break; case 519: /* join_type ::= */ { yymsp[1].minor.yy140 = JOIN_TYPE_INNER; } break; case 520: /* join_type ::= INNER */ { yymsp[0].minor.yy140 = JOIN_TYPE_INNER; } break; case 521: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { yymsp[-11].minor.yy452 = createSelectStmt(pCxt, yymsp[-10].minor.yy667, yymsp[-9].minor.yy812, yymsp[-8].minor.yy452); yymsp[-11].minor.yy452 = addWhereClause(pCxt, yymsp[-11].minor.yy452, yymsp[-7].minor.yy452); yymsp[-11].minor.yy452 = addPartitionByClause(pCxt, yymsp[-11].minor.yy452, yymsp[-6].minor.yy812); yymsp[-11].minor.yy452 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy452, yymsp[-2].minor.yy452); yymsp[-11].minor.yy452 = addGroupByClause(pCxt, yymsp[-11].minor.yy452, yymsp[-1].minor.yy812); yymsp[-11].minor.yy452 = addHavingClause(pCxt, yymsp[-11].minor.yy452, yymsp[0].minor.yy452); yymsp[-11].minor.yy452 = addRangeClause(pCxt, yymsp[-11].minor.yy452, yymsp[-5].minor.yy452); yymsp[-11].minor.yy452 = addEveryClause(pCxt, yymsp[-11].minor.yy452, yymsp[-4].minor.yy452); yymsp[-11].minor.yy452 = addFillClause(pCxt, yymsp[-11].minor.yy452, yymsp[-3].minor.yy452); } break; case 524: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy667 = false; } break; case 527: /* select_item ::= NK_STAR */ { yylhsminor.yy452 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy452 = yylhsminor.yy452; break; case 529: /* select_item ::= common_expression column_alias */ case 539: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==539); { yylhsminor.yy452 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452), &yymsp[0].minor.yy371); } yymsp[-1].minor.yy452 = yylhsminor.yy452; break; case 530: /* select_item ::= common_expression AS column_alias */ case 540: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==540); { yylhsminor.yy452 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), &yymsp[0].minor.yy371); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 535: /* partition_by_clause_opt ::= PARTITION BY partition_list */ case 560: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==560); case 580: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==580); { yymsp[-2].minor.yy812 = yymsp[0].minor.yy812; } break; case 542: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy452 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } break; case 543: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy452 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } break; case 544: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy452 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), NULL, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } break; case 545: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy452 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy452), releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } break; case 546: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ { yymsp[-6].minor.yy452 = createEventWindowNode(pCxt, yymsp[-3].minor.yy452, yymsp[0].minor.yy452); } break; case 550: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy452 = createFillNode(pCxt, yymsp[-1].minor.yy844, NULL); } break; case 551: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy452 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy812)); } break; case 552: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy452 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy812)); } break; case 553: /* fill_mode ::= NONE */ { yymsp[0].minor.yy844 = FILL_MODE_NONE; } break; case 554: /* fill_mode ::= PREV */ { yymsp[0].minor.yy844 = FILL_MODE_PREV; } break; case 555: /* fill_mode ::= NULL */ { yymsp[0].minor.yy844 = FILL_MODE_NULL; } break; case 556: /* fill_mode ::= NULL_F */ { yymsp[0].minor.yy844 = FILL_MODE_NULL_F; } break; case 557: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy844 = FILL_MODE_LINEAR; } break; case 558: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy844 = FILL_MODE_NEXT; } break; case 561: /* group_by_list ::= expr_or_subquery */ { yylhsminor.yy812 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[0].minor.yy812 = yylhsminor.yy812; break; case 562: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { yylhsminor.yy812 = addNodeToList(pCxt, yymsp[-2].minor.yy812, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } yymsp[-2].minor.yy812 = yylhsminor.yy812; break; case 566: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { yymsp[-5].minor.yy452 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } break; case 567: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy452 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } break; case 570: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy452 = addOrderByClause(pCxt, yymsp[-3].minor.yy452, yymsp[-2].minor.yy812); yylhsminor.yy452 = addSlimitClause(pCxt, yylhsminor.yy452, yymsp[-1].minor.yy452); yylhsminor.yy452 = addLimitClause(pCxt, yylhsminor.yy452, yymsp[0].minor.yy452); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 573: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { yylhsminor.yy452 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy452, yymsp[0].minor.yy452); } yymsp[-3].minor.yy452 = yylhsminor.yy452; break; case 574: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { yylhsminor.yy452 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy452, yymsp[0].minor.yy452); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 582: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 586: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==586); { yymsp[-1].minor.yy452 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 583: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 587: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==587); { yymsp[-3].minor.yy452 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; case 584: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 588: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==588); { yymsp[-3].minor.yy452 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; case 589: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy452); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 594: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { yylhsminor.yy452 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), yymsp[-1].minor.yy690, yymsp[0].minor.yy399); } yymsp[-2].minor.yy452 = yylhsminor.yy452; break; case 595: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy690 = ORDER_ASC; } break; case 596: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy690 = ORDER_ASC; } break; case 597: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy690 = ORDER_DESC; } break; case 598: /* null_ordering_opt ::= */ { yymsp[1].minor.yy399 = NULL_ORDER_DEFAULT; } break; case 599: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy399 = NULL_ORDER_FIRST; } break; case 600: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy399 = 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 }