/* ** 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 507 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; EFillMode yy36; SNode* yy80; SNodeList* yy106; SDataType yy292; EOperatorType yy428; int8_t yy431; SAlterOption yy455; EShowKind yy459; STokenPair yy573; SShowTablesOption yy709; ENullOrder yy763; SToken yy785; EOrder yy812; EJoinType yy828; bool yy923; int32_t yy982; int64_t yy987; } 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 835 #define YYNRULE 639 #define YYNRULE_WITH_ACTION 639 #define YYNTOKEN 346 #define YY_MAX_SHIFT 834 #define YY_MIN_SHIFTREDUCE 1237 #define YY_MAX_SHIFTREDUCE 1875 #define YY_ERROR_ACTION 1876 #define YY_ACCEPT_ACTION 1877 #define YY_NO_ACTION 1878 #define YY_MIN_REDUCE 1879 #define YY_MAX_REDUCE 2517 /************* 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 (3178) static const YYACTIONTYPE yy_action[] = { /* 0 */ 173, 409, 462, 418, 2278, 720, 2067, 461, 2006, 171, /* 10 */ 2007, 168, 48, 46, 1799, 424, 423, 2069, 397, 2069, /* 20 */ 415, 1669, 1640, 41, 40, 137, 2118, 47, 45, 44, /* 30 */ 43, 42, 599, 475, 2176, 1725, 1963, 1638, 41, 40, /* 40 */ 1647, 694, 47, 45, 44, 43, 42, 2319, 1665, 720, /* 50 */ 2067, 2120, 662, 469, 662, 2488, 681, 2488, 381, 789, /* 60 */ 702, 184, 2028, 30, 1720, 1880, 2118, 719, 556, 208, /* 70 */ 19, 557, 1922, 2494, 203, 2494, 203, 1646, 2489, 688, /* 80 */ 2489, 688, 219, 383, 2337, 2180, 127, 719, 2337, 126, /* 90 */ 125, 124, 123, 122, 121, 120, 119, 118, 523, 521, /* 100 */ 2285, 364, 736, 831, 786, 217, 15, 1665, 806, 805, /* 110 */ 804, 803, 427, 719, 802, 801, 151, 796, 795, 794, /* 120 */ 793, 792, 791, 790, 150, 784, 783, 782, 426, 425, /* 130 */ 779, 778, 777, 183, 182, 776, 687, 1842, 573, 2488, /* 140 */ 561, 2318, 1727, 1728, 2356, 680, 558, 114, 2320, 740, /* 150 */ 2322, 2323, 735, 51, 730, 2424, 2200, 686, 203, 186, /* 160 */ 2200, 2409, 2489, 688, 687, 411, 2405, 2488, 788, 720, /* 170 */ 2067, 408, 699, 146, 2197, 707, 1700, 1710, 2198, 707, /* 180 */ 205, 2421, 1665, 1726, 1729, 686, 203, 1382, 2439, 137, /* 190 */ 2489, 688, 1439, 682, 574, 2193, 604, 1877, 1641, 51, /* 200 */ 1639, 677, 2295, 1650, 2306, 1872, 1430, 765, 764, 763, /* 210 */ 1434, 762, 1436, 1437, 761, 758, 2303, 1445, 755, 1447, /* 220 */ 1448, 752, 749, 746, 481, 2176, 2299, 1384, 389, 388, /* 230 */ 1644, 1645, 1697, 1670, 1699, 1702, 1703, 1704, 1705, 1706, /* 240 */ 1707, 1708, 1709, 732, 728, 1718, 1719, 1721, 1722, 1723, /* 250 */ 1724, 2, 48, 46, 509, 2176, 576, 363, 63, 1663, /* 260 */ 415, 2308, 1640, 1540, 1541, 2319, 507, 184, 63, 526, /* 270 */ 2301, 412, 95, 221, 525, 1725, 430, 1638, 734, 95, /* 280 */ 730, 429, 300, 2417, 698, 68, 138, 697, 1668, 2488, /* 290 */ 489, 2181, 527, 683, 678, 671, 385, 491, 2063, 387, /* 300 */ 386, 695, 601, 226, 1720, 2062, 2337, 686, 203, 1871, /* 310 */ 19, 1666, 2489, 688, 618, 617, 616, 1646, 2285, 2424, /* 320 */ 736, 608, 143, 612, 603, 1822, 662, 611, 602, 2488, /* 330 */ 720, 2067, 610, 615, 391, 390, 1803, 645, 609, 634, /* 340 */ 1823, 605, 1665, 831, 384, 2420, 15, 2494, 203, 460, /* 350 */ 56, 459, 2489, 688, 632, 477, 630, 269, 268, 2318, /* 360 */ 564, 304, 2356, 557, 1922, 356, 2320, 740, 2322, 2323, /* 370 */ 735, 733, 730, 721, 2374, 47, 45, 44, 43, 42, /* 380 */ 1821, 458, 1727, 1728, 63, 2187, 2166, 63, 514, 513, /* 390 */ 512, 511, 506, 505, 504, 503, 502, 497, 496, 495, /* 400 */ 494, 367, 486, 485, 484, 1697, 479, 478, 382, 172, /* 410 */ 38, 320, 1528, 1529, 341, 34, 1700, 1710, 1547, 223, /* 420 */ 304, 41, 40, 1726, 1729, 47, 45, 44, 43, 42, /* 430 */ 304, 338, 74, 1474, 1475, 73, 646, 775, 1641, 420, /* 440 */ 1639, 1966, 2113, 2115, 517, 365, 302, 41, 40, 52, /* 450 */ 691, 47, 45, 44, 43, 42, 235, 538, 536, 533, /* 460 */ 90, 41, 40, 89, 1902, 47, 45, 44, 43, 42, /* 470 */ 1644, 1645, 1697, 1669, 1699, 1702, 1703, 1704, 1705, 1706, /* 480 */ 1707, 1708, 1709, 732, 728, 1718, 1719, 1721, 1722, 1723, /* 490 */ 1724, 2, 12, 48, 46, 159, 553, 63, 1701, 720, /* 500 */ 2067, 415, 2248, 1640, 551, 644, 227, 547, 543, 375, /* 510 */ 566, 2239, 572, 618, 617, 616, 1725, 2285, 1638, 466, /* 520 */ 608, 143, 612, 834, 699, 146, 611, 88, 516, 515, /* 530 */ 1735, 610, 615, 391, 390, 64, 1665, 609, 237, 327, /* 540 */ 605, 284, 559, 1830, 1930, 1720, 304, 1669, 2319, 304, /* 550 */ 196, 19, 661, 1754, 1698, 193, 274, 1756, 1646, 720, /* 560 */ 2067, 702, 2107, 822, 818, 814, 810, 127, 324, 55, /* 570 */ 126, 125, 124, 123, 122, 121, 120, 119, 118, 467, /* 580 */ 9, 84, 83, 465, 831, 100, 216, 15, 12, 2337, /* 590 */ 10, 1640, 674, 673, 1828, 1829, 1831, 1832, 1833, 457, /* 600 */ 455, 2285, 643, 736, 112, 2493, 1638, 720, 2067, 113, /* 610 */ 366, 304, 318, 446, 1755, 1666, 443, 439, 435, 432, /* 620 */ 458, 147, 1668, 1727, 1728, 2044, 1303, 483, 1302, 2059, /* 630 */ 174, 199, 1891, 701, 201, 2417, 2418, 35, 144, 2422, /* 640 */ 699, 146, 2318, 142, 716, 2356, 1646, 1761, 114, 2320, /* 650 */ 740, 2322, 2323, 735, 1901, 730, 2120, 1700, 1710, 304, /* 660 */ 186, 1304, 2409, 36, 1726, 1729, 411, 2405, 106, 41, /* 670 */ 40, 706, 831, 47, 45, 44, 43, 42, 2043, 1641, /* 680 */ 61, 1639, 699, 146, 307, 1670, 720, 2067, 659, 2440, /* 690 */ 606, 306, 1701, 2060, 37, 413, 1749, 1750, 1751, 1752, /* 700 */ 1753, 1757, 1758, 1759, 1760, 194, 498, 2285, 692, 1865, /* 710 */ 277, 1644, 1645, 1697, 1379, 1699, 1702, 1703, 1704, 1705, /* 720 */ 1706, 1707, 1708, 1709, 732, 728, 1718, 1719, 1721, 1722, /* 730 */ 1723, 1724, 2, 48, 46, 1730, 2319, 1560, 1561, 1286, /* 740 */ 239, 415, 1900, 1640, 559, 1664, 1930, 775, 1698, 737, /* 750 */ 202, 2417, 2418, 603, 144, 2422, 1725, 602, 1638, 1670, /* 760 */ 773, 161, 160, 770, 769, 768, 158, 1641, 2319, 1639, /* 770 */ 773, 161, 160, 770, 769, 768, 158, 2337, 1559, 1562, /* 780 */ 302, 737, 1899, 1932, 727, 1720, 1879, 720, 2067, 2285, /* 790 */ 1669, 736, 204, 2417, 2418, 2285, 144, 2422, 1646, 1644, /* 800 */ 1645, 2114, 2115, 1898, 646, 1788, 2319, 499, 2424, 2337, /* 810 */ 136, 135, 134, 133, 132, 131, 130, 129, 128, 737, /* 820 */ 1665, 2285, 99, 736, 831, 720, 2067, 49, 1665, 623, /* 830 */ 2318, 720, 2067, 2356, 2419, 2285, 114, 2320, 740, 2322, /* 840 */ 2323, 735, 1897, 730, 635, 500, 149, 2337, 156, 2380, /* 850 */ 2409, 575, 1588, 272, 411, 2405, 2285, 271, 418, 2285, /* 860 */ 270, 736, 2318, 1727, 1728, 2356, 171, 2151, 114, 2320, /* 870 */ 740, 2322, 2323, 735, 2069, 730, 626, 2042, 648, 2239, /* 880 */ 2508, 2120, 2409, 620, 2120, 12, 411, 2405, 396, 267, /* 890 */ 1646, 405, 720, 2067, 1896, 2285, 2118, 1700, 1710, 2118, /* 900 */ 2318, 595, 594, 2356, 1726, 1729, 114, 2320, 740, 2322, /* 910 */ 2323, 735, 2064, 730, 2295, 722, 255, 2381, 2384, 1641, /* 920 */ 2409, 1639, 1895, 98, 411, 2405, 370, 1894, 2058, 395, /* 930 */ 72, 636, 178, 71, 2120, 1277, 614, 613, 2299, 766, /* 940 */ 593, 589, 585, 581, 1746, 254, 1893, 2285, 198, 715, /* 950 */ 2279, 1644, 1645, 1697, 1284, 1699, 1702, 1703, 1704, 1705, /* 960 */ 1706, 1707, 1708, 1709, 732, 728, 1718, 1719, 1721, 1722, /* 970 */ 1723, 1724, 2, 48, 46, 2285, 1701, 1279, 1282, 1283, /* 980 */ 2285, 415, 2301, 1640, 720, 2067, 96, 720, 2067, 252, /* 990 */ 2120, 2492, 730, 325, 2120, 2319, 1725, 410, 1638, 2285, /* 1000 */ 662, 419, 1670, 2488, 275, 2118, 1284, 283, 737, 2118, /* 1010 */ 2447, 2056, 773, 161, 160, 770, 769, 768, 158, 720, /* 1020 */ 2067, 2494, 203, 720, 2067, 1720, 2489, 688, 493, 2319, /* 1030 */ 1282, 1283, 1698, 421, 720, 2067, 2337, 492, 1646, 705, /* 1040 */ 1698, 171, 737, 315, 2460, 720, 2067, 2052, 2285, 2069, /* 1050 */ 736, 41, 40, 242, 717, 47, 45, 44, 43, 42, /* 1060 */ 1796, 251, 244, 450, 831, 718, 2161, 49, 249, 570, /* 1070 */ 2337, 41, 40, 720, 2067, 47, 45, 44, 43, 42, /* 1080 */ 1306, 1307, 2285, 1933, 736, 720, 2067, 241, 1337, 2318, /* 1090 */ 452, 448, 2356, 321, 2054, 114, 2320, 740, 2322, 2323, /* 1100 */ 735, 641, 730, 1727, 1728, 422, 2266, 2508, 473, 2409, /* 1110 */ 647, 41, 40, 411, 2405, 47, 45, 44, 43, 42, /* 1120 */ 1303, 1890, 1302, 2318, 800, 798, 2356, 1889, 1338, 114, /* 1130 */ 2320, 740, 2322, 2323, 735, 824, 730, 1700, 1710, 597, /* 1140 */ 596, 2508, 273, 2409, 1726, 1729, 2050, 411, 2405, 2493, /* 1150 */ 1841, 662, 2488, 148, 2488, 1304, 2380, 311, 312, 1641, /* 1160 */ 662, 1639, 310, 2488, 724, 2295, 2381, 1888, 1394, 703, /* 1170 */ 1815, 2492, 2494, 203, 2285, 2489, 2491, 2489, 688, 2304, /* 1180 */ 2285, 2494, 203, 1393, 14, 13, 2489, 688, 638, 2299, /* 1190 */ 637, 1644, 1645, 1697, 1887, 1699, 1702, 1703, 1704, 1705, /* 1200 */ 1706, 1707, 1708, 1709, 732, 728, 1718, 1719, 1721, 1722, /* 1210 */ 1723, 1724, 2, 48, 46, 2319, 197, 1609, 1610, 662, /* 1220 */ 2285, 415, 2488, 1640, 1398, 44, 43, 42, 737, 1886, /* 1230 */ 669, 2493, 767, 2301, 2488, 2111, 1725, 2120, 1638, 1397, /* 1240 */ 2494, 203, 1885, 730, 1884, 2489, 688, 2285, 2319, 528, /* 1250 */ 1649, 171, 2119, 2492, 2071, 1883, 2337, 2489, 2490, 2070, /* 1260 */ 1882, 737, 1648, 2481, 771, 1720, 334, 2111, 2285, 2097, /* 1270 */ 736, 772, 1907, 826, 2111, 2429, 1788, 690, 1646, 41, /* 1280 */ 40, 170, 2285, 47, 45, 44, 43, 42, 2269, 2337, /* 1290 */ 1768, 2045, 1950, 280, 3, 2285, 76, 2285, 139, 260, /* 1300 */ 159, 2285, 258, 736, 831, 530, 54, 15, 2285, 2318, /* 1310 */ 86, 2453, 2356, 2285, 619, 114, 2320, 740, 2322, 2323, /* 1320 */ 735, 731, 730, 607, 152, 262, 1795, 2508, 261, 2409, /* 1330 */ 210, 424, 423, 411, 2405, 264, 1941, 266, 263, 437, /* 1340 */ 265, 1654, 2318, 1727, 1728, 2356, 87, 1377, 114, 2320, /* 1350 */ 740, 2322, 2323, 735, 1725, 730, 1647, 1939, 621, 297, /* 1360 */ 2508, 1892, 2409, 1874, 1875, 675, 411, 2405, 14, 13, /* 1370 */ 141, 291, 2338, 2004, 1604, 2319, 780, 1700, 1710, 624, /* 1380 */ 159, 50, 50, 1720, 1726, 1729, 187, 159, 737, 50, /* 1390 */ 2428, 309, 75, 111, 157, 781, 1646, 159, 2003, 1641, /* 1400 */ 1356, 1639, 108, 672, 2185, 1923, 2443, 401, 679, 398, /* 1410 */ 709, 66, 50, 1652, 50, 428, 2337, 744, 157, 1354, /* 1420 */ 1929, 159, 726, 140, 157, 1651, 2108, 2186, 2285, 655, /* 1430 */ 736, 1644, 1645, 1697, 2444, 1699, 1702, 1703, 1704, 1705, /* 1440 */ 1706, 1707, 1708, 1709, 732, 728, 1718, 1719, 1721, 1722, /* 1450 */ 1723, 1724, 2, 2454, 1607, 1827, 1826, 700, 299, 296, /* 1460 */ 289, 704, 2029, 1557, 303, 313, 712, 5, 317, 2318, /* 1470 */ 431, 1424, 2356, 436, 379, 114, 2320, 740, 2322, 2323, /* 1480 */ 735, 444, 730, 2319, 445, 1762, 1711, 2508, 333, 2409, /* 1490 */ 1673, 1452, 1456, 411, 2405, 1463, 737, 1461, 162, 454, /* 1500 */ 212, 211, 453, 214, 456, 1581, 328, 1663, 470, 1664, /* 1510 */ 474, 225, 476, 480, 519, 482, 487, 1655, 501, 1650, /* 1520 */ 508, 2178, 510, 518, 2337, 520, 532, 531, 529, 229, /* 1530 */ 230, 534, 232, 535, 537, 539, 2285, 1671, 736, 554, /* 1540 */ 4, 2319, 555, 562, 563, 240, 565, 92, 1666, 1658, /* 1550 */ 1660, 243, 1672, 567, 737, 1674, 568, 246, 569, 1675, /* 1560 */ 571, 248, 2194, 728, 1718, 1719, 1721, 1722, 1723, 1724, /* 1570 */ 93, 577, 598, 94, 253, 97, 642, 2318, 2319, 627, /* 1580 */ 2356, 2257, 2337, 114, 2320, 740, 2322, 2323, 735, 600, /* 1590 */ 730, 737, 116, 628, 2285, 2382, 736, 2409, 2057, 257, /* 1600 */ 360, 411, 2405, 640, 2053, 259, 153, 164, 2254, 165, /* 1610 */ 2055, 2319, 2051, 166, 167, 329, 276, 1667, 2240, 2337, /* 1620 */ 650, 649, 651, 281, 737, 657, 2459, 279, 676, 710, /* 1630 */ 8, 2285, 2253, 736, 2431, 2318, 654, 685, 2356, 666, /* 1640 */ 2458, 114, 2320, 740, 2322, 2323, 735, 290, 730, 179, /* 1650 */ 667, 292, 2337, 723, 2319, 2409, 286, 665, 288, 411, /* 1660 */ 2405, 656, 2487, 402, 2285, 664, 736, 737, 295, 696, /* 1670 */ 2511, 298, 2318, 693, 1788, 2356, 145, 1668, 115, 2320, /* 1680 */ 740, 2322, 2323, 735, 1793, 730, 190, 2425, 1791, 293, /* 1690 */ 294, 2319, 2409, 1, 305, 2337, 2408, 2405, 154, 330, /* 1700 */ 708, 2208, 2207, 2206, 737, 2318, 331, 2285, 2356, 736, /* 1710 */ 407, 115, 2320, 740, 2322, 2323, 735, 713, 730, 206, /* 1720 */ 714, 332, 62, 155, 2390, 2409, 107, 2068, 105, 725, /* 1730 */ 2405, 742, 2337, 2112, 335, 1261, 825, 323, 828, 371, /* 1740 */ 53, 359, 372, 830, 2285, 339, 736, 163, 738, 2319, /* 1750 */ 344, 2356, 2277, 2276, 115, 2320, 740, 2322, 2323, 735, /* 1760 */ 358, 730, 737, 337, 348, 2275, 2319, 81, 2409, 2270, /* 1770 */ 433, 434, 374, 2405, 1631, 1632, 209, 438, 2268, 737, /* 1780 */ 440, 441, 442, 1630, 2267, 2318, 380, 2319, 2356, 2265, /* 1790 */ 2337, 175, 2320, 740, 2322, 2323, 735, 447, 730, 2264, /* 1800 */ 737, 449, 2285, 451, 736, 2263, 1620, 2337, 2244, 213, /* 1810 */ 2243, 215, 1584, 82, 2221, 1583, 2220, 2219, 463, 2285, /* 1820 */ 464, 736, 2218, 2217, 2168, 468, 1527, 2160, 2337, 471, /* 1830 */ 2157, 472, 218, 663, 2450, 2156, 85, 2155, 2154, 2159, /* 1840 */ 2285, 2158, 736, 2318, 220, 2153, 2356, 2152, 2150, 176, /* 1850 */ 2320, 740, 2322, 2323, 735, 2149, 730, 2148, 222, 2147, /* 1860 */ 2318, 488, 490, 2356, 2163, 2146, 115, 2320, 740, 2322, /* 1870 */ 2323, 735, 2145, 730, 2144, 2143, 2142, 2165, 2141, 2140, /* 1880 */ 2409, 2318, 2139, 2138, 2356, 2406, 2319, 175, 2320, 740, /* 1890 */ 2322, 2323, 735, 2137, 730, 2136, 2135, 2134, 2133, 737, /* 1900 */ 2132, 224, 2131, 689, 2509, 91, 2130, 2129, 2128, 2164, /* 1910 */ 2162, 2127, 2126, 2319, 1533, 2125, 2124, 228, 522, 2123, /* 1920 */ 524, 2122, 2121, 1395, 1969, 1399, 737, 2337, 1391, 1968, /* 1930 */ 2451, 368, 399, 231, 369, 233, 1967, 234, 1965, 2285, /* 1940 */ 1962, 736, 540, 1961, 2319, 541, 542, 1954, 1943, 1918, /* 1950 */ 544, 1285, 1917, 2242, 2337, 2238, 185, 737, 2228, 400, /* 1960 */ 546, 2216, 548, 552, 2215, 545, 2285, 2192, 736, 550, /* 1970 */ 247, 549, 78, 236, 238, 2046, 79, 1964, 1960, 578, /* 1980 */ 2318, 2319, 2305, 2356, 195, 2337, 357, 2320, 740, 2322, /* 1990 */ 2323, 735, 245, 730, 737, 560, 579, 2285, 580, 736, /* 2000 */ 250, 1958, 582, 1330, 584, 583, 1956, 2318, 586, 1953, /* 2010 */ 2356, 587, 588, 357, 2320, 740, 2322, 2323, 735, 590, /* 2020 */ 730, 592, 2337, 591, 1938, 1936, 1937, 1935, 1914, 2048, /* 2030 */ 1468, 65, 1467, 2047, 2285, 1951, 736, 1381, 2318, 1380, /* 2040 */ 1378, 2356, 1376, 1942, 350, 2320, 740, 2322, 2323, 735, /* 2050 */ 1375, 730, 1374, 256, 2319, 1373, 1372, 1369, 1368, 1367, /* 2060 */ 1366, 392, 393, 797, 799, 622, 1940, 737, 394, 625, /* 2070 */ 1913, 1912, 1911, 629, 1910, 2318, 1909, 633, 2356, 2319, /* 2080 */ 117, 176, 2320, 740, 2322, 2323, 735, 631, 730, 1614, /* 2090 */ 684, 1616, 734, 1613, 1618, 2337, 29, 2241, 69, 2237, /* 2100 */ 406, 1590, 278, 1592, 1594, 2227, 652, 2285, 2214, 736, /* 2110 */ 2493, 20, 6, 17, 31, 668, 21, 57, 2213, 7, /* 2120 */ 2337, 22, 2319, 1844, 287, 189, 200, 33, 285, 2306, /* 2130 */ 67, 23, 2285, 24, 736, 737, 2510, 2319, 282, 18, /* 2140 */ 670, 58, 301, 1859, 653, 169, 1569, 1568, 2318, 1825, /* 2150 */ 737, 2356, 2319, 177, 357, 2320, 740, 2322, 2323, 735, /* 2160 */ 1858, 730, 403, 2337, 188, 737, 1814, 32, 414, 658, /* 2170 */ 660, 80, 1863, 2318, 1864, 2285, 2356, 736, 2337, 356, /* 2180 */ 2320, 740, 2322, 2323, 735, 1862, 730, 404, 2375, 1865, /* 2190 */ 2285, 60, 736, 2337, 1785, 180, 1784, 2212, 416, 2191, /* 2200 */ 2190, 101, 102, 308, 25, 2285, 103, 736, 1820, 191, /* 2210 */ 314, 319, 26, 13, 316, 70, 2318, 2319, 104, 2356, /* 2220 */ 1737, 1736, 357, 2320, 740, 2322, 2323, 735, 108, 730, /* 2230 */ 737, 639, 1656, 711, 2356, 2319, 11, 352, 2320, 740, /* 2240 */ 2322, 2323, 735, 2359, 730, 1715, 2318, 729, 737, 2356, /* 2250 */ 1713, 39, 357, 2320, 740, 2322, 2323, 735, 2337, 730, /* 2260 */ 59, 1712, 181, 16, 192, 27, 1690, 741, 1682, 28, /* 2270 */ 2285, 1747, 736, 1453, 743, 417, 2337, 739, 745, 747, /* 2280 */ 1450, 748, 750, 1449, 751, 753, 756, 1446, 2285, 754, /* 2290 */ 736, 1440, 757, 759, 1438, 760, 1444, 1443, 1442, 109, /* 2300 */ 322, 1441, 110, 1462, 77, 1458, 1363, 1328, 1360, 774, /* 2310 */ 1389, 2318, 1359, 1358, 2356, 1357, 1355, 342, 2320, 740, /* 2320 */ 2322, 2323, 735, 1353, 730, 1352, 1351, 785, 1388, 2318, /* 2330 */ 2319, 787, 2356, 207, 1349, 340, 2320, 740, 2322, 2323, /* 2340 */ 735, 1348, 730, 737, 1347, 1346, 1345, 2319, 1344, 1343, /* 2350 */ 1383, 1385, 1340, 1339, 1336, 1335, 1334, 1333, 1959, 807, /* 2360 */ 737, 808, 1957, 2319, 811, 812, 809, 813, 1955, 815, /* 2370 */ 816, 2337, 1952, 817, 819, 821, 737, 820, 1934, 823, /* 2380 */ 1274, 1908, 1262, 2285, 827, 736, 326, 829, 2337, 1642, /* 2390 */ 833, 336, 832, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2400 */ 2285, 1878, 736, 1878, 2337, 1878, 1878, 1878, 1878, 1878, /* 2410 */ 1878, 1878, 1878, 1878, 1878, 1878, 2285, 1878, 736, 1878, /* 2420 */ 1878, 1878, 1878, 1878, 2318, 1878, 1878, 2356, 1878, 1878, /* 2430 */ 343, 2320, 740, 2322, 2323, 735, 1878, 730, 1878, 1878, /* 2440 */ 2319, 2318, 1878, 1878, 2356, 1878, 1878, 349, 2320, 740, /* 2450 */ 2322, 2323, 735, 737, 730, 1878, 1878, 2318, 1878, 2319, /* 2460 */ 2356, 1878, 1878, 353, 2320, 740, 2322, 2323, 735, 1878, /* 2470 */ 730, 1878, 737, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2480 */ 1878, 2337, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2490 */ 1878, 1878, 1878, 2285, 1878, 736, 1878, 1878, 1878, 1878, /* 2500 */ 2337, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2510 */ 1878, 1878, 2285, 1878, 736, 1878, 1878, 1878, 1878, 1878, /* 2520 */ 1878, 1878, 1878, 1878, 1878, 1878, 2319, 1878, 1878, 1878, /* 2530 */ 1878, 1878, 1878, 1878, 2318, 1878, 1878, 2356, 1878, 737, /* 2540 */ 345, 2320, 740, 2322, 2323, 735, 1878, 730, 1878, 1878, /* 2550 */ 1878, 1878, 1878, 2318, 1878, 2319, 2356, 1878, 1878, 354, /* 2560 */ 2320, 740, 2322, 2323, 735, 1878, 730, 2337, 737, 1878, /* 2570 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 2285, /* 2580 */ 1878, 736, 1878, 1878, 2319, 1878, 1878, 1878, 1878, 1878, /* 2590 */ 1878, 1878, 1878, 1878, 1878, 1878, 2337, 737, 1878, 1878, /* 2600 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 2285, 1878, /* 2610 */ 736, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2620 */ 2318, 1878, 2319, 2356, 1878, 2337, 346, 2320, 740, 2322, /* 2630 */ 2323, 735, 1878, 730, 1878, 737, 1878, 2285, 1878, 736, /* 2640 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 2318, /* 2650 */ 1878, 1878, 2356, 1878, 1878, 355, 2320, 740, 2322, 2323, /* 2660 */ 735, 1878, 730, 2337, 1878, 1878, 1878, 1878, 1878, 1878, /* 2670 */ 1878, 1878, 1878, 1878, 1878, 2285, 1878, 736, 2318, 2319, /* 2680 */ 1878, 2356, 1878, 1878, 347, 2320, 740, 2322, 2323, 735, /* 2690 */ 1878, 730, 737, 1878, 1878, 1878, 1878, 2319, 1878, 1878, /* 2700 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2710 */ 737, 1878, 1878, 1878, 1878, 1878, 2318, 1878, 1878, 2356, /* 2720 */ 2337, 1878, 361, 2320, 740, 2322, 2323, 735, 1878, 730, /* 2730 */ 1878, 1878, 2285, 1878, 736, 1878, 1878, 1878, 2337, 1878, /* 2740 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2750 */ 2285, 1878, 736, 1878, 2319, 1878, 1878, 1878, 1878, 1878, /* 2760 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 737, 1878, 1878, /* 2770 */ 1878, 1878, 1878, 2318, 2319, 1878, 2356, 1878, 1878, 362, /* 2780 */ 2320, 740, 2322, 2323, 735, 1878, 730, 737, 1878, 1878, /* 2790 */ 2319, 2318, 1878, 1878, 2356, 2337, 1878, 2331, 2320, 740, /* 2800 */ 2322, 2323, 735, 737, 730, 1878, 1878, 2285, 1878, 736, /* 2810 */ 1878, 1878, 1878, 1878, 1878, 2337, 1878, 1878, 1878, 1878, /* 2820 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 2285, 1878, 736, /* 2830 */ 1878, 2337, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2840 */ 1878, 1878, 1878, 2285, 1878, 736, 1878, 1878, 2318, 1878, /* 2850 */ 1878, 2356, 1878, 1878, 2330, 2320, 740, 2322, 2323, 735, /* 2860 */ 1878, 730, 1878, 1878, 1878, 1878, 1878, 1878, 2318, 1878, /* 2870 */ 1878, 2356, 1878, 1878, 2329, 2320, 740, 2322, 2323, 735, /* 2880 */ 1878, 730, 1878, 1878, 2318, 1878, 1878, 2356, 1878, 2319, /* 2890 */ 376, 2320, 740, 2322, 2323, 735, 1878, 730, 1878, 1878, /* 2900 */ 1878, 1878, 737, 1878, 1878, 2319, 1878, 1878, 1878, 1878, /* 2910 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 737, 1878, /* 2920 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2930 */ 2337, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2940 */ 1878, 1878, 2285, 1878, 736, 1878, 2337, 1878, 1878, 1878, /* 2950 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 2285, 1878, /* 2960 */ 736, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2970 */ 1878, 1878, 2319, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 2980 */ 1878, 1878, 1878, 2318, 1878, 737, 2356, 2319, 1878, 377, /* 2990 */ 2320, 740, 2322, 2323, 735, 1878, 730, 1878, 1878, 2318, /* 3000 */ 737, 1878, 2356, 1878, 1878, 373, 2320, 740, 2322, 2323, /* 3010 */ 735, 1878, 730, 2337, 1878, 1878, 1878, 1878, 1878, 1878, /* 3020 */ 1878, 1878, 1878, 1878, 1878, 2285, 1878, 736, 2337, 1878, /* 3030 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 3040 */ 2285, 1878, 736, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 3050 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 3060 */ 1878, 1878, 1878, 1878, 1878, 1878, 2318, 1878, 1878, 2356, /* 3070 */ 2319, 1878, 378, 2320, 740, 2322, 2323, 735, 1878, 730, /* 3080 */ 1878, 738, 1878, 737, 2356, 1878, 1878, 352, 2320, 740, /* 3090 */ 2322, 2323, 735, 1878, 730, 1878, 1878, 1878, 1878, 1878, /* 3100 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 3110 */ 1878, 2337, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 3120 */ 1878, 1878, 1878, 2285, 1878, 736, 1878, 1878, 1878, 1878, /* 3130 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 3140 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 3150 */ 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, 1878, /* 3160 */ 1878, 1878, 1878, 1878, 2318, 1878, 1878, 2356, 1878, 1878, /* 3170 */ 351, 2320, 740, 2322, 2323, 735, 1878, 730, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 371, 382, 425, 382, 425, 361, 362, 430, 379, 390, /* 10 */ 379, 390, 12, 13, 14, 12, 13, 398, 397, 398, /* 20 */ 20, 20, 22, 8, 9, 381, 405, 12, 13, 14, /* 30 */ 15, 16, 388, 361, 362, 35, 0, 37, 8, 9, /* 40 */ 37, 33, 12, 13, 14, 15, 16, 349, 20, 361, /* 50 */ 362, 390, 475, 361, 475, 478, 362, 478, 397, 377, /* 60 */ 362, 390, 380, 33, 64, 0, 405, 20, 356, 381, /* 70 */ 70, 359, 360, 496, 497, 496, 497, 77, 501, 502, /* 80 */ 501, 502, 410, 412, 390, 414, 21, 20, 390, 24, /* 90 */ 25, 26, 27, 28, 29, 30, 31, 32, 406, 407, /* 100 */ 402, 409, 404, 103, 13, 413, 106, 20, 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, 99, 475, 107, 361, 478, /* 140 */ 14, 443, 142, 143, 446, 451, 20, 449, 450, 451, /* 150 */ 452, 453, 454, 106, 456, 448, 404, 496, 497, 461, /* 160 */ 404, 463, 501, 502, 475, 467, 468, 478, 77, 361, /* 170 */ 362, 419, 361, 362, 422, 423, 176, 177, 422, 423, /* 180 */ 482, 474, 20, 183, 184, 496, 497, 37, 490, 381, /* 190 */ 501, 502, 103, 20, 417, 418, 388, 346, 198, 106, /* 200 */ 200, 182, 378, 200, 49, 190, 117, 118, 119, 120, /* 210 */ 121, 122, 123, 124, 125, 126, 392, 128, 129, 130, /* 220 */ 131, 132, 133, 134, 361, 362, 402, 77, 39, 40, /* 230 */ 230, 231, 232, 232, 234, 235, 236, 237, 238, 239, /* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, /* 250 */ 250, 251, 12, 13, 361, 362, 69, 18, 106, 20, /* 260 */ 20, 106, 22, 176, 177, 349, 27, 390, 106, 30, /* 270 */ 446, 447, 370, 410, 35, 35, 425, 37, 362, 370, /* 280 */ 456, 430, 471, 472, 473, 4, 475, 476, 20, 478, /* 290 */ 51, 414, 53, 274, 275, 276, 387, 58, 396, 110, /* 300 */ 111, 293, 113, 410, 64, 396, 390, 496, 497, 294, /* 310 */ 70, 20, 501, 502, 72, 73, 74, 77, 402, 448, /* 320 */ 404, 79, 80, 81, 135, 22, 475, 85, 139, 478, /* 330 */ 361, 362, 90, 91, 92, 93, 14, 20, 96, 21, /* 340 */ 37, 99, 20, 103, 105, 474, 106, 496, 497, 197, /* 350 */ 381, 199, 501, 502, 36, 116, 38, 39, 40, 443, /* 360 */ 356, 268, 446, 359, 360, 449, 450, 451, 452, 453, /* 370 */ 454, 455, 456, 457, 458, 12, 13, 14, 15, 16, /* 380 */ 77, 229, 142, 143, 106, 146, 147, 106, 149, 150, /* 390 */ 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, /* 400 */ 161, 162, 163, 164, 165, 232, 167, 168, 169, 18, /* 410 */ 464, 465, 173, 174, 23, 2, 176, 177, 179, 64, /* 420 */ 268, 8, 9, 183, 184, 12, 13, 14, 15, 16, /* 430 */ 268, 40, 41, 142, 143, 44, 361, 69, 198, 400, /* 440 */ 200, 0, 403, 404, 86, 54, 178, 8, 9, 106, /* 450 */ 33, 12, 13, 14, 15, 16, 65, 66, 67, 68, /* 460 */ 105, 8, 9, 108, 349, 12, 13, 14, 15, 16, /* 470 */ 230, 231, 232, 20, 234, 235, 236, 237, 238, 239, /* 480 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, /* 490 */ 250, 251, 252, 12, 13, 33, 51, 106, 176, 361, /* 500 */ 362, 20, 386, 22, 59, 1, 148, 62, 63, 70, /* 510 */ 435, 436, 20, 72, 73, 74, 35, 402, 37, 381, /* 520 */ 79, 80, 81, 19, 361, 362, 85, 172, 170, 171, /* 530 */ 14, 90, 91, 92, 93, 144, 20, 96, 357, 35, /* 540 */ 99, 64, 361, 230, 363, 64, 268, 20, 349, 268, /* 550 */ 389, 70, 50, 114, 232, 51, 440, 175, 77, 361, /* 560 */ 362, 362, 401, 59, 60, 61, 62, 21, 64, 107, /* 570 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 381, /* 580 */ 42, 190, 191, 192, 103, 108, 195, 106, 252, 390, /* 590 */ 254, 22, 279, 280, 281, 282, 283, 284, 285, 208, /* 600 */ 209, 402, 116, 404, 368, 3, 37, 361, 362, 105, /* 610 */ 219, 268, 108, 222, 175, 20, 225, 226, 227, 228, /* 620 */ 229, 385, 20, 142, 143, 0, 20, 381, 22, 393, /* 630 */ 348, 178, 350, 470, 471, 472, 473, 255, 475, 476, /* 640 */ 361, 362, 443, 37, 140, 446, 77, 265, 449, 450, /* 650 */ 451, 452, 453, 454, 349, 456, 390, 176, 177, 268, /* 660 */ 461, 55, 463, 2, 183, 184, 467, 468, 368, 8, /* 670 */ 9, 405, 103, 12, 13, 14, 15, 16, 0, 198, /* 680 */ 178, 200, 361, 362, 180, 232, 361, 362, 186, 490, /* 690 */ 13, 187, 176, 393, 255, 256, 257, 258, 259, 260, /* 700 */ 261, 262, 263, 264, 265, 178, 381, 402, 291, 107, /* 710 */ 206, 230, 231, 232, 37, 234, 235, 236, 237, 238, /* 720 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, /* 730 */ 249, 250, 251, 12, 13, 14, 349, 142, 143, 14, /* 740 */ 357, 20, 349, 22, 361, 20, 363, 69, 232, 362, /* 750 */ 471, 472, 473, 135, 475, 476, 35, 139, 37, 232, /* 760 */ 135, 136, 137, 138, 139, 140, 141, 198, 349, 200, /* 770 */ 135, 136, 137, 138, 139, 140, 141, 390, 183, 184, /* 780 */ 178, 362, 349, 364, 70, 64, 0, 361, 362, 402, /* 790 */ 20, 404, 471, 472, 473, 402, 475, 476, 77, 230, /* 800 */ 231, 403, 404, 349, 361, 267, 349, 381, 448, 390, /* 810 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 362, /* 820 */ 20, 402, 172, 404, 103, 361, 362, 106, 20, 4, /* 830 */ 443, 361, 362, 446, 474, 402, 449, 450, 451, 452, /* 840 */ 453, 454, 349, 456, 19, 381, 459, 390, 461, 462, /* 850 */ 463, 381, 202, 137, 467, 468, 402, 141, 382, 402, /* 860 */ 35, 404, 443, 142, 143, 446, 390, 0, 449, 450, /* 870 */ 451, 452, 453, 454, 398, 456, 51, 0, 435, 436, /* 880 */ 461, 390, 463, 58, 390, 252, 467, 468, 397, 64, /* 890 */ 77, 397, 361, 362, 349, 402, 405, 176, 177, 405, /* 900 */ 443, 366, 367, 446, 183, 184, 449, 450, 451, 452, /* 910 */ 453, 454, 381, 456, 378, 460, 35, 462, 461, 198, /* 920 */ 463, 200, 349, 207, 467, 468, 210, 349, 392, 213, /* 930 */ 105, 215, 51, 108, 390, 4, 375, 376, 402, 116, /* 940 */ 59, 60, 61, 62, 230, 64, 349, 402, 178, 405, /* 950 */ 425, 230, 231, 232, 23, 234, 235, 236, 237, 238, /* 960 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, /* 970 */ 249, 250, 251, 12, 13, 402, 176, 46, 47, 48, /* 980 */ 402, 20, 446, 22, 361, 362, 105, 361, 362, 108, /* 990 */ 390, 3, 456, 34, 390, 349, 35, 397, 37, 402, /* 1000 */ 475, 397, 232, 478, 381, 405, 23, 381, 362, 405, /* 1010 */ 364, 391, 135, 136, 137, 138, 139, 140, 141, 361, /* 1020 */ 362, 496, 497, 361, 362, 64, 501, 502, 161, 349, /* 1030 */ 47, 48, 232, 382, 361, 362, 390, 170, 77, 381, /* 1040 */ 232, 390, 362, 381, 364, 361, 362, 391, 402, 398, /* 1050 */ 404, 8, 9, 172, 381, 12, 13, 14, 15, 16, /* 1060 */ 4, 180, 181, 193, 103, 381, 0, 106, 187, 188, /* 1070 */ 390, 8, 9, 361, 362, 12, 13, 14, 15, 16, /* 1080 */ 56, 57, 402, 0, 404, 361, 362, 206, 37, 443, /* 1090 */ 220, 221, 446, 381, 391, 449, 450, 451, 452, 453, /* 1100 */ 454, 425, 456, 142, 143, 381, 0, 461, 42, 463, /* 1110 */ 425, 8, 9, 467, 468, 12, 13, 14, 15, 16, /* 1120 */ 20, 349, 22, 443, 375, 376, 446, 349, 77, 449, /* 1130 */ 450, 451, 452, 453, 454, 52, 456, 176, 177, 366, /* 1140 */ 367, 461, 136, 463, 183, 184, 391, 467, 468, 475, /* 1150 */ 107, 475, 478, 459, 478, 55, 462, 136, 137, 198, /* 1160 */ 475, 200, 141, 478, 460, 378, 462, 349, 22, 425, /* 1170 */ 107, 497, 496, 497, 402, 501, 502, 501, 502, 392, /* 1180 */ 402, 496, 497, 37, 1, 2, 501, 502, 214, 402, /* 1190 */ 216, 230, 231, 232, 349, 234, 235, 236, 237, 238, /* 1200 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, /* 1210 */ 249, 250, 251, 12, 13, 349, 431, 211, 212, 475, /* 1220 */ 402, 20, 478, 22, 22, 14, 15, 16, 362, 349, /* 1230 */ 364, 475, 399, 446, 478, 402, 35, 390, 37, 37, /* 1240 */ 496, 497, 349, 456, 349, 501, 502, 402, 349, 103, /* 1250 */ 37, 390, 405, 497, 391, 349, 390, 501, 502, 398, /* 1260 */ 349, 362, 37, 364, 399, 64, 383, 402, 402, 386, /* 1270 */ 404, 399, 352, 353, 402, 266, 267, 289, 77, 8, /* 1280 */ 9, 178, 402, 12, 13, 14, 15, 16, 0, 390, /* 1290 */ 107, 0, 0, 391, 33, 402, 116, 402, 33, 109, /* 1300 */ 33, 402, 112, 404, 103, 103, 45, 106, 402, 443, /* 1310 */ 45, 415, 446, 402, 22, 449, 450, 451, 452, 453, /* 1320 */ 454, 391, 456, 13, 33, 109, 270, 461, 112, 463, /* 1330 */ 224, 12, 13, 467, 468, 109, 0, 109, 112, 51, /* 1340 */ 112, 22, 443, 142, 143, 446, 166, 37, 449, 450, /* 1350 */ 451, 452, 453, 454, 35, 456, 37, 0, 22, 505, /* 1360 */ 461, 350, 463, 142, 143, 494, 467, 468, 1, 2, /* 1370 */ 365, 487, 390, 378, 107, 349, 13, 176, 177, 22, /* 1380 */ 33, 33, 33, 64, 183, 184, 33, 33, 362, 33, /* 1390 */ 364, 33, 33, 106, 33, 13, 77, 33, 378, 198, /* 1400 */ 37, 200, 115, 493, 415, 360, 415, 493, 493, 424, /* 1410 */ 493, 33, 33, 200, 33, 365, 390, 33, 33, 37, /* 1420 */ 362, 33, 103, 33, 33, 200, 401, 415, 402, 432, /* 1430 */ 404, 230, 231, 232, 415, 234, 235, 236, 237, 238, /* 1440 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, /* 1450 */ 249, 250, 251, 415, 107, 107, 107, 477, 498, 469, /* 1460 */ 107, 107, 380, 107, 480, 107, 107, 271, 107, 443, /* 1470 */ 426, 107, 446, 51, 445, 449, 450, 451, 452, 453, /* 1480 */ 454, 42, 456, 349, 444, 107, 107, 461, 107, 463, /* 1490 */ 20, 107, 107, 467, 468, 107, 362, 107, 107, 437, /* 1500 */ 370, 442, 213, 370, 437, 196, 428, 20, 361, 20, /* 1510 */ 362, 45, 411, 362, 175, 411, 408, 198, 361, 200, /* 1520 */ 362, 361, 411, 408, 390, 408, 374, 104, 102, 373, /* 1530 */ 361, 101, 361, 372, 361, 361, 402, 20, 404, 354, /* 1540 */ 50, 349, 358, 354, 358, 370, 437, 370, 20, 230, /* 1550 */ 231, 370, 20, 404, 362, 20, 363, 370, 427, 20, /* 1560 */ 363, 370, 418, 244, 245, 246, 247, 248, 249, 250, /* 1570 */ 370, 361, 354, 370, 370, 106, 441, 443, 349, 352, /* 1580 */ 446, 402, 390, 449, 450, 451, 452, 453, 454, 390, /* 1590 */ 456, 362, 361, 352, 402, 461, 404, 463, 390, 390, /* 1600 */ 354, 467, 468, 217, 390, 390, 439, 390, 402, 390, /* 1610 */ 390, 349, 390, 390, 390, 437, 368, 20, 436, 390, /* 1620 */ 204, 203, 434, 368, 362, 361, 486, 433, 278, 277, /* 1630 */ 286, 402, 402, 404, 489, 443, 404, 189, 446, 402, /* 1640 */ 486, 449, 450, 451, 452, 453, 454, 488, 456, 486, /* 1650 */ 288, 485, 390, 461, 349, 463, 420, 287, 420, 467, /* 1660 */ 468, 426, 500, 295, 402, 272, 404, 362, 426, 292, /* 1670 */ 506, 499, 443, 290, 267, 446, 362, 20, 449, 450, /* 1680 */ 451, 452, 453, 454, 116, 456, 363, 448, 269, 484, /* 1690 */ 483, 349, 463, 481, 368, 390, 467, 468, 368, 420, /* 1700 */ 402, 402, 402, 402, 362, 443, 420, 402, 446, 404, /* 1710 */ 402, 449, 450, 451, 452, 453, 454, 181, 456, 479, /* 1720 */ 416, 386, 106, 368, 466, 463, 106, 362, 368, 467, /* 1730 */ 468, 394, 390, 402, 361, 22, 38, 368, 351, 421, /* 1740 */ 429, 438, 421, 354, 402, 347, 404, 355, 443, 349, /* 1750 */ 384, 446, 0, 0, 449, 450, 451, 452, 453, 454, /* 1760 */ 384, 456, 362, 369, 384, 0, 349, 45, 463, 0, /* 1770 */ 37, 223, 467, 468, 37, 37, 37, 223, 0, 362, /* 1780 */ 37, 37, 223, 37, 0, 443, 223, 349, 446, 0, /* 1790 */ 390, 449, 450, 451, 452, 453, 454, 37, 456, 0, /* 1800 */ 362, 22, 402, 37, 404, 0, 218, 390, 0, 206, /* 1810 */ 0, 206, 200, 207, 0, 198, 0, 0, 194, 402, /* 1820 */ 193, 404, 0, 0, 147, 49, 49, 0, 390, 37, /* 1830 */ 0, 51, 49, 491, 492, 0, 45, 0, 0, 0, /* 1840 */ 402, 0, 404, 443, 49, 0, 446, 0, 0, 449, /* 1850 */ 450, 451, 452, 453, 454, 0, 456, 0, 161, 0, /* 1860 */ 443, 37, 161, 446, 0, 0, 449, 450, 451, 452, /* 1870 */ 453, 454, 0, 456, 0, 0, 0, 0, 0, 0, /* 1880 */ 463, 443, 0, 0, 446, 468, 349, 449, 450, 451, /* 1890 */ 452, 453, 454, 0, 456, 0, 0, 0, 0, 362, /* 1900 */ 0, 49, 0, 503, 504, 45, 0, 0, 0, 0, /* 1910 */ 0, 0, 0, 349, 22, 0, 0, 147, 146, 0, /* 1920 */ 145, 0, 0, 22, 0, 22, 362, 390, 37, 0, /* 1930 */ 492, 50, 395, 64, 50, 64, 0, 64, 0, 402, /* 1940 */ 0, 404, 37, 0, 349, 51, 42, 0, 0, 0, /* 1950 */ 37, 14, 0, 0, 390, 0, 33, 362, 0, 395, /* 1960 */ 42, 0, 37, 37, 0, 51, 402, 0, 404, 42, /* 1970 */ 189, 51, 42, 45, 43, 0, 42, 0, 0, 37, /* 1980 */ 443, 349, 49, 446, 49, 390, 449, 450, 451, 452, /* 1990 */ 453, 454, 42, 456, 362, 49, 51, 402, 42, 404, /* 2000 */ 49, 0, 37, 71, 42, 51, 0, 443, 37, 0, /* 2010 */ 446, 51, 42, 449, 450, 451, 452, 453, 454, 37, /* 2020 */ 456, 42, 390, 51, 0, 0, 0, 0, 0, 0, /* 2030 */ 37, 114, 22, 0, 402, 0, 404, 37, 443, 37, /* 2040 */ 37, 446, 37, 0, 449, 450, 451, 452, 453, 454, /* 2050 */ 37, 456, 37, 112, 349, 37, 37, 37, 37, 22, /* 2060 */ 37, 22, 22, 33, 33, 53, 0, 362, 22, 37, /* 2070 */ 0, 0, 0, 37, 0, 443, 0, 22, 446, 349, /* 2080 */ 20, 449, 450, 451, 452, 453, 454, 37, 456, 37, /* 2090 */ 495, 37, 362, 37, 107, 390, 106, 0, 106, 0, /* 2100 */ 395, 37, 49, 22, 205, 0, 22, 402, 0, 404, /* 2110 */ 3, 33, 50, 273, 106, 104, 33, 178, 0, 50, /* 2120 */ 390, 33, 349, 107, 107, 33, 49, 33, 106, 49, /* 2130 */ 3, 273, 402, 33, 404, 362, 504, 349, 181, 273, /* 2140 */ 102, 178, 49, 37, 178, 201, 178, 178, 443, 107, /* 2150 */ 362, 446, 349, 106, 449, 450, 451, 452, 453, 454, /* 2160 */ 37, 456, 37, 390, 106, 362, 107, 106, 395, 185, /* 2170 */ 185, 106, 37, 443, 107, 402, 446, 404, 390, 449, /* 2180 */ 450, 451, 452, 453, 454, 37, 456, 37, 458, 107, /* 2190 */ 402, 33, 404, 390, 107, 49, 107, 0, 395, 0, /* 2200 */ 0, 106, 42, 107, 106, 402, 42, 404, 107, 106, /* 2210 */ 106, 49, 33, 2, 180, 106, 443, 349, 106, 446, /* 2220 */ 104, 104, 449, 450, 451, 452, 453, 454, 115, 456, /* 2230 */ 362, 443, 22, 182, 446, 349, 253, 449, 450, 451, /* 2240 */ 452, 453, 454, 106, 456, 107, 443, 106, 362, 446, /* 2250 */ 107, 106, 449, 450, 451, 452, 453, 454, 390, 456, /* 2260 */ 266, 107, 49, 106, 49, 106, 22, 116, 107, 106, /* 2270 */ 402, 230, 404, 107, 37, 37, 390, 233, 106, 37, /* 2280 */ 107, 106, 37, 107, 106, 37, 37, 107, 402, 106, /* 2290 */ 404, 107, 106, 37, 107, 106, 127, 127, 127, 106, /* 2300 */ 33, 127, 106, 37, 106, 22, 37, 71, 37, 70, /* 2310 */ 77, 443, 37, 37, 446, 37, 37, 449, 450, 451, /* 2320 */ 452, 453, 454, 37, 456, 37, 37, 100, 77, 443, /* 2330 */ 349, 100, 446, 33, 37, 449, 450, 451, 452, 453, /* 2340 */ 454, 37, 456, 362, 37, 22, 37, 349, 37, 37, /* 2350 */ 37, 77, 37, 37, 37, 37, 22, 37, 0, 37, /* 2360 */ 362, 51, 0, 349, 37, 51, 42, 42, 0, 37, /* 2370 */ 51, 390, 0, 42, 37, 42, 362, 51, 0, 37, /* 2380 */ 37, 0, 22, 402, 33, 404, 22, 21, 390, 22, /* 2390 */ 20, 22, 21, 507, 507, 507, 507, 507, 507, 507, /* 2400 */ 402, 507, 404, 507, 390, 507, 507, 507, 507, 507, /* 2410 */ 507, 507, 507, 507, 507, 507, 402, 507, 404, 507, /* 2420 */ 507, 507, 507, 507, 443, 507, 507, 446, 507, 507, /* 2430 */ 449, 450, 451, 452, 453, 454, 507, 456, 507, 507, /* 2440 */ 349, 443, 507, 507, 446, 507, 507, 449, 450, 451, /* 2450 */ 452, 453, 454, 362, 456, 507, 507, 443, 507, 349, /* 2460 */ 446, 507, 507, 449, 450, 451, 452, 453, 454, 507, /* 2470 */ 456, 507, 362, 507, 507, 507, 507, 507, 507, 507, /* 2480 */ 507, 390, 507, 507, 507, 507, 507, 507, 507, 507, /* 2490 */ 507, 507, 507, 402, 507, 404, 507, 507, 507, 507, /* 2500 */ 390, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 2510 */ 507, 507, 402, 507, 404, 507, 507, 507, 507, 507, /* 2520 */ 507, 507, 507, 507, 507, 507, 349, 507, 507, 507, /* 2530 */ 507, 507, 507, 507, 443, 507, 507, 446, 507, 362, /* 2540 */ 449, 450, 451, 452, 453, 454, 507, 456, 507, 507, /* 2550 */ 507, 507, 507, 443, 507, 349, 446, 507, 507, 449, /* 2560 */ 450, 451, 452, 453, 454, 507, 456, 390, 362, 507, /* 2570 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 402, /* 2580 */ 507, 404, 507, 507, 349, 507, 507, 507, 507, 507, /* 2590 */ 507, 507, 507, 507, 507, 507, 390, 362, 507, 507, /* 2600 */ 507, 507, 507, 507, 507, 507, 507, 507, 402, 507, /* 2610 */ 404, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 2620 */ 443, 507, 349, 446, 507, 390, 449, 450, 451, 452, /* 2630 */ 453, 454, 507, 456, 507, 362, 507, 402, 507, 404, /* 2640 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 443, /* 2650 */ 507, 507, 446, 507, 507, 449, 450, 451, 452, 453, /* 2660 */ 454, 507, 456, 390, 507, 507, 507, 507, 507, 507, /* 2670 */ 507, 507, 507, 507, 507, 402, 507, 404, 443, 349, /* 2680 */ 507, 446, 507, 507, 449, 450, 451, 452, 453, 454, /* 2690 */ 507, 456, 362, 507, 507, 507, 507, 349, 507, 507, /* 2700 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 2710 */ 362, 507, 507, 507, 507, 507, 443, 507, 507, 446, /* 2720 */ 390, 507, 449, 450, 451, 452, 453, 454, 507, 456, /* 2730 */ 507, 507, 402, 507, 404, 507, 507, 507, 390, 507, /* 2740 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 2750 */ 402, 507, 404, 507, 349, 507, 507, 507, 507, 507, /* 2760 */ 507, 507, 507, 507, 507, 507, 507, 362, 507, 507, /* 2770 */ 507, 507, 507, 443, 349, 507, 446, 507, 507, 449, /* 2780 */ 450, 451, 452, 453, 454, 507, 456, 362, 507, 507, /* 2790 */ 349, 443, 507, 507, 446, 390, 507, 449, 450, 451, /* 2800 */ 452, 453, 454, 362, 456, 507, 507, 402, 507, 404, /* 2810 */ 507, 507, 507, 507, 507, 390, 507, 507, 507, 507, /* 2820 */ 507, 507, 507, 507, 507, 507, 507, 402, 507, 404, /* 2830 */ 507, 390, 507, 507, 507, 507, 507, 507, 507, 507, /* 2840 */ 507, 507, 507, 402, 507, 404, 507, 507, 443, 507, /* 2850 */ 507, 446, 507, 507, 449, 450, 451, 452, 453, 454, /* 2860 */ 507, 456, 507, 507, 507, 507, 507, 507, 443, 507, /* 2870 */ 507, 446, 507, 507, 449, 450, 451, 452, 453, 454, /* 2880 */ 507, 456, 507, 507, 443, 507, 507, 446, 507, 349, /* 2890 */ 449, 450, 451, 452, 453, 454, 507, 456, 507, 507, /* 2900 */ 507, 507, 362, 507, 507, 349, 507, 507, 507, 507, /* 2910 */ 507, 507, 507, 507, 507, 507, 507, 507, 362, 507, /* 2920 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 2930 */ 390, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 2940 */ 507, 507, 402, 507, 404, 507, 390, 507, 507, 507, /* 2950 */ 507, 507, 507, 507, 507, 507, 507, 507, 402, 507, /* 2960 */ 404, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 2970 */ 507, 507, 349, 507, 507, 507, 507, 507, 507, 507, /* 2980 */ 507, 507, 507, 443, 507, 362, 446, 349, 507, 449, /* 2990 */ 450, 451, 452, 453, 454, 507, 456, 507, 507, 443, /* 3000 */ 362, 507, 446, 507, 507, 449, 450, 451, 452, 453, /* 3010 */ 454, 507, 456, 390, 507, 507, 507, 507, 507, 507, /* 3020 */ 507, 507, 507, 507, 507, 402, 507, 404, 390, 507, /* 3030 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 3040 */ 402, 507, 404, 507, 507, 507, 507, 507, 507, 507, /* 3050 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 3060 */ 507, 507, 507, 507, 507, 507, 443, 507, 507, 446, /* 3070 */ 349, 507, 449, 450, 451, 452, 453, 454, 507, 456, /* 3080 */ 507, 443, 507, 362, 446, 507, 507, 449, 450, 451, /* 3090 */ 452, 453, 454, 507, 456, 507, 507, 507, 507, 507, /* 3100 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 3110 */ 507, 390, 507, 507, 507, 507, 507, 507, 507, 507, /* 3120 */ 507, 507, 507, 402, 507, 404, 507, 507, 507, 507, /* 3130 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 3140 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 3150 */ 507, 507, 507, 507, 507, 507, 507, 507, 507, 507, /* 3160 */ 507, 507, 507, 507, 443, 507, 507, 446, 507, 507, /* 3170 */ 449, 450, 451, 452, 453, 454, 507, 456, 346, 346, /* 3180 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3190 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3200 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3210 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3220 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3230 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3240 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3250 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3260 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3270 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3280 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3290 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3300 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3310 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3320 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3330 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3340 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3350 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3360 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3370 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3380 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3390 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3400 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3410 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3420 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3430 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3440 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3450 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3460 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3470 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3480 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3490 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3500 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3510 */ 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, /* 3520 */ 346, 346, 346, 346, }; #define YY_SHIFT_COUNT (834) #define YY_SHIFT_MIN (0) #define YY_SHIFT_MAX (2381) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 391, 0, 240, 0, 481, 481, 481, 481, 481, 481, /* 10 */ 481, 481, 481, 481, 481, 481, 721, 961, 961, 1201, /* 20 */ 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, /* 30 */ 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, /* 40 */ 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, /* 50 */ 961, 93, 162, 152, 47, 278, 343, 278, 278, 47, /* 60 */ 47, 278, 1319, 278, 239, 1319, 1319, 281, 278, 28, /* 70 */ 595, 67, 67, 931, 931, 595, 87, 291, 126, 126, /* 80 */ 173, 67, 67, 67, 67, 67, 67, 67, 67, 67, /* 90 */ 67, 67, 317, 492, 67, 67, 187, 28, 67, 317, /* 100 */ 67, 28, 67, 67, 28, 67, 67, 28, 67, 28, /* 110 */ 28, 28, 67, 368, 439, 439, 242, 546, 569, 569, /* 120 */ 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, /* 130 */ 569, 569, 569, 569, 569, 569, 569, 189, 602, 87, /* 140 */ 291, 1024, 1024, 150, 268, 268, 268, 678, 336, 336, /* 150 */ 91, 150, 187, 486, 28, 28, 633, 28, 813, 28, /* 160 */ 813, 813, 823, 959, 89, 89, 89, 89, 89, 89, /* 170 */ 89, 89, 504, 441, 65, 453, 15, 313, 606, 19, /* 180 */ 322, 516, 3, 3, 527, 983, 770, 303, 303, 303, /* 190 */ 502, 303, 800, 1100, 1, 725, 618, 650, 1, 1, /* 200 */ 808, 1009, 538, 988, 1009, 1261, 1056, 91, 1196, 1422, /* 210 */ 1439, 1470, 1289, 187, 1470, 187, 1309, 1487, 1489, 1466, /* 220 */ 1489, 1466, 1339, 1487, 1489, 1487, 1466, 1339, 1339, 1423, /* 230 */ 1426, 1487, 1430, 1487, 1487, 1487, 1517, 1490, 1517, 1490, /* 240 */ 1470, 187, 187, 1528, 187, 1532, 1535, 187, 1532, 187, /* 250 */ 1539, 187, 187, 1487, 187, 1517, 28, 28, 28, 28, /* 260 */ 28, 28, 28, 28, 28, 28, 28, 1487, 959, 959, /* 270 */ 1517, 813, 813, 813, 1386, 1469, 1470, 368, 1597, 1416, /* 280 */ 1418, 1528, 368, 1196, 1487, 813, 1350, 1352, 1350, 1352, /* 290 */ 1344, 1448, 1350, 1362, 1370, 1393, 1196, 1368, 1377, 1383, /* 300 */ 1407, 1489, 1657, 1568, 1419, 1532, 368, 368, 1352, 813, /* 310 */ 813, 813, 813, 1352, 813, 1536, 368, 823, 368, 1489, /* 320 */ 1616, 1620, 813, 1487, 368, 1713, 1698, 1517, 3178, 3178, /* 330 */ 3178, 3178, 3178, 3178, 3178, 3178, 3178, 36, 881, 786, /* 340 */ 30, 825, 1043, 1063, 625, 413, 661, 1103, 877, 1271, /* 350 */ 1271, 1271, 1271, 1271, 1271, 1271, 1271, 1271, 635, 716, /* 360 */ 318, 363, 363, 355, 358, 445, 870, 867, 1146, 1202, /* 370 */ 1006, 1021, 1021, 1211, 1183, 382, 1211, 1211, 1211, 1288, /* 380 */ 1106, 462, 1066, 1265, 1180, 1291, 1190, 1216, 1226, 1228, /* 390 */ 677, 1310, 1292, 1336, 1357, 974, 1267, 1347, 477, 1348, /* 400 */ 1349, 1353, 1221, 417, 8, 1354, 1356, 1358, 1359, 1361, /* 410 */ 1364, 1367, 1378, 714, 1379, 155, 1381, 1384, 1385, 1388, /* 420 */ 1390, 1391, 1287, 1213, 1225, 1363, 1382, 1051, 1083, 1752, /* 430 */ 1753, 1765, 1722, 1769, 1733, 1548, 1737, 1738, 1739, 1554, /* 440 */ 1778, 1743, 1744, 1559, 1746, 1784, 1563, 1789, 1760, 1799, /* 450 */ 1779, 1805, 1766, 1588, 1808, 1603, 1810, 1605, 1606, 1612, /* 460 */ 1617, 1814, 1816, 1817, 1624, 1627, 1822, 1823, 1677, 1776, /* 470 */ 1777, 1827, 1792, 1780, 1830, 1783, 1835, 1791, 1837, 1838, /* 480 */ 1839, 1795, 1841, 1845, 1847, 1848, 1855, 1857, 1697, 1824, /* 490 */ 1859, 1701, 1864, 1865, 1872, 1874, 1875, 1876, 1877, 1878, /* 500 */ 1879, 1882, 1883, 1893, 1895, 1896, 1897, 1898, 1900, 1852, /* 510 */ 1902, 1860, 1906, 1907, 1908, 1909, 1910, 1911, 1912, 1892, /* 520 */ 1915, 1770, 1916, 1772, 1919, 1775, 1921, 1922, 1901, 1881, /* 530 */ 1903, 1884, 1924, 1869, 1891, 1929, 1871, 1936, 1873, 1938, /* 540 */ 1940, 1905, 1894, 1904, 1943, 1913, 1914, 1918, 1947, 1925, /* 550 */ 1920, 1927, 1948, 1926, 1949, 1928, 1930, 1923, 1933, 1935, /* 560 */ 1937, 1946, 1952, 1931, 1934, 1953, 1955, 1958, 1961, 1950, /* 570 */ 1781, 1964, 1933, 1951, 1967, 1975, 1932, 1977, 1978, 1942, /* 580 */ 1945, 1956, 2001, 1965, 1954, 1962, 2006, 1971, 1960, 1970, /* 590 */ 2009, 1982, 1972, 1979, 2024, 2025, 2026, 2027, 2028, 2029, /* 600 */ 1917, 1941, 1993, 2010, 2033, 2000, 2002, 2003, 2005, 2013, /* 610 */ 2015, 2018, 2019, 2030, 2031, 2020, 2021, 2037, 2023, 2035, /* 620 */ 2039, 2043, 2040, 2012, 2066, 2046, 2032, 2070, 2071, 2072, /* 630 */ 2036, 2074, 2050, 2076, 2055, 2060, 2052, 2054, 2056, 1987, /* 640 */ 1990, 2097, 1939, 1992, 1899, 1933, 2053, 2099, 1963, 2064, /* 650 */ 2081, 2105, 1944, 2084, 1966, 1957, 2108, 2118, 1968, 1984, /* 660 */ 1969, 1985, 2107, 2078, 1840, 2008, 2016, 2022, 2062, 2011, /* 670 */ 2069, 2038, 2017, 2083, 2088, 2042, 2047, 2058, 2061, 2059, /* 680 */ 2092, 2077, 2080, 2065, 2094, 1858, 2067, 2082, 2127, 2100, /* 690 */ 1866, 2106, 2123, 2125, 2135, 2148, 2150, 2087, 2089, 2093, /* 700 */ 1994, 2158, 2146, 2197, 2199, 2095, 2160, 2098, 2096, 2101, /* 710 */ 2103, 2104, 2051, 2109, 2200, 2164, 2034, 2112, 2113, 1933, /* 720 */ 2162, 2179, 2116, 1983, 2117, 2211, 2210, 2041, 2137, 2138, /* 730 */ 2141, 2143, 2145, 2154, 2213, 2157, 2159, 2215, 2161, 2244, /* 740 */ 2044, 2163, 2151, 2166, 2237, 2238, 2172, 2173, 2242, 2175, /* 750 */ 2176, 2245, 2178, 2180, 2248, 2183, 2184, 2249, 2186, 2187, /* 760 */ 2256, 2189, 2169, 2170, 2171, 2174, 2193, 2267, 2196, 2266, /* 770 */ 2198, 2267, 2267, 2283, 2236, 2239, 2269, 2271, 2275, 2276, /* 780 */ 2278, 2279, 2286, 2288, 2289, 2233, 2227, 2251, 2231, 2300, /* 790 */ 2297, 2304, 2307, 2323, 2309, 2311, 2312, 2274, 2030, 2313, /* 800 */ 2031, 2315, 2316, 2317, 2318, 2334, 2320, 2358, 2322, 2310, /* 810 */ 2324, 2362, 2327, 2314, 2325, 2368, 2332, 2319, 2331, 2372, /* 820 */ 2337, 2326, 2333, 2378, 2342, 2343, 2381, 2360, 2351, 2364, /* 830 */ 2366, 2367, 2369, 2371, 2370, }; #define YY_REDUCE_COUNT (336) #define YY_REDUCE_MIN (-423) #define YY_REDUCE_MAX (2721) static const short yy_reduce_ofst[] = { /* 0 */ -149, -302, 387, 199, 419, 646, 680, 866, 899, 1026, /* 10 */ 457, 1134, 1192, 1229, 1262, 1305, -84, 1342, 1400, 1417, /* 20 */ 1438, 1537, 1564, 1595, 1632, 1705, 1730, 1773, 1803, 1788, /* 30 */ 1868, 1886, 1981, 1998, 2014, 2091, 2110, 2177, 2206, 2235, /* 40 */ 2273, 2330, 2348, 2405, 2425, 2441, 2540, 2556, 2623, 2638, /* 50 */ 2721, -189, -339, -423, 163, -421, 525, 676, 685, 279, /* 60 */ 321, 744, -176, -311, -308, 536, 787, 674, 756, -379, /* 70 */ -248, -356, -192, -288, 4, -244, -329, 39, 181, 383, /* 80 */ -306, -312, -31, 138, 198, -328, -137, 246, 325, 426, /* 90 */ 464, -107, 75, -223, 470, 531, -91, 491, 623, 443, /* 100 */ 626, 494, 658, 662, -381, 673, 684, 600, 712, 476, /* 110 */ 604, 651, 724, 236, -54, -54, -371, 282, 115, 305, /* 120 */ 393, 433, 454, 493, 545, 573, 578, 597, 772, 778, /* 130 */ 818, 845, 880, 893, 895, 906, 911, 161, -293, -123, /* 140 */ 398, 535, 773, 561, -293, -129, 360, 300, 455, 704, /* 150 */ -318, 749, -98, 116, 266, 544, 694, 861, 833, 847, /* 160 */ 865, 872, 883, 920, 620, 656, 703, 755, 863, 902, /* 170 */ 930, 863, 785, -369, 1011, 896, 854, 871, 1005, 884, /* 180 */ 982, 982, 995, 1020, 989, 1045, 991, 910, 914, 915, /* 190 */ 985, 917, 982, 1050, 1012, 1058, 1025, 997, 1019, 1038, /* 200 */ 982, 980, 980, 960, 980, 990, 984, 1082, 1044, 1029, /* 210 */ 1040, 1062, 1059, 1130, 1067, 1133, 1078, 1147, 1148, 1101, /* 220 */ 1151, 1104, 1108, 1157, 1158, 1160, 1111, 1115, 1117, 1152, /* 230 */ 1156, 1169, 1161, 1171, 1173, 1174, 1185, 1184, 1189, 1186, /* 240 */ 1109, 1175, 1177, 1149, 1181, 1193, 1131, 1187, 1197, 1191, /* 250 */ 1144, 1200, 1203, 1210, 1204, 1218, 1199, 1208, 1209, 1214, /* 260 */ 1215, 1217, 1219, 1220, 1222, 1223, 1224, 1231, 1227, 1241, /* 270 */ 1246, 1179, 1206, 1230, 1135, 1167, 1178, 1248, 1182, 1188, /* 280 */ 1194, 1232, 1255, 1235, 1264, 1237, 1140, 1236, 1154, 1238, /* 290 */ 1145, 1159, 1163, 1166, 1205, 1207, 1242, 1164, 1162, 1172, /* 300 */ 980, 1314, 1239, 1212, 1240, 1323, 1326, 1330, 1279, 1298, /* 310 */ 1299, 1300, 1301, 1286, 1308, 1304, 1355, 1335, 1360, 1365, /* 320 */ 1258, 1337, 1331, 1373, 1369, 1387, 1392, 1389, 1311, 1303, /* 330 */ 1318, 1321, 1366, 1376, 1380, 1394, 1398, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 10 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 20 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 30 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 40 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 50 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 60 */ 1876, 2209, 1876, 1876, 2172, 1876, 1876, 1876, 1876, 1876, /* 70 */ 1876, 1876, 1876, 1876, 1876, 1876, 2179, 1876, 1876, 1876, /* 80 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 90 */ 1876, 1876, 1876, 1876, 1876, 1876, 1973, 1876, 1876, 1876, /* 100 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 110 */ 1876, 1876, 1876, 1971, 2411, 1876, 1876, 1876, 1876, 1876, /* 120 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 130 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 2423, 1876, /* 140 */ 1876, 1947, 1947, 1876, 2423, 2423, 2423, 1971, 2383, 2383, /* 150 */ 1876, 1876, 1973, 2247, 1876, 1876, 1876, 1876, 1876, 1876, /* 160 */ 1876, 1876, 2096, 1906, 1876, 1876, 1876, 1876, 2120, 1876, /* 170 */ 1876, 1876, 2235, 1876, 1876, 2452, 2512, 1876, 1876, 2455, /* 180 */ 1876, 1876, 1876, 1876, 2184, 1876, 2442, 1876, 1876, 1876, /* 190 */ 1876, 1876, 1876, 1876, 1876, 1876, 2049, 2229, 1876, 1876, /* 200 */ 1876, 2415, 2429, 2496, 2416, 2413, 2436, 1876, 2446, 1876, /* 210 */ 2271, 1876, 2261, 1973, 1876, 1973, 2222, 2167, 1876, 2177, /* 220 */ 1876, 2177, 2174, 1876, 1876, 1876, 2177, 2174, 2174, 2038, /* 230 */ 2034, 1876, 2032, 1876, 1876, 1876, 1876, 1931, 1876, 1931, /* 240 */ 1876, 1973, 1973, 1876, 1973, 1876, 1876, 1973, 1876, 1973, /* 250 */ 1876, 1973, 1973, 1876, 1973, 1876, 1876, 1876, 1876, 1876, /* 260 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 270 */ 1876, 1876, 1876, 1876, 2259, 2245, 1876, 1971, 1876, 2233, /* 280 */ 2231, 1876, 1971, 2446, 1876, 1876, 2466, 2461, 2466, 2461, /* 290 */ 2480, 2476, 2466, 2485, 2482, 2448, 2446, 2515, 2502, 2498, /* 300 */ 2429, 1876, 1876, 2434, 2432, 1876, 1971, 1971, 2461, 1876, /* 310 */ 1876, 1876, 1876, 2461, 1876, 1876, 1971, 1876, 1971, 1876, /* 320 */ 1876, 2065, 1876, 1876, 1971, 1876, 1915, 1876, 2224, 2250, /* 330 */ 2205, 2205, 2099, 2099, 2099, 1974, 1881, 1876, 1876, 1876, /* 340 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 2479, /* 350 */ 2478, 2336, 1876, 2387, 2386, 2385, 2376, 2335, 2061, 1876, /* 360 */ 1876, 2334, 2333, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 370 */ 1876, 2196, 2195, 2327, 1876, 1876, 2328, 2326, 2325, 1876, /* 380 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 390 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 400 */ 1876, 1876, 1876, 2499, 2503, 1876, 1876, 1876, 1876, 1876, /* 410 */ 1876, 2412, 1876, 1876, 1876, 2307, 1876, 1876, 1876, 1876, /* 420 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 430 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 440 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 450 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 460 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 2173, 1876, /* 470 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 480 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 490 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 500 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 510 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 520 */ 1876, 1876, 1876, 1876, 1876, 2188, 1876, 1876, 1876, 1876, /* 530 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 540 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 550 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1920, 2314, 1876, /* 560 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 570 */ 1876, 1876, 2317, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 580 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 590 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 600 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 610 */ 1876, 1876, 1876, 2013, 2012, 1876, 1876, 1876, 1876, 1876, /* 620 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 630 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 2318, /* 640 */ 1876, 1876, 1876, 1876, 1876, 2309, 1876, 1876, 1876, 1876, /* 650 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 660 */ 1876, 1876, 2495, 2449, 1876, 1876, 1876, 1876, 1876, 1876, /* 670 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 680 */ 1876, 1876, 2307, 1876, 2477, 1876, 1876, 2493, 1876, 2497, /* 690 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 2422, 2418, 1876, /* 700 */ 1876, 2414, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 710 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 2306, /* 720 */ 1876, 2373, 1876, 1876, 1876, 2407, 1876, 1876, 2358, 1876, /* 730 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 2318, 1876, /* 740 */ 2321, 1876, 1876, 1876, 1876, 1876, 2093, 1876, 1876, 1876, /* 750 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 760 */ 1876, 1876, 2077, 2075, 2074, 2073, 1876, 2106, 1876, 1876, /* 770 */ 1876, 2102, 2101, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 780 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1992, /* 790 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1984, 1876, /* 800 */ 1983, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 810 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, /* 820 */ 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1876, 1905, 1876, /* 830 */ 1876, 1876, 1876, 1876, 1876, }; /********** 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, /* KEEP_TIME_OFFSET => nothing */ 0, /* NK_COLON => nothing */ 0, /* BWLIMIT => nothing */ 0, /* START => nothing */ 0, /* TIMESTAMP => nothing */ 296, /* 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, /* VIEWS => nothing */ 296, /* VIEW => ABORT */ 0, /* NORMAL => nothing */ 0, /* CHILD => nothing */ 0, /* LIKE => nothing */ 0, /* TBNAME => nothing */ 0, /* QTAGS => nothing */ 0, /* AS => nothing */ 0, /* SYSTEM => nothing */ 0, /* INDEX => nothing */ 0, /* FUNCTION => nothing */ 0, /* INTERVAL => nothing */ 0, /* COUNT => nothing */ 0, /* LAST_ROW => nothing */ 0, /* META => nothing */ 0, /* ONLY => nothing */ 0, /* TOPIC => nothing */ 0, /* CONSUMER => nothing */ 0, /* GROUP => nothing */ 0, /* DESC => nothing */ 0, /* DESCRIBE => nothing */ 0, /* RESET => nothing */ 0, /* QUERY => nothing */ 0, /* CACHE => nothing */ 0, /* EXPLAIN => nothing */ 0, /* ANALYZE => nothing */ 0, /* VERBOSE => nothing */ 0, /* NK_BOOL => nothing */ 0, /* RATIO => nothing */ 0, /* NK_FLOAT => nothing */ 0, /* OUTPUTTYPE => nothing */ 0, /* AGGREGATE => nothing */ 0, /* BUFSIZE => nothing */ 0, /* LANGUAGE => nothing */ 0, /* REPLACE => nothing */ 0, /* STREAM => nothing */ 0, /* INTO => nothing */ 0, /* PAUSE => nothing */ 0, /* RESUME => nothing */ 0, /* TRIGGER => nothing */ 0, /* AT_ONCE => nothing */ 0, /* WINDOW_CLOSE => nothing */ 0, /* IGNORE => nothing */ 0, /* EXPIRED => nothing */ 0, /* FILL_HISTORY => nothing */ 0, /* UPDATE => nothing */ 0, /* SUBTABLE => nothing */ 0, /* UNTREATED => nothing */ 0, /* KILL => nothing */ 0, /* CONNECTION => nothing */ 0, /* TRANSACTION => nothing */ 0, /* BALANCE => nothing */ 0, /* VGROUP => nothing */ 0, /* LEADER => nothing */ 0, /* MERGE => nothing */ 0, /* REDISTRIBUTE => nothing */ 0, /* SPLIT => nothing */ 0, /* DELETE => nothing */ 0, /* INSERT => nothing */ 0, /* NULL => nothing */ 0, /* NK_QUESTION => nothing */ 0, /* NK_ALIAS => 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 */ 296, /* AFTER => ABORT */ 296, /* ATTACH => ABORT */ 296, /* BEFORE => ABORT */ 296, /* BEGIN => ABORT */ 296, /* BITAND => ABORT */ 296, /* BITNOT => ABORT */ 296, /* BITOR => ABORT */ 296, /* BLOCKS => ABORT */ 296, /* CHANGE => ABORT */ 296, /* COMMA => ABORT */ 296, /* CONCAT => ABORT */ 296, /* CONFLICT => ABORT */ 296, /* COPY => ABORT */ 296, /* DEFERRED => ABORT */ 296, /* DELIMITERS => ABORT */ 296, /* DETACH => ABORT */ 296, /* DIVIDE => ABORT */ 296, /* DOT => ABORT */ 296, /* EACH => ABORT */ 296, /* FAIL => ABORT */ 296, /* FILE => ABORT */ 296, /* FOR => ABORT */ 296, /* GLOB => ABORT */ 296, /* ID => ABORT */ 296, /* IMMEDIATE => ABORT */ 296, /* IMPORT => ABORT */ 296, /* INITIALLY => ABORT */ 296, /* INSTEAD => ABORT */ 296, /* ISNULL => ABORT */ 296, /* KEY => ABORT */ 296, /* MODULES => ABORT */ 296, /* NK_BITNOT => ABORT */ 296, /* NK_SEMI => ABORT */ 296, /* NOTNULL => ABORT */ 296, /* OF => ABORT */ 296, /* PLUS => ABORT */ 296, /* PRIVILEGE => ABORT */ 296, /* RAISE => ABORT */ 296, /* RESTRICT => ABORT */ 296, /* ROW => ABORT */ 296, /* SEMI => ABORT */ 296, /* STAR => ABORT */ 296, /* STATEMENT => ABORT */ 296, /* STRICT => ABORT */ 296, /* STRING => ABORT */ 296, /* TIMES => ABORT */ 296, /* VALUES => ABORT */ 296, /* VARIABLE => ABORT */ 296, /* 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 */ "KEEP_TIME_OFFSET", /* 100 */ "NK_COLON", /* 101 */ "BWLIMIT", /* 102 */ "START", /* 103 */ "TIMESTAMP", /* 104 */ "END", /* 105 */ "TABLE", /* 106 */ "NK_LP", /* 107 */ "NK_RP", /* 108 */ "STABLE", /* 109 */ "COLUMN", /* 110 */ "MODIFY", /* 111 */ "RENAME", /* 112 */ "TAG", /* 113 */ "SET", /* 114 */ "NK_EQ", /* 115 */ "USING", /* 116 */ "TAGS", /* 117 */ "BOOL", /* 118 */ "TINYINT", /* 119 */ "SMALLINT", /* 120 */ "INT", /* 121 */ "INTEGER", /* 122 */ "BIGINT", /* 123 */ "FLOAT", /* 124 */ "DOUBLE", /* 125 */ "BINARY", /* 126 */ "NCHAR", /* 127 */ "UNSIGNED", /* 128 */ "JSON", /* 129 */ "VARCHAR", /* 130 */ "MEDIUMBLOB", /* 131 */ "BLOB", /* 132 */ "VARBINARY", /* 133 */ "GEOMETRY", /* 134 */ "DECIMAL", /* 135 */ "COMMENT", /* 136 */ "MAX_DELAY", /* 137 */ "WATERMARK", /* 138 */ "ROLLUP", /* 139 */ "TTL", /* 140 */ "SMA", /* 141 */ "DELETE_MARK", /* 142 */ "FIRST", /* 143 */ "LAST", /* 144 */ "SHOW", /* 145 */ "PRIVILEGES", /* 146 */ "DATABASES", /* 147 */ "TABLES", /* 148 */ "STABLES", /* 149 */ "MNODES", /* 150 */ "QNODES", /* 151 */ "FUNCTIONS", /* 152 */ "INDEXES", /* 153 */ "ACCOUNTS", /* 154 */ "APPS", /* 155 */ "CONNECTIONS", /* 156 */ "LICENCES", /* 157 */ "GRANTS", /* 158 */ "QUERIES", /* 159 */ "SCORES", /* 160 */ "TOPICS", /* 161 */ "VARIABLES", /* 162 */ "CLUSTER", /* 163 */ "BNODES", /* 164 */ "SNODES", /* 165 */ "TRANSACTIONS", /* 166 */ "DISTRIBUTED", /* 167 */ "CONSUMERS", /* 168 */ "SUBSCRIPTIONS", /* 169 */ "VNODES", /* 170 */ "ALIVE", /* 171 */ "VIEWS", /* 172 */ "VIEW", /* 173 */ "NORMAL", /* 174 */ "CHILD", /* 175 */ "LIKE", /* 176 */ "TBNAME", /* 177 */ "QTAGS", /* 178 */ "AS", /* 179 */ "SYSTEM", /* 180 */ "INDEX", /* 181 */ "FUNCTION", /* 182 */ "INTERVAL", /* 183 */ "COUNT", /* 184 */ "LAST_ROW", /* 185 */ "META", /* 186 */ "ONLY", /* 187 */ "TOPIC", /* 188 */ "CONSUMER", /* 189 */ "GROUP", /* 190 */ "DESC", /* 191 */ "DESCRIBE", /* 192 */ "RESET", /* 193 */ "QUERY", /* 194 */ "CACHE", /* 195 */ "EXPLAIN", /* 196 */ "ANALYZE", /* 197 */ "VERBOSE", /* 198 */ "NK_BOOL", /* 199 */ "RATIO", /* 200 */ "NK_FLOAT", /* 201 */ "OUTPUTTYPE", /* 202 */ "AGGREGATE", /* 203 */ "BUFSIZE", /* 204 */ "LANGUAGE", /* 205 */ "REPLACE", /* 206 */ "STREAM", /* 207 */ "INTO", /* 208 */ "PAUSE", /* 209 */ "RESUME", /* 210 */ "TRIGGER", /* 211 */ "AT_ONCE", /* 212 */ "WINDOW_CLOSE", /* 213 */ "IGNORE", /* 214 */ "EXPIRED", /* 215 */ "FILL_HISTORY", /* 216 */ "UPDATE", /* 217 */ "SUBTABLE", /* 218 */ "UNTREATED", /* 219 */ "KILL", /* 220 */ "CONNECTION", /* 221 */ "TRANSACTION", /* 222 */ "BALANCE", /* 223 */ "VGROUP", /* 224 */ "LEADER", /* 225 */ "MERGE", /* 226 */ "REDISTRIBUTE", /* 227 */ "SPLIT", /* 228 */ "DELETE", /* 229 */ "INSERT", /* 230 */ "NULL", /* 231 */ "NK_QUESTION", /* 232 */ "NK_ALIAS", /* 233 */ "NK_ARROW", /* 234 */ "ROWTS", /* 235 */ "QSTART", /* 236 */ "QEND", /* 237 */ "QDURATION", /* 238 */ "WSTART", /* 239 */ "WEND", /* 240 */ "WDURATION", /* 241 */ "IROWTS", /* 242 */ "ISFILLED", /* 243 */ "CAST", /* 244 */ "NOW", /* 245 */ "TODAY", /* 246 */ "TIMEZONE", /* 247 */ "CLIENT_VERSION", /* 248 */ "SERVER_VERSION", /* 249 */ "SERVER_STATUS", /* 250 */ "CURRENT_USER", /* 251 */ "CASE", /* 252 */ "WHEN", /* 253 */ "THEN", /* 254 */ "ELSE", /* 255 */ "BETWEEN", /* 256 */ "IS", /* 257 */ "NK_LT", /* 258 */ "NK_GT", /* 259 */ "NK_LE", /* 260 */ "NK_GE", /* 261 */ "NK_NE", /* 262 */ "MATCH", /* 263 */ "NMATCH", /* 264 */ "CONTAINS", /* 265 */ "IN", /* 266 */ "JOIN", /* 267 */ "INNER", /* 268 */ "SELECT", /* 269 */ "NK_HINT", /* 270 */ "DISTINCT", /* 271 */ "WHERE", /* 272 */ "PARTITION", /* 273 */ "BY", /* 274 */ "SESSION", /* 275 */ "STATE_WINDOW", /* 276 */ "EVENT_WINDOW", /* 277 */ "SLIDING", /* 278 */ "FILL", /* 279 */ "VALUE", /* 280 */ "VALUE_F", /* 281 */ "NONE", /* 282 */ "PREV", /* 283 */ "NULL_F", /* 284 */ "LINEAR", /* 285 */ "NEXT", /* 286 */ "HAVING", /* 287 */ "RANGE", /* 288 */ "EVERY", /* 289 */ "ORDER", /* 290 */ "SLIMIT", /* 291 */ "SOFFSET", /* 292 */ "LIMIT", /* 293 */ "OFFSET", /* 294 */ "ASC", /* 295 */ "NULLS", /* 296 */ "ABORT", /* 297 */ "AFTER", /* 298 */ "ATTACH", /* 299 */ "BEFORE", /* 300 */ "BEGIN", /* 301 */ "BITAND", /* 302 */ "BITNOT", /* 303 */ "BITOR", /* 304 */ "BLOCKS", /* 305 */ "CHANGE", /* 306 */ "COMMA", /* 307 */ "CONCAT", /* 308 */ "CONFLICT", /* 309 */ "COPY", /* 310 */ "DEFERRED", /* 311 */ "DELIMITERS", /* 312 */ "DETACH", /* 313 */ "DIVIDE", /* 314 */ "DOT", /* 315 */ "EACH", /* 316 */ "FAIL", /* 317 */ "FILE", /* 318 */ "FOR", /* 319 */ "GLOB", /* 320 */ "ID", /* 321 */ "IMMEDIATE", /* 322 */ "IMPORT", /* 323 */ "INITIALLY", /* 324 */ "INSTEAD", /* 325 */ "ISNULL", /* 326 */ "KEY", /* 327 */ "MODULES", /* 328 */ "NK_BITNOT", /* 329 */ "NK_SEMI", /* 330 */ "NOTNULL", /* 331 */ "OF", /* 332 */ "PLUS", /* 333 */ "PRIVILEGE", /* 334 */ "RAISE", /* 335 */ "RESTRICT", /* 336 */ "ROW", /* 337 */ "SEMI", /* 338 */ "STAR", /* 339 */ "STATEMENT", /* 340 */ "STRICT", /* 341 */ "STRING", /* 342 */ "TIMES", /* 343 */ "VALUES", /* 344 */ "VARIABLE", /* 345 */ "WAL", /* 346 */ "cmd", /* 347 */ "account_options", /* 348 */ "alter_account_options", /* 349 */ "literal", /* 350 */ "alter_account_option", /* 351 */ "ip_range_list", /* 352 */ "white_list", /* 353 */ "white_list_opt", /* 354 */ "user_name", /* 355 */ "sysinfo_opt", /* 356 */ "privileges", /* 357 */ "priv_level", /* 358 */ "with_opt", /* 359 */ "priv_type_list", /* 360 */ "priv_type", /* 361 */ "db_name", /* 362 */ "table_name", /* 363 */ "topic_name", /* 364 */ "search_condition", /* 365 */ "dnode_endpoint", /* 366 */ "force_opt", /* 367 */ "unsafe_opt", /* 368 */ "not_exists_opt", /* 369 */ "db_options", /* 370 */ "exists_opt", /* 371 */ "alter_db_options", /* 372 */ "speed_opt", /* 373 */ "start_opt", /* 374 */ "end_opt", /* 375 */ "integer_list", /* 376 */ "variable_list", /* 377 */ "retention_list", /* 378 */ "signed", /* 379 */ "alter_db_option", /* 380 */ "retention", /* 381 */ "full_table_name", /* 382 */ "column_def_list", /* 383 */ "tags_def_opt", /* 384 */ "table_options", /* 385 */ "multi_create_clause", /* 386 */ "tags_def", /* 387 */ "multi_drop_clause", /* 388 */ "alter_table_clause", /* 389 */ "alter_table_options", /* 390 */ "column_name", /* 391 */ "type_name", /* 392 */ "signed_literal", /* 393 */ "create_subtable_clause", /* 394 */ "specific_cols_opt", /* 395 */ "expression_list", /* 396 */ "drop_table_clause", /* 397 */ "col_name_list", /* 398 */ "column_def", /* 399 */ "duration_list", /* 400 */ "rollup_func_list", /* 401 */ "alter_table_option", /* 402 */ "duration_literal", /* 403 */ "rollup_func_name", /* 404 */ "function_name", /* 405 */ "col_name", /* 406 */ "db_kind_opt", /* 407 */ "table_kind_db_name_cond_opt", /* 408 */ "like_pattern_opt", /* 409 */ "db_name_cond_opt", /* 410 */ "table_name_cond", /* 411 */ "from_db_opt", /* 412 */ "tag_list_opt", /* 413 */ "table_kind", /* 414 */ "tag_item", /* 415 */ "column_alias", /* 416 */ "index_options", /* 417 */ "full_index_name", /* 418 */ "index_name", /* 419 */ "func_list", /* 420 */ "sliding_opt", /* 421 */ "sma_stream_opt", /* 422 */ "func", /* 423 */ "sma_func_name", /* 424 */ "with_meta", /* 425 */ "query_or_subquery", /* 426 */ "where_clause_opt", /* 427 */ "cgroup_name", /* 428 */ "analyze_opt", /* 429 */ "explain_options", /* 430 */ "insert_query", /* 431 */ "or_replace_opt", /* 432 */ "agg_func_opt", /* 433 */ "bufsize_opt", /* 434 */ "language_opt", /* 435 */ "full_view_name", /* 436 */ "view_name", /* 437 */ "stream_name", /* 438 */ "stream_options", /* 439 */ "col_list_opt", /* 440 */ "tag_def_or_ref_opt", /* 441 */ "subtable_opt", /* 442 */ "ignore_opt", /* 443 */ "expression", /* 444 */ "on_vgroup_id", /* 445 */ "dnode_list", /* 446 */ "literal_func", /* 447 */ "literal_list", /* 448 */ "table_alias", /* 449 */ "expr_or_subquery", /* 450 */ "pseudo_column", /* 451 */ "column_reference", /* 452 */ "function_expression", /* 453 */ "case_when_expression", /* 454 */ "star_func", /* 455 */ "star_func_para_list", /* 456 */ "noarg_func", /* 457 */ "other_para_list", /* 458 */ "star_func_para", /* 459 */ "when_then_list", /* 460 */ "case_when_else_opt", /* 461 */ "common_expression", /* 462 */ "when_then_expr", /* 463 */ "predicate", /* 464 */ "compare_op", /* 465 */ "in_op", /* 466 */ "in_predicate_value", /* 467 */ "boolean_value_expression", /* 468 */ "boolean_primary", /* 469 */ "from_clause_opt", /* 470 */ "table_reference_list", /* 471 */ "table_reference", /* 472 */ "table_primary", /* 473 */ "joined_table", /* 474 */ "alias_opt", /* 475 */ "subquery", /* 476 */ "parenthesized_joined_table", /* 477 */ "join_type", /* 478 */ "query_specification", /* 479 */ "hint_list", /* 480 */ "set_quantifier_opt", /* 481 */ "tag_mode_opt", /* 482 */ "select_list", /* 483 */ "partition_by_clause_opt", /* 484 */ "range_opt", /* 485 */ "every_opt", /* 486 */ "fill_opt", /* 487 */ "twindow_clause_opt", /* 488 */ "group_by_clause_opt", /* 489 */ "having_clause_opt", /* 490 */ "select_item", /* 491 */ "partition_list", /* 492 */ "partition_item", /* 493 */ "interval_sliding_duration_literal", /* 494 */ "fill_mode", /* 495 */ "group_by_list", /* 496 */ "query_expression", /* 497 */ "query_simple", /* 498 */ "order_by_clause_opt", /* 499 */ "slimit_clause_opt", /* 500 */ "limit_clause_opt", /* 501 */ "union_query_expression", /* 502 */ "query_simple_or_subquery", /* 503 */ "sort_specification_list", /* 504 */ "sort_specification", /* 505 */ "ordering_specification_opt", /* 506 */ "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_type ::= ALTER", /* 48 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", /* 49 */ "priv_level ::= db_name NK_DOT NK_STAR", /* 50 */ "priv_level ::= db_name NK_DOT table_name", /* 51 */ "priv_level ::= topic_name", /* 52 */ "with_opt ::=", /* 53 */ "with_opt ::= WITH search_condition", /* 54 */ "cmd ::= CREATE DNODE dnode_endpoint", /* 55 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", /* 56 */ "cmd ::= DROP DNODE NK_INTEGER force_opt", /* 57 */ "cmd ::= DROP DNODE dnode_endpoint force_opt", /* 58 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt", /* 59 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt", /* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", /* 61 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", /* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING", /* 63 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", /* 64 */ "cmd ::= RESTORE DNODE NK_INTEGER", /* 65 */ "dnode_endpoint ::= NK_STRING", /* 66 */ "dnode_endpoint ::= NK_ID", /* 67 */ "dnode_endpoint ::= NK_IPTOKEN", /* 68 */ "force_opt ::=", /* 69 */ "force_opt ::= FORCE", /* 70 */ "unsafe_opt ::= UNSAFE", /* 71 */ "cmd ::= ALTER LOCAL NK_STRING", /* 72 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", /* 73 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", /* 74 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", /* 75 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER", /* 76 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", /* 77 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", /* 78 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", /* 79 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", /* 80 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", /* 81 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", /* 82 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER", /* 83 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER", /* 84 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", /* 85 */ "cmd ::= DROP DATABASE exists_opt db_name", /* 86 */ "cmd ::= USE db_name", /* 87 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 88 */ "cmd ::= FLUSH DATABASE db_name", /* 89 */ "cmd ::= TRIM DATABASE db_name speed_opt", /* 90 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt", /* 91 */ "not_exists_opt ::= IF NOT EXISTS", /* 92 */ "not_exists_opt ::=", /* 93 */ "exists_opt ::= IF EXISTS", /* 94 */ "exists_opt ::=", /* 95 */ "db_options ::=", /* 96 */ "db_options ::= db_options BUFFER NK_INTEGER", /* 97 */ "db_options ::= db_options CACHEMODEL NK_STRING", /* 98 */ "db_options ::= db_options CACHESIZE NK_INTEGER", /* 99 */ "db_options ::= db_options COMP NK_INTEGER", /* 100 */ "db_options ::= db_options DURATION NK_INTEGER", /* 101 */ "db_options ::= db_options DURATION NK_VARIABLE", /* 102 */ "db_options ::= db_options MAXROWS NK_INTEGER", /* 103 */ "db_options ::= db_options MINROWS NK_INTEGER", /* 104 */ "db_options ::= db_options KEEP integer_list", /* 105 */ "db_options ::= db_options KEEP variable_list", /* 106 */ "db_options ::= db_options PAGES NK_INTEGER", /* 107 */ "db_options ::= db_options PAGESIZE NK_INTEGER", /* 108 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", /* 109 */ "db_options ::= db_options PRECISION NK_STRING", /* 110 */ "db_options ::= db_options REPLICA NK_INTEGER", /* 111 */ "db_options ::= db_options VGROUPS NK_INTEGER", /* 112 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", /* 113 */ "db_options ::= db_options RETENTIONS retention_list", /* 114 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", /* 115 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", /* 116 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", /* 117 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", /* 118 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 119 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", /* 120 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 121 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", /* 122 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", /* 123 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", /* 124 */ "db_options ::= db_options TABLE_PREFIX signed", /* 125 */ "db_options ::= db_options TABLE_SUFFIX signed", /* 126 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER", /* 127 */ "alter_db_options ::= alter_db_option", /* 128 */ "alter_db_options ::= alter_db_options alter_db_option", /* 129 */ "alter_db_option ::= BUFFER NK_INTEGER", /* 130 */ "alter_db_option ::= CACHEMODEL NK_STRING", /* 131 */ "alter_db_option ::= CACHESIZE NK_INTEGER", /* 132 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", /* 133 */ "alter_db_option ::= KEEP integer_list", /* 134 */ "alter_db_option ::= KEEP variable_list", /* 135 */ "alter_db_option ::= PAGES NK_INTEGER", /* 136 */ "alter_db_option ::= REPLICA NK_INTEGER", /* 137 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", /* 138 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", /* 139 */ "alter_db_option ::= MINROWS NK_INTEGER", /* 140 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER", /* 141 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 142 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER", /* 143 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 144 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER", /* 145 */ "integer_list ::= NK_INTEGER", /* 146 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", /* 147 */ "variable_list ::= NK_VARIABLE", /* 148 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", /* 149 */ "retention_list ::= retention", /* 150 */ "retention_list ::= retention_list NK_COMMA retention", /* 151 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", /* 152 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE", /* 153 */ "speed_opt ::=", /* 154 */ "speed_opt ::= BWLIMIT NK_INTEGER", /* 155 */ "start_opt ::=", /* 156 */ "start_opt ::= START WITH NK_INTEGER", /* 157 */ "start_opt ::= START WITH NK_STRING", /* 158 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", /* 159 */ "end_opt ::=", /* 160 */ "end_opt ::= END WITH NK_INTEGER", /* 161 */ "end_opt ::= END WITH NK_STRING", /* 162 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", /* 163 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", /* 164 */ "cmd ::= CREATE TABLE multi_create_clause", /* 165 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", /* 166 */ "cmd ::= DROP TABLE multi_drop_clause", /* 167 */ "cmd ::= DROP STABLE exists_opt full_table_name", /* 168 */ "cmd ::= ALTER TABLE alter_table_clause", /* 169 */ "cmd ::= ALTER STABLE alter_table_clause", /* 170 */ "alter_table_clause ::= full_table_name alter_table_options", /* 171 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", /* 172 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", /* 173 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", /* 174 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", /* 175 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", /* 176 */ "alter_table_clause ::= full_table_name DROP TAG column_name", /* 177 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", /* 178 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", /* 179 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", /* 180 */ "multi_create_clause ::= create_subtable_clause", /* 181 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", /* 182 */ "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", /* 183 */ "multi_drop_clause ::= drop_table_clause", /* 184 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", /* 185 */ "drop_table_clause ::= exists_opt full_table_name", /* 186 */ "specific_cols_opt ::=", /* 187 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", /* 188 */ "full_table_name ::= table_name", /* 189 */ "full_table_name ::= db_name NK_DOT table_name", /* 190 */ "column_def_list ::= column_def", /* 191 */ "column_def_list ::= column_def_list NK_COMMA column_def", /* 192 */ "column_def ::= column_name type_name", /* 193 */ "type_name ::= BOOL", /* 194 */ "type_name ::= TINYINT", /* 195 */ "type_name ::= SMALLINT", /* 196 */ "type_name ::= INT", /* 197 */ "type_name ::= INTEGER", /* 198 */ "type_name ::= BIGINT", /* 199 */ "type_name ::= FLOAT", /* 200 */ "type_name ::= DOUBLE", /* 201 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", /* 202 */ "type_name ::= TIMESTAMP", /* 203 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", /* 204 */ "type_name ::= TINYINT UNSIGNED", /* 205 */ "type_name ::= SMALLINT UNSIGNED", /* 206 */ "type_name ::= INT UNSIGNED", /* 207 */ "type_name ::= BIGINT UNSIGNED", /* 208 */ "type_name ::= JSON", /* 209 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", /* 210 */ "type_name ::= MEDIUMBLOB", /* 211 */ "type_name ::= BLOB", /* 212 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", /* 213 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", /* 214 */ "type_name ::= DECIMAL", /* 215 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 216 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 217 */ "tags_def_opt ::=", /* 218 */ "tags_def_opt ::= tags_def", /* 219 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", /* 220 */ "table_options ::=", /* 221 */ "table_options ::= table_options COMMENT NK_STRING", /* 222 */ "table_options ::= table_options MAX_DELAY duration_list", /* 223 */ "table_options ::= table_options WATERMARK duration_list", /* 224 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", /* 225 */ "table_options ::= table_options TTL NK_INTEGER", /* 226 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", /* 227 */ "table_options ::= table_options DELETE_MARK duration_list", /* 228 */ "alter_table_options ::= alter_table_option", /* 229 */ "alter_table_options ::= alter_table_options alter_table_option", /* 230 */ "alter_table_option ::= COMMENT NK_STRING", /* 231 */ "alter_table_option ::= TTL NK_INTEGER", /* 232 */ "duration_list ::= duration_literal", /* 233 */ "duration_list ::= duration_list NK_COMMA duration_literal", /* 234 */ "rollup_func_list ::= rollup_func_name", /* 235 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", /* 236 */ "rollup_func_name ::= function_name", /* 237 */ "rollup_func_name ::= FIRST", /* 238 */ "rollup_func_name ::= LAST", /* 239 */ "col_name_list ::= col_name", /* 240 */ "col_name_list ::= col_name_list NK_COMMA col_name", /* 241 */ "col_name ::= column_name", /* 242 */ "cmd ::= SHOW DNODES", /* 243 */ "cmd ::= SHOW USERS", /* 244 */ "cmd ::= SHOW USER PRIVILEGES", /* 245 */ "cmd ::= SHOW db_kind_opt DATABASES", /* 246 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", /* 247 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", /* 248 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", /* 249 */ "cmd ::= SHOW MNODES", /* 250 */ "cmd ::= SHOW QNODES", /* 251 */ "cmd ::= SHOW FUNCTIONS", /* 252 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", /* 253 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", /* 254 */ "cmd ::= SHOW STREAMS", /* 255 */ "cmd ::= SHOW ACCOUNTS", /* 256 */ "cmd ::= SHOW APPS", /* 257 */ "cmd ::= SHOW CONNECTIONS", /* 258 */ "cmd ::= SHOW LICENCES", /* 259 */ "cmd ::= SHOW GRANTS", /* 260 */ "cmd ::= SHOW CREATE DATABASE db_name", /* 261 */ "cmd ::= SHOW CREATE TABLE full_table_name", /* 262 */ "cmd ::= SHOW CREATE STABLE full_table_name", /* 263 */ "cmd ::= SHOW QUERIES", /* 264 */ "cmd ::= SHOW SCORES", /* 265 */ "cmd ::= SHOW TOPICS", /* 266 */ "cmd ::= SHOW VARIABLES", /* 267 */ "cmd ::= SHOW CLUSTER VARIABLES", /* 268 */ "cmd ::= SHOW LOCAL VARIABLES", /* 269 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", /* 270 */ "cmd ::= SHOW BNODES", /* 271 */ "cmd ::= SHOW SNODES", /* 272 */ "cmd ::= SHOW CLUSTER", /* 273 */ "cmd ::= SHOW TRANSACTIONS", /* 274 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", /* 275 */ "cmd ::= SHOW CONSUMERS", /* 276 */ "cmd ::= SHOW SUBSCRIPTIONS", /* 277 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", /* 278 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", /* 279 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", /* 280 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", /* 281 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", /* 282 */ "cmd ::= SHOW VNODES", /* 283 */ "cmd ::= SHOW db_name_cond_opt ALIVE", /* 284 */ "cmd ::= SHOW CLUSTER ALIVE", /* 285 */ "cmd ::= SHOW db_name_cond_opt VIEWS", /* 286 */ "cmd ::= SHOW CREATE VIEW full_table_name", /* 287 */ "table_kind_db_name_cond_opt ::=", /* 288 */ "table_kind_db_name_cond_opt ::= table_kind", /* 289 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", /* 290 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", /* 291 */ "table_kind ::= NORMAL", /* 292 */ "table_kind ::= CHILD", /* 293 */ "db_name_cond_opt ::=", /* 294 */ "db_name_cond_opt ::= db_name NK_DOT", /* 295 */ "like_pattern_opt ::=", /* 296 */ "like_pattern_opt ::= LIKE NK_STRING", /* 297 */ "table_name_cond ::= table_name", /* 298 */ "from_db_opt ::=", /* 299 */ "from_db_opt ::= FROM db_name", /* 300 */ "tag_list_opt ::=", /* 301 */ "tag_list_opt ::= tag_item", /* 302 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", /* 303 */ "tag_item ::= TBNAME", /* 304 */ "tag_item ::= QTAGS", /* 305 */ "tag_item ::= column_name", /* 306 */ "tag_item ::= column_name column_alias", /* 307 */ "tag_item ::= column_name AS column_alias", /* 308 */ "db_kind_opt ::=", /* 309 */ "db_kind_opt ::= USER", /* 310 */ "db_kind_opt ::= SYSTEM", /* 311 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", /* 312 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", /* 313 */ "cmd ::= DROP INDEX exists_opt full_index_name", /* 314 */ "full_index_name ::= index_name", /* 315 */ "full_index_name ::= db_name NK_DOT index_name", /* 316 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", /* 317 */ "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", /* 318 */ "func_list ::= func", /* 319 */ "func_list ::= func_list NK_COMMA func", /* 320 */ "func ::= sma_func_name NK_LP expression_list NK_RP", /* 321 */ "sma_func_name ::= function_name", /* 322 */ "sma_func_name ::= COUNT", /* 323 */ "sma_func_name ::= FIRST", /* 324 */ "sma_func_name ::= LAST", /* 325 */ "sma_func_name ::= LAST_ROW", /* 326 */ "sma_stream_opt ::=", /* 327 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", /* 328 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", /* 329 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", /* 330 */ "with_meta ::= AS", /* 331 */ "with_meta ::= WITH META AS", /* 332 */ "with_meta ::= ONLY META AS", /* 333 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", /* 334 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", /* 335 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", /* 336 */ "cmd ::= DROP TOPIC exists_opt topic_name", /* 337 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", /* 338 */ "cmd ::= DESC full_table_name", /* 339 */ "cmd ::= DESCRIBE full_table_name", /* 340 */ "cmd ::= RESET QUERY CACHE", /* 341 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", /* 342 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", /* 343 */ "analyze_opt ::=", /* 344 */ "analyze_opt ::= ANALYZE", /* 345 */ "explain_options ::=", /* 346 */ "explain_options ::= explain_options VERBOSE NK_BOOL", /* 347 */ "explain_options ::= explain_options RATIO NK_FLOAT", /* 348 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", /* 349 */ "cmd ::= DROP FUNCTION exists_opt function_name", /* 350 */ "agg_func_opt ::=", /* 351 */ "agg_func_opt ::= AGGREGATE", /* 352 */ "bufsize_opt ::=", /* 353 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", /* 354 */ "language_opt ::=", /* 355 */ "language_opt ::= LANGUAGE NK_STRING", /* 356 */ "or_replace_opt ::=", /* 357 */ "or_replace_opt ::= OR REPLACE", /* 358 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", /* 359 */ "cmd ::= DROP VIEW exists_opt full_view_name", /* 360 */ "full_view_name ::= view_name", /* 361 */ "full_view_name ::= db_name NK_DOT view_name", /* 362 */ "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", /* 363 */ "cmd ::= DROP STREAM exists_opt stream_name", /* 364 */ "cmd ::= PAUSE STREAM exists_opt stream_name", /* 365 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", /* 366 */ "col_list_opt ::=", /* 367 */ "col_list_opt ::= NK_LP col_name_list NK_RP", /* 368 */ "tag_def_or_ref_opt ::=", /* 369 */ "tag_def_or_ref_opt ::= tags_def", /* 370 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", /* 371 */ "stream_options ::=", /* 372 */ "stream_options ::= stream_options TRIGGER AT_ONCE", /* 373 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", /* 374 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", /* 375 */ "stream_options ::= stream_options WATERMARK duration_literal", /* 376 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", /* 377 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", /* 378 */ "stream_options ::= stream_options DELETE_MARK duration_literal", /* 379 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", /* 380 */ "subtable_opt ::=", /* 381 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", /* 382 */ "ignore_opt ::=", /* 383 */ "ignore_opt ::= IGNORE UNTREATED", /* 384 */ "cmd ::= KILL CONNECTION NK_INTEGER", /* 385 */ "cmd ::= KILL QUERY NK_STRING", /* 386 */ "cmd ::= KILL TRANSACTION NK_INTEGER", /* 387 */ "cmd ::= BALANCE VGROUP", /* 388 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", /* 389 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", /* 390 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", /* 391 */ "cmd ::= SPLIT VGROUP NK_INTEGER", /* 392 */ "on_vgroup_id ::=", /* 393 */ "on_vgroup_id ::= ON NK_INTEGER", /* 394 */ "dnode_list ::= DNODE NK_INTEGER", /* 395 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", /* 396 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 397 */ "cmd ::= query_or_subquery", /* 398 */ "cmd ::= insert_query", /* 399 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", /* 400 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", /* 401 */ "literal ::= NK_INTEGER", /* 402 */ "literal ::= NK_FLOAT", /* 403 */ "literal ::= NK_STRING", /* 404 */ "literal ::= NK_BOOL", /* 405 */ "literal ::= TIMESTAMP NK_STRING", /* 406 */ "literal ::= duration_literal", /* 407 */ "literal ::= NULL", /* 408 */ "literal ::= NK_QUESTION", /* 409 */ "duration_literal ::= NK_VARIABLE", /* 410 */ "signed ::= NK_INTEGER", /* 411 */ "signed ::= NK_PLUS NK_INTEGER", /* 412 */ "signed ::= NK_MINUS NK_INTEGER", /* 413 */ "signed ::= NK_FLOAT", /* 414 */ "signed ::= NK_PLUS NK_FLOAT", /* 415 */ "signed ::= NK_MINUS NK_FLOAT", /* 416 */ "signed_literal ::= signed", /* 417 */ "signed_literal ::= NK_STRING", /* 418 */ "signed_literal ::= NK_BOOL", /* 419 */ "signed_literal ::= TIMESTAMP NK_STRING", /* 420 */ "signed_literal ::= duration_literal", /* 421 */ "signed_literal ::= NULL", /* 422 */ "signed_literal ::= literal_func", /* 423 */ "signed_literal ::= NK_QUESTION", /* 424 */ "literal_list ::= signed_literal", /* 425 */ "literal_list ::= literal_list NK_COMMA signed_literal", /* 426 */ "db_name ::= NK_ID", /* 427 */ "table_name ::= NK_ID", /* 428 */ "column_name ::= NK_ID", /* 429 */ "function_name ::= NK_ID", /* 430 */ "view_name ::= NK_ID", /* 431 */ "table_alias ::= NK_ID", /* 432 */ "column_alias ::= NK_ID", /* 433 */ "column_alias ::= NK_ALIAS", /* 434 */ "user_name ::= NK_ID", /* 435 */ "topic_name ::= NK_ID", /* 436 */ "stream_name ::= NK_ID", /* 437 */ "cgroup_name ::= NK_ID", /* 438 */ "index_name ::= NK_ID", /* 439 */ "expr_or_subquery ::= expression", /* 440 */ "expression ::= literal", /* 441 */ "expression ::= pseudo_column", /* 442 */ "expression ::= column_reference", /* 443 */ "expression ::= function_expression", /* 444 */ "expression ::= case_when_expression", /* 445 */ "expression ::= NK_LP expression NK_RP", /* 446 */ "expression ::= NK_PLUS expr_or_subquery", /* 447 */ "expression ::= NK_MINUS expr_or_subquery", /* 448 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", /* 449 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", /* 450 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", /* 451 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", /* 452 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", /* 453 */ "expression ::= column_reference NK_ARROW NK_STRING", /* 454 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", /* 455 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", /* 456 */ "expression_list ::= expr_or_subquery", /* 457 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", /* 458 */ "column_reference ::= column_name", /* 459 */ "column_reference ::= table_name NK_DOT column_name", /* 460 */ "column_reference ::= NK_ALIAS", /* 461 */ "column_reference ::= table_name NK_DOT NK_ALIAS", /* 462 */ "pseudo_column ::= ROWTS", /* 463 */ "pseudo_column ::= TBNAME", /* 464 */ "pseudo_column ::= table_name NK_DOT TBNAME", /* 465 */ "pseudo_column ::= QSTART", /* 466 */ "pseudo_column ::= QEND", /* 467 */ "pseudo_column ::= QDURATION", /* 468 */ "pseudo_column ::= WSTART", /* 469 */ "pseudo_column ::= WEND", /* 470 */ "pseudo_column ::= WDURATION", /* 471 */ "pseudo_column ::= IROWTS", /* 472 */ "pseudo_column ::= ISFILLED", /* 473 */ "pseudo_column ::= QTAGS", /* 474 */ "function_expression ::= function_name NK_LP expression_list NK_RP", /* 475 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", /* 476 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", /* 477 */ "function_expression ::= literal_func", /* 478 */ "literal_func ::= noarg_func NK_LP NK_RP", /* 479 */ "literal_func ::= NOW", /* 480 */ "noarg_func ::= NOW", /* 481 */ "noarg_func ::= TODAY", /* 482 */ "noarg_func ::= TIMEZONE", /* 483 */ "noarg_func ::= DATABASE", /* 484 */ "noarg_func ::= CLIENT_VERSION", /* 485 */ "noarg_func ::= SERVER_VERSION", /* 486 */ "noarg_func ::= SERVER_STATUS", /* 487 */ "noarg_func ::= CURRENT_USER", /* 488 */ "noarg_func ::= USER", /* 489 */ "star_func ::= COUNT", /* 490 */ "star_func ::= FIRST", /* 491 */ "star_func ::= LAST", /* 492 */ "star_func ::= LAST_ROW", /* 493 */ "star_func_para_list ::= NK_STAR", /* 494 */ "star_func_para_list ::= other_para_list", /* 495 */ "other_para_list ::= star_func_para", /* 496 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", /* 497 */ "star_func_para ::= expr_or_subquery", /* 498 */ "star_func_para ::= table_name NK_DOT NK_STAR", /* 499 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", /* 500 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", /* 501 */ "when_then_list ::= when_then_expr", /* 502 */ "when_then_list ::= when_then_list when_then_expr", /* 503 */ "when_then_expr ::= WHEN common_expression THEN common_expression", /* 504 */ "case_when_else_opt ::=", /* 505 */ "case_when_else_opt ::= ELSE common_expression", /* 506 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", /* 507 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", /* 508 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", /* 509 */ "predicate ::= expr_or_subquery IS NULL", /* 510 */ "predicate ::= expr_or_subquery IS NOT NULL", /* 511 */ "predicate ::= expr_or_subquery in_op in_predicate_value", /* 512 */ "compare_op ::= NK_LT", /* 513 */ "compare_op ::= NK_GT", /* 514 */ "compare_op ::= NK_LE", /* 515 */ "compare_op ::= NK_GE", /* 516 */ "compare_op ::= NK_NE", /* 517 */ "compare_op ::= NK_EQ", /* 518 */ "compare_op ::= LIKE", /* 519 */ "compare_op ::= NOT LIKE", /* 520 */ "compare_op ::= MATCH", /* 521 */ "compare_op ::= NMATCH", /* 522 */ "compare_op ::= CONTAINS", /* 523 */ "in_op ::= IN", /* 524 */ "in_op ::= NOT IN", /* 525 */ "in_predicate_value ::= NK_LP literal_list NK_RP", /* 526 */ "boolean_value_expression ::= boolean_primary", /* 527 */ "boolean_value_expression ::= NOT boolean_primary", /* 528 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 529 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 530 */ "boolean_primary ::= predicate", /* 531 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 532 */ "common_expression ::= expr_or_subquery", /* 533 */ "common_expression ::= boolean_value_expression", /* 534 */ "from_clause_opt ::=", /* 535 */ "from_clause_opt ::= FROM table_reference_list", /* 536 */ "table_reference_list ::= table_reference", /* 537 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 538 */ "table_reference ::= table_primary", /* 539 */ "table_reference ::= joined_table", /* 540 */ "table_primary ::= table_name alias_opt", /* 541 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 542 */ "table_primary ::= subquery alias_opt", /* 543 */ "table_primary ::= parenthesized_joined_table", /* 544 */ "alias_opt ::=", /* 545 */ "alias_opt ::= table_alias", /* 546 */ "alias_opt ::= AS table_alias", /* 547 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 548 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 549 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 550 */ "join_type ::=", /* 551 */ "join_type ::= INNER", /* 552 */ "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", /* 553 */ "hint_list ::=", /* 554 */ "hint_list ::= NK_HINT", /* 555 */ "tag_mode_opt ::=", /* 556 */ "tag_mode_opt ::= TAGS", /* 557 */ "set_quantifier_opt ::=", /* 558 */ "set_quantifier_opt ::= DISTINCT", /* 559 */ "set_quantifier_opt ::= ALL", /* 560 */ "select_list ::= select_item", /* 561 */ "select_list ::= select_list NK_COMMA select_item", /* 562 */ "select_item ::= NK_STAR", /* 563 */ "select_item ::= common_expression", /* 564 */ "select_item ::= common_expression column_alias", /* 565 */ "select_item ::= common_expression AS column_alias", /* 566 */ "select_item ::= table_name NK_DOT NK_STAR", /* 567 */ "where_clause_opt ::=", /* 568 */ "where_clause_opt ::= WHERE search_condition", /* 569 */ "partition_by_clause_opt ::=", /* 570 */ "partition_by_clause_opt ::= PARTITION BY partition_list", /* 571 */ "partition_list ::= partition_item", /* 572 */ "partition_list ::= partition_list NK_COMMA partition_item", /* 573 */ "partition_item ::= expr_or_subquery", /* 574 */ "partition_item ::= expr_or_subquery column_alias", /* 575 */ "partition_item ::= expr_or_subquery AS column_alias", /* 576 */ "twindow_clause_opt ::=", /* 577 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", /* 578 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", /* 579 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", /* 580 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", /* 581 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", /* 582 */ "sliding_opt ::=", /* 583 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", /* 584 */ "interval_sliding_duration_literal ::= NK_VARIABLE", /* 585 */ "interval_sliding_duration_literal ::= NK_STRING", /* 586 */ "interval_sliding_duration_literal ::= NK_INTEGER", /* 587 */ "fill_opt ::=", /* 588 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 589 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", /* 590 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", /* 591 */ "fill_mode ::= NONE", /* 592 */ "fill_mode ::= PREV", /* 593 */ "fill_mode ::= NULL", /* 594 */ "fill_mode ::= NULL_F", /* 595 */ "fill_mode ::= LINEAR", /* 596 */ "fill_mode ::= NEXT", /* 597 */ "group_by_clause_opt ::=", /* 598 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 599 */ "group_by_list ::= expr_or_subquery", /* 600 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", /* 601 */ "having_clause_opt ::=", /* 602 */ "having_clause_opt ::= HAVING search_condition", /* 603 */ "range_opt ::=", /* 604 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", /* 605 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", /* 606 */ "every_opt ::=", /* 607 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", /* 608 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 609 */ "query_simple ::= query_specification", /* 610 */ "query_simple ::= union_query_expression", /* 611 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", /* 612 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", /* 613 */ "query_simple_or_subquery ::= query_simple", /* 614 */ "query_simple_or_subquery ::= subquery", /* 615 */ "query_or_subquery ::= query_expression", /* 616 */ "query_or_subquery ::= subquery", /* 617 */ "order_by_clause_opt ::=", /* 618 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 619 */ "slimit_clause_opt ::=", /* 620 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 621 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 622 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 623 */ "limit_clause_opt ::=", /* 624 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 625 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 626 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 627 */ "subquery ::= NK_LP query_expression NK_RP", /* 628 */ "subquery ::= NK_LP subquery NK_RP", /* 629 */ "search_condition ::= common_expression", /* 630 */ "sort_specification_list ::= sort_specification", /* 631 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 632 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", /* 633 */ "ordering_specification_opt ::=", /* 634 */ "ordering_specification_opt ::= ASC", /* 635 */ "ordering_specification_opt ::= DESC", /* 636 */ "null_ordering_opt ::=", /* 637 */ "null_ordering_opt ::= NULLS FIRST", /* 638 */ "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 346: /* cmd */ case 349: /* literal */ case 358: /* with_opt */ case 364: /* search_condition */ case 369: /* db_options */ case 371: /* alter_db_options */ case 373: /* start_opt */ case 374: /* end_opt */ case 378: /* signed */ case 380: /* retention */ case 381: /* full_table_name */ case 384: /* table_options */ case 388: /* alter_table_clause */ case 389: /* alter_table_options */ case 392: /* signed_literal */ case 393: /* create_subtable_clause */ case 396: /* drop_table_clause */ case 398: /* column_def */ case 402: /* duration_literal */ case 403: /* rollup_func_name */ case 405: /* col_name */ case 408: /* like_pattern_opt */ case 409: /* db_name_cond_opt */ case 410: /* table_name_cond */ case 411: /* from_db_opt */ case 414: /* tag_item */ case 416: /* index_options */ case 417: /* full_index_name */ case 420: /* sliding_opt */ case 421: /* sma_stream_opt */ case 422: /* func */ case 425: /* query_or_subquery */ case 426: /* where_clause_opt */ case 429: /* explain_options */ case 430: /* insert_query */ case 435: /* full_view_name */ case 438: /* stream_options */ case 441: /* subtable_opt */ case 443: /* expression */ case 446: /* literal_func */ case 449: /* expr_or_subquery */ case 450: /* pseudo_column */ case 451: /* column_reference */ case 452: /* function_expression */ case 453: /* case_when_expression */ case 458: /* star_func_para */ case 460: /* case_when_else_opt */ case 461: /* common_expression */ case 462: /* when_then_expr */ case 463: /* predicate */ case 466: /* in_predicate_value */ case 467: /* boolean_value_expression */ case 468: /* boolean_primary */ case 469: /* from_clause_opt */ case 470: /* table_reference_list */ case 471: /* table_reference */ case 472: /* table_primary */ case 473: /* joined_table */ case 475: /* subquery */ case 476: /* parenthesized_joined_table */ case 478: /* query_specification */ case 484: /* range_opt */ case 485: /* every_opt */ case 486: /* fill_opt */ case 487: /* twindow_clause_opt */ case 489: /* having_clause_opt */ case 490: /* select_item */ case 492: /* partition_item */ case 493: /* interval_sliding_duration_literal */ case 496: /* query_expression */ case 497: /* query_simple */ case 499: /* slimit_clause_opt */ case 500: /* limit_clause_opt */ case 501: /* union_query_expression */ case 502: /* query_simple_or_subquery */ case 504: /* sort_specification */ { nodesDestroyNode((yypminor->yy80)); } break; case 347: /* account_options */ case 348: /* alter_account_options */ case 350: /* alter_account_option */ case 372: /* speed_opt */ case 424: /* with_meta */ case 433: /* bufsize_opt */ { } break; case 351: /* ip_range_list */ case 352: /* white_list */ case 353: /* white_list_opt */ case 375: /* integer_list */ case 376: /* variable_list */ case 377: /* retention_list */ case 382: /* column_def_list */ case 383: /* tags_def_opt */ case 385: /* multi_create_clause */ case 386: /* tags_def */ case 387: /* multi_drop_clause */ case 394: /* specific_cols_opt */ case 395: /* expression_list */ case 397: /* col_name_list */ case 399: /* duration_list */ case 400: /* rollup_func_list */ case 412: /* tag_list_opt */ case 419: /* func_list */ case 439: /* col_list_opt */ case 440: /* tag_def_or_ref_opt */ case 445: /* dnode_list */ case 447: /* literal_list */ case 455: /* star_func_para_list */ case 457: /* other_para_list */ case 459: /* when_then_list */ case 479: /* hint_list */ case 482: /* select_list */ case 483: /* partition_by_clause_opt */ case 488: /* group_by_clause_opt */ case 491: /* partition_list */ case 495: /* group_by_list */ case 498: /* order_by_clause_opt */ case 503: /* sort_specification_list */ { nodesDestroyList((yypminor->yy106)); } break; case 354: /* user_name */ case 361: /* db_name */ case 362: /* table_name */ case 363: /* topic_name */ case 365: /* dnode_endpoint */ case 390: /* column_name */ case 404: /* function_name */ case 415: /* column_alias */ case 418: /* index_name */ case 423: /* sma_func_name */ case 427: /* cgroup_name */ case 434: /* language_opt */ case 436: /* view_name */ case 437: /* stream_name */ case 444: /* on_vgroup_id */ case 448: /* table_alias */ case 454: /* star_func */ case 456: /* noarg_func */ case 474: /* alias_opt */ { } break; case 355: /* sysinfo_opt */ { } break; case 356: /* privileges */ case 359: /* priv_type_list */ case 360: /* priv_type */ { } break; case 357: /* priv_level */ { } break; case 366: /* force_opt */ case 367: /* unsafe_opt */ case 368: /* not_exists_opt */ case 370: /* exists_opt */ case 428: /* analyze_opt */ case 431: /* or_replace_opt */ case 432: /* agg_func_opt */ case 442: /* ignore_opt */ case 480: /* set_quantifier_opt */ case 481: /* tag_mode_opt */ { } break; case 379: /* alter_db_option */ case 401: /* alter_table_option */ { } break; case 391: /* type_name */ { } break; case 406: /* db_kind_opt */ case 413: /* table_kind */ { } break; case 407: /* table_kind_db_name_cond_opt */ { } break; case 464: /* compare_op */ case 465: /* in_op */ { } break; case 477: /* join_type */ { } break; case 494: /* fill_mode */ { } break; case 505: /* ordering_specification_opt */ { } break; case 506: /* 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[] = { 346, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ 346, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 347, /* (2) account_options ::= */ 347, /* (3) account_options ::= account_options PPS literal */ 347, /* (4) account_options ::= account_options TSERIES literal */ 347, /* (5) account_options ::= account_options STORAGE literal */ 347, /* (6) account_options ::= account_options STREAMS literal */ 347, /* (7) account_options ::= account_options QTIME literal */ 347, /* (8) account_options ::= account_options DBS literal */ 347, /* (9) account_options ::= account_options USERS literal */ 347, /* (10) account_options ::= account_options CONNS literal */ 347, /* (11) account_options ::= account_options STATE literal */ 348, /* (12) alter_account_options ::= alter_account_option */ 348, /* (13) alter_account_options ::= alter_account_options alter_account_option */ 350, /* (14) alter_account_option ::= PASS literal */ 350, /* (15) alter_account_option ::= PPS literal */ 350, /* (16) alter_account_option ::= TSERIES literal */ 350, /* (17) alter_account_option ::= STORAGE literal */ 350, /* (18) alter_account_option ::= STREAMS literal */ 350, /* (19) alter_account_option ::= QTIME literal */ 350, /* (20) alter_account_option ::= DBS literal */ 350, /* (21) alter_account_option ::= USERS literal */ 350, /* (22) alter_account_option ::= CONNS literal */ 350, /* (23) alter_account_option ::= STATE literal */ 351, /* (24) ip_range_list ::= NK_STRING */ 351, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ 352, /* (26) white_list ::= HOST ip_range_list */ 353, /* (27) white_list_opt ::= */ 353, /* (28) white_list_opt ::= white_list */ 346, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ 346, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */ 346, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ 346, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ 346, /* (33) cmd ::= ALTER USER user_name ADD white_list */ 346, /* (34) cmd ::= ALTER USER user_name DROP white_list */ 346, /* (35) cmd ::= DROP USER user_name */ 355, /* (36) sysinfo_opt ::= */ 355, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */ 346, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ 346, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ 356, /* (40) privileges ::= ALL */ 356, /* (41) privileges ::= priv_type_list */ 356, /* (42) privileges ::= SUBSCRIBE */ 359, /* (43) priv_type_list ::= priv_type */ 359, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */ 360, /* (45) priv_type ::= READ */ 360, /* (46) priv_type ::= WRITE */ 360, /* (47) priv_type ::= ALTER */ 357, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */ 357, /* (49) priv_level ::= db_name NK_DOT NK_STAR */ 357, /* (50) priv_level ::= db_name NK_DOT table_name */ 357, /* (51) priv_level ::= topic_name */ 358, /* (52) with_opt ::= */ 358, /* (53) with_opt ::= WITH search_condition */ 346, /* (54) cmd ::= CREATE DNODE dnode_endpoint */ 346, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ 346, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */ 346, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */ 346, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ 346, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ 346, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ 346, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ 346, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */ 346, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ 346, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */ 365, /* (65) dnode_endpoint ::= NK_STRING */ 365, /* (66) dnode_endpoint ::= NK_ID */ 365, /* (67) dnode_endpoint ::= NK_IPTOKEN */ 366, /* (68) force_opt ::= */ 366, /* (69) force_opt ::= FORCE */ 367, /* (70) unsafe_opt ::= UNSAFE */ 346, /* (71) cmd ::= ALTER LOCAL NK_STRING */ 346, /* (72) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ 346, /* (73) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ 346, /* (74) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ 346, /* (75) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ 346, /* (76) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ 346, /* (77) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ 346, /* (78) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ 346, /* (79) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ 346, /* (80) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ 346, /* (81) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ 346, /* (82) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ 346, /* (83) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ 346, /* (84) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ 346, /* (85) cmd ::= DROP DATABASE exists_opt db_name */ 346, /* (86) cmd ::= USE db_name */ 346, /* (87) cmd ::= ALTER DATABASE db_name alter_db_options */ 346, /* (88) cmd ::= FLUSH DATABASE db_name */ 346, /* (89) cmd ::= TRIM DATABASE db_name speed_opt */ 346, /* (90) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ 368, /* (91) not_exists_opt ::= IF NOT EXISTS */ 368, /* (92) not_exists_opt ::= */ 370, /* (93) exists_opt ::= IF EXISTS */ 370, /* (94) exists_opt ::= */ 369, /* (95) db_options ::= */ 369, /* (96) db_options ::= db_options BUFFER NK_INTEGER */ 369, /* (97) db_options ::= db_options CACHEMODEL NK_STRING */ 369, /* (98) db_options ::= db_options CACHESIZE NK_INTEGER */ 369, /* (99) db_options ::= db_options COMP NK_INTEGER */ 369, /* (100) db_options ::= db_options DURATION NK_INTEGER */ 369, /* (101) db_options ::= db_options DURATION NK_VARIABLE */ 369, /* (102) db_options ::= db_options MAXROWS NK_INTEGER */ 369, /* (103) db_options ::= db_options MINROWS NK_INTEGER */ 369, /* (104) db_options ::= db_options KEEP integer_list */ 369, /* (105) db_options ::= db_options KEEP variable_list */ 369, /* (106) db_options ::= db_options PAGES NK_INTEGER */ 369, /* (107) db_options ::= db_options PAGESIZE NK_INTEGER */ 369, /* (108) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ 369, /* (109) db_options ::= db_options PRECISION NK_STRING */ 369, /* (110) db_options ::= db_options REPLICA NK_INTEGER */ 369, /* (111) db_options ::= db_options VGROUPS NK_INTEGER */ 369, /* (112) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ 369, /* (113) db_options ::= db_options RETENTIONS retention_list */ 369, /* (114) db_options ::= db_options SCHEMALESS NK_INTEGER */ 369, /* (115) db_options ::= db_options WAL_LEVEL NK_INTEGER */ 369, /* (116) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ 369, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ 369, /* (118) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 369, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ 369, /* (120) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 369, /* (121) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ 369, /* (122) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ 369, /* (123) db_options ::= db_options STT_TRIGGER NK_INTEGER */ 369, /* (124) db_options ::= db_options TABLE_PREFIX signed */ 369, /* (125) db_options ::= db_options TABLE_SUFFIX signed */ 369, /* (126) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ 371, /* (127) alter_db_options ::= alter_db_option */ 371, /* (128) alter_db_options ::= alter_db_options alter_db_option */ 379, /* (129) alter_db_option ::= BUFFER NK_INTEGER */ 379, /* (130) alter_db_option ::= CACHEMODEL NK_STRING */ 379, /* (131) alter_db_option ::= CACHESIZE NK_INTEGER */ 379, /* (132) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ 379, /* (133) alter_db_option ::= KEEP integer_list */ 379, /* (134) alter_db_option ::= KEEP variable_list */ 379, /* (135) alter_db_option ::= PAGES NK_INTEGER */ 379, /* (136) alter_db_option ::= REPLICA NK_INTEGER */ 379, /* (137) alter_db_option ::= WAL_LEVEL NK_INTEGER */ 379, /* (138) alter_db_option ::= STT_TRIGGER NK_INTEGER */ 379, /* (139) alter_db_option ::= MINROWS NK_INTEGER */ 379, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ 379, /* (141) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 379, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ 379, /* (143) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 379, /* (144) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ 375, /* (145) integer_list ::= NK_INTEGER */ 375, /* (146) integer_list ::= integer_list NK_COMMA NK_INTEGER */ 376, /* (147) variable_list ::= NK_VARIABLE */ 376, /* (148) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ 377, /* (149) retention_list ::= retention */ 377, /* (150) retention_list ::= retention_list NK_COMMA retention */ 380, /* (151) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 380, /* (152) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ 372, /* (153) speed_opt ::= */ 372, /* (154) speed_opt ::= BWLIMIT NK_INTEGER */ 373, /* (155) start_opt ::= */ 373, /* (156) start_opt ::= START WITH NK_INTEGER */ 373, /* (157) start_opt ::= START WITH NK_STRING */ 373, /* (158) start_opt ::= START WITH TIMESTAMP NK_STRING */ 374, /* (159) end_opt ::= */ 374, /* (160) end_opt ::= END WITH NK_INTEGER */ 374, /* (161) end_opt ::= END WITH NK_STRING */ 374, /* (162) end_opt ::= END WITH TIMESTAMP NK_STRING */ 346, /* (163) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ 346, /* (164) cmd ::= CREATE TABLE multi_create_clause */ 346, /* (165) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ 346, /* (166) cmd ::= DROP TABLE multi_drop_clause */ 346, /* (167) cmd ::= DROP STABLE exists_opt full_table_name */ 346, /* (168) cmd ::= ALTER TABLE alter_table_clause */ 346, /* (169) cmd ::= ALTER STABLE alter_table_clause */ 388, /* (170) alter_table_clause ::= full_table_name alter_table_options */ 388, /* (171) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ 388, /* (172) alter_table_clause ::= full_table_name DROP COLUMN column_name */ 388, /* (173) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ 388, /* (174) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ 388, /* (175) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ 388, /* (176) alter_table_clause ::= full_table_name DROP TAG column_name */ 388, /* (177) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ 388, /* (178) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ 388, /* (179) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ 385, /* (180) multi_create_clause ::= create_subtable_clause */ 385, /* (181) multi_create_clause ::= multi_create_clause create_subtable_clause */ 393, /* (182) 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 */ 387, /* (183) multi_drop_clause ::= drop_table_clause */ 387, /* (184) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ 396, /* (185) drop_table_clause ::= exists_opt full_table_name */ 394, /* (186) specific_cols_opt ::= */ 394, /* (187) specific_cols_opt ::= NK_LP col_name_list NK_RP */ 381, /* (188) full_table_name ::= table_name */ 381, /* (189) full_table_name ::= db_name NK_DOT table_name */ 382, /* (190) column_def_list ::= column_def */ 382, /* (191) column_def_list ::= column_def_list NK_COMMA column_def */ 398, /* (192) column_def ::= column_name type_name */ 391, /* (193) type_name ::= BOOL */ 391, /* (194) type_name ::= TINYINT */ 391, /* (195) type_name ::= SMALLINT */ 391, /* (196) type_name ::= INT */ 391, /* (197) type_name ::= INTEGER */ 391, /* (198) type_name ::= BIGINT */ 391, /* (199) type_name ::= FLOAT */ 391, /* (200) type_name ::= DOUBLE */ 391, /* (201) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ 391, /* (202) type_name ::= TIMESTAMP */ 391, /* (203) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ 391, /* (204) type_name ::= TINYINT UNSIGNED */ 391, /* (205) type_name ::= SMALLINT UNSIGNED */ 391, /* (206) type_name ::= INT UNSIGNED */ 391, /* (207) type_name ::= BIGINT UNSIGNED */ 391, /* (208) type_name ::= JSON */ 391, /* (209) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ 391, /* (210) type_name ::= MEDIUMBLOB */ 391, /* (211) type_name ::= BLOB */ 391, /* (212) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ 391, /* (213) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ 391, /* (214) type_name ::= DECIMAL */ 391, /* (215) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 391, /* (216) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 383, /* (217) tags_def_opt ::= */ 383, /* (218) tags_def_opt ::= tags_def */ 386, /* (219) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 384, /* (220) table_options ::= */ 384, /* (221) table_options ::= table_options COMMENT NK_STRING */ 384, /* (222) table_options ::= table_options MAX_DELAY duration_list */ 384, /* (223) table_options ::= table_options WATERMARK duration_list */ 384, /* (224) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ 384, /* (225) table_options ::= table_options TTL NK_INTEGER */ 384, /* (226) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ 384, /* (227) table_options ::= table_options DELETE_MARK duration_list */ 389, /* (228) alter_table_options ::= alter_table_option */ 389, /* (229) alter_table_options ::= alter_table_options alter_table_option */ 401, /* (230) alter_table_option ::= COMMENT NK_STRING */ 401, /* (231) alter_table_option ::= TTL NK_INTEGER */ 399, /* (232) duration_list ::= duration_literal */ 399, /* (233) duration_list ::= duration_list NK_COMMA duration_literal */ 400, /* (234) rollup_func_list ::= rollup_func_name */ 400, /* (235) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ 403, /* (236) rollup_func_name ::= function_name */ 403, /* (237) rollup_func_name ::= FIRST */ 403, /* (238) rollup_func_name ::= LAST */ 397, /* (239) col_name_list ::= col_name */ 397, /* (240) col_name_list ::= col_name_list NK_COMMA col_name */ 405, /* (241) col_name ::= column_name */ 346, /* (242) cmd ::= SHOW DNODES */ 346, /* (243) cmd ::= SHOW USERS */ 346, /* (244) cmd ::= SHOW USER PRIVILEGES */ 346, /* (245) cmd ::= SHOW db_kind_opt DATABASES */ 346, /* (246) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ 346, /* (247) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ 346, /* (248) cmd ::= SHOW db_name_cond_opt VGROUPS */ 346, /* (249) cmd ::= SHOW MNODES */ 346, /* (250) cmd ::= SHOW QNODES */ 346, /* (251) cmd ::= SHOW FUNCTIONS */ 346, /* (252) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ 346, /* (253) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ 346, /* (254) cmd ::= SHOW STREAMS */ 346, /* (255) cmd ::= SHOW ACCOUNTS */ 346, /* (256) cmd ::= SHOW APPS */ 346, /* (257) cmd ::= SHOW CONNECTIONS */ 346, /* (258) cmd ::= SHOW LICENCES */ 346, /* (259) cmd ::= SHOW GRANTS */ 346, /* (260) cmd ::= SHOW CREATE DATABASE db_name */ 346, /* (261) cmd ::= SHOW CREATE TABLE full_table_name */ 346, /* (262) cmd ::= SHOW CREATE STABLE full_table_name */ 346, /* (263) cmd ::= SHOW QUERIES */ 346, /* (264) cmd ::= SHOW SCORES */ 346, /* (265) cmd ::= SHOW TOPICS */ 346, /* (266) cmd ::= SHOW VARIABLES */ 346, /* (267) cmd ::= SHOW CLUSTER VARIABLES */ 346, /* (268) cmd ::= SHOW LOCAL VARIABLES */ 346, /* (269) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ 346, /* (270) cmd ::= SHOW BNODES */ 346, /* (271) cmd ::= SHOW SNODES */ 346, /* (272) cmd ::= SHOW CLUSTER */ 346, /* (273) cmd ::= SHOW TRANSACTIONS */ 346, /* (274) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ 346, /* (275) cmd ::= SHOW CONSUMERS */ 346, /* (276) cmd ::= SHOW SUBSCRIPTIONS */ 346, /* (277) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ 346, /* (278) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ 346, /* (279) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ 346, /* (280) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ 346, /* (281) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ 346, /* (282) cmd ::= SHOW VNODES */ 346, /* (283) cmd ::= SHOW db_name_cond_opt ALIVE */ 346, /* (284) cmd ::= SHOW CLUSTER ALIVE */ 346, /* (285) cmd ::= SHOW db_name_cond_opt VIEWS */ 346, /* (286) cmd ::= SHOW CREATE VIEW full_table_name */ 407, /* (287) table_kind_db_name_cond_opt ::= */ 407, /* (288) table_kind_db_name_cond_opt ::= table_kind */ 407, /* (289) table_kind_db_name_cond_opt ::= db_name NK_DOT */ 407, /* (290) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ 413, /* (291) table_kind ::= NORMAL */ 413, /* (292) table_kind ::= CHILD */ 409, /* (293) db_name_cond_opt ::= */ 409, /* (294) db_name_cond_opt ::= db_name NK_DOT */ 408, /* (295) like_pattern_opt ::= */ 408, /* (296) like_pattern_opt ::= LIKE NK_STRING */ 410, /* (297) table_name_cond ::= table_name */ 411, /* (298) from_db_opt ::= */ 411, /* (299) from_db_opt ::= FROM db_name */ 412, /* (300) tag_list_opt ::= */ 412, /* (301) tag_list_opt ::= tag_item */ 412, /* (302) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ 414, /* (303) tag_item ::= TBNAME */ 414, /* (304) tag_item ::= QTAGS */ 414, /* (305) tag_item ::= column_name */ 414, /* (306) tag_item ::= column_name column_alias */ 414, /* (307) tag_item ::= column_name AS column_alias */ 406, /* (308) db_kind_opt ::= */ 406, /* (309) db_kind_opt ::= USER */ 406, /* (310) db_kind_opt ::= SYSTEM */ 346, /* (311) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ 346, /* (312) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ 346, /* (313) cmd ::= DROP INDEX exists_opt full_index_name */ 417, /* (314) full_index_name ::= index_name */ 417, /* (315) full_index_name ::= db_name NK_DOT index_name */ 416, /* (316) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ 416, /* (317) 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 */ 419, /* (318) func_list ::= func */ 419, /* (319) func_list ::= func_list NK_COMMA func */ 422, /* (320) func ::= sma_func_name NK_LP expression_list NK_RP */ 423, /* (321) sma_func_name ::= function_name */ 423, /* (322) sma_func_name ::= COUNT */ 423, /* (323) sma_func_name ::= FIRST */ 423, /* (324) sma_func_name ::= LAST */ 423, /* (325) sma_func_name ::= LAST_ROW */ 421, /* (326) sma_stream_opt ::= */ 421, /* (327) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ 421, /* (328) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ 421, /* (329) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ 424, /* (330) with_meta ::= AS */ 424, /* (331) with_meta ::= WITH META AS */ 424, /* (332) with_meta ::= ONLY META AS */ 346, /* (333) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ 346, /* (334) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ 346, /* (335) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ 346, /* (336) cmd ::= DROP TOPIC exists_opt topic_name */ 346, /* (337) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ 346, /* (338) cmd ::= DESC full_table_name */ 346, /* (339) cmd ::= DESCRIBE full_table_name */ 346, /* (340) cmd ::= RESET QUERY CACHE */ 346, /* (341) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ 346, /* (342) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 428, /* (343) analyze_opt ::= */ 428, /* (344) analyze_opt ::= ANALYZE */ 429, /* (345) explain_options ::= */ 429, /* (346) explain_options ::= explain_options VERBOSE NK_BOOL */ 429, /* (347) explain_options ::= explain_options RATIO NK_FLOAT */ 346, /* (348) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ 346, /* (349) cmd ::= DROP FUNCTION exists_opt function_name */ 432, /* (350) agg_func_opt ::= */ 432, /* (351) agg_func_opt ::= AGGREGATE */ 433, /* (352) bufsize_opt ::= */ 433, /* (353) bufsize_opt ::= BUFSIZE NK_INTEGER */ 434, /* (354) language_opt ::= */ 434, /* (355) language_opt ::= LANGUAGE NK_STRING */ 431, /* (356) or_replace_opt ::= */ 431, /* (357) or_replace_opt ::= OR REPLACE */ 346, /* (358) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ 346, /* (359) cmd ::= DROP VIEW exists_opt full_view_name */ 435, /* (360) full_view_name ::= view_name */ 435, /* (361) full_view_name ::= db_name NK_DOT view_name */ 346, /* (362) 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 */ 346, /* (363) cmd ::= DROP STREAM exists_opt stream_name */ 346, /* (364) cmd ::= PAUSE STREAM exists_opt stream_name */ 346, /* (365) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 439, /* (366) col_list_opt ::= */ 439, /* (367) col_list_opt ::= NK_LP col_name_list NK_RP */ 440, /* (368) tag_def_or_ref_opt ::= */ 440, /* (369) tag_def_or_ref_opt ::= tags_def */ 440, /* (370) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 438, /* (371) stream_options ::= */ 438, /* (372) stream_options ::= stream_options TRIGGER AT_ONCE */ 438, /* (373) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ 438, /* (374) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ 438, /* (375) stream_options ::= stream_options WATERMARK duration_literal */ 438, /* (376) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ 438, /* (377) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ 438, /* (378) stream_options ::= stream_options DELETE_MARK duration_literal */ 438, /* (379) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 441, /* (380) subtable_opt ::= */ 441, /* (381) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 442, /* (382) ignore_opt ::= */ 442, /* (383) ignore_opt ::= IGNORE UNTREATED */ 346, /* (384) cmd ::= KILL CONNECTION NK_INTEGER */ 346, /* (385) cmd ::= KILL QUERY NK_STRING */ 346, /* (386) cmd ::= KILL TRANSACTION NK_INTEGER */ 346, /* (387) cmd ::= BALANCE VGROUP */ 346, /* (388) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ 346, /* (389) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ 346, /* (390) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ 346, /* (391) cmd ::= SPLIT VGROUP NK_INTEGER */ 444, /* (392) on_vgroup_id ::= */ 444, /* (393) on_vgroup_id ::= ON NK_INTEGER */ 445, /* (394) dnode_list ::= DNODE NK_INTEGER */ 445, /* (395) dnode_list ::= dnode_list DNODE NK_INTEGER */ 346, /* (396) cmd ::= DELETE FROM full_table_name where_clause_opt */ 346, /* (397) cmd ::= query_or_subquery */ 346, /* (398) cmd ::= insert_query */ 430, /* (399) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ 430, /* (400) insert_query ::= INSERT INTO full_table_name query_or_subquery */ 349, /* (401) literal ::= NK_INTEGER */ 349, /* (402) literal ::= NK_FLOAT */ 349, /* (403) literal ::= NK_STRING */ 349, /* (404) literal ::= NK_BOOL */ 349, /* (405) literal ::= TIMESTAMP NK_STRING */ 349, /* (406) literal ::= duration_literal */ 349, /* (407) literal ::= NULL */ 349, /* (408) literal ::= NK_QUESTION */ 402, /* (409) duration_literal ::= NK_VARIABLE */ 378, /* (410) signed ::= NK_INTEGER */ 378, /* (411) signed ::= NK_PLUS NK_INTEGER */ 378, /* (412) signed ::= NK_MINUS NK_INTEGER */ 378, /* (413) signed ::= NK_FLOAT */ 378, /* (414) signed ::= NK_PLUS NK_FLOAT */ 378, /* (415) signed ::= NK_MINUS NK_FLOAT */ 392, /* (416) signed_literal ::= signed */ 392, /* (417) signed_literal ::= NK_STRING */ 392, /* (418) signed_literal ::= NK_BOOL */ 392, /* (419) signed_literal ::= TIMESTAMP NK_STRING */ 392, /* (420) signed_literal ::= duration_literal */ 392, /* (421) signed_literal ::= NULL */ 392, /* (422) signed_literal ::= literal_func */ 392, /* (423) signed_literal ::= NK_QUESTION */ 447, /* (424) literal_list ::= signed_literal */ 447, /* (425) literal_list ::= literal_list NK_COMMA signed_literal */ 361, /* (426) db_name ::= NK_ID */ 362, /* (427) table_name ::= NK_ID */ 390, /* (428) column_name ::= NK_ID */ 404, /* (429) function_name ::= NK_ID */ 436, /* (430) view_name ::= NK_ID */ 448, /* (431) table_alias ::= NK_ID */ 415, /* (432) column_alias ::= NK_ID */ 415, /* (433) column_alias ::= NK_ALIAS */ 354, /* (434) user_name ::= NK_ID */ 363, /* (435) topic_name ::= NK_ID */ 437, /* (436) stream_name ::= NK_ID */ 427, /* (437) cgroup_name ::= NK_ID */ 418, /* (438) index_name ::= NK_ID */ 449, /* (439) expr_or_subquery ::= expression */ 443, /* (440) expression ::= literal */ 443, /* (441) expression ::= pseudo_column */ 443, /* (442) expression ::= column_reference */ 443, /* (443) expression ::= function_expression */ 443, /* (444) expression ::= case_when_expression */ 443, /* (445) expression ::= NK_LP expression NK_RP */ 443, /* (446) expression ::= NK_PLUS expr_or_subquery */ 443, /* (447) expression ::= NK_MINUS expr_or_subquery */ 443, /* (448) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ 443, /* (449) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ 443, /* (450) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ 443, /* (451) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ 443, /* (452) expression ::= expr_or_subquery NK_REM expr_or_subquery */ 443, /* (453) expression ::= column_reference NK_ARROW NK_STRING */ 443, /* (454) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ 443, /* (455) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ 395, /* (456) expression_list ::= expr_or_subquery */ 395, /* (457) expression_list ::= expression_list NK_COMMA expr_or_subquery */ 451, /* (458) column_reference ::= column_name */ 451, /* (459) column_reference ::= table_name NK_DOT column_name */ 451, /* (460) column_reference ::= NK_ALIAS */ 451, /* (461) column_reference ::= table_name NK_DOT NK_ALIAS */ 450, /* (462) pseudo_column ::= ROWTS */ 450, /* (463) pseudo_column ::= TBNAME */ 450, /* (464) pseudo_column ::= table_name NK_DOT TBNAME */ 450, /* (465) pseudo_column ::= QSTART */ 450, /* (466) pseudo_column ::= QEND */ 450, /* (467) pseudo_column ::= QDURATION */ 450, /* (468) pseudo_column ::= WSTART */ 450, /* (469) pseudo_column ::= WEND */ 450, /* (470) pseudo_column ::= WDURATION */ 450, /* (471) pseudo_column ::= IROWTS */ 450, /* (472) pseudo_column ::= ISFILLED */ 450, /* (473) pseudo_column ::= QTAGS */ 452, /* (474) function_expression ::= function_name NK_LP expression_list NK_RP */ 452, /* (475) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ 452, /* (476) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ 452, /* (477) function_expression ::= literal_func */ 446, /* (478) literal_func ::= noarg_func NK_LP NK_RP */ 446, /* (479) literal_func ::= NOW */ 456, /* (480) noarg_func ::= NOW */ 456, /* (481) noarg_func ::= TODAY */ 456, /* (482) noarg_func ::= TIMEZONE */ 456, /* (483) noarg_func ::= DATABASE */ 456, /* (484) noarg_func ::= CLIENT_VERSION */ 456, /* (485) noarg_func ::= SERVER_VERSION */ 456, /* (486) noarg_func ::= SERVER_STATUS */ 456, /* (487) noarg_func ::= CURRENT_USER */ 456, /* (488) noarg_func ::= USER */ 454, /* (489) star_func ::= COUNT */ 454, /* (490) star_func ::= FIRST */ 454, /* (491) star_func ::= LAST */ 454, /* (492) star_func ::= LAST_ROW */ 455, /* (493) star_func_para_list ::= NK_STAR */ 455, /* (494) star_func_para_list ::= other_para_list */ 457, /* (495) other_para_list ::= star_func_para */ 457, /* (496) other_para_list ::= other_para_list NK_COMMA star_func_para */ 458, /* (497) star_func_para ::= expr_or_subquery */ 458, /* (498) star_func_para ::= table_name NK_DOT NK_STAR */ 453, /* (499) case_when_expression ::= CASE when_then_list case_when_else_opt END */ 453, /* (500) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ 459, /* (501) when_then_list ::= when_then_expr */ 459, /* (502) when_then_list ::= when_then_list when_then_expr */ 462, /* (503) when_then_expr ::= WHEN common_expression THEN common_expression */ 460, /* (504) case_when_else_opt ::= */ 460, /* (505) case_when_else_opt ::= ELSE common_expression */ 463, /* (506) predicate ::= expr_or_subquery compare_op expr_or_subquery */ 463, /* (507) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ 463, /* (508) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ 463, /* (509) predicate ::= expr_or_subquery IS NULL */ 463, /* (510) predicate ::= expr_or_subquery IS NOT NULL */ 463, /* (511) predicate ::= expr_or_subquery in_op in_predicate_value */ 464, /* (512) compare_op ::= NK_LT */ 464, /* (513) compare_op ::= NK_GT */ 464, /* (514) compare_op ::= NK_LE */ 464, /* (515) compare_op ::= NK_GE */ 464, /* (516) compare_op ::= NK_NE */ 464, /* (517) compare_op ::= NK_EQ */ 464, /* (518) compare_op ::= LIKE */ 464, /* (519) compare_op ::= NOT LIKE */ 464, /* (520) compare_op ::= MATCH */ 464, /* (521) compare_op ::= NMATCH */ 464, /* (522) compare_op ::= CONTAINS */ 465, /* (523) in_op ::= IN */ 465, /* (524) in_op ::= NOT IN */ 466, /* (525) in_predicate_value ::= NK_LP literal_list NK_RP */ 467, /* (526) boolean_value_expression ::= boolean_primary */ 467, /* (527) boolean_value_expression ::= NOT boolean_primary */ 467, /* (528) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ 467, /* (529) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ 468, /* (530) boolean_primary ::= predicate */ 468, /* (531) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ 461, /* (532) common_expression ::= expr_or_subquery */ 461, /* (533) common_expression ::= boolean_value_expression */ 469, /* (534) from_clause_opt ::= */ 469, /* (535) from_clause_opt ::= FROM table_reference_list */ 470, /* (536) table_reference_list ::= table_reference */ 470, /* (537) table_reference_list ::= table_reference_list NK_COMMA table_reference */ 471, /* (538) table_reference ::= table_primary */ 471, /* (539) table_reference ::= joined_table */ 472, /* (540) table_primary ::= table_name alias_opt */ 472, /* (541) table_primary ::= db_name NK_DOT table_name alias_opt */ 472, /* (542) table_primary ::= subquery alias_opt */ 472, /* (543) table_primary ::= parenthesized_joined_table */ 474, /* (544) alias_opt ::= */ 474, /* (545) alias_opt ::= table_alias */ 474, /* (546) alias_opt ::= AS table_alias */ 476, /* (547) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ 476, /* (548) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ 473, /* (549) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 477, /* (550) join_type ::= */ 477, /* (551) join_type ::= INNER */ 478, /* (552) 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 */ 479, /* (553) hint_list ::= */ 479, /* (554) hint_list ::= NK_HINT */ 481, /* (555) tag_mode_opt ::= */ 481, /* (556) tag_mode_opt ::= TAGS */ 480, /* (557) set_quantifier_opt ::= */ 480, /* (558) set_quantifier_opt ::= DISTINCT */ 480, /* (559) set_quantifier_opt ::= ALL */ 482, /* (560) select_list ::= select_item */ 482, /* (561) select_list ::= select_list NK_COMMA select_item */ 490, /* (562) select_item ::= NK_STAR */ 490, /* (563) select_item ::= common_expression */ 490, /* (564) select_item ::= common_expression column_alias */ 490, /* (565) select_item ::= common_expression AS column_alias */ 490, /* (566) select_item ::= table_name NK_DOT NK_STAR */ 426, /* (567) where_clause_opt ::= */ 426, /* (568) where_clause_opt ::= WHERE search_condition */ 483, /* (569) partition_by_clause_opt ::= */ 483, /* (570) partition_by_clause_opt ::= PARTITION BY partition_list */ 491, /* (571) partition_list ::= partition_item */ 491, /* (572) partition_list ::= partition_list NK_COMMA partition_item */ 492, /* (573) partition_item ::= expr_or_subquery */ 492, /* (574) partition_item ::= expr_or_subquery column_alias */ 492, /* (575) partition_item ::= expr_or_subquery AS column_alias */ 487, /* (576) twindow_clause_opt ::= */ 487, /* (577) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ 487, /* (578) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ 487, /* (579) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ 487, /* (580) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ 487, /* (581) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 420, /* (582) sliding_opt ::= */ 420, /* (583) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ 493, /* (584) interval_sliding_duration_literal ::= NK_VARIABLE */ 493, /* (585) interval_sliding_duration_literal ::= NK_STRING */ 493, /* (586) interval_sliding_duration_literal ::= NK_INTEGER */ 486, /* (587) fill_opt ::= */ 486, /* (588) fill_opt ::= FILL NK_LP fill_mode NK_RP */ 486, /* (589) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ 486, /* (590) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ 494, /* (591) fill_mode ::= NONE */ 494, /* (592) fill_mode ::= PREV */ 494, /* (593) fill_mode ::= NULL */ 494, /* (594) fill_mode ::= NULL_F */ 494, /* (595) fill_mode ::= LINEAR */ 494, /* (596) fill_mode ::= NEXT */ 488, /* (597) group_by_clause_opt ::= */ 488, /* (598) group_by_clause_opt ::= GROUP BY group_by_list */ 495, /* (599) group_by_list ::= expr_or_subquery */ 495, /* (600) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 489, /* (601) having_clause_opt ::= */ 489, /* (602) having_clause_opt ::= HAVING search_condition */ 484, /* (603) range_opt ::= */ 484, /* (604) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ 484, /* (605) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 485, /* (606) every_opt ::= */ 485, /* (607) every_opt ::= EVERY NK_LP duration_literal NK_RP */ 496, /* (608) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ 497, /* (609) query_simple ::= query_specification */ 497, /* (610) query_simple ::= union_query_expression */ 501, /* (611) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ 501, /* (612) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ 502, /* (613) query_simple_or_subquery ::= query_simple */ 502, /* (614) query_simple_or_subquery ::= subquery */ 425, /* (615) query_or_subquery ::= query_expression */ 425, /* (616) query_or_subquery ::= subquery */ 498, /* (617) order_by_clause_opt ::= */ 498, /* (618) order_by_clause_opt ::= ORDER BY sort_specification_list */ 499, /* (619) slimit_clause_opt ::= */ 499, /* (620) slimit_clause_opt ::= SLIMIT NK_INTEGER */ 499, /* (621) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ 499, /* (622) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 500, /* (623) limit_clause_opt ::= */ 500, /* (624) limit_clause_opt ::= LIMIT NK_INTEGER */ 500, /* (625) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ 500, /* (626) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 475, /* (627) subquery ::= NK_LP query_expression NK_RP */ 475, /* (628) subquery ::= NK_LP subquery NK_RP */ 364, /* (629) search_condition ::= common_expression */ 503, /* (630) sort_specification_list ::= sort_specification */ 503, /* (631) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ 504, /* (632) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 505, /* (633) ordering_specification_opt ::= */ 505, /* (634) ordering_specification_opt ::= ASC */ 505, /* (635) ordering_specification_opt ::= DESC */ 506, /* (636) null_ordering_opt ::= */ 506, /* (637) null_ordering_opt ::= NULLS FIRST */ 506, /* (638) 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 */ -1, /* (47) priv_type ::= ALTER */ -3, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */ -3, /* (49) priv_level ::= db_name NK_DOT NK_STAR */ -3, /* (50) priv_level ::= db_name NK_DOT table_name */ -1, /* (51) priv_level ::= topic_name */ 0, /* (52) with_opt ::= */ -2, /* (53) with_opt ::= WITH search_condition */ -3, /* (54) cmd ::= CREATE DNODE dnode_endpoint */ -5, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -4, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */ -4, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */ -4, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -4, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -4, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ -5, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ -4, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */ -5, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ -3, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */ -1, /* (65) dnode_endpoint ::= NK_STRING */ -1, /* (66) dnode_endpoint ::= NK_ID */ -1, /* (67) dnode_endpoint ::= NK_IPTOKEN */ 0, /* (68) force_opt ::= */ -1, /* (69) force_opt ::= FORCE */ -1, /* (70) unsafe_opt ::= UNSAFE */ -3, /* (71) cmd ::= ALTER LOCAL NK_STRING */ -4, /* (72) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ -5, /* (73) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ -5, /* (74) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ -5, /* (75) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ -5, /* (76) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ -5, /* (77) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ -5, /* (78) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ -5, /* (79) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ -5, /* (80) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ -5, /* (81) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ -5, /* (82) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ -5, /* (83) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ -5, /* (84) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -4, /* (85) cmd ::= DROP DATABASE exists_opt db_name */ -2, /* (86) cmd ::= USE db_name */ -4, /* (87) cmd ::= ALTER DATABASE db_name alter_db_options */ -3, /* (88) cmd ::= FLUSH DATABASE db_name */ -4, /* (89) cmd ::= TRIM DATABASE db_name speed_opt */ -5, /* (90) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -3, /* (91) not_exists_opt ::= IF NOT EXISTS */ 0, /* (92) not_exists_opt ::= */ -2, /* (93) exists_opt ::= IF EXISTS */ 0, /* (94) exists_opt ::= */ 0, /* (95) db_options ::= */ -3, /* (96) db_options ::= db_options BUFFER NK_INTEGER */ -3, /* (97) db_options ::= db_options CACHEMODEL NK_STRING */ -3, /* (98) db_options ::= db_options CACHESIZE NK_INTEGER */ -3, /* (99) db_options ::= db_options COMP NK_INTEGER */ -3, /* (100) db_options ::= db_options DURATION NK_INTEGER */ -3, /* (101) db_options ::= db_options DURATION NK_VARIABLE */ -3, /* (102) db_options ::= db_options MAXROWS NK_INTEGER */ -3, /* (103) db_options ::= db_options MINROWS NK_INTEGER */ -3, /* (104) db_options ::= db_options KEEP integer_list */ -3, /* (105) db_options ::= db_options KEEP variable_list */ -3, /* (106) db_options ::= db_options PAGES NK_INTEGER */ -3, /* (107) db_options ::= db_options PAGESIZE NK_INTEGER */ -3, /* (108) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -3, /* (109) db_options ::= db_options PRECISION NK_STRING */ -3, /* (110) db_options ::= db_options REPLICA NK_INTEGER */ -3, /* (111) db_options ::= db_options VGROUPS NK_INTEGER */ -3, /* (112) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -3, /* (113) db_options ::= db_options RETENTIONS retention_list */ -3, /* (114) db_options ::= db_options SCHEMALESS NK_INTEGER */ -3, /* (115) db_options ::= db_options WAL_LEVEL NK_INTEGER */ -3, /* (116) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -3, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -4, /* (118) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -3, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -4, /* (120) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -3, /* (121) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -3, /* (122) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -3, /* (123) db_options ::= db_options STT_TRIGGER NK_INTEGER */ -3, /* (124) db_options ::= db_options TABLE_PREFIX signed */ -3, /* (125) db_options ::= db_options TABLE_SUFFIX signed */ -3, /* (126) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ -1, /* (127) alter_db_options ::= alter_db_option */ -2, /* (128) alter_db_options ::= alter_db_options alter_db_option */ -2, /* (129) alter_db_option ::= BUFFER NK_INTEGER */ -2, /* (130) alter_db_option ::= CACHEMODEL NK_STRING */ -2, /* (131) alter_db_option ::= CACHESIZE NK_INTEGER */ -2, /* (132) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -2, /* (133) alter_db_option ::= KEEP integer_list */ -2, /* (134) alter_db_option ::= KEEP variable_list */ -2, /* (135) alter_db_option ::= PAGES NK_INTEGER */ -2, /* (136) alter_db_option ::= REPLICA NK_INTEGER */ -2, /* (137) alter_db_option ::= WAL_LEVEL NK_INTEGER */ -2, /* (138) alter_db_option ::= STT_TRIGGER NK_INTEGER */ -2, /* (139) alter_db_option ::= MINROWS NK_INTEGER */ -2, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -3, /* (141) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -2, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -3, /* (143) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -2, /* (144) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ -1, /* (145) integer_list ::= NK_INTEGER */ -3, /* (146) integer_list ::= integer_list NK_COMMA NK_INTEGER */ -1, /* (147) variable_list ::= NK_VARIABLE */ -3, /* (148) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -1, /* (149) retention_list ::= retention */ -3, /* (150) retention_list ::= retention_list NK_COMMA retention */ -3, /* (151) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -3, /* (152) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ 0, /* (153) speed_opt ::= */ -2, /* (154) speed_opt ::= BWLIMIT NK_INTEGER */ 0, /* (155) start_opt ::= */ -3, /* (156) start_opt ::= START WITH NK_INTEGER */ -3, /* (157) start_opt ::= START WITH NK_STRING */ -4, /* (158) start_opt ::= START WITH TIMESTAMP NK_STRING */ 0, /* (159) end_opt ::= */ -3, /* (160) end_opt ::= END WITH NK_INTEGER */ -3, /* (161) end_opt ::= END WITH NK_STRING */ -4, /* (162) end_opt ::= END WITH TIMESTAMP NK_STRING */ -9, /* (163) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ -3, /* (164) cmd ::= CREATE TABLE multi_create_clause */ -9, /* (165) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ -3, /* (166) cmd ::= DROP TABLE multi_drop_clause */ -4, /* (167) cmd ::= DROP STABLE exists_opt full_table_name */ -3, /* (168) cmd ::= ALTER TABLE alter_table_clause */ -3, /* (169) cmd ::= ALTER STABLE alter_table_clause */ -2, /* (170) alter_table_clause ::= full_table_name alter_table_options */ -5, /* (171) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -4, /* (172) alter_table_clause ::= full_table_name DROP COLUMN column_name */ -5, /* (173) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -5, /* (174) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -5, /* (175) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -4, /* (176) alter_table_clause ::= full_table_name DROP TAG column_name */ -5, /* (177) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -5, /* (178) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -6, /* (179) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -1, /* (180) multi_create_clause ::= create_subtable_clause */ -2, /* (181) multi_create_clause ::= multi_create_clause create_subtable_clause */ -10, /* (182) 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, /* (183) multi_drop_clause ::= drop_table_clause */ -3, /* (184) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ -2, /* (185) drop_table_clause ::= exists_opt full_table_name */ 0, /* (186) specific_cols_opt ::= */ -3, /* (187) specific_cols_opt ::= NK_LP col_name_list NK_RP */ -1, /* (188) full_table_name ::= table_name */ -3, /* (189) full_table_name ::= db_name NK_DOT table_name */ -1, /* (190) column_def_list ::= column_def */ -3, /* (191) column_def_list ::= column_def_list NK_COMMA column_def */ -2, /* (192) column_def ::= column_name type_name */ -1, /* (193) type_name ::= BOOL */ -1, /* (194) type_name ::= TINYINT */ -1, /* (195) type_name ::= SMALLINT */ -1, /* (196) type_name ::= INT */ -1, /* (197) type_name ::= INTEGER */ -1, /* (198) type_name ::= BIGINT */ -1, /* (199) type_name ::= FLOAT */ -1, /* (200) type_name ::= DOUBLE */ -4, /* (201) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -1, /* (202) type_name ::= TIMESTAMP */ -4, /* (203) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -2, /* (204) type_name ::= TINYINT UNSIGNED */ -2, /* (205) type_name ::= SMALLINT UNSIGNED */ -2, /* (206) type_name ::= INT UNSIGNED */ -2, /* (207) type_name ::= BIGINT UNSIGNED */ -1, /* (208) type_name ::= JSON */ -4, /* (209) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -1, /* (210) type_name ::= MEDIUMBLOB */ -1, /* (211) type_name ::= BLOB */ -4, /* (212) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -4, /* (213) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -1, /* (214) type_name ::= DECIMAL */ -4, /* (215) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (216) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 0, /* (217) tags_def_opt ::= */ -1, /* (218) tags_def_opt ::= tags_def */ -4, /* (219) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 0, /* (220) table_options ::= */ -3, /* (221) table_options ::= table_options COMMENT NK_STRING */ -3, /* (222) table_options ::= table_options MAX_DELAY duration_list */ -3, /* (223) table_options ::= table_options WATERMARK duration_list */ -5, /* (224) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -3, /* (225) table_options ::= table_options TTL NK_INTEGER */ -5, /* (226) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -3, /* (227) table_options ::= table_options DELETE_MARK duration_list */ -1, /* (228) alter_table_options ::= alter_table_option */ -2, /* (229) alter_table_options ::= alter_table_options alter_table_option */ -2, /* (230) alter_table_option ::= COMMENT NK_STRING */ -2, /* (231) alter_table_option ::= TTL NK_INTEGER */ -1, /* (232) duration_list ::= duration_literal */ -3, /* (233) duration_list ::= duration_list NK_COMMA duration_literal */ -1, /* (234) rollup_func_list ::= rollup_func_name */ -3, /* (235) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ -1, /* (236) rollup_func_name ::= function_name */ -1, /* (237) rollup_func_name ::= FIRST */ -1, /* (238) rollup_func_name ::= LAST */ -1, /* (239) col_name_list ::= col_name */ -3, /* (240) col_name_list ::= col_name_list NK_COMMA col_name */ -1, /* (241) col_name ::= column_name */ -2, /* (242) cmd ::= SHOW DNODES */ -2, /* (243) cmd ::= SHOW USERS */ -3, /* (244) cmd ::= SHOW USER PRIVILEGES */ -3, /* (245) cmd ::= SHOW db_kind_opt DATABASES */ -4, /* (246) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ -4, /* (247) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -3, /* (248) cmd ::= SHOW db_name_cond_opt VGROUPS */ -2, /* (249) cmd ::= SHOW MNODES */ -2, /* (250) cmd ::= SHOW QNODES */ -2, /* (251) cmd ::= SHOW FUNCTIONS */ -5, /* (252) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -6, /* (253) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -2, /* (254) cmd ::= SHOW STREAMS */ -2, /* (255) cmd ::= SHOW ACCOUNTS */ -2, /* (256) cmd ::= SHOW APPS */ -2, /* (257) cmd ::= SHOW CONNECTIONS */ -2, /* (258) cmd ::= SHOW LICENCES */ -2, /* (259) cmd ::= SHOW GRANTS */ -4, /* (260) cmd ::= SHOW CREATE DATABASE db_name */ -4, /* (261) cmd ::= SHOW CREATE TABLE full_table_name */ -4, /* (262) cmd ::= SHOW CREATE STABLE full_table_name */ -2, /* (263) cmd ::= SHOW QUERIES */ -2, /* (264) cmd ::= SHOW SCORES */ -2, /* (265) cmd ::= SHOW TOPICS */ -2, /* (266) cmd ::= SHOW VARIABLES */ -3, /* (267) cmd ::= SHOW CLUSTER VARIABLES */ -3, /* (268) cmd ::= SHOW LOCAL VARIABLES */ -5, /* (269) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -2, /* (270) cmd ::= SHOW BNODES */ -2, /* (271) cmd ::= SHOW SNODES */ -2, /* (272) cmd ::= SHOW CLUSTER */ -2, /* (273) cmd ::= SHOW TRANSACTIONS */ -4, /* (274) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -2, /* (275) cmd ::= SHOW CONSUMERS */ -2, /* (276) cmd ::= SHOW SUBSCRIPTIONS */ -5, /* (277) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -6, /* (278) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -7, /* (279) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -8, /* (280) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -5, /* (281) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ -2, /* (282) cmd ::= SHOW VNODES */ -3, /* (283) cmd ::= SHOW db_name_cond_opt ALIVE */ -3, /* (284) cmd ::= SHOW CLUSTER ALIVE */ -3, /* (285) cmd ::= SHOW db_name_cond_opt VIEWS */ -4, /* (286) cmd ::= SHOW CREATE VIEW full_table_name */ 0, /* (287) table_kind_db_name_cond_opt ::= */ -1, /* (288) table_kind_db_name_cond_opt ::= table_kind */ -2, /* (289) table_kind_db_name_cond_opt ::= db_name NK_DOT */ -3, /* (290) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ -1, /* (291) table_kind ::= NORMAL */ -1, /* (292) table_kind ::= CHILD */ 0, /* (293) db_name_cond_opt ::= */ -2, /* (294) db_name_cond_opt ::= db_name NK_DOT */ 0, /* (295) like_pattern_opt ::= */ -2, /* (296) like_pattern_opt ::= LIKE NK_STRING */ -1, /* (297) table_name_cond ::= table_name */ 0, /* (298) from_db_opt ::= */ -2, /* (299) from_db_opt ::= FROM db_name */ 0, /* (300) tag_list_opt ::= */ -1, /* (301) tag_list_opt ::= tag_item */ -3, /* (302) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ -1, /* (303) tag_item ::= TBNAME */ -1, /* (304) tag_item ::= QTAGS */ -1, /* (305) tag_item ::= column_name */ -2, /* (306) tag_item ::= column_name column_alias */ -3, /* (307) tag_item ::= column_name AS column_alias */ 0, /* (308) db_kind_opt ::= */ -1, /* (309) db_kind_opt ::= USER */ -1, /* (310) db_kind_opt ::= SYSTEM */ -8, /* (311) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ -9, /* (312) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ -4, /* (313) cmd ::= DROP INDEX exists_opt full_index_name */ -1, /* (314) full_index_name ::= index_name */ -3, /* (315) full_index_name ::= db_name NK_DOT index_name */ -10, /* (316) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -12, /* (317) 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, /* (318) func_list ::= func */ -3, /* (319) func_list ::= func_list NK_COMMA func */ -4, /* (320) func ::= sma_func_name NK_LP expression_list NK_RP */ -1, /* (321) sma_func_name ::= function_name */ -1, /* (322) sma_func_name ::= COUNT */ -1, /* (323) sma_func_name ::= FIRST */ -1, /* (324) sma_func_name ::= LAST */ -1, /* (325) sma_func_name ::= LAST_ROW */ 0, /* (326) sma_stream_opt ::= */ -3, /* (327) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -3, /* (328) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -3, /* (329) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -1, /* (330) with_meta ::= AS */ -3, /* (331) with_meta ::= WITH META AS */ -3, /* (332) with_meta ::= ONLY META AS */ -6, /* (333) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -7, /* (334) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -8, /* (335) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -4, /* (336) cmd ::= DROP TOPIC exists_opt topic_name */ -7, /* (337) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -2, /* (338) cmd ::= DESC full_table_name */ -2, /* (339) cmd ::= DESCRIBE full_table_name */ -3, /* (340) cmd ::= RESET QUERY CACHE */ -4, /* (341) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ -4, /* (342) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 0, /* (343) analyze_opt ::= */ -1, /* (344) analyze_opt ::= ANALYZE */ 0, /* (345) explain_options ::= */ -3, /* (346) explain_options ::= explain_options VERBOSE NK_BOOL */ -3, /* (347) explain_options ::= explain_options RATIO NK_FLOAT */ -12, /* (348) 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, /* (349) cmd ::= DROP FUNCTION exists_opt function_name */ 0, /* (350) agg_func_opt ::= */ -1, /* (351) agg_func_opt ::= AGGREGATE */ 0, /* (352) bufsize_opt ::= */ -2, /* (353) bufsize_opt ::= BUFSIZE NK_INTEGER */ 0, /* (354) language_opt ::= */ -2, /* (355) language_opt ::= LANGUAGE NK_STRING */ 0, /* (356) or_replace_opt ::= */ -2, /* (357) or_replace_opt ::= OR REPLACE */ -6, /* (358) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ -4, /* (359) cmd ::= DROP VIEW exists_opt full_view_name */ -1, /* (360) full_view_name ::= view_name */ -3, /* (361) full_view_name ::= db_name NK_DOT view_name */ -12, /* (362) 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, /* (363) cmd ::= DROP STREAM exists_opt stream_name */ -4, /* (364) cmd ::= PAUSE STREAM exists_opt stream_name */ -5, /* (365) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 0, /* (366) col_list_opt ::= */ -3, /* (367) col_list_opt ::= NK_LP col_name_list NK_RP */ 0, /* (368) tag_def_or_ref_opt ::= */ -1, /* (369) tag_def_or_ref_opt ::= tags_def */ -4, /* (370) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 0, /* (371) stream_options ::= */ -3, /* (372) stream_options ::= stream_options TRIGGER AT_ONCE */ -3, /* (373) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -4, /* (374) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -3, /* (375) stream_options ::= stream_options WATERMARK duration_literal */ -4, /* (376) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -3, /* (377) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -3, /* (378) stream_options ::= stream_options DELETE_MARK duration_literal */ -4, /* (379) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 0, /* (380) subtable_opt ::= */ -4, /* (381) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 0, /* (382) ignore_opt ::= */ -2, /* (383) ignore_opt ::= IGNORE UNTREATED */ -3, /* (384) cmd ::= KILL CONNECTION NK_INTEGER */ -3, /* (385) cmd ::= KILL QUERY NK_STRING */ -3, /* (386) cmd ::= KILL TRANSACTION NK_INTEGER */ -2, /* (387) cmd ::= BALANCE VGROUP */ -4, /* (388) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ -4, /* (389) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -4, /* (390) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -3, /* (391) cmd ::= SPLIT VGROUP NK_INTEGER */ 0, /* (392) on_vgroup_id ::= */ -2, /* (393) on_vgroup_id ::= ON NK_INTEGER */ -2, /* (394) dnode_list ::= DNODE NK_INTEGER */ -3, /* (395) dnode_list ::= dnode_list DNODE NK_INTEGER */ -4, /* (396) cmd ::= DELETE FROM full_table_name where_clause_opt */ -1, /* (397) cmd ::= query_or_subquery */ -1, /* (398) cmd ::= insert_query */ -7, /* (399) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -4, /* (400) insert_query ::= INSERT INTO full_table_name query_or_subquery */ -1, /* (401) literal ::= NK_INTEGER */ -1, /* (402) literal ::= NK_FLOAT */ -1, /* (403) literal ::= NK_STRING */ -1, /* (404) literal ::= NK_BOOL */ -2, /* (405) literal ::= TIMESTAMP NK_STRING */ -1, /* (406) literal ::= duration_literal */ -1, /* (407) literal ::= NULL */ -1, /* (408) literal ::= NK_QUESTION */ -1, /* (409) duration_literal ::= NK_VARIABLE */ -1, /* (410) signed ::= NK_INTEGER */ -2, /* (411) signed ::= NK_PLUS NK_INTEGER */ -2, /* (412) signed ::= NK_MINUS NK_INTEGER */ -1, /* (413) signed ::= NK_FLOAT */ -2, /* (414) signed ::= NK_PLUS NK_FLOAT */ -2, /* (415) signed ::= NK_MINUS NK_FLOAT */ -1, /* (416) signed_literal ::= signed */ -1, /* (417) signed_literal ::= NK_STRING */ -1, /* (418) signed_literal ::= NK_BOOL */ -2, /* (419) signed_literal ::= TIMESTAMP NK_STRING */ -1, /* (420) signed_literal ::= duration_literal */ -1, /* (421) signed_literal ::= NULL */ -1, /* (422) signed_literal ::= literal_func */ -1, /* (423) signed_literal ::= NK_QUESTION */ -1, /* (424) literal_list ::= signed_literal */ -3, /* (425) literal_list ::= literal_list NK_COMMA signed_literal */ -1, /* (426) db_name ::= NK_ID */ -1, /* (427) table_name ::= NK_ID */ -1, /* (428) column_name ::= NK_ID */ -1, /* (429) function_name ::= NK_ID */ -1, /* (430) view_name ::= NK_ID */ -1, /* (431) table_alias ::= NK_ID */ -1, /* (432) column_alias ::= NK_ID */ -1, /* (433) column_alias ::= NK_ALIAS */ -1, /* (434) user_name ::= NK_ID */ -1, /* (435) topic_name ::= NK_ID */ -1, /* (436) stream_name ::= NK_ID */ -1, /* (437) cgroup_name ::= NK_ID */ -1, /* (438) index_name ::= NK_ID */ -1, /* (439) expr_or_subquery ::= expression */ -1, /* (440) expression ::= literal */ -1, /* (441) expression ::= pseudo_column */ -1, /* (442) expression ::= column_reference */ -1, /* (443) expression ::= function_expression */ -1, /* (444) expression ::= case_when_expression */ -3, /* (445) expression ::= NK_LP expression NK_RP */ -2, /* (446) expression ::= NK_PLUS expr_or_subquery */ -2, /* (447) expression ::= NK_MINUS expr_or_subquery */ -3, /* (448) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ -3, /* (449) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -3, /* (450) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -3, /* (451) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -3, /* (452) expression ::= expr_or_subquery NK_REM expr_or_subquery */ -3, /* (453) expression ::= column_reference NK_ARROW NK_STRING */ -3, /* (454) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ -3, /* (455) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -1, /* (456) expression_list ::= expr_or_subquery */ -3, /* (457) expression_list ::= expression_list NK_COMMA expr_or_subquery */ -1, /* (458) column_reference ::= column_name */ -3, /* (459) column_reference ::= table_name NK_DOT column_name */ -1, /* (460) column_reference ::= NK_ALIAS */ -3, /* (461) column_reference ::= table_name NK_DOT NK_ALIAS */ -1, /* (462) pseudo_column ::= ROWTS */ -1, /* (463) pseudo_column ::= TBNAME */ -3, /* (464) pseudo_column ::= table_name NK_DOT TBNAME */ -1, /* (465) pseudo_column ::= QSTART */ -1, /* (466) pseudo_column ::= QEND */ -1, /* (467) pseudo_column ::= QDURATION */ -1, /* (468) pseudo_column ::= WSTART */ -1, /* (469) pseudo_column ::= WEND */ -1, /* (470) pseudo_column ::= WDURATION */ -1, /* (471) pseudo_column ::= IROWTS */ -1, /* (472) pseudo_column ::= ISFILLED */ -1, /* (473) pseudo_column ::= QTAGS */ -4, /* (474) function_expression ::= function_name NK_LP expression_list NK_RP */ -4, /* (475) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ -6, /* (476) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -1, /* (477) function_expression ::= literal_func */ -3, /* (478) literal_func ::= noarg_func NK_LP NK_RP */ -1, /* (479) literal_func ::= NOW */ -1, /* (480) noarg_func ::= NOW */ -1, /* (481) noarg_func ::= TODAY */ -1, /* (482) noarg_func ::= TIMEZONE */ -1, /* (483) noarg_func ::= DATABASE */ -1, /* (484) noarg_func ::= CLIENT_VERSION */ -1, /* (485) noarg_func ::= SERVER_VERSION */ -1, /* (486) noarg_func ::= SERVER_STATUS */ -1, /* (487) noarg_func ::= CURRENT_USER */ -1, /* (488) noarg_func ::= USER */ -1, /* (489) star_func ::= COUNT */ -1, /* (490) star_func ::= FIRST */ -1, /* (491) star_func ::= LAST */ -1, /* (492) star_func ::= LAST_ROW */ -1, /* (493) star_func_para_list ::= NK_STAR */ -1, /* (494) star_func_para_list ::= other_para_list */ -1, /* (495) other_para_list ::= star_func_para */ -3, /* (496) other_para_list ::= other_para_list NK_COMMA star_func_para */ -1, /* (497) star_func_para ::= expr_or_subquery */ -3, /* (498) star_func_para ::= table_name NK_DOT NK_STAR */ -4, /* (499) case_when_expression ::= CASE when_then_list case_when_else_opt END */ -5, /* (500) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -1, /* (501) when_then_list ::= when_then_expr */ -2, /* (502) when_then_list ::= when_then_list when_then_expr */ -4, /* (503) when_then_expr ::= WHEN common_expression THEN common_expression */ 0, /* (504) case_when_else_opt ::= */ -2, /* (505) case_when_else_opt ::= ELSE common_expression */ -3, /* (506) predicate ::= expr_or_subquery compare_op expr_or_subquery */ -5, /* (507) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -6, /* (508) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -3, /* (509) predicate ::= expr_or_subquery IS NULL */ -4, /* (510) predicate ::= expr_or_subquery IS NOT NULL */ -3, /* (511) predicate ::= expr_or_subquery in_op in_predicate_value */ -1, /* (512) compare_op ::= NK_LT */ -1, /* (513) compare_op ::= NK_GT */ -1, /* (514) compare_op ::= NK_LE */ -1, /* (515) compare_op ::= NK_GE */ -1, /* (516) compare_op ::= NK_NE */ -1, /* (517) compare_op ::= NK_EQ */ -1, /* (518) compare_op ::= LIKE */ -2, /* (519) compare_op ::= NOT LIKE */ -1, /* (520) compare_op ::= MATCH */ -1, /* (521) compare_op ::= NMATCH */ -1, /* (522) compare_op ::= CONTAINS */ -1, /* (523) in_op ::= IN */ -2, /* (524) in_op ::= NOT IN */ -3, /* (525) in_predicate_value ::= NK_LP literal_list NK_RP */ -1, /* (526) boolean_value_expression ::= boolean_primary */ -2, /* (527) boolean_value_expression ::= NOT boolean_primary */ -3, /* (528) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -3, /* (529) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -1, /* (530) boolean_primary ::= predicate */ -3, /* (531) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ -1, /* (532) common_expression ::= expr_or_subquery */ -1, /* (533) common_expression ::= boolean_value_expression */ 0, /* (534) from_clause_opt ::= */ -2, /* (535) from_clause_opt ::= FROM table_reference_list */ -1, /* (536) table_reference_list ::= table_reference */ -3, /* (537) table_reference_list ::= table_reference_list NK_COMMA table_reference */ -1, /* (538) table_reference ::= table_primary */ -1, /* (539) table_reference ::= joined_table */ -2, /* (540) table_primary ::= table_name alias_opt */ -4, /* (541) table_primary ::= db_name NK_DOT table_name alias_opt */ -2, /* (542) table_primary ::= subquery alias_opt */ -1, /* (543) table_primary ::= parenthesized_joined_table */ 0, /* (544) alias_opt ::= */ -1, /* (545) alias_opt ::= table_alias */ -2, /* (546) alias_opt ::= AS table_alias */ -3, /* (547) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ -3, /* (548) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ -6, /* (549) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 0, /* (550) join_type ::= */ -1, /* (551) join_type ::= INNER */ -14, /* (552) 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, /* (553) hint_list ::= */ -1, /* (554) hint_list ::= NK_HINT */ 0, /* (555) tag_mode_opt ::= */ -1, /* (556) tag_mode_opt ::= TAGS */ 0, /* (557) set_quantifier_opt ::= */ -1, /* (558) set_quantifier_opt ::= DISTINCT */ -1, /* (559) set_quantifier_opt ::= ALL */ -1, /* (560) select_list ::= select_item */ -3, /* (561) select_list ::= select_list NK_COMMA select_item */ -1, /* (562) select_item ::= NK_STAR */ -1, /* (563) select_item ::= common_expression */ -2, /* (564) select_item ::= common_expression column_alias */ -3, /* (565) select_item ::= common_expression AS column_alias */ -3, /* (566) select_item ::= table_name NK_DOT NK_STAR */ 0, /* (567) where_clause_opt ::= */ -2, /* (568) where_clause_opt ::= WHERE search_condition */ 0, /* (569) partition_by_clause_opt ::= */ -3, /* (570) partition_by_clause_opt ::= PARTITION BY partition_list */ -1, /* (571) partition_list ::= partition_item */ -3, /* (572) partition_list ::= partition_list NK_COMMA partition_item */ -1, /* (573) partition_item ::= expr_or_subquery */ -2, /* (574) partition_item ::= expr_or_subquery column_alias */ -3, /* (575) partition_item ::= expr_or_subquery AS column_alias */ 0, /* (576) twindow_clause_opt ::= */ -6, /* (577) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ -4, /* (578) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -6, /* (579) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -8, /* (580) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -7, /* (581) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 0, /* (582) sliding_opt ::= */ -4, /* (583) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ -1, /* (584) interval_sliding_duration_literal ::= NK_VARIABLE */ -1, /* (585) interval_sliding_duration_literal ::= NK_STRING */ -1, /* (586) interval_sliding_duration_literal ::= NK_INTEGER */ 0, /* (587) fill_opt ::= */ -4, /* (588) fill_opt ::= FILL NK_LP fill_mode NK_RP */ -6, /* (589) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -6, /* (590) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -1, /* (591) fill_mode ::= NONE */ -1, /* (592) fill_mode ::= PREV */ -1, /* (593) fill_mode ::= NULL */ -1, /* (594) fill_mode ::= NULL_F */ -1, /* (595) fill_mode ::= LINEAR */ -1, /* (596) fill_mode ::= NEXT */ 0, /* (597) group_by_clause_opt ::= */ -3, /* (598) group_by_clause_opt ::= GROUP BY group_by_list */ -1, /* (599) group_by_list ::= expr_or_subquery */ -3, /* (600) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 0, /* (601) having_clause_opt ::= */ -2, /* (602) having_clause_opt ::= HAVING search_condition */ 0, /* (603) range_opt ::= */ -6, /* (604) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -4, /* (605) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 0, /* (606) every_opt ::= */ -4, /* (607) every_opt ::= EVERY NK_LP duration_literal NK_RP */ -4, /* (608) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -1, /* (609) query_simple ::= query_specification */ -1, /* (610) query_simple ::= union_query_expression */ -4, /* (611) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -3, /* (612) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -1, /* (613) query_simple_or_subquery ::= query_simple */ -1, /* (614) query_simple_or_subquery ::= subquery */ -1, /* (615) query_or_subquery ::= query_expression */ -1, /* (616) query_or_subquery ::= subquery */ 0, /* (617) order_by_clause_opt ::= */ -3, /* (618) order_by_clause_opt ::= ORDER BY sort_specification_list */ 0, /* (619) slimit_clause_opt ::= */ -2, /* (620) slimit_clause_opt ::= SLIMIT NK_INTEGER */ -4, /* (621) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ -4, /* (622) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 0, /* (623) limit_clause_opt ::= */ -2, /* (624) limit_clause_opt ::= LIMIT NK_INTEGER */ -4, /* (625) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ -4, /* (626) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ -3, /* (627) subquery ::= NK_LP query_expression NK_RP */ -3, /* (628) subquery ::= NK_LP subquery NK_RP */ -1, /* (629) search_condition ::= common_expression */ -1, /* (630) sort_specification_list ::= sort_specification */ -3, /* (631) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ -3, /* (632) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 0, /* (633) ordering_specification_opt ::= */ -1, /* (634) ordering_specification_opt ::= ASC */ -1, /* (635) ordering_specification_opt ::= DESC */ 0, /* (636) null_ordering_opt ::= */ -2, /* (637) null_ordering_opt ::= NULLS FIRST */ -2, /* (638) 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,347,&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,348,&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,347,&yymsp[-2].minor); { } yy_destructor(yypParser,349,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,350,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,348,&yymsp[-1].minor); { } yy_destructor(yypParser,350,&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,349,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ { yylhsminor.yy106 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy106 = yylhsminor.yy106; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ { yylhsminor.yy106 = addNodeToList(pCxt, yymsp[-2].minor.yy106, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy106 = yylhsminor.yy106; break; case 26: /* white_list ::= HOST ip_range_list */ { yymsp[-1].minor.yy106 = yymsp[0].minor.yy106; } break; case 27: /* white_list_opt ::= */ case 186: /* specific_cols_opt ::= */ yytestcase(yyruleno==186); case 217: /* tags_def_opt ::= */ yytestcase(yyruleno==217); case 300: /* tag_list_opt ::= */ yytestcase(yyruleno==300); case 366: /* col_list_opt ::= */ yytestcase(yyruleno==366); case 368: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==368); case 569: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==569); case 597: /* group_by_clause_opt ::= */ yytestcase(yyruleno==597); case 617: /* order_by_clause_opt ::= */ yytestcase(yyruleno==617); { yymsp[1].minor.yy106 = NULL; } break; case 28: /* white_list_opt ::= white_list */ case 218: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==218); case 369: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==369); case 494: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==494); { yylhsminor.yy106 = yymsp[0].minor.yy106; } yymsp[0].minor.yy106 = yylhsminor.yy106; break; case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy785, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy431); pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy106); } break; case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy785, 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.yy785, 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.yy785, 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.yy785, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy106); } break; case 34: /* cmd ::= ALTER USER user_name DROP white_list */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy785, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy106); } break; case 35: /* cmd ::= DROP USER user_name */ { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy785); } break; case 36: /* sysinfo_opt ::= */ { yymsp[1].minor.yy431 = 1; } break; case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ { yymsp[-1].minor.yy431 = 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.yy987, &yymsp[-3].minor.yy573, &yymsp[0].minor.yy785, yymsp[-2].minor.yy80); } break; case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy987, &yymsp[-3].minor.yy573, &yymsp[0].minor.yy785, yymsp[-2].minor.yy80); } break; case 40: /* privileges ::= ALL */ { yymsp[0].minor.yy987 = PRIVILEGE_TYPE_ALL; } break; case 41: /* privileges ::= priv_type_list */ case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43); { yylhsminor.yy987 = yymsp[0].minor.yy987; } yymsp[0].minor.yy987 = yylhsminor.yy987; break; case 42: /* privileges ::= SUBSCRIBE */ { yymsp[0].minor.yy987 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ { yylhsminor.yy987 = yymsp[-2].minor.yy987 | yymsp[0].minor.yy987; } yymsp[-2].minor.yy987 = yylhsminor.yy987; break; case 45: /* priv_type ::= READ */ { yymsp[0].minor.yy987 = PRIVILEGE_TYPE_READ; } break; case 46: /* priv_type ::= WRITE */ { yymsp[0].minor.yy987 = PRIVILEGE_TYPE_WRITE; } break; case 47: /* priv_type ::= ALTER */ { yymsp[0].minor.yy987 = PRIVILEGE_TYPE_ALTER; } break; case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ { yylhsminor.yy573.first = yymsp[-2].minor.yy0; yylhsminor.yy573.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy573 = yylhsminor.yy573; break; case 49: /* priv_level ::= db_name NK_DOT NK_STAR */ { yylhsminor.yy573.first = yymsp[-2].minor.yy785; yylhsminor.yy573.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy573 = yylhsminor.yy573; break; case 50: /* priv_level ::= db_name NK_DOT table_name */ { yylhsminor.yy573.first = yymsp[-2].minor.yy785; yylhsminor.yy573.second = yymsp[0].minor.yy785; } yymsp[-2].minor.yy573 = yylhsminor.yy573; break; case 51: /* priv_level ::= topic_name */ { yylhsminor.yy573.first = yymsp[0].minor.yy785; yylhsminor.yy573.second = nil_token; } yymsp[0].minor.yy573 = yylhsminor.yy573; break; case 52: /* with_opt ::= */ case 155: /* start_opt ::= */ yytestcase(yyruleno==155); case 159: /* end_opt ::= */ yytestcase(yyruleno==159); case 295: /* like_pattern_opt ::= */ yytestcase(yyruleno==295); case 380: /* subtable_opt ::= */ yytestcase(yyruleno==380); case 504: /* case_when_else_opt ::= */ yytestcase(yyruleno==504); case 534: /* from_clause_opt ::= */ yytestcase(yyruleno==534); case 567: /* where_clause_opt ::= */ yytestcase(yyruleno==567); case 576: /* twindow_clause_opt ::= */ yytestcase(yyruleno==576); case 582: /* sliding_opt ::= */ yytestcase(yyruleno==582); case 587: /* fill_opt ::= */ yytestcase(yyruleno==587); case 601: /* having_clause_opt ::= */ yytestcase(yyruleno==601); case 603: /* range_opt ::= */ yytestcase(yyruleno==603); case 606: /* every_opt ::= */ yytestcase(yyruleno==606); case 619: /* slimit_clause_opt ::= */ yytestcase(yyruleno==619); case 623: /* limit_clause_opt ::= */ yytestcase(yyruleno==623); { yymsp[1].minor.yy80 = NULL; } break; case 53: /* with_opt ::= WITH search_condition */ case 535: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==535); case 568: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==568); case 602: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==602); { yymsp[-1].minor.yy80 = yymsp[0].minor.yy80; } break; case 54: /* cmd ::= CREATE DNODE dnode_endpoint */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy785, NULL); } break; case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0); } break; case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy923, false); } break; case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy923, false); } break; case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy923); } break; case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy785, false, yymsp[0].minor.yy923); } break; case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } break; case 61: /* 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 62: /* cmd ::= ALTER ALL DNODES NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } break; case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } break; case 65: /* dnode_endpoint ::= NK_STRING */ case 66: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==66); case 67: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==67); case 322: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==322); case 323: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==323); case 324: /* sma_func_name ::= LAST */ yytestcase(yyruleno==324); case 325: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==325); case 426: /* db_name ::= NK_ID */ yytestcase(yyruleno==426); case 427: /* table_name ::= NK_ID */ yytestcase(yyruleno==427); case 428: /* column_name ::= NK_ID */ yytestcase(yyruleno==428); case 429: /* function_name ::= NK_ID */ yytestcase(yyruleno==429); case 430: /* view_name ::= NK_ID */ yytestcase(yyruleno==430); case 431: /* table_alias ::= NK_ID */ yytestcase(yyruleno==431); case 432: /* column_alias ::= NK_ID */ yytestcase(yyruleno==432); case 433: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==433); case 434: /* user_name ::= NK_ID */ yytestcase(yyruleno==434); case 435: /* topic_name ::= NK_ID */ yytestcase(yyruleno==435); case 436: /* stream_name ::= NK_ID */ yytestcase(yyruleno==436); case 437: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==437); case 438: /* index_name ::= NK_ID */ yytestcase(yyruleno==438); case 480: /* noarg_func ::= NOW */ yytestcase(yyruleno==480); case 481: /* noarg_func ::= TODAY */ yytestcase(yyruleno==481); case 482: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==482); case 483: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==483); case 484: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==484); case 485: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==485); case 486: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==486); case 487: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==487); case 488: /* noarg_func ::= USER */ yytestcase(yyruleno==488); case 489: /* star_func ::= COUNT */ yytestcase(yyruleno==489); case 490: /* star_func ::= FIRST */ yytestcase(yyruleno==490); case 491: /* star_func ::= LAST */ yytestcase(yyruleno==491); case 492: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==492); { yylhsminor.yy785 = yymsp[0].minor.yy0; } yymsp[0].minor.yy785 = yylhsminor.yy785; break; case 68: /* force_opt ::= */ case 92: /* not_exists_opt ::= */ yytestcase(yyruleno==92); case 94: /* exists_opt ::= */ yytestcase(yyruleno==94); case 343: /* analyze_opt ::= */ yytestcase(yyruleno==343); case 350: /* agg_func_opt ::= */ yytestcase(yyruleno==350); case 356: /* or_replace_opt ::= */ yytestcase(yyruleno==356); case 382: /* ignore_opt ::= */ yytestcase(yyruleno==382); case 555: /* tag_mode_opt ::= */ yytestcase(yyruleno==555); case 557: /* set_quantifier_opt ::= */ yytestcase(yyruleno==557); { yymsp[1].minor.yy923 = false; } break; case 69: /* force_opt ::= FORCE */ case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70); case 344: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==344); case 351: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==351); case 556: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==556); case 558: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==558); { yymsp[0].minor.yy923 = true; } break; case 71: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 72: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 73: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 74: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 75: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 76: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 77: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 78: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 79: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 80: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 81: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 82: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 83: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } break; case 84: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy923, &yymsp[-1].minor.yy785, yymsp[0].minor.yy80); } break; case 85: /* cmd ::= DROP DATABASE exists_opt db_name */ { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy923, &yymsp[0].minor.yy785); } break; case 86: /* cmd ::= USE db_name */ { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy785); } break; case 87: /* cmd ::= ALTER DATABASE db_name alter_db_options */ { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy80); } break; case 88: /* cmd ::= FLUSH DATABASE db_name */ { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy785); } break; case 89: /* cmd ::= TRIM DATABASE db_name speed_opt */ { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy982); } break; case 90: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy785, yymsp[-1].minor.yy80, yymsp[0].minor.yy80); } break; case 91: /* not_exists_opt ::= IF NOT EXISTS */ { yymsp[-2].minor.yy923 = true; } break; case 93: /* exists_opt ::= IF EXISTS */ case 357: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==357); case 383: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==383); { yymsp[-1].minor.yy923 = true; } break; case 95: /* db_options ::= */ { yymsp[1].minor.yy80 = createDefaultDatabaseOptions(pCxt); } break; case 96: /* db_options ::= db_options BUFFER NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 97: /* db_options ::= db_options CACHEMODEL NK_STRING */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 98: /* db_options ::= db_options CACHESIZE NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 99: /* db_options ::= db_options COMP NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_COMP, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 100: /* db_options ::= db_options DURATION NK_INTEGER */ case 101: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==101); { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 102: /* db_options ::= db_options MAXROWS NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 103: /* db_options ::= db_options MINROWS NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 104: /* db_options ::= db_options KEEP integer_list */ case 105: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==105); { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_KEEP, yymsp[0].minor.yy106); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 106: /* db_options ::= db_options PAGES NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 107: /* db_options ::= db_options PAGESIZE NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 108: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 109: /* db_options ::= db_options PRECISION NK_STRING */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 110: /* db_options ::= db_options REPLICA NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 111: /* db_options ::= db_options VGROUPS NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 112: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 113: /* db_options ::= db_options RETENTIONS retention_list */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_RETENTIONS, yymsp[0].minor.yy106); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 114: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 115: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_WAL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 116: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 117: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 118: /* 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.yy80 = setDatabaseOption(pCxt, yymsp[-3].minor.yy80, DB_OPTION_WAL_RETENTION_PERIOD, &t); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 119: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 120: /* 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.yy80 = setDatabaseOption(pCxt, yymsp[-3].minor.yy80, DB_OPTION_WAL_RETENTION_SIZE, &t); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 121: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 122: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 123: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 124: /* db_options ::= db_options TABLE_PREFIX signed */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy80); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 125: /* db_options ::= db_options TABLE_SUFFIX signed */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy80); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 126: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ { yylhsminor.yy80 = setDatabaseOption(pCxt, yymsp[-2].minor.yy80, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 127: /* alter_db_options ::= alter_db_option */ { yylhsminor.yy80 = createAlterDatabaseOptions(pCxt); yylhsminor.yy80 = setAlterDatabaseOption(pCxt, yylhsminor.yy80, &yymsp[0].minor.yy455); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 128: /* alter_db_options ::= alter_db_options alter_db_option */ { yylhsminor.yy80 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy80, &yymsp[0].minor.yy455); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 129: /* alter_db_option ::= BUFFER NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 130: /* alter_db_option ::= CACHEMODEL NK_STRING */ { yymsp[-1].minor.yy455.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 131: /* alter_db_option ::= CACHESIZE NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 132: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 133: /* alter_db_option ::= KEEP integer_list */ case 134: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==134); { yymsp[-1].minor.yy455.type = DB_OPTION_KEEP; yymsp[-1].minor.yy455.pList = yymsp[0].minor.yy106; } break; case 135: /* alter_db_option ::= PAGES NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_PAGES; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 136: /* alter_db_option ::= REPLICA NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 137: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_WAL; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 138: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 139: /* alter_db_option ::= MINROWS NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 140: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 141: /* 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.yy455.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy455.val = t; } break; case 142: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 143: /* 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.yy455.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy455.val = t; } break; case 144: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ { yymsp[-1].minor.yy455.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 145: /* integer_list ::= NK_INTEGER */ { yylhsminor.yy106 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy106 = yylhsminor.yy106; break; case 146: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 395: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==395); { yylhsminor.yy106 = addNodeToList(pCxt, yymsp[-2].minor.yy106, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy106 = yylhsminor.yy106; break; case 147: /* variable_list ::= NK_VARIABLE */ { yylhsminor.yy106 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy106 = yylhsminor.yy106; break; case 148: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { yylhsminor.yy106 = addNodeToList(pCxt, yymsp[-2].minor.yy106, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy106 = yylhsminor.yy106; break; case 149: /* retention_list ::= retention */ case 180: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==180); case 183: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==183); case 190: /* column_def_list ::= column_def */ yytestcase(yyruleno==190); case 234: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==234); case 239: /* col_name_list ::= col_name */ yytestcase(yyruleno==239); case 301: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==301); case 318: /* func_list ::= func */ yytestcase(yyruleno==318); case 424: /* literal_list ::= signed_literal */ yytestcase(yyruleno==424); case 495: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==495); case 501: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==501); case 560: /* select_list ::= select_item */ yytestcase(yyruleno==560); case 571: /* partition_list ::= partition_item */ yytestcase(yyruleno==571); case 630: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==630); { yylhsminor.yy106 = createNodeList(pCxt, yymsp[0].minor.yy80); } yymsp[0].minor.yy106 = yylhsminor.yy106; break; case 150: /* retention_list ::= retention_list NK_COMMA retention */ case 184: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==184); case 191: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==191); case 235: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==235); case 240: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==240); case 302: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==302); case 319: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==319); case 425: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==425); case 496: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==496); case 561: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==561); case 572: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==572); case 631: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==631); { yylhsminor.yy106 = addNodeToList(pCxt, yymsp[-2].minor.yy106, yymsp[0].minor.yy80); } yymsp[-2].minor.yy106 = yylhsminor.yy106; break; case 151: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ case 152: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==152); { yylhsminor.yy80 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 153: /* speed_opt ::= */ case 352: /* bufsize_opt ::= */ yytestcase(yyruleno==352); { yymsp[1].minor.yy982 = 0; } break; case 154: /* speed_opt ::= BWLIMIT NK_INTEGER */ case 353: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==353); { yymsp[-1].minor.yy982 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 156: /* start_opt ::= START WITH NK_INTEGER */ case 160: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==160); { yymsp[-2].minor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 157: /* start_opt ::= START WITH NK_STRING */ case 161: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==161); { yymsp[-2].minor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 158: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 162: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==162); { yymsp[-3].minor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 163: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 165: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==165); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy923, yymsp[-5].minor.yy80, yymsp[-3].minor.yy106, yymsp[-1].minor.yy106, yymsp[0].minor.yy80); } break; case 164: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy106); } break; case 166: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy106); } break; case 167: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy923, yymsp[0].minor.yy80); } break; case 168: /* cmd ::= ALTER TABLE alter_table_clause */ case 397: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==397); case 398: /* cmd ::= insert_query */ yytestcase(yyruleno==398); { pCxt->pRootNode = yymsp[0].minor.yy80; } break; case 169: /* cmd ::= ALTER STABLE alter_table_clause */ { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy80); } break; case 170: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy80 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy80, yymsp[0].minor.yy80); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 171: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy80 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy80, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy785, yymsp[0].minor.yy292); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 172: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy80 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy80, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy785); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 173: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy80 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy80, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy785, yymsp[0].minor.yy292); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 174: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy80 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy80, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 175: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy80 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy80, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy785, yymsp[0].minor.yy292); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 176: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy80 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy80, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy785); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 177: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy80 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy80, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy785, yymsp[0].minor.yy292); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 178: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy80 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy80, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 179: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { yylhsminor.yy80 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy80, &yymsp[-2].minor.yy785, yymsp[0].minor.yy80); } yymsp[-5].minor.yy80 = yylhsminor.yy80; break; case 181: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 502: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==502); { yylhsminor.yy106 = addNodeToList(pCxt, yymsp[-1].minor.yy106, yymsp[0].minor.yy80); } yymsp[-1].minor.yy106 = yylhsminor.yy106; break; case 182: /* 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.yy80 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy923, yymsp[-8].minor.yy80, yymsp[-6].minor.yy80, yymsp[-5].minor.yy106, yymsp[-2].minor.yy106, yymsp[0].minor.yy80); } yymsp[-9].minor.yy80 = yylhsminor.yy80; break; case 185: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy80 = createDropTableClause(pCxt, yymsp[-1].minor.yy923, yymsp[0].minor.yy80); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 187: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 367: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==367); { yymsp[-2].minor.yy106 = yymsp[-1].minor.yy106; } break; case 188: /* full_table_name ::= table_name */ { yylhsminor.yy80 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy785, NULL); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 189: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy80 = createRealTableNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785, NULL); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 192: /* column_def ::= column_name type_name */ { yylhsminor.yy80 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy292, NULL); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 193: /* type_name ::= BOOL */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 194: /* type_name ::= TINYINT */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 195: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 196: /* type_name ::= INT */ case 197: /* type_name ::= INTEGER */ yytestcase(yyruleno==197); { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_INT); } break; case 198: /* type_name ::= BIGINT */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 199: /* type_name ::= FLOAT */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 200: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 201: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy292 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 202: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 203: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy292 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 204: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy292 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 205: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy292 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 206: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy292 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 207: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy292 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 208: /* type_name ::= JSON */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 209: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy292 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 210: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 211: /* type_name ::= BLOB */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 212: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy292 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 213: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy292 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } break; case 214: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy292 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 215: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy292 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 216: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy292 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 219: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ case 370: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==370); { yymsp[-3].minor.yy106 = yymsp[-1].minor.yy106; } break; case 220: /* table_options ::= */ { yymsp[1].minor.yy80 = createDefaultTableOptions(pCxt); } break; case 221: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy80 = setTableOption(pCxt, yymsp[-2].minor.yy80, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 222: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy80 = setTableOption(pCxt, yymsp[-2].minor.yy80, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy106); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 223: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy80 = setTableOption(pCxt, yymsp[-2].minor.yy80, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy106); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 224: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy80 = setTableOption(pCxt, yymsp[-4].minor.yy80, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy106); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 225: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy80 = setTableOption(pCxt, yymsp[-2].minor.yy80, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 226: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy80 = setTableOption(pCxt, yymsp[-4].minor.yy80, TABLE_OPTION_SMA, yymsp[-1].minor.yy106); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 227: /* table_options ::= table_options DELETE_MARK duration_list */ { yylhsminor.yy80 = setTableOption(pCxt, yymsp[-2].minor.yy80, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy106); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 228: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy80 = createAlterTableOptions(pCxt); yylhsminor.yy80 = setTableOption(pCxt, yylhsminor.yy80, yymsp[0].minor.yy455.type, &yymsp[0].minor.yy455.val); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 229: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy80 = setTableOption(pCxt, yymsp[-1].minor.yy80, yymsp[0].minor.yy455.type, &yymsp[0].minor.yy455.val); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 230: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy455.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 231: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy455.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy455.val = yymsp[0].minor.yy0; } break; case 232: /* duration_list ::= duration_literal */ case 456: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==456); { yylhsminor.yy106 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy80)); } yymsp[0].minor.yy106 = yylhsminor.yy106; break; case 233: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 457: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==457); { yylhsminor.yy106 = addNodeToList(pCxt, yymsp[-2].minor.yy106, releaseRawExprNode(pCxt, yymsp[0].minor.yy80)); } yymsp[-2].minor.yy106 = yylhsminor.yy106; break; case 236: /* rollup_func_name ::= function_name */ { yylhsminor.yy80 = createFunctionNode(pCxt, &yymsp[0].minor.yy785, NULL); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 237: /* rollup_func_name ::= FIRST */ case 238: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==238); case 304: /* tag_item ::= QTAGS */ yytestcase(yyruleno==304); { yylhsminor.yy80 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 241: /* col_name ::= column_name */ case 305: /* tag_item ::= column_name */ yytestcase(yyruleno==305); { yylhsminor.yy80 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy785); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 242: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; case 243: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; case 244: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } break; case 245: /* cmd ::= SHOW db_kind_opt DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy459); } break; case 246: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy709, yymsp[0].minor.yy80, OP_TYPE_LIKE); } break; case 247: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy80, yymsp[0].minor.yy80, OP_TYPE_LIKE); } break; case 248: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy80, NULL, OP_TYPE_LIKE); } break; case 249: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; case 250: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; case 251: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 252: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy80, yymsp[-1].minor.yy80, OP_TYPE_EQUAL); } break; case 253: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy785), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785), OP_TYPE_EQUAL); } break; case 254: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; case 255: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; case 256: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; case 257: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; case 258: /* cmd ::= SHOW LICENCES */ case 259: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==259); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; case 260: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy785); } break; case 261: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy80); } break; case 262: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy80); } break; case 263: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; case 264: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; case 265: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; case 266: /* cmd ::= SHOW VARIABLES */ case 267: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==267); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; case 268: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; case 269: /* 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.yy80); } break; case 270: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; case 271: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; case 272: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; case 273: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 274: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy80); } break; case 275: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; case 276: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; case 277: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy80, yymsp[-1].minor.yy80, OP_TYPE_EQUAL); } break; case 278: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy785), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785), OP_TYPE_EQUAL); } break; case 279: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy80, yymsp[0].minor.yy80, yymsp[-3].minor.yy106); } break; case 280: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy785), yymsp[-4].minor.yy106); } break; case 281: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; case 282: /* cmd ::= SHOW VNODES */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } break; case 283: /* cmd ::= SHOW db_name_cond_opt ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy80, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; case 284: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; case 285: /* cmd ::= SHOW db_name_cond_opt VIEWS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-1].minor.yy80, NULL, OP_TYPE_LIKE); } break; case 286: /* cmd ::= SHOW CREATE VIEW full_table_name */ { pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy80); } break; case 287: /* table_kind_db_name_cond_opt ::= */ { yymsp[1].minor.yy709.kind = SHOW_KIND_ALL; yymsp[1].minor.yy709.dbName = nil_token; } break; case 288: /* table_kind_db_name_cond_opt ::= table_kind */ { yylhsminor.yy709.kind = yymsp[0].minor.yy459; yylhsminor.yy709.dbName = nil_token; } yymsp[0].minor.yy709 = yylhsminor.yy709; break; case 289: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy709.kind = SHOW_KIND_ALL; yylhsminor.yy709.dbName = yymsp[-1].minor.yy785; } yymsp[-1].minor.yy709 = yylhsminor.yy709; break; case 290: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ { yylhsminor.yy709.kind = yymsp[-2].minor.yy459; yylhsminor.yy709.dbName = yymsp[-1].minor.yy785; } yymsp[-2].minor.yy709 = yylhsminor.yy709; break; case 291: /* table_kind ::= NORMAL */ { yymsp[0].minor.yy459 = SHOW_KIND_TABLES_NORMAL; } break; case 292: /* table_kind ::= CHILD */ { yymsp[0].minor.yy459 = SHOW_KIND_TABLES_CHILD; } break; case 293: /* db_name_cond_opt ::= */ case 298: /* from_db_opt ::= */ yytestcase(yyruleno==298); { yymsp[1].minor.yy80 = createDefaultDatabaseCondValue(pCxt); } break; case 294: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy80 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy785); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 296: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 297: /* table_name_cond ::= table_name */ { yylhsminor.yy80 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 299: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy80 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785); } break; case 303: /* tag_item ::= TBNAME */ { yylhsminor.yy80 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 306: /* tag_item ::= column_name column_alias */ { yylhsminor.yy80 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy785), &yymsp[0].minor.yy785); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 307: /* tag_item ::= column_name AS column_alias */ { yylhsminor.yy80 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy785), &yymsp[0].minor.yy785); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 308: /* db_kind_opt ::= */ { yymsp[1].minor.yy459 = SHOW_KIND_ALL; } break; case 309: /* db_kind_opt ::= USER */ { yymsp[0].minor.yy459 = SHOW_KIND_DATABASES_USER; } break; case 310: /* db_kind_opt ::= SYSTEM */ { yymsp[0].minor.yy459 = SHOW_KIND_DATABASES_SYSTEM; } break; case 311: /* 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.yy923, yymsp[-3].minor.yy80, yymsp[-1].minor.yy80, NULL, yymsp[0].minor.yy80); } break; case 312: /* 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.yy923, yymsp[-5].minor.yy80, yymsp[-3].minor.yy80, yymsp[-1].minor.yy106, NULL); } break; case 313: /* cmd ::= DROP INDEX exists_opt full_index_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy923, yymsp[0].minor.yy80); } break; case 314: /* full_index_name ::= index_name */ { yylhsminor.yy80 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy785); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 315: /* full_index_name ::= db_name NK_DOT index_name */ { yylhsminor.yy80 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 316: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-9].minor.yy80 = createIndexOption(pCxt, yymsp[-7].minor.yy106, releaseRawExprNode(pCxt, yymsp[-3].minor.yy80), NULL, yymsp[-1].minor.yy80, yymsp[0].minor.yy80); } break; case 317: /* 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.yy80 = createIndexOption(pCxt, yymsp[-9].minor.yy106, releaseRawExprNode(pCxt, yymsp[-5].minor.yy80), releaseRawExprNode(pCxt, yymsp[-3].minor.yy80), yymsp[-1].minor.yy80, yymsp[0].minor.yy80); } break; case 320: /* func ::= sma_func_name NK_LP expression_list NK_RP */ { yylhsminor.yy80 = createFunctionNode(pCxt, &yymsp[-3].minor.yy785, yymsp[-1].minor.yy106); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 321: /* sma_func_name ::= function_name */ case 545: /* alias_opt ::= table_alias */ yytestcase(yyruleno==545); { yylhsminor.yy785 = yymsp[0].minor.yy785; } yymsp[0].minor.yy785 = yylhsminor.yy785; break; case 326: /* sma_stream_opt ::= */ case 371: /* stream_options ::= */ yytestcase(yyruleno==371); { yymsp[1].minor.yy80 = createStreamOptions(pCxt); } break; case 327: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy80)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = yymsp[-2].minor.yy80; } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 328: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy80)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = yymsp[-2].minor.yy80; } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 329: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy80)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = yymsp[-2].minor.yy80; } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 330: /* with_meta ::= AS */ { yymsp[0].minor.yy982 = 0; } break; case 331: /* with_meta ::= WITH META AS */ { yymsp[-2].minor.yy982 = 1; } break; case 332: /* with_meta ::= ONLY META AS */ { yymsp[-2].minor.yy982 = 2; } break; case 333: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy923, &yymsp[-2].minor.yy785, yymsp[0].minor.yy80); } break; case 334: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy923, &yymsp[-3].minor.yy785, &yymsp[0].minor.yy785, yymsp[-2].minor.yy982); } break; case 335: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy923, &yymsp[-4].minor.yy785, yymsp[-1].minor.yy80, yymsp[-3].minor.yy982, yymsp[0].minor.yy80); } break; case 336: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy923, &yymsp[0].minor.yy785); } break; case 337: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy923, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785); } break; case 338: /* cmd ::= DESC full_table_name */ case 339: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==339); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy80); } break; case 340: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 341: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 342: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==342); { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy923, yymsp[-1].minor.yy80, yymsp[0].minor.yy80); } break; case 345: /* explain_options ::= */ { yymsp[1].minor.yy80 = createDefaultExplainOptions(pCxt); } break; case 346: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy80 = setExplainVerbose(pCxt, yymsp[-2].minor.yy80, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 347: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy80 = setExplainRatio(pCxt, yymsp[-2].minor.yy80, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 348: /* 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.yy923, yymsp[-9].minor.yy923, &yymsp[-6].minor.yy785, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy292, yymsp[-1].minor.yy982, &yymsp[0].minor.yy785, yymsp[-10].minor.yy923); } break; case 349: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy923, &yymsp[0].minor.yy785); } break; case 354: /* language_opt ::= */ case 392: /* on_vgroup_id ::= */ yytestcase(yyruleno==392); { yymsp[1].minor.yy785 = nil_token; } break; case 355: /* language_opt ::= LANGUAGE NK_STRING */ case 393: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==393); { yymsp[-1].minor.yy785 = yymsp[0].minor.yy0; } break; case 358: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ { pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy923, yymsp[-2].minor.yy80, &yymsp[-1].minor.yy0, yymsp[0].minor.yy80); } break; case 359: /* cmd ::= DROP VIEW exists_opt full_view_name */ { pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy923, yymsp[0].minor.yy80); } break; case 360: /* full_view_name ::= view_name */ { yylhsminor.yy80 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy785); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 361: /* full_view_name ::= db_name NK_DOT view_name */ { yylhsminor.yy80 = createViewNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 362: /* 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.yy923, &yymsp[-8].minor.yy785, yymsp[-5].minor.yy80, yymsp[-7].minor.yy80, yymsp[-3].minor.yy106, yymsp[-2].minor.yy80, yymsp[0].minor.yy80, yymsp[-4].minor.yy106); } break; case 363: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy923, &yymsp[0].minor.yy785); } break; case 364: /* cmd ::= PAUSE STREAM exists_opt stream_name */ { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy923, &yymsp[0].minor.yy785); } break; case 365: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy923, yymsp[-1].minor.yy923, &yymsp[0].minor.yy785); } break; case 372: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 373: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==373); { yylhsminor.yy80 = setStreamOptions(pCxt, yymsp[-2].minor.yy80, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 374: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { yylhsminor.yy80 = setStreamOptions(pCxt, yymsp[-3].minor.yy80, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy80)); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 375: /* stream_options ::= stream_options WATERMARK duration_literal */ { yylhsminor.yy80 = setStreamOptions(pCxt, yymsp[-2].minor.yy80, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy80)); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 376: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { yylhsminor.yy80 = setStreamOptions(pCxt, yymsp[-3].minor.yy80, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 377: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { yylhsminor.yy80 = setStreamOptions(pCxt, yymsp[-2].minor.yy80, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 378: /* stream_options ::= stream_options DELETE_MARK duration_literal */ { yylhsminor.yy80 = setStreamOptions(pCxt, yymsp[-2].minor.yy80, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy80)); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 379: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { yylhsminor.yy80 = setStreamOptions(pCxt, yymsp[-3].minor.yy80, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 381: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ case 583: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==583); case 607: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==607); { yymsp[-3].minor.yy80 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy80); } break; case 384: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; case 385: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; case 386: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; case 387: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; case 388: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy785); } break; case 389: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 390: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy106); } break; case 391: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 394: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy106 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 396: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy80, yymsp[0].minor.yy80); } break; case 399: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { yymsp[-6].minor.yy80 = createInsertStmt(pCxt, yymsp[-4].minor.yy80, yymsp[-2].minor.yy106, yymsp[0].minor.yy80); } break; case 400: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ { yymsp[-3].minor.yy80 = createInsertStmt(pCxt, yymsp[-1].minor.yy80, NULL, yymsp[0].minor.yy80); } break; case 401: /* literal ::= NK_INTEGER */ { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 402: /* literal ::= NK_FLOAT */ { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 403: /* literal ::= NK_STRING */ { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 404: /* literal ::= NK_BOOL */ { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 405: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 406: /* literal ::= duration_literal */ case 416: /* signed_literal ::= signed */ yytestcase(yyruleno==416); case 439: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==439); case 440: /* expression ::= literal */ yytestcase(yyruleno==440); case 442: /* expression ::= column_reference */ yytestcase(yyruleno==442); case 443: /* expression ::= function_expression */ yytestcase(yyruleno==443); case 444: /* expression ::= case_when_expression */ yytestcase(yyruleno==444); case 477: /* function_expression ::= literal_func */ yytestcase(yyruleno==477); case 526: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==526); case 530: /* boolean_primary ::= predicate */ yytestcase(yyruleno==530); case 532: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==532); case 533: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==533); case 536: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==536); case 538: /* table_reference ::= table_primary */ yytestcase(yyruleno==538); case 539: /* table_reference ::= joined_table */ yytestcase(yyruleno==539); case 543: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==543); case 609: /* query_simple ::= query_specification */ yytestcase(yyruleno==609); case 610: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==610); case 613: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==613); case 615: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==615); { yylhsminor.yy80 = yymsp[0].minor.yy80; } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 407: /* literal ::= NULL */ { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 408: /* literal ::= NK_QUESTION */ { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 409: /* duration_literal ::= NK_VARIABLE */ case 584: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==584); case 585: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==585); case 586: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==586); { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 410: /* signed ::= NK_INTEGER */ { yylhsminor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 411: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; case 412: /* 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.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 413: /* signed ::= NK_FLOAT */ { yylhsminor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 414: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 415: /* 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.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 417: /* signed_literal ::= NK_STRING */ { yylhsminor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 418: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 419: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 420: /* signed_literal ::= duration_literal */ case 422: /* signed_literal ::= literal_func */ yytestcase(yyruleno==422); case 497: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==497); case 563: /* select_item ::= common_expression */ yytestcase(yyruleno==563); case 573: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==573); case 614: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==614); case 616: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==616); case 629: /* search_condition ::= common_expression */ yytestcase(yyruleno==629); { yylhsminor.yy80 = releaseRawExprNode(pCxt, yymsp[0].minor.yy80); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 421: /* signed_literal ::= NULL */ { yylhsminor.yy80 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 423: /* signed_literal ::= NK_QUESTION */ { yylhsminor.yy80 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 441: /* expression ::= pseudo_column */ { yylhsminor.yy80 = yymsp[0].minor.yy80; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy80, true); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 445: /* expression ::= NK_LP expression NK_RP */ case 531: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==531); case 628: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==628); { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy80)); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 446: /* expression ::= NK_PLUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy80)); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 447: /* expression ::= NK_MINUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy80), NULL)); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 448: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 449: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 450: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 451: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 452: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 453: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 454: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 455: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 458: /* column_reference ::= column_name */ { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy785, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy785)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 459: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785, createColumnNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785)); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 460: /* column_reference ::= NK_ALIAS */ { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 461: /* column_reference ::= table_name NK_DOT NK_ALIAS */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 462: /* pseudo_column ::= ROWTS */ case 463: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==463); case 465: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==465); case 466: /* pseudo_column ::= QEND */ yytestcase(yyruleno==466); case 467: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==467); case 468: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==468); case 469: /* pseudo_column ::= WEND */ yytestcase(yyruleno==469); case 470: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==470); case 471: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==471); case 472: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==472); case 473: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==473); case 479: /* literal_func ::= NOW */ yytestcase(yyruleno==479); { yylhsminor.yy80 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 464: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy785)))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 474: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 475: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==475); { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy785, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy785, yymsp[-1].minor.yy106)); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 476: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy80), yymsp[-1].minor.yy292)); } yymsp[-5].minor.yy80 = yylhsminor.yy80; break; case 478: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy785, NULL)); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 493: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy106 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy106 = yylhsminor.yy106; break; case 498: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 566: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==566); { yylhsminor.yy80 = createColumnNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 499: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy106, yymsp[-1].minor.yy80)); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 500: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy80), yymsp[-2].minor.yy106, yymsp[-1].minor.yy80)); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 503: /* when_then_expr ::= WHEN common_expression THEN common_expression */ { yymsp[-3].minor.yy80 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80)); } break; case 505: /* case_when_else_opt ::= ELSE common_expression */ { yymsp[-1].minor.yy80 = releaseRawExprNode(pCxt, yymsp[0].minor.yy80); } break; case 506: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 511: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==511); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy428, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 507: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy80), releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-4].minor.yy80 = yylhsminor.yy80; break; case 508: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy80), releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-5].minor.yy80 = yylhsminor.yy80; break; case 509: /* predicate ::= expr_or_subquery IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), NULL)); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 510: /* predicate ::= expr_or_subquery IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy80), NULL)); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 512: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy428 = OP_TYPE_LOWER_THAN; } break; case 513: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy428 = OP_TYPE_GREATER_THAN; } break; case 514: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy428 = OP_TYPE_LOWER_EQUAL; } break; case 515: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy428 = OP_TYPE_GREATER_EQUAL; } break; case 516: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy428 = OP_TYPE_NOT_EQUAL; } break; case 517: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy428 = OP_TYPE_EQUAL; } break; case 518: /* compare_op ::= LIKE */ { yymsp[0].minor.yy428 = OP_TYPE_LIKE; } break; case 519: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy428 = OP_TYPE_NOT_LIKE; } break; case 520: /* compare_op ::= MATCH */ { yymsp[0].minor.yy428 = OP_TYPE_MATCH; } break; case 521: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy428 = OP_TYPE_NMATCH; } break; case 522: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy428 = OP_TYPE_JSON_CONTAINS; } break; case 523: /* in_op ::= IN */ { yymsp[0].minor.yy428 = OP_TYPE_IN; } break; case 524: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy428 = OP_TYPE_NOT_IN; } break; case 525: /* in_predicate_value ::= NK_LP literal_list NK_RP */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy106)); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 527: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy80), NULL)); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 528: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 529: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy80); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy80); yylhsminor.yy80 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 537: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy80 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy80, yymsp[0].minor.yy80, NULL); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 540: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy80 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 541: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy80 = createRealTableNode(pCxt, &yymsp[-3].minor.yy785, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 542: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy80 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy80), &yymsp[0].minor.yy785); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 544: /* alias_opt ::= */ { yymsp[1].minor.yy785 = nil_token; } break; case 546: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy785 = yymsp[0].minor.yy785; } break; case 547: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 548: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==548); { yymsp[-2].minor.yy80 = yymsp[-1].minor.yy80; } break; case 549: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy80 = createJoinTableNode(pCxt, yymsp[-4].minor.yy828, yymsp[-5].minor.yy80, yymsp[-2].minor.yy80, yymsp[0].minor.yy80); } yymsp[-5].minor.yy80 = yylhsminor.yy80; break; case 550: /* join_type ::= */ { yymsp[1].minor.yy828 = JOIN_TYPE_INNER; } break; case 551: /* join_type ::= INNER */ { yymsp[0].minor.yy828 = JOIN_TYPE_INNER; } break; case 552: /* 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.yy80 = createSelectStmt(pCxt, yymsp[-11].minor.yy923, yymsp[-9].minor.yy106, yymsp[-8].minor.yy80, yymsp[-12].minor.yy106); yymsp[-13].minor.yy80 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy80, yymsp[-10].minor.yy923); yymsp[-13].minor.yy80 = addWhereClause(pCxt, yymsp[-13].minor.yy80, yymsp[-7].minor.yy80); yymsp[-13].minor.yy80 = addPartitionByClause(pCxt, yymsp[-13].minor.yy80, yymsp[-6].minor.yy106); yymsp[-13].minor.yy80 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy80, yymsp[-2].minor.yy80); yymsp[-13].minor.yy80 = addGroupByClause(pCxt, yymsp[-13].minor.yy80, yymsp[-1].minor.yy106); yymsp[-13].minor.yy80 = addHavingClause(pCxt, yymsp[-13].minor.yy80, yymsp[0].minor.yy80); yymsp[-13].minor.yy80 = addRangeClause(pCxt, yymsp[-13].minor.yy80, yymsp[-5].minor.yy80); yymsp[-13].minor.yy80 = addEveryClause(pCxt, yymsp[-13].minor.yy80, yymsp[-4].minor.yy80); yymsp[-13].minor.yy80 = addFillClause(pCxt, yymsp[-13].minor.yy80, yymsp[-3].minor.yy80); } break; case 553: /* hint_list ::= */ { yymsp[1].minor.yy106 = createHintNodeList(pCxt, NULL); } break; case 554: /* hint_list ::= NK_HINT */ { yylhsminor.yy106 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy106 = yylhsminor.yy106; break; case 559: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy923 = false; } break; case 562: /* select_item ::= NK_STAR */ { yylhsminor.yy80 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy80 = yylhsminor.yy80; break; case 564: /* select_item ::= common_expression column_alias */ case 574: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==574); { yylhsminor.yy80 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy80), &yymsp[0].minor.yy785); } yymsp[-1].minor.yy80 = yylhsminor.yy80; break; case 565: /* select_item ::= common_expression AS column_alias */ case 575: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==575); { yylhsminor.yy80 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), &yymsp[0].minor.yy785); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 570: /* partition_by_clause_opt ::= PARTITION BY partition_list */ case 598: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==598); case 618: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==618); { yymsp[-2].minor.yy106 = yymsp[0].minor.yy106; } break; case 577: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ { yymsp[-5].minor.yy80 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy80), releaseRawExprNode(pCxt, yymsp[-1].minor.yy80)); } break; case 578: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy80 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy80)); } break; case 579: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy80 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy80), NULL, yymsp[-1].minor.yy80, yymsp[0].minor.yy80); } break; case 580: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy80 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy80), releaseRawExprNode(pCxt, yymsp[-3].minor.yy80), yymsp[-1].minor.yy80, yymsp[0].minor.yy80); } break; case 581: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ { yymsp[-6].minor.yy80 = createEventWindowNode(pCxt, yymsp[-3].minor.yy80, yymsp[0].minor.yy80); } break; case 588: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy80 = createFillNode(pCxt, yymsp[-1].minor.yy36, NULL); } break; case 589: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy80 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy106)); } break; case 590: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy80 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy106)); } break; case 591: /* fill_mode ::= NONE */ { yymsp[0].minor.yy36 = FILL_MODE_NONE; } break; case 592: /* fill_mode ::= PREV */ { yymsp[0].minor.yy36 = FILL_MODE_PREV; } break; case 593: /* fill_mode ::= NULL */ { yymsp[0].minor.yy36 = FILL_MODE_NULL; } break; case 594: /* fill_mode ::= NULL_F */ { yymsp[0].minor.yy36 = FILL_MODE_NULL_F; } break; case 595: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy36 = FILL_MODE_LINEAR; } break; case 596: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy36 = FILL_MODE_NEXT; } break; case 599: /* group_by_list ::= expr_or_subquery */ { yylhsminor.yy106 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[0].minor.yy106 = yylhsminor.yy106; break; case 600: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { yylhsminor.yy106 = addNodeToList(pCxt, yymsp[-2].minor.yy106, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy80))); } yymsp[-2].minor.yy106 = yylhsminor.yy106; break; case 604: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { yymsp[-5].minor.yy80 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy80), releaseRawExprNode(pCxt, yymsp[-1].minor.yy80)); } break; case 605: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy80 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy80)); } break; case 608: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy80 = addOrderByClause(pCxt, yymsp[-3].minor.yy80, yymsp[-2].minor.yy106); yylhsminor.yy80 = addSlimitClause(pCxt, yylhsminor.yy80, yymsp[-1].minor.yy80); yylhsminor.yy80 = addLimitClause(pCxt, yylhsminor.yy80, yymsp[0].minor.yy80); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 611: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { yylhsminor.yy80 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy80, yymsp[0].minor.yy80); } yymsp[-3].minor.yy80 = yylhsminor.yy80; break; case 612: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { yylhsminor.yy80 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy80, yymsp[0].minor.yy80); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 620: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 624: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==624); { yymsp[-1].minor.yy80 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 621: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 625: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==625); { yymsp[-3].minor.yy80 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; case 622: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 626: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==626); { yymsp[-3].minor.yy80 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; case 627: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy80 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy80); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 632: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { yylhsminor.yy80 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy80), yymsp[-1].minor.yy812, yymsp[0].minor.yy763); } yymsp[-2].minor.yy80 = yylhsminor.yy80; break; case 633: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy812 = ORDER_ASC; } break; case 634: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy812 = ORDER_ASC; } break; case 635: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy812 = ORDER_DESC; } break; case 636: /* null_ordering_opt ::= */ { yymsp[1].minor.yy763 = NULL_ORDER_DEFAULT; } break; case 637: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy763 = NULL_ORDER_FIRST; } break; case 638: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy763 = 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 }