/* ** 2000-05-29 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Driver template for the LEMON parser generator. ** ** The "lemon" program processes an LALR(1) input grammar file, then uses ** this template to construct a parser. The "lemon" program inserts text ** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the ** interstitial "-" characters) contained in this template is changed into ** the value of the %name directive from the grammar. Otherwise, the content ** of this template is copied straight through into the generate parser ** source file. ** ** The following is the concatenation of all %include directives from the ** input grammar file: */ #include #include /************ Begin %include sections from the grammar ************************/ #include #include #include #include #include #define ALLOW_FORBID_FUNC #include "functionMgt.h" #include "nodes.h" #include "parToken.h" #include "ttokendef.h" #include "parAst.h" #define YYSTACKDEPTH 0 /**************** End of %include directives **********************************/ /* These constants specify the various numeric values for terminal symbols ** in a format understandable to "makeheaders". This section is blank unless ** "lemon" is run with the "-m" command-line option. ***************** Begin makeheaders token definitions *************************/ /**************** End makeheaders token definitions ***************************/ /* The next sections is a series of control #defines. ** various aspects of the generated parser. ** YYCODETYPE is the data type used to store the integer codes ** that represent terminal and non-terminal symbols. ** "unsigned char" is used if there are fewer than ** 256 symbols. Larger types otherwise. ** YYNOCODE is a number of type YYCODETYPE that is not used for ** any terminal or nonterminal symbol. ** YYFALLBACK If defined, this indicates that one or more tokens ** (also known as: "terminal symbols") have fall-back ** values which should be used if the original symbol ** would not parse. This permits keywords to sometimes ** be used as identifiers, for example. ** YYACTIONTYPE is the data type used for "action codes" - numbers ** that indicate what to do in response to the next ** token. ** ParseTOKENTYPE is the data type used for minor type for terminal ** symbols. Background: A "minor type" is a semantic ** value associated with a terminal or non-terminal ** symbols. For example, for an "ID" terminal symbol, ** the minor type might be the name of the identifier. ** Each non-terminal can have a different minor type. ** Terminal symbols all have the same minor type, though. ** This macros defines the minor type for terminal ** symbols. ** YYMINORTYPE is the data type used for all minor types. ** This is typically a union of many types, one of ** which is ParseTOKENTYPE. The entry in the union ** for terminal symbols is called "yy0". ** YYSTACKDEPTH is the maximum depth of the parser's stack. If ** zero the stack is dynamically sized using realloc() ** ParseARG_SDECL A static variable declaration for the %extra_argument ** ParseARG_PDECL A parameter declaration for the %extra_argument ** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter ** ParseARG_STORE Code to store %extra_argument into yypParser ** ParseARG_FETCH Code to extract %extra_argument from yypParser ** ParseCTX_* As ParseARG_ except for %extra_context ** YYERRORSYMBOL is the code number of the error symbol. If not ** defined, then do no error processing. ** YYNSTATE the combined number of states. ** YYNRULE the number of rules in the grammar ** YYNTOKEN Number of terminal symbols ** YY_MAX_SHIFT Maximum value for shift actions ** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions ** YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions ** YY_ERROR_ACTION The yy_action[] code for syntax error ** YY_ACCEPT_ACTION The yy_action[] code for accept ** YY_NO_ACTION The yy_action[] code for no-op ** YY_MIN_REDUCE Minimum value for reduce actions ** YY_MAX_REDUCE Maximum value for reduce actions */ #ifndef INTERFACE # define INTERFACE 1 #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int #define YYNOCODE 496 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; SNode* yy168; SDataType yy208; int64_t yy221; EOrder yy258; EFillMode yy262; int32_t yy324; SAlterOption yy349; ENullOrder yy425; SNodeList* yy440; EOperatorType yy476; STokenPair yy601; EJoinType yy724; SToken yy737; int8_t yy919; bool yy953; } 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 822 #define YYNRULE 616 #define YYNRULE_WITH_ACTION 616 #define YYNTOKEN 340 #define YY_MAX_SHIFT 821 #define YY_MIN_SHIFTREDUCE 1210 #define YY_MAX_SHIFTREDUCE 1825 #define YY_ERROR_ACTION 1826 #define YY_ACCEPT_ACTION 1827 #define YY_NO_ACTION 1828 #define YY_MIN_REDUCE 1829 #define YY_MAX_REDUCE 2444 /************* 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 (2998) static const YYACTIONTYPE yy_action[] = { /* 0 */ 2002, 636, 2228, 2135, 547, 710, 2013, 548, 1872, 38, /* 10 */ 317, 1998, 48, 46, 1752, 406, 2004, 92, 2132, 697, /* 20 */ 413, 1830, 1596, 41, 40, 136, 2232, 47, 45, 44, /* 30 */ 43, 42, 590, 185, 383, 1678, 1912, 1594, 710, 2013, /* 40 */ 689, 145, 126, 2008, 104, 125, 124, 123, 122, 121, /* 50 */ 120, 119, 118, 117, 2119, 41, 40, 1250, 198, 47, /* 60 */ 45, 44, 43, 42, 1673, 1829, 2234, 1625, 1827, 2006, /* 70 */ 19, 1275, 557, 1274, 2174, 126, 720, 1602, 125, 124, /* 80 */ 123, 122, 121, 120, 119, 118, 117, 2420, 141, 135, /* 90 */ 134, 133, 132, 131, 130, 129, 128, 127, 1621, 1252, /* 100 */ 1255, 1256, 818, 1352, 1624, 15, 1276, 552, 793, 792, /* 110 */ 791, 790, 425, 549, 789, 788, 149, 783, 782, 781, /* 120 */ 780, 779, 778, 777, 161, 773, 772, 771, 424, 423, /* 130 */ 768, 767, 766, 180, 179, 470, 2114, 709, 1275, 1408, /* 140 */ 1274, 1680, 1681, 1354, 428, 691, 191, 2347, 2348, 427, /* 150 */ 143, 2352, 1624, 1399, 755, 754, 753, 1403, 752, 1405, /* 160 */ 1406, 751, 748, 3, 1414, 745, 1416, 1417, 742, 739, /* 170 */ 736, 1653, 1663, 1276, 2066, 54, 709, 1679, 1682, 188, /* 180 */ 677, 379, 207, 2415, 1621, 1622, 689, 145, 2228, 2064, /* 190 */ 1815, 2053, 1597, 652, 1595, 185, 2415, 710, 2013, 1822, /* 200 */ 676, 193, 2237, 41, 40, 2416, 678, 47, 45, 44, /* 210 */ 43, 42, 2232, 2421, 193, 381, 2118, 136, 2416, 678, /* 220 */ 276, 465, 51, 594, 595, 1600, 1601, 593, 1652, 1655, /* 230 */ 1656, 1657, 1658, 1659, 1660, 1661, 1662, 722, 718, 1671, /* 240 */ 1672, 1674, 1675, 1676, 1677, 2, 48, 46, 564, 1501, /* 250 */ 1502, 365, 2234, 1619, 413, 677, 1596, 298, 2415, 2251, /* 260 */ 501, 51, 720, 517, 2228, 373, 361, 2135, 516, 1678, /* 270 */ 110, 1594, 727, 226, 1881, 676, 193, 550, 2236, 1879, /* 280 */ 2416, 678, 2133, 697, 484, 1991, 518, 146, 2232, 2183, /* 290 */ 636, 486, 296, 2347, 688, 2005, 137, 687, 1673, 2415, /* 300 */ 2269, 565, 2128, 1821, 19, 298, 1518, 1519, 1707, 228, /* 310 */ 667, 1602, 2218, 550, 726, 1879, 676, 193, 150, 422, /* 320 */ 421, 2416, 678, 709, 1621, 447, 41, 40, 2234, 410, /* 330 */ 47, 45, 44, 43, 42, 1622, 818, 382, 720, 15, /* 340 */ 263, 261, 1517, 1520, 1603, 260, 710, 2013, 472, 1363, /* 350 */ 2250, 30, 2286, 449, 445, 113, 2252, 730, 2254, 2255, /* 360 */ 725, 268, 720, 2174, 1362, 1708, 56, 2435, 1780, 2339, /* 370 */ 44, 43, 42, 409, 2335, 1680, 1681, 635, 514, 300, /* 380 */ 634, 508, 507, 506, 505, 500, 499, 498, 497, 496, /* 390 */ 492, 491, 490, 489, 364, 481, 480, 479, 821, 474, /* 400 */ 473, 380, 673, 668, 661, 1653, 1663, 94, 67, 63, /* 410 */ 368, 1679, 1682, 393, 325, 626, 664, 663, 1778, 1779, /* 420 */ 1781, 1782, 1783, 173, 1792, 1841, 1597, 2066, 1595, 519, /* 430 */ 184, 763, 159, 158, 760, 759, 758, 156, 809, 805, /* 440 */ 801, 797, 696, 322, 37, 411, 1702, 1703, 1704, 1705, /* 450 */ 1706, 1710, 1711, 1712, 1713, 147, 1443, 1444, 2310, 1600, /* 460 */ 1601, 563, 1652, 1655, 1656, 1657, 1658, 1659, 1660, 1661, /* 470 */ 1662, 722, 718, 1671, 1672, 1674, 1675, 1676, 1677, 2, /* 480 */ 12, 48, 46, 111, 1852, 2251, 315, 510, 63, 413, /* 490 */ 2066, 1596, 47, 45, 44, 43, 42, 395, 692, 14, /* 500 */ 13, 1606, 567, 244, 1678, 2064, 1594, 41, 40, 63, /* 510 */ 34, 47, 45, 44, 43, 42, 41, 40, 706, 177, /* 520 */ 47, 45, 44, 43, 42, 765, 2269, 584, 580, 576, /* 530 */ 572, 555, 243, 1673, 548, 1872, 1851, 2218, 2218, 19, /* 540 */ 726, 1850, 2066, 608, 607, 606, 1602, 217, 216, 459, /* 550 */ 598, 142, 602, 303, 458, 418, 601, 705, 2059, 2061, /* 560 */ 302, 600, 605, 389, 388, 172, 300, 599, 476, 2114, /* 570 */ 509, 818, 93, 1954, 15, 241, 2250, 2354, 2286, 2251, /* 580 */ 266, 113, 2252, 730, 2254, 2255, 725, 2420, 720, 2218, /* 590 */ 2415, 2354, 724, 190, 2218, 2339, 710, 2013, 652, 409, /* 600 */ 2335, 2415, 671, 2351, 1721, 1791, 710, 2013, 2419, 52, /* 610 */ 1680, 1681, 2416, 2418, 195, 210, 463, 2350, 2421, 193, /* 620 */ 2269, 416, 2369, 2416, 678, 2107, 464, 503, 2114, 167, /* 630 */ 2269, 12, 2218, 10, 726, 1849, 394, 2015, 63, 717, /* 640 */ 1653, 1663, 240, 233, 2064, 300, 1679, 1682, 672, 238, /* 650 */ 561, 41, 40, 1990, 2097, 47, 45, 44, 43, 42, /* 660 */ 633, 1597, 1915, 1595, 1988, 1848, 300, 468, 231, 230, /* 670 */ 2250, 712, 2286, 2311, 215, 354, 2252, 730, 2254, 2255, /* 680 */ 725, 723, 720, 711, 2304, 41, 40, 670, 2218, 47, /* 690 */ 45, 44, 43, 42, 1600, 1601, 274, 1652, 1655, 1656, /* 700 */ 1657, 1658, 1659, 1660, 1661, 1662, 722, 718, 1671, 1672, /* 710 */ 1674, 1675, 1676, 1677, 2, 48, 46, 1683, 2218, 2251, /* 720 */ 1847, 1756, 2066, 413, 457, 1596, 456, 1621, 12, 403, /* 730 */ 710, 2013, 727, 1367, 608, 607, 606, 2064, 1678, 97, /* 740 */ 1594, 598, 142, 602, 2066, 1602, 624, 601, 1366, 1768, /* 750 */ 478, 408, 600, 605, 389, 388, 2251, 455, 599, 2064, /* 760 */ 2269, 622, 1749, 620, 258, 257, 300, 1673, 262, 692, /* 770 */ 2060, 2061, 2218, 2218, 726, 775, 689, 145, 41, 40, /* 780 */ 1602, 1596, 47, 45, 44, 43, 42, 763, 159, 158, /* 790 */ 760, 759, 758, 156, 1699, 300, 1594, 2269, 763, 159, /* 800 */ 158, 760, 759, 758, 156, 818, 710, 2013, 49, 2218, /* 810 */ 2250, 726, 2286, 521, 488, 113, 2252, 730, 2254, 2255, /* 820 */ 725, 1989, 720, 487, 2251, 148, 493, 154, 2310, 2339, /* 830 */ 544, 710, 2013, 409, 2335, 323, 1602, 727, 542, 1567, /* 840 */ 1568, 538, 534, 756, 1680, 1681, 2354, 2250, 1846, 2286, /* 850 */ 169, 494, 113, 2252, 730, 2254, 2255, 725, 613, 720, /* 860 */ 1845, 818, 308, 309, 190, 2269, 2339, 307, 710, 2013, /* 870 */ 409, 2335, 2349, 625, 1653, 1663, 2000, 2218, 1654, 726, /* 880 */ 1679, 1682, 192, 2347, 2348, 1625, 143, 2352, 566, 259, /* 890 */ 765, 710, 2013, 2370, 1996, 1597, 36, 1595, 1258, 710, /* 900 */ 2013, 2218, 41, 40, 1620, 616, 47, 45, 44, 43, /* 910 */ 42, 2010, 610, 2218, 714, 2250, 2311, 2286, 256, 264, /* 920 */ 174, 2252, 730, 2254, 2255, 725, 651, 720, 1600, 1601, /* 930 */ 1625, 1652, 1655, 1656, 1657, 1658, 1659, 1660, 1661, 1662, /* 940 */ 722, 718, 1671, 1672, 1674, 1675, 1676, 1677, 2, 48, /* 950 */ 46, 1597, 2420, 1595, 2251, 2415, 2211, 413, 71, 1596, /* 960 */ 407, 70, 653, 2380, 1844, 2017, 2212, 727, 170, 2377, /* 970 */ 710, 2013, 1678, 2419, 1594, 9, 2015, 2416, 2417, 710, /* 980 */ 2013, 1688, 710, 2013, 1600, 1601, 2419, 1621, 1278, 1279, /* 990 */ 273, 2251, 710, 2013, 212, 2269, 710, 2013, 2066, 695, /* 1000 */ 757, 1673, 312, 2057, 727, 652, 2390, 2218, 2415, 726, /* 1010 */ 1843, 416, 707, 2065, 1602, 652, 708, 2218, 2415, 170, /* 1020 */ 586, 585, 1748, 1709, 1840, 2421, 193, 2015, 710, 2013, /* 1030 */ 2416, 678, 2269, 1839, 87, 2421, 193, 86, 208, 818, /* 1040 */ 2416, 678, 49, 1838, 2218, 2250, 726, 2286, 318, 61, /* 1050 */ 113, 2252, 730, 2254, 2255, 725, 649, 720, 631, 2201, /* 1060 */ 2066, 189, 2435, 2218, 2339, 710, 2013, 417, 409, 2335, /* 1070 */ 422, 421, 637, 761, 693, 2064, 2057, 2218, 1680, 1681, /* 1080 */ 1610, 1837, 2250, 275, 2286, 420, 2218, 113, 2252, 730, /* 1090 */ 2254, 2255, 725, 1678, 720, 1603, 2218, 588, 587, 2435, /* 1100 */ 1836, 2339, 35, 1835, 2251, 409, 2335, 652, 1653, 1663, /* 1110 */ 2415, 1834, 1714, 762, 1679, 1682, 2057, 727, 1621, 659, /* 1120 */ 684, 652, 1673, 652, 2415, 270, 2415, 2421, 193, 1597, /* 1130 */ 721, 1595, 2416, 678, 2218, 1602, 689, 145, 1654, 1833, /* 1140 */ 138, 2421, 193, 2421, 193, 2269, 2416, 678, 2416, 678, /* 1150 */ 387, 386, 84, 2218, 604, 603, 2218, 2218, 1832, 726, /* 1160 */ 716, 92, 1600, 1601, 2218, 1652, 1655, 1656, 1657, 1658, /* 1170 */ 1659, 1660, 1661, 1662, 722, 718, 1671, 1672, 1674, 1675, /* 1180 */ 1676, 1677, 2, 48, 46, 787, 785, 2009, 170, 1857, /* 1190 */ 813, 413, 2218, 1596, 1741, 2250, 2016, 2286, 1255, 1256, /* 1200 */ 113, 2252, 730, 2254, 2255, 725, 1678, 720, 1594, 419, /* 1210 */ 776, 2218, 2435, 1975, 2339, 2359, 1741, 170, 409, 2335, /* 1220 */ 385, 384, 1546, 592, 332, 2015, 96, 2043, 249, 1899, /* 1230 */ 75, 247, 157, 251, 596, 1673, 250, 253, 255, 597, /* 1240 */ 252, 254, 194, 2347, 2348, 594, 143, 2352, 1602, 593, /* 1250 */ 1611, 609, 1606, 2204, 628, 157, 627, 157, 1350, 1890, /* 1260 */ 1888, 681, 2239, 1348, 50, 50, 680, 171, 280, 1654, /* 1270 */ 1605, 157, 339, 818, 1824, 1825, 15, 50, 442, 2251, /* 1280 */ 85, 611, 614, 1614, 1616, 305, 1955, 72, 155, 336, /* 1290 */ 74, 157, 727, 73, 2408, 65, 718, 1671, 1672, 1674, /* 1300 */ 1675, 1676, 1677, 362, 435, 55, 14, 13, 50, 1842, /* 1310 */ 50, 734, 1680, 1681, 224, 529, 527, 524, 2241, 1604, /* 1320 */ 2269, 1882, 155, 2383, 109, 157, 293, 769, 1565, 770, /* 1330 */ 1562, 1309, 2218, 106, 726, 665, 140, 1777, 1776, 287, /* 1340 */ 1953, 282, 1653, 1663, 694, 139, 155, 1952, 1679, 1682, /* 1350 */ 1515, 1328, 426, 1326, 63, 2270, 396, 2123, 310, 1873, /* 1360 */ 702, 314, 1878, 1597, 1393, 1595, 645, 2054, 1715, 2373, /* 1370 */ 2250, 1310, 2286, 811, 685, 113, 2252, 730, 2254, 2255, /* 1380 */ 725, 1664, 720, 331, 1421, 690, 295, 2435, 292, 2339, /* 1390 */ 299, 5, 112, 409, 2335, 1425, 1600, 1601, 1432, 1652, /* 1400 */ 1655, 1656, 1657, 1658, 1659, 1660, 1661, 1662, 722, 718, /* 1410 */ 1671, 1672, 1674, 1675, 1676, 1677, 2, 429, 1430, 160, /* 1420 */ 434, 377, 1628, 451, 450, 200, 2251, 1608, 201, 203, /* 1430 */ 453, 1539, 326, 82, 81, 462, 1620, 469, 205, 727, /* 1440 */ 214, 2358, 471, 1625, 2124, 475, 477, 482, 1619, 512, /* 1450 */ 495, 2116, 454, 452, 504, 502, 511, 513, 522, 523, /* 1460 */ 520, 2251, 525, 363, 218, 219, 443, 2269, 526, 441, /* 1470 */ 437, 433, 430, 455, 727, 1626, 1607, 221, 528, 2218, /* 1480 */ 545, 726, 530, 4, 553, 229, 546, 554, 89, 556, /* 1490 */ 1622, 558, 232, 1627, 559, 1629, 560, 562, 1630, 2129, /* 1500 */ 568, 589, 2269, 235, 358, 237, 90, 91, 242, 617, /* 1510 */ 618, 300, 115, 682, 2218, 2251, 726, 2250, 630, 2286, /* 1520 */ 632, 151, 113, 2252, 730, 2254, 2255, 725, 727, 720, /* 1530 */ 591, 2003, 246, 1999, 2435, 95, 2339, 327, 248, 163, /* 1540 */ 409, 2335, 164, 2001, 1997, 165, 166, 265, 2192, 1623, /* 1550 */ 2251, 640, 2250, 639, 2286, 269, 2269, 113, 2252, 730, /* 1560 */ 2254, 2255, 725, 727, 720, 2189, 2188, 271, 2218, 2314, /* 1570 */ 726, 2339, 644, 647, 2374, 409, 2335, 656, 2175, 2251, /* 1580 */ 666, 2384, 2389, 662, 646, 2388, 700, 278, 281, 399, /* 1590 */ 641, 2269, 727, 638, 669, 2361, 675, 8, 654, 291, /* 1600 */ 657, 655, 2414, 2218, 1741, 726, 2250, 2438, 2286, 686, /* 1610 */ 683, 113, 2252, 730, 2254, 2255, 725, 400, 720, 144, /* 1620 */ 2269, 1624, 1746, 2312, 2355, 2339, 294, 182, 1744, 409, /* 1630 */ 2335, 301, 2218, 152, 726, 698, 328, 703, 699, 2143, /* 1640 */ 2014, 2250, 2251, 2286, 1, 329, 113, 2252, 730, 2254, /* 1650 */ 2255, 725, 2142, 720, 288, 727, 286, 290, 713, 178, /* 1660 */ 2339, 196, 289, 2141, 409, 2335, 153, 330, 405, 103, /* 1670 */ 2250, 704, 2286, 62, 105, 114, 2252, 730, 2254, 2255, /* 1680 */ 725, 732, 720, 2269, 2058, 1976, 2320, 321, 333, 2339, /* 1690 */ 1234, 815, 812, 2338, 2335, 2218, 162, 726, 817, 335, /* 1700 */ 53, 337, 369, 357, 2210, 342, 2209, 2251, 370, 356, /* 1710 */ 2208, 79, 346, 2205, 431, 432, 1587, 1588, 199, 436, /* 1720 */ 727, 2203, 438, 439, 440, 2202, 378, 2200, 444, 2199, /* 1730 */ 446, 2198, 448, 2250, 1578, 2286, 2251, 2179, 114, 2252, /* 1740 */ 730, 2254, 2255, 725, 202, 720, 2178, 204, 2269, 727, /* 1750 */ 80, 1542, 2339, 1541, 2156, 2155, 715, 2335, 2251, 2154, /* 1760 */ 2218, 460, 726, 461, 2153, 2152, 1492, 2106, 2103, 466, /* 1770 */ 467, 727, 206, 2102, 2101, 83, 2100, 2269, 2105, 2104, /* 1780 */ 2099, 2098, 209, 2096, 2095, 2094, 211, 483, 2093, 2218, /* 1790 */ 485, 726, 2109, 2092, 2091, 2090, 2089, 2088, 728, 2269, /* 1800 */ 2286, 2087, 2086, 114, 2252, 730, 2254, 2255, 725, 2085, /* 1810 */ 720, 2218, 2084, 726, 2083, 2082, 2081, 2339, 2080, 2079, /* 1820 */ 2078, 372, 2335, 2077, 213, 2251, 2076, 2250, 2075, 2286, /* 1830 */ 2074, 88, 175, 2252, 730, 2254, 2255, 725, 727, 720, /* 1840 */ 2108, 2073, 2072, 1494, 2071, 2070, 2069, 515, 2068, 2250, /* 1850 */ 2067, 2286, 1918, 1364, 114, 2252, 730, 2254, 2255, 725, /* 1860 */ 366, 720, 220, 367, 1360, 1368, 2269, 1917, 2339, 222, /* 1870 */ 1916, 223, 1914, 2336, 1911, 531, 532, 533, 2218, 1910, /* 1880 */ 726, 537, 1903, 536, 535, 679, 2436, 540, 539, 1892, /* 1890 */ 543, 541, 1868, 186, 2251, 1257, 1867, 77, 2177, 225, /* 1900 */ 2173, 227, 2163, 78, 2151, 2238, 187, 727, 551, 236, /* 1910 */ 234, 2150, 239, 2127, 2251, 1992, 2250, 1913, 2286, 1909, /* 1920 */ 569, 174, 2252, 730, 2254, 2255, 725, 727, 720, 570, /* 1930 */ 571, 1907, 573, 1302, 1905, 2269, 574, 578, 577, 575, /* 1940 */ 397, 579, 1902, 581, 582, 583, 1887, 2218, 1885, 726, /* 1950 */ 1886, 1884, 1864, 1994, 1436, 2269, 784, 1437, 1993, 1351, /* 1960 */ 398, 1349, 1347, 1346, 2381, 1345, 1344, 2218, 786, 726, /* 1970 */ 1343, 1338, 1900, 1340, 1339, 1337, 245, 64, 1891, 390, /* 1980 */ 612, 391, 1889, 392, 615, 2250, 2251, 2286, 1863, 1862, /* 1990 */ 355, 2252, 730, 2254, 2255, 725, 1861, 720, 1860, 727, /* 2000 */ 619, 621, 1859, 623, 116, 2250, 1572, 2286, 2251, 2176, /* 2010 */ 355, 2252, 730, 2254, 2255, 725, 1574, 720, 1576, 2251, /* 2020 */ 1571, 727, 267, 29, 2172, 1550, 68, 2269, 1552, 1548, /* 2030 */ 2162, 2149, 727, 642, 2148, 2420, 17, 2251, 20, 2218, /* 2040 */ 6, 726, 57, 7, 58, 648, 1794, 658, 643, 2269, /* 2050 */ 724, 272, 21, 1527, 22, 284, 650, 1526, 33, 31, /* 2060 */ 2269, 2218, 285, 726, 2239, 404, 660, 277, 168, 66, /* 2070 */ 23, 176, 2218, 279, 726, 24, 1775, 2250, 2269, 2286, /* 2080 */ 283, 32, 348, 2252, 730, 2254, 2255, 725, 1809, 720, /* 2090 */ 2218, 1767, 726, 1814, 1808, 401, 98, 1813, 1812, 2250, /* 2100 */ 2251, 2286, 402, 1815, 175, 2252, 730, 2254, 2255, 725, /* 2110 */ 2250, 720, 2286, 727, 1738, 355, 2252, 730, 2254, 2255, /* 2120 */ 725, 297, 720, 1737, 60, 181, 2147, 674, 2250, 2126, /* 2130 */ 2286, 99, 100, 354, 2252, 730, 2254, 2255, 725, 304, /* 2140 */ 720, 2269, 2305, 25, 701, 1773, 412, 2125, 306, 2251, /* 2150 */ 311, 59, 69, 2218, 101, 726, 316, 18, 2437, 102, /* 2160 */ 313, 26, 727, 106, 13, 2251, 1690, 1689, 1612, 183, /* 2170 */ 1700, 197, 2289, 1645, 1668, 719, 2251, 11, 727, 1666, /* 2180 */ 39, 733, 729, 1665, 16, 27, 731, 1637, 28, 727, /* 2190 */ 2269, 2250, 1422, 2286, 415, 414, 355, 2252, 730, 2254, /* 2200 */ 2255, 725, 2218, 720, 726, 735, 2269, 737, 1419, 738, /* 2210 */ 740, 1418, 1415, 741, 743, 744, 746, 2269, 2218, 1409, /* 2220 */ 726, 747, 749, 1407, 750, 1413, 107, 319, 108, 2218, /* 2230 */ 2251, 726, 1431, 1427, 1300, 1412, 76, 1411, 764, 1332, /* 2240 */ 2250, 1410, 2286, 727, 1331, 355, 2252, 730, 2254, 2255, /* 2250 */ 725, 1330, 720, 1329, 1327, 1325, 629, 1324, 2286, 1323, /* 2260 */ 1358, 350, 2252, 730, 2254, 2255, 725, 2250, 720, 2286, /* 2270 */ 774, 2269, 340, 2252, 730, 2254, 2255, 725, 320, 720, /* 2280 */ 1321, 1320, 1318, 2218, 2251, 726, 1319, 1317, 1316, 1315, /* 2290 */ 1355, 1353, 1312, 1311, 1308, 1307, 1306, 727, 1305, 2251, /* 2300 */ 794, 796, 1906, 798, 795, 1904, 802, 800, 1901, 1883, /* 2310 */ 806, 1858, 727, 1908, 804, 799, 810, 808, 803, 1247, /* 2320 */ 1235, 2250, 807, 2286, 814, 2269, 338, 2252, 730, 2254, /* 2330 */ 2255, 725, 324, 720, 1598, 816, 819, 2218, 2251, 726, /* 2340 */ 2269, 334, 820, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2350 */ 1828, 727, 2218, 1828, 726, 1828, 1828, 1828, 1828, 1828, /* 2360 */ 1828, 1828, 1828, 2251, 1828, 1828, 1828, 1828, 1828, 1828, /* 2370 */ 1828, 1828, 1828, 1828, 1828, 2250, 727, 2286, 1828, 2269, /* 2380 */ 341, 2252, 730, 2254, 2255, 725, 1828, 720, 1828, 1828, /* 2390 */ 2250, 2218, 2286, 726, 1828, 347, 2252, 730, 2254, 2255, /* 2400 */ 725, 1828, 720, 1828, 2269, 1828, 1828, 1828, 1828, 1828, /* 2410 */ 1828, 1828, 1828, 1828, 1828, 1828, 2218, 1828, 726, 1828, /* 2420 */ 1828, 1828, 1828, 1828, 1828, 1828, 1828, 2251, 1828, 2250, /* 2430 */ 1828, 2286, 1828, 1828, 351, 2252, 730, 2254, 2255, 725, /* 2440 */ 727, 720, 1828, 1828, 2251, 1828, 1828, 1828, 1828, 1828, /* 2450 */ 1828, 1828, 1828, 1828, 2250, 1828, 2286, 727, 1828, 343, /* 2460 */ 2252, 730, 2254, 2255, 725, 1828, 720, 1828, 2269, 1828, /* 2470 */ 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 2251, 1828, /* 2480 */ 2218, 1828, 726, 1828, 1828, 2269, 1828, 1828, 1828, 1828, /* 2490 */ 1828, 727, 1828, 2251, 1828, 1828, 1828, 2218, 1828, 726, /* 2500 */ 1828, 1828, 1828, 1828, 1828, 1828, 727, 1828, 1828, 2251, /* 2510 */ 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 2250, 2269, /* 2520 */ 2286, 1828, 727, 352, 2252, 730, 2254, 2255, 725, 1828, /* 2530 */ 720, 2218, 1828, 726, 2269, 2250, 1828, 2286, 1828, 1828, /* 2540 */ 344, 2252, 730, 2254, 2255, 725, 2218, 720, 726, 1828, /* 2550 */ 2269, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2560 */ 1828, 1828, 2218, 1828, 726, 1828, 1828, 1828, 1828, 2250, /* 2570 */ 1828, 2286, 1828, 1828, 353, 2252, 730, 2254, 2255, 725, /* 2580 */ 1828, 720, 1828, 1828, 2250, 1828, 2286, 1828, 1828, 345, /* 2590 */ 2252, 730, 2254, 2255, 725, 1828, 720, 1828, 1828, 1828, /* 2600 */ 2250, 1828, 2286, 1828, 1828, 359, 2252, 730, 2254, 2255, /* 2610 */ 725, 2251, 720, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2620 */ 1828, 1828, 1828, 1828, 727, 1828, 1828, 2251, 1828, 1828, /* 2630 */ 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2640 */ 727, 1828, 1828, 2251, 1828, 1828, 1828, 1828, 1828, 1828, /* 2650 */ 1828, 1828, 2269, 1828, 1828, 1828, 727, 1828, 1828, 1828, /* 2660 */ 1828, 1828, 1828, 1828, 2218, 1828, 726, 1828, 2269, 1828, /* 2670 */ 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2680 */ 2218, 1828, 726, 1828, 2269, 1828, 1828, 1828, 1828, 1828, /* 2690 */ 1828, 1828, 1828, 1828, 1828, 1828, 2218, 1828, 726, 1828, /* 2700 */ 1828, 1828, 2250, 1828, 2286, 1828, 1828, 360, 2252, 730, /* 2710 */ 2254, 2255, 725, 1828, 720, 1828, 1828, 1828, 2250, 2251, /* 2720 */ 2286, 1828, 1828, 2263, 2252, 730, 2254, 2255, 725, 1828, /* 2730 */ 720, 1828, 727, 1828, 2250, 2251, 2286, 1828, 1828, 2262, /* 2740 */ 2252, 730, 2254, 2255, 725, 1828, 720, 1828, 727, 1828, /* 2750 */ 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2760 */ 2269, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2770 */ 1828, 1828, 2218, 1828, 726, 1828, 2269, 1828, 1828, 1828, /* 2780 */ 1828, 1828, 1828, 1828, 2251, 1828, 1828, 1828, 2218, 1828, /* 2790 */ 726, 1828, 1828, 1828, 1828, 1828, 1828, 727, 1828, 1828, /* 2800 */ 2251, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2810 */ 2250, 1828, 2286, 727, 1828, 2261, 2252, 730, 2254, 2255, /* 2820 */ 725, 1828, 720, 1828, 1828, 2269, 2250, 1828, 2286, 1828, /* 2830 */ 1828, 374, 2252, 730, 2254, 2255, 725, 2218, 720, 726, /* 2840 */ 1828, 2269, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2850 */ 1828, 1828, 1828, 2218, 1828, 726, 1828, 1828, 1828, 1828, /* 2860 */ 1828, 1828, 1828, 2251, 1828, 1828, 1828, 1828, 1828, 1828, /* 2870 */ 1828, 1828, 1828, 1828, 1828, 2250, 727, 2286, 1828, 2251, /* 2880 */ 375, 2252, 730, 2254, 2255, 725, 1828, 720, 1828, 1828, /* 2890 */ 1828, 2250, 727, 2286, 2251, 1828, 371, 2252, 730, 2254, /* 2900 */ 2255, 725, 1828, 720, 2269, 1828, 1828, 727, 1828, 1828, /* 2910 */ 1828, 1828, 1828, 1828, 1828, 1828, 2218, 1828, 726, 1828, /* 2920 */ 2269, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, 1828, /* 2930 */ 1828, 1828, 2218, 1828, 726, 2269, 1828, 1828, 1828, 1828, /* 2940 */ 1828, 1828, 1828, 1828, 1828, 1828, 1828, 2218, 1828, 726, /* 2950 */ 1828, 1828, 1828, 1828, 2250, 1828, 2286, 1828, 1828, 376, /* 2960 */ 2252, 730, 2254, 2255, 725, 1828, 720, 1828, 1828, 1828, /* 2970 */ 728, 1828, 2286, 1828, 1828, 350, 2252, 730, 2254, 2255, /* 2980 */ 725, 1828, 720, 1828, 1828, 2250, 1828, 2286, 1828, 1828, /* 2990 */ 349, 2252, 730, 2254, 2255, 725, 1828, 720, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 385, 355, 372, 398, 350, 355, 356, 353, 354, 454, /* 10 */ 455, 385, 12, 13, 14, 410, 386, 364, 413, 414, /* 20 */ 20, 0, 22, 8, 9, 375, 396, 12, 13, 14, /* 30 */ 15, 16, 382, 384, 381, 35, 0, 37, 355, 356, /* 40 */ 355, 356, 21, 390, 362, 24, 25, 26, 27, 28, /* 50 */ 29, 30, 31, 32, 405, 8, 9, 4, 375, 12, /* 60 */ 13, 14, 15, 16, 64, 0, 436, 20, 340, 387, /* 70 */ 70, 20, 426, 22, 428, 21, 446, 77, 24, 25, /* 80 */ 26, 27, 28, 29, 30, 31, 32, 3, 37, 24, /* 90 */ 25, 26, 27, 28, 29, 30, 31, 32, 20, 46, /* 100 */ 47, 48, 102, 37, 20, 105, 55, 14, 72, 73, /* 110 */ 74, 75, 76, 20, 78, 79, 80, 81, 82, 83, /* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, /* 130 */ 94, 95, 96, 97, 98, 355, 356, 20, 20, 102, /* 140 */ 22, 141, 142, 77, 416, 460, 461, 462, 463, 421, /* 150 */ 465, 466, 20, 116, 117, 118, 119, 120, 121, 122, /* 160 */ 123, 124, 125, 33, 127, 128, 129, 130, 131, 132, /* 170 */ 133, 171, 172, 55, 384, 45, 20, 177, 178, 383, /* 180 */ 465, 391, 402, 468, 20, 20, 355, 356, 372, 399, /* 190 */ 106, 395, 192, 465, 194, 384, 468, 355, 356, 184, /* 200 */ 485, 486, 386, 8, 9, 490, 491, 12, 13, 14, /* 210 */ 15, 16, 396, 485, 486, 404, 405, 375, 490, 491, /* 220 */ 173, 355, 105, 134, 382, 225, 226, 138, 228, 229, /* 230 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, /* 240 */ 240, 241, 242, 243, 244, 245, 12, 13, 355, 171, /* 250 */ 172, 18, 436, 20, 20, 465, 22, 173, 468, 343, /* 260 */ 27, 105, 446, 30, 372, 70, 400, 398, 35, 35, /* 270 */ 362, 37, 356, 351, 358, 485, 486, 355, 386, 357, /* 280 */ 490, 491, 413, 414, 51, 0, 53, 379, 396, 380, /* 290 */ 355, 58, 461, 462, 463, 387, 465, 466, 64, 468, /* 300 */ 384, 408, 409, 288, 70, 173, 141, 142, 113, 351, /* 310 */ 176, 77, 396, 355, 398, 357, 485, 486, 33, 12, /* 320 */ 13, 490, 491, 20, 20, 187, 8, 9, 436, 437, /* 330 */ 12, 13, 14, 15, 16, 20, 102, 104, 446, 105, /* 340 */ 431, 136, 177, 178, 37, 140, 355, 356, 115, 22, /* 350 */ 434, 33, 436, 215, 216, 439, 440, 441, 442, 443, /* 360 */ 444, 426, 446, 428, 37, 170, 375, 451, 225, 453, /* 370 */ 14, 15, 16, 457, 458, 141, 142, 20, 145, 262, /* 380 */ 1, 148, 149, 150, 151, 152, 153, 154, 155, 156, /* 390 */ 157, 158, 159, 160, 161, 162, 163, 164, 19, 166, /* 400 */ 167, 168, 268, 269, 270, 171, 172, 202, 4, 105, /* 410 */ 205, 177, 178, 208, 35, 210, 273, 274, 275, 276, /* 420 */ 277, 278, 279, 342, 106, 344, 192, 384, 194, 102, /* 430 */ 51, 134, 135, 136, 137, 138, 139, 140, 59, 60, /* 440 */ 61, 62, 399, 64, 249, 250, 251, 252, 253, 254, /* 450 */ 255, 256, 257, 258, 259, 449, 141, 142, 452, 225, /* 460 */ 226, 20, 228, 229, 230, 231, 232, 233, 234, 235, /* 470 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, /* 480 */ 246, 12, 13, 104, 343, 343, 107, 86, 105, 20, /* 490 */ 384, 22, 12, 13, 14, 15, 16, 391, 356, 1, /* 500 */ 2, 194, 69, 35, 35, 399, 37, 8, 9, 105, /* 510 */ 2, 12, 13, 14, 15, 16, 8, 9, 139, 51, /* 520 */ 12, 13, 14, 15, 16, 69, 384, 59, 60, 61, /* 530 */ 62, 350, 64, 64, 353, 354, 343, 396, 396, 70, /* 540 */ 398, 343, 384, 72, 73, 74, 77, 146, 147, 416, /* 550 */ 79, 80, 81, 174, 421, 394, 85, 399, 397, 398, /* 560 */ 181, 90, 91, 92, 93, 365, 262, 96, 355, 356, /* 570 */ 169, 102, 104, 373, 105, 107, 434, 438, 436, 343, /* 580 */ 201, 439, 440, 441, 442, 443, 444, 465, 446, 396, /* 590 */ 468, 438, 356, 451, 396, 453, 355, 356, 465, 457, /* 600 */ 458, 468, 356, 464, 106, 106, 355, 356, 486, 105, /* 610 */ 141, 142, 490, 491, 472, 402, 375, 464, 485, 486, /* 620 */ 384, 376, 480, 490, 491, 0, 375, 355, 356, 384, /* 630 */ 384, 246, 396, 248, 398, 343, 391, 392, 105, 70, /* 640 */ 171, 172, 174, 175, 399, 262, 177, 178, 20, 181, /* 650 */ 182, 8, 9, 0, 0, 12, 13, 14, 15, 16, /* 660 */ 115, 192, 0, 194, 0, 343, 262, 42, 200, 201, /* 670 */ 434, 450, 436, 452, 402, 439, 440, 441, 442, 443, /* 680 */ 444, 445, 446, 447, 448, 8, 9, 441, 396, 12, /* 690 */ 13, 14, 15, 16, 225, 226, 64, 228, 229, 230, /* 700 */ 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, /* 710 */ 241, 242, 243, 244, 245, 12, 13, 14, 396, 343, /* 720 */ 343, 14, 384, 20, 191, 22, 193, 20, 246, 391, /* 730 */ 355, 356, 356, 22, 72, 73, 74, 399, 35, 107, /* 740 */ 37, 79, 80, 81, 384, 77, 21, 85, 37, 106, /* 750 */ 375, 391, 90, 91, 92, 93, 343, 224, 96, 399, /* 760 */ 384, 36, 4, 38, 39, 40, 262, 64, 135, 356, /* 770 */ 397, 398, 396, 396, 398, 77, 355, 356, 8, 9, /* 780 */ 77, 22, 12, 13, 14, 15, 16, 134, 135, 136, /* 790 */ 137, 138, 139, 140, 225, 262, 37, 384, 134, 135, /* 800 */ 136, 137, 138, 139, 140, 102, 355, 356, 105, 396, /* 810 */ 434, 398, 436, 102, 160, 439, 440, 441, 442, 443, /* 820 */ 444, 0, 446, 169, 343, 449, 375, 451, 452, 453, /* 830 */ 51, 355, 356, 457, 458, 34, 77, 356, 59, 206, /* 840 */ 207, 62, 63, 115, 141, 142, 438, 434, 343, 436, /* 850 */ 173, 375, 439, 440, 441, 442, 443, 444, 4, 446, /* 860 */ 343, 102, 135, 136, 451, 384, 453, 140, 355, 356, /* 870 */ 457, 458, 464, 19, 171, 172, 385, 396, 171, 398, /* 880 */ 177, 178, 461, 462, 463, 20, 465, 466, 375, 35, /* 890 */ 69, 355, 356, 480, 385, 192, 2, 194, 14, 355, /* 900 */ 356, 396, 8, 9, 20, 51, 12, 13, 14, 15, /* 910 */ 16, 375, 58, 396, 450, 434, 452, 436, 64, 375, /* 920 */ 439, 440, 441, 442, 443, 444, 50, 446, 225, 226, /* 930 */ 20, 228, 229, 230, 231, 232, 233, 234, 235, 236, /* 940 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 12, /* 950 */ 13, 192, 465, 194, 343, 468, 416, 20, 104, 22, /* 960 */ 376, 107, 481, 482, 343, 385, 416, 356, 384, 358, /* 970 */ 355, 356, 35, 486, 37, 42, 392, 490, 491, 355, /* 980 */ 356, 14, 355, 356, 225, 226, 3, 20, 56, 57, /* 990 */ 375, 343, 355, 356, 64, 384, 355, 356, 384, 375, /* 1000 */ 393, 64, 375, 396, 356, 465, 358, 396, 468, 398, /* 1010 */ 343, 376, 375, 399, 77, 465, 375, 396, 468, 384, /* 1020 */ 360, 361, 264, 170, 343, 485, 486, 392, 355, 356, /* 1030 */ 490, 491, 384, 343, 104, 485, 486, 107, 173, 102, /* 1040 */ 490, 491, 105, 343, 396, 434, 398, 436, 375, 173, /* 1050 */ 439, 440, 441, 442, 443, 444, 180, 446, 416, 0, /* 1060 */ 384, 422, 451, 396, 453, 355, 356, 391, 457, 458, /* 1070 */ 12, 13, 416, 393, 416, 399, 396, 396, 141, 142, /* 1080 */ 22, 343, 434, 173, 436, 375, 396, 439, 440, 441, /* 1090 */ 442, 443, 444, 35, 446, 37, 396, 360, 361, 451, /* 1100 */ 343, 453, 249, 343, 343, 457, 458, 465, 171, 172, /* 1110 */ 468, 343, 259, 393, 177, 178, 396, 356, 20, 358, /* 1120 */ 33, 465, 64, 465, 468, 385, 468, 485, 486, 192, /* 1130 */ 385, 194, 490, 491, 396, 77, 355, 356, 171, 343, /* 1140 */ 33, 485, 486, 485, 486, 384, 490, 491, 490, 491, /* 1150 */ 39, 40, 45, 396, 369, 370, 396, 396, 343, 398, /* 1160 */ 102, 364, 225, 226, 396, 228, 229, 230, 231, 232, /* 1170 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, /* 1180 */ 243, 244, 245, 12, 13, 369, 370, 390, 384, 346, /* 1190 */ 347, 20, 396, 22, 261, 434, 392, 436, 47, 48, /* 1200 */ 439, 440, 441, 442, 443, 444, 35, 446, 37, 376, /* 1210 */ 371, 396, 451, 374, 453, 260, 261, 384, 457, 458, /* 1220 */ 109, 110, 196, 112, 377, 392, 200, 380, 108, 0, /* 1230 */ 115, 111, 33, 108, 13, 64, 111, 108, 108, 13, /* 1240 */ 111, 111, 461, 462, 463, 134, 465, 466, 77, 138, /* 1250 */ 192, 22, 194, 0, 209, 33, 211, 33, 37, 0, /* 1260 */ 0, 33, 49, 37, 33, 33, 283, 18, 33, 171, /* 1270 */ 37, 33, 23, 102, 141, 142, 105, 33, 219, 343, /* 1280 */ 165, 22, 22, 225, 226, 33, 373, 33, 33, 40, /* 1290 */ 41, 33, 356, 44, 358, 33, 238, 239, 240, 241, /* 1300 */ 242, 243, 244, 54, 51, 106, 1, 2, 33, 344, /* 1310 */ 33, 33, 141, 142, 65, 66, 67, 68, 105, 37, /* 1320 */ 384, 0, 33, 406, 105, 33, 494, 13, 106, 13, /* 1330 */ 106, 37, 396, 114, 398, 483, 359, 106, 106, 477, /* 1340 */ 372, 106, 171, 172, 106, 33, 33, 372, 177, 178, /* 1350 */ 106, 37, 359, 37, 105, 384, 415, 406, 106, 354, /* 1360 */ 106, 106, 356, 192, 106, 194, 423, 395, 106, 406, /* 1370 */ 434, 77, 436, 52, 287, 439, 440, 441, 442, 443, /* 1380 */ 444, 106, 446, 106, 106, 467, 487, 451, 459, 453, /* 1390 */ 470, 265, 143, 457, 458, 106, 225, 226, 106, 228, /* 1400 */ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, /* 1410 */ 239, 240, 241, 242, 243, 244, 245, 417, 106, 106, /* 1420 */ 51, 435, 20, 429, 208, 433, 343, 194, 364, 364, /* 1430 */ 429, 190, 419, 184, 185, 186, 20, 356, 189, 356, /* 1440 */ 45, 358, 403, 20, 406, 356, 403, 401, 20, 170, /* 1450 */ 355, 355, 203, 204, 403, 356, 401, 401, 103, 368, /* 1460 */ 101, 343, 100, 214, 367, 355, 217, 384, 366, 220, /* 1470 */ 221, 222, 223, 224, 356, 20, 194, 355, 355, 396, /* 1480 */ 348, 398, 355, 50, 348, 364, 352, 352, 364, 429, /* 1490 */ 20, 398, 364, 20, 357, 20, 418, 357, 20, 409, /* 1500 */ 355, 348, 384, 364, 348, 364, 364, 364, 364, 346, /* 1510 */ 346, 262, 355, 285, 396, 343, 398, 434, 212, 436, /* 1520 */ 432, 427, 439, 440, 441, 442, 443, 444, 356, 446, /* 1530 */ 384, 384, 384, 384, 451, 105, 453, 429, 384, 384, /* 1540 */ 457, 458, 384, 384, 384, 384, 384, 362, 396, 20, /* 1550 */ 343, 198, 434, 197, 436, 424, 384, 439, 440, 441, /* 1560 */ 442, 443, 444, 356, 446, 396, 396, 362, 396, 451, /* 1570 */ 398, 453, 398, 355, 406, 457, 458, 396, 428, 343, /* 1580 */ 272, 406, 476, 396, 417, 476, 271, 411, 411, 396, /* 1590 */ 425, 384, 356, 427, 396, 479, 183, 280, 266, 417, /* 1600 */ 282, 281, 489, 396, 261, 398, 434, 495, 436, 286, /* 1610 */ 284, 439, 440, 441, 442, 443, 444, 289, 446, 356, /* 1620 */ 384, 20, 115, 451, 438, 453, 488, 357, 263, 457, /* 1630 */ 458, 362, 396, 362, 398, 396, 411, 175, 396, 396, /* 1640 */ 356, 434, 343, 436, 471, 411, 439, 440, 441, 442, /* 1650 */ 443, 444, 396, 446, 475, 356, 478, 473, 451, 476, /* 1660 */ 453, 469, 474, 396, 457, 458, 362, 380, 396, 362, /* 1670 */ 434, 407, 436, 105, 105, 439, 440, 441, 442, 443, /* 1680 */ 444, 388, 446, 384, 396, 374, 456, 362, 355, 453, /* 1690 */ 22, 345, 38, 457, 458, 396, 349, 398, 348, 363, /* 1700 */ 420, 341, 412, 430, 0, 378, 0, 343, 412, 378, /* 1710 */ 0, 45, 378, 0, 37, 218, 37, 37, 37, 218, /* 1720 */ 356, 0, 37, 37, 218, 0, 218, 0, 37, 0, /* 1730 */ 22, 0, 37, 434, 213, 436, 343, 0, 439, 440, /* 1740 */ 441, 442, 443, 444, 201, 446, 0, 201, 384, 356, /* 1750 */ 202, 194, 453, 192, 0, 0, 457, 458, 343, 0, /* 1760 */ 396, 188, 398, 187, 0, 0, 49, 0, 0, 37, /* 1770 */ 51, 356, 49, 0, 0, 45, 0, 384, 0, 0, /* 1780 */ 0, 0, 49, 0, 0, 0, 160, 37, 0, 396, /* 1790 */ 160, 398, 0, 0, 0, 0, 0, 0, 434, 384, /* 1800 */ 436, 0, 0, 439, 440, 441, 442, 443, 444, 0, /* 1810 */ 446, 396, 0, 398, 0, 0, 0, 453, 0, 0, /* 1820 */ 0, 457, 458, 0, 49, 343, 0, 434, 0, 436, /* 1830 */ 0, 45, 439, 440, 441, 442, 443, 444, 356, 446, /* 1840 */ 0, 0, 0, 22, 0, 0, 0, 144, 0, 434, /* 1850 */ 0, 436, 0, 22, 439, 440, 441, 442, 443, 444, /* 1860 */ 50, 446, 64, 50, 37, 22, 384, 0, 453, 64, /* 1870 */ 0, 64, 0, 458, 0, 37, 51, 42, 396, 0, /* 1880 */ 398, 42, 0, 51, 37, 492, 493, 51, 37, 0, /* 1890 */ 37, 42, 0, 33, 343, 14, 0, 42, 0, 45, /* 1900 */ 0, 43, 0, 42, 0, 49, 49, 356, 49, 183, /* 1910 */ 42, 0, 49, 0, 343, 0, 434, 0, 436, 0, /* 1920 */ 37, 439, 440, 441, 442, 443, 444, 356, 446, 51, /* 1930 */ 42, 0, 37, 71, 0, 384, 51, 51, 37, 42, /* 1940 */ 389, 42, 0, 37, 51, 42, 0, 396, 0, 398, /* 1950 */ 0, 0, 0, 0, 22, 384, 33, 37, 0, 37, /* 1960 */ 389, 37, 37, 37, 482, 37, 37, 396, 33, 398, /* 1970 */ 37, 22, 0, 37, 37, 37, 111, 113, 0, 22, /* 1980 */ 53, 22, 0, 22, 37, 434, 343, 436, 0, 0, /* 1990 */ 439, 440, 441, 442, 443, 444, 0, 446, 0, 356, /* 2000 */ 37, 37, 0, 22, 20, 434, 37, 436, 343, 0, /* 2010 */ 439, 440, 441, 442, 443, 444, 37, 446, 106, 343, /* 2020 */ 37, 356, 49, 105, 0, 22, 105, 384, 199, 37, /* 2030 */ 0, 0, 356, 22, 0, 3, 267, 343, 33, 396, /* 2040 */ 50, 398, 173, 50, 173, 179, 106, 103, 173, 384, /* 2050 */ 356, 175, 33, 173, 33, 33, 179, 173, 33, 105, /* 2060 */ 384, 396, 49, 398, 49, 389, 101, 105, 195, 3, /* 2070 */ 267, 105, 396, 106, 398, 33, 106, 434, 384, 436, /* 2080 */ 105, 105, 439, 440, 441, 442, 443, 444, 37, 446, /* 2090 */ 396, 106, 398, 106, 37, 37, 105, 37, 37, 434, /* 2100 */ 343, 436, 37, 106, 439, 440, 441, 442, 443, 444, /* 2110 */ 434, 446, 436, 356, 106, 439, 440, 441, 442, 443, /* 2120 */ 444, 49, 446, 106, 33, 49, 0, 484, 434, 0, /* 2130 */ 436, 105, 42, 439, 440, 441, 442, 443, 444, 106, /* 2140 */ 446, 384, 448, 105, 176, 106, 389, 0, 105, 343, /* 2150 */ 105, 260, 105, 396, 42, 398, 49, 267, 493, 105, /* 2160 */ 174, 33, 356, 114, 2, 343, 103, 103, 22, 49, /* 2170 */ 225, 49, 105, 22, 106, 105, 343, 247, 356, 106, /* 2180 */ 105, 37, 227, 106, 105, 105, 115, 106, 105, 356, /* 2190 */ 384, 434, 106, 436, 37, 389, 439, 440, 441, 442, /* 2200 */ 443, 444, 396, 446, 398, 105, 384, 37, 106, 105, /* 2210 */ 37, 106, 106, 105, 37, 105, 37, 384, 396, 106, /* 2220 */ 398, 105, 37, 106, 105, 126, 105, 33, 105, 396, /* 2230 */ 343, 398, 37, 22, 71, 126, 105, 126, 70, 37, /* 2240 */ 434, 126, 436, 356, 37, 439, 440, 441, 442, 443, /* 2250 */ 444, 37, 446, 37, 37, 37, 434, 37, 436, 37, /* 2260 */ 77, 439, 440, 441, 442, 443, 444, 434, 446, 436, /* 2270 */ 99, 384, 439, 440, 441, 442, 443, 444, 33, 446, /* 2280 */ 37, 37, 22, 396, 343, 398, 37, 37, 37, 37, /* 2290 */ 77, 37, 37, 37, 37, 37, 22, 356, 37, 343, /* 2300 */ 37, 42, 0, 37, 51, 0, 37, 42, 0, 0, /* 2310 */ 37, 0, 356, 0, 42, 51, 37, 42, 51, 37, /* 2320 */ 22, 434, 51, 436, 33, 384, 439, 440, 441, 442, /* 2330 */ 443, 444, 22, 446, 22, 21, 21, 396, 343, 398, /* 2340 */ 384, 22, 20, 496, 496, 496, 496, 496, 496, 496, /* 2350 */ 496, 356, 396, 496, 398, 496, 496, 496, 496, 496, /* 2360 */ 496, 496, 496, 343, 496, 496, 496, 496, 496, 496, /* 2370 */ 496, 496, 496, 496, 496, 434, 356, 436, 496, 384, /* 2380 */ 439, 440, 441, 442, 443, 444, 496, 446, 496, 496, /* 2390 */ 434, 396, 436, 398, 496, 439, 440, 441, 442, 443, /* 2400 */ 444, 496, 446, 496, 384, 496, 496, 496, 496, 496, /* 2410 */ 496, 496, 496, 496, 496, 496, 396, 496, 398, 496, /* 2420 */ 496, 496, 496, 496, 496, 496, 496, 343, 496, 434, /* 2430 */ 496, 436, 496, 496, 439, 440, 441, 442, 443, 444, /* 2440 */ 356, 446, 496, 496, 343, 496, 496, 496, 496, 496, /* 2450 */ 496, 496, 496, 496, 434, 496, 436, 356, 496, 439, /* 2460 */ 440, 441, 442, 443, 444, 496, 446, 496, 384, 496, /* 2470 */ 496, 496, 496, 496, 496, 496, 496, 496, 343, 496, /* 2480 */ 396, 496, 398, 496, 496, 384, 496, 496, 496, 496, /* 2490 */ 496, 356, 496, 343, 496, 496, 496, 396, 496, 398, /* 2500 */ 496, 496, 496, 496, 496, 496, 356, 496, 496, 343, /* 2510 */ 496, 496, 496, 496, 496, 496, 496, 496, 434, 384, /* 2520 */ 436, 496, 356, 439, 440, 441, 442, 443, 444, 496, /* 2530 */ 446, 396, 496, 398, 384, 434, 496, 436, 496, 496, /* 2540 */ 439, 440, 441, 442, 443, 444, 396, 446, 398, 496, /* 2550 */ 384, 496, 496, 496, 496, 496, 496, 496, 496, 496, /* 2560 */ 496, 496, 396, 496, 398, 496, 496, 496, 496, 434, /* 2570 */ 496, 436, 496, 496, 439, 440, 441, 442, 443, 444, /* 2580 */ 496, 446, 496, 496, 434, 496, 436, 496, 496, 439, /* 2590 */ 440, 441, 442, 443, 444, 496, 446, 496, 496, 496, /* 2600 */ 434, 496, 436, 496, 496, 439, 440, 441, 442, 443, /* 2610 */ 444, 343, 446, 496, 496, 496, 496, 496, 496, 496, /* 2620 */ 496, 496, 496, 496, 356, 496, 496, 343, 496, 496, /* 2630 */ 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, /* 2640 */ 356, 496, 496, 343, 496, 496, 496, 496, 496, 496, /* 2650 */ 496, 496, 384, 496, 496, 496, 356, 496, 496, 496, /* 2660 */ 496, 496, 496, 496, 396, 496, 398, 496, 384, 496, /* 2670 */ 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, /* 2680 */ 396, 496, 398, 496, 384, 496, 496, 496, 496, 496, /* 2690 */ 496, 496, 496, 496, 496, 496, 396, 496, 398, 496, /* 2700 */ 496, 496, 434, 496, 436, 496, 496, 439, 440, 441, /* 2710 */ 442, 443, 444, 496, 446, 496, 496, 496, 434, 343, /* 2720 */ 436, 496, 496, 439, 440, 441, 442, 443, 444, 496, /* 2730 */ 446, 496, 356, 496, 434, 343, 436, 496, 496, 439, /* 2740 */ 440, 441, 442, 443, 444, 496, 446, 496, 356, 496, /* 2750 */ 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, /* 2760 */ 384, 496, 496, 496, 496, 496, 496, 496, 496, 496, /* 2770 */ 496, 496, 396, 496, 398, 496, 384, 496, 496, 496, /* 2780 */ 496, 496, 496, 496, 343, 496, 496, 496, 396, 496, /* 2790 */ 398, 496, 496, 496, 496, 496, 496, 356, 496, 496, /* 2800 */ 343, 496, 496, 496, 496, 496, 496, 496, 496, 496, /* 2810 */ 434, 496, 436, 356, 496, 439, 440, 441, 442, 443, /* 2820 */ 444, 496, 446, 496, 496, 384, 434, 496, 436, 496, /* 2830 */ 496, 439, 440, 441, 442, 443, 444, 396, 446, 398, /* 2840 */ 496, 384, 496, 496, 496, 496, 496, 496, 496, 496, /* 2850 */ 496, 496, 496, 396, 496, 398, 496, 496, 496, 496, /* 2860 */ 496, 496, 496, 343, 496, 496, 496, 496, 496, 496, /* 2870 */ 496, 496, 496, 496, 496, 434, 356, 436, 496, 343, /* 2880 */ 439, 440, 441, 442, 443, 444, 496, 446, 496, 496, /* 2890 */ 496, 434, 356, 436, 343, 496, 439, 440, 441, 442, /* 2900 */ 443, 444, 496, 446, 384, 496, 496, 356, 496, 496, /* 2910 */ 496, 496, 496, 496, 496, 496, 396, 496, 398, 496, /* 2920 */ 384, 496, 496, 496, 496, 496, 496, 496, 496, 496, /* 2930 */ 496, 496, 396, 496, 398, 384, 496, 496, 496, 496, /* 2940 */ 496, 496, 496, 496, 496, 496, 496, 396, 496, 398, /* 2950 */ 496, 496, 496, 496, 434, 496, 436, 496, 496, 439, /* 2960 */ 440, 441, 442, 443, 444, 496, 446, 496, 496, 496, /* 2970 */ 434, 496, 436, 496, 496, 439, 440, 441, 442, 443, /* 2980 */ 444, 496, 446, 496, 496, 434, 496, 436, 496, 496, /* 2990 */ 439, 440, 441, 442, 443, 444, 496, 446, 340, 340, /* 3000 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3010 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3020 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3030 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3040 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3050 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3060 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3070 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3080 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3090 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3100 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3110 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3120 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3130 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3140 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3150 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3160 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3170 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3180 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3190 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3200 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3210 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3220 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3230 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3240 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3250 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3260 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3270 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3280 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3290 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3300 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3310 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3320 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, /* 3330 */ 340, 340, 340, 340, 340, 340, 340, 340, }; #define YY_SHIFT_COUNT (821) #define YY_SHIFT_MIN (0) #define YY_SHIFT_MAX (2322) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 1249, 0, 234, 0, 469, 469, 469, 469, 469, 469, /* 10 */ 469, 469, 469, 469, 469, 469, 703, 937, 937, 1171, /* 20 */ 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, /* 30 */ 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, /* 40 */ 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, /* 50 */ 937, 117, 304, 533, 156, 383, 504, 383, 383, 156, /* 60 */ 156, 383, 1058, 383, 1058, 1058, 404, 383, 164, 165, /* 70 */ 303, 303, 165, 53, 53, 78, 315, 93, 93, 303, /* 80 */ 303, 303, 303, 303, 303, 303, 303, 303, 303, 357, /* 90 */ 441, 303, 303, 433, 303, 164, 357, 303, 628, 164, /* 100 */ 303, 303, 164, 303, 303, 164, 303, 164, 164, 164, /* 110 */ 303, 456, 233, 195, 195, 471, 54, 759, 759, 759, /* 120 */ 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, /* 130 */ 759, 759, 759, 759, 759, 759, 1111, 84, 78, 315, /* 140 */ 932, 932, 66, 132, 132, 132, 821, 385, 385, 66, /* 150 */ 433, 545, 164, 164, 482, 164, 668, 164, 668, 668, /* 160 */ 728, 698, 801, 37, 37, 37, 37, 37, 37, 37, /* 170 */ 37, 379, 662, 21, 47, 15, 143, 51, 134, 307, /* 180 */ 307, 707, 876, 967, 118, 865, 1151, 884, 89, 1026, /* 190 */ 910, 955, 933, 983, 955, 130, 758, 1098, 1126, 1369, /* 200 */ 1402, 1216, 433, 1402, 433, 1241, 1416, 1395, 1423, 1416, /* 210 */ 1395, 1279, 1428, 1416, 1428, 1395, 1279, 1279, 1355, 1359, /* 220 */ 1428, 1362, 1428, 1428, 1428, 1455, 1433, 1455, 1433, 1402, /* 230 */ 433, 433, 1470, 433, 1473, 1475, 433, 1473, 433, 1478, /* 240 */ 433, 433, 1428, 433, 1455, 164, 164, 164, 164, 164, /* 250 */ 164, 164, 164, 164, 164, 164, 1428, 801, 801, 1455, /* 260 */ 668, 668, 668, 1306, 1430, 1402, 456, 1529, 1430, 1353, /* 270 */ 1356, 1470, 456, 1126, 1428, 1423, 1423, 668, 1308, 1315, /* 280 */ 668, 1308, 1315, 668, 668, 164, 1317, 1413, 1308, 1318, /* 290 */ 1320, 1332, 1126, 1328, 1323, 1326, 1343, 1416, 1601, 1507, /* 300 */ 1365, 1473, 456, 456, 1315, 668, 668, 668, 668, 668, /* 310 */ 1315, 668, 1462, 456, 728, 456, 1416, 1568, 1569, 668, /* 320 */ 698, 1428, 456, 1668, 1654, 1455, 2998, 2998, 2998, 2998, /* 330 */ 2998, 2998, 2998, 2998, 2998, 36, 468, 65, 318, 854, /* 340 */ 499, 643, 653, 508, 894, 677, 664, 770, 770, 770, /* 350 */ 770, 770, 770, 770, 770, 770, 297, 205, 725, 480, /* 360 */ 480, 401, 779, 138, 654, 930, 327, 711, 633, 727, /* 370 */ 727, 356, 498, 853, 356, 356, 356, 1253, 1059, 1199, /* 380 */ 625, 1107, 1115, 285, 1120, 1125, 1129, 1130, 1221, 1226, /* 390 */ 1229, 1259, 1260, 1045, 1222, 1224, 632, 1231, 1232, 1235, /* 400 */ 1133, 1228, 1087, 1238, 1244, 1252, 1254, 1255, 1258, 1305, /* 410 */ 1262, 569, 1275, 1213, 1277, 1278, 1289, 1292, 1312, 1313, /* 420 */ 1219, 1233, 1282, 1314, 1316, 1294, 1321, 1704, 1706, 1710, /* 430 */ 1666, 1713, 1677, 1497, 1679, 1680, 1681, 1501, 1721, 1685, /* 440 */ 1686, 1506, 1725, 1508, 1727, 1691, 1729, 1708, 1731, 1695, /* 450 */ 1521, 1737, 1543, 1746, 1546, 1548, 1557, 1561, 1754, 1755, /* 460 */ 1759, 1573, 1576, 1764, 1765, 1717, 1767, 1732, 1719, 1768, /* 470 */ 1723, 1773, 1730, 1774, 1776, 1778, 1733, 1779, 1780, 1781, /* 480 */ 1783, 1784, 1785, 1626, 1750, 1788, 1630, 1792, 1793, 1794, /* 490 */ 1795, 1796, 1797, 1801, 1802, 1809, 1812, 1814, 1815, 1816, /* 500 */ 1818, 1819, 1820, 1775, 1823, 1786, 1826, 1828, 1830, 1840, /* 510 */ 1841, 1842, 1821, 1844, 1845, 1846, 1703, 1848, 1850, 1831, /* 520 */ 1810, 1843, 1813, 1852, 1798, 1827, 1867, 1805, 1870, 1807, /* 530 */ 1872, 1874, 1838, 1825, 1835, 1879, 1847, 1832, 1839, 1882, /* 540 */ 1851, 1836, 1849, 1889, 1853, 1892, 1854, 1855, 1860, 1856, /* 550 */ 1857, 1881, 1859, 1896, 1858, 1861, 1898, 1900, 1902, 1904, /* 560 */ 1868, 1726, 1911, 1856, 1863, 1913, 1915, 1862, 1917, 1919, /* 570 */ 1883, 1878, 1888, 1931, 1895, 1885, 1897, 1934, 1901, 1886, /* 580 */ 1899, 1942, 1906, 1893, 1903, 1946, 1948, 1950, 1951, 1952, /* 590 */ 1953, 1864, 1865, 1920, 1932, 1958, 1922, 1924, 1925, 1926, /* 600 */ 1928, 1929, 1933, 1923, 1935, 1936, 1937, 1949, 1938, 1972, /* 610 */ 1957, 1978, 1959, 1927, 1982, 1961, 1947, 1988, 1989, 1996, /* 620 */ 1963, 1998, 1964, 2002, 1981, 1984, 1969, 1979, 1983, 1912, /* 630 */ 1918, 2009, 1869, 1921, 1829, 1856, 1973, 2024, 1871, 1992, /* 640 */ 2003, 2030, 1873, 2011, 1875, 1876, 2031, 2034, 1880, 1866, /* 650 */ 1884, 1877, 2032, 2005, 1769, 1954, 1940, 1962, 1990, 1944, /* 660 */ 1993, 1965, 1967, 2019, 2021, 1970, 1966, 1975, 1976, 1985, /* 670 */ 2022, 2013, 2015, 1991, 2025, 1803, 1987, 1997, 2066, 2042, /* 680 */ 1890, 2051, 2057, 2058, 2060, 2061, 2065, 2008, 2017, 2072, /* 690 */ 1891, 2091, 2076, 2126, 2129, 2026, 2090, 2038, 2033, 2039, /* 700 */ 2043, 2045, 1968, 2047, 2147, 2112, 1986, 2054, 2049, 1856, /* 710 */ 2107, 2128, 2063, 1930, 2064, 2162, 2146, 1945, 2067, 2068, /* 720 */ 2070, 2073, 2075, 2077, 2120, 2079, 2080, 2122, 2081, 2151, /* 730 */ 1955, 2083, 2071, 2086, 2144, 2157, 2100, 2102, 2170, 2104, /* 740 */ 2105, 2173, 2108, 2106, 2177, 2110, 2113, 2179, 2116, 2117, /* 750 */ 2185, 2119, 2099, 2109, 2111, 2115, 2121, 2194, 2123, 2195, /* 760 */ 2131, 2194, 2194, 2211, 2163, 2168, 2202, 2207, 2214, 2216, /* 770 */ 2217, 2218, 2220, 2222, 2183, 2171, 2245, 2243, 2244, 2249, /* 780 */ 2260, 2250, 2251, 2252, 2213, 1923, 2254, 1935, 2255, 2256, /* 790 */ 2257, 2258, 2274, 2261, 2313, 2263, 2253, 2259, 2302, 2266, /* 800 */ 2264, 2265, 2305, 2269, 2267, 2272, 2308, 2273, 2271, 2275, /* 810 */ 2309, 2279, 2282, 2311, 2298, 2291, 2310, 2314, 2312, 2319, /* 820 */ 2315, 2322, }; #define YY_REDUCE_COUNT (334) #define YY_REDUCE_MIN (-445) #define YY_REDUCE_MAX (2551) static const short yy_reduce_ofst[] = { /* 0 */ -272, 142, 376, 413, -84, 611, 648, 761, 936, 1083, /* 10 */ 1118, 1172, 1207, 1236, 1299, 1364, 236, 481, 1393, 1415, /* 20 */ 1482, 1551, 1571, 1643, 1665, 1676, 1694, 1757, 1806, 1822, /* 30 */ 1833, 1887, 1941, 1956, 1995, 2020, 2084, 2101, 2135, 2150, /* 40 */ 2166, 2268, 2284, 2300, 2376, 2392, 2441, 2457, 2520, 2536, /* 50 */ 2551, -169, -210, 133, -315, 540, 550, 642, 656, 421, /* 60 */ 781, 658, -108, -285, -370, -184, 122, 487, 245, -395, /* 70 */ -350, -158, -131, -346, 181, -189, 161, -78, -42, -317, /* 80 */ -9, 241, 251, -220, 213, 375, 451, 476, 272, -354, /* 90 */ -107, 513, 536, -347, 544, 106, -65, 615, 246, 338, /* 100 */ 624, 627, 584, 637, 641, 360, 673, 635, 676, 833, /* 110 */ 710, -92, -134, -445, -445, 200, 81, 141, 193, 198, /* 120 */ 292, 322, 377, 505, 517, 621, 667, 681, 690, 700, /* 130 */ 738, 757, 760, 768, 796, 815, -204, 139, -351, 373, /* 140 */ 660, 737, 785, 139, 153, 408, -318, 221, 464, 816, /* 150 */ 797, -91, 43, 158, 6, 804, 607, 614, 680, 720, /* 160 */ 847, 839, 843, -385, -374, 491, 509, 580, 740, 745, /* 170 */ 580, 639, 913, 965, 917, 832, 852, 977, 862, 968, /* 180 */ 975, 971, 941, 971, 993, 951, 1005, 1006, 972, 943, /* 190 */ 963, 918, 918, 899, 918, 929, 920, 971, 1000, 986, /* 200 */ 994, 992, 1064, 1001, 1065, 1013, 1081, 1039, 1038, 1089, /* 210 */ 1043, 1046, 1095, 1099, 1096, 1051, 1055, 1056, 1091, 1097, /* 220 */ 1110, 1102, 1122, 1123, 1127, 1132, 1134, 1136, 1135, 1060, /* 230 */ 1121, 1124, 1093, 1128, 1137, 1078, 1139, 1140, 1141, 1090, /* 240 */ 1142, 1143, 1145, 1144, 1153, 1146, 1147, 1148, 1149, 1154, /* 250 */ 1155, 1158, 1159, 1160, 1161, 1162, 1157, 1163, 1164, 1156, /* 260 */ 1152, 1169, 1170, 1088, 1094, 1108, 1185, 1150, 1166, 1165, /* 270 */ 1131, 1174, 1205, 1167, 1218, 1168, 1175, 1181, 1106, 1176, /* 280 */ 1187, 1109, 1177, 1193, 1198, 971, 1116, 1178, 1183, 1179, /* 290 */ 1188, 1184, 1182, 1112, 1113, 1138, 918, 1263, 1186, 1173, /* 300 */ 1192, 1270, 1269, 1271, 1225, 1239, 1242, 1243, 1256, 1267, /* 310 */ 1234, 1272, 1264, 1304, 1287, 1307, 1284, 1230, 1293, 1288, /* 320 */ 1311, 1333, 1325, 1346, 1347, 1350, 1280, 1273, 1290, 1296, /* 330 */ 1327, 1331, 1334, 1336, 1360, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 10 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 20 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 30 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 40 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 50 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 60 */ 1826, 2144, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 70 */ 1826, 1826, 1826, 1826, 1826, 2117, 1826, 1826, 1826, 1826, /* 80 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 90 */ 1826, 1826, 1826, 1922, 1826, 1826, 1826, 1826, 1826, 1826, /* 100 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 110 */ 1826, 1920, 2110, 2341, 1826, 1826, 1826, 1826, 1826, 1826, /* 120 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 130 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 2353, 1826, 1826, /* 140 */ 1896, 1896, 1826, 2353, 2353, 2353, 1920, 2313, 2313, 1826, /* 150 */ 1922, 2182, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 160 */ 2042, 1826, 1856, 1826, 1826, 1826, 1826, 2066, 1826, 1826, /* 170 */ 1826, 2170, 1826, 1826, 2382, 2439, 1826, 1826, 2385, 1826, /* 180 */ 1826, 1826, 1826, 1826, 1826, 2122, 1826, 1826, 1995, 2164, /* 190 */ 2372, 2345, 2359, 2423, 2346, 2343, 2366, 1826, 2376, 1826, /* 200 */ 1826, 2196, 1922, 1826, 1922, 2157, 1826, 2115, 1826, 1826, /* 210 */ 2115, 2112, 1826, 1826, 1826, 2115, 2112, 2112, 1984, 1980, /* 220 */ 1826, 1978, 1826, 1826, 1826, 1826, 1880, 1826, 1880, 1826, /* 230 */ 1922, 1922, 1826, 1922, 1826, 1826, 1922, 1826, 1922, 1826, /* 240 */ 1922, 1922, 1826, 1922, 1826, 1826, 1826, 1826, 1826, 1826, /* 250 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 260 */ 1826, 1826, 1826, 2194, 2180, 1826, 1920, 1826, 2180, 2168, /* 270 */ 2166, 1826, 1920, 2376, 1826, 1826, 1826, 1826, 2393, 2391, /* 280 */ 1826, 2393, 2391, 1826, 1826, 1826, 2407, 2403, 2393, 2412, /* 290 */ 2409, 2378, 2376, 2442, 2429, 2425, 2359, 1826, 1826, 2364, /* 300 */ 2362, 1826, 1920, 1920, 2391, 1826, 1826, 1826, 1826, 1826, /* 310 */ 2391, 1826, 1826, 1920, 1826, 1920, 1826, 1826, 2011, 1826, /* 320 */ 1826, 1826, 1920, 1826, 1865, 1826, 2159, 2185, 2140, 2140, /* 330 */ 2045, 2045, 2045, 1923, 1831, 1826, 1826, 1826, 1826, 1826, /* 340 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 2406, 2405, 2268, /* 350 */ 1826, 2317, 2316, 2315, 2306, 2267, 2007, 1826, 1826, 2266, /* 360 */ 2265, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 2131, /* 370 */ 2130, 2259, 1826, 1826, 2260, 2258, 2257, 1826, 1826, 1826, /* 380 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 390 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 400 */ 1826, 2426, 2430, 1826, 1826, 1826, 1826, 1826, 1826, 2342, /* 410 */ 1826, 1826, 1826, 2240, 1826, 1826, 1826, 1826, 1826, 1826, /* 420 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 430 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 440 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 450 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 460 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 470 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 480 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 490 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 500 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 510 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 520 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 530 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 540 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1870, 2246, /* 550 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 560 */ 1826, 1826, 1826, 2249, 1826, 1826, 1826, 1826, 1826, 1826, /* 570 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 580 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 590 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 600 */ 1826, 1826, 1826, 1961, 1960, 1826, 1826, 1826, 1826, 1826, /* 610 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 620 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 2250, /* 630 */ 1826, 1826, 1826, 1826, 1826, 2242, 1826, 1826, 1826, 1826, /* 640 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 650 */ 1826, 1826, 2422, 2379, 1826, 1826, 1826, 1826, 1826, 1826, /* 660 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 670 */ 1826, 1826, 2240, 1826, 2404, 1826, 1826, 2420, 1826, 2424, /* 680 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 2352, 2348, 1826, /* 690 */ 1826, 2344, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 700 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 2239, /* 710 */ 1826, 2303, 1826, 1826, 1826, 2337, 1826, 1826, 2288, 1826, /* 720 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 2250, 1826, /* 730 */ 2253, 1826, 1826, 1826, 1826, 1826, 2039, 1826, 1826, 1826, /* 740 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 750 */ 1826, 1826, 2023, 2021, 2020, 2019, 1826, 2052, 1826, 1826, /* 760 */ 1826, 2048, 2047, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 770 */ 1826, 1826, 1826, 1826, 1826, 1826, 1941, 1826, 1826, 1826, /* 780 */ 1826, 1826, 1826, 1826, 1826, 1933, 1826, 1932, 1826, 1826, /* 790 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 800 */ 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, 1826, /* 810 */ 1826, 1826, 1826, 1826, 1826, 1855, 1826, 1826, 1826, 1826, /* 820 */ 1826, 1826, }; /********** 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, /* NK_COMMA => nothing */ 0, /* HOST => nothing */ 0, /* USER => nothing */ 0, /* ENABLE => nothing */ 0, /* NK_INTEGER => nothing */ 0, /* SYSINFO => nothing */ 0, /* ADD => nothing */ 0, /* DROP => nothing */ 0, /* GRANT => nothing */ 0, /* ON => nothing */ 0, /* TO => nothing */ 0, /* REVOKE => nothing */ 0, /* FROM => nothing */ 0, /* SUBSCRIBE => 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, /* BWLIMIT => nothing */ 0, /* START => nothing */ 0, /* TIMESTAMP => nothing */ 290, /* END => ABORT */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ 0, /* STABLE => nothing */ 0, /* COLUMN => nothing */ 0, /* MODIFY => nothing */ 0, /* RENAME => nothing */ 0, /* TAG => nothing */ 0, /* SET => nothing */ 0, /* NK_EQ => nothing */ 0, /* USING => nothing */ 0, /* TAGS => nothing */ 0, /* BOOL => nothing */ 0, /* TINYINT => nothing */ 0, /* SMALLINT => nothing */ 0, /* INT => nothing */ 0, /* INTEGER => nothing */ 0, /* BIGINT => nothing */ 0, /* FLOAT => nothing */ 0, /* DOUBLE => nothing */ 0, /* BINARY => nothing */ 0, /* NCHAR => nothing */ 0, /* UNSIGNED => nothing */ 0, /* JSON => nothing */ 0, /* VARCHAR => nothing */ 0, /* MEDIUMBLOB => nothing */ 0, /* BLOB => nothing */ 0, /* VARBINARY => nothing */ 0, /* GEOMETRY => nothing */ 0, /* DECIMAL => nothing */ 0, /* COMMENT => nothing */ 0, /* MAX_DELAY => nothing */ 0, /* WATERMARK => nothing */ 0, /* ROLLUP => nothing */ 0, /* TTL => nothing */ 0, /* SMA => nothing */ 0, /* DELETE_MARK => nothing */ 0, /* FIRST => nothing */ 0, /* LAST => nothing */ 0, /* SHOW => nothing */ 0, /* PRIVILEGES => nothing */ 0, /* DATABASES => nothing */ 0, /* TABLES => nothing */ 0, /* STABLES => nothing */ 0, /* MNODES => nothing */ 0, /* QNODES => nothing */ 0, /* FUNCTIONS => nothing */ 0, /* INDEXES => nothing */ 0, /* ACCOUNTS => nothing */ 0, /* APPS => nothing */ 0, /* CONNECTIONS => nothing */ 0, /* LICENCES => nothing */ 0, /* GRANTS => nothing */ 0, /* QUERIES => nothing */ 0, /* SCORES => nothing */ 0, /* TOPICS => nothing */ 0, /* VARIABLES => nothing */ 0, /* CLUSTER => nothing */ 0, /* BNODES => nothing */ 0, /* SNODES => nothing */ 0, /* TRANSACTIONS => nothing */ 0, /* DISTRIBUTED => nothing */ 0, /* CONSUMERS => nothing */ 0, /* SUBSCRIPTIONS => nothing */ 0, /* VNODES => nothing */ 0, /* ALIVE => nothing */ 0, /* LIKE => nothing */ 0, /* TBNAME => nothing */ 0, /* QTAGS => nothing */ 0, /* AS => nothing */ 0, /* INDEX => nothing */ 0, /* FUNCTION => nothing */ 0, /* INTERVAL => nothing */ 0, /* COUNT => nothing */ 0, /* LAST_ROW => nothing */ 0, /* META => nothing */ 0, /* ONLY => nothing */ 0, /* TOPIC => nothing */ 0, /* CONSUMER => nothing */ 0, /* GROUP => nothing */ 0, /* DESC => nothing */ 0, /* DESCRIBE => nothing */ 0, /* RESET => nothing */ 0, /* QUERY => nothing */ 0, /* CACHE => nothing */ 0, /* EXPLAIN => nothing */ 0, /* ANALYZE => nothing */ 0, /* VERBOSE => nothing */ 0, /* NK_BOOL => nothing */ 0, /* RATIO => nothing */ 0, /* NK_FLOAT => nothing */ 0, /* OUTPUTTYPE => nothing */ 0, /* AGGREGATE => nothing */ 0, /* BUFSIZE => nothing */ 0, /* LANGUAGE => nothing */ 0, /* REPLACE => nothing */ 290, /* VIEW => ABORT */ 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, /* NK_HINT => 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 */ 290, /* AFTER => ABORT */ 290, /* ATTACH => ABORT */ 290, /* BEFORE => ABORT */ 290, /* BEGIN => ABORT */ 290, /* BITAND => ABORT */ 290, /* BITNOT => ABORT */ 290, /* BITOR => ABORT */ 290, /* BLOCKS => ABORT */ 290, /* CHANGE => ABORT */ 290, /* COMMA => ABORT */ 290, /* CONCAT => ABORT */ 290, /* CONFLICT => ABORT */ 290, /* COPY => ABORT */ 290, /* DEFERRED => ABORT */ 290, /* DELIMITERS => ABORT */ 290, /* DETACH => ABORT */ 290, /* DIVIDE => ABORT */ 290, /* DOT => ABORT */ 290, /* EACH => ABORT */ 290, /* FAIL => ABORT */ 290, /* FILE => ABORT */ 290, /* FOR => ABORT */ 290, /* GLOB => ABORT */ 290, /* ID => ABORT */ 290, /* IMMEDIATE => ABORT */ 290, /* IMPORT => ABORT */ 290, /* INITIALLY => ABORT */ 290, /* INSTEAD => ABORT */ 290, /* ISNULL => ABORT */ 290, /* KEY => ABORT */ 290, /* MODULES => ABORT */ 290, /* NK_BITNOT => ABORT */ 290, /* NK_SEMI => ABORT */ 290, /* NOTNULL => ABORT */ 290, /* OF => ABORT */ 290, /* PLUS => ABORT */ 290, /* PRIVILEGE => ABORT */ 290, /* RAISE => ABORT */ 290, /* RESTRICT => ABORT */ 290, /* ROW => ABORT */ 290, /* SEMI => ABORT */ 290, /* STAR => ABORT */ 290, /* STATEMENT => ABORT */ 290, /* STRICT => ABORT */ 290, /* STRING => ABORT */ 290, /* TIMES => ABORT */ 290, /* VALUES => ABORT */ 290, /* VARIABLE => ABORT */ 290, /* WAL => ABORT */ }; #endif /* YYFALLBACK */ /* The following structure represents a single element of the ** parser's stack. Information stored includes: ** ** + The state number for the parser at this level of the stack. ** ** + The value of the token stored at this level of the stack. ** (In other words, the "major" token.) ** ** + The semantic value stored at this level of the stack. This is ** the information used by the action routines in the grammar. ** It is sometimes called the "minor" token. ** ** After the "shift" half of a SHIFTREDUCE action, the stateno field ** actually contains the reduce action for the second half of the ** SHIFTREDUCE. */ struct yyStackEntry { YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */ YYCODETYPE major; /* The major token value. This is the code ** number for the token at this stack level */ YYMINORTYPE minor; /* The user-supplied minor token value. This ** is the value of the token */ }; typedef struct yyStackEntry yyStackEntry; /* The state of the parser is completely contained in an instance of ** the following structure */ struct yyParser { yyStackEntry *yytos; /* Pointer to top element of the stack */ #ifdef YYTRACKMAXSTACKDEPTH int yyhwm; /* High-water mark of the stack */ #endif #ifndef YYNOERRORRECOVERY int yyerrcnt; /* Shifts left before out of the error */ #endif ParseARG_SDECL /* A place to hold %extra_argument */ ParseCTX_SDECL /* A place to hold %extra_context */ #if YYSTACKDEPTH<=0 int yystksz; /* Current side of the stack */ yyStackEntry *yystack; /* The parser's stack */ yyStackEntry yystk0; /* First stack entry */ #else yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */ yyStackEntry *yystackEnd; /* Last entry in the stack */ #endif }; typedef struct yyParser yyParser; #ifndef NDEBUG #include static FILE *yyTraceFILE = 0; static char *yyTracePrompt = 0; #endif /* NDEBUG */ #ifndef NDEBUG /* ** Turn parser tracing on by giving a stream to which to write the trace ** and a prompt to preface each trace message. Tracing is turned off ** by making either argument NULL ** ** Inputs: **
    **
  • A FILE* to which trace output should be written. ** If NULL, then tracing is turned off. **
  • A prefix string written at the beginning of every ** line of trace output. If NULL, then tracing is ** turned off. **
