6855 lines
357 KiB
C
6855 lines
357 KiB
C
/* This file is automatically generated by Lemon from input grammar
|
|
** source file "sql.y". */
|
|
/*
|
|
** 2000-05-29
|
|
**
|
|
** The author disclaims copyright to this source code. In place of
|
|
** a legal notice, here is a blessing:
|
|
**
|
|
** May you do good and not evil.
|
|
** May you find forgiveness for yourself and forgive others.
|
|
** May you share freely, never taking more than you give.
|
|
**
|
|
*************************************************************************
|
|
** Driver template for the LEMON parser generator.
|
|
**
|
|
** The "lemon" program processes an LALR(1) input grammar file, then uses
|
|
** this template to construct a parser. The "lemon" program inserts text
|
|
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
|
|
** interstitial "-" characters) contained in this template is changed into
|
|
** the value of the %name directive from the grammar. Otherwise, the content
|
|
** of this template is copied straight through into the generate parser
|
|
** source file.
|
|
**
|
|
** The following is the concatenation of all %include directives from the
|
|
** input grammar file:
|
|
*/
|
|
#include <stdio.h>
|
|
#include <assert.h>
|
|
/************ Begin %include sections from the grammar ************************/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
|
|
#define ALLOW_FORBID_FUNC
|
|
|
|
#include "functionMgt.h"
|
|
#include "nodes.h"
|
|
#include "parToken.h"
|
|
#include "ttokendef.h"
|
|
#include "parAst.h"
|
|
|
|
#define YYSTACKDEPTH 0
|
|
/**************** End of %include directives **********************************/
|
|
/* These constants specify the various numeric values for terminal symbols
|
|
** in a format understandable to "makeheaders". This section is blank unless
|
|
** "lemon" is run with the "-m" command-line option.
|
|
***************** Begin makeheaders token definitions *************************/
|
|
/**************** End makeheaders token definitions ***************************/
|
|
|
|
/* The next sections is a series of control #defines.
|
|
** various aspects of the generated parser.
|
|
** YYCODETYPE is the data type used to store the integer codes
|
|
** that represent terminal and non-terminal symbols.
|
|
** "unsigned char" is used if there are fewer than
|
|
** 256 symbols. Larger types otherwise.
|
|
** YYNOCODE is a number of type YYCODETYPE that is not used for
|
|
** any terminal or nonterminal symbol.
|
|
** YYFALLBACK If defined, this indicates that one or more tokens
|
|
** (also known as: "terminal symbols") have fall-back
|
|
** values which should be used if the original symbol
|
|
** would not parse. This permits keywords to sometimes
|
|
** be used as identifiers, for example.
|
|
** YYACTIONTYPE is the data type used for "action codes" - numbers
|
|
** that indicate what to do in response to the next
|
|
** token.
|
|
** ParseTOKENTYPE is the data type used for minor type for terminal
|
|
** symbols. Background: A "minor type" is a semantic
|
|
** value associated with a terminal or non-terminal
|
|
** symbols. For example, for an "ID" terminal symbol,
|
|
** the minor type might be the name of the identifier.
|
|
** Each non-terminal can have a different minor type.
|
|
** Terminal symbols all have the same minor type, though.
|
|
** This macros defines the minor type for terminal
|
|
** symbols.
|
|
** YYMINORTYPE is the data type used for all minor types.
|
|
** This is typically a union of many types, one of
|
|
** which is ParseTOKENTYPE. The entry in the union
|
|
** for terminal symbols is called "yy0".
|
|
** YYSTACKDEPTH is the maximum depth of the parser's stack. If
|
|
** zero the stack is dynamically sized using realloc()
|
|
** ParseARG_SDECL A static variable declaration for the %extra_argument
|
|
** ParseARG_PDECL A parameter declaration for the %extra_argument
|
|
** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter
|
|
** ParseARG_STORE Code to store %extra_argument into yypParser
|
|
** ParseARG_FETCH Code to extract %extra_argument from yypParser
|
|
** ParseCTX_* As ParseARG_ except for %extra_context
|
|
** YYERRORSYMBOL is the code number of the error symbol. If not
|
|
** defined, then do no error processing.
|
|
** YYNSTATE the combined number of states.
|
|
** YYNRULE the number of rules in the grammar
|
|
** YYNTOKEN Number of terminal symbols
|
|
** YY_MAX_SHIFT Maximum value for shift actions
|
|
** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions
|
|
** YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions
|
|
** YY_ERROR_ACTION The yy_action[] code for syntax error
|
|
** YY_ACCEPT_ACTION The yy_action[] code for accept
|
|
** YY_NO_ACTION The yy_action[] code for no-op
|
|
** YY_MIN_REDUCE Minimum value for reduce actions
|
|
** YY_MAX_REDUCE Maximum value for reduce actions
|
|
*/
|
|
#ifndef INTERFACE
|
|
# define INTERFACE 1
|
|
#endif
|
|
/************* Begin control #defines *****************************************/
|
|
#define YYCODETYPE unsigned short int
|
|
#define YYNOCODE 508
|
|
#define YYACTIONTYPE unsigned short int
|
|
#define ParseTOKENTYPE SToken
|
|
typedef union {
|
|
int yyinit;
|
|
ParseTOKENTYPE yy0;
|
|
SNodeList* yy88;
|
|
int32_t yy92;
|
|
SAlterOption yy117;
|
|
SShowTablesOption yy133;
|
|
ENullOrder yy153;
|
|
int64_t yy221;
|
|
SNode* yy232;
|
|
STokenPair yy241;
|
|
EFillMode yy246;
|
|
int8_t yy279;
|
|
EShowKind yy281;
|
|
SDataType yy400;
|
|
EJoinType yy436;
|
|
EOperatorType yy708;
|
|
EOrder yy834;
|
|
bool yy985;
|
|
SToken yy993;
|
|
} 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 843
|
|
#define YYNRULE 644
|
|
#define YYNRULE_WITH_ACTION 644
|
|
#define YYNTOKEN 347
|
|
#define YY_MAX_SHIFT 842
|
|
#define YY_MIN_SHIFTREDUCE 1245
|
|
#define YY_MAX_SHIFTREDUCE 1888
|
|
#define YY_ERROR_ACTION 1889
|
|
#define YY_ACCEPT_ACTION 1890
|
|
#define YY_NO_ACTION 1891
|
|
#define YY_MIN_REDUCE 1892
|
|
#define YY_MAX_REDUCE 2535
|
|
/************* 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 (3098)
|
|
static const YYACTIONTYPE yy_action[] = {
|
|
/* 0 */ 481, 2193, 174, 465, 1904, 2296, 562, 2071, 464, 563,
|
|
/* 10 */ 1935, 419, 48, 46, 1812, 1892, 730, 237, 2399, 168,
|
|
/* 20 */ 416, 565, 1653, 1943, 41, 40, 398, 2084, 47, 45,
|
|
/* 30 */ 44, 43, 42, 1679, 2133, 1738, 1978, 1651, 68, 136,
|
|
/* 40 */ 135, 134, 133, 132, 131, 130, 129, 128, 2337, 219,
|
|
/* 50 */ 1678, 669, 2135, 670, 472, 670, 2506, 689, 2506, 381,
|
|
/* 60 */ 559, 710, 184, 727, 239, 1733, 1893, 2133, 565, 557,
|
|
/* 70 */ 1943, 19, 553, 549, 2512, 203, 2512, 203, 1659, 2507,
|
|
/* 80 */ 696, 2507, 696, 2284, 383, 2355, 2197, 127, 95, 2355,
|
|
/* 90 */ 126, 125, 124, 123, 122, 121, 120, 119, 118, 529,
|
|
/* 100 */ 527, 2303, 365, 744, 839, 385, 217, 15, 1678, 814,
|
|
/* 110 */ 813, 812, 811, 428, 2077, 810, 809, 151, 804, 803,
|
|
/* 120 */ 802, 801, 800, 799, 798, 150, 792, 791, 790, 427,
|
|
/* 130 */ 426, 787, 786, 785, 183, 182, 784, 695, 38, 320,
|
|
/* 140 */ 2506, 63, 2336, 1740, 1741, 2374, 688, 727, 114, 2338,
|
|
/* 150 */ 748, 2340, 2341, 743, 653, 738, 1572, 1573, 694, 203,
|
|
/* 160 */ 186, 578, 2427, 2507, 696, 127, 412, 2423, 126, 125,
|
|
/* 170 */ 124, 123, 122, 121, 120, 119, 118, 1713, 1723, 570,
|
|
/* 180 */ 61, 205, 563, 1935, 1739, 1742, 1285, 1816, 667, 2457,
|
|
/* 190 */ 707, 146, 421, 1678, 1449, 2128, 2130, 1571, 1574, 1654,
|
|
/* 200 */ 63, 1652, 1292, 707, 146, 1292, 1681, 1885, 1440, 773,
|
|
/* 210 */ 772, 771, 1444, 770, 1446, 1447, 769, 766, 2297, 1455,
|
|
/* 220 */ 763, 1457, 1458, 760, 757, 754, 1290, 1291, 1287, 1290,
|
|
/* 230 */ 1291, 1657, 1658, 1710, 51, 1712, 1715, 1716, 1717, 1718,
|
|
/* 240 */ 1719, 1720, 1721, 1722, 740, 736, 1731, 1732, 1734, 1735,
|
|
/* 250 */ 1736, 1737, 2, 48, 46, 52, 112, 1311, 364, 1310,
|
|
/* 260 */ 1676, 416, 732, 1653, 2399, 1552, 1553, 513, 670, 2337,
|
|
/* 270 */ 532, 2506, 727, 147, 142, 531, 1738, 582, 1651, 41,
|
|
/* 280 */ 40, 2074, 742, 47, 45, 44, 43, 42, 685, 2512,
|
|
/* 290 */ 203, 495, 1312, 533, 2507, 696, 728, 2082, 367, 497,
|
|
/* 300 */ 300, 2435, 706, 304, 138, 705, 1733, 2506, 210, 475,
|
|
/* 310 */ 2355, 1884, 19, 202, 2435, 2436, 137, 144, 2440, 1659,
|
|
/* 320 */ 2217, 410, 2303, 605, 744, 694, 203, 567, 1679, 171,
|
|
/* 330 */ 2507, 696, 173, 564, 624, 623, 622, 2084, 2215, 715,
|
|
/* 340 */ 2021, 614, 143, 618, 196, 839, 384, 617, 15, 2217,
|
|
/* 350 */ 1714, 1678, 616, 621, 391, 390, 2122, 483, 615, 51,
|
|
/* 360 */ 2442, 611, 304, 2336, 409, 302, 2374, 2214, 715, 356,
|
|
/* 370 */ 2338, 748, 2340, 2341, 743, 741, 738, 729, 2392, 1854,
|
|
/* 380 */ 691, 686, 679, 1915, 1740, 1741, 2439, 2204, 2183, 579,
|
|
/* 390 */ 520, 519, 518, 517, 512, 511, 510, 509, 508, 503,
|
|
/* 400 */ 502, 501, 500, 492, 491, 490, 1711, 485, 484, 382,
|
|
/* 410 */ 1965, 172, 690, 476, 1540, 1541, 340, 304, 1713, 1723,
|
|
/* 420 */ 1559, 707, 146, 41, 40, 1739, 1742, 47, 45, 44,
|
|
/* 430 */ 43, 42, 625, 338, 74, 1682, 2303, 73, 63, 783,
|
|
/* 440 */ 1654, 2511, 1652, 1835, 2506, 580, 2210, 366, 2166, 41,
|
|
/* 450 */ 40, 1484, 1485, 47, 45, 44, 43, 42, 1836, 235,
|
|
/* 460 */ 544, 542, 539, 2510, 707, 146, 12, 2507, 2509, 63,
|
|
/* 470 */ 487, 2193, 1657, 1658, 1710, 1843, 1712, 1715, 1716, 1717,
|
|
/* 480 */ 1718, 1719, 1720, 1721, 1722, 740, 736, 1731, 1732, 1734,
|
|
/* 490 */ 1735, 1736, 1737, 2, 12, 48, 46, 311, 312, 1834,
|
|
/* 500 */ 63, 2265, 310, 416, 2337, 1653, 47, 45, 44, 43,
|
|
/* 510 */ 42, 2442, 375, 1914, 728, 2082, 76, 745, 1738, 221,
|
|
/* 520 */ 1651, 304, 425, 424, 682, 681, 1841, 1842, 1844, 1845,
|
|
/* 530 */ 1846, 204, 2435, 2436, 137, 144, 2440, 2438, 64, 223,
|
|
/* 540 */ 2337, 610, 515, 2193, 1913, 2355, 1748, 1660, 1733, 2059,
|
|
/* 550 */ 400, 651, 1678, 745, 19, 274, 1767, 2303, 654, 744,
|
|
/* 560 */ 463, 1659, 462, 41, 40, 87, 2303, 47, 45, 44,
|
|
/* 570 */ 43, 42, 774, 709, 201, 2435, 2436, 1912, 144, 2440,
|
|
/* 580 */ 90, 2355, 654, 89, 84, 83, 468, 839, 30, 216,
|
|
/* 590 */ 15, 226, 461, 2303, 199, 744, 1678, 2303, 2336, 1404,
|
|
/* 600 */ 304, 2374, 460, 458, 357, 2338, 748, 2340, 2341, 743,
|
|
/* 610 */ 499, 738, 1911, 363, 1403, 2313, 447, 1768, 498, 444,
|
|
/* 620 */ 440, 436, 433, 461, 2058, 1710, 1740, 1741, 1392, 2073,
|
|
/* 630 */ 2303, 304, 572, 2256, 2336, 2057, 12, 2374, 10, 2317,
|
|
/* 640 */ 114, 2338, 748, 2340, 2341, 743, 88, 738, 1683, 2511,
|
|
/* 650 */ 149, 1682, 156, 2398, 2427, 1910, 656, 2256, 412, 2423,
|
|
/* 660 */ 1713, 1723, 304, 1855, 1909, 2303, 1681, 1739, 1742, 1394,
|
|
/* 670 */ 41, 40, 728, 2082, 47, 45, 44, 43, 42, 1890,
|
|
/* 680 */ 1659, 534, 1654, 2319, 1652, 781, 161, 160, 778, 777,
|
|
/* 690 */ 776, 158, 208, 738, 783, 523, 9, 37, 414, 1762,
|
|
/* 700 */ 1763, 1764, 1765, 1766, 1770, 1771, 1772, 1773, 2303, 1714,
|
|
/* 710 */ 1311, 1663, 1310, 1908, 1657, 1658, 1710, 2303, 1712, 1715,
|
|
/* 720 */ 1716, 1717, 1718, 1719, 1720, 1721, 1722, 740, 736, 1731,
|
|
/* 730 */ 1732, 1734, 1735, 1736, 1737, 2, 48, 46, 1743, 2337,
|
|
/* 740 */ 2135, 1653, 728, 2082, 416, 1312, 1653, 397, 728, 2082,
|
|
/* 750 */ 2067, 273, 710, 1714, 1878, 2133, 1651, 227, 431, 1738,
|
|
/* 760 */ 449, 1651, 56, 430, 695, 1711, 2303, 2506, 469, 2337,
|
|
/* 770 */ 1828, 781, 161, 160, 778, 777, 776, 158, 522, 521,
|
|
/* 780 */ 2355, 2313, 745, 1408, 1945, 694, 203, 728, 2082, 1733,
|
|
/* 790 */ 2507, 696, 2303, 2442, 744, 2322, 106, 1659, 1407, 1682,
|
|
/* 800 */ 728, 2082, 1659, 14, 13, 2317, 95, 470, 670, 1711,
|
|
/* 810 */ 2355, 2506, 781, 161, 160, 778, 777, 776, 158, 2437,
|
|
/* 820 */ 489, 2075, 2303, 839, 744, 302, 1621, 1622, 839, 2512,
|
|
/* 830 */ 203, 49, 2078, 2336, 2507, 696, 2374, 2337, 1907, 114,
|
|
/* 840 */ 2338, 748, 2340, 2341, 743, 2135, 738, 2135, 325, 2319,
|
|
/* 850 */ 745, 186, 406, 2427, 411, 728, 2082, 412, 2423, 738,
|
|
/* 860 */ 2133, 1682, 2133, 2336, 1683, 536, 2374, 1740, 1741, 114,
|
|
/* 870 */ 2338, 748, 2340, 2341, 743, 504, 738, 649, 2355, 642,
|
|
/* 880 */ 2458, 2526, 2176, 2427, 2069, 453, 797, 412, 2423, 2043,
|
|
/* 890 */ 2303, 2303, 744, 34, 640, 184, 638, 269, 268, 41,
|
|
/* 900 */ 40, 1713, 1723, 47, 45, 44, 43, 42, 1739, 1742,
|
|
/* 910 */ 1781, 609, 455, 451, 2135, 608, 728, 2082, 1654, 2198,
|
|
/* 920 */ 1652, 420, 1801, 1654, 479, 1652, 794, 670, 272, 2133,
|
|
/* 930 */ 2506, 2336, 271, 1769, 2374, 1981, 505, 175, 2338, 748,
|
|
/* 940 */ 2340, 2341, 743, 111, 738, 44, 43, 42, 2512, 203,
|
|
/* 950 */ 1657, 1658, 108, 2507, 696, 1657, 1658, 1710, 194, 1712,
|
|
/* 960 */ 1715, 1716, 1717, 1718, 1719, 1720, 1721, 1722, 740, 736,
|
|
/* 970 */ 1731, 1732, 1734, 1735, 1736, 1737, 2, 48, 46, 671,
|
|
/* 980 */ 2468, 620, 619, 36, 655, 416, 711, 1653, 1906, 41,
|
|
/* 990 */ 40, 796, 2337, 47, 45, 44, 43, 42, 98, 1903,
|
|
/* 1000 */ 1738, 370, 1651, 419, 396, 745, 644, 2465, 624, 623,
|
|
/* 1010 */ 622, 171, 1683, 35, 2065, 614, 143, 618, 2337, 2084,
|
|
/* 1020 */ 198, 617, 2511, 1774, 2510, 2506, 616, 621, 391, 390,
|
|
/* 1030 */ 1733, 745, 615, 2355, 670, 611, 670, 2506, 422, 2506,
|
|
/* 1040 */ 1809, 2303, 2086, 1659, 2510, 2303, 171, 744, 2507, 2508,
|
|
/* 1050 */ 728, 2082, 2303, 280, 2084, 2512, 203, 2512, 203, 2355,
|
|
/* 1060 */ 2507, 696, 2507, 696, 1902, 775, 389, 388, 2126, 839,
|
|
/* 1070 */ 506, 2303, 49, 744, 1683, 2337, 41, 40, 728, 2082,
|
|
/* 1080 */ 47, 45, 44, 43, 42, 739, 2336, 1901, 745, 2374,
|
|
/* 1090 */ 2478, 1900, 114, 2338, 748, 2340, 2341, 743, 581, 738,
|
|
/* 1100 */ 1899, 1294, 2129, 2130, 2526, 612, 2427, 1677, 1740, 1741,
|
|
/* 1110 */ 412, 2423, 2336, 1314, 1315, 2374, 2355, 2303, 115, 2338,
|
|
/* 1120 */ 748, 2340, 2341, 743, 1678, 738, 601, 600, 2303, 1389,
|
|
/* 1130 */ 744, 1898, 2427, 2337, 728, 2082, 2426, 2423, 387, 386,
|
|
/* 1140 */ 2303, 607, 1713, 1723, 2303, 159, 745, 2135, 677, 1739,
|
|
/* 1150 */ 1742, 41, 40, 2303, 2079, 47, 45, 44, 43, 42,
|
|
/* 1160 */ 603, 602, 714, 609, 1654, 171, 1652, 608, 1897, 2336,
|
|
/* 1170 */ 728, 2082, 2374, 2085, 2355, 114, 2338, 748, 2340, 2341,
|
|
/* 1180 */ 743, 2287, 738, 3, 2303, 197, 2303, 2526, 744, 2427,
|
|
/* 1190 */ 275, 808, 806, 412, 2423, 54, 1657, 1658, 1710, 2022,
|
|
/* 1200 */ 1712, 1715, 1716, 1717, 1718, 1719, 1720, 1721, 1722, 740,
|
|
/* 1210 */ 736, 1731, 1732, 1734, 1735, 1736, 1737, 2, 48, 46,
|
|
/* 1220 */ 55, 2303, 148, 1896, 1895, 2398, 416, 2336, 1653, 2135,
|
|
/* 1230 */ 2374, 2135, 438, 114, 2338, 748, 2340, 2341, 743, 99,
|
|
/* 1240 */ 738, 1738, 631, 1651, 723, 2526, 2134, 2427, 728, 2082,
|
|
/* 1250 */ 779, 412, 2423, 2126, 297, 728, 2082, 643, 699, 2337,
|
|
/* 1260 */ 728, 2082, 728, 2082, 702, 728, 2082, 2313, 283, 1662,
|
|
/* 1270 */ 1600, 1733, 745, 270, 2499, 713, 2303, 2303, 2447, 1801,
|
|
/* 1280 */ 315, 2321, 725, 1905, 1659, 726, 728, 2082, 2060, 634,
|
|
/* 1290 */ 780, 2317, 334, 2126, 159, 2112, 628, 626, 728, 2082,
|
|
/* 1300 */ 2355, 1920, 834, 267, 139, 260, 321, 1808, 258, 141,
|
|
/* 1310 */ 839, 698, 2303, 15, 744, 613, 86, 2337, 423, 1963,
|
|
/* 1320 */ 1954, 152, 170, 425, 424, 262, 264, 159, 261, 263,
|
|
/* 1330 */ 745, 266, 2446, 1667, 265, 2319, 413, 1711, 646, 1387,
|
|
/* 1340 */ 645, 627, 629, 1952, 72, 738, 1738, 71, 1660, 1740,
|
|
/* 1350 */ 1741, 284, 2324, 2336, 735, 50, 2374, 50, 2355, 114,
|
|
/* 1360 */ 2338, 748, 2340, 2341, 743, 632, 738, 1887, 1888, 1616,
|
|
/* 1370 */ 2303, 2526, 744, 2427, 14, 13, 1733, 412, 2423, 2471,
|
|
/* 1380 */ 683, 2356, 1661, 1713, 1723, 187, 50, 159, 50, 1659,
|
|
/* 1390 */ 1739, 1742, 50, 309, 75, 100, 157, 159, 66, 788,
|
|
/* 1400 */ 752, 157, 1619, 159, 789, 1654, 291, 1652, 140, 157,
|
|
/* 1410 */ 2326, 2336, 1946, 2019, 2374, 734, 2018, 114, 2338, 748,
|
|
/* 1420 */ 2340, 2341, 743, 1366, 738, 1347, 2202, 1936, 1364, 2526,
|
|
/* 1430 */ 1840, 2427, 1839, 1665, 2461, 412, 2423, 1657, 1658, 1710,
|
|
/* 1440 */ 680, 1712, 1715, 1716, 1717, 1718, 1719, 1720, 1721, 1722,
|
|
/* 1450 */ 740, 736, 1731, 1732, 1734, 1735, 1736, 1737, 2, 429,
|
|
/* 1460 */ 289, 333, 712, 1724, 832, 402, 1348, 1569, 313, 720,
|
|
/* 1470 */ 687, 317, 1434, 1775, 255, 1462, 1466, 399, 1473, 2337,
|
|
/* 1480 */ 717, 2203, 1942, 1471, 162, 2123, 663, 2462, 2472, 296,
|
|
/* 1490 */ 178, 708, 745, 299, 2044, 303, 432, 437, 5, 599,
|
|
/* 1500 */ 595, 591, 587, 445, 254, 379, 446, 1686, 457, 456,
|
|
/* 1510 */ 1668, 212, 1663, 459, 1759, 214, 211, 700, 1593, 328,
|
|
/* 1520 */ 2355, 1676, 473, 1677, 480, 703, 225, 482, 486, 488,
|
|
/* 1530 */ 493, 507, 2303, 525, 744, 514, 2195, 2337, 516, 524,
|
|
/* 1540 */ 526, 537, 1671, 1673, 535, 96, 1664, 229, 252, 540,
|
|
/* 1550 */ 745, 538, 230, 541, 232, 543, 736, 1731, 1732, 1734,
|
|
/* 1560 */ 1735, 1736, 1737, 545, 2337, 1684, 560, 4, 561, 569,
|
|
/* 1570 */ 571, 240, 568, 2336, 92, 1679, 2374, 745, 2355, 114,
|
|
/* 1580 */ 2338, 748, 2340, 2341, 743, 1685, 738, 573, 1687, 243,
|
|
/* 1590 */ 2303, 2402, 744, 2427, 574, 575, 1688, 412, 2423, 246,
|
|
/* 1600 */ 577, 583, 2211, 604, 248, 2355, 93, 2274, 94, 116,
|
|
/* 1610 */ 606, 242, 253, 2072, 257, 635, 636, 2303, 2068, 744,
|
|
/* 1620 */ 251, 244, 2337, 360, 648, 259, 650, 249, 576, 97,
|
|
/* 1630 */ 1680, 2336, 2271, 164, 2374, 745, 165, 114, 2338, 748,
|
|
/* 1640 */ 2340, 2341, 743, 2070, 738, 2066, 241, 166, 167, 2400,
|
|
/* 1650 */ 329, 2427, 2270, 153, 276, 412, 2423, 2257, 2336, 658,
|
|
/* 1660 */ 657, 2374, 281, 2355, 114, 2338, 748, 2340, 2341, 743,
|
|
/* 1670 */ 662, 738, 665, 664, 279, 2303, 731, 744, 2427, 659,
|
|
/* 1680 */ 674, 684, 412, 2423, 2477, 718, 2476, 286, 288, 693,
|
|
/* 1690 */ 8, 672, 2449, 675, 290, 179, 673, 2337, 2529, 2505,
|
|
/* 1700 */ 295, 403, 704, 1801, 701, 145, 1681, 298, 2443, 1806,
|
|
/* 1710 */ 745, 330, 1804, 190, 721, 305, 2336, 154, 716, 2374,
|
|
/* 1720 */ 2225, 2224, 115, 2338, 748, 2340, 2341, 743, 293, 738,
|
|
/* 1730 */ 2223, 408, 1, 206, 2337, 331, 2427, 292, 2355, 294,
|
|
/* 1740 */ 733, 2423, 722, 155, 2083, 332, 105, 745, 62, 2408,
|
|
/* 1750 */ 2303, 107, 744, 2127, 335, 1269, 323, 750, 833, 53,
|
|
/* 1760 */ 371, 372, 836, 344, 358, 2337, 337, 163, 348, 838,
|
|
/* 1770 */ 359, 339, 2295, 2294, 2293, 2355, 81, 2288, 745, 434,
|
|
/* 1780 */ 435, 1644, 1645, 209, 439, 2286, 441, 2303, 442, 744,
|
|
/* 1790 */ 443, 746, 1643, 2285, 2374, 380, 2283, 115, 2338, 748,
|
|
/* 1800 */ 2340, 2341, 743, 448, 738, 2282, 2355, 450, 2337, 2281,
|
|
/* 1810 */ 452, 2427, 2280, 454, 1632, 374, 2423, 2261, 2303, 213,
|
|
/* 1820 */ 744, 745, 2260, 215, 1596, 82, 1595, 2238, 2336, 2237,
|
|
/* 1830 */ 2337, 2374, 2236, 466, 176, 2338, 748, 2340, 2341, 743,
|
|
/* 1840 */ 467, 738, 2235, 745, 2234, 2185, 471, 1539, 2182, 2355,
|
|
/* 1850 */ 474, 2181, 2175, 478, 2172, 477, 218, 2171, 2170, 2336,
|
|
/* 1860 */ 85, 2303, 2374, 744, 2169, 115, 2338, 748, 2340, 2341,
|
|
/* 1870 */ 743, 2355, 738, 2174, 220, 2173, 401, 2168, 2167, 2427,
|
|
/* 1880 */ 2165, 2164, 2163, 2303, 2424, 744, 222, 494, 697, 2527,
|
|
/* 1890 */ 2162, 496, 2178, 2161, 2160, 2159, 2158, 2157, 2180, 2156,
|
|
/* 1900 */ 2155, 2337, 2336, 2154, 2153, 2374, 2152, 2151, 175, 2338,
|
|
/* 1910 */ 748, 2340, 2341, 743, 745, 738, 2150, 2149, 2148, 2147,
|
|
/* 1920 */ 224, 2146, 2145, 2144, 2336, 2143, 2179, 2374, 2337, 91,
|
|
/* 1930 */ 357, 2338, 748, 2340, 2341, 743, 2177, 738, 2142, 2141,
|
|
/* 1940 */ 2140, 745, 2355, 228, 2139, 2138, 1545, 528, 2137, 530,
|
|
/* 1950 */ 2136, 2469, 1405, 1409, 2303, 368, 744, 1984, 369, 1983,
|
|
/* 1960 */ 1982, 1980, 1977, 547, 1401, 1976, 231, 1969, 1956, 2355,
|
|
/* 1970 */ 546, 548, 550, 1931, 233, 234, 1930, 236, 554, 552,
|
|
/* 1980 */ 558, 2303, 185, 744, 1293, 551, 2259, 2255, 556, 78,
|
|
/* 1990 */ 2245, 2233, 2232, 555, 238, 2336, 79, 245, 2374, 2209,
|
|
/* 2000 */ 2337, 350, 2338, 748, 2340, 2341, 743, 2323, 738, 247,
|
|
/* 2010 */ 2061, 1979, 195, 745, 1975, 566, 584, 586, 250, 1973,
|
|
/* 2020 */ 588, 1971, 2336, 585, 1340, 2374, 2337, 1968, 176, 2338,
|
|
/* 2030 */ 748, 2340, 2341, 743, 592, 738, 589, 590, 594, 742,
|
|
/* 2040 */ 593, 2355, 596, 1951, 597, 598, 407, 692, 1949, 1950,
|
|
/* 2050 */ 1948, 1927, 2063, 2303, 1478, 744, 1477, 2062, 1966, 1391,
|
|
/* 2060 */ 1964, 1390, 1388, 1386, 805, 1385, 1384, 2355, 65, 256,
|
|
/* 2070 */ 1383, 807, 1382, 1379, 1378, 1377, 1376, 392, 393, 2303,
|
|
/* 2080 */ 1606, 744, 1955, 2528, 394, 630, 1953, 395, 1926, 1925,
|
|
/* 2090 */ 1924, 633, 1923, 1922, 2336, 641, 637, 2374, 2337, 117,
|
|
/* 2100 */ 357, 2338, 748, 2340, 2341, 743, 639, 738, 1626, 1628,
|
|
/* 2110 */ 1630, 745, 1625, 29, 2258, 69, 278, 2254, 1602, 1604,
|
|
/* 2120 */ 2336, 2511, 652, 2374, 2244, 660, 356, 2338, 748, 2340,
|
|
/* 2130 */ 2341, 743, 2231, 738, 2230, 2393, 17, 20, 1857, 2355,
|
|
/* 2140 */ 842, 6, 21, 57, 415, 7, 22, 31, 285, 676,
|
|
/* 2150 */ 58, 2303, 177, 744, 287, 1838, 327, 661, 189, 282,
|
|
/* 2160 */ 1581, 200, 33, 1580, 678, 2324, 2337, 67, 666, 24,
|
|
/* 2170 */ 188, 32, 193, 80, 668, 1872, 169, 1871, 1827, 745,
|
|
/* 2180 */ 404, 830, 826, 822, 818, 23, 324, 18, 1876, 1875,
|
|
/* 2190 */ 405, 1877, 2336, 1878, 301, 2374, 60, 180, 357, 2338,
|
|
/* 2200 */ 748, 2340, 2341, 743, 1798, 738, 1797, 2355, 2229, 2208,
|
|
/* 2210 */ 102, 2207, 417, 101, 25, 319, 308, 103, 1833, 2303,
|
|
/* 2220 */ 26, 744, 191, 13, 1669, 719, 314, 113, 1750, 70,
|
|
/* 2230 */ 318, 181, 1749, 104, 192, 2337, 108, 2377, 1760, 1728,
|
|
/* 2240 */ 737, 1703, 751, 1726, 39, 749, 16, 59, 745, 316,
|
|
/* 2250 */ 1725, 27, 2337, 28, 11, 1695, 322, 1463, 1460, 418,
|
|
/* 2260 */ 2336, 753, 724, 2374, 755, 745, 357, 2338, 748, 2340,
|
|
/* 2270 */ 2341, 743, 756, 738, 758, 1459, 2355, 759, 2337, 1456,
|
|
/* 2280 */ 761, 762, 764, 767, 1450, 765, 1454, 1448, 2303, 1453,
|
|
/* 2290 */ 744, 745, 1472, 2355, 1468, 768, 109, 1452, 110, 77,
|
|
/* 2300 */ 1451, 1338, 307, 782, 1373, 2303, 1370, 744, 747, 306,
|
|
/* 2310 */ 1369, 1368, 1367, 1365, 1363, 1362, 1361, 1399, 793, 2355,
|
|
/* 2320 */ 1398, 795, 1359, 207, 1358, 1357, 1356, 1395, 277, 647,
|
|
/* 2330 */ 1355, 2303, 2374, 744, 1354, 352, 2338, 748, 2340, 2341,
|
|
/* 2340 */ 743, 1344, 738, 1353, 1393, 1350, 2336, 1349, 1346, 2374,
|
|
/* 2350 */ 1345, 2337, 342, 2338, 748, 2340, 2341, 743, 1343, 738,
|
|
/* 2360 */ 1974, 815, 817, 816, 745, 1972, 819, 820, 821, 1970,
|
|
/* 2370 */ 823, 1967, 2336, 2337, 824, 2374, 825, 827, 341, 2338,
|
|
/* 2380 */ 748, 2340, 2341, 743, 829, 738, 745, 828, 1947, 831,
|
|
/* 2390 */ 1282, 1921, 2355, 841, 1270, 835, 1891, 326, 837, 1891,
|
|
/* 2400 */ 1655, 336, 840, 1891, 2303, 1891, 744, 1891, 1891, 1891,
|
|
/* 2410 */ 1891, 1891, 1891, 1891, 2355, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2420 */ 1891, 1891, 1891, 1891, 1891, 1891, 2303, 1891, 744, 1891,
|
|
/* 2430 */ 2337, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2440 */ 1891, 1891, 1891, 745, 1891, 2336, 1891, 1891, 2374, 2337,
|
|
/* 2450 */ 1891, 343, 2338, 748, 2340, 2341, 743, 1891, 738, 1891,
|
|
/* 2460 */ 1891, 1891, 745, 1891, 1891, 1891, 1891, 2336, 1891, 1891,
|
|
/* 2470 */ 2374, 2355, 1891, 349, 2338, 748, 2340, 2341, 743, 1891,
|
|
/* 2480 */ 738, 1891, 1891, 2303, 1891, 744, 1891, 1891, 1891, 1891,
|
|
/* 2490 */ 2355, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2500 */ 1891, 1891, 2303, 1891, 744, 1891, 1891, 2337, 1891, 1891,
|
|
/* 2510 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2520 */ 745, 1891, 1891, 2337, 2336, 1891, 1891, 2374, 1891, 1891,
|
|
/* 2530 */ 353, 2338, 748, 2340, 2341, 743, 745, 738, 1891, 1891,
|
|
/* 2540 */ 1891, 1891, 1891, 2336, 1891, 1891, 2374, 1891, 2355, 345,
|
|
/* 2550 */ 2338, 748, 2340, 2341, 743, 1891, 738, 1891, 1891, 1891,
|
|
/* 2560 */ 2303, 1891, 744, 1891, 2355, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2570 */ 1891, 1891, 1891, 1891, 1891, 1891, 2303, 1891, 744, 1891,
|
|
/* 2580 */ 1891, 2337, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2590 */ 1891, 1891, 1891, 1891, 745, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2600 */ 1891, 2336, 1891, 2337, 2374, 1891, 1891, 354, 2338, 748,
|
|
/* 2610 */ 2340, 2341, 743, 1891, 738, 1891, 745, 2336, 2337, 1891,
|
|
/* 2620 */ 2374, 1891, 2355, 346, 2338, 748, 2340, 2341, 743, 1891,
|
|
/* 2630 */ 738, 745, 1891, 1891, 2303, 1891, 744, 1891, 1891, 2337,
|
|
/* 2640 */ 1891, 1891, 1891, 1891, 2355, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2650 */ 1891, 1891, 745, 1891, 1891, 1891, 2303, 1891, 744, 2355,
|
|
/* 2660 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2670 */ 1891, 2303, 1891, 744, 1891, 2336, 1891, 1891, 2374, 1891,
|
|
/* 2680 */ 2355, 355, 2338, 748, 2340, 2341, 743, 1891, 738, 1891,
|
|
/* 2690 */ 1891, 1891, 2303, 1891, 744, 1891, 1891, 2336, 1891, 1891,
|
|
/* 2700 */ 2374, 1891, 1891, 347, 2338, 748, 2340, 2341, 743, 1891,
|
|
/* 2710 */ 738, 1891, 2336, 1891, 1891, 2374, 1891, 1891, 361, 2338,
|
|
/* 2720 */ 748, 2340, 2341, 743, 2337, 738, 1891, 1891, 1891, 1891,
|
|
/* 2730 */ 1891, 1891, 1891, 2336, 1891, 1891, 2374, 745, 1891, 362,
|
|
/* 2740 */ 2338, 748, 2340, 2341, 743, 1891, 738, 1891, 1891, 1891,
|
|
/* 2750 */ 1891, 1891, 1891, 1891, 1891, 2337, 1891, 1891, 1891, 1891,
|
|
/* 2760 */ 1891, 1891, 1891, 1891, 1891, 2355, 1891, 1891, 745, 1891,
|
|
/* 2770 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 2303, 1891, 744,
|
|
/* 2780 */ 1891, 2337, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2790 */ 1891, 1891, 1891, 1891, 745, 1891, 2355, 1891, 1891, 1891,
|
|
/* 2800 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 2303, 1891,
|
|
/* 2810 */ 744, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 2336, 1891,
|
|
/* 2820 */ 1891, 2374, 2355, 1891, 2349, 2338, 748, 2340, 2341, 743,
|
|
/* 2830 */ 1891, 738, 1891, 1891, 2303, 1891, 744, 1891, 1891, 1891,
|
|
/* 2840 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 2336,
|
|
/* 2850 */ 1891, 1891, 2374, 2337, 1891, 2348, 2338, 748, 2340, 2341,
|
|
/* 2860 */ 743, 1891, 738, 1891, 1891, 1891, 745, 1891, 1891, 1891,
|
|
/* 2870 */ 1891, 1891, 1891, 1891, 2337, 2336, 1891, 1891, 2374, 1891,
|
|
/* 2880 */ 1891, 2347, 2338, 748, 2340, 2341, 743, 745, 738, 1891,
|
|
/* 2890 */ 1891, 1891, 1891, 1891, 2355, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2900 */ 1891, 1891, 1891, 1891, 1891, 1891, 2303, 1891, 744, 1891,
|
|
/* 2910 */ 1891, 2337, 1891, 1891, 1891, 2355, 1891, 1891, 1891, 1891,
|
|
/* 2920 */ 1891, 1891, 1891, 1891, 745, 1891, 1891, 2303, 1891, 744,
|
|
/* 2930 */ 1891, 1891, 2337, 1891, 1891, 1891, 1891, 1891, 1891, 1891,
|
|
/* 2940 */ 1891, 1891, 1891, 1891, 1891, 745, 1891, 2336, 1891, 1891,
|
|
/* 2950 */ 2374, 1891, 2355, 376, 2338, 748, 2340, 2341, 743, 1891,
|
|
/* 2960 */ 738, 1891, 1891, 1891, 2303, 1891, 744, 1891, 2336, 2337,
|
|
/* 2970 */ 1891, 2374, 1891, 2355, 377, 2338, 748, 2340, 2341, 743,
|
|
/* 2980 */ 1891, 738, 745, 1891, 1891, 2303, 1891, 744, 1891, 1891,
|
|
/* 2990 */ 2337, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891,
|
|
/* 3000 */ 1891, 1891, 1891, 745, 1891, 2336, 1891, 1891, 2374, 1891,
|
|
/* 3010 */ 2355, 373, 2338, 748, 2340, 2341, 743, 1891, 738, 1891,
|
|
/* 3020 */ 1891, 1891, 2303, 1891, 744, 1891, 2336, 1891, 1891, 2374,
|
|
/* 3030 */ 1891, 2355, 378, 2338, 748, 2340, 2341, 743, 1891, 738,
|
|
/* 3040 */ 1891, 1891, 1891, 2303, 1891, 744, 1891, 1891, 1891, 1891,
|
|
/* 3050 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891,
|
|
/* 3060 */ 1891, 1891, 1891, 746, 1891, 1891, 2374, 1891, 1891, 352,
|
|
/* 3070 */ 2338, 748, 2340, 2341, 743, 1891, 738, 1891, 1891, 1891,
|
|
/* 3080 */ 1891, 1891, 1891, 1891, 2336, 1891, 1891, 2374, 1891, 1891,
|
|
/* 3090 */ 351, 2338, 748, 2340, 2341, 743, 1891, 738,
|
|
};
|
|
static const YYCODETYPE yy_lookahead[] = {
|
|
/* 0 */ 362, 363, 349, 426, 351, 426, 357, 392, 431, 360,
|
|
/* 10 */ 361, 383, 12, 13, 14, 0, 461, 358, 463, 391,
|
|
/* 20 */ 20, 362, 22, 364, 8, 9, 398, 399, 12, 13,
|
|
/* 30 */ 14, 15, 16, 20, 406, 35, 0, 37, 4, 24,
|
|
/* 40 */ 25, 26, 27, 28, 29, 30, 31, 32, 350, 411,
|
|
/* 50 */ 20, 50, 391, 476, 362, 476, 479, 363, 479, 398,
|
|
/* 60 */ 51, 363, 391, 20, 358, 65, 0, 406, 362, 60,
|
|
/* 70 */ 364, 71, 63, 64, 497, 498, 497, 498, 78, 502,
|
|
/* 80 */ 503, 502, 503, 0, 413, 391, 415, 21, 371, 391,
|
|
/* 90 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 407,
|
|
/* 100 */ 408, 403, 410, 405, 104, 388, 414, 107, 20, 73,
|
|
/* 110 */ 74, 75, 76, 77, 397, 79, 80, 81, 82, 83,
|
|
/* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
|
|
/* 130 */ 94, 95, 96, 97, 98, 99, 100, 476, 465, 466,
|
|
/* 140 */ 479, 107, 444, 143, 144, 447, 452, 20, 450, 451,
|
|
/* 150 */ 452, 453, 454, 455, 20, 457, 143, 144, 497, 498,
|
|
/* 160 */ 462, 20, 464, 502, 503, 21, 468, 469, 24, 25,
|
|
/* 170 */ 26, 27, 28, 29, 30, 31, 32, 177, 178, 357,
|
|
/* 180 */ 179, 483, 360, 361, 184, 185, 4, 14, 187, 491,
|
|
/* 190 */ 362, 363, 401, 20, 104, 404, 405, 184, 185, 199,
|
|
/* 200 */ 107, 201, 23, 362, 363, 23, 20, 191, 118, 119,
|
|
/* 210 */ 120, 121, 122, 123, 124, 125, 126, 127, 426, 129,
|
|
/* 220 */ 130, 131, 132, 133, 134, 135, 47, 48, 46, 47,
|
|
/* 230 */ 48, 231, 232, 233, 107, 235, 236, 237, 238, 239,
|
|
/* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
|
/* 250 */ 250, 251, 252, 12, 13, 107, 369, 20, 18, 22,
|
|
/* 260 */ 20, 20, 461, 22, 463, 177, 178, 27, 476, 350,
|
|
/* 270 */ 30, 479, 20, 386, 37, 35, 35, 70, 37, 8,
|
|
/* 280 */ 9, 394, 363, 12, 13, 14, 15, 16, 183, 497,
|
|
/* 290 */ 498, 51, 55, 53, 502, 503, 362, 363, 58, 59,
|
|
/* 300 */ 472, 473, 474, 269, 476, 477, 65, 479, 225, 69,
|
|
/* 310 */ 391, 295, 71, 472, 473, 474, 382, 476, 477, 78,
|
|
/* 320 */ 405, 383, 403, 389, 405, 497, 498, 14, 20, 391,
|
|
/* 330 */ 502, 503, 372, 20, 73, 74, 75, 399, 423, 424,
|
|
/* 340 */ 380, 80, 81, 82, 390, 104, 106, 86, 107, 405,
|
|
/* 350 */ 177, 20, 91, 92, 93, 94, 402, 117, 97, 107,
|
|
/* 360 */ 449, 100, 269, 444, 420, 179, 447, 423, 424, 450,
|
|
/* 370 */ 451, 452, 453, 454, 455, 456, 457, 458, 459, 108,
|
|
/* 380 */ 275, 276, 277, 350, 143, 144, 475, 147, 148, 362,
|
|
/* 390 */ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
|
|
/* 400 */ 160, 161, 162, 163, 164, 165, 233, 167, 168, 169,
|
|
/* 410 */ 0, 18, 20, 173, 174, 175, 23, 269, 177, 178,
|
|
/* 420 */ 180, 362, 363, 8, 9, 184, 185, 12, 13, 14,
|
|
/* 430 */ 15, 16, 22, 40, 41, 20, 403, 44, 107, 70,
|
|
/* 440 */ 199, 476, 201, 22, 479, 418, 419, 54, 0, 8,
|
|
/* 450 */ 9, 143, 144, 12, 13, 14, 15, 16, 37, 66,
|
|
/* 460 */ 67, 68, 69, 498, 362, 363, 253, 502, 503, 107,
|
|
/* 470 */ 362, 363, 231, 232, 233, 231, 235, 236, 237, 238,
|
|
/* 480 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
/* 490 */ 249, 250, 251, 252, 253, 12, 13, 137, 138, 78,
|
|
/* 500 */ 107, 387, 142, 20, 350, 22, 12, 13, 14, 15,
|
|
/* 510 */ 16, 449, 71, 350, 362, 363, 117, 363, 35, 411,
|
|
/* 520 */ 37, 269, 12, 13, 280, 281, 282, 283, 284, 285,
|
|
/* 530 */ 286, 472, 473, 474, 382, 476, 477, 475, 145, 65,
|
|
/* 540 */ 350, 389, 362, 363, 350, 391, 14, 37, 65, 0,
|
|
/* 550 */ 396, 117, 20, 363, 71, 441, 115, 403, 362, 405,
|
|
/* 560 */ 198, 78, 200, 8, 9, 166, 403, 12, 13, 14,
|
|
/* 570 */ 15, 16, 117, 471, 472, 473, 474, 350, 476, 477,
|
|
/* 580 */ 106, 391, 362, 109, 191, 192, 193, 104, 33, 196,
|
|
/* 590 */ 107, 411, 230, 403, 179, 405, 20, 403, 444, 22,
|
|
/* 600 */ 269, 447, 209, 210, 450, 451, 452, 453, 454, 455,
|
|
/* 610 */ 162, 457, 350, 220, 37, 379, 223, 176, 170, 226,
|
|
/* 620 */ 227, 228, 229, 230, 0, 233, 143, 144, 37, 393,
|
|
/* 630 */ 403, 269, 436, 437, 444, 0, 253, 447, 255, 403,
|
|
/* 640 */ 450, 451, 452, 453, 454, 455, 172, 457, 233, 3,
|
|
/* 650 */ 460, 20, 462, 463, 464, 350, 436, 437, 468, 469,
|
|
/* 660 */ 177, 178, 269, 108, 350, 403, 20, 184, 185, 78,
|
|
/* 670 */ 8, 9, 362, 363, 12, 13, 14, 15, 16, 347,
|
|
/* 680 */ 78, 104, 199, 447, 201, 136, 137, 138, 139, 140,
|
|
/* 690 */ 141, 142, 382, 457, 70, 87, 42, 256, 257, 258,
|
|
/* 700 */ 259, 260, 261, 262, 263, 264, 265, 266, 403, 177,
|
|
/* 710 */ 20, 201, 22, 350, 231, 232, 233, 403, 235, 236,
|
|
/* 720 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
|
|
/* 730 */ 247, 248, 249, 250, 251, 252, 12, 13, 14, 350,
|
|
/* 740 */ 391, 22, 362, 363, 20, 55, 22, 398, 362, 363,
|
|
/* 750 */ 392, 137, 363, 177, 108, 406, 37, 149, 426, 35,
|
|
/* 760 */ 69, 37, 382, 431, 476, 233, 403, 479, 382, 350,
|
|
/* 770 */ 108, 136, 137, 138, 139, 140, 141, 142, 170, 171,
|
|
/* 780 */ 391, 379, 363, 22, 365, 497, 498, 362, 363, 65,
|
|
/* 790 */ 502, 503, 403, 449, 405, 393, 369, 78, 37, 20,
|
|
/* 800 */ 362, 363, 78, 1, 2, 403, 371, 382, 476, 233,
|
|
/* 810 */ 391, 479, 136, 137, 138, 139, 140, 141, 142, 475,
|
|
/* 820 */ 382, 394, 403, 104, 405, 179, 212, 213, 104, 497,
|
|
/* 830 */ 498, 107, 397, 444, 502, 503, 447, 350, 350, 450,
|
|
/* 840 */ 451, 452, 453, 454, 455, 391, 457, 391, 34, 447,
|
|
/* 850 */ 363, 462, 398, 464, 398, 362, 363, 468, 469, 457,
|
|
/* 860 */ 406, 20, 406, 444, 233, 104, 447, 143, 144, 450,
|
|
/* 870 */ 451, 452, 453, 454, 455, 382, 457, 426, 391, 21,
|
|
/* 880 */ 491, 462, 0, 464, 392, 194, 378, 468, 469, 381,
|
|
/* 890 */ 403, 403, 405, 2, 36, 391, 38, 39, 40, 8,
|
|
/* 900 */ 9, 177, 178, 12, 13, 14, 15, 16, 184, 185,
|
|
/* 910 */ 108, 136, 221, 222, 391, 140, 362, 363, 199, 415,
|
|
/* 920 */ 201, 398, 268, 199, 42, 201, 13, 476, 138, 406,
|
|
/* 930 */ 479, 444, 142, 176, 447, 0, 382, 450, 451, 452,
|
|
/* 940 */ 453, 454, 455, 107, 457, 14, 15, 16, 497, 498,
|
|
/* 950 */ 231, 232, 116, 502, 503, 231, 232, 233, 179, 235,
|
|
/* 960 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
|
|
/* 970 */ 246, 247, 248, 249, 250, 251, 252, 12, 13, 492,
|
|
/* 980 */ 493, 376, 377, 2, 426, 20, 426, 22, 350, 8,
|
|
/* 990 */ 9, 78, 350, 12, 13, 14, 15, 16, 208, 350,
|
|
/* 1000 */ 35, 211, 37, 383, 214, 363, 216, 365, 73, 74,
|
|
/* 1010 */ 75, 391, 233, 256, 392, 80, 81, 82, 350, 399,
|
|
/* 1020 */ 179, 86, 476, 266, 3, 479, 91, 92, 93, 94,
|
|
/* 1030 */ 65, 363, 97, 391, 476, 100, 476, 479, 383, 479,
|
|
/* 1040 */ 4, 403, 392, 78, 498, 403, 391, 405, 502, 503,
|
|
/* 1050 */ 362, 363, 403, 392, 399, 497, 498, 497, 498, 391,
|
|
/* 1060 */ 502, 503, 502, 503, 350, 400, 39, 40, 403, 104,
|
|
/* 1070 */ 382, 403, 107, 405, 233, 350, 8, 9, 362, 363,
|
|
/* 1080 */ 12, 13, 14, 15, 16, 392, 444, 350, 363, 447,
|
|
/* 1090 */ 365, 350, 450, 451, 452, 453, 454, 455, 382, 457,
|
|
/* 1100 */ 350, 14, 404, 405, 462, 13, 464, 20, 143, 144,
|
|
/* 1110 */ 468, 469, 444, 56, 57, 447, 391, 403, 450, 451,
|
|
/* 1120 */ 452, 453, 454, 455, 20, 457, 367, 368, 403, 37,
|
|
/* 1130 */ 405, 350, 464, 350, 362, 363, 468, 469, 111, 112,
|
|
/* 1140 */ 403, 114, 177, 178, 403, 33, 363, 391, 365, 184,
|
|
/* 1150 */ 185, 8, 9, 403, 382, 12, 13, 14, 15, 16,
|
|
/* 1160 */ 367, 368, 406, 136, 199, 391, 201, 140, 350, 444,
|
|
/* 1170 */ 362, 363, 447, 399, 391, 450, 451, 452, 453, 454,
|
|
/* 1180 */ 455, 0, 457, 33, 403, 432, 403, 462, 405, 464,
|
|
/* 1190 */ 382, 376, 377, 468, 469, 45, 231, 232, 233, 380,
|
|
/* 1200 */ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
/* 1210 */ 245, 246, 247, 248, 249, 250, 251, 252, 12, 13,
|
|
/* 1220 */ 108, 403, 460, 350, 350, 463, 20, 444, 22, 391,
|
|
/* 1230 */ 447, 391, 51, 450, 451, 452, 453, 454, 455, 172,
|
|
/* 1240 */ 457, 35, 4, 37, 406, 462, 406, 464, 362, 363,
|
|
/* 1250 */ 400, 468, 469, 403, 506, 362, 363, 19, 33, 350,
|
|
/* 1260 */ 362, 363, 362, 363, 33, 362, 363, 379, 382, 37,
|
|
/* 1270 */ 203, 65, 363, 35, 365, 382, 403, 403, 267, 268,
|
|
/* 1280 */ 382, 393, 382, 351, 78, 382, 362, 363, 0, 51,
|
|
/* 1290 */ 400, 403, 384, 403, 33, 387, 58, 59, 362, 363,
|
|
/* 1300 */ 391, 353, 354, 65, 33, 110, 382, 271, 113, 366,
|
|
/* 1310 */ 104, 290, 403, 107, 405, 13, 45, 350, 382, 0,
|
|
/* 1320 */ 0, 33, 179, 12, 13, 110, 110, 33, 113, 113,
|
|
/* 1330 */ 363, 110, 365, 22, 113, 447, 448, 233, 215, 37,
|
|
/* 1340 */ 217, 22, 22, 0, 106, 457, 35, 109, 37, 143,
|
|
/* 1350 */ 144, 65, 49, 444, 71, 33, 447, 33, 391, 450,
|
|
/* 1360 */ 451, 452, 453, 454, 455, 22, 457, 143, 144, 108,
|
|
/* 1370 */ 403, 462, 405, 464, 1, 2, 65, 468, 469, 416,
|
|
/* 1380 */ 495, 391, 37, 177, 178, 33, 33, 33, 33, 78,
|
|
/* 1390 */ 184, 185, 33, 33, 33, 109, 33, 33, 33, 13,
|
|
/* 1400 */ 33, 33, 108, 33, 13, 199, 488, 201, 33, 33,
|
|
/* 1410 */ 107, 444, 0, 379, 447, 104, 379, 450, 451, 452,
|
|
/* 1420 */ 453, 454, 455, 37, 457, 37, 416, 361, 37, 462,
|
|
/* 1430 */ 108, 464, 108, 201, 416, 468, 469, 231, 232, 233,
|
|
/* 1440 */ 494, 235, 236, 237, 238, 239, 240, 241, 242, 243,
|
|
/* 1450 */ 244, 245, 246, 247, 248, 249, 250, 251, 252, 366,
|
|
/* 1460 */ 108, 108, 108, 108, 52, 494, 78, 108, 108, 108,
|
|
/* 1470 */ 494, 108, 108, 108, 35, 108, 108, 425, 108, 350,
|
|
/* 1480 */ 494, 416, 363, 108, 108, 402, 433, 416, 416, 470,
|
|
/* 1490 */ 51, 478, 363, 499, 381, 481, 427, 51, 272, 60,
|
|
/* 1500 */ 61, 62, 63, 42, 65, 446, 445, 20, 438, 214,
|
|
/* 1510 */ 199, 371, 201, 438, 231, 371, 443, 292, 197, 429,
|
|
/* 1520 */ 391, 20, 362, 20, 363, 294, 45, 412, 363, 412,
|
|
/* 1530 */ 409, 362, 403, 176, 405, 363, 362, 350, 412, 409,
|
|
/* 1540 */ 409, 105, 231, 232, 103, 106, 201, 374, 109, 102,
|
|
/* 1550 */ 363, 375, 362, 373, 362, 362, 245, 246, 247, 248,
|
|
/* 1560 */ 249, 250, 251, 362, 350, 20, 355, 50, 359, 359,
|
|
/* 1570 */ 438, 371, 355, 444, 371, 20, 447, 363, 391, 450,
|
|
/* 1580 */ 451, 452, 453, 454, 455, 20, 457, 405, 20, 371,
|
|
/* 1590 */ 403, 462, 405, 464, 364, 428, 20, 468, 469, 371,
|
|
/* 1600 */ 364, 362, 419, 355, 371, 391, 371, 403, 371, 362,
|
|
/* 1610 */ 391, 172, 371, 391, 391, 353, 353, 403, 391, 405,
|
|
/* 1620 */ 181, 182, 350, 355, 218, 391, 442, 188, 189, 107,
|
|
/* 1630 */ 20, 444, 403, 391, 447, 363, 391, 450, 451, 452,
|
|
/* 1640 */ 453, 454, 455, 391, 457, 391, 207, 391, 391, 462,
|
|
/* 1650 */ 438, 464, 403, 440, 369, 468, 469, 437, 444, 205,
|
|
/* 1660 */ 204, 447, 369, 391, 450, 451, 452, 453, 454, 455,
|
|
/* 1670 */ 405, 457, 362, 427, 434, 403, 462, 405, 464, 435,
|
|
/* 1680 */ 403, 279, 468, 469, 487, 278, 487, 421, 421, 190,
|
|
/* 1690 */ 287, 273, 490, 289, 489, 487, 288, 350, 507, 501,
|
|
/* 1700 */ 427, 296, 293, 268, 291, 363, 20, 500, 449, 117,
|
|
/* 1710 */ 363, 421, 270, 364, 182, 369, 444, 369, 403, 447,
|
|
/* 1720 */ 403, 403, 450, 451, 452, 453, 454, 455, 485, 457,
|
|
/* 1730 */ 403, 403, 482, 480, 350, 421, 464, 486, 391, 484,
|
|
/* 1740 */ 468, 469, 417, 369, 363, 387, 369, 363, 107, 467,
|
|
/* 1750 */ 403, 107, 405, 403, 362, 22, 369, 395, 38, 430,
|
|
/* 1760 */ 422, 422, 352, 385, 385, 350, 370, 356, 385, 355,
|
|
/* 1770 */ 439, 348, 0, 0, 0, 391, 45, 0, 363, 37,
|
|
/* 1780 */ 224, 37, 37, 37, 224, 0, 37, 403, 37, 405,
|
|
/* 1790 */ 224, 444, 37, 0, 447, 224, 0, 450, 451, 452,
|
|
/* 1800 */ 453, 454, 455, 37, 457, 0, 391, 37, 350, 0,
|
|
/* 1810 */ 22, 464, 0, 37, 219, 468, 469, 0, 403, 207,
|
|
/* 1820 */ 405, 363, 0, 207, 201, 208, 199, 0, 444, 0,
|
|
/* 1830 */ 350, 447, 0, 195, 450, 451, 452, 453, 454, 455,
|
|
/* 1840 */ 194, 457, 0, 363, 0, 148, 49, 49, 0, 391,
|
|
/* 1850 */ 37, 0, 0, 51, 0, 37, 49, 0, 0, 444,
|
|
/* 1860 */ 45, 403, 447, 405, 0, 450, 451, 452, 453, 454,
|
|
/* 1870 */ 455, 391, 457, 0, 49, 0, 396, 0, 0, 464,
|
|
/* 1880 */ 0, 0, 0, 403, 469, 405, 162, 37, 504, 505,
|
|
/* 1890 */ 0, 162, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
/* 1900 */ 0, 350, 444, 0, 0, 447, 0, 0, 450, 451,
|
|
/* 1910 */ 452, 453, 454, 455, 363, 457, 0, 0, 0, 0,
|
|
/* 1920 */ 49, 0, 0, 0, 444, 0, 0, 447, 350, 45,
|
|
/* 1930 */ 450, 451, 452, 453, 454, 455, 0, 457, 0, 0,
|
|
/* 1940 */ 0, 363, 391, 148, 0, 0, 22, 147, 0, 146,
|
|
/* 1950 */ 0, 493, 22, 22, 403, 50, 405, 0, 50, 0,
|
|
/* 1960 */ 0, 0, 0, 51, 37, 0, 65, 0, 0, 391,
|
|
/* 1970 */ 37, 42, 37, 0, 65, 65, 0, 45, 37, 42,
|
|
/* 1980 */ 37, 403, 33, 405, 14, 51, 0, 0, 42, 42,
|
|
/* 1990 */ 0, 0, 0, 51, 43, 444, 42, 42, 447, 0,
|
|
/* 2000 */ 350, 450, 451, 452, 453, 454, 455, 49, 457, 190,
|
|
/* 2010 */ 0, 0, 49, 363, 0, 49, 37, 42, 49, 0,
|
|
/* 2020 */ 37, 0, 444, 51, 72, 447, 350, 0, 450, 451,
|
|
/* 2030 */ 452, 453, 454, 455, 37, 457, 51, 42, 42, 363,
|
|
/* 2040 */ 51, 391, 37, 0, 51, 42, 396, 496, 0, 0,
|
|
/* 2050 */ 0, 0, 0, 403, 37, 405, 22, 0, 0, 37,
|
|
/* 2060 */ 0, 37, 37, 37, 33, 37, 37, 391, 115, 113,
|
|
/* 2070 */ 37, 33, 37, 37, 37, 22, 37, 22, 22, 403,
|
|
/* 2080 */ 206, 405, 0, 505, 22, 53, 0, 22, 0, 0,
|
|
/* 2090 */ 0, 37, 0, 0, 444, 22, 37, 447, 350, 20,
|
|
/* 2100 */ 450, 451, 452, 453, 454, 455, 37, 457, 37, 37,
|
|
/* 2110 */ 108, 363, 37, 107, 0, 107, 49, 0, 37, 22,
|
|
/* 2120 */ 444, 3, 1, 447, 0, 22, 450, 451, 452, 453,
|
|
/* 2130 */ 454, 455, 0, 457, 0, 459, 274, 33, 108, 391,
|
|
/* 2140 */ 19, 50, 33, 179, 396, 50, 33, 107, 107, 105,
|
|
/* 2150 */ 179, 403, 107, 405, 108, 108, 35, 179, 33, 182,
|
|
/* 2160 */ 179, 49, 33, 179, 103, 49, 350, 3, 186, 33,
|
|
/* 2170 */ 107, 107, 51, 107, 186, 37, 202, 37, 108, 363,
|
|
/* 2180 */ 37, 60, 61, 62, 63, 274, 65, 274, 37, 37,
|
|
/* 2190 */ 37, 108, 444, 108, 49, 447, 33, 49, 450, 451,
|
|
/* 2200 */ 452, 453, 454, 455, 108, 457, 108, 391, 0, 0,
|
|
/* 2210 */ 42, 0, 396, 107, 107, 49, 108, 42, 108, 403,
|
|
/* 2220 */ 33, 405, 107, 2, 22, 183, 107, 106, 105, 107,
|
|
/* 2230 */ 109, 49, 105, 107, 49, 350, 116, 107, 231, 108,
|
|
/* 2240 */ 107, 22, 37, 108, 107, 117, 107, 267, 363, 181,
|
|
/* 2250 */ 108, 107, 350, 107, 254, 108, 33, 108, 108, 37,
|
|
/* 2260 */ 444, 107, 141, 447, 37, 363, 450, 451, 452, 453,
|
|
/* 2270 */ 454, 455, 107, 457, 37, 108, 391, 107, 350, 108,
|
|
/* 2280 */ 37, 107, 37, 37, 108, 107, 128, 108, 403, 128,
|
|
/* 2290 */ 405, 363, 37, 391, 22, 107, 107, 128, 107, 107,
|
|
/* 2300 */ 128, 72, 181, 71, 37, 403, 37, 405, 234, 188,
|
|
/* 2310 */ 37, 37, 37, 37, 37, 37, 37, 78, 101, 391,
|
|
/* 2320 */ 78, 101, 37, 33, 37, 37, 22, 78, 207, 444,
|
|
/* 2330 */ 37, 403, 447, 405, 37, 450, 451, 452, 453, 454,
|
|
/* 2340 */ 455, 22, 457, 37, 37, 37, 444, 37, 37, 447,
|
|
/* 2350 */ 37, 350, 450, 451, 452, 453, 454, 455, 37, 457,
|
|
/* 2360 */ 0, 37, 42, 51, 363, 0, 37, 51, 42, 0,
|
|
/* 2370 */ 37, 0, 444, 350, 51, 447, 42, 37, 450, 451,
|
|
/* 2380 */ 452, 453, 454, 455, 42, 457, 363, 51, 0, 37,
|
|
/* 2390 */ 37, 0, 391, 20, 22, 33, 508, 22, 21, 508,
|
|
/* 2400 */ 22, 22, 21, 508, 403, 508, 405, 508, 508, 508,
|
|
/* 2410 */ 508, 508, 508, 508, 391, 508, 508, 508, 508, 508,
|
|
/* 2420 */ 508, 508, 508, 508, 508, 508, 403, 508, 405, 508,
|
|
/* 2430 */ 350, 508, 508, 508, 508, 508, 508, 508, 508, 508,
|
|
/* 2440 */ 508, 508, 508, 363, 508, 444, 508, 508, 447, 350,
|
|
/* 2450 */ 508, 450, 451, 452, 453, 454, 455, 508, 457, 508,
|
|
/* 2460 */ 508, 508, 363, 508, 508, 508, 508, 444, 508, 508,
|
|
/* 2470 */ 447, 391, 508, 450, 451, 452, 453, 454, 455, 508,
|
|
/* 2480 */ 457, 508, 508, 403, 508, 405, 508, 508, 508, 508,
|
|
/* 2490 */ 391, 508, 508, 508, 508, 508, 508, 508, 508, 508,
|
|
/* 2500 */ 508, 508, 403, 508, 405, 508, 508, 350, 508, 508,
|
|
/* 2510 */ 508, 508, 508, 508, 508, 508, 508, 508, 508, 508,
|
|
/* 2520 */ 363, 508, 508, 350, 444, 508, 508, 447, 508, 508,
|
|
/* 2530 */ 450, 451, 452, 453, 454, 455, 363, 457, 508, 508,
|
|
/* 2540 */ 508, 508, 508, 444, 508, 508, 447, 508, 391, 450,
|
|
/* 2550 */ 451, 452, 453, 454, 455, 508, 457, 508, 508, 508,
|
|
/* 2560 */ 403, 508, 405, 508, 391, 508, 508, 508, 508, 508,
|
|
/* 2570 */ 508, 508, 508, 508, 508, 508, 403, 508, 405, 508,
|
|
/* 2580 */ 508, 350, 508, 508, 508, 508, 508, 508, 508, 508,
|
|
/* 2590 */ 508, 508, 508, 508, 363, 508, 508, 508, 508, 508,
|
|
/* 2600 */ 508, 444, 508, 350, 447, 508, 508, 450, 451, 452,
|
|
/* 2610 */ 453, 454, 455, 508, 457, 508, 363, 444, 350, 508,
|
|
/* 2620 */ 447, 508, 391, 450, 451, 452, 453, 454, 455, 508,
|
|
/* 2630 */ 457, 363, 508, 508, 403, 508, 405, 508, 508, 350,
|
|
/* 2640 */ 508, 508, 508, 508, 391, 508, 508, 508, 508, 508,
|
|
/* 2650 */ 508, 508, 363, 508, 508, 508, 403, 508, 405, 391,
|
|
/* 2660 */ 508, 508, 508, 508, 508, 508, 508, 508, 508, 508,
|
|
/* 2670 */ 508, 403, 508, 405, 508, 444, 508, 508, 447, 508,
|
|
/* 2680 */ 391, 450, 451, 452, 453, 454, 455, 508, 457, 508,
|
|
/* 2690 */ 508, 508, 403, 508, 405, 508, 508, 444, 508, 508,
|
|
/* 2700 */ 447, 508, 508, 450, 451, 452, 453, 454, 455, 508,
|
|
/* 2710 */ 457, 508, 444, 508, 508, 447, 508, 508, 450, 451,
|
|
/* 2720 */ 452, 453, 454, 455, 350, 457, 508, 508, 508, 508,
|
|
/* 2730 */ 508, 508, 508, 444, 508, 508, 447, 363, 508, 450,
|
|
/* 2740 */ 451, 452, 453, 454, 455, 508, 457, 508, 508, 508,
|
|
/* 2750 */ 508, 508, 508, 508, 508, 350, 508, 508, 508, 508,
|
|
/* 2760 */ 508, 508, 508, 508, 508, 391, 508, 508, 363, 508,
|
|
/* 2770 */ 508, 508, 508, 508, 508, 508, 508, 403, 508, 405,
|
|
/* 2780 */ 508, 350, 508, 508, 508, 508, 508, 508, 508, 508,
|
|
/* 2790 */ 508, 508, 508, 508, 363, 508, 391, 508, 508, 508,
|
|
/* 2800 */ 508, 508, 508, 508, 508, 508, 508, 508, 403, 508,
|
|
/* 2810 */ 405, 508, 508, 508, 508, 508, 508, 508, 444, 508,
|
|
/* 2820 */ 508, 447, 391, 508, 450, 451, 452, 453, 454, 455,
|
|
/* 2830 */ 508, 457, 508, 508, 403, 508, 405, 508, 508, 508,
|
|
/* 2840 */ 508, 508, 508, 508, 508, 508, 508, 508, 508, 444,
|
|
/* 2850 */ 508, 508, 447, 350, 508, 450, 451, 452, 453, 454,
|
|
/* 2860 */ 455, 508, 457, 508, 508, 508, 363, 508, 508, 508,
|
|
/* 2870 */ 508, 508, 508, 508, 350, 444, 508, 508, 447, 508,
|
|
/* 2880 */ 508, 450, 451, 452, 453, 454, 455, 363, 457, 508,
|
|
/* 2890 */ 508, 508, 508, 508, 391, 508, 508, 508, 508, 508,
|
|
/* 2900 */ 508, 508, 508, 508, 508, 508, 403, 508, 405, 508,
|
|
/* 2910 */ 508, 350, 508, 508, 508, 391, 508, 508, 508, 508,
|
|
/* 2920 */ 508, 508, 508, 508, 363, 508, 508, 403, 508, 405,
|
|
/* 2930 */ 508, 508, 350, 508, 508, 508, 508, 508, 508, 508,
|
|
/* 2940 */ 508, 508, 508, 508, 508, 363, 508, 444, 508, 508,
|
|
/* 2950 */ 447, 508, 391, 450, 451, 452, 453, 454, 455, 508,
|
|
/* 2960 */ 457, 508, 508, 508, 403, 508, 405, 508, 444, 350,
|
|
/* 2970 */ 508, 447, 508, 391, 450, 451, 452, 453, 454, 455,
|
|
/* 2980 */ 508, 457, 363, 508, 508, 403, 508, 405, 508, 508,
|
|
/* 2990 */ 350, 508, 508, 508, 508, 508, 508, 508, 508, 508,
|
|
/* 3000 */ 508, 508, 508, 363, 508, 444, 508, 508, 447, 508,
|
|
/* 3010 */ 391, 450, 451, 452, 453, 454, 455, 508, 457, 508,
|
|
/* 3020 */ 508, 508, 403, 508, 405, 508, 444, 508, 508, 447,
|
|
/* 3030 */ 508, 391, 450, 451, 452, 453, 454, 455, 508, 457,
|
|
/* 3040 */ 508, 508, 508, 403, 508, 405, 508, 508, 508, 508,
|
|
/* 3050 */ 508, 508, 508, 508, 508, 508, 508, 508, 508, 508,
|
|
/* 3060 */ 508, 508, 508, 444, 508, 508, 447, 508, 508, 450,
|
|
/* 3070 */ 451, 452, 453, 454, 455, 508, 457, 508, 508, 508,
|
|
/* 3080 */ 508, 508, 508, 508, 444, 508, 508, 447, 508, 508,
|
|
/* 3090 */ 450, 451, 452, 453, 454, 455, 508, 457, 347, 347,
|
|
/* 3100 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3110 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3120 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3130 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3140 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3150 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3160 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3170 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3180 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3190 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3200 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3210 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3220 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3230 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3240 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3250 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3260 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3270 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3280 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3290 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3300 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3310 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3320 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3330 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3340 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3350 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3360 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3370 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3380 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3390 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3400 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3410 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3420 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3430 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
|
|
/* 3440 */ 347, 347, 347, 347, 347,
|
|
};
|
|
#define YY_SHIFT_COUNT (842)
|
|
#define YY_SHIFT_MIN (0)
|
|
#define YY_SHIFT_MAX (2391)
|
|
static const unsigned short int yy_shift_ofst[] = {
|
|
/* 0 */ 393, 0, 241, 0, 483, 483, 483, 483, 483, 483,
|
|
/* 10 */ 483, 483, 483, 483, 483, 483, 724, 965, 965, 1206,
|
|
/* 20 */ 965, 965, 965, 965, 965, 965, 965, 965, 965, 965,
|
|
/* 30 */ 965, 965, 965, 965, 965, 965, 965, 965, 965, 965,
|
|
/* 40 */ 965, 965, 965, 965, 965, 965, 965, 965, 965, 965,
|
|
/* 50 */ 965, 252, 331, 362, 127, 93, 148, 93, 93, 127,
|
|
/* 60 */ 127, 93, 1311, 93, 240, 1311, 1311, 34, 93, 30,
|
|
/* 70 */ 13, 43, 43, 182, 182, 13, 88, 308, 313, 313,
|
|
/* 80 */ 392, 43, 43, 43, 43, 43, 43, 43, 43, 43,
|
|
/* 90 */ 43, 43, 134, 141, 43, 43, 207, 30, 43, 134,
|
|
/* 100 */ 43, 30, 43, 43, 30, 43, 43, 30, 43, 30,
|
|
/* 110 */ 30, 30, 43, 369, 441, 441, 261, 144, 719, 719,
|
|
/* 120 */ 719, 719, 719, 719, 719, 719, 719, 719, 719, 719,
|
|
/* 130 */ 719, 719, 719, 719, 719, 719, 719, 1027, 646, 88,
|
|
/* 140 */ 308, 1057, 1057, 591, 186, 186, 186, 624, 383, 383,
|
|
/* 150 */ 913, 591, 207, 434, 30, 30, 213, 30, 602, 30,
|
|
/* 160 */ 602, 602, 455, 814, 90, 90, 90, 90, 90, 90,
|
|
/* 170 */ 90, 90, 2121, 935, 66, 415, 16, 244, 237, 105,
|
|
/* 180 */ 173, 532, 510, 510, 779, 179, 841, 421, 421, 421,
|
|
/* 190 */ 1, 421, 576, 690, 631, 1087, 775, 1067, 631, 631,
|
|
/* 200 */ 1104, 1011, 654, 1021, 1011, 1150, 1036, 913, 1226, 1446,
|
|
/* 210 */ 1461, 1487, 1295, 207, 1487, 207, 1321, 1501, 1503, 1481,
|
|
/* 220 */ 1503, 1481, 1357, 1501, 1503, 1501, 1481, 1357, 1357, 1436,
|
|
/* 230 */ 1441, 1501, 1447, 1501, 1501, 1501, 1545, 1517, 1545, 1517,
|
|
/* 240 */ 1487, 207, 207, 1555, 207, 1565, 1568, 207, 1565, 207,
|
|
/* 250 */ 1576, 207, 207, 1501, 207, 1545, 30, 30, 30, 30,
|
|
/* 260 */ 30, 30, 30, 30, 30, 30, 30, 1501, 814, 814,
|
|
/* 270 */ 1545, 602, 602, 602, 1406, 1522, 1487, 369, 1610, 1454,
|
|
/* 280 */ 1456, 1555, 369, 1226, 1501, 602, 1402, 1407, 1402, 1407,
|
|
/* 290 */ 1403, 1499, 1402, 1404, 1408, 1418, 1226, 1405, 1409, 1413,
|
|
/* 300 */ 1435, 1503, 1686, 1592, 1442, 1565, 369, 369, 1407, 602,
|
|
/* 310 */ 602, 602, 602, 1407, 602, 1532, 369, 455, 369, 1503,
|
|
/* 320 */ 1641, 1644, 602, 1501, 369, 1733, 1720, 1545, 3098, 3098,
|
|
/* 330 */ 3098, 3098, 3098, 3098, 3098, 3098, 3098, 36, 1439, 15,
|
|
/* 340 */ 1238, 555, 271, 662, 549, 891, 981, 1143, 635, 1068,
|
|
/* 350 */ 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 676, 790,
|
|
/* 360 */ 858, 494, 494, 691, 474, 608, 9, 448, 577, 761,
|
|
/* 370 */ 614, 360, 360, 931, 802, 757, 931, 931, 931, 1181,
|
|
/* 380 */ 83, 1112, 882, 1271, 399, 1288, 1195, 1215, 1216, 1221,
|
|
/* 390 */ 1092, 1302, 410, 1319, 1320, 1343, 1123, 1261, 1294, 1286,
|
|
/* 400 */ 1322, 1324, 1352, 1224, 1225, 1231, 1354, 1359, 1360, 1361,
|
|
/* 410 */ 1363, 1364, 1373, 1365, 1283, 1355, 1303, 1353, 1367, 1368,
|
|
/* 420 */ 1370, 1375, 1376, 836, 1232, 1345, 1386, 1391, 1388, 1412,
|
|
/* 430 */ 1772, 1773, 1774, 1731, 1777, 1742, 1556, 1744, 1745, 1746,
|
|
/* 440 */ 1560, 1785, 1749, 1751, 1566, 1755, 1793, 1571, 1796, 1766,
|
|
/* 450 */ 1805, 1770, 1809, 1788, 1812, 1776, 1595, 1817, 1612, 1822,
|
|
/* 460 */ 1616, 1617, 1623, 1627, 1827, 1829, 1832, 1638, 1646, 1842,
|
|
/* 470 */ 1844, 1697, 1797, 1798, 1848, 1813, 1851, 1852, 1818, 1802,
|
|
/* 480 */ 1854, 1807, 1857, 1815, 1858, 1864, 1873, 1825, 1875, 1877,
|
|
/* 490 */ 1878, 1880, 1881, 1882, 1724, 1850, 1890, 1729, 1892, 1893,
|
|
/* 500 */ 1894, 1895, 1896, 1897, 1898, 1899, 1900, 1903, 1904, 1906,
|
|
/* 510 */ 1907, 1916, 1917, 1918, 1919, 1871, 1921, 1884, 1922, 1923,
|
|
/* 520 */ 1925, 1926, 1936, 1938, 1939, 1924, 1940, 1795, 1944, 1800,
|
|
/* 530 */ 1945, 1803, 1948, 1950, 1930, 1905, 1931, 1908, 1957, 1901,
|
|
/* 540 */ 1927, 1959, 1909, 1960, 1910, 1961, 1962, 1933, 1912, 1929,
|
|
/* 550 */ 1965, 1935, 1934, 1937, 1967, 1941, 1942, 1946, 1968, 1943,
|
|
/* 560 */ 1973, 1932, 1947, 1949, 1958, 1963, 1970, 1966, 1976, 1951,
|
|
/* 570 */ 1954, 1986, 1987, 1990, 1991, 1955, 1819, 1992, 1958, 1969,
|
|
/* 580 */ 1999, 2010, 1952, 2011, 2014, 1979, 1972, 1975, 2019, 1983,
|
|
/* 590 */ 1985, 1995, 2021, 1997, 1989, 1996, 2027, 2005, 1993, 2003,
|
|
/* 600 */ 2043, 2048, 2049, 2050, 2051, 2052, 1953, 1956, 2017, 2034,
|
|
/* 610 */ 2057, 2022, 2024, 2025, 2026, 2028, 2029, 2033, 2035, 2031,
|
|
/* 620 */ 2038, 2036, 2037, 2053, 2039, 2058, 2055, 2060, 2056, 2082,
|
|
/* 630 */ 2062, 2032, 2086, 2065, 2054, 2088, 2089, 2090, 2059, 2092,
|
|
/* 640 */ 2069, 2093, 2073, 2079, 2071, 2072, 2075, 2002, 2006, 2114,
|
|
/* 650 */ 1964, 2008, 1874, 1958, 2067, 2117, 1971, 2081, 2097, 2124,
|
|
/* 660 */ 1974, 2103, 1978, 1977, 2132, 2134, 1981, 1982, 1984, 1988,
|
|
/* 670 */ 2118, 2104, 1862, 2040, 2030, 2041, 2091, 2044, 2095, 2061,
|
|
/* 680 */ 2046, 2109, 2113, 2047, 2045, 2063, 2064, 2070, 2125, 2112,
|
|
/* 690 */ 2116, 2066, 2129, 1911, 2083, 2085, 2164, 2136, 1913, 2138,
|
|
/* 700 */ 2140, 2143, 2151, 2152, 2153, 2096, 2098, 2145, 1980, 2163,
|
|
/* 710 */ 2148, 2208, 2209, 2106, 2168, 2107, 2108, 2110, 2115, 2119,
|
|
/* 720 */ 2042, 2122, 2211, 2175, 2068, 2126, 2120, 1958, 2166, 2187,
|
|
/* 730 */ 2123, 2000, 2127, 2221, 2202, 2007, 2130, 2131, 2133, 2135,
|
|
/* 740 */ 2137, 2142, 2182, 2139, 2144, 2185, 2147, 2219, 2074, 2146,
|
|
/* 750 */ 2128, 2149, 2205, 2222, 2154, 2150, 2227, 2165, 2167, 2237,
|
|
/* 760 */ 2170, 2171, 2243, 2174, 2176, 2245, 2178, 2179, 2246, 2188,
|
|
/* 770 */ 2158, 2161, 2169, 2172, 2189, 2223, 2191, 2255, 2192, 2223,
|
|
/* 780 */ 2223, 2272, 2229, 2232, 2267, 2269, 2273, 2274, 2275, 2276,
|
|
/* 790 */ 2277, 2278, 2279, 2239, 2217, 2242, 2220, 2290, 2285, 2287,
|
|
/* 800 */ 2288, 2304, 2293, 2297, 2306, 2249, 2031, 2307, 2038, 2308,
|
|
/* 810 */ 2310, 2311, 2313, 2319, 2321, 2360, 2324, 2312, 2320, 2365,
|
|
/* 820 */ 2329, 2316, 2326, 2369, 2333, 2323, 2334, 2371, 2340, 2336,
|
|
/* 830 */ 2342, 2388, 2352, 2353, 2391, 2372, 2362, 2375, 2377, 2378,
|
|
/* 840 */ 2379, 2381, 2373,
|
|
};
|
|
#define YY_REDUCE_COUNT (336)
|
|
#define YY_REDUCE_MIN (-445)
|
|
#define YY_REDUCE_MAX (2640)
|
|
static const short yy_reduce_ofst[] = {
|
|
/* 0 */ 332, -302, 190, 389, 419, 642, 725, 783, 909, 967,
|
|
/* 10 */ 1129, 1187, 1214, 668, 1272, 1347, -81, 487, 1384, 1415,
|
|
/* 20 */ 1458, 154, 1480, 1551, 1578, 1650, 1676, 1748, 1816, 1885,
|
|
/* 30 */ 1902, 1928, 2001, 2023, 2080, 2099, 2157, 2173, 2231, 2253,
|
|
/* 40 */ 2268, 2289, 2374, 2405, 2431, 2503, 2524, 2561, 2582, 2619,
|
|
/* 50 */ 2640, -172, -339, -423, 102, -421, -208, 451, 558, -159,
|
|
/* 60 */ 59, 560, 888, 288, -308, 236, 402, -35, 546, -372,
|
|
/* 70 */ -56, -66, 152, -351, -178, -85, -329, -209, -341, -294,
|
|
/* 80 */ -306, 310, 380, 386, 425, -362, 108, 438, 493, 554,
|
|
/* 90 */ 688, 180, 196, 27, 716, 772, -283, 349, 808, 220,
|
|
/* 100 */ 886, 454, 893, 898, -62, 900, 903, 456, 924, 620,
|
|
/* 110 */ 523, 655, 936, -113, -327, -327, -40, -347, 33, 163,
|
|
/* 120 */ 194, 227, 262, 305, 314, 363, 488, 638, 649, 714,
|
|
/* 130 */ 737, 741, 750, 781, 818, 873, 874, -46, -89, 504,
|
|
/* 140 */ 698, 759, 793, 605, -89, 62, 344, 427, -445, -199,
|
|
/* 150 */ 508, 815, 435, 114, 756, 838, 762, 774, 665, 840,
|
|
/* 160 */ 850, 890, 908, 948, -385, 358, 492, 622, 650, 661,
|
|
/* 170 */ 693, 650, 753, 819, 932, 963, 748, 885, 943, 918,
|
|
/* 180 */ 990, 990, 1034, 1037, 1010, 1066, 1018, 946, 971, 976,
|
|
/* 190 */ 1052, 986, 990, 1093, 1065, 1119, 1083, 1053, 1071, 1072,
|
|
/* 200 */ 990, 1013, 1013, 994, 1013, 1019, 1014, 1113, 1069, 1059,
|
|
/* 210 */ 1061, 1070, 1073, 1140, 1075, 1144, 1090, 1160, 1161, 1115,
|
|
/* 220 */ 1165, 1117, 1121, 1169, 1172, 1174, 1126, 1130, 1131, 1176,
|
|
/* 230 */ 1173, 1190, 1180, 1192, 1193, 1201, 1211, 1209, 1217, 1210,
|
|
/* 240 */ 1132, 1200, 1203, 1182, 1218, 1230, 1167, 1228, 1236, 1233,
|
|
/* 250 */ 1183, 1235, 1237, 1239, 1241, 1248, 1219, 1222, 1223, 1227,
|
|
/* 260 */ 1234, 1242, 1245, 1252, 1254, 1256, 1257, 1247, 1262, 1263,
|
|
/* 270 */ 1268, 1204, 1229, 1249, 1184, 1213, 1212, 1285, 1220, 1244,
|
|
/* 280 */ 1240, 1265, 1293, 1246, 1310, 1277, 1197, 1266, 1199, 1267,
|
|
/* 290 */ 1202, 1205, 1208, 1251, 1243, 1255, 1273, 1191, 1198, 1207,
|
|
/* 300 */ 1013, 1342, 1259, 1250, 1253, 1349, 1346, 1348, 1290, 1315,
|
|
/* 310 */ 1317, 1318, 1327, 1314, 1328, 1325, 1374, 1358, 1377, 1381,
|
|
/* 320 */ 1282, 1362, 1350, 1392, 1387, 1410, 1411, 1414, 1329, 1331,
|
|
/* 330 */ 1338, 1339, 1378, 1379, 1383, 1396, 1423,
|
|
};
|
|
static const YYACTIONTYPE yy_default[] = {
|
|
/* 0 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 10 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 20 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 30 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 40 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 50 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 60 */ 1889, 2226, 1889, 1889, 2189, 1889, 1889, 1889, 1889, 1889,
|
|
/* 70 */ 1889, 1889, 1889, 1889, 1889, 1889, 2196, 1889, 1889, 1889,
|
|
/* 80 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 90 */ 1889, 1889, 1889, 1889, 1889, 1889, 1988, 1889, 1889, 1889,
|
|
/* 100 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 110 */ 1889, 1889, 1889, 1986, 2429, 1889, 1889, 1889, 1889, 1889,
|
|
/* 120 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 130 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2441, 1889,
|
|
/* 140 */ 1889, 1960, 1960, 1889, 2441, 2441, 2441, 1986, 2401, 2401,
|
|
/* 150 */ 1889, 1889, 1988, 2264, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 160 */ 1889, 1889, 2111, 1919, 1889, 1889, 1889, 1889, 2135, 1889,
|
|
/* 170 */ 1889, 1889, 2252, 1889, 1889, 2470, 2530, 1889, 1889, 2473,
|
|
/* 180 */ 1889, 1889, 1889, 1889, 2201, 1889, 2460, 1889, 1889, 1889,
|
|
/* 190 */ 1889, 1889, 1889, 1889, 1889, 1889, 2064, 2246, 1889, 1889,
|
|
/* 200 */ 1889, 2433, 2447, 2514, 2434, 2431, 2454, 1889, 2464, 1889,
|
|
/* 210 */ 2289, 1889, 2278, 1988, 1889, 1988, 2239, 2184, 1889, 2194,
|
|
/* 220 */ 1889, 2194, 2191, 1889, 1889, 1889, 2194, 2191, 2191, 2053,
|
|
/* 230 */ 2049, 1889, 2047, 1889, 1889, 1889, 1889, 1944, 1889, 1944,
|
|
/* 240 */ 1889, 1988, 1988, 1889, 1988, 1889, 1889, 1988, 1889, 1988,
|
|
/* 250 */ 1889, 1988, 1988, 1889, 1988, 1889, 1889, 1889, 1889, 1889,
|
|
/* 260 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 270 */ 1889, 1889, 1889, 1889, 2276, 2262, 1889, 1986, 1889, 2250,
|
|
/* 280 */ 2248, 1889, 1986, 2464, 1889, 1889, 2484, 2479, 2484, 2479,
|
|
/* 290 */ 2498, 2494, 2484, 2503, 2500, 2466, 2464, 2533, 2520, 2516,
|
|
/* 300 */ 2447, 1889, 1889, 2452, 2450, 1889, 1986, 1986, 2479, 1889,
|
|
/* 310 */ 1889, 1889, 1889, 2479, 1889, 1889, 1986, 1889, 1986, 1889,
|
|
/* 320 */ 1889, 2080, 1889, 1889, 1986, 1889, 1928, 1889, 2241, 2267,
|
|
/* 330 */ 2222, 2222, 2114, 2114, 2114, 1989, 1894, 1889, 1889, 1889,
|
|
/* 340 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2497,
|
|
/* 350 */ 2496, 2354, 1889, 2405, 2404, 2403, 2394, 2353, 2076, 1889,
|
|
/* 360 */ 1889, 2352, 2351, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 370 */ 1889, 2213, 2212, 2345, 1889, 1889, 2346, 2344, 2343, 1889,
|
|
/* 380 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 390 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 400 */ 1889, 1889, 1889, 1889, 2517, 2521, 1889, 1889, 1889, 1889,
|
|
/* 410 */ 1889, 1889, 2430, 1889, 1889, 1889, 2325, 1889, 1889, 1889,
|
|
/* 420 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 430 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 440 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 450 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 460 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 470 */ 1889, 2190, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 480 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 490 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 500 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 510 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 520 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 530 */ 1889, 2205, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 540 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 550 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 560 */ 1889, 1889, 1889, 1933, 2332, 1889, 1889, 1889, 1889, 1889,
|
|
/* 570 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2335, 1889,
|
|
/* 580 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 590 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 600 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 610 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2028,
|
|
/* 620 */ 2027, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 630 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 640 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2336, 1889, 1889,
|
|
/* 650 */ 1889, 1889, 1889, 2327, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 660 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 670 */ 2513, 2467, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 680 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 690 */ 2325, 1889, 2495, 1889, 1889, 2511, 1889, 2515, 1889, 1889,
|
|
/* 700 */ 1889, 1889, 1889, 1889, 1889, 2440, 2436, 1889, 1889, 2432,
|
|
/* 710 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 720 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2324, 1889, 2391,
|
|
/* 730 */ 1889, 1889, 1889, 2425, 1889, 1889, 2376, 1889, 1889, 1889,
|
|
/* 740 */ 1889, 1889, 1889, 1889, 1889, 1889, 2336, 1889, 2339, 1889,
|
|
/* 750 */ 1889, 1889, 1889, 1889, 2108, 1889, 1889, 1889, 1889, 1889,
|
|
/* 760 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 770 */ 2092, 2090, 2089, 2088, 1889, 2121, 1889, 1889, 1889, 2117,
|
|
/* 780 */ 2116, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 790 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2007, 1889, 1889,
|
|
/* 800 */ 1889, 1889, 1889, 1889, 1889, 1889, 1999, 1889, 1998, 1889,
|
|
/* 810 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 820 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889,
|
|
/* 830 */ 1889, 1889, 1889, 1889, 1889, 1889, 1918, 1889, 1889, 1889,
|
|
/* 840 */ 1889, 1889, 1889,
|
|
};
|
|
/********** End of lemon-generated parsing tables *****************************/
|
|
|
|
/* The next table maps tokens (terminal symbols) into fallback tokens.
|
|
** If a construct like the following:
|
|
**
|
|
** %fallback ID X Y Z.
|
|
**
|
|
** appears in the grammar, then ID becomes a fallback token for X, Y,
|
|
** and Z. Whenever one of the tokens X, Y, or Z is input to the parser
|
|
** but it does not parse, the type of the token is changed to ID and
|
|
** the parse is retried before an error is thrown.
|
|
**
|
|
** This feature can be used, for example, to cause some keywords in a language
|
|
** to revert to identifiers if they keyword does not apply in the context where
|
|
** it appears.
|
|
*/
|
|
#ifdef YYFALLBACK
|
|
static const YYCODETYPE yyFallback[] = {
|
|
0, /* $ => nothing */
|
|
0, /* OR => nothing */
|
|
0, /* AND => nothing */
|
|
0, /* UNION => nothing */
|
|
0, /* ALL => nothing */
|
|
0, /* MINUS => nothing */
|
|
0, /* EXCEPT => nothing */
|
|
0, /* INTERSECT => nothing */
|
|
0, /* NK_BITAND => nothing */
|
|
0, /* NK_BITOR => nothing */
|
|
0, /* NK_LSHIFT => nothing */
|
|
0, /* NK_RSHIFT => nothing */
|
|
0, /* NK_PLUS => nothing */
|
|
0, /* NK_MINUS => nothing */
|
|
0, /* NK_STAR => nothing */
|
|
0, /* NK_SLASH => nothing */
|
|
0, /* NK_REM => nothing */
|
|
0, /* NK_CONCAT => nothing */
|
|
0, /* CREATE => nothing */
|
|
0, /* ACCOUNT => nothing */
|
|
0, /* NK_ID => nothing */
|
|
0, /* PASS => nothing */
|
|
0, /* NK_STRING => nothing */
|
|
0, /* ALTER => nothing */
|
|
0, /* PPS => nothing */
|
|
0, /* TSERIES => nothing */
|
|
0, /* STORAGE => nothing */
|
|
0, /* STREAMS => nothing */
|
|
0, /* QTIME => nothing */
|
|
0, /* DBS => nothing */
|
|
0, /* USERS => nothing */
|
|
0, /* CONNS => nothing */
|
|
0, /* STATE => nothing */
|
|
0, /* NK_COMMA => nothing */
|
|
0, /* HOST => nothing */
|
|
0, /* USER => nothing */
|
|
0, /* ENABLE => nothing */
|
|
0, /* NK_INTEGER => nothing */
|
|
0, /* SYSINFO => nothing */
|
|
0, /* ADD => nothing */
|
|
0, /* DROP => nothing */
|
|
0, /* GRANT => nothing */
|
|
0, /* ON => nothing */
|
|
0, /* TO => nothing */
|
|
0, /* REVOKE => nothing */
|
|
0, /* FROM => nothing */
|
|
0, /* SUBSCRIBE => nothing */
|
|
0, /* READ => nothing */
|
|
0, /* WRITE => nothing */
|
|
0, /* NK_DOT => nothing */
|
|
0, /* WITH => nothing */
|
|
0, /* DNODE => nothing */
|
|
0, /* PORT => nothing */
|
|
0, /* DNODES => nothing */
|
|
0, /* RESTORE => nothing */
|
|
0, /* NK_IPTOKEN => nothing */
|
|
0, /* FORCE => nothing */
|
|
0, /* UNSAFE => nothing */
|
|
0, /* CLUSTER => nothing */
|
|
0, /* LOCAL => nothing */
|
|
0, /* QNODE => nothing */
|
|
0, /* BNODE => nothing */
|
|
0, /* SNODE => nothing */
|
|
0, /* MNODE => nothing */
|
|
0, /* VNODE => nothing */
|
|
0, /* DATABASE => nothing */
|
|
0, /* USE => nothing */
|
|
0, /* FLUSH => nothing */
|
|
0, /* TRIM => nothing */
|
|
0, /* COMPACT => nothing */
|
|
0, /* IF => nothing */
|
|
0, /* NOT => nothing */
|
|
0, /* EXISTS => nothing */
|
|
0, /* BUFFER => nothing */
|
|
0, /* CACHEMODEL => nothing */
|
|
0, /* CACHESIZE => nothing */
|
|
0, /* COMP => nothing */
|
|
0, /* DURATION => nothing */
|
|
0, /* NK_VARIABLE => nothing */
|
|
0, /* MAXROWS => nothing */
|
|
0, /* MINROWS => nothing */
|
|
0, /* KEEP => nothing */
|
|
0, /* PAGES => nothing */
|
|
0, /* PAGESIZE => nothing */
|
|
0, /* TSDB_PAGESIZE => nothing */
|
|
0, /* PRECISION => nothing */
|
|
0, /* REPLICA => nothing */
|
|
0, /* VGROUPS => nothing */
|
|
0, /* SINGLE_STABLE => nothing */
|
|
0, /* RETENTIONS => nothing */
|
|
0, /* SCHEMALESS => nothing */
|
|
0, /* WAL_LEVEL => nothing */
|
|
0, /* WAL_FSYNC_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_SIZE => nothing */
|
|
0, /* WAL_ROLL_PERIOD => nothing */
|
|
0, /* WAL_SEGMENT_SIZE => nothing */
|
|
0, /* STT_TRIGGER => nothing */
|
|
0, /* TABLE_PREFIX => nothing */
|
|
0, /* TABLE_SUFFIX => nothing */
|
|
0, /* KEEP_TIME_OFFSET => nothing */
|
|
0, /* NK_COLON => nothing */
|
|
0, /* BWLIMIT => nothing */
|
|
0, /* START => nothing */
|
|
0, /* TIMESTAMP => nothing */
|
|
297, /* END => ABORT */
|
|
0, /* TABLE => nothing */
|
|
0, /* NK_LP => nothing */
|
|
0, /* NK_RP => nothing */
|
|
0, /* STABLE => nothing */
|
|
0, /* COLUMN => nothing */
|
|
0, /* MODIFY => nothing */
|
|
0, /* RENAME => nothing */
|
|
0, /* TAG => nothing */
|
|
0, /* SET => nothing */
|
|
0, /* NK_EQ => nothing */
|
|
0, /* USING => nothing */
|
|
0, /* TAGS => nothing */
|
|
0, /* BOOL => nothing */
|
|
0, /* TINYINT => nothing */
|
|
0, /* SMALLINT => nothing */
|
|
0, /* INT => nothing */
|
|
0, /* INTEGER => nothing */
|
|
0, /* BIGINT => nothing */
|
|
0, /* FLOAT => nothing */
|
|
0, /* DOUBLE => nothing */
|
|
0, /* BINARY => nothing */
|
|
0, /* NCHAR => nothing */
|
|
0, /* UNSIGNED => nothing */
|
|
0, /* JSON => nothing */
|
|
0, /* VARCHAR => nothing */
|
|
0, /* MEDIUMBLOB => nothing */
|
|
0, /* BLOB => nothing */
|
|
0, /* VARBINARY => nothing */
|
|
0, /* GEOMETRY => nothing */
|
|
0, /* DECIMAL => nothing */
|
|
0, /* COMMENT => nothing */
|
|
0, /* MAX_DELAY => nothing */
|
|
0, /* WATERMARK => nothing */
|
|
0, /* ROLLUP => nothing */
|
|
0, /* TTL => nothing */
|
|
0, /* SMA => nothing */
|
|
0, /* DELETE_MARK => nothing */
|
|
0, /* FIRST => nothing */
|
|
0, /* LAST => nothing */
|
|
0, /* SHOW => nothing */
|
|
0, /* PRIVILEGES => nothing */
|
|
0, /* DATABASES => nothing */
|
|
0, /* TABLES => nothing */
|
|
0, /* STABLES => nothing */
|
|
0, /* MNODES => nothing */
|
|
0, /* QNODES => nothing */
|
|
0, /* FUNCTIONS => nothing */
|
|
0, /* INDEXES => nothing */
|
|
0, /* ACCOUNTS => nothing */
|
|
0, /* APPS => nothing */
|
|
0, /* CONNECTIONS => nothing */
|
|
0, /* LICENCES => nothing */
|
|
0, /* GRANTS => nothing */
|
|
0, /* QUERIES => nothing */
|
|
0, /* SCORES => nothing */
|
|
0, /* TOPICS => nothing */
|
|
0, /* VARIABLES => nothing */
|
|
0, /* BNODES => nothing */
|
|
0, /* SNODES => nothing */
|
|
0, /* TRANSACTIONS => nothing */
|
|
0, /* DISTRIBUTED => nothing */
|
|
0, /* CONSUMERS => nothing */
|
|
0, /* SUBSCRIPTIONS => nothing */
|
|
0, /* VNODES => nothing */
|
|
0, /* ALIVE => nothing */
|
|
0, /* VIEWS => nothing */
|
|
297, /* VIEW => ABORT */
|
|
0, /* COMPACTS => nothing */
|
|
0, /* NORMAL => nothing */
|
|
0, /* CHILD => nothing */
|
|
0, /* LIKE => nothing */
|
|
0, /* TBNAME => nothing */
|
|
0, /* QTAGS => nothing */
|
|
0, /* AS => nothing */
|
|
0, /* SYSTEM => nothing */
|
|
0, /* INDEX => nothing */
|
|
0, /* FUNCTION => nothing */
|
|
0, /* INTERVAL => nothing */
|
|
0, /* COUNT => nothing */
|
|
0, /* LAST_ROW => nothing */
|
|
0, /* META => nothing */
|
|
0, /* ONLY => nothing */
|
|
0, /* TOPIC => nothing */
|
|
0, /* CONSUMER => nothing */
|
|
0, /* GROUP => nothing */
|
|
0, /* DESC => nothing */
|
|
0, /* DESCRIBE => nothing */
|
|
0, /* RESET => nothing */
|
|
0, /* QUERY => nothing */
|
|
0, /* CACHE => nothing */
|
|
0, /* EXPLAIN => nothing */
|
|
0, /* ANALYZE => nothing */
|
|
0, /* VERBOSE => nothing */
|
|
0, /* NK_BOOL => nothing */
|
|
0, /* RATIO => nothing */
|
|
0, /* NK_FLOAT => nothing */
|
|
0, /* OUTPUTTYPE => nothing */
|
|
0, /* AGGREGATE => nothing */
|
|
0, /* BUFSIZE => nothing */
|
|
0, /* LANGUAGE => nothing */
|
|
0, /* REPLACE => nothing */
|
|
0, /* STREAM => nothing */
|
|
0, /* INTO => nothing */
|
|
0, /* PAUSE => nothing */
|
|
0, /* RESUME => nothing */
|
|
0, /* TRIGGER => nothing */
|
|
0, /* AT_ONCE => nothing */
|
|
0, /* WINDOW_CLOSE => nothing */
|
|
0, /* IGNORE => nothing */
|
|
0, /* EXPIRED => nothing */
|
|
0, /* FILL_HISTORY => nothing */
|
|
0, /* UPDATE => nothing */
|
|
0, /* SUBTABLE => nothing */
|
|
0, /* UNTREATED => nothing */
|
|
0, /* KILL => nothing */
|
|
0, /* CONNECTION => nothing */
|
|
0, /* TRANSACTION => nothing */
|
|
0, /* BALANCE => nothing */
|
|
0, /* VGROUP => nothing */
|
|
0, /* LEADER => nothing */
|
|
0, /* MERGE => nothing */
|
|
0, /* REDISTRIBUTE => nothing */
|
|
0, /* SPLIT => nothing */
|
|
0, /* DELETE => nothing */
|
|
0, /* INSERT => nothing */
|
|
0, /* NULL => nothing */
|
|
0, /* NK_QUESTION => nothing */
|
|
0, /* NK_ALIAS => nothing */
|
|
0, /* NK_ARROW => nothing */
|
|
0, /* ROWTS => nothing */
|
|
0, /* QSTART => nothing */
|
|
0, /* QEND => nothing */
|
|
0, /* QDURATION => nothing */
|
|
0, /* WSTART => nothing */
|
|
0, /* WEND => nothing */
|
|
0, /* WDURATION => nothing */
|
|
0, /* IROWTS => nothing */
|
|
0, /* ISFILLED => nothing */
|
|
0, /* CAST => nothing */
|
|
0, /* NOW => nothing */
|
|
0, /* TODAY => nothing */
|
|
0, /* TIMEZONE => nothing */
|
|
0, /* CLIENT_VERSION => nothing */
|
|
0, /* SERVER_VERSION => nothing */
|
|
0, /* SERVER_STATUS => nothing */
|
|
0, /* CURRENT_USER => nothing */
|
|
0, /* CASE => nothing */
|
|
0, /* WHEN => nothing */
|
|
0, /* THEN => nothing */
|
|
0, /* ELSE => nothing */
|
|
0, /* BETWEEN => nothing */
|
|
0, /* IS => nothing */
|
|
0, /* NK_LT => nothing */
|
|
0, /* NK_GT => nothing */
|
|
0, /* NK_LE => nothing */
|
|
0, /* NK_GE => nothing */
|
|
0, /* NK_NE => nothing */
|
|
0, /* MATCH => nothing */
|
|
0, /* NMATCH => nothing */
|
|
0, /* CONTAINS => nothing */
|
|
0, /* IN => nothing */
|
|
0, /* JOIN => nothing */
|
|
0, /* INNER => nothing */
|
|
0, /* SELECT => nothing */
|
|
0, /* NK_HINT => nothing */
|
|
0, /* DISTINCT => nothing */
|
|
0, /* WHERE => nothing */
|
|
0, /* PARTITION => nothing */
|
|
0, /* BY => nothing */
|
|
0, /* SESSION => nothing */
|
|
0, /* STATE_WINDOW => nothing */
|
|
0, /* EVENT_WINDOW => nothing */
|
|
0, /* SLIDING => nothing */
|
|
0, /* FILL => nothing */
|
|
0, /* VALUE => nothing */
|
|
0, /* VALUE_F => nothing */
|
|
0, /* NONE => nothing */
|
|
0, /* PREV => nothing */
|
|
0, /* NULL_F => nothing */
|
|
0, /* LINEAR => nothing */
|
|
0, /* NEXT => nothing */
|
|
0, /* HAVING => nothing */
|
|
0, /* RANGE => nothing */
|
|
0, /* EVERY => nothing */
|
|
0, /* ORDER => nothing */
|
|
0, /* SLIMIT => nothing */
|
|
0, /* SOFFSET => nothing */
|
|
0, /* LIMIT => nothing */
|
|
0, /* OFFSET => nothing */
|
|
0, /* ASC => nothing */
|
|
0, /* NULLS => nothing */
|
|
0, /* ABORT => nothing */
|
|
297, /* AFTER => ABORT */
|
|
297, /* ATTACH => ABORT */
|
|
297, /* BEFORE => ABORT */
|
|
297, /* BEGIN => ABORT */
|
|
297, /* BITAND => ABORT */
|
|
297, /* BITNOT => ABORT */
|
|
297, /* BITOR => ABORT */
|
|
297, /* BLOCKS => ABORT */
|
|
297, /* CHANGE => ABORT */
|
|
297, /* COMMA => ABORT */
|
|
297, /* CONCAT => ABORT */
|
|
297, /* CONFLICT => ABORT */
|
|
297, /* COPY => ABORT */
|
|
297, /* DEFERRED => ABORT */
|
|
297, /* DELIMITERS => ABORT */
|
|
297, /* DETACH => ABORT */
|
|
297, /* DIVIDE => ABORT */
|
|
297, /* DOT => ABORT */
|
|
297, /* EACH => ABORT */
|
|
297, /* FAIL => ABORT */
|
|
297, /* FILE => ABORT */
|
|
297, /* FOR => ABORT */
|
|
297, /* GLOB => ABORT */
|
|
297, /* ID => ABORT */
|
|
297, /* IMMEDIATE => ABORT */
|
|
297, /* IMPORT => ABORT */
|
|
297, /* INITIALLY => ABORT */
|
|
297, /* INSTEAD => ABORT */
|
|
297, /* ISNULL => ABORT */
|
|
297, /* KEY => ABORT */
|
|
297, /* MODULES => ABORT */
|
|
297, /* NK_BITNOT => ABORT */
|
|
297, /* NK_SEMI => ABORT */
|
|
297, /* NOTNULL => ABORT */
|
|
297, /* OF => ABORT */
|
|
297, /* PLUS => ABORT */
|
|
297, /* PRIVILEGE => ABORT */
|
|
297, /* RAISE => ABORT */
|
|
297, /* RESTRICT => ABORT */
|
|
297, /* ROW => ABORT */
|
|
297, /* SEMI => ABORT */
|
|
297, /* STAR => ABORT */
|
|
297, /* STATEMENT => ABORT */
|
|
297, /* STRICT => ABORT */
|
|
297, /* STRING => ABORT */
|
|
297, /* TIMES => ABORT */
|
|
297, /* VALUES => ABORT */
|
|
297, /* VARIABLE => ABORT */
|
|
297, /* WAL => ABORT */
|
|
};
|
|
#endif /* YYFALLBACK */
|
|
|
|
/* The following structure represents a single element of the
|
|
** parser's stack. Information stored includes:
|
|
**
|
|
** + The state number for the parser at this level of the stack.
|
|
**
|
|
** + The value of the token stored at this level of the stack.
|
|
** (In other words, the "major" token.)
|
|
**
|
|
** + The semantic value stored at this level of the stack. This is
|
|
** the information used by the action routines in the grammar.
|
|
** It is sometimes called the "minor" token.
|
|
**
|
|
** After the "shift" half of a SHIFTREDUCE action, the stateno field
|
|
** actually contains the reduce action for the second half of the
|
|
** SHIFTREDUCE.
|
|
*/
|
|
struct yyStackEntry {
|
|
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
|
|
YYCODETYPE major; /* The major token value. This is the code
|
|
** number for the token at this stack level */
|
|
YYMINORTYPE minor; /* The user-supplied minor token value. This
|
|
** is the value of the token */
|
|
};
|
|
typedef struct yyStackEntry yyStackEntry;
|
|
|
|
/* The state of the parser is completely contained in an instance of
|
|
** the following structure */
|
|
struct yyParser {
|
|
yyStackEntry *yytos; /* Pointer to top element of the stack */
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
int yyhwm; /* High-water mark of the stack */
|
|
#endif
|
|
#ifndef YYNOERRORRECOVERY
|
|
int yyerrcnt; /* Shifts left before out of the error */
|
|
#endif
|
|
ParseARG_SDECL /* A place to hold %extra_argument */
|
|
ParseCTX_SDECL /* A place to hold %extra_context */
|
|
#if YYSTACKDEPTH<=0
|
|
int yystksz; /* Current side of the stack */
|
|
yyStackEntry *yystack; /* The parser's stack */
|
|
yyStackEntry yystk0; /* First stack entry */
|
|
#else
|
|
yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
|
|
yyStackEntry *yystackEnd; /* Last entry in the stack */
|
|
#endif
|
|
};
|
|
typedef struct yyParser yyParser;
|
|
|
|
#ifndef NDEBUG
|
|
#include <stdio.h>
|
|
static FILE *yyTraceFILE = 0;
|
|
static char *yyTracePrompt = 0;
|
|
#endif /* NDEBUG */
|
|
|
|
#ifndef NDEBUG
|
|
/*
|
|
** Turn parser tracing on by giving a stream to which to write the trace
|
|
** and a prompt to preface each trace message. Tracing is turned off
|
|
** by making either argument NULL
|
|
**
|
|
** Inputs:
|
|
** <ul>
|
|
** <li> A FILE* to which trace output should be written.
|
|
** If NULL, then tracing is turned off.
|
|
** <li> A prefix string written at the beginning of every
|
|
** line of trace output. If NULL, then tracing is
|
|
** turned off.
|
|
** </ul>
|
|
**
|
|
** Outputs:
|
|
** None.
|
|
*/
|
|
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
|
|
yyTraceFILE = TraceFILE;
|
|
yyTracePrompt = zTracePrompt;
|
|
if( yyTraceFILE==0 ) yyTracePrompt = 0;
|
|
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
|
|
}
|
|
#endif /* NDEBUG */
|
|
|
|
#if defined(YYCOVERAGE) || !defined(NDEBUG)
|
|
/* For tracing shifts, the names of all terminals and nonterminals
|
|
** are required. The following table supplies these names */
|
|
static const char *const yyTokenName[] = {
|
|
/* 0 */ "$",
|
|
/* 1 */ "OR",
|
|
/* 2 */ "AND",
|
|
/* 3 */ "UNION",
|
|
/* 4 */ "ALL",
|
|
/* 5 */ "MINUS",
|
|
/* 6 */ "EXCEPT",
|
|
/* 7 */ "INTERSECT",
|
|
/* 8 */ "NK_BITAND",
|
|
/* 9 */ "NK_BITOR",
|
|
/* 10 */ "NK_LSHIFT",
|
|
/* 11 */ "NK_RSHIFT",
|
|
/* 12 */ "NK_PLUS",
|
|
/* 13 */ "NK_MINUS",
|
|
/* 14 */ "NK_STAR",
|
|
/* 15 */ "NK_SLASH",
|
|
/* 16 */ "NK_REM",
|
|
/* 17 */ "NK_CONCAT",
|
|
/* 18 */ "CREATE",
|
|
/* 19 */ "ACCOUNT",
|
|
/* 20 */ "NK_ID",
|
|
/* 21 */ "PASS",
|
|
/* 22 */ "NK_STRING",
|
|
/* 23 */ "ALTER",
|
|
/* 24 */ "PPS",
|
|
/* 25 */ "TSERIES",
|
|
/* 26 */ "STORAGE",
|
|
/* 27 */ "STREAMS",
|
|
/* 28 */ "QTIME",
|
|
/* 29 */ "DBS",
|
|
/* 30 */ "USERS",
|
|
/* 31 */ "CONNS",
|
|
/* 32 */ "STATE",
|
|
/* 33 */ "NK_COMMA",
|
|
/* 34 */ "HOST",
|
|
/* 35 */ "USER",
|
|
/* 36 */ "ENABLE",
|
|
/* 37 */ "NK_INTEGER",
|
|
/* 38 */ "SYSINFO",
|
|
/* 39 */ "ADD",
|
|
/* 40 */ "DROP",
|
|
/* 41 */ "GRANT",
|
|
/* 42 */ "ON",
|
|
/* 43 */ "TO",
|
|
/* 44 */ "REVOKE",
|
|
/* 45 */ "FROM",
|
|
/* 46 */ "SUBSCRIBE",
|
|
/* 47 */ "READ",
|
|
/* 48 */ "WRITE",
|
|
/* 49 */ "NK_DOT",
|
|
/* 50 */ "WITH",
|
|
/* 51 */ "DNODE",
|
|
/* 52 */ "PORT",
|
|
/* 53 */ "DNODES",
|
|
/* 54 */ "RESTORE",
|
|
/* 55 */ "NK_IPTOKEN",
|
|
/* 56 */ "FORCE",
|
|
/* 57 */ "UNSAFE",
|
|
/* 58 */ "CLUSTER",
|
|
/* 59 */ "LOCAL",
|
|
/* 60 */ "QNODE",
|
|
/* 61 */ "BNODE",
|
|
/* 62 */ "SNODE",
|
|
/* 63 */ "MNODE",
|
|
/* 64 */ "VNODE",
|
|
/* 65 */ "DATABASE",
|
|
/* 66 */ "USE",
|
|
/* 67 */ "FLUSH",
|
|
/* 68 */ "TRIM",
|
|
/* 69 */ "COMPACT",
|
|
/* 70 */ "IF",
|
|
/* 71 */ "NOT",
|
|
/* 72 */ "EXISTS",
|
|
/* 73 */ "BUFFER",
|
|
/* 74 */ "CACHEMODEL",
|
|
/* 75 */ "CACHESIZE",
|
|
/* 76 */ "COMP",
|
|
/* 77 */ "DURATION",
|
|
/* 78 */ "NK_VARIABLE",
|
|
/* 79 */ "MAXROWS",
|
|
/* 80 */ "MINROWS",
|
|
/* 81 */ "KEEP",
|
|
/* 82 */ "PAGES",
|
|
/* 83 */ "PAGESIZE",
|
|
/* 84 */ "TSDB_PAGESIZE",
|
|
/* 85 */ "PRECISION",
|
|
/* 86 */ "REPLICA",
|
|
/* 87 */ "VGROUPS",
|
|
/* 88 */ "SINGLE_STABLE",
|
|
/* 89 */ "RETENTIONS",
|
|
/* 90 */ "SCHEMALESS",
|
|
/* 91 */ "WAL_LEVEL",
|
|
/* 92 */ "WAL_FSYNC_PERIOD",
|
|
/* 93 */ "WAL_RETENTION_PERIOD",
|
|
/* 94 */ "WAL_RETENTION_SIZE",
|
|
/* 95 */ "WAL_ROLL_PERIOD",
|
|
/* 96 */ "WAL_SEGMENT_SIZE",
|
|
/* 97 */ "STT_TRIGGER",
|
|
/* 98 */ "TABLE_PREFIX",
|
|
/* 99 */ "TABLE_SUFFIX",
|
|
/* 100 */ "KEEP_TIME_OFFSET",
|
|
/* 101 */ "NK_COLON",
|
|
/* 102 */ "BWLIMIT",
|
|
/* 103 */ "START",
|
|
/* 104 */ "TIMESTAMP",
|
|
/* 105 */ "END",
|
|
/* 106 */ "TABLE",
|
|
/* 107 */ "NK_LP",
|
|
/* 108 */ "NK_RP",
|
|
/* 109 */ "STABLE",
|
|
/* 110 */ "COLUMN",
|
|
/* 111 */ "MODIFY",
|
|
/* 112 */ "RENAME",
|
|
/* 113 */ "TAG",
|
|
/* 114 */ "SET",
|
|
/* 115 */ "NK_EQ",
|
|
/* 116 */ "USING",
|
|
/* 117 */ "TAGS",
|
|
/* 118 */ "BOOL",
|
|
/* 119 */ "TINYINT",
|
|
/* 120 */ "SMALLINT",
|
|
/* 121 */ "INT",
|
|
/* 122 */ "INTEGER",
|
|
/* 123 */ "BIGINT",
|
|
/* 124 */ "FLOAT",
|
|
/* 125 */ "DOUBLE",
|
|
/* 126 */ "BINARY",
|
|
/* 127 */ "NCHAR",
|
|
/* 128 */ "UNSIGNED",
|
|
/* 129 */ "JSON",
|
|
/* 130 */ "VARCHAR",
|
|
/* 131 */ "MEDIUMBLOB",
|
|
/* 132 */ "BLOB",
|
|
/* 133 */ "VARBINARY",
|
|
/* 134 */ "GEOMETRY",
|
|
/* 135 */ "DECIMAL",
|
|
/* 136 */ "COMMENT",
|
|
/* 137 */ "MAX_DELAY",
|
|
/* 138 */ "WATERMARK",
|
|
/* 139 */ "ROLLUP",
|
|
/* 140 */ "TTL",
|
|
/* 141 */ "SMA",
|
|
/* 142 */ "DELETE_MARK",
|
|
/* 143 */ "FIRST",
|
|
/* 144 */ "LAST",
|
|
/* 145 */ "SHOW",
|
|
/* 146 */ "PRIVILEGES",
|
|
/* 147 */ "DATABASES",
|
|
/* 148 */ "TABLES",
|
|
/* 149 */ "STABLES",
|
|
/* 150 */ "MNODES",
|
|
/* 151 */ "QNODES",
|
|
/* 152 */ "FUNCTIONS",
|
|
/* 153 */ "INDEXES",
|
|
/* 154 */ "ACCOUNTS",
|
|
/* 155 */ "APPS",
|
|
/* 156 */ "CONNECTIONS",
|
|
/* 157 */ "LICENCES",
|
|
/* 158 */ "GRANTS",
|
|
/* 159 */ "QUERIES",
|
|
/* 160 */ "SCORES",
|
|
/* 161 */ "TOPICS",
|
|
/* 162 */ "VARIABLES",
|
|
/* 163 */ "BNODES",
|
|
/* 164 */ "SNODES",
|
|
/* 165 */ "TRANSACTIONS",
|
|
/* 166 */ "DISTRIBUTED",
|
|
/* 167 */ "CONSUMERS",
|
|
/* 168 */ "SUBSCRIPTIONS",
|
|
/* 169 */ "VNODES",
|
|
/* 170 */ "ALIVE",
|
|
/* 171 */ "VIEWS",
|
|
/* 172 */ "VIEW",
|
|
/* 173 */ "COMPACTS",
|
|
/* 174 */ "NORMAL",
|
|
/* 175 */ "CHILD",
|
|
/* 176 */ "LIKE",
|
|
/* 177 */ "TBNAME",
|
|
/* 178 */ "QTAGS",
|
|
/* 179 */ "AS",
|
|
/* 180 */ "SYSTEM",
|
|
/* 181 */ "INDEX",
|
|
/* 182 */ "FUNCTION",
|
|
/* 183 */ "INTERVAL",
|
|
/* 184 */ "COUNT",
|
|
/* 185 */ "LAST_ROW",
|
|
/* 186 */ "META",
|
|
/* 187 */ "ONLY",
|
|
/* 188 */ "TOPIC",
|
|
/* 189 */ "CONSUMER",
|
|
/* 190 */ "GROUP",
|
|
/* 191 */ "DESC",
|
|
/* 192 */ "DESCRIBE",
|
|
/* 193 */ "RESET",
|
|
/* 194 */ "QUERY",
|
|
/* 195 */ "CACHE",
|
|
/* 196 */ "EXPLAIN",
|
|
/* 197 */ "ANALYZE",
|
|
/* 198 */ "VERBOSE",
|
|
/* 199 */ "NK_BOOL",
|
|
/* 200 */ "RATIO",
|
|
/* 201 */ "NK_FLOAT",
|
|
/* 202 */ "OUTPUTTYPE",
|
|
/* 203 */ "AGGREGATE",
|
|
/* 204 */ "BUFSIZE",
|
|
/* 205 */ "LANGUAGE",
|
|
/* 206 */ "REPLACE",
|
|
/* 207 */ "STREAM",
|
|
/* 208 */ "INTO",
|
|
/* 209 */ "PAUSE",
|
|
/* 210 */ "RESUME",
|
|
/* 211 */ "TRIGGER",
|
|
/* 212 */ "AT_ONCE",
|
|
/* 213 */ "WINDOW_CLOSE",
|
|
/* 214 */ "IGNORE",
|
|
/* 215 */ "EXPIRED",
|
|
/* 216 */ "FILL_HISTORY",
|
|
/* 217 */ "UPDATE",
|
|
/* 218 */ "SUBTABLE",
|
|
/* 219 */ "UNTREATED",
|
|
/* 220 */ "KILL",
|
|
/* 221 */ "CONNECTION",
|
|
/* 222 */ "TRANSACTION",
|
|
/* 223 */ "BALANCE",
|
|
/* 224 */ "VGROUP",
|
|
/* 225 */ "LEADER",
|
|
/* 226 */ "MERGE",
|
|
/* 227 */ "REDISTRIBUTE",
|
|
/* 228 */ "SPLIT",
|
|
/* 229 */ "DELETE",
|
|
/* 230 */ "INSERT",
|
|
/* 231 */ "NULL",
|
|
/* 232 */ "NK_QUESTION",
|
|
/* 233 */ "NK_ALIAS",
|
|
/* 234 */ "NK_ARROW",
|
|
/* 235 */ "ROWTS",
|
|
/* 236 */ "QSTART",
|
|
/* 237 */ "QEND",
|
|
/* 238 */ "QDURATION",
|
|
/* 239 */ "WSTART",
|
|
/* 240 */ "WEND",
|
|
/* 241 */ "WDURATION",
|
|
/* 242 */ "IROWTS",
|
|
/* 243 */ "ISFILLED",
|
|
/* 244 */ "CAST",
|
|
/* 245 */ "NOW",
|
|
/* 246 */ "TODAY",
|
|
/* 247 */ "TIMEZONE",
|
|
/* 248 */ "CLIENT_VERSION",
|
|
/* 249 */ "SERVER_VERSION",
|
|
/* 250 */ "SERVER_STATUS",
|
|
/* 251 */ "CURRENT_USER",
|
|
/* 252 */ "CASE",
|
|
/* 253 */ "WHEN",
|
|
/* 254 */ "THEN",
|
|
/* 255 */ "ELSE",
|
|
/* 256 */ "BETWEEN",
|
|
/* 257 */ "IS",
|
|
/* 258 */ "NK_LT",
|
|
/* 259 */ "NK_GT",
|
|
/* 260 */ "NK_LE",
|
|
/* 261 */ "NK_GE",
|
|
/* 262 */ "NK_NE",
|
|
/* 263 */ "MATCH",
|
|
/* 264 */ "NMATCH",
|
|
/* 265 */ "CONTAINS",
|
|
/* 266 */ "IN",
|
|
/* 267 */ "JOIN",
|
|
/* 268 */ "INNER",
|
|
/* 269 */ "SELECT",
|
|
/* 270 */ "NK_HINT",
|
|
/* 271 */ "DISTINCT",
|
|
/* 272 */ "WHERE",
|
|
/* 273 */ "PARTITION",
|
|
/* 274 */ "BY",
|
|
/* 275 */ "SESSION",
|
|
/* 276 */ "STATE_WINDOW",
|
|
/* 277 */ "EVENT_WINDOW",
|
|
/* 278 */ "SLIDING",
|
|
/* 279 */ "FILL",
|
|
/* 280 */ "VALUE",
|
|
/* 281 */ "VALUE_F",
|
|
/* 282 */ "NONE",
|
|
/* 283 */ "PREV",
|
|
/* 284 */ "NULL_F",
|
|
/* 285 */ "LINEAR",
|
|
/* 286 */ "NEXT",
|
|
/* 287 */ "HAVING",
|
|
/* 288 */ "RANGE",
|
|
/* 289 */ "EVERY",
|
|
/* 290 */ "ORDER",
|
|
/* 291 */ "SLIMIT",
|
|
/* 292 */ "SOFFSET",
|
|
/* 293 */ "LIMIT",
|
|
/* 294 */ "OFFSET",
|
|
/* 295 */ "ASC",
|
|
/* 296 */ "NULLS",
|
|
/* 297 */ "ABORT",
|
|
/* 298 */ "AFTER",
|
|
/* 299 */ "ATTACH",
|
|
/* 300 */ "BEFORE",
|
|
/* 301 */ "BEGIN",
|
|
/* 302 */ "BITAND",
|
|
/* 303 */ "BITNOT",
|
|
/* 304 */ "BITOR",
|
|
/* 305 */ "BLOCKS",
|
|
/* 306 */ "CHANGE",
|
|
/* 307 */ "COMMA",
|
|
/* 308 */ "CONCAT",
|
|
/* 309 */ "CONFLICT",
|
|
/* 310 */ "COPY",
|
|
/* 311 */ "DEFERRED",
|
|
/* 312 */ "DELIMITERS",
|
|
/* 313 */ "DETACH",
|
|
/* 314 */ "DIVIDE",
|
|
/* 315 */ "DOT",
|
|
/* 316 */ "EACH",
|
|
/* 317 */ "FAIL",
|
|
/* 318 */ "FILE",
|
|
/* 319 */ "FOR",
|
|
/* 320 */ "GLOB",
|
|
/* 321 */ "ID",
|
|
/* 322 */ "IMMEDIATE",
|
|
/* 323 */ "IMPORT",
|
|
/* 324 */ "INITIALLY",
|
|
/* 325 */ "INSTEAD",
|
|
/* 326 */ "ISNULL",
|
|
/* 327 */ "KEY",
|
|
/* 328 */ "MODULES",
|
|
/* 329 */ "NK_BITNOT",
|
|
/* 330 */ "NK_SEMI",
|
|
/* 331 */ "NOTNULL",
|
|
/* 332 */ "OF",
|
|
/* 333 */ "PLUS",
|
|
/* 334 */ "PRIVILEGE",
|
|
/* 335 */ "RAISE",
|
|
/* 336 */ "RESTRICT",
|
|
/* 337 */ "ROW",
|
|
/* 338 */ "SEMI",
|
|
/* 339 */ "STAR",
|
|
/* 340 */ "STATEMENT",
|
|
/* 341 */ "STRICT",
|
|
/* 342 */ "STRING",
|
|
/* 343 */ "TIMES",
|
|
/* 344 */ "VALUES",
|
|
/* 345 */ "VARIABLE",
|
|
/* 346 */ "WAL",
|
|
/* 347 */ "cmd",
|
|
/* 348 */ "account_options",
|
|
/* 349 */ "alter_account_options",
|
|
/* 350 */ "literal",
|
|
/* 351 */ "alter_account_option",
|
|
/* 352 */ "ip_range_list",
|
|
/* 353 */ "white_list",
|
|
/* 354 */ "white_list_opt",
|
|
/* 355 */ "user_name",
|
|
/* 356 */ "sysinfo_opt",
|
|
/* 357 */ "privileges",
|
|
/* 358 */ "priv_level",
|
|
/* 359 */ "with_opt",
|
|
/* 360 */ "priv_type_list",
|
|
/* 361 */ "priv_type",
|
|
/* 362 */ "db_name",
|
|
/* 363 */ "table_name",
|
|
/* 364 */ "topic_name",
|
|
/* 365 */ "search_condition",
|
|
/* 366 */ "dnode_endpoint",
|
|
/* 367 */ "force_opt",
|
|
/* 368 */ "unsafe_opt",
|
|
/* 369 */ "not_exists_opt",
|
|
/* 370 */ "db_options",
|
|
/* 371 */ "exists_opt",
|
|
/* 372 */ "alter_db_options",
|
|
/* 373 */ "speed_opt",
|
|
/* 374 */ "start_opt",
|
|
/* 375 */ "end_opt",
|
|
/* 376 */ "integer_list",
|
|
/* 377 */ "variable_list",
|
|
/* 378 */ "retention_list",
|
|
/* 379 */ "signed",
|
|
/* 380 */ "alter_db_option",
|
|
/* 381 */ "retention",
|
|
/* 382 */ "full_table_name",
|
|
/* 383 */ "column_def_list",
|
|
/* 384 */ "tags_def_opt",
|
|
/* 385 */ "table_options",
|
|
/* 386 */ "multi_create_clause",
|
|
/* 387 */ "tags_def",
|
|
/* 388 */ "multi_drop_clause",
|
|
/* 389 */ "alter_table_clause",
|
|
/* 390 */ "alter_table_options",
|
|
/* 391 */ "column_name",
|
|
/* 392 */ "type_name",
|
|
/* 393 */ "signed_literal",
|
|
/* 394 */ "create_subtable_clause",
|
|
/* 395 */ "specific_cols_opt",
|
|
/* 396 */ "expression_list",
|
|
/* 397 */ "drop_table_clause",
|
|
/* 398 */ "col_name_list",
|
|
/* 399 */ "column_def",
|
|
/* 400 */ "duration_list",
|
|
/* 401 */ "rollup_func_list",
|
|
/* 402 */ "alter_table_option",
|
|
/* 403 */ "duration_literal",
|
|
/* 404 */ "rollup_func_name",
|
|
/* 405 */ "function_name",
|
|
/* 406 */ "col_name",
|
|
/* 407 */ "db_kind_opt",
|
|
/* 408 */ "table_kind_db_name_cond_opt",
|
|
/* 409 */ "like_pattern_opt",
|
|
/* 410 */ "db_name_cond_opt",
|
|
/* 411 */ "table_name_cond",
|
|
/* 412 */ "from_db_opt",
|
|
/* 413 */ "tag_list_opt",
|
|
/* 414 */ "table_kind",
|
|
/* 415 */ "tag_item",
|
|
/* 416 */ "column_alias",
|
|
/* 417 */ "index_options",
|
|
/* 418 */ "full_index_name",
|
|
/* 419 */ "index_name",
|
|
/* 420 */ "func_list",
|
|
/* 421 */ "sliding_opt",
|
|
/* 422 */ "sma_stream_opt",
|
|
/* 423 */ "func",
|
|
/* 424 */ "sma_func_name",
|
|
/* 425 */ "with_meta",
|
|
/* 426 */ "query_or_subquery",
|
|
/* 427 */ "where_clause_opt",
|
|
/* 428 */ "cgroup_name",
|
|
/* 429 */ "analyze_opt",
|
|
/* 430 */ "explain_options",
|
|
/* 431 */ "insert_query",
|
|
/* 432 */ "or_replace_opt",
|
|
/* 433 */ "agg_func_opt",
|
|
/* 434 */ "bufsize_opt",
|
|
/* 435 */ "language_opt",
|
|
/* 436 */ "full_view_name",
|
|
/* 437 */ "view_name",
|
|
/* 438 */ "stream_name",
|
|
/* 439 */ "stream_options",
|
|
/* 440 */ "col_list_opt",
|
|
/* 441 */ "tag_def_or_ref_opt",
|
|
/* 442 */ "subtable_opt",
|
|
/* 443 */ "ignore_opt",
|
|
/* 444 */ "expression",
|
|
/* 445 */ "on_vgroup_id",
|
|
/* 446 */ "dnode_list",
|
|
/* 447 */ "literal_func",
|
|
/* 448 */ "literal_list",
|
|
/* 449 */ "table_alias",
|
|
/* 450 */ "expr_or_subquery",
|
|
/* 451 */ "pseudo_column",
|
|
/* 452 */ "column_reference",
|
|
/* 453 */ "function_expression",
|
|
/* 454 */ "case_when_expression",
|
|
/* 455 */ "star_func",
|
|
/* 456 */ "star_func_para_list",
|
|
/* 457 */ "noarg_func",
|
|
/* 458 */ "other_para_list",
|
|
/* 459 */ "star_func_para",
|
|
/* 460 */ "when_then_list",
|
|
/* 461 */ "case_when_else_opt",
|
|
/* 462 */ "common_expression",
|
|
/* 463 */ "when_then_expr",
|
|
/* 464 */ "predicate",
|
|
/* 465 */ "compare_op",
|
|
/* 466 */ "in_op",
|
|
/* 467 */ "in_predicate_value",
|
|
/* 468 */ "boolean_value_expression",
|
|
/* 469 */ "boolean_primary",
|
|
/* 470 */ "from_clause_opt",
|
|
/* 471 */ "table_reference_list",
|
|
/* 472 */ "table_reference",
|
|
/* 473 */ "table_primary",
|
|
/* 474 */ "joined_table",
|
|
/* 475 */ "alias_opt",
|
|
/* 476 */ "subquery",
|
|
/* 477 */ "parenthesized_joined_table",
|
|
/* 478 */ "join_type",
|
|
/* 479 */ "query_specification",
|
|
/* 480 */ "hint_list",
|
|
/* 481 */ "set_quantifier_opt",
|
|
/* 482 */ "tag_mode_opt",
|
|
/* 483 */ "select_list",
|
|
/* 484 */ "partition_by_clause_opt",
|
|
/* 485 */ "range_opt",
|
|
/* 486 */ "every_opt",
|
|
/* 487 */ "fill_opt",
|
|
/* 488 */ "twindow_clause_opt",
|
|
/* 489 */ "group_by_clause_opt",
|
|
/* 490 */ "having_clause_opt",
|
|
/* 491 */ "select_item",
|
|
/* 492 */ "partition_list",
|
|
/* 493 */ "partition_item",
|
|
/* 494 */ "interval_sliding_duration_literal",
|
|
/* 495 */ "fill_mode",
|
|
/* 496 */ "group_by_list",
|
|
/* 497 */ "query_expression",
|
|
/* 498 */ "query_simple",
|
|
/* 499 */ "order_by_clause_opt",
|
|
/* 500 */ "slimit_clause_opt",
|
|
/* 501 */ "limit_clause_opt",
|
|
/* 502 */ "union_query_expression",
|
|
/* 503 */ "query_simple_or_subquery",
|
|
/* 504 */ "sort_specification_list",
|
|
/* 505 */ "sort_specification",
|
|
/* 506 */ "ordering_specification_opt",
|
|
/* 507 */ "null_ordering_opt",
|
|
};
|
|
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
|
|
|
|
#ifndef NDEBUG
|
|
/* For tracing reduce actions, the names of all rules are required.
|
|
*/
|
|
static const char *const yyRuleName[] = {
|
|
/* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
|
|
/* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
|
|
/* 2 */ "account_options ::=",
|
|
/* 3 */ "account_options ::= account_options PPS literal",
|
|
/* 4 */ "account_options ::= account_options TSERIES literal",
|
|
/* 5 */ "account_options ::= account_options STORAGE literal",
|
|
/* 6 */ "account_options ::= account_options STREAMS literal",
|
|
/* 7 */ "account_options ::= account_options QTIME literal",
|
|
/* 8 */ "account_options ::= account_options DBS literal",
|
|
/* 9 */ "account_options ::= account_options USERS literal",
|
|
/* 10 */ "account_options ::= account_options CONNS literal",
|
|
/* 11 */ "account_options ::= account_options STATE literal",
|
|
/* 12 */ "alter_account_options ::= alter_account_option",
|
|
/* 13 */ "alter_account_options ::= alter_account_options alter_account_option",
|
|
/* 14 */ "alter_account_option ::= PASS literal",
|
|
/* 15 */ "alter_account_option ::= PPS literal",
|
|
/* 16 */ "alter_account_option ::= TSERIES literal",
|
|
/* 17 */ "alter_account_option ::= STORAGE literal",
|
|
/* 18 */ "alter_account_option ::= STREAMS literal",
|
|
/* 19 */ "alter_account_option ::= QTIME literal",
|
|
/* 20 */ "alter_account_option ::= DBS literal",
|
|
/* 21 */ "alter_account_option ::= USERS literal",
|
|
/* 22 */ "alter_account_option ::= CONNS literal",
|
|
/* 23 */ "alter_account_option ::= STATE literal",
|
|
/* 24 */ "ip_range_list ::= NK_STRING",
|
|
/* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING",
|
|
/* 26 */ "white_list ::= HOST ip_range_list",
|
|
/* 27 */ "white_list_opt ::=",
|
|
/* 28 */ "white_list_opt ::= white_list",
|
|
/* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt",
|
|
/* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
|
|
/* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
|
|
/* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
|
|
/* 33 */ "cmd ::= ALTER USER user_name ADD white_list",
|
|
/* 34 */ "cmd ::= ALTER USER user_name DROP white_list",
|
|
/* 35 */ "cmd ::= DROP USER user_name",
|
|
/* 36 */ "sysinfo_opt ::=",
|
|
/* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
|
|
/* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
|
|
/* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
|
|
/* 40 */ "privileges ::= ALL",
|
|
/* 41 */ "privileges ::= priv_type_list",
|
|
/* 42 */ "privileges ::= SUBSCRIBE",
|
|
/* 43 */ "priv_type_list ::= priv_type",
|
|
/* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
|
|
/* 45 */ "priv_type ::= READ",
|
|
/* 46 */ "priv_type ::= WRITE",
|
|
/* 47 */ "priv_type ::= ALTER",
|
|
/* 48 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
|
|
/* 49 */ "priv_level ::= db_name NK_DOT NK_STAR",
|
|
/* 50 */ "priv_level ::= db_name NK_DOT table_name",
|
|
/* 51 */ "priv_level ::= topic_name",
|
|
/* 52 */ "with_opt ::=",
|
|
/* 53 */ "with_opt ::= WITH search_condition",
|
|
/* 54 */ "cmd ::= CREATE DNODE dnode_endpoint",
|
|
/* 55 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
|
|
/* 56 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
|
|
/* 57 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
|
|
/* 58 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
|
|
/* 59 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
|
|
/* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
|
|
/* 61 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
|
|
/* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING",
|
|
/* 63 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
|
|
/* 64 */ "cmd ::= RESTORE DNODE NK_INTEGER",
|
|
/* 65 */ "dnode_endpoint ::= NK_STRING",
|
|
/* 66 */ "dnode_endpoint ::= NK_ID",
|
|
/* 67 */ "dnode_endpoint ::= NK_IPTOKEN",
|
|
/* 68 */ "force_opt ::=",
|
|
/* 69 */ "force_opt ::= FORCE",
|
|
/* 70 */ "unsafe_opt ::= UNSAFE",
|
|
/* 71 */ "cmd ::= ALTER CLUSTER NK_STRING",
|
|
/* 72 */ "cmd ::= ALTER CLUSTER NK_STRING NK_STRING",
|
|
/* 73 */ "cmd ::= ALTER LOCAL NK_STRING",
|
|
/* 74 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
|
|
/* 75 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
|
|
/* 76 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
|
|
/* 77 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
|
|
/* 78 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
|
|
/* 79 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
|
|
/* 80 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
|
|
/* 81 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
|
|
/* 82 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
|
|
/* 83 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
|
|
/* 84 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
|
|
/* 85 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
|
|
/* 86 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
|
|
/* 87 */ "cmd ::= DROP DATABASE exists_opt db_name",
|
|
/* 88 */ "cmd ::= USE db_name",
|
|
/* 89 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
|
|
/* 90 */ "cmd ::= FLUSH DATABASE db_name",
|
|
/* 91 */ "cmd ::= TRIM DATABASE db_name speed_opt",
|
|
/* 92 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
|
|
/* 93 */ "not_exists_opt ::= IF NOT EXISTS",
|
|
/* 94 */ "not_exists_opt ::=",
|
|
/* 95 */ "exists_opt ::= IF EXISTS",
|
|
/* 96 */ "exists_opt ::=",
|
|
/* 97 */ "db_options ::=",
|
|
/* 98 */ "db_options ::= db_options BUFFER NK_INTEGER",
|
|
/* 99 */ "db_options ::= db_options CACHEMODEL NK_STRING",
|
|
/* 100 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
|
|
/* 101 */ "db_options ::= db_options COMP NK_INTEGER",
|
|
/* 102 */ "db_options ::= db_options DURATION NK_INTEGER",
|
|
/* 103 */ "db_options ::= db_options DURATION NK_VARIABLE",
|
|
/* 104 */ "db_options ::= db_options MAXROWS NK_INTEGER",
|
|
/* 105 */ "db_options ::= db_options MINROWS NK_INTEGER",
|
|
/* 106 */ "db_options ::= db_options KEEP integer_list",
|
|
/* 107 */ "db_options ::= db_options KEEP variable_list",
|
|
/* 108 */ "db_options ::= db_options PAGES NK_INTEGER",
|
|
/* 109 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
|
|
/* 110 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
|
|
/* 111 */ "db_options ::= db_options PRECISION NK_STRING",
|
|
/* 112 */ "db_options ::= db_options REPLICA NK_INTEGER",
|
|
/* 113 */ "db_options ::= db_options VGROUPS NK_INTEGER",
|
|
/* 114 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
|
|
/* 115 */ "db_options ::= db_options RETENTIONS retention_list",
|
|
/* 116 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
|
|
/* 117 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
|
|
/* 118 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 119 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 120 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 121 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 122 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 123 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
|
|
/* 124 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
|
|
/* 125 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
|
|
/* 126 */ "db_options ::= db_options TABLE_PREFIX signed",
|
|
/* 127 */ "db_options ::= db_options TABLE_SUFFIX signed",
|
|
/* 128 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
|
|
/* 129 */ "alter_db_options ::= alter_db_option",
|
|
/* 130 */ "alter_db_options ::= alter_db_options alter_db_option",
|
|
/* 131 */ "alter_db_option ::= BUFFER NK_INTEGER",
|
|
/* 132 */ "alter_db_option ::= CACHEMODEL NK_STRING",
|
|
/* 133 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
|
|
/* 134 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 135 */ "alter_db_option ::= KEEP integer_list",
|
|
/* 136 */ "alter_db_option ::= KEEP variable_list",
|
|
/* 137 */ "alter_db_option ::= PAGES NK_INTEGER",
|
|
/* 138 */ "alter_db_option ::= REPLICA NK_INTEGER",
|
|
/* 139 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
|
|
/* 140 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
|
|
/* 141 */ "alter_db_option ::= MINROWS NK_INTEGER",
|
|
/* 142 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 143 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 144 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 145 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 146 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
|
|
/* 147 */ "integer_list ::= NK_INTEGER",
|
|
/* 148 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
|
|
/* 149 */ "variable_list ::= NK_VARIABLE",
|
|
/* 150 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
|
|
/* 151 */ "retention_list ::= retention",
|
|
/* 152 */ "retention_list ::= retention_list NK_COMMA retention",
|
|
/* 153 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
|
|
/* 154 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
|
|
/* 155 */ "speed_opt ::=",
|
|
/* 156 */ "speed_opt ::= BWLIMIT NK_INTEGER",
|
|
/* 157 */ "start_opt ::=",
|
|
/* 158 */ "start_opt ::= START WITH NK_INTEGER",
|
|
/* 159 */ "start_opt ::= START WITH NK_STRING",
|
|
/* 160 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
|
|
/* 161 */ "end_opt ::=",
|
|
/* 162 */ "end_opt ::= END WITH NK_INTEGER",
|
|
/* 163 */ "end_opt ::= END WITH NK_STRING",
|
|
/* 164 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
|
|
/* 165 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
|
|
/* 166 */ "cmd ::= CREATE TABLE multi_create_clause",
|
|
/* 167 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
|
|
/* 168 */ "cmd ::= DROP TABLE multi_drop_clause",
|
|
/* 169 */ "cmd ::= DROP STABLE exists_opt full_table_name",
|
|
/* 170 */ "cmd ::= ALTER TABLE alter_table_clause",
|
|
/* 171 */ "cmd ::= ALTER STABLE alter_table_clause",
|
|
/* 172 */ "alter_table_clause ::= full_table_name alter_table_options",
|
|
/* 173 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
|
|
/* 174 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
|
|
/* 175 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
|
|
/* 176 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
|
|
/* 177 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
|
|
/* 178 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
|
|
/* 179 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
|
|
/* 180 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
|
|
/* 181 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
|
|
/* 182 */ "multi_create_clause ::= create_subtable_clause",
|
|
/* 183 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
|
|
/* 184 */ "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",
|
|
/* 185 */ "multi_drop_clause ::= drop_table_clause",
|
|
/* 186 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
|
|
/* 187 */ "drop_table_clause ::= exists_opt full_table_name",
|
|
/* 188 */ "specific_cols_opt ::=",
|
|
/* 189 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 190 */ "full_table_name ::= table_name",
|
|
/* 191 */ "full_table_name ::= db_name NK_DOT table_name",
|
|
/* 192 */ "column_def_list ::= column_def",
|
|
/* 193 */ "column_def_list ::= column_def_list NK_COMMA column_def",
|
|
/* 194 */ "column_def ::= column_name type_name",
|
|
/* 195 */ "type_name ::= BOOL",
|
|
/* 196 */ "type_name ::= TINYINT",
|
|
/* 197 */ "type_name ::= SMALLINT",
|
|
/* 198 */ "type_name ::= INT",
|
|
/* 199 */ "type_name ::= INTEGER",
|
|
/* 200 */ "type_name ::= BIGINT",
|
|
/* 201 */ "type_name ::= FLOAT",
|
|
/* 202 */ "type_name ::= DOUBLE",
|
|
/* 203 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 204 */ "type_name ::= TIMESTAMP",
|
|
/* 205 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 206 */ "type_name ::= TINYINT UNSIGNED",
|
|
/* 207 */ "type_name ::= SMALLINT UNSIGNED",
|
|
/* 208 */ "type_name ::= INT UNSIGNED",
|
|
/* 209 */ "type_name ::= BIGINT UNSIGNED",
|
|
/* 210 */ "type_name ::= JSON",
|
|
/* 211 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 212 */ "type_name ::= MEDIUMBLOB",
|
|
/* 213 */ "type_name ::= BLOB",
|
|
/* 214 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 215 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
|
|
/* 216 */ "type_name ::= DECIMAL",
|
|
/* 217 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
|
|
/* 218 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
/* 219 */ "tags_def_opt ::=",
|
|
/* 220 */ "tags_def_opt ::= tags_def",
|
|
/* 221 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
|
|
/* 222 */ "table_options ::=",
|
|
/* 223 */ "table_options ::= table_options COMMENT NK_STRING",
|
|
/* 224 */ "table_options ::= table_options MAX_DELAY duration_list",
|
|
/* 225 */ "table_options ::= table_options WATERMARK duration_list",
|
|
/* 226 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
|
|
/* 227 */ "table_options ::= table_options TTL NK_INTEGER",
|
|
/* 228 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
|
|
/* 229 */ "table_options ::= table_options DELETE_MARK duration_list",
|
|
/* 230 */ "alter_table_options ::= alter_table_option",
|
|
/* 231 */ "alter_table_options ::= alter_table_options alter_table_option",
|
|
/* 232 */ "alter_table_option ::= COMMENT NK_STRING",
|
|
/* 233 */ "alter_table_option ::= TTL NK_INTEGER",
|
|
/* 234 */ "duration_list ::= duration_literal",
|
|
/* 235 */ "duration_list ::= duration_list NK_COMMA duration_literal",
|
|
/* 236 */ "rollup_func_list ::= rollup_func_name",
|
|
/* 237 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
|
|
/* 238 */ "rollup_func_name ::= function_name",
|
|
/* 239 */ "rollup_func_name ::= FIRST",
|
|
/* 240 */ "rollup_func_name ::= LAST",
|
|
/* 241 */ "col_name_list ::= col_name",
|
|
/* 242 */ "col_name_list ::= col_name_list NK_COMMA col_name",
|
|
/* 243 */ "col_name ::= column_name",
|
|
/* 244 */ "cmd ::= SHOW DNODES",
|
|
/* 245 */ "cmd ::= SHOW USERS",
|
|
/* 246 */ "cmd ::= SHOW USER PRIVILEGES",
|
|
/* 247 */ "cmd ::= SHOW db_kind_opt DATABASES",
|
|
/* 248 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
|
|
/* 249 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
|
|
/* 250 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
|
|
/* 251 */ "cmd ::= SHOW MNODES",
|
|
/* 252 */ "cmd ::= SHOW QNODES",
|
|
/* 253 */ "cmd ::= SHOW FUNCTIONS",
|
|
/* 254 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
/* 255 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
/* 256 */ "cmd ::= SHOW STREAMS",
|
|
/* 257 */ "cmd ::= SHOW ACCOUNTS",
|
|
/* 258 */ "cmd ::= SHOW APPS",
|
|
/* 259 */ "cmd ::= SHOW CONNECTIONS",
|
|
/* 260 */ "cmd ::= SHOW LICENCES",
|
|
/* 261 */ "cmd ::= SHOW GRANTS",
|
|
/* 262 */ "cmd ::= SHOW CREATE DATABASE db_name",
|
|
/* 263 */ "cmd ::= SHOW CREATE TABLE full_table_name",
|
|
/* 264 */ "cmd ::= SHOW CREATE STABLE full_table_name",
|
|
/* 265 */ "cmd ::= SHOW QUERIES",
|
|
/* 266 */ "cmd ::= SHOW SCORES",
|
|
/* 267 */ "cmd ::= SHOW TOPICS",
|
|
/* 268 */ "cmd ::= SHOW VARIABLES",
|
|
/* 269 */ "cmd ::= SHOW CLUSTER VARIABLES",
|
|
/* 270 */ "cmd ::= SHOW LOCAL VARIABLES",
|
|
/* 271 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
|
|
/* 272 */ "cmd ::= SHOW BNODES",
|
|
/* 273 */ "cmd ::= SHOW SNODES",
|
|
/* 274 */ "cmd ::= SHOW CLUSTER",
|
|
/* 275 */ "cmd ::= SHOW TRANSACTIONS",
|
|
/* 276 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
|
|
/* 277 */ "cmd ::= SHOW CONSUMERS",
|
|
/* 278 */ "cmd ::= SHOW SUBSCRIPTIONS",
|
|
/* 279 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
|
|
/* 280 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
|
|
/* 281 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
|
|
/* 282 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
|
|
/* 283 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
|
|
/* 284 */ "cmd ::= SHOW VNODES",
|
|
/* 285 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
|
|
/* 286 */ "cmd ::= SHOW CLUSTER ALIVE",
|
|
/* 287 */ "cmd ::= SHOW db_name_cond_opt VIEWS",
|
|
/* 288 */ "cmd ::= SHOW CREATE VIEW full_table_name",
|
|
/* 289 */ "cmd ::= SHOW COMPACTS",
|
|
/* 290 */ "cmd ::= SHOW COMPACT NK_INTEGER",
|
|
/* 291 */ "table_kind_db_name_cond_opt ::=",
|
|
/* 292 */ "table_kind_db_name_cond_opt ::= table_kind",
|
|
/* 293 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 294 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
|
|
/* 295 */ "table_kind ::= NORMAL",
|
|
/* 296 */ "table_kind ::= CHILD",
|
|
/* 297 */ "db_name_cond_opt ::=",
|
|
/* 298 */ "db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 299 */ "like_pattern_opt ::=",
|
|
/* 300 */ "like_pattern_opt ::= LIKE NK_STRING",
|
|
/* 301 */ "table_name_cond ::= table_name",
|
|
/* 302 */ "from_db_opt ::=",
|
|
/* 303 */ "from_db_opt ::= FROM db_name",
|
|
/* 304 */ "tag_list_opt ::=",
|
|
/* 305 */ "tag_list_opt ::= tag_item",
|
|
/* 306 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
|
|
/* 307 */ "tag_item ::= TBNAME",
|
|
/* 308 */ "tag_item ::= QTAGS",
|
|
/* 309 */ "tag_item ::= column_name",
|
|
/* 310 */ "tag_item ::= column_name column_alias",
|
|
/* 311 */ "tag_item ::= column_name AS column_alias",
|
|
/* 312 */ "db_kind_opt ::=",
|
|
/* 313 */ "db_kind_opt ::= USER",
|
|
/* 314 */ "db_kind_opt ::= SYSTEM",
|
|
/* 315 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
|
|
/* 316 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
|
|
/* 317 */ "cmd ::= DROP INDEX exists_opt full_index_name",
|
|
/* 318 */ "full_index_name ::= index_name",
|
|
/* 319 */ "full_index_name ::= db_name NK_DOT index_name",
|
|
/* 320 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
/* 321 */ "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",
|
|
/* 322 */ "func_list ::= func",
|
|
/* 323 */ "func_list ::= func_list NK_COMMA func",
|
|
/* 324 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
|
|
/* 325 */ "sma_func_name ::= function_name",
|
|
/* 326 */ "sma_func_name ::= COUNT",
|
|
/* 327 */ "sma_func_name ::= FIRST",
|
|
/* 328 */ "sma_func_name ::= LAST",
|
|
/* 329 */ "sma_func_name ::= LAST_ROW",
|
|
/* 330 */ "sma_stream_opt ::=",
|
|
/* 331 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
|
|
/* 332 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
|
|
/* 333 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
|
|
/* 334 */ "with_meta ::= AS",
|
|
/* 335 */ "with_meta ::= WITH META AS",
|
|
/* 336 */ "with_meta ::= ONLY META AS",
|
|
/* 337 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
|
|
/* 338 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
|
|
/* 339 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
|
|
/* 340 */ "cmd ::= DROP TOPIC exists_opt topic_name",
|
|
/* 341 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
|
|
/* 342 */ "cmd ::= DESC full_table_name",
|
|
/* 343 */ "cmd ::= DESCRIBE full_table_name",
|
|
/* 344 */ "cmd ::= RESET QUERY CACHE",
|
|
/* 345 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
|
|
/* 346 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
|
|
/* 347 */ "analyze_opt ::=",
|
|
/* 348 */ "analyze_opt ::= ANALYZE",
|
|
/* 349 */ "explain_options ::=",
|
|
/* 350 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
|
|
/* 351 */ "explain_options ::= explain_options RATIO NK_FLOAT",
|
|
/* 352 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
|
|
/* 353 */ "cmd ::= DROP FUNCTION exists_opt function_name",
|
|
/* 354 */ "agg_func_opt ::=",
|
|
/* 355 */ "agg_func_opt ::= AGGREGATE",
|
|
/* 356 */ "bufsize_opt ::=",
|
|
/* 357 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
|
|
/* 358 */ "language_opt ::=",
|
|
/* 359 */ "language_opt ::= LANGUAGE NK_STRING",
|
|
/* 360 */ "or_replace_opt ::=",
|
|
/* 361 */ "or_replace_opt ::= OR REPLACE",
|
|
/* 362 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
|
|
/* 363 */ "cmd ::= DROP VIEW exists_opt full_view_name",
|
|
/* 364 */ "full_view_name ::= view_name",
|
|
/* 365 */ "full_view_name ::= db_name NK_DOT view_name",
|
|
/* 366 */ "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",
|
|
/* 367 */ "cmd ::= DROP STREAM exists_opt stream_name",
|
|
/* 368 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
|
|
/* 369 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
|
|
/* 370 */ "col_list_opt ::=",
|
|
/* 371 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 372 */ "tag_def_or_ref_opt ::=",
|
|
/* 373 */ "tag_def_or_ref_opt ::= tags_def",
|
|
/* 374 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
|
|
/* 375 */ "stream_options ::=",
|
|
/* 376 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
|
|
/* 377 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
|
|
/* 378 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
|
|
/* 379 */ "stream_options ::= stream_options WATERMARK duration_literal",
|
|
/* 380 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
|
|
/* 381 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
|
|
/* 382 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
|
|
/* 383 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
|
|
/* 384 */ "subtable_opt ::=",
|
|
/* 385 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
|
|
/* 386 */ "ignore_opt ::=",
|
|
/* 387 */ "ignore_opt ::= IGNORE UNTREATED",
|
|
/* 388 */ "cmd ::= KILL CONNECTION NK_INTEGER",
|
|
/* 389 */ "cmd ::= KILL QUERY NK_STRING",
|
|
/* 390 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
|
|
/* 391 */ "cmd ::= KILL COMPACT NK_INTEGER",
|
|
/* 392 */ "cmd ::= BALANCE VGROUP",
|
|
/* 393 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
|
|
/* 394 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
|
|
/* 395 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
|
|
/* 396 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
|
|
/* 397 */ "on_vgroup_id ::=",
|
|
/* 398 */ "on_vgroup_id ::= ON NK_INTEGER",
|
|
/* 399 */ "dnode_list ::= DNODE NK_INTEGER",
|
|
/* 400 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
|
|
/* 401 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
|
|
/* 402 */ "cmd ::= query_or_subquery",
|
|
/* 403 */ "cmd ::= insert_query",
|
|
/* 404 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
|
|
/* 405 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
|
|
/* 406 */ "literal ::= NK_INTEGER",
|
|
/* 407 */ "literal ::= NK_FLOAT",
|
|
/* 408 */ "literal ::= NK_STRING",
|
|
/* 409 */ "literal ::= NK_BOOL",
|
|
/* 410 */ "literal ::= TIMESTAMP NK_STRING",
|
|
/* 411 */ "literal ::= duration_literal",
|
|
/* 412 */ "literal ::= NULL",
|
|
/* 413 */ "literal ::= NK_QUESTION",
|
|
/* 414 */ "duration_literal ::= NK_VARIABLE",
|
|
/* 415 */ "signed ::= NK_INTEGER",
|
|
/* 416 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
/* 417 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
/* 418 */ "signed ::= NK_FLOAT",
|
|
/* 419 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
/* 420 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
/* 421 */ "signed_literal ::= signed",
|
|
/* 422 */ "signed_literal ::= NK_STRING",
|
|
/* 423 */ "signed_literal ::= NK_BOOL",
|
|
/* 424 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
/* 425 */ "signed_literal ::= duration_literal",
|
|
/* 426 */ "signed_literal ::= NULL",
|
|
/* 427 */ "signed_literal ::= literal_func",
|
|
/* 428 */ "signed_literal ::= NK_QUESTION",
|
|
/* 429 */ "literal_list ::= signed_literal",
|
|
/* 430 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
/* 431 */ "db_name ::= NK_ID",
|
|
/* 432 */ "table_name ::= NK_ID",
|
|
/* 433 */ "column_name ::= NK_ID",
|
|
/* 434 */ "function_name ::= NK_ID",
|
|
/* 435 */ "view_name ::= NK_ID",
|
|
/* 436 */ "table_alias ::= NK_ID",
|
|
/* 437 */ "column_alias ::= NK_ID",
|
|
/* 438 */ "column_alias ::= NK_ALIAS",
|
|
/* 439 */ "user_name ::= NK_ID",
|
|
/* 440 */ "topic_name ::= NK_ID",
|
|
/* 441 */ "stream_name ::= NK_ID",
|
|
/* 442 */ "cgroup_name ::= NK_ID",
|
|
/* 443 */ "index_name ::= NK_ID",
|
|
/* 444 */ "expr_or_subquery ::= expression",
|
|
/* 445 */ "expression ::= literal",
|
|
/* 446 */ "expression ::= pseudo_column",
|
|
/* 447 */ "expression ::= column_reference",
|
|
/* 448 */ "expression ::= function_expression",
|
|
/* 449 */ "expression ::= case_when_expression",
|
|
/* 450 */ "expression ::= NK_LP expression NK_RP",
|
|
/* 451 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
/* 452 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
/* 453 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
/* 454 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
/* 455 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
/* 456 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
/* 457 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
/* 458 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
/* 459 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
/* 460 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
/* 461 */ "expression_list ::= expr_or_subquery",
|
|
/* 462 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
/* 463 */ "column_reference ::= column_name",
|
|
/* 464 */ "column_reference ::= table_name NK_DOT column_name",
|
|
/* 465 */ "column_reference ::= NK_ALIAS",
|
|
/* 466 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
|
|
/* 467 */ "pseudo_column ::= ROWTS",
|
|
/* 468 */ "pseudo_column ::= TBNAME",
|
|
/* 469 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
/* 470 */ "pseudo_column ::= QSTART",
|
|
/* 471 */ "pseudo_column ::= QEND",
|
|
/* 472 */ "pseudo_column ::= QDURATION",
|
|
/* 473 */ "pseudo_column ::= WSTART",
|
|
/* 474 */ "pseudo_column ::= WEND",
|
|
/* 475 */ "pseudo_column ::= WDURATION",
|
|
/* 476 */ "pseudo_column ::= IROWTS",
|
|
/* 477 */ "pseudo_column ::= ISFILLED",
|
|
/* 478 */ "pseudo_column ::= QTAGS",
|
|
/* 479 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
/* 480 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
/* 481 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
/* 482 */ "function_expression ::= literal_func",
|
|
/* 483 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
/* 484 */ "literal_func ::= NOW",
|
|
/* 485 */ "noarg_func ::= NOW",
|
|
/* 486 */ "noarg_func ::= TODAY",
|
|
/* 487 */ "noarg_func ::= TIMEZONE",
|
|
/* 488 */ "noarg_func ::= DATABASE",
|
|
/* 489 */ "noarg_func ::= CLIENT_VERSION",
|
|
/* 490 */ "noarg_func ::= SERVER_VERSION",
|
|
/* 491 */ "noarg_func ::= SERVER_STATUS",
|
|
/* 492 */ "noarg_func ::= CURRENT_USER",
|
|
/* 493 */ "noarg_func ::= USER",
|
|
/* 494 */ "star_func ::= COUNT",
|
|
/* 495 */ "star_func ::= FIRST",
|
|
/* 496 */ "star_func ::= LAST",
|
|
/* 497 */ "star_func ::= LAST_ROW",
|
|
/* 498 */ "star_func_para_list ::= NK_STAR",
|
|
/* 499 */ "star_func_para_list ::= other_para_list",
|
|
/* 500 */ "other_para_list ::= star_func_para",
|
|
/* 501 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
/* 502 */ "star_func_para ::= expr_or_subquery",
|
|
/* 503 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
/* 504 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
/* 505 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
/* 506 */ "when_then_list ::= when_then_expr",
|
|
/* 507 */ "when_then_list ::= when_then_list when_then_expr",
|
|
/* 508 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
/* 509 */ "case_when_else_opt ::=",
|
|
/* 510 */ "case_when_else_opt ::= ELSE common_expression",
|
|
/* 511 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
/* 512 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 513 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 514 */ "predicate ::= expr_or_subquery IS NULL",
|
|
/* 515 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
/* 516 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
/* 517 */ "compare_op ::= NK_LT",
|
|
/* 518 */ "compare_op ::= NK_GT",
|
|
/* 519 */ "compare_op ::= NK_LE",
|
|
/* 520 */ "compare_op ::= NK_GE",
|
|
/* 521 */ "compare_op ::= NK_NE",
|
|
/* 522 */ "compare_op ::= NK_EQ",
|
|
/* 523 */ "compare_op ::= LIKE",
|
|
/* 524 */ "compare_op ::= NOT LIKE",
|
|
/* 525 */ "compare_op ::= MATCH",
|
|
/* 526 */ "compare_op ::= NMATCH",
|
|
/* 527 */ "compare_op ::= CONTAINS",
|
|
/* 528 */ "in_op ::= IN",
|
|
/* 529 */ "in_op ::= NOT IN",
|
|
/* 530 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
/* 531 */ "boolean_value_expression ::= boolean_primary",
|
|
/* 532 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
/* 533 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
/* 534 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
/* 535 */ "boolean_primary ::= predicate",
|
|
/* 536 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
/* 537 */ "common_expression ::= expr_or_subquery",
|
|
/* 538 */ "common_expression ::= boolean_value_expression",
|
|
/* 539 */ "from_clause_opt ::=",
|
|
/* 540 */ "from_clause_opt ::= FROM table_reference_list",
|
|
/* 541 */ "table_reference_list ::= table_reference",
|
|
/* 542 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
/* 543 */ "table_reference ::= table_primary",
|
|
/* 544 */ "table_reference ::= joined_table",
|
|
/* 545 */ "table_primary ::= table_name alias_opt",
|
|
/* 546 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
/* 547 */ "table_primary ::= subquery alias_opt",
|
|
/* 548 */ "table_primary ::= parenthesized_joined_table",
|
|
/* 549 */ "alias_opt ::=",
|
|
/* 550 */ "alias_opt ::= table_alias",
|
|
/* 551 */ "alias_opt ::= AS table_alias",
|
|
/* 552 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
/* 553 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
/* 554 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
|
|
/* 555 */ "join_type ::=",
|
|
/* 556 */ "join_type ::= INNER",
|
|
/* 557 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
|
|
/* 558 */ "hint_list ::=",
|
|
/* 559 */ "hint_list ::= NK_HINT",
|
|
/* 560 */ "tag_mode_opt ::=",
|
|
/* 561 */ "tag_mode_opt ::= TAGS",
|
|
/* 562 */ "set_quantifier_opt ::=",
|
|
/* 563 */ "set_quantifier_opt ::= DISTINCT",
|
|
/* 564 */ "set_quantifier_opt ::= ALL",
|
|
/* 565 */ "select_list ::= select_item",
|
|
/* 566 */ "select_list ::= select_list NK_COMMA select_item",
|
|
/* 567 */ "select_item ::= NK_STAR",
|
|
/* 568 */ "select_item ::= common_expression",
|
|
/* 569 */ "select_item ::= common_expression column_alias",
|
|
/* 570 */ "select_item ::= common_expression AS column_alias",
|
|
/* 571 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
/* 572 */ "where_clause_opt ::=",
|
|
/* 573 */ "where_clause_opt ::= WHERE search_condition",
|
|
/* 574 */ "partition_by_clause_opt ::=",
|
|
/* 575 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
/* 576 */ "partition_list ::= partition_item",
|
|
/* 577 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
/* 578 */ "partition_item ::= expr_or_subquery",
|
|
/* 579 */ "partition_item ::= expr_or_subquery column_alias",
|
|
/* 580 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
/* 581 */ "twindow_clause_opt ::=",
|
|
/* 582 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
|
|
/* 583 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
/* 584 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 585 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 586 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
|
/* 587 */ "sliding_opt ::=",
|
|
/* 588 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
|
|
/* 589 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
|
|
/* 590 */ "interval_sliding_duration_literal ::= NK_STRING",
|
|
/* 591 */ "interval_sliding_duration_literal ::= NK_INTEGER",
|
|
/* 592 */ "fill_opt ::=",
|
|
/* 593 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
/* 594 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
/* 595 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
/* 596 */ "fill_mode ::= NONE",
|
|
/* 597 */ "fill_mode ::= PREV",
|
|
/* 598 */ "fill_mode ::= NULL",
|
|
/* 599 */ "fill_mode ::= NULL_F",
|
|
/* 600 */ "fill_mode ::= LINEAR",
|
|
/* 601 */ "fill_mode ::= NEXT",
|
|
/* 602 */ "group_by_clause_opt ::=",
|
|
/* 603 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
/* 604 */ "group_by_list ::= expr_or_subquery",
|
|
/* 605 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
/* 606 */ "having_clause_opt ::=",
|
|
/* 607 */ "having_clause_opt ::= HAVING search_condition",
|
|
/* 608 */ "range_opt ::=",
|
|
/* 609 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
/* 610 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
/* 611 */ "every_opt ::=",
|
|
/* 612 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
/* 613 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
/* 614 */ "query_simple ::= query_specification",
|
|
/* 615 */ "query_simple ::= union_query_expression",
|
|
/* 616 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
/* 617 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
/* 618 */ "query_simple_or_subquery ::= query_simple",
|
|
/* 619 */ "query_simple_or_subquery ::= subquery",
|
|
/* 620 */ "query_or_subquery ::= query_expression",
|
|
/* 621 */ "query_or_subquery ::= subquery",
|
|
/* 622 */ "order_by_clause_opt ::=",
|
|
/* 623 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
/* 624 */ "slimit_clause_opt ::=",
|
|
/* 625 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
/* 626 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
/* 627 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 628 */ "limit_clause_opt ::=",
|
|
/* 629 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
/* 630 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
/* 631 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 632 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
/* 633 */ "subquery ::= NK_LP subquery NK_RP",
|
|
/* 634 */ "search_condition ::= common_expression",
|
|
/* 635 */ "sort_specification_list ::= sort_specification",
|
|
/* 636 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
/* 637 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
/* 638 */ "ordering_specification_opt ::=",
|
|
/* 639 */ "ordering_specification_opt ::= ASC",
|
|
/* 640 */ "ordering_specification_opt ::= DESC",
|
|
/* 641 */ "null_ordering_opt ::=",
|
|
/* 642 */ "null_ordering_opt ::= NULLS FIRST",
|
|
/* 643 */ "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 347: /* cmd */
|
|
case 350: /* literal */
|
|
case 359: /* with_opt */
|
|
case 365: /* search_condition */
|
|
case 370: /* db_options */
|
|
case 372: /* alter_db_options */
|
|
case 374: /* start_opt */
|
|
case 375: /* end_opt */
|
|
case 379: /* signed */
|
|
case 381: /* retention */
|
|
case 382: /* full_table_name */
|
|
case 385: /* table_options */
|
|
case 389: /* alter_table_clause */
|
|
case 390: /* alter_table_options */
|
|
case 393: /* signed_literal */
|
|
case 394: /* create_subtable_clause */
|
|
case 397: /* drop_table_clause */
|
|
case 399: /* column_def */
|
|
case 403: /* duration_literal */
|
|
case 404: /* rollup_func_name */
|
|
case 406: /* col_name */
|
|
case 409: /* like_pattern_opt */
|
|
case 410: /* db_name_cond_opt */
|
|
case 411: /* table_name_cond */
|
|
case 412: /* from_db_opt */
|
|
case 415: /* tag_item */
|
|
case 417: /* index_options */
|
|
case 418: /* full_index_name */
|
|
case 421: /* sliding_opt */
|
|
case 422: /* sma_stream_opt */
|
|
case 423: /* func */
|
|
case 426: /* query_or_subquery */
|
|
case 427: /* where_clause_opt */
|
|
case 430: /* explain_options */
|
|
case 431: /* insert_query */
|
|
case 436: /* full_view_name */
|
|
case 439: /* stream_options */
|
|
case 442: /* subtable_opt */
|
|
case 444: /* expression */
|
|
case 447: /* literal_func */
|
|
case 450: /* expr_or_subquery */
|
|
case 451: /* pseudo_column */
|
|
case 452: /* column_reference */
|
|
case 453: /* function_expression */
|
|
case 454: /* case_when_expression */
|
|
case 459: /* star_func_para */
|
|
case 461: /* case_when_else_opt */
|
|
case 462: /* common_expression */
|
|
case 463: /* when_then_expr */
|
|
case 464: /* predicate */
|
|
case 467: /* in_predicate_value */
|
|
case 468: /* boolean_value_expression */
|
|
case 469: /* boolean_primary */
|
|
case 470: /* from_clause_opt */
|
|
case 471: /* table_reference_list */
|
|
case 472: /* table_reference */
|
|
case 473: /* table_primary */
|
|
case 474: /* joined_table */
|
|
case 476: /* subquery */
|
|
case 477: /* parenthesized_joined_table */
|
|
case 479: /* query_specification */
|
|
case 485: /* range_opt */
|
|
case 486: /* every_opt */
|
|
case 487: /* fill_opt */
|
|
case 488: /* twindow_clause_opt */
|
|
case 490: /* having_clause_opt */
|
|
case 491: /* select_item */
|
|
case 493: /* partition_item */
|
|
case 494: /* interval_sliding_duration_literal */
|
|
case 497: /* query_expression */
|
|
case 498: /* query_simple */
|
|
case 500: /* slimit_clause_opt */
|
|
case 501: /* limit_clause_opt */
|
|
case 502: /* union_query_expression */
|
|
case 503: /* query_simple_or_subquery */
|
|
case 505: /* sort_specification */
|
|
{
|
|
nodesDestroyNode((yypminor->yy232));
|
|
}
|
|
break;
|
|
case 348: /* account_options */
|
|
case 349: /* alter_account_options */
|
|
case 351: /* alter_account_option */
|
|
case 373: /* speed_opt */
|
|
case 425: /* with_meta */
|
|
case 434: /* bufsize_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 352: /* ip_range_list */
|
|
case 353: /* white_list */
|
|
case 354: /* white_list_opt */
|
|
case 376: /* integer_list */
|
|
case 377: /* variable_list */
|
|
case 378: /* retention_list */
|
|
case 383: /* column_def_list */
|
|
case 384: /* tags_def_opt */
|
|
case 386: /* multi_create_clause */
|
|
case 387: /* tags_def */
|
|
case 388: /* multi_drop_clause */
|
|
case 395: /* specific_cols_opt */
|
|
case 396: /* expression_list */
|
|
case 398: /* col_name_list */
|
|
case 400: /* duration_list */
|
|
case 401: /* rollup_func_list */
|
|
case 413: /* tag_list_opt */
|
|
case 420: /* func_list */
|
|
case 440: /* col_list_opt */
|
|
case 441: /* tag_def_or_ref_opt */
|
|
case 446: /* dnode_list */
|
|
case 448: /* literal_list */
|
|
case 456: /* star_func_para_list */
|
|
case 458: /* other_para_list */
|
|
case 460: /* when_then_list */
|
|
case 480: /* hint_list */
|
|
case 483: /* select_list */
|
|
case 484: /* partition_by_clause_opt */
|
|
case 489: /* group_by_clause_opt */
|
|
case 492: /* partition_list */
|
|
case 496: /* group_by_list */
|
|
case 499: /* order_by_clause_opt */
|
|
case 504: /* sort_specification_list */
|
|
{
|
|
nodesDestroyList((yypminor->yy88));
|
|
}
|
|
break;
|
|
case 355: /* user_name */
|
|
case 362: /* db_name */
|
|
case 363: /* table_name */
|
|
case 364: /* topic_name */
|
|
case 366: /* dnode_endpoint */
|
|
case 391: /* column_name */
|
|
case 405: /* function_name */
|
|
case 416: /* column_alias */
|
|
case 419: /* index_name */
|
|
case 424: /* sma_func_name */
|
|
case 428: /* cgroup_name */
|
|
case 435: /* language_opt */
|
|
case 437: /* view_name */
|
|
case 438: /* stream_name */
|
|
case 445: /* on_vgroup_id */
|
|
case 449: /* table_alias */
|
|
case 455: /* star_func */
|
|
case 457: /* noarg_func */
|
|
case 475: /* alias_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 356: /* sysinfo_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 357: /* privileges */
|
|
case 360: /* priv_type_list */
|
|
case 361: /* priv_type */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 358: /* priv_level */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 367: /* force_opt */
|
|
case 368: /* unsafe_opt */
|
|
case 369: /* not_exists_opt */
|
|
case 371: /* exists_opt */
|
|
case 429: /* analyze_opt */
|
|
case 432: /* or_replace_opt */
|
|
case 433: /* agg_func_opt */
|
|
case 443: /* ignore_opt */
|
|
case 481: /* set_quantifier_opt */
|
|
case 482: /* tag_mode_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 380: /* alter_db_option */
|
|
case 402: /* alter_table_option */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 392: /* type_name */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 407: /* db_kind_opt */
|
|
case 414: /* table_kind */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 408: /* table_kind_db_name_cond_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 465: /* compare_op */
|
|
case 466: /* in_op */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 478: /* join_type */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 495: /* fill_mode */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 506: /* ordering_specification_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 507: /* null_ordering_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
/********* End destructor definitions *****************************************/
|
|
default: break; /* If no destructor action specified: do nothing */
|
|
}
|
|
}
|
|
|
|
/*
|
|
** Pop the parser's stack once.
|
|
**
|
|
** If there is a destructor routine associated with the token which
|
|
** is popped from the stack, then call it.
|
|
*/
|
|
static void yy_pop_parser_stack(yyParser *pParser){
|
|
yyStackEntry *yytos;
|
|
assert( pParser->yytos!=0 );
|
|
assert( pParser->yytos > pParser->yystack );
|
|
yytos = pParser->yytos--;
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sPopping %s\n",
|
|
yyTracePrompt,
|
|
yyTokenName[yytos->major]);
|
|
}
|
|
#endif
|
|
yy_destructor(pParser, yytos->major, &yytos->minor);
|
|
}
|
|
|
|
/*
|
|
** Clear all secondary memory allocations from the parser
|
|
*/
|
|
void ParseFinalize(void *p){
|
|
yyParser *pParser = (yyParser*)p;
|
|
while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
|
|
#if YYSTACKDEPTH<=0
|
|
if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
|
|
#endif
|
|
}
|
|
|
|
#ifndef Parse_ENGINEALWAYSONSTACK
|
|
/*
|
|
** Deallocate and destroy a parser. Destructors are called for
|
|
** all stack elements before shutting the parser down.
|
|
**
|
|
** If the YYPARSEFREENEVERNULL macro exists (for example because it
|
|
** is defined in a %include section of the input grammar) then it is
|
|
** assumed that the input pointer is never NULL.
|
|
*/
|
|
void ParseFree(
|
|
void *p, /* The parser to be deleted */
|
|
void (*freeProc)(void*) /* Function used to reclaim memory */
|
|
){
|
|
#ifndef YYPARSEFREENEVERNULL
|
|
if( p==0 ) return;
|
|
#endif
|
|
ParseFinalize(p);
|
|
(*freeProc)(p);
|
|
}
|
|
#endif /* Parse_ENGINEALWAYSONSTACK */
|
|
|
|
/*
|
|
** Return the peak depth of the stack for a parser.
|
|
*/
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
int ParseStackPeak(void *p){
|
|
yyParser *pParser = (yyParser*)p;
|
|
return pParser->yyhwm;
|
|
}
|
|
#endif
|
|
|
|
/* This array of booleans keeps track of the parser statement
|
|
** coverage. The element yycoverage[X][Y] is set when the parser
|
|
** is in state X and has a lookahead token Y. In a well-tested
|
|
** systems, every element of this matrix should end up being set.
|
|
*/
|
|
#if defined(YYCOVERAGE)
|
|
static unsigned char yycoverage[YYNSTATE][YYNTOKEN];
|
|
#endif
|
|
|
|
/*
|
|
** Write into out a description of every state/lookahead combination that
|
|
**
|
|
** (1) has not been used by the parser, and
|
|
** (2) is not a syntax error.
|
|
**
|
|
** Return the number of missed state/lookahead combinations.
|
|
*/
|
|
#if defined(YYCOVERAGE)
|
|
int ParseCoverage(FILE *out){
|
|
int stateno, iLookAhead, i;
|
|
int nMissed = 0;
|
|
for(stateno=0; stateno<YYNSTATE; stateno++){
|
|
i = yy_shift_ofst[stateno];
|
|
for(iLookAhead=0; iLookAhead<YYNTOKEN; iLookAhead++){
|
|
if( yy_lookahead[i+iLookAhead]!=iLookAhead ) continue;
|
|
if( yycoverage[stateno][iLookAhead]==0 ) nMissed++;
|
|
if( out ){
|
|
fprintf(out,"State %d lookahead %s %s\n", stateno,
|
|
yyTokenName[iLookAhead],
|
|
yycoverage[stateno][iLookAhead] ? "ok" : "missed");
|
|
}
|
|
}
|
|
}
|
|
return nMissed;
|
|
}
|
|
#endif
|
|
|
|
/*
|
|
** Find the appropriate action for a parser given the terminal
|
|
** look-ahead token iLookAhead.
|
|
*/
|
|
static YYACTIONTYPE yy_find_shift_action(
|
|
YYCODETYPE iLookAhead, /* The look-ahead token */
|
|
YYACTIONTYPE stateno /* Current state number */
|
|
){
|
|
int i;
|
|
|
|
if( stateno>YY_MAX_SHIFT ) return stateno;
|
|
assert( stateno <= YY_SHIFT_COUNT );
|
|
#if defined(YYCOVERAGE)
|
|
yycoverage[stateno][iLookAhead] = 1;
|
|
#endif
|
|
do{
|
|
i = yy_shift_ofst[stateno];
|
|
assert( i>=0 );
|
|
assert( i<=YY_ACTTAB_COUNT );
|
|
assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD );
|
|
assert( iLookAhead!=YYNOCODE );
|
|
assert( iLookAhead < YYNTOKEN );
|
|
i += iLookAhead;
|
|
assert( i<(int)YY_NLOOKAHEAD );
|
|
if( yy_lookahead[i]!=iLookAhead ){
|
|
#ifdef YYFALLBACK
|
|
YYCODETYPE iFallback; /* Fallback token */
|
|
assert( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) );
|
|
iFallback = yyFallback[iLookAhead];
|
|
if( iFallback!=0 ){
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
|
|
yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
|
|
}
|
|
#endif
|
|
assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
|
|
iLookAhead = iFallback;
|
|
continue;
|
|
}
|
|
#endif
|
|
#ifdef YYWILDCARD
|
|
{
|
|
int j = i - iLookAhead + YYWILDCARD;
|
|
assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) );
|
|
if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
|
|
yyTracePrompt, yyTokenName[iLookAhead],
|
|
yyTokenName[YYWILDCARD]);
|
|
}
|
|
#endif /* NDEBUG */
|
|
return yy_action[j];
|
|
}
|
|
}
|
|
#endif /* YYWILDCARD */
|
|
return yy_default[stateno];
|
|
}else{
|
|
assert( i>=0 && i<sizeof(yy_action)/sizeof(yy_action[0]) );
|
|
return yy_action[i];
|
|
}
|
|
}while(1);
|
|
}
|
|
|
|
/*
|
|
** Find the appropriate action for a parser given the non-terminal
|
|
** look-ahead token iLookAhead.
|
|
*/
|
|
static YYACTIONTYPE yy_find_reduce_action(
|
|
YYACTIONTYPE stateno, /* Current state number */
|
|
YYCODETYPE iLookAhead /* The look-ahead token */
|
|
){
|
|
int i;
|
|
#ifdef YYERRORSYMBOL
|
|
if( stateno>YY_REDUCE_COUNT ){
|
|
return yy_default[stateno];
|
|
}
|
|
#else
|
|
assert( stateno<=YY_REDUCE_COUNT );
|
|
#endif
|
|
i = yy_reduce_ofst[stateno];
|
|
assert( iLookAhead!=YYNOCODE );
|
|
i += iLookAhead;
|
|
#ifdef YYERRORSYMBOL
|
|
if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){
|
|
return yy_default[stateno];
|
|
}
|
|
#else
|
|
assert( i>=0 && i<YY_ACTTAB_COUNT );
|
|
assert( yy_lookahead[i]==iLookAhead );
|
|
#endif
|
|
return yy_action[i];
|
|
}
|
|
|
|
/*
|
|
** The following routine is called if the stack overflows.
|
|
*/
|
|
static void yyStackOverflow(yyParser *yypParser){
|
|
ParseARG_FETCH
|
|
ParseCTX_FETCH
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
|
|
}
|
|
#endif
|
|
while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
|
|
/* Here code is inserted which will execute if the parser
|
|
** stack every overflows */
|
|
/******** Begin %stack_overflow code ******************************************/
|
|
/******** End %stack_overflow code ********************************************/
|
|
ParseARG_STORE /* Suppress warning about unused %extra_argument var */
|
|
ParseCTX_STORE
|
|
}
|
|
|
|
/*
|
|
** Print tracing information for a SHIFT action
|
|
*/
|
|
#ifndef NDEBUG
|
|
static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
|
|
if( yyTraceFILE ){
|
|
if( yyNewState<YYNSTATE ){
|
|
fprintf(yyTraceFILE,"%s%s '%s', go to state %d\n",
|
|
yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
|
|
yyNewState);
|
|
}else{
|
|
fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n",
|
|
yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
|
|
yyNewState - YY_MIN_REDUCE);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
# define yyTraceShift(X,Y,Z)
|
|
#endif
|
|
|
|
/*
|
|
** Perform a shift action.
|
|
*/
|
|
static void yy_shift(
|
|
yyParser *yypParser, /* The parser to be shifted */
|
|
YYACTIONTYPE yyNewState, /* The new state to shift in */
|
|
YYCODETYPE yyMajor, /* The major token to shift in */
|
|
ParseTOKENTYPE yyMinor /* The minor token to shift in */
|
|
){
|
|
yyStackEntry *yytos;
|
|
yypParser->yytos++;
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
|
|
yypParser->yyhwm++;
|
|
assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) );
|
|
}
|
|
#endif
|
|
#if YYSTACKDEPTH>0
|
|
if( yypParser->yytos>yypParser->yystackEnd ){
|
|
yypParser->yytos--;
|
|
yyStackOverflow(yypParser);
|
|
return;
|
|
}
|
|
#else
|
|
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
|
|
if( yyGrowStack(yypParser) ){
|
|
yypParser->yytos--;
|
|
yyStackOverflow(yypParser);
|
|
return;
|
|
}
|
|
}
|
|
#endif
|
|
if( yyNewState > YY_MAX_SHIFT ){
|
|
yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE;
|
|
}
|
|
yytos = yypParser->yytos;
|
|
yytos->stateno = yyNewState;
|
|
yytos->major = yyMajor;
|
|
yytos->minor.yy0 = yyMinor;
|
|
yyTraceShift(yypParser, yyNewState, "Shift");
|
|
}
|
|
|
|
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
|
|
** of that rule */
|
|
static const YYCODETYPE yyRuleInfoLhs[] = {
|
|
347, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
347, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
348, /* (2) account_options ::= */
|
|
348, /* (3) account_options ::= account_options PPS literal */
|
|
348, /* (4) account_options ::= account_options TSERIES literal */
|
|
348, /* (5) account_options ::= account_options STORAGE literal */
|
|
348, /* (6) account_options ::= account_options STREAMS literal */
|
|
348, /* (7) account_options ::= account_options QTIME literal */
|
|
348, /* (8) account_options ::= account_options DBS literal */
|
|
348, /* (9) account_options ::= account_options USERS literal */
|
|
348, /* (10) account_options ::= account_options CONNS literal */
|
|
348, /* (11) account_options ::= account_options STATE literal */
|
|
349, /* (12) alter_account_options ::= alter_account_option */
|
|
349, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
351, /* (14) alter_account_option ::= PASS literal */
|
|
351, /* (15) alter_account_option ::= PPS literal */
|
|
351, /* (16) alter_account_option ::= TSERIES literal */
|
|
351, /* (17) alter_account_option ::= STORAGE literal */
|
|
351, /* (18) alter_account_option ::= STREAMS literal */
|
|
351, /* (19) alter_account_option ::= QTIME literal */
|
|
351, /* (20) alter_account_option ::= DBS literal */
|
|
351, /* (21) alter_account_option ::= USERS literal */
|
|
351, /* (22) alter_account_option ::= CONNS literal */
|
|
351, /* (23) alter_account_option ::= STATE literal */
|
|
352, /* (24) ip_range_list ::= NK_STRING */
|
|
352, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
353, /* (26) white_list ::= HOST ip_range_list */
|
|
354, /* (27) white_list_opt ::= */
|
|
354, /* (28) white_list_opt ::= white_list */
|
|
347, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
347, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
347, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
347, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
347, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
347, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
347, /* (35) cmd ::= DROP USER user_name */
|
|
356, /* (36) sysinfo_opt ::= */
|
|
356, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
347, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
347, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
357, /* (40) privileges ::= ALL */
|
|
357, /* (41) privileges ::= priv_type_list */
|
|
357, /* (42) privileges ::= SUBSCRIBE */
|
|
360, /* (43) priv_type_list ::= priv_type */
|
|
360, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
361, /* (45) priv_type ::= READ */
|
|
361, /* (46) priv_type ::= WRITE */
|
|
361, /* (47) priv_type ::= ALTER */
|
|
358, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
358, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
|
|
358, /* (50) priv_level ::= db_name NK_DOT table_name */
|
|
358, /* (51) priv_level ::= topic_name */
|
|
359, /* (52) with_opt ::= */
|
|
359, /* (53) with_opt ::= WITH search_condition */
|
|
347, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
|
|
347, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
347, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
347, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
347, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
347, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
347, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
347, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
347, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
347, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
347, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
366, /* (65) dnode_endpoint ::= NK_STRING */
|
|
366, /* (66) dnode_endpoint ::= NK_ID */
|
|
366, /* (67) dnode_endpoint ::= NK_IPTOKEN */
|
|
367, /* (68) force_opt ::= */
|
|
367, /* (69) force_opt ::= FORCE */
|
|
368, /* (70) unsafe_opt ::= UNSAFE */
|
|
347, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
|
|
347, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
347, /* (73) cmd ::= ALTER LOCAL NK_STRING */
|
|
347, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
347, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
347, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
347, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
347, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
347, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
347, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
347, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
347, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
347, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
347, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
347, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
347, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
347, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
|
|
347, /* (88) cmd ::= USE db_name */
|
|
347, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
347, /* (90) cmd ::= FLUSH DATABASE db_name */
|
|
347, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
347, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
369, /* (93) not_exists_opt ::= IF NOT EXISTS */
|
|
369, /* (94) not_exists_opt ::= */
|
|
371, /* (95) exists_opt ::= IF EXISTS */
|
|
371, /* (96) exists_opt ::= */
|
|
370, /* (97) db_options ::= */
|
|
370, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
|
|
370, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
370, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
370, /* (101) db_options ::= db_options COMP NK_INTEGER */
|
|
370, /* (102) db_options ::= db_options DURATION NK_INTEGER */
|
|
370, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
|
|
370, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
370, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
|
|
370, /* (106) db_options ::= db_options KEEP integer_list */
|
|
370, /* (107) db_options ::= db_options KEEP variable_list */
|
|
370, /* (108) db_options ::= db_options PAGES NK_INTEGER */
|
|
370, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
370, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
370, /* (111) db_options ::= db_options PRECISION NK_STRING */
|
|
370, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
|
|
370, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
370, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
370, /* (115) db_options ::= db_options RETENTIONS retention_list */
|
|
370, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
370, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
370, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
370, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
370, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
370, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
370, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
370, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
370, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
370, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
370, /* (126) db_options ::= db_options TABLE_PREFIX signed */
|
|
370, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
|
|
370, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
372, /* (129) alter_db_options ::= alter_db_option */
|
|
372, /* (130) alter_db_options ::= alter_db_options alter_db_option */
|
|
380, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
|
|
380, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
380, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
380, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
380, /* (135) alter_db_option ::= KEEP integer_list */
|
|
380, /* (136) alter_db_option ::= KEEP variable_list */
|
|
380, /* (137) alter_db_option ::= PAGES NK_INTEGER */
|
|
380, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
|
|
380, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
380, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
380, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
|
|
380, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
380, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
380, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
380, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
380, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
376, /* (147) integer_list ::= NK_INTEGER */
|
|
376, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
377, /* (149) variable_list ::= NK_VARIABLE */
|
|
377, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
378, /* (151) retention_list ::= retention */
|
|
378, /* (152) retention_list ::= retention_list NK_COMMA retention */
|
|
381, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
381, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
373, /* (155) speed_opt ::= */
|
|
373, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
374, /* (157) start_opt ::= */
|
|
374, /* (158) start_opt ::= START WITH NK_INTEGER */
|
|
374, /* (159) start_opt ::= START WITH NK_STRING */
|
|
374, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
375, /* (161) end_opt ::= */
|
|
375, /* (162) end_opt ::= END WITH NK_INTEGER */
|
|
375, /* (163) end_opt ::= END WITH NK_STRING */
|
|
375, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
347, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
347, /* (166) cmd ::= CREATE TABLE multi_create_clause */
|
|
347, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
347, /* (168) cmd ::= DROP TABLE multi_drop_clause */
|
|
347, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
347, /* (170) cmd ::= ALTER TABLE alter_table_clause */
|
|
347, /* (171) cmd ::= ALTER STABLE alter_table_clause */
|
|
389, /* (172) alter_table_clause ::= full_table_name alter_table_options */
|
|
389, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
389, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
389, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
389, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
389, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
389, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
389, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
389, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
389, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
386, /* (182) multi_create_clause ::= create_subtable_clause */
|
|
386, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
394, /* (184) 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 */
|
|
388, /* (185) multi_drop_clause ::= drop_table_clause */
|
|
388, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
397, /* (187) drop_table_clause ::= exists_opt full_table_name */
|
|
395, /* (188) specific_cols_opt ::= */
|
|
395, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
382, /* (190) full_table_name ::= table_name */
|
|
382, /* (191) full_table_name ::= db_name NK_DOT table_name */
|
|
383, /* (192) column_def_list ::= column_def */
|
|
383, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
399, /* (194) column_def ::= column_name type_name */
|
|
392, /* (195) type_name ::= BOOL */
|
|
392, /* (196) type_name ::= TINYINT */
|
|
392, /* (197) type_name ::= SMALLINT */
|
|
392, /* (198) type_name ::= INT */
|
|
392, /* (199) type_name ::= INTEGER */
|
|
392, /* (200) type_name ::= BIGINT */
|
|
392, /* (201) type_name ::= FLOAT */
|
|
392, /* (202) type_name ::= DOUBLE */
|
|
392, /* (203) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
392, /* (204) type_name ::= TIMESTAMP */
|
|
392, /* (205) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
392, /* (206) type_name ::= TINYINT UNSIGNED */
|
|
392, /* (207) type_name ::= SMALLINT UNSIGNED */
|
|
392, /* (208) type_name ::= INT UNSIGNED */
|
|
392, /* (209) type_name ::= BIGINT UNSIGNED */
|
|
392, /* (210) type_name ::= JSON */
|
|
392, /* (211) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
392, /* (212) type_name ::= MEDIUMBLOB */
|
|
392, /* (213) type_name ::= BLOB */
|
|
392, /* (214) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
392, /* (215) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
392, /* (216) type_name ::= DECIMAL */
|
|
392, /* (217) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
392, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
384, /* (219) tags_def_opt ::= */
|
|
384, /* (220) tags_def_opt ::= tags_def */
|
|
387, /* (221) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
385, /* (222) table_options ::= */
|
|
385, /* (223) table_options ::= table_options COMMENT NK_STRING */
|
|
385, /* (224) table_options ::= table_options MAX_DELAY duration_list */
|
|
385, /* (225) table_options ::= table_options WATERMARK duration_list */
|
|
385, /* (226) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
385, /* (227) table_options ::= table_options TTL NK_INTEGER */
|
|
385, /* (228) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
385, /* (229) table_options ::= table_options DELETE_MARK duration_list */
|
|
390, /* (230) alter_table_options ::= alter_table_option */
|
|
390, /* (231) alter_table_options ::= alter_table_options alter_table_option */
|
|
402, /* (232) alter_table_option ::= COMMENT NK_STRING */
|
|
402, /* (233) alter_table_option ::= TTL NK_INTEGER */
|
|
400, /* (234) duration_list ::= duration_literal */
|
|
400, /* (235) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
401, /* (236) rollup_func_list ::= rollup_func_name */
|
|
401, /* (237) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
404, /* (238) rollup_func_name ::= function_name */
|
|
404, /* (239) rollup_func_name ::= FIRST */
|
|
404, /* (240) rollup_func_name ::= LAST */
|
|
398, /* (241) col_name_list ::= col_name */
|
|
398, /* (242) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
406, /* (243) col_name ::= column_name */
|
|
347, /* (244) cmd ::= SHOW DNODES */
|
|
347, /* (245) cmd ::= SHOW USERS */
|
|
347, /* (246) cmd ::= SHOW USER PRIVILEGES */
|
|
347, /* (247) cmd ::= SHOW db_kind_opt DATABASES */
|
|
347, /* (248) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
347, /* (249) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
347, /* (250) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
347, /* (251) cmd ::= SHOW MNODES */
|
|
347, /* (252) cmd ::= SHOW QNODES */
|
|
347, /* (253) cmd ::= SHOW FUNCTIONS */
|
|
347, /* (254) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
347, /* (255) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
347, /* (256) cmd ::= SHOW STREAMS */
|
|
347, /* (257) cmd ::= SHOW ACCOUNTS */
|
|
347, /* (258) cmd ::= SHOW APPS */
|
|
347, /* (259) cmd ::= SHOW CONNECTIONS */
|
|
347, /* (260) cmd ::= SHOW LICENCES */
|
|
347, /* (261) cmd ::= SHOW GRANTS */
|
|
347, /* (262) cmd ::= SHOW CREATE DATABASE db_name */
|
|
347, /* (263) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
347, /* (264) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
347, /* (265) cmd ::= SHOW QUERIES */
|
|
347, /* (266) cmd ::= SHOW SCORES */
|
|
347, /* (267) cmd ::= SHOW TOPICS */
|
|
347, /* (268) cmd ::= SHOW VARIABLES */
|
|
347, /* (269) cmd ::= SHOW CLUSTER VARIABLES */
|
|
347, /* (270) cmd ::= SHOW LOCAL VARIABLES */
|
|
347, /* (271) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
347, /* (272) cmd ::= SHOW BNODES */
|
|
347, /* (273) cmd ::= SHOW SNODES */
|
|
347, /* (274) cmd ::= SHOW CLUSTER */
|
|
347, /* (275) cmd ::= SHOW TRANSACTIONS */
|
|
347, /* (276) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
347, /* (277) cmd ::= SHOW CONSUMERS */
|
|
347, /* (278) cmd ::= SHOW SUBSCRIPTIONS */
|
|
347, /* (279) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
347, /* (280) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
347, /* (281) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
347, /* (282) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
347, /* (283) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
347, /* (284) cmd ::= SHOW VNODES */
|
|
347, /* (285) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
347, /* (286) cmd ::= SHOW CLUSTER ALIVE */
|
|
347, /* (287) cmd ::= SHOW db_name_cond_opt VIEWS */
|
|
347, /* (288) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
347, /* (289) cmd ::= SHOW COMPACTS */
|
|
347, /* (290) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
408, /* (291) table_kind_db_name_cond_opt ::= */
|
|
408, /* (292) table_kind_db_name_cond_opt ::= table_kind */
|
|
408, /* (293) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
408, /* (294) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
414, /* (295) table_kind ::= NORMAL */
|
|
414, /* (296) table_kind ::= CHILD */
|
|
410, /* (297) db_name_cond_opt ::= */
|
|
410, /* (298) db_name_cond_opt ::= db_name NK_DOT */
|
|
409, /* (299) like_pattern_opt ::= */
|
|
409, /* (300) like_pattern_opt ::= LIKE NK_STRING */
|
|
411, /* (301) table_name_cond ::= table_name */
|
|
412, /* (302) from_db_opt ::= */
|
|
412, /* (303) from_db_opt ::= FROM db_name */
|
|
413, /* (304) tag_list_opt ::= */
|
|
413, /* (305) tag_list_opt ::= tag_item */
|
|
413, /* (306) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
415, /* (307) tag_item ::= TBNAME */
|
|
415, /* (308) tag_item ::= QTAGS */
|
|
415, /* (309) tag_item ::= column_name */
|
|
415, /* (310) tag_item ::= column_name column_alias */
|
|
415, /* (311) tag_item ::= column_name AS column_alias */
|
|
407, /* (312) db_kind_opt ::= */
|
|
407, /* (313) db_kind_opt ::= USER */
|
|
407, /* (314) db_kind_opt ::= SYSTEM */
|
|
347, /* (315) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
347, /* (316) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
347, /* (317) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
418, /* (318) full_index_name ::= index_name */
|
|
418, /* (319) full_index_name ::= db_name NK_DOT index_name */
|
|
417, /* (320) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
417, /* (321) 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 */
|
|
420, /* (322) func_list ::= func */
|
|
420, /* (323) func_list ::= func_list NK_COMMA func */
|
|
423, /* (324) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
424, /* (325) sma_func_name ::= function_name */
|
|
424, /* (326) sma_func_name ::= COUNT */
|
|
424, /* (327) sma_func_name ::= FIRST */
|
|
424, /* (328) sma_func_name ::= LAST */
|
|
424, /* (329) sma_func_name ::= LAST_ROW */
|
|
422, /* (330) sma_stream_opt ::= */
|
|
422, /* (331) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
422, /* (332) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
422, /* (333) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
425, /* (334) with_meta ::= AS */
|
|
425, /* (335) with_meta ::= WITH META AS */
|
|
425, /* (336) with_meta ::= ONLY META AS */
|
|
347, /* (337) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
347, /* (338) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
347, /* (339) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
347, /* (340) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
347, /* (341) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
347, /* (342) cmd ::= DESC full_table_name */
|
|
347, /* (343) cmd ::= DESCRIBE full_table_name */
|
|
347, /* (344) cmd ::= RESET QUERY CACHE */
|
|
347, /* (345) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
347, /* (346) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
429, /* (347) analyze_opt ::= */
|
|
429, /* (348) analyze_opt ::= ANALYZE */
|
|
430, /* (349) explain_options ::= */
|
|
430, /* (350) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
430, /* (351) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
347, /* (352) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
347, /* (353) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
433, /* (354) agg_func_opt ::= */
|
|
433, /* (355) agg_func_opt ::= AGGREGATE */
|
|
434, /* (356) bufsize_opt ::= */
|
|
434, /* (357) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
435, /* (358) language_opt ::= */
|
|
435, /* (359) language_opt ::= LANGUAGE NK_STRING */
|
|
432, /* (360) or_replace_opt ::= */
|
|
432, /* (361) or_replace_opt ::= OR REPLACE */
|
|
347, /* (362) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
347, /* (363) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
436, /* (364) full_view_name ::= view_name */
|
|
436, /* (365) full_view_name ::= db_name NK_DOT view_name */
|
|
347, /* (366) 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 */
|
|
347, /* (367) cmd ::= DROP STREAM exists_opt stream_name */
|
|
347, /* (368) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
347, /* (369) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
440, /* (370) col_list_opt ::= */
|
|
440, /* (371) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
441, /* (372) tag_def_or_ref_opt ::= */
|
|
441, /* (373) tag_def_or_ref_opt ::= tags_def */
|
|
441, /* (374) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
439, /* (375) stream_options ::= */
|
|
439, /* (376) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
439, /* (377) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
439, /* (378) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
439, /* (379) stream_options ::= stream_options WATERMARK duration_literal */
|
|
439, /* (380) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
439, /* (381) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
439, /* (382) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
439, /* (383) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
442, /* (384) subtable_opt ::= */
|
|
442, /* (385) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
443, /* (386) ignore_opt ::= */
|
|
443, /* (387) ignore_opt ::= IGNORE UNTREATED */
|
|
347, /* (388) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
347, /* (389) cmd ::= KILL QUERY NK_STRING */
|
|
347, /* (390) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
347, /* (391) cmd ::= KILL COMPACT NK_INTEGER */
|
|
347, /* (392) cmd ::= BALANCE VGROUP */
|
|
347, /* (393) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
347, /* (394) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
347, /* (395) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
347, /* (396) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
445, /* (397) on_vgroup_id ::= */
|
|
445, /* (398) on_vgroup_id ::= ON NK_INTEGER */
|
|
446, /* (399) dnode_list ::= DNODE NK_INTEGER */
|
|
446, /* (400) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
347, /* (401) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
347, /* (402) cmd ::= query_or_subquery */
|
|
347, /* (403) cmd ::= insert_query */
|
|
431, /* (404) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
431, /* (405) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
350, /* (406) literal ::= NK_INTEGER */
|
|
350, /* (407) literal ::= NK_FLOAT */
|
|
350, /* (408) literal ::= NK_STRING */
|
|
350, /* (409) literal ::= NK_BOOL */
|
|
350, /* (410) literal ::= TIMESTAMP NK_STRING */
|
|
350, /* (411) literal ::= duration_literal */
|
|
350, /* (412) literal ::= NULL */
|
|
350, /* (413) literal ::= NK_QUESTION */
|
|
403, /* (414) duration_literal ::= NK_VARIABLE */
|
|
379, /* (415) signed ::= NK_INTEGER */
|
|
379, /* (416) signed ::= NK_PLUS NK_INTEGER */
|
|
379, /* (417) signed ::= NK_MINUS NK_INTEGER */
|
|
379, /* (418) signed ::= NK_FLOAT */
|
|
379, /* (419) signed ::= NK_PLUS NK_FLOAT */
|
|
379, /* (420) signed ::= NK_MINUS NK_FLOAT */
|
|
393, /* (421) signed_literal ::= signed */
|
|
393, /* (422) signed_literal ::= NK_STRING */
|
|
393, /* (423) signed_literal ::= NK_BOOL */
|
|
393, /* (424) signed_literal ::= TIMESTAMP NK_STRING */
|
|
393, /* (425) signed_literal ::= duration_literal */
|
|
393, /* (426) signed_literal ::= NULL */
|
|
393, /* (427) signed_literal ::= literal_func */
|
|
393, /* (428) signed_literal ::= NK_QUESTION */
|
|
448, /* (429) literal_list ::= signed_literal */
|
|
448, /* (430) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
362, /* (431) db_name ::= NK_ID */
|
|
363, /* (432) table_name ::= NK_ID */
|
|
391, /* (433) column_name ::= NK_ID */
|
|
405, /* (434) function_name ::= NK_ID */
|
|
437, /* (435) view_name ::= NK_ID */
|
|
449, /* (436) table_alias ::= NK_ID */
|
|
416, /* (437) column_alias ::= NK_ID */
|
|
416, /* (438) column_alias ::= NK_ALIAS */
|
|
355, /* (439) user_name ::= NK_ID */
|
|
364, /* (440) topic_name ::= NK_ID */
|
|
438, /* (441) stream_name ::= NK_ID */
|
|
428, /* (442) cgroup_name ::= NK_ID */
|
|
419, /* (443) index_name ::= NK_ID */
|
|
450, /* (444) expr_or_subquery ::= expression */
|
|
444, /* (445) expression ::= literal */
|
|
444, /* (446) expression ::= pseudo_column */
|
|
444, /* (447) expression ::= column_reference */
|
|
444, /* (448) expression ::= function_expression */
|
|
444, /* (449) expression ::= case_when_expression */
|
|
444, /* (450) expression ::= NK_LP expression NK_RP */
|
|
444, /* (451) expression ::= NK_PLUS expr_or_subquery */
|
|
444, /* (452) expression ::= NK_MINUS expr_or_subquery */
|
|
444, /* (453) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
444, /* (454) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
444, /* (455) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
444, /* (456) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
444, /* (457) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
444, /* (458) expression ::= column_reference NK_ARROW NK_STRING */
|
|
444, /* (459) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
444, /* (460) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
396, /* (461) expression_list ::= expr_or_subquery */
|
|
396, /* (462) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
452, /* (463) column_reference ::= column_name */
|
|
452, /* (464) column_reference ::= table_name NK_DOT column_name */
|
|
452, /* (465) column_reference ::= NK_ALIAS */
|
|
452, /* (466) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
451, /* (467) pseudo_column ::= ROWTS */
|
|
451, /* (468) pseudo_column ::= TBNAME */
|
|
451, /* (469) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
451, /* (470) pseudo_column ::= QSTART */
|
|
451, /* (471) pseudo_column ::= QEND */
|
|
451, /* (472) pseudo_column ::= QDURATION */
|
|
451, /* (473) pseudo_column ::= WSTART */
|
|
451, /* (474) pseudo_column ::= WEND */
|
|
451, /* (475) pseudo_column ::= WDURATION */
|
|
451, /* (476) pseudo_column ::= IROWTS */
|
|
451, /* (477) pseudo_column ::= ISFILLED */
|
|
451, /* (478) pseudo_column ::= QTAGS */
|
|
453, /* (479) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
453, /* (480) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
453, /* (481) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
453, /* (482) function_expression ::= literal_func */
|
|
447, /* (483) literal_func ::= noarg_func NK_LP NK_RP */
|
|
447, /* (484) literal_func ::= NOW */
|
|
457, /* (485) noarg_func ::= NOW */
|
|
457, /* (486) noarg_func ::= TODAY */
|
|
457, /* (487) noarg_func ::= TIMEZONE */
|
|
457, /* (488) noarg_func ::= DATABASE */
|
|
457, /* (489) noarg_func ::= CLIENT_VERSION */
|
|
457, /* (490) noarg_func ::= SERVER_VERSION */
|
|
457, /* (491) noarg_func ::= SERVER_STATUS */
|
|
457, /* (492) noarg_func ::= CURRENT_USER */
|
|
457, /* (493) noarg_func ::= USER */
|
|
455, /* (494) star_func ::= COUNT */
|
|
455, /* (495) star_func ::= FIRST */
|
|
455, /* (496) star_func ::= LAST */
|
|
455, /* (497) star_func ::= LAST_ROW */
|
|
456, /* (498) star_func_para_list ::= NK_STAR */
|
|
456, /* (499) star_func_para_list ::= other_para_list */
|
|
458, /* (500) other_para_list ::= star_func_para */
|
|
458, /* (501) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
459, /* (502) star_func_para ::= expr_or_subquery */
|
|
459, /* (503) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
454, /* (504) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
454, /* (505) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
460, /* (506) when_then_list ::= when_then_expr */
|
|
460, /* (507) when_then_list ::= when_then_list when_then_expr */
|
|
463, /* (508) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
461, /* (509) case_when_else_opt ::= */
|
|
461, /* (510) case_when_else_opt ::= ELSE common_expression */
|
|
464, /* (511) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
464, /* (512) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
464, /* (513) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
464, /* (514) predicate ::= expr_or_subquery IS NULL */
|
|
464, /* (515) predicate ::= expr_or_subquery IS NOT NULL */
|
|
464, /* (516) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
465, /* (517) compare_op ::= NK_LT */
|
|
465, /* (518) compare_op ::= NK_GT */
|
|
465, /* (519) compare_op ::= NK_LE */
|
|
465, /* (520) compare_op ::= NK_GE */
|
|
465, /* (521) compare_op ::= NK_NE */
|
|
465, /* (522) compare_op ::= NK_EQ */
|
|
465, /* (523) compare_op ::= LIKE */
|
|
465, /* (524) compare_op ::= NOT LIKE */
|
|
465, /* (525) compare_op ::= MATCH */
|
|
465, /* (526) compare_op ::= NMATCH */
|
|
465, /* (527) compare_op ::= CONTAINS */
|
|
466, /* (528) in_op ::= IN */
|
|
466, /* (529) in_op ::= NOT IN */
|
|
467, /* (530) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
468, /* (531) boolean_value_expression ::= boolean_primary */
|
|
468, /* (532) boolean_value_expression ::= NOT boolean_primary */
|
|
468, /* (533) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
468, /* (534) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
469, /* (535) boolean_primary ::= predicate */
|
|
469, /* (536) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
462, /* (537) common_expression ::= expr_or_subquery */
|
|
462, /* (538) common_expression ::= boolean_value_expression */
|
|
470, /* (539) from_clause_opt ::= */
|
|
470, /* (540) from_clause_opt ::= FROM table_reference_list */
|
|
471, /* (541) table_reference_list ::= table_reference */
|
|
471, /* (542) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
472, /* (543) table_reference ::= table_primary */
|
|
472, /* (544) table_reference ::= joined_table */
|
|
473, /* (545) table_primary ::= table_name alias_opt */
|
|
473, /* (546) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
473, /* (547) table_primary ::= subquery alias_opt */
|
|
473, /* (548) table_primary ::= parenthesized_joined_table */
|
|
475, /* (549) alias_opt ::= */
|
|
475, /* (550) alias_opt ::= table_alias */
|
|
475, /* (551) alias_opt ::= AS table_alias */
|
|
477, /* (552) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
477, /* (553) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
474, /* (554) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
478, /* (555) join_type ::= */
|
|
478, /* (556) join_type ::= INNER */
|
|
479, /* (557) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
480, /* (558) hint_list ::= */
|
|
480, /* (559) hint_list ::= NK_HINT */
|
|
482, /* (560) tag_mode_opt ::= */
|
|
482, /* (561) tag_mode_opt ::= TAGS */
|
|
481, /* (562) set_quantifier_opt ::= */
|
|
481, /* (563) set_quantifier_opt ::= DISTINCT */
|
|
481, /* (564) set_quantifier_opt ::= ALL */
|
|
483, /* (565) select_list ::= select_item */
|
|
483, /* (566) select_list ::= select_list NK_COMMA select_item */
|
|
491, /* (567) select_item ::= NK_STAR */
|
|
491, /* (568) select_item ::= common_expression */
|
|
491, /* (569) select_item ::= common_expression column_alias */
|
|
491, /* (570) select_item ::= common_expression AS column_alias */
|
|
491, /* (571) select_item ::= table_name NK_DOT NK_STAR */
|
|
427, /* (572) where_clause_opt ::= */
|
|
427, /* (573) where_clause_opt ::= WHERE search_condition */
|
|
484, /* (574) partition_by_clause_opt ::= */
|
|
484, /* (575) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
492, /* (576) partition_list ::= partition_item */
|
|
492, /* (577) partition_list ::= partition_list NK_COMMA partition_item */
|
|
493, /* (578) partition_item ::= expr_or_subquery */
|
|
493, /* (579) partition_item ::= expr_or_subquery column_alias */
|
|
493, /* (580) partition_item ::= expr_or_subquery AS column_alias */
|
|
488, /* (581) twindow_clause_opt ::= */
|
|
488, /* (582) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
488, /* (583) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
488, /* (584) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
488, /* (585) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
488, /* (586) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
421, /* (587) sliding_opt ::= */
|
|
421, /* (588) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
494, /* (589) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
494, /* (590) interval_sliding_duration_literal ::= NK_STRING */
|
|
494, /* (591) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
487, /* (592) fill_opt ::= */
|
|
487, /* (593) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
487, /* (594) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
487, /* (595) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
495, /* (596) fill_mode ::= NONE */
|
|
495, /* (597) fill_mode ::= PREV */
|
|
495, /* (598) fill_mode ::= NULL */
|
|
495, /* (599) fill_mode ::= NULL_F */
|
|
495, /* (600) fill_mode ::= LINEAR */
|
|
495, /* (601) fill_mode ::= NEXT */
|
|
489, /* (602) group_by_clause_opt ::= */
|
|
489, /* (603) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
496, /* (604) group_by_list ::= expr_or_subquery */
|
|
496, /* (605) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
490, /* (606) having_clause_opt ::= */
|
|
490, /* (607) having_clause_opt ::= HAVING search_condition */
|
|
485, /* (608) range_opt ::= */
|
|
485, /* (609) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
485, /* (610) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
486, /* (611) every_opt ::= */
|
|
486, /* (612) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
497, /* (613) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
498, /* (614) query_simple ::= query_specification */
|
|
498, /* (615) query_simple ::= union_query_expression */
|
|
502, /* (616) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
502, /* (617) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
503, /* (618) query_simple_or_subquery ::= query_simple */
|
|
503, /* (619) query_simple_or_subquery ::= subquery */
|
|
426, /* (620) query_or_subquery ::= query_expression */
|
|
426, /* (621) query_or_subquery ::= subquery */
|
|
499, /* (622) order_by_clause_opt ::= */
|
|
499, /* (623) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
500, /* (624) slimit_clause_opt ::= */
|
|
500, /* (625) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
500, /* (626) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
500, /* (627) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
501, /* (628) limit_clause_opt ::= */
|
|
501, /* (629) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
501, /* (630) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
501, /* (631) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
476, /* (632) subquery ::= NK_LP query_expression NK_RP */
|
|
476, /* (633) subquery ::= NK_LP subquery NK_RP */
|
|
365, /* (634) search_condition ::= common_expression */
|
|
504, /* (635) sort_specification_list ::= sort_specification */
|
|
504, /* (636) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
505, /* (637) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
506, /* (638) ordering_specification_opt ::= */
|
|
506, /* (639) ordering_specification_opt ::= ASC */
|
|
506, /* (640) ordering_specification_opt ::= DESC */
|
|
507, /* (641) null_ordering_opt ::= */
|
|
507, /* (642) null_ordering_opt ::= NULLS FIRST */
|
|
507, /* (643) null_ordering_opt ::= NULLS LAST */
|
|
};
|
|
|
|
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
|
|
** of symbols on the right-hand side of that rule. */
|
|
static const signed char yyRuleInfoNRhs[] = {
|
|
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
0, /* (2) account_options ::= */
|
|
-3, /* (3) account_options ::= account_options PPS literal */
|
|
-3, /* (4) account_options ::= account_options TSERIES literal */
|
|
-3, /* (5) account_options ::= account_options STORAGE literal */
|
|
-3, /* (6) account_options ::= account_options STREAMS literal */
|
|
-3, /* (7) account_options ::= account_options QTIME literal */
|
|
-3, /* (8) account_options ::= account_options DBS literal */
|
|
-3, /* (9) account_options ::= account_options USERS literal */
|
|
-3, /* (10) account_options ::= account_options CONNS literal */
|
|
-3, /* (11) account_options ::= account_options STATE literal */
|
|
-1, /* (12) alter_account_options ::= alter_account_option */
|
|
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
-2, /* (14) alter_account_option ::= PASS literal */
|
|
-2, /* (15) alter_account_option ::= PPS literal */
|
|
-2, /* (16) alter_account_option ::= TSERIES literal */
|
|
-2, /* (17) alter_account_option ::= STORAGE literal */
|
|
-2, /* (18) alter_account_option ::= STREAMS literal */
|
|
-2, /* (19) alter_account_option ::= QTIME literal */
|
|
-2, /* (20) alter_account_option ::= DBS literal */
|
|
-2, /* (21) alter_account_option ::= USERS literal */
|
|
-2, /* (22) alter_account_option ::= CONNS literal */
|
|
-2, /* (23) alter_account_option ::= STATE literal */
|
|
-1, /* (24) ip_range_list ::= NK_STRING */
|
|
-3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
-2, /* (26) white_list ::= HOST ip_range_list */
|
|
0, /* (27) white_list_opt ::= */
|
|
-1, /* (28) white_list_opt ::= white_list */
|
|
-7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
-5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
-5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
-5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
-5, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
-5, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
-3, /* (35) cmd ::= DROP USER user_name */
|
|
0, /* (36) sysinfo_opt ::= */
|
|
-2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
-7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
-7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
-1, /* (40) privileges ::= ALL */
|
|
-1, /* (41) privileges ::= priv_type_list */
|
|
-1, /* (42) privileges ::= SUBSCRIBE */
|
|
-1, /* (43) priv_type_list ::= priv_type */
|
|
-3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
-1, /* (45) priv_type ::= READ */
|
|
-1, /* (46) priv_type ::= WRITE */
|
|
-1, /* (47) priv_type ::= ALTER */
|
|
-3, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
-3, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
|
|
-3, /* (50) priv_level ::= db_name NK_DOT table_name */
|
|
-1, /* (51) priv_level ::= topic_name */
|
|
0, /* (52) with_opt ::= */
|
|
-2, /* (53) with_opt ::= WITH search_condition */
|
|
-3, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
|
|
-5, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
-4, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
-4, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
-4, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
-4, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
-4, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
-5, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
-4, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
-5, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
-3, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
-1, /* (65) dnode_endpoint ::= NK_STRING */
|
|
-1, /* (66) dnode_endpoint ::= NK_ID */
|
|
-1, /* (67) dnode_endpoint ::= NK_IPTOKEN */
|
|
0, /* (68) force_opt ::= */
|
|
-1, /* (69) force_opt ::= FORCE */
|
|
-1, /* (70) unsafe_opt ::= UNSAFE */
|
|
-3, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
|
|
-4, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
-3, /* (73) cmd ::= ALTER LOCAL NK_STRING */
|
|
-4, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
-5, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
-5, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
-4, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
|
|
-2, /* (88) cmd ::= USE db_name */
|
|
-4, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
-3, /* (90) cmd ::= FLUSH DATABASE db_name */
|
|
-4, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
-5, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
-3, /* (93) not_exists_opt ::= IF NOT EXISTS */
|
|
0, /* (94) not_exists_opt ::= */
|
|
-2, /* (95) exists_opt ::= IF EXISTS */
|
|
0, /* (96) exists_opt ::= */
|
|
0, /* (97) db_options ::= */
|
|
-3, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
|
|
-3, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
-3, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
-3, /* (101) db_options ::= db_options COMP NK_INTEGER */
|
|
-3, /* (102) db_options ::= db_options DURATION NK_INTEGER */
|
|
-3, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
|
|
-3, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
-3, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
|
|
-3, /* (106) db_options ::= db_options KEEP integer_list */
|
|
-3, /* (107) db_options ::= db_options KEEP variable_list */
|
|
-3, /* (108) db_options ::= db_options PAGES NK_INTEGER */
|
|
-3, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
-3, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
-3, /* (111) db_options ::= db_options PRECISION NK_STRING */
|
|
-3, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
|
|
-3, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
-3, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
-3, /* (115) db_options ::= db_options RETENTIONS retention_list */
|
|
-3, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
-3, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
-3, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-3, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-4, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-3, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
-4, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-3, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
-3, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
-3, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
-3, /* (126) db_options ::= db_options TABLE_PREFIX signed */
|
|
-3, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
|
|
-3, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
-1, /* (129) alter_db_options ::= alter_db_option */
|
|
-2, /* (130) alter_db_options ::= alter_db_options alter_db_option */
|
|
-2, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
|
|
-2, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
-2, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
-2, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-2, /* (135) alter_db_option ::= KEEP integer_list */
|
|
-2, /* (136) alter_db_option ::= KEEP variable_list */
|
|
-2, /* (137) alter_db_option ::= PAGES NK_INTEGER */
|
|
-2, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
|
|
-2, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
-2, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
-2, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
|
|
-2, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-3, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-2, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
-3, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-2, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
-1, /* (147) integer_list ::= NK_INTEGER */
|
|
-3, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
-1, /* (149) variable_list ::= NK_VARIABLE */
|
|
-3, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
-1, /* (151) retention_list ::= retention */
|
|
-3, /* (152) retention_list ::= retention_list NK_COMMA retention */
|
|
-3, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
-3, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
0, /* (155) speed_opt ::= */
|
|
-2, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
0, /* (157) start_opt ::= */
|
|
-3, /* (158) start_opt ::= START WITH NK_INTEGER */
|
|
-3, /* (159) start_opt ::= START WITH NK_STRING */
|
|
-4, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
0, /* (161) end_opt ::= */
|
|
-3, /* (162) end_opt ::= END WITH NK_INTEGER */
|
|
-3, /* (163) end_opt ::= END WITH NK_STRING */
|
|
-4, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
-9, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
-3, /* (166) cmd ::= CREATE TABLE multi_create_clause */
|
|
-9, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
-3, /* (168) cmd ::= DROP TABLE multi_drop_clause */
|
|
-4, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
-3, /* (170) cmd ::= ALTER TABLE alter_table_clause */
|
|
-3, /* (171) cmd ::= ALTER STABLE alter_table_clause */
|
|
-2, /* (172) alter_table_clause ::= full_table_name alter_table_options */
|
|
-5, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
-4, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
-5, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
-5, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
-5, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
-4, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
-5, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
-5, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
-6, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
-1, /* (182) multi_create_clause ::= create_subtable_clause */
|
|
-2, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
-10, /* (184) 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, /* (185) multi_drop_clause ::= drop_table_clause */
|
|
-3, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
-2, /* (187) drop_table_clause ::= exists_opt full_table_name */
|
|
0, /* (188) specific_cols_opt ::= */
|
|
-3, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
-1, /* (190) full_table_name ::= table_name */
|
|
-3, /* (191) full_table_name ::= db_name NK_DOT table_name */
|
|
-1, /* (192) column_def_list ::= column_def */
|
|
-3, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
-2, /* (194) column_def ::= column_name type_name */
|
|
-1, /* (195) type_name ::= BOOL */
|
|
-1, /* (196) type_name ::= TINYINT */
|
|
-1, /* (197) type_name ::= SMALLINT */
|
|
-1, /* (198) type_name ::= INT */
|
|
-1, /* (199) type_name ::= INTEGER */
|
|
-1, /* (200) type_name ::= BIGINT */
|
|
-1, /* (201) type_name ::= FLOAT */
|
|
-1, /* (202) type_name ::= DOUBLE */
|
|
-4, /* (203) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (204) type_name ::= TIMESTAMP */
|
|
-4, /* (205) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
-2, /* (206) type_name ::= TINYINT UNSIGNED */
|
|
-2, /* (207) type_name ::= SMALLINT UNSIGNED */
|
|
-2, /* (208) type_name ::= INT UNSIGNED */
|
|
-2, /* (209) type_name ::= BIGINT UNSIGNED */
|
|
-1, /* (210) type_name ::= JSON */
|
|
-4, /* (211) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (212) type_name ::= MEDIUMBLOB */
|
|
-1, /* (213) type_name ::= BLOB */
|
|
-4, /* (214) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
-4, /* (215) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (216) type_name ::= DECIMAL */
|
|
-4, /* (217) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
-6, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
0, /* (219) tags_def_opt ::= */
|
|
-1, /* (220) tags_def_opt ::= tags_def */
|
|
-4, /* (221) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
0, /* (222) table_options ::= */
|
|
-3, /* (223) table_options ::= table_options COMMENT NK_STRING */
|
|
-3, /* (224) table_options ::= table_options MAX_DELAY duration_list */
|
|
-3, /* (225) table_options ::= table_options WATERMARK duration_list */
|
|
-5, /* (226) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
-3, /* (227) table_options ::= table_options TTL NK_INTEGER */
|
|
-5, /* (228) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
-3, /* (229) table_options ::= table_options DELETE_MARK duration_list */
|
|
-1, /* (230) alter_table_options ::= alter_table_option */
|
|
-2, /* (231) alter_table_options ::= alter_table_options alter_table_option */
|
|
-2, /* (232) alter_table_option ::= COMMENT NK_STRING */
|
|
-2, /* (233) alter_table_option ::= TTL NK_INTEGER */
|
|
-1, /* (234) duration_list ::= duration_literal */
|
|
-3, /* (235) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
-1, /* (236) rollup_func_list ::= rollup_func_name */
|
|
-3, /* (237) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
-1, /* (238) rollup_func_name ::= function_name */
|
|
-1, /* (239) rollup_func_name ::= FIRST */
|
|
-1, /* (240) rollup_func_name ::= LAST */
|
|
-1, /* (241) col_name_list ::= col_name */
|
|
-3, /* (242) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
-1, /* (243) col_name ::= column_name */
|
|
-2, /* (244) cmd ::= SHOW DNODES */
|
|
-2, /* (245) cmd ::= SHOW USERS */
|
|
-3, /* (246) cmd ::= SHOW USER PRIVILEGES */
|
|
-3, /* (247) cmd ::= SHOW db_kind_opt DATABASES */
|
|
-4, /* (248) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
-4, /* (249) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
-3, /* (250) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
-2, /* (251) cmd ::= SHOW MNODES */
|
|
-2, /* (252) cmd ::= SHOW QNODES */
|
|
-2, /* (253) cmd ::= SHOW FUNCTIONS */
|
|
-5, /* (254) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
-6, /* (255) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
-2, /* (256) cmd ::= SHOW STREAMS */
|
|
-2, /* (257) cmd ::= SHOW ACCOUNTS */
|
|
-2, /* (258) cmd ::= SHOW APPS */
|
|
-2, /* (259) cmd ::= SHOW CONNECTIONS */
|
|
-2, /* (260) cmd ::= SHOW LICENCES */
|
|
-2, /* (261) cmd ::= SHOW GRANTS */
|
|
-4, /* (262) cmd ::= SHOW CREATE DATABASE db_name */
|
|
-4, /* (263) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
-4, /* (264) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
-2, /* (265) cmd ::= SHOW QUERIES */
|
|
-2, /* (266) cmd ::= SHOW SCORES */
|
|
-2, /* (267) cmd ::= SHOW TOPICS */
|
|
-2, /* (268) cmd ::= SHOW VARIABLES */
|
|
-3, /* (269) cmd ::= SHOW CLUSTER VARIABLES */
|
|
-3, /* (270) cmd ::= SHOW LOCAL VARIABLES */
|
|
-5, /* (271) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
-2, /* (272) cmd ::= SHOW BNODES */
|
|
-2, /* (273) cmd ::= SHOW SNODES */
|
|
-2, /* (274) cmd ::= SHOW CLUSTER */
|
|
-2, /* (275) cmd ::= SHOW TRANSACTIONS */
|
|
-4, /* (276) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
-2, /* (277) cmd ::= SHOW CONSUMERS */
|
|
-2, /* (278) cmd ::= SHOW SUBSCRIPTIONS */
|
|
-5, /* (279) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
-6, /* (280) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
-7, /* (281) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
-8, /* (282) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
-5, /* (283) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
-2, /* (284) cmd ::= SHOW VNODES */
|
|
-3, /* (285) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
-3, /* (286) cmd ::= SHOW CLUSTER ALIVE */
|
|
-3, /* (287) cmd ::= SHOW db_name_cond_opt VIEWS */
|
|
-4, /* (288) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
-2, /* (289) cmd ::= SHOW COMPACTS */
|
|
-3, /* (290) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
0, /* (291) table_kind_db_name_cond_opt ::= */
|
|
-1, /* (292) table_kind_db_name_cond_opt ::= table_kind */
|
|
-2, /* (293) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
-3, /* (294) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
-1, /* (295) table_kind ::= NORMAL */
|
|
-1, /* (296) table_kind ::= CHILD */
|
|
0, /* (297) db_name_cond_opt ::= */
|
|
-2, /* (298) db_name_cond_opt ::= db_name NK_DOT */
|
|
0, /* (299) like_pattern_opt ::= */
|
|
-2, /* (300) like_pattern_opt ::= LIKE NK_STRING */
|
|
-1, /* (301) table_name_cond ::= table_name */
|
|
0, /* (302) from_db_opt ::= */
|
|
-2, /* (303) from_db_opt ::= FROM db_name */
|
|
0, /* (304) tag_list_opt ::= */
|
|
-1, /* (305) tag_list_opt ::= tag_item */
|
|
-3, /* (306) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
-1, /* (307) tag_item ::= TBNAME */
|
|
-1, /* (308) tag_item ::= QTAGS */
|
|
-1, /* (309) tag_item ::= column_name */
|
|
-2, /* (310) tag_item ::= column_name column_alias */
|
|
-3, /* (311) tag_item ::= column_name AS column_alias */
|
|
0, /* (312) db_kind_opt ::= */
|
|
-1, /* (313) db_kind_opt ::= USER */
|
|
-1, /* (314) db_kind_opt ::= SYSTEM */
|
|
-8, /* (315) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
-9, /* (316) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
-4, /* (317) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
-1, /* (318) full_index_name ::= index_name */
|
|
-3, /* (319) full_index_name ::= db_name NK_DOT index_name */
|
|
-10, /* (320) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
-12, /* (321) 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, /* (322) func_list ::= func */
|
|
-3, /* (323) func_list ::= func_list NK_COMMA func */
|
|
-4, /* (324) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
-1, /* (325) sma_func_name ::= function_name */
|
|
-1, /* (326) sma_func_name ::= COUNT */
|
|
-1, /* (327) sma_func_name ::= FIRST */
|
|
-1, /* (328) sma_func_name ::= LAST */
|
|
-1, /* (329) sma_func_name ::= LAST_ROW */
|
|
0, /* (330) sma_stream_opt ::= */
|
|
-3, /* (331) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
-3, /* (332) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
-3, /* (333) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
-1, /* (334) with_meta ::= AS */
|
|
-3, /* (335) with_meta ::= WITH META AS */
|
|
-3, /* (336) with_meta ::= ONLY META AS */
|
|
-6, /* (337) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
-7, /* (338) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
-8, /* (339) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
-4, /* (340) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
-7, /* (341) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
-2, /* (342) cmd ::= DESC full_table_name */
|
|
-2, /* (343) cmd ::= DESCRIBE full_table_name */
|
|
-3, /* (344) cmd ::= RESET QUERY CACHE */
|
|
-4, /* (345) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
-4, /* (346) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
0, /* (347) analyze_opt ::= */
|
|
-1, /* (348) analyze_opt ::= ANALYZE */
|
|
0, /* (349) explain_options ::= */
|
|
-3, /* (350) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
-3, /* (351) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
-12, /* (352) 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, /* (353) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
0, /* (354) agg_func_opt ::= */
|
|
-1, /* (355) agg_func_opt ::= AGGREGATE */
|
|
0, /* (356) bufsize_opt ::= */
|
|
-2, /* (357) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
0, /* (358) language_opt ::= */
|
|
-2, /* (359) language_opt ::= LANGUAGE NK_STRING */
|
|
0, /* (360) or_replace_opt ::= */
|
|
-2, /* (361) or_replace_opt ::= OR REPLACE */
|
|
-6, /* (362) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
-4, /* (363) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
-1, /* (364) full_view_name ::= view_name */
|
|
-3, /* (365) full_view_name ::= db_name NK_DOT view_name */
|
|
-12, /* (366) 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, /* (367) cmd ::= DROP STREAM exists_opt stream_name */
|
|
-4, /* (368) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
-5, /* (369) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
0, /* (370) col_list_opt ::= */
|
|
-3, /* (371) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
0, /* (372) tag_def_or_ref_opt ::= */
|
|
-1, /* (373) tag_def_or_ref_opt ::= tags_def */
|
|
-4, /* (374) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
0, /* (375) stream_options ::= */
|
|
-3, /* (376) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
-3, /* (377) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
-4, /* (378) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
-3, /* (379) stream_options ::= stream_options WATERMARK duration_literal */
|
|
-4, /* (380) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
-3, /* (381) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
-3, /* (382) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
-4, /* (383) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
0, /* (384) subtable_opt ::= */
|
|
-4, /* (385) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
0, /* (386) ignore_opt ::= */
|
|
-2, /* (387) ignore_opt ::= IGNORE UNTREATED */
|
|
-3, /* (388) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
-3, /* (389) cmd ::= KILL QUERY NK_STRING */
|
|
-3, /* (390) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
-3, /* (391) cmd ::= KILL COMPACT NK_INTEGER */
|
|
-2, /* (392) cmd ::= BALANCE VGROUP */
|
|
-4, /* (393) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
-4, /* (394) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
-4, /* (395) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
-3, /* (396) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
0, /* (397) on_vgroup_id ::= */
|
|
-2, /* (398) on_vgroup_id ::= ON NK_INTEGER */
|
|
-2, /* (399) dnode_list ::= DNODE NK_INTEGER */
|
|
-3, /* (400) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
-4, /* (401) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
-1, /* (402) cmd ::= query_or_subquery */
|
|
-1, /* (403) cmd ::= insert_query */
|
|
-7, /* (404) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
-4, /* (405) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
-1, /* (406) literal ::= NK_INTEGER */
|
|
-1, /* (407) literal ::= NK_FLOAT */
|
|
-1, /* (408) literal ::= NK_STRING */
|
|
-1, /* (409) literal ::= NK_BOOL */
|
|
-2, /* (410) literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (411) literal ::= duration_literal */
|
|
-1, /* (412) literal ::= NULL */
|
|
-1, /* (413) literal ::= NK_QUESTION */
|
|
-1, /* (414) duration_literal ::= NK_VARIABLE */
|
|
-1, /* (415) signed ::= NK_INTEGER */
|
|
-2, /* (416) signed ::= NK_PLUS NK_INTEGER */
|
|
-2, /* (417) signed ::= NK_MINUS NK_INTEGER */
|
|
-1, /* (418) signed ::= NK_FLOAT */
|
|
-2, /* (419) signed ::= NK_PLUS NK_FLOAT */
|
|
-2, /* (420) signed ::= NK_MINUS NK_FLOAT */
|
|
-1, /* (421) signed_literal ::= signed */
|
|
-1, /* (422) signed_literal ::= NK_STRING */
|
|
-1, /* (423) signed_literal ::= NK_BOOL */
|
|
-2, /* (424) signed_literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (425) signed_literal ::= duration_literal */
|
|
-1, /* (426) signed_literal ::= NULL */
|
|
-1, /* (427) signed_literal ::= literal_func */
|
|
-1, /* (428) signed_literal ::= NK_QUESTION */
|
|
-1, /* (429) literal_list ::= signed_literal */
|
|
-3, /* (430) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
-1, /* (431) db_name ::= NK_ID */
|
|
-1, /* (432) table_name ::= NK_ID */
|
|
-1, /* (433) column_name ::= NK_ID */
|
|
-1, /* (434) function_name ::= NK_ID */
|
|
-1, /* (435) view_name ::= NK_ID */
|
|
-1, /* (436) table_alias ::= NK_ID */
|
|
-1, /* (437) column_alias ::= NK_ID */
|
|
-1, /* (438) column_alias ::= NK_ALIAS */
|
|
-1, /* (439) user_name ::= NK_ID */
|
|
-1, /* (440) topic_name ::= NK_ID */
|
|
-1, /* (441) stream_name ::= NK_ID */
|
|
-1, /* (442) cgroup_name ::= NK_ID */
|
|
-1, /* (443) index_name ::= NK_ID */
|
|
-1, /* (444) expr_or_subquery ::= expression */
|
|
-1, /* (445) expression ::= literal */
|
|
-1, /* (446) expression ::= pseudo_column */
|
|
-1, /* (447) expression ::= column_reference */
|
|
-1, /* (448) expression ::= function_expression */
|
|
-1, /* (449) expression ::= case_when_expression */
|
|
-3, /* (450) expression ::= NK_LP expression NK_RP */
|
|
-2, /* (451) expression ::= NK_PLUS expr_or_subquery */
|
|
-2, /* (452) expression ::= NK_MINUS expr_or_subquery */
|
|
-3, /* (453) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
-3, /* (454) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
-3, /* (455) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
-3, /* (456) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
-3, /* (457) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
-3, /* (458) expression ::= column_reference NK_ARROW NK_STRING */
|
|
-3, /* (459) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
-3, /* (460) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
-1, /* (461) expression_list ::= expr_or_subquery */
|
|
-3, /* (462) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
-1, /* (463) column_reference ::= column_name */
|
|
-3, /* (464) column_reference ::= table_name NK_DOT column_name */
|
|
-1, /* (465) column_reference ::= NK_ALIAS */
|
|
-3, /* (466) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
-1, /* (467) pseudo_column ::= ROWTS */
|
|
-1, /* (468) pseudo_column ::= TBNAME */
|
|
-3, /* (469) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
-1, /* (470) pseudo_column ::= QSTART */
|
|
-1, /* (471) pseudo_column ::= QEND */
|
|
-1, /* (472) pseudo_column ::= QDURATION */
|
|
-1, /* (473) pseudo_column ::= WSTART */
|
|
-1, /* (474) pseudo_column ::= WEND */
|
|
-1, /* (475) pseudo_column ::= WDURATION */
|
|
-1, /* (476) pseudo_column ::= IROWTS */
|
|
-1, /* (477) pseudo_column ::= ISFILLED */
|
|
-1, /* (478) pseudo_column ::= QTAGS */
|
|
-4, /* (479) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
-4, /* (480) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
-6, /* (481) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
-1, /* (482) function_expression ::= literal_func */
|
|
-3, /* (483) literal_func ::= noarg_func NK_LP NK_RP */
|
|
-1, /* (484) literal_func ::= NOW */
|
|
-1, /* (485) noarg_func ::= NOW */
|
|
-1, /* (486) noarg_func ::= TODAY */
|
|
-1, /* (487) noarg_func ::= TIMEZONE */
|
|
-1, /* (488) noarg_func ::= DATABASE */
|
|
-1, /* (489) noarg_func ::= CLIENT_VERSION */
|
|
-1, /* (490) noarg_func ::= SERVER_VERSION */
|
|
-1, /* (491) noarg_func ::= SERVER_STATUS */
|
|
-1, /* (492) noarg_func ::= CURRENT_USER */
|
|
-1, /* (493) noarg_func ::= USER */
|
|
-1, /* (494) star_func ::= COUNT */
|
|
-1, /* (495) star_func ::= FIRST */
|
|
-1, /* (496) star_func ::= LAST */
|
|
-1, /* (497) star_func ::= LAST_ROW */
|
|
-1, /* (498) star_func_para_list ::= NK_STAR */
|
|
-1, /* (499) star_func_para_list ::= other_para_list */
|
|
-1, /* (500) other_para_list ::= star_func_para */
|
|
-3, /* (501) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
-1, /* (502) star_func_para ::= expr_or_subquery */
|
|
-3, /* (503) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
-4, /* (504) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
-5, /* (505) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
-1, /* (506) when_then_list ::= when_then_expr */
|
|
-2, /* (507) when_then_list ::= when_then_list when_then_expr */
|
|
-4, /* (508) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
0, /* (509) case_when_else_opt ::= */
|
|
-2, /* (510) case_when_else_opt ::= ELSE common_expression */
|
|
-3, /* (511) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
-5, /* (512) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-6, /* (513) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-3, /* (514) predicate ::= expr_or_subquery IS NULL */
|
|
-4, /* (515) predicate ::= expr_or_subquery IS NOT NULL */
|
|
-3, /* (516) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
-1, /* (517) compare_op ::= NK_LT */
|
|
-1, /* (518) compare_op ::= NK_GT */
|
|
-1, /* (519) compare_op ::= NK_LE */
|
|
-1, /* (520) compare_op ::= NK_GE */
|
|
-1, /* (521) compare_op ::= NK_NE */
|
|
-1, /* (522) compare_op ::= NK_EQ */
|
|
-1, /* (523) compare_op ::= LIKE */
|
|
-2, /* (524) compare_op ::= NOT LIKE */
|
|
-1, /* (525) compare_op ::= MATCH */
|
|
-1, /* (526) compare_op ::= NMATCH */
|
|
-1, /* (527) compare_op ::= CONTAINS */
|
|
-1, /* (528) in_op ::= IN */
|
|
-2, /* (529) in_op ::= NOT IN */
|
|
-3, /* (530) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
-1, /* (531) boolean_value_expression ::= boolean_primary */
|
|
-2, /* (532) boolean_value_expression ::= NOT boolean_primary */
|
|
-3, /* (533) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
-3, /* (534) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
-1, /* (535) boolean_primary ::= predicate */
|
|
-3, /* (536) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
-1, /* (537) common_expression ::= expr_or_subquery */
|
|
-1, /* (538) common_expression ::= boolean_value_expression */
|
|
0, /* (539) from_clause_opt ::= */
|
|
-2, /* (540) from_clause_opt ::= FROM table_reference_list */
|
|
-1, /* (541) table_reference_list ::= table_reference */
|
|
-3, /* (542) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
-1, /* (543) table_reference ::= table_primary */
|
|
-1, /* (544) table_reference ::= joined_table */
|
|
-2, /* (545) table_primary ::= table_name alias_opt */
|
|
-4, /* (546) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
-2, /* (547) table_primary ::= subquery alias_opt */
|
|
-1, /* (548) table_primary ::= parenthesized_joined_table */
|
|
0, /* (549) alias_opt ::= */
|
|
-1, /* (550) alias_opt ::= table_alias */
|
|
-2, /* (551) alias_opt ::= AS table_alias */
|
|
-3, /* (552) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
-3, /* (553) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
-6, /* (554) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
0, /* (555) join_type ::= */
|
|
-1, /* (556) join_type ::= INNER */
|
|
-14, /* (557) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
0, /* (558) hint_list ::= */
|
|
-1, /* (559) hint_list ::= NK_HINT */
|
|
0, /* (560) tag_mode_opt ::= */
|
|
-1, /* (561) tag_mode_opt ::= TAGS */
|
|
0, /* (562) set_quantifier_opt ::= */
|
|
-1, /* (563) set_quantifier_opt ::= DISTINCT */
|
|
-1, /* (564) set_quantifier_opt ::= ALL */
|
|
-1, /* (565) select_list ::= select_item */
|
|
-3, /* (566) select_list ::= select_list NK_COMMA select_item */
|
|
-1, /* (567) select_item ::= NK_STAR */
|
|
-1, /* (568) select_item ::= common_expression */
|
|
-2, /* (569) select_item ::= common_expression column_alias */
|
|
-3, /* (570) select_item ::= common_expression AS column_alias */
|
|
-3, /* (571) select_item ::= table_name NK_DOT NK_STAR */
|
|
0, /* (572) where_clause_opt ::= */
|
|
-2, /* (573) where_clause_opt ::= WHERE search_condition */
|
|
0, /* (574) partition_by_clause_opt ::= */
|
|
-3, /* (575) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
-1, /* (576) partition_list ::= partition_item */
|
|
-3, /* (577) partition_list ::= partition_list NK_COMMA partition_item */
|
|
-1, /* (578) partition_item ::= expr_or_subquery */
|
|
-2, /* (579) partition_item ::= expr_or_subquery column_alias */
|
|
-3, /* (580) partition_item ::= expr_or_subquery AS column_alias */
|
|
0, /* (581) twindow_clause_opt ::= */
|
|
-6, /* (582) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
-4, /* (583) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
-6, /* (584) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
-8, /* (585) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
-7, /* (586) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
0, /* (587) sliding_opt ::= */
|
|
-4, /* (588) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
-1, /* (589) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
-1, /* (590) interval_sliding_duration_literal ::= NK_STRING */
|
|
-1, /* (591) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
0, /* (592) fill_opt ::= */
|
|
-4, /* (593) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
-6, /* (594) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
-6, /* (595) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
-1, /* (596) fill_mode ::= NONE */
|
|
-1, /* (597) fill_mode ::= PREV */
|
|
-1, /* (598) fill_mode ::= NULL */
|
|
-1, /* (599) fill_mode ::= NULL_F */
|
|
-1, /* (600) fill_mode ::= LINEAR */
|
|
-1, /* (601) fill_mode ::= NEXT */
|
|
0, /* (602) group_by_clause_opt ::= */
|
|
-3, /* (603) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
-1, /* (604) group_by_list ::= expr_or_subquery */
|
|
-3, /* (605) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
0, /* (606) having_clause_opt ::= */
|
|
-2, /* (607) having_clause_opt ::= HAVING search_condition */
|
|
0, /* (608) range_opt ::= */
|
|
-6, /* (609) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
-4, /* (610) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
0, /* (611) every_opt ::= */
|
|
-4, /* (612) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
-4, /* (613) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
-1, /* (614) query_simple ::= query_specification */
|
|
-1, /* (615) query_simple ::= union_query_expression */
|
|
-4, /* (616) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
-3, /* (617) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
-1, /* (618) query_simple_or_subquery ::= query_simple */
|
|
-1, /* (619) query_simple_or_subquery ::= subquery */
|
|
-1, /* (620) query_or_subquery ::= query_expression */
|
|
-1, /* (621) query_or_subquery ::= subquery */
|
|
0, /* (622) order_by_clause_opt ::= */
|
|
-3, /* (623) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
0, /* (624) slimit_clause_opt ::= */
|
|
-2, /* (625) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
-4, /* (626) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
-4, /* (627) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
0, /* (628) limit_clause_opt ::= */
|
|
-2, /* (629) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
-4, /* (630) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
-4, /* (631) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
-3, /* (632) subquery ::= NK_LP query_expression NK_RP */
|
|
-3, /* (633) subquery ::= NK_LP subquery NK_RP */
|
|
-1, /* (634) search_condition ::= common_expression */
|
|
-1, /* (635) sort_specification_list ::= sort_specification */
|
|
-3, /* (636) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
-3, /* (637) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
0, /* (638) ordering_specification_opt ::= */
|
|
-1, /* (639) ordering_specification_opt ::= ASC */
|
|
-1, /* (640) ordering_specification_opt ::= DESC */
|
|
0, /* (641) null_ordering_opt ::= */
|
|
-2, /* (642) null_ordering_opt ::= NULLS FIRST */
|
|
-2, /* (643) null_ordering_opt ::= NULLS LAST */
|
|
};
|
|
|
|
static void yy_accept(yyParser*); /* Forward Declaration */
|
|
|
|
/*
|
|
** Perform a reduce action and the shift that must immediately
|
|
** follow the reduce.
|
|
**
|
|
** The yyLookahead and yyLookaheadToken parameters provide reduce actions
|
|
** access to the lookahead token (if any). The yyLookahead will be YYNOCODE
|
|
** if the lookahead token has already been consumed. As this procedure is
|
|
** only called from one place, optimizing compilers will in-line it, which
|
|
** means that the extra parameters have no performance impact.
|
|
*/
|
|
static YYACTIONTYPE yy_reduce(
|
|
yyParser *yypParser, /* The parser */
|
|
unsigned int yyruleno, /* Number of the rule by which to reduce */
|
|
int yyLookahead, /* Lookahead token, or YYNOCODE if none */
|
|
ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */
|
|
ParseCTX_PDECL /* %extra_context */
|
|
){
|
|
int yygoto; /* The next state */
|
|
YYACTIONTYPE yyact; /* The next action */
|
|
yyStackEntry *yymsp; /* The top of the parser's stack */
|
|
int yysize; /* Amount to pop the stack */
|
|
ParseARG_FETCH
|
|
(void)yyLookahead;
|
|
(void)yyLookaheadToken;
|
|
yymsp = yypParser->yytos;
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){
|
|
yysize = yyRuleInfoNRhs[yyruleno];
|
|
if( yysize ){
|
|
fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
|
|
yyTracePrompt,
|
|
yyruleno, yyRuleName[yyruleno],
|
|
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
|
|
yymsp[yysize].stateno);
|
|
}else{
|
|
fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
|
|
yyTracePrompt, yyruleno, yyRuleName[yyruleno],
|
|
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
|
|
}
|
|
}
|
|
#endif /* NDEBUG */
|
|
|
|
/* Check that the stack is large enough to grow by a single entry
|
|
** if the RHS of the rule is empty. This ensures that there is room
|
|
** enough on the stack to push the LHS value */
|
|
if( yyRuleInfoNRhs[yyruleno]==0 ){
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
|
|
yypParser->yyhwm++;
|
|
assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack));
|
|
}
|
|
#endif
|
|
#if YYSTACKDEPTH>0
|
|
if( yypParser->yytos>=yypParser->yystackEnd ){
|
|
yyStackOverflow(yypParser);
|
|
/* The call to yyStackOverflow() above pops the stack until it is
|
|
** empty, causing the main parser loop to exit. So the return value
|
|
** is never used and does not matter. */
|
|
return 0;
|
|
}
|
|
#else
|
|
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
|
|
if( yyGrowStack(yypParser) ){
|
|
yyStackOverflow(yypParser);
|
|
/* The call to yyStackOverflow() above pops the stack until it is
|
|
** empty, causing the main parser loop to exit. So the return value
|
|
** is never used and does not matter. */
|
|
return 0;
|
|
}
|
|
yymsp = yypParser->yytos;
|
|
}
|
|
#endif
|
|
}
|
|
|
|
switch( yyruleno ){
|
|
/* Beginning here are the reduction cases. A typical example
|
|
** follows:
|
|
** case 0:
|
|
** #line <lineno> <grammarfile>
|
|
** { ... } // User supplied code
|
|
** #line <lineno> <thisfile>
|
|
** break;
|
|
*/
|
|
/********** Begin reduce actions **********************************************/
|
|
YYMINORTYPE yylhsminor;
|
|
case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
yy_destructor(yypParser,348,&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,349,&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,348,&yymsp[-2].minor);
|
|
{ }
|
|
yy_destructor(yypParser,350,&yymsp[0].minor);
|
|
}
|
|
break;
|
|
case 12: /* alter_account_options ::= alter_account_option */
|
|
{ yy_destructor(yypParser,351,&yymsp[0].minor);
|
|
{ }
|
|
}
|
|
break;
|
|
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
|
|
{ yy_destructor(yypParser,349,&yymsp[-1].minor);
|
|
{ }
|
|
yy_destructor(yypParser,351,&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,350,&yymsp[0].minor);
|
|
break;
|
|
case 24: /* ip_range_list ::= NK_STRING */
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 26: /* white_list ::= HOST ip_range_list */
|
|
{ yymsp[-1].minor.yy88 = yymsp[0].minor.yy88; }
|
|
break;
|
|
case 27: /* white_list_opt ::= */
|
|
case 188: /* specific_cols_opt ::= */ yytestcase(yyruleno==188);
|
|
case 219: /* tags_def_opt ::= */ yytestcase(yyruleno==219);
|
|
case 304: /* tag_list_opt ::= */ yytestcase(yyruleno==304);
|
|
case 370: /* col_list_opt ::= */ yytestcase(yyruleno==370);
|
|
case 372: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==372);
|
|
case 574: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==574);
|
|
case 602: /* group_by_clause_opt ::= */ yytestcase(yyruleno==602);
|
|
case 622: /* order_by_clause_opt ::= */ yytestcase(yyruleno==622);
|
|
{ yymsp[1].minor.yy88 = NULL; }
|
|
break;
|
|
case 28: /* white_list_opt ::= white_list */
|
|
case 220: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==220);
|
|
case 373: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==373);
|
|
case 499: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==499);
|
|
{ yylhsminor.yy88 = yymsp[0].minor.yy88; }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
{
|
|
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy993, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy279);
|
|
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy88);
|
|
}
|
|
break;
|
|
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy993, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy993, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy993, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy993, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy88); }
|
|
break;
|
|
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy993, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy88); }
|
|
break;
|
|
case 35: /* cmd ::= DROP USER user_name */
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 36: /* sysinfo_opt ::= */
|
|
{ yymsp[1].minor.yy279 = 1; }
|
|
break;
|
|
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
{ yymsp[-1].minor.yy279 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
break;
|
|
case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy221, &yymsp[-3].minor.yy241, &yymsp[0].minor.yy993, yymsp[-2].minor.yy232); }
|
|
break;
|
|
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy221, &yymsp[-3].minor.yy241, &yymsp[0].minor.yy993, yymsp[-2].minor.yy232); }
|
|
break;
|
|
case 40: /* privileges ::= ALL */
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_ALL; }
|
|
break;
|
|
case 41: /* privileges ::= priv_type_list */
|
|
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
|
|
{ yylhsminor.yy221 = yymsp[0].minor.yy221; }
|
|
yymsp[0].minor.yy221 = yylhsminor.yy221;
|
|
break;
|
|
case 42: /* privileges ::= SUBSCRIBE */
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_SUBSCRIBE; }
|
|
break;
|
|
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
{ yylhsminor.yy221 = yymsp[-2].minor.yy221 | yymsp[0].minor.yy221; }
|
|
yymsp[-2].minor.yy221 = yylhsminor.yy221;
|
|
break;
|
|
case 45: /* priv_type ::= READ */
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_READ; }
|
|
break;
|
|
case 46: /* priv_type ::= WRITE */
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_WRITE; }
|
|
break;
|
|
case 47: /* priv_type ::= ALTER */
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_ALTER; }
|
|
break;
|
|
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
{ yylhsminor.yy241.first = yymsp[-2].minor.yy0; yylhsminor.yy241.second = yymsp[0].minor.yy0; }
|
|
yymsp[-2].minor.yy241 = yylhsminor.yy241;
|
|
break;
|
|
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
|
|
{ yylhsminor.yy241.first = yymsp[-2].minor.yy993; yylhsminor.yy241.second = yymsp[0].minor.yy0; }
|
|
yymsp[-2].minor.yy241 = yylhsminor.yy241;
|
|
break;
|
|
case 50: /* priv_level ::= db_name NK_DOT table_name */
|
|
{ yylhsminor.yy241.first = yymsp[-2].minor.yy993; yylhsminor.yy241.second = yymsp[0].minor.yy993; }
|
|
yymsp[-2].minor.yy241 = yylhsminor.yy241;
|
|
break;
|
|
case 51: /* priv_level ::= topic_name */
|
|
{ yylhsminor.yy241.first = yymsp[0].minor.yy993; yylhsminor.yy241.second = nil_token; }
|
|
yymsp[0].minor.yy241 = yylhsminor.yy241;
|
|
break;
|
|
case 52: /* with_opt ::= */
|
|
case 157: /* start_opt ::= */ yytestcase(yyruleno==157);
|
|
case 161: /* end_opt ::= */ yytestcase(yyruleno==161);
|
|
case 299: /* like_pattern_opt ::= */ yytestcase(yyruleno==299);
|
|
case 384: /* subtable_opt ::= */ yytestcase(yyruleno==384);
|
|
case 509: /* case_when_else_opt ::= */ yytestcase(yyruleno==509);
|
|
case 539: /* from_clause_opt ::= */ yytestcase(yyruleno==539);
|
|
case 572: /* where_clause_opt ::= */ yytestcase(yyruleno==572);
|
|
case 581: /* twindow_clause_opt ::= */ yytestcase(yyruleno==581);
|
|
case 587: /* sliding_opt ::= */ yytestcase(yyruleno==587);
|
|
case 592: /* fill_opt ::= */ yytestcase(yyruleno==592);
|
|
case 606: /* having_clause_opt ::= */ yytestcase(yyruleno==606);
|
|
case 608: /* range_opt ::= */ yytestcase(yyruleno==608);
|
|
case 611: /* every_opt ::= */ yytestcase(yyruleno==611);
|
|
case 624: /* slimit_clause_opt ::= */ yytestcase(yyruleno==624);
|
|
case 628: /* limit_clause_opt ::= */ yytestcase(yyruleno==628);
|
|
{ yymsp[1].minor.yy232 = NULL; }
|
|
break;
|
|
case 53: /* with_opt ::= WITH search_condition */
|
|
case 540: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==540);
|
|
case 573: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==573);
|
|
case 607: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==607);
|
|
{ yymsp[-1].minor.yy232 = yymsp[0].minor.yy232; }
|
|
break;
|
|
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy993, NULL); }
|
|
break;
|
|
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy985, false); }
|
|
break;
|
|
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy993, yymsp[0].minor.yy985, false); }
|
|
break;
|
|
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy985); }
|
|
break;
|
|
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy993, false, yymsp[0].minor.yy985); }
|
|
break;
|
|
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 65: /* dnode_endpoint ::= NK_STRING */
|
|
case 66: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==66);
|
|
case 67: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==67);
|
|
case 326: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==326);
|
|
case 327: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==327);
|
|
case 328: /* sma_func_name ::= LAST */ yytestcase(yyruleno==328);
|
|
case 329: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==329);
|
|
case 431: /* db_name ::= NK_ID */ yytestcase(yyruleno==431);
|
|
case 432: /* table_name ::= NK_ID */ yytestcase(yyruleno==432);
|
|
case 433: /* column_name ::= NK_ID */ yytestcase(yyruleno==433);
|
|
case 434: /* function_name ::= NK_ID */ yytestcase(yyruleno==434);
|
|
case 435: /* view_name ::= NK_ID */ yytestcase(yyruleno==435);
|
|
case 436: /* table_alias ::= NK_ID */ yytestcase(yyruleno==436);
|
|
case 437: /* column_alias ::= NK_ID */ yytestcase(yyruleno==437);
|
|
case 438: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==438);
|
|
case 439: /* user_name ::= NK_ID */ yytestcase(yyruleno==439);
|
|
case 440: /* topic_name ::= NK_ID */ yytestcase(yyruleno==440);
|
|
case 441: /* stream_name ::= NK_ID */ yytestcase(yyruleno==441);
|
|
case 442: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==442);
|
|
case 443: /* index_name ::= NK_ID */ yytestcase(yyruleno==443);
|
|
case 485: /* noarg_func ::= NOW */ yytestcase(yyruleno==485);
|
|
case 486: /* noarg_func ::= TODAY */ yytestcase(yyruleno==486);
|
|
case 487: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==487);
|
|
case 488: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==488);
|
|
case 489: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==489);
|
|
case 490: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==490);
|
|
case 491: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==491);
|
|
case 492: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==492);
|
|
case 493: /* noarg_func ::= USER */ yytestcase(yyruleno==493);
|
|
case 494: /* star_func ::= COUNT */ yytestcase(yyruleno==494);
|
|
case 495: /* star_func ::= FIRST */ yytestcase(yyruleno==495);
|
|
case 496: /* star_func ::= LAST */ yytestcase(yyruleno==496);
|
|
case 497: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==497);
|
|
{ yylhsminor.yy993 = yymsp[0].minor.yy0; }
|
|
yymsp[0].minor.yy993 = yylhsminor.yy993;
|
|
break;
|
|
case 68: /* force_opt ::= */
|
|
case 94: /* not_exists_opt ::= */ yytestcase(yyruleno==94);
|
|
case 96: /* exists_opt ::= */ yytestcase(yyruleno==96);
|
|
case 347: /* analyze_opt ::= */ yytestcase(yyruleno==347);
|
|
case 354: /* agg_func_opt ::= */ yytestcase(yyruleno==354);
|
|
case 360: /* or_replace_opt ::= */ yytestcase(yyruleno==360);
|
|
case 386: /* ignore_opt ::= */ yytestcase(yyruleno==386);
|
|
case 560: /* tag_mode_opt ::= */ yytestcase(yyruleno==560);
|
|
case 562: /* set_quantifier_opt ::= */ yytestcase(yyruleno==562);
|
|
{ yymsp[1].minor.yy985 = false; }
|
|
break;
|
|
case 69: /* force_opt ::= FORCE */
|
|
case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70);
|
|
case 348: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==348);
|
|
case 355: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==355);
|
|
case 561: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==561);
|
|
case 563: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==563);
|
|
{ yymsp[0].minor.yy985 = true; }
|
|
break;
|
|
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 86: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy985, &yymsp[-1].minor.yy993, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 87: /* cmd ::= DROP DATABASE exists_opt db_name */
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 88: /* cmd ::= USE db_name */
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy993, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 90: /* cmd ::= FLUSH DATABASE db_name */
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy993, yymsp[0].minor.yy92); }
|
|
break;
|
|
case 92: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy993, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 93: /* not_exists_opt ::= IF NOT EXISTS */
|
|
{ yymsp[-2].minor.yy985 = true; }
|
|
break;
|
|
case 95: /* exists_opt ::= IF EXISTS */
|
|
case 361: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==361);
|
|
case 387: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==387);
|
|
{ yymsp[-1].minor.yy985 = true; }
|
|
break;
|
|
case 97: /* db_options ::= */
|
|
{ yymsp[1].minor.yy232 = createDefaultDatabaseOptions(pCxt); }
|
|
break;
|
|
case 98: /* db_options ::= db_options BUFFER NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 99: /* db_options ::= db_options CACHEMODEL NK_STRING */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 100: /* db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 101: /* db_options ::= db_options COMP NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 102: /* db_options ::= db_options DURATION NK_INTEGER */
|
|
case 103: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==103);
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 104: /* db_options ::= db_options MAXROWS NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 105: /* db_options ::= db_options MINROWS NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 106: /* db_options ::= db_options KEEP integer_list */
|
|
case 107: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==107);
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_KEEP, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 108: /* db_options ::= db_options PAGES NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 109: /* db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 110: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 111: /* db_options ::= db_options PRECISION NK_STRING */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 112: /* db_options ::= db_options REPLICA NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 113: /* db_options ::= db_options VGROUPS NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 114: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 115: /* db_options ::= db_options RETENTIONS retention_list */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_RETENTIONS, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 116: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 117: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 118: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 119: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 120: /* 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.yy232 = setDatabaseOption(pCxt, yymsp[-3].minor.yy232, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
|
}
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 121: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 122: /* 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.yy232 = setDatabaseOption(pCxt, yymsp[-3].minor.yy232, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
|
}
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 123: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 124: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 125: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 126: /* db_options ::= db_options TABLE_PREFIX signed */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy232); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 127: /* db_options ::= db_options TABLE_SUFFIX signed */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy232); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 128: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 129: /* alter_db_options ::= alter_db_option */
|
|
{ yylhsminor.yy232 = createAlterDatabaseOptions(pCxt); yylhsminor.yy232 = setAlterDatabaseOption(pCxt, yylhsminor.yy232, &yymsp[0].minor.yy117); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 130: /* alter_db_options ::= alter_db_options alter_db_option */
|
|
{ yylhsminor.yy232 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy232, &yymsp[0].minor.yy117); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 131: /* alter_db_option ::= BUFFER NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 132: /* alter_db_option ::= CACHEMODEL NK_STRING */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 133: /* alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 134: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 135: /* alter_db_option ::= KEEP integer_list */
|
|
case 136: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==136);
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_KEEP; yymsp[-1].minor.yy117.pList = yymsp[0].minor.yy88; }
|
|
break;
|
|
case 137: /* alter_db_option ::= PAGES NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_PAGES; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 138: /* alter_db_option ::= REPLICA NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 139: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_WAL; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 140: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 141: /* alter_db_option ::= MINROWS NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 142: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 143: /* 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.yy117.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy117.val = t;
|
|
}
|
|
break;
|
|
case 144: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 145: /* 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.yy117.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy117.val = t;
|
|
}
|
|
break;
|
|
case 146: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 147: /* integer_list ::= NK_INTEGER */
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 148: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
case 400: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==400);
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 149: /* variable_list ::= NK_VARIABLE */
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 150: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 151: /* retention_list ::= retention */
|
|
case 182: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==182);
|
|
case 185: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==185);
|
|
case 192: /* column_def_list ::= column_def */ yytestcase(yyruleno==192);
|
|
case 236: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==236);
|
|
case 241: /* col_name_list ::= col_name */ yytestcase(yyruleno==241);
|
|
case 305: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==305);
|
|
case 322: /* func_list ::= func */ yytestcase(yyruleno==322);
|
|
case 429: /* literal_list ::= signed_literal */ yytestcase(yyruleno==429);
|
|
case 500: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==500);
|
|
case 506: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==506);
|
|
case 565: /* select_list ::= select_item */ yytestcase(yyruleno==565);
|
|
case 576: /* partition_list ::= partition_item */ yytestcase(yyruleno==576);
|
|
case 635: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==635);
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, yymsp[0].minor.yy232); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 152: /* retention_list ::= retention_list NK_COMMA retention */
|
|
case 186: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==186);
|
|
case 193: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==193);
|
|
case 237: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==237);
|
|
case 242: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==242);
|
|
case 306: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==306);
|
|
case 323: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==323);
|
|
case 430: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==430);
|
|
case 501: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==501);
|
|
case 566: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==566);
|
|
case 577: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==577);
|
|
case 636: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==636);
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, yymsp[0].minor.yy232); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 153: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
case 154: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==154);
|
|
{ yylhsminor.yy232 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 155: /* speed_opt ::= */
|
|
case 356: /* bufsize_opt ::= */ yytestcase(yyruleno==356);
|
|
{ yymsp[1].minor.yy92 = 0; }
|
|
break;
|
|
case 156: /* speed_opt ::= BWLIMIT NK_INTEGER */
|
|
case 357: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==357);
|
|
{ yymsp[-1].minor.yy92 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
break;
|
|
case 158: /* start_opt ::= START WITH NK_INTEGER */
|
|
case 162: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==162);
|
|
{ yymsp[-2].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 159: /* start_opt ::= START WITH NK_STRING */
|
|
case 163: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==163);
|
|
{ yymsp[-2].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 160: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
case 164: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==164);
|
|
{ yymsp[-3].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 165: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
case 167: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==167);
|
|
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy985, yymsp[-5].minor.yy232, yymsp[-3].minor.yy88, yymsp[-1].minor.yy88, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 166: /* cmd ::= CREATE TABLE multi_create_clause */
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy88); }
|
|
break;
|
|
case 168: /* cmd ::= DROP TABLE multi_drop_clause */
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy88); }
|
|
break;
|
|
case 169: /* cmd ::= DROP STABLE exists_opt full_table_name */
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy985, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 170: /* cmd ::= ALTER TABLE alter_table_clause */
|
|
case 402: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==402);
|
|
case 403: /* cmd ::= insert_query */ yytestcase(yyruleno==403);
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy232; }
|
|
break;
|
|
case 171: /* cmd ::= ALTER STABLE alter_table_clause */
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy232); }
|
|
break;
|
|
case 172: /* alter_table_clause ::= full_table_name alter_table_options */
|
|
{ yylhsminor.yy232 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 173: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
{ yylhsminor.yy232 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy993, yymsp[0].minor.yy400); }
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 174: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
{ yylhsminor.yy232 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy232, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy993); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 175: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
{ yylhsminor.yy232 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy993, yymsp[0].minor.yy400); }
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 176: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
{ yylhsminor.yy232 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy993, &yymsp[0].minor.yy993); }
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 177: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
{ yylhsminor.yy232 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy993, yymsp[0].minor.yy400); }
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 178: /* alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
{ yylhsminor.yy232 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy232, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy993); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 179: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
{ yylhsminor.yy232 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy993, yymsp[0].minor.yy400); }
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 180: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
{ yylhsminor.yy232 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy993, &yymsp[0].minor.yy993); }
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 181: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
{ yylhsminor.yy232 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy232, &yymsp[-2].minor.yy993, yymsp[0].minor.yy232); }
|
|
yymsp[-5].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 183: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
case 507: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==507);
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-1].minor.yy88, yymsp[0].minor.yy232); }
|
|
yymsp[-1].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 184: /* 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.yy232 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy985, yymsp[-8].minor.yy232, yymsp[-6].minor.yy232, yymsp[-5].minor.yy88, yymsp[-2].minor.yy88, yymsp[0].minor.yy232); }
|
|
yymsp[-9].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 187: /* drop_table_clause ::= exists_opt full_table_name */
|
|
{ yylhsminor.yy232 = createDropTableClause(pCxt, yymsp[-1].minor.yy985, yymsp[0].minor.yy232); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 189: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
case 371: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==371);
|
|
{ yymsp[-2].minor.yy88 = yymsp[-1].minor.yy88; }
|
|
break;
|
|
case 190: /* full_table_name ::= table_name */
|
|
{ yylhsminor.yy232 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy993, NULL); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 191: /* full_table_name ::= db_name NK_DOT table_name */
|
|
{ yylhsminor.yy232 = createRealTableNode(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy993, NULL); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 194: /* column_def ::= column_name type_name */
|
|
{ yylhsminor.yy232 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy993, yymsp[0].minor.yy400, NULL); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 195: /* type_name ::= BOOL */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BOOL); }
|
|
break;
|
|
case 196: /* type_name ::= TINYINT */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TINYINT); }
|
|
break;
|
|
case 197: /* type_name ::= SMALLINT */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
|
|
break;
|
|
case 198: /* type_name ::= INT */
|
|
case 199: /* type_name ::= INTEGER */ yytestcase(yyruleno==199);
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_INT); }
|
|
break;
|
|
case 200: /* type_name ::= BIGINT */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BIGINT); }
|
|
break;
|
|
case 201: /* type_name ::= FLOAT */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_FLOAT); }
|
|
break;
|
|
case 202: /* type_name ::= DOUBLE */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
|
|
break;
|
|
case 203: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 204: /* type_name ::= TIMESTAMP */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
|
|
break;
|
|
case 205: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 206: /* type_name ::= TINYINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
|
|
break;
|
|
case 207: /* type_name ::= SMALLINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
|
|
break;
|
|
case 208: /* type_name ::= INT UNSIGNED */
|
|
{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UINT); }
|
|
break;
|
|
case 209: /* type_name ::= BIGINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
|
|
break;
|
|
case 210: /* type_name ::= JSON */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_JSON); }
|
|
break;
|
|
case 211: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 212: /* type_name ::= MEDIUMBLOB */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
|
|
break;
|
|
case 213: /* type_name ::= BLOB */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BLOB); }
|
|
break;
|
|
case 214: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 215: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 216: /* type_name ::= DECIMAL */
|
|
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 217: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 218: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
{ yymsp[-5].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 221: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
case 374: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==374);
|
|
{ yymsp[-3].minor.yy88 = yymsp[-1].minor.yy88; }
|
|
break;
|
|
case 222: /* table_options ::= */
|
|
{ yymsp[1].minor.yy232 = createDefaultTableOptions(pCxt); }
|
|
break;
|
|
case 223: /* table_options ::= table_options COMMENT NK_STRING */
|
|
{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 224: /* table_options ::= table_options MAX_DELAY duration_list */
|
|
{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 225: /* table_options ::= table_options WATERMARK duration_list */
|
|
{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 226: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-4].minor.yy232, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy88); }
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 227: /* table_options ::= table_options TTL NK_INTEGER */
|
|
{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 228: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-4].minor.yy232, TABLE_OPTION_SMA, yymsp[-1].minor.yy88); }
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 229: /* table_options ::= table_options DELETE_MARK duration_list */
|
|
{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy88); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 230: /* alter_table_options ::= alter_table_option */
|
|
{ yylhsminor.yy232 = createAlterTableOptions(pCxt); yylhsminor.yy232 = setTableOption(pCxt, yylhsminor.yy232, yymsp[0].minor.yy117.type, &yymsp[0].minor.yy117.val); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 231: /* alter_table_options ::= alter_table_options alter_table_option */
|
|
{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-1].minor.yy232, yymsp[0].minor.yy117.type, &yymsp[0].minor.yy117.val); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 232: /* alter_table_option ::= COMMENT NK_STRING */
|
|
{ yymsp[-1].minor.yy117.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 233: /* alter_table_option ::= TTL NK_INTEGER */
|
|
{ yymsp[-1].minor.yy117.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy117.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 234: /* duration_list ::= duration_literal */
|
|
case 461: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==461);
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 235: /* duration_list ::= duration_list NK_COMMA duration_literal */
|
|
case 462: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==462);
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 238: /* rollup_func_name ::= function_name */
|
|
{ yylhsminor.yy232 = createFunctionNode(pCxt, &yymsp[0].minor.yy993, NULL); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 239: /* rollup_func_name ::= FIRST */
|
|
case 240: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==240);
|
|
case 308: /* tag_item ::= QTAGS */ yytestcase(yyruleno==308);
|
|
{ yylhsminor.yy232 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 243: /* col_name ::= column_name */
|
|
case 309: /* tag_item ::= column_name */ yytestcase(yyruleno==309);
|
|
{ yylhsminor.yy232 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy993); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 244: /* cmd ::= SHOW DNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
|
|
break;
|
|
case 245: /* cmd ::= SHOW USERS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
|
|
break;
|
|
case 246: /* cmd ::= SHOW USER PRIVILEGES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
|
|
break;
|
|
case 247: /* cmd ::= SHOW db_kind_opt DATABASES */
|
|
{
|
|
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
|
|
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy281);
|
|
}
|
|
break;
|
|
case 248: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
{
|
|
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy133, yymsp[0].minor.yy232, OP_TYPE_LIKE);
|
|
}
|
|
break;
|
|
case 249: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy232, yymsp[0].minor.yy232, OP_TYPE_LIKE); }
|
|
break;
|
|
case 250: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy232, NULL, OP_TYPE_LIKE); }
|
|
break;
|
|
case 251: /* cmd ::= SHOW MNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
|
break;
|
|
case 252: /* cmd ::= SHOW QNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
|
break;
|
|
case 253: /* cmd ::= SHOW FUNCTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
|
break;
|
|
case 254: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy232, yymsp[-1].minor.yy232, OP_TYPE_EQUAL); }
|
|
break;
|
|
case 255: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy993), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy993), OP_TYPE_EQUAL); }
|
|
break;
|
|
case 256: /* cmd ::= SHOW STREAMS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
|
|
break;
|
|
case 257: /* cmd ::= SHOW ACCOUNTS */
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
break;
|
|
case 258: /* cmd ::= SHOW APPS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
|
break;
|
|
case 259: /* cmd ::= SHOW CONNECTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
|
break;
|
|
case 260: /* cmd ::= SHOW LICENCES */
|
|
case 261: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==261);
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
|
|
break;
|
|
case 262: /* cmd ::= SHOW CREATE DATABASE db_name */
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 263: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 264: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 265: /* cmd ::= SHOW QUERIES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
|
break;
|
|
case 266: /* cmd ::= SHOW SCORES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
|
break;
|
|
case 267: /* cmd ::= SHOW TOPICS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
|
break;
|
|
case 268: /* cmd ::= SHOW VARIABLES */
|
|
case 269: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==269);
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
|
|
break;
|
|
case 270: /* cmd ::= SHOW LOCAL VARIABLES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
|
|
break;
|
|
case 271: /* 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.yy232); }
|
|
break;
|
|
case 272: /* cmd ::= SHOW BNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
|
break;
|
|
case 273: /* cmd ::= SHOW SNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
|
break;
|
|
case 274: /* cmd ::= SHOW CLUSTER */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
|
|
break;
|
|
case 275: /* cmd ::= SHOW TRANSACTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
|
|
break;
|
|
case 276: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 277: /* cmd ::= SHOW CONSUMERS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
|
|
break;
|
|
case 278: /* cmd ::= SHOW SUBSCRIPTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
|
|
break;
|
|
case 279: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy232, yymsp[-1].minor.yy232, OP_TYPE_EQUAL); }
|
|
break;
|
|
case 280: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy993), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy993), OP_TYPE_EQUAL); }
|
|
break;
|
|
case 281: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy232, yymsp[0].minor.yy232, yymsp[-3].minor.yy88); }
|
|
break;
|
|
case 282: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy993), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy993), yymsp[-4].minor.yy88); }
|
|
break;
|
|
case 283: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
|
|
break;
|
|
case 284: /* cmd ::= SHOW VNODES */
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
|
|
break;
|
|
case 285: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy232, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
|
break;
|
|
case 286: /* cmd ::= SHOW CLUSTER ALIVE */
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
|
break;
|
|
case 287: /* cmd ::= SHOW db_name_cond_opt VIEWS */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-1].minor.yy232, NULL, OP_TYPE_LIKE); }
|
|
break;
|
|
case 288: /* cmd ::= SHOW CREATE VIEW full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 289: /* cmd ::= SHOW COMPACTS */
|
|
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
|
|
break;
|
|
case 290: /* cmd ::= SHOW COMPACT NK_INTEGER */
|
|
{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
break;
|
|
case 291: /* table_kind_db_name_cond_opt ::= */
|
|
{ yymsp[1].minor.yy133.kind = SHOW_KIND_ALL; yymsp[1].minor.yy133.dbName = nil_token; }
|
|
break;
|
|
case 292: /* table_kind_db_name_cond_opt ::= table_kind */
|
|
{ yylhsminor.yy133.kind = yymsp[0].minor.yy281; yylhsminor.yy133.dbName = nil_token; }
|
|
yymsp[0].minor.yy133 = yylhsminor.yy133;
|
|
break;
|
|
case 293: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
{ yylhsminor.yy133.kind = SHOW_KIND_ALL; yylhsminor.yy133.dbName = yymsp[-1].minor.yy993; }
|
|
yymsp[-1].minor.yy133 = yylhsminor.yy133;
|
|
break;
|
|
case 294: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
{ yylhsminor.yy133.kind = yymsp[-2].minor.yy281; yylhsminor.yy133.dbName = yymsp[-1].minor.yy993; }
|
|
yymsp[-2].minor.yy133 = yylhsminor.yy133;
|
|
break;
|
|
case 295: /* table_kind ::= NORMAL */
|
|
{ yymsp[0].minor.yy281 = SHOW_KIND_TABLES_NORMAL; }
|
|
break;
|
|
case 296: /* table_kind ::= CHILD */
|
|
{ yymsp[0].minor.yy281 = SHOW_KIND_TABLES_CHILD; }
|
|
break;
|
|
case 297: /* db_name_cond_opt ::= */
|
|
case 302: /* from_db_opt ::= */ yytestcase(yyruleno==302);
|
|
{ yymsp[1].minor.yy232 = createDefaultDatabaseCondValue(pCxt); }
|
|
break;
|
|
case 298: /* db_name_cond_opt ::= db_name NK_DOT */
|
|
{ yylhsminor.yy232 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy993); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 300: /* like_pattern_opt ::= LIKE NK_STRING */
|
|
{ yymsp[-1].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 301: /* table_name_cond ::= table_name */
|
|
{ yylhsminor.yy232 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy993); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 303: /* from_db_opt ::= FROM db_name */
|
|
{ yymsp[-1].minor.yy232 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 307: /* tag_item ::= TBNAME */
|
|
{ yylhsminor.yy232 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 310: /* tag_item ::= column_name column_alias */
|
|
{ yylhsminor.yy232 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy993), &yymsp[0].minor.yy993); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 311: /* tag_item ::= column_name AS column_alias */
|
|
{ yylhsminor.yy232 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy993), &yymsp[0].minor.yy993); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 312: /* db_kind_opt ::= */
|
|
{ yymsp[1].minor.yy281 = SHOW_KIND_ALL; }
|
|
break;
|
|
case 313: /* db_kind_opt ::= USER */
|
|
{ yymsp[0].minor.yy281 = SHOW_KIND_DATABASES_USER; }
|
|
break;
|
|
case 314: /* db_kind_opt ::= SYSTEM */
|
|
{ yymsp[0].minor.yy281 = SHOW_KIND_DATABASES_SYSTEM; }
|
|
break;
|
|
case 315: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy985, yymsp[-3].minor.yy232, yymsp[-1].minor.yy232, NULL, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 316: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy985, yymsp[-5].minor.yy232, yymsp[-3].minor.yy232, yymsp[-1].minor.yy88, NULL); }
|
|
break;
|
|
case 317: /* cmd ::= DROP INDEX exists_opt full_index_name */
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy985, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 318: /* full_index_name ::= index_name */
|
|
{ yylhsminor.yy232 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy993); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 319: /* full_index_name ::= db_name NK_DOT index_name */
|
|
{ yylhsminor.yy232 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy993); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 320: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
{ yymsp[-9].minor.yy232 = createIndexOption(pCxt, yymsp[-7].minor.yy88, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), NULL, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 321: /* 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.yy232 = createIndexOption(pCxt, yymsp[-9].minor.yy88, releaseRawExprNode(pCxt, yymsp[-5].minor.yy232), releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), yymsp[-1].minor.yy232, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 324: /* func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
{ yylhsminor.yy232 = createFunctionNode(pCxt, &yymsp[-3].minor.yy993, yymsp[-1].minor.yy88); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 325: /* sma_func_name ::= function_name */
|
|
case 550: /* alias_opt ::= table_alias */ yytestcase(yyruleno==550);
|
|
{ yylhsminor.yy993 = yymsp[0].minor.yy993; }
|
|
yymsp[0].minor.yy993 = yylhsminor.yy993;
|
|
break;
|
|
case 330: /* sma_stream_opt ::= */
|
|
case 375: /* stream_options ::= */ yytestcase(yyruleno==375);
|
|
{ yymsp[1].minor.yy232 = createStreamOptions(pCxt); }
|
|
break;
|
|
case 331: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy232)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); yylhsminor.yy232 = yymsp[-2].minor.yy232; }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 332: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy232)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); yylhsminor.yy232 = yymsp[-2].minor.yy232; }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 333: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy232)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); yylhsminor.yy232 = yymsp[-2].minor.yy232; }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 334: /* with_meta ::= AS */
|
|
{ yymsp[0].minor.yy92 = 0; }
|
|
break;
|
|
case 335: /* with_meta ::= WITH META AS */
|
|
{ yymsp[-2].minor.yy92 = 1; }
|
|
break;
|
|
case 336: /* with_meta ::= ONLY META AS */
|
|
{ yymsp[-2].minor.yy92 = 2; }
|
|
break;
|
|
case 337: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy985, &yymsp[-2].minor.yy993, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 338: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy985, &yymsp[-3].minor.yy993, &yymsp[0].minor.yy993, yymsp[-2].minor.yy92); }
|
|
break;
|
|
case 339: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy985, &yymsp[-4].minor.yy993, yymsp[-1].minor.yy232, yymsp[-3].minor.yy92, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 340: /* cmd ::= DROP TOPIC exists_opt topic_name */
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 341: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy985, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 342: /* cmd ::= DESC full_table_name */
|
|
case 343: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==343);
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 344: /* cmd ::= RESET QUERY CACHE */
|
|
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
|
|
break;
|
|
case 345: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
case 346: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==346);
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy985, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 349: /* explain_options ::= */
|
|
{ yymsp[1].minor.yy232 = createDefaultExplainOptions(pCxt); }
|
|
break;
|
|
case 350: /* explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
{ yylhsminor.yy232 = setExplainVerbose(pCxt, yymsp[-2].minor.yy232, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 351: /* explain_options ::= explain_options RATIO NK_FLOAT */
|
|
{ yylhsminor.yy232 = setExplainRatio(pCxt, yymsp[-2].minor.yy232, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 352: /* 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.yy985, yymsp[-9].minor.yy985, &yymsp[-6].minor.yy993, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy400, yymsp[-1].minor.yy92, &yymsp[0].minor.yy993, yymsp[-10].minor.yy985); }
|
|
break;
|
|
case 353: /* cmd ::= DROP FUNCTION exists_opt function_name */
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 358: /* language_opt ::= */
|
|
case 397: /* on_vgroup_id ::= */ yytestcase(yyruleno==397);
|
|
{ yymsp[1].minor.yy993 = nil_token; }
|
|
break;
|
|
case 359: /* language_opt ::= LANGUAGE NK_STRING */
|
|
case 398: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==398);
|
|
{ yymsp[-1].minor.yy993 = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 362: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy985, yymsp[-2].minor.yy232, &yymsp[-1].minor.yy0, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 363: /* cmd ::= DROP VIEW exists_opt full_view_name */
|
|
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy985, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 364: /* full_view_name ::= view_name */
|
|
{ yylhsminor.yy232 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy993); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 365: /* full_view_name ::= db_name NK_DOT view_name */
|
|
{ yylhsminor.yy232 = createViewNode(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy993); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 366: /* 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.yy985, &yymsp[-8].minor.yy993, yymsp[-5].minor.yy232, yymsp[-7].minor.yy232, yymsp[-3].minor.yy88, yymsp[-2].minor.yy232, yymsp[0].minor.yy232, yymsp[-4].minor.yy88); }
|
|
break;
|
|
case 367: /* cmd ::= DROP STREAM exists_opt stream_name */
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 368: /* cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 369: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy985, yymsp[-1].minor.yy985, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 376: /* stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
case 377: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==377);
|
|
{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-2].minor.yy232, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 378: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-3].minor.yy232, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 379: /* stream_options ::= stream_options WATERMARK duration_literal */
|
|
{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-2].minor.yy232, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 380: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-3].minor.yy232, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 381: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-2].minor.yy232, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 382: /* stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-2].minor.yy232, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 383: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-3].minor.yy232, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 385: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
case 588: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==588);
|
|
case 612: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==612);
|
|
{ yymsp[-3].minor.yy232 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy232); }
|
|
break;
|
|
case 388: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 389: /* cmd ::= KILL QUERY NK_STRING */
|
|
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 390: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 391: /* cmd ::= KILL COMPACT NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 392: /* cmd ::= BALANCE VGROUP */
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
|
break;
|
|
case 393: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy993); }
|
|
break;
|
|
case 394: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 395: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy88); }
|
|
break;
|
|
case 396: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 399: /* dnode_list ::= DNODE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy88 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
break;
|
|
case 401: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 404: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
{ yymsp[-6].minor.yy232 = createInsertStmt(pCxt, yymsp[-4].minor.yy232, yymsp[-2].minor.yy88, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 405: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
{ yymsp[-3].minor.yy232 = createInsertStmt(pCxt, yymsp[-1].minor.yy232, NULL, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 406: /* literal ::= NK_INTEGER */
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 407: /* literal ::= NK_FLOAT */
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 408: /* literal ::= NK_STRING */
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 409: /* literal ::= NK_BOOL */
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 410: /* literal ::= TIMESTAMP NK_STRING */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 411: /* literal ::= duration_literal */
|
|
case 421: /* signed_literal ::= signed */ yytestcase(yyruleno==421);
|
|
case 444: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==444);
|
|
case 445: /* expression ::= literal */ yytestcase(yyruleno==445);
|
|
case 447: /* expression ::= column_reference */ yytestcase(yyruleno==447);
|
|
case 448: /* expression ::= function_expression */ yytestcase(yyruleno==448);
|
|
case 449: /* expression ::= case_when_expression */ yytestcase(yyruleno==449);
|
|
case 482: /* function_expression ::= literal_func */ yytestcase(yyruleno==482);
|
|
case 531: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==531);
|
|
case 535: /* boolean_primary ::= predicate */ yytestcase(yyruleno==535);
|
|
case 537: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==537);
|
|
case 538: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==538);
|
|
case 541: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==541);
|
|
case 543: /* table_reference ::= table_primary */ yytestcase(yyruleno==543);
|
|
case 544: /* table_reference ::= joined_table */ yytestcase(yyruleno==544);
|
|
case 548: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==548);
|
|
case 614: /* query_simple ::= query_specification */ yytestcase(yyruleno==614);
|
|
case 615: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==615);
|
|
case 618: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==618);
|
|
case 620: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==620);
|
|
{ yylhsminor.yy232 = yymsp[0].minor.yy232; }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 412: /* literal ::= NULL */
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 413: /* literal ::= NK_QUESTION */
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 414: /* duration_literal ::= NK_VARIABLE */
|
|
case 589: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==589);
|
|
case 590: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==590);
|
|
case 591: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==591);
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 415: /* signed ::= NK_INTEGER */
|
|
{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 416: /* signed ::= NK_PLUS NK_INTEGER */
|
|
{ yymsp[-1].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 417: /* 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.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
|
}
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 418: /* signed ::= NK_FLOAT */
|
|
{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 419: /* signed ::= NK_PLUS NK_FLOAT */
|
|
{ yymsp[-1].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 420: /* 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.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
|
}
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 422: /* signed_literal ::= NK_STRING */
|
|
{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 423: /* signed_literal ::= NK_BOOL */
|
|
{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 424: /* signed_literal ::= TIMESTAMP NK_STRING */
|
|
{ yymsp[-1].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 425: /* signed_literal ::= duration_literal */
|
|
case 427: /* signed_literal ::= literal_func */ yytestcase(yyruleno==427);
|
|
case 502: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==502);
|
|
case 568: /* select_item ::= common_expression */ yytestcase(yyruleno==568);
|
|
case 578: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==578);
|
|
case 619: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==619);
|
|
case 621: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==621);
|
|
case 634: /* search_condition ::= common_expression */ yytestcase(yyruleno==634);
|
|
{ yylhsminor.yy232 = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 426: /* signed_literal ::= NULL */
|
|
{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 428: /* signed_literal ::= NK_QUESTION */
|
|
{ yylhsminor.yy232 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 446: /* expression ::= pseudo_column */
|
|
{ yylhsminor.yy232 = yymsp[0].minor.yy232; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy232, true); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 450: /* expression ::= NK_LP expression NK_RP */
|
|
case 536: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==536);
|
|
case 633: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==633);
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 451: /* expression ::= NK_PLUS expr_or_subquery */
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy232));
|
|
}
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 452: /* expression ::= NK_MINUS expr_or_subquery */
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy232), NULL));
|
|
}
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 453: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 454: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 455: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 456: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 457: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 458: /* expression ::= column_reference NK_ARROW NK_STRING */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 459: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 460: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 463: /* column_reference ::= column_name */
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy993, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy993)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 464: /* column_reference ::= table_name NK_DOT column_name */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy993, createColumnNode(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy993)); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 465: /* column_reference ::= NK_ALIAS */
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 466: /* column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 467: /* pseudo_column ::= ROWTS */
|
|
case 468: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==468);
|
|
case 470: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==470);
|
|
case 471: /* pseudo_column ::= QEND */ yytestcase(yyruleno==471);
|
|
case 472: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==472);
|
|
case 473: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==473);
|
|
case 474: /* pseudo_column ::= WEND */ yytestcase(yyruleno==474);
|
|
case 475: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==475);
|
|
case 476: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==476);
|
|
case 477: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==477);
|
|
case 478: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==478);
|
|
case 484: /* literal_func ::= NOW */ yytestcase(yyruleno==484);
|
|
{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 469: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy993)))); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 479: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
case 480: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==480);
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy993, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy993, yymsp[-1].minor.yy88)); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 481: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), yymsp[-1].minor.yy400)); }
|
|
yymsp[-5].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 483: /* literal_func ::= noarg_func NK_LP NK_RP */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy993, NULL)); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 498: /* star_func_para_list ::= NK_STAR */
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 503: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
case 571: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==571);
|
|
{ yylhsminor.yy232 = createColumnNode(pCxt, &yymsp[-2].minor.yy993, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 504: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy88, yymsp[-1].minor.yy232)); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 505: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), yymsp[-2].minor.yy88, yymsp[-1].minor.yy232)); }
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 508: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
{ yymsp[-3].minor.yy232 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); }
|
|
break;
|
|
case 510: /* case_when_else_opt ::= ELSE common_expression */
|
|
{ yymsp[-1].minor.yy232 = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 511: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
case 516: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==516);
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy708, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 512: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy232), releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-4].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 513: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy232), releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-5].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 514: /* predicate ::= expr_or_subquery IS NULL */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), NULL));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 515: /* predicate ::= expr_or_subquery IS NOT NULL */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), NULL));
|
|
}
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 517: /* compare_op ::= NK_LT */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_LOWER_THAN; }
|
|
break;
|
|
case 518: /* compare_op ::= NK_GT */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_GREATER_THAN; }
|
|
break;
|
|
case 519: /* compare_op ::= NK_LE */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_LOWER_EQUAL; }
|
|
break;
|
|
case 520: /* compare_op ::= NK_GE */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_GREATER_EQUAL; }
|
|
break;
|
|
case 521: /* compare_op ::= NK_NE */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_NOT_EQUAL; }
|
|
break;
|
|
case 522: /* compare_op ::= NK_EQ */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_EQUAL; }
|
|
break;
|
|
case 523: /* compare_op ::= LIKE */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_LIKE; }
|
|
break;
|
|
case 524: /* compare_op ::= NOT LIKE */
|
|
{ yymsp[-1].minor.yy708 = OP_TYPE_NOT_LIKE; }
|
|
break;
|
|
case 525: /* compare_op ::= MATCH */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_MATCH; }
|
|
break;
|
|
case 526: /* compare_op ::= NMATCH */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_NMATCH; }
|
|
break;
|
|
case 527: /* compare_op ::= CONTAINS */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_JSON_CONTAINS; }
|
|
break;
|
|
case 528: /* in_op ::= IN */
|
|
{ yymsp[0].minor.yy708 = OP_TYPE_IN; }
|
|
break;
|
|
case 529: /* in_op ::= NOT IN */
|
|
{ yymsp[-1].minor.yy708 = OP_TYPE_NOT_IN; }
|
|
break;
|
|
case 530: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy88)); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 532: /* boolean_value_expression ::= NOT boolean_primary */
|
|
{
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy232), NULL));
|
|
}
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 533: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 534: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232);
|
|
yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)));
|
|
}
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 542: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
{ yylhsminor.yy232 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy232, yymsp[0].minor.yy232, NULL); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 545: /* table_primary ::= table_name alias_opt */
|
|
{ yylhsminor.yy232 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy993, &yymsp[0].minor.yy993); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 546: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
{ yylhsminor.yy232 = createRealTableNode(pCxt, &yymsp[-3].minor.yy993, &yymsp[-1].minor.yy993, &yymsp[0].minor.yy993); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 547: /* table_primary ::= subquery alias_opt */
|
|
{ yylhsminor.yy232 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232), &yymsp[0].minor.yy993); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 549: /* alias_opt ::= */
|
|
{ yymsp[1].minor.yy993 = nil_token; }
|
|
break;
|
|
case 551: /* alias_opt ::= AS table_alias */
|
|
{ yymsp[-1].minor.yy993 = yymsp[0].minor.yy993; }
|
|
break;
|
|
case 552: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
case 553: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==553);
|
|
{ yymsp[-2].minor.yy232 = yymsp[-1].minor.yy232; }
|
|
break;
|
|
case 554: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
{ yylhsminor.yy232 = createJoinTableNode(pCxt, yymsp[-4].minor.yy436, yymsp[-5].minor.yy232, yymsp[-2].minor.yy232, yymsp[0].minor.yy232); }
|
|
yymsp[-5].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 555: /* join_type ::= */
|
|
{ yymsp[1].minor.yy436 = JOIN_TYPE_INNER; }
|
|
break;
|
|
case 556: /* join_type ::= INNER */
|
|
{ yymsp[0].minor.yy436 = JOIN_TYPE_INNER; }
|
|
break;
|
|
case 557: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
{
|
|
yymsp[-13].minor.yy232 = createSelectStmt(pCxt, yymsp[-11].minor.yy985, yymsp[-9].minor.yy88, yymsp[-8].minor.yy232, yymsp[-12].minor.yy88);
|
|
yymsp[-13].minor.yy232 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy232, yymsp[-10].minor.yy985);
|
|
yymsp[-13].minor.yy232 = addWhereClause(pCxt, yymsp[-13].minor.yy232, yymsp[-7].minor.yy232);
|
|
yymsp[-13].minor.yy232 = addPartitionByClause(pCxt, yymsp[-13].minor.yy232, yymsp[-6].minor.yy88);
|
|
yymsp[-13].minor.yy232 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy232, yymsp[-2].minor.yy232);
|
|
yymsp[-13].minor.yy232 = addGroupByClause(pCxt, yymsp[-13].minor.yy232, yymsp[-1].minor.yy88);
|
|
yymsp[-13].minor.yy232 = addHavingClause(pCxt, yymsp[-13].minor.yy232, yymsp[0].minor.yy232);
|
|
yymsp[-13].minor.yy232 = addRangeClause(pCxt, yymsp[-13].minor.yy232, yymsp[-5].minor.yy232);
|
|
yymsp[-13].minor.yy232 = addEveryClause(pCxt, yymsp[-13].minor.yy232, yymsp[-4].minor.yy232);
|
|
yymsp[-13].minor.yy232 = addFillClause(pCxt, yymsp[-13].minor.yy232, yymsp[-3].minor.yy232);
|
|
}
|
|
break;
|
|
case 558: /* hint_list ::= */
|
|
{ yymsp[1].minor.yy88 = createHintNodeList(pCxt, NULL); }
|
|
break;
|
|
case 559: /* hint_list ::= NK_HINT */
|
|
{ yylhsminor.yy88 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 564: /* set_quantifier_opt ::= ALL */
|
|
{ yymsp[0].minor.yy985 = false; }
|
|
break;
|
|
case 567: /* select_item ::= NK_STAR */
|
|
{ yylhsminor.yy232 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 569: /* select_item ::= common_expression column_alias */
|
|
case 579: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==579);
|
|
{ yylhsminor.yy232 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232), &yymsp[0].minor.yy993); }
|
|
yymsp[-1].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 570: /* select_item ::= common_expression AS column_alias */
|
|
case 580: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==580);
|
|
{ yylhsminor.yy232 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), &yymsp[0].minor.yy993); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 575: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
case 603: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==603);
|
|
case 623: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==623);
|
|
{ yymsp[-2].minor.yy88 = yymsp[0].minor.yy88; }
|
|
break;
|
|
case 582: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
{ yymsp[-5].minor.yy232 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); }
|
|
break;
|
|
case 583: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
{ yymsp[-3].minor.yy232 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); }
|
|
break;
|
|
case 584: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
{ yymsp[-5].minor.yy232 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), NULL, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 585: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
{ yymsp[-7].minor.yy232 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy232), releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), yymsp[-1].minor.yy232, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 586: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
{ yymsp[-6].minor.yy232 = createEventWindowNode(pCxt, yymsp[-3].minor.yy232, yymsp[0].minor.yy232); }
|
|
break;
|
|
case 593: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
{ yymsp[-3].minor.yy232 = createFillNode(pCxt, yymsp[-1].minor.yy246, NULL); }
|
|
break;
|
|
case 594: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
{ yymsp[-5].minor.yy232 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy88)); }
|
|
break;
|
|
case 595: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
{ yymsp[-5].minor.yy232 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy88)); }
|
|
break;
|
|
case 596: /* fill_mode ::= NONE */
|
|
{ yymsp[0].minor.yy246 = FILL_MODE_NONE; }
|
|
break;
|
|
case 597: /* fill_mode ::= PREV */
|
|
{ yymsp[0].minor.yy246 = FILL_MODE_PREV; }
|
|
break;
|
|
case 598: /* fill_mode ::= NULL */
|
|
{ yymsp[0].minor.yy246 = FILL_MODE_NULL; }
|
|
break;
|
|
case 599: /* fill_mode ::= NULL_F */
|
|
{ yymsp[0].minor.yy246 = FILL_MODE_NULL_F; }
|
|
break;
|
|
case 600: /* fill_mode ::= LINEAR */
|
|
{ yymsp[0].minor.yy246 = FILL_MODE_LINEAR; }
|
|
break;
|
|
case 601: /* fill_mode ::= NEXT */
|
|
{ yymsp[0].minor.yy246 = FILL_MODE_NEXT; }
|
|
break;
|
|
case 604: /* group_by_list ::= expr_or_subquery */
|
|
{ yylhsminor.yy88 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); }
|
|
yymsp[0].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 605: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); }
|
|
yymsp[-2].minor.yy88 = yylhsminor.yy88;
|
|
break;
|
|
case 609: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
{ yymsp[-5].minor.yy232 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); }
|
|
break;
|
|
case 610: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
{ yymsp[-3].minor.yy232 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); }
|
|
break;
|
|
case 613: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
{
|
|
yylhsminor.yy232 = addOrderByClause(pCxt, yymsp[-3].minor.yy232, yymsp[-2].minor.yy88);
|
|
yylhsminor.yy232 = addSlimitClause(pCxt, yylhsminor.yy232, yymsp[-1].minor.yy232);
|
|
yylhsminor.yy232 = addLimitClause(pCxt, yylhsminor.yy232, yymsp[0].minor.yy232);
|
|
}
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 616: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
{ yylhsminor.yy232 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy232, yymsp[0].minor.yy232); }
|
|
yymsp[-3].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 617: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
{ yylhsminor.yy232 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy232, yymsp[0].minor.yy232); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 625: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
case 629: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==629);
|
|
{ yymsp[-1].minor.yy232 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 626: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
case 630: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==630);
|
|
{ yymsp[-3].minor.yy232 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 627: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
case 631: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==631);
|
|
{ yymsp[-3].minor.yy232 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
|
break;
|
|
case 632: /* subquery ::= NK_LP query_expression NK_RP */
|
|
{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy232); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 637: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
{ yylhsminor.yy232 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), yymsp[-1].minor.yy834, yymsp[0].minor.yy153); }
|
|
yymsp[-2].minor.yy232 = yylhsminor.yy232;
|
|
break;
|
|
case 638: /* ordering_specification_opt ::= */
|
|
{ yymsp[1].minor.yy834 = ORDER_ASC; }
|
|
break;
|
|
case 639: /* ordering_specification_opt ::= ASC */
|
|
{ yymsp[0].minor.yy834 = ORDER_ASC; }
|
|
break;
|
|
case 640: /* ordering_specification_opt ::= DESC */
|
|
{ yymsp[0].minor.yy834 = ORDER_DESC; }
|
|
break;
|
|
case 641: /* null_ordering_opt ::= */
|
|
{ yymsp[1].minor.yy153 = NULL_ORDER_DEFAULT; }
|
|
break;
|
|
case 642: /* null_ordering_opt ::= NULLS FIRST */
|
|
{ yymsp[-1].minor.yy153 = NULL_ORDER_FIRST; }
|
|
break;
|
|
case 643: /* null_ordering_opt ::= NULLS LAST */
|
|
{ yymsp[-1].minor.yy153 = 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
|
|
}
|