6492 lines
336 KiB
C
6492 lines
336 KiB
C
/* This file is automatically generated by Lemon from input grammar
|
|
** source file "./sql.y". */
|
|
/*
|
|
** 2000-05-29
|
|
**
|
|
** The author disclaims copyright to this source code. In place of
|
|
** a legal notice, here is a blessing:
|
|
**
|
|
** May you do good and not evil.
|
|
** May you find forgiveness for yourself and forgive others.
|
|
** May you share freely, never taking more than you give.
|
|
**
|
|
*************************************************************************
|
|
** Driver template for the LEMON parser generator.
|
|
**
|
|
** The "lemon" program processes an LALR(1) input grammar file, then uses
|
|
** this template to construct a parser. The "lemon" program inserts text
|
|
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
|
|
** interstitial "-" characters) contained in this template is changed into
|
|
** the value of the %name directive from the grammar. Otherwise, the content
|
|
** of this template is copied straight through into the generate parser
|
|
** source file.
|
|
**
|
|
** The following is the concatenation of all %include directives from the
|
|
** input grammar file:
|
|
*/
|
|
/************ 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 **********************************/
|
|
|
|
/* 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 490
|
|
#define YYACTIONTYPE unsigned short int
|
|
#define ParseTOKENTYPE SToken
|
|
typedef union {
|
|
int yyinit;
|
|
ParseTOKENTYPE yy0;
|
|
SAlterOption yy25;
|
|
SDataType yy84;
|
|
SToken yy169;
|
|
EFillMode yy214;
|
|
int8_t yy243;
|
|
int32_t yy480;
|
|
EOrder yy498;
|
|
EOperatorType yy520;
|
|
STokenPair yy637;
|
|
SNodeList* yy824;
|
|
EJoinType yy932;
|
|
int64_t yy949;
|
|
SNode* yy952;
|
|
bool yy957;
|
|
ENullOrder yy977;
|
|
} 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 803
|
|
#define YYNRULE 604
|
|
#define YYNRULE_WITH_ACTION 604
|
|
#define YYNTOKEN 339
|
|
#define YY_MAX_SHIFT 802
|
|
#define YY_MIN_SHIFTREDUCE 1185
|
|
#define YY_MAX_SHIFTREDUCE 1788
|
|
#define YY_ERROR_ACTION 1789
|
|
#define YY_ACCEPT_ACTION 1790
|
|
#define YY_NO_ACTION 1791
|
|
#define YY_MIN_REDUCE 1792
|
|
#define YY_MAX_REDUCE 2395
|
|
/************* 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 (2797)
|
|
static const YYACTIONTYPE yy_action[] = {
|
|
/* 0 */ 455, 2202, 2180, 2091, 537, 693, 1969, 538, 1828, 14,
|
|
/* 10 */ 13, 673, 48, 46, 1715, 396, 2188, 1958, 2088, 680,
|
|
/* 20 */ 403, 1585, 1560, 41, 40, 135, 2184, 47, 45, 44,
|
|
/* 30 */ 43, 42, 577, 1641, 221, 1558, 693, 1969, 540, 2220,
|
|
/* 40 */ 1835, 2163, 41, 40, 692, 350, 47, 45, 44, 43,
|
|
/* 50 */ 42, 2170, 2371, 709, 1954, 542, 135, 2180, 2180, 670,
|
|
/* 60 */ 144, 539, 1636, 582, 2186, 400, 38, 308, 19, 1587,
|
|
/* 70 */ 2091, 1960, 2189, 109, 703, 1566, 545, 670, 144, 538,
|
|
/* 80 */ 1828, 2184, 2184, 363, 181, 2089, 680, 2201, 633, 2237,
|
|
/* 90 */ 145, 2366, 112, 2203, 713, 2205, 2206, 708, 1961, 703,
|
|
/* 100 */ 799, 181, 1320, 15, 185, 2075, 2290, 397, 2372, 188,
|
|
/* 110 */ 399, 2286, 1684, 2367, 659, 166, 48, 46, 678, 2186,
|
|
/* 120 */ 2186, 371, 2074, 1971, 403, 190, 1560, 1670, 1376, 703,
|
|
/* 130 */ 703, 408, 223, 2320, 2015, 2017, 540, 1641, 1835, 1558,
|
|
/* 140 */ 1643, 1644, 1322, 1367, 738, 737, 736, 1371, 735, 1373,
|
|
/* 150 */ 1374, 734, 731, 1778, 1382, 728, 1384, 1385, 725, 722,
|
|
/* 160 */ 719, 168, 672, 186, 2298, 2299, 1636, 142, 2303, 1910,
|
|
/* 170 */ 1616, 1626, 19, 1585, 693, 1969, 1642, 1645, 169, 1566,
|
|
/* 180 */ 1804, 286, 2298, 669, 1671, 136, 668, 1586, 2366, 693,
|
|
/* 190 */ 1969, 1561, 125, 1559, 193, 124, 123, 122, 121, 120,
|
|
/* 200 */ 119, 118, 117, 116, 799, 657, 188, 15, 2202, 56,
|
|
/* 210 */ 2367, 659, 47, 45, 44, 43, 42, 1785, 710, 2016,
|
|
/* 220 */ 2017, 288, 692, 1564, 1565, 1792, 1615, 1618, 1619, 1620,
|
|
/* 230 */ 1621, 1622, 1623, 1624, 1625, 705, 701, 1634, 1635, 1637,
|
|
/* 240 */ 1638, 1639, 1640, 2, 1643, 1644, 2220, 184, 103, 134,
|
|
/* 250 */ 133, 132, 131, 130, 129, 128, 127, 126, 2170, 2009,
|
|
/* 260 */ 709, 1793, 37, 401, 1665, 1666, 1667, 1668, 1669, 1673,
|
|
/* 270 */ 1674, 1675, 1676, 1962, 1616, 1626, 1672, 554, 693, 1969,
|
|
/* 280 */ 1642, 1645, 125, 1246, 1247, 124, 123, 122, 121, 120,
|
|
/* 290 */ 119, 118, 117, 116, 2201, 1561, 2237, 1559, 453, 112,
|
|
/* 300 */ 2203, 713, 2205, 2206, 708, 51, 703, 1411, 1412, 147,
|
|
/* 310 */ 1719, 151, 2261, 2290, 2022, 2202, 1585, 399, 2286, 1790,
|
|
/* 320 */ 1784, 384, 252, 1469, 1470, 673, 251, 1564, 1565, 2020,
|
|
/* 330 */ 1615, 1618, 1619, 1620, 1621, 1622, 1623, 1624, 1625, 705,
|
|
/* 340 */ 701, 1634, 1635, 1637, 1638, 1639, 1640, 2, 12, 48,
|
|
/* 350 */ 46, 412, 411, 2220, 35, 460, 2070, 403, 1243, 1560,
|
|
/* 360 */ 1242, 154, 692, 406, 1677, 2170, 653, 709, 466, 2070,
|
|
/* 370 */ 1641, 163, 1558, 140, 1567, 1218, 41, 40, 385, 1971,
|
|
/* 380 */ 47, 45, 44, 43, 42, 581, 2020, 93, 1588, 580,
|
|
/* 390 */ 358, 1244, 418, 383, 2202, 611, 1585, 417, 1243, 1636,
|
|
/* 400 */ 1242, 2201, 202, 2237, 707, 19, 112, 2203, 713, 2205,
|
|
/* 410 */ 2206, 708, 1566, 703, 1220, 205, 1223, 1224, 185, 1743,
|
|
/* 420 */ 2290, 55, 41, 40, 399, 2286, 47, 45, 44, 43,
|
|
/* 430 */ 42, 1244, 2220, 1586, 493, 2070, 12, 799, 10, 633,
|
|
/* 440 */ 15, 2022, 2366, 500, 2170, 51, 709, 2321, 393, 66,
|
|
/* 450 */ 748, 1815, 449, 48, 46, 1646, 2020, 448, 30, 2372,
|
|
/* 460 */ 188, 403, 376, 1560, 2367, 659, 1617, 645, 644, 1741,
|
|
/* 470 */ 1742, 1744, 1745, 1746, 1641, 253, 1558, 1643, 1644, 62,
|
|
/* 480 */ 2201, 210, 2237, 573, 572, 344, 2203, 713, 2205, 2206,
|
|
/* 490 */ 708, 706, 703, 694, 2255, 90, 609, 693, 1969, 633,
|
|
/* 500 */ 2202, 2170, 2366, 1636, 212, 211, 632, 1616, 1626, 607,
|
|
/* 510 */ 710, 605, 373, 1642, 1645, 618, 1566, 454, 1755, 2372,
|
|
/* 520 */ 188, 1964, 2022, 648, 2367, 659, 665, 499, 1561, 369,
|
|
/* 530 */ 1559, 377, 1570, 375, 374, 406, 579, 2020, 2220, 108,
|
|
/* 540 */ 266, 799, 1331, 166, 49, 1531, 1532, 2202, 62, 105,
|
|
/* 550 */ 2170, 1971, 709, 1486, 1487, 1330, 2164, 710, 581, 1837,
|
|
/* 560 */ 1564, 1565, 580, 1615, 1618, 1619, 1620, 1621, 1622, 1623,
|
|
/* 570 */ 1624, 1625, 705, 701, 1634, 1635, 1637, 1638, 1639, 1640,
|
|
/* 580 */ 2, 1643, 1644, 2053, 12, 2220, 2201, 2305, 2237, 1485,
|
|
/* 590 */ 1488, 113, 2203, 713, 2205, 2206, 708, 2170, 703, 709,
|
|
/* 600 */ 2135, 658, 290, 633, 2366, 2290, 2366, 575, 574, 2289,
|
|
/* 610 */ 2286, 1616, 1626, 2302, 654, 649, 642, 1642, 1645, 1566,
|
|
/* 620 */ 509, 657, 188, 2372, 188, 2305, 2367, 659, 2367, 659,
|
|
/* 630 */ 60, 583, 1561, 2201, 1559, 2237, 290, 630, 112, 2203,
|
|
/* 640 */ 713, 2205, 2206, 708, 1814, 703, 693, 1969, 34, 254,
|
|
/* 650 */ 2386, 2301, 2290, 1318, 41, 40, 399, 2286, 47, 45,
|
|
/* 660 */ 44, 43, 42, 679, 1564, 1565, 468, 1615, 1618, 1619,
|
|
/* 670 */ 1620, 1621, 1622, 1623, 1624, 1625, 705, 701, 1634, 1635,
|
|
/* 680 */ 1637, 1638, 1639, 1640, 2, 48, 46, 693, 1969, 2202,
|
|
/* 690 */ 534, 1560, 1946, 403, 2170, 1560, 693, 1969, 532, 710,
|
|
/* 700 */ 2202, 528, 524, 1651, 1558, 290, 1641, 483, 1558, 1585,
|
|
/* 710 */ 710, 2022, 595, 594, 593, 552, 484, 2084, 398, 585,
|
|
/* 720 */ 141, 589, 739, 693, 1969, 588, 2020, 2220, 62, 409,
|
|
/* 730 */ 587, 592, 379, 378, 1944, 1636, 586, 166, 2220, 2170,
|
|
/* 740 */ 1585, 709, 478, 553, 1566, 1971, 693, 1969, 1566, 1911,
|
|
/* 750 */ 2170, 477, 709, 2022, 693, 1969, 146, 41, 40, 2261,
|
|
/* 760 */ 407, 47, 45, 44, 43, 42, 1966, 666, 2020, 799,
|
|
/* 770 */ 670, 144, 652, 799, 255, 2201, 49, 2237, 670, 144,
|
|
/* 780 */ 170, 2203, 713, 2205, 2206, 708, 2201, 703, 2237, 48,
|
|
/* 790 */ 46, 170, 2203, 713, 2205, 2206, 708, 403, 703, 1560,
|
|
/* 800 */ 2220, 41, 40, 52, 679, 47, 45, 44, 43, 42,
|
|
/* 810 */ 1641, 1335, 1558, 1643, 1644, 746, 156, 155, 743, 742,
|
|
/* 820 */ 741, 153, 634, 2331, 1334, 746, 156, 155, 743, 742,
|
|
/* 830 */ 741, 153, 591, 590, 2332, 299, 300, 693, 1969, 1636,
|
|
/* 840 */ 298, 693, 1969, 1616, 1626, 693, 1969, 758, 1813, 1642,
|
|
/* 850 */ 1645, 1871, 1566, 1754, 1956, 651, 677, 263, 2084, 1617,
|
|
/* 860 */ 1561, 676, 1559, 2334, 1561, 303, 1559, 746, 156, 155,
|
|
/* 870 */ 743, 742, 741, 153, 187, 2298, 2299, 799, 142, 2303,
|
|
/* 880 */ 15, 2202, 189, 2298, 2299, 290, 142, 2303, 1587, 511,
|
|
/* 890 */ 1617, 710, 1564, 1565, 2305, 1952, 1564, 1565, 2170, 1615,
|
|
/* 900 */ 1618, 1619, 1620, 1621, 1622, 1623, 1624, 1625, 705, 701,
|
|
/* 910 */ 1634, 1635, 1637, 1638, 1639, 1640, 2, 1643, 1644, 2220,
|
|
/* 920 */ 2300, 595, 594, 593, 693, 1969, 693, 1969, 585, 141,
|
|
/* 930 */ 589, 2170, 1812, 709, 588, 600, 44, 43, 42, 587,
|
|
/* 940 */ 592, 379, 378, 679, 690, 586, 691, 1616, 1626, 1973,
|
|
/* 950 */ 610, 41, 40, 1642, 1645, 47, 45, 44, 43, 42,
|
|
/* 960 */ 290, 693, 1969, 658, 250, 165, 2366, 2201, 1561, 2237,
|
|
/* 970 */ 1559, 437, 113, 2203, 713, 2205, 2206, 708, 2370, 703,
|
|
/* 980 */ 603, 309, 2170, 657, 188, 1712, 2290, 597, 2367, 659,
|
|
/* 990 */ 698, 2286, 207, 249, 616, 688, 259, 2084, 439, 435,
|
|
/* 1000 */ 1564, 1565, 1868, 1615, 1618, 1619, 1620, 1621, 1622, 1623,
|
|
/* 1010 */ 1624, 1625, 705, 701, 1634, 1635, 1637, 1638, 1639, 1640,
|
|
/* 1020 */ 2, 9, 354, 167, 1583, 693, 1969, 1811, 329, 770,
|
|
/* 1030 */ 768, 491, 86, 70, 507, 85, 69, 506, 704, 90,
|
|
/* 1040 */ 288, 633, 326, 73, 2366, 410, 72, 1731, 1945, 1588,
|
|
/* 1050 */ 1810, 1809, 674, 474, 1808, 508, 695, 351, 2262, 2153,
|
|
/* 1060 */ 476, 2372, 188, 1807, 1806, 1965, 2367, 659, 219, 519,
|
|
/* 1070 */ 517, 514, 776, 775, 774, 773, 415, 2170, 772, 771,
|
|
/* 1080 */ 148, 766, 765, 764, 763, 762, 761, 760, 158, 756,
|
|
/* 1090 */ 755, 754, 414, 413, 751, 750, 749, 176, 175, 633,
|
|
/* 1100 */ 2170, 2170, 2366, 1805, 2170, 237, 372, 2022, 62, 62,
|
|
/* 1110 */ 697, 1588, 2262, 2170, 2170, 748, 1223, 1224, 462, 2372,
|
|
/* 1120 */ 188, 173, 2021, 1803, 2367, 659, 1802, 166, 662, 571,
|
|
/* 1130 */ 567, 563, 559, 740, 236, 1972, 2013, 1801, 41, 40,
|
|
/* 1140 */ 283, 1800, 47, 45, 44, 43, 42, 111, 504, 1799,
|
|
/* 1150 */ 1798, 498, 497, 496, 495, 490, 489, 488, 487, 486,
|
|
/* 1160 */ 482, 481, 480, 479, 353, 471, 470, 469, 1797, 464,
|
|
/* 1170 */ 463, 370, 36, 2170, 91, 1226, 2170, 234, 41, 40,
|
|
/* 1180 */ 1569, 1584, 47, 45, 44, 43, 42, 2170, 81, 80,
|
|
/* 1190 */ 452, 2170, 2202, 200, 744, 2063, 447, 2013, 446, 2170,
|
|
/* 1200 */ 2170, 203, 710, 1568, 2328, 1796, 444, 442, 1795, 262,
|
|
/* 1210 */ 2371, 745, 2371, 2366, 2013, 2366, 322, 352, 2170, 1999,
|
|
/* 1220 */ 433, 2310, 1704, 431, 427, 423, 420, 445, 445, 759,
|
|
/* 1230 */ 2220, 2370, 1931, 2370, 458, 2367, 2369, 2367, 2368, 2202,
|
|
/* 1240 */ 584, 1704, 2170, 1711, 709, 233, 227, 2156, 54, 710,
|
|
/* 1250 */ 3, 2341, 232, 550, 74, 2170, 661, 83, 2170, 137,
|
|
/* 1260 */ 154, 154, 1316, 265, 1947, 290, 290, 242, 50, 244,
|
|
/* 1270 */ 240, 225, 243, 613, 264, 612, 432, 2220, 2201, 246,
|
|
/* 1280 */ 2237, 50, 245, 112, 2203, 713, 2205, 2206, 708, 2170,
|
|
/* 1290 */ 703, 709, 1855, 1846, 1844, 2386, 425, 2290, 270, 154,
|
|
/* 1300 */ 248, 399, 2286, 247, 84, 1787, 1788, 646, 149, 50,
|
|
/* 1310 */ 296, 71, 152, 139, 596, 598, 601, 94, 154, 700,
|
|
/* 1320 */ 1526, 1529, 14, 13, 64, 2201, 50, 2237, 1740, 50,
|
|
/* 1330 */ 112, 2203, 713, 2205, 2206, 708, 2191, 703, 1572, 717,
|
|
/* 1340 */ 152, 1739, 2386, 2202, 2290, 154, 752, 138, 399, 2286,
|
|
/* 1350 */ 152, 1277, 753, 710, 1838, 640, 412, 411, 272, 675,
|
|
/* 1360 */ 277, 1571, 1909, 2202, 1908, 2221, 1574, 663, 1296, 1483,
|
|
/* 1370 */ 301, 685, 305, 710, 1294, 2359, 386, 1641, 1361, 1567,
|
|
/* 1380 */ 416, 2220, 2079, 1829, 1678, 2324, 1627, 1834, 2010, 321,
|
|
/* 1390 */ 671, 1278, 2193, 2170, 285, 709, 5, 282, 1, 1389,
|
|
/* 1400 */ 1393, 2220, 419, 367, 794, 1400, 1636, 1398, 424, 1591,
|
|
/* 1410 */ 157, 440, 2202, 2170, 441, 709, 196, 195, 198, 1566,
|
|
/* 1420 */ 443, 1507, 710, 316, 2309, 1584, 459, 209, 1588, 2201,
|
|
/* 1430 */ 461, 2237, 2202, 465, 112, 2203, 713, 2205, 2206, 708,
|
|
/* 1440 */ 2080, 703, 710, 467, 699, 502, 2386, 472, 2290, 2201,
|
|
/* 1450 */ 2220, 2237, 399, 2286, 112, 2203, 713, 2205, 2206, 708,
|
|
/* 1460 */ 1583, 703, 2170, 485, 709, 492, 2386, 2072, 2290, 512,
|
|
/* 1470 */ 2220, 513, 399, 2286, 1662, 494, 501, 503, 510, 214,
|
|
/* 1480 */ 213, 515, 2170, 516, 709, 216, 518, 520, 1589, 4,
|
|
/* 1490 */ 535, 536, 543, 1586, 547, 544, 1590, 546, 2201, 224,
|
|
/* 1500 */ 2237, 2202, 226, 112, 2203, 713, 2205, 2206, 708, 548,
|
|
/* 1510 */ 703, 710, 1592, 549, 229, 2386, 551, 2290, 2201, 576,
|
|
/* 1520 */ 2237, 399, 2286, 171, 2203, 713, 2205, 2206, 708, 231,
|
|
/* 1530 */ 703, 88, 555, 89, 235, 1575, 114, 1570, 578, 2220,
|
|
/* 1540 */ 357, 2144, 2141, 2140, 1959, 615, 239, 1955, 617, 92,
|
|
/* 1550 */ 2202, 2170, 256, 709, 317, 150, 241, 159, 160, 1957,
|
|
/* 1560 */ 710, 621, 1953, 161, 162, 622, 620, 1578, 1580, 260,
|
|
/* 1570 */ 1514, 628, 258, 2340, 625, 647, 660, 2387, 683, 637,
|
|
/* 1580 */ 701, 1634, 1635, 1637, 1638, 1639, 1640, 2201, 2220, 2237,
|
|
/* 1590 */ 643, 2325, 112, 2203, 713, 2205, 2206, 708, 268, 703,
|
|
/* 1600 */ 2170, 627, 709, 2335, 2265, 626, 2290, 2339, 8, 271,
|
|
/* 1610 */ 399, 2286, 656, 389, 650, 635, 638, 636, 390, 1704,
|
|
/* 1620 */ 2202, 667, 281, 664, 2365, 279, 2312, 276, 1587, 143,
|
|
/* 1630 */ 710, 1709, 1707, 291, 178, 2306, 2201, 98, 2237, 1593,
|
|
/* 1640 */ 2202, 112, 2203, 713, 2205, 2206, 708, 2085, 703, 681,
|
|
/* 1650 */ 710, 318, 682, 2263, 2099, 2290, 319, 280, 2220, 399,
|
|
/* 1660 */ 2286, 2098, 174, 2097, 395, 686, 278, 687, 191, 100,
|
|
/* 1670 */ 2170, 102, 709, 289, 1970, 320, 61, 104, 2220, 2271,
|
|
/* 1680 */ 2014, 715, 284, 323, 1932, 312, 795, 796, 2389, 798,
|
|
/* 1690 */ 2170, 332, 709, 347, 359, 360, 327, 346, 336, 53,
|
|
/* 1700 */ 2162, 2161, 325, 2160, 78, 2157, 2201, 421, 2237, 2202,
|
|
/* 1710 */ 422, 112, 2203, 713, 2205, 2206, 708, 1551, 703, 710,
|
|
/* 1720 */ 1552, 194, 426, 696, 2155, 2290, 711, 428, 2237, 399,
|
|
/* 1730 */ 2286, 113, 2203, 713, 2205, 2206, 708, 429, 703, 430,
|
|
/* 1740 */ 2154, 368, 2152, 434, 2202, 2290, 2151, 2220, 436, 362,
|
|
/* 1750 */ 2286, 2150, 438, 1542, 710, 2131, 197, 2130, 199, 2170,
|
|
/* 1760 */ 79, 709, 1510, 1509, 2112, 2111, 2110, 450, 451, 2109,
|
|
/* 1770 */ 2108, 2062, 1460, 456, 2202, 2059, 457, 201, 2058, 82,
|
|
/* 1780 */ 2057, 2056, 2220, 2061, 710, 2060, 204, 387, 2055, 2054,
|
|
/* 1790 */ 2052, 2051, 2050, 206, 2170, 2201, 709, 2237, 473, 2049,
|
|
/* 1800 */ 113, 2203, 713, 2205, 2206, 708, 475, 703, 2065, 2048,
|
|
/* 1810 */ 2047, 2202, 2220, 2046, 2290, 2045, 2044, 388, 2043, 2287,
|
|
/* 1820 */ 2042, 710, 2041, 2040, 2170, 2039, 709, 2038, 2037, 2036,
|
|
/* 1830 */ 2201, 2035, 2237, 2034, 208, 345, 2203, 713, 2205, 2206,
|
|
/* 1840 */ 708, 2202, 703, 2033, 87, 2032, 2031, 2030, 2064, 2220,
|
|
/* 1850 */ 2029, 710, 2028, 2027, 1462, 2026, 2025, 505, 2024, 2023,
|
|
/* 1860 */ 2201, 2170, 2237, 709, 1332, 345, 2203, 713, 2205, 2206,
|
|
/* 1870 */ 708, 1336, 703, 2202, 355, 1874, 215, 1873, 356, 2220,
|
|
/* 1880 */ 1872, 217, 1870, 710, 1867, 522, 1328, 1866, 526, 521,
|
|
/* 1890 */ 1859, 2170, 525, 709, 1848, 529, 218, 2201, 1824, 2237,
|
|
/* 1900 */ 533, 523, 338, 2203, 713, 2205, 2206, 708, 527, 703,
|
|
/* 1910 */ 2202, 2220, 530, 531, 220, 76, 394, 182, 2190, 1225,
|
|
/* 1920 */ 707, 1823, 77, 2170, 2129, 709, 183, 2201, 541, 2237,
|
|
/* 1930 */ 2119, 222, 171, 2203, 713, 2205, 2206, 708, 2107, 703,
|
|
/* 1940 */ 2202, 228, 230, 2106, 2083, 1948, 1869, 655, 2220, 1865,
|
|
/* 1950 */ 710, 556, 557, 558, 1270, 1863, 561, 560, 562, 2201,
|
|
/* 1960 */ 2170, 2237, 709, 619, 345, 2203, 713, 2205, 2206, 708,
|
|
/* 1970 */ 1861, 703, 564, 566, 565, 1858, 569, 568, 2220, 570,
|
|
/* 1980 */ 1843, 802, 1841, 402, 1842, 1840, 2388, 2202, 1820, 1950,
|
|
/* 1990 */ 2170, 1405, 709, 1404, 1949, 315, 2201, 710, 2237, 238,
|
|
/* 2000 */ 63, 344, 2203, 713, 2205, 2206, 708, 1319, 703, 1317,
|
|
/* 2010 */ 2256, 180, 1315, 2202, 1314, 1306, 1313, 767, 1312, 792,
|
|
/* 2020 */ 788, 784, 780, 710, 313, 2220, 2201, 1311, 2237, 1856,
|
|
/* 2030 */ 404, 345, 2203, 713, 2205, 2206, 708, 2170, 703, 709,
|
|
/* 2040 */ 769, 1308, 1307, 1305, 380, 1847, 381, 1845, 599, 382,
|
|
/* 2050 */ 602, 2220, 1819, 604, 1818, 606, 1817, 608, 115, 2128,
|
|
/* 2060 */ 1536, 1538, 1540, 2170, 110, 709, 29, 306, 1535, 57,
|
|
/* 2070 */ 67, 1516, 1518, 2201, 2202, 2237, 1520, 2118, 345, 2203,
|
|
/* 2080 */ 713, 2205, 2206, 708, 710, 703, 164, 2202, 623, 624,
|
|
/* 2090 */ 2105, 2104, 261, 629, 31, 1495, 2371, 710, 1494, 614,
|
|
/* 2100 */ 689, 2237, 20, 17, 340, 2203, 713, 2205, 2206, 708,
|
|
/* 2110 */ 631, 703, 2220, 1757, 267, 6, 7, 639, 641, 21,
|
|
/* 2120 */ 22, 269, 274, 33, 2170, 2220, 709, 1738, 275, 2191,
|
|
/* 2130 */ 65, 172, 23, 273, 1772, 293, 1730, 2170, 2202, 709,
|
|
/* 2140 */ 32, 24, 292, 95, 1771, 1777, 1778, 391, 710, 1776,
|
|
/* 2150 */ 1775, 18, 392, 1701, 2202, 1700, 2103, 287, 58, 2082,
|
|
/* 2160 */ 2201, 257, 2237, 59, 710, 330, 2203, 713, 2205, 2206,
|
|
/* 2170 */ 708, 177, 703, 2201, 96, 2237, 2220, 97, 328, 2203,
|
|
/* 2180 */ 713, 2205, 2206, 708, 294, 703, 25, 297, 2170, 295,
|
|
/* 2190 */ 709, 1736, 2220, 2081, 99, 302, 684, 68, 101, 105,
|
|
/* 2200 */ 307, 26, 11, 2202, 2170, 1653, 709, 304, 1652, 13,
|
|
/* 2210 */ 1576, 2240, 179, 710, 1608, 1631, 702, 192, 1663, 714,
|
|
/* 2220 */ 1629, 39, 716, 16, 2201, 1628, 2237, 1600, 27, 331,
|
|
/* 2230 */ 2203, 713, 2205, 2206, 708, 712, 703, 28, 405, 1390,
|
|
/* 2240 */ 2201, 2220, 2237, 718, 720, 337, 2203, 713, 2205, 2206,
|
|
/* 2250 */ 708, 1387, 703, 2170, 2202, 709, 1386, 721, 723, 726,
|
|
/* 2260 */ 729, 724, 732, 727, 710, 1383, 1377, 730, 1381, 733,
|
|
/* 2270 */ 2202, 1380, 1375, 1379, 1378, 106, 310, 107, 1399, 75,
|
|
/* 2280 */ 710, 1395, 1268, 2202, 747, 1300, 1299, 1298, 1297, 2201,
|
|
/* 2290 */ 1295, 2237, 2220, 710, 341, 2203, 713, 2205, 2206, 708,
|
|
/* 2300 */ 1293, 703, 1292, 2202, 2170, 1291, 709, 757, 2220, 1326,
|
|
/* 2310 */ 311, 1289, 1288, 710, 1287, 1286, 1323, 1285, 1284, 1283,
|
|
/* 2320 */ 2170, 2220, 709, 1321, 1280, 1279, 1276, 1275, 1274, 1864,
|
|
/* 2330 */ 1273, 777, 1862, 2170, 778, 709, 779, 781, 783, 1860,
|
|
/* 2340 */ 2201, 2220, 2237, 787, 785, 333, 2203, 713, 2205, 2206,
|
|
/* 2350 */ 708, 1857, 703, 2170, 789, 709, 2201, 782, 2237, 786,
|
|
/* 2360 */ 790, 342, 2203, 713, 2205, 2206, 708, 791, 703, 2201,
|
|
/* 2370 */ 1839, 2237, 793, 2202, 334, 2203, 713, 2205, 2206, 708,
|
|
/* 2380 */ 1215, 703, 1816, 710, 314, 797, 1791, 1562, 324, 2201,
|
|
/* 2390 */ 800, 2237, 801, 1791, 343, 2203, 713, 2205, 2206, 708,
|
|
/* 2400 */ 1791, 703, 1791, 1791, 1791, 1791, 2202, 1791, 1791, 1791,
|
|
/* 2410 */ 1791, 2220, 1791, 1791, 1791, 1791, 710, 1791, 1791, 1791,
|
|
/* 2420 */ 1791, 1791, 2202, 2170, 1791, 709, 1791, 1791, 1791, 1791,
|
|
/* 2430 */ 1791, 1791, 710, 1791, 1791, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2440 */ 1791, 1791, 1791, 2202, 2220, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2450 */ 1791, 1791, 1791, 710, 1791, 1791, 2170, 1791, 709, 2201,
|
|
/* 2460 */ 2220, 2237, 1791, 1791, 335, 2203, 713, 2205, 2206, 708,
|
|
/* 2470 */ 1791, 703, 2170, 1791, 709, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2480 */ 1791, 2220, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2490 */ 1791, 1791, 2201, 2170, 2237, 709, 1791, 348, 2203, 713,
|
|
/* 2500 */ 2205, 2206, 708, 1791, 703, 1791, 1791, 1791, 2201, 2202,
|
|
/* 2510 */ 2237, 1791, 1791, 349, 2203, 713, 2205, 2206, 708, 710,
|
|
/* 2520 */ 703, 1791, 2202, 1791, 1791, 1791, 1791, 1791, 1791, 2201,
|
|
/* 2530 */ 1791, 2237, 710, 2202, 2214, 2203, 713, 2205, 2206, 708,
|
|
/* 2540 */ 1791, 703, 1791, 710, 1791, 1791, 2202, 2220, 1791, 1791,
|
|
/* 2550 */ 1791, 1791, 1791, 1791, 1791, 1791, 710, 1791, 1791, 2170,
|
|
/* 2560 */ 2220, 709, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2570 */ 1791, 2220, 2170, 1791, 709, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2580 */ 1791, 1791, 1791, 2170, 2220, 709, 1791, 1791, 1791, 1791,
|
|
/* 2590 */ 1791, 1791, 1791, 1791, 1791, 2201, 2170, 2237, 709, 1791,
|
|
/* 2600 */ 2213, 2203, 713, 2205, 2206, 708, 1791, 703, 2201, 1791,
|
|
/* 2610 */ 2237, 1791, 1791, 2212, 2203, 713, 2205, 2206, 708, 2201,
|
|
/* 2620 */ 703, 2237, 1791, 2202, 364, 2203, 713, 2205, 2206, 708,
|
|
/* 2630 */ 1791, 703, 2201, 710, 2237, 1791, 2202, 365, 2203, 713,
|
|
/* 2640 */ 2205, 2206, 708, 1791, 703, 1791, 710, 2202, 1791, 1791,
|
|
/* 2650 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 710, 1791, 1791,
|
|
/* 2660 */ 1791, 2220, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2670 */ 1791, 1791, 1791, 2170, 2220, 709, 1791, 1791, 1791, 1791,
|
|
/* 2680 */ 1791, 1791, 1791, 1791, 1791, 2220, 2170, 1791, 709, 1791,
|
|
/* 2690 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 2170, 2202, 709,
|
|
/* 2700 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 710, 2201,
|
|
/* 2710 */ 1791, 2237, 1791, 1791, 361, 2203, 713, 2205, 2206, 708,
|
|
/* 2720 */ 1791, 703, 2201, 1791, 2237, 1791, 1791, 366, 2203, 713,
|
|
/* 2730 */ 2205, 2206, 708, 711, 703, 2237, 2220, 1791, 340, 2203,
|
|
/* 2740 */ 713, 2205, 2206, 708, 1791, 703, 1791, 1791, 2170, 1791,
|
|
/* 2750 */ 709, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2760 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2770 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791,
|
|
/* 2780 */ 1791, 1791, 1791, 1791, 2201, 1791, 2237, 1791, 1791, 339,
|
|
/* 2790 */ 2203, 713, 2205, 2206, 708, 1791, 703,
|
|
};
|
|
static const YYCODETYPE yy_lookahead[] = {
|
|
/* 0 */ 351, 342, 368, 394, 346, 351, 352, 349, 350, 1,
|
|
/* 10 */ 2, 352, 12, 13, 14, 406, 382, 381, 409, 410,
|
|
/* 20 */ 20, 20, 22, 8, 9, 371, 392, 12, 13, 14,
|
|
/* 30 */ 15, 16, 378, 33, 347, 35, 351, 352, 351, 380,
|
|
/* 40 */ 353, 412, 8, 9, 20, 396, 12, 13, 14, 15,
|
|
/* 50 */ 16, 392, 3, 394, 381, 14, 371, 368, 368, 351,
|
|
/* 60 */ 352, 20, 62, 378, 430, 431, 448, 449, 68, 20,
|
|
/* 70 */ 394, 382, 382, 358, 440, 75, 346, 351, 352, 349,
|
|
/* 80 */ 350, 392, 392, 68, 380, 409, 410, 428, 459, 430,
|
|
/* 90 */ 375, 462, 433, 434, 435, 436, 437, 438, 383, 440,
|
|
/* 100 */ 100, 380, 35, 103, 445, 401, 447, 372, 479, 480,
|
|
/* 110 */ 451, 452, 104, 484, 485, 380, 12, 13, 20, 430,
|
|
/* 120 */ 430, 400, 401, 388, 20, 466, 22, 112, 100, 440,
|
|
/* 130 */ 440, 390, 347, 474, 393, 394, 351, 33, 353, 35,
|
|
/* 140 */ 140, 141, 75, 115, 116, 117, 118, 119, 120, 121,
|
|
/* 150 */ 122, 123, 124, 104, 126, 127, 128, 129, 130, 131,
|
|
/* 160 */ 132, 361, 454, 455, 456, 457, 62, 459, 460, 369,
|
|
/* 170 */ 170, 171, 68, 20, 351, 352, 176, 177, 341, 75,
|
|
/* 180 */ 343, 455, 456, 457, 169, 459, 460, 20, 462, 351,
|
|
/* 190 */ 352, 191, 21, 193, 371, 24, 25, 26, 27, 28,
|
|
/* 200 */ 29, 30, 31, 32, 100, 479, 480, 103, 342, 371,
|
|
/* 210 */ 484, 485, 12, 13, 14, 15, 16, 183, 352, 393,
|
|
/* 220 */ 394, 172, 20, 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, 380, 379, 358, 24,
|
|
/* 250 */ 25, 26, 27, 28, 29, 30, 31, 32, 392, 391,
|
|
/* 260 */ 394, 0, 247, 248, 249, 250, 251, 252, 253, 254,
|
|
/* 270 */ 255, 256, 257, 383, 170, 171, 169, 67, 351, 352,
|
|
/* 280 */ 176, 177, 21, 54, 55, 24, 25, 26, 27, 28,
|
|
/* 290 */ 29, 30, 31, 32, 428, 191, 430, 193, 371, 433,
|
|
/* 300 */ 434, 435, 436, 437, 438, 103, 440, 140, 141, 443,
|
|
/* 310 */ 14, 445, 446, 447, 380, 342, 20, 451, 452, 339,
|
|
/* 320 */ 286, 387, 135, 170, 171, 352, 139, 223, 224, 395,
|
|
/* 330 */ 226, 227, 228, 229, 230, 231, 232, 233, 234, 235,
|
|
/* 340 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 12,
|
|
/* 350 */ 13, 12, 13, 380, 247, 351, 352, 20, 20, 22,
|
|
/* 360 */ 22, 44, 20, 372, 257, 392, 20, 394, 351, 352,
|
|
/* 370 */ 33, 380, 35, 35, 35, 4, 8, 9, 387, 388,
|
|
/* 380 */ 12, 13, 14, 15, 16, 133, 395, 200, 20, 137,
|
|
/* 390 */ 203, 53, 412, 206, 342, 208, 20, 417, 20, 62,
|
|
/* 400 */ 22, 428, 398, 430, 352, 68, 433, 434, 435, 436,
|
|
/* 410 */ 437, 438, 75, 440, 43, 398, 45, 46, 445, 223,
|
|
/* 420 */ 447, 104, 8, 9, 451, 452, 12, 13, 14, 15,
|
|
/* 430 */ 16, 53, 380, 20, 351, 352, 244, 100, 246, 459,
|
|
/* 440 */ 103, 380, 462, 84, 392, 103, 394, 474, 387, 4,
|
|
/* 450 */ 67, 342, 412, 12, 13, 14, 395, 417, 44, 479,
|
|
/* 460 */ 480, 20, 37, 22, 484, 485, 170, 271, 272, 273,
|
|
/* 470 */ 274, 275, 276, 277, 33, 134, 35, 140, 141, 103,
|
|
/* 480 */ 428, 398, 430, 356, 357, 433, 434, 435, 436, 437,
|
|
/* 490 */ 438, 439, 440, 441, 442, 360, 21, 351, 352, 459,
|
|
/* 500 */ 342, 392, 462, 62, 145, 146, 48, 170, 171, 34,
|
|
/* 510 */ 352, 36, 377, 176, 177, 114, 75, 371, 104, 479,
|
|
/* 520 */ 480, 386, 380, 175, 484, 485, 44, 168, 191, 387,
|
|
/* 530 */ 193, 106, 193, 108, 109, 372, 111, 395, 380, 103,
|
|
/* 540 */ 172, 100, 22, 380, 103, 204, 205, 342, 103, 113,
|
|
/* 550 */ 392, 388, 394, 140, 141, 35, 412, 352, 133, 354,
|
|
/* 560 */ 223, 224, 137, 226, 227, 228, 229, 230, 231, 232,
|
|
/* 570 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
/* 580 */ 243, 140, 141, 0, 244, 380, 428, 432, 430, 176,
|
|
/* 590 */ 177, 433, 434, 435, 436, 437, 438, 392, 440, 394,
|
|
/* 600 */ 376, 459, 260, 459, 462, 447, 462, 356, 357, 451,
|
|
/* 610 */ 452, 170, 171, 458, 266, 267, 268, 176, 177, 75,
|
|
/* 620 */ 100, 479, 480, 479, 480, 432, 484, 485, 484, 485,
|
|
/* 630 */ 172, 13, 191, 428, 193, 430, 260, 179, 433, 434,
|
|
/* 640 */ 435, 436, 437, 438, 342, 440, 351, 352, 2, 425,
|
|
/* 650 */ 445, 458, 447, 35, 8, 9, 451, 452, 12, 13,
|
|
/* 660 */ 14, 15, 16, 351, 223, 224, 371, 226, 227, 228,
|
|
/* 670 */ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238,
|
|
/* 680 */ 239, 240, 241, 242, 243, 12, 13, 351, 352, 342,
|
|
/* 690 */ 49, 22, 0, 20, 392, 22, 351, 352, 57, 352,
|
|
/* 700 */ 342, 60, 61, 14, 35, 260, 33, 371, 35, 20,
|
|
/* 710 */ 352, 380, 70, 71, 72, 403, 371, 405, 387, 77,
|
|
/* 720 */ 78, 79, 114, 351, 352, 83, 395, 380, 103, 372,
|
|
/* 730 */ 88, 89, 90, 91, 0, 62, 94, 380, 380, 392,
|
|
/* 740 */ 20, 394, 159, 371, 75, 388, 351, 352, 75, 369,
|
|
/* 750 */ 392, 168, 394, 380, 351, 352, 443, 8, 9, 446,
|
|
/* 760 */ 387, 12, 13, 14, 15, 16, 371, 285, 395, 100,
|
|
/* 770 */ 351, 352, 352, 100, 371, 428, 103, 430, 351, 352,
|
|
/* 780 */ 433, 434, 435, 436, 437, 438, 428, 440, 430, 12,
|
|
/* 790 */ 13, 433, 434, 435, 436, 437, 438, 20, 440, 22,
|
|
/* 800 */ 380, 8, 9, 103, 351, 12, 13, 14, 15, 16,
|
|
/* 810 */ 33, 22, 35, 140, 141, 133, 134, 135, 136, 137,
|
|
/* 820 */ 138, 139, 475, 476, 35, 133, 134, 135, 136, 137,
|
|
/* 830 */ 138, 139, 365, 366, 476, 134, 135, 351, 352, 62,
|
|
/* 840 */ 139, 351, 352, 170, 171, 351, 352, 75, 342, 176,
|
|
/* 850 */ 177, 0, 75, 104, 381, 435, 403, 371, 405, 170,
|
|
/* 860 */ 191, 371, 193, 402, 191, 371, 193, 133, 134, 135,
|
|
/* 870 */ 136, 137, 138, 139, 455, 456, 457, 100, 459, 460,
|
|
/* 880 */ 103, 342, 455, 456, 457, 260, 459, 460, 20, 100,
|
|
/* 890 */ 170, 352, 223, 224, 432, 381, 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, 380,
|
|
/* 920 */ 458, 70, 71, 72, 351, 352, 351, 352, 77, 78,
|
|
/* 930 */ 79, 392, 342, 394, 83, 4, 14, 15, 16, 88,
|
|
/* 940 */ 89, 90, 91, 351, 371, 94, 371, 170, 171, 381,
|
|
/* 950 */ 19, 8, 9, 176, 177, 12, 13, 14, 15, 16,
|
|
/* 960 */ 260, 351, 352, 459, 33, 172, 462, 428, 191, 430,
|
|
/* 970 */ 193, 186, 433, 434, 435, 436, 437, 438, 3, 440,
|
|
/* 980 */ 49, 371, 392, 479, 480, 4, 447, 56, 484, 485,
|
|
/* 990 */ 451, 452, 62, 62, 412, 403, 381, 405, 213, 214,
|
|
/* 1000 */ 223, 224, 0, 226, 227, 228, 229, 230, 231, 232,
|
|
/* 1010 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
/* 1020 */ 243, 39, 18, 18, 20, 351, 352, 342, 23, 365,
|
|
/* 1030 */ 366, 27, 102, 102, 30, 105, 105, 33, 381, 360,
|
|
/* 1040 */ 172, 459, 37, 38, 462, 371, 41, 104, 0, 20,
|
|
/* 1050 */ 342, 342, 412, 49, 342, 51, 444, 52, 446, 0,
|
|
/* 1060 */ 56, 479, 480, 342, 342, 386, 484, 485, 63, 64,
|
|
/* 1070 */ 65, 66, 70, 71, 72, 73, 74, 392, 76, 77,
|
|
/* 1080 */ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
|
|
/* 1090 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 459,
|
|
/* 1100 */ 392, 392, 462, 343, 392, 33, 102, 380, 103, 103,
|
|
/* 1110 */ 444, 20, 446, 392, 392, 67, 45, 46, 114, 479,
|
|
/* 1120 */ 480, 49, 395, 342, 484, 485, 342, 380, 44, 57,
|
|
/* 1130 */ 58, 59, 60, 389, 62, 388, 392, 342, 8, 9,
|
|
/* 1140 */ 488, 342, 12, 13, 14, 15, 16, 142, 144, 342,
|
|
/* 1150 */ 342, 147, 148, 149, 150, 151, 152, 153, 154, 155,
|
|
/* 1160 */ 156, 157, 158, 159, 160, 161, 162, 163, 342, 165,
|
|
/* 1170 */ 166, 167, 2, 392, 102, 14, 392, 105, 8, 9,
|
|
/* 1180 */ 35, 20, 12, 13, 14, 15, 16, 392, 183, 184,
|
|
/* 1190 */ 185, 392, 342, 188, 389, 0, 190, 392, 192, 392,
|
|
/* 1200 */ 392, 172, 352, 35, 354, 342, 201, 202, 342, 418,
|
|
/* 1210 */ 459, 389, 459, 462, 392, 462, 373, 212, 392, 376,
|
|
/* 1220 */ 215, 258, 259, 218, 219, 220, 221, 222, 222, 367,
|
|
/* 1230 */ 380, 480, 370, 480, 39, 484, 485, 484, 485, 342,
|
|
/* 1240 */ 13, 259, 392, 262, 394, 173, 174, 0, 42, 352,
|
|
/* 1250 */ 44, 354, 180, 181, 114, 392, 281, 42, 392, 44,
|
|
/* 1260 */ 44, 44, 35, 172, 0, 260, 260, 107, 44, 107,
|
|
/* 1270 */ 110, 199, 110, 207, 62, 209, 217, 380, 428, 107,
|
|
/* 1280 */ 430, 44, 110, 433, 434, 435, 436, 437, 438, 392,
|
|
/* 1290 */ 440, 394, 0, 0, 0, 445, 49, 447, 44, 44,
|
|
/* 1300 */ 107, 451, 452, 110, 164, 140, 141, 477, 44, 44,
|
|
/* 1310 */ 44, 44, 44, 355, 22, 22, 22, 105, 44, 68,
|
|
/* 1320 */ 104, 104, 1, 2, 44, 428, 44, 430, 104, 44,
|
|
/* 1330 */ 433, 434, 435, 436, 437, 438, 47, 440, 193, 44,
|
|
/* 1340 */ 44, 104, 445, 342, 447, 44, 13, 44, 451, 452,
|
|
/* 1350 */ 44, 35, 13, 352, 0, 354, 12, 13, 104, 104,
|
|
/* 1360 */ 471, 193, 368, 342, 368, 380, 22, 283, 35, 104,
|
|
/* 1370 */ 104, 104, 104, 352, 35, 354, 411, 33, 104, 35,
|
|
/* 1380 */ 355, 380, 402, 350, 104, 402, 104, 352, 391, 104,
|
|
/* 1390 */ 461, 75, 103, 392, 481, 394, 263, 453, 465, 104,
|
|
/* 1400 */ 104, 380, 413, 429, 50, 104, 62, 104, 49, 20,
|
|
/* 1410 */ 104, 206, 342, 392, 422, 394, 360, 427, 360, 75,
|
|
/* 1420 */ 422, 189, 352, 415, 354, 20, 352, 42, 20, 428,
|
|
/* 1430 */ 399, 430, 342, 352, 433, 434, 435, 436, 437, 438,
|
|
/* 1440 */ 402, 440, 352, 399, 100, 169, 445, 397, 447, 428,
|
|
/* 1450 */ 380, 430, 451, 452, 433, 434, 435, 436, 437, 438,
|
|
/* 1460 */ 20, 440, 392, 351, 394, 352, 445, 351, 447, 101,
|
|
/* 1470 */ 380, 364, 451, 452, 223, 399, 397, 397, 99, 351,
|
|
/* 1480 */ 363, 98, 392, 362, 394, 351, 351, 351, 20, 48,
|
|
/* 1490 */ 344, 348, 344, 20, 394, 348, 20, 422, 428, 360,
|
|
/* 1500 */ 430, 342, 360, 433, 434, 435, 436, 437, 438, 353,
|
|
/* 1510 */ 440, 352, 20, 414, 360, 445, 353, 447, 428, 344,
|
|
/* 1520 */ 430, 451, 452, 433, 434, 435, 436, 437, 438, 360,
|
|
/* 1530 */ 440, 360, 351, 360, 360, 191, 351, 193, 380, 380,
|
|
/* 1540 */ 344, 392, 392, 392, 380, 210, 380, 380, 426, 103,
|
|
/* 1550 */ 342, 392, 358, 394, 422, 424, 380, 380, 380, 380,
|
|
/* 1560 */ 352, 197, 380, 380, 380, 421, 196, 223, 224, 358,
|
|
/* 1570 */ 195, 351, 420, 470, 394, 270, 486, 487, 269, 392,
|
|
/* 1580 */ 236, 237, 238, 239, 240, 241, 242, 428, 380, 430,
|
|
/* 1590 */ 392, 402, 433, 434, 435, 436, 437, 438, 407, 440,
|
|
/* 1600 */ 392, 413, 394, 402, 445, 419, 447, 470, 278, 407,
|
|
/* 1610 */ 451, 452, 182, 392, 392, 264, 280, 279, 287, 259,
|
|
/* 1620 */ 342, 284, 413, 282, 483, 468, 473, 472, 20, 352,
|
|
/* 1630 */ 352, 114, 261, 358, 353, 432, 428, 358, 430, 20,
|
|
/* 1640 */ 342, 433, 434, 435, 436, 437, 438, 405, 440, 392,
|
|
/* 1650 */ 352, 407, 392, 445, 392, 447, 407, 467, 380, 451,
|
|
/* 1660 */ 452, 392, 470, 392, 392, 174, 469, 404, 464, 358,
|
|
/* 1670 */ 392, 358, 394, 463, 352, 376, 103, 103, 380, 450,
|
|
/* 1680 */ 392, 384, 482, 351, 370, 358, 36, 345, 489, 344,
|
|
/* 1690 */ 392, 374, 394, 423, 408, 408, 340, 374, 374, 416,
|
|
/* 1700 */ 0, 0, 359, 0, 42, 0, 428, 35, 430, 342,
|
|
/* 1710 */ 216, 433, 434, 435, 436, 437, 438, 35, 440, 352,
|
|
/* 1720 */ 35, 35, 216, 445, 0, 447, 428, 35, 430, 451,
|
|
/* 1730 */ 452, 433, 434, 435, 436, 437, 438, 35, 440, 216,
|
|
/* 1740 */ 0, 216, 0, 35, 342, 447, 0, 380, 22, 451,
|
|
/* 1750 */ 452, 0, 35, 211, 352, 0, 199, 0, 199, 392,
|
|
/* 1760 */ 200, 394, 193, 191, 0, 0, 0, 187, 186, 0,
|
|
/* 1770 */ 0, 0, 47, 35, 342, 0, 49, 47, 0, 42,
|
|
/* 1780 */ 0, 0, 380, 0, 352, 0, 47, 385, 0, 0,
|
|
/* 1790 */ 0, 0, 0, 159, 392, 428, 394, 430, 35, 0,
|
|
/* 1800 */ 433, 434, 435, 436, 437, 438, 159, 440, 0, 0,
|
|
/* 1810 */ 0, 342, 380, 0, 447, 0, 0, 385, 0, 452,
|
|
/* 1820 */ 0, 352, 0, 0, 392, 0, 394, 0, 0, 0,
|
|
/* 1830 */ 428, 0, 430, 0, 47, 433, 434, 435, 436, 437,
|
|
/* 1840 */ 438, 342, 440, 0, 42, 0, 0, 0, 0, 380,
|
|
/* 1850 */ 0, 352, 0, 0, 22, 0, 0, 143, 0, 0,
|
|
/* 1860 */ 428, 392, 430, 394, 22, 433, 434, 435, 436, 437,
|
|
/* 1870 */ 438, 22, 440, 342, 48, 0, 62, 0, 48, 380,
|
|
/* 1880 */ 0, 62, 0, 352, 0, 49, 35, 0, 49, 35,
|
|
/* 1890 */ 0, 392, 35, 394, 0, 35, 62, 428, 0, 430,
|
|
/* 1900 */ 35, 39, 433, 434, 435, 436, 437, 438, 39, 440,
|
|
/* 1910 */ 342, 380, 49, 39, 42, 39, 385, 44, 47, 14,
|
|
/* 1920 */ 352, 0, 39, 392, 0, 394, 47, 428, 47, 430,
|
|
/* 1930 */ 0, 40, 433, 434, 435, 436, 437, 438, 0, 440,
|
|
/* 1940 */ 342, 39, 182, 0, 0, 0, 0, 478, 380, 0,
|
|
/* 1950 */ 352, 35, 49, 39, 69, 0, 49, 35, 39, 428,
|
|
/* 1960 */ 392, 430, 394, 1, 433, 434, 435, 436, 437, 438,
|
|
/* 1970 */ 0, 440, 35, 39, 49, 0, 49, 35, 380, 39,
|
|
/* 1980 */ 0, 19, 0, 385, 0, 0, 487, 342, 0, 0,
|
|
/* 1990 */ 392, 35, 394, 22, 0, 33, 428, 352, 430, 110,
|
|
/* 2000 */ 112, 433, 434, 435, 436, 437, 438, 35, 440, 35,
|
|
/* 2010 */ 442, 49, 35, 342, 35, 22, 35, 44, 35, 57,
|
|
/* 2020 */ 58, 59, 60, 352, 62, 380, 428, 35, 430, 0,
|
|
/* 2030 */ 385, 433, 434, 435, 436, 437, 438, 392, 440, 394,
|
|
/* 2040 */ 44, 35, 35, 35, 22, 0, 22, 0, 51, 22,
|
|
/* 2050 */ 35, 380, 0, 35, 0, 35, 0, 22, 20, 0,
|
|
/* 2060 */ 35, 35, 104, 392, 102, 394, 103, 105, 35, 172,
|
|
/* 2070 */ 103, 35, 22, 428, 342, 430, 198, 0, 433, 434,
|
|
/* 2080 */ 435, 436, 437, 438, 352, 440, 194, 342, 22, 172,
|
|
/* 2090 */ 0, 0, 174, 178, 103, 172, 3, 352, 172, 428,
|
|
/* 2100 */ 138, 430, 44, 265, 433, 434, 435, 436, 437, 438,
|
|
/* 2110 */ 178, 440, 380, 104, 103, 48, 48, 101, 99, 44,
|
|
/* 2120 */ 44, 104, 44, 44, 392, 380, 394, 104, 47, 47,
|
|
/* 2130 */ 3, 103, 265, 103, 35, 173, 104, 392, 342, 394,
|
|
/* 2140 */ 103, 44, 180, 103, 35, 104, 104, 35, 352, 35,
|
|
/* 2150 */ 35, 265, 35, 104, 342, 104, 0, 47, 258, 0,
|
|
/* 2160 */ 428, 199, 430, 44, 352, 433, 434, 435, 436, 437,
|
|
/* 2170 */ 438, 47, 440, 428, 103, 430, 380, 39, 433, 434,
|
|
/* 2180 */ 435, 436, 437, 438, 47, 440, 103, 103, 392, 104,
|
|
/* 2190 */ 394, 104, 380, 0, 39, 103, 175, 103, 103, 113,
|
|
/* 2200 */ 47, 44, 245, 342, 392, 101, 394, 173, 101, 2,
|
|
/* 2210 */ 22, 103, 47, 352, 22, 104, 103, 47, 223, 114,
|
|
/* 2220 */ 104, 103, 35, 103, 428, 104, 430, 104, 103, 433,
|
|
/* 2230 */ 434, 435, 436, 437, 438, 225, 440, 103, 35, 104,
|
|
/* 2240 */ 428, 380, 430, 103, 35, 433, 434, 435, 436, 437,
|
|
/* 2250 */ 438, 104, 440, 392, 342, 394, 104, 103, 35, 35,
|
|
/* 2260 */ 35, 103, 35, 103, 352, 104, 104, 103, 125, 103,
|
|
/* 2270 */ 342, 125, 104, 125, 125, 103, 44, 103, 35, 103,
|
|
/* 2280 */ 352, 22, 69, 342, 68, 35, 35, 35, 35, 428,
|
|
/* 2290 */ 35, 430, 380, 352, 433, 434, 435, 436, 437, 438,
|
|
/* 2300 */ 35, 440, 35, 342, 392, 35, 394, 97, 380, 75,
|
|
/* 2310 */ 44, 35, 35, 352, 35, 22, 75, 35, 35, 35,
|
|
/* 2320 */ 392, 380, 394, 35, 35, 35, 35, 35, 22, 0,
|
|
/* 2330 */ 35, 35, 0, 392, 49, 394, 39, 35, 39, 0,
|
|
/* 2340 */ 428, 380, 430, 39, 35, 433, 434, 435, 436, 437,
|
|
/* 2350 */ 438, 0, 440, 392, 35, 394, 428, 49, 430, 49,
|
|
/* 2360 */ 49, 433, 434, 435, 436, 437, 438, 39, 440, 428,
|
|
/* 2370 */ 0, 430, 35, 342, 433, 434, 435, 436, 437, 438,
|
|
/* 2380 */ 35, 440, 0, 352, 22, 21, 490, 22, 22, 428,
|
|
/* 2390 */ 21, 430, 20, 490, 433, 434, 435, 436, 437, 438,
|
|
/* 2400 */ 490, 440, 490, 490, 490, 490, 342, 490, 490, 490,
|
|
/* 2410 */ 490, 380, 490, 490, 490, 490, 352, 490, 490, 490,
|
|
/* 2420 */ 490, 490, 342, 392, 490, 394, 490, 490, 490, 490,
|
|
/* 2430 */ 490, 490, 352, 490, 490, 490, 490, 490, 490, 490,
|
|
/* 2440 */ 490, 490, 490, 342, 380, 490, 490, 490, 490, 490,
|
|
/* 2450 */ 490, 490, 490, 352, 490, 490, 392, 490, 394, 428,
|
|
/* 2460 */ 380, 430, 490, 490, 433, 434, 435, 436, 437, 438,
|
|
/* 2470 */ 490, 440, 392, 490, 394, 490, 490, 490, 490, 490,
|
|
/* 2480 */ 490, 380, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
/* 2490 */ 490, 490, 428, 392, 430, 394, 490, 433, 434, 435,
|
|
/* 2500 */ 436, 437, 438, 490, 440, 490, 490, 490, 428, 342,
|
|
/* 2510 */ 430, 490, 490, 433, 434, 435, 436, 437, 438, 352,
|
|
/* 2520 */ 440, 490, 342, 490, 490, 490, 490, 490, 490, 428,
|
|
/* 2530 */ 490, 430, 352, 342, 433, 434, 435, 436, 437, 438,
|
|
/* 2540 */ 490, 440, 490, 352, 490, 490, 342, 380, 490, 490,
|
|
/* 2550 */ 490, 490, 490, 490, 490, 490, 352, 490, 490, 392,
|
|
/* 2560 */ 380, 394, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
/* 2570 */ 490, 380, 392, 490, 394, 490, 490, 490, 490, 490,
|
|
/* 2580 */ 490, 490, 490, 392, 380, 394, 490, 490, 490, 490,
|
|
/* 2590 */ 490, 490, 490, 490, 490, 428, 392, 430, 394, 490,
|
|
/* 2600 */ 433, 434, 435, 436, 437, 438, 490, 440, 428, 490,
|
|
/* 2610 */ 430, 490, 490, 433, 434, 435, 436, 437, 438, 428,
|
|
/* 2620 */ 440, 430, 490, 342, 433, 434, 435, 436, 437, 438,
|
|
/* 2630 */ 490, 440, 428, 352, 430, 490, 342, 433, 434, 435,
|
|
/* 2640 */ 436, 437, 438, 490, 440, 490, 352, 342, 490, 490,
|
|
/* 2650 */ 490, 490, 490, 490, 490, 490, 490, 352, 490, 490,
|
|
/* 2660 */ 490, 380, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
/* 2670 */ 490, 490, 490, 392, 380, 394, 490, 490, 490, 490,
|
|
/* 2680 */ 490, 490, 490, 490, 490, 380, 392, 490, 394, 490,
|
|
/* 2690 */ 490, 490, 490, 490, 490, 490, 490, 392, 342, 394,
|
|
/* 2700 */ 490, 490, 490, 490, 490, 490, 490, 490, 352, 428,
|
|
/* 2710 */ 490, 430, 490, 490, 433, 434, 435, 436, 437, 438,
|
|
/* 2720 */ 490, 440, 428, 490, 430, 490, 490, 433, 434, 435,
|
|
/* 2730 */ 436, 437, 438, 428, 440, 430, 380, 490, 433, 434,
|
|
/* 2740 */ 435, 436, 437, 438, 490, 440, 490, 490, 392, 490,
|
|
/* 2750 */ 394, 490, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
/* 2760 */ 490, 490, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
/* 2770 */ 490, 490, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
/* 2780 */ 490, 490, 490, 490, 428, 490, 430, 490, 490, 433,
|
|
/* 2790 */ 434, 435, 436, 437, 438, 490, 440, 339, 339, 339,
|
|
/* 2800 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2810 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2820 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2830 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2840 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2850 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2860 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2870 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2880 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2890 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2900 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2910 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2920 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2930 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2940 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2950 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2960 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2970 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2980 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 2990 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3000 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3010 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3020 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339,
|
|
/* 3030 */ 339, 339, 339, 339, 339, 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,
|
|
};
|
|
#define YY_SHIFT_COUNT (802)
|
|
#define YY_SHIFT_MIN (0)
|
|
#define YY_SHIFT_MAX (2382)
|
|
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, 342, 376, 1006, 202, 625, 700, 625, 202, 202,
|
|
/* 60 */ 625, 1344, 625, 1344, 1344, 445, 625, 1, 413, 24,
|
|
/* 70 */ 24, 413, 371, 371, 153, 167, 41, 41, 24, 24,
|
|
/* 80 */ 24, 24, 24, 24, 24, 24, 24, 24, 98, 24,
|
|
/* 90 */ 24, 210, 1, 24, 24, 346, 1, 24, 98, 24,
|
|
/* 100 */ 98, 1, 24, 24, 1, 24, 1, 1, 1, 24,
|
|
/* 110 */ 383, 1004, 15, 15, 642, 171, 669, 669, 669, 669,
|
|
/* 120 */ 669, 669, 669, 669, 669, 669, 669, 669, 669, 669,
|
|
/* 130 */ 669, 669, 669, 669, 669, 425, 49, 153, 167, 229,
|
|
/* 140 */ 229, 67, 868, 868, 868, 1048, 192, 192, 67, 210,
|
|
/* 150 */ 401, 340, 1, 544, 1, 544, 544, 608, 772, 28,
|
|
/* 160 */ 28, 28, 28, 28, 28, 28, 28, 1962, 851, 261,
|
|
/* 170 */ 368, 34, 196, 338, 348, 339, 339, 296, 458, 689,
|
|
/* 180 */ 378, 1029, 1071, 1161, 252, 1091, 963, 982, 975, 963,
|
|
/* 190 */ 1206, 981, 720, 1133, 1359, 1389, 1205, 210, 1389, 210,
|
|
/* 200 */ 1232, 1405, 1385, 1408, 1405, 1385, 1276, 1440, 1405, 1440,
|
|
/* 210 */ 1385, 1276, 1276, 1368, 1379, 1440, 1383, 1440, 1440, 1440,
|
|
/* 220 */ 1468, 1441, 1468, 1441, 1389, 210, 1473, 210, 1476, 1492,
|
|
/* 230 */ 210, 1476, 210, 210, 210, 1440, 210, 1468, 1, 1,
|
|
/* 240 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1440,
|
|
/* 250 */ 1468, 544, 544, 544, 1335, 1446, 1389, 383, 1364, 1370,
|
|
/* 260 */ 1473, 383, 1375, 1133, 1440, 1408, 1408, 544, 1305, 1309,
|
|
/* 270 */ 544, 1305, 1309, 544, 544, 1, 1330, 1430, 1305, 1336,
|
|
/* 280 */ 1338, 1351, 1133, 1331, 1337, 1341, 1360, 1405, 1608, 1517,
|
|
/* 290 */ 1371, 1476, 383, 383, 1619, 1309, 544, 544, 544, 544,
|
|
/* 300 */ 544, 1309, 544, 1491, 383, 608, 383, 1405, 1573, 1574,
|
|
/* 310 */ 544, 772, 1440, 383, 1650, 1468, 2797, 2797, 2797, 2797,
|
|
/* 320 */ 2797, 2797, 2797, 2797, 2797, 1002, 1072, 225, 414, 931,
|
|
/* 330 */ 749, 943, 692, 646, 1170, 793, 734, 1130, 1130, 1130,
|
|
/* 340 */ 1130, 1130, 1130, 1130, 1130, 1130, 682, 187, 200, 200,
|
|
/* 350 */ 359, 641, 785, 583, 930, 520, 789, 475, 341, 701,
|
|
/* 360 */ 701, 922, 8, 107, 922, 922, 922, 1247, 1059, 317,
|
|
/* 370 */ 1195, 1215, 1140, 1264, 1160, 1162, 1172, 1193, 618, 1227,
|
|
/* 380 */ 1292, 1293, 1294, 1066, 1216, 1217, 1212, 1224, 1237, 1254,
|
|
/* 390 */ 1165, 1084, 482, 1255, 1265, 1266, 1267, 1268, 1274, 1321,
|
|
/* 400 */ 1280, 1251, 1282, 1289, 1285, 1295, 1296, 1301, 1303, 1306,
|
|
/* 410 */ 436, 1145, 1168, 1333, 1339, 1316, 1354, 1700, 1701, 1703,
|
|
/* 420 */ 1662, 1705, 1672, 1494, 1682, 1685, 1686, 1506, 1724, 1692,
|
|
/* 430 */ 1702, 1523, 1740, 1525, 1742, 1708, 1746, 1726, 1751, 1717,
|
|
/* 440 */ 1542, 1755, 1557, 1757, 1559, 1560, 1569, 1572, 1764, 1765,
|
|
/* 450 */ 1766, 1580, 1582, 1769, 1770, 1725, 1771, 1738, 1727, 1775,
|
|
/* 460 */ 1730, 1778, 1737, 1780, 1781, 1783, 1739, 1785, 1788, 1789,
|
|
/* 470 */ 1790, 1791, 1792, 1634, 1763, 1799, 1647, 1808, 1809, 1810,
|
|
/* 480 */ 1813, 1815, 1816, 1818, 1820, 1822, 1823, 1825, 1827, 1828,
|
|
/* 490 */ 1829, 1831, 1833, 1787, 1843, 1802, 1845, 1846, 1847, 1848,
|
|
/* 500 */ 1850, 1852, 1832, 1853, 1855, 1856, 1714, 1858, 1859, 1842,
|
|
/* 510 */ 1826, 1849, 1830, 1875, 1814, 1851, 1877, 1819, 1880, 1834,
|
|
/* 520 */ 1882, 1884, 1854, 1836, 1862, 1887, 1857, 1839, 1869, 1890,
|
|
/* 530 */ 1860, 1863, 1874, 1894, 1865, 1898, 1872, 1876, 1873, 1871,
|
|
/* 540 */ 1879, 1905, 1881, 1921, 1891, 1883, 1924, 1930, 1938, 1902,
|
|
/* 550 */ 1760, 1943, 1944, 1945, 1885, 1946, 1949, 1916, 1903, 1914,
|
|
/* 560 */ 1955, 1922, 1907, 1919, 1970, 1937, 1925, 1934, 1975, 1942,
|
|
/* 570 */ 1927, 1940, 1980, 1982, 1984, 1985, 1988, 1989, 1888, 1889,
|
|
/* 580 */ 1956, 1971, 1994, 1972, 1974, 1977, 1979, 1981, 1983, 1992,
|
|
/* 590 */ 1973, 1996, 2006, 2007, 1993, 2008, 2029, 2022, 2045, 2024,
|
|
/* 600 */ 1997, 2047, 2027, 2015, 2052, 2018, 2054, 2020, 2056, 2035,
|
|
/* 610 */ 2038, 2025, 2026, 2033, 1958, 1963, 2059, 1897, 1967, 1878,
|
|
/* 620 */ 2036, 2050, 2077, 1892, 2066, 1917, 1918, 2090, 2091, 1923,
|
|
/* 630 */ 1915, 1926, 1932, 2093, 2058, 1838, 1991, 2009, 2011, 2067,
|
|
/* 640 */ 2016, 2068, 2019, 2017, 2075, 2076, 2023, 2028, 2030, 2037,
|
|
/* 650 */ 2032, 2078, 2081, 2082, 2040, 2079, 1867, 2041, 2042, 2127,
|
|
/* 660 */ 2097, 1886, 2099, 2109, 2112, 2114, 2115, 2117, 2049, 2051,
|
|
/* 670 */ 2110, 1900, 2119, 2124, 2156, 2159, 2071, 2138, 1871, 2137,
|
|
/* 680 */ 2083, 2085, 2087, 2084, 2092, 2021, 2094, 2193, 2155, 2034,
|
|
/* 690 */ 2095, 2086, 1871, 2153, 2157, 2104, 1957, 2107, 2207, 2188,
|
|
/* 700 */ 1995, 2108, 2111, 2113, 2116, 2118, 2121, 2165, 2120, 2125,
|
|
/* 710 */ 2170, 2123, 2192, 2010, 2134, 2105, 2135, 2187, 2203, 2140,
|
|
/* 720 */ 2147, 2209, 2154, 2152, 2223, 2158, 2161, 2224, 2160, 2162,
|
|
/* 730 */ 2225, 2164, 2168, 2227, 2166, 2143, 2146, 2148, 2149, 2172,
|
|
/* 740 */ 2232, 2174, 2243, 2176, 2232, 2232, 2259, 2213, 2216, 2250,
|
|
/* 750 */ 2251, 2252, 2253, 2255, 2265, 2267, 2270, 2234, 2210, 2266,
|
|
/* 760 */ 2276, 2277, 2279, 2293, 2282, 2283, 2284, 2241, 1973, 2288,
|
|
/* 770 */ 1996, 2289, 2290, 2291, 2292, 2306, 2295, 2329, 2296, 2285,
|
|
/* 780 */ 2297, 2332, 2302, 2308, 2299, 2339, 2309, 2310, 2304, 2351,
|
|
/* 790 */ 2319, 2311, 2328, 2370, 2337, 2345, 2382, 2362, 2364, 2365,
|
|
/* 800 */ 2366, 2369, 2372,
|
|
};
|
|
#define YY_REDUCE_COUNT (324)
|
|
#define YY_REDUCE_MIN (-391)
|
|
#define YY_REDUCE_MAX (2356)
|
|
static const short yy_reduce_ofst[] = {
|
|
/* 0 */ -20, -341, -134, -27, 205, 850, 897, 1001, 1021, 1070,
|
|
/* 10 */ 1159, 1208, 1278, 158, 539, 1298, 52, 347, 1090, 1367,
|
|
/* 20 */ 358, 1402, 1432, 1469, 1499, 1531, 1568, 1598, 1645, 1671,
|
|
/* 30 */ 1732, 1745, 1796, 1812, 1861, 1912, 1928, 1941, 1961, 2031,
|
|
/* 40 */ 2064, 2080, 2101, 2167, 2180, 2191, 2204, 2281, 2294, 2305,
|
|
/* 50 */ 2356, -274, 142, 40, -292, -371, 144, 582, 419, 427,
|
|
/* 60 */ 640, -366, 504, -311, -310, 751, 753, -9, -391, -346,
|
|
/* 70 */ -315, -324, -342, -270, -279, -259, -313, -215, -177, -162,
|
|
/* 80 */ -73, 146, 4, 17, 295, 336, 345, 83, 312, 372,
|
|
/* 90 */ 395, 135, -66, 403, 486, 420, 61, 490, 453, 494,
|
|
/* 100 */ 592, -265, 573, 575, 331, 610, 163, 373, 357, 674,
|
|
/* 110 */ -285, -351, -382, -382, -200, -163, 109, 302, 506, 590,
|
|
/* 120 */ 685, 708, 709, 712, 721, 722, 781, 784, 795, 799,
|
|
/* 130 */ 807, 808, 826, 863, 866, -132, 155, -296, -174, 127,
|
|
/* 140 */ 251, 467, 155, 193, 462, -110, 612, 666, 664, 679,
|
|
/* 150 */ 224, 313, 747, 744, 727, 805, 822, 843, 862, -364,
|
|
/* 160 */ -327, 473, 514, 568, 615, 657, 568, 791, 380, 760,
|
|
/* 170 */ 461, 652, 830, 958, 889, 994, 996, 985, 965, 985,
|
|
/* 180 */ 1025, 980, 1033, 1035, 997, 983, 929, 929, 913, 929,
|
|
/* 190 */ 944, 933, 985, 989, 974, 992, 990, 1056, 998, 1058,
|
|
/* 200 */ 1008, 1074, 1031, 1038, 1081, 1044, 1050, 1112, 1113, 1116,
|
|
/* 210 */ 1076, 1079, 1080, 1107, 1117, 1128, 1121, 1134, 1135, 1136,
|
|
/* 220 */ 1146, 1143, 1148, 1147, 1075, 1139, 1100, 1142, 1156, 1099,
|
|
/* 230 */ 1154, 1163, 1169, 1171, 1173, 1181, 1174, 1175, 1158, 1164,
|
|
/* 240 */ 1166, 1167, 1176, 1177, 1178, 1179, 1182, 1183, 1184, 1185,
|
|
/* 250 */ 1196, 1149, 1150, 1151, 1122, 1131, 1132, 1194, 1144, 1152,
|
|
/* 260 */ 1180, 1211, 1186, 1188, 1220, 1189, 1201, 1187, 1103, 1191,
|
|
/* 270 */ 1198, 1137, 1202, 1221, 1222, 985, 1153, 1155, 1192, 1197,
|
|
/* 280 */ 1157, 1190, 1209, 1199, 1141, 1200, 929, 1277, 1203, 1204,
|
|
/* 290 */ 1210, 1281, 1275, 1279, 1242, 1244, 1257, 1260, 1262, 1269,
|
|
/* 300 */ 1271, 1249, 1272, 1263, 1311, 1299, 1313, 1322, 1229, 1297,
|
|
/* 310 */ 1288, 1314, 1332, 1327, 1342, 1345, 1283, 1270, 1286, 1287,
|
|
/* 320 */ 1317, 1323, 1324, 1343, 1356,
|
|
};
|
|
static const YYACTIONTYPE yy_default[] = {
|
|
/* 0 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 10 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 20 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 30 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 40 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 50 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 60 */ 2100, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 70 */ 1789, 1789, 1789, 1789, 2073, 1789, 1789, 1789, 1789, 1789,
|
|
/* 80 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 90 */ 1789, 1878, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 100 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 110 */ 1876, 2066, 2292, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 120 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 130 */ 1789, 1789, 1789, 1789, 1789, 1789, 2304, 1789, 1789, 1852,
|
|
/* 140 */ 1852, 1789, 2304, 2304, 2304, 1876, 2264, 2264, 1789, 1878,
|
|
/* 150 */ 2134, 1789, 1789, 1789, 1789, 1789, 1789, 1998, 1789, 1789,
|
|
/* 160 */ 1789, 1789, 1789, 2022, 1789, 1789, 1789, 2126, 1789, 1789,
|
|
/* 170 */ 2333, 2390, 1789, 1789, 2336, 1789, 1789, 1789, 1789, 1789,
|
|
/* 180 */ 1789, 2078, 1789, 1789, 1951, 2323, 2296, 2310, 2374, 2297,
|
|
/* 190 */ 2294, 2317, 1789, 2327, 1789, 1789, 2148, 1878, 1789, 1878,
|
|
/* 200 */ 2113, 1789, 2071, 1789, 1789, 2071, 2068, 1789, 1789, 1789,
|
|
/* 210 */ 2071, 2068, 2068, 1940, 1936, 1789, 1934, 1789, 1789, 1789,
|
|
/* 220 */ 1789, 1836, 1789, 1836, 1789, 1878, 1789, 1878, 1789, 1789,
|
|
/* 230 */ 1878, 1789, 1878, 1878, 1878, 1789, 1878, 1789, 1789, 1789,
|
|
/* 240 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 250 */ 1789, 1789, 1789, 1789, 2146, 2132, 1789, 1876, 2124, 2122,
|
|
/* 260 */ 1789, 1876, 2120, 2327, 1789, 1789, 1789, 1789, 2344, 2342,
|
|
/* 270 */ 1789, 2344, 2342, 1789, 1789, 1789, 2358, 2354, 2344, 2363,
|
|
/* 280 */ 2360, 2329, 2327, 2393, 2380, 2376, 2310, 1789, 1789, 2315,
|
|
/* 290 */ 2313, 1789, 1876, 1876, 1789, 2342, 1789, 1789, 1789, 1789,
|
|
/* 300 */ 1789, 2342, 1789, 1789, 1876, 1789, 1876, 1789, 1789, 1967,
|
|
/* 310 */ 1789, 1789, 1789, 1876, 1821, 1789, 2115, 2137, 2096, 2096,
|
|
/* 320 */ 2001, 2001, 2001, 1879, 1794, 1789, 1789, 1789, 1789, 1789,
|
|
/* 330 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 2357, 2356, 2219,
|
|
/* 340 */ 1789, 2268, 2267, 2266, 2257, 2218, 1963, 1789, 2217, 2216,
|
|
/* 350 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 2087,
|
|
/* 360 */ 2086, 2210, 1789, 1789, 2211, 2209, 2208, 1789, 1789, 1789,
|
|
/* 370 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 380 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 390 */ 1789, 2377, 2381, 1789, 1789, 1789, 1789, 1789, 1789, 2293,
|
|
/* 400 */ 1789, 1789, 1789, 2192, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 410 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 420 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 430 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 440 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 450 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 460 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 470 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 480 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 490 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 500 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 510 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 520 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 530 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1826, 2197,
|
|
/* 540 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 550 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 560 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 570 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 580 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 590 */ 1917, 1916, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 600 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 610 */ 1789, 1789, 1789, 1789, 2201, 1789, 1789, 1789, 1789, 1789,
|
|
/* 620 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 630 */ 1789, 1789, 1789, 2373, 2330, 1789, 1789, 1789, 1789, 1789,
|
|
/* 640 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 650 */ 1789, 1789, 1789, 2192, 1789, 2355, 1789, 1789, 2371, 1789,
|
|
/* 660 */ 2375, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 2303, 2299,
|
|
/* 670 */ 1789, 1789, 2295, 1789, 1789, 1789, 1789, 1789, 2200, 1789,
|
|
/* 680 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 690 */ 1789, 1789, 2191, 1789, 2254, 1789, 1789, 1789, 2288, 1789,
|
|
/* 700 */ 1789, 2239, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 710 */ 1789, 2201, 1789, 2204, 1789, 1789, 1789, 1789, 1789, 1995,
|
|
/* 720 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 730 */ 1789, 1789, 1789, 1789, 1789, 1979, 1977, 1976, 1975, 1789,
|
|
/* 740 */ 2008, 1789, 1789, 1789, 2004, 2003, 1789, 1789, 1789, 1789,
|
|
/* 750 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1897,
|
|
/* 760 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1889, 1789,
|
|
/* 770 */ 1888, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 780 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 790 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789,
|
|
/* 800 */ 1789, 1789, 1789,
|
|
};
|
|
/********** 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, /* BOOL => nothing */
|
|
0, /* TINYINT => nothing */
|
|
0, /* SMALLINT => nothing */
|
|
0, /* INT => nothing */
|
|
0, /* INTEGER => nothing */
|
|
0, /* BIGINT => nothing */
|
|
0, /* FLOAT => nothing */
|
|
0, /* DOUBLE => nothing */
|
|
0, /* BINARY => nothing */
|
|
0, /* NCHAR => nothing */
|
|
0, /* UNSIGNED => nothing */
|
|
0, /* JSON => nothing */
|
|
0, /* VARCHAR => nothing */
|
|
0, /* MEDIUMBLOB => nothing */
|
|
0, /* BLOB => nothing */
|
|
0, /* VARBINARY => nothing */
|
|
0, /* GEOMETRY => nothing */
|
|
0, /* DECIMAL => nothing */
|
|
0, /* COMMENT => nothing */
|
|
0, /* MAX_DELAY => nothing */
|
|
0, /* WATERMARK => nothing */
|
|
0, /* ROLLUP => nothing */
|
|
0, /* TTL => nothing */
|
|
0, /* SMA => nothing */
|
|
0, /* DELETE_MARK => nothing */
|
|
0, /* FIRST => nothing */
|
|
0, /* LAST => nothing */
|
|
0, /* SHOW => nothing */
|
|
0, /* PRIVILEGES => nothing */
|
|
0, /* DATABASES => nothing */
|
|
0, /* TABLES => nothing */
|
|
0, /* STABLES => nothing */
|
|
0, /* MNODES => nothing */
|
|
0, /* QNODES => nothing */
|
|
0, /* FUNCTIONS => nothing */
|
|
0, /* INDEXES => nothing */
|
|
0, /* ACCOUNTS => nothing */
|
|
0, /* APPS => nothing */
|
|
0, /* CONNECTIONS => nothing */
|
|
0, /* LICENCES => nothing */
|
|
0, /* GRANTS => nothing */
|
|
0, /* QUERIES => nothing */
|
|
0, /* SCORES => nothing */
|
|
0, /* TOPICS => nothing */
|
|
0, /* VARIABLES => nothing */
|
|
0, /* CLUSTER => nothing */
|
|
0, /* BNODES => nothing */
|
|
0, /* SNODES => nothing */
|
|
0, /* TRANSACTIONS => nothing */
|
|
0, /* DISTRIBUTED => nothing */
|
|
0, /* CONSUMERS => nothing */
|
|
0, /* SUBSCRIPTIONS => nothing */
|
|
0, /* VNODES => nothing */
|
|
0, /* ALIVE => nothing */
|
|
0, /* LIKE => nothing */
|
|
0, /* TBNAME => nothing */
|
|
0, /* QTAGS => nothing */
|
|
0, /* AS => nothing */
|
|
0, /* INDEX => nothing */
|
|
0, /* FUNCTION => nothing */
|
|
0, /* INTERVAL => nothing */
|
|
0, /* COUNT => nothing */
|
|
0, /* LAST_ROW => nothing */
|
|
0, /* META => nothing */
|
|
0, /* ONLY => nothing */
|
|
0, /* TOPIC => nothing */
|
|
0, /* CONSUMER => nothing */
|
|
0, /* GROUP => nothing */
|
|
0, /* DESC => nothing */
|
|
0, /* DESCRIBE => nothing */
|
|
0, /* RESET => nothing */
|
|
0, /* QUERY => nothing */
|
|
0, /* CACHE => nothing */
|
|
0, /* EXPLAIN => nothing */
|
|
0, /* ANALYZE => nothing */
|
|
0, /* VERBOSE => nothing */
|
|
0, /* NK_BOOL => nothing */
|
|
0, /* RATIO => nothing */
|
|
0, /* NK_FLOAT => nothing */
|
|
0, /* OUTPUTTYPE => nothing */
|
|
0, /* AGGREGATE => nothing */
|
|
0, /* BUFSIZE => nothing */
|
|
0, /* LANGUAGE => nothing */
|
|
0, /* REPLACE => nothing */
|
|
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>
|
|
#include <assert.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 */ "BOOL",
|
|
/* 116 */ "TINYINT",
|
|
/* 117 */ "SMALLINT",
|
|
/* 118 */ "INT",
|
|
/* 119 */ "INTEGER",
|
|
/* 120 */ "BIGINT",
|
|
/* 121 */ "FLOAT",
|
|
/* 122 */ "DOUBLE",
|
|
/* 123 */ "BINARY",
|
|
/* 124 */ "NCHAR",
|
|
/* 125 */ "UNSIGNED",
|
|
/* 126 */ "JSON",
|
|
/* 127 */ "VARCHAR",
|
|
/* 128 */ "MEDIUMBLOB",
|
|
/* 129 */ "BLOB",
|
|
/* 130 */ "VARBINARY",
|
|
/* 131 */ "GEOMETRY",
|
|
/* 132 */ "DECIMAL",
|
|
/* 133 */ "COMMENT",
|
|
/* 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_name",
|
|
/* 381 */ "type_name",
|
|
/* 382 */ "signed_literal",
|
|
/* 383 */ "create_subtable_clause",
|
|
/* 384 */ "specific_cols_opt",
|
|
/* 385 */ "expression_list",
|
|
/* 386 */ "drop_table_clause",
|
|
/* 387 */ "col_name_list",
|
|
/* 388 */ "column_def",
|
|
/* 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 */ "tag_mode_opt",
|
|
/* 465 */ "set_quantifier_opt",
|
|
/* 466 */ "select_list",
|
|
/* 467 */ "partition_by_clause_opt",
|
|
/* 468 */ "range_opt",
|
|
/* 469 */ "every_opt",
|
|
/* 470 */ "fill_opt",
|
|
/* 471 */ "twindow_clause_opt",
|
|
/* 472 */ "group_by_clause_opt",
|
|
/* 473 */ "having_clause_opt",
|
|
/* 474 */ "select_item",
|
|
/* 475 */ "partition_list",
|
|
/* 476 */ "partition_item",
|
|
/* 477 */ "fill_mode",
|
|
/* 478 */ "group_by_list",
|
|
/* 479 */ "query_expression",
|
|
/* 480 */ "query_simple",
|
|
/* 481 */ "order_by_clause_opt",
|
|
/* 482 */ "slimit_clause_opt",
|
|
/* 483 */ "limit_clause_opt",
|
|
/* 484 */ "union_query_expression",
|
|
/* 485 */ "query_simple_or_subquery",
|
|
/* 486 */ "sort_specification_list",
|
|
/* 487 */ "sort_specification",
|
|
/* 488 */ "ordering_specification_opt",
|
|
/* 489 */ "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_name type_name",
|
|
/* 161 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
|
|
/* 162 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
|
|
/* 163 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
|
|
/* 164 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
|
|
/* 165 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
|
|
/* 166 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
|
|
/* 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 */ "type_name ::= BOOL",
|
|
/* 183 */ "type_name ::= TINYINT",
|
|
/* 184 */ "type_name ::= SMALLINT",
|
|
/* 185 */ "type_name ::= INT",
|
|
/* 186 */ "type_name ::= INTEGER",
|
|
/* 187 */ "type_name ::= BIGINT",
|
|
/* 188 */ "type_name ::= FLOAT",
|
|
/* 189 */ "type_name ::= DOUBLE",
|
|
/* 190 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 191 */ "type_name ::= TIMESTAMP",
|
|
/* 192 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 193 */ "type_name ::= TINYINT UNSIGNED",
|
|
/* 194 */ "type_name ::= SMALLINT UNSIGNED",
|
|
/* 195 */ "type_name ::= INT UNSIGNED",
|
|
/* 196 */ "type_name ::= BIGINT UNSIGNED",
|
|
/* 197 */ "type_name ::= JSON",
|
|
/* 198 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 199 */ "type_name ::= MEDIUMBLOB",
|
|
/* 200 */ "type_name ::= BLOB",
|
|
/* 201 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 202 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
|
|
/* 203 */ "type_name ::= DECIMAL",
|
|
/* 204 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
|
|
/* 205 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
/* 206 */ "tags_def_opt ::=",
|
|
/* 207 */ "tags_def_opt ::= tags_def",
|
|
/* 208 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
|
|
/* 209 */ "table_options ::=",
|
|
/* 210 */ "table_options ::= table_options COMMENT NK_STRING",
|
|
/* 211 */ "table_options ::= table_options MAX_DELAY duration_list",
|
|
/* 212 */ "table_options ::= table_options WATERMARK duration_list",
|
|
/* 213 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
|
|
/* 214 */ "table_options ::= table_options TTL NK_INTEGER",
|
|
/* 215 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
|
|
/* 216 */ "table_options ::= table_options DELETE_MARK duration_list",
|
|
/* 217 */ "alter_table_options ::= alter_table_option",
|
|
/* 218 */ "alter_table_options ::= alter_table_options alter_table_option",
|
|
/* 219 */ "alter_table_option ::= COMMENT NK_STRING",
|
|
/* 220 */ "alter_table_option ::= TTL NK_INTEGER",
|
|
/* 221 */ "duration_list ::= duration_literal",
|
|
/* 222 */ "duration_list ::= duration_list NK_COMMA duration_literal",
|
|
/* 223 */ "rollup_func_list ::= rollup_func_name",
|
|
/* 224 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
|
|
/* 225 */ "rollup_func_name ::= function_name",
|
|
/* 226 */ "rollup_func_name ::= FIRST",
|
|
/* 227 */ "rollup_func_name ::= LAST",
|
|
/* 228 */ "col_name_list ::= col_name",
|
|
/* 229 */ "col_name_list ::= col_name_list NK_COMMA col_name",
|
|
/* 230 */ "col_name ::= column_name",
|
|
/* 231 */ "cmd ::= SHOW DNODES",
|
|
/* 232 */ "cmd ::= SHOW USERS",
|
|
/* 233 */ "cmd ::= SHOW USER PRIVILEGES",
|
|
/* 234 */ "cmd ::= SHOW DATABASES",
|
|
/* 235 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt",
|
|
/* 236 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
|
|
/* 237 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
|
|
/* 238 */ "cmd ::= SHOW MNODES",
|
|
/* 239 */ "cmd ::= SHOW QNODES",
|
|
/* 240 */ "cmd ::= SHOW FUNCTIONS",
|
|
/* 241 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
/* 242 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
/* 243 */ "cmd ::= SHOW STREAMS",
|
|
/* 244 */ "cmd ::= SHOW ACCOUNTS",
|
|
/* 245 */ "cmd ::= SHOW APPS",
|
|
/* 246 */ "cmd ::= SHOW CONNECTIONS",
|
|
/* 247 */ "cmd ::= SHOW LICENCES",
|
|
/* 248 */ "cmd ::= SHOW GRANTS",
|
|
/* 249 */ "cmd ::= SHOW CREATE DATABASE db_name",
|
|
/* 250 */ "cmd ::= SHOW CREATE TABLE full_table_name",
|
|
/* 251 */ "cmd ::= SHOW CREATE STABLE full_table_name",
|
|
/* 252 */ "cmd ::= SHOW QUERIES",
|
|
/* 253 */ "cmd ::= SHOW SCORES",
|
|
/* 254 */ "cmd ::= SHOW TOPICS",
|
|
/* 255 */ "cmd ::= SHOW VARIABLES",
|
|
/* 256 */ "cmd ::= SHOW CLUSTER VARIABLES",
|
|
/* 257 */ "cmd ::= SHOW LOCAL VARIABLES",
|
|
/* 258 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
|
|
/* 259 */ "cmd ::= SHOW BNODES",
|
|
/* 260 */ "cmd ::= SHOW SNODES",
|
|
/* 261 */ "cmd ::= SHOW CLUSTER",
|
|
/* 262 */ "cmd ::= SHOW TRANSACTIONS",
|
|
/* 263 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
|
|
/* 264 */ "cmd ::= SHOW CONSUMERS",
|
|
/* 265 */ "cmd ::= SHOW SUBSCRIPTIONS",
|
|
/* 266 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
|
|
/* 267 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
|
|
/* 268 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
|
|
/* 269 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
|
|
/* 270 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
|
|
/* 271 */ "cmd ::= SHOW VNODES",
|
|
/* 272 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
|
|
/* 273 */ "cmd ::= SHOW CLUSTER ALIVE",
|
|
/* 274 */ "db_name_cond_opt ::=",
|
|
/* 275 */ "db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 276 */ "like_pattern_opt ::=",
|
|
/* 277 */ "like_pattern_opt ::= LIKE NK_STRING",
|
|
/* 278 */ "table_name_cond ::= table_name",
|
|
/* 279 */ "from_db_opt ::=",
|
|
/* 280 */ "from_db_opt ::= FROM db_name",
|
|
/* 281 */ "tag_list_opt ::=",
|
|
/* 282 */ "tag_list_opt ::= tag_item",
|
|
/* 283 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
|
|
/* 284 */ "tag_item ::= TBNAME",
|
|
/* 285 */ "tag_item ::= QTAGS",
|
|
/* 286 */ "tag_item ::= column_name",
|
|
/* 287 */ "tag_item ::= column_name column_alias",
|
|
/* 288 */ "tag_item ::= column_name AS column_alias",
|
|
/* 289 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options",
|
|
/* 290 */ "cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP",
|
|
/* 291 */ "cmd ::= DROP INDEX exists_opt full_index_name",
|
|
/* 292 */ "full_index_name ::= index_name",
|
|
/* 293 */ "full_index_name ::= db_name NK_DOT index_name",
|
|
/* 294 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
/* 295 */ "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",
|
|
/* 296 */ "func_list ::= func",
|
|
/* 297 */ "func_list ::= func_list NK_COMMA func",
|
|
/* 298 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
|
|
/* 299 */ "sma_func_name ::= function_name",
|
|
/* 300 */ "sma_func_name ::= COUNT",
|
|
/* 301 */ "sma_func_name ::= FIRST",
|
|
/* 302 */ "sma_func_name ::= LAST",
|
|
/* 303 */ "sma_func_name ::= LAST_ROW",
|
|
/* 304 */ "sma_stream_opt ::=",
|
|
/* 305 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
|
|
/* 306 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
|
|
/* 307 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
|
|
/* 308 */ "with_meta ::= AS",
|
|
/* 309 */ "with_meta ::= WITH META AS",
|
|
/* 310 */ "with_meta ::= ONLY META AS",
|
|
/* 311 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
|
|
/* 312 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
|
|
/* 313 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
|
|
/* 314 */ "cmd ::= DROP TOPIC exists_opt topic_name",
|
|
/* 315 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
|
|
/* 316 */ "cmd ::= DESC full_table_name",
|
|
/* 317 */ "cmd ::= DESCRIBE full_table_name",
|
|
/* 318 */ "cmd ::= RESET QUERY CACHE",
|
|
/* 319 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
|
|
/* 320 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
|
|
/* 321 */ "analyze_opt ::=",
|
|
/* 322 */ "analyze_opt ::= ANALYZE",
|
|
/* 323 */ "explain_options ::=",
|
|
/* 324 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
|
|
/* 325 */ "explain_options ::= explain_options RATIO NK_FLOAT",
|
|
/* 326 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
|
|
/* 327 */ "cmd ::= DROP FUNCTION exists_opt function_name",
|
|
/* 328 */ "agg_func_opt ::=",
|
|
/* 329 */ "agg_func_opt ::= AGGREGATE",
|
|
/* 330 */ "bufsize_opt ::=",
|
|
/* 331 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
|
|
/* 332 */ "language_opt ::=",
|
|
/* 333 */ "language_opt ::= LANGUAGE NK_STRING",
|
|
/* 334 */ "or_replace_opt ::=",
|
|
/* 335 */ "or_replace_opt ::= OR REPLACE",
|
|
/* 336 */ "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",
|
|
/* 337 */ "cmd ::= DROP STREAM exists_opt stream_name",
|
|
/* 338 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
|
|
/* 339 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
|
|
/* 340 */ "col_list_opt ::=",
|
|
/* 341 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 342 */ "tag_def_or_ref_opt ::=",
|
|
/* 343 */ "tag_def_or_ref_opt ::= tags_def",
|
|
/* 344 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
|
|
/* 345 */ "stream_options ::=",
|
|
/* 346 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
|
|
/* 347 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
|
|
/* 348 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
|
|
/* 349 */ "stream_options ::= stream_options WATERMARK duration_literal",
|
|
/* 350 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
|
|
/* 351 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
|
|
/* 352 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
|
|
/* 353 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
|
|
/* 354 */ "subtable_opt ::=",
|
|
/* 355 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
|
|
/* 356 */ "ignore_opt ::=",
|
|
/* 357 */ "ignore_opt ::= IGNORE UNTREATED",
|
|
/* 358 */ "cmd ::= KILL CONNECTION NK_INTEGER",
|
|
/* 359 */ "cmd ::= KILL QUERY NK_STRING",
|
|
/* 360 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
|
|
/* 361 */ "cmd ::= BALANCE VGROUP",
|
|
/* 362 */ "cmd ::= BALANCE VGROUP LEADER",
|
|
/* 363 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
|
|
/* 364 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
|
|
/* 365 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
|
|
/* 366 */ "dnode_list ::= DNODE NK_INTEGER",
|
|
/* 367 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
|
|
/* 368 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
|
|
/* 369 */ "cmd ::= query_or_subquery",
|
|
/* 370 */ "cmd ::= insert_query",
|
|
/* 371 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
|
|
/* 372 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
|
|
/* 373 */ "literal ::= NK_INTEGER",
|
|
/* 374 */ "literal ::= NK_FLOAT",
|
|
/* 375 */ "literal ::= NK_STRING",
|
|
/* 376 */ "literal ::= NK_BOOL",
|
|
/* 377 */ "literal ::= TIMESTAMP NK_STRING",
|
|
/* 378 */ "literal ::= duration_literal",
|
|
/* 379 */ "literal ::= NULL",
|
|
/* 380 */ "literal ::= NK_QUESTION",
|
|
/* 381 */ "duration_literal ::= NK_VARIABLE",
|
|
/* 382 */ "signed ::= NK_INTEGER",
|
|
/* 383 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
/* 384 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
/* 385 */ "signed ::= NK_FLOAT",
|
|
/* 386 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
/* 387 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
/* 388 */ "signed_literal ::= signed",
|
|
/* 389 */ "signed_literal ::= NK_STRING",
|
|
/* 390 */ "signed_literal ::= NK_BOOL",
|
|
/* 391 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
/* 392 */ "signed_literal ::= duration_literal",
|
|
/* 393 */ "signed_literal ::= NULL",
|
|
/* 394 */ "signed_literal ::= literal_func",
|
|
/* 395 */ "signed_literal ::= NK_QUESTION",
|
|
/* 396 */ "literal_list ::= signed_literal",
|
|
/* 397 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
/* 398 */ "db_name ::= NK_ID",
|
|
/* 399 */ "table_name ::= NK_ID",
|
|
/* 400 */ "column_name ::= NK_ID",
|
|
/* 401 */ "function_name ::= NK_ID",
|
|
/* 402 */ "table_alias ::= NK_ID",
|
|
/* 403 */ "column_alias ::= NK_ID",
|
|
/* 404 */ "user_name ::= NK_ID",
|
|
/* 405 */ "topic_name ::= NK_ID",
|
|
/* 406 */ "stream_name ::= NK_ID",
|
|
/* 407 */ "cgroup_name ::= NK_ID",
|
|
/* 408 */ "index_name ::= NK_ID",
|
|
/* 409 */ "expr_or_subquery ::= expression",
|
|
/* 410 */ "expression ::= literal",
|
|
/* 411 */ "expression ::= pseudo_column",
|
|
/* 412 */ "expression ::= column_reference",
|
|
/* 413 */ "expression ::= function_expression",
|
|
/* 414 */ "expression ::= case_when_expression",
|
|
/* 415 */ "expression ::= NK_LP expression NK_RP",
|
|
/* 416 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
/* 417 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
/* 418 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
/* 419 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
/* 420 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
/* 421 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
/* 422 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
/* 423 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
/* 424 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
/* 425 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
/* 426 */ "expression_list ::= expr_or_subquery",
|
|
/* 427 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
/* 428 */ "column_reference ::= column_name",
|
|
/* 429 */ "column_reference ::= table_name NK_DOT column_name",
|
|
/* 430 */ "pseudo_column ::= ROWTS",
|
|
/* 431 */ "pseudo_column ::= TBNAME",
|
|
/* 432 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
/* 433 */ "pseudo_column ::= QSTART",
|
|
/* 434 */ "pseudo_column ::= QEND",
|
|
/* 435 */ "pseudo_column ::= QDURATION",
|
|
/* 436 */ "pseudo_column ::= WSTART",
|
|
/* 437 */ "pseudo_column ::= WEND",
|
|
/* 438 */ "pseudo_column ::= WDURATION",
|
|
/* 439 */ "pseudo_column ::= IROWTS",
|
|
/* 440 */ "pseudo_column ::= ISFILLED",
|
|
/* 441 */ "pseudo_column ::= QTAGS",
|
|
/* 442 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
/* 443 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
/* 444 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
/* 445 */ "function_expression ::= literal_func",
|
|
/* 446 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
/* 447 */ "literal_func ::= NOW",
|
|
/* 448 */ "noarg_func ::= NOW",
|
|
/* 449 */ "noarg_func ::= TODAY",
|
|
/* 450 */ "noarg_func ::= TIMEZONE",
|
|
/* 451 */ "noarg_func ::= DATABASE",
|
|
/* 452 */ "noarg_func ::= CLIENT_VERSION",
|
|
/* 453 */ "noarg_func ::= SERVER_VERSION",
|
|
/* 454 */ "noarg_func ::= SERVER_STATUS",
|
|
/* 455 */ "noarg_func ::= CURRENT_USER",
|
|
/* 456 */ "noarg_func ::= USER",
|
|
/* 457 */ "star_func ::= COUNT",
|
|
/* 458 */ "star_func ::= FIRST",
|
|
/* 459 */ "star_func ::= LAST",
|
|
/* 460 */ "star_func ::= LAST_ROW",
|
|
/* 461 */ "star_func_para_list ::= NK_STAR",
|
|
/* 462 */ "star_func_para_list ::= other_para_list",
|
|
/* 463 */ "other_para_list ::= star_func_para",
|
|
/* 464 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
/* 465 */ "star_func_para ::= expr_or_subquery",
|
|
/* 466 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
/* 467 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
/* 468 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
/* 469 */ "when_then_list ::= when_then_expr",
|
|
/* 470 */ "when_then_list ::= when_then_list when_then_expr",
|
|
/* 471 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
/* 472 */ "case_when_else_opt ::=",
|
|
/* 473 */ "case_when_else_opt ::= ELSE common_expression",
|
|
/* 474 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
/* 475 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 476 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 477 */ "predicate ::= expr_or_subquery IS NULL",
|
|
/* 478 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
/* 479 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
/* 480 */ "compare_op ::= NK_LT",
|
|
/* 481 */ "compare_op ::= NK_GT",
|
|
/* 482 */ "compare_op ::= NK_LE",
|
|
/* 483 */ "compare_op ::= NK_GE",
|
|
/* 484 */ "compare_op ::= NK_NE",
|
|
/* 485 */ "compare_op ::= NK_EQ",
|
|
/* 486 */ "compare_op ::= LIKE",
|
|
/* 487 */ "compare_op ::= NOT LIKE",
|
|
/* 488 */ "compare_op ::= MATCH",
|
|
/* 489 */ "compare_op ::= NMATCH",
|
|
/* 490 */ "compare_op ::= CONTAINS",
|
|
/* 491 */ "in_op ::= IN",
|
|
/* 492 */ "in_op ::= NOT IN",
|
|
/* 493 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
/* 494 */ "boolean_value_expression ::= boolean_primary",
|
|
/* 495 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
/* 496 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
/* 497 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
/* 498 */ "boolean_primary ::= predicate",
|
|
/* 499 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
/* 500 */ "common_expression ::= expr_or_subquery",
|
|
/* 501 */ "common_expression ::= boolean_value_expression",
|
|
/* 502 */ "from_clause_opt ::=",
|
|
/* 503 */ "from_clause_opt ::= FROM table_reference_list",
|
|
/* 504 */ "table_reference_list ::= table_reference",
|
|
/* 505 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
/* 506 */ "table_reference ::= table_primary",
|
|
/* 507 */ "table_reference ::= joined_table",
|
|
/* 508 */ "table_primary ::= table_name alias_opt",
|
|
/* 509 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
/* 510 */ "table_primary ::= subquery alias_opt",
|
|
/* 511 */ "table_primary ::= parenthesized_joined_table",
|
|
/* 512 */ "alias_opt ::=",
|
|
/* 513 */ "alias_opt ::= table_alias",
|
|
/* 514 */ "alias_opt ::= AS table_alias",
|
|
/* 515 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
/* 516 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
/* 517 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
|
|
/* 518 */ "join_type ::=",
|
|
/* 519 */ "join_type ::= INNER",
|
|
/* 520 */ "query_specification ::= SELECT hint_list tag_mode_opt 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",
|
|
/* 521 */ "hint_list ::=",
|
|
/* 522 */ "hint_list ::= NK_HINT",
|
|
/* 523 */ "tag_mode_opt ::=",
|
|
/* 524 */ "tag_mode_opt ::= TAGS",
|
|
/* 525 */ "set_quantifier_opt ::=",
|
|
/* 526 */ "set_quantifier_opt ::= DISTINCT",
|
|
/* 527 */ "set_quantifier_opt ::= ALL",
|
|
/* 528 */ "select_list ::= select_item",
|
|
/* 529 */ "select_list ::= select_list NK_COMMA select_item",
|
|
/* 530 */ "select_item ::= NK_STAR",
|
|
/* 531 */ "select_item ::= common_expression",
|
|
/* 532 */ "select_item ::= common_expression column_alias",
|
|
/* 533 */ "select_item ::= common_expression AS column_alias",
|
|
/* 534 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
/* 535 */ "where_clause_opt ::=",
|
|
/* 536 */ "where_clause_opt ::= WHERE search_condition",
|
|
/* 537 */ "partition_by_clause_opt ::=",
|
|
/* 538 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
/* 539 */ "partition_list ::= partition_item",
|
|
/* 540 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
/* 541 */ "partition_item ::= expr_or_subquery",
|
|
/* 542 */ "partition_item ::= expr_or_subquery column_alias",
|
|
/* 543 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
/* 544 */ "twindow_clause_opt ::=",
|
|
/* 545 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
|
|
/* 546 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
/* 547 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 548 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 549 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
|
/* 550 */ "sliding_opt ::=",
|
|
/* 551 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
|
|
/* 552 */ "fill_opt ::=",
|
|
/* 553 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
/* 554 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
/* 555 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
/* 556 */ "fill_mode ::= NONE",
|
|
/* 557 */ "fill_mode ::= PREV",
|
|
/* 558 */ "fill_mode ::= NULL",
|
|
/* 559 */ "fill_mode ::= NULL_F",
|
|
/* 560 */ "fill_mode ::= LINEAR",
|
|
/* 561 */ "fill_mode ::= NEXT",
|
|
/* 562 */ "group_by_clause_opt ::=",
|
|
/* 563 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
/* 564 */ "group_by_list ::= expr_or_subquery",
|
|
/* 565 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
/* 566 */ "having_clause_opt ::=",
|
|
/* 567 */ "having_clause_opt ::= HAVING search_condition",
|
|
/* 568 */ "range_opt ::=",
|
|
/* 569 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
/* 570 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
/* 571 */ "every_opt ::=",
|
|
/* 572 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
/* 573 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
/* 574 */ "query_simple ::= query_specification",
|
|
/* 575 */ "query_simple ::= union_query_expression",
|
|
/* 576 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
/* 577 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
/* 578 */ "query_simple_or_subquery ::= query_simple",
|
|
/* 579 */ "query_simple_or_subquery ::= subquery",
|
|
/* 580 */ "query_or_subquery ::= query_expression",
|
|
/* 581 */ "query_or_subquery ::= subquery",
|
|
/* 582 */ "order_by_clause_opt ::=",
|
|
/* 583 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
/* 584 */ "slimit_clause_opt ::=",
|
|
/* 585 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
/* 586 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
/* 587 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 588 */ "limit_clause_opt ::=",
|
|
/* 589 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
/* 590 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
/* 591 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 592 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
/* 593 */ "subquery ::= NK_LP subquery NK_RP",
|
|
/* 594 */ "search_condition ::= common_expression",
|
|
/* 595 */ "sort_specification_list ::= sort_specification",
|
|
/* 596 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
/* 597 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
/* 598 */ "ordering_specification_opt ::=",
|
|
/* 599 */ "ordering_specification_opt ::= ASC",
|
|
/* 600 */ "ordering_specification_opt ::= DESC",
|
|
/* 601 */ "null_ordering_opt ::=",
|
|
/* 602 */ "null_ordering_opt ::= NULLS FIRST",
|
|
/* 603 */ "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 382: /* signed_literal */
|
|
case 383: /* create_subtable_clause */
|
|
case 386: /* drop_table_clause */
|
|
case 388: /* column_def */
|
|
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 468: /* range_opt */
|
|
case 469: /* every_opt */
|
|
case 470: /* fill_opt */
|
|
case 471: /* twindow_clause_opt */
|
|
case 473: /* having_clause_opt */
|
|
case 474: /* select_item */
|
|
case 476: /* partition_item */
|
|
case 479: /* query_expression */
|
|
case 480: /* query_simple */
|
|
case 482: /* slimit_clause_opt */
|
|
case 483: /* limit_clause_opt */
|
|
case 484: /* union_query_expression */
|
|
case 485: /* query_simple_or_subquery */
|
|
case 487: /* sort_specification */
|
|
{
|
|
nodesDestroyNode((yypminor->yy952));
|
|
}
|
|
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 380: /* 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: /* tag_mode_opt */
|
|
case 465: /* 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 466: /* select_list */
|
|
case 467: /* partition_by_clause_opt */
|
|
case 472: /* group_by_clause_opt */
|
|
case 475: /* partition_list */
|
|
case 478: /* group_by_list */
|
|
case 481: /* order_by_clause_opt */
|
|
case 486: /* sort_specification_list */
|
|
{
|
|
nodesDestroyList((yypminor->yy824));
|
|
}
|
|
break;
|
|
case 369: /* alter_db_option */
|
|
case 391: /* alter_table_option */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 381: /* type_name */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 448: /* compare_op */
|
|
case 449: /* in_op */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 461: /* join_type */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 477: /* fill_mode */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 488: /* ordering_specification_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 489: /* 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<(int)(sizeof(yy_action)/sizeof(yy_action[0])) );
|
|
return yy_action[i];
|
|
}
|
|
}while(1);
|
|
}
|
|
|
|
/*
|
|
** Find the appropriate action for a parser given the non-terminal
|
|
** look-ahead token iLookAhead.
|
|
*/
|
|
static YYACTIONTYPE yy_find_reduce_action(
|
|
YYACTIONTYPE stateno, /* Current state number */
|
|
YYCODETYPE iLookAhead /* The look-ahead token */
|
|
){
|
|
int i;
|
|
#ifdef YYERRORSYMBOL
|
|
if( stateno>YY_REDUCE_COUNT ){
|
|
return yy_default[stateno];
|
|
}
|
|
#else
|
|
assert( stateno<=YY_REDUCE_COUNT );
|
|
#endif
|
|
i = yy_reduce_ofst[stateno];
|
|
assert( iLookAhead!=YYNOCODE );
|
|
i += iLookAhead;
|
|
#ifdef YYERRORSYMBOL
|
|
if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){
|
|
return yy_default[stateno];
|
|
}
|
|
#else
|
|
assert( i>=0 && 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_name type_name */
|
|
378, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
378, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
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_name type_name */
|
|
378, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
378, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
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 */
|
|
388, /* (181) column_def ::= column_name type_name */
|
|
381, /* (182) type_name ::= BOOL */
|
|
381, /* (183) type_name ::= TINYINT */
|
|
381, /* (184) type_name ::= SMALLINT */
|
|
381, /* (185) type_name ::= INT */
|
|
381, /* (186) type_name ::= INTEGER */
|
|
381, /* (187) type_name ::= BIGINT */
|
|
381, /* (188) type_name ::= FLOAT */
|
|
381, /* (189) type_name ::= DOUBLE */
|
|
381, /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
381, /* (191) type_name ::= TIMESTAMP */
|
|
381, /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
381, /* (193) type_name ::= TINYINT UNSIGNED */
|
|
381, /* (194) type_name ::= SMALLINT UNSIGNED */
|
|
381, /* (195) type_name ::= INT UNSIGNED */
|
|
381, /* (196) type_name ::= BIGINT UNSIGNED */
|
|
381, /* (197) type_name ::= JSON */
|
|
381, /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
381, /* (199) type_name ::= MEDIUMBLOB */
|
|
381, /* (200) type_name ::= BLOB */
|
|
381, /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
381, /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
381, /* (203) type_name ::= DECIMAL */
|
|
381, /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
381, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
373, /* (206) tags_def_opt ::= */
|
|
373, /* (207) tags_def_opt ::= tags_def */
|
|
376, /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
374, /* (209) table_options ::= */
|
|
374, /* (210) table_options ::= table_options COMMENT NK_STRING */
|
|
374, /* (211) table_options ::= table_options MAX_DELAY duration_list */
|
|
374, /* (212) table_options ::= table_options WATERMARK duration_list */
|
|
374, /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
374, /* (214) table_options ::= table_options TTL NK_INTEGER */
|
|
374, /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
374, /* (216) table_options ::= table_options DELETE_MARK duration_list */
|
|
379, /* (217) alter_table_options ::= alter_table_option */
|
|
379, /* (218) alter_table_options ::= alter_table_options alter_table_option */
|
|
391, /* (219) alter_table_option ::= COMMENT NK_STRING */
|
|
391, /* (220) alter_table_option ::= TTL NK_INTEGER */
|
|
389, /* (221) duration_list ::= duration_literal */
|
|
389, /* (222) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
390, /* (223) rollup_func_list ::= rollup_func_name */
|
|
390, /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
393, /* (225) rollup_func_name ::= function_name */
|
|
393, /* (226) rollup_func_name ::= FIRST */
|
|
393, /* (227) rollup_func_name ::= LAST */
|
|
387, /* (228) col_name_list ::= col_name */
|
|
387, /* (229) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
395, /* (230) col_name ::= column_name */
|
|
339, /* (231) cmd ::= SHOW DNODES */
|
|
339, /* (232) cmd ::= SHOW USERS */
|
|
339, /* (233) cmd ::= SHOW USER PRIVILEGES */
|
|
339, /* (234) cmd ::= SHOW DATABASES */
|
|
339, /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
|
|
339, /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
339, /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
339, /* (238) cmd ::= SHOW MNODES */
|
|
339, /* (239) cmd ::= SHOW QNODES */
|
|
339, /* (240) cmd ::= SHOW FUNCTIONS */
|
|
339, /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
339, /* (242) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
339, /* (243) cmd ::= SHOW STREAMS */
|
|
339, /* (244) cmd ::= SHOW ACCOUNTS */
|
|
339, /* (245) cmd ::= SHOW APPS */
|
|
339, /* (246) cmd ::= SHOW CONNECTIONS */
|
|
339, /* (247) cmd ::= SHOW LICENCES */
|
|
339, /* (248) cmd ::= SHOW GRANTS */
|
|
339, /* (249) cmd ::= SHOW CREATE DATABASE db_name */
|
|
339, /* (250) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
339, /* (251) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
339, /* (252) cmd ::= SHOW QUERIES */
|
|
339, /* (253) cmd ::= SHOW SCORES */
|
|
339, /* (254) cmd ::= SHOW TOPICS */
|
|
339, /* (255) cmd ::= SHOW VARIABLES */
|
|
339, /* (256) cmd ::= SHOW CLUSTER VARIABLES */
|
|
339, /* (257) cmd ::= SHOW LOCAL VARIABLES */
|
|
339, /* (258) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
339, /* (259) cmd ::= SHOW BNODES */
|
|
339, /* (260) cmd ::= SHOW SNODES */
|
|
339, /* (261) cmd ::= SHOW CLUSTER */
|
|
339, /* (262) cmd ::= SHOW TRANSACTIONS */
|
|
339, /* (263) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
339, /* (264) cmd ::= SHOW CONSUMERS */
|
|
339, /* (265) cmd ::= SHOW SUBSCRIPTIONS */
|
|
339, /* (266) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
339, /* (267) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
339, /* (268) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
339, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
339, /* (270) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
339, /* (271) cmd ::= SHOW VNODES */
|
|
339, /* (272) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
339, /* (273) cmd ::= SHOW CLUSTER ALIVE */
|
|
396, /* (274) db_name_cond_opt ::= */
|
|
396, /* (275) db_name_cond_opt ::= db_name NK_DOT */
|
|
397, /* (276) like_pattern_opt ::= */
|
|
397, /* (277) like_pattern_opt ::= LIKE NK_STRING */
|
|
398, /* (278) table_name_cond ::= table_name */
|
|
399, /* (279) from_db_opt ::= */
|
|
399, /* (280) from_db_opt ::= FROM db_name */
|
|
400, /* (281) tag_list_opt ::= */
|
|
400, /* (282) tag_list_opt ::= tag_item */
|
|
400, /* (283) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
401, /* (284) tag_item ::= TBNAME */
|
|
401, /* (285) tag_item ::= QTAGS */
|
|
401, /* (286) tag_item ::= column_name */
|
|
401, /* (287) tag_item ::= column_name column_alias */
|
|
401, /* (288) tag_item ::= column_name AS column_alias */
|
|
339, /* (289) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
|
|
339, /* (290) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
339, /* (291) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
403, /* (292) full_index_name ::= index_name */
|
|
403, /* (293) full_index_name ::= db_name NK_DOT index_name */
|
|
404, /* (294) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
404, /* (295) 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, /* (296) func_list ::= func */
|
|
406, /* (297) func_list ::= func_list NK_COMMA func */
|
|
409, /* (298) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
410, /* (299) sma_func_name ::= function_name */
|
|
410, /* (300) sma_func_name ::= COUNT */
|
|
410, /* (301) sma_func_name ::= FIRST */
|
|
410, /* (302) sma_func_name ::= LAST */
|
|
410, /* (303) sma_func_name ::= LAST_ROW */
|
|
408, /* (304) sma_stream_opt ::= */
|
|
408, /* (305) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
408, /* (306) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
408, /* (307) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
411, /* (308) with_meta ::= AS */
|
|
411, /* (309) with_meta ::= WITH META AS */
|
|
411, /* (310) with_meta ::= ONLY META AS */
|
|
339, /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
339, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
339, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
339, /* (314) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
339, /* (315) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
339, /* (316) cmd ::= DESC full_table_name */
|
|
339, /* (317) cmd ::= DESCRIBE full_table_name */
|
|
339, /* (318) cmd ::= RESET QUERY CACHE */
|
|
339, /* (319) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
339, /* (320) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
415, /* (321) analyze_opt ::= */
|
|
415, /* (322) analyze_opt ::= ANALYZE */
|
|
416, /* (323) explain_options ::= */
|
|
416, /* (324) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
416, /* (325) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
339, /* (326) 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, /* (327) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
419, /* (328) agg_func_opt ::= */
|
|
419, /* (329) agg_func_opt ::= AGGREGATE */
|
|
420, /* (330) bufsize_opt ::= */
|
|
420, /* (331) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
421, /* (332) language_opt ::= */
|
|
421, /* (333) language_opt ::= LANGUAGE NK_STRING */
|
|
418, /* (334) or_replace_opt ::= */
|
|
418, /* (335) or_replace_opt ::= OR REPLACE */
|
|
339, /* (336) 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, /* (337) cmd ::= DROP STREAM exists_opt stream_name */
|
|
339, /* (338) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
339, /* (339) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
424, /* (340) col_list_opt ::= */
|
|
424, /* (341) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
425, /* (342) tag_def_or_ref_opt ::= */
|
|
425, /* (343) tag_def_or_ref_opt ::= tags_def */
|
|
425, /* (344) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
423, /* (345) stream_options ::= */
|
|
423, /* (346) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
423, /* (347) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
423, /* (348) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
423, /* (349) stream_options ::= stream_options WATERMARK duration_literal */
|
|
423, /* (350) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
423, /* (351) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
423, /* (352) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
423, /* (353) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
426, /* (354) subtable_opt ::= */
|
|
426, /* (355) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
427, /* (356) ignore_opt ::= */
|
|
427, /* (357) ignore_opt ::= IGNORE UNTREATED */
|
|
339, /* (358) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
339, /* (359) cmd ::= KILL QUERY NK_STRING */
|
|
339, /* (360) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
339, /* (361) cmd ::= BALANCE VGROUP */
|
|
339, /* (362) cmd ::= BALANCE VGROUP LEADER */
|
|
339, /* (363) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
339, /* (364) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
339, /* (365) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
429, /* (366) dnode_list ::= DNODE NK_INTEGER */
|
|
429, /* (367) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
339, /* (368) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
339, /* (369) cmd ::= query_or_subquery */
|
|
339, /* (370) cmd ::= insert_query */
|
|
417, /* (371) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
417, /* (372) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
342, /* (373) literal ::= NK_INTEGER */
|
|
342, /* (374) literal ::= NK_FLOAT */
|
|
342, /* (375) literal ::= NK_STRING */
|
|
342, /* (376) literal ::= NK_BOOL */
|
|
342, /* (377) literal ::= TIMESTAMP NK_STRING */
|
|
342, /* (378) literal ::= duration_literal */
|
|
342, /* (379) literal ::= NULL */
|
|
342, /* (380) literal ::= NK_QUESTION */
|
|
392, /* (381) duration_literal ::= NK_VARIABLE */
|
|
368, /* (382) signed ::= NK_INTEGER */
|
|
368, /* (383) signed ::= NK_PLUS NK_INTEGER */
|
|
368, /* (384) signed ::= NK_MINUS NK_INTEGER */
|
|
368, /* (385) signed ::= NK_FLOAT */
|
|
368, /* (386) signed ::= NK_PLUS NK_FLOAT */
|
|
368, /* (387) signed ::= NK_MINUS NK_FLOAT */
|
|
382, /* (388) signed_literal ::= signed */
|
|
382, /* (389) signed_literal ::= NK_STRING */
|
|
382, /* (390) signed_literal ::= NK_BOOL */
|
|
382, /* (391) signed_literal ::= TIMESTAMP NK_STRING */
|
|
382, /* (392) signed_literal ::= duration_literal */
|
|
382, /* (393) signed_literal ::= NULL */
|
|
382, /* (394) signed_literal ::= literal_func */
|
|
382, /* (395) signed_literal ::= NK_QUESTION */
|
|
431, /* (396) literal_list ::= signed_literal */
|
|
431, /* (397) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
351, /* (398) db_name ::= NK_ID */
|
|
352, /* (399) table_name ::= NK_ID */
|
|
380, /* (400) column_name ::= NK_ID */
|
|
394, /* (401) function_name ::= NK_ID */
|
|
432, /* (402) table_alias ::= NK_ID */
|
|
402, /* (403) column_alias ::= NK_ID */
|
|
344, /* (404) user_name ::= NK_ID */
|
|
353, /* (405) topic_name ::= NK_ID */
|
|
422, /* (406) stream_name ::= NK_ID */
|
|
414, /* (407) cgroup_name ::= NK_ID */
|
|
405, /* (408) index_name ::= NK_ID */
|
|
433, /* (409) expr_or_subquery ::= expression */
|
|
428, /* (410) expression ::= literal */
|
|
428, /* (411) expression ::= pseudo_column */
|
|
428, /* (412) expression ::= column_reference */
|
|
428, /* (413) expression ::= function_expression */
|
|
428, /* (414) expression ::= case_when_expression */
|
|
428, /* (415) expression ::= NK_LP expression NK_RP */
|
|
428, /* (416) expression ::= NK_PLUS expr_or_subquery */
|
|
428, /* (417) expression ::= NK_MINUS expr_or_subquery */
|
|
428, /* (418) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
428, /* (419) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
428, /* (420) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
428, /* (421) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
428, /* (422) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
428, /* (423) expression ::= column_reference NK_ARROW NK_STRING */
|
|
428, /* (424) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
428, /* (425) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
385, /* (426) expression_list ::= expr_or_subquery */
|
|
385, /* (427) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
435, /* (428) column_reference ::= column_name */
|
|
435, /* (429) column_reference ::= table_name NK_DOT column_name */
|
|
434, /* (430) pseudo_column ::= ROWTS */
|
|
434, /* (431) pseudo_column ::= TBNAME */
|
|
434, /* (432) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
434, /* (433) pseudo_column ::= QSTART */
|
|
434, /* (434) pseudo_column ::= QEND */
|
|
434, /* (435) pseudo_column ::= QDURATION */
|
|
434, /* (436) pseudo_column ::= WSTART */
|
|
434, /* (437) pseudo_column ::= WEND */
|
|
434, /* (438) pseudo_column ::= WDURATION */
|
|
434, /* (439) pseudo_column ::= IROWTS */
|
|
434, /* (440) pseudo_column ::= ISFILLED */
|
|
434, /* (441) pseudo_column ::= QTAGS */
|
|
436, /* (442) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
436, /* (443) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
436, /* (444) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
436, /* (445) function_expression ::= literal_func */
|
|
430, /* (446) literal_func ::= noarg_func NK_LP NK_RP */
|
|
430, /* (447) literal_func ::= NOW */
|
|
440, /* (448) noarg_func ::= NOW */
|
|
440, /* (449) noarg_func ::= TODAY */
|
|
440, /* (450) noarg_func ::= TIMEZONE */
|
|
440, /* (451) noarg_func ::= DATABASE */
|
|
440, /* (452) noarg_func ::= CLIENT_VERSION */
|
|
440, /* (453) noarg_func ::= SERVER_VERSION */
|
|
440, /* (454) noarg_func ::= SERVER_STATUS */
|
|
440, /* (455) noarg_func ::= CURRENT_USER */
|
|
440, /* (456) noarg_func ::= USER */
|
|
438, /* (457) star_func ::= COUNT */
|
|
438, /* (458) star_func ::= FIRST */
|
|
438, /* (459) star_func ::= LAST */
|
|
438, /* (460) star_func ::= LAST_ROW */
|
|
439, /* (461) star_func_para_list ::= NK_STAR */
|
|
439, /* (462) star_func_para_list ::= other_para_list */
|
|
441, /* (463) other_para_list ::= star_func_para */
|
|
441, /* (464) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
442, /* (465) star_func_para ::= expr_or_subquery */
|
|
442, /* (466) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
437, /* (467) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
437, /* (468) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
443, /* (469) when_then_list ::= when_then_expr */
|
|
443, /* (470) when_then_list ::= when_then_list when_then_expr */
|
|
446, /* (471) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
444, /* (472) case_when_else_opt ::= */
|
|
444, /* (473) case_when_else_opt ::= ELSE common_expression */
|
|
447, /* (474) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
447, /* (475) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
447, /* (476) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
447, /* (477) predicate ::= expr_or_subquery IS NULL */
|
|
447, /* (478) predicate ::= expr_or_subquery IS NOT NULL */
|
|
447, /* (479) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
448, /* (480) compare_op ::= NK_LT */
|
|
448, /* (481) compare_op ::= NK_GT */
|
|
448, /* (482) compare_op ::= NK_LE */
|
|
448, /* (483) compare_op ::= NK_GE */
|
|
448, /* (484) compare_op ::= NK_NE */
|
|
448, /* (485) compare_op ::= NK_EQ */
|
|
448, /* (486) compare_op ::= LIKE */
|
|
448, /* (487) compare_op ::= NOT LIKE */
|
|
448, /* (488) compare_op ::= MATCH */
|
|
448, /* (489) compare_op ::= NMATCH */
|
|
448, /* (490) compare_op ::= CONTAINS */
|
|
449, /* (491) in_op ::= IN */
|
|
449, /* (492) in_op ::= NOT IN */
|
|
450, /* (493) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
451, /* (494) boolean_value_expression ::= boolean_primary */
|
|
451, /* (495) boolean_value_expression ::= NOT boolean_primary */
|
|
451, /* (496) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
451, /* (497) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
452, /* (498) boolean_primary ::= predicate */
|
|
452, /* (499) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
445, /* (500) common_expression ::= expr_or_subquery */
|
|
445, /* (501) common_expression ::= boolean_value_expression */
|
|
453, /* (502) from_clause_opt ::= */
|
|
453, /* (503) from_clause_opt ::= FROM table_reference_list */
|
|
454, /* (504) table_reference_list ::= table_reference */
|
|
454, /* (505) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
455, /* (506) table_reference ::= table_primary */
|
|
455, /* (507) table_reference ::= joined_table */
|
|
456, /* (508) table_primary ::= table_name alias_opt */
|
|
456, /* (509) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
456, /* (510) table_primary ::= subquery alias_opt */
|
|
456, /* (511) table_primary ::= parenthesized_joined_table */
|
|
458, /* (512) alias_opt ::= */
|
|
458, /* (513) alias_opt ::= table_alias */
|
|
458, /* (514) alias_opt ::= AS table_alias */
|
|
460, /* (515) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
460, /* (516) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
457, /* (517) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
461, /* (518) join_type ::= */
|
|
461, /* (519) join_type ::= INNER */
|
|
462, /* (520) query_specification ::= SELECT hint_list tag_mode_opt 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, /* (521) hint_list ::= */
|
|
463, /* (522) hint_list ::= NK_HINT */
|
|
464, /* (523) tag_mode_opt ::= */
|
|
464, /* (524) tag_mode_opt ::= TAGS */
|
|
465, /* (525) set_quantifier_opt ::= */
|
|
465, /* (526) set_quantifier_opt ::= DISTINCT */
|
|
465, /* (527) set_quantifier_opt ::= ALL */
|
|
466, /* (528) select_list ::= select_item */
|
|
466, /* (529) select_list ::= select_list NK_COMMA select_item */
|
|
474, /* (530) select_item ::= NK_STAR */
|
|
474, /* (531) select_item ::= common_expression */
|
|
474, /* (532) select_item ::= common_expression column_alias */
|
|
474, /* (533) select_item ::= common_expression AS column_alias */
|
|
474, /* (534) select_item ::= table_name NK_DOT NK_STAR */
|
|
413, /* (535) where_clause_opt ::= */
|
|
413, /* (536) where_clause_opt ::= WHERE search_condition */
|
|
467, /* (537) partition_by_clause_opt ::= */
|
|
467, /* (538) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
475, /* (539) partition_list ::= partition_item */
|
|
475, /* (540) partition_list ::= partition_list NK_COMMA partition_item */
|
|
476, /* (541) partition_item ::= expr_or_subquery */
|
|
476, /* (542) partition_item ::= expr_or_subquery column_alias */
|
|
476, /* (543) partition_item ::= expr_or_subquery AS column_alias */
|
|
471, /* (544) twindow_clause_opt ::= */
|
|
471, /* (545) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
471, /* (546) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
471, /* (547) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
471, /* (548) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
471, /* (549) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
407, /* (550) sliding_opt ::= */
|
|
407, /* (551) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
|
|
470, /* (552) fill_opt ::= */
|
|
470, /* (553) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
470, /* (554) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
470, /* (555) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
477, /* (556) fill_mode ::= NONE */
|
|
477, /* (557) fill_mode ::= PREV */
|
|
477, /* (558) fill_mode ::= NULL */
|
|
477, /* (559) fill_mode ::= NULL_F */
|
|
477, /* (560) fill_mode ::= LINEAR */
|
|
477, /* (561) fill_mode ::= NEXT */
|
|
472, /* (562) group_by_clause_opt ::= */
|
|
472, /* (563) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
478, /* (564) group_by_list ::= expr_or_subquery */
|
|
478, /* (565) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
473, /* (566) having_clause_opt ::= */
|
|
473, /* (567) having_clause_opt ::= HAVING search_condition */
|
|
468, /* (568) range_opt ::= */
|
|
468, /* (569) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
468, /* (570) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
469, /* (571) every_opt ::= */
|
|
469, /* (572) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
479, /* (573) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
480, /* (574) query_simple ::= query_specification */
|
|
480, /* (575) query_simple ::= union_query_expression */
|
|
484, /* (576) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
484, /* (577) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
485, /* (578) query_simple_or_subquery ::= query_simple */
|
|
485, /* (579) query_simple_or_subquery ::= subquery */
|
|
412, /* (580) query_or_subquery ::= query_expression */
|
|
412, /* (581) query_or_subquery ::= subquery */
|
|
481, /* (582) order_by_clause_opt ::= */
|
|
481, /* (583) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
482, /* (584) slimit_clause_opt ::= */
|
|
482, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
482, /* (586) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
482, /* (587) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
483, /* (588) limit_clause_opt ::= */
|
|
483, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
483, /* (590) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
483, /* (591) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
459, /* (592) subquery ::= NK_LP query_expression NK_RP */
|
|
459, /* (593) subquery ::= NK_LP subquery NK_RP */
|
|
354, /* (594) search_condition ::= common_expression */
|
|
486, /* (595) sort_specification_list ::= sort_specification */
|
|
486, /* (596) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
487, /* (597) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
488, /* (598) ordering_specification_opt ::= */
|
|
488, /* (599) ordering_specification_opt ::= ASC */
|
|
488, /* (600) ordering_specification_opt ::= DESC */
|
|
489, /* (601) null_ordering_opt ::= */
|
|
489, /* (602) null_ordering_opt ::= NULLS FIRST */
|
|
489, /* (603) 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 */
|
|
-5, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
-4, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
-5, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
-5, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
-5, /* (164) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
-4, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
-5, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
-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 */
|
|
-1, /* (182) type_name ::= BOOL */
|
|
-1, /* (183) type_name ::= TINYINT */
|
|
-1, /* (184) type_name ::= SMALLINT */
|
|
-1, /* (185) type_name ::= INT */
|
|
-1, /* (186) type_name ::= INTEGER */
|
|
-1, /* (187) type_name ::= BIGINT */
|
|
-1, /* (188) type_name ::= FLOAT */
|
|
-1, /* (189) type_name ::= DOUBLE */
|
|
-4, /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (191) type_name ::= TIMESTAMP */
|
|
-4, /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
-2, /* (193) type_name ::= TINYINT UNSIGNED */
|
|
-2, /* (194) type_name ::= SMALLINT UNSIGNED */
|
|
-2, /* (195) type_name ::= INT UNSIGNED */
|
|
-2, /* (196) type_name ::= BIGINT UNSIGNED */
|
|
-1, /* (197) type_name ::= JSON */
|
|
-4, /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (199) type_name ::= MEDIUMBLOB */
|
|
-1, /* (200) type_name ::= BLOB */
|
|
-4, /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
-4, /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (203) type_name ::= DECIMAL */
|
|
-4, /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
-6, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
0, /* (206) tags_def_opt ::= */
|
|
-1, /* (207) tags_def_opt ::= tags_def */
|
|
-4, /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
0, /* (209) table_options ::= */
|
|
-3, /* (210) table_options ::= table_options COMMENT NK_STRING */
|
|
-3, /* (211) table_options ::= table_options MAX_DELAY duration_list */
|
|
-3, /* (212) table_options ::= table_options WATERMARK duration_list */
|
|
-5, /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
-3, /* (214) table_options ::= table_options TTL NK_INTEGER */
|
|
-5, /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
-3, /* (216) table_options ::= table_options DELETE_MARK duration_list */
|
|
-1, /* (217) alter_table_options ::= alter_table_option */
|
|
-2, /* (218) alter_table_options ::= alter_table_options alter_table_option */
|
|
-2, /* (219) alter_table_option ::= COMMENT NK_STRING */
|
|
-2, /* (220) alter_table_option ::= TTL NK_INTEGER */
|
|
-1, /* (221) duration_list ::= duration_literal */
|
|
-3, /* (222) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
-1, /* (223) rollup_func_list ::= rollup_func_name */
|
|
-3, /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
-1, /* (225) rollup_func_name ::= function_name */
|
|
-1, /* (226) rollup_func_name ::= FIRST */
|
|
-1, /* (227) rollup_func_name ::= LAST */
|
|
-1, /* (228) col_name_list ::= col_name */
|
|
-3, /* (229) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
-1, /* (230) col_name ::= column_name */
|
|
-2, /* (231) cmd ::= SHOW DNODES */
|
|
-2, /* (232) cmd ::= SHOW USERS */
|
|
-3, /* (233) cmd ::= SHOW USER PRIVILEGES */
|
|
-2, /* (234) cmd ::= SHOW DATABASES */
|
|
-4, /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
|
|
-4, /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
-3, /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
-2, /* (238) cmd ::= SHOW MNODES */
|
|
-2, /* (239) cmd ::= SHOW QNODES */
|
|
-2, /* (240) cmd ::= SHOW FUNCTIONS */
|
|
-5, /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
-6, /* (242) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
-2, /* (243) cmd ::= SHOW STREAMS */
|
|
-2, /* (244) cmd ::= SHOW ACCOUNTS */
|
|
-2, /* (245) cmd ::= SHOW APPS */
|
|
-2, /* (246) cmd ::= SHOW CONNECTIONS */
|
|
-2, /* (247) cmd ::= SHOW LICENCES */
|
|
-2, /* (248) cmd ::= SHOW GRANTS */
|
|
-4, /* (249) cmd ::= SHOW CREATE DATABASE db_name */
|
|
-4, /* (250) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
-4, /* (251) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
-2, /* (252) cmd ::= SHOW QUERIES */
|
|
-2, /* (253) cmd ::= SHOW SCORES */
|
|
-2, /* (254) cmd ::= SHOW TOPICS */
|
|
-2, /* (255) cmd ::= SHOW VARIABLES */
|
|
-3, /* (256) cmd ::= SHOW CLUSTER VARIABLES */
|
|
-3, /* (257) cmd ::= SHOW LOCAL VARIABLES */
|
|
-5, /* (258) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
-2, /* (259) cmd ::= SHOW BNODES */
|
|
-2, /* (260) cmd ::= SHOW SNODES */
|
|
-2, /* (261) cmd ::= SHOW CLUSTER */
|
|
-2, /* (262) cmd ::= SHOW TRANSACTIONS */
|
|
-4, /* (263) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
-2, /* (264) cmd ::= SHOW CONSUMERS */
|
|
-2, /* (265) cmd ::= SHOW SUBSCRIPTIONS */
|
|
-5, /* (266) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
-6, /* (267) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
-7, /* (268) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
-8, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
-5, /* (270) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
-2, /* (271) cmd ::= SHOW VNODES */
|
|
-3, /* (272) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
-3, /* (273) cmd ::= SHOW CLUSTER ALIVE */
|
|
0, /* (274) db_name_cond_opt ::= */
|
|
-2, /* (275) db_name_cond_opt ::= db_name NK_DOT */
|
|
0, /* (276) like_pattern_opt ::= */
|
|
-2, /* (277) like_pattern_opt ::= LIKE NK_STRING */
|
|
-1, /* (278) table_name_cond ::= table_name */
|
|
0, /* (279) from_db_opt ::= */
|
|
-2, /* (280) from_db_opt ::= FROM db_name */
|
|
0, /* (281) tag_list_opt ::= */
|
|
-1, /* (282) tag_list_opt ::= tag_item */
|
|
-3, /* (283) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
-1, /* (284) tag_item ::= TBNAME */
|
|
-1, /* (285) tag_item ::= QTAGS */
|
|
-1, /* (286) tag_item ::= column_name */
|
|
-2, /* (287) tag_item ::= column_name column_alias */
|
|
-3, /* (288) tag_item ::= column_name AS column_alias */
|
|
-8, /* (289) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
|
|
-9, /* (290) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
-4, /* (291) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
-1, /* (292) full_index_name ::= index_name */
|
|
-3, /* (293) full_index_name ::= db_name NK_DOT index_name */
|
|
-10, /* (294) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
-12, /* (295) 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, /* (296) func_list ::= func */
|
|
-3, /* (297) func_list ::= func_list NK_COMMA func */
|
|
-4, /* (298) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
-1, /* (299) sma_func_name ::= function_name */
|
|
-1, /* (300) sma_func_name ::= COUNT */
|
|
-1, /* (301) sma_func_name ::= FIRST */
|
|
-1, /* (302) sma_func_name ::= LAST */
|
|
-1, /* (303) sma_func_name ::= LAST_ROW */
|
|
0, /* (304) sma_stream_opt ::= */
|
|
-3, /* (305) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
-3, /* (306) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
-3, /* (307) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
-1, /* (308) with_meta ::= AS */
|
|
-3, /* (309) with_meta ::= WITH META AS */
|
|
-3, /* (310) with_meta ::= ONLY META AS */
|
|
-6, /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
-7, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
-8, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
-4, /* (314) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
-7, /* (315) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
-2, /* (316) cmd ::= DESC full_table_name */
|
|
-2, /* (317) cmd ::= DESCRIBE full_table_name */
|
|
-3, /* (318) cmd ::= RESET QUERY CACHE */
|
|
-4, /* (319) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
-4, /* (320) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
0, /* (321) analyze_opt ::= */
|
|
-1, /* (322) analyze_opt ::= ANALYZE */
|
|
0, /* (323) explain_options ::= */
|
|
-3, /* (324) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
-3, /* (325) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
-12, /* (326) 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, /* (327) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
0, /* (328) agg_func_opt ::= */
|
|
-1, /* (329) agg_func_opt ::= AGGREGATE */
|
|
0, /* (330) bufsize_opt ::= */
|
|
-2, /* (331) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
0, /* (332) language_opt ::= */
|
|
-2, /* (333) language_opt ::= LANGUAGE NK_STRING */
|
|
0, /* (334) or_replace_opt ::= */
|
|
-2, /* (335) or_replace_opt ::= OR REPLACE */
|
|
-12, /* (336) 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, /* (337) cmd ::= DROP STREAM exists_opt stream_name */
|
|
-4, /* (338) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
-5, /* (339) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
0, /* (340) col_list_opt ::= */
|
|
-3, /* (341) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
0, /* (342) tag_def_or_ref_opt ::= */
|
|
-1, /* (343) tag_def_or_ref_opt ::= tags_def */
|
|
-4, /* (344) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
0, /* (345) stream_options ::= */
|
|
-3, /* (346) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
-3, /* (347) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
-4, /* (348) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
-3, /* (349) stream_options ::= stream_options WATERMARK duration_literal */
|
|
-4, /* (350) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
-3, /* (351) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
-3, /* (352) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
-4, /* (353) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
0, /* (354) subtable_opt ::= */
|
|
-4, /* (355) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
0, /* (356) ignore_opt ::= */
|
|
-2, /* (357) ignore_opt ::= IGNORE UNTREATED */
|
|
-3, /* (358) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
-3, /* (359) cmd ::= KILL QUERY NK_STRING */
|
|
-3, /* (360) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
-2, /* (361) cmd ::= BALANCE VGROUP */
|
|
-3, /* (362) cmd ::= BALANCE VGROUP LEADER */
|
|
-4, /* (363) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
-4, /* (364) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
-3, /* (365) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
-2, /* (366) dnode_list ::= DNODE NK_INTEGER */
|
|
-3, /* (367) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
-4, /* (368) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
-1, /* (369) cmd ::= query_or_subquery */
|
|
-1, /* (370) cmd ::= insert_query */
|
|
-7, /* (371) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
-4, /* (372) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
-1, /* (373) literal ::= NK_INTEGER */
|
|
-1, /* (374) literal ::= NK_FLOAT */
|
|
-1, /* (375) literal ::= NK_STRING */
|
|
-1, /* (376) literal ::= NK_BOOL */
|
|
-2, /* (377) literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (378) literal ::= duration_literal */
|
|
-1, /* (379) literal ::= NULL */
|
|
-1, /* (380) literal ::= NK_QUESTION */
|
|
-1, /* (381) duration_literal ::= NK_VARIABLE */
|
|
-1, /* (382) signed ::= NK_INTEGER */
|
|
-2, /* (383) signed ::= NK_PLUS NK_INTEGER */
|
|
-2, /* (384) signed ::= NK_MINUS NK_INTEGER */
|
|
-1, /* (385) signed ::= NK_FLOAT */
|
|
-2, /* (386) signed ::= NK_PLUS NK_FLOAT */
|
|
-2, /* (387) signed ::= NK_MINUS NK_FLOAT */
|
|
-1, /* (388) signed_literal ::= signed */
|
|
-1, /* (389) signed_literal ::= NK_STRING */
|
|
-1, /* (390) signed_literal ::= NK_BOOL */
|
|
-2, /* (391) signed_literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (392) signed_literal ::= duration_literal */
|
|
-1, /* (393) signed_literal ::= NULL */
|
|
-1, /* (394) signed_literal ::= literal_func */
|
|
-1, /* (395) signed_literal ::= NK_QUESTION */
|
|
-1, /* (396) literal_list ::= signed_literal */
|
|
-3, /* (397) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
-1, /* (398) db_name ::= NK_ID */
|
|
-1, /* (399) table_name ::= NK_ID */
|
|
-1, /* (400) column_name ::= NK_ID */
|
|
-1, /* (401) function_name ::= NK_ID */
|
|
-1, /* (402) table_alias ::= NK_ID */
|
|
-1, /* (403) column_alias ::= NK_ID */
|
|
-1, /* (404) user_name ::= NK_ID */
|
|
-1, /* (405) topic_name ::= NK_ID */
|
|
-1, /* (406) stream_name ::= NK_ID */
|
|
-1, /* (407) cgroup_name ::= NK_ID */
|
|
-1, /* (408) index_name ::= NK_ID */
|
|
-1, /* (409) expr_or_subquery ::= expression */
|
|
-1, /* (410) expression ::= literal */
|
|
-1, /* (411) expression ::= pseudo_column */
|
|
-1, /* (412) expression ::= column_reference */
|
|
-1, /* (413) expression ::= function_expression */
|
|
-1, /* (414) expression ::= case_when_expression */
|
|
-3, /* (415) expression ::= NK_LP expression NK_RP */
|
|
-2, /* (416) expression ::= NK_PLUS expr_or_subquery */
|
|
-2, /* (417) expression ::= NK_MINUS expr_or_subquery */
|
|
-3, /* (418) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
-3, /* (419) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
-3, /* (420) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
-3, /* (421) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
-3, /* (422) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
-3, /* (423) expression ::= column_reference NK_ARROW NK_STRING */
|
|
-3, /* (424) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
-3, /* (425) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
-1, /* (426) expression_list ::= expr_or_subquery */
|
|
-3, /* (427) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
-1, /* (428) column_reference ::= column_name */
|
|
-3, /* (429) column_reference ::= table_name NK_DOT column_name */
|
|
-1, /* (430) pseudo_column ::= ROWTS */
|
|
-1, /* (431) pseudo_column ::= TBNAME */
|
|
-3, /* (432) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
-1, /* (433) pseudo_column ::= QSTART */
|
|
-1, /* (434) pseudo_column ::= QEND */
|
|
-1, /* (435) pseudo_column ::= QDURATION */
|
|
-1, /* (436) pseudo_column ::= WSTART */
|
|
-1, /* (437) pseudo_column ::= WEND */
|
|
-1, /* (438) pseudo_column ::= WDURATION */
|
|
-1, /* (439) pseudo_column ::= IROWTS */
|
|
-1, /* (440) pseudo_column ::= ISFILLED */
|
|
-1, /* (441) pseudo_column ::= QTAGS */
|
|
-4, /* (442) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
-4, /* (443) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
-6, /* (444) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
-1, /* (445) function_expression ::= literal_func */
|
|
-3, /* (446) literal_func ::= noarg_func NK_LP NK_RP */
|
|
-1, /* (447) literal_func ::= NOW */
|
|
-1, /* (448) noarg_func ::= NOW */
|
|
-1, /* (449) noarg_func ::= TODAY */
|
|
-1, /* (450) noarg_func ::= TIMEZONE */
|
|
-1, /* (451) noarg_func ::= DATABASE */
|
|
-1, /* (452) noarg_func ::= CLIENT_VERSION */
|
|
-1, /* (453) noarg_func ::= SERVER_VERSION */
|
|
-1, /* (454) noarg_func ::= SERVER_STATUS */
|
|
-1, /* (455) noarg_func ::= CURRENT_USER */
|
|
-1, /* (456) noarg_func ::= USER */
|
|
-1, /* (457) star_func ::= COUNT */
|
|
-1, /* (458) star_func ::= FIRST */
|
|
-1, /* (459) star_func ::= LAST */
|
|
-1, /* (460) star_func ::= LAST_ROW */
|
|
-1, /* (461) star_func_para_list ::= NK_STAR */
|
|
-1, /* (462) star_func_para_list ::= other_para_list */
|
|
-1, /* (463) other_para_list ::= star_func_para */
|
|
-3, /* (464) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
-1, /* (465) star_func_para ::= expr_or_subquery */
|
|
-3, /* (466) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
-4, /* (467) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
-5, /* (468) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
-1, /* (469) when_then_list ::= when_then_expr */
|
|
-2, /* (470) when_then_list ::= when_then_list when_then_expr */
|
|
-4, /* (471) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
0, /* (472) case_when_else_opt ::= */
|
|
-2, /* (473) case_when_else_opt ::= ELSE common_expression */
|
|
-3, /* (474) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
-5, /* (475) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-6, /* (476) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-3, /* (477) predicate ::= expr_or_subquery IS NULL */
|
|
-4, /* (478) predicate ::= expr_or_subquery IS NOT NULL */
|
|
-3, /* (479) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
-1, /* (480) compare_op ::= NK_LT */
|
|
-1, /* (481) compare_op ::= NK_GT */
|
|
-1, /* (482) compare_op ::= NK_LE */
|
|
-1, /* (483) compare_op ::= NK_GE */
|
|
-1, /* (484) compare_op ::= NK_NE */
|
|
-1, /* (485) compare_op ::= NK_EQ */
|
|
-1, /* (486) compare_op ::= LIKE */
|
|
-2, /* (487) compare_op ::= NOT LIKE */
|
|
-1, /* (488) compare_op ::= MATCH */
|
|
-1, /* (489) compare_op ::= NMATCH */
|
|
-1, /* (490) compare_op ::= CONTAINS */
|
|
-1, /* (491) in_op ::= IN */
|
|
-2, /* (492) in_op ::= NOT IN */
|
|
-3, /* (493) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
-1, /* (494) boolean_value_expression ::= boolean_primary */
|
|
-2, /* (495) boolean_value_expression ::= NOT boolean_primary */
|
|
-3, /* (496) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
-3, /* (497) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
-1, /* (498) boolean_primary ::= predicate */
|
|
-3, /* (499) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
-1, /* (500) common_expression ::= expr_or_subquery */
|
|
-1, /* (501) common_expression ::= boolean_value_expression */
|
|
0, /* (502) from_clause_opt ::= */
|
|
-2, /* (503) from_clause_opt ::= FROM table_reference_list */
|
|
-1, /* (504) table_reference_list ::= table_reference */
|
|
-3, /* (505) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
-1, /* (506) table_reference ::= table_primary */
|
|
-1, /* (507) table_reference ::= joined_table */
|
|
-2, /* (508) table_primary ::= table_name alias_opt */
|
|
-4, /* (509) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
-2, /* (510) table_primary ::= subquery alias_opt */
|
|
-1, /* (511) table_primary ::= parenthesized_joined_table */
|
|
0, /* (512) alias_opt ::= */
|
|
-1, /* (513) alias_opt ::= table_alias */
|
|
-2, /* (514) alias_opt ::= AS table_alias */
|
|
-3, /* (515) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
-3, /* (516) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
-6, /* (517) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
0, /* (518) join_type ::= */
|
|
-1, /* (519) join_type ::= INNER */
|
|
-14, /* (520) query_specification ::= SELECT hint_list tag_mode_opt 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, /* (521) hint_list ::= */
|
|
-1, /* (522) hint_list ::= NK_HINT */
|
|
0, /* (523) tag_mode_opt ::= */
|
|
-1, /* (524) tag_mode_opt ::= TAGS */
|
|
0, /* (525) set_quantifier_opt ::= */
|
|
-1, /* (526) set_quantifier_opt ::= DISTINCT */
|
|
-1, /* (527) set_quantifier_opt ::= ALL */
|
|
-1, /* (528) select_list ::= select_item */
|
|
-3, /* (529) select_list ::= select_list NK_COMMA select_item */
|
|
-1, /* (530) select_item ::= NK_STAR */
|
|
-1, /* (531) select_item ::= common_expression */
|
|
-2, /* (532) select_item ::= common_expression column_alias */
|
|
-3, /* (533) select_item ::= common_expression AS column_alias */
|
|
-3, /* (534) select_item ::= table_name NK_DOT NK_STAR */
|
|
0, /* (535) where_clause_opt ::= */
|
|
-2, /* (536) where_clause_opt ::= WHERE search_condition */
|
|
0, /* (537) partition_by_clause_opt ::= */
|
|
-3, /* (538) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
-1, /* (539) partition_list ::= partition_item */
|
|
-3, /* (540) partition_list ::= partition_list NK_COMMA partition_item */
|
|
-1, /* (541) partition_item ::= expr_or_subquery */
|
|
-2, /* (542) partition_item ::= expr_or_subquery column_alias */
|
|
-3, /* (543) partition_item ::= expr_or_subquery AS column_alias */
|
|
0, /* (544) twindow_clause_opt ::= */
|
|
-6, /* (545) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
-4, /* (546) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
-6, /* (547) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
-8, /* (548) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
-7, /* (549) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
0, /* (550) sliding_opt ::= */
|
|
-4, /* (551) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
|
|
0, /* (552) fill_opt ::= */
|
|
-4, /* (553) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
-6, /* (554) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
-6, /* (555) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
-1, /* (556) fill_mode ::= NONE */
|
|
-1, /* (557) fill_mode ::= PREV */
|
|
-1, /* (558) fill_mode ::= NULL */
|
|
-1, /* (559) fill_mode ::= NULL_F */
|
|
-1, /* (560) fill_mode ::= LINEAR */
|
|
-1, /* (561) fill_mode ::= NEXT */
|
|
0, /* (562) group_by_clause_opt ::= */
|
|
-3, /* (563) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
-1, /* (564) group_by_list ::= expr_or_subquery */
|
|
-3, /* (565) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
0, /* (566) having_clause_opt ::= */
|
|
-2, /* (567) having_clause_opt ::= HAVING search_condition */
|
|
0, /* (568) range_opt ::= */
|
|
-6, /* (569) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
-4, /* (570) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
0, /* (571) every_opt ::= */
|
|
-4, /* (572) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
-4, /* (573) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
-1, /* (574) query_simple ::= query_specification */
|
|
-1, /* (575) query_simple ::= union_query_expression */
|
|
-4, /* (576) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
-3, /* (577) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
-1, /* (578) query_simple_or_subquery ::= query_simple */
|
|
-1, /* (579) query_simple_or_subquery ::= subquery */
|
|
-1, /* (580) query_or_subquery ::= query_expression */
|
|
-1, /* (581) query_or_subquery ::= subquery */
|
|
0, /* (582) order_by_clause_opt ::= */
|
|
-3, /* (583) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
0, /* (584) slimit_clause_opt ::= */
|
|
-2, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
-4, /* (586) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
-4, /* (587) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
0, /* (588) limit_clause_opt ::= */
|
|
-2, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
-4, /* (590) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
-4, /* (591) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
-3, /* (592) subquery ::= NK_LP query_expression NK_RP */
|
|
-3, /* (593) subquery ::= NK_LP subquery NK_RP */
|
|
-1, /* (594) search_condition ::= common_expression */
|
|
-1, /* (595) sort_specification_list ::= sort_specification */
|
|
-3, /* (596) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
-3, /* (597) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
0, /* (598) ordering_specification_opt ::= */
|
|
-1, /* (599) ordering_specification_opt ::= ASC */
|
|
-1, /* (600) ordering_specification_opt ::= DESC */
|
|
0, /* (601) null_ordering_opt ::= */
|
|
-2, /* (602) null_ordering_opt ::= NULLS FIRST */
|
|
-2, /* (603) null_ordering_opt ::= NULLS LAST */
|
|
};
|
|
|
|
static void yy_accept(yyParser*); /* Forward Declaration */
|
|
|
|
/*
|
|
** Perform a reduce action and the shift that must immediately
|
|
** follow the reduce.
|
|
**
|
|
** The yyLookahead and yyLookaheadToken parameters provide reduce actions
|
|
** access to the lookahead token (if any). The yyLookahead will be YYNOCODE
|
|
** if the lookahead token has already been consumed. As this procedure is
|
|
** only called from one place, optimizing compilers will in-line it, which
|
|
** means that the extra parameters have no performance impact.
|
|
*/
|
|
static YYACTIONTYPE yy_reduce(
|
|
yyParser *yypParser, /* The parser */
|
|
unsigned int yyruleno, /* Number of the rule by which to reduce */
|
|
int yyLookahead, /* Lookahead token, or YYNOCODE if none */
|
|
ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */
|
|
ParseCTX_PDECL /* %extra_context */
|
|
){
|
|
int yygoto; /* The next state */
|
|
YYACTIONTYPE yyact; /* The next action */
|
|
yyStackEntry *yymsp; /* The top of the parser's stack */
|
|
int yysize; /* Amount to pop the stack */
|
|
ParseARG_FETCH
|
|
(void)yyLookahead;
|
|
(void)yyLookaheadToken;
|
|
yymsp = yypParser->yytos;
|
|
assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) );
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
yysize = yyRuleInfoNRhs[yyruleno];
|
|
if( yysize ){
|
|
fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
|
|
yyTracePrompt,
|
|
yyruleno, yyRuleName[yyruleno],
|
|
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.yy169, &yymsp[-1].minor.yy0, yymsp[0].minor.yy243); }
|
|
break;
|
|
case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy169, 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.yy169, 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.yy169, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 28: /* cmd ::= DROP USER user_name */
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 29: /* sysinfo_opt ::= */
|
|
{ yymsp[1].minor.yy243 = 1; }
|
|
break;
|
|
case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
{ yymsp[-1].minor.yy243 = 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.yy949, &yymsp[-3].minor.yy637, &yymsp[0].minor.yy169, yymsp[-2].minor.yy952); }
|
|
break;
|
|
case 32: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy949, &yymsp[-3].minor.yy637, &yymsp[0].minor.yy169, yymsp[-2].minor.yy952); }
|
|
break;
|
|
case 33: /* privileges ::= ALL */
|
|
{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_ALL; }
|
|
break;
|
|
case 34: /* privileges ::= priv_type_list */
|
|
case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36);
|
|
{ yylhsminor.yy949 = yymsp[0].minor.yy949; }
|
|
yymsp[0].minor.yy949 = yylhsminor.yy949;
|
|
break;
|
|
case 35: /* privileges ::= SUBSCRIBE */
|
|
{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_SUBSCRIBE; }
|
|
break;
|
|
case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
{ yylhsminor.yy949 = yymsp[-2].minor.yy949 | yymsp[0].minor.yy949; }
|
|
yymsp[-2].minor.yy949 = yylhsminor.yy949;
|
|
break;
|
|
case 38: /* priv_type ::= READ */
|
|
{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_READ; }
|
|
break;
|
|
case 39: /* priv_type ::= WRITE */
|
|
{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_WRITE; }
|
|
break;
|
|
case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
{ yylhsminor.yy637.first = yymsp[-2].minor.yy0; yylhsminor.yy637.second = yymsp[0].minor.yy0; }
|
|
yymsp[-2].minor.yy637 = yylhsminor.yy637;
|
|
break;
|
|
case 41: /* priv_level ::= db_name NK_DOT NK_STAR */
|
|
{ yylhsminor.yy637.first = yymsp[-2].minor.yy169; yylhsminor.yy637.second = yymsp[0].minor.yy0; }
|
|
yymsp[-2].minor.yy637 = yylhsminor.yy637;
|
|
break;
|
|
case 42: /* priv_level ::= db_name NK_DOT table_name */
|
|
{ yylhsminor.yy637.first = yymsp[-2].minor.yy169; yylhsminor.yy637.second = yymsp[0].minor.yy169; }
|
|
yymsp[-2].minor.yy637 = yylhsminor.yy637;
|
|
break;
|
|
case 43: /* priv_level ::= topic_name */
|
|
{ yylhsminor.yy637.first = yymsp[0].minor.yy169; yylhsminor.yy637.second = nil_token; }
|
|
yymsp[0].minor.yy637 = yylhsminor.yy637;
|
|
break;
|
|
case 44: /* with_opt ::= */
|
|
case 144: /* start_opt ::= */ yytestcase(yyruleno==144);
|
|
case 148: /* end_opt ::= */ yytestcase(yyruleno==148);
|
|
case 276: /* like_pattern_opt ::= */ yytestcase(yyruleno==276);
|
|
case 354: /* subtable_opt ::= */ yytestcase(yyruleno==354);
|
|
case 472: /* case_when_else_opt ::= */ yytestcase(yyruleno==472);
|
|
case 502: /* from_clause_opt ::= */ yytestcase(yyruleno==502);
|
|
case 535: /* where_clause_opt ::= */ yytestcase(yyruleno==535);
|
|
case 544: /* twindow_clause_opt ::= */ yytestcase(yyruleno==544);
|
|
case 550: /* sliding_opt ::= */ yytestcase(yyruleno==550);
|
|
case 552: /* fill_opt ::= */ yytestcase(yyruleno==552);
|
|
case 566: /* having_clause_opt ::= */ yytestcase(yyruleno==566);
|
|
case 568: /* range_opt ::= */ yytestcase(yyruleno==568);
|
|
case 571: /* every_opt ::= */ yytestcase(yyruleno==571);
|
|
case 584: /* slimit_clause_opt ::= */ yytestcase(yyruleno==584);
|
|
case 588: /* limit_clause_opt ::= */ yytestcase(yyruleno==588);
|
|
{ yymsp[1].minor.yy952 = NULL; }
|
|
break;
|
|
case 45: /* with_opt ::= WITH search_condition */
|
|
case 503: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==503);
|
|
case 536: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==536);
|
|
case 567: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==567);
|
|
{ yymsp[-1].minor.yy952 = yymsp[0].minor.yy952; }
|
|
break;
|
|
case 46: /* cmd ::= CREATE DNODE dnode_endpoint */
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy169, NULL); }
|
|
break;
|
|
case 47: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy169, &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.yy957, false); }
|
|
break;
|
|
case 49: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy169, yymsp[0].minor.yy957, false); }
|
|
break;
|
|
case 50: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy957); }
|
|
break;
|
|
case 51: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy169, false, yymsp[0].minor.yy957); }
|
|
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 300: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==300);
|
|
case 301: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==301);
|
|
case 302: /* sma_func_name ::= LAST */ yytestcase(yyruleno==302);
|
|
case 303: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==303);
|
|
case 398: /* db_name ::= NK_ID */ yytestcase(yyruleno==398);
|
|
case 399: /* table_name ::= NK_ID */ yytestcase(yyruleno==399);
|
|
case 400: /* column_name ::= NK_ID */ yytestcase(yyruleno==400);
|
|
case 401: /* function_name ::= NK_ID */ yytestcase(yyruleno==401);
|
|
case 402: /* table_alias ::= NK_ID */ yytestcase(yyruleno==402);
|
|
case 403: /* column_alias ::= NK_ID */ yytestcase(yyruleno==403);
|
|
case 404: /* user_name ::= NK_ID */ yytestcase(yyruleno==404);
|
|
case 405: /* topic_name ::= NK_ID */ yytestcase(yyruleno==405);
|
|
case 406: /* stream_name ::= NK_ID */ yytestcase(yyruleno==406);
|
|
case 407: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==407);
|
|
case 408: /* index_name ::= NK_ID */ yytestcase(yyruleno==408);
|
|
case 448: /* noarg_func ::= NOW */ yytestcase(yyruleno==448);
|
|
case 449: /* noarg_func ::= TODAY */ yytestcase(yyruleno==449);
|
|
case 450: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==450);
|
|
case 451: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==451);
|
|
case 452: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==452);
|
|
case 453: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==453);
|
|
case 454: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==454);
|
|
case 455: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==455);
|
|
case 456: /* noarg_func ::= USER */ yytestcase(yyruleno==456);
|
|
case 457: /* star_func ::= COUNT */ yytestcase(yyruleno==457);
|
|
case 458: /* star_func ::= FIRST */ yytestcase(yyruleno==458);
|
|
case 459: /* star_func ::= LAST */ yytestcase(yyruleno==459);
|
|
case 460: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==460);
|
|
{ yylhsminor.yy169 = yymsp[0].minor.yy0; }
|
|
yymsp[0].minor.yy169 = yylhsminor.yy169;
|
|
break;
|
|
case 60: /* force_opt ::= */
|
|
case 84: /* not_exists_opt ::= */ yytestcase(yyruleno==84);
|
|
case 86: /* exists_opt ::= */ yytestcase(yyruleno==86);
|
|
case 321: /* analyze_opt ::= */ yytestcase(yyruleno==321);
|
|
case 328: /* agg_func_opt ::= */ yytestcase(yyruleno==328);
|
|
case 334: /* or_replace_opt ::= */ yytestcase(yyruleno==334);
|
|
case 356: /* ignore_opt ::= */ yytestcase(yyruleno==356);
|
|
case 523: /* tag_mode_opt ::= */ yytestcase(yyruleno==523);
|
|
case 525: /* set_quantifier_opt ::= */ yytestcase(yyruleno==525);
|
|
{ yymsp[1].minor.yy957 = false; }
|
|
break;
|
|
case 61: /* force_opt ::= FORCE */
|
|
case 62: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==62);
|
|
case 322: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==322);
|
|
case 329: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==329);
|
|
case 524: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==524);
|
|
case 526: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==526);
|
|
{ yymsp[0].minor.yy957 = 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.yy957, &yymsp[-1].minor.yy169, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 77: /* cmd ::= DROP DATABASE exists_opt db_name */
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 78: /* cmd ::= USE db_name */
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 79: /* cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy169, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 80: /* cmd ::= FLUSH DATABASE db_name */
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 81: /* cmd ::= TRIM DATABASE db_name speed_opt */
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy169, yymsp[0].minor.yy480); }
|
|
break;
|
|
case 82: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy169, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 83: /* not_exists_opt ::= IF NOT EXISTS */
|
|
{ yymsp[-2].minor.yy957 = true; }
|
|
break;
|
|
case 85: /* exists_opt ::= IF EXISTS */
|
|
case 335: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==335);
|
|
case 357: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==357);
|
|
{ yymsp[-1].minor.yy957 = true; }
|
|
break;
|
|
case 87: /* db_options ::= */
|
|
{ yymsp[1].minor.yy952 = createDefaultDatabaseOptions(pCxt); }
|
|
break;
|
|
case 88: /* db_options ::= db_options BUFFER NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 89: /* db_options ::= db_options CACHEMODEL NK_STRING */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 90: /* db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 91: /* db_options ::= db_options COMP NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 92: /* db_options ::= db_options DURATION NK_INTEGER */
|
|
case 93: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==93);
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 94: /* db_options ::= db_options MAXROWS NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 95: /* db_options ::= db_options MINROWS NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 96: /* db_options ::= db_options KEEP integer_list */
|
|
case 97: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==97);
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_KEEP, yymsp[0].minor.yy824); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 98: /* db_options ::= db_options PAGES NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 99: /* db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 100: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 101: /* db_options ::= db_options PRECISION NK_STRING */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 102: /* db_options ::= db_options REPLICA NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 103: /* db_options ::= db_options VGROUPS NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 104: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 105: /* db_options ::= db_options RETENTIONS retention_list */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_RETENTIONS, yymsp[0].minor.yy824); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 106: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 107: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 108: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 109: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
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.yy952 = setDatabaseOption(pCxt, yymsp[-3].minor.yy952, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
|
}
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 111: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
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.yy952 = setDatabaseOption(pCxt, yymsp[-3].minor.yy952, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
|
}
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 113: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 114: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 115: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 116: /* db_options ::= db_options TABLE_PREFIX signed */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy952); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 117: /* db_options ::= db_options TABLE_SUFFIX signed */
|
|
{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy952); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 118: /* alter_db_options ::= alter_db_option */
|
|
{ yylhsminor.yy952 = createAlterDatabaseOptions(pCxt); yylhsminor.yy952 = setAlterDatabaseOption(pCxt, yylhsminor.yy952, &yymsp[0].minor.yy25); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 119: /* alter_db_options ::= alter_db_options alter_db_option */
|
|
{ yylhsminor.yy952 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy952, &yymsp[0].minor.yy25); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 120: /* alter_db_option ::= BUFFER NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 121: /* alter_db_option ::= CACHEMODEL NK_STRING */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 122: /* alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 123: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy25.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.yy25.type = DB_OPTION_KEEP; yymsp[-1].minor.yy25.pList = yymsp[0].minor.yy824; }
|
|
break;
|
|
case 126: /* alter_db_option ::= PAGES NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_PAGES; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 127: /* alter_db_option ::= REPLICA NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 128: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_WAL; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 129: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 130: /* alter_db_option ::= MINROWS NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 131: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy25.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.yy25.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy25.val = t;
|
|
}
|
|
break;
|
|
case 133: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy25.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.yy25.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy25.val = t;
|
|
}
|
|
break;
|
|
case 135: /* integer_list ::= NK_INTEGER */
|
|
{ yylhsminor.yy824 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 136: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
case 367: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==367);
|
|
{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 137: /* variable_list ::= NK_VARIABLE */
|
|
{ yylhsminor.yy824 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 138: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy824 = yylhsminor.yy824;
|
|
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 223: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==223);
|
|
case 228: /* col_name_list ::= col_name */ yytestcase(yyruleno==228);
|
|
case 282: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==282);
|
|
case 296: /* func_list ::= func */ yytestcase(yyruleno==296);
|
|
case 396: /* literal_list ::= signed_literal */ yytestcase(yyruleno==396);
|
|
case 463: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==463);
|
|
case 469: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==469);
|
|
case 528: /* select_list ::= select_item */ yytestcase(yyruleno==528);
|
|
case 539: /* partition_list ::= partition_item */ yytestcase(yyruleno==539);
|
|
case 595: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==595);
|
|
{ yylhsminor.yy824 = createNodeList(pCxt, yymsp[0].minor.yy952); }
|
|
yymsp[0].minor.yy824 = yylhsminor.yy824;
|
|
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 224: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==224);
|
|
case 229: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==229);
|
|
case 283: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==283);
|
|
case 297: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==297);
|
|
case 397: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==397);
|
|
case 464: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==464);
|
|
case 529: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==529);
|
|
case 540: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==540);
|
|
case 596: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==596);
|
|
{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, yymsp[0].minor.yy952); }
|
|
yymsp[-2].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 141: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
{ yylhsminor.yy952 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 142: /* speed_opt ::= */
|
|
case 330: /* bufsize_opt ::= */ yytestcase(yyruleno==330);
|
|
{ yymsp[1].minor.yy480 = 0; }
|
|
break;
|
|
case 143: /* speed_opt ::= MAX_SPEED NK_INTEGER */
|
|
case 331: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==331);
|
|
{ yymsp[-1].minor.yy480 = 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.yy952 = 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.yy952 = 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.yy952 = 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.yy957, yymsp[-5].minor.yy952, yymsp[-3].minor.yy824, yymsp[-1].minor.yy824, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 153: /* cmd ::= CREATE TABLE multi_create_clause */
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy824); }
|
|
break;
|
|
case 155: /* cmd ::= DROP TABLE multi_drop_clause */
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy824); }
|
|
break;
|
|
case 156: /* cmd ::= DROP STABLE exists_opt full_table_name */
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy957, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 157: /* cmd ::= ALTER TABLE alter_table_clause */
|
|
case 369: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==369);
|
|
case 370: /* cmd ::= insert_query */ yytestcase(yyruleno==370);
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy952; }
|
|
break;
|
|
case 158: /* cmd ::= ALTER STABLE alter_table_clause */
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy952); }
|
|
break;
|
|
case 159: /* alter_table_clause ::= full_table_name alter_table_options */
|
|
{ yylhsminor.yy952 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 160: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
{ yylhsminor.yy952 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84); }
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 161: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
{ yylhsminor.yy952 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy952, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy169); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 162: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
{ yylhsminor.yy952 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84); }
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 163: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
{ yylhsminor.yy952 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy169, &yymsp[0].minor.yy169); }
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 164: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
{ yylhsminor.yy952 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84); }
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 165: /* alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
{ yylhsminor.yy952 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy952, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy169); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 166: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
{ yylhsminor.yy952 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84); }
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 167: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
{ yylhsminor.yy952 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy169, &yymsp[0].minor.yy169); }
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 168: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
{ yylhsminor.yy952 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy952, &yymsp[-2].minor.yy169, yymsp[0].minor.yy952); }
|
|
yymsp[-5].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 170: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
case 470: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==470);
|
|
{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-1].minor.yy824, yymsp[0].minor.yy952); }
|
|
yymsp[-1].minor.yy824 = yylhsminor.yy824;
|
|
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.yy952 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy957, yymsp[-8].minor.yy952, yymsp[-6].minor.yy952, yymsp[-5].minor.yy824, yymsp[-2].minor.yy824, yymsp[0].minor.yy952); }
|
|
yymsp[-9].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 174: /* drop_table_clause ::= exists_opt full_table_name */
|
|
{ yylhsminor.yy952 = createDropTableClause(pCxt, yymsp[-1].minor.yy957, yymsp[0].minor.yy952); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 175: /* specific_cols_opt ::= */
|
|
case 206: /* tags_def_opt ::= */ yytestcase(yyruleno==206);
|
|
case 281: /* tag_list_opt ::= */ yytestcase(yyruleno==281);
|
|
case 340: /* col_list_opt ::= */ yytestcase(yyruleno==340);
|
|
case 342: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==342);
|
|
case 537: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==537);
|
|
case 562: /* group_by_clause_opt ::= */ yytestcase(yyruleno==562);
|
|
case 582: /* order_by_clause_opt ::= */ yytestcase(yyruleno==582);
|
|
{ yymsp[1].minor.yy824 = NULL; }
|
|
break;
|
|
case 176: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
case 341: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==341);
|
|
{ yymsp[-2].minor.yy824 = yymsp[-1].minor.yy824; }
|
|
break;
|
|
case 177: /* full_table_name ::= table_name */
|
|
{ yylhsminor.yy952 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy169, NULL); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 178: /* full_table_name ::= db_name NK_DOT table_name */
|
|
{ yylhsminor.yy952 = createRealTableNode(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169, NULL); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 181: /* column_def ::= column_name type_name */
|
|
{ yylhsminor.yy952 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84, NULL); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 182: /* type_name ::= BOOL */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_BOOL); }
|
|
break;
|
|
case 183: /* type_name ::= TINYINT */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_TINYINT); }
|
|
break;
|
|
case 184: /* type_name ::= SMALLINT */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
|
|
break;
|
|
case 185: /* type_name ::= INT */
|
|
case 186: /* type_name ::= INTEGER */ yytestcase(yyruleno==186);
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_INT); }
|
|
break;
|
|
case 187: /* type_name ::= BIGINT */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_BIGINT); }
|
|
break;
|
|
case 188: /* type_name ::= FLOAT */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_FLOAT); }
|
|
break;
|
|
case 189: /* type_name ::= DOUBLE */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
|
|
break;
|
|
case 190: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 191: /* type_name ::= TIMESTAMP */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
|
|
break;
|
|
case 192: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 193: /* type_name ::= TINYINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
|
|
break;
|
|
case 194: /* type_name ::= SMALLINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
|
|
break;
|
|
case 195: /* type_name ::= INT UNSIGNED */
|
|
{ yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_UINT); }
|
|
break;
|
|
case 196: /* type_name ::= BIGINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
|
|
break;
|
|
case 197: /* type_name ::= JSON */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_JSON); }
|
|
break;
|
|
case 198: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 199: /* type_name ::= MEDIUMBLOB */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
|
|
break;
|
|
case 200: /* type_name ::= BLOB */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_BLOB); }
|
|
break;
|
|
case 201: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 202: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 203: /* type_name ::= DECIMAL */
|
|
{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 204: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy84 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 205: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
{ yymsp[-5].minor.yy84 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 207: /* tags_def_opt ::= tags_def */
|
|
case 343: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==343);
|
|
case 462: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==462);
|
|
{ yylhsminor.yy824 = yymsp[0].minor.yy824; }
|
|
yymsp[0].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 208: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
case 344: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==344);
|
|
{ yymsp[-3].minor.yy824 = yymsp[-1].minor.yy824; }
|
|
break;
|
|
case 209: /* table_options ::= */
|
|
{ yymsp[1].minor.yy952 = createDefaultTableOptions(pCxt); }
|
|
break;
|
|
case 210: /* table_options ::= table_options COMMENT NK_STRING */
|
|
{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 211: /* table_options ::= table_options MAX_DELAY duration_list */
|
|
{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy824); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 212: /* table_options ::= table_options WATERMARK duration_list */
|
|
{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy824); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 213: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-4].minor.yy952, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy824); }
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 214: /* table_options ::= table_options TTL NK_INTEGER */
|
|
{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 215: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-4].minor.yy952, TABLE_OPTION_SMA, yymsp[-1].minor.yy824); }
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 216: /* table_options ::= table_options DELETE_MARK duration_list */
|
|
{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy824); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 217: /* alter_table_options ::= alter_table_option */
|
|
{ yylhsminor.yy952 = createAlterTableOptions(pCxt); yylhsminor.yy952 = setTableOption(pCxt, yylhsminor.yy952, yymsp[0].minor.yy25.type, &yymsp[0].minor.yy25.val); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 218: /* alter_table_options ::= alter_table_options alter_table_option */
|
|
{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-1].minor.yy952, yymsp[0].minor.yy25.type, &yymsp[0].minor.yy25.val); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 219: /* alter_table_option ::= COMMENT NK_STRING */
|
|
{ yymsp[-1].minor.yy25.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 220: /* alter_table_option ::= TTL NK_INTEGER */
|
|
{ yymsp[-1].minor.yy25.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 221: /* duration_list ::= duration_literal */
|
|
case 426: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==426);
|
|
{ yylhsminor.yy824 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); }
|
|
yymsp[0].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 222: /* duration_list ::= duration_list NK_COMMA duration_literal */
|
|
case 427: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==427);
|
|
{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); }
|
|
yymsp[-2].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 225: /* rollup_func_name ::= function_name */
|
|
{ yylhsminor.yy952 = createFunctionNode(pCxt, &yymsp[0].minor.yy169, NULL); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 226: /* rollup_func_name ::= FIRST */
|
|
case 227: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==227);
|
|
case 285: /* tag_item ::= QTAGS */ yytestcase(yyruleno==285);
|
|
{ yylhsminor.yy952 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 230: /* col_name ::= column_name */
|
|
case 286: /* tag_item ::= column_name */ yytestcase(yyruleno==286);
|
|
{ yylhsminor.yy952 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy169); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 231: /* cmd ::= SHOW DNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
|
|
break;
|
|
case 232: /* cmd ::= SHOW USERS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
|
|
break;
|
|
case 233: /* cmd ::= SHOW USER PRIVILEGES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
|
|
break;
|
|
case 234: /* cmd ::= SHOW DATABASES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); }
|
|
break;
|
|
case 235: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy952, yymsp[0].minor.yy952, OP_TYPE_LIKE); }
|
|
break;
|
|
case 236: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy952, yymsp[0].minor.yy952, OP_TYPE_LIKE); }
|
|
break;
|
|
case 237: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy952, NULL, OP_TYPE_LIKE); }
|
|
break;
|
|
case 238: /* cmd ::= SHOW MNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
|
break;
|
|
case 239: /* cmd ::= SHOW QNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
|
break;
|
|
case 240: /* cmd ::= SHOW FUNCTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
|
break;
|
|
case 241: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy952, yymsp[-1].minor.yy952, OP_TYPE_EQUAL); }
|
|
break;
|
|
case 242: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy169), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169), OP_TYPE_EQUAL); }
|
|
break;
|
|
case 243: /* cmd ::= SHOW STREAMS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
|
|
break;
|
|
case 244: /* cmd ::= SHOW ACCOUNTS */
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
break;
|
|
case 245: /* cmd ::= SHOW APPS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
|
break;
|
|
case 246: /* cmd ::= SHOW CONNECTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
|
break;
|
|
case 247: /* cmd ::= SHOW LICENCES */
|
|
case 248: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==248);
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
|
|
break;
|
|
case 249: /* cmd ::= SHOW CREATE DATABASE db_name */
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 250: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 251: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 252: /* cmd ::= SHOW QUERIES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
|
break;
|
|
case 253: /* cmd ::= SHOW SCORES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
|
break;
|
|
case 254: /* cmd ::= SHOW TOPICS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
|
break;
|
|
case 255: /* cmd ::= SHOW VARIABLES */
|
|
case 256: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==256);
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
|
|
break;
|
|
case 257: /* cmd ::= SHOW LOCAL VARIABLES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
|
|
break;
|
|
case 258: /* 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.yy952); }
|
|
break;
|
|
case 259: /* cmd ::= SHOW BNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
|
break;
|
|
case 260: /* cmd ::= SHOW SNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
|
break;
|
|
case 261: /* cmd ::= SHOW CLUSTER */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
|
|
break;
|
|
case 262: /* cmd ::= SHOW TRANSACTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
|
|
break;
|
|
case 263: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 264: /* cmd ::= SHOW CONSUMERS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
|
|
break;
|
|
case 265: /* cmd ::= SHOW SUBSCRIPTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
|
|
break;
|
|
case 266: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy952, yymsp[-1].minor.yy952, OP_TYPE_EQUAL); }
|
|
break;
|
|
case 267: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy169), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169), OP_TYPE_EQUAL); }
|
|
break;
|
|
case 268: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy952, yymsp[0].minor.yy952, yymsp[-3].minor.yy824); }
|
|
break;
|
|
case 269: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy169), yymsp[-4].minor.yy824); }
|
|
break;
|
|
case 270: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
|
|
break;
|
|
case 271: /* cmd ::= SHOW VNODES */
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
|
|
break;
|
|
case 272: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy952, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
|
break;
|
|
case 273: /* cmd ::= SHOW CLUSTER ALIVE */
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
|
break;
|
|
case 274: /* db_name_cond_opt ::= */
|
|
case 279: /* from_db_opt ::= */ yytestcase(yyruleno==279);
|
|
{ yymsp[1].minor.yy952 = createDefaultDatabaseCondValue(pCxt); }
|
|
break;
|
|
case 275: /* db_name_cond_opt ::= db_name NK_DOT */
|
|
{ yylhsminor.yy952 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy169); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 277: /* like_pattern_opt ::= LIKE NK_STRING */
|
|
{ yymsp[-1].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 278: /* table_name_cond ::= table_name */
|
|
{ yylhsminor.yy952 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 280: /* from_db_opt ::= FROM db_name */
|
|
{ yymsp[-1].minor.yy952 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 284: /* tag_item ::= TBNAME */
|
|
{ yylhsminor.yy952 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 287: /* tag_item ::= column_name column_alias */
|
|
{ yylhsminor.yy952 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy169), &yymsp[0].minor.yy169); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 288: /* tag_item ::= column_name AS column_alias */
|
|
{ yylhsminor.yy952 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy169), &yymsp[0].minor.yy169); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 289: /* 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.yy957, yymsp[-3].minor.yy952, yymsp[-1].minor.yy952, NULL, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 290: /* 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.yy957, yymsp[-5].minor.yy952, yymsp[-3].minor.yy952, yymsp[-1].minor.yy824, NULL); }
|
|
break;
|
|
case 291: /* cmd ::= DROP INDEX exists_opt full_index_name */
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy957, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 292: /* full_index_name ::= index_name */
|
|
{ yylhsminor.yy952 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy169); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 293: /* full_index_name ::= db_name NK_DOT index_name */
|
|
{ yylhsminor.yy952 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 294: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
{ yymsp[-9].minor.yy952 = createIndexOption(pCxt, yymsp[-7].minor.yy824, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), NULL, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 295: /* 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.yy952 = createIndexOption(pCxt, yymsp[-9].minor.yy824, releaseRawExprNode(pCxt, yymsp[-5].minor.yy952), releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), yymsp[-1].minor.yy952, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 298: /* func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
{ yylhsminor.yy952 = createFunctionNode(pCxt, &yymsp[-3].minor.yy169, yymsp[-1].minor.yy824); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 299: /* sma_func_name ::= function_name */
|
|
case 513: /* alias_opt ::= table_alias */ yytestcase(yyruleno==513);
|
|
{ yylhsminor.yy169 = yymsp[0].minor.yy169; }
|
|
yymsp[0].minor.yy169 = yylhsminor.yy169;
|
|
break;
|
|
case 304: /* sma_stream_opt ::= */
|
|
case 345: /* stream_options ::= */ yytestcase(yyruleno==345);
|
|
{ yymsp[1].minor.yy952 = createStreamOptions(pCxt); }
|
|
break;
|
|
case 305: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy952)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); yylhsminor.yy952 = yymsp[-2].minor.yy952; }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 306: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy952)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); yylhsminor.yy952 = yymsp[-2].minor.yy952; }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 307: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy952)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); yylhsminor.yy952 = yymsp[-2].minor.yy952; }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 308: /* with_meta ::= AS */
|
|
{ yymsp[0].minor.yy480 = 0; }
|
|
break;
|
|
case 309: /* with_meta ::= WITH META AS */
|
|
{ yymsp[-2].minor.yy480 = 1; }
|
|
break;
|
|
case 310: /* with_meta ::= ONLY META AS */
|
|
{ yymsp[-2].minor.yy480 = 2; }
|
|
break;
|
|
case 311: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy957, &yymsp[-2].minor.yy169, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 312: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy957, &yymsp[-3].minor.yy169, &yymsp[0].minor.yy169, yymsp[-2].minor.yy480); }
|
|
break;
|
|
case 313: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy957, &yymsp[-4].minor.yy169, yymsp[-1].minor.yy952, yymsp[-3].minor.yy480, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 314: /* cmd ::= DROP TOPIC exists_opt topic_name */
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 315: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy957, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 316: /* cmd ::= DESC full_table_name */
|
|
case 317: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==317);
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 318: /* cmd ::= RESET QUERY CACHE */
|
|
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
|
|
break;
|
|
case 319: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
case 320: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==320);
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy957, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 323: /* explain_options ::= */
|
|
{ yymsp[1].minor.yy952 = createDefaultExplainOptions(pCxt); }
|
|
break;
|
|
case 324: /* explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
{ yylhsminor.yy952 = setExplainVerbose(pCxt, yymsp[-2].minor.yy952, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 325: /* explain_options ::= explain_options RATIO NK_FLOAT */
|
|
{ yylhsminor.yy952 = setExplainRatio(pCxt, yymsp[-2].minor.yy952, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 326: /* 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.yy957, yymsp[-9].minor.yy957, &yymsp[-6].minor.yy169, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy84, yymsp[-1].minor.yy480, &yymsp[0].minor.yy169, yymsp[-10].minor.yy957); }
|
|
break;
|
|
case 327: /* cmd ::= DROP FUNCTION exists_opt function_name */
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 332: /* language_opt ::= */
|
|
{ yymsp[1].minor.yy169 = nil_token; }
|
|
break;
|
|
case 333: /* language_opt ::= LANGUAGE NK_STRING */
|
|
{ yymsp[-1].minor.yy169 = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 336: /* 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.yy957, &yymsp[-8].minor.yy169, yymsp[-5].minor.yy952, yymsp[-7].minor.yy952, yymsp[-3].minor.yy824, yymsp[-2].minor.yy952, yymsp[0].minor.yy952, yymsp[-4].minor.yy824); }
|
|
break;
|
|
case 337: /* cmd ::= DROP STREAM exists_opt stream_name */
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 338: /* cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 339: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy957, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); }
|
|
break;
|
|
case 346: /* stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
case 347: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==347);
|
|
{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-2].minor.yy952, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 348: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-3].minor.yy952, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 349: /* stream_options ::= stream_options WATERMARK duration_literal */
|
|
{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-2].minor.yy952, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 350: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-3].minor.yy952, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 351: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-2].minor.yy952, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 352: /* stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-2].minor.yy952, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 353: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-3].minor.yy952, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 355: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
case 551: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==551);
|
|
case 572: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==572);
|
|
{ yymsp[-3].minor.yy952 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy952); }
|
|
break;
|
|
case 358: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 359: /* cmd ::= KILL QUERY NK_STRING */
|
|
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 360: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 361: /* cmd ::= BALANCE VGROUP */
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
|
break;
|
|
case 362: /* cmd ::= BALANCE VGROUP LEADER */
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); }
|
|
break;
|
|
case 363: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 364: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy824); }
|
|
break;
|
|
case 365: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 366: /* dnode_list ::= DNODE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy824 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
break;
|
|
case 368: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 371: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
{ yymsp[-6].minor.yy952 = createInsertStmt(pCxt, yymsp[-4].minor.yy952, yymsp[-2].minor.yy824, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 372: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
{ yymsp[-3].minor.yy952 = createInsertStmt(pCxt, yymsp[-1].minor.yy952, NULL, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 373: /* literal ::= NK_INTEGER */
|
|
{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 374: /* literal ::= NK_FLOAT */
|
|
{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 375: /* literal ::= NK_STRING */
|
|
{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 376: /* literal ::= NK_BOOL */
|
|
{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 377: /* literal ::= TIMESTAMP NK_STRING */
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 378: /* literal ::= duration_literal */
|
|
case 388: /* signed_literal ::= signed */ yytestcase(yyruleno==388);
|
|
case 409: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==409);
|
|
case 410: /* expression ::= literal */ yytestcase(yyruleno==410);
|
|
case 411: /* expression ::= pseudo_column */ yytestcase(yyruleno==411);
|
|
case 412: /* expression ::= column_reference */ yytestcase(yyruleno==412);
|
|
case 413: /* expression ::= function_expression */ yytestcase(yyruleno==413);
|
|
case 414: /* expression ::= case_when_expression */ yytestcase(yyruleno==414);
|
|
case 445: /* function_expression ::= literal_func */ yytestcase(yyruleno==445);
|
|
case 494: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==494);
|
|
case 498: /* boolean_primary ::= predicate */ yytestcase(yyruleno==498);
|
|
case 500: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==500);
|
|
case 501: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==501);
|
|
case 504: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==504);
|
|
case 506: /* table_reference ::= table_primary */ yytestcase(yyruleno==506);
|
|
case 507: /* table_reference ::= joined_table */ yytestcase(yyruleno==507);
|
|
case 511: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==511);
|
|
case 574: /* query_simple ::= query_specification */ yytestcase(yyruleno==574);
|
|
case 575: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==575);
|
|
case 578: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==578);
|
|
case 580: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==580);
|
|
{ yylhsminor.yy952 = yymsp[0].minor.yy952; }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 379: /* literal ::= NULL */
|
|
{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 380: /* literal ::= NK_QUESTION */
|
|
{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 381: /* duration_literal ::= NK_VARIABLE */
|
|
{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 382: /* signed ::= NK_INTEGER */
|
|
{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 383: /* signed ::= NK_PLUS NK_INTEGER */
|
|
{ yymsp[-1].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 384: /* 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.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
|
}
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 385: /* signed ::= NK_FLOAT */
|
|
{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 386: /* signed ::= NK_PLUS NK_FLOAT */
|
|
{ yymsp[-1].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 387: /* 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.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
|
}
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 389: /* signed_literal ::= NK_STRING */
|
|
{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 390: /* signed_literal ::= NK_BOOL */
|
|
{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 391: /* signed_literal ::= TIMESTAMP NK_STRING */
|
|
{ yymsp[-1].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 392: /* signed_literal ::= duration_literal */
|
|
case 394: /* signed_literal ::= literal_func */ yytestcase(yyruleno==394);
|
|
case 465: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==465);
|
|
case 531: /* select_item ::= common_expression */ yytestcase(yyruleno==531);
|
|
case 541: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==541);
|
|
case 579: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==579);
|
|
case 581: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==581);
|
|
case 594: /* search_condition ::= common_expression */ yytestcase(yyruleno==594);
|
|
{ yylhsminor.yy952 = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 393: /* signed_literal ::= NULL */
|
|
{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 395: /* signed_literal ::= NK_QUESTION */
|
|
{ yylhsminor.yy952 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 415: /* expression ::= NK_LP expression NK_RP */
|
|
case 499: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==499);
|
|
case 593: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==593);
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 416: /* expression ::= NK_PLUS expr_or_subquery */
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy952));
|
|
}
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 417: /* expression ::= NK_MINUS expr_or_subquery */
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy952), NULL));
|
|
}
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 418: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 419: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 420: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 421: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 422: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 423: /* expression ::= column_reference NK_ARROW NK_STRING */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 424: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 425: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 428: /* column_reference ::= column_name */
|
|
{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy169, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy169)); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 429: /* column_reference ::= table_name NK_DOT column_name */
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169, createColumnNode(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169)); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 430: /* pseudo_column ::= ROWTS */
|
|
case 431: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==431);
|
|
case 433: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==433);
|
|
case 434: /* pseudo_column ::= QEND */ yytestcase(yyruleno==434);
|
|
case 435: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==435);
|
|
case 436: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==436);
|
|
case 437: /* pseudo_column ::= WEND */ yytestcase(yyruleno==437);
|
|
case 438: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==438);
|
|
case 439: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==439);
|
|
case 440: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==440);
|
|
case 441: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==441);
|
|
case 447: /* literal_func ::= NOW */ yytestcase(yyruleno==447);
|
|
{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 432: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy169)))); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 442: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
case 443: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==443);
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy169, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy169, yymsp[-1].minor.yy824)); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 444: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), yymsp[-1].minor.yy84)); }
|
|
yymsp[-5].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 446: /* literal_func ::= noarg_func NK_LP NK_RP */
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy169, NULL)); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 461: /* star_func_para_list ::= NK_STAR */
|
|
{ yylhsminor.yy824 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 466: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
case 534: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==534);
|
|
{ yylhsminor.yy952 = createColumnNode(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 467: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy824, yymsp[-1].minor.yy952)); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 468: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), yymsp[-2].minor.yy824, yymsp[-1].minor.yy952)); }
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 471: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
{ yymsp[-3].minor.yy952 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); }
|
|
break;
|
|
case 473: /* case_when_else_opt ::= ELSE common_expression */
|
|
{ yymsp[-1].minor.yy952 = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 474: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
case 479: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==479);
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy520, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 475: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy952), releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-4].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 476: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy952), releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-5].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 477: /* predicate ::= expr_or_subquery IS NULL */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), NULL));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 478: /* predicate ::= expr_or_subquery IS NOT NULL */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), NULL));
|
|
}
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 480: /* compare_op ::= NK_LT */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_LOWER_THAN; }
|
|
break;
|
|
case 481: /* compare_op ::= NK_GT */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_GREATER_THAN; }
|
|
break;
|
|
case 482: /* compare_op ::= NK_LE */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_LOWER_EQUAL; }
|
|
break;
|
|
case 483: /* compare_op ::= NK_GE */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_GREATER_EQUAL; }
|
|
break;
|
|
case 484: /* compare_op ::= NK_NE */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_NOT_EQUAL; }
|
|
break;
|
|
case 485: /* compare_op ::= NK_EQ */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_EQUAL; }
|
|
break;
|
|
case 486: /* compare_op ::= LIKE */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_LIKE; }
|
|
break;
|
|
case 487: /* compare_op ::= NOT LIKE */
|
|
{ yymsp[-1].minor.yy520 = OP_TYPE_NOT_LIKE; }
|
|
break;
|
|
case 488: /* compare_op ::= MATCH */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_MATCH; }
|
|
break;
|
|
case 489: /* compare_op ::= NMATCH */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_NMATCH; }
|
|
break;
|
|
case 490: /* compare_op ::= CONTAINS */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_JSON_CONTAINS; }
|
|
break;
|
|
case 491: /* in_op ::= IN */
|
|
{ yymsp[0].minor.yy520 = OP_TYPE_IN; }
|
|
break;
|
|
case 492: /* in_op ::= NOT IN */
|
|
{ yymsp[-1].minor.yy520 = OP_TYPE_NOT_IN; }
|
|
break;
|
|
case 493: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy824)); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 495: /* boolean_value_expression ::= NOT boolean_primary */
|
|
{
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy952), NULL));
|
|
}
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 496: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 497: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952);
|
|
yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)));
|
|
}
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 505: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
{ yylhsminor.yy952 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy952, yymsp[0].minor.yy952, NULL); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 508: /* table_primary ::= table_name alias_opt */
|
|
{ yylhsminor.yy952 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy169, &yymsp[0].minor.yy169); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 509: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
{ yylhsminor.yy952 = createRealTableNode(pCxt, &yymsp[-3].minor.yy169, &yymsp[-1].minor.yy169, &yymsp[0].minor.yy169); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 510: /* table_primary ::= subquery alias_opt */
|
|
{ yylhsminor.yy952 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952), &yymsp[0].minor.yy169); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 512: /* alias_opt ::= */
|
|
{ yymsp[1].minor.yy169 = nil_token; }
|
|
break;
|
|
case 514: /* alias_opt ::= AS table_alias */
|
|
{ yymsp[-1].minor.yy169 = yymsp[0].minor.yy169; }
|
|
break;
|
|
case 515: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
case 516: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==516);
|
|
{ yymsp[-2].minor.yy952 = yymsp[-1].minor.yy952; }
|
|
break;
|
|
case 517: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
{ yylhsminor.yy952 = createJoinTableNode(pCxt, yymsp[-4].minor.yy932, yymsp[-5].minor.yy952, yymsp[-2].minor.yy952, yymsp[0].minor.yy952); }
|
|
yymsp[-5].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 518: /* join_type ::= */
|
|
{ yymsp[1].minor.yy932 = JOIN_TYPE_INNER; }
|
|
break;
|
|
case 519: /* join_type ::= INNER */
|
|
{ yymsp[0].minor.yy932 = JOIN_TYPE_INNER; }
|
|
break;
|
|
case 520: /* query_specification ::= SELECT hint_list tag_mode_opt 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[-13].minor.yy952 = createSelectStmt(pCxt, yymsp[-10].minor.yy957, yymsp[-9].minor.yy824, yymsp[-8].minor.yy952, yymsp[-12].minor.yy824);
|
|
yymsp[-13].minor.yy952 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy952, yymsp[-11].minor.yy957);
|
|
yymsp[-13].minor.yy952 = addWhereClause(pCxt, yymsp[-13].minor.yy952, yymsp[-7].minor.yy952);
|
|
yymsp[-13].minor.yy952 = addPartitionByClause(pCxt, yymsp[-13].minor.yy952, yymsp[-6].minor.yy824);
|
|
yymsp[-13].minor.yy952 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy952, yymsp[-2].minor.yy952);
|
|
yymsp[-13].minor.yy952 = addGroupByClause(pCxt, yymsp[-13].minor.yy952, yymsp[-1].minor.yy824);
|
|
yymsp[-13].minor.yy952 = addHavingClause(pCxt, yymsp[-13].minor.yy952, yymsp[0].minor.yy952);
|
|
yymsp[-13].minor.yy952 = addRangeClause(pCxt, yymsp[-13].minor.yy952, yymsp[-5].minor.yy952);
|
|
yymsp[-13].minor.yy952 = addEveryClause(pCxt, yymsp[-13].minor.yy952, yymsp[-4].minor.yy952);
|
|
yymsp[-13].minor.yy952 = addFillClause(pCxt, yymsp[-13].minor.yy952, yymsp[-3].minor.yy952);
|
|
}
|
|
break;
|
|
case 521: /* hint_list ::= */
|
|
{ yymsp[1].minor.yy824 = createHintNodeList(pCxt, NULL); }
|
|
break;
|
|
case 522: /* hint_list ::= NK_HINT */
|
|
{ yylhsminor.yy824 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 527: /* set_quantifier_opt ::= ALL */
|
|
{ yymsp[0].minor.yy957 = false; }
|
|
break;
|
|
case 530: /* select_item ::= NK_STAR */
|
|
{ yylhsminor.yy952 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 532: /* select_item ::= common_expression column_alias */
|
|
case 542: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==542);
|
|
{ yylhsminor.yy952 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952), &yymsp[0].minor.yy169); }
|
|
yymsp[-1].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 533: /* select_item ::= common_expression AS column_alias */
|
|
case 543: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==543);
|
|
{ yylhsminor.yy952 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), &yymsp[0].minor.yy169); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 538: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
case 563: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==563);
|
|
case 583: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==583);
|
|
{ yymsp[-2].minor.yy824 = yymsp[0].minor.yy824; }
|
|
break;
|
|
case 545: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
{ yymsp[-5].minor.yy952 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); }
|
|
break;
|
|
case 546: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
{ yymsp[-3].minor.yy952 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); }
|
|
break;
|
|
case 547: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
{ yymsp[-5].minor.yy952 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), NULL, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 548: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
{ yymsp[-7].minor.yy952 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy952), releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), yymsp[-1].minor.yy952, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 549: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
{ yymsp[-6].minor.yy952 = createEventWindowNode(pCxt, yymsp[-3].minor.yy952, yymsp[0].minor.yy952); }
|
|
break;
|
|
case 553: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
{ yymsp[-3].minor.yy952 = createFillNode(pCxt, yymsp[-1].minor.yy214, NULL); }
|
|
break;
|
|
case 554: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
{ yymsp[-5].minor.yy952 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy824)); }
|
|
break;
|
|
case 555: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
{ yymsp[-5].minor.yy952 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy824)); }
|
|
break;
|
|
case 556: /* fill_mode ::= NONE */
|
|
{ yymsp[0].minor.yy214 = FILL_MODE_NONE; }
|
|
break;
|
|
case 557: /* fill_mode ::= PREV */
|
|
{ yymsp[0].minor.yy214 = FILL_MODE_PREV; }
|
|
break;
|
|
case 558: /* fill_mode ::= NULL */
|
|
{ yymsp[0].minor.yy214 = FILL_MODE_NULL; }
|
|
break;
|
|
case 559: /* fill_mode ::= NULL_F */
|
|
{ yymsp[0].minor.yy214 = FILL_MODE_NULL_F; }
|
|
break;
|
|
case 560: /* fill_mode ::= LINEAR */
|
|
{ yymsp[0].minor.yy214 = FILL_MODE_LINEAR; }
|
|
break;
|
|
case 561: /* fill_mode ::= NEXT */
|
|
{ yymsp[0].minor.yy214 = FILL_MODE_NEXT; }
|
|
break;
|
|
case 564: /* group_by_list ::= expr_or_subquery */
|
|
{ yylhsminor.yy824 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); }
|
|
yymsp[0].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 565: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); }
|
|
yymsp[-2].minor.yy824 = yylhsminor.yy824;
|
|
break;
|
|
case 569: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
{ yymsp[-5].minor.yy952 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); }
|
|
break;
|
|
case 570: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
{ yymsp[-3].minor.yy952 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); }
|
|
break;
|
|
case 573: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
{
|
|
yylhsminor.yy952 = addOrderByClause(pCxt, yymsp[-3].minor.yy952, yymsp[-2].minor.yy824);
|
|
yylhsminor.yy952 = addSlimitClause(pCxt, yylhsminor.yy952, yymsp[-1].minor.yy952);
|
|
yylhsminor.yy952 = addLimitClause(pCxt, yylhsminor.yy952, yymsp[0].minor.yy952);
|
|
}
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 576: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
{ yylhsminor.yy952 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy952, yymsp[0].minor.yy952); }
|
|
yymsp[-3].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 577: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
{ yylhsminor.yy952 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy952, yymsp[0].minor.yy952); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 585: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
case 589: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==589);
|
|
{ yymsp[-1].minor.yy952 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 586: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
case 590: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==590);
|
|
{ yymsp[-3].minor.yy952 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 587: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
case 591: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==591);
|
|
{ yymsp[-3].minor.yy952 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
|
break;
|
|
case 592: /* subquery ::= NK_LP query_expression NK_RP */
|
|
{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy952); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 597: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
{ yylhsminor.yy952 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), yymsp[-1].minor.yy498, yymsp[0].minor.yy977); }
|
|
yymsp[-2].minor.yy952 = yylhsminor.yy952;
|
|
break;
|
|
case 598: /* ordering_specification_opt ::= */
|
|
{ yymsp[1].minor.yy498 = ORDER_ASC; }
|
|
break;
|
|
case 599: /* ordering_specification_opt ::= ASC */
|
|
{ yymsp[0].minor.yy498 = ORDER_ASC; }
|
|
break;
|
|
case 600: /* ordering_specification_opt ::= DESC */
|
|
{ yymsp[0].minor.yy498 = ORDER_DESC; }
|
|
break;
|
|
case 601: /* null_ordering_opt ::= */
|
|
{ yymsp[1].minor.yy977 = NULL_ORDER_DEFAULT; }
|
|
break;
|
|
case 602: /* null_ordering_opt ::= NULLS FIRST */
|
|
{ yymsp[-1].minor.yy977 = NULL_ORDER_FIRST; }
|
|
break;
|
|
case 603: /* null_ordering_opt ::= NULLS LAST */
|
|
{ yymsp[-1].minor.yy977 = 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
|
|
}
|