6537 lines
339 KiB
C
6537 lines
339 KiB
C
/*
|
|
** 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 489
|
|
#define YYACTIONTYPE unsigned short int
|
|
#define ParseTOKENTYPE SToken
|
|
typedef union {
|
|
int yyinit;
|
|
ParseTOKENTYPE yy0;
|
|
SAlterOption yy23;
|
|
EJoinType yy24;
|
|
EOrder yy44;
|
|
bool yy83;
|
|
SNodeList* yy88;
|
|
int64_t yy159;
|
|
STokenPair yy303;
|
|
SDataType yy394;
|
|
ENullOrder yy409;
|
|
EOperatorType yy464;
|
|
EFillMode yy498;
|
|
SNode* yy698;
|
|
int32_t yy724;
|
|
SToken yy731;
|
|
int8_t yy821;
|
|
} 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 799
|
|
#define YYNRULE 603
|
|
#define YYNRULE_WITH_ACTION 603
|
|
#define YYNTOKEN 339
|
|
#define YY_MAX_SHIFT 798
|
|
#define YY_MIN_SHIFTREDUCE 1180
|
|
#define YY_MAX_SHIFTREDUCE 1782
|
|
#define YY_ERROR_ACTION 1783
|
|
#define YY_ACCEPT_ACTION 1784
|
|
#define YY_NO_ACTION 1785
|
|
#define YY_MIN_REDUCE 1786
|
|
#define YY_MAX_REDUCE 2388
|
|
/************* 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 (3035)
|
|
static const YYACTIONTYPE yy_action[] = {
|
|
/* 0 */ 734, 2197, 2175, 531, 2017, 2158, 532, 1822, 90, 450,
|
|
/* 10 */ 364, 704, 48, 46, 1709, 169, 2183, 1798, 2015, 181,
|
|
/* 20 */ 398, 2086, 1556, 41, 40, 368, 2179, 47, 45, 44,
|
|
/* 30 */ 43, 42, 66, 1637, 1958, 1554, 2084, 674, 366, 2069,
|
|
/* 40 */ 2215, 2130, 41, 40, 1315, 2086, 47, 45, 44, 43,
|
|
/* 50 */ 42, 2165, 627, 703, 345, 2359, 2175, 391, 401, 2197,
|
|
/* 60 */ 2083, 674, 1632, 686, 2181, 395, 1965, 163, 19, 667,
|
|
/* 70 */ 1954, 2365, 188, 380, 697, 1562, 2360, 653, 30, 2300,
|
|
/* 80 */ 2179, 2015, 652, 358, 1317, 2359, 1581, 2196, 2364, 2232,
|
|
/* 90 */ 250, 2359, 170, 2198, 707, 2200, 2201, 702, 2215, 697,
|
|
/* 100 */ 795, 651, 188, 15, 536, 2297, 2360, 653, 2363, 2165,
|
|
/* 110 */ 533, 703, 2360, 2362, 38, 303, 48, 46, 2181, 47,
|
|
/* 120 */ 45, 44, 43, 42, 398, 686, 1556, 1666, 697, 687,
|
|
/* 130 */ 1963, 62, 62, 628, 2324, 407, 406, 1637, 1749, 1554,
|
|
/* 140 */ 1639, 1640, 1581, 207, 1941, 2196, 51, 2232, 103, 135,
|
|
/* 150 */ 112, 2198, 707, 2200, 2201, 702, 571, 697, 1563, 221,
|
|
/* 160 */ 687, 1963, 185, 534, 2285, 1829, 1632, 673, 394, 2281,
|
|
/* 170 */ 1612, 1622, 19, 1956, 687, 1963, 1638, 1641, 548, 1562,
|
|
/* 180 */ 135, 168, 190, 86, 1667, 1787, 85, 576, 149, 1904,
|
|
/* 190 */ 2313, 1557, 125, 1555, 193, 124, 123, 122, 121, 120,
|
|
/* 200 */ 119, 118, 117, 116, 795, 2048, 125, 15, 2197, 124,
|
|
/* 210 */ 123, 122, 121, 120, 119, 118, 117, 116, 704, 546,
|
|
/* 220 */ 689, 2079, 2257, 1560, 1561, 1786, 1611, 1614, 1615, 1616,
|
|
/* 230 */ 1617, 1618, 1619, 1620, 1621, 699, 695, 1630, 1631, 1633,
|
|
/* 240 */ 1634, 1635, 1636, 2, 1639, 1640, 1326, 2215, 1582, 134,
|
|
/* 250 */ 133, 132, 131, 130, 129, 128, 127, 126, 2165, 1325,
|
|
/* 260 */ 703, 744, 37, 396, 1661, 1662, 1663, 1664, 1665, 1669,
|
|
/* 270 */ 1670, 1671, 1672, 539, 1612, 1622, 532, 1822, 41, 40,
|
|
/* 280 */ 1638, 1641, 47, 45, 44, 43, 42, 248, 285, 285,
|
|
/* 290 */ 1584, 247, 1465, 1466, 2196, 1557, 2232, 1555, 184, 112,
|
|
/* 300 */ 2198, 707, 2200, 2201, 702, 642, 697, 2151, 1713, 147,
|
|
/* 310 */ 2004, 155, 2256, 2285, 1581, 2197, 1566, 394, 2281, 403,
|
|
/* 320 */ 694, 1809, 2010, 2012, 503, 667, 146, 1560, 1561, 2256,
|
|
/* 330 */ 1611, 1614, 1615, 1616, 1617, 1618, 1619, 1620, 1621, 699,
|
|
/* 340 */ 695, 1630, 1631, 1633, 1634, 1635, 1636, 2, 12, 48,
|
|
/* 350 */ 46, 691, 93, 2257, 2215, 353, 420, 398, 378, 1556,
|
|
/* 360 */ 605, 1372, 664, 144, 472, 2165, 672, 703, 1407, 1408,
|
|
/* 370 */ 1637, 2165, 1554, 471, 673, 664, 144, 1363, 732, 731,
|
|
/* 380 */ 730, 1367, 729, 1369, 1370, 728, 725, 2364, 1378, 722,
|
|
/* 390 */ 1380, 1381, 719, 716, 713, 9, 648, 643, 636, 1632,
|
|
/* 400 */ 647, 2196, 646, 2232, 1583, 19, 112, 2198, 707, 2200,
|
|
/* 410 */ 2201, 702, 1562, 697, 589, 588, 587, 1213, 185, 181,
|
|
/* 420 */ 2285, 579, 141, 583, 394, 2281, 671, 582, 2079, 664,
|
|
/* 430 */ 144, 2215, 581, 586, 374, 373, 2363, 795, 580, 2070,
|
|
/* 440 */ 15, 1737, 262, 494, 41, 40, 2314, 603, 47, 45,
|
|
/* 450 */ 44, 43, 42, 48, 46, 1642, 1215, 594, 1218, 1219,
|
|
/* 460 */ 601, 398, 599, 1556, 1613, 666, 186, 2293, 2294, 1668,
|
|
/* 470 */ 142, 2298, 604, 626, 1637, 1658, 1554, 1639, 1640, 187,
|
|
/* 480 */ 2293, 2294, 444, 142, 2298, 645, 246, 443, 1772, 639,
|
|
/* 490 */ 638, 1735, 1736, 1738, 1739, 1740, 1808, 687, 1963, 612,
|
|
/* 500 */ 2197, 686, 597, 1632, 212, 211, 52, 1612, 1622, 591,
|
|
/* 510 */ 704, 12, 1831, 1638, 1641, 245, 1562, 56, 41, 40,
|
|
/* 520 */ 664, 144, 47, 45, 44, 43, 42, 493, 1557, 627,
|
|
/* 530 */ 1555, 673, 2359, 189, 2293, 2294, 1562, 142, 2298, 2215,
|
|
/* 540 */ 1581, 795, 687, 1963, 49, 2017, 2165, 35, 2365, 188,
|
|
/* 550 */ 2165, 379, 703, 2360, 653, 70, 284, 1673, 69, 2015,
|
|
/* 560 */ 1560, 1561, 448, 1611, 1614, 1615, 1616, 1617, 1618, 1619,
|
|
/* 570 */ 1620, 1621, 699, 695, 1630, 1631, 1633, 1634, 1635, 1636,
|
|
/* 580 */ 2, 1639, 1640, 682, 51, 2079, 2196, 1238, 2232, 1237,
|
|
/* 590 */ 735, 112, 2198, 707, 2200, 2201, 702, 60, 697, 44,
|
|
/* 600 */ 43, 42, 140, 2379, 624, 2285, 2197, 687, 1963, 394,
|
|
/* 610 */ 2281, 1612, 1622, 392, 1748, 1700, 704, 1638, 1641, 1779,
|
|
/* 620 */ 1239, 1965, 166, 62, 282, 2293, 663, 449, 136, 662,
|
|
/* 630 */ 2017, 2359, 1557, 432, 1555, 41, 40, 1706, 528, 47,
|
|
/* 640 */ 45, 44, 43, 42, 2016, 2215, 526, 651, 188, 522,
|
|
/* 650 */ 518, 223, 2360, 653, 371, 534, 2165, 1829, 703, 1583,
|
|
/* 660 */ 434, 430, 1807, 285, 1560, 1561, 754, 1611, 1614, 1615,
|
|
/* 670 */ 1616, 1617, 1618, 1619, 1620, 1621, 699, 695, 1630, 1631,
|
|
/* 680 */ 1633, 1634, 1635, 1636, 2, 48, 46, 454, 2065, 255,
|
|
/* 690 */ 62, 2300, 2196, 398, 2232, 1556, 698, 112, 2198, 707,
|
|
/* 700 */ 2200, 2201, 702, 258, 697, 1330, 1637, 1799, 1554, 2260,
|
|
/* 710 */ 2197, 2285, 2165, 237, 655, 394, 2281, 2296, 1329, 2175,
|
|
/* 720 */ 704, 1806, 1778, 372, 1805, 370, 369, 736, 573, 173,
|
|
/* 730 */ 2008, 1725, 575, 2184, 202, 1632, 2197, 565, 561, 557,
|
|
/* 740 */ 553, 285, 236, 2179, 742, 1784, 704, 2017, 1562, 2215,
|
|
/* 750 */ 575, 41, 40, 388, 574, 47, 45, 44, 43, 42,
|
|
/* 760 */ 2165, 2015, 703, 160, 159, 739, 738, 737, 157, 460,
|
|
/* 770 */ 2065, 2165, 574, 795, 2165, 2215, 49, 442, 2017, 441,
|
|
/* 780 */ 285, 2181, 91, 505, 393, 234, 2165, 640, 703, 48,
|
|
/* 790 */ 46, 697, 2015, 487, 2065, 2327, 2196, 398, 2232, 1556,
|
|
/* 800 */ 1584, 113, 2198, 707, 2200, 2201, 702, 2300, 697, 440,
|
|
/* 810 */ 1637, 284, 1554, 1639, 1640, 2285, 205, 401, 413, 2284,
|
|
/* 820 */ 2281, 1940, 2196, 412, 2232, 1965, 166, 113, 2198, 707,
|
|
/* 830 */ 2200, 2201, 702, 2295, 697, 687, 1963, 2011, 2012, 1632,
|
|
/* 840 */ 210, 2285, 1582, 1612, 1622, 692, 2281, 285, 1804, 1638,
|
|
/* 850 */ 1641, 1865, 1562, 233, 227, 462, 687, 1963, 14, 13,
|
|
/* 860 */ 232, 544, 687, 1963, 1557, 627, 1555, 652, 2359, 2017,
|
|
/* 870 */ 2359, 1241, 1242, 687, 1963, 402, 477, 795, 740, 225,
|
|
/* 880 */ 15, 2008, 478, 2015, 2365, 188, 651, 188, 1647, 2360,
|
|
/* 890 */ 653, 2360, 653, 547, 1581, 1705, 1560, 1561, 2165, 1611,
|
|
/* 900 */ 1614, 1615, 1616, 1617, 1618, 1619, 1620, 1621, 699, 695,
|
|
/* 910 */ 1630, 1631, 1633, 1634, 1635, 1636, 2, 1639, 1640, 567,
|
|
/* 920 */ 566, 589, 588, 587, 687, 1963, 687, 1963, 579, 141,
|
|
/* 930 */ 583, 687, 1963, 12, 582, 10, 742, 569, 568, 581,
|
|
/* 940 */ 586, 374, 373, 1905, 1960, 580, 251, 1612, 1622, 585,
|
|
/* 950 */ 584, 259, 203, 1638, 1641, 160, 159, 739, 738, 737,
|
|
/* 960 */ 157, 1680, 1482, 1483, 294, 295, 404, 279, 1557, 293,
|
|
/* 970 */ 1555, 687, 1963, 34, 1965, 166, 139, 687, 1963, 41,
|
|
/* 980 */ 40, 1939, 36, 47, 45, 44, 43, 42, 41, 40,
|
|
/* 990 */ 1938, 670, 47, 45, 44, 43, 42, 298, 1481, 1484,
|
|
/* 1000 */ 1560, 1561, 1862, 1611, 1614, 1615, 1616, 1617, 1618, 1619,
|
|
/* 1010 */ 1620, 1621, 699, 695, 1630, 1631, 1633, 1634, 1635, 1636,
|
|
/* 1020 */ 2, 2148, 349, 167, 1579, 687, 1963, 2364, 324, 249,
|
|
/* 1030 */ 2359, 485, 656, 1238, 501, 1237, 90, 500, 687, 1963,
|
|
/* 1040 */ 766, 764, 321, 73, 1613, 684, 72, 2363, 744, 1952,
|
|
/* 1050 */ 166, 2360, 2361, 468, 1803, 502, 1584, 346, 685, 1802,
|
|
/* 1060 */ 470, 54, 1959, 3, 1801, 1581, 1239, 1800, 219, 513,
|
|
/* 1070 */ 511, 508, 772, 771, 770, 769, 410, 273, 768, 767,
|
|
/* 1080 */ 148, 762, 761, 760, 759, 758, 757, 756, 162, 752,
|
|
/* 1090 */ 751, 750, 409, 408, 747, 746, 745, 176, 175, 1527,
|
|
/* 1100 */ 1528, 1218, 1219, 1903, 2165, 742, 367, 1902, 62, 2165,
|
|
/* 1110 */ 687, 1963, 687, 1963, 2165, 41, 40, 2165, 456, 47,
|
|
/* 1120 */ 45, 44, 43, 42, 160, 159, 739, 738, 737, 157,
|
|
/* 1130 */ 304, 1556, 405, 2159, 1948, 166, 1797, 1796, 1950, 166,
|
|
/* 1140 */ 659, 1795, 1946, 166, 1554, 2216, 1794, 111, 498, 1966,
|
|
/* 1150 */ 166, 492, 491, 490, 489, 484, 483, 482, 481, 480,
|
|
/* 1160 */ 476, 475, 474, 473, 348, 465, 464, 463, 1793, 458,
|
|
/* 1170 */ 457, 365, 755, 741, 381, 1925, 2008, 158, 1792, 1791,
|
|
/* 1180 */ 627, 2074, 2197, 2359, 1562, 109, 2165, 2165, 81, 80,
|
|
/* 1190 */ 447, 2165, 704, 200, 2321, 610, 2165, 1221, 1790, 2365,
|
|
/* 1200 */ 188, 1789, 145, 1580, 2360, 653, 439, 437, 261, 795,
|
|
/* 1210 */ 1955, 317, 2305, 1700, 1994, 1613, 411, 347, 2165, 74,
|
|
/* 1220 */ 428, 2215, 451, 426, 422, 418, 415, 440, 2165, 2165,
|
|
/* 1230 */ 1849, 83, 2165, 137, 703, 452, 242, 55, 427, 240,
|
|
/* 1240 */ 1565, 151, 627, 2197, 150, 2359, 244, 668, 2165, 243,
|
|
/* 1250 */ 577, 2165, 590, 704, 153, 2334, 607, 152, 606, 578,
|
|
/* 1260 */ 158, 2365, 188, 1823, 158, 285, 2360, 653, 2196, 84,
|
|
/* 1270 */ 2232, 657, 1313, 112, 2198, 707, 2200, 2201, 702, 165,
|
|
/* 1280 */ 697, 1311, 2215, 1840, 1838, 2379, 1564, 2285, 1272, 50,
|
|
/* 1290 */ 1832, 394, 2281, 2165, 627, 703, 50, 2359, 266, 158,
|
|
/* 1300 */ 1557, 260, 1555, 1781, 1782, 592, 595, 50, 2186, 291,
|
|
/* 1310 */ 71, 2197, 156, 2365, 188, 158, 14, 13, 2360, 653,
|
|
/* 1320 */ 1522, 704, 64, 634, 1525, 50, 1828, 2005, 1273, 2196,
|
|
/* 1330 */ 50, 2232, 1560, 1561, 112, 2198, 707, 2200, 2201, 702,
|
|
/* 1340 */ 790, 697, 2317, 665, 94, 281, 2379, 278, 2285, 1734,
|
|
/* 1350 */ 2215, 711, 394, 2281, 1, 156, 1733, 158, 268, 669,
|
|
/* 1360 */ 5, 2165, 138, 703, 2188, 156, 748, 1479, 414, 296,
|
|
/* 1370 */ 679, 749, 300, 108, 2197, 1356, 419, 362, 436, 1587,
|
|
/* 1380 */ 435, 660, 1674, 105, 704, 1623, 2352, 195, 1291, 196,
|
|
/* 1390 */ 316, 198, 438, 1289, 311, 1503, 1580, 2196, 1568, 2232,
|
|
/* 1400 */ 2197, 1584, 112, 2198, 707, 2200, 2201, 702, 209, 697,
|
|
/* 1410 */ 704, 1385, 2304, 2215, 2379, 1389, 2285, 1396, 453, 455,
|
|
/* 1420 */ 394, 2281, 1394, 459, 2165, 161, 703, 2075, 496, 461,
|
|
/* 1430 */ 466, 1579, 479, 488, 486, 2197, 2067, 495, 497, 2215,
|
|
/* 1440 */ 506, 507, 504, 213, 1567, 704, 214, 509, 510, 216,
|
|
/* 1450 */ 2165, 512, 703, 514, 1585, 529, 4, 537, 530, 540,
|
|
/* 1460 */ 2196, 224, 2232, 538, 1582, 112, 2198, 707, 2200, 2201,
|
|
/* 1470 */ 702, 1586, 697, 541, 2215, 542, 226, 2379, 1588, 2285,
|
|
/* 1480 */ 229, 543, 549, 394, 2281, 2165, 2196, 703, 2232, 545,
|
|
/* 1490 */ 231, 112, 2198, 707, 2200, 2201, 702, 88, 697, 570,
|
|
/* 1500 */ 89, 407, 406, 2379, 2197, 2285, 235, 572, 1953, 394,
|
|
/* 1510 */ 2281, 1570, 114, 239, 704, 352, 1949, 2139, 609, 241,
|
|
/* 1520 */ 2136, 2196, 1637, 2232, 1563, 1951, 112, 2198, 707, 2200,
|
|
/* 1530 */ 2201, 702, 2197, 697, 1947, 2135, 92, 252, 2258, 616,
|
|
/* 1540 */ 2285, 154, 704, 2215, 394, 2281, 312, 611, 615, 256,
|
|
/* 1550 */ 614, 1632, 619, 622, 2165, 1510, 703, 631, 621, 2318,
|
|
/* 1560 */ 2333, 254, 2328, 641, 1562, 677, 264, 2197, 620, 637,
|
|
/* 1570 */ 384, 2215, 2332, 267, 644, 8, 2307, 701, 650, 272,
|
|
/* 1580 */ 632, 174, 2165, 630, 703, 277, 629, 274, 385, 693,
|
|
/* 1590 */ 2196, 1700, 2232, 661, 2382, 112, 2198, 707, 2200, 2201,
|
|
/* 1600 */ 702, 658, 697, 1583, 1589, 2358, 2215, 690, 276, 2285,
|
|
/* 1610 */ 143, 1703, 2301, 394, 2281, 275, 2080, 2165, 705, 703,
|
|
/* 1620 */ 2232, 313, 178, 113, 2198, 707, 2200, 2201, 702, 314,
|
|
/* 1630 */ 697, 280, 191, 286, 98, 675, 676, 2285, 680, 2094,
|
|
/* 1640 */ 2093, 357, 2281, 100, 681, 102, 1964, 61, 2092, 390,
|
|
/* 1650 */ 315, 2266, 104, 2196, 2009, 2232, 709, 318, 339, 2198,
|
|
/* 1660 */ 707, 2200, 2201, 702, 700, 697, 688, 2250, 1926, 791,
|
|
/* 1670 */ 307, 792, 794, 342, 322, 354, 53, 327, 2157, 341,
|
|
/* 1680 */ 1571, 355, 1566, 320, 2197, 2156, 2155, 78, 331, 2152,
|
|
/* 1690 */ 416, 417, 1547, 1548, 704, 194, 421, 2150, 423, 424,
|
|
/* 1700 */ 425, 2149, 363, 2147, 2197, 429, 2146, 2145, 433, 431,
|
|
/* 1710 */ 1538, 2126, 1574, 1576, 704, 197, 2125, 199, 1506, 79,
|
|
/* 1720 */ 1505, 2107, 2106, 2215, 2105, 695, 1630, 1631, 1633, 1634,
|
|
/* 1730 */ 1635, 1636, 445, 446, 2165, 2104, 703, 2103, 1456, 2058,
|
|
/* 1740 */ 2057, 2054, 201, 2215, 2053, 2052, 82, 2051, 2056, 204,
|
|
/* 1750 */ 2055, 2050, 2049, 2047, 2165, 2197, 703, 2046, 2045, 206,
|
|
/* 1760 */ 467, 2044, 469, 2060, 2043, 704, 2042, 2041, 2040, 2039,
|
|
/* 1770 */ 2196, 2038, 2232, 2037, 2036, 171, 2198, 707, 2200, 2201,
|
|
/* 1780 */ 702, 2035, 697, 2034, 2033, 2032, 2031, 2030, 2029, 208,
|
|
/* 1790 */ 2196, 2028, 2232, 2027, 2215, 113, 2198, 707, 2200, 2201,
|
|
/* 1800 */ 702, 87, 697, 2026, 2025, 2165, 182, 703, 2059, 2285,
|
|
/* 1810 */ 2024, 2023, 1458, 2197, 2282, 2022, 2021, 2020, 499, 2019,
|
|
/* 1820 */ 2018, 1327, 1331, 704, 350, 351, 1868, 654, 2380, 2197,
|
|
/* 1830 */ 1323, 1867, 215, 1866, 217, 1864, 1861, 218, 516, 704,
|
|
/* 1840 */ 515, 2196, 1860, 2232, 2197, 520, 170, 2198, 707, 2200,
|
|
/* 1850 */ 2201, 702, 2215, 697, 704, 1853, 382, 517, 519, 1842,
|
|
/* 1860 */ 521, 524, 523, 2165, 2197, 703, 1818, 525, 2215, 527,
|
|
/* 1870 */ 1220, 220, 383, 1817, 704, 2124, 76, 2185, 2114, 2165,
|
|
/* 1880 */ 222, 703, 77, 2215, 2102, 183, 535, 228, 2325, 2101,
|
|
/* 1890 */ 230, 2078, 1942, 1863, 2165, 550, 703, 1859, 551, 2196,
|
|
/* 1900 */ 552, 2232, 1857, 2215, 340, 2198, 707, 2200, 2201, 702,
|
|
/* 1910 */ 1265, 697, 554, 555, 2165, 2196, 703, 2232, 556, 1855,
|
|
/* 1920 */ 340, 2198, 707, 2200, 2201, 702, 560, 697, 1852, 558,
|
|
/* 1930 */ 2196, 559, 2232, 2197, 562, 333, 2198, 707, 2200, 2201,
|
|
/* 1940 */ 702, 1837, 697, 704, 564, 563, 1835, 1836, 1834, 1814,
|
|
/* 1950 */ 2196, 1944, 2232, 1401, 238, 171, 2198, 707, 2200, 2201,
|
|
/* 1960 */ 702, 2197, 697, 63, 1400, 1943, 1314, 1312, 1310, 1309,
|
|
/* 1970 */ 1308, 701, 2215, 1307, 1306, 1303, 389, 1301, 1302, 649,
|
|
/* 1980 */ 763, 765, 1850, 2165, 375, 703, 1841, 1300, 376, 1839,
|
|
/* 1990 */ 377, 596, 1813, 598, 1812, 593, 2197, 1811, 600, 602,
|
|
/* 2000 */ 2215, 115, 1532, 29, 1534, 1531, 704, 1536, 2381, 2123,
|
|
/* 2010 */ 67, 2165, 1516, 703, 1512, 1514, 2113, 57, 617, 2196,
|
|
/* 2020 */ 2100, 2232, 618, 2197, 340, 2198, 707, 2200, 2201, 702,
|
|
/* 2030 */ 623, 697, 257, 704, 2099, 2215, 2364, 1491, 6, 397,
|
|
/* 2040 */ 164, 1490, 20, 17, 635, 625, 2165, 2196, 703, 2232,
|
|
/* 2050 */ 7, 633, 339, 2198, 707, 2200, 2201, 702, 1751, 697,
|
|
/* 2060 */ 31, 2251, 2215, 263, 271, 265, 399, 21, 22, 270,
|
|
/* 2070 */ 33, 65, 23, 2165, 172, 703, 2186, 1732, 269, 32,
|
|
/* 2080 */ 24, 95, 2196, 1766, 2232, 1765, 386, 340, 2198, 707,
|
|
/* 2090 */ 2200, 2201, 702, 1770, 697, 1724, 1769, 2197, 387, 1771,
|
|
/* 2100 */ 283, 59, 177, 1772, 1697, 1696, 2098, 704, 2077, 2196,
|
|
/* 2110 */ 96, 2232, 18, 613, 340, 2198, 707, 2200, 2201, 702,
|
|
/* 2120 */ 58, 697, 97, 289, 25, 2076, 290, 105, 99, 302,
|
|
/* 2130 */ 292, 798, 1730, 11, 297, 68, 2215, 26, 101, 678,
|
|
/* 2140 */ 1649, 1648, 13, 1572, 2235, 310, 1659, 2165, 2197, 703,
|
|
/* 2150 */ 1627, 1625, 696, 299, 179, 39, 192, 16, 704, 1604,
|
|
/* 2160 */ 1624, 180, 27, 710, 1596, 400, 2197, 28, 714, 788,
|
|
/* 2170 */ 784, 780, 776, 1386, 308, 712, 704, 1383, 715, 708,
|
|
/* 2180 */ 717, 1382, 718, 608, 706, 2232, 720, 2215, 335, 2198,
|
|
/* 2190 */ 707, 2200, 2201, 702, 1379, 697, 1373, 721, 2165, 723,
|
|
/* 2200 */ 703, 724, 726, 1371, 727, 2215, 1377, 1376, 1362, 305,
|
|
/* 2210 */ 1375, 1374, 733, 106, 110, 1395, 2165, 301, 703, 107,
|
|
/* 2220 */ 75, 1391, 1263, 743, 1295, 1294, 1293, 1292, 1290, 1288,
|
|
/* 2230 */ 1287, 1286, 1321, 753, 2196, 1284, 2232, 2197, 1283, 325,
|
|
/* 2240 */ 2198, 707, 2200, 2201, 702, 306, 697, 704, 1282, 1281,
|
|
/* 2250 */ 683, 1280, 2196, 1279, 2232, 1278, 1318, 323, 2198, 707,
|
|
/* 2260 */ 2200, 2201, 702, 2197, 697, 1316, 1275, 1274, 1271, 1270,
|
|
/* 2270 */ 1269, 1268, 1858, 704, 773, 774, 2215, 775, 1856, 777,
|
|
/* 2280 */ 779, 1854, 781, 1851, 778, 288, 782, 2165, 783, 703,
|
|
/* 2290 */ 785, 786, 287, 787, 1833, 2197, 789, 1210, 1810, 1785,
|
|
/* 2300 */ 797, 309, 2215, 793, 1785, 704, 1558, 319, 796, 1785,
|
|
/* 2310 */ 1785, 253, 1785, 2165, 2197, 703, 1785, 1785, 1785, 1785,
|
|
/* 2320 */ 1785, 1785, 1785, 2196, 704, 2232, 1785, 1785, 326, 2198,
|
|
/* 2330 */ 707, 2200, 2201, 702, 2215, 697, 1785, 1785, 1785, 1785,
|
|
/* 2340 */ 1785, 1785, 1785, 1785, 1785, 2165, 1785, 703, 1785, 2196,
|
|
/* 2350 */ 1785, 2232, 1785, 2215, 332, 2198, 707, 2200, 2201, 702,
|
|
/* 2360 */ 1785, 697, 1785, 1785, 2165, 1785, 703, 1785, 1785, 1785,
|
|
/* 2370 */ 1785, 1785, 2197, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2380 */ 1785, 2196, 704, 2232, 1785, 1785, 336, 2198, 707, 2200,
|
|
/* 2390 */ 2201, 702, 1785, 697, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2400 */ 2196, 1785, 2232, 1785, 2197, 328, 2198, 707, 2200, 2201,
|
|
/* 2410 */ 702, 2215, 697, 1785, 704, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2420 */ 1785, 1785, 2165, 1785, 703, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2430 */ 2197, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2440 */ 704, 1785, 1785, 2215, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2450 */ 1785, 1785, 1785, 1785, 2165, 1785, 703, 1785, 2196, 1785,
|
|
/* 2460 */ 2232, 1785, 2197, 337, 2198, 707, 2200, 2201, 702, 2215,
|
|
/* 2470 */ 697, 1785, 704, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2480 */ 2165, 1785, 703, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2490 */ 2196, 1785, 2232, 1785, 1785, 329, 2198, 707, 2200, 2201,
|
|
/* 2500 */ 702, 2215, 697, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2510 */ 1785, 1785, 2165, 1785, 703, 1785, 2196, 1785, 2232, 1785,
|
|
/* 2520 */ 1785, 338, 2198, 707, 2200, 2201, 702, 1785, 697, 1785,
|
|
/* 2530 */ 2197, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2540 */ 704, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 2196, 1785,
|
|
/* 2550 */ 2232, 1785, 1785, 330, 2198, 707, 2200, 2201, 702, 1785,
|
|
/* 2560 */ 697, 2197, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 2215,
|
|
/* 2570 */ 1785, 704, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2580 */ 2165, 1785, 703, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2590 */ 1785, 1785, 1785, 2197, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2600 */ 2215, 1785, 1785, 704, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2610 */ 1785, 2165, 1785, 703, 1785, 1785, 2196, 1785, 2232, 2197,
|
|
/* 2620 */ 1785, 343, 2198, 707, 2200, 2201, 702, 1785, 697, 704,
|
|
/* 2630 */ 1785, 1785, 2215, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2640 */ 1785, 1785, 1785, 2165, 1785, 703, 1785, 2196, 1785, 2232,
|
|
/* 2650 */ 1785, 1785, 344, 2198, 707, 2200, 2201, 702, 2215, 697,
|
|
/* 2660 */ 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 2165,
|
|
/* 2670 */ 1785, 703, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 2196,
|
|
/* 2680 */ 1785, 2232, 1785, 1785, 2209, 2198, 707, 2200, 2201, 702,
|
|
/* 2690 */ 2197, 697, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2700 */ 704, 1785, 1785, 1785, 1785, 2196, 1785, 2232, 1785, 2197,
|
|
/* 2710 */ 2208, 2198, 707, 2200, 2201, 702, 1785, 697, 1785, 704,
|
|
/* 2720 */ 1785, 1785, 1785, 1785, 1785, 2197, 1785, 1785, 1785, 2215,
|
|
/* 2730 */ 1785, 1785, 1785, 1785, 1785, 704, 1785, 1785, 1785, 1785,
|
|
/* 2740 */ 2165, 1785, 703, 1785, 1785, 1785, 1785, 1785, 2215, 1785,
|
|
/* 2750 */ 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 2165,
|
|
/* 2760 */ 1785, 703, 1785, 1785, 2215, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2770 */ 1785, 1785, 1785, 1785, 1785, 2165, 2196, 703, 2232, 1785,
|
|
/* 2780 */ 1785, 2207, 2198, 707, 2200, 2201, 702, 1785, 697, 1785,
|
|
/* 2790 */ 1785, 1785, 1785, 1785, 1785, 2196, 1785, 2232, 1785, 2197,
|
|
/* 2800 */ 359, 2198, 707, 2200, 2201, 702, 1785, 697, 1785, 704,
|
|
/* 2810 */ 1785, 2196, 1785, 2232, 1785, 2197, 360, 2198, 707, 2200,
|
|
/* 2820 */ 2201, 702, 1785, 697, 1785, 704, 1785, 1785, 1785, 1785,
|
|
/* 2830 */ 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 2215, 1785,
|
|
/* 2840 */ 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 2165,
|
|
/* 2850 */ 1785, 703, 1785, 1785, 2215, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2860 */ 1785, 1785, 1785, 1785, 1785, 2165, 2197, 703, 1785, 1785,
|
|
/* 2870 */ 1785, 1785, 1785, 1785, 1785, 1785, 704, 1785, 1785, 1785,
|
|
/* 2880 */ 1785, 1785, 1785, 1785, 1785, 2196, 1785, 2232, 1785, 1785,
|
|
/* 2890 */ 356, 2198, 707, 2200, 2201, 702, 1785, 697, 1785, 1785,
|
|
/* 2900 */ 1785, 2196, 1785, 2232, 1785, 2215, 361, 2198, 707, 2200,
|
|
/* 2910 */ 2201, 702, 1785, 697, 1785, 1785, 2165, 1785, 703, 1785,
|
|
/* 2920 */ 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2930 */ 1785, 1785, 1785, 1785, 1785, 1785, 2197, 1785, 1785, 1785,
|
|
/* 2940 */ 1785, 1785, 1785, 1785, 1785, 1785, 704, 1785, 1785, 1785,
|
|
/* 2950 */ 1785, 1785, 705, 1785, 2232, 1785, 1785, 335, 2198, 707,
|
|
/* 2960 */ 2200, 2201, 702, 1785, 697, 1785, 1785, 1785, 1785, 1785,
|
|
/* 2970 */ 1785, 1785, 1785, 1785, 1785, 2215, 1785, 1785, 1785, 1785,
|
|
/* 2980 */ 1785, 1785, 1785, 1785, 1785, 1785, 2165, 1785, 703, 1785,
|
|
/* 2990 */ 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 3000 */ 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 3010 */ 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785, 1785,
|
|
/* 3020 */ 1785, 1785, 2196, 1785, 2232, 1785, 1785, 334, 2198, 707,
|
|
/* 3030 */ 2200, 2201, 702, 1785, 697,
|
|
};
|
|
static const YYCODETYPE yy_lookahead[] = {
|
|
/* 0 */ 388, 342, 368, 346, 381, 412, 349, 350, 360, 351,
|
|
/* 10 */ 387, 352, 12, 13, 14, 341, 382, 343, 395, 381,
|
|
/* 20 */ 20, 394, 22, 8, 9, 377, 392, 12, 13, 14,
|
|
/* 30 */ 15, 16, 4, 33, 386, 35, 409, 410, 400, 401,
|
|
/* 40 */ 381, 376, 8, 9, 35, 394, 12, 13, 14, 15,
|
|
/* 50 */ 16, 392, 459, 394, 396, 462, 368, 406, 372, 342,
|
|
/* 60 */ 409, 410, 62, 20, 430, 431, 380, 381, 68, 352,
|
|
/* 70 */ 382, 478, 479, 387, 440, 75, 483, 484, 44, 432,
|
|
/* 80 */ 392, 395, 459, 68, 75, 462, 20, 428, 459, 430,
|
|
/* 90 */ 425, 462, 433, 434, 435, 436, 437, 438, 381, 440,
|
|
/* 100 */ 100, 478, 479, 103, 14, 458, 483, 484, 479, 392,
|
|
/* 110 */ 20, 394, 483, 484, 448, 449, 12, 13, 430, 12,
|
|
/* 120 */ 13, 14, 15, 16, 20, 20, 22, 112, 440, 351,
|
|
/* 130 */ 352, 103, 103, 474, 475, 12, 13, 33, 104, 35,
|
|
/* 140 */ 140, 141, 20, 62, 0, 428, 103, 430, 358, 371,
|
|
/* 150 */ 433, 434, 435, 436, 437, 438, 378, 440, 35, 347,
|
|
/* 160 */ 351, 352, 445, 351, 447, 353, 62, 351, 451, 452,
|
|
/* 170 */ 170, 171, 68, 383, 351, 352, 176, 177, 67, 75,
|
|
/* 180 */ 371, 361, 465, 102, 169, 0, 105, 378, 44, 369,
|
|
/* 190 */ 473, 191, 21, 193, 371, 24, 25, 26, 27, 28,
|
|
/* 200 */ 29, 30, 31, 32, 100, 0, 21, 103, 342, 24,
|
|
/* 210 */ 25, 26, 27, 28, 29, 30, 31, 32, 352, 403,
|
|
/* 220 */ 444, 405, 446, 223, 224, 0, 226, 227, 228, 229,
|
|
/* 230 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
|
|
/* 240 */ 240, 241, 242, 243, 140, 141, 22, 381, 20, 24,
|
|
/* 250 */ 25, 26, 27, 28, 29, 30, 31, 32, 392, 35,
|
|
/* 260 */ 394, 67, 247, 248, 249, 250, 251, 252, 253, 254,
|
|
/* 270 */ 255, 256, 257, 346, 170, 171, 349, 350, 8, 9,
|
|
/* 280 */ 176, 177, 12, 13, 14, 15, 16, 135, 260, 260,
|
|
/* 290 */ 20, 139, 170, 171, 428, 191, 430, 193, 379, 433,
|
|
/* 300 */ 434, 435, 436, 437, 438, 175, 440, 0, 14, 443,
|
|
/* 310 */ 391, 445, 446, 447, 20, 342, 193, 451, 452, 390,
|
|
/* 320 */ 68, 342, 393, 394, 100, 352, 443, 223, 224, 446,
|
|
/* 330 */ 226, 227, 228, 229, 230, 231, 232, 233, 234, 235,
|
|
/* 340 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 12,
|
|
/* 350 */ 13, 444, 200, 446, 381, 203, 49, 20, 206, 22,
|
|
/* 360 */ 208, 100, 351, 352, 159, 392, 20, 394, 140, 141,
|
|
/* 370 */ 33, 392, 35, 168, 351, 351, 352, 116, 117, 118,
|
|
/* 380 */ 119, 120, 121, 122, 123, 124, 125, 3, 127, 128,
|
|
/* 390 */ 129, 130, 131, 132, 133, 39, 266, 267, 268, 62,
|
|
/* 400 */ 20, 428, 352, 430, 20, 68, 433, 434, 435, 436,
|
|
/* 410 */ 437, 438, 75, 440, 70, 71, 72, 4, 445, 381,
|
|
/* 420 */ 447, 77, 78, 79, 451, 452, 403, 83, 405, 351,
|
|
/* 430 */ 352, 381, 88, 89, 90, 91, 3, 100, 94, 401,
|
|
/* 440 */ 103, 223, 172, 84, 8, 9, 473, 21, 12, 13,
|
|
/* 450 */ 14, 15, 16, 12, 13, 14, 43, 4, 45, 46,
|
|
/* 460 */ 34, 20, 36, 22, 170, 454, 455, 456, 457, 169,
|
|
/* 470 */ 459, 460, 19, 48, 33, 223, 35, 140, 141, 455,
|
|
/* 480 */ 456, 457, 412, 459, 460, 435, 33, 417, 104, 271,
|
|
/* 490 */ 272, 273, 274, 275, 276, 277, 342, 351, 352, 114,
|
|
/* 500 */ 342, 20, 49, 62, 145, 146, 103, 170, 171, 56,
|
|
/* 510 */ 352, 244, 354, 176, 177, 62, 75, 371, 8, 9,
|
|
/* 520 */ 351, 352, 12, 13, 14, 15, 16, 168, 191, 459,
|
|
/* 530 */ 193, 351, 462, 455, 456, 457, 75, 459, 460, 381,
|
|
/* 540 */ 20, 100, 351, 352, 103, 381, 392, 247, 478, 479,
|
|
/* 550 */ 392, 387, 394, 483, 484, 102, 172, 257, 105, 395,
|
|
/* 560 */ 223, 224, 371, 226, 227, 228, 229, 230, 231, 232,
|
|
/* 570 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
/* 580 */ 243, 140, 141, 403, 103, 405, 428, 20, 430, 22,
|
|
/* 590 */ 114, 433, 434, 435, 436, 437, 438, 172, 440, 14,
|
|
/* 600 */ 15, 16, 35, 445, 179, 447, 342, 351, 352, 451,
|
|
/* 610 */ 452, 170, 171, 372, 104, 259, 352, 176, 177, 183,
|
|
/* 620 */ 53, 380, 381, 103, 455, 456, 457, 371, 459, 460,
|
|
/* 630 */ 381, 462, 191, 186, 193, 8, 9, 4, 49, 12,
|
|
/* 640 */ 13, 14, 15, 16, 395, 381, 57, 478, 479, 60,
|
|
/* 650 */ 61, 347, 483, 484, 37, 351, 392, 353, 394, 20,
|
|
/* 660 */ 213, 214, 342, 260, 223, 224, 75, 226, 227, 228,
|
|
/* 670 */ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238,
|
|
/* 680 */ 239, 240, 241, 242, 243, 12, 13, 351, 352, 388,
|
|
/* 690 */ 103, 432, 428, 20, 430, 22, 388, 433, 434, 435,
|
|
/* 700 */ 436, 437, 438, 418, 440, 22, 33, 343, 35, 445,
|
|
/* 710 */ 342, 447, 392, 33, 281, 451, 452, 458, 35, 368,
|
|
/* 720 */ 352, 342, 286, 106, 342, 108, 109, 389, 111, 49,
|
|
/* 730 */ 392, 104, 115, 382, 398, 62, 342, 57, 58, 59,
|
|
/* 740 */ 60, 260, 62, 392, 115, 339, 352, 381, 75, 381,
|
|
/* 750 */ 115, 8, 9, 387, 137, 12, 13, 14, 15, 16,
|
|
/* 760 */ 392, 395, 394, 134, 135, 136, 137, 138, 139, 351,
|
|
/* 770 */ 352, 392, 137, 100, 392, 381, 103, 190, 381, 192,
|
|
/* 780 */ 260, 430, 102, 100, 387, 105, 392, 476, 394, 12,
|
|
/* 790 */ 13, 440, 395, 351, 352, 402, 428, 20, 430, 22,
|
|
/* 800 */ 20, 433, 434, 435, 436, 437, 438, 432, 440, 222,
|
|
/* 810 */ 33, 172, 35, 140, 141, 447, 398, 372, 412, 451,
|
|
/* 820 */ 452, 0, 428, 417, 430, 380, 381, 433, 434, 435,
|
|
/* 830 */ 436, 437, 438, 458, 440, 351, 352, 393, 394, 62,
|
|
/* 840 */ 398, 447, 20, 170, 171, 451, 452, 260, 342, 176,
|
|
/* 850 */ 177, 0, 75, 173, 174, 371, 351, 352, 1, 2,
|
|
/* 860 */ 180, 181, 351, 352, 191, 459, 193, 459, 462, 381,
|
|
/* 870 */ 462, 54, 55, 351, 352, 387, 371, 100, 389, 199,
|
|
/* 880 */ 103, 392, 371, 395, 478, 479, 478, 479, 14, 483,
|
|
/* 890 */ 484, 483, 484, 371, 20, 262, 223, 224, 392, 226,
|
|
/* 900 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
|
|
/* 910 */ 237, 238, 239, 240, 241, 242, 243, 140, 141, 356,
|
|
/* 920 */ 357, 70, 71, 72, 351, 352, 351, 352, 77, 78,
|
|
/* 930 */ 79, 351, 352, 244, 83, 246, 115, 356, 357, 88,
|
|
/* 940 */ 89, 90, 91, 369, 371, 94, 371, 170, 171, 365,
|
|
/* 950 */ 366, 371, 172, 176, 177, 134, 135, 136, 137, 138,
|
|
/* 960 */ 139, 104, 140, 141, 134, 135, 372, 487, 191, 139,
|
|
/* 970 */ 193, 351, 352, 2, 380, 381, 355, 351, 352, 8,
|
|
/* 980 */ 9, 0, 2, 12, 13, 14, 15, 16, 8, 9,
|
|
/* 990 */ 0, 371, 12, 13, 14, 15, 16, 371, 176, 177,
|
|
/* 1000 */ 223, 224, 0, 226, 227, 228, 229, 230, 231, 232,
|
|
/* 1010 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
/* 1020 */ 243, 0, 18, 18, 20, 351, 352, 459, 23, 134,
|
|
/* 1030 */ 462, 27, 44, 20, 30, 22, 360, 33, 351, 352,
|
|
/* 1040 */ 365, 366, 37, 38, 170, 371, 41, 479, 67, 380,
|
|
/* 1050 */ 381, 483, 484, 49, 342, 51, 20, 52, 371, 342,
|
|
/* 1060 */ 56, 42, 386, 44, 342, 20, 53, 342, 63, 64,
|
|
/* 1070 */ 65, 66, 70, 71, 72, 73, 74, 470, 76, 77,
|
|
/* 1080 */ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
|
|
/* 1090 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 204,
|
|
/* 1100 */ 205, 45, 46, 368, 392, 115, 102, 368, 103, 392,
|
|
/* 1110 */ 351, 352, 351, 352, 392, 8, 9, 392, 114, 12,
|
|
/* 1120 */ 13, 14, 15, 16, 134, 135, 136, 137, 138, 139,
|
|
/* 1130 */ 371, 22, 371, 412, 380, 381, 342, 342, 380, 381,
|
|
/* 1140 */ 44, 342, 380, 381, 35, 381, 342, 142, 144, 380,
|
|
/* 1150 */ 381, 147, 148, 149, 150, 151, 152, 153, 154, 155,
|
|
/* 1160 */ 156, 157, 158, 159, 160, 161, 162, 163, 342, 165,
|
|
/* 1170 */ 166, 167, 367, 389, 411, 370, 392, 44, 342, 342,
|
|
/* 1180 */ 459, 402, 342, 462, 75, 358, 392, 392, 183, 184,
|
|
/* 1190 */ 185, 392, 352, 188, 354, 412, 392, 14, 342, 478,
|
|
/* 1200 */ 479, 342, 375, 20, 483, 484, 201, 202, 172, 100,
|
|
/* 1210 */ 383, 373, 258, 259, 376, 170, 355, 212, 392, 114,
|
|
/* 1220 */ 215, 381, 22, 218, 219, 220, 221, 222, 392, 392,
|
|
/* 1230 */ 0, 42, 392, 44, 394, 35, 107, 104, 217, 110,
|
|
/* 1240 */ 35, 107, 459, 342, 110, 462, 107, 412, 392, 110,
|
|
/* 1250 */ 13, 392, 22, 352, 107, 354, 207, 110, 209, 13,
|
|
/* 1260 */ 44, 478, 479, 350, 44, 260, 483, 484, 428, 164,
|
|
/* 1270 */ 430, 283, 35, 433, 434, 435, 436, 437, 438, 172,
|
|
/* 1280 */ 440, 35, 381, 0, 0, 445, 35, 447, 35, 44,
|
|
/* 1290 */ 0, 451, 452, 392, 459, 394, 44, 462, 44, 44,
|
|
/* 1300 */ 191, 62, 193, 140, 141, 22, 22, 44, 47, 44,
|
|
/* 1310 */ 44, 342, 44, 478, 479, 44, 1, 2, 483, 484,
|
|
/* 1320 */ 104, 352, 44, 354, 104, 44, 352, 391, 75, 428,
|
|
/* 1330 */ 44, 430, 223, 224, 433, 434, 435, 436, 437, 438,
|
|
/* 1340 */ 50, 440, 402, 461, 105, 480, 445, 453, 447, 104,
|
|
/* 1350 */ 381, 44, 451, 452, 464, 44, 104, 44, 104, 104,
|
|
/* 1360 */ 263, 392, 44, 394, 103, 44, 13, 104, 413, 104,
|
|
/* 1370 */ 104, 13, 104, 103, 342, 104, 49, 429, 422, 20,
|
|
/* 1380 */ 206, 285, 104, 113, 352, 104, 354, 427, 35, 360,
|
|
/* 1390 */ 104, 360, 422, 35, 415, 189, 20, 428, 193, 430,
|
|
/* 1400 */ 342, 20, 433, 434, 435, 436, 437, 438, 42, 440,
|
|
/* 1410 */ 352, 104, 354, 381, 445, 104, 447, 104, 352, 399,
|
|
/* 1420 */ 451, 452, 104, 352, 392, 104, 394, 402, 169, 399,
|
|
/* 1430 */ 397, 20, 351, 399, 352, 342, 351, 397, 397, 381,
|
|
/* 1440 */ 101, 364, 99, 363, 193, 352, 351, 98, 362, 351,
|
|
/* 1450 */ 392, 351, 394, 351, 20, 344, 48, 344, 348, 422,
|
|
/* 1460 */ 428, 360, 430, 348, 20, 433, 434, 435, 436, 437,
|
|
/* 1470 */ 438, 20, 440, 394, 381, 353, 360, 445, 20, 447,
|
|
/* 1480 */ 360, 414, 351, 451, 452, 392, 428, 394, 430, 353,
|
|
/* 1490 */ 360, 433, 434, 435, 436, 437, 438, 360, 440, 344,
|
|
/* 1500 */ 360, 12, 13, 445, 342, 447, 360, 381, 381, 451,
|
|
/* 1510 */ 452, 22, 351, 381, 352, 344, 381, 392, 210, 381,
|
|
/* 1520 */ 392, 428, 33, 430, 35, 381, 433, 434, 435, 436,
|
|
/* 1530 */ 437, 438, 342, 440, 381, 392, 103, 358, 445, 421,
|
|
/* 1540 */ 447, 424, 352, 381, 451, 452, 422, 426, 197, 358,
|
|
/* 1550 */ 196, 62, 394, 351, 392, 195, 394, 392, 413, 402,
|
|
/* 1560 */ 469, 420, 402, 270, 75, 269, 407, 342, 419, 392,
|
|
/* 1570 */ 392, 381, 469, 407, 392, 278, 472, 352, 182, 471,
|
|
/* 1580 */ 280, 469, 392, 279, 394, 413, 264, 468, 287, 100,
|
|
/* 1590 */ 428, 259, 430, 284, 488, 433, 434, 435, 436, 437,
|
|
/* 1600 */ 438, 282, 440, 20, 20, 482, 381, 445, 466, 447,
|
|
/* 1610 */ 352, 261, 432, 451, 452, 467, 405, 392, 428, 394,
|
|
/* 1620 */ 430, 407, 353, 433, 434, 435, 436, 437, 438, 407,
|
|
/* 1630 */ 440, 481, 463, 358, 358, 392, 392, 447, 174, 392,
|
|
/* 1640 */ 392, 451, 452, 358, 404, 358, 352, 103, 392, 392,
|
|
/* 1650 */ 376, 450, 103, 428, 392, 430, 384, 351, 433, 434,
|
|
/* 1660 */ 435, 436, 437, 438, 439, 440, 441, 442, 370, 36,
|
|
/* 1670 */ 358, 345, 344, 423, 340, 408, 416, 374, 0, 374,
|
|
/* 1680 */ 191, 408, 193, 359, 342, 0, 0, 42, 374, 0,
|
|
/* 1690 */ 35, 216, 35, 35, 352, 35, 216, 0, 35, 35,
|
|
/* 1700 */ 216, 0, 216, 0, 342, 35, 0, 0, 35, 22,
|
|
/* 1710 */ 211, 0, 223, 224, 352, 199, 0, 199, 193, 200,
|
|
/* 1720 */ 191, 0, 0, 381, 0, 236, 237, 238, 239, 240,
|
|
/* 1730 */ 241, 242, 187, 186, 392, 0, 394, 0, 47, 0,
|
|
/* 1740 */ 0, 0, 47, 381, 0, 0, 42, 0, 0, 47,
|
|
/* 1750 */ 0, 0, 0, 0, 392, 342, 394, 0, 0, 159,
|
|
/* 1760 */ 35, 0, 159, 0, 0, 352, 0, 0, 0, 0,
|
|
/* 1770 */ 428, 0, 430, 0, 0, 433, 434, 435, 436, 437,
|
|
/* 1780 */ 438, 0, 440, 0, 0, 0, 0, 0, 0, 47,
|
|
/* 1790 */ 428, 0, 430, 0, 381, 433, 434, 435, 436, 437,
|
|
/* 1800 */ 438, 42, 440, 0, 0, 392, 44, 394, 0, 447,
|
|
/* 1810 */ 0, 0, 22, 342, 452, 0, 0, 0, 143, 0,
|
|
/* 1820 */ 0, 22, 22, 352, 48, 48, 0, 485, 486, 342,
|
|
/* 1830 */ 35, 0, 62, 0, 62, 0, 0, 62, 49, 352,
|
|
/* 1840 */ 35, 428, 0, 430, 342, 49, 433, 434, 435, 436,
|
|
/* 1850 */ 437, 438, 381, 440, 352, 0, 385, 39, 35, 0,
|
|
/* 1860 */ 39, 49, 35, 392, 342, 394, 0, 39, 381, 35,
|
|
/* 1870 */ 14, 42, 385, 0, 352, 0, 39, 47, 0, 392,
|
|
/* 1880 */ 40, 394, 39, 381, 0, 47, 47, 39, 475, 0,
|
|
/* 1890 */ 182, 0, 0, 0, 392, 35, 394, 0, 49, 428,
|
|
/* 1900 */ 39, 430, 0, 381, 433, 434, 435, 436, 437, 438,
|
|
/* 1910 */ 69, 440, 35, 49, 392, 428, 394, 430, 39, 0,
|
|
/* 1920 */ 433, 434, 435, 436, 437, 438, 39, 440, 0, 35,
|
|
/* 1930 */ 428, 49, 430, 342, 35, 433, 434, 435, 436, 437,
|
|
/* 1940 */ 438, 0, 440, 352, 39, 49, 0, 0, 0, 0,
|
|
/* 1950 */ 428, 0, 430, 35, 110, 433, 434, 435, 436, 437,
|
|
/* 1960 */ 438, 342, 440, 112, 22, 0, 35, 35, 35, 35,
|
|
/* 1970 */ 35, 352, 381, 35, 35, 35, 385, 22, 35, 477,
|
|
/* 1980 */ 44, 44, 0, 392, 22, 394, 0, 35, 22, 0,
|
|
/* 1990 */ 22, 35, 0, 35, 0, 51, 342, 0, 35, 22,
|
|
/* 2000 */ 381, 20, 35, 103, 35, 35, 352, 104, 486, 0,
|
|
/* 2010 */ 103, 392, 198, 394, 35, 22, 0, 172, 22, 428,
|
|
/* 2020 */ 0, 430, 172, 342, 433, 434, 435, 436, 437, 438,
|
|
/* 2030 */ 178, 440, 174, 352, 0, 381, 3, 172, 48, 385,
|
|
/* 2040 */ 194, 172, 44, 265, 99, 178, 392, 428, 394, 430,
|
|
/* 2050 */ 48, 101, 433, 434, 435, 436, 437, 438, 104, 440,
|
|
/* 2060 */ 103, 442, 381, 103, 47, 104, 385, 44, 44, 44,
|
|
/* 2070 */ 44, 3, 265, 392, 103, 394, 47, 104, 103, 103,
|
|
/* 2080 */ 44, 103, 428, 35, 430, 35, 35, 433, 434, 435,
|
|
/* 2090 */ 436, 437, 438, 35, 440, 104, 35, 342, 35, 104,
|
|
/* 2100 */ 47, 44, 47, 104, 104, 104, 0, 352, 0, 428,
|
|
/* 2110 */ 103, 430, 265, 1, 433, 434, 435, 436, 437, 438,
|
|
/* 2120 */ 258, 440, 39, 47, 103, 0, 104, 113, 39, 47,
|
|
/* 2130 */ 103, 19, 104, 245, 103, 103, 381, 44, 103, 175,
|
|
/* 2140 */ 101, 101, 2, 22, 103, 33, 223, 392, 342, 394,
|
|
/* 2150 */ 104, 104, 103, 173, 47, 103, 47, 103, 352, 22,
|
|
/* 2160 */ 104, 49, 103, 35, 104, 35, 342, 103, 35, 57,
|
|
/* 2170 */ 58, 59, 60, 104, 62, 103, 352, 104, 103, 114,
|
|
/* 2180 */ 35, 104, 103, 428, 225, 430, 35, 381, 433, 434,
|
|
/* 2190 */ 435, 436, 437, 438, 104, 440, 104, 103, 392, 35,
|
|
/* 2200 */ 394, 103, 35, 104, 103, 381, 126, 126, 22, 44,
|
|
/* 2210 */ 126, 126, 115, 103, 102, 35, 392, 105, 394, 103,
|
|
/* 2220 */ 103, 22, 69, 68, 35, 35, 35, 35, 35, 35,
|
|
/* 2230 */ 35, 35, 75, 97, 428, 35, 430, 342, 35, 433,
|
|
/* 2240 */ 434, 435, 436, 437, 438, 44, 440, 352, 35, 22,
|
|
/* 2250 */ 138, 35, 428, 35, 430, 35, 75, 433, 434, 435,
|
|
/* 2260 */ 436, 437, 438, 342, 440, 35, 35, 35, 35, 35,
|
|
/* 2270 */ 22, 35, 0, 352, 35, 49, 381, 39, 0, 35,
|
|
/* 2280 */ 39, 0, 35, 0, 49, 173, 49, 392, 39, 394,
|
|
/* 2290 */ 35, 49, 180, 39, 0, 342, 35, 35, 0, 489,
|
|
/* 2300 */ 20, 22, 381, 21, 489, 352, 22, 22, 21, 489,
|
|
/* 2310 */ 489, 199, 489, 392, 342, 394, 489, 489, 489, 489,
|
|
/* 2320 */ 489, 489, 489, 428, 352, 430, 489, 489, 433, 434,
|
|
/* 2330 */ 435, 436, 437, 438, 381, 440, 489, 489, 489, 489,
|
|
/* 2340 */ 489, 489, 489, 489, 489, 392, 489, 394, 489, 428,
|
|
/* 2350 */ 489, 430, 489, 381, 433, 434, 435, 436, 437, 438,
|
|
/* 2360 */ 489, 440, 489, 489, 392, 489, 394, 489, 489, 489,
|
|
/* 2370 */ 489, 489, 342, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2380 */ 489, 428, 352, 430, 489, 489, 433, 434, 435, 436,
|
|
/* 2390 */ 437, 438, 489, 440, 489, 489, 489, 489, 489, 489,
|
|
/* 2400 */ 428, 489, 430, 489, 342, 433, 434, 435, 436, 437,
|
|
/* 2410 */ 438, 381, 440, 489, 352, 489, 489, 489, 489, 489,
|
|
/* 2420 */ 489, 489, 392, 489, 394, 489, 489, 489, 489, 489,
|
|
/* 2430 */ 342, 489, 489, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2440 */ 352, 489, 489, 381, 489, 489, 489, 489, 489, 489,
|
|
/* 2450 */ 489, 489, 489, 489, 392, 489, 394, 489, 428, 489,
|
|
/* 2460 */ 430, 489, 342, 433, 434, 435, 436, 437, 438, 381,
|
|
/* 2470 */ 440, 489, 352, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2480 */ 392, 489, 394, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2490 */ 428, 489, 430, 489, 489, 433, 434, 435, 436, 437,
|
|
/* 2500 */ 438, 381, 440, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2510 */ 489, 489, 392, 489, 394, 489, 428, 489, 430, 489,
|
|
/* 2520 */ 489, 433, 434, 435, 436, 437, 438, 489, 440, 489,
|
|
/* 2530 */ 342, 489, 489, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2540 */ 352, 489, 489, 489, 489, 489, 489, 489, 428, 489,
|
|
/* 2550 */ 430, 489, 489, 433, 434, 435, 436, 437, 438, 489,
|
|
/* 2560 */ 440, 342, 489, 489, 489, 489, 489, 489, 489, 381,
|
|
/* 2570 */ 489, 352, 489, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2580 */ 392, 489, 394, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2590 */ 489, 489, 489, 342, 489, 489, 489, 489, 489, 489,
|
|
/* 2600 */ 381, 489, 489, 352, 489, 489, 489, 489, 489, 489,
|
|
/* 2610 */ 489, 392, 489, 394, 489, 489, 428, 489, 430, 342,
|
|
/* 2620 */ 489, 433, 434, 435, 436, 437, 438, 489, 440, 352,
|
|
/* 2630 */ 489, 489, 381, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2640 */ 489, 489, 489, 392, 489, 394, 489, 428, 489, 430,
|
|
/* 2650 */ 489, 489, 433, 434, 435, 436, 437, 438, 381, 440,
|
|
/* 2660 */ 489, 489, 489, 489, 489, 489, 489, 489, 489, 392,
|
|
/* 2670 */ 489, 394, 489, 489, 489, 489, 489, 489, 489, 428,
|
|
/* 2680 */ 489, 430, 489, 489, 433, 434, 435, 436, 437, 438,
|
|
/* 2690 */ 342, 440, 489, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2700 */ 352, 489, 489, 489, 489, 428, 489, 430, 489, 342,
|
|
/* 2710 */ 433, 434, 435, 436, 437, 438, 489, 440, 489, 352,
|
|
/* 2720 */ 489, 489, 489, 489, 489, 342, 489, 489, 489, 381,
|
|
/* 2730 */ 489, 489, 489, 489, 489, 352, 489, 489, 489, 489,
|
|
/* 2740 */ 392, 489, 394, 489, 489, 489, 489, 489, 381, 489,
|
|
/* 2750 */ 489, 489, 489, 489, 489, 489, 489, 489, 489, 392,
|
|
/* 2760 */ 489, 394, 489, 489, 381, 489, 489, 489, 489, 489,
|
|
/* 2770 */ 489, 489, 489, 489, 489, 392, 428, 394, 430, 489,
|
|
/* 2780 */ 489, 433, 434, 435, 436, 437, 438, 489, 440, 489,
|
|
/* 2790 */ 489, 489, 489, 489, 489, 428, 489, 430, 489, 342,
|
|
/* 2800 */ 433, 434, 435, 436, 437, 438, 489, 440, 489, 352,
|
|
/* 2810 */ 489, 428, 489, 430, 489, 342, 433, 434, 435, 436,
|
|
/* 2820 */ 437, 438, 489, 440, 489, 352, 489, 489, 489, 489,
|
|
/* 2830 */ 489, 489, 489, 489, 489, 489, 489, 489, 381, 489,
|
|
/* 2840 */ 489, 489, 489, 489, 489, 489, 489, 489, 489, 392,
|
|
/* 2850 */ 489, 394, 489, 489, 381, 489, 489, 489, 489, 489,
|
|
/* 2860 */ 489, 489, 489, 489, 489, 392, 342, 394, 489, 489,
|
|
/* 2870 */ 489, 489, 489, 489, 489, 489, 352, 489, 489, 489,
|
|
/* 2880 */ 489, 489, 489, 489, 489, 428, 489, 430, 489, 489,
|
|
/* 2890 */ 433, 434, 435, 436, 437, 438, 489, 440, 489, 489,
|
|
/* 2900 */ 489, 428, 489, 430, 489, 381, 433, 434, 435, 436,
|
|
/* 2910 */ 437, 438, 489, 440, 489, 489, 392, 489, 394, 489,
|
|
/* 2920 */ 489, 489, 489, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 2930 */ 489, 489, 489, 489, 489, 489, 342, 489, 489, 489,
|
|
/* 2940 */ 489, 489, 489, 489, 489, 489, 352, 489, 489, 489,
|
|
/* 2950 */ 489, 489, 428, 489, 430, 489, 489, 433, 434, 435,
|
|
/* 2960 */ 436, 437, 438, 489, 440, 489, 489, 489, 489, 489,
|
|
/* 2970 */ 489, 489, 489, 489, 489, 381, 489, 489, 489, 489,
|
|
/* 2980 */ 489, 489, 489, 489, 489, 489, 392, 489, 394, 489,
|
|
/* 2990 */ 489, 489, 489, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 3000 */ 489, 489, 489, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 3010 */ 489, 489, 489, 489, 489, 489, 489, 489, 489, 489,
|
|
/* 3020 */ 489, 489, 428, 489, 430, 489, 489, 433, 434, 435,
|
|
/* 3030 */ 436, 437, 438, 489, 440, 339, 339, 339, 339, 339,
|
|
/* 3040 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3050 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3060 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3070 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3080 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3090 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3100 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3110 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3120 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3130 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3140 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3150 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3160 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3170 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3180 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3190 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3200 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3210 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3220 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3230 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3240 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3250 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3260 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3270 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3280 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3290 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3300 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3310 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3320 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3330 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3340 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3350 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3360 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3370 */ 339, 339, 339, 339,
|
|
};
|
|
#define YY_SHIFT_COUNT (798)
|
|
#define YY_SHIFT_MIN (0)
|
|
#define YY_SHIFT_MAX (2298)
|
|
static const unsigned short int yy_shift_ofst[] = {
|
|
/* 0 */ 1005, 0, 104, 0, 337, 337, 337, 337, 337, 337,
|
|
/* 10 */ 337, 337, 337, 337, 337, 337, 441, 673, 673, 777,
|
|
/* 20 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673,
|
|
/* 30 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673,
|
|
/* 40 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673,
|
|
/* 50 */ 673, 481, 520, 587, 43, 29, 403, 29, 43, 43,
|
|
/* 60 */ 29, 1489, 29, 1489, 1489, 28, 29, 66, 822, 105,
|
|
/* 70 */ 105, 822, 413, 413, 122, 228, 90, 90, 105, 105,
|
|
/* 80 */ 105, 105, 105, 105, 105, 105, 105, 105, 346, 105,
|
|
/* 90 */ 105, 111, 66, 105, 105, 380, 66, 105, 346, 105,
|
|
/* 100 */ 346, 66, 105, 105, 66, 105, 66, 66, 66, 105,
|
|
/* 110 */ 194, 1004, 15, 15, 344, 171, 1109, 1109, 1109, 1109,
|
|
/* 120 */ 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109,
|
|
/* 130 */ 1109, 1109, 1109, 1109, 1109, 617, 384, 122, 228, 817,
|
|
/* 140 */ 817, 9, 639, 639, 639, 981, 689, 689, 9, 111,
|
|
/* 150 */ 66, 66, 66, 66, 385, 267, 66, 461, 66, 461,
|
|
/* 160 */ 461, 476, 591, 261, 261, 261, 261, 2112, 851, 185,
|
|
/* 170 */ 270, 436, 218, 567, 130, 123, 123, 294, 425, 874,
|
|
/* 180 */ 1013, 780, 1056, 1183, 635, 1036, 954, 356, 433, 954,
|
|
/* 190 */ 1019, 633, 1045, 1097, 1327, 1359, 1174, 111, 1359, 111,
|
|
/* 200 */ 1206, 1376, 1366, 1381, 1376, 1366, 1259, 1411, 1376, 1411,
|
|
/* 210 */ 1366, 1259, 1259, 1339, 1343, 1411, 1349, 1411, 1411, 1411,
|
|
/* 220 */ 1434, 1408, 1434, 1408, 1359, 111, 1444, 111, 1451, 1458,
|
|
/* 230 */ 111, 1451, 111, 111, 111, 1411, 111, 1434, 66, 66,
|
|
/* 240 */ 66, 66, 66, 66, 66, 1411, 1434, 461, 461, 461,
|
|
/* 250 */ 1308, 1433, 1359, 194, 1351, 1354, 1444, 194, 1360, 1097,
|
|
/* 260 */ 1411, 1381, 1381, 461, 1293, 1296, 461, 1293, 1296, 461,
|
|
/* 270 */ 461, 66, 1297, 1396, 1293, 1300, 1304, 1322, 1097, 1301,
|
|
/* 280 */ 1309, 1319, 1332, 1376, 1583, 1350, 1451, 194, 194, 1584,
|
|
/* 290 */ 1296, 461, 461, 461, 461, 461, 1296, 461, 1464, 194,
|
|
/* 300 */ 476, 194, 1376, 1544, 1549, 461, 591, 1411, 194, 1633,
|
|
/* 310 */ 1434, 3035, 3035, 3035, 3035, 3035, 3035, 3035, 3035, 3035,
|
|
/* 320 */ 1002, 680, 225, 34, 453, 510, 627, 821, 971, 980,
|
|
/* 330 */ 1107, 990, 743, 743, 743, 743, 743, 743, 743, 743,
|
|
/* 340 */ 743, 629, 152, 107, 107, 359, 589, 447, 205, 81,
|
|
/* 350 */ 224, 683, 426, 895, 830, 830, 585, 857, 300, 585,
|
|
/* 360 */ 585, 585, 307, 1021, 1133, 1200, 1189, 1105, 144, 1129,
|
|
/* 370 */ 1134, 1139, 1147, 1237, 1246, 1230, 1283, 1284, 1049, 1216,
|
|
/* 380 */ 1220, 1239, 1245, 1252, 1254, 1163, 988, 1096, 1255, 1263,
|
|
/* 390 */ 1265, 1266, 1268, 1271, 1315, 1278, 252, 1281, 1261, 1286,
|
|
/* 400 */ 1307, 1311, 1313, 1318, 1321, 1270, 1205, 1251, 1353, 1358,
|
|
/* 410 */ 1253, 1290, 1678, 1685, 1686, 1645, 1689, 1655, 1475, 1657,
|
|
/* 420 */ 1658, 1660, 1480, 1697, 1663, 1664, 1484, 1701, 1486, 1703,
|
|
/* 430 */ 1670, 1706, 1687, 1707, 1673, 1499, 1711, 1516, 1716, 1518,
|
|
/* 440 */ 1519, 1525, 1529, 1721, 1722, 1724, 1545, 1547, 1735, 1737,
|
|
/* 450 */ 1691, 1739, 1740, 1741, 1695, 1744, 1704, 1745, 1747, 1748,
|
|
/* 460 */ 1702, 1750, 1751, 1752, 1753, 1757, 1758, 1600, 1725, 1761,
|
|
/* 470 */ 1603, 1763, 1764, 1766, 1767, 1768, 1769, 1771, 1773, 1774,
|
|
/* 480 */ 1781, 1783, 1784, 1785, 1786, 1787, 1788, 1742, 1791, 1759,
|
|
/* 490 */ 1793, 1803, 1804, 1808, 1810, 1811, 1790, 1815, 1816, 1817,
|
|
/* 500 */ 1675, 1819, 1820, 1799, 1776, 1800, 1777, 1826, 1770, 1795,
|
|
/* 510 */ 1831, 1772, 1833, 1775, 1835, 1836, 1805, 1789, 1818, 1842,
|
|
/* 520 */ 1823, 1796, 1821, 1855, 1827, 1812, 1828, 1859, 1834, 1866,
|
|
/* 530 */ 1829, 1837, 1762, 1830, 1838, 1856, 1839, 1873, 1840, 1843,
|
|
/* 540 */ 1875, 1878, 1884, 1848, 1708, 1889, 1891, 1892, 1841, 1893,
|
|
/* 550 */ 1897, 1860, 1849, 1861, 1902, 1877, 1864, 1879, 1919, 1894,
|
|
/* 560 */ 1882, 1887, 1928, 1899, 1896, 1905, 1941, 1946, 1947, 1948,
|
|
/* 570 */ 1949, 1951, 1851, 1844, 1918, 1942, 1965, 1931, 1932, 1933,
|
|
/* 580 */ 1934, 1935, 1938, 1939, 1936, 1937, 1940, 1943, 1955, 1952,
|
|
/* 590 */ 1982, 1962, 1986, 1966, 1944, 1989, 1968, 1956, 1992, 1958,
|
|
/* 600 */ 1994, 1963, 1997, 1977, 1981, 1967, 1969, 1970, 1903, 1900,
|
|
/* 610 */ 2009, 1845, 1907, 1814, 1979, 1993, 2016, 1846, 1996, 1850,
|
|
/* 620 */ 1858, 2020, 2034, 1865, 1852, 1869, 1867, 2033, 1998, 1778,
|
|
/* 630 */ 1957, 1954, 1960, 1990, 1950, 2002, 1945, 1961, 2023, 2024,
|
|
/* 640 */ 1973, 1971, 1975, 1976, 1991, 2025, 2017, 2029, 1978, 2026,
|
|
/* 650 */ 1807, 1995, 1999, 2068, 2036, 1847, 2048, 2050, 2051, 2058,
|
|
/* 660 */ 2061, 2063, 2000, 2001, 2053, 1862, 2057, 2055, 2106, 2108,
|
|
/* 670 */ 2007, 2083, 1830, 2076, 2021, 2022, 2028, 2027, 2031, 1964,
|
|
/* 680 */ 2032, 2125, 2089, 1980, 2035, 2014, 1830, 2082, 2093, 2039,
|
|
/* 690 */ 1888, 2040, 2140, 2121, 1923, 2041, 2046, 2049, 2047, 2052,
|
|
/* 700 */ 2056, 2107, 2054, 2059, 2109, 2060, 2137, 1959, 2064, 2065,
|
|
/* 710 */ 2069, 2128, 2130, 2072, 2073, 2133, 2075, 2077, 2145, 2079,
|
|
/* 720 */ 2090, 2151, 2094, 2092, 2164, 2098, 2099, 2167, 2101, 2080,
|
|
/* 730 */ 2081, 2084, 2085, 2186, 2097, 2110, 2165, 2116, 2180, 2117,
|
|
/* 740 */ 2165, 2165, 2199, 2153, 2155, 2189, 2190, 2191, 2192, 2193,
|
|
/* 750 */ 2194, 2195, 2196, 2157, 2136, 2201, 2200, 2203, 2213, 2227,
|
|
/* 760 */ 2216, 2218, 2220, 2181, 1936, 2230, 1937, 2231, 2232, 2233,
|
|
/* 770 */ 2234, 2248, 2236, 2272, 2239, 2226, 2238, 2278, 2244, 2235,
|
|
/* 780 */ 2241, 2281, 2247, 2237, 2249, 2283, 2255, 2242, 2254, 2294,
|
|
/* 790 */ 2261, 2262, 2298, 2279, 2282, 2284, 2285, 2287, 2280,
|
|
};
|
|
#define YY_REDUCE_COUNT (319)
|
|
#define YY_REDUCE_MIN (-407)
|
|
#define YY_REDUCE_MAX (2594)
|
|
static const short yy_reduce_ofst[] = {
|
|
/* 0 */ 406, -283, -134, -27, 158, 840, 901, 969, 1032, 1058,
|
|
/* 10 */ 264, 1093, 1162, 368, 394, 1190, 1225, -341, 1342, 1362,
|
|
/* 20 */ 1413, 1471, 1487, 1502, 1522, 1591, 1619, 1654, 1681, 1755,
|
|
/* 30 */ 1806, 1824, 1895, 1921, 1953, 1972, 2030, 2062, 2088, 2120,
|
|
/* 40 */ 2188, 2219, 2251, 2277, 2348, 2367, 2383, 2457, 2473, 2524,
|
|
/* 50 */ 2594, 169, -377, 70, 11, -407, 721, 783, 24, 78,
|
|
/* 60 */ 835, -366, 408, -312, 351, -371, 568, -314, -349, -222,
|
|
/* 70 */ -191, -373, -343, -73, -362, -71, -188, 304, -177, 146,
|
|
/* 80 */ 191, 256, 336, 418, 484, 505, 511, 442, -184, 522,
|
|
/* 90 */ 573, -352, 164, 575, 580, 50, 366, 620, 23, 626,
|
|
/* 100 */ 180, 241, 674, 687, 397, 759, 445, 488, 594, 761,
|
|
/* 110 */ 827, -342, -334, -334, -180, -326, -21, 154, 320, 379,
|
|
/* 120 */ 382, 506, 712, 717, 722, 725, 794, 795, 799, 804,
|
|
/* 130 */ 826, 836, 837, 856, 859, -81, -353, 38, 444, 563,
|
|
/* 140 */ 581, 584, -353, 259, 375, -210, -224, -93, 675, 676,
|
|
/* 150 */ 669, 754, 758, 762, -335, -117, 769, 338, 249, 489,
|
|
/* 160 */ 784, 838, 805, -388, 301, 308, -388, 285, 574, 364,
|
|
/* 170 */ 393, 480, 311, 621, 607, 735, 739, 764, 763, 764,
|
|
/* 180 */ 861, 779, 913, 974, 936, 940, 882, 882, 865, 882,
|
|
/* 190 */ 894, 890, 764, 955, 948, 956, 960, 1029, 970, 1031,
|
|
/* 200 */ 979, 1066, 1020, 1025, 1071, 1030, 1033, 1081, 1082, 1085,
|
|
/* 210 */ 1034, 1040, 1041, 1077, 1080, 1095, 1086, 1098, 1100, 1102,
|
|
/* 220 */ 1111, 1110, 1113, 1115, 1037, 1101, 1079, 1116, 1122, 1067,
|
|
/* 230 */ 1120, 1136, 1130, 1137, 1140, 1131, 1146, 1155, 1126, 1127,
|
|
/* 240 */ 1132, 1135, 1138, 1144, 1153, 1161, 1171, 1125, 1128, 1143,
|
|
/* 250 */ 1121, 1117, 1124, 1179, 1118, 1141, 1158, 1191, 1149, 1145,
|
|
/* 260 */ 1202, 1157, 1160, 1165, 1091, 1159, 1177, 1103, 1166, 1178,
|
|
/* 270 */ 1182, 764, 1104, 1108, 1112, 1119, 1148, 1142, 1172, 1106,
|
|
/* 280 */ 1123, 1150, 882, 1258, 1180, 1169, 1269, 1275, 1276, 1211,
|
|
/* 290 */ 1214, 1243, 1244, 1247, 1248, 1256, 1222, 1257, 1240, 1285,
|
|
/* 300 */ 1274, 1287, 1294, 1201, 1272, 1262, 1298, 1306, 1312, 1326,
|
|
/* 310 */ 1328, 1260, 1250, 1267, 1273, 1303, 1305, 1314, 1324, 1334,
|
|
};
|
|
static const YYACTIONTYPE yy_default[] = {
|
|
/* 0 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 10 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 20 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 30 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 40 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 50 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 60 */ 2095, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 70 */ 1783, 1783, 1783, 1783, 2068, 1783, 1783, 1783, 1783, 1783,
|
|
/* 80 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 90 */ 1783, 1872, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 100 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 110 */ 1870, 2061, 2287, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 120 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 130 */ 1783, 1783, 1783, 1783, 1783, 1783, 2299, 1783, 1783, 1846,
|
|
/* 140 */ 1846, 1783, 2299, 2299, 2299, 1870, 2259, 2259, 1783, 1872,
|
|
/* 150 */ 1783, 1783, 1783, 1783, 2129, 1783, 1783, 1783, 1783, 1783,
|
|
/* 160 */ 1783, 1993, 1783, 2017, 1783, 1783, 1783, 2121, 1783, 1783,
|
|
/* 170 */ 2326, 2383, 1783, 1783, 2329, 1783, 1783, 1783, 1783, 1783,
|
|
/* 180 */ 1783, 2073, 1783, 1783, 1945, 2316, 2291, 2305, 2367, 2292,
|
|
/* 190 */ 2289, 2310, 1783, 2320, 1783, 1783, 2143, 1872, 1783, 1872,
|
|
/* 200 */ 2108, 1783, 2066, 1783, 1783, 2066, 2063, 1783, 1783, 1783,
|
|
/* 210 */ 2066, 2063, 2063, 1934, 1930, 1783, 1928, 1783, 1783, 1783,
|
|
/* 220 */ 1783, 1830, 1783, 1830, 1783, 1872, 1783, 1872, 1783, 1783,
|
|
/* 230 */ 1872, 1783, 1872, 1872, 1872, 1783, 1872, 1783, 1783, 1783,
|
|
/* 240 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 250 */ 2141, 2127, 1783, 1870, 2119, 2117, 1783, 1870, 2115, 2320,
|
|
/* 260 */ 1783, 1783, 1783, 1783, 2337, 2335, 1783, 2337, 2335, 1783,
|
|
/* 270 */ 1783, 1783, 2351, 2347, 2337, 2356, 2353, 2322, 2320, 2386,
|
|
/* 280 */ 2373, 2369, 2305, 1783, 1783, 2308, 1783, 1870, 1870, 1783,
|
|
/* 290 */ 2335, 1783, 1783, 1783, 1783, 1783, 2335, 1783, 1783, 1870,
|
|
/* 300 */ 1783, 1870, 1783, 1783, 1961, 1783, 1783, 1783, 1870, 1815,
|
|
/* 310 */ 1783, 2110, 2132, 2091, 2091, 1996, 1996, 1996, 1873, 1788,
|
|
/* 320 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 330 */ 1783, 1783, 2350, 2349, 2214, 1783, 2263, 2262, 2261, 2252,
|
|
/* 340 */ 2213, 1957, 1783, 2212, 2211, 1783, 1783, 1783, 1783, 1783,
|
|
/* 350 */ 1783, 1783, 1783, 1783, 2082, 2081, 2205, 1783, 1783, 2206,
|
|
/* 360 */ 2204, 2203, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 370 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 380 */ 1783, 1783, 1783, 1783, 1783, 1783, 2370, 2374, 1783, 1783,
|
|
/* 390 */ 1783, 1783, 1783, 1783, 2288, 1783, 1783, 1783, 2187, 1783,
|
|
/* 400 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 410 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 420 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 430 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 440 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 450 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 460 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 470 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 480 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 490 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 500 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 510 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 520 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 530 */ 1783, 1783, 1820, 2192, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 540 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 550 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 560 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 570 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 580 */ 1783, 1783, 1783, 1783, 1911, 1910, 1783, 1783, 1783, 1783,
|
|
/* 590 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 600 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 2196, 1783,
|
|
/* 610 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 620 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 2366, 2323, 1783,
|
|
/* 630 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 640 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 2187, 1783, 2348,
|
|
/* 650 */ 1783, 1783, 2364, 1783, 2368, 1783, 1783, 1783, 1783, 1783,
|
|
/* 660 */ 1783, 1783, 2298, 2294, 1783, 1783, 2290, 1783, 1783, 1783,
|
|
/* 670 */ 1783, 1783, 2195, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 680 */ 1783, 1783, 1783, 1783, 1783, 1783, 2186, 1783, 2249, 1783,
|
|
/* 690 */ 1783, 1783, 2283, 1783, 1783, 2234, 1783, 1783, 1783, 1783,
|
|
/* 700 */ 1783, 1783, 1783, 1783, 1783, 2196, 1783, 2199, 1783, 1783,
|
|
/* 710 */ 1783, 1783, 1783, 1990, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 720 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1974,
|
|
/* 730 */ 1972, 1971, 1970, 1783, 1967, 1783, 2003, 1783, 1783, 1783,
|
|
/* 740 */ 1999, 1998, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 750 */ 1783, 1783, 1783, 1783, 1783, 1891, 1783, 1783, 1783, 1783,
|
|
/* 760 */ 1783, 1783, 1783, 1783, 1883, 1783, 1882, 1783, 1783, 1783,
|
|
/* 770 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 780 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
/* 790 */ 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783, 1783,
|
|
};
|
|
/********** End of lemon-generated parsing tables *****************************/
|
|
|
|
/* The next table maps tokens (terminal symbols) into fallback tokens.
|
|
** If a construct like the following:
|
|
**
|
|
** %fallback ID X Y Z.
|
|
**
|
|
** appears in the grammar, then ID becomes a fallback token for X, Y,
|
|
** and Z. Whenever one of the tokens X, Y, or Z is input to the parser
|
|
** but it does not parse, the type of the token is changed to ID and
|
|
** the parse is retried before an error is thrown.
|
|
**
|
|
** This feature can be used, for example, to cause some keywords in a language
|
|
** to revert to identifiers if they keyword does not apply in the context where
|
|
** it appears.
|
|
*/
|
|
#ifdef YYFALLBACK
|
|
static const YYCODETYPE yyFallback[] = {
|
|
0, /* $ => nothing */
|
|
0, /* OR => nothing */
|
|
0, /* AND => nothing */
|
|
0, /* UNION => nothing */
|
|
0, /* ALL => nothing */
|
|
0, /* MINUS => nothing */
|
|
0, /* EXCEPT => nothing */
|
|
0, /* INTERSECT => nothing */
|
|
0, /* NK_BITAND => nothing */
|
|
0, /* NK_BITOR => nothing */
|
|
0, /* NK_LSHIFT => nothing */
|
|
0, /* NK_RSHIFT => nothing */
|
|
0, /* NK_PLUS => nothing */
|
|
0, /* NK_MINUS => nothing */
|
|
0, /* NK_STAR => nothing */
|
|
0, /* NK_SLASH => nothing */
|
|
0, /* NK_REM => nothing */
|
|
0, /* NK_CONCAT => nothing */
|
|
0, /* CREATE => nothing */
|
|
0, /* ACCOUNT => nothing */
|
|
0, /* NK_ID => nothing */
|
|
0, /* PASS => nothing */
|
|
0, /* NK_STRING => nothing */
|
|
0, /* ALTER => nothing */
|
|
0, /* PPS => nothing */
|
|
0, /* TSERIES => nothing */
|
|
0, /* STORAGE => nothing */
|
|
0, /* STREAMS => nothing */
|
|
0, /* QTIME => nothing */
|
|
0, /* DBS => nothing */
|
|
0, /* USERS => nothing */
|
|
0, /* CONNS => nothing */
|
|
0, /* STATE => nothing */
|
|
0, /* USER => nothing */
|
|
0, /* ENABLE => nothing */
|
|
0, /* NK_INTEGER => nothing */
|
|
0, /* SYSINFO => nothing */
|
|
0, /* DROP => nothing */
|
|
0, /* GRANT => nothing */
|
|
0, /* ON => nothing */
|
|
0, /* TO => nothing */
|
|
0, /* REVOKE => nothing */
|
|
0, /* FROM => nothing */
|
|
0, /* SUBSCRIBE => nothing */
|
|
0, /* NK_COMMA => nothing */
|
|
0, /* READ => nothing */
|
|
0, /* WRITE => nothing */
|
|
0, /* NK_DOT => nothing */
|
|
0, /* WITH => nothing */
|
|
0, /* DNODE => nothing */
|
|
0, /* PORT => nothing */
|
|
0, /* DNODES => nothing */
|
|
0, /* RESTORE => nothing */
|
|
0, /* NK_IPTOKEN => nothing */
|
|
0, /* FORCE => nothing */
|
|
0, /* UNSAFE => nothing */
|
|
0, /* LOCAL => nothing */
|
|
0, /* QNODE => nothing */
|
|
0, /* BNODE => nothing */
|
|
0, /* SNODE => nothing */
|
|
0, /* MNODE => nothing */
|
|
0, /* VNODE => nothing */
|
|
0, /* DATABASE => nothing */
|
|
0, /* USE => nothing */
|
|
0, /* FLUSH => nothing */
|
|
0, /* TRIM => nothing */
|
|
0, /* COMPACT => nothing */
|
|
0, /* IF => nothing */
|
|
0, /* NOT => nothing */
|
|
0, /* EXISTS => nothing */
|
|
0, /* BUFFER => nothing */
|
|
0, /* CACHEMODEL => nothing */
|
|
0, /* CACHESIZE => nothing */
|
|
0, /* COMP => nothing */
|
|
0, /* DURATION => nothing */
|
|
0, /* NK_VARIABLE => nothing */
|
|
0, /* MAXROWS => nothing */
|
|
0, /* MINROWS => nothing */
|
|
0, /* KEEP => nothing */
|
|
0, /* PAGES => nothing */
|
|
0, /* PAGESIZE => nothing */
|
|
0, /* TSDB_PAGESIZE => nothing */
|
|
0, /* PRECISION => nothing */
|
|
0, /* REPLICA => nothing */
|
|
0, /* VGROUPS => nothing */
|
|
0, /* SINGLE_STABLE => nothing */
|
|
0, /* RETENTIONS => nothing */
|
|
0, /* SCHEMALESS => nothing */
|
|
0, /* WAL_LEVEL => nothing */
|
|
0, /* WAL_FSYNC_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_SIZE => nothing */
|
|
0, /* WAL_ROLL_PERIOD => nothing */
|
|
0, /* WAL_SEGMENT_SIZE => nothing */
|
|
0, /* STT_TRIGGER => nothing */
|
|
0, /* TABLE_PREFIX => nothing */
|
|
0, /* TABLE_SUFFIX => nothing */
|
|
0, /* NK_COLON => nothing */
|
|
0, /* MAX_SPEED => nothing */
|
|
0, /* START => nothing */
|
|
0, /* TIMESTAMP => nothing */
|
|
288, /* END => ABORT */
|
|
0, /* TABLE => nothing */
|
|
0, /* NK_LP => nothing */
|
|
0, /* NK_RP => nothing */
|
|
0, /* STABLE => nothing */
|
|
0, /* ADD => nothing */
|
|
0, /* COLUMN => nothing */
|
|
0, /* MODIFY => nothing */
|
|
0, /* RENAME => nothing */
|
|
0, /* TAG => nothing */
|
|
0, /* SET => nothing */
|
|
0, /* NK_EQ => nothing */
|
|
0, /* USING => nothing */
|
|
0, /* TAGS => nothing */
|
|
0, /* COMMENT => nothing */
|
|
0, /* BOOL => nothing */
|
|
0, /* TINYINT => nothing */
|
|
0, /* SMALLINT => nothing */
|
|
0, /* INT => nothing */
|
|
0, /* INTEGER => nothing */
|
|
0, /* BIGINT => nothing */
|
|
0, /* FLOAT => nothing */
|
|
0, /* DOUBLE => nothing */
|
|
0, /* BINARY => nothing */
|
|
0, /* NCHAR => nothing */
|
|
0, /* UNSIGNED => nothing */
|
|
0, /* JSON => nothing */
|
|
0, /* VARCHAR => nothing */
|
|
0, /* MEDIUMBLOB => nothing */
|
|
0, /* BLOB => nothing */
|
|
0, /* VARBINARY => nothing */
|
|
0, /* GEOMETRY => nothing */
|
|
0, /* DECIMAL => nothing */
|
|
0, /* MAX_DELAY => nothing */
|
|
0, /* WATERMARK => nothing */
|
|
0, /* ROLLUP => nothing */
|
|
0, /* TTL => nothing */
|
|
0, /* SMA => nothing */
|
|
0, /* DELETE_MARK => nothing */
|
|
0, /* FIRST => nothing */
|
|
0, /* LAST => nothing */
|
|
0, /* SHOW => nothing */
|
|
0, /* PRIVILEGES => nothing */
|
|
0, /* DATABASES => nothing */
|
|
0, /* TABLES => nothing */
|
|
0, /* STABLES => nothing */
|
|
0, /* MNODES => nothing */
|
|
0, /* QNODES => nothing */
|
|
0, /* FUNCTIONS => nothing */
|
|
0, /* INDEXES => nothing */
|
|
0, /* ACCOUNTS => nothing */
|
|
0, /* APPS => nothing */
|
|
0, /* CONNECTIONS => nothing */
|
|
0, /* LICENCES => nothing */
|
|
0, /* GRANTS => nothing */
|
|
0, /* QUERIES => nothing */
|
|
0, /* SCORES => nothing */
|
|
0, /* TOPICS => nothing */
|
|
0, /* VARIABLES => nothing */
|
|
0, /* CLUSTER => nothing */
|
|
0, /* BNODES => nothing */
|
|
0, /* SNODES => nothing */
|
|
0, /* TRANSACTIONS => nothing */
|
|
0, /* DISTRIBUTED => nothing */
|
|
0, /* CONSUMERS => nothing */
|
|
0, /* SUBSCRIPTIONS => nothing */
|
|
0, /* VNODES => nothing */
|
|
0, /* ALIVE => nothing */
|
|
0, /* LIKE => nothing */
|
|
0, /* TBNAME => nothing */
|
|
0, /* QTAGS => nothing */
|
|
0, /* AS => nothing */
|
|
0, /* INDEX => nothing */
|
|
0, /* FUNCTION => nothing */
|
|
0, /* INTERVAL => nothing */
|
|
0, /* COUNT => nothing */
|
|
0, /* LAST_ROW => nothing */
|
|
0, /* META => nothing */
|
|
0, /* ONLY => nothing */
|
|
0, /* TOPIC => nothing */
|
|
0, /* CONSUMER => nothing */
|
|
0, /* GROUP => nothing */
|
|
0, /* DESC => nothing */
|
|
0, /* DESCRIBE => nothing */
|
|
0, /* RESET => nothing */
|
|
0, /* QUERY => nothing */
|
|
0, /* CACHE => nothing */
|
|
0, /* EXPLAIN => nothing */
|
|
0, /* ANALYZE => nothing */
|
|
0, /* VERBOSE => nothing */
|
|
0, /* NK_BOOL => nothing */
|
|
0, /* RATIO => nothing */
|
|
0, /* NK_FLOAT => nothing */
|
|
0, /* OUTPUTTYPE => nothing */
|
|
0, /* AGGREGATE => nothing */
|
|
0, /* BUFSIZE => nothing */
|
|
0, /* LANGUAGE => nothing */
|
|
0, /* REPLACE => nothing */
|
|
0, /* STREAM => nothing */
|
|
0, /* INTO => nothing */
|
|
0, /* PAUSE => nothing */
|
|
0, /* RESUME => nothing */
|
|
0, /* TRIGGER => nothing */
|
|
0, /* AT_ONCE => nothing */
|
|
0, /* WINDOW_CLOSE => nothing */
|
|
0, /* IGNORE => nothing */
|
|
0, /* EXPIRED => nothing */
|
|
0, /* FILL_HISTORY => nothing */
|
|
0, /* UPDATE => nothing */
|
|
0, /* SUBTABLE => nothing */
|
|
0, /* UNTREATED => nothing */
|
|
0, /* KILL => nothing */
|
|
0, /* CONNECTION => nothing */
|
|
0, /* TRANSACTION => nothing */
|
|
0, /* BALANCE => nothing */
|
|
0, /* VGROUP => nothing */
|
|
0, /* LEADER => nothing */
|
|
0, /* MERGE => nothing */
|
|
0, /* REDISTRIBUTE => nothing */
|
|
0, /* SPLIT => nothing */
|
|
0, /* DELETE => nothing */
|
|
0, /* INSERT => nothing */
|
|
0, /* NULL => nothing */
|
|
0, /* NK_QUESTION => nothing */
|
|
0, /* NK_ARROW => nothing */
|
|
0, /* ROWTS => nothing */
|
|
0, /* QSTART => nothing */
|
|
0, /* QEND => nothing */
|
|
0, /* QDURATION => nothing */
|
|
0, /* WSTART => nothing */
|
|
0, /* WEND => nothing */
|
|
0, /* WDURATION => nothing */
|
|
0, /* IROWTS => nothing */
|
|
0, /* ISFILLED => nothing */
|
|
0, /* CAST => nothing */
|
|
0, /* NOW => nothing */
|
|
0, /* TODAY => nothing */
|
|
0, /* TIMEZONE => nothing */
|
|
0, /* CLIENT_VERSION => nothing */
|
|
0, /* SERVER_VERSION => nothing */
|
|
0, /* SERVER_STATUS => nothing */
|
|
0, /* CURRENT_USER => nothing */
|
|
0, /* CASE => nothing */
|
|
0, /* WHEN => nothing */
|
|
0, /* THEN => nothing */
|
|
0, /* ELSE => nothing */
|
|
0, /* BETWEEN => nothing */
|
|
0, /* IS => nothing */
|
|
0, /* NK_LT => nothing */
|
|
0, /* NK_GT => nothing */
|
|
0, /* NK_LE => nothing */
|
|
0, /* NK_GE => nothing */
|
|
0, /* NK_NE => nothing */
|
|
0, /* MATCH => nothing */
|
|
0, /* NMATCH => nothing */
|
|
0, /* CONTAINS => nothing */
|
|
0, /* IN => nothing */
|
|
0, /* JOIN => nothing */
|
|
0, /* INNER => nothing */
|
|
0, /* SELECT => nothing */
|
|
0, /* 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 */
|
|
288, /* AFTER => ABORT */
|
|
288, /* ATTACH => ABORT */
|
|
288, /* BEFORE => ABORT */
|
|
288, /* BEGIN => ABORT */
|
|
288, /* BITAND => ABORT */
|
|
288, /* BITNOT => ABORT */
|
|
288, /* BITOR => ABORT */
|
|
288, /* BLOCKS => ABORT */
|
|
288, /* CHANGE => ABORT */
|
|
288, /* COMMA => ABORT */
|
|
288, /* CONCAT => ABORT */
|
|
288, /* CONFLICT => ABORT */
|
|
288, /* COPY => ABORT */
|
|
288, /* DEFERRED => ABORT */
|
|
288, /* DELIMITERS => ABORT */
|
|
288, /* DETACH => ABORT */
|
|
288, /* DIVIDE => ABORT */
|
|
288, /* DOT => ABORT */
|
|
288, /* EACH => ABORT */
|
|
288, /* FAIL => ABORT */
|
|
288, /* FILE => ABORT */
|
|
288, /* FOR => ABORT */
|
|
288, /* GLOB => ABORT */
|
|
288, /* ID => ABORT */
|
|
288, /* IMMEDIATE => ABORT */
|
|
288, /* IMPORT => ABORT */
|
|
288, /* INITIALLY => ABORT */
|
|
288, /* INSTEAD => ABORT */
|
|
288, /* ISNULL => ABORT */
|
|
288, /* KEY => ABORT */
|
|
288, /* MODULES => ABORT */
|
|
288, /* NK_BITNOT => ABORT */
|
|
288, /* NK_SEMI => ABORT */
|
|
288, /* NOTNULL => ABORT */
|
|
288, /* OF => ABORT */
|
|
288, /* PLUS => ABORT */
|
|
288, /* PRIVILEGE => ABORT */
|
|
288, /* RAISE => ABORT */
|
|
288, /* RESTRICT => ABORT */
|
|
288, /* ROW => ABORT */
|
|
288, /* SEMI => ABORT */
|
|
288, /* STAR => ABORT */
|
|
288, /* STATEMENT => ABORT */
|
|
288, /* STRICT => ABORT */
|
|
288, /* STRING => ABORT */
|
|
288, /* TIMES => ABORT */
|
|
288, /* VALUES => ABORT */
|
|
288, /* VARIABLE => ABORT */
|
|
288, /* VIEW => ABORT */
|
|
288, /* 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 */ "USER",
|
|
/* 34 */ "ENABLE",
|
|
/* 35 */ "NK_INTEGER",
|
|
/* 36 */ "SYSINFO",
|
|
/* 37 */ "DROP",
|
|
/* 38 */ "GRANT",
|
|
/* 39 */ "ON",
|
|
/* 40 */ "TO",
|
|
/* 41 */ "REVOKE",
|
|
/* 42 */ "FROM",
|
|
/* 43 */ "SUBSCRIBE",
|
|
/* 44 */ "NK_COMMA",
|
|
/* 45 */ "READ",
|
|
/* 46 */ "WRITE",
|
|
/* 47 */ "NK_DOT",
|
|
/* 48 */ "WITH",
|
|
/* 49 */ "DNODE",
|
|
/* 50 */ "PORT",
|
|
/* 51 */ "DNODES",
|
|
/* 52 */ "RESTORE",
|
|
/* 53 */ "NK_IPTOKEN",
|
|
/* 54 */ "FORCE",
|
|
/* 55 */ "UNSAFE",
|
|
/* 56 */ "LOCAL",
|
|
/* 57 */ "QNODE",
|
|
/* 58 */ "BNODE",
|
|
/* 59 */ "SNODE",
|
|
/* 60 */ "MNODE",
|
|
/* 61 */ "VNODE",
|
|
/* 62 */ "DATABASE",
|
|
/* 63 */ "USE",
|
|
/* 64 */ "FLUSH",
|
|
/* 65 */ "TRIM",
|
|
/* 66 */ "COMPACT",
|
|
/* 67 */ "IF",
|
|
/* 68 */ "NOT",
|
|
/* 69 */ "EXISTS",
|
|
/* 70 */ "BUFFER",
|
|
/* 71 */ "CACHEMODEL",
|
|
/* 72 */ "CACHESIZE",
|
|
/* 73 */ "COMP",
|
|
/* 74 */ "DURATION",
|
|
/* 75 */ "NK_VARIABLE",
|
|
/* 76 */ "MAXROWS",
|
|
/* 77 */ "MINROWS",
|
|
/* 78 */ "KEEP",
|
|
/* 79 */ "PAGES",
|
|
/* 80 */ "PAGESIZE",
|
|
/* 81 */ "TSDB_PAGESIZE",
|
|
/* 82 */ "PRECISION",
|
|
/* 83 */ "REPLICA",
|
|
/* 84 */ "VGROUPS",
|
|
/* 85 */ "SINGLE_STABLE",
|
|
/* 86 */ "RETENTIONS",
|
|
/* 87 */ "SCHEMALESS",
|
|
/* 88 */ "WAL_LEVEL",
|
|
/* 89 */ "WAL_FSYNC_PERIOD",
|
|
/* 90 */ "WAL_RETENTION_PERIOD",
|
|
/* 91 */ "WAL_RETENTION_SIZE",
|
|
/* 92 */ "WAL_ROLL_PERIOD",
|
|
/* 93 */ "WAL_SEGMENT_SIZE",
|
|
/* 94 */ "STT_TRIGGER",
|
|
/* 95 */ "TABLE_PREFIX",
|
|
/* 96 */ "TABLE_SUFFIX",
|
|
/* 97 */ "NK_COLON",
|
|
/* 98 */ "MAX_SPEED",
|
|
/* 99 */ "START",
|
|
/* 100 */ "TIMESTAMP",
|
|
/* 101 */ "END",
|
|
/* 102 */ "TABLE",
|
|
/* 103 */ "NK_LP",
|
|
/* 104 */ "NK_RP",
|
|
/* 105 */ "STABLE",
|
|
/* 106 */ "ADD",
|
|
/* 107 */ "COLUMN",
|
|
/* 108 */ "MODIFY",
|
|
/* 109 */ "RENAME",
|
|
/* 110 */ "TAG",
|
|
/* 111 */ "SET",
|
|
/* 112 */ "NK_EQ",
|
|
/* 113 */ "USING",
|
|
/* 114 */ "TAGS",
|
|
/* 115 */ "COMMENT",
|
|
/* 116 */ "BOOL",
|
|
/* 117 */ "TINYINT",
|
|
/* 118 */ "SMALLINT",
|
|
/* 119 */ "INT",
|
|
/* 120 */ "INTEGER",
|
|
/* 121 */ "BIGINT",
|
|
/* 122 */ "FLOAT",
|
|
/* 123 */ "DOUBLE",
|
|
/* 124 */ "BINARY",
|
|
/* 125 */ "NCHAR",
|
|
/* 126 */ "UNSIGNED",
|
|
/* 127 */ "JSON",
|
|
/* 128 */ "VARCHAR",
|
|
/* 129 */ "MEDIUMBLOB",
|
|
/* 130 */ "BLOB",
|
|
/* 131 */ "VARBINARY",
|
|
/* 132 */ "GEOMETRY",
|
|
/* 133 */ "DECIMAL",
|
|
/* 134 */ "MAX_DELAY",
|
|
/* 135 */ "WATERMARK",
|
|
/* 136 */ "ROLLUP",
|
|
/* 137 */ "TTL",
|
|
/* 138 */ "SMA",
|
|
/* 139 */ "DELETE_MARK",
|
|
/* 140 */ "FIRST",
|
|
/* 141 */ "LAST",
|
|
/* 142 */ "SHOW",
|
|
/* 143 */ "PRIVILEGES",
|
|
/* 144 */ "DATABASES",
|
|
/* 145 */ "TABLES",
|
|
/* 146 */ "STABLES",
|
|
/* 147 */ "MNODES",
|
|
/* 148 */ "QNODES",
|
|
/* 149 */ "FUNCTIONS",
|
|
/* 150 */ "INDEXES",
|
|
/* 151 */ "ACCOUNTS",
|
|
/* 152 */ "APPS",
|
|
/* 153 */ "CONNECTIONS",
|
|
/* 154 */ "LICENCES",
|
|
/* 155 */ "GRANTS",
|
|
/* 156 */ "QUERIES",
|
|
/* 157 */ "SCORES",
|
|
/* 158 */ "TOPICS",
|
|
/* 159 */ "VARIABLES",
|
|
/* 160 */ "CLUSTER",
|
|
/* 161 */ "BNODES",
|
|
/* 162 */ "SNODES",
|
|
/* 163 */ "TRANSACTIONS",
|
|
/* 164 */ "DISTRIBUTED",
|
|
/* 165 */ "CONSUMERS",
|
|
/* 166 */ "SUBSCRIPTIONS",
|
|
/* 167 */ "VNODES",
|
|
/* 168 */ "ALIVE",
|
|
/* 169 */ "LIKE",
|
|
/* 170 */ "TBNAME",
|
|
/* 171 */ "QTAGS",
|
|
/* 172 */ "AS",
|
|
/* 173 */ "INDEX",
|
|
/* 174 */ "FUNCTION",
|
|
/* 175 */ "INTERVAL",
|
|
/* 176 */ "COUNT",
|
|
/* 177 */ "LAST_ROW",
|
|
/* 178 */ "META",
|
|
/* 179 */ "ONLY",
|
|
/* 180 */ "TOPIC",
|
|
/* 181 */ "CONSUMER",
|
|
/* 182 */ "GROUP",
|
|
/* 183 */ "DESC",
|
|
/* 184 */ "DESCRIBE",
|
|
/* 185 */ "RESET",
|
|
/* 186 */ "QUERY",
|
|
/* 187 */ "CACHE",
|
|
/* 188 */ "EXPLAIN",
|
|
/* 189 */ "ANALYZE",
|
|
/* 190 */ "VERBOSE",
|
|
/* 191 */ "NK_BOOL",
|
|
/* 192 */ "RATIO",
|
|
/* 193 */ "NK_FLOAT",
|
|
/* 194 */ "OUTPUTTYPE",
|
|
/* 195 */ "AGGREGATE",
|
|
/* 196 */ "BUFSIZE",
|
|
/* 197 */ "LANGUAGE",
|
|
/* 198 */ "REPLACE",
|
|
/* 199 */ "STREAM",
|
|
/* 200 */ "INTO",
|
|
/* 201 */ "PAUSE",
|
|
/* 202 */ "RESUME",
|
|
/* 203 */ "TRIGGER",
|
|
/* 204 */ "AT_ONCE",
|
|
/* 205 */ "WINDOW_CLOSE",
|
|
/* 206 */ "IGNORE",
|
|
/* 207 */ "EXPIRED",
|
|
/* 208 */ "FILL_HISTORY",
|
|
/* 209 */ "UPDATE",
|
|
/* 210 */ "SUBTABLE",
|
|
/* 211 */ "UNTREATED",
|
|
/* 212 */ "KILL",
|
|
/* 213 */ "CONNECTION",
|
|
/* 214 */ "TRANSACTION",
|
|
/* 215 */ "BALANCE",
|
|
/* 216 */ "VGROUP",
|
|
/* 217 */ "LEADER",
|
|
/* 218 */ "MERGE",
|
|
/* 219 */ "REDISTRIBUTE",
|
|
/* 220 */ "SPLIT",
|
|
/* 221 */ "DELETE",
|
|
/* 222 */ "INSERT",
|
|
/* 223 */ "NULL",
|
|
/* 224 */ "NK_QUESTION",
|
|
/* 225 */ "NK_ARROW",
|
|
/* 226 */ "ROWTS",
|
|
/* 227 */ "QSTART",
|
|
/* 228 */ "QEND",
|
|
/* 229 */ "QDURATION",
|
|
/* 230 */ "WSTART",
|
|
/* 231 */ "WEND",
|
|
/* 232 */ "WDURATION",
|
|
/* 233 */ "IROWTS",
|
|
/* 234 */ "ISFILLED",
|
|
/* 235 */ "CAST",
|
|
/* 236 */ "NOW",
|
|
/* 237 */ "TODAY",
|
|
/* 238 */ "TIMEZONE",
|
|
/* 239 */ "CLIENT_VERSION",
|
|
/* 240 */ "SERVER_VERSION",
|
|
/* 241 */ "SERVER_STATUS",
|
|
/* 242 */ "CURRENT_USER",
|
|
/* 243 */ "CASE",
|
|
/* 244 */ "WHEN",
|
|
/* 245 */ "THEN",
|
|
/* 246 */ "ELSE",
|
|
/* 247 */ "BETWEEN",
|
|
/* 248 */ "IS",
|
|
/* 249 */ "NK_LT",
|
|
/* 250 */ "NK_GT",
|
|
/* 251 */ "NK_LE",
|
|
/* 252 */ "NK_GE",
|
|
/* 253 */ "NK_NE",
|
|
/* 254 */ "MATCH",
|
|
/* 255 */ "NMATCH",
|
|
/* 256 */ "CONTAINS",
|
|
/* 257 */ "IN",
|
|
/* 258 */ "JOIN",
|
|
/* 259 */ "INNER",
|
|
/* 260 */ "SELECT",
|
|
/* 261 */ "NK_HINT",
|
|
/* 262 */ "DISTINCT",
|
|
/* 263 */ "WHERE",
|
|
/* 264 */ "PARTITION",
|
|
/* 265 */ "BY",
|
|
/* 266 */ "SESSION",
|
|
/* 267 */ "STATE_WINDOW",
|
|
/* 268 */ "EVENT_WINDOW",
|
|
/* 269 */ "SLIDING",
|
|
/* 270 */ "FILL",
|
|
/* 271 */ "VALUE",
|
|
/* 272 */ "VALUE_F",
|
|
/* 273 */ "NONE",
|
|
/* 274 */ "PREV",
|
|
/* 275 */ "NULL_F",
|
|
/* 276 */ "LINEAR",
|
|
/* 277 */ "NEXT",
|
|
/* 278 */ "HAVING",
|
|
/* 279 */ "RANGE",
|
|
/* 280 */ "EVERY",
|
|
/* 281 */ "ORDER",
|
|
/* 282 */ "SLIMIT",
|
|
/* 283 */ "SOFFSET",
|
|
/* 284 */ "LIMIT",
|
|
/* 285 */ "OFFSET",
|
|
/* 286 */ "ASC",
|
|
/* 287 */ "NULLS",
|
|
/* 288 */ "ABORT",
|
|
/* 289 */ "AFTER",
|
|
/* 290 */ "ATTACH",
|
|
/* 291 */ "BEFORE",
|
|
/* 292 */ "BEGIN",
|
|
/* 293 */ "BITAND",
|
|
/* 294 */ "BITNOT",
|
|
/* 295 */ "BITOR",
|
|
/* 296 */ "BLOCKS",
|
|
/* 297 */ "CHANGE",
|
|
/* 298 */ "COMMA",
|
|
/* 299 */ "CONCAT",
|
|
/* 300 */ "CONFLICT",
|
|
/* 301 */ "COPY",
|
|
/* 302 */ "DEFERRED",
|
|
/* 303 */ "DELIMITERS",
|
|
/* 304 */ "DETACH",
|
|
/* 305 */ "DIVIDE",
|
|
/* 306 */ "DOT",
|
|
/* 307 */ "EACH",
|
|
/* 308 */ "FAIL",
|
|
/* 309 */ "FILE",
|
|
/* 310 */ "FOR",
|
|
/* 311 */ "GLOB",
|
|
/* 312 */ "ID",
|
|
/* 313 */ "IMMEDIATE",
|
|
/* 314 */ "IMPORT",
|
|
/* 315 */ "INITIALLY",
|
|
/* 316 */ "INSTEAD",
|
|
/* 317 */ "ISNULL",
|
|
/* 318 */ "KEY",
|
|
/* 319 */ "MODULES",
|
|
/* 320 */ "NK_BITNOT",
|
|
/* 321 */ "NK_SEMI",
|
|
/* 322 */ "NOTNULL",
|
|
/* 323 */ "OF",
|
|
/* 324 */ "PLUS",
|
|
/* 325 */ "PRIVILEGE",
|
|
/* 326 */ "RAISE",
|
|
/* 327 */ "RESTRICT",
|
|
/* 328 */ "ROW",
|
|
/* 329 */ "SEMI",
|
|
/* 330 */ "STAR",
|
|
/* 331 */ "STATEMENT",
|
|
/* 332 */ "STRICT",
|
|
/* 333 */ "STRING",
|
|
/* 334 */ "TIMES",
|
|
/* 335 */ "VALUES",
|
|
/* 336 */ "VARIABLE",
|
|
/* 337 */ "VIEW",
|
|
/* 338 */ "WAL",
|
|
/* 339 */ "cmd",
|
|
/* 340 */ "account_options",
|
|
/* 341 */ "alter_account_options",
|
|
/* 342 */ "literal",
|
|
/* 343 */ "alter_account_option",
|
|
/* 344 */ "user_name",
|
|
/* 345 */ "sysinfo_opt",
|
|
/* 346 */ "privileges",
|
|
/* 347 */ "priv_level",
|
|
/* 348 */ "with_opt",
|
|
/* 349 */ "priv_type_list",
|
|
/* 350 */ "priv_type",
|
|
/* 351 */ "db_name",
|
|
/* 352 */ "table_name",
|
|
/* 353 */ "topic_name",
|
|
/* 354 */ "search_condition",
|
|
/* 355 */ "dnode_endpoint",
|
|
/* 356 */ "force_opt",
|
|
/* 357 */ "unsafe_opt",
|
|
/* 358 */ "not_exists_opt",
|
|
/* 359 */ "db_options",
|
|
/* 360 */ "exists_opt",
|
|
/* 361 */ "alter_db_options",
|
|
/* 362 */ "speed_opt",
|
|
/* 363 */ "start_opt",
|
|
/* 364 */ "end_opt",
|
|
/* 365 */ "integer_list",
|
|
/* 366 */ "variable_list",
|
|
/* 367 */ "retention_list",
|
|
/* 368 */ "signed",
|
|
/* 369 */ "alter_db_option",
|
|
/* 370 */ "retention",
|
|
/* 371 */ "full_table_name",
|
|
/* 372 */ "column_def_list",
|
|
/* 373 */ "tags_def_opt",
|
|
/* 374 */ "table_options",
|
|
/* 375 */ "multi_create_clause",
|
|
/* 376 */ "tags_def",
|
|
/* 377 */ "multi_drop_clause",
|
|
/* 378 */ "alter_table_clause",
|
|
/* 379 */ "alter_table_options",
|
|
/* 380 */ "column_def",
|
|
/* 381 */ "column_name",
|
|
/* 382 */ "signed_literal",
|
|
/* 383 */ "create_subtable_clause",
|
|
/* 384 */ "specific_cols_opt",
|
|
/* 385 */ "expression_list",
|
|
/* 386 */ "drop_table_clause",
|
|
/* 387 */ "col_name_list",
|
|
/* 388 */ "type_name",
|
|
/* 389 */ "duration_list",
|
|
/* 390 */ "rollup_func_list",
|
|
/* 391 */ "alter_table_option",
|
|
/* 392 */ "duration_literal",
|
|
/* 393 */ "rollup_func_name",
|
|
/* 394 */ "function_name",
|
|
/* 395 */ "col_name",
|
|
/* 396 */ "db_name_cond_opt",
|
|
/* 397 */ "like_pattern_opt",
|
|
/* 398 */ "table_name_cond",
|
|
/* 399 */ "from_db_opt",
|
|
/* 400 */ "tag_list_opt",
|
|
/* 401 */ "tag_item",
|
|
/* 402 */ "column_alias",
|
|
/* 403 */ "full_index_name",
|
|
/* 404 */ "index_options",
|
|
/* 405 */ "index_name",
|
|
/* 406 */ "func_list",
|
|
/* 407 */ "sliding_opt",
|
|
/* 408 */ "sma_stream_opt",
|
|
/* 409 */ "func",
|
|
/* 410 */ "sma_func_name",
|
|
/* 411 */ "with_meta",
|
|
/* 412 */ "query_or_subquery",
|
|
/* 413 */ "where_clause_opt",
|
|
/* 414 */ "cgroup_name",
|
|
/* 415 */ "analyze_opt",
|
|
/* 416 */ "explain_options",
|
|
/* 417 */ "insert_query",
|
|
/* 418 */ "or_replace_opt",
|
|
/* 419 */ "agg_func_opt",
|
|
/* 420 */ "bufsize_opt",
|
|
/* 421 */ "language_opt",
|
|
/* 422 */ "stream_name",
|
|
/* 423 */ "stream_options",
|
|
/* 424 */ "col_list_opt",
|
|
/* 425 */ "tag_def_or_ref_opt",
|
|
/* 426 */ "subtable_opt",
|
|
/* 427 */ "ignore_opt",
|
|
/* 428 */ "expression",
|
|
/* 429 */ "dnode_list",
|
|
/* 430 */ "literal_func",
|
|
/* 431 */ "literal_list",
|
|
/* 432 */ "table_alias",
|
|
/* 433 */ "expr_or_subquery",
|
|
/* 434 */ "pseudo_column",
|
|
/* 435 */ "column_reference",
|
|
/* 436 */ "function_expression",
|
|
/* 437 */ "case_when_expression",
|
|
/* 438 */ "star_func",
|
|
/* 439 */ "star_func_para_list",
|
|
/* 440 */ "noarg_func",
|
|
/* 441 */ "other_para_list",
|
|
/* 442 */ "star_func_para",
|
|
/* 443 */ "when_then_list",
|
|
/* 444 */ "case_when_else_opt",
|
|
/* 445 */ "common_expression",
|
|
/* 446 */ "when_then_expr",
|
|
/* 447 */ "predicate",
|
|
/* 448 */ "compare_op",
|
|
/* 449 */ "in_op",
|
|
/* 450 */ "in_predicate_value",
|
|
/* 451 */ "boolean_value_expression",
|
|
/* 452 */ "boolean_primary",
|
|
/* 453 */ "from_clause_opt",
|
|
/* 454 */ "table_reference_list",
|
|
/* 455 */ "table_reference",
|
|
/* 456 */ "table_primary",
|
|
/* 457 */ "joined_table",
|
|
/* 458 */ "alias_opt",
|
|
/* 459 */ "subquery",
|
|
/* 460 */ "parenthesized_joined_table",
|
|
/* 461 */ "join_type",
|
|
/* 462 */ "query_specification",
|
|
/* 463 */ "hint_list",
|
|
/* 464 */ "set_quantifier_opt",
|
|
/* 465 */ "select_list",
|
|
/* 466 */ "partition_by_clause_opt",
|
|
/* 467 */ "range_opt",
|
|
/* 468 */ "every_opt",
|
|
/* 469 */ "fill_opt",
|
|
/* 470 */ "twindow_clause_opt",
|
|
/* 471 */ "group_by_clause_opt",
|
|
/* 472 */ "having_clause_opt",
|
|
/* 473 */ "select_item",
|
|
/* 474 */ "partition_list",
|
|
/* 475 */ "partition_item",
|
|
/* 476 */ "fill_mode",
|
|
/* 477 */ "group_by_list",
|
|
/* 478 */ "query_expression",
|
|
/* 479 */ "query_simple",
|
|
/* 480 */ "order_by_clause_opt",
|
|
/* 481 */ "slimit_clause_opt",
|
|
/* 482 */ "limit_clause_opt",
|
|
/* 483 */ "union_query_expression",
|
|
/* 484 */ "query_simple_or_subquery",
|
|
/* 485 */ "sort_specification_list",
|
|
/* 486 */ "sort_specification",
|
|
/* 487 */ "ordering_specification_opt",
|
|
/* 488 */ "null_ordering_opt",
|
|
};
|
|
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
|
|
|
|
#ifndef NDEBUG
|
|
/* For tracing reduce actions, the names of all rules are required.
|
|
*/
|
|
static const char *const yyRuleName[] = {
|
|
/* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
|
|
/* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
|
|
/* 2 */ "account_options ::=",
|
|
/* 3 */ "account_options ::= account_options PPS literal",
|
|
/* 4 */ "account_options ::= account_options TSERIES literal",
|
|
/* 5 */ "account_options ::= account_options STORAGE literal",
|
|
/* 6 */ "account_options ::= account_options STREAMS literal",
|
|
/* 7 */ "account_options ::= account_options QTIME literal",
|
|
/* 8 */ "account_options ::= account_options DBS literal",
|
|
/* 9 */ "account_options ::= account_options USERS literal",
|
|
/* 10 */ "account_options ::= account_options CONNS literal",
|
|
/* 11 */ "account_options ::= account_options STATE literal",
|
|
/* 12 */ "alter_account_options ::= alter_account_option",
|
|
/* 13 */ "alter_account_options ::= alter_account_options alter_account_option",
|
|
/* 14 */ "alter_account_option ::= PASS literal",
|
|
/* 15 */ "alter_account_option ::= PPS literal",
|
|
/* 16 */ "alter_account_option ::= TSERIES literal",
|
|
/* 17 */ "alter_account_option ::= STORAGE literal",
|
|
/* 18 */ "alter_account_option ::= STREAMS literal",
|
|
/* 19 */ "alter_account_option ::= QTIME literal",
|
|
/* 20 */ "alter_account_option ::= DBS literal",
|
|
/* 21 */ "alter_account_option ::= USERS literal",
|
|
/* 22 */ "alter_account_option ::= CONNS literal",
|
|
/* 23 */ "alter_account_option ::= STATE literal",
|
|
/* 24 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt",
|
|
/* 25 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
|
|
/* 26 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
|
|
/* 27 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
|
|
/* 28 */ "cmd ::= DROP USER user_name",
|
|
/* 29 */ "sysinfo_opt ::=",
|
|
/* 30 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
|
|
/* 31 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
|
|
/* 32 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
|
|
/* 33 */ "privileges ::= ALL",
|
|
/* 34 */ "privileges ::= priv_type_list",
|
|
/* 35 */ "privileges ::= SUBSCRIBE",
|
|
/* 36 */ "priv_type_list ::= priv_type",
|
|
/* 37 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
|
|
/* 38 */ "priv_type ::= READ",
|
|
/* 39 */ "priv_type ::= WRITE",
|
|
/* 40 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
|
|
/* 41 */ "priv_level ::= db_name NK_DOT NK_STAR",
|
|
/* 42 */ "priv_level ::= db_name NK_DOT table_name",
|
|
/* 43 */ "priv_level ::= topic_name",
|
|
/* 44 */ "with_opt ::=",
|
|
/* 45 */ "with_opt ::= WITH search_condition",
|
|
/* 46 */ "cmd ::= CREATE DNODE dnode_endpoint",
|
|
/* 47 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
|
|
/* 48 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
|
|
/* 49 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
|
|
/* 50 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
|
|
/* 51 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
|
|
/* 52 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
|
|
/* 53 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
|
|
/* 54 */ "cmd ::= ALTER ALL DNODES NK_STRING",
|
|
/* 55 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
|
|
/* 56 */ "cmd ::= RESTORE DNODE NK_INTEGER",
|
|
/* 57 */ "dnode_endpoint ::= NK_STRING",
|
|
/* 58 */ "dnode_endpoint ::= NK_ID",
|
|
/* 59 */ "dnode_endpoint ::= NK_IPTOKEN",
|
|
/* 60 */ "force_opt ::=",
|
|
/* 61 */ "force_opt ::= FORCE",
|
|
/* 62 */ "unsafe_opt ::= UNSAFE",
|
|
/* 63 */ "cmd ::= ALTER LOCAL NK_STRING",
|
|
/* 64 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
|
|
/* 65 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
|
|
/* 66 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
|
|
/* 67 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
|
|
/* 68 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
|
|
/* 69 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
|
|
/* 70 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
|
|
/* 71 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
|
|
/* 72 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
|
|
/* 73 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
|
|
/* 74 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
|
|
/* 75 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
|
|
/* 76 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
|
|
/* 77 */ "cmd ::= DROP DATABASE exists_opt db_name",
|
|
/* 78 */ "cmd ::= USE db_name",
|
|
/* 79 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
|
|
/* 80 */ "cmd ::= FLUSH DATABASE db_name",
|
|
/* 81 */ "cmd ::= TRIM DATABASE db_name speed_opt",
|
|
/* 82 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
|
|
/* 83 */ "not_exists_opt ::= IF NOT EXISTS",
|
|
/* 84 */ "not_exists_opt ::=",
|
|
/* 85 */ "exists_opt ::= IF EXISTS",
|
|
/* 86 */ "exists_opt ::=",
|
|
/* 87 */ "db_options ::=",
|
|
/* 88 */ "db_options ::= db_options BUFFER NK_INTEGER",
|
|
/* 89 */ "db_options ::= db_options CACHEMODEL NK_STRING",
|
|
/* 90 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
|
|
/* 91 */ "db_options ::= db_options COMP NK_INTEGER",
|
|
/* 92 */ "db_options ::= db_options DURATION NK_INTEGER",
|
|
/* 93 */ "db_options ::= db_options DURATION NK_VARIABLE",
|
|
/* 94 */ "db_options ::= db_options MAXROWS NK_INTEGER",
|
|
/* 95 */ "db_options ::= db_options MINROWS NK_INTEGER",
|
|
/* 96 */ "db_options ::= db_options KEEP integer_list",
|
|
/* 97 */ "db_options ::= db_options KEEP variable_list",
|
|
/* 98 */ "db_options ::= db_options PAGES NK_INTEGER",
|
|
/* 99 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
|
|
/* 100 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
|
|
/* 101 */ "db_options ::= db_options PRECISION NK_STRING",
|
|
/* 102 */ "db_options ::= db_options REPLICA NK_INTEGER",
|
|
/* 103 */ "db_options ::= db_options VGROUPS NK_INTEGER",
|
|
/* 104 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
|
|
/* 105 */ "db_options ::= db_options RETENTIONS retention_list",
|
|
/* 106 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
|
|
/* 107 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
|
|
/* 108 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 109 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 110 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 111 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 112 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 113 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
|
|
/* 114 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
|
|
/* 115 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
|
|
/* 116 */ "db_options ::= db_options TABLE_PREFIX signed",
|
|
/* 117 */ "db_options ::= db_options TABLE_SUFFIX signed",
|
|
/* 118 */ "alter_db_options ::= alter_db_option",
|
|
/* 119 */ "alter_db_options ::= alter_db_options alter_db_option",
|
|
/* 120 */ "alter_db_option ::= BUFFER NK_INTEGER",
|
|
/* 121 */ "alter_db_option ::= CACHEMODEL NK_STRING",
|
|
/* 122 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
|
|
/* 123 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 124 */ "alter_db_option ::= KEEP integer_list",
|
|
/* 125 */ "alter_db_option ::= KEEP variable_list",
|
|
/* 126 */ "alter_db_option ::= PAGES NK_INTEGER",
|
|
/* 127 */ "alter_db_option ::= REPLICA NK_INTEGER",
|
|
/* 128 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
|
|
/* 129 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
|
|
/* 130 */ "alter_db_option ::= MINROWS NK_INTEGER",
|
|
/* 131 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 132 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 133 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 134 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 135 */ "integer_list ::= NK_INTEGER",
|
|
/* 136 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
|
|
/* 137 */ "variable_list ::= NK_VARIABLE",
|
|
/* 138 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
|
|
/* 139 */ "retention_list ::= retention",
|
|
/* 140 */ "retention_list ::= retention_list NK_COMMA retention",
|
|
/* 141 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
|
|
/* 142 */ "speed_opt ::=",
|
|
/* 143 */ "speed_opt ::= MAX_SPEED NK_INTEGER",
|
|
/* 144 */ "start_opt ::=",
|
|
/* 145 */ "start_opt ::= START WITH NK_INTEGER",
|
|
/* 146 */ "start_opt ::= START WITH NK_STRING",
|
|
/* 147 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
|
|
/* 148 */ "end_opt ::=",
|
|
/* 149 */ "end_opt ::= END WITH NK_INTEGER",
|
|
/* 150 */ "end_opt ::= END WITH NK_STRING",
|
|
/* 151 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
|
|
/* 152 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
|
|
/* 153 */ "cmd ::= CREATE TABLE multi_create_clause",
|
|
/* 154 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
|
|
/* 155 */ "cmd ::= DROP TABLE multi_drop_clause",
|
|
/* 156 */ "cmd ::= DROP STABLE exists_opt full_table_name",
|
|
/* 157 */ "cmd ::= ALTER TABLE alter_table_clause",
|
|
/* 158 */ "cmd ::= ALTER STABLE alter_table_clause",
|
|
/* 159 */ "alter_table_clause ::= full_table_name alter_table_options",
|
|
/* 160 */ "alter_table_clause ::= full_table_name ADD COLUMN column_def",
|
|
/* 161 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
|
|
/* 162 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_def",
|
|
/* 163 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
|
|
/* 164 */ "alter_table_clause ::= full_table_name ADD TAG column_def",
|
|
/* 165 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
|
|
/* 166 */ "alter_table_clause ::= full_table_name MODIFY TAG column_def",
|
|
/* 167 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
|
|
/* 168 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
|
|
/* 169 */ "multi_create_clause ::= create_subtable_clause",
|
|
/* 170 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
|
|
/* 171 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options",
|
|
/* 172 */ "multi_drop_clause ::= drop_table_clause",
|
|
/* 173 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
|
|
/* 174 */ "drop_table_clause ::= exists_opt full_table_name",
|
|
/* 175 */ "specific_cols_opt ::=",
|
|
/* 176 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 177 */ "full_table_name ::= table_name",
|
|
/* 178 */ "full_table_name ::= db_name NK_DOT table_name",
|
|
/* 179 */ "column_def_list ::= column_def",
|
|
/* 180 */ "column_def_list ::= column_def_list NK_COMMA column_def",
|
|
/* 181 */ "column_def ::= column_name type_name",
|
|
/* 182 */ "column_def ::= column_name type_name COMMENT NK_STRING",
|
|
/* 183 */ "type_name ::= BOOL",
|
|
/* 184 */ "type_name ::= TINYINT",
|
|
/* 185 */ "type_name ::= SMALLINT",
|
|
/* 186 */ "type_name ::= INT",
|
|
/* 187 */ "type_name ::= INTEGER",
|
|
/* 188 */ "type_name ::= BIGINT",
|
|
/* 189 */ "type_name ::= FLOAT",
|
|
/* 190 */ "type_name ::= DOUBLE",
|
|
/* 191 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 192 */ "type_name ::= TIMESTAMP",
|
|
/* 193 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 194 */ "type_name ::= TINYINT UNSIGNED",
|
|
/* 195 */ "type_name ::= SMALLINT UNSIGNED",
|
|
/* 196 */ "type_name ::= INT UNSIGNED",
|
|
/* 197 */ "type_name ::= BIGINT UNSIGNED",
|
|
/* 198 */ "type_name ::= JSON",
|
|
/* 199 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 200 */ "type_name ::= MEDIUMBLOB",
|
|
/* 201 */ "type_name ::= BLOB",
|
|
/* 202 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 203 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
|
|
/* 204 */ "type_name ::= DECIMAL",
|
|
/* 205 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
|
|
/* 206 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
/* 207 */ "tags_def_opt ::=",
|
|
/* 208 */ "tags_def_opt ::= tags_def",
|
|
/* 209 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
|
|
/* 210 */ "table_options ::=",
|
|
/* 211 */ "table_options ::= table_options COMMENT NK_STRING",
|
|
/* 212 */ "table_options ::= table_options MAX_DELAY duration_list",
|
|
/* 213 */ "table_options ::= table_options WATERMARK duration_list",
|
|
/* 214 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
|
|
/* 215 */ "table_options ::= table_options TTL NK_INTEGER",
|
|
/* 216 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
|
|
/* 217 */ "table_options ::= table_options DELETE_MARK duration_list",
|
|
/* 218 */ "alter_table_options ::= alter_table_option",
|
|
/* 219 */ "alter_table_options ::= alter_table_options alter_table_option",
|
|
/* 220 */ "alter_table_option ::= COMMENT NK_STRING",
|
|
/* 221 */ "alter_table_option ::= TTL NK_INTEGER",
|
|
/* 222 */ "duration_list ::= duration_literal",
|
|
/* 223 */ "duration_list ::= duration_list NK_COMMA duration_literal",
|
|
/* 224 */ "rollup_func_list ::= rollup_func_name",
|
|
/* 225 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
|
|
/* 226 */ "rollup_func_name ::= function_name",
|
|
/* 227 */ "rollup_func_name ::= FIRST",
|
|
/* 228 */ "rollup_func_name ::= LAST",
|
|
/* 229 */ "col_name_list ::= col_name",
|
|
/* 230 */ "col_name_list ::= col_name_list NK_COMMA col_name",
|
|
/* 231 */ "col_name ::= column_name",
|
|
/* 232 */ "cmd ::= SHOW DNODES",
|
|
/* 233 */ "cmd ::= SHOW USERS",
|
|
/* 234 */ "cmd ::= SHOW USER PRIVILEGES",
|
|
/* 235 */ "cmd ::= SHOW DATABASES",
|
|
/* 236 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt",
|
|
/* 237 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
|
|
/* 238 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
|
|
/* 239 */ "cmd ::= SHOW MNODES",
|
|
/* 240 */ "cmd ::= SHOW QNODES",
|
|
/* 241 */ "cmd ::= SHOW FUNCTIONS",
|
|
/* 242 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
/* 243 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
/* 244 */ "cmd ::= SHOW STREAMS",
|
|
/* 245 */ "cmd ::= SHOW ACCOUNTS",
|
|
/* 246 */ "cmd ::= SHOW APPS",
|
|
/* 247 */ "cmd ::= SHOW CONNECTIONS",
|
|
/* 248 */ "cmd ::= SHOW LICENCES",
|
|
/* 249 */ "cmd ::= SHOW GRANTS",
|
|
/* 250 */ "cmd ::= SHOW CREATE DATABASE db_name",
|
|
/* 251 */ "cmd ::= SHOW CREATE TABLE full_table_name",
|
|
/* 252 */ "cmd ::= SHOW CREATE STABLE full_table_name",
|
|
/* 253 */ "cmd ::= SHOW QUERIES",
|
|
/* 254 */ "cmd ::= SHOW SCORES",
|
|
/* 255 */ "cmd ::= SHOW TOPICS",
|
|
/* 256 */ "cmd ::= SHOW VARIABLES",
|
|
/* 257 */ "cmd ::= SHOW CLUSTER VARIABLES",
|
|
/* 258 */ "cmd ::= SHOW LOCAL VARIABLES",
|
|
/* 259 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
|
|
/* 260 */ "cmd ::= SHOW BNODES",
|
|
/* 261 */ "cmd ::= SHOW SNODES",
|
|
/* 262 */ "cmd ::= SHOW CLUSTER",
|
|
/* 263 */ "cmd ::= SHOW TRANSACTIONS",
|
|
/* 264 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
|
|
/* 265 */ "cmd ::= SHOW CONSUMERS",
|
|
/* 266 */ "cmd ::= SHOW SUBSCRIPTIONS",
|
|
/* 267 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
|
|
/* 268 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
|
|
/* 269 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
|
|
/* 270 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
|
|
/* 271 */ "cmd ::= SHOW VNODES NK_INTEGER",
|
|
/* 272 */ "cmd ::= SHOW VNODES NK_STRING",
|
|
/* 273 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
|
|
/* 274 */ "cmd ::= SHOW CLUSTER ALIVE",
|
|
/* 275 */ "db_name_cond_opt ::=",
|
|
/* 276 */ "db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 277 */ "like_pattern_opt ::=",
|
|
/* 278 */ "like_pattern_opt ::= LIKE NK_STRING",
|
|
/* 279 */ "table_name_cond ::= table_name",
|
|
/* 280 */ "from_db_opt ::=",
|
|
/* 281 */ "from_db_opt ::= FROM db_name",
|
|
/* 282 */ "tag_list_opt ::=",
|
|
/* 283 */ "tag_list_opt ::= tag_item",
|
|
/* 284 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
|
|
/* 285 */ "tag_item ::= TBNAME",
|
|
/* 286 */ "tag_item ::= QTAGS",
|
|
/* 287 */ "tag_item ::= column_name",
|
|
/* 288 */ "tag_item ::= column_name column_alias",
|
|
/* 289 */ "tag_item ::= column_name AS column_alias",
|
|
/* 290 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options",
|
|
/* 291 */ "cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP",
|
|
/* 292 */ "cmd ::= DROP INDEX exists_opt full_index_name",
|
|
/* 293 */ "full_index_name ::= index_name",
|
|
/* 294 */ "full_index_name ::= db_name NK_DOT index_name",
|
|
/* 295 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
/* 296 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
/* 297 */ "func_list ::= func",
|
|
/* 298 */ "func_list ::= func_list NK_COMMA func",
|
|
/* 299 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
|
|
/* 300 */ "sma_func_name ::= function_name",
|
|
/* 301 */ "sma_func_name ::= COUNT",
|
|
/* 302 */ "sma_func_name ::= FIRST",
|
|
/* 303 */ "sma_func_name ::= LAST",
|
|
/* 304 */ "sma_func_name ::= LAST_ROW",
|
|
/* 305 */ "sma_stream_opt ::=",
|
|
/* 306 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
|
|
/* 307 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
|
|
/* 308 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
|
|
/* 309 */ "with_meta ::= AS",
|
|
/* 310 */ "with_meta ::= WITH META AS",
|
|
/* 311 */ "with_meta ::= ONLY META AS",
|
|
/* 312 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
|
|
/* 313 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
|
|
/* 314 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
|
|
/* 315 */ "cmd ::= DROP TOPIC exists_opt topic_name",
|
|
/* 316 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
|
|
/* 317 */ "cmd ::= DESC full_table_name",
|
|
/* 318 */ "cmd ::= DESCRIBE full_table_name",
|
|
/* 319 */ "cmd ::= RESET QUERY CACHE",
|
|
/* 320 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
|
|
/* 321 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
|
|
/* 322 */ "analyze_opt ::=",
|
|
/* 323 */ "analyze_opt ::= ANALYZE",
|
|
/* 324 */ "explain_options ::=",
|
|
/* 325 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
|
|
/* 326 */ "explain_options ::= explain_options RATIO NK_FLOAT",
|
|
/* 327 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
|
|
/* 328 */ "cmd ::= DROP FUNCTION exists_opt function_name",
|
|
/* 329 */ "agg_func_opt ::=",
|
|
/* 330 */ "agg_func_opt ::= AGGREGATE",
|
|
/* 331 */ "bufsize_opt ::=",
|
|
/* 332 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
|
|
/* 333 */ "language_opt ::=",
|
|
/* 334 */ "language_opt ::= LANGUAGE NK_STRING",
|
|
/* 335 */ "or_replace_opt ::=",
|
|
/* 336 */ "or_replace_opt ::= OR REPLACE",
|
|
/* 337 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery",
|
|
/* 338 */ "cmd ::= DROP STREAM exists_opt stream_name",
|
|
/* 339 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
|
|
/* 340 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
|
|
/* 341 */ "col_list_opt ::=",
|
|
/* 342 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 343 */ "tag_def_or_ref_opt ::=",
|
|
/* 344 */ "tag_def_or_ref_opt ::= tags_def",
|
|
/* 345 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
|
|
/* 346 */ "stream_options ::=",
|
|
/* 347 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
|
|
/* 348 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
|
|
/* 349 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
|
|
/* 350 */ "stream_options ::= stream_options WATERMARK duration_literal",
|
|
/* 351 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
|
|
/* 352 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
|
|
/* 353 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
|
|
/* 354 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
|
|
/* 355 */ "subtable_opt ::=",
|
|
/* 356 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
|
|
/* 357 */ "ignore_opt ::=",
|
|
/* 358 */ "ignore_opt ::= IGNORE UNTREATED",
|
|
/* 359 */ "cmd ::= KILL CONNECTION NK_INTEGER",
|
|
/* 360 */ "cmd ::= KILL QUERY NK_STRING",
|
|
/* 361 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
|
|
/* 362 */ "cmd ::= BALANCE VGROUP",
|
|
/* 363 */ "cmd ::= BALANCE VGROUP LEADER",
|
|
/* 364 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
|
|
/* 365 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
|
|
/* 366 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
|
|
/* 367 */ "dnode_list ::= DNODE NK_INTEGER",
|
|
/* 368 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
|
|
/* 369 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
|
|
/* 370 */ "cmd ::= query_or_subquery",
|
|
/* 371 */ "cmd ::= insert_query",
|
|
/* 372 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
|
|
/* 373 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
|
|
/* 374 */ "literal ::= NK_INTEGER",
|
|
/* 375 */ "literal ::= NK_FLOAT",
|
|
/* 376 */ "literal ::= NK_STRING",
|
|
/* 377 */ "literal ::= NK_BOOL",
|
|
/* 378 */ "literal ::= TIMESTAMP NK_STRING",
|
|
/* 379 */ "literal ::= duration_literal",
|
|
/* 380 */ "literal ::= NULL",
|
|
/* 381 */ "literal ::= NK_QUESTION",
|
|
/* 382 */ "duration_literal ::= NK_VARIABLE",
|
|
/* 383 */ "signed ::= NK_INTEGER",
|
|
/* 384 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
/* 385 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
/* 386 */ "signed ::= NK_FLOAT",
|
|
/* 387 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
/* 388 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
/* 389 */ "signed_literal ::= signed",
|
|
/* 390 */ "signed_literal ::= NK_STRING",
|
|
/* 391 */ "signed_literal ::= NK_BOOL",
|
|
/* 392 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
/* 393 */ "signed_literal ::= duration_literal",
|
|
/* 394 */ "signed_literal ::= NULL",
|
|
/* 395 */ "signed_literal ::= literal_func",
|
|
/* 396 */ "signed_literal ::= NK_QUESTION",
|
|
/* 397 */ "literal_list ::= signed_literal",
|
|
/* 398 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
/* 399 */ "db_name ::= NK_ID",
|
|
/* 400 */ "table_name ::= NK_ID",
|
|
/* 401 */ "column_name ::= NK_ID",
|
|
/* 402 */ "function_name ::= NK_ID",
|
|
/* 403 */ "table_alias ::= NK_ID",
|
|
/* 404 */ "column_alias ::= NK_ID",
|
|
/* 405 */ "user_name ::= NK_ID",
|
|
/* 406 */ "topic_name ::= NK_ID",
|
|
/* 407 */ "stream_name ::= NK_ID",
|
|
/* 408 */ "cgroup_name ::= NK_ID",
|
|
/* 409 */ "index_name ::= NK_ID",
|
|
/* 410 */ "expr_or_subquery ::= expression",
|
|
/* 411 */ "expression ::= literal",
|
|
/* 412 */ "expression ::= pseudo_column",
|
|
/* 413 */ "expression ::= column_reference",
|
|
/* 414 */ "expression ::= function_expression",
|
|
/* 415 */ "expression ::= case_when_expression",
|
|
/* 416 */ "expression ::= NK_LP expression NK_RP",
|
|
/* 417 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
/* 418 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
/* 419 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
/* 420 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
/* 421 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
/* 422 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
/* 423 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
/* 424 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
/* 425 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
/* 426 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
/* 427 */ "expression_list ::= expr_or_subquery",
|
|
/* 428 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
/* 429 */ "column_reference ::= column_name",
|
|
/* 430 */ "column_reference ::= table_name NK_DOT column_name",
|
|
/* 431 */ "pseudo_column ::= ROWTS",
|
|
/* 432 */ "pseudo_column ::= TBNAME",
|
|
/* 433 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
/* 434 */ "pseudo_column ::= QSTART",
|
|
/* 435 */ "pseudo_column ::= QEND",
|
|
/* 436 */ "pseudo_column ::= QDURATION",
|
|
/* 437 */ "pseudo_column ::= WSTART",
|
|
/* 438 */ "pseudo_column ::= WEND",
|
|
/* 439 */ "pseudo_column ::= WDURATION",
|
|
/* 440 */ "pseudo_column ::= IROWTS",
|
|
/* 441 */ "pseudo_column ::= ISFILLED",
|
|
/* 442 */ "pseudo_column ::= QTAGS",
|
|
/* 443 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
/* 444 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
/* 445 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
/* 446 */ "function_expression ::= literal_func",
|
|
/* 447 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
/* 448 */ "literal_func ::= NOW",
|
|
/* 449 */ "noarg_func ::= NOW",
|
|
/* 450 */ "noarg_func ::= TODAY",
|
|
/* 451 */ "noarg_func ::= TIMEZONE",
|
|
/* 452 */ "noarg_func ::= DATABASE",
|
|
/* 453 */ "noarg_func ::= CLIENT_VERSION",
|
|
/* 454 */ "noarg_func ::= SERVER_VERSION",
|
|
/* 455 */ "noarg_func ::= SERVER_STATUS",
|
|
/* 456 */ "noarg_func ::= CURRENT_USER",
|
|
/* 457 */ "noarg_func ::= USER",
|
|
/* 458 */ "star_func ::= COUNT",
|
|
/* 459 */ "star_func ::= FIRST",
|
|
/* 460 */ "star_func ::= LAST",
|
|
/* 461 */ "star_func ::= LAST_ROW",
|
|
/* 462 */ "star_func_para_list ::= NK_STAR",
|
|
/* 463 */ "star_func_para_list ::= other_para_list",
|
|
/* 464 */ "other_para_list ::= star_func_para",
|
|
/* 465 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
/* 466 */ "star_func_para ::= expr_or_subquery",
|
|
/* 467 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
/* 468 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
/* 469 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
/* 470 */ "when_then_list ::= when_then_expr",
|
|
/* 471 */ "when_then_list ::= when_then_list when_then_expr",
|
|
/* 472 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
/* 473 */ "case_when_else_opt ::=",
|
|
/* 474 */ "case_when_else_opt ::= ELSE common_expression",
|
|
/* 475 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
/* 476 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 477 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 478 */ "predicate ::= expr_or_subquery IS NULL",
|
|
/* 479 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
/* 480 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
/* 481 */ "compare_op ::= NK_LT",
|
|
/* 482 */ "compare_op ::= NK_GT",
|
|
/* 483 */ "compare_op ::= NK_LE",
|
|
/* 484 */ "compare_op ::= NK_GE",
|
|
/* 485 */ "compare_op ::= NK_NE",
|
|
/* 486 */ "compare_op ::= NK_EQ",
|
|
/* 487 */ "compare_op ::= LIKE",
|
|
/* 488 */ "compare_op ::= NOT LIKE",
|
|
/* 489 */ "compare_op ::= MATCH",
|
|
/* 490 */ "compare_op ::= NMATCH",
|
|
/* 491 */ "compare_op ::= CONTAINS",
|
|
/* 492 */ "in_op ::= IN",
|
|
/* 493 */ "in_op ::= NOT IN",
|
|
/* 494 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
/* 495 */ "boolean_value_expression ::= boolean_primary",
|
|
/* 496 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
/* 497 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
/* 498 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
/* 499 */ "boolean_primary ::= predicate",
|
|
/* 500 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
/* 501 */ "common_expression ::= expr_or_subquery",
|
|
/* 502 */ "common_expression ::= boolean_value_expression",
|
|
/* 503 */ "from_clause_opt ::=",
|
|
/* 504 */ "from_clause_opt ::= FROM table_reference_list",
|
|
/* 505 */ "table_reference_list ::= table_reference",
|
|
/* 506 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
/* 507 */ "table_reference ::= table_primary",
|
|
/* 508 */ "table_reference ::= joined_table",
|
|
/* 509 */ "table_primary ::= table_name alias_opt",
|
|
/* 510 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
/* 511 */ "table_primary ::= subquery alias_opt",
|
|
/* 512 */ "table_primary ::= parenthesized_joined_table",
|
|
/* 513 */ "alias_opt ::=",
|
|
/* 514 */ "alias_opt ::= table_alias",
|
|
/* 515 */ "alias_opt ::= AS table_alias",
|
|
/* 516 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
/* 517 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
/* 518 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
|
|
/* 519 */ "join_type ::=",
|
|
/* 520 */ "join_type ::= INNER",
|
|
/* 521 */ "query_specification ::= SELECT hint_list set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
|
|
/* 522 */ "hint_list ::=",
|
|
/* 523 */ "hint_list ::= NK_HINT",
|
|
/* 524 */ "set_quantifier_opt ::=",
|
|
/* 525 */ "set_quantifier_opt ::= DISTINCT",
|
|
/* 526 */ "set_quantifier_opt ::= ALL",
|
|
/* 527 */ "select_list ::= select_item",
|
|
/* 528 */ "select_list ::= select_list NK_COMMA select_item",
|
|
/* 529 */ "select_item ::= NK_STAR",
|
|
/* 530 */ "select_item ::= common_expression",
|
|
/* 531 */ "select_item ::= common_expression column_alias",
|
|
/* 532 */ "select_item ::= common_expression AS column_alias",
|
|
/* 533 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
/* 534 */ "where_clause_opt ::=",
|
|
/* 535 */ "where_clause_opt ::= WHERE search_condition",
|
|
/* 536 */ "partition_by_clause_opt ::=",
|
|
/* 537 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
/* 538 */ "partition_list ::= partition_item",
|
|
/* 539 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
/* 540 */ "partition_item ::= expr_or_subquery",
|
|
/* 541 */ "partition_item ::= expr_or_subquery column_alias",
|
|
/* 542 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
/* 543 */ "twindow_clause_opt ::=",
|
|
/* 544 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
|
|
/* 545 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
/* 546 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 547 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 548 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
|
/* 549 */ "sliding_opt ::=",
|
|
/* 550 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
|
|
/* 551 */ "fill_opt ::=",
|
|
/* 552 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
/* 553 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
/* 554 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
/* 555 */ "fill_mode ::= NONE",
|
|
/* 556 */ "fill_mode ::= PREV",
|
|
/* 557 */ "fill_mode ::= NULL",
|
|
/* 558 */ "fill_mode ::= NULL_F",
|
|
/* 559 */ "fill_mode ::= LINEAR",
|
|
/* 560 */ "fill_mode ::= NEXT",
|
|
/* 561 */ "group_by_clause_opt ::=",
|
|
/* 562 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
/* 563 */ "group_by_list ::= expr_or_subquery",
|
|
/* 564 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
/* 565 */ "having_clause_opt ::=",
|
|
/* 566 */ "having_clause_opt ::= HAVING search_condition",
|
|
/* 567 */ "range_opt ::=",
|
|
/* 568 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
/* 569 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
/* 570 */ "every_opt ::=",
|
|
/* 571 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
/* 572 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
/* 573 */ "query_simple ::= query_specification",
|
|
/* 574 */ "query_simple ::= union_query_expression",
|
|
/* 575 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
/* 576 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
/* 577 */ "query_simple_or_subquery ::= query_simple",
|
|
/* 578 */ "query_simple_or_subquery ::= subquery",
|
|
/* 579 */ "query_or_subquery ::= query_expression",
|
|
/* 580 */ "query_or_subquery ::= subquery",
|
|
/* 581 */ "order_by_clause_opt ::=",
|
|
/* 582 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
/* 583 */ "slimit_clause_opt ::=",
|
|
/* 584 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
/* 585 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
/* 586 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 587 */ "limit_clause_opt ::=",
|
|
/* 588 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
/* 589 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
/* 590 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 591 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
/* 592 */ "subquery ::= NK_LP subquery NK_RP",
|
|
/* 593 */ "search_condition ::= common_expression",
|
|
/* 594 */ "sort_specification_list ::= sort_specification",
|
|
/* 595 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
/* 596 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
/* 597 */ "ordering_specification_opt ::=",
|
|
/* 598 */ "ordering_specification_opt ::= ASC",
|
|
/* 599 */ "ordering_specification_opt ::= DESC",
|
|
/* 600 */ "null_ordering_opt ::=",
|
|
/* 601 */ "null_ordering_opt ::= NULLS FIRST",
|
|
/* 602 */ "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 339: /* cmd */
|
|
case 342: /* literal */
|
|
case 348: /* with_opt */
|
|
case 354: /* search_condition */
|
|
case 359: /* db_options */
|
|
case 361: /* alter_db_options */
|
|
case 363: /* start_opt */
|
|
case 364: /* end_opt */
|
|
case 368: /* signed */
|
|
case 370: /* retention */
|
|
case 371: /* full_table_name */
|
|
case 374: /* table_options */
|
|
case 378: /* alter_table_clause */
|
|
case 379: /* alter_table_options */
|
|
case 380: /* column_def */
|
|
case 382: /* signed_literal */
|
|
case 383: /* create_subtable_clause */
|
|
case 386: /* drop_table_clause */
|
|
case 392: /* duration_literal */
|
|
case 393: /* rollup_func_name */
|
|
case 395: /* col_name */
|
|
case 396: /* db_name_cond_opt */
|
|
case 397: /* like_pattern_opt */
|
|
case 398: /* table_name_cond */
|
|
case 399: /* from_db_opt */
|
|
case 401: /* tag_item */
|
|
case 403: /* full_index_name */
|
|
case 404: /* index_options */
|
|
case 407: /* sliding_opt */
|
|
case 408: /* sma_stream_opt */
|
|
case 409: /* func */
|
|
case 412: /* query_or_subquery */
|
|
case 413: /* where_clause_opt */
|
|
case 416: /* explain_options */
|
|
case 417: /* insert_query */
|
|
case 423: /* stream_options */
|
|
case 426: /* subtable_opt */
|
|
case 428: /* expression */
|
|
case 430: /* literal_func */
|
|
case 433: /* expr_or_subquery */
|
|
case 434: /* pseudo_column */
|
|
case 435: /* column_reference */
|
|
case 436: /* function_expression */
|
|
case 437: /* case_when_expression */
|
|
case 442: /* star_func_para */
|
|
case 444: /* case_when_else_opt */
|
|
case 445: /* common_expression */
|
|
case 446: /* when_then_expr */
|
|
case 447: /* predicate */
|
|
case 450: /* in_predicate_value */
|
|
case 451: /* boolean_value_expression */
|
|
case 452: /* boolean_primary */
|
|
case 453: /* from_clause_opt */
|
|
case 454: /* table_reference_list */
|
|
case 455: /* table_reference */
|
|
case 456: /* table_primary */
|
|
case 457: /* joined_table */
|
|
case 459: /* subquery */
|
|
case 460: /* parenthesized_joined_table */
|
|
case 462: /* query_specification */
|
|
case 467: /* range_opt */
|
|
case 468: /* every_opt */
|
|
case 469: /* fill_opt */
|
|
case 470: /* twindow_clause_opt */
|
|
case 472: /* having_clause_opt */
|
|
case 473: /* select_item */
|
|
case 475: /* partition_item */
|
|
case 478: /* query_expression */
|
|
case 479: /* query_simple */
|
|
case 481: /* slimit_clause_opt */
|
|
case 482: /* limit_clause_opt */
|
|
case 483: /* union_query_expression */
|
|
case 484: /* query_simple_or_subquery */
|
|
case 486: /* sort_specification */
|
|
{
|
|
nodesDestroyNode((yypminor->yy698));
|
|
}
|
|
break;
|
|
case 340: /* account_options */
|
|
case 341: /* alter_account_options */
|
|
case 343: /* alter_account_option */
|
|
case 362: /* speed_opt */
|
|
case 411: /* with_meta */
|
|
case 420: /* bufsize_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 344: /* user_name */
|
|
case 351: /* db_name */
|
|
case 352: /* table_name */
|
|
case 353: /* topic_name */
|
|
case 355: /* dnode_endpoint */
|
|
case 381: /* column_name */
|
|
case 394: /* function_name */
|
|
case 402: /* column_alias */
|
|
case 405: /* index_name */
|
|
case 410: /* sma_func_name */
|
|
case 414: /* cgroup_name */
|
|
case 421: /* language_opt */
|
|
case 422: /* stream_name */
|
|
case 432: /* table_alias */
|
|
case 438: /* star_func */
|
|
case 440: /* noarg_func */
|
|
case 458: /* alias_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 345: /* sysinfo_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 346: /* privileges */
|
|
case 349: /* priv_type_list */
|
|
case 350: /* priv_type */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 347: /* priv_level */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 356: /* force_opt */
|
|
case 357: /* unsafe_opt */
|
|
case 358: /* not_exists_opt */
|
|
case 360: /* exists_opt */
|
|
case 415: /* analyze_opt */
|
|
case 418: /* or_replace_opt */
|
|
case 419: /* agg_func_opt */
|
|
case 427: /* ignore_opt */
|
|
case 464: /* set_quantifier_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 365: /* integer_list */
|
|
case 366: /* variable_list */
|
|
case 367: /* retention_list */
|
|
case 372: /* column_def_list */
|
|
case 373: /* tags_def_opt */
|
|
case 375: /* multi_create_clause */
|
|
case 376: /* tags_def */
|
|
case 377: /* multi_drop_clause */
|
|
case 384: /* specific_cols_opt */
|
|
case 385: /* expression_list */
|
|
case 387: /* col_name_list */
|
|
case 389: /* duration_list */
|
|
case 390: /* rollup_func_list */
|
|
case 400: /* tag_list_opt */
|
|
case 406: /* func_list */
|
|
case 424: /* col_list_opt */
|
|
case 425: /* tag_def_or_ref_opt */
|
|
case 429: /* dnode_list */
|
|
case 431: /* literal_list */
|
|
case 439: /* star_func_para_list */
|
|
case 441: /* other_para_list */
|
|
case 443: /* when_then_list */
|
|
case 463: /* hint_list */
|
|
case 465: /* select_list */
|
|
case 466: /* partition_by_clause_opt */
|
|
case 471: /* group_by_clause_opt */
|
|
case 474: /* partition_list */
|
|
case 477: /* group_by_list */
|
|
case 480: /* order_by_clause_opt */
|
|
case 485: /* sort_specification_list */
|
|
{
|
|
nodesDestroyList((yypminor->yy88));
|
|
}
|
|
break;
|
|
case 369: /* alter_db_option */
|
|
case 391: /* alter_table_option */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 388: /* type_name */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 448: /* compare_op */
|
|
case 449: /* in_op */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 461: /* join_type */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 476: /* fill_mode */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 487: /* ordering_specification_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 488: /* 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[] = {
|
|
339, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
339, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
340, /* (2) account_options ::= */
|
|
340, /* (3) account_options ::= account_options PPS literal */
|
|
340, /* (4) account_options ::= account_options TSERIES literal */
|
|
340, /* (5) account_options ::= account_options STORAGE literal */
|
|
340, /* (6) account_options ::= account_options STREAMS literal */
|
|
340, /* (7) account_options ::= account_options QTIME literal */
|
|
340, /* (8) account_options ::= account_options DBS literal */
|
|
340, /* (9) account_options ::= account_options USERS literal */
|
|
340, /* (10) account_options ::= account_options CONNS literal */
|
|
340, /* (11) account_options ::= account_options STATE literal */
|
|
341, /* (12) alter_account_options ::= alter_account_option */
|
|
341, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
343, /* (14) alter_account_option ::= PASS literal */
|
|
343, /* (15) alter_account_option ::= PPS literal */
|
|
343, /* (16) alter_account_option ::= TSERIES literal */
|
|
343, /* (17) alter_account_option ::= STORAGE literal */
|
|
343, /* (18) alter_account_option ::= STREAMS literal */
|
|
343, /* (19) alter_account_option ::= QTIME literal */
|
|
343, /* (20) alter_account_option ::= DBS literal */
|
|
343, /* (21) alter_account_option ::= USERS literal */
|
|
343, /* (22) alter_account_option ::= CONNS literal */
|
|
343, /* (23) alter_account_option ::= STATE literal */
|
|
339, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
|
|
339, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
339, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
339, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
339, /* (28) cmd ::= DROP USER user_name */
|
|
345, /* (29) sysinfo_opt ::= */
|
|
345, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
339, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
339, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
346, /* (33) privileges ::= ALL */
|
|
346, /* (34) privileges ::= priv_type_list */
|
|
346, /* (35) privileges ::= SUBSCRIBE */
|
|
349, /* (36) priv_type_list ::= priv_type */
|
|
349, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
350, /* (38) priv_type ::= READ */
|
|
350, /* (39) priv_type ::= WRITE */
|
|
347, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
347, /* (41) priv_level ::= db_name NK_DOT NK_STAR */
|
|
347, /* (42) priv_level ::= db_name NK_DOT table_name */
|
|
347, /* (43) priv_level ::= topic_name */
|
|
348, /* (44) with_opt ::= */
|
|
348, /* (45) with_opt ::= WITH search_condition */
|
|
339, /* (46) cmd ::= CREATE DNODE dnode_endpoint */
|
|
339, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
339, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
339, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
339, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
339, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
339, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
339, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
339, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
339, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
339, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
355, /* (57) dnode_endpoint ::= NK_STRING */
|
|
355, /* (58) dnode_endpoint ::= NK_ID */
|
|
355, /* (59) dnode_endpoint ::= NK_IPTOKEN */
|
|
356, /* (60) force_opt ::= */
|
|
356, /* (61) force_opt ::= FORCE */
|
|
357, /* (62) unsafe_opt ::= UNSAFE */
|
|
339, /* (63) cmd ::= ALTER LOCAL NK_STRING */
|
|
339, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
339, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
339, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
339, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
339, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
339, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
339, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
339, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
339, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
339, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
339, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
339, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
339, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
339, /* (77) cmd ::= DROP DATABASE exists_opt db_name */
|
|
339, /* (78) cmd ::= USE db_name */
|
|
339, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
339, /* (80) cmd ::= FLUSH DATABASE db_name */
|
|
339, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
339, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
358, /* (83) not_exists_opt ::= IF NOT EXISTS */
|
|
358, /* (84) not_exists_opt ::= */
|
|
360, /* (85) exists_opt ::= IF EXISTS */
|
|
360, /* (86) exists_opt ::= */
|
|
359, /* (87) db_options ::= */
|
|
359, /* (88) db_options ::= db_options BUFFER NK_INTEGER */
|
|
359, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
359, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
359, /* (91) db_options ::= db_options COMP NK_INTEGER */
|
|
359, /* (92) db_options ::= db_options DURATION NK_INTEGER */
|
|
359, /* (93) db_options ::= db_options DURATION NK_VARIABLE */
|
|
359, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
359, /* (95) db_options ::= db_options MINROWS NK_INTEGER */
|
|
359, /* (96) db_options ::= db_options KEEP integer_list */
|
|
359, /* (97) db_options ::= db_options KEEP variable_list */
|
|
359, /* (98) db_options ::= db_options PAGES NK_INTEGER */
|
|
359, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
359, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
359, /* (101) db_options ::= db_options PRECISION NK_STRING */
|
|
359, /* (102) db_options ::= db_options REPLICA NK_INTEGER */
|
|
359, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
359, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
359, /* (105) db_options ::= db_options RETENTIONS retention_list */
|
|
359, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
359, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
359, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
359, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
359, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
359, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
359, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
359, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
359, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
359, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
359, /* (116) db_options ::= db_options TABLE_PREFIX signed */
|
|
359, /* (117) db_options ::= db_options TABLE_SUFFIX signed */
|
|
361, /* (118) alter_db_options ::= alter_db_option */
|
|
361, /* (119) alter_db_options ::= alter_db_options alter_db_option */
|
|
369, /* (120) alter_db_option ::= BUFFER NK_INTEGER */
|
|
369, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
369, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
369, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
369, /* (124) alter_db_option ::= KEEP integer_list */
|
|
369, /* (125) alter_db_option ::= KEEP variable_list */
|
|
369, /* (126) alter_db_option ::= PAGES NK_INTEGER */
|
|
369, /* (127) alter_db_option ::= REPLICA NK_INTEGER */
|
|
369, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
369, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
369, /* (130) alter_db_option ::= MINROWS NK_INTEGER */
|
|
369, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
369, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
369, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
369, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
365, /* (135) integer_list ::= NK_INTEGER */
|
|
365, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
366, /* (137) variable_list ::= NK_VARIABLE */
|
|
366, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
367, /* (139) retention_list ::= retention */
|
|
367, /* (140) retention_list ::= retention_list NK_COMMA retention */
|
|
370, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
362, /* (142) speed_opt ::= */
|
|
362, /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */
|
|
363, /* (144) start_opt ::= */
|
|
363, /* (145) start_opt ::= START WITH NK_INTEGER */
|
|
363, /* (146) start_opt ::= START WITH NK_STRING */
|
|
363, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
364, /* (148) end_opt ::= */
|
|
364, /* (149) end_opt ::= END WITH NK_INTEGER */
|
|
364, /* (150) end_opt ::= END WITH NK_STRING */
|
|
364, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
339, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
339, /* (153) cmd ::= CREATE TABLE multi_create_clause */
|
|
339, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
339, /* (155) cmd ::= DROP TABLE multi_drop_clause */
|
|
339, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
339, /* (157) cmd ::= ALTER TABLE alter_table_clause */
|
|
339, /* (158) cmd ::= ALTER STABLE alter_table_clause */
|
|
378, /* (159) alter_table_clause ::= full_table_name alter_table_options */
|
|
378, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_def */
|
|
378, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
378, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_def */
|
|
378, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
378, /* (164) alter_table_clause ::= full_table_name ADD TAG column_def */
|
|
378, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
378, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_def */
|
|
378, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
378, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
375, /* (169) multi_create_clause ::= create_subtable_clause */
|
|
375, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
383, /* (171) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
377, /* (172) multi_drop_clause ::= drop_table_clause */
|
|
377, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
386, /* (174) drop_table_clause ::= exists_opt full_table_name */
|
|
384, /* (175) specific_cols_opt ::= */
|
|
384, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
371, /* (177) full_table_name ::= table_name */
|
|
371, /* (178) full_table_name ::= db_name NK_DOT table_name */
|
|
372, /* (179) column_def_list ::= column_def */
|
|
372, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
380, /* (181) column_def ::= column_name type_name */
|
|
380, /* (182) column_def ::= column_name type_name COMMENT NK_STRING */
|
|
388, /* (183) type_name ::= BOOL */
|
|
388, /* (184) type_name ::= TINYINT */
|
|
388, /* (185) type_name ::= SMALLINT */
|
|
388, /* (186) type_name ::= INT */
|
|
388, /* (187) type_name ::= INTEGER */
|
|
388, /* (188) type_name ::= BIGINT */
|
|
388, /* (189) type_name ::= FLOAT */
|
|
388, /* (190) type_name ::= DOUBLE */
|
|
388, /* (191) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
388, /* (192) type_name ::= TIMESTAMP */
|
|
388, /* (193) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
388, /* (194) type_name ::= TINYINT UNSIGNED */
|
|
388, /* (195) type_name ::= SMALLINT UNSIGNED */
|
|
388, /* (196) type_name ::= INT UNSIGNED */
|
|
388, /* (197) type_name ::= BIGINT UNSIGNED */
|
|
388, /* (198) type_name ::= JSON */
|
|
388, /* (199) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
388, /* (200) type_name ::= MEDIUMBLOB */
|
|
388, /* (201) type_name ::= BLOB */
|
|
388, /* (202) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
388, /* (203) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
388, /* (204) type_name ::= DECIMAL */
|
|
388, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
388, /* (206) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
373, /* (207) tags_def_opt ::= */
|
|
373, /* (208) tags_def_opt ::= tags_def */
|
|
376, /* (209) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
374, /* (210) table_options ::= */
|
|
374, /* (211) table_options ::= table_options COMMENT NK_STRING */
|
|
374, /* (212) table_options ::= table_options MAX_DELAY duration_list */
|
|
374, /* (213) table_options ::= table_options WATERMARK duration_list */
|
|
374, /* (214) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
374, /* (215) table_options ::= table_options TTL NK_INTEGER */
|
|
374, /* (216) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
374, /* (217) table_options ::= table_options DELETE_MARK duration_list */
|
|
379, /* (218) alter_table_options ::= alter_table_option */
|
|
379, /* (219) alter_table_options ::= alter_table_options alter_table_option */
|
|
391, /* (220) alter_table_option ::= COMMENT NK_STRING */
|
|
391, /* (221) alter_table_option ::= TTL NK_INTEGER */
|
|
389, /* (222) duration_list ::= duration_literal */
|
|
389, /* (223) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
390, /* (224) rollup_func_list ::= rollup_func_name */
|
|
390, /* (225) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
393, /* (226) rollup_func_name ::= function_name */
|
|
393, /* (227) rollup_func_name ::= FIRST */
|
|
393, /* (228) rollup_func_name ::= LAST */
|
|
387, /* (229) col_name_list ::= col_name */
|
|
387, /* (230) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
395, /* (231) col_name ::= column_name */
|
|
339, /* (232) cmd ::= SHOW DNODES */
|
|
339, /* (233) cmd ::= SHOW USERS */
|
|
339, /* (234) cmd ::= SHOW USER PRIVILEGES */
|
|
339, /* (235) cmd ::= SHOW DATABASES */
|
|
339, /* (236) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
|
|
339, /* (237) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
339, /* (238) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
339, /* (239) cmd ::= SHOW MNODES */
|
|
339, /* (240) cmd ::= SHOW QNODES */
|
|
339, /* (241) cmd ::= SHOW FUNCTIONS */
|
|
339, /* (242) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
339, /* (243) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
339, /* (244) cmd ::= SHOW STREAMS */
|
|
339, /* (245) cmd ::= SHOW ACCOUNTS */
|
|
339, /* (246) cmd ::= SHOW APPS */
|
|
339, /* (247) cmd ::= SHOW CONNECTIONS */
|
|
339, /* (248) cmd ::= SHOW LICENCES */
|
|
339, /* (249) cmd ::= SHOW GRANTS */
|
|
339, /* (250) cmd ::= SHOW CREATE DATABASE db_name */
|
|
339, /* (251) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
339, /* (252) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
339, /* (253) cmd ::= SHOW QUERIES */
|
|
339, /* (254) cmd ::= SHOW SCORES */
|
|
339, /* (255) cmd ::= SHOW TOPICS */
|
|
339, /* (256) cmd ::= SHOW VARIABLES */
|
|
339, /* (257) cmd ::= SHOW CLUSTER VARIABLES */
|
|
339, /* (258) cmd ::= SHOW LOCAL VARIABLES */
|
|
339, /* (259) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
339, /* (260) cmd ::= SHOW BNODES */
|
|
339, /* (261) cmd ::= SHOW SNODES */
|
|
339, /* (262) cmd ::= SHOW CLUSTER */
|
|
339, /* (263) cmd ::= SHOW TRANSACTIONS */
|
|
339, /* (264) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
339, /* (265) cmd ::= SHOW CONSUMERS */
|
|
339, /* (266) cmd ::= SHOW SUBSCRIPTIONS */
|
|
339, /* (267) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
339, /* (268) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
339, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
339, /* (270) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
339, /* (271) cmd ::= SHOW VNODES NK_INTEGER */
|
|
339, /* (272) cmd ::= SHOW VNODES NK_STRING */
|
|
339, /* (273) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
339, /* (274) cmd ::= SHOW CLUSTER ALIVE */
|
|
396, /* (275) db_name_cond_opt ::= */
|
|
396, /* (276) db_name_cond_opt ::= db_name NK_DOT */
|
|
397, /* (277) like_pattern_opt ::= */
|
|
397, /* (278) like_pattern_opt ::= LIKE NK_STRING */
|
|
398, /* (279) table_name_cond ::= table_name */
|
|
399, /* (280) from_db_opt ::= */
|
|
399, /* (281) from_db_opt ::= FROM db_name */
|
|
400, /* (282) tag_list_opt ::= */
|
|
400, /* (283) tag_list_opt ::= tag_item */
|
|
400, /* (284) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
401, /* (285) tag_item ::= TBNAME */
|
|
401, /* (286) tag_item ::= QTAGS */
|
|
401, /* (287) tag_item ::= column_name */
|
|
401, /* (288) tag_item ::= column_name column_alias */
|
|
401, /* (289) tag_item ::= column_name AS column_alias */
|
|
339, /* (290) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
|
|
339, /* (291) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
339, /* (292) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
403, /* (293) full_index_name ::= index_name */
|
|
403, /* (294) full_index_name ::= db_name NK_DOT index_name */
|
|
404, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
404, /* (296) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
406, /* (297) func_list ::= func */
|
|
406, /* (298) func_list ::= func_list NK_COMMA func */
|
|
409, /* (299) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
410, /* (300) sma_func_name ::= function_name */
|
|
410, /* (301) sma_func_name ::= COUNT */
|
|
410, /* (302) sma_func_name ::= FIRST */
|
|
410, /* (303) sma_func_name ::= LAST */
|
|
410, /* (304) sma_func_name ::= LAST_ROW */
|
|
408, /* (305) sma_stream_opt ::= */
|
|
408, /* (306) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
408, /* (307) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
408, /* (308) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
411, /* (309) with_meta ::= AS */
|
|
411, /* (310) with_meta ::= WITH META AS */
|
|
411, /* (311) with_meta ::= ONLY META AS */
|
|
339, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
339, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
339, /* (314) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
339, /* (315) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
339, /* (316) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
339, /* (317) cmd ::= DESC full_table_name */
|
|
339, /* (318) cmd ::= DESCRIBE full_table_name */
|
|
339, /* (319) cmd ::= RESET QUERY CACHE */
|
|
339, /* (320) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
339, /* (321) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
415, /* (322) analyze_opt ::= */
|
|
415, /* (323) analyze_opt ::= ANALYZE */
|
|
416, /* (324) explain_options ::= */
|
|
416, /* (325) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
416, /* (326) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
339, /* (327) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
339, /* (328) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
419, /* (329) agg_func_opt ::= */
|
|
419, /* (330) agg_func_opt ::= AGGREGATE */
|
|
420, /* (331) bufsize_opt ::= */
|
|
420, /* (332) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
421, /* (333) language_opt ::= */
|
|
421, /* (334) language_opt ::= LANGUAGE NK_STRING */
|
|
418, /* (335) or_replace_opt ::= */
|
|
418, /* (336) or_replace_opt ::= OR REPLACE */
|
|
339, /* (337) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
|
|
339, /* (338) cmd ::= DROP STREAM exists_opt stream_name */
|
|
339, /* (339) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
339, /* (340) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
424, /* (341) col_list_opt ::= */
|
|
424, /* (342) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
425, /* (343) tag_def_or_ref_opt ::= */
|
|
425, /* (344) tag_def_or_ref_opt ::= tags_def */
|
|
425, /* (345) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
423, /* (346) stream_options ::= */
|
|
423, /* (347) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
423, /* (348) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
423, /* (349) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
423, /* (350) stream_options ::= stream_options WATERMARK duration_literal */
|
|
423, /* (351) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
423, /* (352) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
423, /* (353) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
423, /* (354) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
426, /* (355) subtable_opt ::= */
|
|
426, /* (356) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
427, /* (357) ignore_opt ::= */
|
|
427, /* (358) ignore_opt ::= IGNORE UNTREATED */
|
|
339, /* (359) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
339, /* (360) cmd ::= KILL QUERY NK_STRING */
|
|
339, /* (361) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
339, /* (362) cmd ::= BALANCE VGROUP */
|
|
339, /* (363) cmd ::= BALANCE VGROUP LEADER */
|
|
339, /* (364) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
339, /* (365) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
339, /* (366) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
429, /* (367) dnode_list ::= DNODE NK_INTEGER */
|
|
429, /* (368) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
339, /* (369) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
339, /* (370) cmd ::= query_or_subquery */
|
|
339, /* (371) cmd ::= insert_query */
|
|
417, /* (372) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
417, /* (373) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
342, /* (374) literal ::= NK_INTEGER */
|
|
342, /* (375) literal ::= NK_FLOAT */
|
|
342, /* (376) literal ::= NK_STRING */
|
|
342, /* (377) literal ::= NK_BOOL */
|
|
342, /* (378) literal ::= TIMESTAMP NK_STRING */
|
|
342, /* (379) literal ::= duration_literal */
|
|
342, /* (380) literal ::= NULL */
|
|
342, /* (381) literal ::= NK_QUESTION */
|
|
392, /* (382) duration_literal ::= NK_VARIABLE */
|
|
368, /* (383) signed ::= NK_INTEGER */
|
|
368, /* (384) signed ::= NK_PLUS NK_INTEGER */
|
|
368, /* (385) signed ::= NK_MINUS NK_INTEGER */
|
|
368, /* (386) signed ::= NK_FLOAT */
|
|
368, /* (387) signed ::= NK_PLUS NK_FLOAT */
|
|
368, /* (388) signed ::= NK_MINUS NK_FLOAT */
|
|
382, /* (389) signed_literal ::= signed */
|
|
382, /* (390) signed_literal ::= NK_STRING */
|
|
382, /* (391) signed_literal ::= NK_BOOL */
|
|
382, /* (392) signed_literal ::= TIMESTAMP NK_STRING */
|
|
382, /* (393) signed_literal ::= duration_literal */
|
|
382, /* (394) signed_literal ::= NULL */
|
|
382, /* (395) signed_literal ::= literal_func */
|
|
382, /* (396) signed_literal ::= NK_QUESTION */
|
|
431, /* (397) literal_list ::= signed_literal */
|
|
431, /* (398) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
351, /* (399) db_name ::= NK_ID */
|
|
352, /* (400) table_name ::= NK_ID */
|
|
381, /* (401) column_name ::= NK_ID */
|
|
394, /* (402) function_name ::= NK_ID */
|
|
432, /* (403) table_alias ::= NK_ID */
|
|
402, /* (404) column_alias ::= NK_ID */
|
|
344, /* (405) user_name ::= NK_ID */
|
|
353, /* (406) topic_name ::= NK_ID */
|
|
422, /* (407) stream_name ::= NK_ID */
|
|
414, /* (408) cgroup_name ::= NK_ID */
|
|
405, /* (409) index_name ::= NK_ID */
|
|
433, /* (410) expr_or_subquery ::= expression */
|
|
428, /* (411) expression ::= literal */
|
|
428, /* (412) expression ::= pseudo_column */
|
|
428, /* (413) expression ::= column_reference */
|
|
428, /* (414) expression ::= function_expression */
|
|
428, /* (415) expression ::= case_when_expression */
|
|
428, /* (416) expression ::= NK_LP expression NK_RP */
|
|
428, /* (417) expression ::= NK_PLUS expr_or_subquery */
|
|
428, /* (418) expression ::= NK_MINUS expr_or_subquery */
|
|
428, /* (419) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
428, /* (420) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
428, /* (421) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
428, /* (422) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
428, /* (423) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
428, /* (424) expression ::= column_reference NK_ARROW NK_STRING */
|
|
428, /* (425) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
428, /* (426) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
385, /* (427) expression_list ::= expr_or_subquery */
|
|
385, /* (428) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
435, /* (429) column_reference ::= column_name */
|
|
435, /* (430) column_reference ::= table_name NK_DOT column_name */
|
|
434, /* (431) pseudo_column ::= ROWTS */
|
|
434, /* (432) pseudo_column ::= TBNAME */
|
|
434, /* (433) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
434, /* (434) pseudo_column ::= QSTART */
|
|
434, /* (435) pseudo_column ::= QEND */
|
|
434, /* (436) pseudo_column ::= QDURATION */
|
|
434, /* (437) pseudo_column ::= WSTART */
|
|
434, /* (438) pseudo_column ::= WEND */
|
|
434, /* (439) pseudo_column ::= WDURATION */
|
|
434, /* (440) pseudo_column ::= IROWTS */
|
|
434, /* (441) pseudo_column ::= ISFILLED */
|
|
434, /* (442) pseudo_column ::= QTAGS */
|
|
436, /* (443) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
436, /* (444) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
436, /* (445) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
436, /* (446) function_expression ::= literal_func */
|
|
430, /* (447) literal_func ::= noarg_func NK_LP NK_RP */
|
|
430, /* (448) literal_func ::= NOW */
|
|
440, /* (449) noarg_func ::= NOW */
|
|
440, /* (450) noarg_func ::= TODAY */
|
|
440, /* (451) noarg_func ::= TIMEZONE */
|
|
440, /* (452) noarg_func ::= DATABASE */
|
|
440, /* (453) noarg_func ::= CLIENT_VERSION */
|
|
440, /* (454) noarg_func ::= SERVER_VERSION */
|
|
440, /* (455) noarg_func ::= SERVER_STATUS */
|
|
440, /* (456) noarg_func ::= CURRENT_USER */
|
|
440, /* (457) noarg_func ::= USER */
|
|
438, /* (458) star_func ::= COUNT */
|
|
438, /* (459) star_func ::= FIRST */
|
|
438, /* (460) star_func ::= LAST */
|
|
438, /* (461) star_func ::= LAST_ROW */
|
|
439, /* (462) star_func_para_list ::= NK_STAR */
|
|
439, /* (463) star_func_para_list ::= other_para_list */
|
|
441, /* (464) other_para_list ::= star_func_para */
|
|
441, /* (465) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
442, /* (466) star_func_para ::= expr_or_subquery */
|
|
442, /* (467) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
437, /* (468) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
437, /* (469) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
443, /* (470) when_then_list ::= when_then_expr */
|
|
443, /* (471) when_then_list ::= when_then_list when_then_expr */
|
|
446, /* (472) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
444, /* (473) case_when_else_opt ::= */
|
|
444, /* (474) case_when_else_opt ::= ELSE common_expression */
|
|
447, /* (475) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
447, /* (476) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
447, /* (477) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
447, /* (478) predicate ::= expr_or_subquery IS NULL */
|
|
447, /* (479) predicate ::= expr_or_subquery IS NOT NULL */
|
|
447, /* (480) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
448, /* (481) compare_op ::= NK_LT */
|
|
448, /* (482) compare_op ::= NK_GT */
|
|
448, /* (483) compare_op ::= NK_LE */
|
|
448, /* (484) compare_op ::= NK_GE */
|
|
448, /* (485) compare_op ::= NK_NE */
|
|
448, /* (486) compare_op ::= NK_EQ */
|
|
448, /* (487) compare_op ::= LIKE */
|
|
448, /* (488) compare_op ::= NOT LIKE */
|
|
448, /* (489) compare_op ::= MATCH */
|
|
448, /* (490) compare_op ::= NMATCH */
|
|
448, /* (491) compare_op ::= CONTAINS */
|
|
449, /* (492) in_op ::= IN */
|
|
449, /* (493) in_op ::= NOT IN */
|
|
450, /* (494) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
451, /* (495) boolean_value_expression ::= boolean_primary */
|
|
451, /* (496) boolean_value_expression ::= NOT boolean_primary */
|
|
451, /* (497) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
451, /* (498) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
452, /* (499) boolean_primary ::= predicate */
|
|
452, /* (500) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
445, /* (501) common_expression ::= expr_or_subquery */
|
|
445, /* (502) common_expression ::= boolean_value_expression */
|
|
453, /* (503) from_clause_opt ::= */
|
|
453, /* (504) from_clause_opt ::= FROM table_reference_list */
|
|
454, /* (505) table_reference_list ::= table_reference */
|
|
454, /* (506) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
455, /* (507) table_reference ::= table_primary */
|
|
455, /* (508) table_reference ::= joined_table */
|
|
456, /* (509) table_primary ::= table_name alias_opt */
|
|
456, /* (510) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
456, /* (511) table_primary ::= subquery alias_opt */
|
|
456, /* (512) table_primary ::= parenthesized_joined_table */
|
|
458, /* (513) alias_opt ::= */
|
|
458, /* (514) alias_opt ::= table_alias */
|
|
458, /* (515) alias_opt ::= AS table_alias */
|
|
460, /* (516) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
460, /* (517) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
457, /* (518) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
461, /* (519) join_type ::= */
|
|
461, /* (520) join_type ::= INNER */
|
|
462, /* (521) query_specification ::= SELECT hint_list set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
463, /* (522) hint_list ::= */
|
|
463, /* (523) hint_list ::= NK_HINT */
|
|
464, /* (524) set_quantifier_opt ::= */
|
|
464, /* (525) set_quantifier_opt ::= DISTINCT */
|
|
464, /* (526) set_quantifier_opt ::= ALL */
|
|
465, /* (527) select_list ::= select_item */
|
|
465, /* (528) select_list ::= select_list NK_COMMA select_item */
|
|
473, /* (529) select_item ::= NK_STAR */
|
|
473, /* (530) select_item ::= common_expression */
|
|
473, /* (531) select_item ::= common_expression column_alias */
|
|
473, /* (532) select_item ::= common_expression AS column_alias */
|
|
473, /* (533) select_item ::= table_name NK_DOT NK_STAR */
|
|
413, /* (534) where_clause_opt ::= */
|
|
413, /* (535) where_clause_opt ::= WHERE search_condition */
|
|
466, /* (536) partition_by_clause_opt ::= */
|
|
466, /* (537) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
474, /* (538) partition_list ::= partition_item */
|
|
474, /* (539) partition_list ::= partition_list NK_COMMA partition_item */
|
|
475, /* (540) partition_item ::= expr_or_subquery */
|
|
475, /* (541) partition_item ::= expr_or_subquery column_alias */
|
|
475, /* (542) partition_item ::= expr_or_subquery AS column_alias */
|
|
470, /* (543) twindow_clause_opt ::= */
|
|
470, /* (544) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
470, /* (545) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
470, /* (546) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
470, /* (547) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
470, /* (548) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
407, /* (549) sliding_opt ::= */
|
|
407, /* (550) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
|
|
469, /* (551) fill_opt ::= */
|
|
469, /* (552) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
469, /* (553) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
469, /* (554) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
476, /* (555) fill_mode ::= NONE */
|
|
476, /* (556) fill_mode ::= PREV */
|
|
476, /* (557) fill_mode ::= NULL */
|
|
476, /* (558) fill_mode ::= NULL_F */
|
|
476, /* (559) fill_mode ::= LINEAR */
|
|
476, /* (560) fill_mode ::= NEXT */
|
|
471, /* (561) group_by_clause_opt ::= */
|
|
471, /* (562) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
477, /* (563) group_by_list ::= expr_or_subquery */
|
|
477, /* (564) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
472, /* (565) having_clause_opt ::= */
|
|
472, /* (566) having_clause_opt ::= HAVING search_condition */
|
|
467, /* (567) range_opt ::= */
|
|
467, /* (568) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
467, /* (569) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
468, /* (570) every_opt ::= */
|
|
468, /* (571) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
478, /* (572) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
479, /* (573) query_simple ::= query_specification */
|
|
479, /* (574) query_simple ::= union_query_expression */
|
|
483, /* (575) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
483, /* (576) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
484, /* (577) query_simple_or_subquery ::= query_simple */
|
|
484, /* (578) query_simple_or_subquery ::= subquery */
|
|
412, /* (579) query_or_subquery ::= query_expression */
|
|
412, /* (580) query_or_subquery ::= subquery */
|
|
480, /* (581) order_by_clause_opt ::= */
|
|
480, /* (582) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
481, /* (583) slimit_clause_opt ::= */
|
|
481, /* (584) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
481, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
481, /* (586) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
482, /* (587) limit_clause_opt ::= */
|
|
482, /* (588) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
482, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
482, /* (590) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
459, /* (591) subquery ::= NK_LP query_expression NK_RP */
|
|
459, /* (592) subquery ::= NK_LP subquery NK_RP */
|
|
354, /* (593) search_condition ::= common_expression */
|
|
485, /* (594) sort_specification_list ::= sort_specification */
|
|
485, /* (595) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
486, /* (596) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
487, /* (597) ordering_specification_opt ::= */
|
|
487, /* (598) ordering_specification_opt ::= ASC */
|
|
487, /* (599) ordering_specification_opt ::= DESC */
|
|
488, /* (600) null_ordering_opt ::= */
|
|
488, /* (601) null_ordering_opt ::= NULLS FIRST */
|
|
488, /* (602) null_ordering_opt ::= NULLS LAST */
|
|
};
|
|
|
|
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
|
|
** of symbols on the right-hand side of that rule. */
|
|
static const signed char yyRuleInfoNRhs[] = {
|
|
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
0, /* (2) account_options ::= */
|
|
-3, /* (3) account_options ::= account_options PPS literal */
|
|
-3, /* (4) account_options ::= account_options TSERIES literal */
|
|
-3, /* (5) account_options ::= account_options STORAGE literal */
|
|
-3, /* (6) account_options ::= account_options STREAMS literal */
|
|
-3, /* (7) account_options ::= account_options QTIME literal */
|
|
-3, /* (8) account_options ::= account_options DBS literal */
|
|
-3, /* (9) account_options ::= account_options USERS literal */
|
|
-3, /* (10) account_options ::= account_options CONNS literal */
|
|
-3, /* (11) account_options ::= account_options STATE literal */
|
|
-1, /* (12) alter_account_options ::= alter_account_option */
|
|
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
-2, /* (14) alter_account_option ::= PASS literal */
|
|
-2, /* (15) alter_account_option ::= PPS literal */
|
|
-2, /* (16) alter_account_option ::= TSERIES literal */
|
|
-2, /* (17) alter_account_option ::= STORAGE literal */
|
|
-2, /* (18) alter_account_option ::= STREAMS literal */
|
|
-2, /* (19) alter_account_option ::= QTIME literal */
|
|
-2, /* (20) alter_account_option ::= DBS literal */
|
|
-2, /* (21) alter_account_option ::= USERS literal */
|
|
-2, /* (22) alter_account_option ::= CONNS literal */
|
|
-2, /* (23) alter_account_option ::= STATE literal */
|
|
-6, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
|
|
-5, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
-5, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
-5, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
-3, /* (28) cmd ::= DROP USER user_name */
|
|
0, /* (29) sysinfo_opt ::= */
|
|
-2, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
-7, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
-7, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
-1, /* (33) privileges ::= ALL */
|
|
-1, /* (34) privileges ::= priv_type_list */
|
|
-1, /* (35) privileges ::= SUBSCRIBE */
|
|
-1, /* (36) priv_type_list ::= priv_type */
|
|
-3, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
-1, /* (38) priv_type ::= READ */
|
|
-1, /* (39) priv_type ::= WRITE */
|
|
-3, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
-3, /* (41) priv_level ::= db_name NK_DOT NK_STAR */
|
|
-3, /* (42) priv_level ::= db_name NK_DOT table_name */
|
|
-1, /* (43) priv_level ::= topic_name */
|
|
0, /* (44) with_opt ::= */
|
|
-2, /* (45) with_opt ::= WITH search_condition */
|
|
-3, /* (46) cmd ::= CREATE DNODE dnode_endpoint */
|
|
-5, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
-4, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
-4, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
-4, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
-4, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
-4, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
-5, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
-4, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
-5, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
-3, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
-1, /* (57) dnode_endpoint ::= NK_STRING */
|
|
-1, /* (58) dnode_endpoint ::= NK_ID */
|
|
-1, /* (59) dnode_endpoint ::= NK_IPTOKEN */
|
|
0, /* (60) force_opt ::= */
|
|
-1, /* (61) force_opt ::= FORCE */
|
|
-1, /* (62) unsafe_opt ::= UNSAFE */
|
|
-3, /* (63) cmd ::= ALTER LOCAL NK_STRING */
|
|
-4, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
-5, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
-5, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
-4, /* (77) cmd ::= DROP DATABASE exists_opt db_name */
|
|
-2, /* (78) cmd ::= USE db_name */
|
|
-4, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
-3, /* (80) cmd ::= FLUSH DATABASE db_name */
|
|
-4, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
-5, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
-3, /* (83) not_exists_opt ::= IF NOT EXISTS */
|
|
0, /* (84) not_exists_opt ::= */
|
|
-2, /* (85) exists_opt ::= IF EXISTS */
|
|
0, /* (86) exists_opt ::= */
|
|
0, /* (87) db_options ::= */
|
|
-3, /* (88) db_options ::= db_options BUFFER NK_INTEGER */
|
|
-3, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
-3, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
-3, /* (91) db_options ::= db_options COMP NK_INTEGER */
|
|
-3, /* (92) db_options ::= db_options DURATION NK_INTEGER */
|
|
-3, /* (93) db_options ::= db_options DURATION NK_VARIABLE */
|
|
-3, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
-3, /* (95) db_options ::= db_options MINROWS NK_INTEGER */
|
|
-3, /* (96) db_options ::= db_options KEEP integer_list */
|
|
-3, /* (97) db_options ::= db_options KEEP variable_list */
|
|
-3, /* (98) db_options ::= db_options PAGES NK_INTEGER */
|
|
-3, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
-3, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
-3, /* (101) db_options ::= db_options PRECISION NK_STRING */
|
|
-3, /* (102) db_options ::= db_options REPLICA NK_INTEGER */
|
|
-3, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
-3, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
-3, /* (105) db_options ::= db_options RETENTIONS retention_list */
|
|
-3, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
-3, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
-3, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-3, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-4, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-3, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
-4, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-3, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
-3, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
-3, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
-3, /* (116) db_options ::= db_options TABLE_PREFIX signed */
|
|
-3, /* (117) db_options ::= db_options TABLE_SUFFIX signed */
|
|
-1, /* (118) alter_db_options ::= alter_db_option */
|
|
-2, /* (119) alter_db_options ::= alter_db_options alter_db_option */
|
|
-2, /* (120) alter_db_option ::= BUFFER NK_INTEGER */
|
|
-2, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
-2, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
-2, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-2, /* (124) alter_db_option ::= KEEP integer_list */
|
|
-2, /* (125) alter_db_option ::= KEEP variable_list */
|
|
-2, /* (126) alter_db_option ::= PAGES NK_INTEGER */
|
|
-2, /* (127) alter_db_option ::= REPLICA NK_INTEGER */
|
|
-2, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
-2, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
-2, /* (130) alter_db_option ::= MINROWS NK_INTEGER */
|
|
-2, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-3, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-2, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
-3, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-1, /* (135) integer_list ::= NK_INTEGER */
|
|
-3, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
-1, /* (137) variable_list ::= NK_VARIABLE */
|
|
-3, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
-1, /* (139) retention_list ::= retention */
|
|
-3, /* (140) retention_list ::= retention_list NK_COMMA retention */
|
|
-3, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
0, /* (142) speed_opt ::= */
|
|
-2, /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */
|
|
0, /* (144) start_opt ::= */
|
|
-3, /* (145) start_opt ::= START WITH NK_INTEGER */
|
|
-3, /* (146) start_opt ::= START WITH NK_STRING */
|
|
-4, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
0, /* (148) end_opt ::= */
|
|
-3, /* (149) end_opt ::= END WITH NK_INTEGER */
|
|
-3, /* (150) end_opt ::= END WITH NK_STRING */
|
|
-4, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
-9, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
-3, /* (153) cmd ::= CREATE TABLE multi_create_clause */
|
|
-9, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
-3, /* (155) cmd ::= DROP TABLE multi_drop_clause */
|
|
-4, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
-3, /* (157) cmd ::= ALTER TABLE alter_table_clause */
|
|
-3, /* (158) cmd ::= ALTER STABLE alter_table_clause */
|
|
-2, /* (159) alter_table_clause ::= full_table_name alter_table_options */
|
|
-4, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_def */
|
|
-4, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
-4, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_def */
|
|
-5, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
-4, /* (164) alter_table_clause ::= full_table_name ADD TAG column_def */
|
|
-4, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
-4, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_def */
|
|
-5, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
-6, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
-1, /* (169) multi_create_clause ::= create_subtable_clause */
|
|
-2, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
-10, /* (171) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
-1, /* (172) multi_drop_clause ::= drop_table_clause */
|
|
-3, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
-2, /* (174) drop_table_clause ::= exists_opt full_table_name */
|
|
0, /* (175) specific_cols_opt ::= */
|
|
-3, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
-1, /* (177) full_table_name ::= table_name */
|
|
-3, /* (178) full_table_name ::= db_name NK_DOT table_name */
|
|
-1, /* (179) column_def_list ::= column_def */
|
|
-3, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
-2, /* (181) column_def ::= column_name type_name */
|
|
-4, /* (182) column_def ::= column_name type_name COMMENT NK_STRING */
|
|
-1, /* (183) type_name ::= BOOL */
|
|
-1, /* (184) type_name ::= TINYINT */
|
|
-1, /* (185) type_name ::= SMALLINT */
|
|
-1, /* (186) type_name ::= INT */
|
|
-1, /* (187) type_name ::= INTEGER */
|
|
-1, /* (188) type_name ::= BIGINT */
|
|
-1, /* (189) type_name ::= FLOAT */
|
|
-1, /* (190) type_name ::= DOUBLE */
|
|
-4, /* (191) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (192) type_name ::= TIMESTAMP */
|
|
-4, /* (193) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
-2, /* (194) type_name ::= TINYINT UNSIGNED */
|
|
-2, /* (195) type_name ::= SMALLINT UNSIGNED */
|
|
-2, /* (196) type_name ::= INT UNSIGNED */
|
|
-2, /* (197) type_name ::= BIGINT UNSIGNED */
|
|
-1, /* (198) type_name ::= JSON */
|
|
-4, /* (199) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (200) type_name ::= MEDIUMBLOB */
|
|
-1, /* (201) type_name ::= BLOB */
|
|
-4, /* (202) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
-4, /* (203) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (204) type_name ::= DECIMAL */
|
|
-4, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
-6, /* (206) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
0, /* (207) tags_def_opt ::= */
|
|
-1, /* (208) tags_def_opt ::= tags_def */
|
|
-4, /* (209) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
0, /* (210) table_options ::= */
|
|
-3, /* (211) table_options ::= table_options COMMENT NK_STRING */
|
|
-3, /* (212) table_options ::= table_options MAX_DELAY duration_list */
|
|
-3, /* (213) table_options ::= table_options WATERMARK duration_list */
|
|
-5, /* (214) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
-3, /* (215) table_options ::= table_options TTL NK_INTEGER */
|
|
-5, /* (216) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
-3, /* (217) table_options ::= table_options DELETE_MARK duration_list */
|
|
-1, /* (218) alter_table_options ::= alter_table_option */
|
|
-2, /* (219) alter_table_options ::= alter_table_options alter_table_option */
|
|
-2, /* (220) alter_table_option ::= COMMENT NK_STRING */
|
|
-2, /* (221) alter_table_option ::= TTL NK_INTEGER */
|
|
-1, /* (222) duration_list ::= duration_literal */
|
|
-3, /* (223) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
-1, /* (224) rollup_func_list ::= rollup_func_name */
|
|
-3, /* (225) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
-1, /* (226) rollup_func_name ::= function_name */
|
|
-1, /* (227) rollup_func_name ::= FIRST */
|
|
-1, /* (228) rollup_func_name ::= LAST */
|
|
-1, /* (229) col_name_list ::= col_name */
|
|
-3, /* (230) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
-1, /* (231) col_name ::= column_name */
|
|
-2, /* (232) cmd ::= SHOW DNODES */
|
|
-2, /* (233) cmd ::= SHOW USERS */
|
|
-3, /* (234) cmd ::= SHOW USER PRIVILEGES */
|
|
-2, /* (235) cmd ::= SHOW DATABASES */
|
|
-4, /* (236) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
|
|
-4, /* (237) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
-3, /* (238) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
-2, /* (239) cmd ::= SHOW MNODES */
|
|
-2, /* (240) cmd ::= SHOW QNODES */
|
|
-2, /* (241) cmd ::= SHOW FUNCTIONS */
|
|
-5, /* (242) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
-6, /* (243) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
-2, /* (244) cmd ::= SHOW STREAMS */
|
|
-2, /* (245) cmd ::= SHOW ACCOUNTS */
|
|
-2, /* (246) cmd ::= SHOW APPS */
|
|
-2, /* (247) cmd ::= SHOW CONNECTIONS */
|
|
-2, /* (248) cmd ::= SHOW LICENCES */
|
|
-2, /* (249) cmd ::= SHOW GRANTS */
|
|
-4, /* (250) cmd ::= SHOW CREATE DATABASE db_name */
|
|
-4, /* (251) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
-4, /* (252) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
-2, /* (253) cmd ::= SHOW QUERIES */
|
|
-2, /* (254) cmd ::= SHOW SCORES */
|
|
-2, /* (255) cmd ::= SHOW TOPICS */
|
|
-2, /* (256) cmd ::= SHOW VARIABLES */
|
|
-3, /* (257) cmd ::= SHOW CLUSTER VARIABLES */
|
|
-3, /* (258) cmd ::= SHOW LOCAL VARIABLES */
|
|
-5, /* (259) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
-2, /* (260) cmd ::= SHOW BNODES */
|
|
-2, /* (261) cmd ::= SHOW SNODES */
|
|
-2, /* (262) cmd ::= SHOW CLUSTER */
|
|
-2, /* (263) cmd ::= SHOW TRANSACTIONS */
|
|
-4, /* (264) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
-2, /* (265) cmd ::= SHOW CONSUMERS */
|
|
-2, /* (266) cmd ::= SHOW SUBSCRIPTIONS */
|
|
-5, /* (267) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
-6, /* (268) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
-7, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
-8, /* (270) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
-3, /* (271) cmd ::= SHOW VNODES NK_INTEGER */
|
|
-3, /* (272) cmd ::= SHOW VNODES NK_STRING */
|
|
-3, /* (273) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
-3, /* (274) cmd ::= SHOW CLUSTER ALIVE */
|
|
0, /* (275) db_name_cond_opt ::= */
|
|
-2, /* (276) db_name_cond_opt ::= db_name NK_DOT */
|
|
0, /* (277) like_pattern_opt ::= */
|
|
-2, /* (278) like_pattern_opt ::= LIKE NK_STRING */
|
|
-1, /* (279) table_name_cond ::= table_name */
|
|
0, /* (280) from_db_opt ::= */
|
|
-2, /* (281) from_db_opt ::= FROM db_name */
|
|
0, /* (282) tag_list_opt ::= */
|
|
-1, /* (283) tag_list_opt ::= tag_item */
|
|
-3, /* (284) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
-1, /* (285) tag_item ::= TBNAME */
|
|
-1, /* (286) tag_item ::= QTAGS */
|
|
-1, /* (287) tag_item ::= column_name */
|
|
-2, /* (288) tag_item ::= column_name column_alias */
|
|
-3, /* (289) tag_item ::= column_name AS column_alias */
|
|
-8, /* (290) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
|
|
-9, /* (291) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
-4, /* (292) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
-1, /* (293) full_index_name ::= index_name */
|
|
-3, /* (294) full_index_name ::= db_name NK_DOT index_name */
|
|
-10, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
-12, /* (296) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
-1, /* (297) func_list ::= func */
|
|
-3, /* (298) func_list ::= func_list NK_COMMA func */
|
|
-4, /* (299) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
-1, /* (300) sma_func_name ::= function_name */
|
|
-1, /* (301) sma_func_name ::= COUNT */
|
|
-1, /* (302) sma_func_name ::= FIRST */
|
|
-1, /* (303) sma_func_name ::= LAST */
|
|
-1, /* (304) sma_func_name ::= LAST_ROW */
|
|
0, /* (305) sma_stream_opt ::= */
|
|
-3, /* (306) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
-3, /* (307) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
-3, /* (308) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
-1, /* (309) with_meta ::= AS */
|
|
-3, /* (310) with_meta ::= WITH META AS */
|
|
-3, /* (311) with_meta ::= ONLY META AS */
|
|
-6, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
-7, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
-8, /* (314) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
-4, /* (315) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
-7, /* (316) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
-2, /* (317) cmd ::= DESC full_table_name */
|
|
-2, /* (318) cmd ::= DESCRIBE full_table_name */
|
|
-3, /* (319) cmd ::= RESET QUERY CACHE */
|
|
-4, /* (320) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
-4, /* (321) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
0, /* (322) analyze_opt ::= */
|
|
-1, /* (323) analyze_opt ::= ANALYZE */
|
|
0, /* (324) explain_options ::= */
|
|
-3, /* (325) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
-3, /* (326) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
-12, /* (327) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
-4, /* (328) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
0, /* (329) agg_func_opt ::= */
|
|
-1, /* (330) agg_func_opt ::= AGGREGATE */
|
|
0, /* (331) bufsize_opt ::= */
|
|
-2, /* (332) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
0, /* (333) language_opt ::= */
|
|
-2, /* (334) language_opt ::= LANGUAGE NK_STRING */
|
|
0, /* (335) or_replace_opt ::= */
|
|
-2, /* (336) or_replace_opt ::= OR REPLACE */
|
|
-12, /* (337) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
|
|
-4, /* (338) cmd ::= DROP STREAM exists_opt stream_name */
|
|
-4, /* (339) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
-5, /* (340) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
0, /* (341) col_list_opt ::= */
|
|
-3, /* (342) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
0, /* (343) tag_def_or_ref_opt ::= */
|
|
-1, /* (344) tag_def_or_ref_opt ::= tags_def */
|
|
-4, /* (345) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
0, /* (346) stream_options ::= */
|
|
-3, /* (347) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
-3, /* (348) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
-4, /* (349) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
-3, /* (350) stream_options ::= stream_options WATERMARK duration_literal */
|
|
-4, /* (351) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
-3, /* (352) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
-3, /* (353) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
-4, /* (354) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
0, /* (355) subtable_opt ::= */
|
|
-4, /* (356) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
0, /* (357) ignore_opt ::= */
|
|
-2, /* (358) ignore_opt ::= IGNORE UNTREATED */
|
|
-3, /* (359) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
-3, /* (360) cmd ::= KILL QUERY NK_STRING */
|
|
-3, /* (361) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
-2, /* (362) cmd ::= BALANCE VGROUP */
|
|
-3, /* (363) cmd ::= BALANCE VGROUP LEADER */
|
|
-4, /* (364) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
-4, /* (365) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
-3, /* (366) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
-2, /* (367) dnode_list ::= DNODE NK_INTEGER */
|
|
-3, /* (368) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
-4, /* (369) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
-1, /* (370) cmd ::= query_or_subquery */
|
|
-1, /* (371) cmd ::= insert_query */
|
|
-7, /* (372) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
-4, /* (373) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
-1, /* (374) literal ::= NK_INTEGER */
|
|
-1, /* (375) literal ::= NK_FLOAT */
|
|
-1, /* (376) literal ::= NK_STRING */
|
|
-1, /* (377) literal ::= NK_BOOL */
|
|
-2, /* (378) literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (379) literal ::= duration_literal */
|
|
-1, /* (380) literal ::= NULL */
|
|
-1, /* (381) literal ::= NK_QUESTION */
|
|
-1, /* (382) duration_literal ::= NK_VARIABLE */
|
|
-1, /* (383) signed ::= NK_INTEGER */
|
|
-2, /* (384) signed ::= NK_PLUS NK_INTEGER */
|
|
-2, /* (385) signed ::= NK_MINUS NK_INTEGER */
|
|
-1, /* (386) signed ::= NK_FLOAT */
|
|
-2, /* (387) signed ::= NK_PLUS NK_FLOAT */
|
|
-2, /* (388) signed ::= NK_MINUS NK_FLOAT */
|
|
-1, /* (389) signed_literal ::= signed */
|
|
-1, /* (390) signed_literal ::= NK_STRING */
|
|
-1, /* (391) signed_literal ::= NK_BOOL */
|
|
-2, /* (392) signed_literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (393) signed_literal ::= duration_literal */
|
|
-1, /* (394) signed_literal ::= NULL */
|
|
-1, /* (395) signed_literal ::= literal_func */
|
|
-1, /* (396) signed_literal ::= NK_QUESTION */
|
|
-1, /* (397) literal_list ::= signed_literal */
|
|
-3, /* (398) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
-1, /* (399) db_name ::= NK_ID */
|
|
-1, /* (400) table_name ::= NK_ID */
|
|
-1, /* (401) column_name ::= NK_ID */
|
|
-1, /* (402) function_name ::= NK_ID */
|
|
-1, /* (403) table_alias ::= NK_ID */
|
|
-1, /* (404) column_alias ::= NK_ID */
|
|
-1, /* (405) user_name ::= NK_ID */
|
|
-1, /* (406) topic_name ::= NK_ID */
|
|
-1, /* (407) stream_name ::= NK_ID */
|
|
-1, /* (408) cgroup_name ::= NK_ID */
|
|
-1, /* (409) index_name ::= NK_ID */
|
|
-1, /* (410) expr_or_subquery ::= expression */
|
|
-1, /* (411) expression ::= literal */
|
|
-1, /* (412) expression ::= pseudo_column */
|
|
-1, /* (413) expression ::= column_reference */
|
|
-1, /* (414) expression ::= function_expression */
|
|
-1, /* (415) expression ::= case_when_expression */
|
|
-3, /* (416) expression ::= NK_LP expression NK_RP */
|
|
-2, /* (417) expression ::= NK_PLUS expr_or_subquery */
|
|
-2, /* (418) expression ::= NK_MINUS expr_or_subquery */
|
|
-3, /* (419) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
-3, /* (420) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
-3, /* (421) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
-3, /* (422) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
-3, /* (423) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
-3, /* (424) expression ::= column_reference NK_ARROW NK_STRING */
|
|
-3, /* (425) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
-3, /* (426) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
-1, /* (427) expression_list ::= expr_or_subquery */
|
|
-3, /* (428) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
-1, /* (429) column_reference ::= column_name */
|
|
-3, /* (430) column_reference ::= table_name NK_DOT column_name */
|
|
-1, /* (431) pseudo_column ::= ROWTS */
|
|
-1, /* (432) pseudo_column ::= TBNAME */
|
|
-3, /* (433) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
-1, /* (434) pseudo_column ::= QSTART */
|
|
-1, /* (435) pseudo_column ::= QEND */
|
|
-1, /* (436) pseudo_column ::= QDURATION */
|
|
-1, /* (437) pseudo_column ::= WSTART */
|
|
-1, /* (438) pseudo_column ::= WEND */
|
|
-1, /* (439) pseudo_column ::= WDURATION */
|
|
-1, /* (440) pseudo_column ::= IROWTS */
|
|
-1, /* (441) pseudo_column ::= ISFILLED */
|
|
-1, /* (442) pseudo_column ::= QTAGS */
|
|
-4, /* (443) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
-4, /* (444) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
-6, /* (445) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
-1, /* (446) function_expression ::= literal_func */
|
|
-3, /* (447) literal_func ::= noarg_func NK_LP NK_RP */
|
|
-1, /* (448) literal_func ::= NOW */
|
|
-1, /* (449) noarg_func ::= NOW */
|
|
-1, /* (450) noarg_func ::= TODAY */
|
|
-1, /* (451) noarg_func ::= TIMEZONE */
|
|
-1, /* (452) noarg_func ::= DATABASE */
|
|
-1, /* (453) noarg_func ::= CLIENT_VERSION */
|
|
-1, /* (454) noarg_func ::= SERVER_VERSION */
|
|
-1, /* (455) noarg_func ::= SERVER_STATUS */
|
|
-1, /* (456) noarg_func ::= CURRENT_USER */
|
|
-1, /* (457) noarg_func ::= USER */
|
|
-1, /* (458) star_func ::= COUNT */
|
|
-1, /* (459) star_func ::= FIRST */
|
|
-1, /* (460) star_func ::= LAST */
|
|
-1, /* (461) star_func ::= LAST_ROW */
|
|
-1, /* (462) star_func_para_list ::= NK_STAR */
|
|
-1, /* (463) star_func_para_list ::= other_para_list */
|
|
-1, /* (464) other_para_list ::= star_func_para */
|
|
-3, /* (465) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
-1, /* (466) star_func_para ::= expr_or_subquery */
|
|
-3, /* (467) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
-4, /* (468) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
-5, /* (469) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
-1, /* (470) when_then_list ::= when_then_expr */
|
|
-2, /* (471) when_then_list ::= when_then_list when_then_expr */
|
|
-4, /* (472) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
0, /* (473) case_when_else_opt ::= */
|
|
-2, /* (474) case_when_else_opt ::= ELSE common_expression */
|
|
-3, /* (475) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
-5, /* (476) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-6, /* (477) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-3, /* (478) predicate ::= expr_or_subquery IS NULL */
|
|
-4, /* (479) predicate ::= expr_or_subquery IS NOT NULL */
|
|
-3, /* (480) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
-1, /* (481) compare_op ::= NK_LT */
|
|
-1, /* (482) compare_op ::= NK_GT */
|
|
-1, /* (483) compare_op ::= NK_LE */
|
|
-1, /* (484) compare_op ::= NK_GE */
|
|
-1, /* (485) compare_op ::= NK_NE */
|
|
-1, /* (486) compare_op ::= NK_EQ */
|
|
-1, /* (487) compare_op ::= LIKE */
|
|
-2, /* (488) compare_op ::= NOT LIKE */
|
|
-1, /* (489) compare_op ::= MATCH */
|
|
-1, /* (490) compare_op ::= NMATCH */
|
|
-1, /* (491) compare_op ::= CONTAINS */
|
|
-1, /* (492) in_op ::= IN */
|
|
-2, /* (493) in_op ::= NOT IN */
|
|
-3, /* (494) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
-1, /* (495) boolean_value_expression ::= boolean_primary */
|
|
-2, /* (496) boolean_value_expression ::= NOT boolean_primary */
|
|
-3, /* (497) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
-3, /* (498) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
-1, /* (499) boolean_primary ::= predicate */
|
|
-3, /* (500) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
-1, /* (501) common_expression ::= expr_or_subquery */
|
|
-1, /* (502) common_expression ::= boolean_value_expression */
|
|
0, /* (503) from_clause_opt ::= */
|
|
-2, /* (504) from_clause_opt ::= FROM table_reference_list */
|
|
-1, /* (505) table_reference_list ::= table_reference */
|
|
-3, /* (506) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
-1, /* (507) table_reference ::= table_primary */
|
|
-1, /* (508) table_reference ::= joined_table */
|
|
-2, /* (509) table_primary ::= table_name alias_opt */
|
|
-4, /* (510) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
-2, /* (511) table_primary ::= subquery alias_opt */
|
|
-1, /* (512) table_primary ::= parenthesized_joined_table */
|
|
0, /* (513) alias_opt ::= */
|
|
-1, /* (514) alias_opt ::= table_alias */
|
|
-2, /* (515) alias_opt ::= AS table_alias */
|
|
-3, /* (516) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
-3, /* (517) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
-6, /* (518) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
0, /* (519) join_type ::= */
|
|
-1, /* (520) join_type ::= INNER */
|
|
-13, /* (521) query_specification ::= SELECT hint_list set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
0, /* (522) hint_list ::= */
|
|
-1, /* (523) hint_list ::= NK_HINT */
|
|
0, /* (524) set_quantifier_opt ::= */
|
|
-1, /* (525) set_quantifier_opt ::= DISTINCT */
|
|
-1, /* (526) set_quantifier_opt ::= ALL */
|
|
-1, /* (527) select_list ::= select_item */
|
|
-3, /* (528) select_list ::= select_list NK_COMMA select_item */
|
|
-1, /* (529) select_item ::= NK_STAR */
|
|
-1, /* (530) select_item ::= common_expression */
|
|
-2, /* (531) select_item ::= common_expression column_alias */
|
|
-3, /* (532) select_item ::= common_expression AS column_alias */
|
|
-3, /* (533) select_item ::= table_name NK_DOT NK_STAR */
|
|
0, /* (534) where_clause_opt ::= */
|
|
-2, /* (535) where_clause_opt ::= WHERE search_condition */
|
|
0, /* (536) partition_by_clause_opt ::= */
|
|
-3, /* (537) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
-1, /* (538) partition_list ::= partition_item */
|
|
-3, /* (539) partition_list ::= partition_list NK_COMMA partition_item */
|
|
-1, /* (540) partition_item ::= expr_or_subquery */
|
|
-2, /* (541) partition_item ::= expr_or_subquery column_alias */
|
|
-3, /* (542) partition_item ::= expr_or_subquery AS column_alias */
|
|
0, /* (543) twindow_clause_opt ::= */
|
|
-6, /* (544) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
-4, /* (545) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
-6, /* (546) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
-8, /* (547) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
-7, /* (548) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
0, /* (549) sliding_opt ::= */
|
|
-4, /* (550) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
|
|
0, /* (551) fill_opt ::= */
|
|
-4, /* (552) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
-6, /* (553) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
-6, /* (554) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
-1, /* (555) fill_mode ::= NONE */
|
|
-1, /* (556) fill_mode ::= PREV */
|
|
-1, /* (557) fill_mode ::= NULL */
|
|
-1, /* (558) fill_mode ::= NULL_F */
|
|
-1, /* (559) fill_mode ::= LINEAR */
|
|
-1, /* (560) fill_mode ::= NEXT */
|
|
0, /* (561) group_by_clause_opt ::= */
|
|
-3, /* (562) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
-1, /* (563) group_by_list ::= expr_or_subquery */
|
|
-3, /* (564) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
0, /* (565) having_clause_opt ::= */
|
|
-2, /* (566) having_clause_opt ::= HAVING search_condition */
|
|
0, /* (567) range_opt ::= */
|
|
-6, /* (568) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
-4, /* (569) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
0, /* (570) every_opt ::= */
|
|
-4, /* (571) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
-4, /* (572) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
-1, /* (573) query_simple ::= query_specification */
|
|
-1, /* (574) query_simple ::= union_query_expression */
|
|
-4, /* (575) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
-3, /* (576) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
-1, /* (577) query_simple_or_subquery ::= query_simple */
|
|
-1, /* (578) query_simple_or_subquery ::= subquery */
|
|
-1, /* (579) query_or_subquery ::= query_expression */
|
|
-1, /* (580) query_or_subquery ::= subquery */
|
|
0, /* (581) order_by_clause_opt ::= */
|
|
-3, /* (582) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
0, /* (583) slimit_clause_opt ::= */
|
|
-2, /* (584) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
-4, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
-4, /* (586) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
0, /* (587) limit_clause_opt ::= */
|
|
-2, /* (588) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
-4, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
-4, /* (590) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
-3, /* (591) subquery ::= NK_LP query_expression NK_RP */
|
|
-3, /* (592) subquery ::= NK_LP subquery NK_RP */
|
|
-1, /* (593) search_condition ::= common_expression */
|
|
-1, /* (594) sort_specification_list ::= sort_specification */
|
|
-3, /* (595) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
-3, /* (596) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
0, /* (597) ordering_specification_opt ::= */
|
|
-1, /* (598) ordering_specification_opt ::= ASC */
|
|
-1, /* (599) ordering_specification_opt ::= DESC */
|
|
0, /* (600) null_ordering_opt ::= */
|
|
-2, /* (601) null_ordering_opt ::= NULLS FIRST */
|
|
-2, /* (602) 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,340,&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,341,&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,340,&yymsp[-2].minor);
|
|
{ }
|
|
yy_destructor(yypParser,342,&yymsp[0].minor);
|
|
}
|
|
break;
|
|
case 12: /* alter_account_options ::= alter_account_option */
|
|
{ yy_destructor(yypParser,343,&yymsp[0].minor);
|
|
{ }
|
|
}
|
|
break;
|
|
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
|
|
{ yy_destructor(yypParser,341,&yymsp[-1].minor);
|
|
{ }
|
|
yy_destructor(yypParser,343,&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,342,&yymsp[0].minor);
|
|
break;
|
|
case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
|
|
{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy731, &yymsp[-1].minor.yy0, yymsp[0].minor.yy821); }
|
|
break;
|
|
case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy731, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy731, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy731, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 28: /* cmd ::= DROP USER user_name */
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 29: /* sysinfo_opt ::= */
|
|
{ yymsp[1].minor.yy821 = 1; }
|
|
break;
|
|
case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
{ yymsp[-1].minor.yy821 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
break;
|
|
case 31: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy159, &yymsp[-3].minor.yy303, &yymsp[0].minor.yy731, yymsp[-2].minor.yy698); }
|
|
break;
|
|
case 32: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy159, &yymsp[-3].minor.yy303, &yymsp[0].minor.yy731, yymsp[-2].minor.yy698); }
|
|
break;
|
|
case 33: /* privileges ::= ALL */
|
|
{ yymsp[0].minor.yy159 = PRIVILEGE_TYPE_ALL; }
|
|
break;
|
|
case 34: /* privileges ::= priv_type_list */
|
|
case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36);
|
|
{ yylhsminor.yy159 = yymsp[0].minor.yy159; }
|
|
yymsp[0].minor.yy159 = yylhsminor.yy159;
|
|
break;
|
|
case 35: /* privileges ::= SUBSCRIBE */
|
|
{ yymsp[0].minor.yy159 = PRIVILEGE_TYPE_SUBSCRIBE; }
|
|
break;
|
|
case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
{ yylhsminor.yy159 = yymsp[-2].minor.yy159 | yymsp[0].minor.yy159; }
|
|
yymsp[-2].minor.yy159 = yylhsminor.yy159;
|
|
break;
|
|
case 38: /* priv_type ::= READ */
|
|
{ yymsp[0].minor.yy159 = PRIVILEGE_TYPE_READ; }
|
|
break;
|
|
case 39: /* priv_type ::= WRITE */
|
|
{ yymsp[0].minor.yy159 = PRIVILEGE_TYPE_WRITE; }
|
|
break;
|
|
case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
{ yylhsminor.yy303.first = yymsp[-2].minor.yy0; yylhsminor.yy303.second = yymsp[0].minor.yy0; }
|
|
yymsp[-2].minor.yy303 = yylhsminor.yy303;
|
|
break;
|
|
case 41: /* priv_level ::= db_name NK_DOT NK_STAR */
|
|
{ yylhsminor.yy303.first = yymsp[-2].minor.yy731; yylhsminor.yy303.second = yymsp[0].minor.yy0; }
|
|
yymsp[-2].minor.yy303 = yylhsminor.yy303;
|
|
break;
|
|
case 42: /* priv_level ::= db_name NK_DOT table_name */
|
|
{ yylhsminor.yy303.first = yymsp[-2].minor.yy731; yylhsminor.yy303.second = yymsp[0].minor.yy731; }
|
|
yymsp[-2].minor.yy303 = yylhsminor.yy303;
|
|
break;
|
|
case 43: /* priv_level ::= topic_name */
|
|
{ yylhsminor.yy303.first = yymsp[0].minor.yy731; yylhsminor.yy303.second = nil_token; }
|
|
yymsp[0].minor.yy303 = yylhsminor.yy303;
|
|
break;
|
|
case 44: /* with_opt ::= */
|
|
case 144: /* start_opt ::= */ yytestcase(yyruleno==144);
|
|
case 148: /* end_opt ::= */ yytestcase(yyruleno==148);
|
|
case 277: /* like_pattern_opt ::= */ yytestcase(yyruleno==277);
|
|
case 355: /* subtable_opt ::= */ yytestcase(yyruleno==355);
|
|
case 473: /* case_when_else_opt ::= */ yytestcase(yyruleno==473);
|
|
case 503: /* from_clause_opt ::= */ yytestcase(yyruleno==503);
|
|
case 534: /* where_clause_opt ::= */ yytestcase(yyruleno==534);
|
|
case 543: /* twindow_clause_opt ::= */ yytestcase(yyruleno==543);
|
|
case 549: /* sliding_opt ::= */ yytestcase(yyruleno==549);
|
|
case 551: /* fill_opt ::= */ yytestcase(yyruleno==551);
|
|
case 565: /* having_clause_opt ::= */ yytestcase(yyruleno==565);
|
|
case 567: /* range_opt ::= */ yytestcase(yyruleno==567);
|
|
case 570: /* every_opt ::= */ yytestcase(yyruleno==570);
|
|
case 583: /* slimit_clause_opt ::= */ yytestcase(yyruleno==583);
|
|
case 587: /* limit_clause_opt ::= */ yytestcase(yyruleno==587);
|
|
{ yymsp[1].minor.yy698 = NULL; }
|
|
break;
|
|
case 45: /* with_opt ::= WITH search_condition */
|
|
case 504: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==504);
|
|
case 535: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==535);
|
|
case 566: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==566);
|
|
{ yymsp[-1].minor.yy698 = yymsp[0].minor.yy698; }
|
|
break;
|
|
case 46: /* cmd ::= CREATE DNODE dnode_endpoint */
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy731, NULL); }
|
|
break;
|
|
case 47: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 48: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy83, false); }
|
|
break;
|
|
case 49: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy731, yymsp[0].minor.yy83, false); }
|
|
break;
|
|
case 50: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy83); }
|
|
break;
|
|
case 51: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy731, false, yymsp[0].minor.yy83); }
|
|
break;
|
|
case 52: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 53: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 54: /* cmd ::= ALTER ALL DNODES NK_STRING */
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 55: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 56: /* cmd ::= RESTORE DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 57: /* dnode_endpoint ::= NK_STRING */
|
|
case 58: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==58);
|
|
case 59: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==59);
|
|
case 301: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==301);
|
|
case 302: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==302);
|
|
case 303: /* sma_func_name ::= LAST */ yytestcase(yyruleno==303);
|
|
case 304: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==304);
|
|
case 399: /* db_name ::= NK_ID */ yytestcase(yyruleno==399);
|
|
case 400: /* table_name ::= NK_ID */ yytestcase(yyruleno==400);
|
|
case 401: /* column_name ::= NK_ID */ yytestcase(yyruleno==401);
|
|
case 402: /* function_name ::= NK_ID */ yytestcase(yyruleno==402);
|
|
case 403: /* table_alias ::= NK_ID */ yytestcase(yyruleno==403);
|
|
case 404: /* column_alias ::= NK_ID */ yytestcase(yyruleno==404);
|
|
case 405: /* user_name ::= NK_ID */ yytestcase(yyruleno==405);
|
|
case 406: /* topic_name ::= NK_ID */ yytestcase(yyruleno==406);
|
|
case 407: /* stream_name ::= NK_ID */ yytestcase(yyruleno==407);
|
|
case 408: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==408);
|
|
case 409: /* index_name ::= NK_ID */ yytestcase(yyruleno==409);
|
|
case 449: /* noarg_func ::= NOW */ yytestcase(yyruleno==449);
|
|
case 450: /* noarg_func ::= TODAY */ yytestcase(yyruleno==450);
|
|
case 451: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==451);
|
|
case 452: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==452);
|
|
case 453: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==453);
|
|
case 454: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==454);
|
|
case 455: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==455);
|
|
case 456: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==456);
|
|
case 457: /* noarg_func ::= USER */ yytestcase(yyruleno==457);
|
|
case 458: /* star_func ::= COUNT */ yytestcase(yyruleno==458);
|
|
case 459: /* star_func ::= FIRST */ yytestcase(yyruleno==459);
|
|
case 460: /* star_func ::= LAST */ yytestcase(yyruleno==460);
|
|
case 461: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==461);
|
|
{ yylhsminor.yy731 = yymsp[0].minor.yy0; }
|
|
yymsp[0].minor.yy731 = yylhsminor.yy731;
|
|
break;
|
|
case 60: /* force_opt ::= */
|
|
case 84: /* not_exists_opt ::= */ yytestcase(yyruleno==84);
|
|
case 86: /* exists_opt ::= */ yytestcase(yyruleno==86);
|
|
case 322: /* analyze_opt ::= */ yytestcase(yyruleno==322);
|
|
case 329: /* agg_func_opt ::= */ yytestcase(yyruleno==329);
|
|
case 335: /* or_replace_opt ::= */ yytestcase(yyruleno==335);
|
|
case 357: /* ignore_opt ::= */ yytestcase(yyruleno==357);
|
|
case 524: /* set_quantifier_opt ::= */ yytestcase(yyruleno==524);
|
|
{ yymsp[1].minor.yy83 = false; }
|
|
break;
|
|
case 61: /* force_opt ::= FORCE */
|
|
case 62: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==62);
|
|
case 323: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==323);
|
|
case 330: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==330);
|
|
case 525: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==525);
|
|
{ yymsp[0].minor.yy83 = true; }
|
|
break;
|
|
case 63: /* cmd ::= ALTER LOCAL NK_STRING */
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 64: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 65: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 66: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 67: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 68: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 69: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 70: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 71: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 72: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 73: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 74: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 75: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 76: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy83, &yymsp[-1].minor.yy731, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 77: /* cmd ::= DROP DATABASE exists_opt db_name */
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 78: /* cmd ::= USE db_name */
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 79: /* cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy731, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 80: /* cmd ::= FLUSH DATABASE db_name */
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 81: /* cmd ::= TRIM DATABASE db_name speed_opt */
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy731, yymsp[0].minor.yy724); }
|
|
break;
|
|
case 82: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy731, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 83: /* not_exists_opt ::= IF NOT EXISTS */
|
|
{ yymsp[-2].minor.yy83 = true; }
|
|
break;
|
|
case 85: /* exists_opt ::= IF EXISTS */
|
|
case 336: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==336);
|
|
case 358: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==358);
|
|
{ yymsp[-1].minor.yy83 = true; }
|
|
break;
|
|
case 87: /* db_options ::= */
|
|
{ yymsp[1].minor.yy698 = createDefaultDatabaseOptions(pCxt); }
|
|
break;
|
|
case 88: /* db_options ::= db_options BUFFER NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 89: /* db_options ::= db_options CACHEMODEL NK_STRING */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 90: /* db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 91: /* db_options ::= db_options COMP NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 92: /* db_options ::= db_options DURATION NK_INTEGER */
|
|
case 93: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==93);
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 94: /* db_options ::= db_options MAXROWS NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 95: /* db_options ::= db_options MINROWS NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 96: /* db_options ::= db_options KEEP integer_list */
|
|
case 97: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==97);
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_KEEP, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 98: /* db_options ::= db_options PAGES NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 99: /* db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 100: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 101: /* db_options ::= db_options PRECISION NK_STRING */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 102: /* db_options ::= db_options REPLICA NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 103: /* db_options ::= db_options VGROUPS NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 104: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 105: /* db_options ::= db_options RETENTIONS retention_list */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_RETENTIONS, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 106: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 107: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 108: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 109: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 110: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-3].minor.yy698, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
|
}
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 111: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 112: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-3].minor.yy698, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
|
}
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 113: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 114: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 115: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 116: /* db_options ::= db_options TABLE_PREFIX signed */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy698); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 117: /* db_options ::= db_options TABLE_SUFFIX signed */
|
|
{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy698); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 118: /* alter_db_options ::= alter_db_option */
|
|
{ yylhsminor.yy698 = createAlterDatabaseOptions(pCxt); yylhsminor.yy698 = setAlterDatabaseOption(pCxt, yylhsminor.yy698, &yymsp[0].minor.yy23); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 119: /* alter_db_options ::= alter_db_options alter_db_option */
|
|
{ yylhsminor.yy698 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy698, &yymsp[0].minor.yy23); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 120: /* alter_db_option ::= BUFFER NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 121: /* alter_db_option ::= CACHEMODEL NK_STRING */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 122: /* alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 123: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 124: /* alter_db_option ::= KEEP integer_list */
|
|
case 125: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==125);
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_KEEP; yymsp[-1].minor.yy23.pList = yymsp[0].minor.yy88; }
|
|
break;
|
|
case 126: /* alter_db_option ::= PAGES NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_PAGES; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 127: /* alter_db_option ::= REPLICA NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 128: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_WAL; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 129: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 130: /* alter_db_option ::= MINROWS NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 131: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 132: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy23.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy23.val = t;
|
|
}
|
|
break;
|
|
case 133: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 134: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy23.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy23.val = t;
|
|
}
|
|
break;
|
|
case 135: /* integer_list ::= NK_INTEGER */
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 136: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
case 368: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==368);
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 137: /* variable_list ::= NK_VARIABLE */
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 138: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 139: /* retention_list ::= retention */
|
|
case 169: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==169);
|
|
case 172: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==172);
|
|
case 179: /* column_def_list ::= column_def */ yytestcase(yyruleno==179);
|
|
case 224: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==224);
|
|
case 229: /* col_name_list ::= col_name */ yytestcase(yyruleno==229);
|
|
case 283: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==283);
|
|
case 297: /* func_list ::= func */ yytestcase(yyruleno==297);
|
|
case 397: /* literal_list ::= signed_literal */ yytestcase(yyruleno==397);
|
|
case 464: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==464);
|
|
case 470: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==470);
|
|
case 527: /* select_list ::= select_item */ yytestcase(yyruleno==527);
|
|
case 538: /* partition_list ::= partition_item */ yytestcase(yyruleno==538);
|
|
case 594: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==594);
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, yymsp[0].minor.yy698); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 140: /* retention_list ::= retention_list NK_COMMA retention */
|
|
case 173: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==173);
|
|
case 180: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==180);
|
|
case 225: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==225);
|
|
case 230: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==230);
|
|
case 284: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==284);
|
|
case 298: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==298);
|
|
case 398: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==398);
|
|
case 465: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==465);
|
|
case 528: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==528);
|
|
case 539: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==539);
|
|
case 595: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==595);
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, yymsp[0].minor.yy698); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 141: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
{ yylhsminor.yy698 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 142: /* speed_opt ::= */
|
|
case 331: /* bufsize_opt ::= */ yytestcase(yyruleno==331);
|
|
{ yymsp[1].minor.yy724 = 0; }
|
|
break;
|
|
case 143: /* speed_opt ::= MAX_SPEED NK_INTEGER */
|
|
case 332: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==332);
|
|
{ yymsp[-1].minor.yy724 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
break;
|
|
case 145: /* start_opt ::= START WITH NK_INTEGER */
|
|
case 149: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==149);
|
|
{ yymsp[-2].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 146: /* start_opt ::= START WITH NK_STRING */
|
|
case 150: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==150);
|
|
{ yymsp[-2].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 147: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
case 151: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==151);
|
|
{ yymsp[-3].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 152: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
case 154: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==154);
|
|
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy83, yymsp[-5].minor.yy698, yymsp[-3].minor.yy88, yymsp[-1].minor.yy88, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 153: /* cmd ::= CREATE TABLE multi_create_clause */
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy88); }
|
|
break;
|
|
case 155: /* cmd ::= DROP TABLE multi_drop_clause */
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy88); }
|
|
break;
|
|
case 156: /* cmd ::= DROP STABLE exists_opt full_table_name */
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy83, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 157: /* cmd ::= ALTER TABLE alter_table_clause */
|
|
case 370: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==370);
|
|
case 371: /* cmd ::= insert_query */ yytestcase(yyruleno==371);
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy698; }
|
|
break;
|
|
case 158: /* cmd ::= ALTER STABLE alter_table_clause */
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy698); }
|
|
break;
|
|
case 159: /* alter_table_clause ::= full_table_name alter_table_options */
|
|
{ yylhsminor.yy698 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 160: /* alter_table_clause ::= full_table_name ADD COLUMN column_def */
|
|
{ yylhsminor.yy698 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy698, TSDB_ALTER_TABLE_ADD_COLUMN, yymsp[0].minor.yy698); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 161: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
{ yylhsminor.yy698 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy698, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy731); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 162: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_def */
|
|
{ yylhsminor.yy698 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy698, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, yymsp[0].minor.yy698); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 163: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
{ yylhsminor.yy698 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy698, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy731, &yymsp[0].minor.yy731); }
|
|
yymsp[-4].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 164: /* alter_table_clause ::= full_table_name ADD TAG column_def */
|
|
{ yylhsminor.yy698 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy698, TSDB_ALTER_TABLE_ADD_TAG, yymsp[0].minor.yy698); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 165: /* alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
{ yylhsminor.yy698 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy698, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy731); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 166: /* alter_table_clause ::= full_table_name MODIFY TAG column_def */
|
|
{ yylhsminor.yy698 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy698, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, yymsp[0].minor.yy698); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 167: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
{ yylhsminor.yy698 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy698, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy731, &yymsp[0].minor.yy731); }
|
|
yymsp[-4].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 168: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
{ yylhsminor.yy698 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy698, &yymsp[-2].minor.yy731, yymsp[0].minor.yy698); }
|
|
yymsp[-5].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 170: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
case 471: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==471);
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-1].minor.yy88, yymsp[0].minor.yy698); }
|
|
yymsp[-1].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 171: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
{ yylhsminor.yy698 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy83, yymsp[-8].minor.yy698, yymsp[-6].minor.yy698, yymsp[-5].minor.yy88, yymsp[-2].minor.yy88, yymsp[0].minor.yy698); }
|
|
yymsp[-9].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 174: /* drop_table_clause ::= exists_opt full_table_name */
|
|
{ yylhsminor.yy698 = createDropTableClause(pCxt, yymsp[-1].minor.yy83, yymsp[0].minor.yy698); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 175: /* specific_cols_opt ::= */
|
|
case 207: /* tags_def_opt ::= */ yytestcase(yyruleno==207);
|
|
case 282: /* tag_list_opt ::= */ yytestcase(yyruleno==282);
|
|
case 341: /* col_list_opt ::= */ yytestcase(yyruleno==341);
|
|
case 343: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==343);
|
|
case 536: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==536);
|
|
case 561: /* group_by_clause_opt ::= */ yytestcase(yyruleno==561);
|
|
case 581: /* order_by_clause_opt ::= */ yytestcase(yyruleno==581);
|
|
{ yymsp[1].minor.yy88 = NULL; }
|
|
break;
|
|
case 176: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
case 342: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==342);
|
|
{ yymsp[-2].minor.yy88 = yymsp[-1].minor.yy88; }
|
|
break;
|
|
case 177: /* full_table_name ::= table_name */
|
|
{ yylhsminor.yy698 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy731, NULL); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 178: /* full_table_name ::= db_name NK_DOT table_name */
|
|
{ yylhsminor.yy698 = createRealTableNode(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731, NULL); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 181: /* column_def ::= column_name type_name */
|
|
{ yylhsminor.yy698 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy731, yymsp[0].minor.yy394, NULL); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 182: /* column_def ::= column_name type_name COMMENT NK_STRING */
|
|
{ yylhsminor.yy698 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy731, yymsp[-2].minor.yy394, &yymsp[0].minor.yy0); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 183: /* type_name ::= BOOL */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_BOOL); }
|
|
break;
|
|
case 184: /* type_name ::= TINYINT */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_TINYINT); }
|
|
break;
|
|
case 185: /* type_name ::= SMALLINT */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
|
|
break;
|
|
case 186: /* type_name ::= INT */
|
|
case 187: /* type_name ::= INTEGER */ yytestcase(yyruleno==187);
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_INT); }
|
|
break;
|
|
case 188: /* type_name ::= BIGINT */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_BIGINT); }
|
|
break;
|
|
case 189: /* type_name ::= FLOAT */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_FLOAT); }
|
|
break;
|
|
case 190: /* type_name ::= DOUBLE */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
|
|
break;
|
|
case 191: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 192: /* type_name ::= TIMESTAMP */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
|
|
break;
|
|
case 193: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 194: /* type_name ::= TINYINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy394 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
|
|
break;
|
|
case 195: /* type_name ::= SMALLINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy394 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
|
|
break;
|
|
case 196: /* type_name ::= INT UNSIGNED */
|
|
{ yymsp[-1].minor.yy394 = createDataType(TSDB_DATA_TYPE_UINT); }
|
|
break;
|
|
case 197: /* type_name ::= BIGINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy394 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
|
|
break;
|
|
case 198: /* type_name ::= JSON */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_JSON); }
|
|
break;
|
|
case 199: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 200: /* type_name ::= MEDIUMBLOB */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
|
|
break;
|
|
case 201: /* type_name ::= BLOB */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_BLOB); }
|
|
break;
|
|
case 202: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 203: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 204: /* type_name ::= DECIMAL */
|
|
{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 205: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy394 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 206: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
{ yymsp[-5].minor.yy394 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 208: /* tags_def_opt ::= tags_def */
|
|
case 344: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==344);
|
|
case 463: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==463);
|
|
{ yylhsminor.yy88 = yymsp[0].minor.yy88; }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 209: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
case 345: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==345);
|
|
{ yymsp[-3].minor.yy88 = yymsp[-1].minor.yy88; }
|
|
break;
|
|
case 210: /* table_options ::= */
|
|
{ yymsp[1].minor.yy698 = createDefaultTableOptions(pCxt); }
|
|
break;
|
|
case 211: /* table_options ::= table_options COMMENT NK_STRING */
|
|
{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 212: /* table_options ::= table_options MAX_DELAY duration_list */
|
|
{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 213: /* table_options ::= table_options WATERMARK duration_list */
|
|
{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 214: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-4].minor.yy698, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy88); }
|
|
yymsp[-4].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 215: /* table_options ::= table_options TTL NK_INTEGER */
|
|
{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 216: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-4].minor.yy698, TABLE_OPTION_SMA, yymsp[-1].minor.yy88); }
|
|
yymsp[-4].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 217: /* table_options ::= table_options DELETE_MARK duration_list */
|
|
{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 218: /* alter_table_options ::= alter_table_option */
|
|
{ yylhsminor.yy698 = createAlterTableOptions(pCxt); yylhsminor.yy698 = setTableOption(pCxt, yylhsminor.yy698, yymsp[0].minor.yy23.type, &yymsp[0].minor.yy23.val); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 219: /* alter_table_options ::= alter_table_options alter_table_option */
|
|
{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-1].minor.yy698, yymsp[0].minor.yy23.type, &yymsp[0].minor.yy23.val); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 220: /* alter_table_option ::= COMMENT NK_STRING */
|
|
{ yymsp[-1].minor.yy23.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 221: /* alter_table_option ::= TTL NK_INTEGER */
|
|
{ yymsp[-1].minor.yy23.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 222: /* duration_list ::= duration_literal */
|
|
case 427: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==427);
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 223: /* duration_list ::= duration_list NK_COMMA duration_literal */
|
|
case 428: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==428);
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 226: /* rollup_func_name ::= function_name */
|
|
{ yylhsminor.yy698 = createFunctionNode(pCxt, &yymsp[0].minor.yy731, NULL); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 227: /* rollup_func_name ::= FIRST */
|
|
case 228: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==228);
|
|
case 286: /* tag_item ::= QTAGS */ yytestcase(yyruleno==286);
|
|
{ yylhsminor.yy698 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 231: /* col_name ::= column_name */
|
|
case 287: /* tag_item ::= column_name */ yytestcase(yyruleno==287);
|
|
{ yylhsminor.yy698 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy731); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 232: /* cmd ::= SHOW DNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
|
|
break;
|
|
case 233: /* cmd ::= SHOW USERS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
|
|
break;
|
|
case 234: /* cmd ::= SHOW USER PRIVILEGES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
|
|
break;
|
|
case 235: /* cmd ::= SHOW DATABASES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); }
|
|
break;
|
|
case 236: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy698, yymsp[0].minor.yy698, OP_TYPE_LIKE); }
|
|
break;
|
|
case 237: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy698, yymsp[0].minor.yy698, OP_TYPE_LIKE); }
|
|
break;
|
|
case 238: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy698, NULL, OP_TYPE_LIKE); }
|
|
break;
|
|
case 239: /* cmd ::= SHOW MNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
|
break;
|
|
case 240: /* cmd ::= SHOW QNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
|
break;
|
|
case 241: /* cmd ::= SHOW FUNCTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
|
break;
|
|
case 242: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy698, yymsp[-1].minor.yy698, OP_TYPE_EQUAL); }
|
|
break;
|
|
case 243: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy731), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731), OP_TYPE_EQUAL); }
|
|
break;
|
|
case 244: /* cmd ::= SHOW STREAMS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
|
|
break;
|
|
case 245: /* cmd ::= SHOW ACCOUNTS */
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
break;
|
|
case 246: /* cmd ::= SHOW APPS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
|
break;
|
|
case 247: /* cmd ::= SHOW CONNECTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
|
break;
|
|
case 248: /* cmd ::= SHOW LICENCES */
|
|
case 249: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==249);
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
|
|
break;
|
|
case 250: /* cmd ::= SHOW CREATE DATABASE db_name */
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 251: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 252: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 253: /* cmd ::= SHOW QUERIES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
|
break;
|
|
case 254: /* cmd ::= SHOW SCORES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
|
break;
|
|
case 255: /* cmd ::= SHOW TOPICS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
|
break;
|
|
case 256: /* cmd ::= SHOW VARIABLES */
|
|
case 257: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==257);
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
|
|
break;
|
|
case 258: /* cmd ::= SHOW LOCAL VARIABLES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
|
|
break;
|
|
case 259: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy698); }
|
|
break;
|
|
case 260: /* cmd ::= SHOW BNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
|
break;
|
|
case 261: /* cmd ::= SHOW SNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
|
break;
|
|
case 262: /* cmd ::= SHOW CLUSTER */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
|
|
break;
|
|
case 263: /* cmd ::= SHOW TRANSACTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
|
|
break;
|
|
case 264: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 265: /* cmd ::= SHOW CONSUMERS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
|
|
break;
|
|
case 266: /* cmd ::= SHOW SUBSCRIPTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
|
|
break;
|
|
case 267: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy698, yymsp[-1].minor.yy698, OP_TYPE_EQUAL); }
|
|
break;
|
|
case 268: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy731), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731), OP_TYPE_EQUAL); }
|
|
break;
|
|
case 269: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy698, yymsp[0].minor.yy698, yymsp[-3].minor.yy88); }
|
|
break;
|
|
case 270: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy731), yymsp[-4].minor.yy88); }
|
|
break;
|
|
case 271: /* cmd ::= SHOW VNODES NK_INTEGER */
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
|
|
break;
|
|
case 272: /* cmd ::= SHOW VNODES NK_STRING */
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, createValueNode(pCxt, TSDB_DATA_TYPE_VARCHAR, &yymsp[0].minor.yy0)); }
|
|
break;
|
|
case 273: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy698, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
|
break;
|
|
case 274: /* cmd ::= SHOW CLUSTER ALIVE */
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
|
break;
|
|
case 275: /* db_name_cond_opt ::= */
|
|
case 280: /* from_db_opt ::= */ yytestcase(yyruleno==280);
|
|
{ yymsp[1].minor.yy698 = createDefaultDatabaseCondValue(pCxt); }
|
|
break;
|
|
case 276: /* db_name_cond_opt ::= db_name NK_DOT */
|
|
{ yylhsminor.yy698 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy731); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 278: /* like_pattern_opt ::= LIKE NK_STRING */
|
|
{ yymsp[-1].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 279: /* table_name_cond ::= table_name */
|
|
{ yylhsminor.yy698 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 281: /* from_db_opt ::= FROM db_name */
|
|
{ yymsp[-1].minor.yy698 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 285: /* tag_item ::= TBNAME */
|
|
{ yylhsminor.yy698 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 288: /* tag_item ::= column_name column_alias */
|
|
{ yylhsminor.yy698 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy731), &yymsp[0].minor.yy731); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 289: /* tag_item ::= column_name AS column_alias */
|
|
{ yylhsminor.yy698 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy731), &yymsp[0].minor.yy731); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 290: /* cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy83, yymsp[-3].minor.yy698, yymsp[-1].minor.yy698, NULL, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 291: /* cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy83, yymsp[-5].minor.yy698, yymsp[-3].minor.yy698, yymsp[-1].minor.yy88, NULL); }
|
|
break;
|
|
case 292: /* cmd ::= DROP INDEX exists_opt full_index_name */
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy83, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 293: /* full_index_name ::= index_name */
|
|
{ yylhsminor.yy698 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy731); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 294: /* full_index_name ::= db_name NK_DOT index_name */
|
|
{ yylhsminor.yy698 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 295: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
{ yymsp[-9].minor.yy698 = createIndexOption(pCxt, yymsp[-7].minor.yy88, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), NULL, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 296: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
{ yymsp[-11].minor.yy698 = createIndexOption(pCxt, yymsp[-9].minor.yy88, releaseRawExprNode(pCxt, yymsp[-5].minor.yy698), releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), yymsp[-1].minor.yy698, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 299: /* func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
{ yylhsminor.yy698 = createFunctionNode(pCxt, &yymsp[-3].minor.yy731, yymsp[-1].minor.yy88); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 300: /* sma_func_name ::= function_name */
|
|
case 514: /* alias_opt ::= table_alias */ yytestcase(yyruleno==514);
|
|
{ yylhsminor.yy731 = yymsp[0].minor.yy731; }
|
|
yymsp[0].minor.yy731 = yylhsminor.yy731;
|
|
break;
|
|
case 305: /* sma_stream_opt ::= */
|
|
case 346: /* stream_options ::= */ yytestcase(yyruleno==346);
|
|
{ yymsp[1].minor.yy698 = createStreamOptions(pCxt); }
|
|
break;
|
|
case 306: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy698)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); yylhsminor.yy698 = yymsp[-2].minor.yy698; }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 307: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy698)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); yylhsminor.yy698 = yymsp[-2].minor.yy698; }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 308: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy698)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); yylhsminor.yy698 = yymsp[-2].minor.yy698; }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 309: /* with_meta ::= AS */
|
|
{ yymsp[0].minor.yy724 = 0; }
|
|
break;
|
|
case 310: /* with_meta ::= WITH META AS */
|
|
{ yymsp[-2].minor.yy724 = 1; }
|
|
break;
|
|
case 311: /* with_meta ::= ONLY META AS */
|
|
{ yymsp[-2].minor.yy724 = 2; }
|
|
break;
|
|
case 312: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy83, &yymsp[-2].minor.yy731, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 313: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy83, &yymsp[-3].minor.yy731, &yymsp[0].minor.yy731, yymsp[-2].minor.yy724); }
|
|
break;
|
|
case 314: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy83, &yymsp[-4].minor.yy731, yymsp[-1].minor.yy698, yymsp[-3].minor.yy724, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 315: /* cmd ::= DROP TOPIC exists_opt topic_name */
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 316: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy83, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 317: /* cmd ::= DESC full_table_name */
|
|
case 318: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==318);
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 319: /* cmd ::= RESET QUERY CACHE */
|
|
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
|
|
break;
|
|
case 320: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
case 321: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==321);
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy83, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 324: /* explain_options ::= */
|
|
{ yymsp[1].minor.yy698 = createDefaultExplainOptions(pCxt); }
|
|
break;
|
|
case 325: /* explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
{ yylhsminor.yy698 = setExplainVerbose(pCxt, yymsp[-2].minor.yy698, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 326: /* explain_options ::= explain_options RATIO NK_FLOAT */
|
|
{ yylhsminor.yy698 = setExplainRatio(pCxt, yymsp[-2].minor.yy698, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 327: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy83, yymsp[-9].minor.yy83, &yymsp[-6].minor.yy731, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy394, yymsp[-1].minor.yy724, &yymsp[0].minor.yy731, yymsp[-10].minor.yy83); }
|
|
break;
|
|
case 328: /* cmd ::= DROP FUNCTION exists_opt function_name */
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 333: /* language_opt ::= */
|
|
{ yymsp[1].minor.yy731 = nil_token; }
|
|
break;
|
|
case 334: /* language_opt ::= LANGUAGE NK_STRING */
|
|
{ yymsp[-1].minor.yy731 = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 337: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
|
|
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy83, &yymsp[-8].minor.yy731, yymsp[-5].minor.yy698, yymsp[-7].minor.yy698, yymsp[-3].minor.yy88, yymsp[-2].minor.yy698, yymsp[0].minor.yy698, yymsp[-4].minor.yy88); }
|
|
break;
|
|
case 338: /* cmd ::= DROP STREAM exists_opt stream_name */
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 339: /* cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 340: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy83, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); }
|
|
break;
|
|
case 347: /* stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
case 348: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==348);
|
|
{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-2].minor.yy698, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 349: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-3].minor.yy698, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 350: /* stream_options ::= stream_options WATERMARK duration_literal */
|
|
{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-2].minor.yy698, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 351: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-3].minor.yy698, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 352: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-2].minor.yy698, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 353: /* stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-2].minor.yy698, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 354: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-3].minor.yy698, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 356: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
case 550: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==550);
|
|
case 571: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==571);
|
|
{ yymsp[-3].minor.yy698 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy698); }
|
|
break;
|
|
case 359: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 360: /* cmd ::= KILL QUERY NK_STRING */
|
|
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 361: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 362: /* cmd ::= BALANCE VGROUP */
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
|
break;
|
|
case 363: /* cmd ::= BALANCE VGROUP LEADER */
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); }
|
|
break;
|
|
case 364: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 365: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy88); }
|
|
break;
|
|
case 366: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 367: /* dnode_list ::= DNODE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy88 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
break;
|
|
case 369: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 372: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
{ yymsp[-6].minor.yy698 = createInsertStmt(pCxt, yymsp[-4].minor.yy698, yymsp[-2].minor.yy88, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 373: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
{ yymsp[-3].minor.yy698 = createInsertStmt(pCxt, yymsp[-1].minor.yy698, NULL, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 374: /* literal ::= NK_INTEGER */
|
|
{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 375: /* literal ::= NK_FLOAT */
|
|
{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 376: /* literal ::= NK_STRING */
|
|
{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 377: /* literal ::= NK_BOOL */
|
|
{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 378: /* literal ::= TIMESTAMP NK_STRING */
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 379: /* literal ::= duration_literal */
|
|
case 389: /* signed_literal ::= signed */ yytestcase(yyruleno==389);
|
|
case 410: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==410);
|
|
case 411: /* expression ::= literal */ yytestcase(yyruleno==411);
|
|
case 412: /* expression ::= pseudo_column */ yytestcase(yyruleno==412);
|
|
case 413: /* expression ::= column_reference */ yytestcase(yyruleno==413);
|
|
case 414: /* expression ::= function_expression */ yytestcase(yyruleno==414);
|
|
case 415: /* expression ::= case_when_expression */ yytestcase(yyruleno==415);
|
|
case 446: /* function_expression ::= literal_func */ yytestcase(yyruleno==446);
|
|
case 495: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==495);
|
|
case 499: /* boolean_primary ::= predicate */ yytestcase(yyruleno==499);
|
|
case 501: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==501);
|
|
case 502: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==502);
|
|
case 505: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==505);
|
|
case 507: /* table_reference ::= table_primary */ yytestcase(yyruleno==507);
|
|
case 508: /* table_reference ::= joined_table */ yytestcase(yyruleno==508);
|
|
case 512: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==512);
|
|
case 573: /* query_simple ::= query_specification */ yytestcase(yyruleno==573);
|
|
case 574: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==574);
|
|
case 577: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==577);
|
|
case 579: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==579);
|
|
{ yylhsminor.yy698 = yymsp[0].minor.yy698; }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 380: /* literal ::= NULL */
|
|
{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 381: /* literal ::= NK_QUESTION */
|
|
{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 382: /* duration_literal ::= NK_VARIABLE */
|
|
{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 383: /* signed ::= NK_INTEGER */
|
|
{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 384: /* signed ::= NK_PLUS NK_INTEGER */
|
|
{ yymsp[-1].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 385: /* signed ::= NK_MINUS NK_INTEGER */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
|
}
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 386: /* signed ::= NK_FLOAT */
|
|
{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 387: /* signed ::= NK_PLUS NK_FLOAT */
|
|
{ yymsp[-1].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 388: /* signed ::= NK_MINUS NK_FLOAT */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
|
}
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 390: /* signed_literal ::= NK_STRING */
|
|
{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 391: /* signed_literal ::= NK_BOOL */
|
|
{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 392: /* signed_literal ::= TIMESTAMP NK_STRING */
|
|
{ yymsp[-1].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 393: /* signed_literal ::= duration_literal */
|
|
case 395: /* signed_literal ::= literal_func */ yytestcase(yyruleno==395);
|
|
case 466: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==466);
|
|
case 530: /* select_item ::= common_expression */ yytestcase(yyruleno==530);
|
|
case 540: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==540);
|
|
case 578: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==578);
|
|
case 580: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==580);
|
|
case 593: /* search_condition ::= common_expression */ yytestcase(yyruleno==593);
|
|
{ yylhsminor.yy698 = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 394: /* signed_literal ::= NULL */
|
|
{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 396: /* signed_literal ::= NK_QUESTION */
|
|
{ yylhsminor.yy698 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 416: /* expression ::= NK_LP expression NK_RP */
|
|
case 500: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==500);
|
|
case 592: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==592);
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 417: /* expression ::= NK_PLUS expr_or_subquery */
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy698));
|
|
}
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 418: /* expression ::= NK_MINUS expr_or_subquery */
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy698), NULL));
|
|
}
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 419: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 420: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 421: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 422: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 423: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 424: /* expression ::= column_reference NK_ARROW NK_STRING */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 425: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 426: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 429: /* column_reference ::= column_name */
|
|
{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy731, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy731)); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 430: /* column_reference ::= table_name NK_DOT column_name */
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731, createColumnNode(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731)); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 431: /* pseudo_column ::= ROWTS */
|
|
case 432: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==432);
|
|
case 434: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==434);
|
|
case 435: /* pseudo_column ::= QEND */ yytestcase(yyruleno==435);
|
|
case 436: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==436);
|
|
case 437: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==437);
|
|
case 438: /* pseudo_column ::= WEND */ yytestcase(yyruleno==438);
|
|
case 439: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==439);
|
|
case 440: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==440);
|
|
case 441: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==441);
|
|
case 442: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==442);
|
|
case 448: /* literal_func ::= NOW */ yytestcase(yyruleno==448);
|
|
{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 433: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy731)))); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 443: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
case 444: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==444);
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy731, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy731, yymsp[-1].minor.yy88)); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 445: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), yymsp[-1].minor.yy394)); }
|
|
yymsp[-5].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 447: /* literal_func ::= noarg_func NK_LP NK_RP */
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy731, NULL)); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 462: /* star_func_para_list ::= NK_STAR */
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 467: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
case 533: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==533);
|
|
{ yylhsminor.yy698 = createColumnNode(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 468: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy88, yymsp[-1].minor.yy698)); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 469: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), yymsp[-2].minor.yy88, yymsp[-1].minor.yy698)); }
|
|
yymsp[-4].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 472: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
{ yymsp[-3].minor.yy698 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); }
|
|
break;
|
|
case 474: /* case_when_else_opt ::= ELSE common_expression */
|
|
{ yymsp[-1].minor.yy698 = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 475: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
case 480: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==480);
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy464, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 476: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy698), releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-4].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 477: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy698), releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-5].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 478: /* predicate ::= expr_or_subquery IS NULL */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), NULL));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 479: /* predicate ::= expr_or_subquery IS NOT NULL */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), NULL));
|
|
}
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 481: /* compare_op ::= NK_LT */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_LOWER_THAN; }
|
|
break;
|
|
case 482: /* compare_op ::= NK_GT */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_GREATER_THAN; }
|
|
break;
|
|
case 483: /* compare_op ::= NK_LE */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_LOWER_EQUAL; }
|
|
break;
|
|
case 484: /* compare_op ::= NK_GE */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_GREATER_EQUAL; }
|
|
break;
|
|
case 485: /* compare_op ::= NK_NE */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_NOT_EQUAL; }
|
|
break;
|
|
case 486: /* compare_op ::= NK_EQ */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_EQUAL; }
|
|
break;
|
|
case 487: /* compare_op ::= LIKE */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_LIKE; }
|
|
break;
|
|
case 488: /* compare_op ::= NOT LIKE */
|
|
{ yymsp[-1].minor.yy464 = OP_TYPE_NOT_LIKE; }
|
|
break;
|
|
case 489: /* compare_op ::= MATCH */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_MATCH; }
|
|
break;
|
|
case 490: /* compare_op ::= NMATCH */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_NMATCH; }
|
|
break;
|
|
case 491: /* compare_op ::= CONTAINS */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_JSON_CONTAINS; }
|
|
break;
|
|
case 492: /* in_op ::= IN */
|
|
{ yymsp[0].minor.yy464 = OP_TYPE_IN; }
|
|
break;
|
|
case 493: /* in_op ::= NOT IN */
|
|
{ yymsp[-1].minor.yy464 = OP_TYPE_NOT_IN; }
|
|
break;
|
|
case 494: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy88)); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 496: /* boolean_value_expression ::= NOT boolean_primary */
|
|
{
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy698), NULL));
|
|
}
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 497: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 498: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698);
|
|
yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)));
|
|
}
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 506: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
{ yylhsminor.yy698 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy698, yymsp[0].minor.yy698, NULL); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 509: /* table_primary ::= table_name alias_opt */
|
|
{ yylhsminor.yy698 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy731, &yymsp[0].minor.yy731); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 510: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
{ yylhsminor.yy698 = createRealTableNode(pCxt, &yymsp[-3].minor.yy731, &yymsp[-1].minor.yy731, &yymsp[0].minor.yy731); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 511: /* table_primary ::= subquery alias_opt */
|
|
{ yylhsminor.yy698 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698), &yymsp[0].minor.yy731); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 513: /* alias_opt ::= */
|
|
{ yymsp[1].minor.yy731 = nil_token; }
|
|
break;
|
|
case 515: /* alias_opt ::= AS table_alias */
|
|
{ yymsp[-1].minor.yy731 = yymsp[0].minor.yy731; }
|
|
break;
|
|
case 516: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
case 517: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==517);
|
|
{ yymsp[-2].minor.yy698 = yymsp[-1].minor.yy698; }
|
|
break;
|
|
case 518: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
{ yylhsminor.yy698 = createJoinTableNode(pCxt, yymsp[-4].minor.yy24, yymsp[-5].minor.yy698, yymsp[-2].minor.yy698, yymsp[0].minor.yy698); }
|
|
yymsp[-5].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 519: /* join_type ::= */
|
|
{ yymsp[1].minor.yy24 = JOIN_TYPE_INNER; }
|
|
break;
|
|
case 520: /* join_type ::= INNER */
|
|
{ yymsp[0].minor.yy24 = JOIN_TYPE_INNER; }
|
|
break;
|
|
case 521: /* query_specification ::= SELECT hint_list set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
{
|
|
yymsp[-12].minor.yy698 = createSelectStmt(pCxt, yymsp[-10].minor.yy83, yymsp[-9].minor.yy88, yymsp[-8].minor.yy698, yymsp[-11].minor.yy88);
|
|
yymsp[-12].minor.yy698 = addWhereClause(pCxt, yymsp[-12].minor.yy698, yymsp[-7].minor.yy698);
|
|
yymsp[-12].minor.yy698 = addPartitionByClause(pCxt, yymsp[-12].minor.yy698, yymsp[-6].minor.yy88);
|
|
yymsp[-12].minor.yy698 = addWindowClauseClause(pCxt, yymsp[-12].minor.yy698, yymsp[-2].minor.yy698);
|
|
yymsp[-12].minor.yy698 = addGroupByClause(pCxt, yymsp[-12].minor.yy698, yymsp[-1].minor.yy88);
|
|
yymsp[-12].minor.yy698 = addHavingClause(pCxt, yymsp[-12].minor.yy698, yymsp[0].minor.yy698);
|
|
yymsp[-12].minor.yy698 = addRangeClause(pCxt, yymsp[-12].minor.yy698, yymsp[-5].minor.yy698);
|
|
yymsp[-12].minor.yy698 = addEveryClause(pCxt, yymsp[-12].minor.yy698, yymsp[-4].minor.yy698);
|
|
yymsp[-12].minor.yy698 = addFillClause(pCxt, yymsp[-12].minor.yy698, yymsp[-3].minor.yy698);
|
|
}
|
|
break;
|
|
case 522: /* hint_list ::= */
|
|
{ yymsp[1].minor.yy88 = createHintNodeList(pCxt, NULL); }
|
|
break;
|
|
case 523: /* hint_list ::= NK_HINT */
|
|
{ yylhsminor.yy88 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 526: /* set_quantifier_opt ::= ALL */
|
|
{ yymsp[0].minor.yy83 = false; }
|
|
break;
|
|
case 529: /* select_item ::= NK_STAR */
|
|
{ yylhsminor.yy698 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 531: /* select_item ::= common_expression column_alias */
|
|
case 541: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==541);
|
|
{ yylhsminor.yy698 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698), &yymsp[0].minor.yy731); }
|
|
yymsp[-1].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 532: /* select_item ::= common_expression AS column_alias */
|
|
case 542: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==542);
|
|
{ yylhsminor.yy698 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), &yymsp[0].minor.yy731); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 537: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
case 562: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==562);
|
|
case 582: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==582);
|
|
{ yymsp[-2].minor.yy88 = yymsp[0].minor.yy88; }
|
|
break;
|
|
case 544: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
{ yymsp[-5].minor.yy698 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); }
|
|
break;
|
|
case 545: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
{ yymsp[-3].minor.yy698 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); }
|
|
break;
|
|
case 546: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
{ yymsp[-5].minor.yy698 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), NULL, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 547: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
{ yymsp[-7].minor.yy698 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy698), releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), yymsp[-1].minor.yy698, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 548: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
{ yymsp[-6].minor.yy698 = createEventWindowNode(pCxt, yymsp[-3].minor.yy698, yymsp[0].minor.yy698); }
|
|
break;
|
|
case 552: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
{ yymsp[-3].minor.yy698 = createFillNode(pCxt, yymsp[-1].minor.yy498, NULL); }
|
|
break;
|
|
case 553: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
{ yymsp[-5].minor.yy698 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy88)); }
|
|
break;
|
|
case 554: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
{ yymsp[-5].minor.yy698 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy88)); }
|
|
break;
|
|
case 555: /* fill_mode ::= NONE */
|
|
{ yymsp[0].minor.yy498 = FILL_MODE_NONE; }
|
|
break;
|
|
case 556: /* fill_mode ::= PREV */
|
|
{ yymsp[0].minor.yy498 = FILL_MODE_PREV; }
|
|
break;
|
|
case 557: /* fill_mode ::= NULL */
|
|
{ yymsp[0].minor.yy498 = FILL_MODE_NULL; }
|
|
break;
|
|
case 558: /* fill_mode ::= NULL_F */
|
|
{ yymsp[0].minor.yy498 = FILL_MODE_NULL_F; }
|
|
break;
|
|
case 559: /* fill_mode ::= LINEAR */
|
|
{ yymsp[0].minor.yy498 = FILL_MODE_LINEAR; }
|
|
break;
|
|
case 560: /* fill_mode ::= NEXT */
|
|
{ yymsp[0].minor.yy498 = FILL_MODE_NEXT; }
|
|
break;
|
|
case 563: /* group_by_list ::= expr_or_subquery */
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 564: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 568: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
{ yymsp[-5].minor.yy698 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); }
|
|
break;
|
|
case 569: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
{ yymsp[-3].minor.yy698 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); }
|
|
break;
|
|
case 572: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
{
|
|
yylhsminor.yy698 = addOrderByClause(pCxt, yymsp[-3].minor.yy698, yymsp[-2].minor.yy88);
|
|
yylhsminor.yy698 = addSlimitClause(pCxt, yylhsminor.yy698, yymsp[-1].minor.yy698);
|
|
yylhsminor.yy698 = addLimitClause(pCxt, yylhsminor.yy698, yymsp[0].minor.yy698);
|
|
}
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 575: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
{ yylhsminor.yy698 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy698, yymsp[0].minor.yy698); }
|
|
yymsp[-3].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 576: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
{ yylhsminor.yy698 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy698, yymsp[0].minor.yy698); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 584: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
case 588: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==588);
|
|
{ yymsp[-1].minor.yy698 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 585: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
case 589: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==589);
|
|
{ yymsp[-3].minor.yy698 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 586: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
case 590: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==590);
|
|
{ yymsp[-3].minor.yy698 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
|
break;
|
|
case 591: /* subquery ::= NK_LP query_expression NK_RP */
|
|
{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy698); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 596: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
{ yylhsminor.yy698 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), yymsp[-1].minor.yy44, yymsp[0].minor.yy409); }
|
|
yymsp[-2].minor.yy698 = yylhsminor.yy698;
|
|
break;
|
|
case 597: /* ordering_specification_opt ::= */
|
|
{ yymsp[1].minor.yy44 = ORDER_ASC; }
|
|
break;
|
|
case 598: /* ordering_specification_opt ::= ASC */
|
|
{ yymsp[0].minor.yy44 = ORDER_ASC; }
|
|
break;
|
|
case 599: /* ordering_specification_opt ::= DESC */
|
|
{ yymsp[0].minor.yy44 = ORDER_DESC; }
|
|
break;
|
|
case 600: /* null_ordering_opt ::= */
|
|
{ yymsp[1].minor.yy409 = NULL_ORDER_DEFAULT; }
|
|
break;
|
|
case 601: /* null_ordering_opt ::= NULLS FIRST */
|
|
{ yymsp[-1].minor.yy409 = NULL_ORDER_FIRST; }
|
|
break;
|
|
case 602: /* null_ordering_opt ::= NULLS LAST */
|
|
{ yymsp[-1].minor.yy409 = 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
|
|
}
|