homework-jianmu/source/libs/parser/src/sql.c

6873 lines
359 KiB
C

/* This file is automatically generated by Lemon from input grammar
** source file "sql.y". */
/*
** 2000-05-29
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
** Driver template for the LEMON parser generator.
**
** The "lemon" program processes an LALR(1) input grammar file, then uses
** this template to construct a parser. The "lemon" program inserts text
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
** interstitial "-" characters) contained in this template is changed into
** the value of the %name directive from the grammar. Otherwise, the content
** of this template is copied straight through into the generate parser
** source file.
**
** The following is the concatenation of all %include directives from the
** input grammar file:
*/
#include <stdio.h>
#include <assert.h>
/************ Begin %include sections from the grammar ************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>
#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 504
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SToken
typedef union {
int yyinit;
ParseTOKENTYPE yy0;
EShowKind yy33;
EJoinType yy36;
SNode* yy56;
SShowTablesOption yy205;
int8_t yy215;
int64_t yy333;
ENullOrder yy361;
EOperatorType yy380;
bool yy425;
SDataType yy448;
int32_t yy676;
SNodeList* yy712;
EOrder yy722;
EFillMode yy774;
STokenPair yy777;
SToken yy785;
SAlterOption yy893;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
#define ParseARG_SDECL SAstCreateContext* pCxt ;
#define ParseARG_PDECL , SAstCreateContext* pCxt
#define ParseARG_PARAM ,pCxt
#define ParseARG_FETCH SAstCreateContext* pCxt =yypParser->pCxt ;
#define ParseARG_STORE yypParser->pCxt =pCxt ;
#define ParseCTX_SDECL
#define ParseCTX_PDECL
#define ParseCTX_PARAM
#define ParseCTX_FETCH
#define ParseCTX_STORE
#define YYFALLBACK 1
#define YYNSTATE 822
#define YYNRULE 631
#define YYNRULE_WITH_ACTION 631
#define YYNTOKEN 345
#define YY_MAX_SHIFT 821
#define YY_MIN_SHIFTREDUCE 1220
#define YY_MAX_SHIFTREDUCE 1850
#define YY_ERROR_ACTION 1851
#define YY_ACCEPT_ACTION 1852
#define YY_NO_ACTION 1853
#define YY_MIN_REDUCE 1854
#define YY_MAX_REDUCE 2484
/************* 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 (3640)
static const YYACTIONTYPE yy_action[] = {
/* 0 */ 2094, 707, 2041, 674, 2030, 2460, 2455, 548, 2455, 2026,
/* 10 */ 549, 1897, 48, 46, 1774, 693, 2460, 668, 412, 2455,
/* 20 */ 409, 133, 1616, 1855, 673, 198, 164, 2459, 590, 2456,
/* 30 */ 675, 2456, 2458, 391, 2043, 1700, 1937, 1614, 2459, 38,
/* 40 */ 314, 2092, 2456, 2457, 123, 2304, 2286, 122, 121, 120,
/* 50 */ 119, 118, 117, 116, 115, 114, 686, 142, 1641, 689,
/* 60 */ 1643, 41, 40, 155, 1695, 47, 45, 44, 43, 42,
/* 70 */ 19, 707, 2041, 1852, 170, 123, 1866, 1622, 122, 121,
/* 80 */ 120, 119, 118, 117, 116, 115, 114, 2304, 41, 40,
/* 90 */ 67, 133, 47, 45, 44, 43, 42, 1877, 595, 2253,
/* 100 */ 1644, 723, 706, 818, 667, 706, 15, 319, 793, 792,
/* 110 */ 791, 790, 421, 1641, 789, 788, 147, 783, 782, 781,
/* 120 */ 780, 779, 778, 777, 146, 771, 770, 769, 420, 419,
/* 130 */ 766, 765, 764, 179, 178, 763, 556, 55, 2285, 549,
/* 140 */ 1897, 2323, 1702, 1703, 110, 2287, 727, 2289, 2290, 722,
/* 150 */ 2253, 717, 424, 686, 142, 706, 181, 423, 2376, 180,
/* 160 */ 1816, 2172, 405, 2372, 294, 2384, 685, 2460, 134, 684,
/* 170 */ 169, 2455, 463, 563, 1675, 1685, 402, 200, 1980, 2169,
/* 180 */ 694, 1701, 1704, 2153, 1643, 2406, 2094, 625, 51, 673,
/* 190 */ 198, 51, 62, 390, 2456, 675, 1617, 669, 1615, 62,
/* 200 */ 649, 2092, 623, 2455, 621, 263, 262, 41, 40, 62,
/* 210 */ 62, 47, 45, 44, 43, 42, 296, 515, 513, 1364,
/* 220 */ 361, 2461, 198, 267, 212, 1778, 2456, 675, 1620, 1621,
/* 230 */ 1672, 1641, 1674, 1677, 1678, 1679, 1680, 1681, 1682, 1683,
/* 240 */ 1684, 719, 715, 1693, 1694, 1696, 1697, 1698, 1699, 2,
/* 250 */ 48, 46, 1854, 686, 142, 360, 194, 1639, 409, 1366,
/* 260 */ 1616, 197, 2384, 2385, 500, 140, 2389, 518, 553, 369,
/* 270 */ 218, 1840, 517, 1700, 550, 1614, 132, 131, 130, 129,
/* 280 */ 128, 127, 126, 125, 124, 609, 608, 607, 483, 567,
/* 290 */ 519, 1260, 599, 139, 603, 485, 1585, 1586, 602, 454,
/* 300 */ 634, 453, 1695, 601, 606, 385, 384, 2018, 19, 600,
/* 310 */ 1645, 88, 596, 1729, 87, 1622, 47, 45, 44, 43,
/* 320 */ 42, 41, 40, 2286, 75, 47, 45, 44, 43, 42,
/* 330 */ 2216, 452, 52, 1262, 1265, 1266, 724, 664, 1906, 232,
/* 340 */ 296, 818, 378, 551, 15, 1904, 418, 417, 298, 2172,
/* 350 */ 41, 40, 298, 471, 47, 45, 44, 43, 42, 298,
/* 360 */ 688, 196, 2384, 2385, 2304, 140, 2389, 2170, 694, 298,
/* 370 */ 298, 1623, 1730, 234, 86, 30, 2253, 551, 723, 1904,
/* 380 */ 1702, 1703, 268, 2159, 2138, 1676, 507, 506, 505, 504,
/* 390 */ 499, 498, 497, 496, 495, 491, 490, 489, 488, 359,
/* 400 */ 480, 479, 478, 1644, 473, 472, 376, 1672, 1508, 1509,
/* 410 */ 1268, 1710, 1675, 1685, 1527, 2285, 1640, 1641, 2323, 1701,
/* 420 */ 1704, 110, 2287, 727, 2289, 2290, 722, 1641, 717, 670,
/* 430 */ 665, 658, 762, 2475, 1617, 2376, 1615, 383, 382, 405,
/* 440 */ 2372, 1673, 760, 157, 156, 757, 756, 755, 154, 1817,
/* 450 */ 2286, 1642, 37, 407, 1724, 1725, 1726, 1727, 1728, 1732,
/* 460 */ 1733, 1734, 1735, 724, 12, 1876, 1620, 1621, 1672, 2246,
/* 470 */ 1674, 1677, 1678, 1679, 1680, 1681, 1682, 1683, 1684, 719,
/* 480 */ 715, 1693, 1694, 1696, 1697, 1698, 1699, 2, 12, 48,
/* 490 */ 46, 2304, 298, 92, 1642, 192, 1285, 409, 1284, 1616,
/* 500 */ 1285, 1847, 1284, 2253, 773, 723, 1875, 2081, 381, 380,
/* 510 */ 379, 592, 1700, 138, 1614, 34, 597, 649, 2253, 2036,
/* 520 */ 2455, 41, 40, 2286, 1731, 47, 45, 44, 43, 42,
/* 530 */ 92, 1286, 1626, 594, 1644, 1286, 689, 593, 2461, 198,
/* 540 */ 1361, 1695, 2285, 2456, 675, 2323, 564, 19, 110, 2287,
/* 550 */ 727, 2289, 2290, 722, 1622, 717, 2037, 1805, 145, 2253,
/* 560 */ 152, 2347, 2376, 1622, 2304, 2017, 405, 2372, 775, 509,
/* 570 */ 1421, 1676, 776, 1456, 1457, 2002, 2253, 1874, 723, 1873,
/* 580 */ 818, 1520, 1521, 15, 1412, 752, 751, 750, 1416, 749,
/* 590 */ 1418, 1419, 748, 745, 1872, 1427, 742, 1429, 1430, 739,
/* 600 */ 736, 733, 565, 2165, 35, 1846, 661, 660, 1803, 1804,
/* 610 */ 1806, 1807, 1808, 1645, 1736, 2285, 1540, 1541, 2323, 1702,
/* 620 */ 1703, 110, 2287, 727, 2289, 2290, 722, 1673, 717, 2028,
/* 630 */ 2253, 222, 2253, 181, 762, 2376, 753, 41, 40, 405,
/* 640 */ 2372, 47, 45, 44, 43, 42, 414, 2253, 180, 2087,
/* 650 */ 2089, 1675, 1685, 508, 36, 1539, 1542, 598, 1701, 1704,
/* 660 */ 41, 40, 2407, 2094, 47, 45, 44, 43, 42, 249,
/* 670 */ 377, 2024, 2152, 1617, 1940, 1615, 1376, 2094, 702, 707,
/* 680 */ 2041, 1359, 707, 2041, 375, 174, 686, 142, 1871, 545,
/* 690 */ 189, 1375, 2092, 584, 580, 576, 572, 543, 248, 203,
/* 700 */ 539, 535, 56, 1870, 266, 1620, 1621, 1672, 265, 1674,
/* 710 */ 1677, 1678, 1679, 1680, 1681, 1682, 1683, 1684, 719, 715,
/* 720 */ 1693, 1694, 1696, 1697, 1698, 1699, 2, 48, 46, 1705,
/* 730 */ 2286, 707, 2041, 102, 1616, 409, 1790, 1616, 1869, 93,
/* 740 */ 1868, 2253, 246, 724, 1645, 2414, 609, 608, 607, 1614,
/* 750 */ 1700, 460, 1614, 599, 139, 603, 2253, 520, 2034, 602,
/* 760 */ 674, 2286, 2094, 2455, 601, 606, 385, 384, 2019, 399,
/* 770 */ 600, 2304, 95, 596, 724, 364, 2427, 2092, 389, 1695,
/* 780 */ 627, 673, 198, 2253, 1865, 723, 2456, 675, 12, 1622,
/* 790 */ 10, 2253, 1622, 2253, 199, 2384, 2385, 1864, 140, 2389,
/* 800 */ 456, 148, 2304, 41, 40, 455, 2045, 47, 45, 44,
/* 810 */ 43, 42, 245, 238, 2253, 818, 723, 273, 818, 243,
/* 820 */ 561, 49, 2285, 707, 2041, 2323, 2286, 1863, 110, 2287,
/* 830 */ 727, 2289, 2290, 722, 1380, 717, 403, 2253, 236, 721,
/* 840 */ 2475, 2263, 2376, 461, 167, 276, 405, 2372, 649, 1379,
/* 850 */ 2253, 2455, 2043, 2285, 1644, 2032, 2323, 1702, 1703, 110,
/* 860 */ 2287, 727, 2289, 2290, 722, 2267, 717, 2304, 412, 2461,
/* 870 */ 198, 2475, 155, 2376, 2456, 675, 167, 405, 2372, 2253,
/* 880 */ 2253, 723, 1641, 2391, 2043, 1862, 648, 41, 40, 1675,
/* 890 */ 1685, 47, 45, 44, 43, 42, 1701, 1704, 2016, 760,
/* 900 */ 157, 156, 757, 756, 755, 154, 718, 2269, 1617, 2388,
/* 910 */ 1615, 1617, 1981, 1615, 709, 522, 2348, 717, 2285, 707,
/* 920 */ 2041, 2323, 707, 2041, 350, 2287, 727, 2289, 2290, 722,
/* 930 */ 720, 717, 708, 2341, 2459, 469, 2148, 2125, 2253, 477,
/* 940 */ 1620, 1621, 492, 1620, 1621, 1672, 1580, 1674, 1677, 1678,
/* 950 */ 1679, 1680, 1681, 1682, 1683, 1684, 719, 715, 1693, 1694,
/* 960 */ 1696, 1697, 1698, 1699, 2, 48, 46, 1797, 2286, 707,
/* 970 */ 2041, 614, 2094, 409, 1867, 1616, 2247, 415, 632, 404,
/* 980 */ 2094, 724, 1798, 656, 214, 167, 626, 2092, 1700, 493,
/* 990 */ 1614, 1861, 2094, 2043, 108, 2093, 707, 2041, 1641, 413,
/* 1000 */ 475, 2148, 264, 305, 306, 502, 2148, 2092, 304, 2304,
/* 1010 */ 193, 143, 60, 444, 2088, 2089, 566, 1695, 617, 2033,
/* 1020 */ 646, 2253, 1796, 723, 649, 611, 649, 2455, 594, 2455,
/* 1030 */ 1622, 261, 593, 760, 157, 156, 757, 756, 755, 154,
/* 1040 */ 446, 442, 9, 690, 2253, 2461, 198, 2461, 198, 216,
/* 1050 */ 2456, 675, 2456, 675, 221, 166, 818, 707, 2041, 49,
/* 1060 */ 2285, 2286, 1860, 2323, 1645, 2263, 110, 2287, 727, 2289,
/* 1070 */ 2290, 722, 71, 717, 724, 70, 2448, 2038, 2475, 2271,
/* 1080 */ 2376, 707, 2041, 1859, 405, 2372, 707, 2041, 711, 2267,
/* 1090 */ 2348, 649, 1673, 1858, 2455, 1702, 1703, 1771, 487, 605,
/* 1100 */ 604, 269, 2304, 707, 2041, 144, 277, 486, 2347, 707,
/* 1110 */ 2041, 678, 2461, 198, 2253, 2253, 723, 2456, 675, 1857,
/* 1120 */ 707, 2041, 167, 692, 2234, 707, 2041, 1675, 1685, 309,
/* 1130 */ 2044, 2269, 406, 2237, 1701, 1704, 2253, 707, 2041, 2391,
/* 1140 */ 704, 717, 14, 13, 2263, 705, 2253, 707, 2041, 1617,
/* 1150 */ 681, 1615, 1676, 2285, 787, 785, 2323, 315, 2272, 110,
/* 1160 */ 2287, 727, 2289, 2290, 722, 2387, 717, 416, 2267, 1288,
/* 1170 */ 1289, 2475, 2253, 2376, 44, 43, 42, 405, 2372, 586,
/* 1180 */ 585, 1620, 1621, 1672, 431, 1674, 1677, 1678, 1679, 1680,
/* 1190 */ 1681, 1682, 1683, 1684, 719, 715, 1693, 1694, 1696, 1697,
/* 1200 */ 1698, 1699, 2, 48, 46, 155, 2286, 2391, 1673, 754,
/* 1210 */ 2269, 409, 2085, 1616, 588, 587, 1882, 813, 677, 724,
/* 1220 */ 717, 2395, 758, 1924, 759, 2085, 1700, 2085, 1614, 328,
/* 1230 */ 1265, 1266, 2071, 2386, 2396, 1763, 2135, 3, 135, 254,
/* 1240 */ 256, 258, 252, 255, 257, 610, 278, 2304, 1743, 54,
/* 1250 */ 85, 260, 1915, 1913, 259, 1695, 629, 50, 628, 2253,
/* 1260 */ 714, 723, 50, 182, 155, 1763, 2420, 50, 1622, 1849,
/* 1270 */ 1850, 303, 1907, 72, 612, 615, 153, 155, 467, 1583,
/* 1280 */ 14, 13, 65, 50, 50, 1625, 2274, 291, 731, 153,
/* 1290 */ 96, 107, 662, 767, 818, 155, 136, 15, 2285, 2286,
/* 1300 */ 104, 2323, 153, 768, 110, 2287, 727, 2289, 2290, 722,
/* 1310 */ 137, 717, 724, 1624, 285, 1319, 2475, 1338, 2376, 418,
/* 1320 */ 417, 2305, 405, 2372, 811, 1978, 1977, 1336, 2157, 1630,
/* 1330 */ 2410, 1802, 659, 1702, 1703, 395, 1801, 283, 691, 422,
/* 1340 */ 2304, 1537, 1700, 2276, 1623, 307, 205, 699, 392, 666,
/* 1350 */ 311, 1406, 2253, 696, 723, 1320, 1737, 1686, 327, 1903,
/* 1360 */ 1898, 1770, 1434, 1438, 2158, 1675, 1685, 679, 2082, 1445,
/* 1370 */ 1443, 1695, 1701, 1704, 2411, 2421, 158, 687, 293, 290,
/* 1380 */ 5, 297, 2003, 425, 1622, 430, 373, 1617, 438, 1615,
/* 1390 */ 1648, 2285, 447, 439, 2323, 206, 448, 110, 2287, 727,
/* 1400 */ 2289, 2290, 722, 207, 717, 450, 209, 1561, 682, 2351,
/* 1410 */ 713, 2376, 322, 1639, 464, 405, 2372, 1640, 1721, 1620,
/* 1420 */ 1621, 1672, 468, 1674, 1677, 1678, 1679, 1680, 1681, 1682,
/* 1430 */ 1683, 1684, 719, 715, 1693, 1694, 1696, 1697, 1698, 1699,
/* 1440 */ 2, 220, 168, 470, 474, 476, 1628, 335, 511, 481,
/* 1450 */ 494, 503, 501, 510, 2150, 512, 523, 524, 521, 224,
/* 1460 */ 225, 526, 227, 527, 332, 74, 529, 531, 73, 1646,
/* 1470 */ 4, 546, 547, 554, 1627, 1642, 555, 557, 357, 235,
/* 1480 */ 558, 237, 1647, 559, 2286, 1649, 560, 1650, 562, 230,
/* 1490 */ 530, 528, 525, 2166, 240, 633, 589, 724, 242, 568,
/* 1500 */ 354, 618, 2225, 1631, 90, 1626, 91, 247, 112, 619,
/* 1510 */ 2222, 591, 2031, 631, 94, 2221, 149, 251, 637, 323,
/* 1520 */ 636, 270, 638, 2027, 274, 2304, 1568, 272, 642, 253,
/* 1530 */ 62, 644, 2426, 160, 161, 1634, 1636, 2253, 2029, 723,
/* 1540 */ 2025, 162, 163, 663, 8, 697, 2425, 175, 2398, 715,
/* 1550 */ 1693, 1694, 1696, 1697, 1698, 1699, 672, 653, 641, 284,
/* 1560 */ 654, 286, 652, 287, 651, 2454, 288, 292, 63, 2478,
/* 1570 */ 1763, 643, 683, 680, 396, 141, 2285, 1643, 280, 2323,
/* 1580 */ 282, 1, 110, 2287, 727, 2289, 2290, 722, 289, 717,
/* 1590 */ 1768, 1766, 201, 299, 2349, 185, 2376, 324, 695, 150,
/* 1600 */ 405, 2372, 2180, 2179, 2178, 325, 700, 2392, 401, 701,
/* 1610 */ 326, 61, 83, 82, 459, 103, 2086, 211, 1244, 2042,
/* 1620 */ 729, 151, 812, 815, 101, 329, 317, 2357, 53, 365,
/* 1630 */ 451, 449, 366, 353, 331, 333, 2245, 159, 2244, 817,
/* 1640 */ 2243, 358, 80, 2286, 440, 2238, 427, 437, 433, 429,
/* 1650 */ 426, 452, 428, 1607, 338, 1608, 724, 204, 432, 2236,
/* 1660 */ 434, 435, 436, 1606, 2235, 374, 2233, 352, 441, 2286,
/* 1670 */ 342, 2232, 443, 2231, 445, 1596, 2212, 208, 2211, 210,
/* 1680 */ 1564, 81, 724, 1563, 2304, 2193, 2192, 2191, 457, 458,
/* 1690 */ 298, 2190, 2189, 2140, 2134, 462, 2253, 1507, 723, 465,
/* 1700 */ 466, 2131, 213, 2130, 2129, 84, 2128, 2133, 2132, 2127,
/* 1710 */ 2304, 482, 215, 2126, 2124, 2123, 2122, 217, 2121, 484,
/* 1720 */ 2137, 2120, 2253, 2119, 723, 2118, 2117, 2116, 2115, 2114,
/* 1730 */ 2113, 2112, 2111, 2110, 2109, 2285, 2286, 219, 2323, 2108,
/* 1740 */ 2107, 110, 2287, 727, 2289, 2290, 722, 2106, 717, 724,
/* 1750 */ 2105, 2104, 2103, 710, 2102, 2376, 2136, 89, 2101, 405,
/* 1760 */ 2372, 2285, 2100, 1513, 2323, 2286, 2099, 111, 2287, 727,
/* 1770 */ 2289, 2290, 722, 2098, 717, 223, 514, 2304, 724, 2097,
/* 1780 */ 516, 2376, 2096, 2095, 1943, 2375, 2372, 1377, 362, 2253,
/* 1790 */ 1381, 723, 363, 1942, 1373, 1941, 1939, 1936, 532, 226,
/* 1800 */ 228, 534, 1935, 1928, 533, 538, 2304, 229, 536, 540,
/* 1810 */ 1917, 537, 542, 544, 1893, 541, 2273, 77, 2253, 231,
/* 1820 */ 723, 190, 1267, 1892, 233, 2210, 191, 552, 2285, 78,
/* 1830 */ 2200, 2323, 2188, 2286, 111, 2287, 727, 2289, 2290, 722,
/* 1840 */ 239, 717, 241, 2187, 2164, 2020, 724, 1938, 2376, 244,
/* 1850 */ 1934, 1312, 712, 2372, 569, 635, 570, 725, 571, 1932,
/* 1860 */ 2323, 573, 574, 111, 2287, 727, 2289, 2290, 722, 575,
/* 1870 */ 717, 1930, 577, 821, 2304, 579, 1927, 2376, 581, 578,
/* 1880 */ 582, 368, 2372, 1912, 583, 1910, 2253, 1911, 723, 321,
/* 1890 */ 1909, 1889, 2022, 1450, 1449, 2021, 1349, 1363, 2286, 64,
/* 1900 */ 1362, 250, 1360, 1358, 1357, 188, 1356, 1355, 784, 1925,
/* 1910 */ 1354, 724, 786, 809, 805, 801, 797, 2286, 318, 1351,
/* 1920 */ 386, 1350, 1916, 1348, 387, 2285, 1914, 388, 2323, 1888,
/* 1930 */ 724, 171, 2287, 727, 2289, 2290, 722, 616, 717, 2304,
/* 1940 */ 620, 613, 1887, 1886, 1885, 622, 1884, 624, 113, 1590,
/* 1950 */ 1592, 2253, 1589, 723, 2209, 1594, 1570, 29, 2304, 109,
/* 1960 */ 1572, 68, 312, 2199, 2186, 2185, 57, 639, 165, 2460,
/* 1970 */ 2253, 275, 723, 650, 2417, 640, 17, 1549, 66, 195,
/* 1980 */ 20, 6, 1548, 31, 7, 1819, 279, 645, 281, 1574,
/* 1990 */ 2285, 657, 2286, 2323, 703, 647, 172, 2287, 727, 2289,
/* 2000 */ 2290, 722, 21, 717, 22, 724, 1800, 173, 655, 2285,
/* 2010 */ 184, 2274, 2323, 183, 33, 111, 2287, 727, 2289, 2290,
/* 2020 */ 722, 1789, 717, 32, 24, 1834, 79, 1833, 1839, 2376,
/* 2030 */ 1840, 397, 301, 2304, 2373, 1838, 1837, 398, 295, 300,
/* 2040 */ 1760, 59, 1759, 2184, 176, 2253, 98, 723, 2163, 2162,
/* 2050 */ 676, 2476, 99, 26, 97, 25, 104, 302, 271, 2286,
/* 2060 */ 1795, 186, 23, 308, 69, 18, 100, 313, 13, 11,
/* 2070 */ 177, 310, 724, 58, 698, 1632, 1712, 1711, 187, 1665,
/* 2080 */ 1722, 1690, 2326, 728, 2285, 2286, 716, 2323, 726, 1688,
/* 2090 */ 171, 2287, 727, 2289, 2290, 722, 730, 717, 724, 39,
/* 2100 */ 2304, 411, 734, 1687, 1657, 393, 737, 16, 27, 28,
/* 2110 */ 1426, 732, 2253, 1435, 723, 740, 1432, 735, 743, 1431,
/* 2120 */ 738, 746, 1428, 741, 316, 744, 2304, 1444, 1440, 1422,
/* 2130 */ 1420, 394, 747, 2418, 1425, 1345, 105, 106, 2253, 76,
/* 2140 */ 723, 1310, 761, 1424, 1342, 1341, 1340, 1339, 1337, 1335,
/* 2150 */ 1334, 2285, 1423, 1333, 2323, 2286, 1371, 351, 2287, 727,
/* 2160 */ 2289, 2290, 722, 772, 717, 1370, 202, 774, 724, 1331,
/* 2170 */ 1328, 1330, 1329, 1327, 1326, 1325, 1367, 2285, 1365, 1322,
/* 2180 */ 2323, 1321, 2286, 351, 2287, 727, 2289, 2290, 722, 1318,
/* 2190 */ 717, 1317, 1316, 1933, 1315, 724, 2304, 794, 795, 1931,
/* 2200 */ 796, 798, 799, 800, 1929, 802, 803, 804, 2253, 1926,
/* 2210 */ 723, 806, 1908, 807, 808, 810, 1257, 1883, 1245, 814,
/* 2220 */ 320, 816, 819, 2304, 1618, 330, 820, 1853, 1853, 1853,
/* 2230 */ 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853,
/* 2240 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853,
/* 2250 */ 2323, 1853, 1853, 344, 2287, 727, 2289, 2290, 722, 1853,
/* 2260 */ 717, 1853, 1853, 1853, 1853, 1853, 2286, 1853, 1853, 1853,
/* 2270 */ 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323, 1853, 724,
/* 2280 */ 172, 2287, 727, 2289, 2290, 722, 1853, 717, 2286, 1853,
/* 2290 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 671,
/* 2300 */ 1853, 721, 1853, 1853, 1853, 1853, 1853, 2304, 1853, 1853,
/* 2310 */ 1853, 1853, 400, 1853, 1853, 1853, 1853, 1853, 1853, 2253,
/* 2320 */ 1853, 723, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2304,
/* 2330 */ 1853, 1853, 1853, 1853, 1853, 2477, 1853, 1853, 1853, 1853,
/* 2340 */ 1853, 2253, 1853, 723, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2350 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853,
/* 2360 */ 1853, 2323, 1853, 1853, 351, 2287, 727, 2289, 2290, 722,
/* 2370 */ 1853, 717, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2380 */ 2285, 1853, 1853, 2323, 1853, 1853, 350, 2287, 727, 2289,
/* 2390 */ 2290, 722, 1853, 717, 2286, 2342, 1853, 1853, 1853, 1853,
/* 2400 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 724, 1853, 1853,
/* 2410 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2420 */ 1853, 2286, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2430 */ 1853, 1853, 1853, 1853, 724, 2304, 1853, 1853, 1853, 1853,
/* 2440 */ 408, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723,
/* 2450 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2460 */ 1853, 1853, 2304, 1853, 1853, 1853, 1853, 410, 1853, 1853,
/* 2470 */ 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, 1853,
/* 2480 */ 1853, 1853, 1853, 1853, 1853, 1853, 2285, 2286, 1853, 2323,
/* 2490 */ 1853, 1853, 351, 2287, 727, 2289, 2290, 722, 1853, 717,
/* 2500 */ 724, 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853,
/* 2510 */ 1853, 1853, 1853, 2285, 1853, 1853, 2323, 724, 1853, 351,
/* 2520 */ 2287, 727, 2289, 2290, 722, 1853, 717, 1853, 2304, 1853,
/* 2530 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2540 */ 2253, 1853, 723, 1853, 1853, 2304, 1853, 1853, 1853, 1853,
/* 2550 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723,
/* 2560 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2570 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 630,
/* 2580 */ 1853, 1853, 2323, 1853, 2286, 346, 2287, 727, 2289, 2290,
/* 2590 */ 722, 1853, 717, 1853, 1853, 1853, 2285, 724, 1853, 2323,
/* 2600 */ 1853, 1853, 336, 2287, 727, 2289, 2290, 722, 1853, 717,
/* 2610 */ 1853, 1853, 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853,
/* 2620 */ 1853, 1853, 1853, 1853, 1853, 2304, 1853, 1853, 724, 1853,
/* 2630 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723,
/* 2640 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2650 */ 2286, 1853, 1853, 1853, 1853, 1853, 2304, 1853, 1853, 1853,
/* 2660 */ 1853, 1853, 1853, 724, 1853, 1853, 1853, 1853, 2253, 1853,
/* 2670 */ 723, 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323,
/* 2680 */ 1853, 1853, 334, 2287, 727, 2289, 2290, 722, 1853, 717,
/* 2690 */ 1853, 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2700 */ 1853, 1853, 1853, 2253, 1853, 723, 1853, 2285, 1853, 1853,
/* 2710 */ 2323, 1853, 1853, 337, 2287, 727, 2289, 2290, 722, 1853,
/* 2720 */ 717, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2730 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2740 */ 1853, 1853, 2285, 2286, 1853, 2323, 1853, 1853, 343, 2287,
/* 2750 */ 727, 2289, 2290, 722, 1853, 717, 724, 1853, 1853, 1853,
/* 2760 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2770 */ 2286, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2780 */ 1853, 1853, 1853, 724, 2304, 1853, 1853, 1853, 1853, 1853,
/* 2790 */ 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853,
/* 2800 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2810 */ 1853, 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2820 */ 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, 1853, 1853,
/* 2830 */ 1853, 1853, 1853, 1853, 1853, 2285, 2286, 1853, 2323, 1853,
/* 2840 */ 1853, 347, 2287, 727, 2289, 2290, 722, 1853, 717, 724,
/* 2850 */ 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2860 */ 1853, 1853, 2285, 1853, 1853, 2323, 724, 1853, 339, 2287,
/* 2870 */ 727, 2289, 2290, 722, 1853, 717, 1853, 2304, 1853, 1853,
/* 2880 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253,
/* 2890 */ 1853, 723, 1853, 1853, 2304, 1853, 1853, 1853, 1853, 1853,
/* 2900 */ 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853,
/* 2910 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 2920 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853,
/* 2930 */ 1853, 2323, 1853, 2286, 348, 2287, 727, 2289, 2290, 722,
/* 2940 */ 1853, 717, 1853, 1853, 1853, 2285, 724, 1853, 2323, 1853,
/* 2950 */ 1853, 340, 2287, 727, 2289, 2290, 722, 1853, 717, 1853,
/* 2960 */ 1853, 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853,
/* 2970 */ 1853, 1853, 1853, 1853, 2304, 1853, 1853, 724, 1853, 1853,
/* 2980 */ 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853,
/* 2990 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2286,
/* 3000 */ 1853, 1853, 1853, 1853, 1853, 2304, 1853, 1853, 1853, 1853,
/* 3010 */ 1853, 1853, 724, 1853, 1853, 1853, 1853, 2253, 1853, 723,
/* 3020 */ 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323, 1853,
/* 3030 */ 1853, 349, 2287, 727, 2289, 2290, 722, 1853, 717, 1853,
/* 3040 */ 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3050 */ 1853, 1853, 2253, 1853, 723, 1853, 2285, 1853, 1853, 2323,
/* 3060 */ 1853, 1853, 341, 2287, 727, 2289, 2290, 722, 1853, 717,
/* 3070 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3080 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3090 */ 1853, 2285, 2286, 1853, 2323, 1853, 1853, 355, 2287, 727,
/* 3100 */ 2289, 2290, 722, 1853, 717, 724, 1853, 1853, 1853, 1853,
/* 3110 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2286,
/* 3120 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3130 */ 1853, 1853, 724, 2304, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3140 */ 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853,
/* 3150 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3160 */ 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3170 */ 1853, 1853, 2253, 1853, 723, 1853, 1853, 1853, 1853, 1853,
/* 3180 */ 1853, 1853, 1853, 1853, 2285, 2286, 1853, 2323, 1853, 1853,
/* 3190 */ 356, 2287, 727, 2289, 2290, 722, 1853, 717, 724, 1853,
/* 3200 */ 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3210 */ 1853, 2285, 1853, 1853, 2323, 724, 1853, 2298, 2287, 727,
/* 3220 */ 2289, 2290, 722, 1853, 717, 1853, 2304, 1853, 1853, 1853,
/* 3230 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853,
/* 3240 */ 723, 1853, 1853, 2304, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3250 */ 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853,
/* 3260 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3270 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853,
/* 3280 */ 2323, 1853, 2286, 2297, 2287, 727, 2289, 2290, 722, 1853,
/* 3290 */ 717, 1853, 1853, 1853, 2285, 724, 1853, 2323, 1853, 1853,
/* 3300 */ 2296, 2287, 727, 2289, 2290, 722, 1853, 717, 1853, 1853,
/* 3310 */ 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3320 */ 1853, 1853, 1853, 2304, 1853, 1853, 724, 1853, 1853, 1853,
/* 3330 */ 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853,
/* 3340 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2286, 1853,
/* 3350 */ 1853, 1853, 1853, 1853, 2304, 1853, 1853, 1853, 1853, 1853,
/* 3360 */ 1853, 724, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853,
/* 3370 */ 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323, 1853, 1853,
/* 3380 */ 370, 2287, 727, 2289, 2290, 722, 1853, 717, 1853, 2304,
/* 3390 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3400 */ 1853, 2253, 1853, 723, 1853, 2285, 1853, 1853, 2323, 1853,
/* 3410 */ 1853, 371, 2287, 727, 2289, 2290, 722, 1853, 717, 1853,
/* 3420 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3430 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3440 */ 2285, 2286, 1853, 2323, 1853, 1853, 367, 2287, 727, 2289,
/* 3450 */ 2290, 722, 1853, 717, 724, 1853, 1853, 1853, 1853, 1853,
/* 3460 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2286, 1853,
/* 3470 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3480 */ 1853, 724, 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3490 */ 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, 1853,
/* 3500 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2304,
/* 3510 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3520 */ 1853, 2253, 1853, 723, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3530 */ 1853, 1853, 1853, 2285, 2286, 1853, 2323, 1853, 1853, 372,
/* 3540 */ 2287, 727, 2289, 2290, 722, 1853, 717, 724, 1853, 1853,
/* 3550 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3560 */ 725, 1853, 1853, 2323, 1853, 1853, 346, 2287, 727, 2289,
/* 3570 */ 2290, 722, 1853, 717, 1853, 2304, 1853, 1853, 1853, 1853,
/* 3580 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723,
/* 3590 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3600 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3610 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853,
/* 3620 */ 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323,
/* 3630 */ 1853, 1853, 345, 2287, 727, 2289, 2290, 722, 1853, 717,
};
static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 389, 360, 361, 472, 390, 472, 475, 355, 475, 390,
/* 10 */ 358, 359, 12, 13, 14, 404, 472, 361, 381, 475,
/* 20 */ 20, 380, 22, 0, 493, 494, 389, 494, 387, 498,
/* 30 */ 499, 498, 499, 396, 397, 35, 0, 37, 494, 461,
/* 40 */ 462, 404, 498, 499, 21, 389, 348, 24, 25, 26,
/* 50 */ 27, 28, 29, 30, 31, 32, 360, 361, 20, 361,
/* 60 */ 20, 8, 9, 33, 64, 12, 13, 14, 15, 16,
/* 70 */ 70, 360, 361, 345, 347, 21, 349, 77, 24, 25,
/* 80 */ 26, 27, 28, 29, 30, 31, 32, 389, 8, 9,
/* 90 */ 4, 380, 12, 13, 14, 15, 16, 348, 387, 401,
/* 100 */ 20, 403, 20, 103, 448, 20, 106, 34, 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, 355, 107, 440, 358,
/* 140 */ 359, 443, 142, 143, 446, 447, 448, 449, 450, 451,
/* 150 */ 401, 453, 424, 360, 361, 20, 458, 429, 460, 389,
/* 160 */ 107, 403, 464, 465, 468, 469, 470, 3, 472, 473,
/* 170 */ 370, 475, 360, 20, 174, 175, 418, 479, 378, 421,
/* 180 */ 422, 181, 182, 413, 20, 487, 389, 21, 106, 493,
/* 190 */ 494, 106, 106, 396, 498, 499, 196, 20, 198, 106,
/* 200 */ 472, 404, 36, 475, 38, 39, 40, 8, 9, 106,
/* 210 */ 106, 12, 13, 14, 15, 16, 176, 405, 406, 37,
/* 220 */ 408, 493, 494, 136, 412, 14, 498, 499, 228, 229,
/* 230 */ 230, 20, 232, 233, 234, 235, 236, 237, 238, 239,
/* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
/* 250 */ 12, 13, 0, 360, 361, 18, 176, 20, 20, 77,
/* 260 */ 22, 468, 469, 470, 27, 472, 473, 30, 14, 70,
/* 270 */ 64, 107, 35, 35, 20, 37, 24, 25, 26, 27,
/* 280 */ 28, 29, 30, 31, 32, 72, 73, 74, 51, 69,
/* 290 */ 53, 4, 79, 80, 81, 58, 209, 210, 85, 195,
/* 300 */ 116, 197, 64, 90, 91, 92, 93, 0, 70, 96,
/* 310 */ 230, 105, 99, 114, 108, 77, 12, 13, 14, 15,
/* 320 */ 16, 8, 9, 348, 116, 12, 13, 14, 15, 16,
/* 330 */ 385, 227, 106, 46, 47, 48, 361, 180, 363, 356,
/* 340 */ 176, 103, 105, 360, 106, 362, 12, 13, 266, 403,
/* 350 */ 8, 9, 266, 116, 12, 13, 14, 15, 16, 266,
/* 360 */ 467, 468, 469, 470, 389, 472, 473, 421, 422, 266,
/* 370 */ 266, 37, 173, 356, 166, 33, 401, 360, 403, 362,
/* 380 */ 142, 143, 437, 146, 147, 174, 149, 150, 151, 152,
/* 390 */ 153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
/* 400 */ 163, 164, 165, 20, 167, 168, 169, 230, 171, 172,
/* 410 */ 14, 14, 174, 175, 177, 440, 20, 20, 443, 181,
/* 420 */ 182, 446, 447, 448, 449, 450, 451, 20, 453, 272,
/* 430 */ 273, 274, 69, 458, 196, 460, 198, 39, 40, 464,
/* 440 */ 465, 230, 135, 136, 137, 138, 139, 140, 141, 107,
/* 450 */ 348, 20, 253, 254, 255, 256, 257, 258, 259, 260,
/* 460 */ 261, 262, 263, 361, 250, 348, 228, 229, 230, 424,
/* 470 */ 232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
/* 480 */ 242, 243, 244, 245, 246, 247, 248, 249, 250, 12,
/* 490 */ 13, 389, 266, 369, 20, 388, 20, 20, 22, 22,
/* 500 */ 20, 188, 22, 401, 13, 403, 348, 400, 110, 111,
/* 510 */ 386, 113, 35, 37, 37, 2, 13, 472, 401, 395,
/* 520 */ 475, 8, 9, 348, 173, 12, 13, 14, 15, 16,
/* 530 */ 369, 55, 198, 135, 20, 55, 361, 139, 493, 494,
/* 540 */ 37, 64, 440, 498, 499, 443, 360, 70, 446, 447,
/* 550 */ 448, 449, 450, 451, 77, 453, 395, 228, 456, 401,
/* 560 */ 458, 459, 460, 77, 389, 0, 464, 465, 77, 86,
/* 570 */ 103, 174, 376, 142, 143, 379, 401, 348, 403, 348,
/* 580 */ 103, 174, 175, 106, 117, 118, 119, 120, 121, 122,
/* 590 */ 123, 124, 125, 126, 348, 128, 129, 130, 131, 132,
/* 600 */ 133, 134, 416, 417, 253, 292, 277, 278, 279, 280,
/* 610 */ 281, 282, 283, 230, 263, 440, 142, 143, 443, 142,
/* 620 */ 143, 446, 447, 448, 449, 450, 451, 230, 453, 390,
/* 630 */ 401, 148, 401, 458, 69, 460, 116, 8, 9, 464,
/* 640 */ 465, 12, 13, 14, 15, 16, 399, 401, 389, 402,
/* 650 */ 403, 174, 175, 170, 2, 181, 182, 13, 181, 182,
/* 660 */ 8, 9, 487, 389, 12, 13, 14, 15, 16, 35,
/* 670 */ 411, 390, 413, 196, 0, 198, 22, 389, 404, 360,
/* 680 */ 361, 37, 360, 361, 396, 51, 360, 361, 348, 51,
/* 690 */ 176, 37, 404, 59, 60, 61, 62, 59, 64, 380,
/* 700 */ 62, 63, 380, 348, 137, 228, 229, 230, 141, 232,
/* 710 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
/* 720 */ 243, 244, 245, 246, 247, 248, 249, 12, 13, 14,
/* 730 */ 348, 360, 361, 367, 22, 20, 107, 22, 348, 105,
/* 740 */ 348, 401, 108, 361, 230, 363, 72, 73, 74, 37,
/* 750 */ 35, 380, 37, 79, 80, 81, 401, 103, 392, 85,
/* 760 */ 472, 348, 389, 475, 90, 91, 92, 93, 0, 396,
/* 770 */ 96, 389, 205, 99, 361, 208, 363, 404, 211, 64,
/* 780 */ 213, 493, 494, 401, 348, 403, 498, 499, 250, 77,
/* 790 */ 252, 401, 77, 401, 468, 469, 470, 348, 472, 473,
/* 800 */ 424, 33, 389, 8, 9, 429, 390, 12, 13, 14,
/* 810 */ 15, 16, 178, 179, 401, 103, 403, 390, 103, 185,
/* 820 */ 186, 106, 440, 360, 361, 443, 348, 348, 446, 447,
/* 830 */ 448, 449, 450, 451, 22, 453, 381, 401, 204, 361,
/* 840 */ 458, 377, 460, 380, 389, 430, 464, 465, 472, 37,
/* 850 */ 401, 475, 397, 440, 20, 391, 443, 142, 143, 446,
/* 860 */ 447, 448, 449, 450, 451, 401, 453, 389, 381, 493,
/* 870 */ 494, 458, 33, 460, 498, 499, 389, 464, 465, 401,
/* 880 */ 401, 403, 20, 445, 397, 348, 50, 8, 9, 174,
/* 890 */ 175, 12, 13, 14, 15, 16, 181, 182, 0, 135,
/* 900 */ 136, 137, 138, 139, 140, 141, 390, 443, 196, 471,
/* 910 */ 198, 196, 378, 198, 457, 103, 459, 453, 440, 360,
/* 920 */ 361, 443, 360, 361, 446, 447, 448, 449, 450, 451,
/* 930 */ 452, 453, 454, 455, 3, 360, 361, 0, 401, 380,
/* 940 */ 228, 229, 380, 228, 229, 230, 107, 232, 233, 234,
/* 950 */ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
/* 960 */ 245, 246, 247, 248, 249, 12, 13, 22, 348, 360,
/* 970 */ 361, 4, 389, 20, 349, 22, 424, 381, 424, 396,
/* 980 */ 389, 361, 37, 363, 409, 389, 19, 404, 35, 380,
/* 990 */ 37, 348, 389, 397, 367, 404, 360, 361, 20, 396,
/* 1000 */ 360, 361, 35, 136, 137, 360, 361, 404, 141, 389,
/* 1010 */ 176, 384, 176, 191, 402, 403, 380, 64, 51, 392,
/* 1020 */ 184, 401, 77, 403, 472, 58, 472, 475, 135, 475,
/* 1030 */ 77, 64, 139, 135, 136, 137, 138, 139, 140, 141,
/* 1040 */ 218, 219, 42, 424, 401, 493, 494, 493, 494, 409,
/* 1050 */ 498, 499, 498, 499, 409, 176, 103, 360, 361, 106,
/* 1060 */ 440, 348, 348, 443, 230, 377, 446, 447, 448, 449,
/* 1070 */ 450, 451, 105, 453, 361, 108, 363, 380, 458, 391,
/* 1080 */ 460, 360, 361, 348, 464, 465, 360, 361, 457, 401,
/* 1090 */ 459, 472, 230, 348, 475, 142, 143, 4, 161, 374,
/* 1100 */ 375, 380, 389, 360, 361, 456, 380, 170, 459, 360,
/* 1110 */ 361, 33, 493, 494, 401, 401, 403, 498, 499, 348,
/* 1120 */ 360, 361, 389, 380, 0, 360, 361, 174, 175, 380,
/* 1130 */ 397, 443, 444, 0, 181, 182, 401, 360, 361, 445,
/* 1140 */ 380, 453, 1, 2, 377, 380, 401, 360, 361, 196,
/* 1150 */ 33, 198, 174, 440, 374, 375, 443, 380, 391, 446,
/* 1160 */ 447, 448, 449, 450, 451, 471, 453, 380, 401, 56,
/* 1170 */ 57, 458, 401, 460, 14, 15, 16, 464, 465, 365,
/* 1180 */ 366, 228, 229, 230, 51, 232, 233, 234, 235, 236,
/* 1190 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
/* 1200 */ 247, 248, 249, 12, 13, 33, 348, 445, 230, 398,
/* 1210 */ 443, 20, 401, 22, 365, 366, 351, 352, 287, 361,
/* 1220 */ 453, 363, 398, 0, 398, 401, 35, 401, 37, 382,
/* 1230 */ 47, 48, 385, 471, 264, 265, 0, 33, 33, 109,
/* 1240 */ 109, 109, 112, 112, 112, 22, 64, 389, 107, 45,
/* 1250 */ 45, 109, 0, 0, 112, 64, 212, 33, 214, 401,
/* 1260 */ 70, 403, 33, 33, 33, 265, 414, 33, 77, 142,
/* 1270 */ 143, 33, 0, 33, 22, 22, 33, 33, 42, 107,
/* 1280 */ 1, 2, 33, 33, 33, 37, 49, 502, 33, 33,
/* 1290 */ 108, 106, 491, 13, 103, 33, 33, 106, 440, 348,
/* 1300 */ 115, 443, 33, 13, 446, 447, 448, 449, 450, 451,
/* 1310 */ 364, 453, 361, 37, 484, 37, 458, 37, 460, 12,
/* 1320 */ 13, 389, 464, 465, 52, 377, 377, 37, 414, 22,
/* 1330 */ 414, 107, 490, 142, 143, 490, 107, 107, 107, 364,
/* 1340 */ 389, 107, 35, 106, 37, 107, 222, 107, 423, 490,
/* 1350 */ 107, 107, 401, 490, 403, 77, 107, 107, 107, 361,
/* 1360 */ 359, 268, 107, 107, 414, 174, 175, 289, 400, 107,
/* 1370 */ 107, 64, 181, 182, 414, 414, 107, 474, 495, 466,
/* 1380 */ 269, 477, 379, 425, 77, 51, 442, 196, 42, 198,
/* 1390 */ 20, 440, 211, 441, 443, 439, 434, 446, 447, 448,
/* 1400 */ 449, 450, 451, 369, 453, 434, 369, 194, 291, 458,
/* 1410 */ 103, 460, 427, 20, 360, 464, 465, 20, 228, 228,
/* 1420 */ 229, 230, 361, 232, 233, 234, 235, 236, 237, 238,
/* 1430 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
/* 1440 */ 249, 45, 18, 410, 361, 410, 198, 23, 173, 407,
/* 1450 */ 360, 410, 361, 407, 360, 407, 104, 373, 102, 372,
/* 1460 */ 360, 101, 360, 371, 40, 41, 360, 360, 44, 20,
/* 1470 */ 50, 353, 357, 353, 198, 20, 357, 434, 54, 369,
/* 1480 */ 403, 369, 20, 362, 348, 20, 426, 20, 362, 65,
/* 1490 */ 66, 67, 68, 417, 369, 438, 353, 361, 369, 360,
/* 1500 */ 353, 351, 401, 196, 369, 198, 369, 369, 360, 351,
/* 1510 */ 401, 389, 389, 215, 106, 401, 436, 389, 202, 434,
/* 1520 */ 201, 367, 433, 389, 367, 389, 200, 432, 431, 389,
/* 1530 */ 106, 360, 483, 389, 389, 228, 229, 401, 389, 403,
/* 1540 */ 389, 389, 389, 276, 284, 275, 483, 483, 486, 242,
/* 1550 */ 243, 244, 245, 246, 247, 248, 187, 401, 403, 485,
/* 1560 */ 286, 482, 285, 481, 270, 497, 480, 496, 144, 503,
/* 1570 */ 265, 425, 290, 288, 293, 361, 440, 20, 419, 443,
/* 1580 */ 419, 478, 446, 447, 448, 449, 450, 451, 425, 453,
/* 1590 */ 116, 267, 476, 367, 458, 362, 460, 419, 401, 367,
/* 1600 */ 464, 465, 401, 401, 401, 419, 179, 445, 401, 415,
/* 1610 */ 385, 106, 188, 189, 190, 106, 401, 193, 22, 361,
/* 1620 */ 393, 367, 38, 350, 367, 360, 367, 463, 428, 420,
/* 1630 */ 206, 207, 420, 435, 368, 346, 0, 354, 0, 353,
/* 1640 */ 0, 217, 45, 348, 220, 0, 37, 223, 224, 225,
/* 1650 */ 226, 227, 221, 37, 383, 37, 361, 37, 221, 0,
/* 1660 */ 37, 37, 221, 37, 0, 221, 0, 383, 37, 348,
/* 1670 */ 383, 0, 22, 0, 37, 216, 0, 204, 0, 204,
/* 1680 */ 198, 205, 361, 196, 389, 0, 0, 0, 192, 191,
/* 1690 */ 266, 0, 0, 147, 0, 49, 401, 49, 403, 37,
/* 1700 */ 51, 0, 49, 0, 0, 45, 0, 0, 0, 0,
/* 1710 */ 389, 37, 49, 0, 0, 0, 0, 161, 0, 161,
/* 1720 */ 0, 0, 401, 0, 403, 0, 0, 0, 0, 0,
/* 1730 */ 0, 0, 0, 0, 0, 440, 348, 49, 443, 0,
/* 1740 */ 0, 446, 447, 448, 449, 450, 451, 0, 453, 361,
/* 1750 */ 0, 0, 0, 458, 0, 460, 0, 45, 0, 464,
/* 1760 */ 465, 440, 0, 22, 443, 348, 0, 446, 447, 448,
/* 1770 */ 449, 450, 451, 0, 453, 147, 146, 389, 361, 0,
/* 1780 */ 145, 460, 0, 0, 0, 464, 465, 22, 50, 401,
/* 1790 */ 22, 403, 50, 0, 37, 0, 0, 0, 37, 64,
/* 1800 */ 64, 42, 0, 0, 51, 42, 389, 64, 37, 37,
/* 1810 */ 0, 51, 42, 37, 0, 51, 49, 42, 401, 45,
/* 1820 */ 403, 33, 14, 0, 43, 0, 49, 49, 440, 42,
/* 1830 */ 0, 443, 0, 348, 446, 447, 448, 449, 450, 451,
/* 1840 */ 42, 453, 187, 0, 0, 0, 361, 0, 460, 49,
/* 1850 */ 0, 71, 464, 465, 37, 1, 51, 440, 42, 0,
/* 1860 */ 443, 37, 51, 446, 447, 448, 449, 450, 451, 42,
/* 1870 */ 453, 0, 37, 19, 389, 42, 0, 460, 37, 51,
/* 1880 */ 51, 464, 465, 0, 42, 0, 401, 0, 403, 35,
/* 1890 */ 0, 0, 0, 37, 22, 0, 22, 37, 348, 114,
/* 1900 */ 37, 112, 37, 37, 37, 51, 37, 37, 33, 0,
/* 1910 */ 37, 361, 33, 59, 60, 61, 62, 348, 64, 37,
/* 1920 */ 22, 37, 0, 37, 22, 440, 0, 22, 443, 0,
/* 1930 */ 361, 446, 447, 448, 449, 450, 451, 37, 453, 389,
/* 1940 */ 37, 53, 0, 0, 0, 37, 0, 22, 20, 37,
/* 1950 */ 37, 401, 37, 403, 0, 107, 37, 106, 389, 105,
/* 1960 */ 22, 106, 108, 0, 0, 0, 176, 22, 199, 3,
/* 1970 */ 401, 179, 403, 488, 489, 176, 271, 176, 3, 49,
/* 1980 */ 33, 50, 176, 106, 50, 107, 106, 183, 107, 203,
/* 1990 */ 440, 102, 348, 443, 140, 183, 446, 447, 448, 449,
/* 2000 */ 450, 451, 33, 453, 33, 361, 107, 106, 104, 440,
/* 2010 */ 33, 49, 443, 106, 33, 446, 447, 448, 449, 450,
/* 2020 */ 451, 107, 453, 106, 33, 37, 106, 37, 107, 460,
/* 2030 */ 107, 37, 178, 389, 465, 37, 37, 37, 49, 185,
/* 2040 */ 107, 33, 107, 0, 49, 401, 42, 403, 0, 0,
/* 2050 */ 500, 501, 42, 33, 106, 106, 115, 107, 204, 348,
/* 2060 */ 107, 106, 271, 106, 106, 271, 106, 49, 2, 251,
/* 2070 */ 49, 178, 361, 264, 180, 22, 104, 104, 49, 22,
/* 2080 */ 228, 107, 106, 116, 440, 348, 106, 443, 231, 107,
/* 2090 */ 446, 447, 448, 449, 450, 451, 37, 453, 361, 106,
/* 2100 */ 389, 37, 37, 107, 107, 394, 37, 106, 106, 106,
/* 2110 */ 127, 106, 401, 107, 403, 37, 107, 106, 37, 107,
/* 2120 */ 106, 37, 107, 106, 33, 106, 389, 37, 22, 107,
/* 2130 */ 107, 394, 106, 489, 127, 37, 106, 106, 401, 106,
/* 2140 */ 403, 71, 70, 127, 37, 37, 37, 37, 37, 37,
/* 2150 */ 37, 440, 127, 37, 443, 348, 77, 446, 447, 448,
/* 2160 */ 449, 450, 451, 100, 453, 77, 33, 100, 361, 37,
/* 2170 */ 22, 37, 37, 37, 37, 37, 77, 440, 37, 37,
/* 2180 */ 443, 37, 348, 446, 447, 448, 449, 450, 451, 37,
/* 2190 */ 453, 37, 22, 0, 37, 361, 389, 37, 51, 0,
/* 2200 */ 42, 37, 51, 42, 0, 37, 51, 42, 401, 0,
/* 2210 */ 403, 37, 0, 51, 42, 37, 37, 0, 22, 33,
/* 2220 */ 22, 21, 21, 389, 22, 22, 20, 504, 504, 504,
/* 2230 */ 504, 504, 504, 504, 504, 401, 504, 403, 504, 504,
/* 2240 */ 504, 504, 504, 504, 504, 504, 504, 440, 504, 504,
/* 2250 */ 443, 504, 504, 446, 447, 448, 449, 450, 451, 504,
/* 2260 */ 453, 504, 504, 504, 504, 504, 348, 504, 504, 504,
/* 2270 */ 504, 504, 504, 504, 440, 504, 504, 443, 504, 361,
/* 2280 */ 446, 447, 448, 449, 450, 451, 504, 453, 348, 504,
/* 2290 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 492,
/* 2300 */ 504, 361, 504, 504, 504, 504, 504, 389, 504, 504,
/* 2310 */ 504, 504, 394, 504, 504, 504, 504, 504, 504, 401,
/* 2320 */ 504, 403, 504, 504, 504, 504, 504, 504, 504, 389,
/* 2330 */ 504, 504, 504, 504, 504, 501, 504, 504, 504, 504,
/* 2340 */ 504, 401, 504, 403, 504, 504, 504, 504, 504, 504,
/* 2350 */ 504, 504, 504, 504, 504, 504, 504, 504, 440, 504,
/* 2360 */ 504, 443, 504, 504, 446, 447, 448, 449, 450, 451,
/* 2370 */ 504, 453, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2380 */ 440, 504, 504, 443, 504, 504, 446, 447, 448, 449,
/* 2390 */ 450, 451, 504, 453, 348, 455, 504, 504, 504, 504,
/* 2400 */ 504, 504, 504, 504, 504, 504, 504, 361, 504, 504,
/* 2410 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2420 */ 504, 348, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2430 */ 504, 504, 504, 504, 361, 389, 504, 504, 504, 504,
/* 2440 */ 394, 504, 504, 504, 504, 504, 504, 401, 504, 403,
/* 2450 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2460 */ 504, 504, 389, 504, 504, 504, 504, 394, 504, 504,
/* 2470 */ 504, 504, 504, 504, 401, 504, 403, 504, 504, 504,
/* 2480 */ 504, 504, 504, 504, 504, 504, 440, 348, 504, 443,
/* 2490 */ 504, 504, 446, 447, 448, 449, 450, 451, 504, 453,
/* 2500 */ 361, 504, 504, 504, 348, 504, 504, 504, 504, 504,
/* 2510 */ 504, 504, 504, 440, 504, 504, 443, 361, 504, 446,
/* 2520 */ 447, 448, 449, 450, 451, 504, 453, 504, 389, 504,
/* 2530 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2540 */ 401, 504, 403, 504, 504, 389, 504, 504, 504, 504,
/* 2550 */ 504, 504, 504, 504, 504, 504, 504, 401, 504, 403,
/* 2560 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2570 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 440,
/* 2580 */ 504, 504, 443, 504, 348, 446, 447, 448, 449, 450,
/* 2590 */ 451, 504, 453, 504, 504, 504, 440, 361, 504, 443,
/* 2600 */ 504, 504, 446, 447, 448, 449, 450, 451, 504, 453,
/* 2610 */ 504, 504, 504, 504, 504, 348, 504, 504, 504, 504,
/* 2620 */ 504, 504, 504, 504, 504, 389, 504, 504, 361, 504,
/* 2630 */ 504, 504, 504, 504, 504, 504, 504, 401, 504, 403,
/* 2640 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2650 */ 348, 504, 504, 504, 504, 504, 389, 504, 504, 504,
/* 2660 */ 504, 504, 504, 361, 504, 504, 504, 504, 401, 504,
/* 2670 */ 403, 504, 504, 504, 504, 504, 440, 504, 504, 443,
/* 2680 */ 504, 504, 446, 447, 448, 449, 450, 451, 504, 453,
/* 2690 */ 504, 389, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2700 */ 504, 504, 504, 401, 504, 403, 504, 440, 504, 504,
/* 2710 */ 443, 504, 504, 446, 447, 448, 449, 450, 451, 504,
/* 2720 */ 453, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2730 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2740 */ 504, 504, 440, 348, 504, 443, 504, 504, 446, 447,
/* 2750 */ 448, 449, 450, 451, 504, 453, 361, 504, 504, 504,
/* 2760 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2770 */ 348, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2780 */ 504, 504, 504, 361, 389, 504, 504, 504, 504, 504,
/* 2790 */ 504, 504, 504, 504, 504, 504, 401, 504, 403, 504,
/* 2800 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2810 */ 504, 389, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2820 */ 504, 504, 504, 401, 504, 403, 504, 504, 504, 504,
/* 2830 */ 504, 504, 504, 504, 504, 440, 348, 504, 443, 504,
/* 2840 */ 504, 446, 447, 448, 449, 450, 451, 504, 453, 361,
/* 2850 */ 504, 504, 504, 348, 504, 504, 504, 504, 504, 504,
/* 2860 */ 504, 504, 440, 504, 504, 443, 361, 504, 446, 447,
/* 2870 */ 448, 449, 450, 451, 504, 453, 504, 389, 504, 504,
/* 2880 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 401,
/* 2890 */ 504, 403, 504, 504, 389, 504, 504, 504, 504, 504,
/* 2900 */ 504, 504, 504, 504, 504, 504, 401, 504, 403, 504,
/* 2910 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 2920 */ 504, 504, 504, 504, 504, 504, 504, 504, 440, 504,
/* 2930 */ 504, 443, 504, 348, 446, 447, 448, 449, 450, 451,
/* 2940 */ 504, 453, 504, 504, 504, 440, 361, 504, 443, 504,
/* 2950 */ 504, 446, 447, 448, 449, 450, 451, 504, 453, 504,
/* 2960 */ 504, 504, 504, 504, 348, 504, 504, 504, 504, 504,
/* 2970 */ 504, 504, 504, 504, 389, 504, 504, 361, 504, 504,
/* 2980 */ 504, 504, 504, 504, 504, 504, 401, 504, 403, 504,
/* 2990 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 348,
/* 3000 */ 504, 504, 504, 504, 504, 389, 504, 504, 504, 504,
/* 3010 */ 504, 504, 361, 504, 504, 504, 504, 401, 504, 403,
/* 3020 */ 504, 504, 504, 504, 504, 440, 504, 504, 443, 504,
/* 3030 */ 504, 446, 447, 448, 449, 450, 451, 504, 453, 504,
/* 3040 */ 389, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3050 */ 504, 504, 401, 504, 403, 504, 440, 504, 504, 443,
/* 3060 */ 504, 504, 446, 447, 448, 449, 450, 451, 504, 453,
/* 3070 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3080 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3090 */ 504, 440, 348, 504, 443, 504, 504, 446, 447, 448,
/* 3100 */ 449, 450, 451, 504, 453, 361, 504, 504, 504, 504,
/* 3110 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 348,
/* 3120 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3130 */ 504, 504, 361, 389, 504, 504, 504, 504, 504, 504,
/* 3140 */ 504, 504, 504, 504, 504, 401, 504, 403, 504, 504,
/* 3150 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3160 */ 389, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3170 */ 504, 504, 401, 504, 403, 504, 504, 504, 504, 504,
/* 3180 */ 504, 504, 504, 504, 440, 348, 504, 443, 504, 504,
/* 3190 */ 446, 447, 448, 449, 450, 451, 504, 453, 361, 504,
/* 3200 */ 504, 504, 348, 504, 504, 504, 504, 504, 504, 504,
/* 3210 */ 504, 440, 504, 504, 443, 361, 504, 446, 447, 448,
/* 3220 */ 449, 450, 451, 504, 453, 504, 389, 504, 504, 504,
/* 3230 */ 504, 504, 504, 504, 504, 504, 504, 504, 401, 504,
/* 3240 */ 403, 504, 504, 389, 504, 504, 504, 504, 504, 504,
/* 3250 */ 504, 504, 504, 504, 504, 401, 504, 403, 504, 504,
/* 3260 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3270 */ 504, 504, 504, 504, 504, 504, 504, 440, 504, 504,
/* 3280 */ 443, 504, 348, 446, 447, 448, 449, 450, 451, 504,
/* 3290 */ 453, 504, 504, 504, 440, 361, 504, 443, 504, 504,
/* 3300 */ 446, 447, 448, 449, 450, 451, 504, 453, 504, 504,
/* 3310 */ 504, 504, 504, 348, 504, 504, 504, 504, 504, 504,
/* 3320 */ 504, 504, 504, 389, 504, 504, 361, 504, 504, 504,
/* 3330 */ 504, 504, 504, 504, 504, 401, 504, 403, 504, 504,
/* 3340 */ 504, 504, 504, 504, 504, 504, 504, 504, 348, 504,
/* 3350 */ 504, 504, 504, 504, 389, 504, 504, 504, 504, 504,
/* 3360 */ 504, 361, 504, 504, 504, 504, 401, 504, 403, 504,
/* 3370 */ 504, 504, 504, 504, 440, 504, 504, 443, 504, 504,
/* 3380 */ 446, 447, 448, 449, 450, 451, 504, 453, 504, 389,
/* 3390 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3400 */ 504, 401, 504, 403, 504, 440, 504, 504, 443, 504,
/* 3410 */ 504, 446, 447, 448, 449, 450, 451, 504, 453, 504,
/* 3420 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3430 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3440 */ 440, 348, 504, 443, 504, 504, 446, 447, 448, 449,
/* 3450 */ 450, 451, 504, 453, 361, 504, 504, 504, 504, 504,
/* 3460 */ 504, 504, 504, 504, 504, 504, 504, 504, 348, 504,
/* 3470 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3480 */ 504, 361, 389, 504, 504, 504, 504, 504, 504, 504,
/* 3490 */ 504, 504, 504, 504, 401, 504, 403, 504, 504, 504,
/* 3500 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 389,
/* 3510 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3520 */ 504, 401, 504, 403, 504, 504, 504, 504, 504, 504,
/* 3530 */ 504, 504, 504, 440, 348, 504, 443, 504, 504, 446,
/* 3540 */ 447, 448, 449, 450, 451, 504, 453, 361, 504, 504,
/* 3550 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3560 */ 440, 504, 504, 443, 504, 504, 446, 447, 448, 449,
/* 3570 */ 450, 451, 504, 453, 504, 389, 504, 504, 504, 504,
/* 3580 */ 504, 504, 504, 504, 504, 504, 504, 401, 504, 403,
/* 3590 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3600 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3610 */ 504, 504, 504, 504, 504, 504, 504, 504, 504, 504,
/* 3620 */ 504, 504, 504, 504, 504, 504, 440, 504, 504, 443,
/* 3630 */ 504, 504, 446, 447, 448, 449, 450, 451, 504, 453,
/* 3640 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3650 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3660 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3670 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3680 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3690 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3700 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3710 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3720 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3730 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3740 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3750 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3760 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3770 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3780 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3790 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3800 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3810 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3820 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3830 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3840 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3850 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3860 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3870 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3880 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3890 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3900 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3910 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3920 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3930 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3940 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3950 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3960 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3970 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
/* 3980 */ 345, 345, 345, 345, 345,
};
#define YY_SHIFT_COUNT (821)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (2217)
static const unsigned short int yy_shift_ofst[] = {
/* 0 */ 1424, 0, 238, 0, 477, 477, 477, 477, 477, 477,
/* 10 */ 477, 477, 477, 477, 477, 477, 715, 953, 953, 1191,
/* 20 */ 953, 953, 953, 953, 953, 953, 953, 953, 953, 953,
/* 30 */ 953, 953, 953, 953, 953, 953, 953, 953, 953, 953,
/* 40 */ 953, 953, 953, 953, 953, 953, 953, 953, 953, 953,
/* 50 */ 953, 82, 93, 104, 85, 103, 226, 103, 85, 85,
/* 60 */ 103, 1307, 103, 237, 1307, 1307, 86, 103, 38, 474,
/* 70 */ 135, 135, 474, 287, 287, 407, 431, 254, 254, 177,
/* 80 */ 135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
/* 90 */ 153, 135, 135, 220, 38, 135, 135, 38, 135, 135,
/* 100 */ 38, 135, 135, 38, 135, 38, 38, 38, 135, 363,
/* 110 */ 199, 199, 213, 54, 712, 712, 712, 712, 712, 712,
/* 120 */ 712, 712, 712, 712, 712, 712, 712, 712, 712, 712,
/* 130 */ 712, 712, 712, 398, 164, 407, 431, 1113, 1113, 182,
/* 140 */ 40, 40, 40, 565, 538, 538, 491, 182, 220, 184,
/* 150 */ 38, 38, 214, 38, 486, 38, 486, 486, 520, 73,
/* 160 */ 467, 467, 467, 467, 467, 467, 467, 467, 1854, 674,
/* 170 */ 23, 80, 313, 329, 476, 157, 211, 397, 334, 334,
/* 180 */ 514, 834, 945, 945, 945, 836, 945, 978, 480, 383,
/* 190 */ 1183, 396, 893, 383, 383, 862, 970, 1000, 931, 970,
/* 200 */ 1204, 1093, 491, 1111, 1334, 1346, 1370, 1181, 220, 1370,
/* 210 */ 220, 1213, 1393, 1397, 1396, 1397, 1396, 1275, 1393, 1397,
/* 220 */ 1393, 1396, 1275, 1275, 1352, 1356, 1393, 1360, 1393, 1393,
/* 230 */ 1393, 1449, 1420, 1449, 1420, 1370, 220, 1455, 220, 1462,
/* 240 */ 1465, 220, 1462, 220, 1467, 220, 220, 1393, 220, 1449,
/* 250 */ 38, 38, 38, 38, 38, 38, 38, 38, 38, 38,
/* 260 */ 38, 1393, 73, 73, 1449, 486, 486, 486, 1298, 1408,
/* 270 */ 1370, 363, 1316, 1319, 1455, 363, 1326, 1111, 1393, 486,
/* 280 */ 1267, 1270, 1267, 1270, 1260, 1369, 1267, 1274, 1277, 1294,
/* 290 */ 1111, 1281, 1282, 1285, 1305, 1397, 1557, 1474, 1324, 1462,
/* 300 */ 363, 363, 1270, 486, 486, 486, 486, 1270, 486, 1427,
/* 310 */ 363, 520, 363, 1397, 1505, 1509, 486, 1393, 363, 1596,
/* 320 */ 1584, 1449, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640,
/* 330 */ 3640, 36, 634, 252, 342, 967, 53, 629, 307, 513,
/* 340 */ 652, 879, 898, 795, 795, 795, 795, 795, 795, 795,
/* 350 */ 795, 795, 764, 567, 166, 304, 304, 638, 822, 937,
/* 360 */ 206, 483, 654, 812, 87, 867, 867, 1160, 1141, 351,
/* 370 */ 1160, 1160, 1160, 1133, 1124, 30, 1236, 1205, 208, 768,
/* 380 */ 1130, 1131, 1132, 1142, 503, 644, 1223, 1252, 1253, 1044,
/* 390 */ 839, 1172, 1182, 1224, 1229, 1230, 1127, 1078, 1117, 1231,
/* 400 */ 1234, 1238, 1240, 1243, 1244, 1279, 1249, 1190, 1250, 1237,
/* 410 */ 1251, 1255, 1256, 1262, 1263, 1269, 1185, 1248, 1276, 1280,
/* 420 */ 1290, 1278, 1272, 1636, 1638, 1640, 1597, 1645, 1609, 1431,
/* 430 */ 1616, 1618, 1620, 1437, 1659, 1623, 1624, 1441, 1626, 1664,
/* 440 */ 1444, 1666, 1631, 1671, 1650, 1673, 1637, 1459, 1676, 1473,
/* 450 */ 1678, 1475, 1476, 1482, 1487, 1685, 1686, 1687, 1496, 1498,
/* 460 */ 1691, 1692, 1546, 1646, 1648, 1694, 1662, 1649, 1701, 1653,
/* 470 */ 1703, 1660, 1704, 1706, 1707, 1663, 1708, 1709, 1713, 1714,
/* 480 */ 1715, 1716, 1556, 1674, 1718, 1558, 1720, 1721, 1723, 1725,
/* 490 */ 1726, 1727, 1728, 1729, 1730, 1731, 1732, 1733, 1734, 1739,
/* 500 */ 1740, 1747, 1688, 1750, 1712, 1751, 1752, 1754, 1756, 1758,
/* 510 */ 1762, 1741, 1766, 1628, 1773, 1630, 1779, 1635, 1782, 1783,
/* 520 */ 1765, 1738, 1768, 1742, 1784, 1735, 1757, 1793, 1736, 1795,
/* 530 */ 1743, 1796, 1797, 1761, 1753, 1759, 1802, 1771, 1760, 1763,
/* 540 */ 1803, 1772, 1764, 1770, 1810, 1776, 1814, 1774, 1775, 1788,
/* 550 */ 1767, 1777, 1808, 1778, 1823, 1781, 1787, 1825, 1830, 1832,
/* 560 */ 1798, 1655, 1843, 1767, 1800, 1844, 1845, 1780, 1847, 1850,
/* 570 */ 1817, 1805, 1816, 1859, 1824, 1811, 1827, 1871, 1835, 1828,
/* 580 */ 1833, 1876, 1841, 1829, 1842, 1883, 1885, 1887, 1890, 1891,
/* 590 */ 1892, 1785, 1789, 1856, 1872, 1895, 1860, 1863, 1865, 1866,
/* 600 */ 1867, 1869, 1870, 1873, 1875, 1879, 1882, 1884, 1874, 1886,
/* 610 */ 1909, 1898, 1922, 1902, 1888, 1926, 1905, 1900, 1929, 1942,
/* 620 */ 1943, 1903, 1944, 1908, 1946, 1925, 1928, 1912, 1913, 1915,
/* 630 */ 1848, 1851, 1954, 1790, 1855, 1786, 1919, 1938, 1963, 1769,
/* 640 */ 1945, 1799, 1792, 1964, 1965, 1801, 1804, 1806, 1812, 1966,
/* 650 */ 1947, 1705, 1877, 1878, 1880, 1931, 1904, 1934, 1889, 1881,
/* 660 */ 1969, 1971, 1899, 1901, 1907, 1917, 1914, 1977, 1930, 1962,
/* 670 */ 1920, 1981, 1791, 1921, 1923, 1975, 1991, 1794, 1988, 1990,
/* 680 */ 1994, 1998, 1999, 2000, 1933, 1935, 1989, 1809, 2008, 1995,
/* 690 */ 2043, 2048, 1948, 2004, 1949, 1950, 1953, 1955, 1957, 1894,
/* 700 */ 1958, 2049, 2010, 1893, 1960, 1941, 1767, 2018, 2020, 1972,
/* 710 */ 1818, 1973, 2066, 2053, 1852, 1976, 1974, 1980, 1982, 1993,
/* 720 */ 1996, 2021, 2001, 2002, 2029, 1997, 2057, 1857, 2003, 1967,
/* 730 */ 2006, 2059, 2064, 2005, 2009, 2065, 2011, 2012, 2069, 2014,
/* 740 */ 2015, 2078, 2017, 2022, 2081, 2019, 2023, 2084, 2026, 1983,
/* 750 */ 2007, 2016, 2025, 2030, 2091, 2031, 2090, 2033, 2091, 2091,
/* 760 */ 2106, 2070, 2072, 2098, 2107, 2108, 2109, 2110, 2111, 2112,
/* 770 */ 2113, 2116, 2079, 2063, 2088, 2067, 2133, 2132, 2134, 2135,
/* 780 */ 2148, 2136, 2137, 2138, 2099, 1875, 2141, 1879, 2142, 2144,
/* 790 */ 2152, 2154, 2170, 2157, 2193, 2160, 2147, 2158, 2199, 2164,
/* 800 */ 2151, 2161, 2204, 2168, 2155, 2165, 2209, 2174, 2162, 2172,
/* 810 */ 2212, 2178, 2179, 2217, 2196, 2186, 2198, 2200, 2202, 2203,
/* 820 */ 2201, 2206,
};
#define YY_REDUCE_COUNT (330)
#define YY_REDUCE_MIN (-469)
#define YY_REDUCE_MAX (3186)
static const short yy_reduce_ofst[] = {
/* 0 */ -272, -302, 102, 175, -25, 382, 413, 620, 713, 858,
/* 10 */ 951, 1136, 1295, 1321, 1388, 1417, 478, 1485, 1550, 1569,
/* 20 */ 1644, 1711, 1737, 1807, 1834, 1918, 1940, 2046, 2073, 2139,
/* 30 */ 2156, 2236, 2267, 2302, 2395, 2422, 2488, 2505, 2585, 2616,
/* 40 */ 2651, 2744, 2771, 2837, 2854, 2934, 2965, 3000, 3093, 3120,
/* 50 */ 3186, -304, 288, 376, -107, 45, 552, 554, -207, 326,
/* 60 */ 619, 688, -469, -188, 464, 767, -467, -456, -363, -242,
/* 70 */ -359, -289, -54, -348, -219, 259, 247, -17, 17, -344,
/* 80 */ 319, 322, 371, 463, 575, 640, 559, 562, 609, 645,
/* 90 */ 186, 636, 697, 124, -203, 721, 726, 373, 743, 749,
/* 100 */ 455, 760, 765, 583, 777, 487, 603, 596, 787, 627,
/* 110 */ -422, -422, -200, -273, -251, 117, 158, 229, 231, 246,
/* 120 */ 340, 355, 390, 392, 436, 449, 479, 537, 643, 714,
/* 130 */ 735, 745, 771, 107, 438, -230, 612, 814, 849, 725,
/* 140 */ 438, 694, 762, 366, 457, 631, 196, 780, 161, -55,
/* 150 */ -389, 274, 649, 733, 811, 591, 824, 826, 847, 865,
/* 160 */ -386, -381, 239, 281, 416, 427, 516, 416, 415, 534,
/* 170 */ 625, 852, 785, 801, 946, 830, 932, 932, 948, 949,
/* 180 */ 914, 916, 842, 845, 859, 925, 863, 932, 975, 950,
/* 190 */ 1001, 998, 968, 960, 961, 932, 903, 903, 883, 903,
/* 200 */ 913, 904, 1003, 958, 944, 952, 962, 956, 1034, 971,
/* 210 */ 1037, 985, 1054, 1061, 1033, 1083, 1035, 1042, 1090, 1091,
/* 220 */ 1094, 1041, 1046, 1048, 1084, 1087, 1100, 1092, 1102, 1106,
/* 230 */ 1107, 1118, 1115, 1120, 1119, 1043, 1110, 1077, 1112, 1121,
/* 240 */ 1060, 1125, 1126, 1129, 1076, 1135, 1137, 1139, 1138, 1143,
/* 250 */ 1122, 1123, 1128, 1134, 1140, 1144, 1145, 1149, 1151, 1152,
/* 260 */ 1153, 1148, 1150, 1158, 1147, 1101, 1109, 1114, 1057, 1080,
/* 270 */ 1085, 1154, 1089, 1095, 1155, 1157, 1097, 1146, 1171, 1156,
/* 280 */ 1049, 1159, 1063, 1161, 1062, 1074, 1064, 1079, 1082, 1086,
/* 290 */ 1163, 1066, 1068, 1071, 903, 1214, 1162, 1103, 1116, 1233,
/* 300 */ 1226, 1232, 1178, 1197, 1201, 1202, 1203, 1186, 1207, 1194,
/* 310 */ 1254, 1225, 1257, 1258, 1164, 1227, 1215, 1265, 1259, 1273,
/* 320 */ 1283, 1286, 1200, 1198, 1209, 1212, 1271, 1284, 1287, 1266,
/* 330 */ 1289,
};
static const YYACTIONTYPE yy_default[] = {
/* 0 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 10 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 20 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 30 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 40 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 50 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 60 */ 2181, 1851, 1851, 2144, 1851, 1851, 1851, 1851, 1851, 1851,
/* 70 */ 1851, 1851, 1851, 1851, 1851, 2151, 1851, 1851, 1851, 1851,
/* 80 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 90 */ 1851, 1851, 1851, 1947, 1851, 1851, 1851, 1851, 1851, 1851,
/* 100 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1945,
/* 110 */ 2378, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 120 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 130 */ 1851, 1851, 1851, 1851, 2390, 1851, 1851, 1921, 1921, 1851,
/* 140 */ 2390, 2390, 2390, 1945, 2350, 2350, 1851, 1851, 1947, 2215,
/* 150 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2070, 1881,
/* 160 */ 1851, 1851, 1851, 1851, 2094, 1851, 1851, 1851, 2207, 1851,
/* 170 */ 1851, 2419, 2479, 1851, 1851, 2422, 1851, 1851, 1851, 1851,
/* 180 */ 2156, 2409, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 190 */ 1851, 1851, 2023, 1851, 1851, 1851, 2382, 2396, 2463, 2383,
/* 200 */ 2380, 2403, 1851, 2413, 1851, 2239, 1851, 2229, 1947, 1851,
/* 210 */ 1947, 2194, 2139, 1851, 2149, 1851, 2149, 2146, 1851, 1851,
/* 220 */ 1851, 2149, 2146, 2146, 2012, 2008, 1851, 2006, 1851, 1851,
/* 230 */ 1851, 1851, 1905, 1851, 1905, 1851, 1947, 1851, 1947, 1851,
/* 240 */ 1851, 1947, 1851, 1947, 1851, 1947, 1947, 1851, 1947, 1851,
/* 250 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 260 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2227, 2213,
/* 270 */ 1851, 1945, 2205, 2203, 1851, 1945, 2201, 2413, 1851, 1851,
/* 280 */ 2433, 2428, 2433, 2428, 2447, 2443, 2433, 2452, 2449, 2415,
/* 290 */ 2413, 2482, 2469, 2465, 2396, 1851, 1851, 2401, 2399, 1851,
/* 300 */ 1945, 1945, 2428, 1851, 1851, 1851, 1851, 2428, 1851, 1851,
/* 310 */ 1945, 1851, 1945, 1851, 1851, 2039, 1851, 1851, 1945, 1851,
/* 320 */ 1890, 1851, 2196, 2218, 2177, 2177, 2073, 2073, 2073, 1948,
/* 330 */ 1856, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 340 */ 1851, 1851, 1851, 2446, 2445, 2303, 1851, 2354, 2353, 2352,
/* 350 */ 2343, 2302, 2035, 1851, 1851, 2301, 2300, 1851, 1851, 1851,
/* 360 */ 1851, 1851, 1851, 1851, 1851, 2168, 2167, 2294, 1851, 1851,
/* 370 */ 2295, 2293, 2292, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 380 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 390 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2466, 2470, 1851,
/* 400 */ 1851, 1851, 1851, 1851, 1851, 2379, 1851, 1851, 1851, 2275,
/* 410 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 420 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 430 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 440 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 450 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 460 */ 1851, 1851, 2145, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 470 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 480 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 490 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 500 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 510 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2160, 1851, 1851,
/* 520 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 530 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 540 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1895,
/* 550 */ 2281, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 560 */ 1851, 1851, 1851, 2284, 1851, 1851, 1851, 1851, 1851, 1851,
/* 570 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 580 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 590 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 600 */ 1851, 1851, 1851, 1851, 1987, 1986, 1851, 1851, 1851, 1851,
/* 610 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 620 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 630 */ 2285, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 640 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2462,
/* 650 */ 2416, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 660 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2275,
/* 670 */ 1851, 2444, 1851, 1851, 2460, 1851, 2464, 1851, 1851, 1851,
/* 680 */ 1851, 1851, 1851, 1851, 2389, 2385, 1851, 1851, 2381, 1851,
/* 690 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 700 */ 1851, 1851, 1851, 1851, 1851, 1851, 2274, 1851, 2340, 1851,
/* 710 */ 1851, 1851, 2374, 1851, 1851, 2325, 1851, 1851, 1851, 1851,
/* 720 */ 1851, 1851, 1851, 1851, 1851, 2285, 1851, 2288, 1851, 1851,
/* 730 */ 1851, 1851, 1851, 2067, 1851, 1851, 1851, 1851, 1851, 1851,
/* 740 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2051,
/* 750 */ 2049, 2048, 2047, 1851, 2080, 1851, 1851, 1851, 2076, 2075,
/* 760 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 770 */ 1851, 1851, 1851, 1851, 1851, 1851, 1966, 1851, 1851, 1851,
/* 780 */ 1851, 1851, 1851, 1851, 1851, 1958, 1851, 1957, 1851, 1851,
/* 790 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 800 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851,
/* 810 */ 1851, 1851, 1851, 1851, 1851, 1880, 1851, 1851, 1851, 1851,
/* 820 */ 1851, 1851,
};
/********** 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 */
294, /* 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, /* 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 */
294, /* AFTER => ABORT */
294, /* ATTACH => ABORT */
294, /* BEFORE => ABORT */
294, /* BEGIN => ABORT */
294, /* BITAND => ABORT */
294, /* BITNOT => ABORT */
294, /* BITOR => ABORT */
294, /* BLOCKS => ABORT */
294, /* CHANGE => ABORT */
294, /* COMMA => ABORT */
294, /* CONCAT => ABORT */
294, /* CONFLICT => ABORT */
294, /* COPY => ABORT */
294, /* DEFERRED => ABORT */
294, /* DELIMITERS => ABORT */
294, /* DETACH => ABORT */
294, /* DIVIDE => ABORT */
294, /* DOT => ABORT */
294, /* EACH => ABORT */
294, /* FAIL => ABORT */
294, /* FILE => ABORT */
294, /* FOR => ABORT */
294, /* GLOB => ABORT */
294, /* ID => ABORT */
294, /* IMMEDIATE => ABORT */
294, /* IMPORT => ABORT */
294, /* INITIALLY => ABORT */
294, /* INSTEAD => ABORT */
294, /* ISNULL => ABORT */
294, /* KEY => ABORT */
294, /* MODULES => ABORT */
294, /* NK_BITNOT => ABORT */
294, /* NK_SEMI => ABORT */
294, /* NOTNULL => ABORT */
294, /* OF => ABORT */
294, /* PLUS => ABORT */
294, /* PRIVILEGE => ABORT */
294, /* RAISE => ABORT */
294, /* RESTRICT => ABORT */
294, /* ROW => ABORT */
294, /* SEMI => ABORT */
294, /* STAR => ABORT */
294, /* STATEMENT => ABORT */
294, /* STRICT => ABORT */
294, /* STRING => ABORT */
294, /* TIMES => ABORT */
294, /* VALUES => ABORT */
294, /* VARIABLE => ABORT */
294, /* VIEW => ABORT */
294, /* 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 <stdio.h>
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:
** <ul>
** <li> A FILE* to which trace output should be written.
** If NULL, then tracing is turned off.
** <li> A prefix string written at the beginning of every
** line of trace output. If NULL, then tracing is
** turned off.
** </ul>
**
** 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 */ "NORMAL",
/* 172 */ "CHILD",
/* 173 */ "LIKE",
/* 174 */ "TBNAME",
/* 175 */ "QTAGS",
/* 176 */ "AS",
/* 177 */ "SYSTEM",
/* 178 */ "INDEX",
/* 179 */ "FUNCTION",
/* 180 */ "INTERVAL",
/* 181 */ "COUNT",
/* 182 */ "LAST_ROW",
/* 183 */ "META",
/* 184 */ "ONLY",
/* 185 */ "TOPIC",
/* 186 */ "CONSUMER",
/* 187 */ "GROUP",
/* 188 */ "DESC",
/* 189 */ "DESCRIBE",
/* 190 */ "RESET",
/* 191 */ "QUERY",
/* 192 */ "CACHE",
/* 193 */ "EXPLAIN",
/* 194 */ "ANALYZE",
/* 195 */ "VERBOSE",
/* 196 */ "NK_BOOL",
/* 197 */ "RATIO",
/* 198 */ "NK_FLOAT",
/* 199 */ "OUTPUTTYPE",
/* 200 */ "AGGREGATE",
/* 201 */ "BUFSIZE",
/* 202 */ "LANGUAGE",
/* 203 */ "REPLACE",
/* 204 */ "STREAM",
/* 205 */ "INTO",
/* 206 */ "PAUSE",
/* 207 */ "RESUME",
/* 208 */ "TRIGGER",
/* 209 */ "AT_ONCE",
/* 210 */ "WINDOW_CLOSE",
/* 211 */ "IGNORE",
/* 212 */ "EXPIRED",
/* 213 */ "FILL_HISTORY",
/* 214 */ "UPDATE",
/* 215 */ "SUBTABLE",
/* 216 */ "UNTREATED",
/* 217 */ "KILL",
/* 218 */ "CONNECTION",
/* 219 */ "TRANSACTION",
/* 220 */ "BALANCE",
/* 221 */ "VGROUP",
/* 222 */ "LEADER",
/* 223 */ "MERGE",
/* 224 */ "REDISTRIBUTE",
/* 225 */ "SPLIT",
/* 226 */ "DELETE",
/* 227 */ "INSERT",
/* 228 */ "NULL",
/* 229 */ "NK_QUESTION",
/* 230 */ "NK_ALIAS",
/* 231 */ "NK_ARROW",
/* 232 */ "ROWTS",
/* 233 */ "QSTART",
/* 234 */ "QEND",
/* 235 */ "QDURATION",
/* 236 */ "WSTART",
/* 237 */ "WEND",
/* 238 */ "WDURATION",
/* 239 */ "IROWTS",
/* 240 */ "ISFILLED",
/* 241 */ "CAST",
/* 242 */ "NOW",
/* 243 */ "TODAY",
/* 244 */ "TIMEZONE",
/* 245 */ "CLIENT_VERSION",
/* 246 */ "SERVER_VERSION",
/* 247 */ "SERVER_STATUS",
/* 248 */ "CURRENT_USER",
/* 249 */ "CASE",
/* 250 */ "WHEN",
/* 251 */ "THEN",
/* 252 */ "ELSE",
/* 253 */ "BETWEEN",
/* 254 */ "IS",
/* 255 */ "NK_LT",
/* 256 */ "NK_GT",
/* 257 */ "NK_LE",
/* 258 */ "NK_GE",
/* 259 */ "NK_NE",
/* 260 */ "MATCH",
/* 261 */ "NMATCH",
/* 262 */ "CONTAINS",
/* 263 */ "IN",
/* 264 */ "JOIN",
/* 265 */ "INNER",
/* 266 */ "SELECT",
/* 267 */ "NK_HINT",
/* 268 */ "DISTINCT",
/* 269 */ "WHERE",
/* 270 */ "PARTITION",
/* 271 */ "BY",
/* 272 */ "SESSION",
/* 273 */ "STATE_WINDOW",
/* 274 */ "EVENT_WINDOW",
/* 275 */ "SLIDING",
/* 276 */ "FILL",
/* 277 */ "VALUE",
/* 278 */ "VALUE_F",
/* 279 */ "NONE",
/* 280 */ "PREV",
/* 281 */ "NULL_F",
/* 282 */ "LINEAR",
/* 283 */ "NEXT",
/* 284 */ "HAVING",
/* 285 */ "RANGE",
/* 286 */ "EVERY",
/* 287 */ "ORDER",
/* 288 */ "SLIMIT",
/* 289 */ "SOFFSET",
/* 290 */ "LIMIT",
/* 291 */ "OFFSET",
/* 292 */ "ASC",
/* 293 */ "NULLS",
/* 294 */ "ABORT",
/* 295 */ "AFTER",
/* 296 */ "ATTACH",
/* 297 */ "BEFORE",
/* 298 */ "BEGIN",
/* 299 */ "BITAND",
/* 300 */ "BITNOT",
/* 301 */ "BITOR",
/* 302 */ "BLOCKS",
/* 303 */ "CHANGE",
/* 304 */ "COMMA",
/* 305 */ "CONCAT",
/* 306 */ "CONFLICT",
/* 307 */ "COPY",
/* 308 */ "DEFERRED",
/* 309 */ "DELIMITERS",
/* 310 */ "DETACH",
/* 311 */ "DIVIDE",
/* 312 */ "DOT",
/* 313 */ "EACH",
/* 314 */ "FAIL",
/* 315 */ "FILE",
/* 316 */ "FOR",
/* 317 */ "GLOB",
/* 318 */ "ID",
/* 319 */ "IMMEDIATE",
/* 320 */ "IMPORT",
/* 321 */ "INITIALLY",
/* 322 */ "INSTEAD",
/* 323 */ "ISNULL",
/* 324 */ "KEY",
/* 325 */ "MODULES",
/* 326 */ "NK_BITNOT",
/* 327 */ "NK_SEMI",
/* 328 */ "NOTNULL",
/* 329 */ "OF",
/* 330 */ "PLUS",
/* 331 */ "PRIVILEGE",
/* 332 */ "RAISE",
/* 333 */ "RESTRICT",
/* 334 */ "ROW",
/* 335 */ "SEMI",
/* 336 */ "STAR",
/* 337 */ "STATEMENT",
/* 338 */ "STRICT",
/* 339 */ "STRING",
/* 340 */ "TIMES",
/* 341 */ "VALUES",
/* 342 */ "VARIABLE",
/* 343 */ "VIEW",
/* 344 */ "WAL",
/* 345 */ "cmd",
/* 346 */ "account_options",
/* 347 */ "alter_account_options",
/* 348 */ "literal",
/* 349 */ "alter_account_option",
/* 350 */ "ip_range_list",
/* 351 */ "white_list",
/* 352 */ "white_list_opt",
/* 353 */ "user_name",
/* 354 */ "sysinfo_opt",
/* 355 */ "privileges",
/* 356 */ "priv_level",
/* 357 */ "with_opt",
/* 358 */ "priv_type_list",
/* 359 */ "priv_type",
/* 360 */ "db_name",
/* 361 */ "table_name",
/* 362 */ "topic_name",
/* 363 */ "search_condition",
/* 364 */ "dnode_endpoint",
/* 365 */ "force_opt",
/* 366 */ "unsafe_opt",
/* 367 */ "not_exists_opt",
/* 368 */ "db_options",
/* 369 */ "exists_opt",
/* 370 */ "alter_db_options",
/* 371 */ "speed_opt",
/* 372 */ "start_opt",
/* 373 */ "end_opt",
/* 374 */ "integer_list",
/* 375 */ "variable_list",
/* 376 */ "retention_list",
/* 377 */ "signed",
/* 378 */ "alter_db_option",
/* 379 */ "retention",
/* 380 */ "full_table_name",
/* 381 */ "column_def_list",
/* 382 */ "tags_def_opt",
/* 383 */ "table_options",
/* 384 */ "multi_create_clause",
/* 385 */ "tags_def",
/* 386 */ "multi_drop_clause",
/* 387 */ "alter_table_clause",
/* 388 */ "alter_table_options",
/* 389 */ "column_name",
/* 390 */ "type_name",
/* 391 */ "signed_literal",
/* 392 */ "create_subtable_clause",
/* 393 */ "specific_cols_opt",
/* 394 */ "expression_list",
/* 395 */ "drop_table_clause",
/* 396 */ "col_name_list",
/* 397 */ "column_def",
/* 398 */ "duration_list",
/* 399 */ "rollup_func_list",
/* 400 */ "alter_table_option",
/* 401 */ "duration_literal",
/* 402 */ "rollup_func_name",
/* 403 */ "function_name",
/* 404 */ "col_name",
/* 405 */ "db_kind_opt",
/* 406 */ "table_kind_db_name_cond_opt",
/* 407 */ "like_pattern_opt",
/* 408 */ "db_name_cond_opt",
/* 409 */ "table_name_cond",
/* 410 */ "from_db_opt",
/* 411 */ "tag_list_opt",
/* 412 */ "table_kind",
/* 413 */ "tag_item",
/* 414 */ "column_alias",
/* 415 */ "index_options",
/* 416 */ "full_index_name",
/* 417 */ "index_name",
/* 418 */ "func_list",
/* 419 */ "sliding_opt",
/* 420 */ "sma_stream_opt",
/* 421 */ "func",
/* 422 */ "sma_func_name",
/* 423 */ "with_meta",
/* 424 */ "query_or_subquery",
/* 425 */ "where_clause_opt",
/* 426 */ "cgroup_name",
/* 427 */ "analyze_opt",
/* 428 */ "explain_options",
/* 429 */ "insert_query",
/* 430 */ "or_replace_opt",
/* 431 */ "agg_func_opt",
/* 432 */ "bufsize_opt",
/* 433 */ "language_opt",
/* 434 */ "stream_name",
/* 435 */ "stream_options",
/* 436 */ "col_list_opt",
/* 437 */ "tag_def_or_ref_opt",
/* 438 */ "subtable_opt",
/* 439 */ "ignore_opt",
/* 440 */ "expression",
/* 441 */ "on_vgroup_id",
/* 442 */ "dnode_list",
/* 443 */ "literal_func",
/* 444 */ "literal_list",
/* 445 */ "table_alias",
/* 446 */ "expr_or_subquery",
/* 447 */ "pseudo_column",
/* 448 */ "column_reference",
/* 449 */ "function_expression",
/* 450 */ "case_when_expression",
/* 451 */ "star_func",
/* 452 */ "star_func_para_list",
/* 453 */ "noarg_func",
/* 454 */ "other_para_list",
/* 455 */ "star_func_para",
/* 456 */ "when_then_list",
/* 457 */ "case_when_else_opt",
/* 458 */ "common_expression",
/* 459 */ "when_then_expr",
/* 460 */ "predicate",
/* 461 */ "compare_op",
/* 462 */ "in_op",
/* 463 */ "in_predicate_value",
/* 464 */ "boolean_value_expression",
/* 465 */ "boolean_primary",
/* 466 */ "from_clause_opt",
/* 467 */ "table_reference_list",
/* 468 */ "table_reference",
/* 469 */ "table_primary",
/* 470 */ "joined_table",
/* 471 */ "alias_opt",
/* 472 */ "subquery",
/* 473 */ "parenthesized_joined_table",
/* 474 */ "join_type",
/* 475 */ "query_specification",
/* 476 */ "hint_list",
/* 477 */ "set_quantifier_opt",
/* 478 */ "tag_mode_opt",
/* 479 */ "select_list",
/* 480 */ "partition_by_clause_opt",
/* 481 */ "range_opt",
/* 482 */ "every_opt",
/* 483 */ "fill_opt",
/* 484 */ "twindow_clause_opt",
/* 485 */ "group_by_clause_opt",
/* 486 */ "having_clause_opt",
/* 487 */ "select_item",
/* 488 */ "partition_list",
/* 489 */ "partition_item",
/* 490 */ "interval_sliding_duration_literal",
/* 491 */ "fill_mode",
/* 492 */ "group_by_list",
/* 493 */ "query_expression",
/* 494 */ "query_simple",
/* 495 */ "order_by_clause_opt",
/* 496 */ "slimit_clause_opt",
/* 497 */ "limit_clause_opt",
/* 498 */ "union_query_expression",
/* 499 */ "query_simple_or_subquery",
/* 500 */ "sort_specification_list",
/* 501 */ "sort_specification",
/* 502 */ "ordering_specification_opt",
/* 503 */ "null_ordering_opt",
};
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
#ifndef NDEBUG
/* For tracing reduce actions, the names of all rules are required.
*/
static const char *const yyRuleName[] = {
/* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
/* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
/* 2 */ "account_options ::=",
/* 3 */ "account_options ::= account_options PPS literal",
/* 4 */ "account_options ::= account_options TSERIES literal",
/* 5 */ "account_options ::= account_options STORAGE literal",
/* 6 */ "account_options ::= account_options STREAMS literal",
/* 7 */ "account_options ::= account_options QTIME literal",
/* 8 */ "account_options ::= account_options DBS literal",
/* 9 */ "account_options ::= account_options USERS literal",
/* 10 */ "account_options ::= account_options CONNS literal",
/* 11 */ "account_options ::= account_options STATE literal",
/* 12 */ "alter_account_options ::= alter_account_option",
/* 13 */ "alter_account_options ::= alter_account_options alter_account_option",
/* 14 */ "alter_account_option ::= PASS literal",
/* 15 */ "alter_account_option ::= PPS literal",
/* 16 */ "alter_account_option ::= TSERIES literal",
/* 17 */ "alter_account_option ::= STORAGE literal",
/* 18 */ "alter_account_option ::= STREAMS literal",
/* 19 */ "alter_account_option ::= QTIME literal",
/* 20 */ "alter_account_option ::= DBS literal",
/* 21 */ "alter_account_option ::= USERS literal",
/* 22 */ "alter_account_option ::= CONNS literal",
/* 23 */ "alter_account_option ::= STATE literal",
/* 24 */ "ip_range_list ::= NK_STRING",
/* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING",
/* 26 */ "white_list ::= HOST ip_range_list",
/* 27 */ "white_list_opt ::=",
/* 28 */ "white_list_opt ::= white_list",
/* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt",
/* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
/* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
/* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
/* 33 */ "cmd ::= ALTER USER user_name ADD white_list",
/* 34 */ "cmd ::= ALTER USER user_name DROP white_list",
/* 35 */ "cmd ::= DROP USER user_name",
/* 36 */ "sysinfo_opt ::=",
/* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
/* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
/* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
/* 40 */ "privileges ::= ALL",
/* 41 */ "privileges ::= priv_type_list",
/* 42 */ "privileges ::= SUBSCRIBE",
/* 43 */ "priv_type_list ::= priv_type",
/* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
/* 45 */ "priv_type ::= READ",
/* 46 */ "priv_type ::= WRITE",
/* 47 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
/* 48 */ "priv_level ::= db_name NK_DOT NK_STAR",
/* 49 */ "priv_level ::= db_name NK_DOT table_name",
/* 50 */ "priv_level ::= topic_name",
/* 51 */ "with_opt ::=",
/* 52 */ "with_opt ::= WITH search_condition",
/* 53 */ "cmd ::= CREATE DNODE dnode_endpoint",
/* 54 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
/* 55 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
/* 56 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
/* 57 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
/* 58 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
/* 59 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
/* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
/* 61 */ "cmd ::= ALTER ALL DNODES NK_STRING",
/* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
/* 63 */ "cmd ::= RESTORE DNODE NK_INTEGER",
/* 64 */ "dnode_endpoint ::= NK_STRING",
/* 65 */ "dnode_endpoint ::= NK_ID",
/* 66 */ "dnode_endpoint ::= NK_IPTOKEN",
/* 67 */ "force_opt ::=",
/* 68 */ "force_opt ::= FORCE",
/* 69 */ "unsafe_opt ::= UNSAFE",
/* 70 */ "cmd ::= ALTER LOCAL NK_STRING",
/* 71 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
/* 72 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
/* 73 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
/* 74 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
/* 75 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
/* 76 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
/* 77 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
/* 78 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
/* 79 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
/* 80 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
/* 81 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
/* 82 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
/* 83 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
/* 84 */ "cmd ::= DROP DATABASE exists_opt db_name",
/* 85 */ "cmd ::= USE db_name",
/* 86 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
/* 87 */ "cmd ::= FLUSH DATABASE db_name",
/* 88 */ "cmd ::= TRIM DATABASE db_name speed_opt",
/* 89 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
/* 90 */ "not_exists_opt ::= IF NOT EXISTS",
/* 91 */ "not_exists_opt ::=",
/* 92 */ "exists_opt ::= IF EXISTS",
/* 93 */ "exists_opt ::=",
/* 94 */ "db_options ::=",
/* 95 */ "db_options ::= db_options BUFFER NK_INTEGER",
/* 96 */ "db_options ::= db_options CACHEMODEL NK_STRING",
/* 97 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
/* 98 */ "db_options ::= db_options COMP NK_INTEGER",
/* 99 */ "db_options ::= db_options DURATION NK_INTEGER",
/* 100 */ "db_options ::= db_options DURATION NK_VARIABLE",
/* 101 */ "db_options ::= db_options MAXROWS NK_INTEGER",
/* 102 */ "db_options ::= db_options MINROWS NK_INTEGER",
/* 103 */ "db_options ::= db_options KEEP integer_list",
/* 104 */ "db_options ::= db_options KEEP variable_list",
/* 105 */ "db_options ::= db_options PAGES NK_INTEGER",
/* 106 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
/* 107 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
/* 108 */ "db_options ::= db_options PRECISION NK_STRING",
/* 109 */ "db_options ::= db_options REPLICA NK_INTEGER",
/* 110 */ "db_options ::= db_options VGROUPS NK_INTEGER",
/* 111 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
/* 112 */ "db_options ::= db_options RETENTIONS retention_list",
/* 113 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
/* 114 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
/* 115 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
/* 116 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
/* 117 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 118 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
/* 119 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 120 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
/* 121 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
/* 122 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
/* 123 */ "db_options ::= db_options TABLE_PREFIX signed",
/* 124 */ "db_options ::= db_options TABLE_SUFFIX signed",
/* 125 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
/* 126 */ "alter_db_options ::= alter_db_option",
/* 127 */ "alter_db_options ::= alter_db_options alter_db_option",
/* 128 */ "alter_db_option ::= BUFFER NK_INTEGER",
/* 129 */ "alter_db_option ::= CACHEMODEL NK_STRING",
/* 130 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
/* 131 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
/* 132 */ "alter_db_option ::= KEEP integer_list",
/* 133 */ "alter_db_option ::= KEEP variable_list",
/* 134 */ "alter_db_option ::= PAGES NK_INTEGER",
/* 135 */ "alter_db_option ::= REPLICA NK_INTEGER",
/* 136 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
/* 137 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
/* 138 */ "alter_db_option ::= MINROWS NK_INTEGER",
/* 139 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
/* 140 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 141 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
/* 142 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 143 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
/* 144 */ "integer_list ::= NK_INTEGER",
/* 145 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
/* 146 */ "variable_list ::= NK_VARIABLE",
/* 147 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
/* 148 */ "retention_list ::= retention",
/* 149 */ "retention_list ::= retention_list NK_COMMA retention",
/* 150 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
/* 151 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
/* 152 */ "speed_opt ::=",
/* 153 */ "speed_opt ::= BWLIMIT NK_INTEGER",
/* 154 */ "start_opt ::=",
/* 155 */ "start_opt ::= START WITH NK_INTEGER",
/* 156 */ "start_opt ::= START WITH NK_STRING",
/* 157 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
/* 158 */ "end_opt ::=",
/* 159 */ "end_opt ::= END WITH NK_INTEGER",
/* 160 */ "end_opt ::= END WITH NK_STRING",
/* 161 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
/* 162 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
/* 163 */ "cmd ::= CREATE TABLE multi_create_clause",
/* 164 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
/* 165 */ "cmd ::= DROP TABLE multi_drop_clause",
/* 166 */ "cmd ::= DROP STABLE exists_opt full_table_name",
/* 167 */ "cmd ::= ALTER TABLE alter_table_clause",
/* 168 */ "cmd ::= ALTER STABLE alter_table_clause",
/* 169 */ "alter_table_clause ::= full_table_name alter_table_options",
/* 170 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
/* 171 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
/* 172 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
/* 173 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
/* 174 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
/* 175 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
/* 176 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
/* 177 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
/* 178 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
/* 179 */ "multi_create_clause ::= create_subtable_clause",
/* 180 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
/* 181 */ "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",
/* 182 */ "multi_drop_clause ::= drop_table_clause",
/* 183 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
/* 184 */ "drop_table_clause ::= exists_opt full_table_name",
/* 185 */ "specific_cols_opt ::=",
/* 186 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
/* 187 */ "full_table_name ::= table_name",
/* 188 */ "full_table_name ::= db_name NK_DOT table_name",
/* 189 */ "column_def_list ::= column_def",
/* 190 */ "column_def_list ::= column_def_list NK_COMMA column_def",
/* 191 */ "column_def ::= column_name type_name",
/* 192 */ "type_name ::= BOOL",
/* 193 */ "type_name ::= TINYINT",
/* 194 */ "type_name ::= SMALLINT",
/* 195 */ "type_name ::= INT",
/* 196 */ "type_name ::= INTEGER",
/* 197 */ "type_name ::= BIGINT",
/* 198 */ "type_name ::= FLOAT",
/* 199 */ "type_name ::= DOUBLE",
/* 200 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
/* 201 */ "type_name ::= TIMESTAMP",
/* 202 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
/* 203 */ "type_name ::= TINYINT UNSIGNED",
/* 204 */ "type_name ::= SMALLINT UNSIGNED",
/* 205 */ "type_name ::= INT UNSIGNED",
/* 206 */ "type_name ::= BIGINT UNSIGNED",
/* 207 */ "type_name ::= JSON",
/* 208 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
/* 209 */ "type_name ::= MEDIUMBLOB",
/* 210 */ "type_name ::= BLOB",
/* 211 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
/* 212 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
/* 213 */ "type_name ::= DECIMAL",
/* 214 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
/* 215 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 216 */ "tags_def_opt ::=",
/* 217 */ "tags_def_opt ::= tags_def",
/* 218 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
/* 219 */ "table_options ::=",
/* 220 */ "table_options ::= table_options COMMENT NK_STRING",
/* 221 */ "table_options ::= table_options MAX_DELAY duration_list",
/* 222 */ "table_options ::= table_options WATERMARK duration_list",
/* 223 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
/* 224 */ "table_options ::= table_options TTL NK_INTEGER",
/* 225 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
/* 226 */ "table_options ::= table_options DELETE_MARK duration_list",
/* 227 */ "alter_table_options ::= alter_table_option",
/* 228 */ "alter_table_options ::= alter_table_options alter_table_option",
/* 229 */ "alter_table_option ::= COMMENT NK_STRING",
/* 230 */ "alter_table_option ::= TTL NK_INTEGER",
/* 231 */ "duration_list ::= duration_literal",
/* 232 */ "duration_list ::= duration_list NK_COMMA duration_literal",
/* 233 */ "rollup_func_list ::= rollup_func_name",
/* 234 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
/* 235 */ "rollup_func_name ::= function_name",
/* 236 */ "rollup_func_name ::= FIRST",
/* 237 */ "rollup_func_name ::= LAST",
/* 238 */ "col_name_list ::= col_name",
/* 239 */ "col_name_list ::= col_name_list NK_COMMA col_name",
/* 240 */ "col_name ::= column_name",
/* 241 */ "cmd ::= SHOW DNODES",
/* 242 */ "cmd ::= SHOW USERS",
/* 243 */ "cmd ::= SHOW USER PRIVILEGES",
/* 244 */ "cmd ::= SHOW db_kind_opt DATABASES",
/* 245 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
/* 246 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
/* 247 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
/* 248 */ "cmd ::= SHOW MNODES",
/* 249 */ "cmd ::= SHOW QNODES",
/* 250 */ "cmd ::= SHOW FUNCTIONS",
/* 251 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
/* 252 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
/* 253 */ "cmd ::= SHOW STREAMS",
/* 254 */ "cmd ::= SHOW ACCOUNTS",
/* 255 */ "cmd ::= SHOW APPS",
/* 256 */ "cmd ::= SHOW CONNECTIONS",
/* 257 */ "cmd ::= SHOW LICENCES",
/* 258 */ "cmd ::= SHOW GRANTS",
/* 259 */ "cmd ::= SHOW CREATE DATABASE db_name",
/* 260 */ "cmd ::= SHOW CREATE TABLE full_table_name",
/* 261 */ "cmd ::= SHOW CREATE STABLE full_table_name",
/* 262 */ "cmd ::= SHOW QUERIES",
/* 263 */ "cmd ::= SHOW SCORES",
/* 264 */ "cmd ::= SHOW TOPICS",
/* 265 */ "cmd ::= SHOW VARIABLES",
/* 266 */ "cmd ::= SHOW CLUSTER VARIABLES",
/* 267 */ "cmd ::= SHOW LOCAL VARIABLES",
/* 268 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
/* 269 */ "cmd ::= SHOW BNODES",
/* 270 */ "cmd ::= SHOW SNODES",
/* 271 */ "cmd ::= SHOW CLUSTER",
/* 272 */ "cmd ::= SHOW TRANSACTIONS",
/* 273 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
/* 274 */ "cmd ::= SHOW CONSUMERS",
/* 275 */ "cmd ::= SHOW SUBSCRIPTIONS",
/* 276 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
/* 277 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
/* 278 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
/* 279 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
/* 280 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
/* 281 */ "cmd ::= SHOW VNODES",
/* 282 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
/* 283 */ "cmd ::= SHOW CLUSTER ALIVE",
/* 284 */ "table_kind_db_name_cond_opt ::=",
/* 285 */ "table_kind_db_name_cond_opt ::= table_kind",
/* 286 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
/* 287 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
/* 288 */ "table_kind ::= NORMAL",
/* 289 */ "table_kind ::= CHILD",
/* 290 */ "db_name_cond_opt ::=",
/* 291 */ "db_name_cond_opt ::= db_name NK_DOT",
/* 292 */ "like_pattern_opt ::=",
/* 293 */ "like_pattern_opt ::= LIKE NK_STRING",
/* 294 */ "table_name_cond ::= table_name",
/* 295 */ "from_db_opt ::=",
/* 296 */ "from_db_opt ::= FROM db_name",
/* 297 */ "tag_list_opt ::=",
/* 298 */ "tag_list_opt ::= tag_item",
/* 299 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
/* 300 */ "tag_item ::= TBNAME",
/* 301 */ "tag_item ::= QTAGS",
/* 302 */ "tag_item ::= column_name",
/* 303 */ "tag_item ::= column_name column_alias",
/* 304 */ "tag_item ::= column_name AS column_alias",
/* 305 */ "db_kind_opt ::=",
/* 306 */ "db_kind_opt ::= USER",
/* 307 */ "db_kind_opt ::= SYSTEM",
/* 308 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
/* 309 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
/* 310 */ "cmd ::= DROP INDEX exists_opt full_index_name",
/* 311 */ "full_index_name ::= index_name",
/* 312 */ "full_index_name ::= db_name NK_DOT index_name",
/* 313 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
/* 314 */ "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",
/* 315 */ "func_list ::= func",
/* 316 */ "func_list ::= func_list NK_COMMA func",
/* 317 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
/* 318 */ "sma_func_name ::= function_name",
/* 319 */ "sma_func_name ::= COUNT",
/* 320 */ "sma_func_name ::= FIRST",
/* 321 */ "sma_func_name ::= LAST",
/* 322 */ "sma_func_name ::= LAST_ROW",
/* 323 */ "sma_stream_opt ::=",
/* 324 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
/* 325 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
/* 326 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
/* 327 */ "with_meta ::= AS",
/* 328 */ "with_meta ::= WITH META AS",
/* 329 */ "with_meta ::= ONLY META AS",
/* 330 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
/* 331 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
/* 332 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
/* 333 */ "cmd ::= DROP TOPIC exists_opt topic_name",
/* 334 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
/* 335 */ "cmd ::= DESC full_table_name",
/* 336 */ "cmd ::= DESCRIBE full_table_name",
/* 337 */ "cmd ::= RESET QUERY CACHE",
/* 338 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
/* 339 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
/* 340 */ "analyze_opt ::=",
/* 341 */ "analyze_opt ::= ANALYZE",
/* 342 */ "explain_options ::=",
/* 343 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
/* 344 */ "explain_options ::= explain_options RATIO NK_FLOAT",
/* 345 */ "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 */ "cmd ::= DROP FUNCTION exists_opt function_name",
/* 347 */ "agg_func_opt ::=",
/* 348 */ "agg_func_opt ::= AGGREGATE",
/* 349 */ "bufsize_opt ::=",
/* 350 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
/* 351 */ "language_opt ::=",
/* 352 */ "language_opt ::= LANGUAGE NK_STRING",
/* 353 */ "or_replace_opt ::=",
/* 354 */ "or_replace_opt ::= OR REPLACE",
/* 355 */ "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",
/* 356 */ "cmd ::= DROP STREAM exists_opt stream_name",
/* 357 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
/* 358 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
/* 359 */ "col_list_opt ::=",
/* 360 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
/* 361 */ "tag_def_or_ref_opt ::=",
/* 362 */ "tag_def_or_ref_opt ::= tags_def",
/* 363 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
/* 364 */ "stream_options ::=",
/* 365 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
/* 366 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
/* 367 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
/* 368 */ "stream_options ::= stream_options WATERMARK duration_literal",
/* 369 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
/* 370 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
/* 371 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
/* 372 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
/* 373 */ "subtable_opt ::=",
/* 374 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
/* 375 */ "ignore_opt ::=",
/* 376 */ "ignore_opt ::= IGNORE UNTREATED",
/* 377 */ "cmd ::= KILL CONNECTION NK_INTEGER",
/* 378 */ "cmd ::= KILL QUERY NK_STRING",
/* 379 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
/* 380 */ "cmd ::= BALANCE VGROUP",
/* 381 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
/* 382 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
/* 383 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
/* 384 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
/* 385 */ "on_vgroup_id ::=",
/* 386 */ "on_vgroup_id ::= ON NK_INTEGER",
/* 387 */ "dnode_list ::= DNODE NK_INTEGER",
/* 388 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
/* 389 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
/* 390 */ "cmd ::= query_or_subquery",
/* 391 */ "cmd ::= insert_query",
/* 392 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
/* 393 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
/* 394 */ "literal ::= NK_INTEGER",
/* 395 */ "literal ::= NK_FLOAT",
/* 396 */ "literal ::= NK_STRING",
/* 397 */ "literal ::= NK_BOOL",
/* 398 */ "literal ::= TIMESTAMP NK_STRING",
/* 399 */ "literal ::= duration_literal",
/* 400 */ "literal ::= NULL",
/* 401 */ "literal ::= NK_QUESTION",
/* 402 */ "duration_literal ::= NK_VARIABLE",
/* 403 */ "signed ::= NK_INTEGER",
/* 404 */ "signed ::= NK_PLUS NK_INTEGER",
/* 405 */ "signed ::= NK_MINUS NK_INTEGER",
/* 406 */ "signed ::= NK_FLOAT",
/* 407 */ "signed ::= NK_PLUS NK_FLOAT",
/* 408 */ "signed ::= NK_MINUS NK_FLOAT",
/* 409 */ "signed_literal ::= signed",
/* 410 */ "signed_literal ::= NK_STRING",
/* 411 */ "signed_literal ::= NK_BOOL",
/* 412 */ "signed_literal ::= TIMESTAMP NK_STRING",
/* 413 */ "signed_literal ::= duration_literal",
/* 414 */ "signed_literal ::= NULL",
/* 415 */ "signed_literal ::= literal_func",
/* 416 */ "signed_literal ::= NK_QUESTION",
/* 417 */ "literal_list ::= signed_literal",
/* 418 */ "literal_list ::= literal_list NK_COMMA signed_literal",
/* 419 */ "db_name ::= NK_ID",
/* 420 */ "table_name ::= NK_ID",
/* 421 */ "column_name ::= NK_ID",
/* 422 */ "function_name ::= NK_ID",
/* 423 */ "table_alias ::= NK_ID",
/* 424 */ "column_alias ::= NK_ID",
/* 425 */ "column_alias ::= NK_ALIAS",
/* 426 */ "user_name ::= NK_ID",
/* 427 */ "topic_name ::= NK_ID",
/* 428 */ "stream_name ::= NK_ID",
/* 429 */ "cgroup_name ::= NK_ID",
/* 430 */ "index_name ::= NK_ID",
/* 431 */ "expr_or_subquery ::= expression",
/* 432 */ "expression ::= literal",
/* 433 */ "expression ::= pseudo_column",
/* 434 */ "expression ::= column_reference",
/* 435 */ "expression ::= function_expression",
/* 436 */ "expression ::= case_when_expression",
/* 437 */ "expression ::= NK_LP expression NK_RP",
/* 438 */ "expression ::= NK_PLUS expr_or_subquery",
/* 439 */ "expression ::= NK_MINUS expr_or_subquery",
/* 440 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
/* 441 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
/* 442 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
/* 443 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
/* 444 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
/* 445 */ "expression ::= column_reference NK_ARROW NK_STRING",
/* 446 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
/* 447 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
/* 448 */ "expression_list ::= expr_or_subquery",
/* 449 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
/* 450 */ "column_reference ::= column_name",
/* 451 */ "column_reference ::= table_name NK_DOT column_name",
/* 452 */ "column_reference ::= NK_ALIAS",
/* 453 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
/* 454 */ "pseudo_column ::= ROWTS",
/* 455 */ "pseudo_column ::= TBNAME",
/* 456 */ "pseudo_column ::= table_name NK_DOT TBNAME",
/* 457 */ "pseudo_column ::= QSTART",
/* 458 */ "pseudo_column ::= QEND",
/* 459 */ "pseudo_column ::= QDURATION",
/* 460 */ "pseudo_column ::= WSTART",
/* 461 */ "pseudo_column ::= WEND",
/* 462 */ "pseudo_column ::= WDURATION",
/* 463 */ "pseudo_column ::= IROWTS",
/* 464 */ "pseudo_column ::= ISFILLED",
/* 465 */ "pseudo_column ::= QTAGS",
/* 466 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
/* 467 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
/* 468 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
/* 469 */ "function_expression ::= literal_func",
/* 470 */ "literal_func ::= noarg_func NK_LP NK_RP",
/* 471 */ "literal_func ::= NOW",
/* 472 */ "noarg_func ::= NOW",
/* 473 */ "noarg_func ::= TODAY",
/* 474 */ "noarg_func ::= TIMEZONE",
/* 475 */ "noarg_func ::= DATABASE",
/* 476 */ "noarg_func ::= CLIENT_VERSION",
/* 477 */ "noarg_func ::= SERVER_VERSION",
/* 478 */ "noarg_func ::= SERVER_STATUS",
/* 479 */ "noarg_func ::= CURRENT_USER",
/* 480 */ "noarg_func ::= USER",
/* 481 */ "star_func ::= COUNT",
/* 482 */ "star_func ::= FIRST",
/* 483 */ "star_func ::= LAST",
/* 484 */ "star_func ::= LAST_ROW",
/* 485 */ "star_func_para_list ::= NK_STAR",
/* 486 */ "star_func_para_list ::= other_para_list",
/* 487 */ "other_para_list ::= star_func_para",
/* 488 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
/* 489 */ "star_func_para ::= expr_or_subquery",
/* 490 */ "star_func_para ::= table_name NK_DOT NK_STAR",
/* 491 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
/* 492 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
/* 493 */ "when_then_list ::= when_then_expr",
/* 494 */ "when_then_list ::= when_then_list when_then_expr",
/* 495 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
/* 496 */ "case_when_else_opt ::=",
/* 497 */ "case_when_else_opt ::= ELSE common_expression",
/* 498 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
/* 499 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
/* 500 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
/* 501 */ "predicate ::= expr_or_subquery IS NULL",
/* 502 */ "predicate ::= expr_or_subquery IS NOT NULL",
/* 503 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
/* 504 */ "compare_op ::= NK_LT",
/* 505 */ "compare_op ::= NK_GT",
/* 506 */ "compare_op ::= NK_LE",
/* 507 */ "compare_op ::= NK_GE",
/* 508 */ "compare_op ::= NK_NE",
/* 509 */ "compare_op ::= NK_EQ",
/* 510 */ "compare_op ::= LIKE",
/* 511 */ "compare_op ::= NOT LIKE",
/* 512 */ "compare_op ::= MATCH",
/* 513 */ "compare_op ::= NMATCH",
/* 514 */ "compare_op ::= CONTAINS",
/* 515 */ "in_op ::= IN",
/* 516 */ "in_op ::= NOT IN",
/* 517 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
/* 518 */ "boolean_value_expression ::= boolean_primary",
/* 519 */ "boolean_value_expression ::= NOT boolean_primary",
/* 520 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 521 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 522 */ "boolean_primary ::= predicate",
/* 523 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 524 */ "common_expression ::= expr_or_subquery",
/* 525 */ "common_expression ::= boolean_value_expression",
/* 526 */ "from_clause_opt ::=",
/* 527 */ "from_clause_opt ::= FROM table_reference_list",
/* 528 */ "table_reference_list ::= table_reference",
/* 529 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 530 */ "table_reference ::= table_primary",
/* 531 */ "table_reference ::= joined_table",
/* 532 */ "table_primary ::= table_name alias_opt",
/* 533 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 534 */ "table_primary ::= subquery alias_opt",
/* 535 */ "table_primary ::= parenthesized_joined_table",
/* 536 */ "alias_opt ::=",
/* 537 */ "alias_opt ::= table_alias",
/* 538 */ "alias_opt ::= AS table_alias",
/* 539 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 540 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 541 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
/* 542 */ "join_type ::=",
/* 543 */ "join_type ::= INNER",
/* 544 */ "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",
/* 545 */ "hint_list ::=",
/* 546 */ "hint_list ::= NK_HINT",
/* 547 */ "tag_mode_opt ::=",
/* 548 */ "tag_mode_opt ::= TAGS",
/* 549 */ "set_quantifier_opt ::=",
/* 550 */ "set_quantifier_opt ::= DISTINCT",
/* 551 */ "set_quantifier_opt ::= ALL",
/* 552 */ "select_list ::= select_item",
/* 553 */ "select_list ::= select_list NK_COMMA select_item",
/* 554 */ "select_item ::= NK_STAR",
/* 555 */ "select_item ::= common_expression",
/* 556 */ "select_item ::= common_expression column_alias",
/* 557 */ "select_item ::= common_expression AS column_alias",
/* 558 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 559 */ "where_clause_opt ::=",
/* 560 */ "where_clause_opt ::= WHERE search_condition",
/* 561 */ "partition_by_clause_opt ::=",
/* 562 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
/* 563 */ "partition_list ::= partition_item",
/* 564 */ "partition_list ::= partition_list NK_COMMA partition_item",
/* 565 */ "partition_item ::= expr_or_subquery",
/* 566 */ "partition_item ::= expr_or_subquery column_alias",
/* 567 */ "partition_item ::= expr_or_subquery AS column_alias",
/* 568 */ "twindow_clause_opt ::=",
/* 569 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
/* 570 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
/* 571 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 572 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 573 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
/* 574 */ "sliding_opt ::=",
/* 575 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
/* 576 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
/* 577 */ "interval_sliding_duration_literal ::= NK_STRING",
/* 578 */ "interval_sliding_duration_literal ::= NK_INTEGER",
/* 579 */ "fill_opt ::=",
/* 580 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 581 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
/* 582 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
/* 583 */ "fill_mode ::= NONE",
/* 584 */ "fill_mode ::= PREV",
/* 585 */ "fill_mode ::= NULL",
/* 586 */ "fill_mode ::= NULL_F",
/* 587 */ "fill_mode ::= LINEAR",
/* 588 */ "fill_mode ::= NEXT",
/* 589 */ "group_by_clause_opt ::=",
/* 590 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 591 */ "group_by_list ::= expr_or_subquery",
/* 592 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
/* 593 */ "having_clause_opt ::=",
/* 594 */ "having_clause_opt ::= HAVING search_condition",
/* 595 */ "range_opt ::=",
/* 596 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
/* 597 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
/* 598 */ "every_opt ::=",
/* 599 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
/* 600 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 601 */ "query_simple ::= query_specification",
/* 602 */ "query_simple ::= union_query_expression",
/* 603 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
/* 604 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
/* 605 */ "query_simple_or_subquery ::= query_simple",
/* 606 */ "query_simple_or_subquery ::= subquery",
/* 607 */ "query_or_subquery ::= query_expression",
/* 608 */ "query_or_subquery ::= subquery",
/* 609 */ "order_by_clause_opt ::=",
/* 610 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 611 */ "slimit_clause_opt ::=",
/* 612 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 613 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 614 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 615 */ "limit_clause_opt ::=",
/* 616 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 617 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 618 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 619 */ "subquery ::= NK_LP query_expression NK_RP",
/* 620 */ "subquery ::= NK_LP subquery NK_RP",
/* 621 */ "search_condition ::= common_expression",
/* 622 */ "sort_specification_list ::= sort_specification",
/* 623 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 624 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
/* 625 */ "ordering_specification_opt ::=",
/* 626 */ "ordering_specification_opt ::= ASC",
/* 627 */ "ordering_specification_opt ::= DESC",
/* 628 */ "null_ordering_opt ::=",
/* 629 */ "null_ordering_opt ::= NULLS FIRST",
/* 630 */ "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 345: /* cmd */
case 348: /* literal */
case 357: /* with_opt */
case 363: /* search_condition */
case 368: /* db_options */
case 370: /* alter_db_options */
case 372: /* start_opt */
case 373: /* end_opt */
case 377: /* signed */
case 379: /* retention */
case 380: /* full_table_name */
case 383: /* table_options */
case 387: /* alter_table_clause */
case 388: /* alter_table_options */
case 391: /* signed_literal */
case 392: /* create_subtable_clause */
case 395: /* drop_table_clause */
case 397: /* column_def */
case 401: /* duration_literal */
case 402: /* rollup_func_name */
case 404: /* col_name */
case 407: /* like_pattern_opt */
case 408: /* db_name_cond_opt */
case 409: /* table_name_cond */
case 410: /* from_db_opt */
case 413: /* tag_item */
case 415: /* index_options */
case 416: /* full_index_name */
case 419: /* sliding_opt */
case 420: /* sma_stream_opt */
case 421: /* func */
case 424: /* query_or_subquery */
case 425: /* where_clause_opt */
case 428: /* explain_options */
case 429: /* insert_query */
case 435: /* stream_options */
case 438: /* subtable_opt */
case 440: /* expression */
case 443: /* literal_func */
case 446: /* expr_or_subquery */
case 447: /* pseudo_column */
case 448: /* column_reference */
case 449: /* function_expression */
case 450: /* case_when_expression */
case 455: /* star_func_para */
case 457: /* case_when_else_opt */
case 458: /* common_expression */
case 459: /* when_then_expr */
case 460: /* predicate */
case 463: /* in_predicate_value */
case 464: /* boolean_value_expression */
case 465: /* boolean_primary */
case 466: /* from_clause_opt */
case 467: /* table_reference_list */
case 468: /* table_reference */
case 469: /* table_primary */
case 470: /* joined_table */
case 472: /* subquery */
case 473: /* parenthesized_joined_table */
case 475: /* query_specification */
case 481: /* range_opt */
case 482: /* every_opt */
case 483: /* fill_opt */
case 484: /* twindow_clause_opt */
case 486: /* having_clause_opt */
case 487: /* select_item */
case 489: /* partition_item */
case 490: /* interval_sliding_duration_literal */
case 493: /* query_expression */
case 494: /* query_simple */
case 496: /* slimit_clause_opt */
case 497: /* limit_clause_opt */
case 498: /* union_query_expression */
case 499: /* query_simple_or_subquery */
case 501: /* sort_specification */
{
nodesDestroyNode((yypminor->yy56));
}
break;
case 346: /* account_options */
case 347: /* alter_account_options */
case 349: /* alter_account_option */
case 371: /* speed_opt */
case 423: /* with_meta */
case 432: /* bufsize_opt */
{
}
break;
case 350: /* ip_range_list */
case 351: /* white_list */
case 352: /* white_list_opt */
case 374: /* integer_list */
case 375: /* variable_list */
case 376: /* retention_list */
case 381: /* column_def_list */
case 382: /* tags_def_opt */
case 384: /* multi_create_clause */
case 385: /* tags_def */
case 386: /* multi_drop_clause */
case 393: /* specific_cols_opt */
case 394: /* expression_list */
case 396: /* col_name_list */
case 398: /* duration_list */
case 399: /* rollup_func_list */
case 411: /* tag_list_opt */
case 418: /* func_list */
case 436: /* col_list_opt */
case 437: /* tag_def_or_ref_opt */
case 442: /* dnode_list */
case 444: /* literal_list */
case 452: /* star_func_para_list */
case 454: /* other_para_list */
case 456: /* when_then_list */
case 476: /* hint_list */
case 479: /* select_list */
case 480: /* partition_by_clause_opt */
case 485: /* group_by_clause_opt */
case 488: /* partition_list */
case 492: /* group_by_list */
case 495: /* order_by_clause_opt */
case 500: /* sort_specification_list */
{
nodesDestroyList((yypminor->yy712));
}
break;
case 353: /* user_name */
case 360: /* db_name */
case 361: /* table_name */
case 362: /* topic_name */
case 364: /* dnode_endpoint */
case 389: /* column_name */
case 403: /* function_name */
case 414: /* column_alias */
case 417: /* index_name */
case 422: /* sma_func_name */
case 426: /* cgroup_name */
case 433: /* language_opt */
case 434: /* stream_name */
case 441: /* on_vgroup_id */
case 445: /* table_alias */
case 451: /* star_func */
case 453: /* noarg_func */
case 471: /* alias_opt */
{
}
break;
case 354: /* sysinfo_opt */
{
}
break;
case 355: /* privileges */
case 358: /* priv_type_list */
case 359: /* priv_type */
{
}
break;
case 356: /* priv_level */
{
}
break;
case 365: /* force_opt */
case 366: /* unsafe_opt */
case 367: /* not_exists_opt */
case 369: /* exists_opt */
case 427: /* analyze_opt */
case 430: /* or_replace_opt */
case 431: /* agg_func_opt */
case 439: /* ignore_opt */
case 477: /* set_quantifier_opt */
case 478: /* tag_mode_opt */
{
}
break;
case 378: /* alter_db_option */
case 400: /* alter_table_option */
{
}
break;
case 390: /* type_name */
{
}
break;
case 405: /* db_kind_opt */
case 412: /* table_kind */
{
}
break;
case 406: /* table_kind_db_name_cond_opt */
{
}
break;
case 461: /* compare_op */
case 462: /* in_op */
{
}
break;
case 474: /* join_type */
{
}
break;
case 491: /* fill_mode */
{
}
break;
case 502: /* ordering_specification_opt */
{
}
break;
case 503: /* 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; stateno<YYNSTATE; stateno++){
i = yy_shift_ofst[stateno];
for(iLookAhead=0; iLookAhead<YYNTOKEN; iLookAhead++){
if( yy_lookahead[i+iLookAhead]!=iLookAhead ) continue;
if( yycoverage[stateno][iLookAhead]==0 ) nMissed++;
if( out ){
fprintf(out,"State %d lookahead %s %s\n", stateno,
yyTokenName[iLookAhead],
yycoverage[stateno][iLookAhead] ? "ok" : "missed");
}
}
}
return nMissed;
}
#endif
/*
** Find the appropriate action for a parser given the terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_shift_action(
YYCODETYPE iLookAhead, /* The look-ahead token */
YYACTIONTYPE stateno /* Current state number */
){
int i;
if( stateno>YY_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<sizeof(yyFallback)/sizeof(yyFallback[0]) );
iFallback = yyFallback[iLookAhead];
if( iFallback!=0 ){
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
}
#endif
assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
iLookAhead = iFallback;
continue;
}
#endif
#ifdef YYWILDCARD
{
int j = i - iLookAhead + YYWILDCARD;
assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) );
if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
yyTracePrompt, yyTokenName[iLookAhead],
yyTokenName[YYWILDCARD]);
}
#endif /* NDEBUG */
return yy_action[j];
}
}
#endif /* YYWILDCARD */
return yy_default[stateno];
}else{
assert( i>=0 && i<sizeof(yy_action)/sizeof(yy_action[0]) );
return yy_action[i];
}
}while(1);
}
/*
** Find the appropriate action for a parser given the non-terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_reduce_action(
YYACTIONTYPE stateno, /* Current state number */
YYCODETYPE iLookAhead /* The look-ahead token */
){
int i;
#ifdef YYERRORSYMBOL
if( stateno>YY_REDUCE_COUNT ){
return yy_default[stateno];
}
#else
assert( stateno<=YY_REDUCE_COUNT );
#endif
i = yy_reduce_ofst[stateno];
assert( iLookAhead!=YYNOCODE );
i += iLookAhead;
#ifdef YYERRORSYMBOL
if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){
return yy_default[stateno];
}
#else
assert( i>=0 && i<YY_ACTTAB_COUNT );
assert( yy_lookahead[i]==iLookAhead );
#endif
return yy_action[i];
}
/*
** The following routine is called if the stack overflows.
*/
static void yyStackOverflow(yyParser *yypParser){
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
}
#endif
while( yypParser->yytos>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( yyNewState<YYNSTATE ){
fprintf(yyTraceFILE,"%s%s '%s', go to state %d\n",
yyTracePrompt, zTag, yyTokenName[yypParser->yytos->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[] = {
345, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
345, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
346, /* (2) account_options ::= */
346, /* (3) account_options ::= account_options PPS literal */
346, /* (4) account_options ::= account_options TSERIES literal */
346, /* (5) account_options ::= account_options STORAGE literal */
346, /* (6) account_options ::= account_options STREAMS literal */
346, /* (7) account_options ::= account_options QTIME literal */
346, /* (8) account_options ::= account_options DBS literal */
346, /* (9) account_options ::= account_options USERS literal */
346, /* (10) account_options ::= account_options CONNS literal */
346, /* (11) account_options ::= account_options STATE literal */
347, /* (12) alter_account_options ::= alter_account_option */
347, /* (13) alter_account_options ::= alter_account_options alter_account_option */
349, /* (14) alter_account_option ::= PASS literal */
349, /* (15) alter_account_option ::= PPS literal */
349, /* (16) alter_account_option ::= TSERIES literal */
349, /* (17) alter_account_option ::= STORAGE literal */
349, /* (18) alter_account_option ::= STREAMS literal */
349, /* (19) alter_account_option ::= QTIME literal */
349, /* (20) alter_account_option ::= DBS literal */
349, /* (21) alter_account_option ::= USERS literal */
349, /* (22) alter_account_option ::= CONNS literal */
349, /* (23) alter_account_option ::= STATE literal */
350, /* (24) ip_range_list ::= NK_STRING */
350, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
351, /* (26) white_list ::= HOST ip_range_list */
352, /* (27) white_list_opt ::= */
352, /* (28) white_list_opt ::= white_list */
345, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
345, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
345, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
345, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
345, /* (33) cmd ::= ALTER USER user_name ADD white_list */
345, /* (34) cmd ::= ALTER USER user_name DROP white_list */
345, /* (35) cmd ::= DROP USER user_name */
354, /* (36) sysinfo_opt ::= */
354, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
345, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
345, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
355, /* (40) privileges ::= ALL */
355, /* (41) privileges ::= priv_type_list */
355, /* (42) privileges ::= SUBSCRIBE */
358, /* (43) priv_type_list ::= priv_type */
358, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
359, /* (45) priv_type ::= READ */
359, /* (46) priv_type ::= WRITE */
356, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */
356, /* (48) priv_level ::= db_name NK_DOT NK_STAR */
356, /* (49) priv_level ::= db_name NK_DOT table_name */
356, /* (50) priv_level ::= topic_name */
357, /* (51) with_opt ::= */
357, /* (52) with_opt ::= WITH search_condition */
345, /* (53) cmd ::= CREATE DNODE dnode_endpoint */
345, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
345, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */
345, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */
345, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
345, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
345, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
345, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
345, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */
345, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
345, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */
364, /* (64) dnode_endpoint ::= NK_STRING */
364, /* (65) dnode_endpoint ::= NK_ID */
364, /* (66) dnode_endpoint ::= NK_IPTOKEN */
365, /* (67) force_opt ::= */
365, /* (68) force_opt ::= FORCE */
366, /* (69) unsafe_opt ::= UNSAFE */
345, /* (70) cmd ::= ALTER LOCAL NK_STRING */
345, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
345, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
345, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
345, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
345, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
345, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
345, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
345, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
345, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
345, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
345, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
345, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
345, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
345, /* (84) cmd ::= DROP DATABASE exists_opt db_name */
345, /* (85) cmd ::= USE db_name */
345, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */
345, /* (87) cmd ::= FLUSH DATABASE db_name */
345, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */
345, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
367, /* (90) not_exists_opt ::= IF NOT EXISTS */
367, /* (91) not_exists_opt ::= */
369, /* (92) exists_opt ::= IF EXISTS */
369, /* (93) exists_opt ::= */
368, /* (94) db_options ::= */
368, /* (95) db_options ::= db_options BUFFER NK_INTEGER */
368, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */
368, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */
368, /* (98) db_options ::= db_options COMP NK_INTEGER */
368, /* (99) db_options ::= db_options DURATION NK_INTEGER */
368, /* (100) db_options ::= db_options DURATION NK_VARIABLE */
368, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */
368, /* (102) db_options ::= db_options MINROWS NK_INTEGER */
368, /* (103) db_options ::= db_options KEEP integer_list */
368, /* (104) db_options ::= db_options KEEP variable_list */
368, /* (105) db_options ::= db_options PAGES NK_INTEGER */
368, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */
368, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
368, /* (108) db_options ::= db_options PRECISION NK_STRING */
368, /* (109) db_options ::= db_options REPLICA NK_INTEGER */
368, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */
368, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
368, /* (112) db_options ::= db_options RETENTIONS retention_list */
368, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */
368, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */
368, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
368, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
368, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
368, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
368, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
368, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
368, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
368, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */
368, /* (123) db_options ::= db_options TABLE_PREFIX signed */
368, /* (124) db_options ::= db_options TABLE_SUFFIX signed */
368, /* (125) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
370, /* (126) alter_db_options ::= alter_db_option */
370, /* (127) alter_db_options ::= alter_db_options alter_db_option */
378, /* (128) alter_db_option ::= BUFFER NK_INTEGER */
378, /* (129) alter_db_option ::= CACHEMODEL NK_STRING */
378, /* (130) alter_db_option ::= CACHESIZE NK_INTEGER */
378, /* (131) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
378, /* (132) alter_db_option ::= KEEP integer_list */
378, /* (133) alter_db_option ::= KEEP variable_list */
378, /* (134) alter_db_option ::= PAGES NK_INTEGER */
378, /* (135) alter_db_option ::= REPLICA NK_INTEGER */
378, /* (136) alter_db_option ::= WAL_LEVEL NK_INTEGER */
378, /* (137) alter_db_option ::= STT_TRIGGER NK_INTEGER */
378, /* (138) alter_db_option ::= MINROWS NK_INTEGER */
378, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
378, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
378, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
378, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
378, /* (143) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
374, /* (144) integer_list ::= NK_INTEGER */
374, /* (145) integer_list ::= integer_list NK_COMMA NK_INTEGER */
375, /* (146) variable_list ::= NK_VARIABLE */
375, /* (147) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
376, /* (148) retention_list ::= retention */
376, /* (149) retention_list ::= retention_list NK_COMMA retention */
379, /* (150) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
379, /* (151) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
371, /* (152) speed_opt ::= */
371, /* (153) speed_opt ::= BWLIMIT NK_INTEGER */
372, /* (154) start_opt ::= */
372, /* (155) start_opt ::= START WITH NK_INTEGER */
372, /* (156) start_opt ::= START WITH NK_STRING */
372, /* (157) start_opt ::= START WITH TIMESTAMP NK_STRING */
373, /* (158) end_opt ::= */
373, /* (159) end_opt ::= END WITH NK_INTEGER */
373, /* (160) end_opt ::= END WITH NK_STRING */
373, /* (161) end_opt ::= END WITH TIMESTAMP NK_STRING */
345, /* (162) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
345, /* (163) cmd ::= CREATE TABLE multi_create_clause */
345, /* (164) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
345, /* (165) cmd ::= DROP TABLE multi_drop_clause */
345, /* (166) cmd ::= DROP STABLE exists_opt full_table_name */
345, /* (167) cmd ::= ALTER TABLE alter_table_clause */
345, /* (168) cmd ::= ALTER STABLE alter_table_clause */
387, /* (169) alter_table_clause ::= full_table_name alter_table_options */
387, /* (170) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
387, /* (171) alter_table_clause ::= full_table_name DROP COLUMN column_name */
387, /* (172) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
387, /* (173) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
387, /* (174) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
387, /* (175) alter_table_clause ::= full_table_name DROP TAG column_name */
387, /* (176) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
387, /* (177) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
387, /* (178) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
384, /* (179) multi_create_clause ::= create_subtable_clause */
384, /* (180) multi_create_clause ::= multi_create_clause create_subtable_clause */
392, /* (181) 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 */
386, /* (182) multi_drop_clause ::= drop_table_clause */
386, /* (183) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
395, /* (184) drop_table_clause ::= exists_opt full_table_name */
393, /* (185) specific_cols_opt ::= */
393, /* (186) specific_cols_opt ::= NK_LP col_name_list NK_RP */
380, /* (187) full_table_name ::= table_name */
380, /* (188) full_table_name ::= db_name NK_DOT table_name */
381, /* (189) column_def_list ::= column_def */
381, /* (190) column_def_list ::= column_def_list NK_COMMA column_def */
397, /* (191) column_def ::= column_name type_name */
390, /* (192) type_name ::= BOOL */
390, /* (193) type_name ::= TINYINT */
390, /* (194) type_name ::= SMALLINT */
390, /* (195) type_name ::= INT */
390, /* (196) type_name ::= INTEGER */
390, /* (197) type_name ::= BIGINT */
390, /* (198) type_name ::= FLOAT */
390, /* (199) type_name ::= DOUBLE */
390, /* (200) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
390, /* (201) type_name ::= TIMESTAMP */
390, /* (202) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
390, /* (203) type_name ::= TINYINT UNSIGNED */
390, /* (204) type_name ::= SMALLINT UNSIGNED */
390, /* (205) type_name ::= INT UNSIGNED */
390, /* (206) type_name ::= BIGINT UNSIGNED */
390, /* (207) type_name ::= JSON */
390, /* (208) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
390, /* (209) type_name ::= MEDIUMBLOB */
390, /* (210) type_name ::= BLOB */
390, /* (211) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
390, /* (212) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
390, /* (213) type_name ::= DECIMAL */
390, /* (214) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
390, /* (215) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
382, /* (216) tags_def_opt ::= */
382, /* (217) tags_def_opt ::= tags_def */
385, /* (218) tags_def ::= TAGS NK_LP column_def_list NK_RP */
383, /* (219) table_options ::= */
383, /* (220) table_options ::= table_options COMMENT NK_STRING */
383, /* (221) table_options ::= table_options MAX_DELAY duration_list */
383, /* (222) table_options ::= table_options WATERMARK duration_list */
383, /* (223) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
383, /* (224) table_options ::= table_options TTL NK_INTEGER */
383, /* (225) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
383, /* (226) table_options ::= table_options DELETE_MARK duration_list */
388, /* (227) alter_table_options ::= alter_table_option */
388, /* (228) alter_table_options ::= alter_table_options alter_table_option */
400, /* (229) alter_table_option ::= COMMENT NK_STRING */
400, /* (230) alter_table_option ::= TTL NK_INTEGER */
398, /* (231) duration_list ::= duration_literal */
398, /* (232) duration_list ::= duration_list NK_COMMA duration_literal */
399, /* (233) rollup_func_list ::= rollup_func_name */
399, /* (234) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
402, /* (235) rollup_func_name ::= function_name */
402, /* (236) rollup_func_name ::= FIRST */
402, /* (237) rollup_func_name ::= LAST */
396, /* (238) col_name_list ::= col_name */
396, /* (239) col_name_list ::= col_name_list NK_COMMA col_name */
404, /* (240) col_name ::= column_name */
345, /* (241) cmd ::= SHOW DNODES */
345, /* (242) cmd ::= SHOW USERS */
345, /* (243) cmd ::= SHOW USER PRIVILEGES */
345, /* (244) cmd ::= SHOW db_kind_opt DATABASES */
345, /* (245) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
345, /* (246) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
345, /* (247) cmd ::= SHOW db_name_cond_opt VGROUPS */
345, /* (248) cmd ::= SHOW MNODES */
345, /* (249) cmd ::= SHOW QNODES */
345, /* (250) cmd ::= SHOW FUNCTIONS */
345, /* (251) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
345, /* (252) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
345, /* (253) cmd ::= SHOW STREAMS */
345, /* (254) cmd ::= SHOW ACCOUNTS */
345, /* (255) cmd ::= SHOW APPS */
345, /* (256) cmd ::= SHOW CONNECTIONS */
345, /* (257) cmd ::= SHOW LICENCES */
345, /* (258) cmd ::= SHOW GRANTS */
345, /* (259) cmd ::= SHOW CREATE DATABASE db_name */
345, /* (260) cmd ::= SHOW CREATE TABLE full_table_name */
345, /* (261) cmd ::= SHOW CREATE STABLE full_table_name */
345, /* (262) cmd ::= SHOW QUERIES */
345, /* (263) cmd ::= SHOW SCORES */
345, /* (264) cmd ::= SHOW TOPICS */
345, /* (265) cmd ::= SHOW VARIABLES */
345, /* (266) cmd ::= SHOW CLUSTER VARIABLES */
345, /* (267) cmd ::= SHOW LOCAL VARIABLES */
345, /* (268) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
345, /* (269) cmd ::= SHOW BNODES */
345, /* (270) cmd ::= SHOW SNODES */
345, /* (271) cmd ::= SHOW CLUSTER */
345, /* (272) cmd ::= SHOW TRANSACTIONS */
345, /* (273) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
345, /* (274) cmd ::= SHOW CONSUMERS */
345, /* (275) cmd ::= SHOW SUBSCRIPTIONS */
345, /* (276) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
345, /* (277) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
345, /* (278) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
345, /* (279) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
345, /* (280) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
345, /* (281) cmd ::= SHOW VNODES */
345, /* (282) cmd ::= SHOW db_name_cond_opt ALIVE */
345, /* (283) cmd ::= SHOW CLUSTER ALIVE */
406, /* (284) table_kind_db_name_cond_opt ::= */
406, /* (285) table_kind_db_name_cond_opt ::= table_kind */
406, /* (286) table_kind_db_name_cond_opt ::= db_name NK_DOT */
406, /* (287) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
412, /* (288) table_kind ::= NORMAL */
412, /* (289) table_kind ::= CHILD */
408, /* (290) db_name_cond_opt ::= */
408, /* (291) db_name_cond_opt ::= db_name NK_DOT */
407, /* (292) like_pattern_opt ::= */
407, /* (293) like_pattern_opt ::= LIKE NK_STRING */
409, /* (294) table_name_cond ::= table_name */
410, /* (295) from_db_opt ::= */
410, /* (296) from_db_opt ::= FROM db_name */
411, /* (297) tag_list_opt ::= */
411, /* (298) tag_list_opt ::= tag_item */
411, /* (299) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
413, /* (300) tag_item ::= TBNAME */
413, /* (301) tag_item ::= QTAGS */
413, /* (302) tag_item ::= column_name */
413, /* (303) tag_item ::= column_name column_alias */
413, /* (304) tag_item ::= column_name AS column_alias */
405, /* (305) db_kind_opt ::= */
405, /* (306) db_kind_opt ::= USER */
405, /* (307) db_kind_opt ::= SYSTEM */
345, /* (308) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
345, /* (309) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
345, /* (310) cmd ::= DROP INDEX exists_opt full_index_name */
416, /* (311) full_index_name ::= index_name */
416, /* (312) full_index_name ::= db_name NK_DOT index_name */
415, /* (313) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
415, /* (314) 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 */
418, /* (315) func_list ::= func */
418, /* (316) func_list ::= func_list NK_COMMA func */
421, /* (317) func ::= sma_func_name NK_LP expression_list NK_RP */
422, /* (318) sma_func_name ::= function_name */
422, /* (319) sma_func_name ::= COUNT */
422, /* (320) sma_func_name ::= FIRST */
422, /* (321) sma_func_name ::= LAST */
422, /* (322) sma_func_name ::= LAST_ROW */
420, /* (323) sma_stream_opt ::= */
420, /* (324) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
420, /* (325) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
420, /* (326) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
423, /* (327) with_meta ::= AS */
423, /* (328) with_meta ::= WITH META AS */
423, /* (329) with_meta ::= ONLY META AS */
345, /* (330) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
345, /* (331) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
345, /* (332) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
345, /* (333) cmd ::= DROP TOPIC exists_opt topic_name */
345, /* (334) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
345, /* (335) cmd ::= DESC full_table_name */
345, /* (336) cmd ::= DESCRIBE full_table_name */
345, /* (337) cmd ::= RESET QUERY CACHE */
345, /* (338) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
345, /* (339) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
427, /* (340) analyze_opt ::= */
427, /* (341) analyze_opt ::= ANALYZE */
428, /* (342) explain_options ::= */
428, /* (343) explain_options ::= explain_options VERBOSE NK_BOOL */
428, /* (344) explain_options ::= explain_options RATIO NK_FLOAT */
345, /* (345) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
345, /* (346) cmd ::= DROP FUNCTION exists_opt function_name */
431, /* (347) agg_func_opt ::= */
431, /* (348) agg_func_opt ::= AGGREGATE */
432, /* (349) bufsize_opt ::= */
432, /* (350) bufsize_opt ::= BUFSIZE NK_INTEGER */
433, /* (351) language_opt ::= */
433, /* (352) language_opt ::= LANGUAGE NK_STRING */
430, /* (353) or_replace_opt ::= */
430, /* (354) or_replace_opt ::= OR REPLACE */
345, /* (355) 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 */
345, /* (356) cmd ::= DROP STREAM exists_opt stream_name */
345, /* (357) cmd ::= PAUSE STREAM exists_opt stream_name */
345, /* (358) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
436, /* (359) col_list_opt ::= */
436, /* (360) col_list_opt ::= NK_LP col_name_list NK_RP */
437, /* (361) tag_def_or_ref_opt ::= */
437, /* (362) tag_def_or_ref_opt ::= tags_def */
437, /* (363) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
435, /* (364) stream_options ::= */
435, /* (365) stream_options ::= stream_options TRIGGER AT_ONCE */
435, /* (366) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
435, /* (367) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
435, /* (368) stream_options ::= stream_options WATERMARK duration_literal */
435, /* (369) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
435, /* (370) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
435, /* (371) stream_options ::= stream_options DELETE_MARK duration_literal */
435, /* (372) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
438, /* (373) subtable_opt ::= */
438, /* (374) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
439, /* (375) ignore_opt ::= */
439, /* (376) ignore_opt ::= IGNORE UNTREATED */
345, /* (377) cmd ::= KILL CONNECTION NK_INTEGER */
345, /* (378) cmd ::= KILL QUERY NK_STRING */
345, /* (379) cmd ::= KILL TRANSACTION NK_INTEGER */
345, /* (380) cmd ::= BALANCE VGROUP */
345, /* (381) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
345, /* (382) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
345, /* (383) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
345, /* (384) cmd ::= SPLIT VGROUP NK_INTEGER */
441, /* (385) on_vgroup_id ::= */
441, /* (386) on_vgroup_id ::= ON NK_INTEGER */
442, /* (387) dnode_list ::= DNODE NK_INTEGER */
442, /* (388) dnode_list ::= dnode_list DNODE NK_INTEGER */
345, /* (389) cmd ::= DELETE FROM full_table_name where_clause_opt */
345, /* (390) cmd ::= query_or_subquery */
345, /* (391) cmd ::= insert_query */
429, /* (392) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
429, /* (393) insert_query ::= INSERT INTO full_table_name query_or_subquery */
348, /* (394) literal ::= NK_INTEGER */
348, /* (395) literal ::= NK_FLOAT */
348, /* (396) literal ::= NK_STRING */
348, /* (397) literal ::= NK_BOOL */
348, /* (398) literal ::= TIMESTAMP NK_STRING */
348, /* (399) literal ::= duration_literal */
348, /* (400) literal ::= NULL */
348, /* (401) literal ::= NK_QUESTION */
401, /* (402) duration_literal ::= NK_VARIABLE */
377, /* (403) signed ::= NK_INTEGER */
377, /* (404) signed ::= NK_PLUS NK_INTEGER */
377, /* (405) signed ::= NK_MINUS NK_INTEGER */
377, /* (406) signed ::= NK_FLOAT */
377, /* (407) signed ::= NK_PLUS NK_FLOAT */
377, /* (408) signed ::= NK_MINUS NK_FLOAT */
391, /* (409) signed_literal ::= signed */
391, /* (410) signed_literal ::= NK_STRING */
391, /* (411) signed_literal ::= NK_BOOL */
391, /* (412) signed_literal ::= TIMESTAMP NK_STRING */
391, /* (413) signed_literal ::= duration_literal */
391, /* (414) signed_literal ::= NULL */
391, /* (415) signed_literal ::= literal_func */
391, /* (416) signed_literal ::= NK_QUESTION */
444, /* (417) literal_list ::= signed_literal */
444, /* (418) literal_list ::= literal_list NK_COMMA signed_literal */
360, /* (419) db_name ::= NK_ID */
361, /* (420) table_name ::= NK_ID */
389, /* (421) column_name ::= NK_ID */
403, /* (422) function_name ::= NK_ID */
445, /* (423) table_alias ::= NK_ID */
414, /* (424) column_alias ::= NK_ID */
414, /* (425) column_alias ::= NK_ALIAS */
353, /* (426) user_name ::= NK_ID */
362, /* (427) topic_name ::= NK_ID */
434, /* (428) stream_name ::= NK_ID */
426, /* (429) cgroup_name ::= NK_ID */
417, /* (430) index_name ::= NK_ID */
446, /* (431) expr_or_subquery ::= expression */
440, /* (432) expression ::= literal */
440, /* (433) expression ::= pseudo_column */
440, /* (434) expression ::= column_reference */
440, /* (435) expression ::= function_expression */
440, /* (436) expression ::= case_when_expression */
440, /* (437) expression ::= NK_LP expression NK_RP */
440, /* (438) expression ::= NK_PLUS expr_or_subquery */
440, /* (439) expression ::= NK_MINUS expr_or_subquery */
440, /* (440) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
440, /* (441) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
440, /* (442) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
440, /* (443) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
440, /* (444) expression ::= expr_or_subquery NK_REM expr_or_subquery */
440, /* (445) expression ::= column_reference NK_ARROW NK_STRING */
440, /* (446) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
440, /* (447) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
394, /* (448) expression_list ::= expr_or_subquery */
394, /* (449) expression_list ::= expression_list NK_COMMA expr_or_subquery */
448, /* (450) column_reference ::= column_name */
448, /* (451) column_reference ::= table_name NK_DOT column_name */
448, /* (452) column_reference ::= NK_ALIAS */
448, /* (453) column_reference ::= table_name NK_DOT NK_ALIAS */
447, /* (454) pseudo_column ::= ROWTS */
447, /* (455) pseudo_column ::= TBNAME */
447, /* (456) pseudo_column ::= table_name NK_DOT TBNAME */
447, /* (457) pseudo_column ::= QSTART */
447, /* (458) pseudo_column ::= QEND */
447, /* (459) pseudo_column ::= QDURATION */
447, /* (460) pseudo_column ::= WSTART */
447, /* (461) pseudo_column ::= WEND */
447, /* (462) pseudo_column ::= WDURATION */
447, /* (463) pseudo_column ::= IROWTS */
447, /* (464) pseudo_column ::= ISFILLED */
447, /* (465) pseudo_column ::= QTAGS */
449, /* (466) function_expression ::= function_name NK_LP expression_list NK_RP */
449, /* (467) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
449, /* (468) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
449, /* (469) function_expression ::= literal_func */
443, /* (470) literal_func ::= noarg_func NK_LP NK_RP */
443, /* (471) literal_func ::= NOW */
453, /* (472) noarg_func ::= NOW */
453, /* (473) noarg_func ::= TODAY */
453, /* (474) noarg_func ::= TIMEZONE */
453, /* (475) noarg_func ::= DATABASE */
453, /* (476) noarg_func ::= CLIENT_VERSION */
453, /* (477) noarg_func ::= SERVER_VERSION */
453, /* (478) noarg_func ::= SERVER_STATUS */
453, /* (479) noarg_func ::= CURRENT_USER */
453, /* (480) noarg_func ::= USER */
451, /* (481) star_func ::= COUNT */
451, /* (482) star_func ::= FIRST */
451, /* (483) star_func ::= LAST */
451, /* (484) star_func ::= LAST_ROW */
452, /* (485) star_func_para_list ::= NK_STAR */
452, /* (486) star_func_para_list ::= other_para_list */
454, /* (487) other_para_list ::= star_func_para */
454, /* (488) other_para_list ::= other_para_list NK_COMMA star_func_para */
455, /* (489) star_func_para ::= expr_or_subquery */
455, /* (490) star_func_para ::= table_name NK_DOT NK_STAR */
450, /* (491) case_when_expression ::= CASE when_then_list case_when_else_opt END */
450, /* (492) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
456, /* (493) when_then_list ::= when_then_expr */
456, /* (494) when_then_list ::= when_then_list when_then_expr */
459, /* (495) when_then_expr ::= WHEN common_expression THEN common_expression */
457, /* (496) case_when_else_opt ::= */
457, /* (497) case_when_else_opt ::= ELSE common_expression */
460, /* (498) predicate ::= expr_or_subquery compare_op expr_or_subquery */
460, /* (499) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
460, /* (500) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
460, /* (501) predicate ::= expr_or_subquery IS NULL */
460, /* (502) predicate ::= expr_or_subquery IS NOT NULL */
460, /* (503) predicate ::= expr_or_subquery in_op in_predicate_value */
461, /* (504) compare_op ::= NK_LT */
461, /* (505) compare_op ::= NK_GT */
461, /* (506) compare_op ::= NK_LE */
461, /* (507) compare_op ::= NK_GE */
461, /* (508) compare_op ::= NK_NE */
461, /* (509) compare_op ::= NK_EQ */
461, /* (510) compare_op ::= LIKE */
461, /* (511) compare_op ::= NOT LIKE */
461, /* (512) compare_op ::= MATCH */
461, /* (513) compare_op ::= NMATCH */
461, /* (514) compare_op ::= CONTAINS */
462, /* (515) in_op ::= IN */
462, /* (516) in_op ::= NOT IN */
463, /* (517) in_predicate_value ::= NK_LP literal_list NK_RP */
464, /* (518) boolean_value_expression ::= boolean_primary */
464, /* (519) boolean_value_expression ::= NOT boolean_primary */
464, /* (520) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
464, /* (521) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
465, /* (522) boolean_primary ::= predicate */
465, /* (523) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
458, /* (524) common_expression ::= expr_or_subquery */
458, /* (525) common_expression ::= boolean_value_expression */
466, /* (526) from_clause_opt ::= */
466, /* (527) from_clause_opt ::= FROM table_reference_list */
467, /* (528) table_reference_list ::= table_reference */
467, /* (529) table_reference_list ::= table_reference_list NK_COMMA table_reference */
468, /* (530) table_reference ::= table_primary */
468, /* (531) table_reference ::= joined_table */
469, /* (532) table_primary ::= table_name alias_opt */
469, /* (533) table_primary ::= db_name NK_DOT table_name alias_opt */
469, /* (534) table_primary ::= subquery alias_opt */
469, /* (535) table_primary ::= parenthesized_joined_table */
471, /* (536) alias_opt ::= */
471, /* (537) alias_opt ::= table_alias */
471, /* (538) alias_opt ::= AS table_alias */
473, /* (539) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
473, /* (540) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
470, /* (541) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
474, /* (542) join_type ::= */
474, /* (543) join_type ::= INNER */
475, /* (544) 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 */
476, /* (545) hint_list ::= */
476, /* (546) hint_list ::= NK_HINT */
478, /* (547) tag_mode_opt ::= */
478, /* (548) tag_mode_opt ::= TAGS */
477, /* (549) set_quantifier_opt ::= */
477, /* (550) set_quantifier_opt ::= DISTINCT */
477, /* (551) set_quantifier_opt ::= ALL */
479, /* (552) select_list ::= select_item */
479, /* (553) select_list ::= select_list NK_COMMA select_item */
487, /* (554) select_item ::= NK_STAR */
487, /* (555) select_item ::= common_expression */
487, /* (556) select_item ::= common_expression column_alias */
487, /* (557) select_item ::= common_expression AS column_alias */
487, /* (558) select_item ::= table_name NK_DOT NK_STAR */
425, /* (559) where_clause_opt ::= */
425, /* (560) where_clause_opt ::= WHERE search_condition */
480, /* (561) partition_by_clause_opt ::= */
480, /* (562) partition_by_clause_opt ::= PARTITION BY partition_list */
488, /* (563) partition_list ::= partition_item */
488, /* (564) partition_list ::= partition_list NK_COMMA partition_item */
489, /* (565) partition_item ::= expr_or_subquery */
489, /* (566) partition_item ::= expr_or_subquery column_alias */
489, /* (567) partition_item ::= expr_or_subquery AS column_alias */
484, /* (568) twindow_clause_opt ::= */
484, /* (569) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
484, /* (570) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
484, /* (571) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
484, /* (572) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
484, /* (573) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
419, /* (574) sliding_opt ::= */
419, /* (575) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
490, /* (576) interval_sliding_duration_literal ::= NK_VARIABLE */
490, /* (577) interval_sliding_duration_literal ::= NK_STRING */
490, /* (578) interval_sliding_duration_literal ::= NK_INTEGER */
483, /* (579) fill_opt ::= */
483, /* (580) fill_opt ::= FILL NK_LP fill_mode NK_RP */
483, /* (581) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
483, /* (582) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
491, /* (583) fill_mode ::= NONE */
491, /* (584) fill_mode ::= PREV */
491, /* (585) fill_mode ::= NULL */
491, /* (586) fill_mode ::= NULL_F */
491, /* (587) fill_mode ::= LINEAR */
491, /* (588) fill_mode ::= NEXT */
485, /* (589) group_by_clause_opt ::= */
485, /* (590) group_by_clause_opt ::= GROUP BY group_by_list */
492, /* (591) group_by_list ::= expr_or_subquery */
492, /* (592) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
486, /* (593) having_clause_opt ::= */
486, /* (594) having_clause_opt ::= HAVING search_condition */
481, /* (595) range_opt ::= */
481, /* (596) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
481, /* (597) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
482, /* (598) every_opt ::= */
482, /* (599) every_opt ::= EVERY NK_LP duration_literal NK_RP */
493, /* (600) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
494, /* (601) query_simple ::= query_specification */
494, /* (602) query_simple ::= union_query_expression */
498, /* (603) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
498, /* (604) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
499, /* (605) query_simple_or_subquery ::= query_simple */
499, /* (606) query_simple_or_subquery ::= subquery */
424, /* (607) query_or_subquery ::= query_expression */
424, /* (608) query_or_subquery ::= subquery */
495, /* (609) order_by_clause_opt ::= */
495, /* (610) order_by_clause_opt ::= ORDER BY sort_specification_list */
496, /* (611) slimit_clause_opt ::= */
496, /* (612) slimit_clause_opt ::= SLIMIT NK_INTEGER */
496, /* (613) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
496, /* (614) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
497, /* (615) limit_clause_opt ::= */
497, /* (616) limit_clause_opt ::= LIMIT NK_INTEGER */
497, /* (617) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
497, /* (618) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
472, /* (619) subquery ::= NK_LP query_expression NK_RP */
472, /* (620) subquery ::= NK_LP subquery NK_RP */
363, /* (621) search_condition ::= common_expression */
500, /* (622) sort_specification_list ::= sort_specification */
500, /* (623) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
501, /* (624) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
502, /* (625) ordering_specification_opt ::= */
502, /* (626) ordering_specification_opt ::= ASC */
502, /* (627) ordering_specification_opt ::= DESC */
503, /* (628) null_ordering_opt ::= */
503, /* (629) null_ordering_opt ::= NULLS FIRST */
503, /* (630) null_ordering_opt ::= NULLS LAST */
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static const signed char yyRuleInfoNRhs[] = {
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
0, /* (2) account_options ::= */
-3, /* (3) account_options ::= account_options PPS literal */
-3, /* (4) account_options ::= account_options TSERIES literal */
-3, /* (5) account_options ::= account_options STORAGE literal */
-3, /* (6) account_options ::= account_options STREAMS literal */
-3, /* (7) account_options ::= account_options QTIME literal */
-3, /* (8) account_options ::= account_options DBS literal */
-3, /* (9) account_options ::= account_options USERS literal */
-3, /* (10) account_options ::= account_options CONNS literal */
-3, /* (11) account_options ::= account_options STATE literal */
-1, /* (12) alter_account_options ::= alter_account_option */
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
-2, /* (14) alter_account_option ::= PASS literal */
-2, /* (15) alter_account_option ::= PPS literal */
-2, /* (16) alter_account_option ::= TSERIES literal */
-2, /* (17) alter_account_option ::= STORAGE literal */
-2, /* (18) alter_account_option ::= STREAMS literal */
-2, /* (19) alter_account_option ::= QTIME literal */
-2, /* (20) alter_account_option ::= DBS literal */
-2, /* (21) alter_account_option ::= USERS literal */
-2, /* (22) alter_account_option ::= CONNS literal */
-2, /* (23) alter_account_option ::= STATE literal */
-1, /* (24) ip_range_list ::= NK_STRING */
-3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
-2, /* (26) white_list ::= HOST ip_range_list */
0, /* (27) white_list_opt ::= */
-1, /* (28) white_list_opt ::= white_list */
-7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
-5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
-5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
-5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
-5, /* (33) cmd ::= ALTER USER user_name ADD white_list */
-5, /* (34) cmd ::= ALTER USER user_name DROP white_list */
-3, /* (35) cmd ::= DROP USER user_name */
0, /* (36) sysinfo_opt ::= */
-2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
-7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
-7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
-1, /* (40) privileges ::= ALL */
-1, /* (41) privileges ::= priv_type_list */
-1, /* (42) privileges ::= SUBSCRIBE */
-1, /* (43) priv_type_list ::= priv_type */
-3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
-1, /* (45) priv_type ::= READ */
-1, /* (46) priv_type ::= WRITE */
-3, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */
-3, /* (48) priv_level ::= db_name NK_DOT NK_STAR */
-3, /* (49) priv_level ::= db_name NK_DOT table_name */
-1, /* (50) priv_level ::= topic_name */
0, /* (51) with_opt ::= */
-2, /* (52) with_opt ::= WITH search_condition */
-3, /* (53) cmd ::= CREATE DNODE dnode_endpoint */
-5, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
-4, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */
-4, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */
-4, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
-4, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
-4, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
-5, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
-4, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */
-5, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
-3, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */
-1, /* (64) dnode_endpoint ::= NK_STRING */
-1, /* (65) dnode_endpoint ::= NK_ID */
-1, /* (66) dnode_endpoint ::= NK_IPTOKEN */
0, /* (67) force_opt ::= */
-1, /* (68) force_opt ::= FORCE */
-1, /* (69) unsafe_opt ::= UNSAFE */
-3, /* (70) cmd ::= ALTER LOCAL NK_STRING */
-4, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
-5, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
-5, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
-5, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
-5, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
-5, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
-5, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
-5, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
-5, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
-5, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
-5, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
-5, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
-5, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
-4, /* (84) cmd ::= DROP DATABASE exists_opt db_name */
-2, /* (85) cmd ::= USE db_name */
-4, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */
-3, /* (87) cmd ::= FLUSH DATABASE db_name */
-4, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */
-5, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
-3, /* (90) not_exists_opt ::= IF NOT EXISTS */
0, /* (91) not_exists_opt ::= */
-2, /* (92) exists_opt ::= IF EXISTS */
0, /* (93) exists_opt ::= */
0, /* (94) db_options ::= */
-3, /* (95) db_options ::= db_options BUFFER NK_INTEGER */
-3, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */
-3, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */
-3, /* (98) db_options ::= db_options COMP NK_INTEGER */
-3, /* (99) db_options ::= db_options DURATION NK_INTEGER */
-3, /* (100) db_options ::= db_options DURATION NK_VARIABLE */
-3, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */
-3, /* (102) db_options ::= db_options MINROWS NK_INTEGER */
-3, /* (103) db_options ::= db_options KEEP integer_list */
-3, /* (104) db_options ::= db_options KEEP variable_list */
-3, /* (105) db_options ::= db_options PAGES NK_INTEGER */
-3, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */
-3, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
-3, /* (108) db_options ::= db_options PRECISION NK_STRING */
-3, /* (109) db_options ::= db_options REPLICA NK_INTEGER */
-3, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */
-3, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
-3, /* (112) db_options ::= db_options RETENTIONS retention_list */
-3, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */
-3, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */
-3, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
-3, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
-4, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-3, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
-4, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-3, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
-3, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
-3, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */
-3, /* (123) db_options ::= db_options TABLE_PREFIX signed */
-3, /* (124) db_options ::= db_options TABLE_SUFFIX signed */
-3, /* (125) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (126) alter_db_options ::= alter_db_option */
-2, /* (127) alter_db_options ::= alter_db_options alter_db_option */
-2, /* (128) alter_db_option ::= BUFFER NK_INTEGER */
-2, /* (129) alter_db_option ::= CACHEMODEL NK_STRING */
-2, /* (130) alter_db_option ::= CACHESIZE NK_INTEGER */
-2, /* (131) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
-2, /* (132) alter_db_option ::= KEEP integer_list */
-2, /* (133) alter_db_option ::= KEEP variable_list */
-2, /* (134) alter_db_option ::= PAGES NK_INTEGER */
-2, /* (135) alter_db_option ::= REPLICA NK_INTEGER */
-2, /* (136) alter_db_option ::= WAL_LEVEL NK_INTEGER */
-2, /* (137) alter_db_option ::= STT_TRIGGER NK_INTEGER */
-2, /* (138) alter_db_option ::= MINROWS NK_INTEGER */
-2, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
-3, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-2, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
-3, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-2, /* (143) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (144) integer_list ::= NK_INTEGER */
-3, /* (145) integer_list ::= integer_list NK_COMMA NK_INTEGER */
-1, /* (146) variable_list ::= NK_VARIABLE */
-3, /* (147) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
-1, /* (148) retention_list ::= retention */
-3, /* (149) retention_list ::= retention_list NK_COMMA retention */
-3, /* (150) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
-3, /* (151) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
0, /* (152) speed_opt ::= */
-2, /* (153) speed_opt ::= BWLIMIT NK_INTEGER */
0, /* (154) start_opt ::= */
-3, /* (155) start_opt ::= START WITH NK_INTEGER */
-3, /* (156) start_opt ::= START WITH NK_STRING */
-4, /* (157) start_opt ::= START WITH TIMESTAMP NK_STRING */
0, /* (158) end_opt ::= */
-3, /* (159) end_opt ::= END WITH NK_INTEGER */
-3, /* (160) end_opt ::= END WITH NK_STRING */
-4, /* (161) end_opt ::= END WITH TIMESTAMP NK_STRING */
-9, /* (162) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
-3, /* (163) cmd ::= CREATE TABLE multi_create_clause */
-9, /* (164) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
-3, /* (165) cmd ::= DROP TABLE multi_drop_clause */
-4, /* (166) cmd ::= DROP STABLE exists_opt full_table_name */
-3, /* (167) cmd ::= ALTER TABLE alter_table_clause */
-3, /* (168) cmd ::= ALTER STABLE alter_table_clause */
-2, /* (169) alter_table_clause ::= full_table_name alter_table_options */
-5, /* (170) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
-4, /* (171) alter_table_clause ::= full_table_name DROP COLUMN column_name */
-5, /* (172) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
-5, /* (173) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-5, /* (174) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-4, /* (175) alter_table_clause ::= full_table_name DROP TAG column_name */
-5, /* (176) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-5, /* (177) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
-6, /* (178) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
-1, /* (179) multi_create_clause ::= create_subtable_clause */
-2, /* (180) multi_create_clause ::= multi_create_clause create_subtable_clause */
-10, /* (181) 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, /* (182) multi_drop_clause ::= drop_table_clause */
-3, /* (183) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
-2, /* (184) drop_table_clause ::= exists_opt full_table_name */
0, /* (185) specific_cols_opt ::= */
-3, /* (186) specific_cols_opt ::= NK_LP col_name_list NK_RP */
-1, /* (187) full_table_name ::= table_name */
-3, /* (188) full_table_name ::= db_name NK_DOT table_name */
-1, /* (189) column_def_list ::= column_def */
-3, /* (190) column_def_list ::= column_def_list NK_COMMA column_def */
-2, /* (191) column_def ::= column_name type_name */
-1, /* (192) type_name ::= BOOL */
-1, /* (193) type_name ::= TINYINT */
-1, /* (194) type_name ::= SMALLINT */
-1, /* (195) type_name ::= INT */
-1, /* (196) type_name ::= INTEGER */
-1, /* (197) type_name ::= BIGINT */
-1, /* (198) type_name ::= FLOAT */
-1, /* (199) type_name ::= DOUBLE */
-4, /* (200) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-1, /* (201) type_name ::= TIMESTAMP */
-4, /* (202) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-2, /* (203) type_name ::= TINYINT UNSIGNED */
-2, /* (204) type_name ::= SMALLINT UNSIGNED */
-2, /* (205) type_name ::= INT UNSIGNED */
-2, /* (206) type_name ::= BIGINT UNSIGNED */
-1, /* (207) type_name ::= JSON */
-4, /* (208) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-1, /* (209) type_name ::= MEDIUMBLOB */
-1, /* (210) type_name ::= BLOB */
-4, /* (211) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-4, /* (212) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
-1, /* (213) type_name ::= DECIMAL */
-4, /* (214) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-6, /* (215) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (216) tags_def_opt ::= */
-1, /* (217) tags_def_opt ::= tags_def */
-4, /* (218) tags_def ::= TAGS NK_LP column_def_list NK_RP */
0, /* (219) table_options ::= */
-3, /* (220) table_options ::= table_options COMMENT NK_STRING */
-3, /* (221) table_options ::= table_options MAX_DELAY duration_list */
-3, /* (222) table_options ::= table_options WATERMARK duration_list */
-5, /* (223) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
-3, /* (224) table_options ::= table_options TTL NK_INTEGER */
-5, /* (225) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-3, /* (226) table_options ::= table_options DELETE_MARK duration_list */
-1, /* (227) alter_table_options ::= alter_table_option */
-2, /* (228) alter_table_options ::= alter_table_options alter_table_option */
-2, /* (229) alter_table_option ::= COMMENT NK_STRING */
-2, /* (230) alter_table_option ::= TTL NK_INTEGER */
-1, /* (231) duration_list ::= duration_literal */
-3, /* (232) duration_list ::= duration_list NK_COMMA duration_literal */
-1, /* (233) rollup_func_list ::= rollup_func_name */
-3, /* (234) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
-1, /* (235) rollup_func_name ::= function_name */
-1, /* (236) rollup_func_name ::= FIRST */
-1, /* (237) rollup_func_name ::= LAST */
-1, /* (238) col_name_list ::= col_name */
-3, /* (239) col_name_list ::= col_name_list NK_COMMA col_name */
-1, /* (240) col_name ::= column_name */
-2, /* (241) cmd ::= SHOW DNODES */
-2, /* (242) cmd ::= SHOW USERS */
-3, /* (243) cmd ::= SHOW USER PRIVILEGES */
-3, /* (244) cmd ::= SHOW db_kind_opt DATABASES */
-4, /* (245) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
-4, /* (246) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-3, /* (247) cmd ::= SHOW db_name_cond_opt VGROUPS */
-2, /* (248) cmd ::= SHOW MNODES */
-2, /* (249) cmd ::= SHOW QNODES */
-2, /* (250) cmd ::= SHOW FUNCTIONS */
-5, /* (251) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-6, /* (252) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
-2, /* (253) cmd ::= SHOW STREAMS */
-2, /* (254) cmd ::= SHOW ACCOUNTS */
-2, /* (255) cmd ::= SHOW APPS */
-2, /* (256) cmd ::= SHOW CONNECTIONS */
-2, /* (257) cmd ::= SHOW LICENCES */
-2, /* (258) cmd ::= SHOW GRANTS */
-4, /* (259) cmd ::= SHOW CREATE DATABASE db_name */
-4, /* (260) cmd ::= SHOW CREATE TABLE full_table_name */
-4, /* (261) cmd ::= SHOW CREATE STABLE full_table_name */
-2, /* (262) cmd ::= SHOW QUERIES */
-2, /* (263) cmd ::= SHOW SCORES */
-2, /* (264) cmd ::= SHOW TOPICS */
-2, /* (265) cmd ::= SHOW VARIABLES */
-3, /* (266) cmd ::= SHOW CLUSTER VARIABLES */
-3, /* (267) cmd ::= SHOW LOCAL VARIABLES */
-5, /* (268) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
-2, /* (269) cmd ::= SHOW BNODES */
-2, /* (270) cmd ::= SHOW SNODES */
-2, /* (271) cmd ::= SHOW CLUSTER */
-2, /* (272) cmd ::= SHOW TRANSACTIONS */
-4, /* (273) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
-2, /* (274) cmd ::= SHOW CONSUMERS */
-2, /* (275) cmd ::= SHOW SUBSCRIPTIONS */
-5, /* (276) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
-6, /* (277) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
-7, /* (278) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
-8, /* (279) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
-5, /* (280) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
-2, /* (281) cmd ::= SHOW VNODES */
-3, /* (282) cmd ::= SHOW db_name_cond_opt ALIVE */
-3, /* (283) cmd ::= SHOW CLUSTER ALIVE */
0, /* (284) table_kind_db_name_cond_opt ::= */
-1, /* (285) table_kind_db_name_cond_opt ::= table_kind */
-2, /* (286) table_kind_db_name_cond_opt ::= db_name NK_DOT */
-3, /* (287) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
-1, /* (288) table_kind ::= NORMAL */
-1, /* (289) table_kind ::= CHILD */
0, /* (290) db_name_cond_opt ::= */
-2, /* (291) db_name_cond_opt ::= db_name NK_DOT */
0, /* (292) like_pattern_opt ::= */
-2, /* (293) like_pattern_opt ::= LIKE NK_STRING */
-1, /* (294) table_name_cond ::= table_name */
0, /* (295) from_db_opt ::= */
-2, /* (296) from_db_opt ::= FROM db_name */
0, /* (297) tag_list_opt ::= */
-1, /* (298) tag_list_opt ::= tag_item */
-3, /* (299) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
-1, /* (300) tag_item ::= TBNAME */
-1, /* (301) tag_item ::= QTAGS */
-1, /* (302) tag_item ::= column_name */
-2, /* (303) tag_item ::= column_name column_alias */
-3, /* (304) tag_item ::= column_name AS column_alias */
0, /* (305) db_kind_opt ::= */
-1, /* (306) db_kind_opt ::= USER */
-1, /* (307) db_kind_opt ::= SYSTEM */
-8, /* (308) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
-9, /* (309) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
-4, /* (310) cmd ::= DROP INDEX exists_opt full_index_name */
-1, /* (311) full_index_name ::= index_name */
-3, /* (312) full_index_name ::= db_name NK_DOT index_name */
-10, /* (313) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
-12, /* (314) 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, /* (315) func_list ::= func */
-3, /* (316) func_list ::= func_list NK_COMMA func */
-4, /* (317) func ::= sma_func_name NK_LP expression_list NK_RP */
-1, /* (318) sma_func_name ::= function_name */
-1, /* (319) sma_func_name ::= COUNT */
-1, /* (320) sma_func_name ::= FIRST */
-1, /* (321) sma_func_name ::= LAST */
-1, /* (322) sma_func_name ::= LAST_ROW */
0, /* (323) sma_stream_opt ::= */
-3, /* (324) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
-3, /* (325) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
-3, /* (326) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
-1, /* (327) with_meta ::= AS */
-3, /* (328) with_meta ::= WITH META AS */
-3, /* (329) with_meta ::= ONLY META AS */
-6, /* (330) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
-7, /* (331) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
-8, /* (332) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
-4, /* (333) cmd ::= DROP TOPIC exists_opt topic_name */
-7, /* (334) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
-2, /* (335) cmd ::= DESC full_table_name */
-2, /* (336) cmd ::= DESCRIBE full_table_name */
-3, /* (337) cmd ::= RESET QUERY CACHE */
-4, /* (338) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
-4, /* (339) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
0, /* (340) analyze_opt ::= */
-1, /* (341) analyze_opt ::= ANALYZE */
0, /* (342) explain_options ::= */
-3, /* (343) explain_options ::= explain_options VERBOSE NK_BOOL */
-3, /* (344) explain_options ::= explain_options RATIO NK_FLOAT */
-12, /* (345) 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, /* (346) cmd ::= DROP FUNCTION exists_opt function_name */
0, /* (347) agg_func_opt ::= */
-1, /* (348) agg_func_opt ::= AGGREGATE */
0, /* (349) bufsize_opt ::= */
-2, /* (350) bufsize_opt ::= BUFSIZE NK_INTEGER */
0, /* (351) language_opt ::= */
-2, /* (352) language_opt ::= LANGUAGE NK_STRING */
0, /* (353) or_replace_opt ::= */
-2, /* (354) or_replace_opt ::= OR REPLACE */
-12, /* (355) 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, /* (356) cmd ::= DROP STREAM exists_opt stream_name */
-4, /* (357) cmd ::= PAUSE STREAM exists_opt stream_name */
-5, /* (358) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
0, /* (359) col_list_opt ::= */
-3, /* (360) col_list_opt ::= NK_LP col_name_list NK_RP */
0, /* (361) tag_def_or_ref_opt ::= */
-1, /* (362) tag_def_or_ref_opt ::= tags_def */
-4, /* (363) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
0, /* (364) stream_options ::= */
-3, /* (365) stream_options ::= stream_options TRIGGER AT_ONCE */
-3, /* (366) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
-4, /* (367) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
-3, /* (368) stream_options ::= stream_options WATERMARK duration_literal */
-4, /* (369) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
-3, /* (370) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
-3, /* (371) stream_options ::= stream_options DELETE_MARK duration_literal */
-4, /* (372) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
0, /* (373) subtable_opt ::= */
-4, /* (374) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
0, /* (375) ignore_opt ::= */
-2, /* (376) ignore_opt ::= IGNORE UNTREATED */
-3, /* (377) cmd ::= KILL CONNECTION NK_INTEGER */
-3, /* (378) cmd ::= KILL QUERY NK_STRING */
-3, /* (379) cmd ::= KILL TRANSACTION NK_INTEGER */
-2, /* (380) cmd ::= BALANCE VGROUP */
-4, /* (381) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
-4, /* (382) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
-4, /* (383) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-3, /* (384) cmd ::= SPLIT VGROUP NK_INTEGER */
0, /* (385) on_vgroup_id ::= */
-2, /* (386) on_vgroup_id ::= ON NK_INTEGER */
-2, /* (387) dnode_list ::= DNODE NK_INTEGER */
-3, /* (388) dnode_list ::= dnode_list DNODE NK_INTEGER */
-4, /* (389) cmd ::= DELETE FROM full_table_name where_clause_opt */
-1, /* (390) cmd ::= query_or_subquery */
-1, /* (391) cmd ::= insert_query */
-7, /* (392) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
-4, /* (393) insert_query ::= INSERT INTO full_table_name query_or_subquery */
-1, /* (394) literal ::= NK_INTEGER */
-1, /* (395) literal ::= NK_FLOAT */
-1, /* (396) literal ::= NK_STRING */
-1, /* (397) literal ::= NK_BOOL */
-2, /* (398) literal ::= TIMESTAMP NK_STRING */
-1, /* (399) literal ::= duration_literal */
-1, /* (400) literal ::= NULL */
-1, /* (401) literal ::= NK_QUESTION */
-1, /* (402) duration_literal ::= NK_VARIABLE */
-1, /* (403) signed ::= NK_INTEGER */
-2, /* (404) signed ::= NK_PLUS NK_INTEGER */
-2, /* (405) signed ::= NK_MINUS NK_INTEGER */
-1, /* (406) signed ::= NK_FLOAT */
-2, /* (407) signed ::= NK_PLUS NK_FLOAT */
-2, /* (408) signed ::= NK_MINUS NK_FLOAT */
-1, /* (409) signed_literal ::= signed */
-1, /* (410) signed_literal ::= NK_STRING */
-1, /* (411) signed_literal ::= NK_BOOL */
-2, /* (412) signed_literal ::= TIMESTAMP NK_STRING */
-1, /* (413) signed_literal ::= duration_literal */
-1, /* (414) signed_literal ::= NULL */
-1, /* (415) signed_literal ::= literal_func */
-1, /* (416) signed_literal ::= NK_QUESTION */
-1, /* (417) literal_list ::= signed_literal */
-3, /* (418) literal_list ::= literal_list NK_COMMA signed_literal */
-1, /* (419) db_name ::= NK_ID */
-1, /* (420) table_name ::= NK_ID */
-1, /* (421) column_name ::= NK_ID */
-1, /* (422) function_name ::= NK_ID */
-1, /* (423) table_alias ::= NK_ID */
-1, /* (424) column_alias ::= NK_ID */
-1, /* (425) column_alias ::= NK_ALIAS */
-1, /* (426) user_name ::= NK_ID */
-1, /* (427) topic_name ::= NK_ID */
-1, /* (428) stream_name ::= NK_ID */
-1, /* (429) cgroup_name ::= NK_ID */
-1, /* (430) index_name ::= NK_ID */
-1, /* (431) expr_or_subquery ::= expression */
-1, /* (432) expression ::= literal */
-1, /* (433) expression ::= pseudo_column */
-1, /* (434) expression ::= column_reference */
-1, /* (435) expression ::= function_expression */
-1, /* (436) expression ::= case_when_expression */
-3, /* (437) expression ::= NK_LP expression NK_RP */
-2, /* (438) expression ::= NK_PLUS expr_or_subquery */
-2, /* (439) expression ::= NK_MINUS expr_or_subquery */
-3, /* (440) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
-3, /* (441) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
-3, /* (442) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
-3, /* (443) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
-3, /* (444) expression ::= expr_or_subquery NK_REM expr_or_subquery */
-3, /* (445) expression ::= column_reference NK_ARROW NK_STRING */
-3, /* (446) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
-3, /* (447) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
-1, /* (448) expression_list ::= expr_or_subquery */
-3, /* (449) expression_list ::= expression_list NK_COMMA expr_or_subquery */
-1, /* (450) column_reference ::= column_name */
-3, /* (451) column_reference ::= table_name NK_DOT column_name */
-1, /* (452) column_reference ::= NK_ALIAS */
-3, /* (453) column_reference ::= table_name NK_DOT NK_ALIAS */
-1, /* (454) pseudo_column ::= ROWTS */
-1, /* (455) pseudo_column ::= TBNAME */
-3, /* (456) pseudo_column ::= table_name NK_DOT TBNAME */
-1, /* (457) pseudo_column ::= QSTART */
-1, /* (458) pseudo_column ::= QEND */
-1, /* (459) pseudo_column ::= QDURATION */
-1, /* (460) pseudo_column ::= WSTART */
-1, /* (461) pseudo_column ::= WEND */
-1, /* (462) pseudo_column ::= WDURATION */
-1, /* (463) pseudo_column ::= IROWTS */
-1, /* (464) pseudo_column ::= ISFILLED */
-1, /* (465) pseudo_column ::= QTAGS */
-4, /* (466) function_expression ::= function_name NK_LP expression_list NK_RP */
-4, /* (467) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
-6, /* (468) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
-1, /* (469) function_expression ::= literal_func */
-3, /* (470) literal_func ::= noarg_func NK_LP NK_RP */
-1, /* (471) literal_func ::= NOW */
-1, /* (472) noarg_func ::= NOW */
-1, /* (473) noarg_func ::= TODAY */
-1, /* (474) noarg_func ::= TIMEZONE */
-1, /* (475) noarg_func ::= DATABASE */
-1, /* (476) noarg_func ::= CLIENT_VERSION */
-1, /* (477) noarg_func ::= SERVER_VERSION */
-1, /* (478) noarg_func ::= SERVER_STATUS */
-1, /* (479) noarg_func ::= CURRENT_USER */
-1, /* (480) noarg_func ::= USER */
-1, /* (481) star_func ::= COUNT */
-1, /* (482) star_func ::= FIRST */
-1, /* (483) star_func ::= LAST */
-1, /* (484) star_func ::= LAST_ROW */
-1, /* (485) star_func_para_list ::= NK_STAR */
-1, /* (486) star_func_para_list ::= other_para_list */
-1, /* (487) other_para_list ::= star_func_para */
-3, /* (488) other_para_list ::= other_para_list NK_COMMA star_func_para */
-1, /* (489) star_func_para ::= expr_or_subquery */
-3, /* (490) star_func_para ::= table_name NK_DOT NK_STAR */
-4, /* (491) case_when_expression ::= CASE when_then_list case_when_else_opt END */
-5, /* (492) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
-1, /* (493) when_then_list ::= when_then_expr */
-2, /* (494) when_then_list ::= when_then_list when_then_expr */
-4, /* (495) when_then_expr ::= WHEN common_expression THEN common_expression */
0, /* (496) case_when_else_opt ::= */
-2, /* (497) case_when_else_opt ::= ELSE common_expression */
-3, /* (498) predicate ::= expr_or_subquery compare_op expr_or_subquery */
-5, /* (499) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
-6, /* (500) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
-3, /* (501) predicate ::= expr_or_subquery IS NULL */
-4, /* (502) predicate ::= expr_or_subquery IS NOT NULL */
-3, /* (503) predicate ::= expr_or_subquery in_op in_predicate_value */
-1, /* (504) compare_op ::= NK_LT */
-1, /* (505) compare_op ::= NK_GT */
-1, /* (506) compare_op ::= NK_LE */
-1, /* (507) compare_op ::= NK_GE */
-1, /* (508) compare_op ::= NK_NE */
-1, /* (509) compare_op ::= NK_EQ */
-1, /* (510) compare_op ::= LIKE */
-2, /* (511) compare_op ::= NOT LIKE */
-1, /* (512) compare_op ::= MATCH */
-1, /* (513) compare_op ::= NMATCH */
-1, /* (514) compare_op ::= CONTAINS */
-1, /* (515) in_op ::= IN */
-2, /* (516) in_op ::= NOT IN */
-3, /* (517) in_predicate_value ::= NK_LP literal_list NK_RP */
-1, /* (518) boolean_value_expression ::= boolean_primary */
-2, /* (519) boolean_value_expression ::= NOT boolean_primary */
-3, /* (520) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
-3, /* (521) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
-1, /* (522) boolean_primary ::= predicate */
-3, /* (523) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
-1, /* (524) common_expression ::= expr_or_subquery */
-1, /* (525) common_expression ::= boolean_value_expression */
0, /* (526) from_clause_opt ::= */
-2, /* (527) from_clause_opt ::= FROM table_reference_list */
-1, /* (528) table_reference_list ::= table_reference */
-3, /* (529) table_reference_list ::= table_reference_list NK_COMMA table_reference */
-1, /* (530) table_reference ::= table_primary */
-1, /* (531) table_reference ::= joined_table */
-2, /* (532) table_primary ::= table_name alias_opt */
-4, /* (533) table_primary ::= db_name NK_DOT table_name alias_opt */
-2, /* (534) table_primary ::= subquery alias_opt */
-1, /* (535) table_primary ::= parenthesized_joined_table */
0, /* (536) alias_opt ::= */
-1, /* (537) alias_opt ::= table_alias */
-2, /* (538) alias_opt ::= AS table_alias */
-3, /* (539) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
-3, /* (540) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
-6, /* (541) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
0, /* (542) join_type ::= */
-1, /* (543) join_type ::= INNER */
-14, /* (544) 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, /* (545) hint_list ::= */
-1, /* (546) hint_list ::= NK_HINT */
0, /* (547) tag_mode_opt ::= */
-1, /* (548) tag_mode_opt ::= TAGS */
0, /* (549) set_quantifier_opt ::= */
-1, /* (550) set_quantifier_opt ::= DISTINCT */
-1, /* (551) set_quantifier_opt ::= ALL */
-1, /* (552) select_list ::= select_item */
-3, /* (553) select_list ::= select_list NK_COMMA select_item */
-1, /* (554) select_item ::= NK_STAR */
-1, /* (555) select_item ::= common_expression */
-2, /* (556) select_item ::= common_expression column_alias */
-3, /* (557) select_item ::= common_expression AS column_alias */
-3, /* (558) select_item ::= table_name NK_DOT NK_STAR */
0, /* (559) where_clause_opt ::= */
-2, /* (560) where_clause_opt ::= WHERE search_condition */
0, /* (561) partition_by_clause_opt ::= */
-3, /* (562) partition_by_clause_opt ::= PARTITION BY partition_list */
-1, /* (563) partition_list ::= partition_item */
-3, /* (564) partition_list ::= partition_list NK_COMMA partition_item */
-1, /* (565) partition_item ::= expr_or_subquery */
-2, /* (566) partition_item ::= expr_or_subquery column_alias */
-3, /* (567) partition_item ::= expr_or_subquery AS column_alias */
0, /* (568) twindow_clause_opt ::= */
-6, /* (569) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
-4, /* (570) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
-6, /* (571) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-8, /* (572) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-7, /* (573) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
0, /* (574) sliding_opt ::= */
-4, /* (575) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
-1, /* (576) interval_sliding_duration_literal ::= NK_VARIABLE */
-1, /* (577) interval_sliding_duration_literal ::= NK_STRING */
-1, /* (578) interval_sliding_duration_literal ::= NK_INTEGER */
0, /* (579) fill_opt ::= */
-4, /* (580) fill_opt ::= FILL NK_LP fill_mode NK_RP */
-6, /* (581) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
-6, /* (582) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
-1, /* (583) fill_mode ::= NONE */
-1, /* (584) fill_mode ::= PREV */
-1, /* (585) fill_mode ::= NULL */
-1, /* (586) fill_mode ::= NULL_F */
-1, /* (587) fill_mode ::= LINEAR */
-1, /* (588) fill_mode ::= NEXT */
0, /* (589) group_by_clause_opt ::= */
-3, /* (590) group_by_clause_opt ::= GROUP BY group_by_list */
-1, /* (591) group_by_list ::= expr_or_subquery */
-3, /* (592) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
0, /* (593) having_clause_opt ::= */
-2, /* (594) having_clause_opt ::= HAVING search_condition */
0, /* (595) range_opt ::= */
-6, /* (596) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
-4, /* (597) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
0, /* (598) every_opt ::= */
-4, /* (599) every_opt ::= EVERY NK_LP duration_literal NK_RP */
-4, /* (600) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
-1, /* (601) query_simple ::= query_specification */
-1, /* (602) query_simple ::= union_query_expression */
-4, /* (603) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
-3, /* (604) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
-1, /* (605) query_simple_or_subquery ::= query_simple */
-1, /* (606) query_simple_or_subquery ::= subquery */
-1, /* (607) query_or_subquery ::= query_expression */
-1, /* (608) query_or_subquery ::= subquery */
0, /* (609) order_by_clause_opt ::= */
-3, /* (610) order_by_clause_opt ::= ORDER BY sort_specification_list */
0, /* (611) slimit_clause_opt ::= */
-2, /* (612) slimit_clause_opt ::= SLIMIT NK_INTEGER */
-4, /* (613) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
-4, /* (614) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
0, /* (615) limit_clause_opt ::= */
-2, /* (616) limit_clause_opt ::= LIMIT NK_INTEGER */
-4, /* (617) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
-4, /* (618) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
-3, /* (619) subquery ::= NK_LP query_expression NK_RP */
-3, /* (620) subquery ::= NK_LP subquery NK_RP */
-1, /* (621) search_condition ::= common_expression */
-1, /* (622) sort_specification_list ::= sort_specification */
-3, /* (623) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
-3, /* (624) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
0, /* (625) ordering_specification_opt ::= */
-1, /* (626) ordering_specification_opt ::= ASC */
-1, /* (627) ordering_specification_opt ::= DESC */
0, /* (628) null_ordering_opt ::= */
-2, /* (629) null_ordering_opt ::= NULLS FIRST */
-2, /* (630) 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],
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
yymsp[yysize].stateno);
}else{
fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
yyTracePrompt, yyruleno, yyRuleName[yyruleno],
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
}
}
#endif /* NDEBUG */
/* Check that the stack is large enough to grow by a single entry
** if the RHS of the rule is empty. This ensures that there is room
** enough on the stack to push the LHS value */
if( yyRuleInfoNRhs[yyruleno]==0 ){
#ifdef YYTRACKMAXSTACKDEPTH
if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
yypParser->yyhwm++;
assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack));
}
#endif
#if YYSTACKDEPTH>0
if( yypParser->yytos>=yypParser->yystackEnd ){
yyStackOverflow(yypParser);
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return 0;
}
#else
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
if( yyGrowStack(yypParser) ){
yyStackOverflow(yypParser);
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return 0;
}
yymsp = yypParser->yytos;
}
#endif
}
switch( yyruleno ){
/* Beginning here are the reduction cases. A typical example
** follows:
** case 0:
** #line <lineno> <grammarfile>
** { ... } // User supplied code
** #line <lineno> <thisfile>
** 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,346,&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,347,&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,346,&yymsp[-2].minor);
{ }
yy_destructor(yypParser,348,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
{ yy_destructor(yypParser,349,&yymsp[0].minor);
{ }
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
{ yy_destructor(yypParser,347,&yymsp[-1].minor);
{ }
yy_destructor(yypParser,349,&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,348,&yymsp[0].minor);
break;
case 24: /* ip_range_list ::= NK_STRING */
{ yylhsminor.yy712 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy712 = yylhsminor.yy712;
break;
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy712 = yylhsminor.yy712;
break;
case 26: /* white_list ::= HOST ip_range_list */
{ yymsp[-1].minor.yy712 = yymsp[0].minor.yy712; }
break;
case 27: /* white_list_opt ::= */
case 185: /* specific_cols_opt ::= */ yytestcase(yyruleno==185);
case 216: /* tags_def_opt ::= */ yytestcase(yyruleno==216);
case 297: /* tag_list_opt ::= */ yytestcase(yyruleno==297);
case 359: /* col_list_opt ::= */ yytestcase(yyruleno==359);
case 361: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==361);
case 561: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==561);
case 589: /* group_by_clause_opt ::= */ yytestcase(yyruleno==589);
case 609: /* order_by_clause_opt ::= */ yytestcase(yyruleno==609);
{ yymsp[1].minor.yy712 = NULL; }
break;
case 28: /* white_list_opt ::= white_list */
case 217: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==217);
case 362: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==362);
case 486: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==486);
{ yylhsminor.yy712 = yymsp[0].minor.yy712; }
yymsp[0].minor.yy712 = yylhsminor.yy712;
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.yy215);
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy712);
}
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.yy712); }
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.yy712); }
break;
case 35: /* cmd ::= DROP USER user_name */
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy785); }
break;
case 36: /* sysinfo_opt ::= */
{ yymsp[1].minor.yy215 = 1; }
break;
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
{ yymsp[-1].minor.yy215 = 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.yy333, &yymsp[-3].minor.yy777, &yymsp[0].minor.yy785, yymsp[-2].minor.yy56); }
break;
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy333, &yymsp[-3].minor.yy777, &yymsp[0].minor.yy785, yymsp[-2].minor.yy56); }
break;
case 40: /* privileges ::= ALL */
{ yymsp[0].minor.yy333 = PRIVILEGE_TYPE_ALL; }
break;
case 41: /* privileges ::= priv_type_list */
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
{ yylhsminor.yy333 = yymsp[0].minor.yy333; }
yymsp[0].minor.yy333 = yylhsminor.yy333;
break;
case 42: /* privileges ::= SUBSCRIBE */
{ yymsp[0].minor.yy333 = PRIVILEGE_TYPE_SUBSCRIBE; }
break;
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
{ yylhsminor.yy333 = yymsp[-2].minor.yy333 | yymsp[0].minor.yy333; }
yymsp[-2].minor.yy333 = yylhsminor.yy333;
break;
case 45: /* priv_type ::= READ */
{ yymsp[0].minor.yy333 = PRIVILEGE_TYPE_READ; }
break;
case 46: /* priv_type ::= WRITE */
{ yymsp[0].minor.yy333 = PRIVILEGE_TYPE_WRITE; }
break;
case 47: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
{ yylhsminor.yy777.first = yymsp[-2].minor.yy0; yylhsminor.yy777.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy777 = yylhsminor.yy777;
break;
case 48: /* priv_level ::= db_name NK_DOT NK_STAR */
{ yylhsminor.yy777.first = yymsp[-2].minor.yy785; yylhsminor.yy777.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy777 = yylhsminor.yy777;
break;
case 49: /* priv_level ::= db_name NK_DOT table_name */
{ yylhsminor.yy777.first = yymsp[-2].minor.yy785; yylhsminor.yy777.second = yymsp[0].minor.yy785; }
yymsp[-2].minor.yy777 = yylhsminor.yy777;
break;
case 50: /* priv_level ::= topic_name */
{ yylhsminor.yy777.first = yymsp[0].minor.yy785; yylhsminor.yy777.second = nil_token; }
yymsp[0].minor.yy777 = yylhsminor.yy777;
break;
case 51: /* with_opt ::= */
case 154: /* start_opt ::= */ yytestcase(yyruleno==154);
case 158: /* end_opt ::= */ yytestcase(yyruleno==158);
case 292: /* like_pattern_opt ::= */ yytestcase(yyruleno==292);
case 373: /* subtable_opt ::= */ yytestcase(yyruleno==373);
case 496: /* case_when_else_opt ::= */ yytestcase(yyruleno==496);
case 526: /* from_clause_opt ::= */ yytestcase(yyruleno==526);
case 559: /* where_clause_opt ::= */ yytestcase(yyruleno==559);
case 568: /* twindow_clause_opt ::= */ yytestcase(yyruleno==568);
case 574: /* sliding_opt ::= */ yytestcase(yyruleno==574);
case 579: /* fill_opt ::= */ yytestcase(yyruleno==579);
case 593: /* having_clause_opt ::= */ yytestcase(yyruleno==593);
case 595: /* range_opt ::= */ yytestcase(yyruleno==595);
case 598: /* every_opt ::= */ yytestcase(yyruleno==598);
case 611: /* slimit_clause_opt ::= */ yytestcase(yyruleno==611);
case 615: /* limit_clause_opt ::= */ yytestcase(yyruleno==615);
{ yymsp[1].minor.yy56 = NULL; }
break;
case 52: /* with_opt ::= WITH search_condition */
case 527: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==527);
case 560: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==560);
case 594: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==594);
{ yymsp[-1].minor.yy56 = yymsp[0].minor.yy56; }
break;
case 53: /* cmd ::= CREATE DNODE dnode_endpoint */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy785, NULL); }
break;
case 54: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0); }
break;
case 55: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy425, false); }
break;
case 56: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy425, false); }
break;
case 57: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy425); }
break;
case 58: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy785, false, yymsp[0].minor.yy425); }
break;
case 59: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
break;
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 61: /* cmd ::= ALTER ALL DNODES NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
break;
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 63: /* cmd ::= RESTORE DNODE NK_INTEGER */
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 64: /* dnode_endpoint ::= NK_STRING */
case 65: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==65);
case 66: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==66);
case 319: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==319);
case 320: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==320);
case 321: /* sma_func_name ::= LAST */ yytestcase(yyruleno==321);
case 322: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==322);
case 419: /* db_name ::= NK_ID */ yytestcase(yyruleno==419);
case 420: /* table_name ::= NK_ID */ yytestcase(yyruleno==420);
case 421: /* column_name ::= NK_ID */ yytestcase(yyruleno==421);
case 422: /* function_name ::= NK_ID */ yytestcase(yyruleno==422);
case 423: /* table_alias ::= NK_ID */ yytestcase(yyruleno==423);
case 424: /* column_alias ::= NK_ID */ yytestcase(yyruleno==424);
case 425: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==425);
case 426: /* user_name ::= NK_ID */ yytestcase(yyruleno==426);
case 427: /* topic_name ::= NK_ID */ yytestcase(yyruleno==427);
case 428: /* stream_name ::= NK_ID */ yytestcase(yyruleno==428);
case 429: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==429);
case 430: /* index_name ::= NK_ID */ yytestcase(yyruleno==430);
case 472: /* noarg_func ::= NOW */ yytestcase(yyruleno==472);
case 473: /* noarg_func ::= TODAY */ yytestcase(yyruleno==473);
case 474: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==474);
case 475: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==475);
case 476: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==476);
case 477: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==477);
case 478: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==478);
case 479: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==479);
case 480: /* noarg_func ::= USER */ yytestcase(yyruleno==480);
case 481: /* star_func ::= COUNT */ yytestcase(yyruleno==481);
case 482: /* star_func ::= FIRST */ yytestcase(yyruleno==482);
case 483: /* star_func ::= LAST */ yytestcase(yyruleno==483);
case 484: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==484);
{ yylhsminor.yy785 = yymsp[0].minor.yy0; }
yymsp[0].minor.yy785 = yylhsminor.yy785;
break;
case 67: /* force_opt ::= */
case 91: /* not_exists_opt ::= */ yytestcase(yyruleno==91);
case 93: /* exists_opt ::= */ yytestcase(yyruleno==93);
case 340: /* analyze_opt ::= */ yytestcase(yyruleno==340);
case 347: /* agg_func_opt ::= */ yytestcase(yyruleno==347);
case 353: /* or_replace_opt ::= */ yytestcase(yyruleno==353);
case 375: /* ignore_opt ::= */ yytestcase(yyruleno==375);
case 547: /* tag_mode_opt ::= */ yytestcase(yyruleno==547);
case 549: /* set_quantifier_opt ::= */ yytestcase(yyruleno==549);
{ yymsp[1].minor.yy425 = false; }
break;
case 68: /* force_opt ::= FORCE */
case 69: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==69);
case 341: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==341);
case 348: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==348);
case 548: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==548);
case 550: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==550);
{ yymsp[0].minor.yy425 = true; }
break;
case 70: /* cmd ::= ALTER LOCAL NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
case 71: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 72: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 73: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 74: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 75: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 76: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 77: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 78: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 79: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 80: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 81: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 82: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 83: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy425, &yymsp[-1].minor.yy785, yymsp[0].minor.yy56); }
break;
case 84: /* cmd ::= DROP DATABASE exists_opt db_name */
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); }
break;
case 85: /* cmd ::= USE db_name */
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy785); }
break;
case 86: /* cmd ::= ALTER DATABASE db_name alter_db_options */
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy56); }
break;
case 87: /* cmd ::= FLUSH DATABASE db_name */
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy785); }
break;
case 88: /* cmd ::= TRIM DATABASE db_name speed_opt */
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy676); }
break;
case 89: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy785, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); }
break;
case 90: /* not_exists_opt ::= IF NOT EXISTS */
{ yymsp[-2].minor.yy425 = true; }
break;
case 92: /* exists_opt ::= IF EXISTS */
case 354: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==354);
case 376: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==376);
{ yymsp[-1].minor.yy425 = true; }
break;
case 94: /* db_options ::= */
{ yymsp[1].minor.yy56 = createDefaultDatabaseOptions(pCxt); }
break;
case 95: /* db_options ::= db_options BUFFER NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 96: /* db_options ::= db_options CACHEMODEL NK_STRING */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 97: /* db_options ::= db_options CACHESIZE NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 98: /* db_options ::= db_options COMP NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 99: /* db_options ::= db_options DURATION NK_INTEGER */
case 100: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==100);
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 101: /* db_options ::= db_options MAXROWS NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 102: /* db_options ::= db_options MINROWS NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 103: /* db_options ::= db_options KEEP integer_list */
case 104: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==104);
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_KEEP, yymsp[0].minor.yy712); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 105: /* db_options ::= db_options PAGES NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 106: /* db_options ::= db_options PAGESIZE NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 107: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 108: /* db_options ::= db_options PRECISION NK_STRING */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 109: /* db_options ::= db_options REPLICA NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 110: /* db_options ::= db_options VGROUPS NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 111: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 112: /* db_options ::= db_options RETENTIONS retention_list */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_RETENTIONS, yymsp[0].minor.yy712); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 113: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 114: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 115: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 116: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 117: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-3].minor.yy56, DB_OPTION_WAL_RETENTION_PERIOD, &t);
}
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 118: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 119: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-3].minor.yy56, DB_OPTION_WAL_RETENTION_SIZE, &t);
}
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 120: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 121: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 122: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 123: /* db_options ::= db_options TABLE_PREFIX signed */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy56); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 124: /* db_options ::= db_options TABLE_SUFFIX signed */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy56); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 125: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
{ yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 126: /* alter_db_options ::= alter_db_option */
{ yylhsminor.yy56 = createAlterDatabaseOptions(pCxt); yylhsminor.yy56 = setAlterDatabaseOption(pCxt, yylhsminor.yy56, &yymsp[0].minor.yy893); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 127: /* alter_db_options ::= alter_db_options alter_db_option */
{ yylhsminor.yy56 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy56, &yymsp[0].minor.yy893); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 128: /* alter_db_option ::= BUFFER NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 129: /* alter_db_option ::= CACHEMODEL NK_STRING */
{ yymsp[-1].minor.yy893.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 130: /* alter_db_option ::= CACHESIZE NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 131: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 132: /* alter_db_option ::= KEEP integer_list */
case 133: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==133);
{ yymsp[-1].minor.yy893.type = DB_OPTION_KEEP; yymsp[-1].minor.yy893.pList = yymsp[0].minor.yy712; }
break;
case 134: /* alter_db_option ::= PAGES NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_PAGES; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 135: /* alter_db_option ::= REPLICA NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 136: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_WAL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 137: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 138: /* alter_db_option ::= MINROWS NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 139: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 140: /* 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.yy893.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy893.val = t;
}
break;
case 141: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 142: /* 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.yy893.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy893.val = t;
}
break;
case 143: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 144: /* integer_list ::= NK_INTEGER */
{ yylhsminor.yy712 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy712 = yylhsminor.yy712;
break;
case 145: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
case 388: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==388);
{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy712 = yylhsminor.yy712;
break;
case 146: /* variable_list ::= NK_VARIABLE */
{ yylhsminor.yy712 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy712 = yylhsminor.yy712;
break;
case 147: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy712 = yylhsminor.yy712;
break;
case 148: /* retention_list ::= retention */
case 179: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==179);
case 182: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==182);
case 189: /* column_def_list ::= column_def */ yytestcase(yyruleno==189);
case 233: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==233);
case 238: /* col_name_list ::= col_name */ yytestcase(yyruleno==238);
case 298: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==298);
case 315: /* func_list ::= func */ yytestcase(yyruleno==315);
case 417: /* literal_list ::= signed_literal */ yytestcase(yyruleno==417);
case 487: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==487);
case 493: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==493);
case 552: /* select_list ::= select_item */ yytestcase(yyruleno==552);
case 563: /* partition_list ::= partition_item */ yytestcase(yyruleno==563);
case 622: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==622);
{ yylhsminor.yy712 = createNodeList(pCxt, yymsp[0].minor.yy56); }
yymsp[0].minor.yy712 = yylhsminor.yy712;
break;
case 149: /* retention_list ::= retention_list NK_COMMA retention */
case 183: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==183);
case 190: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==190);
case 234: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==234);
case 239: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==239);
case 299: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==299);
case 316: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==316);
case 418: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==418);
case 488: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==488);
case 553: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==553);
case 564: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==564);
case 623: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==623);
{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, yymsp[0].minor.yy56); }
yymsp[-2].minor.yy712 = yylhsminor.yy712;
break;
case 150: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
case 151: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==151);
{ yylhsminor.yy56 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 152: /* speed_opt ::= */
case 349: /* bufsize_opt ::= */ yytestcase(yyruleno==349);
{ yymsp[1].minor.yy676 = 0; }
break;
case 153: /* speed_opt ::= BWLIMIT NK_INTEGER */
case 350: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==350);
{ yymsp[-1].minor.yy676 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
break;
case 155: /* start_opt ::= START WITH NK_INTEGER */
case 159: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==159);
{ yymsp[-2].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
break;
case 156: /* start_opt ::= START WITH NK_STRING */
case 160: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==160);
{ yymsp[-2].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 157: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
case 161: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==161);
{ yymsp[-3].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 162: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
case 164: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==164);
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy425, yymsp[-5].minor.yy56, yymsp[-3].minor.yy712, yymsp[-1].minor.yy712, yymsp[0].minor.yy56); }
break;
case 163: /* cmd ::= CREATE TABLE multi_create_clause */
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy712); }
break;
case 165: /* cmd ::= DROP TABLE multi_drop_clause */
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy712); }
break;
case 166: /* cmd ::= DROP STABLE exists_opt full_table_name */
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy425, yymsp[0].minor.yy56); }
break;
case 167: /* cmd ::= ALTER TABLE alter_table_clause */
case 390: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==390);
case 391: /* cmd ::= insert_query */ yytestcase(yyruleno==391);
{ pCxt->pRootNode = yymsp[0].minor.yy56; }
break;
case 168: /* cmd ::= ALTER STABLE alter_table_clause */
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy56); }
break;
case 169: /* alter_table_clause ::= full_table_name alter_table_options */
{ yylhsminor.yy56 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 170: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
{ yylhsminor.yy56 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448); }
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 171: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
{ yylhsminor.yy56 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy56, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy785); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 172: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
{ yylhsminor.yy56 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448); }
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 173: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
{ yylhsminor.yy56 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); }
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 174: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
{ yylhsminor.yy56 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448); }
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 175: /* alter_table_clause ::= full_table_name DROP TAG column_name */
{ yylhsminor.yy56 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy56, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy785); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 176: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
{ yylhsminor.yy56 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448); }
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 177: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
{ yylhsminor.yy56 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); }
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 178: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
{ yylhsminor.yy56 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy56, &yymsp[-2].minor.yy785, yymsp[0].minor.yy56); }
yymsp[-5].minor.yy56 = yylhsminor.yy56;
break;
case 180: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
case 494: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==494);
{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-1].minor.yy712, yymsp[0].minor.yy56); }
yymsp[-1].minor.yy712 = yylhsminor.yy712;
break;
case 181: /* 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.yy56 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy425, yymsp[-8].minor.yy56, yymsp[-6].minor.yy56, yymsp[-5].minor.yy712, yymsp[-2].minor.yy712, yymsp[0].minor.yy56); }
yymsp[-9].minor.yy56 = yylhsminor.yy56;
break;
case 184: /* drop_table_clause ::= exists_opt full_table_name */
{ yylhsminor.yy56 = createDropTableClause(pCxt, yymsp[-1].minor.yy425, yymsp[0].minor.yy56); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 186: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
case 360: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==360);
{ yymsp[-2].minor.yy712 = yymsp[-1].minor.yy712; }
break;
case 187: /* full_table_name ::= table_name */
{ yylhsminor.yy56 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy785, NULL); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 188: /* full_table_name ::= db_name NK_DOT table_name */
{ yylhsminor.yy56 = createRealTableNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785, NULL); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 191: /* column_def ::= column_name type_name */
{ yylhsminor.yy56 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448, NULL); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 192: /* type_name ::= BOOL */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BOOL); }
break;
case 193: /* type_name ::= TINYINT */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TINYINT); }
break;
case 194: /* type_name ::= SMALLINT */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
break;
case 195: /* type_name ::= INT */
case 196: /* type_name ::= INTEGER */ yytestcase(yyruleno==196);
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_INT); }
break;
case 197: /* type_name ::= BIGINT */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BIGINT); }
break;
case 198: /* type_name ::= FLOAT */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_FLOAT); }
break;
case 199: /* type_name ::= DOUBLE */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
break;
case 200: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
break;
case 201: /* type_name ::= TIMESTAMP */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
break;
case 202: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
break;
case 203: /* type_name ::= TINYINT UNSIGNED */
{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
break;
case 204: /* type_name ::= SMALLINT UNSIGNED */
{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
break;
case 205: /* type_name ::= INT UNSIGNED */
{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UINT); }
break;
case 206: /* type_name ::= BIGINT UNSIGNED */
{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
break;
case 207: /* type_name ::= JSON */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_JSON); }
break;
case 208: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
break;
case 209: /* type_name ::= MEDIUMBLOB */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
break;
case 210: /* type_name ::= BLOB */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BLOB); }
break;
case 211: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
break;
case 212: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
break;
case 213: /* type_name ::= DECIMAL */
{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
case 214: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
case 215: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
case 218: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
case 363: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==363);
{ yymsp[-3].minor.yy712 = yymsp[-1].minor.yy712; }
break;
case 219: /* table_options ::= */
{ yymsp[1].minor.yy56 = createDefaultTableOptions(pCxt); }
break;
case 220: /* table_options ::= table_options COMMENT NK_STRING */
{ yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 221: /* table_options ::= table_options MAX_DELAY duration_list */
{ yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy712); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 222: /* table_options ::= table_options WATERMARK duration_list */
{ yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy712); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 223: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
{ yylhsminor.yy56 = setTableOption(pCxt, yymsp[-4].minor.yy56, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy712); }
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 224: /* table_options ::= table_options TTL NK_INTEGER */
{ yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 225: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
{ yylhsminor.yy56 = setTableOption(pCxt, yymsp[-4].minor.yy56, TABLE_OPTION_SMA, yymsp[-1].minor.yy712); }
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 226: /* table_options ::= table_options DELETE_MARK duration_list */
{ yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy712); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 227: /* alter_table_options ::= alter_table_option */
{ yylhsminor.yy56 = createAlterTableOptions(pCxt); yylhsminor.yy56 = setTableOption(pCxt, yylhsminor.yy56, yymsp[0].minor.yy893.type, &yymsp[0].minor.yy893.val); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 228: /* alter_table_options ::= alter_table_options alter_table_option */
{ yylhsminor.yy56 = setTableOption(pCxt, yymsp[-1].minor.yy56, yymsp[0].minor.yy893.type, &yymsp[0].minor.yy893.val); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 229: /* alter_table_option ::= COMMENT NK_STRING */
{ yymsp[-1].minor.yy893.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 230: /* alter_table_option ::= TTL NK_INTEGER */
{ yymsp[-1].minor.yy893.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 231: /* duration_list ::= duration_literal */
case 448: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==448);
{ yylhsminor.yy712 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); }
yymsp[0].minor.yy712 = yylhsminor.yy712;
break;
case 232: /* duration_list ::= duration_list NK_COMMA duration_literal */
case 449: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==449);
{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); }
yymsp[-2].minor.yy712 = yylhsminor.yy712;
break;
case 235: /* rollup_func_name ::= function_name */
{ yylhsminor.yy56 = createFunctionNode(pCxt, &yymsp[0].minor.yy785, NULL); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 236: /* rollup_func_name ::= FIRST */
case 237: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==237);
case 301: /* tag_item ::= QTAGS */ yytestcase(yyruleno==301);
{ yylhsminor.yy56 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 240: /* col_name ::= column_name */
case 302: /* tag_item ::= column_name */ yytestcase(yyruleno==302);
{ yylhsminor.yy56 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy785); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 241: /* cmd ::= SHOW DNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
break;
case 242: /* cmd ::= SHOW USERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
break;
case 243: /* cmd ::= SHOW USER PRIVILEGES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
break;
case 244: /* cmd ::= SHOW db_kind_opt DATABASES */
{
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy33);
}
break;
case 245: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
{
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy205, yymsp[0].minor.yy56, OP_TYPE_LIKE);
}
break;
case 246: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy56, yymsp[0].minor.yy56, OP_TYPE_LIKE); }
break;
case 247: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy56, NULL, OP_TYPE_LIKE); }
break;
case 248: /* cmd ::= SHOW MNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
break;
case 249: /* cmd ::= SHOW QNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
break;
case 250: /* cmd ::= SHOW FUNCTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
break;
case 251: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy56, yymsp[-1].minor.yy56, OP_TYPE_EQUAL); }
break;
case 252: /* 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 253: /* cmd ::= SHOW STREAMS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
break;
case 254: /* cmd ::= SHOW ACCOUNTS */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
break;
case 255: /* cmd ::= SHOW APPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
break;
case 256: /* cmd ::= SHOW CONNECTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
break;
case 257: /* cmd ::= SHOW LICENCES */
case 258: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==258);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
break;
case 259: /* cmd ::= SHOW CREATE DATABASE db_name */
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy785); }
break;
case 260: /* cmd ::= SHOW CREATE TABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy56); }
break;
case 261: /* cmd ::= SHOW CREATE STABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy56); }
break;
case 262: /* cmd ::= SHOW QUERIES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
break;
case 263: /* cmd ::= SHOW SCORES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
break;
case 264: /* cmd ::= SHOW TOPICS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
break;
case 265: /* cmd ::= SHOW VARIABLES */
case 266: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==266);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
break;
case 267: /* cmd ::= SHOW LOCAL VARIABLES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
break;
case 268: /* 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.yy56); }
break;
case 269: /* cmd ::= SHOW BNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
break;
case 270: /* cmd ::= SHOW SNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
break;
case 271: /* cmd ::= SHOW CLUSTER */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
break;
case 272: /* cmd ::= SHOW TRANSACTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
break;
case 273: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy56); }
break;
case 274: /* cmd ::= SHOW CONSUMERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
break;
case 275: /* cmd ::= SHOW SUBSCRIPTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
break;
case 276: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy56, yymsp[-1].minor.yy56, OP_TYPE_EQUAL); }
break;
case 277: /* 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 278: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy56, yymsp[0].minor.yy56, yymsp[-3].minor.yy712); }
break;
case 279: /* 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.yy712); }
break;
case 280: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
break;
case 281: /* cmd ::= SHOW VNODES */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
break;
case 282: /* cmd ::= SHOW db_name_cond_opt ALIVE */
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy56, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
break;
case 283: /* cmd ::= SHOW CLUSTER ALIVE */
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
break;
case 284: /* table_kind_db_name_cond_opt ::= */
{ yymsp[1].minor.yy205.kind = SHOW_KIND_ALL; yymsp[1].minor.yy205.dbName = nil_token; }
break;
case 285: /* table_kind_db_name_cond_opt ::= table_kind */
{ yylhsminor.yy205.kind = yymsp[0].minor.yy33; yylhsminor.yy205.dbName = nil_token; }
yymsp[0].minor.yy205 = yylhsminor.yy205;
break;
case 286: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy205.kind = SHOW_KIND_ALL; yylhsminor.yy205.dbName = yymsp[-1].minor.yy785; }
yymsp[-1].minor.yy205 = yylhsminor.yy205;
break;
case 287: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
{ yylhsminor.yy205.kind = yymsp[-2].minor.yy33; yylhsminor.yy205.dbName = yymsp[-1].minor.yy785; }
yymsp[-2].minor.yy205 = yylhsminor.yy205;
break;
case 288: /* table_kind ::= NORMAL */
{ yymsp[0].minor.yy33 = SHOW_KIND_TABLES_NORMAL; }
break;
case 289: /* table_kind ::= CHILD */
{ yymsp[0].minor.yy33 = SHOW_KIND_TABLES_CHILD; }
break;
case 290: /* db_name_cond_opt ::= */
case 295: /* from_db_opt ::= */ yytestcase(yyruleno==295);
{ yymsp[1].minor.yy56 = createDefaultDatabaseCondValue(pCxt); }
break;
case 291: /* db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy56 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy785); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 293: /* like_pattern_opt ::= LIKE NK_STRING */
{ yymsp[-1].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
break;
case 294: /* table_name_cond ::= table_name */
{ yylhsminor.yy56 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 296: /* from_db_opt ::= FROM db_name */
{ yymsp[-1].minor.yy56 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785); }
break;
case 300: /* tag_item ::= TBNAME */
{ yylhsminor.yy56 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 303: /* tag_item ::= column_name column_alias */
{ yylhsminor.yy56 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy785), &yymsp[0].minor.yy785); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 304: /* tag_item ::= column_name AS column_alias */
{ yylhsminor.yy56 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy785), &yymsp[0].minor.yy785); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 305: /* db_kind_opt ::= */
{ yymsp[1].minor.yy33 = SHOW_KIND_ALL; }
break;
case 306: /* db_kind_opt ::= USER */
{ yymsp[0].minor.yy33 = SHOW_KIND_DATABASES_USER; }
break;
case 307: /* db_kind_opt ::= SYSTEM */
{ yymsp[0].minor.yy33 = SHOW_KIND_DATABASES_SYSTEM; }
break;
case 308: /* 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.yy425, yymsp[-3].minor.yy56, yymsp[-1].minor.yy56, NULL, yymsp[0].minor.yy56); }
break;
case 309: /* 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.yy425, yymsp[-5].minor.yy56, yymsp[-3].minor.yy56, yymsp[-1].minor.yy712, NULL); }
break;
case 310: /* cmd ::= DROP INDEX exists_opt full_index_name */
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy425, yymsp[0].minor.yy56); }
break;
case 311: /* full_index_name ::= index_name */
{ yylhsminor.yy56 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy785); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 312: /* full_index_name ::= db_name NK_DOT index_name */
{ yylhsminor.yy56 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 313: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
{ yymsp[-9].minor.yy56 = createIndexOption(pCxt, yymsp[-7].minor.yy712, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), NULL, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); }
break;
case 314: /* 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.yy56 = createIndexOption(pCxt, yymsp[-9].minor.yy712, releaseRawExprNode(pCxt, yymsp[-5].minor.yy56), releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), yymsp[-1].minor.yy56, yymsp[0].minor.yy56); }
break;
case 317: /* func ::= sma_func_name NK_LP expression_list NK_RP */
{ yylhsminor.yy56 = createFunctionNode(pCxt, &yymsp[-3].minor.yy785, yymsp[-1].minor.yy712); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 318: /* sma_func_name ::= function_name */
case 537: /* alias_opt ::= table_alias */ yytestcase(yyruleno==537);
{ yylhsminor.yy785 = yymsp[0].minor.yy785; }
yymsp[0].minor.yy785 = yylhsminor.yy785;
break;
case 323: /* sma_stream_opt ::= */
case 364: /* stream_options ::= */ yytestcase(yyruleno==364);
{ yymsp[1].minor.yy56 = createStreamOptions(pCxt); }
break;
case 324: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy56)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = yymsp[-2].minor.yy56; }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 325: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy56)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = yymsp[-2].minor.yy56; }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 326: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy56)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = yymsp[-2].minor.yy56; }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 327: /* with_meta ::= AS */
{ yymsp[0].minor.yy676 = 0; }
break;
case 328: /* with_meta ::= WITH META AS */
{ yymsp[-2].minor.yy676 = 1; }
break;
case 329: /* with_meta ::= ONLY META AS */
{ yymsp[-2].minor.yy676 = 2; }
break;
case 330: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy425, &yymsp[-2].minor.yy785, yymsp[0].minor.yy56); }
break;
case 331: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy425, &yymsp[-3].minor.yy785, &yymsp[0].minor.yy785, yymsp[-2].minor.yy676); }
break;
case 332: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy425, &yymsp[-4].minor.yy785, yymsp[-1].minor.yy56, yymsp[-3].minor.yy676, yymsp[0].minor.yy56); }
break;
case 333: /* cmd ::= DROP TOPIC exists_opt topic_name */
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); }
break;
case 334: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy425, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785); }
break;
case 335: /* cmd ::= DESC full_table_name */
case 336: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==336);
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy56); }
break;
case 337: /* cmd ::= RESET QUERY CACHE */
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
break;
case 338: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
case 339: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==339);
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy425, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); }
break;
case 342: /* explain_options ::= */
{ yymsp[1].minor.yy56 = createDefaultExplainOptions(pCxt); }
break;
case 343: /* explain_options ::= explain_options VERBOSE NK_BOOL */
{ yylhsminor.yy56 = setExplainVerbose(pCxt, yymsp[-2].minor.yy56, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 344: /* explain_options ::= explain_options RATIO NK_FLOAT */
{ yylhsminor.yy56 = setExplainRatio(pCxt, yymsp[-2].minor.yy56, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 345: /* 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.yy425, yymsp[-9].minor.yy425, &yymsp[-6].minor.yy785, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy448, yymsp[-1].minor.yy676, &yymsp[0].minor.yy785, yymsp[-10].minor.yy425); }
break;
case 346: /* cmd ::= DROP FUNCTION exists_opt function_name */
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); }
break;
case 351: /* language_opt ::= */
case 385: /* on_vgroup_id ::= */ yytestcase(yyruleno==385);
{ yymsp[1].minor.yy785 = nil_token; }
break;
case 352: /* language_opt ::= LANGUAGE NK_STRING */
case 386: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==386);
{ yymsp[-1].minor.yy785 = yymsp[0].minor.yy0; }
break;
case 355: /* 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.yy425, &yymsp[-8].minor.yy785, yymsp[-5].minor.yy56, yymsp[-7].minor.yy56, yymsp[-3].minor.yy712, yymsp[-2].minor.yy56, yymsp[0].minor.yy56, yymsp[-4].minor.yy712); }
break;
case 356: /* cmd ::= DROP STREAM exists_opt stream_name */
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); }
break;
case 357: /* cmd ::= PAUSE STREAM exists_opt stream_name */
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); }
break;
case 358: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy425, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); }
break;
case 365: /* stream_options ::= stream_options TRIGGER AT_ONCE */
case 366: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==366);
{ yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-2].minor.yy56, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 367: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
{ yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-3].minor.yy56, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 368: /* stream_options ::= stream_options WATERMARK duration_literal */
{ yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-2].minor.yy56, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 369: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
{ yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-3].minor.yy56, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 370: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
{ yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-2].minor.yy56, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 371: /* stream_options ::= stream_options DELETE_MARK duration_literal */
{ yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-2].minor.yy56, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 372: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
{ yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-3].minor.yy56, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 374: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
case 575: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==575);
case 599: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==599);
{ yymsp[-3].minor.yy56 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy56); }
break;
case 377: /* cmd ::= KILL CONNECTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
break;
case 378: /* cmd ::= KILL QUERY NK_STRING */
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
break;
case 379: /* cmd ::= KILL TRANSACTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
break;
case 380: /* cmd ::= BALANCE VGROUP */
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
break;
case 381: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy785); }
break;
case 382: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 383: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy712); }
break;
case 384: /* cmd ::= SPLIT VGROUP NK_INTEGER */
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
break;
case 387: /* dnode_list ::= DNODE NK_INTEGER */
{ yymsp[-1].minor.yy712 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
break;
case 389: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); }
break;
case 392: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
{ yymsp[-6].minor.yy56 = createInsertStmt(pCxt, yymsp[-4].minor.yy56, yymsp[-2].minor.yy712, yymsp[0].minor.yy56); }
break;
case 393: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
{ yymsp[-3].minor.yy56 = createInsertStmt(pCxt, yymsp[-1].minor.yy56, NULL, yymsp[0].minor.yy56); }
break;
case 394: /* literal ::= NK_INTEGER */
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 395: /* literal ::= NK_FLOAT */
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 396: /* literal ::= NK_STRING */
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 397: /* literal ::= NK_BOOL */
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 398: /* literal ::= TIMESTAMP NK_STRING */
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 399: /* literal ::= duration_literal */
case 409: /* signed_literal ::= signed */ yytestcase(yyruleno==409);
case 431: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==431);
case 432: /* expression ::= literal */ yytestcase(yyruleno==432);
case 434: /* expression ::= column_reference */ yytestcase(yyruleno==434);
case 435: /* expression ::= function_expression */ yytestcase(yyruleno==435);
case 436: /* expression ::= case_when_expression */ yytestcase(yyruleno==436);
case 469: /* function_expression ::= literal_func */ yytestcase(yyruleno==469);
case 518: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==518);
case 522: /* boolean_primary ::= predicate */ yytestcase(yyruleno==522);
case 524: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==524);
case 525: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==525);
case 528: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==528);
case 530: /* table_reference ::= table_primary */ yytestcase(yyruleno==530);
case 531: /* table_reference ::= joined_table */ yytestcase(yyruleno==531);
case 535: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==535);
case 601: /* query_simple ::= query_specification */ yytestcase(yyruleno==601);
case 602: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==602);
case 605: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==605);
case 607: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==607);
{ yylhsminor.yy56 = yymsp[0].minor.yy56; }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 400: /* literal ::= NULL */
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 401: /* literal ::= NK_QUESTION */
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 402: /* duration_literal ::= NK_VARIABLE */
case 576: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==576);
case 577: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==577);
case 578: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==578);
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 403: /* signed ::= NK_INTEGER */
{ yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 404: /* signed ::= NK_PLUS NK_INTEGER */
{ yymsp[-1].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
break;
case 405: /* 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.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
}
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 406: /* signed ::= NK_FLOAT */
{ yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 407: /* signed ::= NK_PLUS NK_FLOAT */
{ yymsp[-1].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
break;
case 408: /* 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.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
}
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 410: /* signed_literal ::= NK_STRING */
{ yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 411: /* signed_literal ::= NK_BOOL */
{ yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 412: /* signed_literal ::= TIMESTAMP NK_STRING */
{ yymsp[-1].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 413: /* signed_literal ::= duration_literal */
case 415: /* signed_literal ::= literal_func */ yytestcase(yyruleno==415);
case 489: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==489);
case 555: /* select_item ::= common_expression */ yytestcase(yyruleno==555);
case 565: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==565);
case 606: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==606);
case 608: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==608);
case 621: /* search_condition ::= common_expression */ yytestcase(yyruleno==621);
{ yylhsminor.yy56 = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 414: /* signed_literal ::= NULL */
{ yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 416: /* signed_literal ::= NK_QUESTION */
{ yylhsminor.yy56 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 433: /* expression ::= pseudo_column */
{ yylhsminor.yy56 = yymsp[0].minor.yy56; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy56, true); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 437: /* expression ::= NK_LP expression NK_RP */
case 523: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==523);
case 620: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==620);
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 438: /* expression ::= NK_PLUS expr_or_subquery */
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy56));
}
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 439: /* expression ::= NK_MINUS expr_or_subquery */
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy56), NULL));
}
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 440: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 441: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 442: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 443: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 444: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 445: /* expression ::= column_reference NK_ARROW NK_STRING */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 446: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 447: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 450: /* column_reference ::= column_name */
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy785, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy785)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 451: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785, createColumnNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785)); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 452: /* column_reference ::= NK_ALIAS */
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 453: /* column_reference ::= table_name NK_DOT NK_ALIAS */
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 454: /* pseudo_column ::= ROWTS */
case 455: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==455);
case 457: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==457);
case 458: /* pseudo_column ::= QEND */ yytestcase(yyruleno==458);
case 459: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==459);
case 460: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==460);
case 461: /* pseudo_column ::= WEND */ yytestcase(yyruleno==461);
case 462: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==462);
case 463: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==463);
case 464: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==464);
case 465: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==465);
case 471: /* literal_func ::= NOW */ yytestcase(yyruleno==471);
{ yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 456: /* pseudo_column ::= table_name NK_DOT TBNAME */
{ yylhsminor.yy56 = 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.yy56 = yylhsminor.yy56;
break;
case 466: /* function_expression ::= function_name NK_LP expression_list NK_RP */
case 467: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==467);
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy785, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy785, yymsp[-1].minor.yy712)); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 468: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), yymsp[-1].minor.yy448)); }
yymsp[-5].minor.yy56 = yylhsminor.yy56;
break;
case 470: /* literal_func ::= noarg_func NK_LP NK_RP */
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy785, NULL)); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 485: /* star_func_para_list ::= NK_STAR */
{ yylhsminor.yy712 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy712 = yylhsminor.yy712;
break;
case 490: /* star_func_para ::= table_name NK_DOT NK_STAR */
case 558: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==558);
{ yylhsminor.yy56 = createColumnNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 491: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy712, yymsp[-1].minor.yy56)); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 492: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), yymsp[-2].minor.yy712, yymsp[-1].minor.yy56)); }
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 495: /* when_then_expr ::= WHEN common_expression THEN common_expression */
{ yymsp[-3].minor.yy56 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); }
break;
case 497: /* case_when_else_opt ::= ELSE common_expression */
{ yymsp[-1].minor.yy56 = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); }
break;
case 498: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
case 503: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==503);
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy380, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 499: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy56), releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-4].minor.yy56 = yylhsminor.yy56;
break;
case 500: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy56), releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-5].minor.yy56 = yylhsminor.yy56;
break;
case 501: /* predicate ::= expr_or_subquery IS NULL */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), NULL));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 502: /* predicate ::= expr_or_subquery IS NOT NULL */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), NULL));
}
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 504: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy380 = OP_TYPE_LOWER_THAN; }
break;
case 505: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy380 = OP_TYPE_GREATER_THAN; }
break;
case 506: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy380 = OP_TYPE_LOWER_EQUAL; }
break;
case 507: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy380 = OP_TYPE_GREATER_EQUAL; }
break;
case 508: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy380 = OP_TYPE_NOT_EQUAL; }
break;
case 509: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy380 = OP_TYPE_EQUAL; }
break;
case 510: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy380 = OP_TYPE_LIKE; }
break;
case 511: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy380 = OP_TYPE_NOT_LIKE; }
break;
case 512: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy380 = OP_TYPE_MATCH; }
break;
case 513: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy380 = OP_TYPE_NMATCH; }
break;
case 514: /* compare_op ::= CONTAINS */
{ yymsp[0].minor.yy380 = OP_TYPE_JSON_CONTAINS; }
break;
case 515: /* in_op ::= IN */
{ yymsp[0].minor.yy380 = OP_TYPE_IN; }
break;
case 516: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy380 = OP_TYPE_NOT_IN; }
break;
case 517: /* in_predicate_value ::= NK_LP literal_list NK_RP */
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy712)); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 519: /* boolean_value_expression ::= NOT boolean_primary */
{
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy56), NULL));
}
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 520: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 521: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56);
yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)));
}
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 529: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy56 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy56, yymsp[0].minor.yy56, NULL); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 532: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy56 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 533: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy56 = createRealTableNode(pCxt, &yymsp[-3].minor.yy785, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 534: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy56 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56), &yymsp[0].minor.yy785); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 536: /* alias_opt ::= */
{ yymsp[1].minor.yy785 = nil_token; }
break;
case 538: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy785 = yymsp[0].minor.yy785; }
break;
case 539: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 540: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==540);
{ yymsp[-2].minor.yy56 = yymsp[-1].minor.yy56; }
break;
case 541: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ yylhsminor.yy56 = createJoinTableNode(pCxt, yymsp[-4].minor.yy36, yymsp[-5].minor.yy56, yymsp[-2].minor.yy56, yymsp[0].minor.yy56); }
yymsp[-5].minor.yy56 = yylhsminor.yy56;
break;
case 542: /* join_type ::= */
{ yymsp[1].minor.yy36 = JOIN_TYPE_INNER; }
break;
case 543: /* join_type ::= INNER */
{ yymsp[0].minor.yy36 = JOIN_TYPE_INNER; }
break;
case 544: /* 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.yy56 = createSelectStmt(pCxt, yymsp[-11].minor.yy425, yymsp[-9].minor.yy712, yymsp[-8].minor.yy56, yymsp[-12].minor.yy712);
yymsp[-13].minor.yy56 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy56, yymsp[-10].minor.yy425);
yymsp[-13].minor.yy56 = addWhereClause(pCxt, yymsp[-13].minor.yy56, yymsp[-7].minor.yy56);
yymsp[-13].minor.yy56 = addPartitionByClause(pCxt, yymsp[-13].minor.yy56, yymsp[-6].minor.yy712);
yymsp[-13].minor.yy56 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy56, yymsp[-2].minor.yy56);
yymsp[-13].minor.yy56 = addGroupByClause(pCxt, yymsp[-13].minor.yy56, yymsp[-1].minor.yy712);
yymsp[-13].minor.yy56 = addHavingClause(pCxt, yymsp[-13].minor.yy56, yymsp[0].minor.yy56);
yymsp[-13].minor.yy56 = addRangeClause(pCxt, yymsp[-13].minor.yy56, yymsp[-5].minor.yy56);
yymsp[-13].minor.yy56 = addEveryClause(pCxt, yymsp[-13].minor.yy56, yymsp[-4].minor.yy56);
yymsp[-13].minor.yy56 = addFillClause(pCxt, yymsp[-13].minor.yy56, yymsp[-3].minor.yy56);
}
break;
case 545: /* hint_list ::= */
{ yymsp[1].minor.yy712 = createHintNodeList(pCxt, NULL); }
break;
case 546: /* hint_list ::= NK_HINT */
{ yylhsminor.yy712 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy712 = yylhsminor.yy712;
break;
case 551: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy425 = false; }
break;
case 554: /* select_item ::= NK_STAR */
{ yylhsminor.yy56 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy56 = yylhsminor.yy56;
break;
case 556: /* select_item ::= common_expression column_alias */
case 566: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==566);
{ yylhsminor.yy56 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56), &yymsp[0].minor.yy785); }
yymsp[-1].minor.yy56 = yylhsminor.yy56;
break;
case 557: /* select_item ::= common_expression AS column_alias */
case 567: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==567);
{ yylhsminor.yy56 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), &yymsp[0].minor.yy785); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 562: /* partition_by_clause_opt ::= PARTITION BY partition_list */
case 590: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==590);
case 610: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==610);
{ yymsp[-2].minor.yy712 = yymsp[0].minor.yy712; }
break;
case 569: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
{ yymsp[-5].minor.yy56 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); }
break;
case 570: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy56 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); }
break;
case 571: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy56 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), NULL, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); }
break;
case 572: /* 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.yy56 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy56), releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), yymsp[-1].minor.yy56, yymsp[0].minor.yy56); }
break;
case 573: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
{ yymsp[-6].minor.yy56 = createEventWindowNode(pCxt, yymsp[-3].minor.yy56, yymsp[0].minor.yy56); }
break;
case 580: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy56 = createFillNode(pCxt, yymsp[-1].minor.yy774, NULL); }
break;
case 581: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy56 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy712)); }
break;
case 582: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy56 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy712)); }
break;
case 583: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy774 = FILL_MODE_NONE; }
break;
case 584: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy774 = FILL_MODE_PREV; }
break;
case 585: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy774 = FILL_MODE_NULL; }
break;
case 586: /* fill_mode ::= NULL_F */
{ yymsp[0].minor.yy774 = FILL_MODE_NULL_F; }
break;
case 587: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy774 = FILL_MODE_LINEAR; }
break;
case 588: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy774 = FILL_MODE_NEXT; }
break;
case 591: /* group_by_list ::= expr_or_subquery */
{ yylhsminor.yy712 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); }
yymsp[0].minor.yy712 = yylhsminor.yy712;
break;
case 592: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); }
yymsp[-2].minor.yy712 = yylhsminor.yy712;
break;
case 596: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
{ yymsp[-5].minor.yy56 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); }
break;
case 597: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy56 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); }
break;
case 600: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
{
yylhsminor.yy56 = addOrderByClause(pCxt, yymsp[-3].minor.yy56, yymsp[-2].minor.yy712);
yylhsminor.yy56 = addSlimitClause(pCxt, yylhsminor.yy56, yymsp[-1].minor.yy56);
yylhsminor.yy56 = addLimitClause(pCxt, yylhsminor.yy56, yymsp[0].minor.yy56);
}
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 603: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
{ yylhsminor.yy56 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy56, yymsp[0].minor.yy56); }
yymsp[-3].minor.yy56 = yylhsminor.yy56;
break;
case 604: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
{ yylhsminor.yy56 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy56, yymsp[0].minor.yy56); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 612: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
case 616: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==616);
{ yymsp[-1].minor.yy56 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
case 613: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 617: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==617);
{ yymsp[-3].minor.yy56 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 614: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 618: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==618);
{ yymsp[-3].minor.yy56 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
break;
case 619: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy56); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 624: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy56 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), yymsp[-1].minor.yy722, yymsp[0].minor.yy361); }
yymsp[-2].minor.yy56 = yylhsminor.yy56;
break;
case 625: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy722 = ORDER_ASC; }
break;
case 626: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy722 = ORDER_ASC; }
break;
case 627: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy722 = ORDER_DESC; }
break;
case 628: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy361 = NULL_ORDER_DEFAULT; }
break;
case 629: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy361 = NULL_ORDER_FIRST; }
break;
case 630: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy361 = NULL_ORDER_LAST; }
break;
default:
break;
/********** End reduce actions ************************************************/
};
assert( yyruleno<sizeof(yyRuleInfoLhs)/sizeof(yyRuleInfoLhs[0]) );
yygoto = yyRuleInfoLhs[yyruleno];
yysize = yyRuleInfoNRhs[yyruleno];
yyact = yy_find_reduce_action(yymsp[yysize].stateno,(YYCODETYPE)yygoto);
/* There are no SHIFTREDUCE actions on nonterminals because the table
** generator has simplified them to pure REDUCE actions. */
assert( !(yyact>YY_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:
** <ul>
** <li> A pointer to the parser (an opaque structure.)
** <li> The major token number.
** <li> The minor token number.
** <li> An option argument of a grammar-specified type.
** </ul>
**
** 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
}