** ** Outputs: ** None. */ void ParseTrace(FILE *TraceFILE, char *zTracePrompt){ yyTraceFILE = TraceFILE; yyTracePrompt = zTracePrompt; if( yyTraceFILE==0 ) yyTracePrompt = 0; else if( yyTracePrompt==0 ) yyTraceFILE = 0; } #endif /* NDEBUG */ #if defined(YYCOVERAGE) || !defined(NDEBUG) /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ static const char *const yyTokenName[] = { /* 0 */ "$", /* 1 */ "OR", /* 2 */ "AND", /* 3 */ "UNION", /* 4 */ "ALL", /* 5 */ "MINUS", /* 6 */ "EXCEPT", /* 7 */ "INTERSECT", /* 8 */ "NK_BITAND", /* 9 */ "NK_BITOR", /* 10 */ "NK_LSHIFT", /* 11 */ "NK_RSHIFT", /* 12 */ "NK_PLUS", /* 13 */ "NK_MINUS", /* 14 */ "NK_STAR", /* 15 */ "NK_SLASH", /* 16 */ "NK_REM", /* 17 */ "NK_CONCAT", /* 18 */ "CREATE", /* 19 */ "ACCOUNT", /* 20 */ "NK_ID", /* 21 */ "PASS", /* 22 */ "NK_STRING", /* 23 */ "ALTER", /* 24 */ "PPS", /* 25 */ "TSERIES", /* 26 */ "STORAGE", /* 27 */ "STREAMS", /* 28 */ "QTIME", /* 29 */ "DBS", /* 30 */ "USERS", /* 31 */ "CONNS", /* 32 */ "STATE", /* 33 */ "NK_COMMA", /* 34 */ "HOST", /* 35 */ "USER", /* 36 */ "ENABLE", /* 37 */ "NK_INTEGER", /* 38 */ "SYSINFO", /* 39 */ "ADD", /* 40 */ "DROP", /* 41 */ "GRANT", /* 42 */ "ON", /* 43 */ "TO", /* 44 */ "REVOKE", /* 45 */ "FROM", /* 46 */ "SUBSCRIBE", /* 47 */ "READ", /* 48 */ "WRITE", /* 49 */ "NK_DOT", /* 50 */ "WITH", /* 51 */ "DNODE", /* 52 */ "PORT", /* 53 */ "DNODES", /* 54 */ "RESTORE", /* 55 */ "NK_IPTOKEN", /* 56 */ "FORCE", /* 57 */ "UNSAFE", /* 58 */ "LOCAL", /* 59 */ "QNODE", /* 60 */ "BNODE", /* 61 */ "SNODE", /* 62 */ "MNODE", /* 63 */ "VNODE", /* 64 */ "DATABASE", /* 65 */ "USE", /* 66 */ "FLUSH", /* 67 */ "TRIM", /* 68 */ "COMPACT", /* 69 */ "IF", /* 70 */ "NOT", /* 71 */ "EXISTS", /* 72 */ "BUFFER", /* 73 */ "CACHEMODEL", /* 74 */ "CACHESIZE", /* 75 */ "COMP", /* 76 */ "DURATION", /* 77 */ "NK_VARIABLE", /* 78 */ "MAXROWS", /* 79 */ "MINROWS", /* 80 */ "KEEP", /* 81 */ "PAGES", /* 82 */ "PAGESIZE", /* 83 */ "TSDB_PAGESIZE", /* 84 */ "PRECISION", /* 85 */ "REPLICA", /* 86 */ "VGROUPS", /* 87 */ "SINGLE_STABLE", /* 88 */ "RETENTIONS", /* 89 */ "SCHEMALESS", /* 90 */ "WAL_LEVEL", /* 91 */ "WAL_FSYNC_PERIOD", /* 92 */ "WAL_RETENTION_PERIOD", /* 93 */ "WAL_RETENTION_SIZE", /* 94 */ "WAL_ROLL_PERIOD", /* 95 */ "WAL_SEGMENT_SIZE", /* 96 */ "STT_TRIGGER", /* 97 */ "TABLE_PREFIX", /* 98 */ "TABLE_SUFFIX", /* 99 */ "NK_COLON", /* 100 */ "BWLIMIT", /* 101 */ "START", /* 102 */ "TIMESTAMP", /* 103 */ "END", /* 104 */ "TABLE", /* 105 */ "NK_LP", /* 106 */ "NK_RP", /* 107 */ "STABLE", /* 108 */ "COLUMN", /* 109 */ "MODIFY", /* 110 */ "RENAME", /* 111 */ "TAG", /* 112 */ "SET", /* 113 */ "NK_EQ", /* 114 */ "USING", /* 115 */ "TAGS", /* 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 */ "COMMENT", /* 135 */ "MAX_DELAY", /* 136 */ "WATERMARK", /* 137 */ "ROLLUP", /* 138 */ "TTL", /* 139 */ "SMA", /* 140 */ "DELETE_MARK", /* 141 */ "FIRST", /* 142 */ "LAST", /* 143 */ "SHOW", /* 144 */ "PRIVILEGES", /* 145 */ "DATABASES", /* 146 */ "TABLES", /* 147 */ "STABLES", /* 148 */ "MNODES", /* 149 */ "QNODES", /* 150 */ "FUNCTIONS", /* 151 */ "INDEXES", /* 152 */ "ACCOUNTS", /* 153 */ "APPS", /* 154 */ "CONNECTIONS", /* 155 */ "LICENCES", /* 156 */ "GRANTS", /* 157 */ "QUERIES", /* 158 */ "SCORES", /* 159 */ "TOPICS", /* 160 */ "VARIABLES", /* 161 */ "CLUSTER", /* 162 */ "BNODES", /* 163 */ "SNODES", /* 164 */ "TRANSACTIONS", /* 165 */ "DISTRIBUTED", /* 166 */ "CONSUMERS", /* 167 */ "SUBSCRIPTIONS", /* 168 */ "VNODES", /* 169 */ "ALIVE", /* 170 */ "LIKE", /* 171 */ "TBNAME", /* 172 */ "QTAGS", /* 173 */ "AS", /* 174 */ "INDEX", /* 175 */ "FUNCTION", /* 176 */ "INTERVAL", /* 177 */ "COUNT", /* 178 */ "LAST_ROW", /* 179 */ "META", /* 180 */ "ONLY", /* 181 */ "TOPIC", /* 182 */ "CONSUMER", /* 183 */ "GROUP", /* 184 */ "DESC", /* 185 */ "DESCRIBE", /* 186 */ "RESET", /* 187 */ "QUERY", /* 188 */ "CACHE", /* 189 */ "EXPLAIN", /* 190 */ "ANALYZE", /* 191 */ "VERBOSE", /* 192 */ "NK_BOOL", /* 193 */ "RATIO", /* 194 */ "NK_FLOAT", /* 195 */ "OUTPUTTYPE", /* 196 */ "AGGREGATE", /* 197 */ "BUFSIZE", /* 198 */ "LANGUAGE", /* 199 */ "REPLACE", /* 200 */ "VIEW", /* 201 */ "STREAM", /* 202 */ "INTO", /* 203 */ "PAUSE", /* 204 */ "RESUME", /* 205 */ "TRIGGER", /* 206 */ "AT_ONCE", /* 207 */ "WINDOW_CLOSE", /* 208 */ "IGNORE", /* 209 */ "EXPIRED", /* 210 */ "FILL_HISTORY", /* 211 */ "UPDATE", /* 212 */ "SUBTABLE", /* 213 */ "UNTREATED", /* 214 */ "KILL", /* 215 */ "CONNECTION", /* 216 */ "TRANSACTION", /* 217 */ "BALANCE", /* 218 */ "VGROUP", /* 219 */ "LEADER", /* 220 */ "MERGE", /* 221 */ "REDISTRIBUTE", /* 222 */ "SPLIT", /* 223 */ "DELETE", /* 224 */ "INSERT", /* 225 */ "NULL", /* 226 */ "NK_QUESTION", /* 227 */ "NK_ARROW", /* 228 */ "ROWTS", /* 229 */ "QSTART", /* 230 */ "QEND", /* 231 */ "QDURATION", /* 232 */ "WSTART", /* 233 */ "WEND", /* 234 */ "WDURATION", /* 235 */ "IROWTS", /* 236 */ "ISFILLED", /* 237 */ "CAST", /* 238 */ "NOW", /* 239 */ "TODAY", /* 240 */ "TIMEZONE", /* 241 */ "CLIENT_VERSION", /* 242 */ "SERVER_VERSION", /* 243 */ "SERVER_STATUS", /* 244 */ "CURRENT_USER", /* 245 */ "CASE", /* 246 */ "WHEN", /* 247 */ "THEN", /* 248 */ "ELSE", /* 249 */ "BETWEEN", /* 250 */ "IS", /* 251 */ "NK_LT", /* 252 */ "NK_GT", /* 253 */ "NK_LE", /* 254 */ "NK_GE", /* 255 */ "NK_NE", /* 256 */ "MATCH", /* 257 */ "NMATCH", /* 258 */ "CONTAINS", /* 259 */ "IN", /* 260 */ "JOIN", /* 261 */ "INNER", /* 262 */ "SELECT", /* 263 */ "NK_HINT", /* 264 */ "DISTINCT", /* 265 */ "WHERE", /* 266 */ "PARTITION", /* 267 */ "BY", /* 268 */ "SESSION", /* 269 */ "STATE_WINDOW", /* 270 */ "EVENT_WINDOW", /* 271 */ "SLIDING", /* 272 */ "FILL", /* 273 */ "VALUE", /* 274 */ "VALUE_F", /* 275 */ "NONE", /* 276 */ "PREV", /* 277 */ "NULL_F", /* 278 */ "LINEAR", /* 279 */ "NEXT", /* 280 */ "HAVING", /* 281 */ "RANGE", /* 282 */ "EVERY", /* 283 */ "ORDER", /* 284 */ "SLIMIT", /* 285 */ "SOFFSET", /* 286 */ "LIMIT", /* 287 */ "OFFSET", /* 288 */ "ASC", /* 289 */ "NULLS", /* 290 */ "ABORT", /* 291 */ "AFTER", /* 292 */ "ATTACH", /* 293 */ "BEFORE", /* 294 */ "BEGIN", /* 295 */ "BITAND", /* 296 */ "BITNOT", /* 297 */ "BITOR", /* 298 */ "BLOCKS", /* 299 */ "CHANGE", /* 300 */ "COMMA", /* 301 */ "CONCAT", /* 302 */ "CONFLICT", /* 303 */ "COPY", /* 304 */ "DEFERRED", /* 305 */ "DELIMITERS", /* 306 */ "DETACH", /* 307 */ "DIVIDE", /* 308 */ "DOT", /* 309 */ "EACH", /* 310 */ "FAIL", /* 311 */ "FILE", /* 312 */ "FOR", /* 313 */ "GLOB", /* 314 */ "ID", /* 315 */ "IMMEDIATE", /* 316 */ "IMPORT", /* 317 */ "INITIALLY", /* 318 */ "INSTEAD", /* 319 */ "ISNULL", /* 320 */ "KEY", /* 321 */ "MODULES", /* 322 */ "NK_BITNOT", /* 323 */ "NK_SEMI", /* 324 */ "NOTNULL", /* 325 */ "OF", /* 326 */ "PLUS", /* 327 */ "PRIVILEGE", /* 328 */ "RAISE", /* 329 */ "RESTRICT", /* 330 */ "ROW", /* 331 */ "SEMI", /* 332 */ "STAR", /* 333 */ "STATEMENT", /* 334 */ "STRICT", /* 335 */ "STRING", /* 336 */ "TIMES", /* 337 */ "VALUES", /* 338 */ "VARIABLE", /* 339 */ "WAL", /* 340 */ "cmd", /* 341 */ "account_options", /* 342 */ "alter_account_options", /* 343 */ "literal", /* 344 */ "alter_account_option", /* 345 */ "ip_range_list", /* 346 */ "white_list", /* 347 */ "white_list_opt", /* 348 */ "user_name", /* 349 */ "sysinfo_opt", /* 350 */ "privileges", /* 351 */ "priv_level", /* 352 */ "with_opt", /* 353 */ "priv_type_list", /* 354 */ "priv_type", /* 355 */ "db_name", /* 356 */ "table_name", /* 357 */ "topic_name", /* 358 */ "search_condition", /* 359 */ "dnode_endpoint", /* 360 */ "force_opt", /* 361 */ "unsafe_opt", /* 362 */ "not_exists_opt", /* 363 */ "db_options", /* 364 */ "exists_opt", /* 365 */ "alter_db_options", /* 366 */ "speed_opt", /* 367 */ "start_opt", /* 368 */ "end_opt", /* 369 */ "integer_list", /* 370 */ "variable_list", /* 371 */ "retention_list", /* 372 */ "signed", /* 373 */ "alter_db_option", /* 374 */ "retention", /* 375 */ "full_table_name", /* 376 */ "column_def_list", /* 377 */ "tags_def_opt", /* 378 */ "table_options", /* 379 */ "multi_create_clause", /* 380 */ "tags_def", /* 381 */ "multi_drop_clause", /* 382 */ "alter_table_clause", /* 383 */ "alter_table_options", /* 384 */ "column_name", /* 385 */ "type_name", /* 386 */ "signed_literal", /* 387 */ "create_subtable_clause", /* 388 */ "specific_cols_opt", /* 389 */ "expression_list", /* 390 */ "drop_table_clause", /* 391 */ "col_name_list", /* 392 */ "column_def", /* 393 */ "duration_list", /* 394 */ "rollup_func_list", /* 395 */ "alter_table_option", /* 396 */ "duration_literal", /* 397 */ "rollup_func_name", /* 398 */ "function_name", /* 399 */ "col_name", /* 400 */ "db_name_cond_opt", /* 401 */ "like_pattern_opt", /* 402 */ "table_name_cond", /* 403 */ "from_db_opt", /* 404 */ "tag_list_opt", /* 405 */ "tag_item", /* 406 */ "column_alias", /* 407 */ "index_options", /* 408 */ "full_index_name", /* 409 */ "index_name", /* 410 */ "func_list", /* 411 */ "sliding_opt", /* 412 */ "sma_stream_opt", /* 413 */ "func", /* 414 */ "sma_func_name", /* 415 */ "with_meta", /* 416 */ "query_or_subquery", /* 417 */ "where_clause_opt", /* 418 */ "cgroup_name", /* 419 */ "analyze_opt", /* 420 */ "explain_options", /* 421 */ "insert_query", /* 422 */ "or_replace_opt", /* 423 */ "agg_func_opt", /* 424 */ "bufsize_opt", /* 425 */ "language_opt", /* 426 */ "full_view_name", /* 427 */ "col_list_opt", /* 428 */ "view_name", /* 429 */ "stream_name", /* 430 */ "stream_options", /* 431 */ "tag_def_or_ref_opt", /* 432 */ "subtable_opt", /* 433 */ "ignore_opt", /* 434 */ "expression", /* 435 */ "dnode_list", /* 436 */ "literal_func", /* 437 */ "literal_list", /* 438 */ "table_alias", /* 439 */ "expr_or_subquery", /* 440 */ "pseudo_column", /* 441 */ "column_reference", /* 442 */ "function_expression", /* 443 */ "case_when_expression", /* 444 */ "star_func", /* 445 */ "star_func_para_list", /* 446 */ "noarg_func", /* 447 */ "other_para_list", /* 448 */ "star_func_para", /* 449 */ "when_then_list", /* 450 */ "case_when_else_opt", /* 451 */ "common_expression", /* 452 */ "when_then_expr", /* 453 */ "predicate", /* 454 */ "compare_op", /* 455 */ "in_op", /* 456 */ "in_predicate_value", /* 457 */ "boolean_value_expression", /* 458 */ "boolean_primary", /* 459 */ "from_clause_opt", /* 460 */ "table_reference_list", /* 461 */ "table_reference", /* 462 */ "table_primary", /* 463 */ "joined_table", /* 464 */ "alias_opt", /* 465 */ "subquery", /* 466 */ "parenthesized_joined_table", /* 467 */ "join_type", /* 468 */ "query_specification", /* 469 */ "hint_list", /* 470 */ "set_quantifier_opt", /* 471 */ "tag_mode_opt", /* 472 */ "select_list", /* 473 */ "partition_by_clause_opt", /* 474 */ "range_opt", /* 475 */ "every_opt", /* 476 */ "fill_opt", /* 477 */ "twindow_clause_opt", /* 478 */ "group_by_clause_opt", /* 479 */ "having_clause_opt", /* 480 */ "select_item", /* 481 */ "partition_list", /* 482 */ "partition_item", /* 483 */ "fill_mode", /* 484 */ "group_by_list", /* 485 */ "query_expression", /* 486 */ "query_simple", /* 487 */ "order_by_clause_opt", /* 488 */ "slimit_clause_opt", /* 489 */ "limit_clause_opt", /* 490 */ "union_query_expression", /* 491 */ "query_simple_or_subquery", /* 492 */ "sort_specification_list", /* 493 */ "sort_specification", /* 494 */ "ordering_specification_opt", /* 495 */ "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 */ "ip_range_list ::= NK_STRING", /* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING", /* 26 */ "white_list ::= HOST ip_range_list", /* 27 */ "white_list_opt ::=", /* 28 */ "white_list_opt ::= white_list", /* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt", /* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING", /* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER", /* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER", /* 33 */ "cmd ::= ALTER USER user_name ADD white_list", /* 34 */ "cmd ::= ALTER USER user_name DROP white_list", /* 35 */ "cmd ::= DROP USER user_name", /* 36 */ "sysinfo_opt ::=", /* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER", /* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name", /* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name", /* 40 */ "privileges ::= ALL", /* 41 */ "privileges ::= priv_type_list", /* 42 */ "privileges ::= SUBSCRIBE", /* 43 */ "priv_type_list ::= priv_type", /* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", /* 45 */ "priv_type ::= READ", /* 46 */ "priv_type ::= WRITE", /* 47 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", /* 48 */ "priv_level ::= db_name NK_DOT NK_STAR", /* 49 */ "priv_level ::= db_name NK_DOT table_name", /* 50 */ "priv_level ::= topic_name", /* 51 */ "with_opt ::=", /* 52 */ "with_opt ::= WITH search_condition", /* 53 */ "cmd ::= CREATE DNODE dnode_endpoint", /* 54 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", /* 55 */ "cmd ::= DROP DNODE NK_INTEGER force_opt", /* 56 */ "cmd ::= DROP DNODE dnode_endpoint force_opt", /* 57 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt", /* 58 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt", /* 59 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", /* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", /* 61 */ "cmd ::= ALTER ALL DNODES NK_STRING", /* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", /* 63 */ "cmd ::= RESTORE DNODE NK_INTEGER", /* 64 */ "dnode_endpoint ::= NK_STRING", /* 65 */ "dnode_endpoint ::= NK_ID", /* 66 */ "dnode_endpoint ::= NK_IPTOKEN", /* 67 */ "force_opt ::=", /* 68 */ "force_opt ::= FORCE", /* 69 */ "unsafe_opt ::= UNSAFE", /* 70 */ "cmd ::= ALTER LOCAL NK_STRING", /* 71 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", /* 72 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", /* 73 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", /* 74 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER", /* 75 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", /* 76 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", /* 77 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", /* 78 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", /* 79 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", /* 80 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", /* 81 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER", /* 82 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER", /* 83 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", /* 84 */ "cmd ::= DROP DATABASE exists_opt db_name", /* 85 */ "cmd ::= USE db_name", /* 86 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 87 */ "cmd ::= FLUSH DATABASE db_name", /* 88 */ "cmd ::= TRIM DATABASE db_name speed_opt", /* 89 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt", /* 90 */ "not_exists_opt ::= IF NOT EXISTS", /* 91 */ "not_exists_opt ::=", /* 92 */ "exists_opt ::= IF EXISTS", /* 93 */ "exists_opt ::=", /* 94 */ "db_options ::=", /* 95 */ "db_options ::= db_options BUFFER NK_INTEGER", /* 96 */ "db_options ::= db_options CACHEMODEL NK_STRING", /* 97 */ "db_options ::= db_options CACHESIZE NK_INTEGER", /* 98 */ "db_options ::= db_options COMP NK_INTEGER", /* 99 */ "db_options ::= db_options DURATION NK_INTEGER", /* 100 */ "db_options ::= db_options DURATION NK_VARIABLE", /* 101 */ "db_options ::= db_options MAXROWS NK_INTEGER", /* 102 */ "db_options ::= db_options MINROWS NK_INTEGER", /* 103 */ "db_options ::= db_options KEEP integer_list", /* 104 */ "db_options ::= db_options KEEP variable_list", /* 105 */ "db_options ::= db_options PAGES NK_INTEGER", /* 106 */ "db_options ::= db_options PAGESIZE NK_INTEGER", /* 107 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", /* 108 */ "db_options ::= db_options PRECISION NK_STRING", /* 109 */ "db_options ::= db_options REPLICA NK_INTEGER", /* 110 */ "db_options ::= db_options VGROUPS NK_INTEGER", /* 111 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", /* 112 */ "db_options ::= db_options RETENTIONS retention_list", /* 113 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", /* 114 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", /* 115 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", /* 116 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", /* 117 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 118 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", /* 119 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 120 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", /* 121 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", /* 122 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", /* 123 */ "db_options ::= db_options TABLE_PREFIX signed", /* 124 */ "db_options ::= db_options TABLE_SUFFIX signed", /* 125 */ "alter_db_options ::= alter_db_option", /* 126 */ "alter_db_options ::= alter_db_options alter_db_option", /* 127 */ "alter_db_option ::= BUFFER NK_INTEGER", /* 128 */ "alter_db_option ::= CACHEMODEL NK_STRING", /* 129 */ "alter_db_option ::= CACHESIZE NK_INTEGER", /* 130 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", /* 131 */ "alter_db_option ::= KEEP integer_list", /* 132 */ "alter_db_option ::= KEEP variable_list", /* 133 */ "alter_db_option ::= PAGES NK_INTEGER", /* 134 */ "alter_db_option ::= REPLICA NK_INTEGER", /* 135 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", /* 136 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", /* 137 */ "alter_db_option ::= MINROWS NK_INTEGER", /* 138 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER", /* 139 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 140 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER", /* 141 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 142 */ "integer_list ::= NK_INTEGER", /* 143 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", /* 144 */ "variable_list ::= NK_VARIABLE", /* 145 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", /* 146 */ "retention_list ::= retention", /* 147 */ "retention_list ::= retention_list NK_COMMA retention", /* 148 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", /* 149 */ "speed_opt ::=", /* 150 */ "speed_opt ::= BWLIMIT NK_INTEGER", /* 151 */ "start_opt ::=", /* 152 */ "start_opt ::= START WITH NK_INTEGER", /* 153 */ "start_opt ::= START WITH NK_STRING", /* 154 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", /* 155 */ "end_opt ::=", /* 156 */ "end_opt ::= END WITH NK_INTEGER", /* 157 */ "end_opt ::= END WITH NK_STRING", /* 158 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", /* 159 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", /* 160 */ "cmd ::= CREATE TABLE multi_create_clause", /* 161 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", /* 162 */ "cmd ::= DROP TABLE multi_drop_clause", /* 163 */ "cmd ::= DROP STABLE exists_opt full_table_name", /* 164 */ "cmd ::= ALTER TABLE alter_table_clause", /* 165 */ "cmd ::= ALTER STABLE alter_table_clause", /* 166 */ "alter_table_clause ::= full_table_name alter_table_options", /* 167 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", /* 168 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", /* 169 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", /* 170 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", /* 171 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", /* 172 */ "alter_table_clause ::= full_table_name DROP TAG column_name", /* 173 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", /* 174 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", /* 175 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", /* 176 */ "multi_create_clause ::= create_subtable_clause", /* 177 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", /* 178 */ "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", /* 179 */ "multi_drop_clause ::= drop_table_clause", /* 180 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", /* 181 */ "drop_table_clause ::= exists_opt full_table_name", /* 182 */ "specific_cols_opt ::=", /* 183 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", /* 184 */ "full_table_name ::= table_name", /* 185 */ "full_table_name ::= db_name NK_DOT table_name", /* 186 */ "column_def_list ::= column_def", /* 187 */ "column_def_list ::= column_def_list NK_COMMA column_def", /* 188 */ "column_def ::= column_name type_name", /* 189 */ "type_name ::= BOOL", /* 190 */ "type_name ::= TINYINT", /* 191 */ "type_name ::= SMALLINT", /* 192 */ "type_name ::= INT", /* 193 */ "type_name ::= INTEGER", /* 194 */ "type_name ::= BIGINT", /* 195 */ "type_name ::= FLOAT", /* 196 */ "type_name ::= DOUBLE", /* 197 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", /* 198 */ "type_name ::= TIMESTAMP", /* 199 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", /* 200 */ "type_name ::= TINYINT UNSIGNED", /* 201 */ "type_name ::= SMALLINT UNSIGNED", /* 202 */ "type_name ::= INT UNSIGNED", /* 203 */ "type_name ::= BIGINT UNSIGNED", /* 204 */ "type_name ::= JSON", /* 205 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", /* 206 */ "type_name ::= MEDIUMBLOB", /* 207 */ "type_name ::= BLOB", /* 208 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", /* 209 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", /* 210 */ "type_name ::= DECIMAL", /* 211 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 212 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 213 */ "tags_def_opt ::=", /* 214 */ "tags_def_opt ::= tags_def", /* 215 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", /* 216 */ "table_options ::=", /* 217 */ "table_options ::= table_options COMMENT NK_STRING", /* 218 */ "table_options ::= table_options MAX_DELAY duration_list", /* 219 */ "table_options ::= table_options WATERMARK duration_list", /* 220 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", /* 221 */ "table_options ::= table_options TTL NK_INTEGER", /* 222 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", /* 223 */ "table_options ::= table_options DELETE_MARK duration_list", /* 224 */ "alter_table_options ::= alter_table_option", /* 225 */ "alter_table_options ::= alter_table_options alter_table_option", /* 226 */ "alter_table_option ::= COMMENT NK_STRING", /* 227 */ "alter_table_option ::= TTL NK_INTEGER", /* 228 */ "duration_list ::= duration_literal", /* 229 */ "duration_list ::= duration_list NK_COMMA duration_literal", /* 230 */ "rollup_func_list ::= rollup_func_name", /* 231 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", /* 232 */ "rollup_func_name ::= function_name", /* 233 */ "rollup_func_name ::= FIRST", /* 234 */ "rollup_func_name ::= LAST", /* 235 */ "col_name_list ::= col_name", /* 236 */ "col_name_list ::= col_name_list NK_COMMA col_name", /* 237 */ "col_name ::= column_name", /* 238 */ "cmd ::= SHOW DNODES", /* 239 */ "cmd ::= SHOW USERS", /* 240 */ "cmd ::= SHOW USER PRIVILEGES", /* 241 */ "cmd ::= SHOW DATABASES", /* 242 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", /* 243 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", /* 244 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", /* 245 */ "cmd ::= SHOW MNODES", /* 246 */ "cmd ::= SHOW QNODES", /* 247 */ "cmd ::= SHOW FUNCTIONS", /* 248 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", /* 249 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", /* 250 */ "cmd ::= SHOW STREAMS", /* 251 */ "cmd ::= SHOW ACCOUNTS", /* 252 */ "cmd ::= SHOW APPS", /* 253 */ "cmd ::= SHOW CONNECTIONS", /* 254 */ "cmd ::= SHOW LICENCES", /* 255 */ "cmd ::= SHOW GRANTS", /* 256 */ "cmd ::= SHOW CREATE DATABASE db_name", /* 257 */ "cmd ::= SHOW CREATE TABLE full_table_name", /* 258 */ "cmd ::= SHOW CREATE STABLE full_table_name", /* 259 */ "cmd ::= SHOW QUERIES", /* 260 */ "cmd ::= SHOW SCORES", /* 261 */ "cmd ::= SHOW TOPICS", /* 262 */ "cmd ::= SHOW VARIABLES", /* 263 */ "cmd ::= SHOW CLUSTER VARIABLES", /* 264 */ "cmd ::= SHOW LOCAL VARIABLES", /* 265 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", /* 266 */ "cmd ::= SHOW BNODES", /* 267 */ "cmd ::= SHOW SNODES", /* 268 */ "cmd ::= SHOW CLUSTER", /* 269 */ "cmd ::= SHOW TRANSACTIONS", /* 270 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", /* 271 */ "cmd ::= SHOW CONSUMERS", /* 272 */ "cmd ::= SHOW SUBSCRIPTIONS", /* 273 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", /* 274 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", /* 275 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", /* 276 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", /* 277 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", /* 278 */ "cmd ::= SHOW VNODES", /* 279 */ "cmd ::= SHOW db_name_cond_opt ALIVE", /* 280 */ "cmd ::= SHOW CLUSTER ALIVE", /* 281 */ "db_name_cond_opt ::=", /* 282 */ "db_name_cond_opt ::= db_name NK_DOT", /* 283 */ "like_pattern_opt ::=", /* 284 */ "like_pattern_opt ::= LIKE NK_STRING", /* 285 */ "table_name_cond ::= table_name", /* 286 */ "from_db_opt ::=", /* 287 */ "from_db_opt ::= FROM db_name", /* 288 */ "tag_list_opt ::=", /* 289 */ "tag_list_opt ::= tag_item", /* 290 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", /* 291 */ "tag_item ::= TBNAME", /* 292 */ "tag_item ::= QTAGS", /* 293 */ "tag_item ::= column_name", /* 294 */ "tag_item ::= column_name column_alias", /* 295 */ "tag_item ::= column_name AS column_alias", /* 296 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", /* 297 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", /* 298 */ "cmd ::= DROP INDEX exists_opt full_index_name", /* 299 */ "full_index_name ::= index_name", /* 300 */ "full_index_name ::= db_name NK_DOT index_name", /* 301 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", /* 302 */ "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", /* 303 */ "func_list ::= func", /* 304 */ "func_list ::= func_list NK_COMMA func", /* 305 */ "func ::= sma_func_name NK_LP expression_list NK_RP", /* 306 */ "sma_func_name ::= function_name", /* 307 */ "sma_func_name ::= COUNT", /* 308 */ "sma_func_name ::= FIRST", /* 309 */ "sma_func_name ::= LAST", /* 310 */ "sma_func_name ::= LAST_ROW", /* 311 */ "sma_stream_opt ::=", /* 312 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", /* 313 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", /* 314 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", /* 315 */ "with_meta ::= AS", /* 316 */ "with_meta ::= WITH META AS", /* 317 */ "with_meta ::= ONLY META AS", /* 318 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", /* 319 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", /* 320 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", /* 321 */ "cmd ::= DROP TOPIC exists_opt topic_name", /* 322 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", /* 323 */ "cmd ::= DESC full_table_name", /* 324 */ "cmd ::= DESCRIBE full_table_name", /* 325 */ "cmd ::= RESET QUERY CACHE", /* 326 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", /* 327 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", /* 328 */ "analyze_opt ::=", /* 329 */ "analyze_opt ::= ANALYZE", /* 330 */ "explain_options ::=", /* 331 */ "explain_options ::= explain_options VERBOSE NK_BOOL", /* 332 */ "explain_options ::= explain_options RATIO NK_FLOAT", /* 333 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", /* 334 */ "cmd ::= DROP FUNCTION exists_opt function_name", /* 335 */ "agg_func_opt ::=", /* 336 */ "agg_func_opt ::= AGGREGATE", /* 337 */ "bufsize_opt ::=", /* 338 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", /* 339 */ "language_opt ::=", /* 340 */ "language_opt ::= LANGUAGE NK_STRING", /* 341 */ "or_replace_opt ::=", /* 342 */ "or_replace_opt ::= OR REPLACE", /* 343 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name col_list_opt AS query_or_subquery", /* 344 */ "cmd ::= DROP VIEW exists_opt full_view_name", /* 345 */ "full_view_name ::= view_name", /* 346 */ "full_view_name ::= db_name NK_DOT view_name", /* 347 */ "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", /* 348 */ "cmd ::= DROP STREAM exists_opt stream_name", /* 349 */ "cmd ::= PAUSE STREAM exists_opt stream_name", /* 350 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", /* 351 */ "col_list_opt ::=", /* 352 */ "col_list_opt ::= NK_LP col_name_list NK_RP", /* 353 */ "tag_def_or_ref_opt ::=", /* 354 */ "tag_def_or_ref_opt ::= tags_def", /* 355 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", /* 356 */ "stream_options ::=", /* 357 */ "stream_options ::= stream_options TRIGGER AT_ONCE", /* 358 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", /* 359 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", /* 360 */ "stream_options ::= stream_options WATERMARK duration_literal", /* 361 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", /* 362 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", /* 363 */ "stream_options ::= stream_options DELETE_MARK duration_literal", /* 364 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", /* 365 */ "subtable_opt ::=", /* 366 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", /* 367 */ "ignore_opt ::=", /* 368 */ "ignore_opt ::= IGNORE UNTREATED", /* 369 */ "cmd ::= KILL CONNECTION NK_INTEGER", /* 370 */ "cmd ::= KILL QUERY NK_STRING", /* 371 */ "cmd ::= KILL TRANSACTION NK_INTEGER", /* 372 */ "cmd ::= BALANCE VGROUP", /* 373 */ "cmd ::= BALANCE VGROUP LEADER", /* 374 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", /* 375 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", /* 376 */ "cmd ::= SPLIT VGROUP NK_INTEGER", /* 377 */ "dnode_list ::= DNODE NK_INTEGER", /* 378 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", /* 379 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 380 */ "cmd ::= query_or_subquery", /* 381 */ "cmd ::= insert_query", /* 382 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", /* 383 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", /* 384 */ "literal ::= NK_INTEGER", /* 385 */ "literal ::= NK_FLOAT", /* 386 */ "literal ::= NK_STRING", /* 387 */ "literal ::= NK_BOOL", /* 388 */ "literal ::= TIMESTAMP NK_STRING", /* 389 */ "literal ::= duration_literal", /* 390 */ "literal ::= NULL", /* 391 */ "literal ::= NK_QUESTION", /* 392 */ "duration_literal ::= NK_VARIABLE", /* 393 */ "signed ::= NK_INTEGER", /* 394 */ "signed ::= NK_PLUS NK_INTEGER", /* 395 */ "signed ::= NK_MINUS NK_INTEGER", /* 396 */ "signed ::= NK_FLOAT", /* 397 */ "signed ::= NK_PLUS NK_FLOAT", /* 398 */ "signed ::= NK_MINUS NK_FLOAT", /* 399 */ "signed_literal ::= signed", /* 400 */ "signed_literal ::= NK_STRING", /* 401 */ "signed_literal ::= NK_BOOL", /* 402 */ "signed_literal ::= TIMESTAMP NK_STRING", /* 403 */ "signed_literal ::= duration_literal", /* 404 */ "signed_literal ::= NULL", /* 405 */ "signed_literal ::= literal_func", /* 406 */ "signed_literal ::= NK_QUESTION", /* 407 */ "literal_list ::= signed_literal", /* 408 */ "literal_list ::= literal_list NK_COMMA signed_literal", /* 409 */ "db_name ::= NK_ID", /* 410 */ "table_name ::= NK_ID", /* 411 */ "column_name ::= NK_ID", /* 412 */ "function_name ::= NK_ID", /* 413 */ "view_name ::= NK_ID", /* 414 */ "table_alias ::= NK_ID", /* 415 */ "column_alias ::= NK_ID", /* 416 */ "user_name ::= NK_ID", /* 417 */ "topic_name ::= NK_ID", /* 418 */ "stream_name ::= NK_ID", /* 419 */ "cgroup_name ::= NK_ID", /* 420 */ "index_name ::= NK_ID", /* 421 */ "expr_or_subquery ::= expression", /* 422 */ "expression ::= literal", /* 423 */ "expression ::= pseudo_column", /* 424 */ "expression ::= column_reference", /* 425 */ "expression ::= function_expression", /* 426 */ "expression ::= case_when_expression", /* 427 */ "expression ::= NK_LP expression NK_RP", /* 428 */ "expression ::= NK_PLUS expr_or_subquery", /* 429 */ "expression ::= NK_MINUS expr_or_subquery", /* 430 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", /* 431 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", /* 432 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", /* 433 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", /* 434 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", /* 435 */ "expression ::= column_reference NK_ARROW NK_STRING", /* 436 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", /* 437 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", /* 438 */ "expression_list ::= expr_or_subquery", /* 439 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", /* 440 */ "column_reference ::= column_name", /* 441 */ "column_reference ::= table_name NK_DOT column_name", /* 442 */ "pseudo_column ::= ROWTS", /* 443 */ "pseudo_column ::= TBNAME", /* 444 */ "pseudo_column ::= table_name NK_DOT TBNAME", /* 445 */ "pseudo_column ::= QSTART", /* 446 */ "pseudo_column ::= QEND", /* 447 */ "pseudo_column ::= QDURATION", /* 448 */ "pseudo_column ::= WSTART", /* 449 */ "pseudo_column ::= WEND", /* 450 */ "pseudo_column ::= WDURATION", /* 451 */ "pseudo_column ::= IROWTS", /* 452 */ "pseudo_column ::= ISFILLED", /* 453 */ "pseudo_column ::= QTAGS", /* 454 */ "function_expression ::= function_name NK_LP expression_list NK_RP", /* 455 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", /* 456 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", /* 457 */ "function_expression ::= literal_func", /* 458 */ "literal_func ::= noarg_func NK_LP NK_RP", /* 459 */ "literal_func ::= NOW", /* 460 */ "noarg_func ::= NOW", /* 461 */ "noarg_func ::= TODAY", /* 462 */ "noarg_func ::= TIMEZONE", /* 463 */ "noarg_func ::= DATABASE", /* 464 */ "noarg_func ::= CLIENT_VERSION", /* 465 */ "noarg_func ::= SERVER_VERSION", /* 466 */ "noarg_func ::= SERVER_STATUS", /* 467 */ "noarg_func ::= CURRENT_USER", /* 468 */ "noarg_func ::= USER", /* 469 */ "star_func ::= COUNT", /* 470 */ "star_func ::= FIRST", /* 471 */ "star_func ::= LAST", /* 472 */ "star_func ::= LAST_ROW", /* 473 */ "star_func_para_list ::= NK_STAR", /* 474 */ "star_func_para_list ::= other_para_list", /* 475 */ "other_para_list ::= star_func_para", /* 476 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", /* 477 */ "star_func_para ::= expr_or_subquery", /* 478 */ "star_func_para ::= table_name NK_DOT NK_STAR", /* 479 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", /* 480 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", /* 481 */ "when_then_list ::= when_then_expr", /* 482 */ "when_then_list ::= when_then_list when_then_expr", /* 483 */ "when_then_expr ::= WHEN common_expression THEN common_expression", /* 484 */ "case_when_else_opt ::=", /* 485 */ "case_when_else_opt ::= ELSE common_expression", /* 486 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", /* 487 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", /* 488 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", /* 489 */ "predicate ::= expr_or_subquery IS NULL", /* 490 */ "predicate ::= expr_or_subquery IS NOT NULL", /* 491 */ "predicate ::= expr_or_subquery in_op in_predicate_value", /* 492 */ "compare_op ::= NK_LT", /* 493 */ "compare_op ::= NK_GT", /* 494 */ "compare_op ::= NK_LE", /* 495 */ "compare_op ::= NK_GE", /* 496 */ "compare_op ::= NK_NE", /* 497 */ "compare_op ::= NK_EQ", /* 498 */ "compare_op ::= LIKE", /* 499 */ "compare_op ::= NOT LIKE", /* 500 */ "compare_op ::= MATCH", /* 501 */ "compare_op ::= NMATCH", /* 502 */ "compare_op ::= CONTAINS", /* 503 */ "in_op ::= IN", /* 504 */ "in_op ::= NOT IN", /* 505 */ "in_predicate_value ::= NK_LP literal_list NK_RP", /* 506 */ "boolean_value_expression ::= boolean_primary", /* 507 */ "boolean_value_expression ::= NOT boolean_primary", /* 508 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 509 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 510 */ "boolean_primary ::= predicate", /* 511 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 512 */ "common_expression ::= expr_or_subquery", /* 513 */ "common_expression ::= boolean_value_expression", /* 514 */ "from_clause_opt ::=", /* 515 */ "from_clause_opt ::= FROM table_reference_list", /* 516 */ "table_reference_list ::= table_reference", /* 517 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 518 */ "table_reference ::= table_primary", /* 519 */ "table_reference ::= joined_table", /* 520 */ "table_primary ::= table_name alias_opt", /* 521 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 522 */ "table_primary ::= subquery alias_opt", /* 523 */ "table_primary ::= parenthesized_joined_table", /* 524 */ "alias_opt ::=", /* 525 */ "alias_opt ::= table_alias", /* 526 */ "alias_opt ::= AS table_alias", /* 527 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 528 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 529 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 530 */ "join_type ::=", /* 531 */ "join_type ::= INNER", /* 532 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_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", /* 533 */ "hint_list ::=", /* 534 */ "hint_list ::= NK_HINT", /* 535 */ "tag_mode_opt ::=", /* 536 */ "tag_mode_opt ::= TAGS", /* 537 */ "set_quantifier_opt ::=", /* 538 */ "set_quantifier_opt ::= DISTINCT", /* 539 */ "set_quantifier_opt ::= ALL", /* 540 */ "select_list ::= select_item", /* 541 */ "select_list ::= select_list NK_COMMA select_item", /* 542 */ "select_item ::= NK_STAR", /* 543 */ "select_item ::= common_expression", /* 544 */ "select_item ::= common_expression column_alias", /* 545 */ "select_item ::= common_expression AS column_alias", /* 546 */ "select_item ::= table_name NK_DOT NK_STAR", /* 547 */ "where_clause_opt ::=", /* 548 */ "where_clause_opt ::= WHERE search_condition", /* 549 */ "partition_by_clause_opt ::=", /* 550 */ "partition_by_clause_opt ::= PARTITION BY partition_list", /* 551 */ "partition_list ::= partition_item", /* 552 */ "partition_list ::= partition_list NK_COMMA partition_item", /* 553 */ "partition_item ::= expr_or_subquery", /* 554 */ "partition_item ::= expr_or_subquery column_alias", /* 555 */ "partition_item ::= expr_or_subquery AS column_alias", /* 556 */ "twindow_clause_opt ::=", /* 557 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", /* 558 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", /* 559 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", /* 560 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", /* 561 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", /* 562 */ "sliding_opt ::=", /* 563 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", /* 564 */ "fill_opt ::=", /* 565 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 566 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", /* 567 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", /* 568 */ "fill_mode ::= NONE", /* 569 */ "fill_mode ::= PREV", /* 570 */ "fill_mode ::= NULL", /* 571 */ "fill_mode ::= NULL_F", /* 572 */ "fill_mode ::= LINEAR", /* 573 */ "fill_mode ::= NEXT", /* 574 */ "group_by_clause_opt ::=", /* 575 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 576 */ "group_by_list ::= expr_or_subquery", /* 577 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", /* 578 */ "having_clause_opt ::=", /* 579 */ "having_clause_opt ::= HAVING search_condition", /* 580 */ "range_opt ::=", /* 581 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", /* 582 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", /* 583 */ "every_opt ::=", /* 584 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", /* 585 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 586 */ "query_simple ::= query_specification", /* 587 */ "query_simple ::= union_query_expression", /* 588 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", /* 589 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", /* 590 */ "query_simple_or_subquery ::= query_simple", /* 591 */ "query_simple_or_subquery ::= subquery", /* 592 */ "query_or_subquery ::= query_expression", /* 593 */ "query_or_subquery ::= subquery", /* 594 */ "order_by_clause_opt ::=", /* 595 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 596 */ "slimit_clause_opt ::=", /* 597 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 598 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 599 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 600 */ "limit_clause_opt ::=", /* 601 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 602 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 603 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 604 */ "subquery ::= NK_LP query_expression NK_RP", /* 605 */ "subquery ::= NK_LP subquery NK_RP", /* 606 */ "search_condition ::= common_expression", /* 607 */ "sort_specification_list ::= sort_specification", /* 608 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 609 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", /* 610 */ "ordering_specification_opt ::=", /* 611 */ "ordering_specification_opt ::= ASC", /* 612 */ "ordering_specification_opt ::= DESC", /* 613 */ "null_ordering_opt ::=", /* 614 */ "null_ordering_opt ::= NULLS FIRST", /* 615 */ "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 340: /* cmd */ case 343: /* literal */ case 352: /* with_opt */ case 358: /* search_condition */ case 363: /* db_options */ case 365: /* alter_db_options */ case 367: /* start_opt */ case 368: /* end_opt */ case 372: /* signed */ case 374: /* retention */ case 375: /* full_table_name */ case 378: /* table_options */ case 382: /* alter_table_clause */ case 383: /* alter_table_options */ case 386: /* signed_literal */ case 387: /* create_subtable_clause */ case 390: /* drop_table_clause */ case 392: /* column_def */ case 396: /* duration_literal */ case 397: /* rollup_func_name */ case 399: /* col_name */ case 400: /* db_name_cond_opt */ case 401: /* like_pattern_opt */ case 402: /* table_name_cond */ case 403: /* from_db_opt */ case 405: /* tag_item */ case 407: /* index_options */ case 408: /* full_index_name */ case 411: /* sliding_opt */ case 412: /* sma_stream_opt */ case 413: /* func */ case 416: /* query_or_subquery */ case 417: /* where_clause_opt */ case 420: /* explain_options */ case 421: /* insert_query */ case 426: /* full_view_name */ case 430: /* stream_options */ case 432: /* subtable_opt */ case 434: /* expression */ case 436: /* literal_func */ case 439: /* expr_or_subquery */ case 440: /* pseudo_column */ case 441: /* column_reference */ case 442: /* function_expression */ case 443: /* case_when_expression */ case 448: /* star_func_para */ case 450: /* case_when_else_opt */ case 451: /* common_expression */ case 452: /* when_then_expr */ case 453: /* predicate */ case 456: /* in_predicate_value */ case 457: /* boolean_value_expression */ case 458: /* boolean_primary */ case 459: /* from_clause_opt */ case 460: /* table_reference_list */ case 461: /* table_reference */ case 462: /* table_primary */ case 463: /* joined_table */ case 465: /* subquery */ case 466: /* parenthesized_joined_table */ case 468: /* query_specification */ case 474: /* range_opt */ case 475: /* every_opt */ case 476: /* fill_opt */ case 477: /* twindow_clause_opt */ case 479: /* having_clause_opt */ case 480: /* select_item */ case 482: /* partition_item */ case 485: /* query_expression */ case 486: /* query_simple */ case 488: /* slimit_clause_opt */ case 489: /* limit_clause_opt */ case 490: /* union_query_expression */ case 491: /* query_simple_or_subquery */ case 493: /* sort_specification */ { nodesDestroyNode((yypminor->yy168)); } break; case 341: /* account_options */ case 342: /* alter_account_options */ case 344: /* alter_account_option */ case 366: /* speed_opt */ case 415: /* with_meta */ case 424: /* bufsize_opt */ { } break; case 345: /* ip_range_list */ case 346: /* white_list */ case 347: /* white_list_opt */ case 369: /* integer_list */ case 370: /* variable_list */ case 371: /* retention_list */ case 376: /* column_def_list */ case 377: /* tags_def_opt */ case 379: /* multi_create_clause */ case 380: /* tags_def */ case 381: /* multi_drop_clause */ case 388: /* specific_cols_opt */ case 389: /* expression_list */ case 391: /* col_name_list */ case 393: /* duration_list */ case 394: /* rollup_func_list */ case 404: /* tag_list_opt */ case 410: /* func_list */ case 427: /* col_list_opt */ case 431: /* tag_def_or_ref_opt */ case 435: /* dnode_list */ case 437: /* literal_list */ case 445: /* star_func_para_list */ case 447: /* other_para_list */ case 449: /* when_then_list */ case 469: /* hint_list */ case 472: /* select_list */ case 473: /* partition_by_clause_opt */ case 478: /* group_by_clause_opt */ case 481: /* partition_list */ case 484: /* group_by_list */ case 487: /* order_by_clause_opt */ case 492: /* sort_specification_list */ { nodesDestroyList((yypminor->yy440)); } break; case 348: /* user_name */ case 355: /* db_name */ case 356: /* table_name */ case 357: /* topic_name */ case 359: /* dnode_endpoint */ case 384: /* column_name */ case 398: /* function_name */ case 406: /* column_alias */ case 409: /* index_name */ case 414: /* sma_func_name */ case 418: /* cgroup_name */ case 425: /* language_opt */ case 428: /* view_name */ case 429: /* stream_name */ case 438: /* table_alias */ case 444: /* star_func */ case 446: /* noarg_func */ case 464: /* alias_opt */ { } break; case 349: /* sysinfo_opt */ { } break; case 350: /* privileges */ case 353: /* priv_type_list */ case 354: /* priv_type */ { } break; case 351: /* priv_level */ { } break; case 360: /* force_opt */ case 361: /* unsafe_opt */ case 362: /* not_exists_opt */ case 364: /* exists_opt */ case 419: /* analyze_opt */ case 422: /* or_replace_opt */ case 423: /* agg_func_opt */ case 433: /* ignore_opt */ case 470: /* set_quantifier_opt */ case 471: /* tag_mode_opt */ { } break; case 373: /* alter_db_option */ case 395: /* alter_table_option */ { } break; case 385: /* type_name */ { } break; case 454: /* compare_op */ case 455: /* in_op */ { } break; case 467: /* join_type */ { } break; case 483: /* fill_mode */ { } break; case 494: /* ordering_specification_opt */ { } break; case 495: /* null_ordering_opt */ { } break; /********* End destructor definitions *****************************************/ default: break; /* If no destructor action specified: do nothing */ } } /* ** Pop the parser's stack once. ** ** If there is a destructor routine associated with the token which ** is popped from the stack, then call it. */ static void yy_pop_parser_stack(yyParser *pParser){ yyStackEntry *yytos; assert( pParser->yytos!=0 ); assert( pParser->yytos > pParser->yystack ); yytos = pParser->yytos--; #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sPopping %s\n", yyTracePrompt, yyTokenName[yytos->major]); } #endif yy_destructor(pParser, yytos->major, &yytos->minor); } /* ** Clear all secondary memory allocations from the parser */ void ParseFinalize(void *p){ yyParser *pParser = (yyParser*)p; while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser); #if YYSTACKDEPTH<=0 if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack); #endif } #ifndef Parse_ENGINEALWAYSONSTACK /* ** Deallocate and destroy a parser. Destructors are called for ** all stack elements before shutting the parser down. ** ** If the YYPARSEFREENEVERNULL macro exists (for example because it ** is defined in a %include section of the input grammar) then it is ** assumed that the input pointer is never NULL. */ void ParseFree( void *p, /* The parser to be deleted */ void (*freeProc)(void*) /* Function used to reclaim memory */ ){ #ifndef YYPARSEFREENEVERNULL if( p==0 ) return; #endif ParseFinalize(p); (*freeProc)(p); } #endif /* Parse_ENGINEALWAYSONSTACK */ /* ** Return the peak depth of the stack for a parser. */ #ifdef YYTRACKMAXSTACKDEPTH int ParseStackPeak(void *p){ yyParser *pParser = (yyParser*)p; return pParser->yyhwm; } #endif /* This array of booleans keeps track of the parser statement ** coverage. The element yycoverage[X][Y] is set when the parser ** is in state X and has a lookahead token Y. In a well-tested ** systems, every element of this matrix should end up being set. */ #if defined(YYCOVERAGE) static unsigned char yycoverage[YYNSTATE][YYNTOKEN]; #endif /* ** Write into out a description of every state/lookahead combination that ** ** (1) has not been used by the parser, and ** (2) is not a syntax error. ** ** Return the number of missed state/lookahead combinations. */ #if defined(YYCOVERAGE) int ParseCoverage(FILE *out){ int stateno, iLookAhead, i; int nMissed = 0; for(stateno=0; statenoYY_MAX_SHIFT ) return stateno; assert( stateno <= YY_SHIFT_COUNT ); #if defined(YYCOVERAGE) yycoverage[stateno][iLookAhead] = 1; #endif do{ i = yy_shift_ofst[stateno]; assert( i>=0 ); assert( i<=YY_ACTTAB_COUNT ); assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); assert( iLookAhead!=YYNOCODE ); assert( iLookAhead < YYNTOKEN ); i += iLookAhead; assert( i<(int)YY_NLOOKAHEAD ); if( yy_lookahead[i]!=iLookAhead ){ #ifdef YYFALLBACK YYCODETYPE iFallback; /* Fallback token */ assert( iLookAhead %s\n", yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]); } #endif assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */ iLookAhead = iFallback; continue; } #endif #ifdef YYWILDCARD { int j = i - iLookAhead + YYWILDCARD; assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) ); if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){ #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n", yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[YYWILDCARD]); } #endif /* NDEBUG */ return yy_action[j]; } } #endif /* YYWILDCARD */ return yy_default[stateno]; }else{ assert( i>=0 && iYY_REDUCE_COUNT ){ return yy_default[stateno]; } #else assert( stateno<=YY_REDUCE_COUNT ); #endif i = yy_reduce_ofst[stateno]; assert( iLookAhead!=YYNOCODE ); i += iLookAhead; #ifdef YYERRORSYMBOL if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){ return yy_default[stateno]; } #else assert( i>=0 && iyytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will execute if the parser ** stack every overflows */ /******** Begin %stack_overflow code ******************************************/ /******** End %stack_overflow code ********************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument var */ ParseCTX_STORE } /* ** Print tracing information for a SHIFT action */ #ifndef NDEBUG static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){ if( yyTraceFILE ){ if( yyNewStateyytos->major], yyNewState); }else{ fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n", yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major], yyNewState - YY_MIN_REDUCE); } } } #else # define yyTraceShift(X,Y,Z) #endif /* ** Perform a shift action. */ static void yy_shift( yyParser *yypParser, /* The parser to be shifted */ YYACTIONTYPE yyNewState, /* The new state to shift in */ YYCODETYPE yyMajor, /* The major token to shift in */ ParseTOKENTYPE yyMinor /* The minor token to shift in */ ){ yyStackEntry *yytos; yypParser->yytos++; #ifdef YYTRACKMAXSTACKDEPTH if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) ); } #endif #if YYSTACKDEPTH>0 if( yypParser->yytos>yypParser->yystackEnd ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){ if( yyGrowStack(yypParser) ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } } #endif if( yyNewState > YY_MAX_SHIFT ){ yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE; } yytos = yypParser->yytos; yytos->stateno = yyNewState; yytos->major = yyMajor; yytos->minor.yy0 = yyMinor; yyTraceShift(yypParser, yyNewState, "Shift"); } /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side ** of that rule */ static const YYCODETYPE yyRuleInfoLhs[] = { 340, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ 340, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 341, /* (2) account_options ::= */ 341, /* (3) account_options ::= account_options PPS literal */ 341, /* (4) account_options ::= account_options TSERIES literal */ 341, /* (5) account_options ::= account_options STORAGE literal */ 341, /* (6) account_options ::= account_options STREAMS literal */ 341, /* (7) account_options ::= account_options QTIME literal */ 341, /* (8) account_options ::= account_options DBS literal */ 341, /* (9) account_options ::= account_options USERS literal */ 341, /* (10) account_options ::= account_options CONNS literal */ 341, /* (11) account_options ::= account_options STATE literal */ 342, /* (12) alter_account_options ::= alter_account_option */ 342, /* (13) alter_account_options ::= alter_account_options alter_account_option */ 344, /* (14) alter_account_option ::= PASS literal */ 344, /* (15) alter_account_option ::= PPS literal */ 344, /* (16) alter_account_option ::= TSERIES literal */ 344, /* (17) alter_account_option ::= STORAGE literal */ 344, /* (18) alter_account_option ::= STREAMS literal */ 344, /* (19) alter_account_option ::= QTIME literal */ 344, /* (20) alter_account_option ::= DBS literal */ 344, /* (21) alter_account_option ::= USERS literal */ 344, /* (22) alter_account_option ::= CONNS literal */ 344, /* (23) alter_account_option ::= STATE literal */ 345, /* (24) ip_range_list ::= NK_STRING */ 345, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ 346, /* (26) white_list ::= HOST ip_range_list */ 347, /* (27) white_list_opt ::= */ 347, /* (28) white_list_opt ::= white_list */ 340, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ 340, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */ 340, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ 340, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ 340, /* (33) cmd ::= ALTER USER user_name ADD white_list */ 340, /* (34) cmd ::= ALTER USER user_name DROP white_list */ 340, /* (35) cmd ::= DROP USER user_name */ 349, /* (36) sysinfo_opt ::= */ 349, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */ 340, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ 340, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ 350, /* (40) privileges ::= ALL */ 350, /* (41) privileges ::= priv_type_list */ 350, /* (42) privileges ::= SUBSCRIBE */ 353, /* (43) priv_type_list ::= priv_type */ 353, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */ 354, /* (45) priv_type ::= READ */ 354, /* (46) priv_type ::= WRITE */ 351, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */ 351, /* (48) priv_level ::= db_name NK_DOT NK_STAR */ 351, /* (49) priv_level ::= db_name NK_DOT table_name */ 351, /* (50) priv_level ::= topic_name */ 352, /* (51) with_opt ::= */ 352, /* (52) with_opt ::= WITH search_condition */ 340, /* (53) cmd ::= CREATE DNODE dnode_endpoint */ 340, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ 340, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */ 340, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */ 340, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ 340, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ 340, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ 340, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ 340, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */ 340, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ 340, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */ 359, /* (64) dnode_endpoint ::= NK_STRING */ 359, /* (65) dnode_endpoint ::= NK_ID */ 359, /* (66) dnode_endpoint ::= NK_IPTOKEN */ 360, /* (67) force_opt ::= */ 360, /* (68) force_opt ::= FORCE */ 361, /* (69) unsafe_opt ::= UNSAFE */ 340, /* (70) cmd ::= ALTER LOCAL NK_STRING */ 340, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ 340, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ 340, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ 340, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ 340, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ 340, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ 340, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ 340, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ 340, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ 340, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ 340, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ 340, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ 340, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ 340, /* (84) cmd ::= DROP DATABASE exists_opt db_name */ 340, /* (85) cmd ::= USE db_name */ 340, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */ 340, /* (87) cmd ::= FLUSH DATABASE db_name */ 340, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */ 340, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ 362, /* (90) not_exists_opt ::= IF NOT EXISTS */ 362, /* (91) not_exists_opt ::= */ 364, /* (92) exists_opt ::= IF EXISTS */ 364, /* (93) exists_opt ::= */ 363, /* (94) db_options ::= */ 363, /* (95) db_options ::= db_options BUFFER NK_INTEGER */ 363, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */ 363, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */ 363, /* (98) db_options ::= db_options COMP NK_INTEGER */ 363, /* (99) db_options ::= db_options DURATION NK_INTEGER */ 363, /* (100) db_options ::= db_options DURATION NK_VARIABLE */ 363, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */ 363, /* (102) db_options ::= db_options MINROWS NK_INTEGER */ 363, /* (103) db_options ::= db_options KEEP integer_list */ 363, /* (104) db_options ::= db_options KEEP variable_list */ 363, /* (105) db_options ::= db_options PAGES NK_INTEGER */ 363, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */ 363, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ 363, /* (108) db_options ::= db_options PRECISION NK_STRING */ 363, /* (109) db_options ::= db_options REPLICA NK_INTEGER */ 363, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */ 363, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ 363, /* (112) db_options ::= db_options RETENTIONS retention_list */ 363, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */ 363, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */ 363, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ 363, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ 363, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 363, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ 363, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 363, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ 363, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ 363, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */ 363, /* (123) db_options ::= db_options TABLE_PREFIX signed */ 363, /* (124) db_options ::= db_options TABLE_SUFFIX signed */ 365, /* (125) alter_db_options ::= alter_db_option */ 365, /* (126) alter_db_options ::= alter_db_options alter_db_option */ 373, /* (127) alter_db_option ::= BUFFER NK_INTEGER */ 373, /* (128) alter_db_option ::= CACHEMODEL NK_STRING */ 373, /* (129) alter_db_option ::= CACHESIZE NK_INTEGER */ 373, /* (130) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ 373, /* (131) alter_db_option ::= KEEP integer_list */ 373, /* (132) alter_db_option ::= KEEP variable_list */ 373, /* (133) alter_db_option ::= PAGES NK_INTEGER */ 373, /* (134) alter_db_option ::= REPLICA NK_INTEGER */ 373, /* (135) alter_db_option ::= WAL_LEVEL NK_INTEGER */ 373, /* (136) alter_db_option ::= STT_TRIGGER NK_INTEGER */ 373, /* (137) alter_db_option ::= MINROWS NK_INTEGER */ 373, /* (138) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ 373, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 373, /* (140) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ 373, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 369, /* (142) integer_list ::= NK_INTEGER */ 369, /* (143) integer_list ::= integer_list NK_COMMA NK_INTEGER */ 370, /* (144) variable_list ::= NK_VARIABLE */ 370, /* (145) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ 371, /* (146) retention_list ::= retention */ 371, /* (147) retention_list ::= retention_list NK_COMMA retention */ 374, /* (148) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 366, /* (149) speed_opt ::= */ 366, /* (150) speed_opt ::= BWLIMIT NK_INTEGER */ 367, /* (151) start_opt ::= */ 367, /* (152) start_opt ::= START WITH NK_INTEGER */ 367, /* (153) start_opt ::= START WITH NK_STRING */ 367, /* (154) start_opt ::= START WITH TIMESTAMP NK_STRING */ 368, /* (155) end_opt ::= */ 368, /* (156) end_opt ::= END WITH NK_INTEGER */ 368, /* (157) end_opt ::= END WITH NK_STRING */ 368, /* (158) end_opt ::= END WITH TIMESTAMP NK_STRING */ 340, /* (159) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ 340, /* (160) cmd ::= CREATE TABLE multi_create_clause */ 340, /* (161) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ 340, /* (162) cmd ::= DROP TABLE multi_drop_clause */ 340, /* (163) cmd ::= DROP STABLE exists_opt full_table_name */ 340, /* (164) cmd ::= ALTER TABLE alter_table_clause */ 340, /* (165) cmd ::= ALTER STABLE alter_table_clause */ 382, /* (166) alter_table_clause ::= full_table_name alter_table_options */ 382, /* (167) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ 382, /* (168) alter_table_clause ::= full_table_name DROP COLUMN column_name */ 382, /* (169) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ 382, /* (170) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ 382, /* (171) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ 382, /* (172) alter_table_clause ::= full_table_name DROP TAG column_name */ 382, /* (173) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ 382, /* (174) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ 382, /* (175) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ 379, /* (176) multi_create_clause ::= create_subtable_clause */ 379, /* (177) multi_create_clause ::= multi_create_clause create_subtable_clause */ 387, /* (178) 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 */ 381, /* (179) multi_drop_clause ::= drop_table_clause */ 381, /* (180) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ 390, /* (181) drop_table_clause ::= exists_opt full_table_name */ 388, /* (182) specific_cols_opt ::= */ 388, /* (183) specific_cols_opt ::= NK_LP col_name_list NK_RP */ 375, /* (184) full_table_name ::= table_name */ 375, /* (185) full_table_name ::= db_name NK_DOT table_name */ 376, /* (186) column_def_list ::= column_def */ 376, /* (187) column_def_list ::= column_def_list NK_COMMA column_def */ 392, /* (188) column_def ::= column_name type_name */ 385, /* (189) type_name ::= BOOL */ 385, /* (190) type_name ::= TINYINT */ 385, /* (191) type_name ::= SMALLINT */ 385, /* (192) type_name ::= INT */ 385, /* (193) type_name ::= INTEGER */ 385, /* (194) type_name ::= BIGINT */ 385, /* (195) type_name ::= FLOAT */ 385, /* (196) type_name ::= DOUBLE */ 385, /* (197) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ 385, /* (198) type_name ::= TIMESTAMP */ 385, /* (199) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ 385, /* (200) type_name ::= TINYINT UNSIGNED */ 385, /* (201) type_name ::= SMALLINT UNSIGNED */ 385, /* (202) type_name ::= INT UNSIGNED */ 385, /* (203) type_name ::= BIGINT UNSIGNED */ 385, /* (204) type_name ::= JSON */ 385, /* (205) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ 385, /* (206) type_name ::= MEDIUMBLOB */ 385, /* (207) type_name ::= BLOB */ 385, /* (208) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ 385, /* (209) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ 385, /* (210) type_name ::= DECIMAL */ 385, /* (211) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 385, /* (212) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 377, /* (213) tags_def_opt ::= */ 377, /* (214) tags_def_opt ::= tags_def */ 380, /* (215) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 378, /* (216) table_options ::= */ 378, /* (217) table_options ::= table_options COMMENT NK_STRING */ 378, /* (218) table_options ::= table_options MAX_DELAY duration_list */ 378, /* (219) table_options ::= table_options WATERMARK duration_list */ 378, /* (220) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ 378, /* (221) table_options ::= table_options TTL NK_INTEGER */ 378, /* (222) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ 378, /* (223) table_options ::= table_options DELETE_MARK duration_list */ 383, /* (224) alter_table_options ::= alter_table_option */ 383, /* (225) alter_table_options ::= alter_table_options alter_table_option */ 395, /* (226) alter_table_option ::= COMMENT NK_STRING */ 395, /* (227) alter_table_option ::= TTL NK_INTEGER */ 393, /* (228) duration_list ::= duration_literal */ 393, /* (229) duration_list ::= duration_list NK_COMMA duration_literal */ 394, /* (230) rollup_func_list ::= rollup_func_name */ 394, /* (231) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ 397, /* (232) rollup_func_name ::= function_name */ 397, /* (233) rollup_func_name ::= FIRST */ 397, /* (234) rollup_func_name ::= LAST */ 391, /* (235) col_name_list ::= col_name */ 391, /* (236) col_name_list ::= col_name_list NK_COMMA col_name */ 399, /* (237) col_name ::= column_name */ 340, /* (238) cmd ::= SHOW DNODES */ 340, /* (239) cmd ::= SHOW USERS */ 340, /* (240) cmd ::= SHOW USER PRIVILEGES */ 340, /* (241) cmd ::= SHOW DATABASES */ 340, /* (242) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ 340, /* (243) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ 340, /* (244) cmd ::= SHOW db_name_cond_opt VGROUPS */ 340, /* (245) cmd ::= SHOW MNODES */ 340, /* (246) cmd ::= SHOW QNODES */ 340, /* (247) cmd ::= SHOW FUNCTIONS */ 340, /* (248) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ 340, /* (249) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ 340, /* (250) cmd ::= SHOW STREAMS */ 340, /* (251) cmd ::= SHOW ACCOUNTS */ 340, /* (252) cmd ::= SHOW APPS */ 340, /* (253) cmd ::= SHOW CONNECTIONS */ 340, /* (254) cmd ::= SHOW LICENCES */ 340, /* (255) cmd ::= SHOW GRANTS */ 340, /* (256) cmd ::= SHOW CREATE DATABASE db_name */ 340, /* (257) cmd ::= SHOW CREATE TABLE full_table_name */ 340, /* (258) cmd ::= SHOW CREATE STABLE full_table_name */ 340, /* (259) cmd ::= SHOW QUERIES */ 340, /* (260) cmd ::= SHOW SCORES */ 340, /* (261) cmd ::= SHOW TOPICS */ 340, /* (262) cmd ::= SHOW VARIABLES */ 340, /* (263) cmd ::= SHOW CLUSTER VARIABLES */ 340, /* (264) cmd ::= SHOW LOCAL VARIABLES */ 340, /* (265) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ 340, /* (266) cmd ::= SHOW BNODES */ 340, /* (267) cmd ::= SHOW SNODES */ 340, /* (268) cmd ::= SHOW CLUSTER */ 340, /* (269) cmd ::= SHOW TRANSACTIONS */ 340, /* (270) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ 340, /* (271) cmd ::= SHOW CONSUMERS */ 340, /* (272) cmd ::= SHOW SUBSCRIPTIONS */ 340, /* (273) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ 340, /* (274) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ 340, /* (275) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ 340, /* (276) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ 340, /* (277) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ 340, /* (278) cmd ::= SHOW VNODES */ 340, /* (279) cmd ::= SHOW db_name_cond_opt ALIVE */ 340, /* (280) cmd ::= SHOW CLUSTER ALIVE */ 400, /* (281) db_name_cond_opt ::= */ 400, /* (282) db_name_cond_opt ::= db_name NK_DOT */ 401, /* (283) like_pattern_opt ::= */ 401, /* (284) like_pattern_opt ::= LIKE NK_STRING */ 402, /* (285) table_name_cond ::= table_name */ 403, /* (286) from_db_opt ::= */ 403, /* (287) from_db_opt ::= FROM db_name */ 404, /* (288) tag_list_opt ::= */ 404, /* (289) tag_list_opt ::= tag_item */ 404, /* (290) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ 405, /* (291) tag_item ::= TBNAME */ 405, /* (292) tag_item ::= QTAGS */ 405, /* (293) tag_item ::= column_name */ 405, /* (294) tag_item ::= column_name column_alias */ 405, /* (295) tag_item ::= column_name AS column_alias */ 340, /* (296) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ 340, /* (297) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ 340, /* (298) cmd ::= DROP INDEX exists_opt full_index_name */ 408, /* (299) full_index_name ::= index_name */ 408, /* (300) full_index_name ::= db_name NK_DOT index_name */ 407, /* (301) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ 407, /* (302) 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 */ 410, /* (303) func_list ::= func */ 410, /* (304) func_list ::= func_list NK_COMMA func */ 413, /* (305) func ::= sma_func_name NK_LP expression_list NK_RP */ 414, /* (306) sma_func_name ::= function_name */ 414, /* (307) sma_func_name ::= COUNT */ 414, /* (308) sma_func_name ::= FIRST */ 414, /* (309) sma_func_name ::= LAST */ 414, /* (310) sma_func_name ::= LAST_ROW */ 412, /* (311) sma_stream_opt ::= */ 412, /* (312) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ 412, /* (313) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ 412, /* (314) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ 415, /* (315) with_meta ::= AS */ 415, /* (316) with_meta ::= WITH META AS */ 415, /* (317) with_meta ::= ONLY META AS */ 340, /* (318) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ 340, /* (319) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ 340, /* (320) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ 340, /* (321) cmd ::= DROP TOPIC exists_opt topic_name */ 340, /* (322) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ 340, /* (323) cmd ::= DESC full_table_name */ 340, /* (324) cmd ::= DESCRIBE full_table_name */ 340, /* (325) cmd ::= RESET QUERY CACHE */ 340, /* (326) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ 340, /* (327) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 419, /* (328) analyze_opt ::= */ 419, /* (329) analyze_opt ::= ANALYZE */ 420, /* (330) explain_options ::= */ 420, /* (331) explain_options ::= explain_options VERBOSE NK_BOOL */ 420, /* (332) explain_options ::= explain_options RATIO NK_FLOAT */ 340, /* (333) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ 340, /* (334) cmd ::= DROP FUNCTION exists_opt function_name */ 423, /* (335) agg_func_opt ::= */ 423, /* (336) agg_func_opt ::= AGGREGATE */ 424, /* (337) bufsize_opt ::= */ 424, /* (338) bufsize_opt ::= BUFSIZE NK_INTEGER */ 425, /* (339) language_opt ::= */ 425, /* (340) language_opt ::= LANGUAGE NK_STRING */ 422, /* (341) or_replace_opt ::= */ 422, /* (342) or_replace_opt ::= OR REPLACE */ 340, /* (343) cmd ::= CREATE or_replace_opt VIEW full_view_name col_list_opt AS query_or_subquery */ 340, /* (344) cmd ::= DROP VIEW exists_opt full_view_name */ 426, /* (345) full_view_name ::= view_name */ 426, /* (346) full_view_name ::= db_name NK_DOT view_name */ 340, /* (347) 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 */ 340, /* (348) cmd ::= DROP STREAM exists_opt stream_name */ 340, /* (349) cmd ::= PAUSE STREAM exists_opt stream_name */ 340, /* (350) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 427, /* (351) col_list_opt ::= */ 427, /* (352) col_list_opt ::= NK_LP col_name_list NK_RP */ 431, /* (353) tag_def_or_ref_opt ::= */ 431, /* (354) tag_def_or_ref_opt ::= tags_def */ 431, /* (355) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 430, /* (356) stream_options ::= */ 430, /* (357) stream_options ::= stream_options TRIGGER AT_ONCE */ 430, /* (358) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ 430, /* (359) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ 430, /* (360) stream_options ::= stream_options WATERMARK duration_literal */ 430, /* (361) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ 430, /* (362) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ 430, /* (363) stream_options ::= stream_options DELETE_MARK duration_literal */ 430, /* (364) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 432, /* (365) subtable_opt ::= */ 432, /* (366) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 433, /* (367) ignore_opt ::= */ 433, /* (368) ignore_opt ::= IGNORE UNTREATED */ 340, /* (369) cmd ::= KILL CONNECTION NK_INTEGER */ 340, /* (370) cmd ::= KILL QUERY NK_STRING */ 340, /* (371) cmd ::= KILL TRANSACTION NK_INTEGER */ 340, /* (372) cmd ::= BALANCE VGROUP */ 340, /* (373) cmd ::= BALANCE VGROUP LEADER */ 340, /* (374) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ 340, /* (375) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ 340, /* (376) cmd ::= SPLIT VGROUP NK_INTEGER */ 435, /* (377) dnode_list ::= DNODE NK_INTEGER */ 435, /* (378) dnode_list ::= dnode_list DNODE NK_INTEGER */ 340, /* (379) cmd ::= DELETE FROM full_table_name where_clause_opt */ 340, /* (380) cmd ::= query_or_subquery */ 340, /* (381) cmd ::= insert_query */ 421, /* (382) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ 421, /* (383) insert_query ::= INSERT INTO full_table_name query_or_subquery */ 343, /* (384) literal ::= NK_INTEGER */ 343, /* (385) literal ::= NK_FLOAT */ 343, /* (386) literal ::= NK_STRING */ 343, /* (387) literal ::= NK_BOOL */ 343, /* (388) literal ::= TIMESTAMP NK_STRING */ 343, /* (389) literal ::= duration_literal */ 343, /* (390) literal ::= NULL */ 343, /* (391) literal ::= NK_QUESTION */ 396, /* (392) duration_literal ::= NK_VARIABLE */ 372, /* (393) signed ::= NK_INTEGER */ 372, /* (394) signed ::= NK_PLUS NK_INTEGER */ 372, /* (395) signed ::= NK_MINUS NK_INTEGER */ 372, /* (396) signed ::= NK_FLOAT */ 372, /* (397) signed ::= NK_PLUS NK_FLOAT */ 372, /* (398) signed ::= NK_MINUS NK_FLOAT */ 386, /* (399) signed_literal ::= signed */ 386, /* (400) signed_literal ::= NK_STRING */ 386, /* (401) signed_literal ::= NK_BOOL */ 386, /* (402) signed_literal ::= TIMESTAMP NK_STRING */ 386, /* (403) signed_literal ::= duration_literal */ 386, /* (404) signed_literal ::= NULL */ 386, /* (405) signed_literal ::= literal_func */ 386, /* (406) signed_literal ::= NK_QUESTION */ 437, /* (407) literal_list ::= signed_literal */ 437, /* (408) literal_list ::= literal_list NK_COMMA signed_literal */ 355, /* (409) db_name ::= NK_ID */ 356, /* (410) table_name ::= NK_ID */ 384, /* (411) column_name ::= NK_ID */ 398, /* (412) function_name ::= NK_ID */ 428, /* (413) view_name ::= NK_ID */ 438, /* (414) table_alias ::= NK_ID */ 406, /* (415) column_alias ::= NK_ID */ 348, /* (416) user_name ::= NK_ID */ 357, /* (417) topic_name ::= NK_ID */ 429, /* (418) stream_name ::= NK_ID */ 418, /* (419) cgroup_name ::= NK_ID */ 409, /* (420) index_name ::= NK_ID */ 439, /* (421) expr_or_subquery ::= expression */ 434, /* (422) expression ::= literal */ 434, /* (423) expression ::= pseudo_column */ 434, /* (424) expression ::= column_reference */ 434, /* (425) expression ::= function_expression */ 434, /* (426) expression ::= case_when_expression */ 434, /* (427) expression ::= NK_LP expression NK_RP */ 434, /* (428) expression ::= NK_PLUS expr_or_subquery */ 434, /* (429) expression ::= NK_MINUS expr_or_subquery */ 434, /* (430) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ 434, /* (431) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ 434, /* (432) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ 434, /* (433) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ 434, /* (434) expression ::= expr_or_subquery NK_REM expr_or_subquery */ 434, /* (435) expression ::= column_reference NK_ARROW NK_STRING */ 434, /* (436) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ 434, /* (437) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ 389, /* (438) expression_list ::= expr_or_subquery */ 389, /* (439) expression_list ::= expression_list NK_COMMA expr_or_subquery */ 441, /* (440) column_reference ::= column_name */ 441, /* (441) column_reference ::= table_name NK_DOT column_name */ 440, /* (442) pseudo_column ::= ROWTS */ 440, /* (443) pseudo_column ::= TBNAME */ 440, /* (444) pseudo_column ::= table_name NK_DOT TBNAME */ 440, /* (445) pseudo_column ::= QSTART */ 440, /* (446) pseudo_column ::= QEND */ 440, /* (447) pseudo_column ::= QDURATION */ 440, /* (448) pseudo_column ::= WSTART */ 440, /* (449) pseudo_column ::= WEND */ 440, /* (450) pseudo_column ::= WDURATION */ 440, /* (451) pseudo_column ::= IROWTS */ 440, /* (452) pseudo_column ::= ISFILLED */ 440, /* (453) pseudo_column ::= QTAGS */ 442, /* (454) function_expression ::= function_name NK_LP expression_list NK_RP */ 442, /* (455) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ 442, /* (456) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ 442, /* (457) function_expression ::= literal_func */ 436, /* (458) literal_func ::= noarg_func NK_LP NK_RP */ 436, /* (459) literal_func ::= NOW */ 446, /* (460) noarg_func ::= NOW */ 446, /* (461) noarg_func ::= TODAY */ 446, /* (462) noarg_func ::= TIMEZONE */ 446, /* (463) noarg_func ::= DATABASE */ 446, /* (464) noarg_func ::= CLIENT_VERSION */ 446, /* (465) noarg_func ::= SERVER_VERSION */ 446, /* (466) noarg_func ::= SERVER_STATUS */ 446, /* (467) noarg_func ::= CURRENT_USER */ 446, /* (468) noarg_func ::= USER */ 444, /* (469) star_func ::= COUNT */ 444, /* (470) star_func ::= FIRST */ 444, /* (471) star_func ::= LAST */ 444, /* (472) star_func ::= LAST_ROW */ 445, /* (473) star_func_para_list ::= NK_STAR */ 445, /* (474) star_func_para_list ::= other_para_list */ 447, /* (475) other_para_list ::= star_func_para */ 447, /* (476) other_para_list ::= other_para_list NK_COMMA star_func_para */ 448, /* (477) star_func_para ::= expr_or_subquery */ 448, /* (478) star_func_para ::= table_name NK_DOT NK_STAR */ 443, /* (479) case_when_expression ::= CASE when_then_list case_when_else_opt END */ 443, /* (480) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ 449, /* (481) when_then_list ::= when_then_expr */ 449, /* (482) when_then_list ::= when_then_list when_then_expr */ 452, /* (483) when_then_expr ::= WHEN common_expression THEN common_expression */ 450, /* (484) case_when_else_opt ::= */ 450, /* (485) case_when_else_opt ::= ELSE common_expression */ 453, /* (486) predicate ::= expr_or_subquery compare_op expr_or_subquery */ 453, /* (487) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ 453, /* (488) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ 453, /* (489) predicate ::= expr_or_subquery IS NULL */ 453, /* (490) predicate ::= expr_or_subquery IS NOT NULL */ 453, /* (491) predicate ::= expr_or_subquery in_op in_predicate_value */ 454, /* (492) compare_op ::= NK_LT */ 454, /* (493) compare_op ::= NK_GT */ 454, /* (494) compare_op ::= NK_LE */ 454, /* (495) compare_op ::= NK_GE */ 454, /* (496) compare_op ::= NK_NE */ 454, /* (497) compare_op ::= NK_EQ */ 454, /* (498) compare_op ::= LIKE */ 454, /* (499) compare_op ::= NOT LIKE */ 454, /* (500) compare_op ::= MATCH */ 454, /* (501) compare_op ::= NMATCH */ 454, /* (502) compare_op ::= CONTAINS */ 455, /* (503) in_op ::= IN */ 455, /* (504) in_op ::= NOT IN */ 456, /* (505) in_predicate_value ::= NK_LP literal_list NK_RP */ 457, /* (506) boolean_value_expression ::= boolean_primary */ 457, /* (507) boolean_value_expression ::= NOT boolean_primary */ 457, /* (508) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ 457, /* (509) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ 458, /* (510) boolean_primary ::= predicate */ 458, /* (511) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ 451, /* (512) common_expression ::= expr_or_subquery */ 451, /* (513) common_expression ::= boolean_value_expression */ 459, /* (514) from_clause_opt ::= */ 459, /* (515) from_clause_opt ::= FROM table_reference_list */ 460, /* (516) table_reference_list ::= table_reference */ 460, /* (517) table_reference_list ::= table_reference_list NK_COMMA table_reference */ 461, /* (518) table_reference ::= table_primary */ 461, /* (519) table_reference ::= joined_table */ 462, /* (520) table_primary ::= table_name alias_opt */ 462, /* (521) table_primary ::= db_name NK_DOT table_name alias_opt */ 462, /* (522) table_primary ::= subquery alias_opt */ 462, /* (523) table_primary ::= parenthesized_joined_table */ 464, /* (524) alias_opt ::= */ 464, /* (525) alias_opt ::= table_alias */ 464, /* (526) alias_opt ::= AS table_alias */ 466, /* (527) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ 466, /* (528) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ 463, /* (529) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 467, /* (530) join_type ::= */ 467, /* (531) join_type ::= INNER */ 468, /* (532) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_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 */ 469, /* (533) hint_list ::= */ 469, /* (534) hint_list ::= NK_HINT */ 471, /* (535) tag_mode_opt ::= */ 471, /* (536) tag_mode_opt ::= TAGS */ 470, /* (537) set_quantifier_opt ::= */ 470, /* (538) set_quantifier_opt ::= DISTINCT */ 470, /* (539) set_quantifier_opt ::= ALL */ 472, /* (540) select_list ::= select_item */ 472, /* (541) select_list ::= select_list NK_COMMA select_item */ 480, /* (542) select_item ::= NK_STAR */ 480, /* (543) select_item ::= common_expression */ 480, /* (544) select_item ::= common_expression column_alias */ 480, /* (545) select_item ::= common_expression AS column_alias */ 480, /* (546) select_item ::= table_name NK_DOT NK_STAR */ 417, /* (547) where_clause_opt ::= */ 417, /* (548) where_clause_opt ::= WHERE search_condition */ 473, /* (549) partition_by_clause_opt ::= */ 473, /* (550) partition_by_clause_opt ::= PARTITION BY partition_list */ 481, /* (551) partition_list ::= partition_item */ 481, /* (552) partition_list ::= partition_list NK_COMMA partition_item */ 482, /* (553) partition_item ::= expr_or_subquery */ 482, /* (554) partition_item ::= expr_or_subquery column_alias */ 482, /* (555) partition_item ::= expr_or_subquery AS column_alias */ 477, /* (556) twindow_clause_opt ::= */ 477, /* (557) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ 477, /* (558) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ 477, /* (559) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ 477, /* (560) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ 477, /* (561) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 411, /* (562) sliding_opt ::= */ 411, /* (563) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ 476, /* (564) fill_opt ::= */ 476, /* (565) fill_opt ::= FILL NK_LP fill_mode NK_RP */ 476, /* (566) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ 476, /* (567) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ 483, /* (568) fill_mode ::= NONE */ 483, /* (569) fill_mode ::= PREV */ 483, /* (570) fill_mode ::= NULL */ 483, /* (571) fill_mode ::= NULL_F */ 483, /* (572) fill_mode ::= LINEAR */ 483, /* (573) fill_mode ::= NEXT */ 478, /* (574) group_by_clause_opt ::= */ 478, /* (575) group_by_clause_opt ::= GROUP BY group_by_list */ 484, /* (576) group_by_list ::= expr_or_subquery */ 484, /* (577) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 479, /* (578) having_clause_opt ::= */ 479, /* (579) having_clause_opt ::= HAVING search_condition */ 474, /* (580) range_opt ::= */ 474, /* (581) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ 474, /* (582) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 475, /* (583) every_opt ::= */ 475, /* (584) every_opt ::= EVERY NK_LP duration_literal NK_RP */ 485, /* (585) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ 486, /* (586) query_simple ::= query_specification */ 486, /* (587) query_simple ::= union_query_expression */ 490, /* (588) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ 490, /* (589) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ 491, /* (590) query_simple_or_subquery ::= query_simple */ 491, /* (591) query_simple_or_subquery ::= subquery */ 416, /* (592) query_or_subquery ::= query_expression */ 416, /* (593) query_or_subquery ::= subquery */ 487, /* (594) order_by_clause_opt ::= */ 487, /* (595) order_by_clause_opt ::= ORDER BY sort_specification_list */ 488, /* (596) slimit_clause_opt ::= */ 488, /* (597) slimit_clause_opt ::= SLIMIT NK_INTEGER */ 488, /* (598) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ 488, /* (599) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 489, /* (600) limit_clause_opt ::= */ 489, /* (601) limit_clause_opt ::= LIMIT NK_INTEGER */ 489, /* (602) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ 489, /* (603) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 465, /* (604) subquery ::= NK_LP query_expression NK_RP */ 465, /* (605) subquery ::= NK_LP subquery NK_RP */ 358, /* (606) search_condition ::= common_expression */ 492, /* (607) sort_specification_list ::= sort_specification */ 492, /* (608) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ 493, /* (609) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 494, /* (610) ordering_specification_opt ::= */ 494, /* (611) ordering_specification_opt ::= ASC */ 494, /* (612) ordering_specification_opt ::= DESC */ 495, /* (613) null_ordering_opt ::= */ 495, /* (614) null_ordering_opt ::= NULLS FIRST */ 495, /* (615) 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 */ -1, /* (24) ip_range_list ::= NK_STRING */ -3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ -2, /* (26) white_list ::= HOST ip_range_list */ 0, /* (27) white_list_opt ::= */ -1, /* (28) white_list_opt ::= white_list */ -7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ -5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */ -5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -5, /* (33) cmd ::= ALTER USER user_name ADD white_list */ -5, /* (34) cmd ::= ALTER USER user_name DROP white_list */ -3, /* (35) cmd ::= DROP USER user_name */ 0, /* (36) sysinfo_opt ::= */ -2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */ -7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -1, /* (40) privileges ::= ALL */ -1, /* (41) privileges ::= priv_type_list */ -1, /* (42) privileges ::= SUBSCRIBE */ -1, /* (43) priv_type_list ::= priv_type */ -3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */ -1, /* (45) priv_type ::= READ */ -1, /* (46) priv_type ::= WRITE */ -3, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */ -3, /* (48) priv_level ::= db_name NK_DOT NK_STAR */ -3, /* (49) priv_level ::= db_name NK_DOT table_name */ -1, /* (50) priv_level ::= topic_name */ 0, /* (51) with_opt ::= */ -2, /* (52) with_opt ::= WITH search_condition */ -3, /* (53) cmd ::= CREATE DNODE dnode_endpoint */ -5, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -4, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */ -4, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */ -4, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -4, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -4, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ -5, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ -4, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */ -5, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ -3, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */ -1, /* (64) dnode_endpoint ::= NK_STRING */ -1, /* (65) dnode_endpoint ::= NK_ID */ -1, /* (66) dnode_endpoint ::= NK_IPTOKEN */ 0, /* (67) force_opt ::= */ -1, /* (68) force_opt ::= FORCE */ -1, /* (69) unsafe_opt ::= UNSAFE */ -3, /* (70) cmd ::= ALTER LOCAL NK_STRING */ -4, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ -5, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ -5, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ -5, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ -5, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ -5, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ -5, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ -5, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ -5, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ -5, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ -5, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ -5, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ -5, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -4, /* (84) cmd ::= DROP DATABASE exists_opt db_name */ -2, /* (85) cmd ::= USE db_name */ -4, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */ -3, /* (87) cmd ::= FLUSH DATABASE db_name */ -4, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */ -5, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -3, /* (90) not_exists_opt ::= IF NOT EXISTS */ 0, /* (91) not_exists_opt ::= */ -2, /* (92) exists_opt ::= IF EXISTS */ 0, /* (93) exists_opt ::= */ 0, /* (94) db_options ::= */ -3, /* (95) db_options ::= db_options BUFFER NK_INTEGER */ -3, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */ -3, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */ -3, /* (98) db_options ::= db_options COMP NK_INTEGER */ -3, /* (99) db_options ::= db_options DURATION NK_INTEGER */ -3, /* (100) db_options ::= db_options DURATION NK_VARIABLE */ -3, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */ -3, /* (102) db_options ::= db_options MINROWS NK_INTEGER */ -3, /* (103) db_options ::= db_options KEEP integer_list */ -3, /* (104) db_options ::= db_options KEEP variable_list */ -3, /* (105) db_options ::= db_options PAGES NK_INTEGER */ -3, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */ -3, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -3, /* (108) db_options ::= db_options PRECISION NK_STRING */ -3, /* (109) db_options ::= db_options REPLICA NK_INTEGER */ -3, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */ -3, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -3, /* (112) db_options ::= db_options RETENTIONS retention_list */ -3, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */ -3, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */ -3, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -3, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -4, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -3, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -4, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -3, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -3, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -3, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */ -3, /* (123) db_options ::= db_options TABLE_PREFIX signed */ -3, /* (124) db_options ::= db_options TABLE_SUFFIX signed */ -1, /* (125) alter_db_options ::= alter_db_option */ -2, /* (126) alter_db_options ::= alter_db_options alter_db_option */ -2, /* (127) alter_db_option ::= BUFFER NK_INTEGER */ -2, /* (128) alter_db_option ::= CACHEMODEL NK_STRING */ -2, /* (129) alter_db_option ::= CACHESIZE NK_INTEGER */ -2, /* (130) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -2, /* (131) alter_db_option ::= KEEP integer_list */ -2, /* (132) alter_db_option ::= KEEP variable_list */ -2, /* (133) alter_db_option ::= PAGES NK_INTEGER */ -2, /* (134) alter_db_option ::= REPLICA NK_INTEGER */ -2, /* (135) alter_db_option ::= WAL_LEVEL NK_INTEGER */ -2, /* (136) alter_db_option ::= STT_TRIGGER NK_INTEGER */ -2, /* (137) alter_db_option ::= MINROWS NK_INTEGER */ -2, /* (138) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -3, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -2, /* (140) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -3, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -1, /* (142) integer_list ::= NK_INTEGER */ -3, /* (143) integer_list ::= integer_list NK_COMMA NK_INTEGER */ -1, /* (144) variable_list ::= NK_VARIABLE */ -3, /* (145) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -1, /* (146) retention_list ::= retention */ -3, /* (147) retention_list ::= retention_list NK_COMMA retention */ -3, /* (148) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 0, /* (149) speed_opt ::= */ -2, /* (150) speed_opt ::= BWLIMIT NK_INTEGER */ 0, /* (151) start_opt ::= */ -3, /* (152) start_opt ::= START WITH NK_INTEGER */ -3, /* (153) start_opt ::= START WITH NK_STRING */ -4, /* (154) start_opt ::= START WITH TIMESTAMP NK_STRING */ 0, /* (155) end_opt ::= */ -3, /* (156) end_opt ::= END WITH NK_INTEGER */ -3, /* (157) end_opt ::= END WITH NK_STRING */ -4, /* (158) end_opt ::= END WITH TIMESTAMP NK_STRING */ -9, /* (159) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ -3, /* (160) cmd ::= CREATE TABLE multi_create_clause */ -9, /* (161) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ -3, /* (162) cmd ::= DROP TABLE multi_drop_clause */ -4, /* (163) cmd ::= DROP STABLE exists_opt full_table_name */ -3, /* (164) cmd ::= ALTER TABLE alter_table_clause */ -3, /* (165) cmd ::= ALTER STABLE alter_table_clause */ -2, /* (166) alter_table_clause ::= full_table_name alter_table_options */ -5, /* (167) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -4, /* (168) alter_table_clause ::= full_table_name DROP COLUMN column_name */ -5, /* (169) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -5, /* (170) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -5, /* (171) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -4, /* (172) alter_table_clause ::= full_table_name DROP TAG column_name */ -5, /* (173) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -5, /* (174) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -6, /* (175) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -1, /* (176) multi_create_clause ::= create_subtable_clause */ -2, /* (177) multi_create_clause ::= multi_create_clause create_subtable_clause */ -10, /* (178) 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, /* (179) multi_drop_clause ::= drop_table_clause */ -3, /* (180) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ -2, /* (181) drop_table_clause ::= exists_opt full_table_name */ 0, /* (182) specific_cols_opt ::= */ -3, /* (183) specific_cols_opt ::= NK_LP col_name_list NK_RP */ -1, /* (184) full_table_name ::= table_name */ -3, /* (185) full_table_name ::= db_name NK_DOT table_name */ -1, /* (186) column_def_list ::= column_def */ -3, /* (187) column_def_list ::= column_def_list NK_COMMA column_def */ -2, /* (188) column_def ::= column_name type_name */ -1, /* (189) type_name ::= BOOL */ -1, /* (190) type_name ::= TINYINT */ -1, /* (191) type_name ::= SMALLINT */ -1, /* (192) type_name ::= INT */ -1, /* (193) type_name ::= INTEGER */ -1, /* (194) type_name ::= BIGINT */ -1, /* (195) type_name ::= FLOAT */ -1, /* (196) type_name ::= DOUBLE */ -4, /* (197) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -1, /* (198) type_name ::= TIMESTAMP */ -4, /* (199) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -2, /* (200) type_name ::= TINYINT UNSIGNED */ -2, /* (201) type_name ::= SMALLINT UNSIGNED */ -2, /* (202) type_name ::= INT UNSIGNED */ -2, /* (203) type_name ::= BIGINT UNSIGNED */ -1, /* (204) type_name ::= JSON */ -4, /* (205) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -1, /* (206) type_name ::= MEDIUMBLOB */ -1, /* (207) type_name ::= BLOB */ -4, /* (208) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -4, /* (209) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -1, /* (210) type_name ::= DECIMAL */ -4, /* (211) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (212) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 0, /* (213) tags_def_opt ::= */ -1, /* (214) tags_def_opt ::= tags_def */ -4, /* (215) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 0, /* (216) table_options ::= */ -3, /* (217) table_options ::= table_options COMMENT NK_STRING */ -3, /* (218) table_options ::= table_options MAX_DELAY duration_list */ -3, /* (219) table_options ::= table_options WATERMARK duration_list */ -5, /* (220) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -3, /* (221) table_options ::= table_options TTL NK_INTEGER */ -5, /* (222) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -3, /* (223) table_options ::= table_options DELETE_MARK duration_list */ -1, /* (224) alter_table_options ::= alter_table_option */ -2, /* (225) alter_table_options ::= alter_table_options alter_table_option */ -2, /* (226) alter_table_option ::= COMMENT NK_STRING */ -2, /* (227) alter_table_option ::= TTL NK_INTEGER */ -1, /* (228) duration_list ::= duration_literal */ -3, /* (229) duration_list ::= duration_list NK_COMMA duration_literal */ -1, /* (230) rollup_func_list ::= rollup_func_name */ -3, /* (231) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ -1, /* (232) rollup_func_name ::= function_name */ -1, /* (233) rollup_func_name ::= FIRST */ -1, /* (234) rollup_func_name ::= LAST */ -1, /* (235) col_name_list ::= col_name */ -3, /* (236) col_name_list ::= col_name_list NK_COMMA col_name */ -1, /* (237) col_name ::= column_name */ -2, /* (238) cmd ::= SHOW DNODES */ -2, /* (239) cmd ::= SHOW USERS */ -3, /* (240) cmd ::= SHOW USER PRIVILEGES */ -2, /* (241) cmd ::= SHOW DATABASES */ -4, /* (242) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -4, /* (243) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -3, /* (244) cmd ::= SHOW db_name_cond_opt VGROUPS */ -2, /* (245) cmd ::= SHOW MNODES */ -2, /* (246) cmd ::= SHOW QNODES */ -2, /* (247) cmd ::= SHOW FUNCTIONS */ -5, /* (248) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -6, /* (249) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -2, /* (250) cmd ::= SHOW STREAMS */ -2, /* (251) cmd ::= SHOW ACCOUNTS */ -2, /* (252) cmd ::= SHOW APPS */ -2, /* (253) cmd ::= SHOW CONNECTIONS */ -2, /* (254) cmd ::= SHOW LICENCES */ -2, /* (255) cmd ::= SHOW GRANTS */ -4, /* (256) cmd ::= SHOW CREATE DATABASE db_name */ -4, /* (257) cmd ::= SHOW CREATE TABLE full_table_name */ -4, /* (258) cmd ::= SHOW CREATE STABLE full_table_name */ -2, /* (259) cmd ::= SHOW QUERIES */ -2, /* (260) cmd ::= SHOW SCORES */ -2, /* (261) cmd ::= SHOW TOPICS */ -2, /* (262) cmd ::= SHOW VARIABLES */ -3, /* (263) cmd ::= SHOW CLUSTER VARIABLES */ -3, /* (264) cmd ::= SHOW LOCAL VARIABLES */ -5, /* (265) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -2, /* (266) cmd ::= SHOW BNODES */ -2, /* (267) cmd ::= SHOW SNODES */ -2, /* (268) cmd ::= SHOW CLUSTER */ -2, /* (269) cmd ::= SHOW TRANSACTIONS */ -4, /* (270) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -2, /* (271) cmd ::= SHOW CONSUMERS */ -2, /* (272) cmd ::= SHOW SUBSCRIPTIONS */ -5, /* (273) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -6, /* (274) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -7, /* (275) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -8, /* (276) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -5, /* (277) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ -2, /* (278) cmd ::= SHOW VNODES */ -3, /* (279) cmd ::= SHOW db_name_cond_opt ALIVE */ -3, /* (280) cmd ::= SHOW CLUSTER ALIVE */ 0, /* (281) db_name_cond_opt ::= */ -2, /* (282) db_name_cond_opt ::= db_name NK_DOT */ 0, /* (283) like_pattern_opt ::= */ -2, /* (284) like_pattern_opt ::= LIKE NK_STRING */ -1, /* (285) table_name_cond ::= table_name */ 0, /* (286) from_db_opt ::= */ -2, /* (287) from_db_opt ::= FROM db_name */ 0, /* (288) tag_list_opt ::= */ -1, /* (289) tag_list_opt ::= tag_item */ -3, /* (290) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ -1, /* (291) tag_item ::= TBNAME */ -1, /* (292) tag_item ::= QTAGS */ -1, /* (293) tag_item ::= column_name */ -2, /* (294) tag_item ::= column_name column_alias */ -3, /* (295) tag_item ::= column_name AS column_alias */ -8, /* (296) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ -9, /* (297) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ -4, /* (298) cmd ::= DROP INDEX exists_opt full_index_name */ -1, /* (299) full_index_name ::= index_name */ -3, /* (300) full_index_name ::= db_name NK_DOT index_name */ -10, /* (301) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -12, /* (302) 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, /* (303) func_list ::= func */ -3, /* (304) func_list ::= func_list NK_COMMA func */ -4, /* (305) func ::= sma_func_name NK_LP expression_list NK_RP */ -1, /* (306) sma_func_name ::= function_name */ -1, /* (307) sma_func_name ::= COUNT */ -1, /* (308) sma_func_name ::= FIRST */ -1, /* (309) sma_func_name ::= LAST */ -1, /* (310) sma_func_name ::= LAST_ROW */ 0, /* (311) sma_stream_opt ::= */ -3, /* (312) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -3, /* (313) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -3, /* (314) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -1, /* (315) with_meta ::= AS */ -3, /* (316) with_meta ::= WITH META AS */ -3, /* (317) with_meta ::= ONLY META AS */ -6, /* (318) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -7, /* (319) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -8, /* (320) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -4, /* (321) cmd ::= DROP TOPIC exists_opt topic_name */ -7, /* (322) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -2, /* (323) cmd ::= DESC full_table_name */ -2, /* (324) cmd ::= DESCRIBE full_table_name */ -3, /* (325) cmd ::= RESET QUERY CACHE */ -4, /* (326) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ -4, /* (327) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 0, /* (328) analyze_opt ::= */ -1, /* (329) analyze_opt ::= ANALYZE */ 0, /* (330) explain_options ::= */ -3, /* (331) explain_options ::= explain_options VERBOSE NK_BOOL */ -3, /* (332) explain_options ::= explain_options RATIO NK_FLOAT */ -12, /* (333) 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, /* (334) cmd ::= DROP FUNCTION exists_opt function_name */ 0, /* (335) agg_func_opt ::= */ -1, /* (336) agg_func_opt ::= AGGREGATE */ 0, /* (337) bufsize_opt ::= */ -2, /* (338) bufsize_opt ::= BUFSIZE NK_INTEGER */ 0, /* (339) language_opt ::= */ -2, /* (340) language_opt ::= LANGUAGE NK_STRING */ 0, /* (341) or_replace_opt ::= */ -2, /* (342) or_replace_opt ::= OR REPLACE */ -7, /* (343) cmd ::= CREATE or_replace_opt VIEW full_view_name col_list_opt AS query_or_subquery */ -4, /* (344) cmd ::= DROP VIEW exists_opt full_view_name */ -1, /* (345) full_view_name ::= view_name */ -3, /* (346) full_view_name ::= db_name NK_DOT view_name */ -12, /* (347) 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, /* (348) cmd ::= DROP STREAM exists_opt stream_name */ -4, /* (349) cmd ::= PAUSE STREAM exists_opt stream_name */ -5, /* (350) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 0, /* (351) col_list_opt ::= */ -3, /* (352) col_list_opt ::= NK_LP col_name_list NK_RP */ 0, /* (353) tag_def_or_ref_opt ::= */ -1, /* (354) tag_def_or_ref_opt ::= tags_def */ -4, /* (355) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 0, /* (356) stream_options ::= */ -3, /* (357) stream_options ::= stream_options TRIGGER AT_ONCE */ -3, /* (358) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -4, /* (359) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -3, /* (360) stream_options ::= stream_options WATERMARK duration_literal */ -4, /* (361) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -3, /* (362) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -3, /* (363) stream_options ::= stream_options DELETE_MARK duration_literal */ -4, /* (364) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 0, /* (365) subtable_opt ::= */ -4, /* (366) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 0, /* (367) ignore_opt ::= */ -2, /* (368) ignore_opt ::= IGNORE UNTREATED */ -3, /* (369) cmd ::= KILL CONNECTION NK_INTEGER */ -3, /* (370) cmd ::= KILL QUERY NK_STRING */ -3, /* (371) cmd ::= KILL TRANSACTION NK_INTEGER */ -2, /* (372) cmd ::= BALANCE VGROUP */ -3, /* (373) cmd ::= BALANCE VGROUP LEADER */ -4, /* (374) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -4, /* (375) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -3, /* (376) cmd ::= SPLIT VGROUP NK_INTEGER */ -2, /* (377) dnode_list ::= DNODE NK_INTEGER */ -3, /* (378) dnode_list ::= dnode_list DNODE NK_INTEGER */ -4, /* (379) cmd ::= DELETE FROM full_table_name where_clause_opt */ -1, /* (380) cmd ::= query_or_subquery */ -1, /* (381) cmd ::= insert_query */ -7, /* (382) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -4, /* (383) insert_query ::= INSERT INTO full_table_name query_or_subquery */ -1, /* (384) literal ::= NK_INTEGER */ -1, /* (385) literal ::= NK_FLOAT */ -1, /* (386) literal ::= NK_STRING */ -1, /* (387) literal ::= NK_BOOL */ -2, /* (388) literal ::= TIMESTAMP NK_STRING */ -1, /* (389) literal ::= duration_literal */ -1, /* (390) literal ::= NULL */ -1, /* (391) literal ::= NK_QUESTION */ -1, /* (392) duration_literal ::= NK_VARIABLE */ -1, /* (393) signed ::= NK_INTEGER */ -2, /* (394) signed ::= NK_PLUS NK_INTEGER */ -2, /* (395) signed ::= NK_MINUS NK_INTEGER */ -1, /* (396) signed ::= NK_FLOAT */ -2, /* (397) signed ::= NK_PLUS NK_FLOAT */ -2, /* (398) signed ::= NK_MINUS NK_FLOAT */ -1, /* (399) signed_literal ::= signed */ -1, /* (400) signed_literal ::= NK_STRING */ -1, /* (401) signed_literal ::= NK_BOOL */ -2, /* (402) signed_literal ::= TIMESTAMP NK_STRING */ -1, /* (403) signed_literal ::= duration_literal */ -1, /* (404) signed_literal ::= NULL */ -1, /* (405) signed_literal ::= literal_func */ -1, /* (406) signed_literal ::= NK_QUESTION */ -1, /* (407) literal_list ::= signed_literal */ -3, /* (408) literal_list ::= literal_list NK_COMMA signed_literal */ -1, /* (409) db_name ::= NK_ID */ -1, /* (410) table_name ::= NK_ID */ -1, /* (411) column_name ::= NK_ID */ -1, /* (412) function_name ::= NK_ID */ -1, /* (413) view_name ::= NK_ID */ -1, /* (414) table_alias ::= NK_ID */ -1, /* (415) column_alias ::= NK_ID */ -1, /* (416) user_name ::= NK_ID */ -1, /* (417) topic_name ::= NK_ID */ -1, /* (418) stream_name ::= NK_ID */ -1, /* (419) cgroup_name ::= NK_ID */ -1, /* (420) index_name ::= NK_ID */ -1, /* (421) expr_or_subquery ::= expression */ -1, /* (422) expression ::= literal */ -1, /* (423) expression ::= pseudo_column */ -1, /* (424) expression ::= column_reference */ -1, /* (425) expression ::= function_expression */ -1, /* (426) expression ::= case_when_expression */ -3, /* (427) expression ::= NK_LP expression NK_RP */ -2, /* (428) expression ::= NK_PLUS expr_or_subquery */ -2, /* (429) expression ::= NK_MINUS expr_or_subquery */ -3, /* (430) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ -3, /* (431) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -3, /* (432) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -3, /* (433) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -3, /* (434) expression ::= expr_or_subquery NK_REM expr_or_subquery */ -3, /* (435) expression ::= column_reference NK_ARROW NK_STRING */ -3, /* (436) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ -3, /* (437) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -1, /* (438) expression_list ::= expr_or_subquery */ -3, /* (439) expression_list ::= expression_list NK_COMMA expr_or_subquery */ -1, /* (440) column_reference ::= column_name */ -3, /* (441) column_reference ::= table_name NK_DOT column_name */ -1, /* (442) pseudo_column ::= ROWTS */ -1, /* (443) pseudo_column ::= TBNAME */ -3, /* (444) pseudo_column ::= table_name NK_DOT TBNAME */ -1, /* (445) pseudo_column ::= QSTART */ -1, /* (446) pseudo_column ::= QEND */ -1, /* (447) pseudo_column ::= QDURATION */ -1, /* (448) pseudo_column ::= WSTART */ -1, /* (449) pseudo_column ::= WEND */ -1, /* (450) pseudo_column ::= WDURATION */ -1, /* (451) pseudo_column ::= IROWTS */ -1, /* (452) pseudo_column ::= ISFILLED */ -1, /* (453) pseudo_column ::= QTAGS */ -4, /* (454) function_expression ::= function_name NK_LP expression_list NK_RP */ -4, /* (455) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ -6, /* (456) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -1, /* (457) function_expression ::= literal_func */ -3, /* (458) literal_func ::= noarg_func NK_LP NK_RP */ -1, /* (459) literal_func ::= NOW */ -1, /* (460) noarg_func ::= NOW */ -1, /* (461) noarg_func ::= TODAY */ -1, /* (462) noarg_func ::= TIMEZONE */ -1, /* (463) noarg_func ::= DATABASE */ -1, /* (464) noarg_func ::= CLIENT_VERSION */ -1, /* (465) noarg_func ::= SERVER_VERSION */ -1, /* (466) noarg_func ::= SERVER_STATUS */ -1, /* (467) noarg_func ::= CURRENT_USER */ -1, /* (468) noarg_func ::= USER */ -1, /* (469) star_func ::= COUNT */ -1, /* (470) star_func ::= FIRST */ -1, /* (471) star_func ::= LAST */ -1, /* (472) star_func ::= LAST_ROW */ -1, /* (473) star_func_para_list ::= NK_STAR */ -1, /* (474) star_func_para_list ::= other_para_list */ -1, /* (475) other_para_list ::= star_func_para */ -3, /* (476) other_para_list ::= other_para_list NK_COMMA star_func_para */ -1, /* (477) star_func_para ::= expr_or_subquery */ -3, /* (478) star_func_para ::= table_name NK_DOT NK_STAR */ -4, /* (479) case_when_expression ::= CASE when_then_list case_when_else_opt END */ -5, /* (480) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -1, /* (481) when_then_list ::= when_then_expr */ -2, /* (482) when_then_list ::= when_then_list when_then_expr */ -4, /* (483) when_then_expr ::= WHEN common_expression THEN common_expression */ 0, /* (484) case_when_else_opt ::= */ -2, /* (485) case_when_else_opt ::= ELSE common_expression */ -3, /* (486) predicate ::= expr_or_subquery compare_op expr_or_subquery */ -5, /* (487) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -6, /* (488) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -3, /* (489) predicate ::= expr_or_subquery IS NULL */ -4, /* (490) predicate ::= expr_or_subquery IS NOT NULL */ -3, /* (491) predicate ::= expr_or_subquery in_op in_predicate_value */ -1, /* (492) compare_op ::= NK_LT */ -1, /* (493) compare_op ::= NK_GT */ -1, /* (494) compare_op ::= NK_LE */ -1, /* (495) compare_op ::= NK_GE */ -1, /* (496) compare_op ::= NK_NE */ -1, /* (497) compare_op ::= NK_EQ */ -1, /* (498) compare_op ::= LIKE */ -2, /* (499) compare_op ::= NOT LIKE */ -1, /* (500) compare_op ::= MATCH */ -1, /* (501) compare_op ::= NMATCH */ -1, /* (502) compare_op ::= CONTAINS */ -1, /* (503) in_op ::= IN */ -2, /* (504) in_op ::= NOT IN */ -3, /* (505) in_predicate_value ::= NK_LP literal_list NK_RP */ -1, /* (506) boolean_value_expression ::= boolean_primary */ -2, /* (507) boolean_value_expression ::= NOT boolean_primary */ -3, /* (508) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -3, /* (509) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -1, /* (510) boolean_primary ::= predicate */ -3, /* (511) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ -1, /* (512) common_expression ::= expr_or_subquery */ -1, /* (513) common_expression ::= boolean_value_expression */ 0, /* (514) from_clause_opt ::= */ -2, /* (515) from_clause_opt ::= FROM table_reference_list */ -1, /* (516) table_reference_list ::= table_reference */ -3, /* (517) table_reference_list ::= table_reference_list NK_COMMA table_reference */ -1, /* (518) table_reference ::= table_primary */ -1, /* (519) table_reference ::= joined_table */ -2, /* (520) table_primary ::= table_name alias_opt */ -4, /* (521) table_primary ::= db_name NK_DOT table_name alias_opt */ -2, /* (522) table_primary ::= subquery alias_opt */ -1, /* (523) table_primary ::= parenthesized_joined_table */ 0, /* (524) alias_opt ::= */ -1, /* (525) alias_opt ::= table_alias */ -2, /* (526) alias_opt ::= AS table_alias */ -3, /* (527) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ -3, /* (528) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ -6, /* (529) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 0, /* (530) join_type ::= */ -1, /* (531) join_type ::= INNER */ -14, /* (532) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_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, /* (533) hint_list ::= */ -1, /* (534) hint_list ::= NK_HINT */ 0, /* (535) tag_mode_opt ::= */ -1, /* (536) tag_mode_opt ::= TAGS */ 0, /* (537) set_quantifier_opt ::= */ -1, /* (538) set_quantifier_opt ::= DISTINCT */ -1, /* (539) set_quantifier_opt ::= ALL */ -1, /* (540) select_list ::= select_item */ -3, /* (541) select_list ::= select_list NK_COMMA select_item */ -1, /* (542) select_item ::= NK_STAR */ -1, /* (543) select_item ::= common_expression */ -2, /* (544) select_item ::= common_expression column_alias */ -3, /* (545) select_item ::= common_expression AS column_alias */ -3, /* (546) select_item ::= table_name NK_DOT NK_STAR */ 0, /* (547) where_clause_opt ::= */ -2, /* (548) where_clause_opt ::= WHERE search_condition */ 0, /* (549) partition_by_clause_opt ::= */ -3, /* (550) partition_by_clause_opt ::= PARTITION BY partition_list */ -1, /* (551) partition_list ::= partition_item */ -3, /* (552) partition_list ::= partition_list NK_COMMA partition_item */ -1, /* (553) partition_item ::= expr_or_subquery */ -2, /* (554) partition_item ::= expr_or_subquery column_alias */ -3, /* (555) partition_item ::= expr_or_subquery AS column_alias */ 0, /* (556) twindow_clause_opt ::= */ -6, /* (557) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -4, /* (558) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -6, /* (559) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -8, /* (560) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -7, /* (561) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 0, /* (562) sliding_opt ::= */ -4, /* (563) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ 0, /* (564) fill_opt ::= */ -4, /* (565) fill_opt ::= FILL NK_LP fill_mode NK_RP */ -6, /* (566) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -6, /* (567) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -1, /* (568) fill_mode ::= NONE */ -1, /* (569) fill_mode ::= PREV */ -1, /* (570) fill_mode ::= NULL */ -1, /* (571) fill_mode ::= NULL_F */ -1, /* (572) fill_mode ::= LINEAR */ -1, /* (573) fill_mode ::= NEXT */ 0, /* (574) group_by_clause_opt ::= */ -3, /* (575) group_by_clause_opt ::= GROUP BY group_by_list */ -1, /* (576) group_by_list ::= expr_or_subquery */ -3, /* (577) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 0, /* (578) having_clause_opt ::= */ -2, /* (579) having_clause_opt ::= HAVING search_condition */ 0, /* (580) range_opt ::= */ -6, /* (581) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -4, /* (582) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 0, /* (583) every_opt ::= */ -4, /* (584) every_opt ::= EVERY NK_LP duration_literal NK_RP */ -4, /* (585) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -1, /* (586) query_simple ::= query_specification */ -1, /* (587) query_simple ::= union_query_expression */ -4, /* (588) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -3, /* (589) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -1, /* (590) query_simple_or_subquery ::= query_simple */ -1, /* (591) query_simple_or_subquery ::= subquery */ -1, /* (592) query_or_subquery ::= query_expression */ -1, /* (593) query_or_subquery ::= subquery */ 0, /* (594) order_by_clause_opt ::= */ -3, /* (595) order_by_clause_opt ::= ORDER BY sort_specification_list */ 0, /* (596) slimit_clause_opt ::= */ -2, /* (597) slimit_clause_opt ::= SLIMIT NK_INTEGER */ -4, /* (598) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ -4, /* (599) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 0, /* (600) limit_clause_opt ::= */ -2, /* (601) limit_clause_opt ::= LIMIT NK_INTEGER */ -4, /* (602) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ -4, /* (603) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ -3, /* (604) subquery ::= NK_LP query_expression NK_RP */ -3, /* (605) subquery ::= NK_LP subquery NK_RP */ -1, /* (606) search_condition ::= common_expression */ -1, /* (607) sort_specification_list ::= sort_specification */ -3, /* (608) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ -3, /* (609) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 0, /* (610) ordering_specification_opt ::= */ -1, /* (611) ordering_specification_opt ::= ASC */ -1, /* (612) ordering_specification_opt ::= DESC */ 0, /* (613) null_ordering_opt ::= */ -2, /* (614) null_ordering_opt ::= NULLS FIRST */ -2, /* (615) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ /* ** Perform a reduce action and the shift that must immediately ** follow the reduce. ** ** The yyLookahead and yyLookaheadToken parameters provide reduce actions ** access to the lookahead token (if any). The yyLookahead will be YYNOCODE ** if the lookahead token has already been consumed. As this procedure is ** only called from one place, optimizing compilers will in-line it, which ** means that the extra parameters have no performance impact. */ static YYACTIONTYPE yy_reduce( yyParser *yypParser, /* The parser */ unsigned int yyruleno, /* Number of the rule by which to reduce */ int yyLookahead, /* Lookahead token, or YYNOCODE if none */ ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */ ParseCTX_PDECL /* %extra_context */ ){ int yygoto; /* The next state */ YYACTIONTYPE yyact; /* The next action */ yyStackEntry *yymsp; /* The top of the parser's stack */ int yysize; /* Amount to pop the stack */ ParseARG_FETCH (void)yyLookahead; (void)yyLookaheadToken; yymsp = yypParser->yytos; #ifndef NDEBUG if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){ yysize = yyRuleInfoNRhs[yyruleno]; if( yysize ){ fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", yyTracePrompt, yyruleno, yyRuleName[yyruleno], yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack)); } #endif #if YYSTACKDEPTH>0 if( yypParser->yytos>=yypParser->yystackEnd ){ yyStackOverflow(yypParser); /* The call to yyStackOverflow() above pops the stack until it is ** empty, causing the main parser loop to exit. So the return value ** is never used and does not matter. */ return 0; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){ if( yyGrowStack(yypParser) ){ yyStackOverflow(yypParser); /* The call to yyStackOverflow() above pops the stack until it is ** empty, causing the main parser loop to exit. So the return value ** is never used and does not matter. */ return 0; } yymsp = yypParser->yytos; } #endif } switch( yyruleno ){ /* Beginning here are the reduction cases. A typical example ** follows: ** case 0: ** #line ** { ... } // User supplied code ** #line ** break; */ /********** Begin reduce actions **********************************************/ YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } yy_destructor(yypParser,341,&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,342,&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,341,&yymsp[-2].minor); { } yy_destructor(yypParser,343,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,344,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,342,&yymsp[-1].minor); { } yy_destructor(yypParser,344,&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,343,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ { yylhsminor.yy440 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy440 = yylhsminor.yy440; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ { yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-2].minor.yy440, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy440 = yylhsminor.yy440; break; case 26: /* white_list ::= HOST ip_range_list */ { yymsp[-1].minor.yy440 = yymsp[0].minor.yy440; } break; case 27: /* white_list_opt ::= */ case 182: /* specific_cols_opt ::= */ yytestcase(yyruleno==182); case 213: /* tags_def_opt ::= */ yytestcase(yyruleno==213); case 288: /* tag_list_opt ::= */ yytestcase(yyruleno==288); case 351: /* col_list_opt ::= */ yytestcase(yyruleno==351); case 353: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==353); case 549: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==549); case 574: /* group_by_clause_opt ::= */ yytestcase(yyruleno==574); case 594: /* order_by_clause_opt ::= */ yytestcase(yyruleno==594); { yymsp[1].minor.yy440 = NULL; } break; case 28: /* white_list_opt ::= white_list */ case 214: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==214); case 354: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==354); case 474: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==474); { yylhsminor.yy440 = yymsp[0].minor.yy440; } yymsp[0].minor.yy440 = yylhsminor.yy440; break; case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy737, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy919); pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy440); } break; case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy737, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy737, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } break; case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy737, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 33: /* cmd ::= ALTER USER user_name ADD white_list */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy737, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy440); } break; case 34: /* cmd ::= ALTER USER user_name DROP white_list */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy737, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy440); } break; case 35: /* cmd ::= DROP USER user_name */ { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy737); } break; case 36: /* sysinfo_opt ::= */ { yymsp[1].minor.yy919 = 1; } break; case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ { yymsp[-1].minor.yy919 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ { pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy221, &yymsp[-3].minor.yy601, &yymsp[0].minor.yy737, yymsp[-2].minor.yy168); } break; case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy221, &yymsp[-3].minor.yy601, &yymsp[0].minor.yy737, yymsp[-2].minor.yy168); } break; case 40: /* privileges ::= ALL */ { yymsp[0].minor.yy221 = PRIVILEGE_TYPE_ALL; } break; case 41: /* privileges ::= priv_type_list */ case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43); { yylhsminor.yy221 = yymsp[0].minor.yy221; } yymsp[0].minor.yy221 = yylhsminor.yy221; break; case 42: /* privileges ::= SUBSCRIBE */ { yymsp[0].minor.yy221 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ { yylhsminor.yy221 = yymsp[-2].minor.yy221 | yymsp[0].minor.yy221; } yymsp[-2].minor.yy221 = yylhsminor.yy221; break; case 45: /* priv_type ::= READ */ { yymsp[0].minor.yy221 = PRIVILEGE_TYPE_READ; } break; case 46: /* priv_type ::= WRITE */ { yymsp[0].minor.yy221 = PRIVILEGE_TYPE_WRITE; } break; case 47: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ { yylhsminor.yy601.first = yymsp[-2].minor.yy0; yylhsminor.yy601.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy601 = yylhsminor.yy601; break; case 48: /* priv_level ::= db_name NK_DOT NK_STAR */ { yylhsminor.yy601.first = yymsp[-2].minor.yy737; yylhsminor.yy601.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy601 = yylhsminor.yy601; break; case 49: /* priv_level ::= db_name NK_DOT table_name */ { yylhsminor.yy601.first = yymsp[-2].minor.yy737; yylhsminor.yy601.second = yymsp[0].minor.yy737; } yymsp[-2].minor.yy601 = yylhsminor.yy601; break; case 50: /* priv_level ::= topic_name */ { yylhsminor.yy601.first = yymsp[0].minor.yy737; yylhsminor.yy601.second = nil_token; } yymsp[0].minor.yy601 = yylhsminor.yy601; break; case 51: /* with_opt ::= */ case 151: /* start_opt ::= */ yytestcase(yyruleno==151); case 155: /* end_opt ::= */ yytestcase(yyruleno==155); case 283: /* like_pattern_opt ::= */ yytestcase(yyruleno==283); case 365: /* subtable_opt ::= */ yytestcase(yyruleno==365); case 484: /* case_when_else_opt ::= */ yytestcase(yyruleno==484); case 514: /* from_clause_opt ::= */ yytestcase(yyruleno==514); case 547: /* where_clause_opt ::= */ yytestcase(yyruleno==547); case 556: /* twindow_clause_opt ::= */ yytestcase(yyruleno==556); case 562: /* sliding_opt ::= */ yytestcase(yyruleno==562); case 564: /* fill_opt ::= */ yytestcase(yyruleno==564); case 578: /* having_clause_opt ::= */ yytestcase(yyruleno==578); case 580: /* range_opt ::= */ yytestcase(yyruleno==580); case 583: /* every_opt ::= */ yytestcase(yyruleno==583); case 596: /* slimit_clause_opt ::= */ yytestcase(yyruleno==596); case 600: /* limit_clause_opt ::= */ yytestcase(yyruleno==600); { yymsp[1].minor.yy168 = NULL; } break; case 52: /* with_opt ::= WITH search_condition */ case 515: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==515); case 548: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==548); case 579: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==579); { yymsp[-1].minor.yy168 = yymsp[0].minor.yy168; } break; case 53: /* cmd ::= CREATE DNODE dnode_endpoint */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy737, NULL); } break; case 54: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy0); } break; case 55: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy953, false); } break; case 56: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy737, yymsp[0].minor.yy953, false); } break; case 57: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy953); } break; case 58: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy737, false, yymsp[0].minor.yy953); } break; case 59: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } break; case 60: /* 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 61: /* cmd ::= ALTER ALL DNODES NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } break; case 62: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 63: /* cmd ::= RESTORE DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } break; case 64: /* dnode_endpoint ::= NK_STRING */ case 65: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==65); case 66: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==66); case 307: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==307); case 308: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==308); case 309: /* sma_func_name ::= LAST */ yytestcase(yyruleno==309); case 310: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==310); case 409: /* db_name ::= NK_ID */ yytestcase(yyruleno==409); case 410: /* table_name ::= NK_ID */ yytestcase(yyruleno==410); case 411: /* column_name ::= NK_ID */ yytestcase(yyruleno==411); case 412: /* function_name ::= NK_ID */ yytestcase(yyruleno==412); case 413: /* view_name ::= NK_ID */ yytestcase(yyruleno==413); case 414: /* table_alias ::= NK_ID */ yytestcase(yyruleno==414); case 415: /* column_alias ::= NK_ID */ yytestcase(yyruleno==415); case 416: /* user_name ::= NK_ID */ yytestcase(yyruleno==416); case 417: /* topic_name ::= NK_ID */ yytestcase(yyruleno==417); case 418: /* stream_name ::= NK_ID */ yytestcase(yyruleno==418); case 419: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==419); case 420: /* index_name ::= NK_ID */ yytestcase(yyruleno==420); case 460: /* noarg_func ::= NOW */ yytestcase(yyruleno==460); case 461: /* noarg_func ::= TODAY */ yytestcase(yyruleno==461); case 462: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==462); case 463: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==463); case 464: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==464); case 465: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==465); case 466: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==466); case 467: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==467); case 468: /* noarg_func ::= USER */ yytestcase(yyruleno==468); case 469: /* star_func ::= COUNT */ yytestcase(yyruleno==469); case 470: /* star_func ::= FIRST */ yytestcase(yyruleno==470); case 471: /* star_func ::= LAST */ yytestcase(yyruleno==471); case 472: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==472); { yylhsminor.yy737 = yymsp[0].minor.yy0; } yymsp[0].minor.yy737 = yylhsminor.yy737; break; case 67: /* force_opt ::= */ case 91: /* not_exists_opt ::= */ yytestcase(yyruleno==91); case 93: /* exists_opt ::= */ yytestcase(yyruleno==93); case 328: /* analyze_opt ::= */ yytestcase(yyruleno==328); case 335: /* agg_func_opt ::= */ yytestcase(yyruleno==335); case 341: /* or_replace_opt ::= */ yytestcase(yyruleno==341); case 367: /* ignore_opt ::= */ yytestcase(yyruleno==367); case 535: /* tag_mode_opt ::= */ yytestcase(yyruleno==535); case 537: /* set_quantifier_opt ::= */ yytestcase(yyruleno==537); { yymsp[1].minor.yy953 = false; } break; case 68: /* force_opt ::= FORCE */ case 69: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==69); case 329: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==329); case 336: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==336); case 536: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==536); case 538: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==538); { yymsp[0].minor.yy953 = true; } break; case 70: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 71: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 72: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 73: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 74: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 75: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 76: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 77: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 78: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 79: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 80: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 81: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 82: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } break; case 83: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy953, &yymsp[-1].minor.yy737, yymsp[0].minor.yy168); } break; case 84: /* cmd ::= DROP DATABASE exists_opt db_name */ { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy953, &yymsp[0].minor.yy737); } break; case 85: /* cmd ::= USE db_name */ { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy737); } break; case 86: /* cmd ::= ALTER DATABASE db_name alter_db_options */ { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy737, yymsp[0].minor.yy168); } break; case 87: /* cmd ::= FLUSH DATABASE db_name */ { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy737); } break; case 88: /* cmd ::= TRIM DATABASE db_name speed_opt */ { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy737, yymsp[0].minor.yy324); } break; case 89: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy737, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } break; case 90: /* not_exists_opt ::= IF NOT EXISTS */ { yymsp[-2].minor.yy953 = true; } break; case 92: /* exists_opt ::= IF EXISTS */ case 342: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==342); case 368: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==368); { yymsp[-1].minor.yy953 = true; } break; case 94: /* db_options ::= */ { yymsp[1].minor.yy168 = createDefaultDatabaseOptions(pCxt); } break; case 95: /* db_options ::= db_options BUFFER NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 96: /* db_options ::= db_options CACHEMODEL NK_STRING */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 97: /* db_options ::= db_options CACHESIZE NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 98: /* db_options ::= db_options COMP NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_COMP, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 99: /* db_options ::= db_options DURATION NK_INTEGER */ case 100: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==100); { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 101: /* db_options ::= db_options MAXROWS NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 102: /* db_options ::= db_options MINROWS NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 103: /* db_options ::= db_options KEEP integer_list */ case 104: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==104); { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_KEEP, yymsp[0].minor.yy440); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 105: /* db_options ::= db_options PAGES NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 106: /* db_options ::= db_options PAGESIZE NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 107: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 108: /* db_options ::= db_options PRECISION NK_STRING */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 109: /* db_options ::= db_options REPLICA NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 110: /* db_options ::= db_options VGROUPS NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 111: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 112: /* db_options ::= db_options RETENTIONS retention_list */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_RETENTIONS, yymsp[0].minor.yy440); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 113: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 114: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_WAL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 115: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 116: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 117: /* 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.yy168 = setDatabaseOption(pCxt, yymsp[-3].minor.yy168, DB_OPTION_WAL_RETENTION_PERIOD, &t); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 118: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 119: /* 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.yy168 = setDatabaseOption(pCxt, yymsp[-3].minor.yy168, DB_OPTION_WAL_RETENTION_SIZE, &t); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 120: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 121: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 122: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 123: /* db_options ::= db_options TABLE_PREFIX signed */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy168); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 124: /* db_options ::= db_options TABLE_SUFFIX signed */ { yylhsminor.yy168 = setDatabaseOption(pCxt, yymsp[-2].minor.yy168, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy168); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 125: /* alter_db_options ::= alter_db_option */ { yylhsminor.yy168 = createAlterDatabaseOptions(pCxt); yylhsminor.yy168 = setAlterDatabaseOption(pCxt, yylhsminor.yy168, &yymsp[0].minor.yy349); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 126: /* alter_db_options ::= alter_db_options alter_db_option */ { yylhsminor.yy168 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy168, &yymsp[0].minor.yy349); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 127: /* alter_db_option ::= BUFFER NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 128: /* alter_db_option ::= CACHEMODEL NK_STRING */ { yymsp[-1].minor.yy349.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 129: /* alter_db_option ::= CACHESIZE NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 130: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 131: /* alter_db_option ::= KEEP integer_list */ case 132: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==132); { yymsp[-1].minor.yy349.type = DB_OPTION_KEEP; yymsp[-1].minor.yy349.pList = yymsp[0].minor.yy440; } break; case 133: /* alter_db_option ::= PAGES NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_PAGES; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 134: /* alter_db_option ::= REPLICA NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 135: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_WAL; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 136: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 137: /* alter_db_option ::= MINROWS NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 138: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 139: /* 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.yy349.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy349.val = t; } break; case 140: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ { yymsp[-1].minor.yy349.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 141: /* 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.yy349.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy349.val = t; } break; case 142: /* integer_list ::= NK_INTEGER */ { yylhsminor.yy440 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy440 = yylhsminor.yy440; break; case 143: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 378: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==378); { yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-2].minor.yy440, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy440 = yylhsminor.yy440; break; case 144: /* variable_list ::= NK_VARIABLE */ { yylhsminor.yy440 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy440 = yylhsminor.yy440; break; case 145: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-2].minor.yy440, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy440 = yylhsminor.yy440; break; case 146: /* retention_list ::= retention */ case 176: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==176); case 179: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==179); case 186: /* column_def_list ::= column_def */ yytestcase(yyruleno==186); case 230: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==230); case 235: /* col_name_list ::= col_name */ yytestcase(yyruleno==235); case 289: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==289); case 303: /* func_list ::= func */ yytestcase(yyruleno==303); case 407: /* literal_list ::= signed_literal */ yytestcase(yyruleno==407); case 475: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==475); case 481: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==481); case 540: /* select_list ::= select_item */ yytestcase(yyruleno==540); case 551: /* partition_list ::= partition_item */ yytestcase(yyruleno==551); case 607: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==607); { yylhsminor.yy440 = createNodeList(pCxt, yymsp[0].minor.yy168); } yymsp[0].minor.yy440 = yylhsminor.yy440; break; case 147: /* retention_list ::= retention_list NK_COMMA retention */ case 180: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==180); case 187: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==187); case 231: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==231); case 236: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==236); case 290: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==290); case 304: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==304); case 408: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==408); case 476: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==476); case 541: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==541); case 552: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==552); case 608: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==608); { yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-2].minor.yy440, yymsp[0].minor.yy168); } yymsp[-2].minor.yy440 = yylhsminor.yy440; break; case 148: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ { yylhsminor.yy168 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 149: /* speed_opt ::= */ case 337: /* bufsize_opt ::= */ yytestcase(yyruleno==337); { yymsp[1].minor.yy324 = 0; } break; case 150: /* speed_opt ::= BWLIMIT NK_INTEGER */ case 338: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==338); { yymsp[-1].minor.yy324 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 152: /* start_opt ::= START WITH NK_INTEGER */ case 156: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==156); { yymsp[-2].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 153: /* start_opt ::= START WITH NK_STRING */ case 157: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==157); { yymsp[-2].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 154: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 158: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==158); { yymsp[-3].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 159: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 161: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==161); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy953, yymsp[-5].minor.yy168, yymsp[-3].minor.yy440, yymsp[-1].minor.yy440, yymsp[0].minor.yy168); } break; case 160: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy440); } break; case 162: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy440); } break; case 163: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy953, yymsp[0].minor.yy168); } break; case 164: /* cmd ::= ALTER TABLE alter_table_clause */ case 380: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==380); case 381: /* cmd ::= insert_query */ yytestcase(yyruleno==381); { pCxt->pRootNode = yymsp[0].minor.yy168; } break; case 165: /* cmd ::= ALTER STABLE alter_table_clause */ { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy168); } break; case 166: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy168 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 167: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy168 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy737, yymsp[0].minor.yy208); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 168: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy168 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy168, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy737); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 169: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy168 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy737, yymsp[0].minor.yy208); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 170: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy168 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy737, &yymsp[0].minor.yy737); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 171: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy168 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy737, yymsp[0].minor.yy208); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 172: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy168 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy168, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy737); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 173: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy168 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy737, yymsp[0].minor.yy208); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 174: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy168 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy737, &yymsp[0].minor.yy737); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 175: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { yylhsminor.yy168 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy168, &yymsp[-2].minor.yy737, yymsp[0].minor.yy168); } yymsp[-5].minor.yy168 = yylhsminor.yy168; break; case 177: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 482: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==482); { yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-1].minor.yy440, yymsp[0].minor.yy168); } yymsp[-1].minor.yy440 = yylhsminor.yy440; break; case 178: /* 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.yy168 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy953, yymsp[-8].minor.yy168, yymsp[-6].minor.yy168, yymsp[-5].minor.yy440, yymsp[-2].minor.yy440, yymsp[0].minor.yy168); } yymsp[-9].minor.yy168 = yylhsminor.yy168; break; case 181: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy168 = createDropTableClause(pCxt, yymsp[-1].minor.yy953, yymsp[0].minor.yy168); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 183: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 352: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==352); { yymsp[-2].minor.yy440 = yymsp[-1].minor.yy440; } break; case 184: /* full_table_name ::= table_name */ { yylhsminor.yy168 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy737, NULL); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 185: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy168 = createRealTableNode(pCxt, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy737, NULL); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 188: /* column_def ::= column_name type_name */ { yylhsminor.yy168 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy737, yymsp[0].minor.yy208, NULL); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 189: /* type_name ::= BOOL */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 190: /* type_name ::= TINYINT */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 191: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 192: /* type_name ::= INT */ case 193: /* type_name ::= INTEGER */ yytestcase(yyruleno==193); { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_INT); } break; case 194: /* type_name ::= BIGINT */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 195: /* type_name ::= FLOAT */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 196: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 197: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy208 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 198: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 199: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy208 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 200: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy208 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 201: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy208 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 202: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy208 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 203: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy208 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 204: /* type_name ::= JSON */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 205: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy208 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 206: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 207: /* type_name ::= BLOB */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 208: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy208 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 209: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy208 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } break; case 210: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy208 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 211: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy208 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 212: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy208 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 215: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ case 355: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==355); { yymsp[-3].minor.yy440 = yymsp[-1].minor.yy440; } break; case 216: /* table_options ::= */ { yymsp[1].minor.yy168 = createDefaultTableOptions(pCxt); } break; case 217: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy168 = setTableOption(pCxt, yymsp[-2].minor.yy168, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 218: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy168 = setTableOption(pCxt, yymsp[-2].minor.yy168, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy440); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 219: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy168 = setTableOption(pCxt, yymsp[-2].minor.yy168, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy440); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 220: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy168 = setTableOption(pCxt, yymsp[-4].minor.yy168, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy440); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 221: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy168 = setTableOption(pCxt, yymsp[-2].minor.yy168, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 222: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy168 = setTableOption(pCxt, yymsp[-4].minor.yy168, TABLE_OPTION_SMA, yymsp[-1].minor.yy440); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 223: /* table_options ::= table_options DELETE_MARK duration_list */ { yylhsminor.yy168 = setTableOption(pCxt, yymsp[-2].minor.yy168, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy440); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 224: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy168 = createAlterTableOptions(pCxt); yylhsminor.yy168 = setTableOption(pCxt, yylhsminor.yy168, yymsp[0].minor.yy349.type, &yymsp[0].minor.yy349.val); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 225: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy168 = setTableOption(pCxt, yymsp[-1].minor.yy168, yymsp[0].minor.yy349.type, &yymsp[0].minor.yy349.val); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 226: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy349.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 227: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy349.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy349.val = yymsp[0].minor.yy0; } break; case 228: /* duration_list ::= duration_literal */ case 438: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==438); { yylhsminor.yy440 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } yymsp[0].minor.yy440 = yylhsminor.yy440; break; case 229: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 439: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==439); { yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-2].minor.yy440, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } yymsp[-2].minor.yy440 = yylhsminor.yy440; break; case 232: /* rollup_func_name ::= function_name */ { yylhsminor.yy168 = createFunctionNode(pCxt, &yymsp[0].minor.yy737, NULL); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 233: /* rollup_func_name ::= FIRST */ case 234: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==234); case 292: /* tag_item ::= QTAGS */ yytestcase(yyruleno==292); { yylhsminor.yy168 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 237: /* col_name ::= column_name */ case 293: /* tag_item ::= column_name */ yytestcase(yyruleno==293); { yylhsminor.yy168 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy737); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 238: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; case 239: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; case 240: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } break; case 241: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; case 242: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy168, yymsp[0].minor.yy168, OP_TYPE_LIKE); } break; case 243: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy168, yymsp[0].minor.yy168, OP_TYPE_LIKE); } break; case 244: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy168, NULL, OP_TYPE_LIKE); } break; case 245: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; case 246: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; case 247: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 248: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy168, yymsp[-1].minor.yy168, OP_TYPE_EQUAL); } break; case 249: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy737), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy737), OP_TYPE_EQUAL); } break; case 250: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; case 251: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; case 252: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; case 253: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; case 254: /* cmd ::= SHOW LICENCES */ case 255: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==255); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; case 256: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy737); } break; case 257: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy168); } break; case 258: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy168); } break; case 259: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; case 260: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; case 261: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; case 262: /* cmd ::= SHOW VARIABLES */ case 263: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==263); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; case 264: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; case 265: /* 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.yy168); } break; case 266: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; case 267: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; case 268: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; case 269: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 270: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy168); } break; case 271: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; case 272: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; case 273: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy168, yymsp[-1].minor.yy168, OP_TYPE_EQUAL); } break; case 274: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy737), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy737), OP_TYPE_EQUAL); } break; case 275: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy168, yymsp[0].minor.yy168, yymsp[-3].minor.yy440); } break; case 276: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy737), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy737), yymsp[-4].minor.yy440); } break; case 277: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; case 278: /* cmd ::= SHOW VNODES */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } break; case 279: /* cmd ::= SHOW db_name_cond_opt ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy168, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; case 280: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; case 281: /* db_name_cond_opt ::= */ case 286: /* from_db_opt ::= */ yytestcase(yyruleno==286); { yymsp[1].minor.yy168 = createDefaultDatabaseCondValue(pCxt); } break; case 282: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy168 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy737); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 284: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 285: /* table_name_cond ::= table_name */ { yylhsminor.yy168 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy737); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 287: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy168 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy737); } break; case 291: /* tag_item ::= TBNAME */ { yylhsminor.yy168 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 294: /* tag_item ::= column_name column_alias */ { yylhsminor.yy168 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy737), &yymsp[0].minor.yy737); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 295: /* tag_item ::= column_name AS column_alias */ { yylhsminor.yy168 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy737), &yymsp[0].minor.yy737); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 296: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy953, yymsp[-3].minor.yy168, yymsp[-1].minor.yy168, NULL, yymsp[0].minor.yy168); } break; case 297: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy953, yymsp[-5].minor.yy168, yymsp[-3].minor.yy168, yymsp[-1].minor.yy440, NULL); } break; case 298: /* cmd ::= DROP INDEX exists_opt full_index_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy953, yymsp[0].minor.yy168); } break; case 299: /* full_index_name ::= index_name */ { yylhsminor.yy168 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy737); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 300: /* full_index_name ::= db_name NK_DOT index_name */ { yylhsminor.yy168 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy737); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 301: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-9].minor.yy168 = createIndexOption(pCxt, yymsp[-7].minor.yy440, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), NULL, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } break; case 302: /* 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.yy168 = createIndexOption(pCxt, yymsp[-9].minor.yy440, releaseRawExprNode(pCxt, yymsp[-5].minor.yy168), releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } break; case 305: /* func ::= sma_func_name NK_LP expression_list NK_RP */ { yylhsminor.yy168 = createFunctionNode(pCxt, &yymsp[-3].minor.yy737, yymsp[-1].minor.yy440); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 306: /* sma_func_name ::= function_name */ case 525: /* alias_opt ::= table_alias */ yytestcase(yyruleno==525); { yylhsminor.yy737 = yymsp[0].minor.yy737; } yymsp[0].minor.yy737 = yylhsminor.yy737; break; case 311: /* sma_stream_opt ::= */ case 356: /* stream_options ::= */ yytestcase(yyruleno==356); { yymsp[1].minor.yy168 = createStreamOptions(pCxt); } break; case 312: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy168)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = yymsp[-2].minor.yy168; } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 313: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy168)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = yymsp[-2].minor.yy168; } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 314: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy168)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = yymsp[-2].minor.yy168; } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 315: /* with_meta ::= AS */ { yymsp[0].minor.yy324 = 0; } break; case 316: /* with_meta ::= WITH META AS */ { yymsp[-2].minor.yy324 = 1; } break; case 317: /* with_meta ::= ONLY META AS */ { yymsp[-2].minor.yy324 = 2; } break; case 318: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy953, &yymsp[-2].minor.yy737, yymsp[0].minor.yy168); } break; case 319: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy953, &yymsp[-3].minor.yy737, &yymsp[0].minor.yy737, yymsp[-2].minor.yy324); } break; case 320: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy953, &yymsp[-4].minor.yy737, yymsp[-1].minor.yy168, yymsp[-3].minor.yy324, yymsp[0].minor.yy168); } break; case 321: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy953, &yymsp[0].minor.yy737); } break; case 322: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy953, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy737); } break; case 323: /* cmd ::= DESC full_table_name */ case 324: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==324); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy168); } break; case 325: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 326: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 327: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==327); { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy953, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } break; case 330: /* explain_options ::= */ { yymsp[1].minor.yy168 = createDefaultExplainOptions(pCxt); } break; case 331: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy168 = setExplainVerbose(pCxt, yymsp[-2].minor.yy168, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 332: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy168 = setExplainRatio(pCxt, yymsp[-2].minor.yy168, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 333: /* 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.yy953, yymsp[-9].minor.yy953, &yymsp[-6].minor.yy737, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy208, yymsp[-1].minor.yy324, &yymsp[0].minor.yy737, yymsp[-10].minor.yy953); } break; case 334: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy953, &yymsp[0].minor.yy737); } break; case 339: /* language_opt ::= */ { yymsp[1].minor.yy737 = nil_token; } break; case 340: /* language_opt ::= LANGUAGE NK_STRING */ { yymsp[-1].minor.yy737 = yymsp[0].minor.yy0; } break; case 343: /* cmd ::= CREATE or_replace_opt VIEW full_view_name col_list_opt AS query_or_subquery */ { pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-5].minor.yy953, yymsp[-3].minor.yy168, yymsp[-2].minor.yy440, &yymsp[-1].minor.yy0, yymsp[0].minor.yy168); } break; case 344: /* cmd ::= DROP VIEW exists_opt full_view_name */ { pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy953, yymsp[0].minor.yy168); } break; case 345: /* full_view_name ::= view_name */ { yylhsminor.yy168 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy737); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 346: /* full_view_name ::= db_name NK_DOT view_name */ { yylhsminor.yy168 = createViewNode(pCxt, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy737); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 347: /* 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.yy953, &yymsp[-8].minor.yy737, yymsp[-5].minor.yy168, yymsp[-7].minor.yy168, yymsp[-3].minor.yy440, yymsp[-2].minor.yy168, yymsp[0].minor.yy168, yymsp[-4].minor.yy440); } break; case 348: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy953, &yymsp[0].minor.yy737); } break; case 349: /* cmd ::= PAUSE STREAM exists_opt stream_name */ { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy953, &yymsp[0].minor.yy737); } break; case 350: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy953, yymsp[-1].minor.yy953, &yymsp[0].minor.yy737); } break; case 357: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 358: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==358); { yylhsminor.yy168 = setStreamOptions(pCxt, yymsp[-2].minor.yy168, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 359: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { yylhsminor.yy168 = setStreamOptions(pCxt, yymsp[-3].minor.yy168, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 360: /* stream_options ::= stream_options WATERMARK duration_literal */ { yylhsminor.yy168 = setStreamOptions(pCxt, yymsp[-2].minor.yy168, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 361: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { yylhsminor.yy168 = setStreamOptions(pCxt, yymsp[-3].minor.yy168, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 362: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { yylhsminor.yy168 = setStreamOptions(pCxt, yymsp[-2].minor.yy168, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 363: /* stream_options ::= stream_options DELETE_MARK duration_literal */ { yylhsminor.yy168 = setStreamOptions(pCxt, yymsp[-2].minor.yy168, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 364: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { yylhsminor.yy168 = setStreamOptions(pCxt, yymsp[-3].minor.yy168, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 366: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ case 563: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==563); case 584: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==584); { yymsp[-3].minor.yy168 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy168); } break; case 369: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; case 370: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; case 371: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; case 372: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; case 373: /* cmd ::= BALANCE VGROUP LEADER */ { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); } break; case 374: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 375: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy440); } break; case 376: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 377: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy440 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 379: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } break; case 382: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { yymsp[-6].minor.yy168 = createInsertStmt(pCxt, yymsp[-4].minor.yy168, yymsp[-2].minor.yy440, yymsp[0].minor.yy168); } break; case 383: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ { yymsp[-3].minor.yy168 = createInsertStmt(pCxt, yymsp[-1].minor.yy168, NULL, yymsp[0].minor.yy168); } break; case 384: /* literal ::= NK_INTEGER */ { yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 385: /* literal ::= NK_FLOAT */ { yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 386: /* literal ::= NK_STRING */ { yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 387: /* literal ::= NK_BOOL */ { yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 388: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 389: /* literal ::= duration_literal */ case 399: /* signed_literal ::= signed */ yytestcase(yyruleno==399); case 421: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==421); case 422: /* expression ::= literal */ yytestcase(yyruleno==422); case 423: /* expression ::= pseudo_column */ yytestcase(yyruleno==423); case 424: /* expression ::= column_reference */ yytestcase(yyruleno==424); case 425: /* expression ::= function_expression */ yytestcase(yyruleno==425); case 426: /* expression ::= case_when_expression */ yytestcase(yyruleno==426); case 457: /* function_expression ::= literal_func */ yytestcase(yyruleno==457); case 506: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==506); case 510: /* boolean_primary ::= predicate */ yytestcase(yyruleno==510); case 512: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==512); case 513: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==513); case 516: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==516); case 518: /* table_reference ::= table_primary */ yytestcase(yyruleno==518); case 519: /* table_reference ::= joined_table */ yytestcase(yyruleno==519); case 523: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==523); case 586: /* query_simple ::= query_specification */ yytestcase(yyruleno==586); case 587: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==587); case 590: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==590); case 592: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==592); { yylhsminor.yy168 = yymsp[0].minor.yy168; } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 390: /* literal ::= NULL */ { yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 391: /* literal ::= NK_QUESTION */ { yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 392: /* duration_literal ::= NK_VARIABLE */ { yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 393: /* signed ::= NK_INTEGER */ { yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 394: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; case 395: /* 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.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 396: /* signed ::= NK_FLOAT */ { yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 397: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 398: /* 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.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 400: /* signed_literal ::= NK_STRING */ { yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 401: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 402: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 403: /* signed_literal ::= duration_literal */ case 405: /* signed_literal ::= literal_func */ yytestcase(yyruleno==405); case 477: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==477); case 543: /* select_item ::= common_expression */ yytestcase(yyruleno==543); case 553: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==553); case 591: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==591); case 593: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==593); case 606: /* search_condition ::= common_expression */ yytestcase(yyruleno==606); { yylhsminor.yy168 = releaseRawExprNode(pCxt, yymsp[0].minor.yy168); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 404: /* signed_literal ::= NULL */ { yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 406: /* signed_literal ::= NK_QUESTION */ { yylhsminor.yy168 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 427: /* expression ::= NK_LP expression NK_RP */ case 511: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==511); case 605: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==605); { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 428: /* expression ::= NK_PLUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 429: /* expression ::= NK_MINUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy168), NULL)); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 430: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 431: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 432: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 433: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 434: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 435: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 436: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 437: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 440: /* column_reference ::= column_name */ { yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy737, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy737)); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 441: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy737, createColumnNode(pCxt, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy737)); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 442: /* pseudo_column ::= ROWTS */ case 443: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==443); case 445: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==445); case 446: /* pseudo_column ::= QEND */ yytestcase(yyruleno==446); case 447: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==447); case 448: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==448); case 449: /* pseudo_column ::= WEND */ yytestcase(yyruleno==449); case 450: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==450); case 451: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==451); case 452: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==452); case 453: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==453); case 459: /* literal_func ::= NOW */ yytestcase(yyruleno==459); { yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 444: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy737)))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 454: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 455: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==455); { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy737, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy737, yymsp[-1].minor.yy440)); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 456: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), yymsp[-1].minor.yy208)); } yymsp[-5].minor.yy168 = yylhsminor.yy168; break; case 458: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy737, NULL)); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 473: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy440 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy440 = yylhsminor.yy440; break; case 478: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 546: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==546); { yylhsminor.yy168 = createColumnNode(pCxt, &yymsp[-2].minor.yy737, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 479: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy440, yymsp[-1].minor.yy168)); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 480: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), yymsp[-2].minor.yy440, yymsp[-1].minor.yy168)); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 483: /* when_then_expr ::= WHEN common_expression THEN common_expression */ { yymsp[-3].minor.yy168 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } break; case 485: /* case_when_else_opt ::= ELSE common_expression */ { yymsp[-1].minor.yy168 = releaseRawExprNode(pCxt, yymsp[0].minor.yy168); } break; case 486: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 491: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==491); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy476, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 487: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy168), releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-4].minor.yy168 = yylhsminor.yy168; break; case 488: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy168), releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-5].minor.yy168 = yylhsminor.yy168; break; case 489: /* predicate ::= expr_or_subquery IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), NULL)); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 490: /* predicate ::= expr_or_subquery IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), NULL)); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 492: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy476 = OP_TYPE_LOWER_THAN; } break; case 493: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy476 = OP_TYPE_GREATER_THAN; } break; case 494: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy476 = OP_TYPE_LOWER_EQUAL; } break; case 495: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy476 = OP_TYPE_GREATER_EQUAL; } break; case 496: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy476 = OP_TYPE_NOT_EQUAL; } break; case 497: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy476 = OP_TYPE_EQUAL; } break; case 498: /* compare_op ::= LIKE */ { yymsp[0].minor.yy476 = OP_TYPE_LIKE; } break; case 499: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy476 = OP_TYPE_NOT_LIKE; } break; case 500: /* compare_op ::= MATCH */ { yymsp[0].minor.yy476 = OP_TYPE_MATCH; } break; case 501: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy476 = OP_TYPE_NMATCH; } break; case 502: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy476 = OP_TYPE_JSON_CONTAINS; } break; case 503: /* in_op ::= IN */ { yymsp[0].minor.yy476 = OP_TYPE_IN; } break; case 504: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy476 = OP_TYPE_NOT_IN; } break; case 505: /* in_predicate_value ::= NK_LP literal_list NK_RP */ { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy440)); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 507: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy168), NULL)); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 508: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 509: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 517: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy168 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy168, yymsp[0].minor.yy168, NULL); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 520: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy168 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy737, &yymsp[0].minor.yy737); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 521: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy168 = createRealTableNode(pCxt, &yymsp[-3].minor.yy737, &yymsp[-1].minor.yy737, &yymsp[0].minor.yy737); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 522: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy168 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168), &yymsp[0].minor.yy737); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 524: /* alias_opt ::= */ { yymsp[1].minor.yy737 = nil_token; } break; case 526: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy737 = yymsp[0].minor.yy737; } break; case 527: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 528: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==528); { yymsp[-2].minor.yy168 = yymsp[-1].minor.yy168; } break; case 529: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy168 = createJoinTableNode(pCxt, yymsp[-4].minor.yy724, yymsp[-5].minor.yy168, yymsp[-2].minor.yy168, yymsp[0].minor.yy168); } yymsp[-5].minor.yy168 = yylhsminor.yy168; break; case 530: /* join_type ::= */ { yymsp[1].minor.yy724 = JOIN_TYPE_INNER; } break; case 531: /* join_type ::= INNER */ { yymsp[0].minor.yy724 = JOIN_TYPE_INNER; } break; case 532: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_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[-13].minor.yy168 = createSelectStmt(pCxt, yymsp[-11].minor.yy953, yymsp[-9].minor.yy440, yymsp[-8].minor.yy168, yymsp[-12].minor.yy440); yymsp[-13].minor.yy168 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy168, yymsp[-10].minor.yy953); yymsp[-13].minor.yy168 = addWhereClause(pCxt, yymsp[-13].minor.yy168, yymsp[-7].minor.yy168); yymsp[-13].minor.yy168 = addPartitionByClause(pCxt, yymsp[-13].minor.yy168, yymsp[-6].minor.yy440); yymsp[-13].minor.yy168 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy168, yymsp[-2].minor.yy168); yymsp[-13].minor.yy168 = addGroupByClause(pCxt, yymsp[-13].minor.yy168, yymsp[-1].minor.yy440); yymsp[-13].minor.yy168 = addHavingClause(pCxt, yymsp[-13].minor.yy168, yymsp[0].minor.yy168); yymsp[-13].minor.yy168 = addRangeClause(pCxt, yymsp[-13].minor.yy168, yymsp[-5].minor.yy168); yymsp[-13].minor.yy168 = addEveryClause(pCxt, yymsp[-13].minor.yy168, yymsp[-4].minor.yy168); yymsp[-13].minor.yy168 = addFillClause(pCxt, yymsp[-13].minor.yy168, yymsp[-3].minor.yy168); } break; case 533: /* hint_list ::= */ { yymsp[1].minor.yy440 = createHintNodeList(pCxt, NULL); } break; case 534: /* hint_list ::= NK_HINT */ { yylhsminor.yy440 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy440 = yylhsminor.yy440; break; case 539: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy953 = false; } break; case 542: /* select_item ::= NK_STAR */ { yylhsminor.yy168 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy168 = yylhsminor.yy168; break; case 544: /* select_item ::= common_expression column_alias */ case 554: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==554); { yylhsminor.yy168 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168), &yymsp[0].minor.yy737); } yymsp[-1].minor.yy168 = yylhsminor.yy168; break; case 545: /* select_item ::= common_expression AS column_alias */ case 555: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==555); { yylhsminor.yy168 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), &yymsp[0].minor.yy737); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 550: /* partition_by_clause_opt ::= PARTITION BY partition_list */ case 575: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==575); case 595: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==595); { yymsp[-2].minor.yy440 = yymsp[0].minor.yy440; } break; case 557: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy168 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } break; case 558: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy168 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } break; case 559: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy168 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), NULL, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } break; case 560: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy168 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy168), releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } break; case 561: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ { yymsp[-6].minor.yy168 = createEventWindowNode(pCxt, yymsp[-3].minor.yy168, yymsp[0].minor.yy168); } break; case 565: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy168 = createFillNode(pCxt, yymsp[-1].minor.yy262, NULL); } break; case 566: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy168 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy440)); } break; case 567: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy168 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy440)); } break; case 568: /* fill_mode ::= NONE */ { yymsp[0].minor.yy262 = FILL_MODE_NONE; } break; case 569: /* fill_mode ::= PREV */ { yymsp[0].minor.yy262 = FILL_MODE_PREV; } break; case 570: /* fill_mode ::= NULL */ { yymsp[0].minor.yy262 = FILL_MODE_NULL; } break; case 571: /* fill_mode ::= NULL_F */ { yymsp[0].minor.yy262 = FILL_MODE_NULL_F; } break; case 572: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy262 = FILL_MODE_LINEAR; } break; case 573: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy262 = FILL_MODE_NEXT; } break; case 576: /* group_by_list ::= expr_or_subquery */ { yylhsminor.yy440 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[0].minor.yy440 = yylhsminor.yy440; break; case 577: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { yylhsminor.yy440 = addNodeToList(pCxt, yymsp[-2].minor.yy440, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } yymsp[-2].minor.yy440 = yylhsminor.yy440; break; case 581: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { yymsp[-5].minor.yy168 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } break; case 582: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy168 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } break; case 585: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy168 = addOrderByClause(pCxt, yymsp[-3].minor.yy168, yymsp[-2].minor.yy440); yylhsminor.yy168 = addSlimitClause(pCxt, yylhsminor.yy168, yymsp[-1].minor.yy168); yylhsminor.yy168 = addLimitClause(pCxt, yylhsminor.yy168, yymsp[0].minor.yy168); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 588: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { yylhsminor.yy168 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy168, yymsp[0].minor.yy168); } yymsp[-3].minor.yy168 = yylhsminor.yy168; break; case 589: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { yylhsminor.yy168 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy168, yymsp[0].minor.yy168); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 597: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 601: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==601); { yymsp[-1].minor.yy168 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 598: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 602: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==602); { yymsp[-3].minor.yy168 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; case 599: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 603: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==603); { yymsp[-3].minor.yy168 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; case 604: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy168); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 609: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { yylhsminor.yy168 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), yymsp[-1].minor.yy258, yymsp[0].minor.yy425); } yymsp[-2].minor.yy168 = yylhsminor.yy168; break; case 610: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy258 = ORDER_ASC; } break; case 611: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy258 = ORDER_ASC; } break; case 612: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy258 = ORDER_DESC; } break; case 613: /* null_ordering_opt ::= */ { yymsp[1].minor.yy425 = NULL_ORDER_DEFAULT; } break; case 614: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy425 = NULL_ORDER_FIRST; } break; case 615: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy425 = 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 }