mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
6931 lines
360 KiB
C
6931 lines
360 KiB
C
/*
|
|
** 2000-05-29
|
|
**
|
|
** The author disclaims copyright to this source code. In place of
|
|
** a legal notice, here is a blessing:
|
|
**
|
|
** May you do good and not evil.
|
|
** May you find forgiveness for yourself and forgive others.
|
|
** May you share freely, never taking more than you give.
|
|
**
|
|
*************************************************************************
|
|
** Driver template for the LEMON parser generator.
|
|
**
|
|
** The "lemon" program processes an LALR(1) input grammar file, then uses
|
|
** this template to construct a parser. The "lemon" program inserts text
|
|
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
|
|
** interstitial "-" characters) contained in this template is changed into
|
|
** the value of the %name directive from the grammar. Otherwise, the content
|
|
** of this template is copied straight through into the generate parser
|
|
** source file.
|
|
**
|
|
** The following is the concatenation of all %include directives from the
|
|
** input grammar file:
|
|
*/
|
|
#include <stdio.h>
|
|
#include <assert.h>
|
|
/************ Begin %include sections from the grammar ************************/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
|
|
#define ALLOW_FORBID_FUNC
|
|
|
|
#include "functionMgt.h"
|
|
#include "nodes.h"
|
|
#include "parToken.h"
|
|
#include "ttokendef.h"
|
|
#include "parAst.h"
|
|
|
|
#define YYSTACKDEPTH 0
|
|
/**************** End of %include directives **********************************/
|
|
/* These constants specify the various numeric values for terminal symbols
|
|
** in a format understandable to "makeheaders". This section is blank unless
|
|
** "lemon" is run with the "-m" command-line option.
|
|
***************** Begin makeheaders token definitions *************************/
|
|
/**************** End makeheaders token definitions ***************************/
|
|
|
|
/* The next sections is a series of control #defines.
|
|
** various aspects of the generated parser.
|
|
** YYCODETYPE is the data type used to store the integer codes
|
|
** that represent terminal and non-terminal symbols.
|
|
** "unsigned char" is used if there are fewer than
|
|
** 256 symbols. Larger types otherwise.
|
|
** YYNOCODE is a number of type YYCODETYPE that is not used for
|
|
** any terminal or nonterminal symbol.
|
|
** YYFALLBACK If defined, this indicates that one or more tokens
|
|
** (also known as: "terminal symbols") have fall-back
|
|
** values which should be used if the original symbol
|
|
** would not parse. This permits keywords to sometimes
|
|
** be used as identifiers, for example.
|
|
** YYACTIONTYPE is the data type used for "action codes" - numbers
|
|
** that indicate what to do in response to the next
|
|
** token.
|
|
** ParseTOKENTYPE is the data type used for minor type for terminal
|
|
** symbols. Background: A "minor type" is a semantic
|
|
** value associated with a terminal or non-terminal
|
|
** symbols. For example, for an "ID" terminal symbol,
|
|
** the minor type might be the name of the identifier.
|
|
** Each non-terminal can have a different minor type.
|
|
** Terminal symbols all have the same minor type, though.
|
|
** This macros defines the minor type for terminal
|
|
** symbols.
|
|
** YYMINORTYPE is the data type used for all minor types.
|
|
** This is typically a union of many types, one of
|
|
** which is ParseTOKENTYPE. The entry in the union
|
|
** for terminal symbols is called "yy0".
|
|
** YYSTACKDEPTH is the maximum depth of the parser's stack. If
|
|
** zero the stack is dynamically sized using realloc()
|
|
** ParseARG_SDECL A static variable declaration for the %extra_argument
|
|
** ParseARG_PDECL A parameter declaration for the %extra_argument
|
|
** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter
|
|
** ParseARG_STORE Code to store %extra_argument into yypParser
|
|
** ParseARG_FETCH Code to extract %extra_argument from yypParser
|
|
** ParseCTX_* As ParseARG_ except for %extra_context
|
|
** YYERRORSYMBOL is the code number of the error symbol. If not
|
|
** defined, then do no error processing.
|
|
** YYNSTATE the combined number of states.
|
|
** YYNRULE the number of rules in the grammar
|
|
** YYNTOKEN Number of terminal symbols
|
|
** YY_MAX_SHIFT Maximum value for shift actions
|
|
** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions
|
|
** YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions
|
|
** YY_ERROR_ACTION The yy_action[] code for syntax error
|
|
** YY_ACCEPT_ACTION The yy_action[] code for accept
|
|
** YY_NO_ACTION The yy_action[] code for no-op
|
|
** YY_MIN_REDUCE Minimum value for reduce actions
|
|
** YY_MAX_REDUCE Maximum value for reduce actions
|
|
*/
|
|
#ifndef INTERFACE
|
|
# define INTERFACE 1
|
|
#endif
|
|
/************* Begin control #defines *****************************************/
|
|
#define YYCODETYPE unsigned short int
|
|
#define YYNOCODE 521
|
|
#define YYACTIONTYPE unsigned short int
|
|
#define ParseTOKENTYPE SToken
|
|
typedef union {
|
|
int yyinit;
|
|
ParseTOKENTYPE yy0;
|
|
SToken yy213;
|
|
EShowKind yy217;
|
|
STokenPair yy285;
|
|
EJoinType yy310;
|
|
int32_t yy316;
|
|
int64_t yy337;
|
|
ENullOrder yy371;
|
|
int8_t yy379;
|
|
EOperatorType yy484;
|
|
SAlterOption yy549;
|
|
SNode* yy664;
|
|
EOrder yy798;
|
|
bool yy885;
|
|
SDataType yy892;
|
|
SShowTablesOption yy943;
|
|
EJoinSubType yy972;
|
|
EFillMode yy992;
|
|
SNodeList* yy1006;
|
|
} 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 850
|
|
#define YYNRULE 657
|
|
#define YYNRULE_WITH_ACTION 657
|
|
#define YYNTOKEN 356
|
|
#define YY_MAX_SHIFT 849
|
|
#define YY_MIN_SHIFTREDUCE 1264
|
|
#define YY_MAX_SHIFTREDUCE 1920
|
|
#define YY_ERROR_ACTION 1921
|
|
#define YY_ACCEPT_ACTION 1922
|
|
#define YY_NO_ACTION 1923
|
|
#define YY_MIN_REDUCE 1924
|
|
#define YY_MAX_REDUCE 2580
|
|
/************* 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 (2915)
|
|
static const YYACTIONTYPE yy_action[] = {
|
|
/* 0 */ 566, 2101, 423, 567, 1967, 241, 735, 2112, 702, 569,
|
|
/* 10 */ 168, 1975, 48, 46, 1844, 2551, 804, 402, 2114, 2073,
|
|
/* 20 */ 420, 1925, 1670, 41, 40, 2163, 212, 47, 45, 44,
|
|
/* 30 */ 43, 42, 1695, 701, 208, 1755, 2008, 1668, 2552, 703,
|
|
/* 40 */ 38, 325, 127, 1696, 2367, 126, 125, 124, 123, 122,
|
|
/* 50 */ 121, 120, 119, 118, 189, 173, 644, 717, 714, 146,
|
|
/* 60 */ 189, 41, 40, 2051, 1750, 47, 45, 44, 43, 42,
|
|
/* 70 */ 19, 642, 2165, 640, 273, 272, 388, 1676, 2227, 386,
|
|
/* 80 */ 1311, 714, 146, 2247, 2228, 2385, 30, 2163, 41, 40,
|
|
/* 90 */ 1696, 734, 47, 45, 44, 43, 42, 2333, 413, 751,
|
|
/* 100 */ 1409, 2244, 722, 846, 1309, 1310, 15, 476, 821, 820,
|
|
/* 110 */ 819, 818, 432, 692, 817, 816, 151, 811, 810, 809,
|
|
/* 120 */ 808, 807, 806, 805, 150, 799, 798, 797, 431, 430,
|
|
/* 130 */ 794, 793, 792, 188, 187, 791, 429, 428, 2366, 1867,
|
|
/* 140 */ 1411, 2404, 1757, 1758, 114, 2368, 755, 2370, 2371, 750,
|
|
/* 150 */ 95, 745, 533, 531, 1868, 370, 191, 702, 2457, 221,
|
|
/* 160 */ 1887, 1677, 416, 2453, 2551, 1589, 1590, 390, 184, 2465,
|
|
/* 170 */ 713, 574, 138, 712, 567, 1967, 2107, 1730, 1740, 2551,
|
|
/* 180 */ 2295, 209, 701, 208, 1756, 1759, 2247, 2552, 703, 2502,
|
|
/* 190 */ 716, 176, 2465, 2466, 1866, 144, 2470, 701, 208, 1671,
|
|
/* 200 */ 586, 1669, 2552, 703, 2245, 722, 1917, 1588, 1591, 9,
|
|
/* 210 */ 41, 40, 1501, 1502, 47, 45, 44, 43, 42, 127,
|
|
/* 220 */ 655, 227, 126, 125, 124, 123, 122, 121, 120, 119,
|
|
/* 230 */ 118, 1674, 1675, 1727, 278, 1729, 1732, 1733, 1734, 1735,
|
|
/* 240 */ 1736, 1737, 1738, 1739, 747, 743, 1748, 1749, 1751, 1752,
|
|
/* 250 */ 1753, 1754, 2, 48, 46, 2472, 1947, 734, 369, 170,
|
|
/* 260 */ 1693, 420, 90, 1670, 174, 89, 1936, 517, 571, 2367,
|
|
/* 270 */ 536, 734, 380, 34, 568, 535, 1755, 68, 1668, 41,
|
|
/* 280 */ 40, 2469, 752, 47, 45, 44, 43, 42, 277, 1875,
|
|
/* 290 */ 36, 499, 706, 537, 735, 2112, 41, 40, 501, 2343,
|
|
/* 300 */ 47, 45, 44, 43, 42, 1750, 1924, 201, 479, 2333,
|
|
/* 310 */ 2385, 19, 790, 2103, 137, 2472, 1784, 453, 1676, 2152,
|
|
/* 320 */ 1916, 609, 2333, 2347, 751, 1680, 1727, 2367, 1946, 88,
|
|
/* 330 */ 136, 135, 134, 133, 132, 131, 130, 129, 128, 653,
|
|
/* 340 */ 752, 2468, 1977, 51, 846, 389, 742, 15, 684, 683,
|
|
/* 350 */ 1873, 1874, 1876, 1877, 1878, 1695, 487, 51, 1823, 1824,
|
|
/* 360 */ 1825, 1826, 1827, 2366, 1638, 1639, 2404, 2349, 2385, 175,
|
|
/* 370 */ 2368, 755, 2370, 2371, 750, 2088, 745, 745, 1785, 63,
|
|
/* 380 */ 2333, 2333, 751, 1757, 1758, 148, 2234, 2213, 2428, 524,
|
|
/* 390 */ 523, 522, 521, 516, 515, 514, 513, 512, 507, 506,
|
|
/* 400 */ 505, 504, 372, 496, 495, 494, 243, 489, 488, 387,
|
|
/* 410 */ 569, 1848, 1975, 480, 1557, 1558, 2514, 1695, 1730, 1740,
|
|
/* 420 */ 1576, 2366, 2159, 2160, 2404, 1756, 1759, 114, 2368, 755,
|
|
/* 430 */ 2370, 2371, 750, 1698, 745, 1818, 1819, 1820, 1821, 2571,
|
|
/* 440 */ 1671, 2457, 1669, 457, 790, 416, 2453, 2477, 1818, 1819,
|
|
/* 450 */ 1820, 1821, 2477, 2477, 2477, 2477, 2477, 3, 37, 418,
|
|
/* 460 */ 1779, 1780, 1781, 1782, 1783, 1787, 1788, 1789, 1790, 54,
|
|
/* 470 */ 459, 455, 1674, 1675, 1727, 63, 1729, 1732, 1733, 1734,
|
|
/* 480 */ 1735, 1736, 1737, 1738, 1739, 747, 743, 1748, 1749, 1751,
|
|
/* 490 */ 1752, 1753, 1754, 2, 12, 48, 46, 1818, 1819, 1820,
|
|
/* 500 */ 1821, 2367, 1421, 420, 2165, 1670, 425, 1776, 633, 2158,
|
|
/* 510 */ 2160, 276, 1569, 1570, 752, 275, 309, 1420, 1755, 721,
|
|
/* 520 */ 1668, 735, 2112, 645, 47, 45, 44, 43, 42, 41,
|
|
/* 530 */ 40, 485, 2223, 47, 45, 44, 43, 42, 2367, 274,
|
|
/* 540 */ 2089, 137, 2385, 1695, 691, 1333, 1334, 1750, 614, 2343,
|
|
/* 550 */ 582, 717, 309, 19, 2333, 636, 751, 628, 627, 626,
|
|
/* 560 */ 1676, 707, 630, 2351, 618, 143, 622, 467, 271, 466,
|
|
/* 570 */ 621, 1945, 2385, 2347, 1731, 620, 625, 396, 395, 2385,
|
|
/* 580 */ 223, 619, 98, 538, 615, 375, 846, 63, 400, 15,
|
|
/* 590 */ 646, 2333, 307, 751, 1765, 2366, 735, 2112, 2404, 465,
|
|
/* 600 */ 1695, 114, 2368, 755, 2370, 2371, 750, 339, 745, 72,
|
|
/* 610 */ 2142, 149, 71, 156, 2428, 2457, 56, 2349, 417, 416,
|
|
/* 620 */ 2453, 429, 428, 1786, 2333, 1757, 1758, 745, 1886, 63,
|
|
/* 630 */ 1728, 1684, 2366, 690, 656, 2404, 2556, 12, 114, 2368,
|
|
/* 640 */ 755, 2370, 2371, 750, 1755, 745, 1677, 12, 309, 10,
|
|
/* 650 */ 191, 2367, 2457, 1698, 316, 317, 416, 2453, 2087, 315,
|
|
/* 660 */ 1730, 1740, 491, 2223, 752, 99, 2510, 1756, 1759, 624,
|
|
/* 670 */ 623, 2343, 1330, 1750, 1329, 788, 161, 160, 785, 784,
|
|
/* 680 */ 783, 158, 1671, 2503, 1669, 2352, 1676, 709, 1922, 142,
|
|
/* 690 */ 735, 2112, 2385, 41, 40, 2347, 1617, 47, 45, 44,
|
|
/* 700 */ 43, 42, 1699, 35, 2333, 1699, 751, 1331, 576, 2286,
|
|
/* 710 */ 473, 225, 741, 1791, 1674, 1675, 1727, 1676, 1729, 1732,
|
|
/* 720 */ 1733, 1734, 1735, 1736, 1737, 1738, 1739, 747, 743, 1748,
|
|
/* 730 */ 1749, 1751, 1752, 1753, 1754, 2, 48, 46, 1760, 2349,
|
|
/* 740 */ 1910, 106, 735, 2112, 420, 2366, 1670, 687, 2404, 745,
|
|
/* 750 */ 583, 114, 2368, 755, 2370, 2371, 750, 1731, 745, 1755,
|
|
/* 760 */ 309, 1668, 474, 2571, 76, 2457, 2105, 435, 2367, 416,
|
|
/* 770 */ 2453, 1670, 434, 52, 788, 161, 160, 785, 784, 783,
|
|
/* 780 */ 158, 752, 671, 2523, 2196, 2556, 1668, 781, 1750, 519,
|
|
/* 790 */ 2223, 2367, 2551, 788, 161, 160, 785, 784, 783, 158,
|
|
/* 800 */ 330, 1676, 309, 1425, 749, 2097, 584, 2240, 1685, 2385,
|
|
/* 810 */ 1680, 2555, 307, 1728, 87, 2552, 2554, 672, 1424, 527,
|
|
/* 820 */ 414, 2333, 2165, 751, 2551, 2052, 1676, 846, 171, 401,
|
|
/* 830 */ 49, 656, 2385, 735, 2112, 2099, 2114, 2163, 230, 1313,
|
|
/* 840 */ 1688, 1690, 2557, 208, 2333, 1694, 751, 2552, 703, 693,
|
|
/* 850 */ 688, 681, 846, 493, 743, 1748, 1749, 1751, 1752, 1753,
|
|
/* 860 */ 1754, 199, 2366, 1937, 204, 2404, 1757, 1758, 114, 2368,
|
|
/* 870 */ 755, 2370, 2371, 750, 1695, 745, 44, 43, 42, 613,
|
|
/* 880 */ 2571, 231, 2457, 612, 540, 2366, 416, 2453, 2404, 14,
|
|
/* 890 */ 13, 361, 2368, 755, 2370, 2371, 750, 748, 745, 736,
|
|
/* 900 */ 2422, 1730, 1740, 526, 525, 658, 2286, 2165, 1756, 1759,
|
|
/* 910 */ 782, 61, 1466, 2156, 410, 1700, 735, 2112, 1700, 669,
|
|
/* 920 */ 605, 604, 2163, 1671, 2555, 1669, 1457, 780, 779, 778,
|
|
/* 930 */ 1461, 777, 1463, 1464, 776, 773, 508, 1472, 770, 1474,
|
|
/* 940 */ 1475, 767, 764, 761, 786, 503, 309, 2156, 1671, 1330,
|
|
/* 950 */ 1669, 1329, 607, 606, 502, 1674, 1675, 1727, 710, 1729,
|
|
/* 960 */ 1732, 1733, 1734, 1735, 1736, 1737, 1738, 1739, 747, 743,
|
|
/* 970 */ 1748, 1749, 1751, 1752, 1753, 1754, 2, 48, 46, 2367,
|
|
/* 980 */ 1674, 1675, 1699, 469, 1331, 420, 2165, 1670, 468, 737,
|
|
/* 990 */ 2317, 2429, 752, 415, 679, 1798, 801, 735, 2112, 2165,
|
|
/* 1000 */ 1755, 2163, 1668, 41, 40, 423, 424, 47, 45, 44,
|
|
/* 1010 */ 43, 42, 2367, 171, 2163, 735, 2112, 509, 735, 2112,
|
|
/* 1020 */ 2385, 2114, 714, 146, 739, 752, 2429, 2544, 2095, 1750,
|
|
/* 1030 */ 2165, 1731, 2333, 672, 751, 510, 735, 2112, 585, 1944,
|
|
/* 1040 */ 2551, 442, 1676, 41, 40, 730, 1943, 47, 45, 44,
|
|
/* 1050 */ 43, 42, 1942, 2385, 735, 2112, 2109, 2116, 2557, 208,
|
|
/* 1060 */ 803, 171, 2472, 2552, 703, 2333, 2011, 751, 846, 2115,
|
|
/* 1070 */ 2556, 49, 1941, 2366, 279, 284, 2404, 2551, 2314, 114,
|
|
/* 1080 */ 2368, 755, 2370, 2371, 750, 1304, 745, 1728, 2467, 815,
|
|
/* 1090 */ 813, 2571, 2333, 2457, 95, 1940, 2555, 416, 2453, 2333,
|
|
/* 1100 */ 2552, 2553, 1860, 2326, 1311, 2333, 2366, 1757, 1758, 2404,
|
|
/* 1110 */ 563, 2327, 114, 2368, 755, 2370, 2371, 750, 561, 745,
|
|
/* 1120 */ 2108, 557, 553, 1841, 2571, 2333, 2457, 1306, 1309, 1310,
|
|
/* 1130 */ 416, 2453, 180, 2465, 2466, 1939, 144, 2470, 628, 627,
|
|
/* 1140 */ 626, 203, 1730, 1740, 746, 618, 143, 622, 2333, 1756,
|
|
/* 1150 */ 1759, 621, 2165, 672, 1699, 426, 620, 625, 396, 395,
|
|
/* 1160 */ 2551, 672, 619, 171, 1671, 615, 1669, 2164, 2551, 787,
|
|
/* 1170 */ 651, 2114, 2156, 657, 1952, 841, 714, 146, 2557, 208,
|
|
/* 1180 */ 202, 718, 2516, 2552, 703, 1695, 2557, 208, 2333, 1938,
|
|
/* 1190 */ 181, 2552, 703, 394, 393, 1700, 1674, 1675, 1727, 159,
|
|
/* 1200 */ 1729, 1732, 1733, 1734, 1735, 1736, 1737, 1738, 1739, 747,
|
|
/* 1210 */ 743, 1748, 1749, 1751, 1752, 1753, 1754, 2, 48, 46,
|
|
/* 1220 */ 672, 705, 2367, 672, 735, 2112, 420, 2551, 1670, 1935,
|
|
/* 1230 */ 2551, 672, 735, 2112, 2206, 752, 2090, 302, 2551, 735,
|
|
/* 1240 */ 2112, 1755, 2333, 1668, 287, 2557, 208, 159, 2557, 208,
|
|
/* 1250 */ 2552, 703, 720, 2552, 703, 1934, 2557, 208, 2367, 320,
|
|
/* 1260 */ 139, 2552, 703, 2385, 392, 391, 696, 611, 715, 152,
|
|
/* 1270 */ 1750, 752, 86, 55, 1995, 2333, 483, 751, 735, 2112,
|
|
/* 1280 */ 735, 2112, 2333, 1676, 735, 2112, 177, 2465, 2466, 613,
|
|
/* 1290 */ 144, 2470, 2367, 612, 735, 2112, 629, 1933, 732, 2385,
|
|
/* 1300 */ 733, 1932, 303, 214, 326, 752, 685, 264, 2333, 846,
|
|
/* 1310 */ 262, 2333, 15, 751, 427, 2367, 2366, 2354, 112, 2404,
|
|
/* 1320 */ 1931, 1633, 114, 2368, 755, 2370, 2371, 750, 752, 745,
|
|
/* 1330 */ 1830, 1986, 1930, 2385, 2571, 147, 2457, 1919, 1920, 266,
|
|
/* 1340 */ 416, 2453, 265, 2104, 648, 2333, 647, 751, 1757, 1758,
|
|
/* 1350 */ 2333, 141, 2366, 631, 2333, 2404, 2385, 616, 115, 2368,
|
|
/* 1360 */ 755, 2370, 2371, 750, 617, 745, 268, 1700, 2333, 267,
|
|
/* 1370 */ 751, 1929, 2457, 2333, 2356, 1928, 270, 2454, 1927, 269,
|
|
/* 1380 */ 1984, 1406, 295, 1730, 1740, 2333, 2366, 159, 1404, 2404,
|
|
/* 1390 */ 1756, 1759, 115, 2368, 755, 2370, 2371, 750, 1728, 745,
|
|
/* 1400 */ 1840, 2386, 634, 50, 50, 1671, 2457, 1669, 2049, 2366,
|
|
/* 1410 */ 2456, 2453, 2404, 14, 13, 114, 2368, 755, 2370, 2371,
|
|
/* 1420 */ 750, 192, 745, 288, 2333, 159, 50, 2432, 2333, 2457,
|
|
/* 1430 */ 314, 2333, 75, 416, 2453, 2048, 2232, 1674, 1675, 1727,
|
|
/* 1440 */ 157, 1729, 1732, 1733, 1734, 1735, 1736, 1737, 1738, 1739,
|
|
/* 1450 */ 747, 743, 1748, 1749, 1751, 1752, 1753, 1754, 2, 159,
|
|
/* 1460 */ 172, 1636, 66, 50, 50, 346, 759, 100, 157, 1978,
|
|
/* 1470 */ 111, 159, 140, 157, 795, 2367, 1968, 1872, 1871, 108,
|
|
/* 1480 */ 1679, 1678, 343, 74, 1364, 2506, 73, 796, 752, 682,
|
|
/* 1490 */ 403, 406, 689, 724, 2233, 293, 371, 433, 1383, 719,
|
|
/* 1500 */ 1586, 2153, 2367, 1974, 318, 665, 727, 239, 548, 546,
|
|
/* 1510 */ 543, 1381, 2507, 2517, 322, 752, 2385, 697, 698, 305,
|
|
/* 1520 */ 300, 839, 308, 2074, 1365, 5, 441, 436, 2333, 384,
|
|
/* 1530 */ 751, 449, 1703, 1451, 450, 460, 1792, 1741, 338, 461,
|
|
/* 1540 */ 1479, 215, 1483, 2385, 216, 1490, 1488, 162, 63, 463,
|
|
/* 1550 */ 218, 333, 1610, 1693, 477, 2333, 1694, 751, 484, 229,
|
|
/* 1560 */ 486, 490, 492, 529, 497, 511, 520, 528, 518, 2366,
|
|
/* 1570 */ 2225, 530, 2404, 539, 541, 114, 2368, 755, 2370, 2371,
|
|
/* 1580 */ 750, 542, 745, 233, 234, 544, 64, 2430, 2367, 2457,
|
|
/* 1590 */ 545, 236, 547, 416, 2453, 549, 2366, 1701, 4, 2404,
|
|
/* 1600 */ 565, 752, 114, 2368, 755, 2370, 2371, 750, 564, 745,
|
|
/* 1610 */ 572, 244, 1696, 573, 738, 575, 2457, 92, 577, 247,
|
|
/* 1620 */ 416, 2453, 1702, 2367, 578, 1704, 587, 579, 250, 2385,
|
|
/* 1630 */ 252, 581, 1705, 84, 83, 472, 752, 2241, 220, 93,
|
|
/* 1640 */ 94, 2333, 257, 751, 1682, 1681, 608, 610, 637, 2102,
|
|
/* 1650 */ 638, 464, 462, 365, 261, 116, 2098, 97, 652, 650,
|
|
/* 1660 */ 153, 263, 368, 164, 2385, 451, 165, 1697, 448, 444,
|
|
/* 1670 */ 440, 437, 465, 2100, 280, 2096, 2333, 166, 751, 167,
|
|
/* 1680 */ 334, 2304, 2366, 2301, 2300, 2404, 2287, 660, 115, 2368,
|
|
/* 1690 */ 755, 2370, 2371, 750, 659, 745, 661, 664, 285, 667,
|
|
/* 1700 */ 686, 2522, 2457, 676, 725, 2367, 740, 2453, 283, 695,
|
|
/* 1710 */ 290, 292, 666, 2494, 8, 2521, 183, 753, 752, 294,
|
|
/* 1720 */ 2404, 309, 2367, 115, 2368, 755, 2370, 2371, 750, 674,
|
|
/* 1730 */ 745, 677, 675, 299, 296, 752, 297, 2457, 298, 2574,
|
|
/* 1740 */ 700, 379, 2453, 2367, 699, 145, 2385, 1698, 1838, 708,
|
|
/* 1750 */ 2473, 407, 711, 1836, 195, 304, 752, 310, 2333, 301,
|
|
/* 1760 */ 751, 154, 335, 2385, 723, 2255, 336, 728, 404, 2254,
|
|
/* 1770 */ 2253, 729, 412, 1, 155, 2333, 105, 751, 210, 2367,
|
|
/* 1780 */ 2476, 337, 2113, 62, 2385, 2438, 107, 2157, 1288, 340,
|
|
/* 1790 */ 757, 328, 752, 840, 349, 53, 2333, 843, 751, 2366,
|
|
/* 1800 */ 376, 2550, 2404, 377, 342, 175, 2368, 755, 2370, 2371,
|
|
/* 1810 */ 750, 344, 745, 364, 845, 2367, 2366, 163, 363, 2404,
|
|
/* 1820 */ 2385, 353, 362, 2368, 755, 2370, 2371, 750, 752, 745,
|
|
/* 1830 */ 2325, 2324, 2333, 2323, 751, 81, 2318, 2366, 438, 439,
|
|
/* 1840 */ 2404, 1661, 1662, 178, 2368, 755, 2370, 2371, 750, 213,
|
|
/* 1850 */ 745, 673, 2513, 443, 2316, 445, 2385, 446, 447, 1660,
|
|
/* 1860 */ 2315, 405, 385, 2313, 452, 2312, 454, 2311, 2333, 456,
|
|
/* 1870 */ 751, 2310, 458, 2366, 1649, 2291, 2404, 217, 2290, 355,
|
|
/* 1880 */ 2368, 755, 2370, 2371, 750, 219, 745, 82, 1613, 1612,
|
|
/* 1890 */ 2367, 2268, 2267, 2266, 470, 471, 2265, 2264, 2215, 475,
|
|
/* 1900 */ 1556, 704, 2572, 752, 2212, 478, 2211, 2205, 2367, 2366,
|
|
/* 1910 */ 481, 2202, 2404, 482, 2201, 362, 2368, 755, 2370, 2371,
|
|
/* 1920 */ 750, 752, 745, 222, 85, 2200, 2199, 2204, 2203, 694,
|
|
/* 1930 */ 224, 2385, 2198, 2197, 2195, 2194, 2193, 226, 498, 2192,
|
|
/* 1940 */ 500, 2208, 2191, 2333, 2190, 751, 2189, 2188, 2187, 2385,
|
|
/* 1950 */ 2210, 2186, 2185, 2184, 411, 2183, 2182, 2181, 2180, 2179,
|
|
/* 1960 */ 2178, 2333, 2177, 751, 228, 2367, 2176, 91, 2175, 2174,
|
|
/* 1970 */ 2173, 2209, 2207, 2172, 2171, 2170, 1562, 2169, 749, 232,
|
|
/* 1980 */ 532, 2168, 534, 2367, 2366, 654, 2167, 2404, 2166, 1422,
|
|
/* 1990 */ 178, 2368, 755, 2370, 2371, 750, 752, 745, 1426, 373,
|
|
/* 2000 */ 2014, 2367, 2366, 849, 235, 2404, 2385, 2013, 362, 2368,
|
|
/* 2010 */ 755, 2370, 2371, 750, 752, 745, 1418, 2012, 2333, 332,
|
|
/* 2020 */ 751, 2010, 2007, 2006, 2385, 237, 550, 238, 374, 419,
|
|
/* 2030 */ 554, 551, 552, 555, 556, 198, 2333, 1999, 751, 558,
|
|
/* 2040 */ 560, 1988, 2385, 837, 833, 829, 825, 421, 329, 2573,
|
|
/* 2050 */ 559, 562, 1963, 240, 2333, 78, 751, 190, 2353, 2366,
|
|
/* 2060 */ 1312, 200, 2404, 1962, 570, 361, 2368, 755, 2370, 2371,
|
|
/* 2070 */ 750, 242, 745, 79, 2423, 249, 251, 2366, 2289, 2285,
|
|
/* 2080 */ 2404, 2275, 2263, 362, 2368, 755, 2370, 2371, 750, 113,
|
|
/* 2090 */ 745, 2262, 323, 254, 2239, 2366, 2091, 1357, 2404, 2009,
|
|
/* 2100 */ 2005, 362, 2368, 755, 2370, 2371, 750, 588, 745, 589,
|
|
/* 2110 */ 259, 590, 2003, 592, 594, 593, 2367, 2001, 597, 598,
|
|
/* 2120 */ 596, 1998, 600, 1983, 731, 601, 182, 1981, 602, 752,
|
|
/* 2130 */ 1982, 1980, 1959, 2093, 603, 599, 595, 591, 1495, 258,
|
|
/* 2140 */ 1494, 65, 2092, 1408, 260, 1407, 1405, 1403, 1402, 812,
|
|
/* 2150 */ 1401, 1400, 1399, 814, 1996, 1987, 1396, 2385, 1394, 1395,
|
|
/* 2160 */ 397, 1393, 398, 1985, 1958, 312, 399, 1957, 1956, 2333,
|
|
/* 2170 */ 1955, 751, 311, 1954, 635, 643, 639, 117, 641, 632,
|
|
/* 2180 */ 96, 2288, 1643, 256, 2367, 1645, 1642, 1647, 2284, 57,
|
|
/* 2190 */ 29, 281, 282, 69, 1621, 58, 1619, 752, 2274, 169,
|
|
/* 2200 */ 1623, 662, 286, 2261, 663, 2260, 6, 2556, 1598, 20,
|
|
/* 2210 */ 649, 31, 7, 2404, 1597, 17, 357, 2368, 755, 2370,
|
|
/* 2220 */ 2371, 750, 668, 745, 670, 2385, 21, 22, 194, 205,
|
|
/* 2230 */ 33, 2354, 206, 678, 67, 1889, 2259, 2333, 1833, 751,
|
|
/* 2240 */ 289, 179, 2367, 1831, 24, 1904, 1903, 246, 680, 23,
|
|
/* 2250 */ 408, 1908, 1907, 409, 291, 752, 255, 248, 1870, 1859,
|
|
/* 2260 */ 60, 2367, 2238, 253, 580, 1829, 193, 32, 306, 18,
|
|
/* 2270 */ 59, 80, 185, 726, 752, 207, 102, 2367, 2366, 2237,
|
|
/* 2280 */ 101, 2404, 245, 2385, 347, 2368, 755, 2370, 2371, 750,
|
|
/* 2290 */ 752, 745, 1909, 1910, 1815, 2333, 1814, 751, 25, 103,
|
|
/* 2300 */ 324, 26, 2385, 313, 11, 108, 13, 1865, 196, 1686,
|
|
/* 2310 */ 186, 1720, 319, 70, 2333, 197, 751, 1745, 2385, 1743,
|
|
/* 2320 */ 1777, 758, 422, 104, 1767, 1766, 754, 762, 2407, 765,
|
|
/* 2330 */ 2333, 321, 751, 1742, 744, 39, 2366, 1712, 16, 2404,
|
|
/* 2340 */ 756, 27, 345, 2368, 755, 2370, 2371, 750, 28, 745,
|
|
/* 2350 */ 1480, 760, 768, 1477, 2367, 2366, 763, 771, 2404, 1476,
|
|
/* 2360 */ 766, 348, 2368, 755, 2370, 2371, 750, 752, 745, 769,
|
|
/* 2370 */ 2367, 2366, 1473, 772, 2404, 774, 1467, 354, 2368, 755,
|
|
/* 2380 */ 2370, 2371, 750, 752, 745, 1465, 775, 1471, 109, 2367,
|
|
/* 2390 */ 327, 1470, 110, 1489, 77, 2385, 1485, 1469, 1468, 1355,
|
|
/* 2400 */ 789, 1390, 752, 1387, 1386, 1385, 1384, 2333, 1416, 751,
|
|
/* 2410 */ 1382, 2385, 1380, 1379, 1378, 211, 800, 1415, 802, 1373,
|
|
/* 2420 */ 1376, 1375, 1374, 2333, 1372, 751, 1371, 2367, 1370, 1412,
|
|
/* 2430 */ 2385, 1410, 1367, 1366, 1361, 1363, 1362, 1360, 2004, 822,
|
|
/* 2440 */ 752, 2002, 2333, 823, 751, 824, 826, 2367, 2366, 828,
|
|
/* 2450 */ 2000, 2404, 827, 830, 358, 2368, 755, 2370, 2371, 750,
|
|
/* 2460 */ 752, 745, 831, 2367, 2366, 832, 1997, 2404, 2385, 834,
|
|
/* 2470 */ 350, 2368, 755, 2370, 2371, 750, 752, 745, 835, 836,
|
|
/* 2480 */ 2333, 1979, 751, 2366, 2367, 1953, 2404, 1289, 2385, 359,
|
|
/* 2490 */ 2368, 755, 2370, 2371, 750, 838, 745, 752, 1301, 331,
|
|
/* 2500 */ 2333, 842, 751, 844, 2385, 1672, 341, 847, 848, 1923,
|
|
/* 2510 */ 1923, 1923, 1923, 1923, 1923, 1923, 2333, 1923, 751, 1923,
|
|
/* 2520 */ 1923, 2366, 1923, 1923, 2404, 2385, 1923, 351, 2368, 755,
|
|
/* 2530 */ 2370, 2371, 750, 1923, 745, 1923, 1923, 2333, 1923, 751,
|
|
/* 2540 */ 1923, 2366, 1923, 1923, 2404, 1923, 1923, 360, 2368, 755,
|
|
/* 2550 */ 2370, 2371, 750, 1923, 745, 1923, 1923, 2366, 1923, 1923,
|
|
/* 2560 */ 2404, 1923, 1923, 352, 2368, 755, 2370, 2371, 750, 1923,
|
|
/* 2570 */ 745, 1923, 1923, 1923, 1923, 1923, 1923, 2367, 2366, 1923,
|
|
/* 2580 */ 1923, 2404, 1923, 1923, 366, 2368, 755, 2370, 2371, 750,
|
|
/* 2590 */ 752, 745, 1923, 1923, 1923, 1923, 1923, 2367, 1923, 1923,
|
|
/* 2600 */ 1923, 1923, 1923, 1923, 1923, 1923, 1923, 1923, 1923, 1923,
|
|
/* 2610 */ 752, 1923, 1923, 1923, 1923, 2367, 1923, 1923, 2385, 1923,
|
|
/* 2620 */ 1923, 1923, 1923, 1923, 1923, 1923, 1923, 1923, 752, 1923,
|
|
/* 2630 */ 2333, 1923, 751, 1923, 2367, 1923, 1923, 1923, 2385, 1923,
|
|
/* 2640 */ 1923, 1923, 1923, 1923, 1923, 1923, 1923, 752, 1923, 1923,
|
|
/* 2650 */ 2333, 1923, 751, 1923, 1923, 1923, 2385, 1923, 1923, 1923,
|
|
/* 2660 */ 1923, 1923, 1923, 1923, 1923, 1923, 1923, 1923, 2333, 1923,
|
|
/* 2670 */ 751, 2366, 1923, 1923, 2404, 2385, 1923, 367, 2368, 755,
|
|
/* 2680 */ 2370, 2371, 750, 1923, 745, 1923, 1923, 2333, 1923, 751,
|
|
/* 2690 */ 1923, 2366, 2367, 1923, 2404, 1923, 1923, 2379, 2368, 755,
|
|
/* 2700 */ 2370, 2371, 750, 1923, 745, 752, 1923, 1923, 1923, 2366,
|
|
/* 2710 */ 1923, 1923, 2404, 1923, 2367, 2378, 2368, 755, 2370, 2371,
|
|
/* 2720 */ 750, 1923, 745, 1923, 1923, 1923, 1923, 752, 2366, 1923,
|
|
/* 2730 */ 2367, 2404, 1923, 2385, 2377, 2368, 755, 2370, 2371, 750,
|
|
/* 2740 */ 1923, 745, 1923, 752, 1923, 2333, 1923, 751, 1923, 2367,
|
|
/* 2750 */ 1923, 1923, 1923, 1923, 1923, 2385, 1923, 1923, 1923, 1923,
|
|
/* 2760 */ 1923, 1923, 752, 1923, 1923, 1923, 1923, 2333, 1923, 751,
|
|
/* 2770 */ 1923, 2385, 1923, 1923, 1923, 1923, 1923, 1923, 1923, 1923,
|
|
/* 2780 */ 1923, 1923, 1923, 2333, 1923, 751, 2366, 2367, 1923, 2404,
|
|
/* 2790 */ 2385, 1923, 381, 2368, 755, 2370, 2371, 750, 1923, 745,
|
|
/* 2800 */ 752, 1923, 2333, 1923, 751, 1923, 1923, 2367, 2366, 1923,
|
|
/* 2810 */ 1923, 2404, 1923, 1923, 382, 2368, 755, 2370, 2371, 750,
|
|
/* 2820 */ 752, 745, 1923, 1923, 2366, 1923, 1923, 2404, 2385, 1923,
|
|
/* 2830 */ 378, 2368, 755, 2370, 2371, 750, 1923, 745, 1923, 1923,
|
|
/* 2840 */ 2333, 1923, 751, 2366, 1923, 1923, 2404, 1923, 2385, 383,
|
|
/* 2850 */ 2368, 755, 2370, 2371, 750, 1923, 745, 1923, 1923, 1923,
|
|
/* 2860 */ 2333, 1923, 751, 1923, 1923, 1923, 1923, 1923, 1923, 1923,
|
|
/* 2870 */ 1923, 1923, 1923, 1923, 1923, 1923, 1923, 1923, 1923, 1923,
|
|
/* 2880 */ 1923, 753, 1923, 1923, 2404, 1923, 1923, 357, 2368, 755,
|
|
/* 2890 */ 2370, 2371, 750, 1923, 745, 1923, 1923, 1923, 1923, 1923,
|
|
/* 2900 */ 1923, 2366, 1923, 1923, 2404, 1923, 1923, 356, 2368, 755,
|
|
/* 2910 */ 2370, 2371, 750, 1923, 745,
|
|
};
|
|
static const YYCODETYPE yy_lookahead[] = {
|
|
/* 0 */ 366, 401, 392, 369, 370, 367, 371, 372, 485, 371,
|
|
/* 10 */ 400, 373, 12, 13, 14, 492, 387, 407, 408, 390,
|
|
/* 20 */ 20, 0, 22, 8, 9, 415, 391, 12, 13, 14,
|
|
/* 30 */ 15, 16, 20, 510, 511, 35, 0, 37, 515, 516,
|
|
/* 40 */ 474, 475, 21, 20, 359, 24, 25, 26, 27, 28,
|
|
/* 50 */ 29, 30, 31, 32, 400, 381, 21, 372, 371, 372,
|
|
/* 60 */ 400, 8, 9, 389, 64, 12, 13, 14, 15, 16,
|
|
/* 70 */ 70, 36, 400, 38, 39, 40, 422, 77, 424, 407,
|
|
/* 80 */ 23, 371, 372, 414, 424, 400, 33, 415, 8, 9,
|
|
/* 90 */ 20, 20, 12, 13, 14, 15, 16, 412, 429, 414,
|
|
/* 100 */ 37, 432, 433, 103, 47, 48, 106, 371, 72, 73,
|
|
/* 110 */ 74, 75, 76, 20, 78, 79, 80, 81, 82, 83,
|
|
/* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
|
|
/* 130 */ 94, 95, 96, 97, 98, 99, 12, 13, 453, 22,
|
|
/* 140 */ 77, 456, 142, 143, 459, 460, 461, 462, 463, 464,
|
|
/* 150 */ 380, 466, 416, 417, 37, 419, 471, 485, 473, 423,
|
|
/* 160 */ 107, 37, 477, 478, 492, 142, 143, 397, 481, 482,
|
|
/* 170 */ 483, 366, 485, 486, 369, 370, 406, 177, 178, 492,
|
|
/* 180 */ 396, 496, 510, 511, 184, 185, 414, 515, 516, 504,
|
|
/* 190 */ 480, 481, 482, 483, 77, 485, 486, 510, 511, 199,
|
|
/* 200 */ 69, 201, 515, 516, 432, 433, 191, 184, 185, 42,
|
|
/* 210 */ 8, 9, 142, 143, 12, 13, 14, 15, 16, 21,
|
|
/* 220 */ 20, 64, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
/* 230 */ 32, 231, 232, 233, 450, 235, 236, 237, 238, 239,
|
|
/* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
|
/* 250 */ 250, 251, 252, 12, 13, 458, 359, 20, 18, 179,
|
|
/* 260 */ 20, 20, 105, 22, 358, 108, 360, 27, 14, 359,
|
|
/* 270 */ 30, 20, 70, 2, 20, 35, 35, 4, 37, 8,
|
|
/* 280 */ 9, 484, 372, 12, 13, 14, 15, 16, 136, 231,
|
|
/* 290 */ 2, 51, 33, 53, 371, 372, 8, 9, 58, 388,
|
|
/* 300 */ 12, 13, 14, 15, 16, 64, 0, 399, 68, 412,
|
|
/* 310 */ 400, 70, 69, 402, 391, 458, 114, 68, 77, 411,
|
|
/* 320 */ 305, 398, 412, 412, 414, 201, 233, 359, 359, 172,
|
|
/* 330 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 116,
|
|
/* 340 */ 372, 484, 374, 106, 103, 105, 70, 106, 290, 291,
|
|
/* 350 */ 292, 293, 294, 295, 296, 20, 116, 106, 272, 273,
|
|
/* 360 */ 274, 275, 276, 453, 212, 213, 456, 456, 400, 459,
|
|
/* 370 */ 460, 461, 462, 463, 464, 0, 466, 466, 176, 106,
|
|
/* 380 */ 412, 412, 414, 142, 143, 469, 146, 147, 472, 149,
|
|
/* 390 */ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
|
|
/* 400 */ 160, 161, 162, 163, 164, 165, 367, 167, 168, 169,
|
|
/* 410 */ 371, 14, 373, 173, 174, 175, 506, 20, 177, 178,
|
|
/* 420 */ 180, 453, 413, 414, 456, 184, 185, 459, 460, 461,
|
|
/* 430 */ 462, 463, 464, 20, 466, 268, 269, 270, 271, 471,
|
|
/* 440 */ 199, 473, 201, 194, 69, 477, 478, 267, 268, 269,
|
|
/* 450 */ 270, 271, 272, 273, 274, 275, 276, 33, 256, 257,
|
|
/* 460 */ 258, 259, 260, 261, 262, 263, 264, 265, 266, 45,
|
|
/* 470 */ 221, 222, 231, 232, 233, 106, 235, 236, 237, 238,
|
|
/* 480 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
/* 490 */ 249, 250, 251, 252, 253, 12, 13, 268, 269, 270,
|
|
/* 500 */ 271, 359, 22, 20, 400, 22, 410, 231, 4, 413,
|
|
/* 510 */ 414, 137, 177, 178, 372, 141, 279, 37, 35, 415,
|
|
/* 520 */ 37, 371, 372, 19, 12, 13, 14, 15, 16, 8,
|
|
/* 530 */ 9, 371, 372, 12, 13, 14, 15, 16, 359, 35,
|
|
/* 540 */ 0, 391, 400, 20, 372, 56, 57, 64, 398, 388,
|
|
/* 550 */ 20, 372, 279, 70, 412, 51, 414, 72, 73, 74,
|
|
/* 560 */ 77, 302, 58, 402, 79, 80, 81, 198, 64, 200,
|
|
/* 570 */ 85, 359, 400, 412, 177, 90, 91, 92, 93, 400,
|
|
/* 580 */ 420, 96, 208, 103, 99, 211, 103, 106, 214, 106,
|
|
/* 590 */ 216, 412, 179, 414, 14, 453, 371, 372, 456, 230,
|
|
/* 600 */ 20, 459, 460, 461, 462, 463, 464, 393, 466, 105,
|
|
/* 610 */ 396, 469, 108, 471, 472, 473, 391, 456, 457, 477,
|
|
/* 620 */ 478, 12, 13, 176, 412, 142, 143, 466, 107, 106,
|
|
/* 630 */ 233, 22, 453, 461, 371, 456, 3, 253, 459, 460,
|
|
/* 640 */ 461, 462, 463, 464, 35, 466, 37, 253, 279, 255,
|
|
/* 650 */ 471, 359, 473, 20, 136, 137, 477, 478, 0, 141,
|
|
/* 660 */ 177, 178, 371, 372, 372, 172, 374, 184, 185, 385,
|
|
/* 670 */ 386, 388, 20, 64, 22, 135, 136, 137, 138, 139,
|
|
/* 680 */ 140, 141, 199, 504, 201, 402, 77, 33, 356, 37,
|
|
/* 690 */ 371, 372, 400, 8, 9, 412, 203, 12, 13, 14,
|
|
/* 700 */ 15, 16, 20, 256, 412, 20, 414, 55, 445, 446,
|
|
/* 710 */ 391, 420, 103, 266, 231, 232, 233, 77, 235, 236,
|
|
/* 720 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
|
|
/* 730 */ 247, 248, 249, 250, 251, 252, 12, 13, 14, 456,
|
|
/* 740 */ 107, 378, 371, 372, 20, 453, 22, 183, 456, 466,
|
|
/* 750 */ 371, 459, 460, 461, 462, 463, 464, 177, 466, 35,
|
|
/* 760 */ 279, 37, 391, 471, 116, 473, 403, 435, 359, 477,
|
|
/* 770 */ 478, 22, 440, 106, 135, 136, 137, 138, 139, 140,
|
|
/* 780 */ 141, 372, 50, 374, 0, 485, 37, 116, 64, 371,
|
|
/* 790 */ 372, 359, 492, 135, 136, 137, 138, 139, 140, 141,
|
|
/* 800 */ 34, 77, 279, 22, 372, 401, 427, 428, 199, 400,
|
|
/* 810 */ 201, 511, 179, 233, 166, 515, 516, 485, 37, 86,
|
|
/* 820 */ 392, 412, 400, 414, 492, 389, 77, 103, 400, 407,
|
|
/* 830 */ 106, 371, 400, 371, 372, 401, 408, 415, 420, 14,
|
|
/* 840 */ 231, 232, 510, 511, 412, 20, 414, 515, 516, 285,
|
|
/* 850 */ 286, 287, 103, 391, 245, 246, 247, 248, 249, 250,
|
|
/* 860 */ 251, 179, 453, 360, 179, 456, 142, 143, 459, 460,
|
|
/* 870 */ 461, 462, 463, 464, 20, 466, 14, 15, 16, 135,
|
|
/* 880 */ 471, 148, 473, 139, 103, 453, 477, 478, 456, 1,
|
|
/* 890 */ 2, 459, 460, 461, 462, 463, 464, 465, 466, 467,
|
|
/* 900 */ 468, 177, 178, 170, 171, 445, 446, 400, 184, 185,
|
|
/* 910 */ 409, 179, 103, 412, 407, 233, 371, 372, 233, 187,
|
|
/* 920 */ 376, 377, 415, 199, 3, 201, 117, 118, 119, 120,
|
|
/* 930 */ 121, 122, 123, 124, 125, 126, 391, 128, 129, 130,
|
|
/* 940 */ 131, 132, 133, 134, 409, 161, 279, 412, 199, 20,
|
|
/* 950 */ 201, 22, 376, 377, 170, 231, 232, 233, 304, 235,
|
|
/* 960 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
|
|
/* 970 */ 246, 247, 248, 249, 250, 251, 252, 12, 13, 359,
|
|
/* 980 */ 231, 232, 20, 435, 55, 20, 400, 22, 440, 470,
|
|
/* 990 */ 0, 472, 372, 407, 374, 107, 13, 371, 372, 400,
|
|
/* 1000 */ 35, 415, 37, 8, 9, 392, 407, 12, 13, 14,
|
|
/* 1010 */ 15, 16, 359, 400, 415, 371, 372, 391, 371, 372,
|
|
/* 1020 */ 400, 408, 371, 372, 470, 372, 472, 374, 401, 64,
|
|
/* 1030 */ 400, 177, 412, 485, 414, 391, 371, 372, 391, 359,
|
|
/* 1040 */ 492, 51, 77, 8, 9, 415, 359, 12, 13, 14,
|
|
/* 1050 */ 15, 16, 359, 400, 371, 372, 391, 401, 510, 511,
|
|
/* 1060 */ 77, 400, 458, 515, 516, 412, 0, 414, 103, 408,
|
|
/* 1070 */ 485, 106, 359, 453, 391, 401, 456, 492, 0, 459,
|
|
/* 1080 */ 460, 461, 462, 463, 464, 4, 466, 233, 484, 385,
|
|
/* 1090 */ 386, 471, 412, 473, 380, 359, 511, 477, 478, 412,
|
|
/* 1100 */ 515, 516, 107, 435, 23, 412, 453, 142, 143, 456,
|
|
/* 1110 */ 51, 435, 459, 460, 461, 462, 463, 464, 59, 466,
|
|
/* 1120 */ 406, 62, 63, 4, 471, 412, 473, 46, 47, 48,
|
|
/* 1130 */ 477, 478, 481, 482, 483, 359, 485, 486, 72, 73,
|
|
/* 1140 */ 74, 179, 177, 178, 401, 79, 80, 81, 412, 184,
|
|
/* 1150 */ 185, 85, 400, 485, 20, 392, 90, 91, 92, 93,
|
|
/* 1160 */ 492, 485, 96, 400, 199, 99, 201, 415, 492, 409,
|
|
/* 1170 */ 435, 408, 412, 435, 362, 363, 371, 372, 510, 511,
|
|
/* 1180 */ 441, 435, 425, 515, 516, 20, 510, 511, 412, 359,
|
|
/* 1190 */ 487, 515, 516, 39, 40, 233, 231, 232, 233, 33,
|
|
/* 1200 */ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
/* 1210 */ 245, 246, 247, 248, 249, 250, 251, 252, 12, 13,
|
|
/* 1220 */ 485, 300, 359, 485, 371, 372, 20, 492, 22, 359,
|
|
/* 1230 */ 492, 485, 371, 372, 0, 372, 0, 374, 492, 371,
|
|
/* 1240 */ 372, 35, 412, 37, 391, 510, 511, 33, 510, 511,
|
|
/* 1250 */ 515, 516, 391, 515, 516, 359, 510, 511, 359, 391,
|
|
/* 1260 */ 33, 515, 516, 400, 110, 111, 13, 113, 488, 33,
|
|
/* 1270 */ 64, 372, 45, 107, 0, 412, 42, 414, 371, 372,
|
|
/* 1280 */ 371, 372, 412, 77, 371, 372, 481, 482, 483, 135,
|
|
/* 1290 */ 485, 486, 359, 139, 371, 372, 22, 359, 391, 400,
|
|
/* 1300 */ 391, 359, 519, 225, 391, 372, 508, 109, 412, 103,
|
|
/* 1310 */ 112, 412, 106, 414, 391, 359, 453, 49, 378, 456,
|
|
/* 1320 */ 359, 107, 459, 460, 461, 462, 463, 464, 372, 466,
|
|
/* 1330 */ 77, 0, 359, 400, 471, 395, 473, 142, 143, 109,
|
|
/* 1340 */ 477, 478, 112, 403, 215, 412, 217, 414, 142, 143,
|
|
/* 1350 */ 412, 375, 453, 22, 412, 456, 400, 13, 459, 460,
|
|
/* 1360 */ 461, 462, 463, 464, 13, 466, 109, 233, 412, 112,
|
|
/* 1370 */ 414, 359, 473, 412, 106, 359, 109, 478, 359, 112,
|
|
/* 1380 */ 0, 37, 501, 177, 178, 412, 453, 33, 37, 456,
|
|
/* 1390 */ 184, 185, 459, 460, 461, 462, 463, 464, 233, 466,
|
|
/* 1400 */ 281, 400, 22, 33, 33, 199, 473, 201, 388, 453,
|
|
/* 1410 */ 477, 478, 456, 1, 2, 459, 460, 461, 462, 463,
|
|
/* 1420 */ 464, 33, 466, 64, 412, 33, 33, 471, 412, 473,
|
|
/* 1430 */ 33, 412, 33, 477, 478, 388, 425, 231, 232, 233,
|
|
/* 1440 */ 33, 235, 236, 237, 238, 239, 240, 241, 242, 243,
|
|
/* 1450 */ 244, 245, 246, 247, 248, 249, 250, 251, 252, 33,
|
|
/* 1460 */ 18, 107, 33, 33, 33, 23, 33, 108, 33, 0,
|
|
/* 1470 */ 106, 33, 33, 33, 13, 359, 370, 107, 107, 115,
|
|
/* 1480 */ 37, 37, 40, 41, 37, 425, 44, 13, 372, 507,
|
|
/* 1490 */ 434, 507, 507, 507, 425, 107, 54, 375, 37, 107,
|
|
/* 1500 */ 107, 411, 359, 372, 107, 442, 107, 65, 66, 67,
|
|
/* 1510 */ 68, 37, 425, 425, 107, 372, 400, 491, 491, 512,
|
|
/* 1520 */ 479, 52, 494, 390, 77, 282, 51, 436, 412, 455,
|
|
/* 1530 */ 414, 42, 20, 107, 454, 214, 107, 107, 107, 447,
|
|
/* 1540 */ 107, 452, 107, 400, 380, 107, 107, 107, 106, 447,
|
|
/* 1550 */ 380, 438, 197, 20, 371, 412, 20, 414, 372, 45,
|
|
/* 1560 */ 421, 372, 421, 176, 418, 371, 421, 418, 372, 453,
|
|
/* 1570 */ 371, 418, 456, 102, 104, 459, 460, 461, 462, 463,
|
|
/* 1580 */ 464, 384, 466, 383, 371, 101, 144, 471, 359, 473,
|
|
/* 1590 */ 382, 371, 371, 477, 478, 371, 453, 20, 50, 456,
|
|
/* 1600 */ 368, 372, 459, 460, 461, 462, 463, 464, 364, 466,
|
|
/* 1610 */ 364, 380, 20, 368, 471, 447, 473, 380, 414, 380,
|
|
/* 1620 */ 477, 478, 20, 359, 373, 20, 371, 437, 380, 400,
|
|
/* 1630 */ 380, 373, 20, 191, 192, 193, 372, 428, 196, 380,
|
|
/* 1640 */ 380, 412, 380, 414, 201, 201, 364, 400, 362, 400,
|
|
/* 1650 */ 362, 209, 210, 364, 400, 371, 400, 106, 451, 218,
|
|
/* 1660 */ 449, 400, 220, 400, 400, 223, 400, 20, 226, 227,
|
|
/* 1670 */ 228, 229, 230, 400, 378, 400, 412, 400, 414, 400,
|
|
/* 1680 */ 447, 412, 453, 412, 412, 456, 446, 205, 459, 460,
|
|
/* 1690 */ 461, 462, 463, 464, 204, 466, 444, 414, 378, 371,
|
|
/* 1700 */ 289, 500, 473, 412, 288, 359, 477, 478, 443, 190,
|
|
/* 1710 */ 430, 430, 436, 503, 297, 500, 500, 453, 372, 502,
|
|
/* 1720 */ 456, 279, 359, 459, 460, 461, 462, 463, 464, 283,
|
|
/* 1730 */ 466, 299, 298, 436, 499, 372, 498, 473, 497, 520,
|
|
/* 1740 */ 278, 477, 478, 359, 277, 372, 400, 20, 116, 301,
|
|
/* 1750 */ 458, 306, 303, 280, 373, 513, 372, 378, 412, 489,
|
|
/* 1760 */ 414, 378, 430, 400, 412, 412, 430, 182, 405, 412,
|
|
/* 1770 */ 412, 426, 412, 495, 378, 412, 378, 414, 493, 359,
|
|
/* 1780 */ 490, 396, 372, 106, 400, 476, 106, 412, 22, 371,
|
|
/* 1790 */ 404, 378, 372, 38, 394, 439, 412, 361, 414, 453,
|
|
/* 1800 */ 431, 514, 456, 431, 379, 459, 460, 461, 462, 463,
|
|
/* 1810 */ 464, 357, 466, 448, 364, 359, 453, 365, 394, 456,
|
|
/* 1820 */ 400, 394, 459, 460, 461, 462, 463, 464, 372, 466,
|
|
/* 1830 */ 0, 0, 412, 0, 414, 45, 0, 453, 37, 224,
|
|
/* 1840 */ 456, 37, 37, 459, 460, 461, 462, 463, 464, 37,
|
|
/* 1850 */ 466, 505, 506, 224, 0, 37, 400, 37, 224, 37,
|
|
/* 1860 */ 0, 405, 224, 0, 37, 0, 37, 0, 412, 22,
|
|
/* 1870 */ 414, 0, 37, 453, 219, 0, 456, 207, 0, 459,
|
|
/* 1880 */ 460, 461, 462, 463, 464, 207, 466, 208, 201, 199,
|
|
/* 1890 */ 359, 0, 0, 0, 195, 194, 0, 0, 147, 49,
|
|
/* 1900 */ 49, 517, 518, 372, 0, 37, 0, 0, 359, 453,
|
|
/* 1910 */ 37, 0, 456, 51, 0, 459, 460, 461, 462, 463,
|
|
/* 1920 */ 464, 372, 466, 49, 45, 0, 0, 0, 0, 509,
|
|
/* 1930 */ 49, 400, 0, 0, 0, 0, 0, 161, 37, 0,
|
|
/* 1940 */ 161, 0, 0, 412, 0, 414, 0, 0, 0, 400,
|
|
/* 1950 */ 0, 0, 0, 0, 405, 0, 0, 0, 0, 0,
|
|
/* 1960 */ 0, 412, 0, 414, 49, 359, 0, 45, 0, 0,
|
|
/* 1970 */ 0, 0, 0, 0, 0, 0, 22, 0, 372, 147,
|
|
/* 1980 */ 146, 0, 145, 359, 453, 1, 0, 456, 0, 22,
|
|
/* 1990 */ 459, 460, 461, 462, 463, 464, 372, 466, 22, 50,
|
|
/* 2000 */ 0, 359, 453, 19, 64, 456, 400, 0, 459, 460,
|
|
/* 2010 */ 461, 462, 463, 464, 372, 466, 37, 0, 412, 35,
|
|
/* 2020 */ 414, 0, 0, 0, 400, 64, 37, 64, 50, 405,
|
|
/* 2030 */ 37, 51, 42, 51, 42, 51, 412, 0, 414, 37,
|
|
/* 2040 */ 42, 0, 400, 59, 60, 61, 62, 405, 64, 518,
|
|
/* 2050 */ 51, 37, 0, 45, 412, 42, 414, 33, 49, 453,
|
|
/* 2060 */ 14, 49, 456, 0, 49, 459, 460, 461, 462, 463,
|
|
/* 2070 */ 464, 43, 466, 42, 468, 42, 190, 453, 0, 0,
|
|
/* 2080 */ 456, 0, 0, 459, 460, 461, 462, 463, 464, 105,
|
|
/* 2090 */ 466, 0, 108, 49, 0, 453, 0, 71, 456, 0,
|
|
/* 2100 */ 0, 459, 460, 461, 462, 463, 464, 37, 466, 51,
|
|
/* 2110 */ 35, 42, 0, 37, 42, 51, 359, 0, 51, 42,
|
|
/* 2120 */ 37, 0, 37, 0, 140, 51, 51, 0, 42, 372,
|
|
/* 2130 */ 0, 0, 0, 0, 59, 60, 61, 62, 37, 64,
|
|
/* 2140 */ 22, 114, 0, 37, 112, 37, 37, 37, 37, 33,
|
|
/* 2150 */ 37, 37, 37, 33, 0, 0, 37, 400, 22, 37,
|
|
/* 2160 */ 22, 37, 22, 0, 0, 181, 22, 0, 0, 412,
|
|
/* 2170 */ 0, 414, 188, 0, 37, 22, 37, 20, 37, 53,
|
|
/* 2180 */ 105, 0, 37, 108, 359, 37, 37, 107, 0, 179,
|
|
/* 2190 */ 106, 207, 49, 106, 22, 179, 37, 372, 0, 202,
|
|
/* 2200 */ 206, 22, 182, 0, 179, 0, 50, 3, 179, 33,
|
|
/* 2210 */ 453, 106, 50, 456, 179, 284, 459, 460, 461, 462,
|
|
/* 2220 */ 463, 464, 186, 466, 186, 400, 33, 33, 33, 49,
|
|
/* 2230 */ 33, 49, 33, 104, 3, 107, 0, 412, 37, 414,
|
|
/* 2240 */ 106, 106, 359, 77, 33, 37, 37, 172, 102, 284,
|
|
/* 2250 */ 37, 37, 37, 37, 107, 372, 181, 182, 107, 107,
|
|
/* 2260 */ 33, 359, 0, 188, 189, 107, 106, 106, 49, 284,
|
|
/* 2270 */ 267, 106, 49, 183, 372, 106, 42, 359, 453, 0,
|
|
/* 2280 */ 106, 456, 207, 400, 459, 460, 461, 462, 463, 464,
|
|
/* 2290 */ 372, 466, 107, 107, 107, 412, 107, 414, 106, 42,
|
|
/* 2300 */ 49, 33, 400, 107, 254, 115, 2, 107, 106, 22,
|
|
/* 2310 */ 49, 22, 106, 106, 412, 49, 414, 107, 400, 107,
|
|
/* 2320 */ 231, 37, 37, 106, 104, 104, 234, 37, 106, 37,
|
|
/* 2330 */ 412, 181, 414, 107, 106, 106, 453, 107, 106, 456,
|
|
/* 2340 */ 116, 106, 459, 460, 461, 462, 463, 464, 106, 466,
|
|
/* 2350 */ 107, 106, 37, 107, 359, 453, 106, 37, 456, 107,
|
|
/* 2360 */ 106, 459, 460, 461, 462, 463, 464, 372, 466, 106,
|
|
/* 2370 */ 359, 453, 107, 106, 456, 37, 107, 459, 460, 461,
|
|
/* 2380 */ 462, 463, 464, 372, 466, 107, 106, 127, 106, 359,
|
|
/* 2390 */ 33, 127, 106, 37, 106, 400, 22, 127, 127, 71,
|
|
/* 2400 */ 70, 37, 372, 37, 37, 37, 37, 412, 77, 414,
|
|
/* 2410 */ 37, 400, 37, 37, 37, 33, 100, 77, 100, 22,
|
|
/* 2420 */ 37, 37, 37, 412, 37, 414, 37, 359, 37, 77,
|
|
/* 2430 */ 400, 37, 37, 37, 22, 37, 37, 37, 0, 37,
|
|
/* 2440 */ 372, 0, 412, 51, 414, 42, 37, 359, 453, 42,
|
|
/* 2450 */ 0, 456, 51, 37, 459, 460, 461, 462, 463, 464,
|
|
/* 2460 */ 372, 466, 51, 359, 453, 42, 0, 456, 400, 37,
|
|
/* 2470 */ 459, 460, 461, 462, 463, 464, 372, 466, 51, 42,
|
|
/* 2480 */ 412, 0, 414, 453, 359, 0, 456, 22, 400, 459,
|
|
/* 2490 */ 460, 461, 462, 463, 464, 37, 466, 372, 37, 22,
|
|
/* 2500 */ 412, 33, 414, 21, 400, 22, 22, 21, 20, 521,
|
|
/* 2510 */ 521, 521, 521, 521, 521, 521, 412, 521, 414, 521,
|
|
/* 2520 */ 521, 453, 521, 521, 456, 400, 521, 459, 460, 461,
|
|
/* 2530 */ 462, 463, 464, 521, 466, 521, 521, 412, 521, 414,
|
|
/* 2540 */ 521, 453, 521, 521, 456, 521, 521, 459, 460, 461,
|
|
/* 2550 */ 462, 463, 464, 521, 466, 521, 521, 453, 521, 521,
|
|
/* 2560 */ 456, 521, 521, 459, 460, 461, 462, 463, 464, 521,
|
|
/* 2570 */ 466, 521, 521, 521, 521, 521, 521, 359, 453, 521,
|
|
/* 2580 */ 521, 456, 521, 521, 459, 460, 461, 462, 463, 464,
|
|
/* 2590 */ 372, 466, 521, 521, 521, 521, 521, 359, 521, 521,
|
|
/* 2600 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521,
|
|
/* 2610 */ 372, 521, 521, 521, 521, 359, 521, 521, 400, 521,
|
|
/* 2620 */ 521, 521, 521, 521, 521, 521, 521, 521, 372, 521,
|
|
/* 2630 */ 412, 521, 414, 521, 359, 521, 521, 521, 400, 521,
|
|
/* 2640 */ 521, 521, 521, 521, 521, 521, 521, 372, 521, 521,
|
|
/* 2650 */ 412, 521, 414, 521, 521, 521, 400, 521, 521, 521,
|
|
/* 2660 */ 521, 521, 521, 521, 521, 521, 521, 521, 412, 521,
|
|
/* 2670 */ 414, 453, 521, 521, 456, 400, 521, 459, 460, 461,
|
|
/* 2680 */ 462, 463, 464, 521, 466, 521, 521, 412, 521, 414,
|
|
/* 2690 */ 521, 453, 359, 521, 456, 521, 521, 459, 460, 461,
|
|
/* 2700 */ 462, 463, 464, 521, 466, 372, 521, 521, 521, 453,
|
|
/* 2710 */ 521, 521, 456, 521, 359, 459, 460, 461, 462, 463,
|
|
/* 2720 */ 464, 521, 466, 521, 521, 521, 521, 372, 453, 521,
|
|
/* 2730 */ 359, 456, 521, 400, 459, 460, 461, 462, 463, 464,
|
|
/* 2740 */ 521, 466, 521, 372, 521, 412, 521, 414, 521, 359,
|
|
/* 2750 */ 521, 521, 521, 521, 521, 400, 521, 521, 521, 521,
|
|
/* 2760 */ 521, 521, 372, 521, 521, 521, 521, 412, 521, 414,
|
|
/* 2770 */ 521, 400, 521, 521, 521, 521, 521, 521, 521, 521,
|
|
/* 2780 */ 521, 521, 521, 412, 521, 414, 453, 359, 521, 456,
|
|
/* 2790 */ 400, 521, 459, 460, 461, 462, 463, 464, 521, 466,
|
|
/* 2800 */ 372, 521, 412, 521, 414, 521, 521, 359, 453, 521,
|
|
/* 2810 */ 521, 456, 521, 521, 459, 460, 461, 462, 463, 464,
|
|
/* 2820 */ 372, 466, 521, 521, 453, 521, 521, 456, 400, 521,
|
|
/* 2830 */ 459, 460, 461, 462, 463, 464, 521, 466, 521, 521,
|
|
/* 2840 */ 412, 521, 414, 453, 521, 521, 456, 521, 400, 459,
|
|
/* 2850 */ 460, 461, 462, 463, 464, 521, 466, 521, 521, 521,
|
|
/* 2860 */ 412, 521, 414, 521, 521, 521, 521, 521, 521, 521,
|
|
/* 2870 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521,
|
|
/* 2880 */ 521, 453, 521, 521, 456, 521, 521, 459, 460, 461,
|
|
/* 2890 */ 462, 463, 464, 521, 466, 521, 521, 521, 521, 521,
|
|
/* 2900 */ 521, 453, 521, 521, 456, 521, 521, 459, 460, 461,
|
|
/* 2910 */ 462, 463, 464, 521, 466, 356, 356, 356, 356, 356,
|
|
/* 2920 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 2930 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 2940 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 2950 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 2960 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 2970 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 2980 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 2990 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3000 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3010 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3020 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3030 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3040 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3050 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3060 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3070 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3080 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3090 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3100 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3110 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3120 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3130 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3140 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3150 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3160 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3170 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3180 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3190 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3200 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3210 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3220 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3230 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3240 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3250 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3260 */ 356, 356, 356, 356, 356, 356, 356, 356, 356, 356,
|
|
/* 3270 */ 356,
|
|
};
|
|
#define YY_SHIFT_COUNT (849)
|
|
#define YY_SHIFT_MIN (0)
|
|
#define YY_SHIFT_MAX (2488)
|
|
static const unsigned short int yy_shift_ofst[] = {
|
|
/* 0 */ 1442, 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, 237, 523, 369, 251, 481, 667, 481, 481, 251,
|
|
/* 60 */ 251, 481, 609, 481, 240, 609, 609, 273, 481, 12,
|
|
/* 70 */ 23, 71, 71, 1081, 1081, 23, 335, 70, 254, 254,
|
|
/* 80 */ 93, 71, 71, 71, 71, 71, 71, 71, 71, 71,
|
|
/* 90 */ 71, 71, 200, 530, 71, 71, 131, 12, 71, 200,
|
|
/* 100 */ 71, 12, 71, 71, 12, 71, 71, 12, 71, 12,
|
|
/* 110 */ 12, 12, 71, 243, 202, 202, 485, 198, 749, 749,
|
|
/* 120 */ 749, 749, 749, 749, 749, 749, 749, 749, 749, 749,
|
|
/* 130 */ 749, 749, 749, 749, 749, 749, 749, 1154, 633, 335,
|
|
/* 140 */ 70, 489, 489, 63, 413, 413, 413, 375, 394, 394,
|
|
/* 150 */ 983, 63, 131, 223, 12, 12, 384, 12, 640, 12,
|
|
/* 160 */ 640, 640, 671, 766, 809, 809, 809, 809, 809, 809,
|
|
/* 170 */ 809, 809, 1984, 1066, 21, 685, 180, 180, 15, 58,
|
|
/* 180 */ 167, 86, 652, 564, 229, 397, 580, 124, 124, 682,
|
|
/* 190 */ 57, 962, 117, 117, 117, 732, 117, 854, 929, 1134,
|
|
/* 200 */ 825, 744, 493, 1134, 1134, 1165, 1253, 1253, 921, 424,
|
|
/* 210 */ 1119, 983, 1243, 1475, 1489, 1512, 1321, 131, 1512, 131,
|
|
/* 220 */ 1355, 1533, 1536, 1514, 1536, 1514, 1387, 1533, 1536, 1533,
|
|
/* 230 */ 1514, 1387, 1387, 1470, 1471, 1533, 1484, 1533, 1533, 1533,
|
|
/* 240 */ 1577, 1548, 1577, 1548, 1512, 131, 131, 1592, 131, 1602,
|
|
/* 250 */ 1605, 131, 1602, 131, 1612, 131, 131, 1533, 131, 1577,
|
|
/* 260 */ 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
|
|
/* 270 */ 12, 1533, 766, 766, 1577, 640, 640, 640, 1441, 1551,
|
|
/* 280 */ 1512, 243, 1647, 1482, 1490, 1592, 243, 1243, 1533, 640,
|
|
/* 290 */ 1411, 1416, 1411, 1416, 1417, 1519, 1411, 1432, 1434, 1446,
|
|
/* 300 */ 1243, 1462, 1467, 1445, 1449, 1448, 1536, 1727, 1632, 1473,
|
|
/* 310 */ 1602, 243, 243, 1416, 640, 640, 640, 640, 1416, 640,
|
|
/* 320 */ 1585, 243, 671, 243, 1536, 1677, 1680, 640, 1533, 243,
|
|
/* 330 */ 1766, 1755, 1577, 2915, 2915, 2915, 2915, 2915, 2915, 2915,
|
|
/* 340 */ 2915, 2915, 36, 2075, 306, 53, 504, 521, 995, 540,
|
|
/* 350 */ 271, 288, 80, 658, 1035, 1035, 1035, 1035, 1035, 1035,
|
|
/* 360 */ 1035, 1035, 1035, 639, 374, 35, 512, 512, 249, 157,
|
|
/* 370 */ 733, 1059, 784, 480, 781, 152, 518, 518, 862, 888,
|
|
/* 380 */ 447, 862, 862, 862, 990, 1078, 1166, 1234, 1227, 648,
|
|
/* 390 */ 1236, 1198, 1230, 1257, 1267, 1344, 1351, 1274, 1331, 1380,
|
|
/* 400 */ 1129, 1214, 1354, 1359, 1370, 1371, 1388, 1195, 259, 654,
|
|
/* 410 */ 1392, 1393, 1397, 1399, 1407, 1426, 1412, 1429, 276, 1430,
|
|
/* 420 */ 1268, 1431, 1433, 1435, 1438, 1439, 1440, 1364, 1443, 1444,
|
|
/* 430 */ 1461, 1474, 1447, 1469, 1830, 1831, 1833, 1790, 1836, 1801,
|
|
/* 440 */ 1615, 1804, 1805, 1812, 1629, 1854, 1818, 1820, 1634, 1822,
|
|
/* 450 */ 1860, 1638, 1863, 1827, 1865, 1829, 1867, 1847, 1871, 1835,
|
|
/* 460 */ 1655, 1875, 1670, 1878, 1678, 1679, 1687, 1690, 1891, 1892,
|
|
/* 470 */ 1893, 1699, 1701, 1896, 1897, 1751, 1850, 1851, 1904, 1868,
|
|
/* 480 */ 1906, 1907, 1873, 1862, 1911, 1874, 1914, 1879, 1925, 1926,
|
|
/* 490 */ 1927, 1881, 1928, 1932, 1933, 1934, 1935, 1936, 1776, 1901,
|
|
/* 500 */ 1939, 1779, 1941, 1942, 1944, 1946, 1947, 1948, 1950, 1951,
|
|
/* 510 */ 1952, 1953, 1955, 1956, 1957, 1958, 1959, 1960, 1962, 1915,
|
|
/* 520 */ 1966, 1922, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1954,
|
|
/* 530 */ 1975, 1832, 1977, 1834, 1981, 1837, 1986, 1988, 1967, 1949,
|
|
/* 540 */ 1976, 1978, 2000, 1940, 1979, 2007, 1961, 2017, 1963, 2021,
|
|
/* 550 */ 2022, 1989, 1980, 1990, 2023, 1993, 1982, 1992, 2037, 2002,
|
|
/* 560 */ 1999, 1998, 2041, 2014, 2052, 2008, 2013, 2024, 2009, 2012,
|
|
/* 570 */ 2046, 2015, 2063, 2028, 2031, 2078, 2079, 2081, 2082, 2033,
|
|
/* 580 */ 1886, 2091, 2009, 2044, 2094, 2096, 2026, 2099, 2100, 2070,
|
|
/* 590 */ 2058, 2069, 2112, 2076, 2064, 2072, 2117, 2083, 2067, 2077,
|
|
/* 600 */ 2121, 2085, 2074, 2086, 2123, 2127, 2130, 2131, 2132, 2133,
|
|
/* 610 */ 2027, 2032, 2101, 2118, 2142, 2106, 2108, 2109, 2110, 2111,
|
|
/* 620 */ 2113, 2114, 2115, 2116, 2120, 2119, 2122, 2136, 2124, 2154,
|
|
/* 630 */ 2138, 2155, 2140, 2126, 2163, 2144, 2137, 2164, 2167, 2168,
|
|
/* 640 */ 2139, 2170, 2141, 2173, 2153, 2157, 2145, 2148, 2149, 2080,
|
|
/* 650 */ 2084, 2181, 2010, 2087, 1994, 2009, 2143, 2188, 2016, 2159,
|
|
/* 660 */ 2172, 2198, 1997, 2179, 2025, 2020, 2203, 2205, 2029, 2036,
|
|
/* 670 */ 2035, 2038, 2204, 2176, 1931, 2105, 2128, 2134, 2156, 2129,
|
|
/* 680 */ 2162, 2146, 2147, 2193, 2194, 2151, 2135, 2160, 2161, 2152,
|
|
/* 690 */ 2195, 2180, 2182, 2165, 2197, 1965, 2166, 2158, 2199, 2169,
|
|
/* 700 */ 2201, 2185, 2186, 2231, 2211, 1985, 2208, 2209, 2213, 2214,
|
|
/* 710 */ 2215, 2216, 2187, 2189, 2219, 2003, 2227, 2223, 2236, 2262,
|
|
/* 720 */ 2174, 2234, 2192, 2196, 2200, 2202, 2206, 2090, 2207, 2279,
|
|
/* 730 */ 2257, 2150, 2217, 2190, 2009, 2251, 2268, 2220, 2050, 2221,
|
|
/* 740 */ 2304, 2287, 2089, 2222, 2210, 2228, 2212, 2229, 2226, 2261,
|
|
/* 750 */ 2232, 2235, 2266, 2230, 2289, 2092, 2242, 2224, 2243, 2284,
|
|
/* 760 */ 2285, 2245, 2246, 2290, 2250, 2252, 2292, 2254, 2265, 2315,
|
|
/* 770 */ 2263, 2269, 2320, 2267, 2278, 2338, 2280, 2260, 2264, 2270,
|
|
/* 780 */ 2271, 2282, 2357, 2286, 2356, 2288, 2357, 2357, 2374, 2328,
|
|
/* 790 */ 2330, 2364, 2366, 2367, 2368, 2369, 2373, 2375, 2376, 2377,
|
|
/* 800 */ 2331, 2316, 2340, 2318, 2382, 2383, 2384, 2385, 2397, 2387,
|
|
/* 810 */ 2389, 2391, 2352, 2116, 2394, 2120, 2395, 2396, 2398, 2399,
|
|
/* 820 */ 2412, 2400, 2438, 2402, 2392, 2403, 2441, 2409, 2401, 2407,
|
|
/* 830 */ 2450, 2416, 2411, 2423, 2466, 2432, 2427, 2437, 2481, 2458,
|
|
/* 840 */ 2461, 2485, 2465, 2468, 2477, 2482, 2483, 2484, 2486, 2488,
|
|
};
|
|
#define YY_REDUCE_COUNT (341)
|
|
#define YY_REDUCE_MIN (-477)
|
|
#define YY_REDUCE_MAX (2448)
|
|
static const short yy_reduce_ofst[] = {
|
|
/* 0 */ 332, -315, 142, 179, -32, 292, 409, 620, 653, 863,
|
|
/* 10 */ 956, 1116, 1143, 933, 1229, 1264, 432, 1346, 1384, 899,
|
|
/* 20 */ -90, 1363, 1456, 1420, 1531, 1549, 1606, 1624, 1642, 1757,
|
|
/* 30 */ 1825, 1883, 1902, 1918, 1995, 2011, 2030, 2068, 2088, 2104,
|
|
/* 40 */ 2125, 2218, 2238, 2256, 2275, 2333, 2355, 2371, 2390, 2428,
|
|
/* 50 */ 2448, -313, -328, 548, -290, 668, 676, 735, 738, 651,
|
|
/* 60 */ 805, 746, 161, -477, -264, -89, 283, 300, 585, -390,
|
|
/* 70 */ -331, -77, 150, -366, -195, -228, -346, 96, -362, 39,
|
|
/* 80 */ 172, -365, 225, 319, 371, 160, 291, 462, 545, 626,
|
|
/* 90 */ 644, 418, 263, 379, 647, 665, -230, 422, 683, 460,
|
|
/* 100 */ 853, 507, 861, 868, 428, 907, 909, 586, 913, 613,
|
|
/* 110 */ 599, 763, 923, 940, -434, -434, -326, -94, -103, -31,
|
|
/* 120 */ 212, 680, 687, 693, 713, 736, 776, 830, 870, 896,
|
|
/* 130 */ 938, 942, 961, 973, 1012, 1016, 1019, -92, -203, -340,
|
|
/* 140 */ 9, 544, 576, 284, -203, -143, 604, 363, 519, 554,
|
|
/* 150 */ -371, 704, 714, -216, 104, 630, -84, 661, 501, 752,
|
|
/* 160 */ 535, 760, 214, 812, -400, 404, 434, 627, 656, 674,
|
|
/* 170 */ 743, 656, 739, 436, 503, 757, 703, 703, 783, 798,
|
|
/* 180 */ 703, 780, 976, 881, 703, 1001, 1001, 1020, 1047, 1011,
|
|
/* 190 */ 1106, 1060, 982, 984, 985, 1056, 986, 1001, 1122, 1069,
|
|
/* 200 */ 1131, 1090, 1063, 1087, 1088, 1001, 1026, 1027, 1007, 1041,
|
|
/* 210 */ 1028, 1133, 1091, 1074, 1080, 1092, 1089, 1164, 1102, 1170,
|
|
/* 220 */ 1113, 1183, 1186, 1139, 1189, 1141, 1146, 1194, 1196, 1199,
|
|
/* 230 */ 1145, 1149, 1153, 1197, 1200, 1213, 1208, 1220, 1221, 1224,
|
|
/* 240 */ 1244, 1232, 1246, 1245, 1168, 1231, 1237, 1204, 1239, 1251,
|
|
/* 250 */ 1190, 1248, 1258, 1250, 1209, 1259, 1260, 1255, 1262, 1282,
|
|
/* 260 */ 1247, 1249, 1254, 1256, 1261, 1263, 1266, 1273, 1275, 1277,
|
|
/* 270 */ 1279, 1284, 1286, 1288, 1289, 1269, 1271, 1272, 1207, 1211,
|
|
/* 280 */ 1233, 1296, 1240, 1252, 1265, 1283, 1320, 1276, 1328, 1291,
|
|
/* 290 */ 1201, 1280, 1215, 1281, 1210, 1217, 1216, 1235, 1238, 1241,
|
|
/* 300 */ 1297, 1290, 1270, 1219, 1287, 1242, 1373, 1292, 1278, 1285,
|
|
/* 310 */ 1381, 1379, 1383, 1332, 1352, 1353, 1357, 1358, 1336, 1360,
|
|
/* 320 */ 1345, 1396, 1385, 1398, 1410, 1309, 1386, 1375, 1418, 1413,
|
|
/* 330 */ 1436, 1452, 1450, 1356, 1365, 1369, 1372, 1400, 1424, 1427,
|
|
/* 340 */ 1425, 1454,
|
|
};
|
|
static const YYACTIONTYPE yy_default[] = {
|
|
/* 0 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 10 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 20 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 30 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 40 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 50 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 60 */ 1921, 2256, 1921, 1921, 2219, 1921, 1921, 1921, 1921, 1921,
|
|
/* 70 */ 1921, 1921, 1921, 1921, 1921, 1921, 2226, 1921, 1921, 1921,
|
|
/* 80 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 90 */ 1921, 1921, 1921, 1921, 1921, 1921, 2018, 1921, 1921, 1921,
|
|
/* 100 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 110 */ 1921, 1921, 1921, 2016, 2459, 1921, 1921, 1921, 1921, 1921,
|
|
/* 120 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 130 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 2471, 1921,
|
|
/* 140 */ 1921, 1992, 1992, 1921, 2471, 2471, 2471, 2016, 2431, 2431,
|
|
/* 150 */ 1921, 1921, 2018, 2294, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 160 */ 1921, 1921, 2141, 1951, 1921, 1921, 1921, 1921, 2165, 1921,
|
|
/* 170 */ 1921, 1921, 2282, 1921, 1921, 2515, 2463, 2464, 2575, 1921,
|
|
/* 180 */ 2477, 2482, 1921, 2518, 2477, 1921, 1921, 1921, 1921, 2231,
|
|
/* 190 */ 1921, 2505, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 200 */ 1921, 2094, 2276, 1921, 1921, 1921, 1921, 1921, 2559, 2461,
|
|
/* 210 */ 2499, 1921, 2509, 1921, 2319, 1921, 2308, 2018, 1921, 2018,
|
|
/* 220 */ 2269, 2214, 1921, 2224, 1921, 2224, 2221, 1921, 1921, 1921,
|
|
/* 230 */ 2224, 2221, 2221, 2083, 2079, 1921, 2077, 1921, 1921, 1921,
|
|
/* 240 */ 1921, 1976, 1921, 1976, 1921, 2018, 2018, 1921, 2018, 1921,
|
|
/* 250 */ 1921, 2018, 1921, 2018, 1921, 2018, 2018, 1921, 2018, 1921,
|
|
/* 260 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 270 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 2306, 2292,
|
|
/* 280 */ 1921, 2016, 1921, 2280, 2278, 1921, 2016, 2509, 1921, 1921,
|
|
/* 290 */ 2529, 2524, 2529, 2524, 2543, 2539, 2529, 2548, 2545, 2511,
|
|
/* 300 */ 2509, 2492, 2488, 2578, 2565, 2561, 1921, 1921, 2497, 2495,
|
|
/* 310 */ 1921, 2016, 2016, 2524, 1921, 1921, 1921, 1921, 2524, 1921,
|
|
/* 320 */ 1921, 2016, 1921, 2016, 1921, 1921, 2110, 1921, 1921, 2016,
|
|
/* 330 */ 1921, 1960, 1921, 2271, 2297, 2252, 2252, 2144, 2144, 2144,
|
|
/* 340 */ 2019, 1926, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 350 */ 1921, 1921, 1921, 1921, 2542, 2541, 2384, 1921, 2435, 2434,
|
|
/* 360 */ 2433, 2424, 2383, 2106, 1921, 1921, 2382, 2381, 1921, 1921,
|
|
/* 370 */ 1921, 1921, 1921, 1921, 1921, 1921, 2243, 2242, 2375, 1921,
|
|
/* 380 */ 1921, 2376, 2374, 2373, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 390 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 400 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 2562, 2566,
|
|
/* 410 */ 1921, 1921, 1921, 1921, 1921, 1921, 2460, 1921, 1921, 1921,
|
|
/* 420 */ 2355, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 430 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 440 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 450 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 460 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 470 */ 1921, 1921, 1921, 1921, 1921, 2220, 1921, 1921, 1921, 1921,
|
|
/* 480 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 490 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 500 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 510 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 520 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 530 */ 1921, 1921, 1921, 1921, 1921, 2235, 1921, 1921, 1921, 1921,
|
|
/* 540 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 550 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 560 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1965, 2362, 1921,
|
|
/* 570 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 580 */ 1921, 1921, 2365, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 590 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 600 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 610 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 620 */ 1921, 1921, 1921, 2058, 2057, 1921, 1921, 1921, 1921, 1921,
|
|
/* 630 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 640 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 2366,
|
|
/* 650 */ 1921, 1921, 1921, 1921, 1921, 2357, 1921, 1921, 1921, 1921,
|
|
/* 660 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 670 */ 1921, 1921, 2558, 2512, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 680 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 690 */ 1921, 1921, 2355, 1921, 2540, 1921, 1921, 1921, 1921, 1921,
|
|
/* 700 */ 1921, 1921, 2556, 1921, 2560, 1921, 1921, 1921, 1921, 1921,
|
|
/* 710 */ 1921, 1921, 2470, 2466, 1921, 1921, 2462, 1921, 1921, 1921,
|
|
/* 720 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 730 */ 1921, 1921, 1921, 1921, 2354, 1921, 2421, 1921, 1921, 1921,
|
|
/* 740 */ 2455, 1921, 1921, 2406, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 750 */ 1921, 1921, 1921, 2366, 1921, 2369, 1921, 1921, 1921, 1921,
|
|
/* 760 */ 1921, 2138, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 770 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 2122, 2120, 2119,
|
|
/* 780 */ 2118, 1921, 2151, 1921, 1921, 1921, 2147, 2146, 1921, 1921,
|
|
/* 790 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 800 */ 1921, 1921, 1921, 1921, 2037, 1921, 1921, 1921, 1921, 1921,
|
|
/* 810 */ 1921, 1921, 1921, 2029, 1921, 2028, 1921, 1921, 1921, 1921,
|
|
/* 820 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 830 */ 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
/* 840 */ 1921, 1921, 1921, 1950, 1921, 1921, 1921, 1921, 1921, 1921,
|
|
};
|
|
/********** End of lemon-generated parsing tables *****************************/
|
|
|
|
/* The next table maps tokens (terminal symbols) into fallback tokens.
|
|
** If a construct like the following:
|
|
**
|
|
** %fallback ID X Y Z.
|
|
**
|
|
** appears in the grammar, then ID becomes a fallback token for X, Y,
|
|
** and Z. Whenever one of the tokens X, Y, or Z is input to the parser
|
|
** but it does not parse, the type of the token is changed to ID and
|
|
** the parse is retried before an error is thrown.
|
|
**
|
|
** This feature can be used, for example, to cause some keywords in a language
|
|
** to revert to identifiers if they keyword does not apply in the context where
|
|
** it appears.
|
|
*/
|
|
#ifdef YYFALLBACK
|
|
static const YYCODETYPE yyFallback[] = {
|
|
0, /* $ => nothing */
|
|
0, /* OR => nothing */
|
|
0, /* AND => nothing */
|
|
0, /* UNION => nothing */
|
|
0, /* ALL => nothing */
|
|
0, /* MINUS => nothing */
|
|
0, /* EXCEPT => nothing */
|
|
0, /* INTERSECT => nothing */
|
|
0, /* NK_BITAND => nothing */
|
|
0, /* NK_BITOR => nothing */
|
|
0, /* NK_LSHIFT => nothing */
|
|
0, /* NK_RSHIFT => nothing */
|
|
0, /* NK_PLUS => nothing */
|
|
0, /* NK_MINUS => nothing */
|
|
0, /* NK_STAR => nothing */
|
|
0, /* NK_SLASH => nothing */
|
|
0, /* NK_REM => nothing */
|
|
0, /* NK_CONCAT => nothing */
|
|
0, /* CREATE => nothing */
|
|
0, /* ACCOUNT => nothing */
|
|
0, /* NK_ID => nothing */
|
|
0, /* PASS => nothing */
|
|
0, /* NK_STRING => nothing */
|
|
0, /* ALTER => nothing */
|
|
0, /* PPS => nothing */
|
|
0, /* TSERIES => nothing */
|
|
0, /* STORAGE => nothing */
|
|
0, /* STREAMS => nothing */
|
|
0, /* QTIME => nothing */
|
|
0, /* DBS => nothing */
|
|
0, /* USERS => nothing */
|
|
0, /* CONNS => nothing */
|
|
0, /* STATE => nothing */
|
|
0, /* NK_COMMA => nothing */
|
|
0, /* HOST => nothing */
|
|
0, /* USER => nothing */
|
|
0, /* ENABLE => nothing */
|
|
0, /* NK_INTEGER => nothing */
|
|
0, /* SYSINFO => nothing */
|
|
0, /* ADD => nothing */
|
|
0, /* DROP => nothing */
|
|
0, /* GRANT => nothing */
|
|
0, /* ON => nothing */
|
|
0, /* TO => nothing */
|
|
0, /* REVOKE => nothing */
|
|
0, /* FROM => nothing */
|
|
0, /* SUBSCRIBE => nothing */
|
|
0, /* READ => nothing */
|
|
0, /* WRITE => nothing */
|
|
0, /* NK_DOT => nothing */
|
|
0, /* WITH => nothing */
|
|
0, /* DNODE => nothing */
|
|
0, /* PORT => nothing */
|
|
0, /* DNODES => nothing */
|
|
0, /* RESTORE => nothing */
|
|
0, /* NK_IPTOKEN => nothing */
|
|
0, /* FORCE => nothing */
|
|
0, /* UNSAFE => nothing */
|
|
0, /* LOCAL => nothing */
|
|
0, /* QNODE => nothing */
|
|
0, /* BNODE => nothing */
|
|
0, /* SNODE => nothing */
|
|
0, /* MNODE => nothing */
|
|
0, /* VNODE => nothing */
|
|
0, /* DATABASE => nothing */
|
|
0, /* USE => nothing */
|
|
0, /* FLUSH => nothing */
|
|
0, /* TRIM => nothing */
|
|
0, /* COMPACT => nothing */
|
|
0, /* IF => nothing */
|
|
0, /* NOT => nothing */
|
|
0, /* EXISTS => nothing */
|
|
0, /* BUFFER => nothing */
|
|
0, /* CACHEMODEL => nothing */
|
|
0, /* CACHESIZE => nothing */
|
|
0, /* COMP => nothing */
|
|
0, /* DURATION => nothing */
|
|
0, /* NK_VARIABLE => nothing */
|
|
0, /* MAXROWS => nothing */
|
|
0, /* MINROWS => nothing */
|
|
0, /* KEEP => nothing */
|
|
0, /* PAGES => nothing */
|
|
0, /* PAGESIZE => nothing */
|
|
0, /* TSDB_PAGESIZE => nothing */
|
|
0, /* PRECISION => nothing */
|
|
0, /* REPLICA => nothing */
|
|
0, /* VGROUPS => nothing */
|
|
0, /* SINGLE_STABLE => nothing */
|
|
0, /* RETENTIONS => nothing */
|
|
0, /* SCHEMALESS => nothing */
|
|
0, /* WAL_LEVEL => nothing */
|
|
0, /* WAL_FSYNC_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_SIZE => nothing */
|
|
0, /* WAL_ROLL_PERIOD => nothing */
|
|
0, /* WAL_SEGMENT_SIZE => nothing */
|
|
0, /* STT_TRIGGER => nothing */
|
|
0, /* TABLE_PREFIX => nothing */
|
|
0, /* TABLE_SUFFIX => nothing */
|
|
0, /* KEEP_TIME_OFFSET => nothing */
|
|
0, /* NK_COLON => nothing */
|
|
0, /* BWLIMIT => nothing */
|
|
0, /* START => nothing */
|
|
0, /* TIMESTAMP => nothing */
|
|
307, /* END => ABORT */
|
|
0, /* TABLE => nothing */
|
|
0, /* NK_LP => nothing */
|
|
0, /* NK_RP => nothing */
|
|
0, /* STABLE => nothing */
|
|
0, /* COLUMN => nothing */
|
|
0, /* MODIFY => nothing */
|
|
0, /* RENAME => nothing */
|
|
0, /* TAG => nothing */
|
|
0, /* SET => nothing */
|
|
0, /* NK_EQ => nothing */
|
|
0, /* USING => nothing */
|
|
0, /* TAGS => nothing */
|
|
0, /* BOOL => nothing */
|
|
0, /* TINYINT => nothing */
|
|
0, /* SMALLINT => nothing */
|
|
0, /* INT => nothing */
|
|
0, /* INTEGER => nothing */
|
|
0, /* BIGINT => nothing */
|
|
0, /* FLOAT => nothing */
|
|
0, /* DOUBLE => nothing */
|
|
0, /* BINARY => nothing */
|
|
0, /* NCHAR => nothing */
|
|
0, /* UNSIGNED => nothing */
|
|
0, /* JSON => nothing */
|
|
0, /* VARCHAR => nothing */
|
|
0, /* MEDIUMBLOB => nothing */
|
|
0, /* BLOB => nothing */
|
|
0, /* VARBINARY => nothing */
|
|
0, /* GEOMETRY => nothing */
|
|
0, /* DECIMAL => nothing */
|
|
0, /* COMMENT => nothing */
|
|
0, /* MAX_DELAY => nothing */
|
|
0, /* WATERMARK => nothing */
|
|
0, /* ROLLUP => nothing */
|
|
0, /* TTL => nothing */
|
|
0, /* SMA => nothing */
|
|
0, /* DELETE_MARK => nothing */
|
|
0, /* FIRST => nothing */
|
|
0, /* LAST => nothing */
|
|
0, /* SHOW => nothing */
|
|
0, /* PRIVILEGES => nothing */
|
|
0, /* DATABASES => nothing */
|
|
0, /* TABLES => nothing */
|
|
0, /* STABLES => nothing */
|
|
0, /* MNODES => nothing */
|
|
0, /* QNODES => nothing */
|
|
0, /* FUNCTIONS => nothing */
|
|
0, /* INDEXES => nothing */
|
|
0, /* ACCOUNTS => nothing */
|
|
0, /* APPS => nothing */
|
|
0, /* CONNECTIONS => nothing */
|
|
0, /* LICENCES => nothing */
|
|
0, /* GRANTS => nothing */
|
|
0, /* QUERIES => nothing */
|
|
0, /* SCORES => nothing */
|
|
0, /* TOPICS => nothing */
|
|
0, /* VARIABLES => nothing */
|
|
0, /* CLUSTER => nothing */
|
|
0, /* BNODES => nothing */
|
|
0, /* SNODES => nothing */
|
|
0, /* TRANSACTIONS => nothing */
|
|
0, /* DISTRIBUTED => nothing */
|
|
0, /* CONSUMERS => nothing */
|
|
0, /* SUBSCRIPTIONS => nothing */
|
|
0, /* VNODES => nothing */
|
|
0, /* ALIVE => nothing */
|
|
0, /* VIEWS => nothing */
|
|
307, /* 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, /* LEFT => nothing */
|
|
0, /* RIGHT => nothing */
|
|
0, /* FULL => nothing */
|
|
0, /* OUTER => nothing */
|
|
307, /* SEMI => ABORT */
|
|
0, /* ANTI => nothing */
|
|
0, /* ASOF => nothing */
|
|
0, /* WINDOW => nothing */
|
|
0, /* WINDOW_OFFSET => nothing */
|
|
0, /* JLIMIT => 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 */
|
|
307, /* AFTER => ABORT */
|
|
307, /* ATTACH => ABORT */
|
|
307, /* BEFORE => ABORT */
|
|
307, /* BEGIN => ABORT */
|
|
307, /* BITAND => ABORT */
|
|
307, /* BITNOT => ABORT */
|
|
307, /* BITOR => ABORT */
|
|
307, /* BLOCKS => ABORT */
|
|
307, /* CHANGE => ABORT */
|
|
307, /* COMMA => ABORT */
|
|
307, /* CONCAT => ABORT */
|
|
307, /* CONFLICT => ABORT */
|
|
307, /* COPY => ABORT */
|
|
307, /* DEFERRED => ABORT */
|
|
307, /* DELIMITERS => ABORT */
|
|
307, /* DETACH => ABORT */
|
|
307, /* DIVIDE => ABORT */
|
|
307, /* DOT => ABORT */
|
|
307, /* EACH => ABORT */
|
|
307, /* FAIL => ABORT */
|
|
307, /* FILE => ABORT */
|
|
307, /* FOR => ABORT */
|
|
307, /* GLOB => ABORT */
|
|
307, /* ID => ABORT */
|
|
307, /* IMMEDIATE => ABORT */
|
|
307, /* IMPORT => ABORT */
|
|
307, /* INITIALLY => ABORT */
|
|
307, /* INSTEAD => ABORT */
|
|
307, /* ISNULL => ABORT */
|
|
307, /* KEY => ABORT */
|
|
307, /* MODULES => ABORT */
|
|
307, /* NK_BITNOT => ABORT */
|
|
307, /* NK_SEMI => ABORT */
|
|
307, /* NOTNULL => ABORT */
|
|
307, /* OF => ABORT */
|
|
307, /* PLUS => ABORT */
|
|
307, /* PRIVILEGE => ABORT */
|
|
307, /* RAISE => ABORT */
|
|
307, /* RESTRICT => ABORT */
|
|
307, /* ROW => ABORT */
|
|
307, /* STAR => ABORT */
|
|
307, /* STATEMENT => ABORT */
|
|
307, /* STRICT => ABORT */
|
|
307, /* STRING => ABORT */
|
|
307, /* TIMES => ABORT */
|
|
307, /* VALUES => ABORT */
|
|
307, /* VARIABLE => ABORT */
|
|
307, /* WAL => ABORT */
|
|
};
|
|
#endif /* YYFALLBACK */
|
|
|
|
/* The following structure represents a single element of the
|
|
** parser's stack. Information stored includes:
|
|
**
|
|
** + The state number for the parser at this level of the stack.
|
|
**
|
|
** + The value of the token stored at this level of the stack.
|
|
** (In other words, the "major" token.)
|
|
**
|
|
** + The semantic value stored at this level of the stack. This is
|
|
** the information used by the action routines in the grammar.
|
|
** It is sometimes called the "minor" token.
|
|
**
|
|
** After the "shift" half of a SHIFTREDUCE action, the stateno field
|
|
** actually contains the reduce action for the second half of the
|
|
** SHIFTREDUCE.
|
|
*/
|
|
struct yyStackEntry {
|
|
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
|
|
YYCODETYPE major; /* The major token value. This is the code
|
|
** number for the token at this stack level */
|
|
YYMINORTYPE minor; /* The user-supplied minor token value. This
|
|
** is the value of the token */
|
|
};
|
|
typedef struct yyStackEntry yyStackEntry;
|
|
|
|
/* The state of the parser is completely contained in an instance of
|
|
** the following structure */
|
|
struct yyParser {
|
|
yyStackEntry *yytos; /* Pointer to top element of the stack */
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
int yyhwm; /* High-water mark of the stack */
|
|
#endif
|
|
#ifndef YYNOERRORRECOVERY
|
|
int yyerrcnt; /* Shifts left before out of the error */
|
|
#endif
|
|
ParseARG_SDECL /* A place to hold %extra_argument */
|
|
ParseCTX_SDECL /* A place to hold %extra_context */
|
|
#if YYSTACKDEPTH<=0
|
|
int yystksz; /* Current side of the stack */
|
|
yyStackEntry *yystack; /* The parser's stack */
|
|
yyStackEntry yystk0; /* First stack entry */
|
|
#else
|
|
yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
|
|
yyStackEntry *yystackEnd; /* Last entry in the stack */
|
|
#endif
|
|
};
|
|
typedef struct yyParser yyParser;
|
|
|
|
#ifndef NDEBUG
|
|
#include <stdio.h>
|
|
static FILE *yyTraceFILE = 0;
|
|
static char *yyTracePrompt = 0;
|
|
#endif /* NDEBUG */
|
|
|
|
#ifndef NDEBUG
|
|
/*
|
|
** Turn parser tracing on by giving a stream to which to write the trace
|
|
** and a prompt to preface each trace message. Tracing is turned off
|
|
** by making either argument NULL
|
|
**
|
|
** Inputs:
|
|
** <ul>
|
|
** <li> A FILE* to which trace output should be written.
|
|
** If NULL, then tracing is turned off.
|
|
** <li> A prefix string written at the beginning of every
|
|
** line of trace output. If NULL, then tracing is
|
|
** turned off.
|
|
** </ul>
|
|
**
|
|
** Outputs:
|
|
** None.
|
|
*/
|
|
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
|
|
yyTraceFILE = TraceFILE;
|
|
yyTracePrompt = zTracePrompt;
|
|
if( yyTraceFILE==0 ) yyTracePrompt = 0;
|
|
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
|
|
}
|
|
#endif /* NDEBUG */
|
|
|
|
#if defined(YYCOVERAGE) || !defined(NDEBUG)
|
|
/* For tracing shifts, the names of all terminals and nonterminals
|
|
** are required. The following table supplies these names */
|
|
static const char *const yyTokenName[] = {
|
|
/* 0 */ "$",
|
|
/* 1 */ "OR",
|
|
/* 2 */ "AND",
|
|
/* 3 */ "UNION",
|
|
/* 4 */ "ALL",
|
|
/* 5 */ "MINUS",
|
|
/* 6 */ "EXCEPT",
|
|
/* 7 */ "INTERSECT",
|
|
/* 8 */ "NK_BITAND",
|
|
/* 9 */ "NK_BITOR",
|
|
/* 10 */ "NK_LSHIFT",
|
|
/* 11 */ "NK_RSHIFT",
|
|
/* 12 */ "NK_PLUS",
|
|
/* 13 */ "NK_MINUS",
|
|
/* 14 */ "NK_STAR",
|
|
/* 15 */ "NK_SLASH",
|
|
/* 16 */ "NK_REM",
|
|
/* 17 */ "NK_CONCAT",
|
|
/* 18 */ "CREATE",
|
|
/* 19 */ "ACCOUNT",
|
|
/* 20 */ "NK_ID",
|
|
/* 21 */ "PASS",
|
|
/* 22 */ "NK_STRING",
|
|
/* 23 */ "ALTER",
|
|
/* 24 */ "PPS",
|
|
/* 25 */ "TSERIES",
|
|
/* 26 */ "STORAGE",
|
|
/* 27 */ "STREAMS",
|
|
/* 28 */ "QTIME",
|
|
/* 29 */ "DBS",
|
|
/* 30 */ "USERS",
|
|
/* 31 */ "CONNS",
|
|
/* 32 */ "STATE",
|
|
/* 33 */ "NK_COMMA",
|
|
/* 34 */ "HOST",
|
|
/* 35 */ "USER",
|
|
/* 36 */ "ENABLE",
|
|
/* 37 */ "NK_INTEGER",
|
|
/* 38 */ "SYSINFO",
|
|
/* 39 */ "ADD",
|
|
/* 40 */ "DROP",
|
|
/* 41 */ "GRANT",
|
|
/* 42 */ "ON",
|
|
/* 43 */ "TO",
|
|
/* 44 */ "REVOKE",
|
|
/* 45 */ "FROM",
|
|
/* 46 */ "SUBSCRIBE",
|
|
/* 47 */ "READ",
|
|
/* 48 */ "WRITE",
|
|
/* 49 */ "NK_DOT",
|
|
/* 50 */ "WITH",
|
|
/* 51 */ "DNODE",
|
|
/* 52 */ "PORT",
|
|
/* 53 */ "DNODES",
|
|
/* 54 */ "RESTORE",
|
|
/* 55 */ "NK_IPTOKEN",
|
|
/* 56 */ "FORCE",
|
|
/* 57 */ "UNSAFE",
|
|
/* 58 */ "LOCAL",
|
|
/* 59 */ "QNODE",
|
|
/* 60 */ "BNODE",
|
|
/* 61 */ "SNODE",
|
|
/* 62 */ "MNODE",
|
|
/* 63 */ "VNODE",
|
|
/* 64 */ "DATABASE",
|
|
/* 65 */ "USE",
|
|
/* 66 */ "FLUSH",
|
|
/* 67 */ "TRIM",
|
|
/* 68 */ "COMPACT",
|
|
/* 69 */ "IF",
|
|
/* 70 */ "NOT",
|
|
/* 71 */ "EXISTS",
|
|
/* 72 */ "BUFFER",
|
|
/* 73 */ "CACHEMODEL",
|
|
/* 74 */ "CACHESIZE",
|
|
/* 75 */ "COMP",
|
|
/* 76 */ "DURATION",
|
|
/* 77 */ "NK_VARIABLE",
|
|
/* 78 */ "MAXROWS",
|
|
/* 79 */ "MINROWS",
|
|
/* 80 */ "KEEP",
|
|
/* 81 */ "PAGES",
|
|
/* 82 */ "PAGESIZE",
|
|
/* 83 */ "TSDB_PAGESIZE",
|
|
/* 84 */ "PRECISION",
|
|
/* 85 */ "REPLICA",
|
|
/* 86 */ "VGROUPS",
|
|
/* 87 */ "SINGLE_STABLE",
|
|
/* 88 */ "RETENTIONS",
|
|
/* 89 */ "SCHEMALESS",
|
|
/* 90 */ "WAL_LEVEL",
|
|
/* 91 */ "WAL_FSYNC_PERIOD",
|
|
/* 92 */ "WAL_RETENTION_PERIOD",
|
|
/* 93 */ "WAL_RETENTION_SIZE",
|
|
/* 94 */ "WAL_ROLL_PERIOD",
|
|
/* 95 */ "WAL_SEGMENT_SIZE",
|
|
/* 96 */ "STT_TRIGGER",
|
|
/* 97 */ "TABLE_PREFIX",
|
|
/* 98 */ "TABLE_SUFFIX",
|
|
/* 99 */ "KEEP_TIME_OFFSET",
|
|
/* 100 */ "NK_COLON",
|
|
/* 101 */ "BWLIMIT",
|
|
/* 102 */ "START",
|
|
/* 103 */ "TIMESTAMP",
|
|
/* 104 */ "END",
|
|
/* 105 */ "TABLE",
|
|
/* 106 */ "NK_LP",
|
|
/* 107 */ "NK_RP",
|
|
/* 108 */ "STABLE",
|
|
/* 109 */ "COLUMN",
|
|
/* 110 */ "MODIFY",
|
|
/* 111 */ "RENAME",
|
|
/* 112 */ "TAG",
|
|
/* 113 */ "SET",
|
|
/* 114 */ "NK_EQ",
|
|
/* 115 */ "USING",
|
|
/* 116 */ "TAGS",
|
|
/* 117 */ "BOOL",
|
|
/* 118 */ "TINYINT",
|
|
/* 119 */ "SMALLINT",
|
|
/* 120 */ "INT",
|
|
/* 121 */ "INTEGER",
|
|
/* 122 */ "BIGINT",
|
|
/* 123 */ "FLOAT",
|
|
/* 124 */ "DOUBLE",
|
|
/* 125 */ "BINARY",
|
|
/* 126 */ "NCHAR",
|
|
/* 127 */ "UNSIGNED",
|
|
/* 128 */ "JSON",
|
|
/* 129 */ "VARCHAR",
|
|
/* 130 */ "MEDIUMBLOB",
|
|
/* 131 */ "BLOB",
|
|
/* 132 */ "VARBINARY",
|
|
/* 133 */ "GEOMETRY",
|
|
/* 134 */ "DECIMAL",
|
|
/* 135 */ "COMMENT",
|
|
/* 136 */ "MAX_DELAY",
|
|
/* 137 */ "WATERMARK",
|
|
/* 138 */ "ROLLUP",
|
|
/* 139 */ "TTL",
|
|
/* 140 */ "SMA",
|
|
/* 141 */ "DELETE_MARK",
|
|
/* 142 */ "FIRST",
|
|
/* 143 */ "LAST",
|
|
/* 144 */ "SHOW",
|
|
/* 145 */ "PRIVILEGES",
|
|
/* 146 */ "DATABASES",
|
|
/* 147 */ "TABLES",
|
|
/* 148 */ "STABLES",
|
|
/* 149 */ "MNODES",
|
|
/* 150 */ "QNODES",
|
|
/* 151 */ "FUNCTIONS",
|
|
/* 152 */ "INDEXES",
|
|
/* 153 */ "ACCOUNTS",
|
|
/* 154 */ "APPS",
|
|
/* 155 */ "CONNECTIONS",
|
|
/* 156 */ "LICENCES",
|
|
/* 157 */ "GRANTS",
|
|
/* 158 */ "QUERIES",
|
|
/* 159 */ "SCORES",
|
|
/* 160 */ "TOPICS",
|
|
/* 161 */ "VARIABLES",
|
|
/* 162 */ "CLUSTER",
|
|
/* 163 */ "BNODES",
|
|
/* 164 */ "SNODES",
|
|
/* 165 */ "TRANSACTIONS",
|
|
/* 166 */ "DISTRIBUTED",
|
|
/* 167 */ "CONSUMERS",
|
|
/* 168 */ "SUBSCRIPTIONS",
|
|
/* 169 */ "VNODES",
|
|
/* 170 */ "ALIVE",
|
|
/* 171 */ "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 */ "LEFT",
|
|
/* 270 */ "RIGHT",
|
|
/* 271 */ "FULL",
|
|
/* 272 */ "OUTER",
|
|
/* 273 */ "SEMI",
|
|
/* 274 */ "ANTI",
|
|
/* 275 */ "ASOF",
|
|
/* 276 */ "WINDOW",
|
|
/* 277 */ "WINDOW_OFFSET",
|
|
/* 278 */ "JLIMIT",
|
|
/* 279 */ "SELECT",
|
|
/* 280 */ "NK_HINT",
|
|
/* 281 */ "DISTINCT",
|
|
/* 282 */ "WHERE",
|
|
/* 283 */ "PARTITION",
|
|
/* 284 */ "BY",
|
|
/* 285 */ "SESSION",
|
|
/* 286 */ "STATE_WINDOW",
|
|
/* 287 */ "EVENT_WINDOW",
|
|
/* 288 */ "SLIDING",
|
|
/* 289 */ "FILL",
|
|
/* 290 */ "VALUE",
|
|
/* 291 */ "VALUE_F",
|
|
/* 292 */ "NONE",
|
|
/* 293 */ "PREV",
|
|
/* 294 */ "NULL_F",
|
|
/* 295 */ "LINEAR",
|
|
/* 296 */ "NEXT",
|
|
/* 297 */ "HAVING",
|
|
/* 298 */ "RANGE",
|
|
/* 299 */ "EVERY",
|
|
/* 300 */ "ORDER",
|
|
/* 301 */ "SLIMIT",
|
|
/* 302 */ "SOFFSET",
|
|
/* 303 */ "LIMIT",
|
|
/* 304 */ "OFFSET",
|
|
/* 305 */ "ASC",
|
|
/* 306 */ "NULLS",
|
|
/* 307 */ "ABORT",
|
|
/* 308 */ "AFTER",
|
|
/* 309 */ "ATTACH",
|
|
/* 310 */ "BEFORE",
|
|
/* 311 */ "BEGIN",
|
|
/* 312 */ "BITAND",
|
|
/* 313 */ "BITNOT",
|
|
/* 314 */ "BITOR",
|
|
/* 315 */ "BLOCKS",
|
|
/* 316 */ "CHANGE",
|
|
/* 317 */ "COMMA",
|
|
/* 318 */ "CONCAT",
|
|
/* 319 */ "CONFLICT",
|
|
/* 320 */ "COPY",
|
|
/* 321 */ "DEFERRED",
|
|
/* 322 */ "DELIMITERS",
|
|
/* 323 */ "DETACH",
|
|
/* 324 */ "DIVIDE",
|
|
/* 325 */ "DOT",
|
|
/* 326 */ "EACH",
|
|
/* 327 */ "FAIL",
|
|
/* 328 */ "FILE",
|
|
/* 329 */ "FOR",
|
|
/* 330 */ "GLOB",
|
|
/* 331 */ "ID",
|
|
/* 332 */ "IMMEDIATE",
|
|
/* 333 */ "IMPORT",
|
|
/* 334 */ "INITIALLY",
|
|
/* 335 */ "INSTEAD",
|
|
/* 336 */ "ISNULL",
|
|
/* 337 */ "KEY",
|
|
/* 338 */ "MODULES",
|
|
/* 339 */ "NK_BITNOT",
|
|
/* 340 */ "NK_SEMI",
|
|
/* 341 */ "NOTNULL",
|
|
/* 342 */ "OF",
|
|
/* 343 */ "PLUS",
|
|
/* 344 */ "PRIVILEGE",
|
|
/* 345 */ "RAISE",
|
|
/* 346 */ "RESTRICT",
|
|
/* 347 */ "ROW",
|
|
/* 348 */ "STAR",
|
|
/* 349 */ "STATEMENT",
|
|
/* 350 */ "STRICT",
|
|
/* 351 */ "STRING",
|
|
/* 352 */ "TIMES",
|
|
/* 353 */ "VALUES",
|
|
/* 354 */ "VARIABLE",
|
|
/* 355 */ "WAL",
|
|
/* 356 */ "cmd",
|
|
/* 357 */ "account_options",
|
|
/* 358 */ "alter_account_options",
|
|
/* 359 */ "literal",
|
|
/* 360 */ "alter_account_option",
|
|
/* 361 */ "ip_range_list",
|
|
/* 362 */ "white_list",
|
|
/* 363 */ "white_list_opt",
|
|
/* 364 */ "user_name",
|
|
/* 365 */ "sysinfo_opt",
|
|
/* 366 */ "privileges",
|
|
/* 367 */ "priv_level",
|
|
/* 368 */ "with_opt",
|
|
/* 369 */ "priv_type_list",
|
|
/* 370 */ "priv_type",
|
|
/* 371 */ "db_name",
|
|
/* 372 */ "table_name",
|
|
/* 373 */ "topic_name",
|
|
/* 374 */ "search_condition",
|
|
/* 375 */ "dnode_endpoint",
|
|
/* 376 */ "force_opt",
|
|
/* 377 */ "unsafe_opt",
|
|
/* 378 */ "not_exists_opt",
|
|
/* 379 */ "db_options",
|
|
/* 380 */ "exists_opt",
|
|
/* 381 */ "alter_db_options",
|
|
/* 382 */ "speed_opt",
|
|
/* 383 */ "start_opt",
|
|
/* 384 */ "end_opt",
|
|
/* 385 */ "integer_list",
|
|
/* 386 */ "variable_list",
|
|
/* 387 */ "retention_list",
|
|
/* 388 */ "signed",
|
|
/* 389 */ "alter_db_option",
|
|
/* 390 */ "retention",
|
|
/* 391 */ "full_table_name",
|
|
/* 392 */ "column_def_list",
|
|
/* 393 */ "tags_def_opt",
|
|
/* 394 */ "table_options",
|
|
/* 395 */ "multi_create_clause",
|
|
/* 396 */ "tags_def",
|
|
/* 397 */ "multi_drop_clause",
|
|
/* 398 */ "alter_table_clause",
|
|
/* 399 */ "alter_table_options",
|
|
/* 400 */ "column_name",
|
|
/* 401 */ "type_name",
|
|
/* 402 */ "signed_literal",
|
|
/* 403 */ "create_subtable_clause",
|
|
/* 404 */ "specific_cols_opt",
|
|
/* 405 */ "expression_list",
|
|
/* 406 */ "drop_table_clause",
|
|
/* 407 */ "col_name_list",
|
|
/* 408 */ "column_def",
|
|
/* 409 */ "duration_list",
|
|
/* 410 */ "rollup_func_list",
|
|
/* 411 */ "alter_table_option",
|
|
/* 412 */ "duration_literal",
|
|
/* 413 */ "rollup_func_name",
|
|
/* 414 */ "function_name",
|
|
/* 415 */ "col_name",
|
|
/* 416 */ "db_kind_opt",
|
|
/* 417 */ "table_kind_db_name_cond_opt",
|
|
/* 418 */ "like_pattern_opt",
|
|
/* 419 */ "db_name_cond_opt",
|
|
/* 420 */ "table_name_cond",
|
|
/* 421 */ "from_db_opt",
|
|
/* 422 */ "tag_list_opt",
|
|
/* 423 */ "table_kind",
|
|
/* 424 */ "tag_item",
|
|
/* 425 */ "column_alias",
|
|
/* 426 */ "index_options",
|
|
/* 427 */ "full_index_name",
|
|
/* 428 */ "index_name",
|
|
/* 429 */ "func_list",
|
|
/* 430 */ "sliding_opt",
|
|
/* 431 */ "sma_stream_opt",
|
|
/* 432 */ "func",
|
|
/* 433 */ "sma_func_name",
|
|
/* 434 */ "with_meta",
|
|
/* 435 */ "query_or_subquery",
|
|
/* 436 */ "where_clause_opt",
|
|
/* 437 */ "cgroup_name",
|
|
/* 438 */ "analyze_opt",
|
|
/* 439 */ "explain_options",
|
|
/* 440 */ "insert_query",
|
|
/* 441 */ "or_replace_opt",
|
|
/* 442 */ "agg_func_opt",
|
|
/* 443 */ "bufsize_opt",
|
|
/* 444 */ "language_opt",
|
|
/* 445 */ "full_view_name",
|
|
/* 446 */ "view_name",
|
|
/* 447 */ "stream_name",
|
|
/* 448 */ "stream_options",
|
|
/* 449 */ "col_list_opt",
|
|
/* 450 */ "tag_def_or_ref_opt",
|
|
/* 451 */ "subtable_opt",
|
|
/* 452 */ "ignore_opt",
|
|
/* 453 */ "expression",
|
|
/* 454 */ "on_vgroup_id",
|
|
/* 455 */ "dnode_list",
|
|
/* 456 */ "literal_func",
|
|
/* 457 */ "literal_list",
|
|
/* 458 */ "table_alias",
|
|
/* 459 */ "expr_or_subquery",
|
|
/* 460 */ "pseudo_column",
|
|
/* 461 */ "column_reference",
|
|
/* 462 */ "function_expression",
|
|
/* 463 */ "case_when_expression",
|
|
/* 464 */ "star_func",
|
|
/* 465 */ "star_func_para_list",
|
|
/* 466 */ "noarg_func",
|
|
/* 467 */ "other_para_list",
|
|
/* 468 */ "star_func_para",
|
|
/* 469 */ "when_then_list",
|
|
/* 470 */ "case_when_else_opt",
|
|
/* 471 */ "common_expression",
|
|
/* 472 */ "when_then_expr",
|
|
/* 473 */ "predicate",
|
|
/* 474 */ "compare_op",
|
|
/* 475 */ "in_op",
|
|
/* 476 */ "in_predicate_value",
|
|
/* 477 */ "boolean_value_expression",
|
|
/* 478 */ "boolean_primary",
|
|
/* 479 */ "from_clause_opt",
|
|
/* 480 */ "table_reference_list",
|
|
/* 481 */ "table_reference",
|
|
/* 482 */ "table_primary",
|
|
/* 483 */ "joined_table",
|
|
/* 484 */ "alias_opt",
|
|
/* 485 */ "subquery",
|
|
/* 486 */ "parenthesized_joined_table",
|
|
/* 487 */ "join_type",
|
|
/* 488 */ "join_subtype",
|
|
/* 489 */ "window_offset_clause_opt",
|
|
/* 490 */ "jlimit_clause_opt",
|
|
/* 491 */ "window_offset_literal",
|
|
/* 492 */ "query_specification",
|
|
/* 493 */ "hint_list",
|
|
/* 494 */ "set_quantifier_opt",
|
|
/* 495 */ "tag_mode_opt",
|
|
/* 496 */ "select_list",
|
|
/* 497 */ "partition_by_clause_opt",
|
|
/* 498 */ "range_opt",
|
|
/* 499 */ "every_opt",
|
|
/* 500 */ "fill_opt",
|
|
/* 501 */ "twindow_clause_opt",
|
|
/* 502 */ "group_by_clause_opt",
|
|
/* 503 */ "having_clause_opt",
|
|
/* 504 */ "select_item",
|
|
/* 505 */ "partition_list",
|
|
/* 506 */ "partition_item",
|
|
/* 507 */ "interval_sliding_duration_literal",
|
|
/* 508 */ "fill_mode",
|
|
/* 509 */ "group_by_list",
|
|
/* 510 */ "query_expression",
|
|
/* 511 */ "query_simple",
|
|
/* 512 */ "order_by_clause_opt",
|
|
/* 513 */ "slimit_clause_opt",
|
|
/* 514 */ "limit_clause_opt",
|
|
/* 515 */ "union_query_expression",
|
|
/* 516 */ "query_simple_or_subquery",
|
|
/* 517 */ "sort_specification_list",
|
|
/* 518 */ "sort_specification",
|
|
/* 519 */ "ordering_specification_opt",
|
|
/* 520 */ "null_ordering_opt",
|
|
};
|
|
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
|
|
|
|
#ifndef NDEBUG
|
|
/* For tracing reduce actions, the names of all rules are required.
|
|
*/
|
|
static const char *const yyRuleName[] = {
|
|
/* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
|
|
/* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
|
|
/* 2 */ "account_options ::=",
|
|
/* 3 */ "account_options ::= account_options PPS literal",
|
|
/* 4 */ "account_options ::= account_options TSERIES literal",
|
|
/* 5 */ "account_options ::= account_options STORAGE literal",
|
|
/* 6 */ "account_options ::= account_options STREAMS literal",
|
|
/* 7 */ "account_options ::= account_options QTIME literal",
|
|
/* 8 */ "account_options ::= account_options DBS literal",
|
|
/* 9 */ "account_options ::= account_options USERS literal",
|
|
/* 10 */ "account_options ::= account_options CONNS literal",
|
|
/* 11 */ "account_options ::= account_options STATE literal",
|
|
/* 12 */ "alter_account_options ::= alter_account_option",
|
|
/* 13 */ "alter_account_options ::= alter_account_options alter_account_option",
|
|
/* 14 */ "alter_account_option ::= PASS literal",
|
|
/* 15 */ "alter_account_option ::= PPS literal",
|
|
/* 16 */ "alter_account_option ::= TSERIES literal",
|
|
/* 17 */ "alter_account_option ::= STORAGE literal",
|
|
/* 18 */ "alter_account_option ::= STREAMS literal",
|
|
/* 19 */ "alter_account_option ::= QTIME literal",
|
|
/* 20 */ "alter_account_option ::= DBS literal",
|
|
/* 21 */ "alter_account_option ::= USERS literal",
|
|
/* 22 */ "alter_account_option ::= CONNS literal",
|
|
/* 23 */ "alter_account_option ::= STATE literal",
|
|
/* 24 */ "ip_range_list ::= NK_STRING",
|
|
/* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING",
|
|
/* 26 */ "white_list ::= HOST ip_range_list",
|
|
/* 27 */ "white_list_opt ::=",
|
|
/* 28 */ "white_list_opt ::= white_list",
|
|
/* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt",
|
|
/* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
|
|
/* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
|
|
/* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
|
|
/* 33 */ "cmd ::= ALTER USER user_name ADD white_list",
|
|
/* 34 */ "cmd ::= ALTER USER user_name DROP white_list",
|
|
/* 35 */ "cmd ::= DROP USER user_name",
|
|
/* 36 */ "sysinfo_opt ::=",
|
|
/* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
|
|
/* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
|
|
/* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
|
|
/* 40 */ "privileges ::= ALL",
|
|
/* 41 */ "privileges ::= priv_type_list",
|
|
/* 42 */ "privileges ::= SUBSCRIBE",
|
|
/* 43 */ "priv_type_list ::= priv_type",
|
|
/* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
|
|
/* 45 */ "priv_type ::= READ",
|
|
/* 46 */ "priv_type ::= WRITE",
|
|
/* 47 */ "priv_type ::= ALTER",
|
|
/* 48 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
|
|
/* 49 */ "priv_level ::= db_name NK_DOT NK_STAR",
|
|
/* 50 */ "priv_level ::= db_name NK_DOT table_name",
|
|
/* 51 */ "priv_level ::= topic_name",
|
|
/* 52 */ "with_opt ::=",
|
|
/* 53 */ "with_opt ::= WITH search_condition",
|
|
/* 54 */ "cmd ::= CREATE DNODE dnode_endpoint",
|
|
/* 55 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
|
|
/* 56 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
|
|
/* 57 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
|
|
/* 58 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
|
|
/* 59 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
|
|
/* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
|
|
/* 61 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
|
|
/* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING",
|
|
/* 63 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
|
|
/* 64 */ "cmd ::= RESTORE DNODE NK_INTEGER",
|
|
/* 65 */ "dnode_endpoint ::= NK_STRING",
|
|
/* 66 */ "dnode_endpoint ::= NK_ID",
|
|
/* 67 */ "dnode_endpoint ::= NK_IPTOKEN",
|
|
/* 68 */ "force_opt ::=",
|
|
/* 69 */ "force_opt ::= FORCE",
|
|
/* 70 */ "unsafe_opt ::= UNSAFE",
|
|
/* 71 */ "cmd ::= ALTER LOCAL NK_STRING",
|
|
/* 72 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
|
|
/* 73 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
|
|
/* 74 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
|
|
/* 75 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
|
|
/* 76 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
|
|
/* 77 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
|
|
/* 78 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
|
|
/* 79 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
|
|
/* 80 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
|
|
/* 81 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
|
|
/* 82 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
|
|
/* 83 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
|
|
/* 84 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
|
|
/* 85 */ "cmd ::= DROP DATABASE exists_opt db_name",
|
|
/* 86 */ "cmd ::= USE db_name",
|
|
/* 87 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
|
|
/* 88 */ "cmd ::= FLUSH DATABASE db_name",
|
|
/* 89 */ "cmd ::= TRIM DATABASE db_name speed_opt",
|
|
/* 90 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
|
|
/* 91 */ "not_exists_opt ::= IF NOT EXISTS",
|
|
/* 92 */ "not_exists_opt ::=",
|
|
/* 93 */ "exists_opt ::= IF EXISTS",
|
|
/* 94 */ "exists_opt ::=",
|
|
/* 95 */ "db_options ::=",
|
|
/* 96 */ "db_options ::= db_options BUFFER NK_INTEGER",
|
|
/* 97 */ "db_options ::= db_options CACHEMODEL NK_STRING",
|
|
/* 98 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
|
|
/* 99 */ "db_options ::= db_options COMP NK_INTEGER",
|
|
/* 100 */ "db_options ::= db_options DURATION NK_INTEGER",
|
|
/* 101 */ "db_options ::= db_options DURATION NK_VARIABLE",
|
|
/* 102 */ "db_options ::= db_options MAXROWS NK_INTEGER",
|
|
/* 103 */ "db_options ::= db_options MINROWS NK_INTEGER",
|
|
/* 104 */ "db_options ::= db_options KEEP integer_list",
|
|
/* 105 */ "db_options ::= db_options KEEP variable_list",
|
|
/* 106 */ "db_options ::= db_options PAGES NK_INTEGER",
|
|
/* 107 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
|
|
/* 108 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
|
|
/* 109 */ "db_options ::= db_options PRECISION NK_STRING",
|
|
/* 110 */ "db_options ::= db_options REPLICA NK_INTEGER",
|
|
/* 111 */ "db_options ::= db_options VGROUPS NK_INTEGER",
|
|
/* 112 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
|
|
/* 113 */ "db_options ::= db_options RETENTIONS retention_list",
|
|
/* 114 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
|
|
/* 115 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
|
|
/* 116 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 117 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 118 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 119 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 120 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 121 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
|
|
/* 122 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
|
|
/* 123 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
|
|
/* 124 */ "db_options ::= db_options TABLE_PREFIX signed",
|
|
/* 125 */ "db_options ::= db_options TABLE_SUFFIX signed",
|
|
/* 126 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
|
|
/* 127 */ "alter_db_options ::= alter_db_option",
|
|
/* 128 */ "alter_db_options ::= alter_db_options alter_db_option",
|
|
/* 129 */ "alter_db_option ::= BUFFER NK_INTEGER",
|
|
/* 130 */ "alter_db_option ::= CACHEMODEL NK_STRING",
|
|
/* 131 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
|
|
/* 132 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 133 */ "alter_db_option ::= KEEP integer_list",
|
|
/* 134 */ "alter_db_option ::= KEEP variable_list",
|
|
/* 135 */ "alter_db_option ::= PAGES NK_INTEGER",
|
|
/* 136 */ "alter_db_option ::= REPLICA NK_INTEGER",
|
|
/* 137 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
|
|
/* 138 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
|
|
/* 139 */ "alter_db_option ::= MINROWS NK_INTEGER",
|
|
/* 140 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 141 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 142 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 143 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 144 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
|
|
/* 145 */ "integer_list ::= NK_INTEGER",
|
|
/* 146 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
|
|
/* 147 */ "variable_list ::= NK_VARIABLE",
|
|
/* 148 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
|
|
/* 149 */ "retention_list ::= retention",
|
|
/* 150 */ "retention_list ::= retention_list NK_COMMA retention",
|
|
/* 151 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
|
|
/* 152 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
|
|
/* 153 */ "speed_opt ::=",
|
|
/* 154 */ "speed_opt ::= BWLIMIT NK_INTEGER",
|
|
/* 155 */ "start_opt ::=",
|
|
/* 156 */ "start_opt ::= START WITH NK_INTEGER",
|
|
/* 157 */ "start_opt ::= START WITH NK_STRING",
|
|
/* 158 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
|
|
/* 159 */ "end_opt ::=",
|
|
/* 160 */ "end_opt ::= END WITH NK_INTEGER",
|
|
/* 161 */ "end_opt ::= END WITH NK_STRING",
|
|
/* 162 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
|
|
/* 163 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
|
|
/* 164 */ "cmd ::= CREATE TABLE multi_create_clause",
|
|
/* 165 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
|
|
/* 166 */ "cmd ::= DROP TABLE multi_drop_clause",
|
|
/* 167 */ "cmd ::= DROP STABLE exists_opt full_table_name",
|
|
/* 168 */ "cmd ::= ALTER TABLE alter_table_clause",
|
|
/* 169 */ "cmd ::= ALTER STABLE alter_table_clause",
|
|
/* 170 */ "alter_table_clause ::= full_table_name alter_table_options",
|
|
/* 171 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
|
|
/* 172 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
|
|
/* 173 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
|
|
/* 174 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
|
|
/* 175 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
|
|
/* 176 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
|
|
/* 177 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
|
|
/* 178 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
|
|
/* 179 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
|
|
/* 180 */ "multi_create_clause ::= create_subtable_clause",
|
|
/* 181 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
|
|
/* 182 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options",
|
|
/* 183 */ "multi_drop_clause ::= drop_table_clause",
|
|
/* 184 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
|
|
/* 185 */ "drop_table_clause ::= exists_opt full_table_name",
|
|
/* 186 */ "specific_cols_opt ::=",
|
|
/* 187 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 188 */ "full_table_name ::= table_name",
|
|
/* 189 */ "full_table_name ::= db_name NK_DOT table_name",
|
|
/* 190 */ "column_def_list ::= column_def",
|
|
/* 191 */ "column_def_list ::= column_def_list NK_COMMA column_def",
|
|
/* 192 */ "column_def ::= column_name type_name",
|
|
/* 193 */ "type_name ::= BOOL",
|
|
/* 194 */ "type_name ::= TINYINT",
|
|
/* 195 */ "type_name ::= SMALLINT",
|
|
/* 196 */ "type_name ::= INT",
|
|
/* 197 */ "type_name ::= INTEGER",
|
|
/* 198 */ "type_name ::= BIGINT",
|
|
/* 199 */ "type_name ::= FLOAT",
|
|
/* 200 */ "type_name ::= DOUBLE",
|
|
/* 201 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 202 */ "type_name ::= TIMESTAMP",
|
|
/* 203 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 204 */ "type_name ::= TINYINT UNSIGNED",
|
|
/* 205 */ "type_name ::= SMALLINT UNSIGNED",
|
|
/* 206 */ "type_name ::= INT UNSIGNED",
|
|
/* 207 */ "type_name ::= BIGINT UNSIGNED",
|
|
/* 208 */ "type_name ::= JSON",
|
|
/* 209 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 210 */ "type_name ::= MEDIUMBLOB",
|
|
/* 211 */ "type_name ::= BLOB",
|
|
/* 212 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 213 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
|
|
/* 214 */ "type_name ::= DECIMAL",
|
|
/* 215 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
|
|
/* 216 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
/* 217 */ "tags_def_opt ::=",
|
|
/* 218 */ "tags_def_opt ::= tags_def",
|
|
/* 219 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
|
|
/* 220 */ "table_options ::=",
|
|
/* 221 */ "table_options ::= table_options COMMENT NK_STRING",
|
|
/* 222 */ "table_options ::= table_options MAX_DELAY duration_list",
|
|
/* 223 */ "table_options ::= table_options WATERMARK duration_list",
|
|
/* 224 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
|
|
/* 225 */ "table_options ::= table_options TTL NK_INTEGER",
|
|
/* 226 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
|
|
/* 227 */ "table_options ::= table_options DELETE_MARK duration_list",
|
|
/* 228 */ "alter_table_options ::= alter_table_option",
|
|
/* 229 */ "alter_table_options ::= alter_table_options alter_table_option",
|
|
/* 230 */ "alter_table_option ::= COMMENT NK_STRING",
|
|
/* 231 */ "alter_table_option ::= TTL NK_INTEGER",
|
|
/* 232 */ "duration_list ::= duration_literal",
|
|
/* 233 */ "duration_list ::= duration_list NK_COMMA duration_literal",
|
|
/* 234 */ "rollup_func_list ::= rollup_func_name",
|
|
/* 235 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
|
|
/* 236 */ "rollup_func_name ::= function_name",
|
|
/* 237 */ "rollup_func_name ::= FIRST",
|
|
/* 238 */ "rollup_func_name ::= LAST",
|
|
/* 239 */ "col_name_list ::= col_name",
|
|
/* 240 */ "col_name_list ::= col_name_list NK_COMMA col_name",
|
|
/* 241 */ "col_name ::= column_name",
|
|
/* 242 */ "cmd ::= SHOW DNODES",
|
|
/* 243 */ "cmd ::= SHOW USERS",
|
|
/* 244 */ "cmd ::= SHOW USER PRIVILEGES",
|
|
/* 245 */ "cmd ::= SHOW db_kind_opt DATABASES",
|
|
/* 246 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
|
|
/* 247 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
|
|
/* 248 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
|
|
/* 249 */ "cmd ::= SHOW MNODES",
|
|
/* 250 */ "cmd ::= SHOW QNODES",
|
|
/* 251 */ "cmd ::= SHOW FUNCTIONS",
|
|
/* 252 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
/* 253 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
/* 254 */ "cmd ::= SHOW STREAMS",
|
|
/* 255 */ "cmd ::= SHOW ACCOUNTS",
|
|
/* 256 */ "cmd ::= SHOW APPS",
|
|
/* 257 */ "cmd ::= SHOW CONNECTIONS",
|
|
/* 258 */ "cmd ::= SHOW LICENCES",
|
|
/* 259 */ "cmd ::= SHOW GRANTS",
|
|
/* 260 */ "cmd ::= SHOW CREATE DATABASE db_name",
|
|
/* 261 */ "cmd ::= SHOW CREATE TABLE full_table_name",
|
|
/* 262 */ "cmd ::= SHOW CREATE STABLE full_table_name",
|
|
/* 263 */ "cmd ::= SHOW QUERIES",
|
|
/* 264 */ "cmd ::= SHOW SCORES",
|
|
/* 265 */ "cmd ::= SHOW TOPICS",
|
|
/* 266 */ "cmd ::= SHOW VARIABLES",
|
|
/* 267 */ "cmd ::= SHOW CLUSTER VARIABLES",
|
|
/* 268 */ "cmd ::= SHOW LOCAL VARIABLES",
|
|
/* 269 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
|
|
/* 270 */ "cmd ::= SHOW BNODES",
|
|
/* 271 */ "cmd ::= SHOW SNODES",
|
|
/* 272 */ "cmd ::= SHOW CLUSTER",
|
|
/* 273 */ "cmd ::= SHOW TRANSACTIONS",
|
|
/* 274 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
|
|
/* 275 */ "cmd ::= SHOW CONSUMERS",
|
|
/* 276 */ "cmd ::= SHOW SUBSCRIPTIONS",
|
|
/* 277 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
|
|
/* 278 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
|
|
/* 279 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
|
|
/* 280 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
|
|
/* 281 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
|
|
/* 282 */ "cmd ::= SHOW VNODES",
|
|
/* 283 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
|
|
/* 284 */ "cmd ::= SHOW CLUSTER ALIVE",
|
|
/* 285 */ "cmd ::= SHOW db_name_cond_opt VIEWS",
|
|
/* 286 */ "cmd ::= SHOW CREATE VIEW full_table_name",
|
|
/* 287 */ "cmd ::= SHOW COMPACTS",
|
|
/* 288 */ "cmd ::= SHOW COMPACT NK_INTEGER",
|
|
/* 289 */ "table_kind_db_name_cond_opt ::=",
|
|
/* 290 */ "table_kind_db_name_cond_opt ::= table_kind",
|
|
/* 291 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 292 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
|
|
/* 293 */ "table_kind ::= NORMAL",
|
|
/* 294 */ "table_kind ::= CHILD",
|
|
/* 295 */ "db_name_cond_opt ::=",
|
|
/* 296 */ "db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 297 */ "like_pattern_opt ::=",
|
|
/* 298 */ "like_pattern_opt ::= LIKE NK_STRING",
|
|
/* 299 */ "table_name_cond ::= table_name",
|
|
/* 300 */ "from_db_opt ::=",
|
|
/* 301 */ "from_db_opt ::= FROM db_name",
|
|
/* 302 */ "tag_list_opt ::=",
|
|
/* 303 */ "tag_list_opt ::= tag_item",
|
|
/* 304 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
|
|
/* 305 */ "tag_item ::= TBNAME",
|
|
/* 306 */ "tag_item ::= QTAGS",
|
|
/* 307 */ "tag_item ::= column_name",
|
|
/* 308 */ "tag_item ::= column_name column_alias",
|
|
/* 309 */ "tag_item ::= column_name AS column_alias",
|
|
/* 310 */ "db_kind_opt ::=",
|
|
/* 311 */ "db_kind_opt ::= USER",
|
|
/* 312 */ "db_kind_opt ::= SYSTEM",
|
|
/* 313 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
|
|
/* 314 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
|
|
/* 315 */ "cmd ::= DROP INDEX exists_opt full_index_name",
|
|
/* 316 */ "full_index_name ::= index_name",
|
|
/* 317 */ "full_index_name ::= db_name NK_DOT index_name",
|
|
/* 318 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
/* 319 */ "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",
|
|
/* 320 */ "func_list ::= func",
|
|
/* 321 */ "func_list ::= func_list NK_COMMA func",
|
|
/* 322 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
|
|
/* 323 */ "sma_func_name ::= function_name",
|
|
/* 324 */ "sma_func_name ::= COUNT",
|
|
/* 325 */ "sma_func_name ::= FIRST",
|
|
/* 326 */ "sma_func_name ::= LAST",
|
|
/* 327 */ "sma_func_name ::= LAST_ROW",
|
|
/* 328 */ "sma_stream_opt ::=",
|
|
/* 329 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
|
|
/* 330 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
|
|
/* 331 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
|
|
/* 332 */ "with_meta ::= AS",
|
|
/* 333 */ "with_meta ::= WITH META AS",
|
|
/* 334 */ "with_meta ::= ONLY META AS",
|
|
/* 335 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
|
|
/* 336 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
|
|
/* 337 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
|
|
/* 338 */ "cmd ::= DROP TOPIC exists_opt topic_name",
|
|
/* 339 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
|
|
/* 340 */ "cmd ::= DESC full_table_name",
|
|
/* 341 */ "cmd ::= DESCRIBE full_table_name",
|
|
/* 342 */ "cmd ::= RESET QUERY CACHE",
|
|
/* 343 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
|
|
/* 344 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
|
|
/* 345 */ "analyze_opt ::=",
|
|
/* 346 */ "analyze_opt ::= ANALYZE",
|
|
/* 347 */ "explain_options ::=",
|
|
/* 348 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
|
|
/* 349 */ "explain_options ::= explain_options RATIO NK_FLOAT",
|
|
/* 350 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
|
|
/* 351 */ "cmd ::= DROP FUNCTION exists_opt function_name",
|
|
/* 352 */ "agg_func_opt ::=",
|
|
/* 353 */ "agg_func_opt ::= AGGREGATE",
|
|
/* 354 */ "bufsize_opt ::=",
|
|
/* 355 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
|
|
/* 356 */ "language_opt ::=",
|
|
/* 357 */ "language_opt ::= LANGUAGE NK_STRING",
|
|
/* 358 */ "or_replace_opt ::=",
|
|
/* 359 */ "or_replace_opt ::= OR REPLACE",
|
|
/* 360 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
|
|
/* 361 */ "cmd ::= DROP VIEW exists_opt full_view_name",
|
|
/* 362 */ "full_view_name ::= view_name",
|
|
/* 363 */ "full_view_name ::= db_name NK_DOT view_name",
|
|
/* 364 */ "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",
|
|
/* 365 */ "cmd ::= DROP STREAM exists_opt stream_name",
|
|
/* 366 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
|
|
/* 367 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
|
|
/* 368 */ "col_list_opt ::=",
|
|
/* 369 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 370 */ "tag_def_or_ref_opt ::=",
|
|
/* 371 */ "tag_def_or_ref_opt ::= tags_def",
|
|
/* 372 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
|
|
/* 373 */ "stream_options ::=",
|
|
/* 374 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
|
|
/* 375 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
|
|
/* 376 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
|
|
/* 377 */ "stream_options ::= stream_options WATERMARK duration_literal",
|
|
/* 378 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
|
|
/* 379 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
|
|
/* 380 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
|
|
/* 381 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
|
|
/* 382 */ "subtable_opt ::=",
|
|
/* 383 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
|
|
/* 384 */ "ignore_opt ::=",
|
|
/* 385 */ "ignore_opt ::= IGNORE UNTREATED",
|
|
/* 386 */ "cmd ::= KILL CONNECTION NK_INTEGER",
|
|
/* 387 */ "cmd ::= KILL QUERY NK_STRING",
|
|
/* 388 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
|
|
/* 389 */ "cmd ::= KILL COMPACT NK_INTEGER",
|
|
/* 390 */ "cmd ::= BALANCE VGROUP",
|
|
/* 391 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
|
|
/* 392 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
|
|
/* 393 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
|
|
/* 394 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
|
|
/* 395 */ "on_vgroup_id ::=",
|
|
/* 396 */ "on_vgroup_id ::= ON NK_INTEGER",
|
|
/* 397 */ "dnode_list ::= DNODE NK_INTEGER",
|
|
/* 398 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
|
|
/* 399 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
|
|
/* 400 */ "cmd ::= query_or_subquery",
|
|
/* 401 */ "cmd ::= insert_query",
|
|
/* 402 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
|
|
/* 403 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
|
|
/* 404 */ "literal ::= NK_INTEGER",
|
|
/* 405 */ "literal ::= NK_FLOAT",
|
|
/* 406 */ "literal ::= NK_STRING",
|
|
/* 407 */ "literal ::= NK_BOOL",
|
|
/* 408 */ "literal ::= TIMESTAMP NK_STRING",
|
|
/* 409 */ "literal ::= duration_literal",
|
|
/* 410 */ "literal ::= NULL",
|
|
/* 411 */ "literal ::= NK_QUESTION",
|
|
/* 412 */ "duration_literal ::= NK_VARIABLE",
|
|
/* 413 */ "signed ::= NK_INTEGER",
|
|
/* 414 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
/* 415 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
/* 416 */ "signed ::= NK_FLOAT",
|
|
/* 417 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
/* 418 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
/* 419 */ "signed_literal ::= signed",
|
|
/* 420 */ "signed_literal ::= NK_STRING",
|
|
/* 421 */ "signed_literal ::= NK_BOOL",
|
|
/* 422 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
/* 423 */ "signed_literal ::= duration_literal",
|
|
/* 424 */ "signed_literal ::= NULL",
|
|
/* 425 */ "signed_literal ::= literal_func",
|
|
/* 426 */ "signed_literal ::= NK_QUESTION",
|
|
/* 427 */ "literal_list ::= signed_literal",
|
|
/* 428 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
/* 429 */ "db_name ::= NK_ID",
|
|
/* 430 */ "table_name ::= NK_ID",
|
|
/* 431 */ "column_name ::= NK_ID",
|
|
/* 432 */ "function_name ::= NK_ID",
|
|
/* 433 */ "view_name ::= NK_ID",
|
|
/* 434 */ "table_alias ::= NK_ID",
|
|
/* 435 */ "column_alias ::= NK_ID",
|
|
/* 436 */ "column_alias ::= NK_ALIAS",
|
|
/* 437 */ "user_name ::= NK_ID",
|
|
/* 438 */ "topic_name ::= NK_ID",
|
|
/* 439 */ "stream_name ::= NK_ID",
|
|
/* 440 */ "cgroup_name ::= NK_ID",
|
|
/* 441 */ "index_name ::= NK_ID",
|
|
/* 442 */ "expr_or_subquery ::= expression",
|
|
/* 443 */ "expression ::= literal",
|
|
/* 444 */ "expression ::= pseudo_column",
|
|
/* 445 */ "expression ::= column_reference",
|
|
/* 446 */ "expression ::= function_expression",
|
|
/* 447 */ "expression ::= case_when_expression",
|
|
/* 448 */ "expression ::= NK_LP expression NK_RP",
|
|
/* 449 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
/* 450 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
/* 451 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
/* 452 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
/* 453 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
/* 454 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
/* 455 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
/* 456 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
/* 457 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
/* 458 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
/* 459 */ "expression_list ::= expr_or_subquery",
|
|
/* 460 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
/* 461 */ "column_reference ::= column_name",
|
|
/* 462 */ "column_reference ::= table_name NK_DOT column_name",
|
|
/* 463 */ "column_reference ::= NK_ALIAS",
|
|
/* 464 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
|
|
/* 465 */ "pseudo_column ::= ROWTS",
|
|
/* 466 */ "pseudo_column ::= TBNAME",
|
|
/* 467 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
/* 468 */ "pseudo_column ::= QSTART",
|
|
/* 469 */ "pseudo_column ::= QEND",
|
|
/* 470 */ "pseudo_column ::= QDURATION",
|
|
/* 471 */ "pseudo_column ::= WSTART",
|
|
/* 472 */ "pseudo_column ::= WEND",
|
|
/* 473 */ "pseudo_column ::= WDURATION",
|
|
/* 474 */ "pseudo_column ::= IROWTS",
|
|
/* 475 */ "pseudo_column ::= ISFILLED",
|
|
/* 476 */ "pseudo_column ::= QTAGS",
|
|
/* 477 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
/* 478 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
/* 479 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
/* 480 */ "function_expression ::= literal_func",
|
|
/* 481 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
/* 482 */ "literal_func ::= NOW",
|
|
/* 483 */ "noarg_func ::= NOW",
|
|
/* 484 */ "noarg_func ::= TODAY",
|
|
/* 485 */ "noarg_func ::= TIMEZONE",
|
|
/* 486 */ "noarg_func ::= DATABASE",
|
|
/* 487 */ "noarg_func ::= CLIENT_VERSION",
|
|
/* 488 */ "noarg_func ::= SERVER_VERSION",
|
|
/* 489 */ "noarg_func ::= SERVER_STATUS",
|
|
/* 490 */ "noarg_func ::= CURRENT_USER",
|
|
/* 491 */ "noarg_func ::= USER",
|
|
/* 492 */ "star_func ::= COUNT",
|
|
/* 493 */ "star_func ::= FIRST",
|
|
/* 494 */ "star_func ::= LAST",
|
|
/* 495 */ "star_func ::= LAST_ROW",
|
|
/* 496 */ "star_func_para_list ::= NK_STAR",
|
|
/* 497 */ "star_func_para_list ::= other_para_list",
|
|
/* 498 */ "other_para_list ::= star_func_para",
|
|
/* 499 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
/* 500 */ "star_func_para ::= expr_or_subquery",
|
|
/* 501 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
/* 502 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
/* 503 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
/* 504 */ "when_then_list ::= when_then_expr",
|
|
/* 505 */ "when_then_list ::= when_then_list when_then_expr",
|
|
/* 506 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
/* 507 */ "case_when_else_opt ::=",
|
|
/* 508 */ "case_when_else_opt ::= ELSE common_expression",
|
|
/* 509 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
/* 510 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 511 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 512 */ "predicate ::= expr_or_subquery IS NULL",
|
|
/* 513 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
/* 514 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
/* 515 */ "compare_op ::= NK_LT",
|
|
/* 516 */ "compare_op ::= NK_GT",
|
|
/* 517 */ "compare_op ::= NK_LE",
|
|
/* 518 */ "compare_op ::= NK_GE",
|
|
/* 519 */ "compare_op ::= NK_NE",
|
|
/* 520 */ "compare_op ::= NK_EQ",
|
|
/* 521 */ "compare_op ::= LIKE",
|
|
/* 522 */ "compare_op ::= NOT LIKE",
|
|
/* 523 */ "compare_op ::= MATCH",
|
|
/* 524 */ "compare_op ::= NMATCH",
|
|
/* 525 */ "compare_op ::= CONTAINS",
|
|
/* 526 */ "in_op ::= IN",
|
|
/* 527 */ "in_op ::= NOT IN",
|
|
/* 528 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
/* 529 */ "boolean_value_expression ::= boolean_primary",
|
|
/* 530 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
/* 531 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
/* 532 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
/* 533 */ "boolean_primary ::= predicate",
|
|
/* 534 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
/* 535 */ "common_expression ::= expr_or_subquery",
|
|
/* 536 */ "common_expression ::= boolean_value_expression",
|
|
/* 537 */ "from_clause_opt ::=",
|
|
/* 538 */ "from_clause_opt ::= FROM table_reference_list",
|
|
/* 539 */ "table_reference_list ::= table_reference",
|
|
/* 540 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
/* 541 */ "table_reference ::= table_primary",
|
|
/* 542 */ "table_reference ::= joined_table",
|
|
/* 543 */ "table_primary ::= table_name alias_opt",
|
|
/* 544 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
/* 545 */ "table_primary ::= subquery alias_opt",
|
|
/* 546 */ "table_primary ::= parenthesized_joined_table",
|
|
/* 547 */ "alias_opt ::=",
|
|
/* 548 */ "alias_opt ::= table_alias",
|
|
/* 549 */ "alias_opt ::= AS table_alias",
|
|
/* 550 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
/* 551 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
/* 552 */ "joined_table ::= table_reference join_type join_subtype JOIN table_reference ON search_condition window_offset_clause_opt jlimit_clause_opt",
|
|
/* 553 */ "join_type ::=",
|
|
/* 554 */ "join_type ::= INNER",
|
|
/* 555 */ "join_type ::= LEFT",
|
|
/* 556 */ "join_type ::= RIGHT",
|
|
/* 557 */ "join_type ::= FULL",
|
|
/* 558 */ "join_subtype ::=",
|
|
/* 559 */ "join_subtype ::= OUTER",
|
|
/* 560 */ "join_subtype ::= SEMI",
|
|
/* 561 */ "join_subtype ::= ANTI",
|
|
/* 562 */ "join_subtype ::= ASOF",
|
|
/* 563 */ "join_subtype ::= WINDOW",
|
|
/* 564 */ "window_offset_clause_opt ::=",
|
|
/* 565 */ "window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP",
|
|
/* 566 */ "window_offset_literal ::= NK_VARIABLE",
|
|
/* 567 */ "window_offset_literal ::= NK_MINUS NK_VARIABLE",
|
|
/* 568 */ "jlimit_clause_opt ::=",
|
|
/* 569 */ "jlimit_clause_opt ::= JLIMIT NK_INTEGER",
|
|
/* 570 */ "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",
|
|
/* 571 */ "hint_list ::=",
|
|
/* 572 */ "hint_list ::= NK_HINT",
|
|
/* 573 */ "tag_mode_opt ::=",
|
|
/* 574 */ "tag_mode_opt ::= TAGS",
|
|
/* 575 */ "set_quantifier_opt ::=",
|
|
/* 576 */ "set_quantifier_opt ::= DISTINCT",
|
|
/* 577 */ "set_quantifier_opt ::= ALL",
|
|
/* 578 */ "select_list ::= select_item",
|
|
/* 579 */ "select_list ::= select_list NK_COMMA select_item",
|
|
/* 580 */ "select_item ::= NK_STAR",
|
|
/* 581 */ "select_item ::= common_expression",
|
|
/* 582 */ "select_item ::= common_expression column_alias",
|
|
/* 583 */ "select_item ::= common_expression AS column_alias",
|
|
/* 584 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
/* 585 */ "where_clause_opt ::=",
|
|
/* 586 */ "where_clause_opt ::= WHERE search_condition",
|
|
/* 587 */ "partition_by_clause_opt ::=",
|
|
/* 588 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
/* 589 */ "partition_list ::= partition_item",
|
|
/* 590 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
/* 591 */ "partition_item ::= expr_or_subquery",
|
|
/* 592 */ "partition_item ::= expr_or_subquery column_alias",
|
|
/* 593 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
/* 594 */ "twindow_clause_opt ::=",
|
|
/* 595 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
|
|
/* 596 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
/* 597 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 598 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 599 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
|
/* 600 */ "sliding_opt ::=",
|
|
/* 601 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
|
|
/* 602 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
|
|
/* 603 */ "interval_sliding_duration_literal ::= NK_STRING",
|
|
/* 604 */ "interval_sliding_duration_literal ::= NK_INTEGER",
|
|
/* 605 */ "fill_opt ::=",
|
|
/* 606 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
/* 607 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
/* 608 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
/* 609 */ "fill_mode ::= NONE",
|
|
/* 610 */ "fill_mode ::= PREV",
|
|
/* 611 */ "fill_mode ::= NULL",
|
|
/* 612 */ "fill_mode ::= NULL_F",
|
|
/* 613 */ "fill_mode ::= LINEAR",
|
|
/* 614 */ "fill_mode ::= NEXT",
|
|
/* 615 */ "group_by_clause_opt ::=",
|
|
/* 616 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
/* 617 */ "group_by_list ::= expr_or_subquery",
|
|
/* 618 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
/* 619 */ "having_clause_opt ::=",
|
|
/* 620 */ "having_clause_opt ::= HAVING search_condition",
|
|
/* 621 */ "range_opt ::=",
|
|
/* 622 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
/* 623 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
/* 624 */ "every_opt ::=",
|
|
/* 625 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
/* 626 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
/* 627 */ "query_simple ::= query_specification",
|
|
/* 628 */ "query_simple ::= union_query_expression",
|
|
/* 629 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
/* 630 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
/* 631 */ "query_simple_or_subquery ::= query_simple",
|
|
/* 632 */ "query_simple_or_subquery ::= subquery",
|
|
/* 633 */ "query_or_subquery ::= query_expression",
|
|
/* 634 */ "query_or_subquery ::= subquery",
|
|
/* 635 */ "order_by_clause_opt ::=",
|
|
/* 636 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
/* 637 */ "slimit_clause_opt ::=",
|
|
/* 638 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
/* 639 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
/* 640 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 641 */ "limit_clause_opt ::=",
|
|
/* 642 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
/* 643 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
/* 644 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 645 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
/* 646 */ "subquery ::= NK_LP subquery NK_RP",
|
|
/* 647 */ "search_condition ::= common_expression",
|
|
/* 648 */ "sort_specification_list ::= sort_specification",
|
|
/* 649 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
/* 650 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
/* 651 */ "ordering_specification_opt ::=",
|
|
/* 652 */ "ordering_specification_opt ::= ASC",
|
|
/* 653 */ "ordering_specification_opt ::= DESC",
|
|
/* 654 */ "null_ordering_opt ::=",
|
|
/* 655 */ "null_ordering_opt ::= NULLS FIRST",
|
|
/* 656 */ "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 356: /* cmd */
|
|
case 359: /* literal */
|
|
case 368: /* with_opt */
|
|
case 374: /* search_condition */
|
|
case 379: /* db_options */
|
|
case 381: /* alter_db_options */
|
|
case 383: /* start_opt */
|
|
case 384: /* end_opt */
|
|
case 388: /* signed */
|
|
case 390: /* retention */
|
|
case 391: /* full_table_name */
|
|
case 394: /* table_options */
|
|
case 398: /* alter_table_clause */
|
|
case 399: /* alter_table_options */
|
|
case 402: /* signed_literal */
|
|
case 403: /* create_subtable_clause */
|
|
case 406: /* drop_table_clause */
|
|
case 408: /* column_def */
|
|
case 412: /* duration_literal */
|
|
case 413: /* rollup_func_name */
|
|
case 415: /* col_name */
|
|
case 418: /* like_pattern_opt */
|
|
case 419: /* db_name_cond_opt */
|
|
case 420: /* table_name_cond */
|
|
case 421: /* from_db_opt */
|
|
case 424: /* tag_item */
|
|
case 426: /* index_options */
|
|
case 427: /* full_index_name */
|
|
case 430: /* sliding_opt */
|
|
case 431: /* sma_stream_opt */
|
|
case 432: /* func */
|
|
case 435: /* query_or_subquery */
|
|
case 436: /* where_clause_opt */
|
|
case 439: /* explain_options */
|
|
case 440: /* insert_query */
|
|
case 445: /* full_view_name */
|
|
case 448: /* stream_options */
|
|
case 451: /* subtable_opt */
|
|
case 453: /* expression */
|
|
case 456: /* literal_func */
|
|
case 459: /* expr_or_subquery */
|
|
case 460: /* pseudo_column */
|
|
case 461: /* column_reference */
|
|
case 462: /* function_expression */
|
|
case 463: /* case_when_expression */
|
|
case 468: /* star_func_para */
|
|
case 470: /* case_when_else_opt */
|
|
case 471: /* common_expression */
|
|
case 472: /* when_then_expr */
|
|
case 473: /* predicate */
|
|
case 476: /* in_predicate_value */
|
|
case 477: /* boolean_value_expression */
|
|
case 478: /* boolean_primary */
|
|
case 479: /* from_clause_opt */
|
|
case 480: /* table_reference_list */
|
|
case 481: /* table_reference */
|
|
case 482: /* table_primary */
|
|
case 483: /* joined_table */
|
|
case 485: /* subquery */
|
|
case 486: /* parenthesized_joined_table */
|
|
case 489: /* window_offset_clause_opt */
|
|
case 490: /* jlimit_clause_opt */
|
|
case 491: /* window_offset_literal */
|
|
case 492: /* query_specification */
|
|
case 498: /* range_opt */
|
|
case 499: /* every_opt */
|
|
case 500: /* fill_opt */
|
|
case 501: /* twindow_clause_opt */
|
|
case 503: /* having_clause_opt */
|
|
case 504: /* select_item */
|
|
case 506: /* partition_item */
|
|
case 507: /* interval_sliding_duration_literal */
|
|
case 510: /* query_expression */
|
|
case 511: /* query_simple */
|
|
case 513: /* slimit_clause_opt */
|
|
case 514: /* limit_clause_opt */
|
|
case 515: /* union_query_expression */
|
|
case 516: /* query_simple_or_subquery */
|
|
case 518: /* sort_specification */
|
|
{
|
|
nodesDestroyNode((yypminor->yy664));
|
|
}
|
|
break;
|
|
case 357: /* account_options */
|
|
case 358: /* alter_account_options */
|
|
case 360: /* alter_account_option */
|
|
case 382: /* speed_opt */
|
|
case 434: /* with_meta */
|
|
case 443: /* bufsize_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 361: /* ip_range_list */
|
|
case 362: /* white_list */
|
|
case 363: /* white_list_opt */
|
|
case 385: /* integer_list */
|
|
case 386: /* variable_list */
|
|
case 387: /* retention_list */
|
|
case 392: /* column_def_list */
|
|
case 393: /* tags_def_opt */
|
|
case 395: /* multi_create_clause */
|
|
case 396: /* tags_def */
|
|
case 397: /* multi_drop_clause */
|
|
case 404: /* specific_cols_opt */
|
|
case 405: /* expression_list */
|
|
case 407: /* col_name_list */
|
|
case 409: /* duration_list */
|
|
case 410: /* rollup_func_list */
|
|
case 422: /* tag_list_opt */
|
|
case 429: /* func_list */
|
|
case 449: /* col_list_opt */
|
|
case 450: /* tag_def_or_ref_opt */
|
|
case 455: /* dnode_list */
|
|
case 457: /* literal_list */
|
|
case 465: /* star_func_para_list */
|
|
case 467: /* other_para_list */
|
|
case 469: /* when_then_list */
|
|
case 493: /* hint_list */
|
|
case 496: /* select_list */
|
|
case 497: /* partition_by_clause_opt */
|
|
case 502: /* group_by_clause_opt */
|
|
case 505: /* partition_list */
|
|
case 509: /* group_by_list */
|
|
case 512: /* order_by_clause_opt */
|
|
case 517: /* sort_specification_list */
|
|
{
|
|
nodesDestroyList((yypminor->yy1006));
|
|
}
|
|
break;
|
|
case 364: /* user_name */
|
|
case 371: /* db_name */
|
|
case 372: /* table_name */
|
|
case 373: /* topic_name */
|
|
case 375: /* dnode_endpoint */
|
|
case 400: /* column_name */
|
|
case 414: /* function_name */
|
|
case 425: /* column_alias */
|
|
case 428: /* index_name */
|
|
case 433: /* sma_func_name */
|
|
case 437: /* cgroup_name */
|
|
case 444: /* language_opt */
|
|
case 446: /* view_name */
|
|
case 447: /* stream_name */
|
|
case 454: /* on_vgroup_id */
|
|
case 458: /* table_alias */
|
|
case 464: /* star_func */
|
|
case 466: /* noarg_func */
|
|
case 484: /* alias_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 365: /* sysinfo_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 366: /* privileges */
|
|
case 369: /* priv_type_list */
|
|
case 370: /* priv_type */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 367: /* priv_level */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 376: /* force_opt */
|
|
case 377: /* unsafe_opt */
|
|
case 378: /* not_exists_opt */
|
|
case 380: /* exists_opt */
|
|
case 438: /* analyze_opt */
|
|
case 441: /* or_replace_opt */
|
|
case 442: /* agg_func_opt */
|
|
case 452: /* ignore_opt */
|
|
case 494: /* set_quantifier_opt */
|
|
case 495: /* tag_mode_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 389: /* alter_db_option */
|
|
case 411: /* alter_table_option */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 401: /* type_name */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 416: /* db_kind_opt */
|
|
case 423: /* table_kind */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 417: /* table_kind_db_name_cond_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 474: /* compare_op */
|
|
case 475: /* in_op */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 487: /* join_type */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 488: /* join_subtype */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 508: /* fill_mode */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 519: /* ordering_specification_opt */
|
|
{
|
|
|
|
}
|
|
break;
|
|
case 520: /* 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[] = {
|
|
356, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
356, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
357, /* (2) account_options ::= */
|
|
357, /* (3) account_options ::= account_options PPS literal */
|
|
357, /* (4) account_options ::= account_options TSERIES literal */
|
|
357, /* (5) account_options ::= account_options STORAGE literal */
|
|
357, /* (6) account_options ::= account_options STREAMS literal */
|
|
357, /* (7) account_options ::= account_options QTIME literal */
|
|
357, /* (8) account_options ::= account_options DBS literal */
|
|
357, /* (9) account_options ::= account_options USERS literal */
|
|
357, /* (10) account_options ::= account_options CONNS literal */
|
|
357, /* (11) account_options ::= account_options STATE literal */
|
|
358, /* (12) alter_account_options ::= alter_account_option */
|
|
358, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
360, /* (14) alter_account_option ::= PASS literal */
|
|
360, /* (15) alter_account_option ::= PPS literal */
|
|
360, /* (16) alter_account_option ::= TSERIES literal */
|
|
360, /* (17) alter_account_option ::= STORAGE literal */
|
|
360, /* (18) alter_account_option ::= STREAMS literal */
|
|
360, /* (19) alter_account_option ::= QTIME literal */
|
|
360, /* (20) alter_account_option ::= DBS literal */
|
|
360, /* (21) alter_account_option ::= USERS literal */
|
|
360, /* (22) alter_account_option ::= CONNS literal */
|
|
360, /* (23) alter_account_option ::= STATE literal */
|
|
361, /* (24) ip_range_list ::= NK_STRING */
|
|
361, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
362, /* (26) white_list ::= HOST ip_range_list */
|
|
363, /* (27) white_list_opt ::= */
|
|
363, /* (28) white_list_opt ::= white_list */
|
|
356, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
356, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
356, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
356, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
356, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
356, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
356, /* (35) cmd ::= DROP USER user_name */
|
|
365, /* (36) sysinfo_opt ::= */
|
|
365, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
356, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
356, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
366, /* (40) privileges ::= ALL */
|
|
366, /* (41) privileges ::= priv_type_list */
|
|
366, /* (42) privileges ::= SUBSCRIBE */
|
|
369, /* (43) priv_type_list ::= priv_type */
|
|
369, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
370, /* (45) priv_type ::= READ */
|
|
370, /* (46) priv_type ::= WRITE */
|
|
370, /* (47) priv_type ::= ALTER */
|
|
367, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
367, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
|
|
367, /* (50) priv_level ::= db_name NK_DOT table_name */
|
|
367, /* (51) priv_level ::= topic_name */
|
|
368, /* (52) with_opt ::= */
|
|
368, /* (53) with_opt ::= WITH search_condition */
|
|
356, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
|
|
356, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
356, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
356, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
356, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
356, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
356, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
356, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
356, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
356, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
356, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
375, /* (65) dnode_endpoint ::= NK_STRING */
|
|
375, /* (66) dnode_endpoint ::= NK_ID */
|
|
375, /* (67) dnode_endpoint ::= NK_IPTOKEN */
|
|
376, /* (68) force_opt ::= */
|
|
376, /* (69) force_opt ::= FORCE */
|
|
377, /* (70) unsafe_opt ::= UNSAFE */
|
|
356, /* (71) cmd ::= ALTER LOCAL NK_STRING */
|
|
356, /* (72) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
356, /* (73) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
356, /* (74) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
356, /* (75) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
356, /* (76) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
356, /* (77) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
356, /* (78) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
356, /* (79) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
356, /* (80) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
356, /* (81) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
356, /* (82) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
356, /* (83) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
356, /* (84) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
356, /* (85) cmd ::= DROP DATABASE exists_opt db_name */
|
|
356, /* (86) cmd ::= USE db_name */
|
|
356, /* (87) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
356, /* (88) cmd ::= FLUSH DATABASE db_name */
|
|
356, /* (89) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
356, /* (90) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
378, /* (91) not_exists_opt ::= IF NOT EXISTS */
|
|
378, /* (92) not_exists_opt ::= */
|
|
380, /* (93) exists_opt ::= IF EXISTS */
|
|
380, /* (94) exists_opt ::= */
|
|
379, /* (95) db_options ::= */
|
|
379, /* (96) db_options ::= db_options BUFFER NK_INTEGER */
|
|
379, /* (97) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
379, /* (98) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
379, /* (99) db_options ::= db_options COMP NK_INTEGER */
|
|
379, /* (100) db_options ::= db_options DURATION NK_INTEGER */
|
|
379, /* (101) db_options ::= db_options DURATION NK_VARIABLE */
|
|
379, /* (102) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
379, /* (103) db_options ::= db_options MINROWS NK_INTEGER */
|
|
379, /* (104) db_options ::= db_options KEEP integer_list */
|
|
379, /* (105) db_options ::= db_options KEEP variable_list */
|
|
379, /* (106) db_options ::= db_options PAGES NK_INTEGER */
|
|
379, /* (107) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
379, /* (108) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
379, /* (109) db_options ::= db_options PRECISION NK_STRING */
|
|
379, /* (110) db_options ::= db_options REPLICA NK_INTEGER */
|
|
379, /* (111) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
379, /* (112) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
379, /* (113) db_options ::= db_options RETENTIONS retention_list */
|
|
379, /* (114) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
379, /* (115) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
379, /* (116) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
379, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
379, /* (118) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
379, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
379, /* (120) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
379, /* (121) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
379, /* (122) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
379, /* (123) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
379, /* (124) db_options ::= db_options TABLE_PREFIX signed */
|
|
379, /* (125) db_options ::= db_options TABLE_SUFFIX signed */
|
|
379, /* (126) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
381, /* (127) alter_db_options ::= alter_db_option */
|
|
381, /* (128) alter_db_options ::= alter_db_options alter_db_option */
|
|
389, /* (129) alter_db_option ::= BUFFER NK_INTEGER */
|
|
389, /* (130) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
389, /* (131) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
389, /* (132) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
389, /* (133) alter_db_option ::= KEEP integer_list */
|
|
389, /* (134) alter_db_option ::= KEEP variable_list */
|
|
389, /* (135) alter_db_option ::= PAGES NK_INTEGER */
|
|
389, /* (136) alter_db_option ::= REPLICA NK_INTEGER */
|
|
389, /* (137) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
389, /* (138) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
389, /* (139) alter_db_option ::= MINROWS NK_INTEGER */
|
|
389, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
389, /* (141) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
389, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
389, /* (143) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
389, /* (144) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
385, /* (145) integer_list ::= NK_INTEGER */
|
|
385, /* (146) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
386, /* (147) variable_list ::= NK_VARIABLE */
|
|
386, /* (148) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
387, /* (149) retention_list ::= retention */
|
|
387, /* (150) retention_list ::= retention_list NK_COMMA retention */
|
|
390, /* (151) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
390, /* (152) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
382, /* (153) speed_opt ::= */
|
|
382, /* (154) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
383, /* (155) start_opt ::= */
|
|
383, /* (156) start_opt ::= START WITH NK_INTEGER */
|
|
383, /* (157) start_opt ::= START WITH NK_STRING */
|
|
383, /* (158) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
384, /* (159) end_opt ::= */
|
|
384, /* (160) end_opt ::= END WITH NK_INTEGER */
|
|
384, /* (161) end_opt ::= END WITH NK_STRING */
|
|
384, /* (162) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
356, /* (163) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
356, /* (164) cmd ::= CREATE TABLE multi_create_clause */
|
|
356, /* (165) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
356, /* (166) cmd ::= DROP TABLE multi_drop_clause */
|
|
356, /* (167) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
356, /* (168) cmd ::= ALTER TABLE alter_table_clause */
|
|
356, /* (169) cmd ::= ALTER STABLE alter_table_clause */
|
|
398, /* (170) alter_table_clause ::= full_table_name alter_table_options */
|
|
398, /* (171) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
398, /* (172) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
398, /* (173) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
398, /* (174) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
398, /* (175) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
398, /* (176) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
398, /* (177) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
398, /* (178) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
398, /* (179) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
395, /* (180) multi_create_clause ::= create_subtable_clause */
|
|
395, /* (181) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
403, /* (182) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
397, /* (183) multi_drop_clause ::= drop_table_clause */
|
|
397, /* (184) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
406, /* (185) drop_table_clause ::= exists_opt full_table_name */
|
|
404, /* (186) specific_cols_opt ::= */
|
|
404, /* (187) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
391, /* (188) full_table_name ::= table_name */
|
|
391, /* (189) full_table_name ::= db_name NK_DOT table_name */
|
|
392, /* (190) column_def_list ::= column_def */
|
|
392, /* (191) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
408, /* (192) column_def ::= column_name type_name */
|
|
401, /* (193) type_name ::= BOOL */
|
|
401, /* (194) type_name ::= TINYINT */
|
|
401, /* (195) type_name ::= SMALLINT */
|
|
401, /* (196) type_name ::= INT */
|
|
401, /* (197) type_name ::= INTEGER */
|
|
401, /* (198) type_name ::= BIGINT */
|
|
401, /* (199) type_name ::= FLOAT */
|
|
401, /* (200) type_name ::= DOUBLE */
|
|
401, /* (201) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
401, /* (202) type_name ::= TIMESTAMP */
|
|
401, /* (203) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
401, /* (204) type_name ::= TINYINT UNSIGNED */
|
|
401, /* (205) type_name ::= SMALLINT UNSIGNED */
|
|
401, /* (206) type_name ::= INT UNSIGNED */
|
|
401, /* (207) type_name ::= BIGINT UNSIGNED */
|
|
401, /* (208) type_name ::= JSON */
|
|
401, /* (209) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
401, /* (210) type_name ::= MEDIUMBLOB */
|
|
401, /* (211) type_name ::= BLOB */
|
|
401, /* (212) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
401, /* (213) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
401, /* (214) type_name ::= DECIMAL */
|
|
401, /* (215) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
401, /* (216) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
393, /* (217) tags_def_opt ::= */
|
|
393, /* (218) tags_def_opt ::= tags_def */
|
|
396, /* (219) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
394, /* (220) table_options ::= */
|
|
394, /* (221) table_options ::= table_options COMMENT NK_STRING */
|
|
394, /* (222) table_options ::= table_options MAX_DELAY duration_list */
|
|
394, /* (223) table_options ::= table_options WATERMARK duration_list */
|
|
394, /* (224) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
394, /* (225) table_options ::= table_options TTL NK_INTEGER */
|
|
394, /* (226) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
394, /* (227) table_options ::= table_options DELETE_MARK duration_list */
|
|
399, /* (228) alter_table_options ::= alter_table_option */
|
|
399, /* (229) alter_table_options ::= alter_table_options alter_table_option */
|
|
411, /* (230) alter_table_option ::= COMMENT NK_STRING */
|
|
411, /* (231) alter_table_option ::= TTL NK_INTEGER */
|
|
409, /* (232) duration_list ::= duration_literal */
|
|
409, /* (233) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
410, /* (234) rollup_func_list ::= rollup_func_name */
|
|
410, /* (235) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
413, /* (236) rollup_func_name ::= function_name */
|
|
413, /* (237) rollup_func_name ::= FIRST */
|
|
413, /* (238) rollup_func_name ::= LAST */
|
|
407, /* (239) col_name_list ::= col_name */
|
|
407, /* (240) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
415, /* (241) col_name ::= column_name */
|
|
356, /* (242) cmd ::= SHOW DNODES */
|
|
356, /* (243) cmd ::= SHOW USERS */
|
|
356, /* (244) cmd ::= SHOW USER PRIVILEGES */
|
|
356, /* (245) cmd ::= SHOW db_kind_opt DATABASES */
|
|
356, /* (246) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
356, /* (247) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
356, /* (248) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
356, /* (249) cmd ::= SHOW MNODES */
|
|
356, /* (250) cmd ::= SHOW QNODES */
|
|
356, /* (251) cmd ::= SHOW FUNCTIONS */
|
|
356, /* (252) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
356, /* (253) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
356, /* (254) cmd ::= SHOW STREAMS */
|
|
356, /* (255) cmd ::= SHOW ACCOUNTS */
|
|
356, /* (256) cmd ::= SHOW APPS */
|
|
356, /* (257) cmd ::= SHOW CONNECTIONS */
|
|
356, /* (258) cmd ::= SHOW LICENCES */
|
|
356, /* (259) cmd ::= SHOW GRANTS */
|
|
356, /* (260) cmd ::= SHOW CREATE DATABASE db_name */
|
|
356, /* (261) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
356, /* (262) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
356, /* (263) cmd ::= SHOW QUERIES */
|
|
356, /* (264) cmd ::= SHOW SCORES */
|
|
356, /* (265) cmd ::= SHOW TOPICS */
|
|
356, /* (266) cmd ::= SHOW VARIABLES */
|
|
356, /* (267) cmd ::= SHOW CLUSTER VARIABLES */
|
|
356, /* (268) cmd ::= SHOW LOCAL VARIABLES */
|
|
356, /* (269) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
356, /* (270) cmd ::= SHOW BNODES */
|
|
356, /* (271) cmd ::= SHOW SNODES */
|
|
356, /* (272) cmd ::= SHOW CLUSTER */
|
|
356, /* (273) cmd ::= SHOW TRANSACTIONS */
|
|
356, /* (274) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
356, /* (275) cmd ::= SHOW CONSUMERS */
|
|
356, /* (276) cmd ::= SHOW SUBSCRIPTIONS */
|
|
356, /* (277) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
356, /* (278) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
356, /* (279) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
356, /* (280) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
356, /* (281) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
356, /* (282) cmd ::= SHOW VNODES */
|
|
356, /* (283) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
356, /* (284) cmd ::= SHOW CLUSTER ALIVE */
|
|
356, /* (285) cmd ::= SHOW db_name_cond_opt VIEWS */
|
|
356, /* (286) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
356, /* (287) cmd ::= SHOW COMPACTS */
|
|
356, /* (288) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
417, /* (289) table_kind_db_name_cond_opt ::= */
|
|
417, /* (290) table_kind_db_name_cond_opt ::= table_kind */
|
|
417, /* (291) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
417, /* (292) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
423, /* (293) table_kind ::= NORMAL */
|
|
423, /* (294) table_kind ::= CHILD */
|
|
419, /* (295) db_name_cond_opt ::= */
|
|
419, /* (296) db_name_cond_opt ::= db_name NK_DOT */
|
|
418, /* (297) like_pattern_opt ::= */
|
|
418, /* (298) like_pattern_opt ::= LIKE NK_STRING */
|
|
420, /* (299) table_name_cond ::= table_name */
|
|
421, /* (300) from_db_opt ::= */
|
|
421, /* (301) from_db_opt ::= FROM db_name */
|
|
422, /* (302) tag_list_opt ::= */
|
|
422, /* (303) tag_list_opt ::= tag_item */
|
|
422, /* (304) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
424, /* (305) tag_item ::= TBNAME */
|
|
424, /* (306) tag_item ::= QTAGS */
|
|
424, /* (307) tag_item ::= column_name */
|
|
424, /* (308) tag_item ::= column_name column_alias */
|
|
424, /* (309) tag_item ::= column_name AS column_alias */
|
|
416, /* (310) db_kind_opt ::= */
|
|
416, /* (311) db_kind_opt ::= USER */
|
|
416, /* (312) db_kind_opt ::= SYSTEM */
|
|
356, /* (313) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
356, /* (314) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
356, /* (315) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
427, /* (316) full_index_name ::= index_name */
|
|
427, /* (317) full_index_name ::= db_name NK_DOT index_name */
|
|
426, /* (318) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
426, /* (319) 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 */
|
|
429, /* (320) func_list ::= func */
|
|
429, /* (321) func_list ::= func_list NK_COMMA func */
|
|
432, /* (322) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
433, /* (323) sma_func_name ::= function_name */
|
|
433, /* (324) sma_func_name ::= COUNT */
|
|
433, /* (325) sma_func_name ::= FIRST */
|
|
433, /* (326) sma_func_name ::= LAST */
|
|
433, /* (327) sma_func_name ::= LAST_ROW */
|
|
431, /* (328) sma_stream_opt ::= */
|
|
431, /* (329) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
431, /* (330) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
431, /* (331) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
434, /* (332) with_meta ::= AS */
|
|
434, /* (333) with_meta ::= WITH META AS */
|
|
434, /* (334) with_meta ::= ONLY META AS */
|
|
356, /* (335) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
356, /* (336) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
356, /* (337) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
356, /* (338) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
356, /* (339) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
356, /* (340) cmd ::= DESC full_table_name */
|
|
356, /* (341) cmd ::= DESCRIBE full_table_name */
|
|
356, /* (342) cmd ::= RESET QUERY CACHE */
|
|
356, /* (343) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
356, /* (344) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
438, /* (345) analyze_opt ::= */
|
|
438, /* (346) analyze_opt ::= ANALYZE */
|
|
439, /* (347) explain_options ::= */
|
|
439, /* (348) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
439, /* (349) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
356, /* (350) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
356, /* (351) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
442, /* (352) agg_func_opt ::= */
|
|
442, /* (353) agg_func_opt ::= AGGREGATE */
|
|
443, /* (354) bufsize_opt ::= */
|
|
443, /* (355) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
444, /* (356) language_opt ::= */
|
|
444, /* (357) language_opt ::= LANGUAGE NK_STRING */
|
|
441, /* (358) or_replace_opt ::= */
|
|
441, /* (359) or_replace_opt ::= OR REPLACE */
|
|
356, /* (360) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
356, /* (361) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
445, /* (362) full_view_name ::= view_name */
|
|
445, /* (363) full_view_name ::= db_name NK_DOT view_name */
|
|
356, /* (364) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
|
|
356, /* (365) cmd ::= DROP STREAM exists_opt stream_name */
|
|
356, /* (366) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
356, /* (367) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
449, /* (368) col_list_opt ::= */
|
|
449, /* (369) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
450, /* (370) tag_def_or_ref_opt ::= */
|
|
450, /* (371) tag_def_or_ref_opt ::= tags_def */
|
|
450, /* (372) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
448, /* (373) stream_options ::= */
|
|
448, /* (374) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
448, /* (375) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
448, /* (376) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
448, /* (377) stream_options ::= stream_options WATERMARK duration_literal */
|
|
448, /* (378) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
448, /* (379) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
448, /* (380) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
448, /* (381) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
451, /* (382) subtable_opt ::= */
|
|
451, /* (383) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
452, /* (384) ignore_opt ::= */
|
|
452, /* (385) ignore_opt ::= IGNORE UNTREATED */
|
|
356, /* (386) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
356, /* (387) cmd ::= KILL QUERY NK_STRING */
|
|
356, /* (388) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
356, /* (389) cmd ::= KILL COMPACT NK_INTEGER */
|
|
356, /* (390) cmd ::= BALANCE VGROUP */
|
|
356, /* (391) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
356, /* (392) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
356, /* (393) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
356, /* (394) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
454, /* (395) on_vgroup_id ::= */
|
|
454, /* (396) on_vgroup_id ::= ON NK_INTEGER */
|
|
455, /* (397) dnode_list ::= DNODE NK_INTEGER */
|
|
455, /* (398) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
356, /* (399) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
356, /* (400) cmd ::= query_or_subquery */
|
|
356, /* (401) cmd ::= insert_query */
|
|
440, /* (402) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
440, /* (403) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
359, /* (404) literal ::= NK_INTEGER */
|
|
359, /* (405) literal ::= NK_FLOAT */
|
|
359, /* (406) literal ::= NK_STRING */
|
|
359, /* (407) literal ::= NK_BOOL */
|
|
359, /* (408) literal ::= TIMESTAMP NK_STRING */
|
|
359, /* (409) literal ::= duration_literal */
|
|
359, /* (410) literal ::= NULL */
|
|
359, /* (411) literal ::= NK_QUESTION */
|
|
412, /* (412) duration_literal ::= NK_VARIABLE */
|
|
388, /* (413) signed ::= NK_INTEGER */
|
|
388, /* (414) signed ::= NK_PLUS NK_INTEGER */
|
|
388, /* (415) signed ::= NK_MINUS NK_INTEGER */
|
|
388, /* (416) signed ::= NK_FLOAT */
|
|
388, /* (417) signed ::= NK_PLUS NK_FLOAT */
|
|
388, /* (418) signed ::= NK_MINUS NK_FLOAT */
|
|
402, /* (419) signed_literal ::= signed */
|
|
402, /* (420) signed_literal ::= NK_STRING */
|
|
402, /* (421) signed_literal ::= NK_BOOL */
|
|
402, /* (422) signed_literal ::= TIMESTAMP NK_STRING */
|
|
402, /* (423) signed_literal ::= duration_literal */
|
|
402, /* (424) signed_literal ::= NULL */
|
|
402, /* (425) signed_literal ::= literal_func */
|
|
402, /* (426) signed_literal ::= NK_QUESTION */
|
|
457, /* (427) literal_list ::= signed_literal */
|
|
457, /* (428) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
371, /* (429) db_name ::= NK_ID */
|
|
372, /* (430) table_name ::= NK_ID */
|
|
400, /* (431) column_name ::= NK_ID */
|
|
414, /* (432) function_name ::= NK_ID */
|
|
446, /* (433) view_name ::= NK_ID */
|
|
458, /* (434) table_alias ::= NK_ID */
|
|
425, /* (435) column_alias ::= NK_ID */
|
|
425, /* (436) column_alias ::= NK_ALIAS */
|
|
364, /* (437) user_name ::= NK_ID */
|
|
373, /* (438) topic_name ::= NK_ID */
|
|
447, /* (439) stream_name ::= NK_ID */
|
|
437, /* (440) cgroup_name ::= NK_ID */
|
|
428, /* (441) index_name ::= NK_ID */
|
|
459, /* (442) expr_or_subquery ::= expression */
|
|
453, /* (443) expression ::= literal */
|
|
453, /* (444) expression ::= pseudo_column */
|
|
453, /* (445) expression ::= column_reference */
|
|
453, /* (446) expression ::= function_expression */
|
|
453, /* (447) expression ::= case_when_expression */
|
|
453, /* (448) expression ::= NK_LP expression NK_RP */
|
|
453, /* (449) expression ::= NK_PLUS expr_or_subquery */
|
|
453, /* (450) expression ::= NK_MINUS expr_or_subquery */
|
|
453, /* (451) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
453, /* (452) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
453, /* (453) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
453, /* (454) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
453, /* (455) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
453, /* (456) expression ::= column_reference NK_ARROW NK_STRING */
|
|
453, /* (457) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
453, /* (458) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
405, /* (459) expression_list ::= expr_or_subquery */
|
|
405, /* (460) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
461, /* (461) column_reference ::= column_name */
|
|
461, /* (462) column_reference ::= table_name NK_DOT column_name */
|
|
461, /* (463) column_reference ::= NK_ALIAS */
|
|
461, /* (464) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
460, /* (465) pseudo_column ::= ROWTS */
|
|
460, /* (466) pseudo_column ::= TBNAME */
|
|
460, /* (467) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
460, /* (468) pseudo_column ::= QSTART */
|
|
460, /* (469) pseudo_column ::= QEND */
|
|
460, /* (470) pseudo_column ::= QDURATION */
|
|
460, /* (471) pseudo_column ::= WSTART */
|
|
460, /* (472) pseudo_column ::= WEND */
|
|
460, /* (473) pseudo_column ::= WDURATION */
|
|
460, /* (474) pseudo_column ::= IROWTS */
|
|
460, /* (475) pseudo_column ::= ISFILLED */
|
|
460, /* (476) pseudo_column ::= QTAGS */
|
|
462, /* (477) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
462, /* (478) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
462, /* (479) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
462, /* (480) function_expression ::= literal_func */
|
|
456, /* (481) literal_func ::= noarg_func NK_LP NK_RP */
|
|
456, /* (482) literal_func ::= NOW */
|
|
466, /* (483) noarg_func ::= NOW */
|
|
466, /* (484) noarg_func ::= TODAY */
|
|
466, /* (485) noarg_func ::= TIMEZONE */
|
|
466, /* (486) noarg_func ::= DATABASE */
|
|
466, /* (487) noarg_func ::= CLIENT_VERSION */
|
|
466, /* (488) noarg_func ::= SERVER_VERSION */
|
|
466, /* (489) noarg_func ::= SERVER_STATUS */
|
|
466, /* (490) noarg_func ::= CURRENT_USER */
|
|
466, /* (491) noarg_func ::= USER */
|
|
464, /* (492) star_func ::= COUNT */
|
|
464, /* (493) star_func ::= FIRST */
|
|
464, /* (494) star_func ::= LAST */
|
|
464, /* (495) star_func ::= LAST_ROW */
|
|
465, /* (496) star_func_para_list ::= NK_STAR */
|
|
465, /* (497) star_func_para_list ::= other_para_list */
|
|
467, /* (498) other_para_list ::= star_func_para */
|
|
467, /* (499) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
468, /* (500) star_func_para ::= expr_or_subquery */
|
|
468, /* (501) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
463, /* (502) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
463, /* (503) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
469, /* (504) when_then_list ::= when_then_expr */
|
|
469, /* (505) when_then_list ::= when_then_list when_then_expr */
|
|
472, /* (506) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
470, /* (507) case_when_else_opt ::= */
|
|
470, /* (508) case_when_else_opt ::= ELSE common_expression */
|
|
473, /* (509) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
473, /* (510) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
473, /* (511) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
473, /* (512) predicate ::= expr_or_subquery IS NULL */
|
|
473, /* (513) predicate ::= expr_or_subquery IS NOT NULL */
|
|
473, /* (514) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
474, /* (515) compare_op ::= NK_LT */
|
|
474, /* (516) compare_op ::= NK_GT */
|
|
474, /* (517) compare_op ::= NK_LE */
|
|
474, /* (518) compare_op ::= NK_GE */
|
|
474, /* (519) compare_op ::= NK_NE */
|
|
474, /* (520) compare_op ::= NK_EQ */
|
|
474, /* (521) compare_op ::= LIKE */
|
|
474, /* (522) compare_op ::= NOT LIKE */
|
|
474, /* (523) compare_op ::= MATCH */
|
|
474, /* (524) compare_op ::= NMATCH */
|
|
474, /* (525) compare_op ::= CONTAINS */
|
|
475, /* (526) in_op ::= IN */
|
|
475, /* (527) in_op ::= NOT IN */
|
|
476, /* (528) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
477, /* (529) boolean_value_expression ::= boolean_primary */
|
|
477, /* (530) boolean_value_expression ::= NOT boolean_primary */
|
|
477, /* (531) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
477, /* (532) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
478, /* (533) boolean_primary ::= predicate */
|
|
478, /* (534) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
471, /* (535) common_expression ::= expr_or_subquery */
|
|
471, /* (536) common_expression ::= boolean_value_expression */
|
|
479, /* (537) from_clause_opt ::= */
|
|
479, /* (538) from_clause_opt ::= FROM table_reference_list */
|
|
480, /* (539) table_reference_list ::= table_reference */
|
|
480, /* (540) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
481, /* (541) table_reference ::= table_primary */
|
|
481, /* (542) table_reference ::= joined_table */
|
|
482, /* (543) table_primary ::= table_name alias_opt */
|
|
482, /* (544) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
482, /* (545) table_primary ::= subquery alias_opt */
|
|
482, /* (546) table_primary ::= parenthesized_joined_table */
|
|
484, /* (547) alias_opt ::= */
|
|
484, /* (548) alias_opt ::= table_alias */
|
|
484, /* (549) alias_opt ::= AS table_alias */
|
|
486, /* (550) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
486, /* (551) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
483, /* (552) joined_table ::= table_reference join_type join_subtype JOIN table_reference ON search_condition window_offset_clause_opt jlimit_clause_opt */
|
|
487, /* (553) join_type ::= */
|
|
487, /* (554) join_type ::= INNER */
|
|
487, /* (555) join_type ::= LEFT */
|
|
487, /* (556) join_type ::= RIGHT */
|
|
487, /* (557) join_type ::= FULL */
|
|
488, /* (558) join_subtype ::= */
|
|
488, /* (559) join_subtype ::= OUTER */
|
|
488, /* (560) join_subtype ::= SEMI */
|
|
488, /* (561) join_subtype ::= ANTI */
|
|
488, /* (562) join_subtype ::= ASOF */
|
|
488, /* (563) join_subtype ::= WINDOW */
|
|
489, /* (564) window_offset_clause_opt ::= */
|
|
489, /* (565) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */
|
|
491, /* (566) window_offset_literal ::= NK_VARIABLE */
|
|
491, /* (567) window_offset_literal ::= NK_MINUS NK_VARIABLE */
|
|
490, /* (568) jlimit_clause_opt ::= */
|
|
490, /* (569) jlimit_clause_opt ::= JLIMIT NK_INTEGER */
|
|
492, /* (570) 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 */
|
|
493, /* (571) hint_list ::= */
|
|
493, /* (572) hint_list ::= NK_HINT */
|
|
495, /* (573) tag_mode_opt ::= */
|
|
495, /* (574) tag_mode_opt ::= TAGS */
|
|
494, /* (575) set_quantifier_opt ::= */
|
|
494, /* (576) set_quantifier_opt ::= DISTINCT */
|
|
494, /* (577) set_quantifier_opt ::= ALL */
|
|
496, /* (578) select_list ::= select_item */
|
|
496, /* (579) select_list ::= select_list NK_COMMA select_item */
|
|
504, /* (580) select_item ::= NK_STAR */
|
|
504, /* (581) select_item ::= common_expression */
|
|
504, /* (582) select_item ::= common_expression column_alias */
|
|
504, /* (583) select_item ::= common_expression AS column_alias */
|
|
504, /* (584) select_item ::= table_name NK_DOT NK_STAR */
|
|
436, /* (585) where_clause_opt ::= */
|
|
436, /* (586) where_clause_opt ::= WHERE search_condition */
|
|
497, /* (587) partition_by_clause_opt ::= */
|
|
497, /* (588) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
505, /* (589) partition_list ::= partition_item */
|
|
505, /* (590) partition_list ::= partition_list NK_COMMA partition_item */
|
|
506, /* (591) partition_item ::= expr_or_subquery */
|
|
506, /* (592) partition_item ::= expr_or_subquery column_alias */
|
|
506, /* (593) partition_item ::= expr_or_subquery AS column_alias */
|
|
501, /* (594) twindow_clause_opt ::= */
|
|
501, /* (595) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
501, /* (596) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
501, /* (597) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
501, /* (598) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
501, /* (599) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
430, /* (600) sliding_opt ::= */
|
|
430, /* (601) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
507, /* (602) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
507, /* (603) interval_sliding_duration_literal ::= NK_STRING */
|
|
507, /* (604) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
500, /* (605) fill_opt ::= */
|
|
500, /* (606) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
500, /* (607) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
500, /* (608) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
508, /* (609) fill_mode ::= NONE */
|
|
508, /* (610) fill_mode ::= PREV */
|
|
508, /* (611) fill_mode ::= NULL */
|
|
508, /* (612) fill_mode ::= NULL_F */
|
|
508, /* (613) fill_mode ::= LINEAR */
|
|
508, /* (614) fill_mode ::= NEXT */
|
|
502, /* (615) group_by_clause_opt ::= */
|
|
502, /* (616) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
509, /* (617) group_by_list ::= expr_or_subquery */
|
|
509, /* (618) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
503, /* (619) having_clause_opt ::= */
|
|
503, /* (620) having_clause_opt ::= HAVING search_condition */
|
|
498, /* (621) range_opt ::= */
|
|
498, /* (622) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
498, /* (623) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
499, /* (624) every_opt ::= */
|
|
499, /* (625) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
510, /* (626) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
511, /* (627) query_simple ::= query_specification */
|
|
511, /* (628) query_simple ::= union_query_expression */
|
|
515, /* (629) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
515, /* (630) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
516, /* (631) query_simple_or_subquery ::= query_simple */
|
|
516, /* (632) query_simple_or_subquery ::= subquery */
|
|
435, /* (633) query_or_subquery ::= query_expression */
|
|
435, /* (634) query_or_subquery ::= subquery */
|
|
512, /* (635) order_by_clause_opt ::= */
|
|
512, /* (636) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
513, /* (637) slimit_clause_opt ::= */
|
|
513, /* (638) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
513, /* (639) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
513, /* (640) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
514, /* (641) limit_clause_opt ::= */
|
|
514, /* (642) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
514, /* (643) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
514, /* (644) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
485, /* (645) subquery ::= NK_LP query_expression NK_RP */
|
|
485, /* (646) subquery ::= NK_LP subquery NK_RP */
|
|
374, /* (647) search_condition ::= common_expression */
|
|
517, /* (648) sort_specification_list ::= sort_specification */
|
|
517, /* (649) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
518, /* (650) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
519, /* (651) ordering_specification_opt ::= */
|
|
519, /* (652) ordering_specification_opt ::= ASC */
|
|
519, /* (653) ordering_specification_opt ::= DESC */
|
|
520, /* (654) null_ordering_opt ::= */
|
|
520, /* (655) null_ordering_opt ::= NULLS FIRST */
|
|
520, /* (656) null_ordering_opt ::= NULLS LAST */
|
|
};
|
|
|
|
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
|
|
** of symbols on the right-hand side of that rule. */
|
|
static const signed char yyRuleInfoNRhs[] = {
|
|
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
0, /* (2) account_options ::= */
|
|
-3, /* (3) account_options ::= account_options PPS literal */
|
|
-3, /* (4) account_options ::= account_options TSERIES literal */
|
|
-3, /* (5) account_options ::= account_options STORAGE literal */
|
|
-3, /* (6) account_options ::= account_options STREAMS literal */
|
|
-3, /* (7) account_options ::= account_options QTIME literal */
|
|
-3, /* (8) account_options ::= account_options DBS literal */
|
|
-3, /* (9) account_options ::= account_options USERS literal */
|
|
-3, /* (10) account_options ::= account_options CONNS literal */
|
|
-3, /* (11) account_options ::= account_options STATE literal */
|
|
-1, /* (12) alter_account_options ::= alter_account_option */
|
|
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
-2, /* (14) alter_account_option ::= PASS literal */
|
|
-2, /* (15) alter_account_option ::= PPS literal */
|
|
-2, /* (16) alter_account_option ::= TSERIES literal */
|
|
-2, /* (17) alter_account_option ::= STORAGE literal */
|
|
-2, /* (18) alter_account_option ::= STREAMS literal */
|
|
-2, /* (19) alter_account_option ::= QTIME literal */
|
|
-2, /* (20) alter_account_option ::= DBS literal */
|
|
-2, /* (21) alter_account_option ::= USERS literal */
|
|
-2, /* (22) alter_account_option ::= CONNS literal */
|
|
-2, /* (23) alter_account_option ::= STATE literal */
|
|
-1, /* (24) ip_range_list ::= NK_STRING */
|
|
-3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
-2, /* (26) white_list ::= HOST ip_range_list */
|
|
0, /* (27) white_list_opt ::= */
|
|
-1, /* (28) white_list_opt ::= white_list */
|
|
-7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
-5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
-5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
-5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
-5, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
-5, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
-3, /* (35) cmd ::= DROP USER user_name */
|
|
0, /* (36) sysinfo_opt ::= */
|
|
-2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
-7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
-7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
-1, /* (40) privileges ::= ALL */
|
|
-1, /* (41) privileges ::= priv_type_list */
|
|
-1, /* (42) privileges ::= SUBSCRIBE */
|
|
-1, /* (43) priv_type_list ::= priv_type */
|
|
-3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
-1, /* (45) priv_type ::= READ */
|
|
-1, /* (46) priv_type ::= WRITE */
|
|
-1, /* (47) priv_type ::= ALTER */
|
|
-3, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
-3, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
|
|
-3, /* (50) priv_level ::= db_name NK_DOT table_name */
|
|
-1, /* (51) priv_level ::= topic_name */
|
|
0, /* (52) with_opt ::= */
|
|
-2, /* (53) with_opt ::= WITH search_condition */
|
|
-3, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
|
|
-5, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
-4, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
-4, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
-4, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
-4, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
-4, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
-5, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
-4, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
-5, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
-3, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
-1, /* (65) dnode_endpoint ::= NK_STRING */
|
|
-1, /* (66) dnode_endpoint ::= NK_ID */
|
|
-1, /* (67) dnode_endpoint ::= NK_IPTOKEN */
|
|
0, /* (68) force_opt ::= */
|
|
-1, /* (69) force_opt ::= FORCE */
|
|
-1, /* (70) unsafe_opt ::= UNSAFE */
|
|
-3, /* (71) cmd ::= ALTER LOCAL NK_STRING */
|
|
-4, /* (72) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
-5, /* (73) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (74) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (75) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (76) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (77) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (78) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (79) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (80) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (81) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (82) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (83) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
-5, /* (84) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
-4, /* (85) cmd ::= DROP DATABASE exists_opt db_name */
|
|
-2, /* (86) cmd ::= USE db_name */
|
|
-4, /* (87) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
-3, /* (88) cmd ::= FLUSH DATABASE db_name */
|
|
-4, /* (89) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
-5, /* (90) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
-3, /* (91) not_exists_opt ::= IF NOT EXISTS */
|
|
0, /* (92) not_exists_opt ::= */
|
|
-2, /* (93) exists_opt ::= IF EXISTS */
|
|
0, /* (94) exists_opt ::= */
|
|
0, /* (95) db_options ::= */
|
|
-3, /* (96) db_options ::= db_options BUFFER NK_INTEGER */
|
|
-3, /* (97) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
-3, /* (98) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
-3, /* (99) db_options ::= db_options COMP NK_INTEGER */
|
|
-3, /* (100) db_options ::= db_options DURATION NK_INTEGER */
|
|
-3, /* (101) db_options ::= db_options DURATION NK_VARIABLE */
|
|
-3, /* (102) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
-3, /* (103) db_options ::= db_options MINROWS NK_INTEGER */
|
|
-3, /* (104) db_options ::= db_options KEEP integer_list */
|
|
-3, /* (105) db_options ::= db_options KEEP variable_list */
|
|
-3, /* (106) db_options ::= db_options PAGES NK_INTEGER */
|
|
-3, /* (107) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
-3, /* (108) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
-3, /* (109) db_options ::= db_options PRECISION NK_STRING */
|
|
-3, /* (110) db_options ::= db_options REPLICA NK_INTEGER */
|
|
-3, /* (111) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
-3, /* (112) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
-3, /* (113) db_options ::= db_options RETENTIONS retention_list */
|
|
-3, /* (114) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
-3, /* (115) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
-3, /* (116) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-3, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-4, /* (118) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-3, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
-4, /* (120) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-3, /* (121) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
-3, /* (122) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
-3, /* (123) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
-3, /* (124) db_options ::= db_options TABLE_PREFIX signed */
|
|
-3, /* (125) db_options ::= db_options TABLE_SUFFIX signed */
|
|
-3, /* (126) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
-1, /* (127) alter_db_options ::= alter_db_option */
|
|
-2, /* (128) alter_db_options ::= alter_db_options alter_db_option */
|
|
-2, /* (129) alter_db_option ::= BUFFER NK_INTEGER */
|
|
-2, /* (130) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
-2, /* (131) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
-2, /* (132) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-2, /* (133) alter_db_option ::= KEEP integer_list */
|
|
-2, /* (134) alter_db_option ::= KEEP variable_list */
|
|
-2, /* (135) alter_db_option ::= PAGES NK_INTEGER */
|
|
-2, /* (136) alter_db_option ::= REPLICA NK_INTEGER */
|
|
-2, /* (137) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
-2, /* (138) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
-2, /* (139) alter_db_option ::= MINROWS NK_INTEGER */
|
|
-2, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-3, /* (141) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-2, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
-3, /* (143) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-2, /* (144) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
-1, /* (145) integer_list ::= NK_INTEGER */
|
|
-3, /* (146) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
-1, /* (147) variable_list ::= NK_VARIABLE */
|
|
-3, /* (148) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
-1, /* (149) retention_list ::= retention */
|
|
-3, /* (150) retention_list ::= retention_list NK_COMMA retention */
|
|
-3, /* (151) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
-3, /* (152) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
0, /* (153) speed_opt ::= */
|
|
-2, /* (154) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
0, /* (155) start_opt ::= */
|
|
-3, /* (156) start_opt ::= START WITH NK_INTEGER */
|
|
-3, /* (157) start_opt ::= START WITH NK_STRING */
|
|
-4, /* (158) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
0, /* (159) end_opt ::= */
|
|
-3, /* (160) end_opt ::= END WITH NK_INTEGER */
|
|
-3, /* (161) end_opt ::= END WITH NK_STRING */
|
|
-4, /* (162) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
-9, /* (163) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
-3, /* (164) cmd ::= CREATE TABLE multi_create_clause */
|
|
-9, /* (165) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
-3, /* (166) cmd ::= DROP TABLE multi_drop_clause */
|
|
-4, /* (167) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
-3, /* (168) cmd ::= ALTER TABLE alter_table_clause */
|
|
-3, /* (169) cmd ::= ALTER STABLE alter_table_clause */
|
|
-2, /* (170) alter_table_clause ::= full_table_name alter_table_options */
|
|
-5, /* (171) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
-4, /* (172) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
-5, /* (173) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
-5, /* (174) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
-5, /* (175) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
-4, /* (176) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
-5, /* (177) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
-5, /* (178) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
-6, /* (179) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
-1, /* (180) multi_create_clause ::= create_subtable_clause */
|
|
-2, /* (181) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
-10, /* (182) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
-1, /* (183) multi_drop_clause ::= drop_table_clause */
|
|
-3, /* (184) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
-2, /* (185) drop_table_clause ::= exists_opt full_table_name */
|
|
0, /* (186) specific_cols_opt ::= */
|
|
-3, /* (187) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
-1, /* (188) full_table_name ::= table_name */
|
|
-3, /* (189) full_table_name ::= db_name NK_DOT table_name */
|
|
-1, /* (190) column_def_list ::= column_def */
|
|
-3, /* (191) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
-2, /* (192) column_def ::= column_name type_name */
|
|
-1, /* (193) type_name ::= BOOL */
|
|
-1, /* (194) type_name ::= TINYINT */
|
|
-1, /* (195) type_name ::= SMALLINT */
|
|
-1, /* (196) type_name ::= INT */
|
|
-1, /* (197) type_name ::= INTEGER */
|
|
-1, /* (198) type_name ::= BIGINT */
|
|
-1, /* (199) type_name ::= FLOAT */
|
|
-1, /* (200) type_name ::= DOUBLE */
|
|
-4, /* (201) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (202) type_name ::= TIMESTAMP */
|
|
-4, /* (203) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
-2, /* (204) type_name ::= TINYINT UNSIGNED */
|
|
-2, /* (205) type_name ::= SMALLINT UNSIGNED */
|
|
-2, /* (206) type_name ::= INT UNSIGNED */
|
|
-2, /* (207) type_name ::= BIGINT UNSIGNED */
|
|
-1, /* (208) type_name ::= JSON */
|
|
-4, /* (209) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (210) type_name ::= MEDIUMBLOB */
|
|
-1, /* (211) type_name ::= BLOB */
|
|
-4, /* (212) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
-4, /* (213) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (214) type_name ::= DECIMAL */
|
|
-4, /* (215) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
-6, /* (216) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
0, /* (217) tags_def_opt ::= */
|
|
-1, /* (218) tags_def_opt ::= tags_def */
|
|
-4, /* (219) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
0, /* (220) table_options ::= */
|
|
-3, /* (221) table_options ::= table_options COMMENT NK_STRING */
|
|
-3, /* (222) table_options ::= table_options MAX_DELAY duration_list */
|
|
-3, /* (223) table_options ::= table_options WATERMARK duration_list */
|
|
-5, /* (224) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
-3, /* (225) table_options ::= table_options TTL NK_INTEGER */
|
|
-5, /* (226) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
-3, /* (227) table_options ::= table_options DELETE_MARK duration_list */
|
|
-1, /* (228) alter_table_options ::= alter_table_option */
|
|
-2, /* (229) alter_table_options ::= alter_table_options alter_table_option */
|
|
-2, /* (230) alter_table_option ::= COMMENT NK_STRING */
|
|
-2, /* (231) alter_table_option ::= TTL NK_INTEGER */
|
|
-1, /* (232) duration_list ::= duration_literal */
|
|
-3, /* (233) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
-1, /* (234) rollup_func_list ::= rollup_func_name */
|
|
-3, /* (235) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
-1, /* (236) rollup_func_name ::= function_name */
|
|
-1, /* (237) rollup_func_name ::= FIRST */
|
|
-1, /* (238) rollup_func_name ::= LAST */
|
|
-1, /* (239) col_name_list ::= col_name */
|
|
-3, /* (240) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
-1, /* (241) col_name ::= column_name */
|
|
-2, /* (242) cmd ::= SHOW DNODES */
|
|
-2, /* (243) cmd ::= SHOW USERS */
|
|
-3, /* (244) cmd ::= SHOW USER PRIVILEGES */
|
|
-3, /* (245) cmd ::= SHOW db_kind_opt DATABASES */
|
|
-4, /* (246) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
-4, /* (247) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
-3, /* (248) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
-2, /* (249) cmd ::= SHOW MNODES */
|
|
-2, /* (250) cmd ::= SHOW QNODES */
|
|
-2, /* (251) cmd ::= SHOW FUNCTIONS */
|
|
-5, /* (252) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
-6, /* (253) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
-2, /* (254) cmd ::= SHOW STREAMS */
|
|
-2, /* (255) cmd ::= SHOW ACCOUNTS */
|
|
-2, /* (256) cmd ::= SHOW APPS */
|
|
-2, /* (257) cmd ::= SHOW CONNECTIONS */
|
|
-2, /* (258) cmd ::= SHOW LICENCES */
|
|
-2, /* (259) cmd ::= SHOW GRANTS */
|
|
-4, /* (260) cmd ::= SHOW CREATE DATABASE db_name */
|
|
-4, /* (261) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
-4, /* (262) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
-2, /* (263) cmd ::= SHOW QUERIES */
|
|
-2, /* (264) cmd ::= SHOW SCORES */
|
|
-2, /* (265) cmd ::= SHOW TOPICS */
|
|
-2, /* (266) cmd ::= SHOW VARIABLES */
|
|
-3, /* (267) cmd ::= SHOW CLUSTER VARIABLES */
|
|
-3, /* (268) cmd ::= SHOW LOCAL VARIABLES */
|
|
-5, /* (269) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
-2, /* (270) cmd ::= SHOW BNODES */
|
|
-2, /* (271) cmd ::= SHOW SNODES */
|
|
-2, /* (272) cmd ::= SHOW CLUSTER */
|
|
-2, /* (273) cmd ::= SHOW TRANSACTIONS */
|
|
-4, /* (274) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
-2, /* (275) cmd ::= SHOW CONSUMERS */
|
|
-2, /* (276) cmd ::= SHOW SUBSCRIPTIONS */
|
|
-5, /* (277) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
-6, /* (278) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
-7, /* (279) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
-8, /* (280) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
-5, /* (281) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
-2, /* (282) cmd ::= SHOW VNODES */
|
|
-3, /* (283) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
-3, /* (284) cmd ::= SHOW CLUSTER ALIVE */
|
|
-3, /* (285) cmd ::= SHOW db_name_cond_opt VIEWS */
|
|
-4, /* (286) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
-2, /* (287) cmd ::= SHOW COMPACTS */
|
|
-3, /* (288) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
0, /* (289) table_kind_db_name_cond_opt ::= */
|
|
-1, /* (290) table_kind_db_name_cond_opt ::= table_kind */
|
|
-2, /* (291) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
-3, /* (292) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
-1, /* (293) table_kind ::= NORMAL */
|
|
-1, /* (294) table_kind ::= CHILD */
|
|
0, /* (295) db_name_cond_opt ::= */
|
|
-2, /* (296) db_name_cond_opt ::= db_name NK_DOT */
|
|
0, /* (297) like_pattern_opt ::= */
|
|
-2, /* (298) like_pattern_opt ::= LIKE NK_STRING */
|
|
-1, /* (299) table_name_cond ::= table_name */
|
|
0, /* (300) from_db_opt ::= */
|
|
-2, /* (301) from_db_opt ::= FROM db_name */
|
|
0, /* (302) tag_list_opt ::= */
|
|
-1, /* (303) tag_list_opt ::= tag_item */
|
|
-3, /* (304) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
-1, /* (305) tag_item ::= TBNAME */
|
|
-1, /* (306) tag_item ::= QTAGS */
|
|
-1, /* (307) tag_item ::= column_name */
|
|
-2, /* (308) tag_item ::= column_name column_alias */
|
|
-3, /* (309) tag_item ::= column_name AS column_alias */
|
|
0, /* (310) db_kind_opt ::= */
|
|
-1, /* (311) db_kind_opt ::= USER */
|
|
-1, /* (312) db_kind_opt ::= SYSTEM */
|
|
-8, /* (313) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
-9, /* (314) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
-4, /* (315) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
-1, /* (316) full_index_name ::= index_name */
|
|
-3, /* (317) full_index_name ::= db_name NK_DOT index_name */
|
|
-10, /* (318) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
-12, /* (319) 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, /* (320) func_list ::= func */
|
|
-3, /* (321) func_list ::= func_list NK_COMMA func */
|
|
-4, /* (322) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
-1, /* (323) sma_func_name ::= function_name */
|
|
-1, /* (324) sma_func_name ::= COUNT */
|
|
-1, /* (325) sma_func_name ::= FIRST */
|
|
-1, /* (326) sma_func_name ::= LAST */
|
|
-1, /* (327) sma_func_name ::= LAST_ROW */
|
|
0, /* (328) sma_stream_opt ::= */
|
|
-3, /* (329) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
-3, /* (330) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
-3, /* (331) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
-1, /* (332) with_meta ::= AS */
|
|
-3, /* (333) with_meta ::= WITH META AS */
|
|
-3, /* (334) with_meta ::= ONLY META AS */
|
|
-6, /* (335) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
-7, /* (336) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
-8, /* (337) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
-4, /* (338) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
-7, /* (339) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
-2, /* (340) cmd ::= DESC full_table_name */
|
|
-2, /* (341) cmd ::= DESCRIBE full_table_name */
|
|
-3, /* (342) cmd ::= RESET QUERY CACHE */
|
|
-4, /* (343) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
-4, /* (344) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
0, /* (345) analyze_opt ::= */
|
|
-1, /* (346) analyze_opt ::= ANALYZE */
|
|
0, /* (347) explain_options ::= */
|
|
-3, /* (348) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
-3, /* (349) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
-12, /* (350) 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, /* (351) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
0, /* (352) agg_func_opt ::= */
|
|
-1, /* (353) agg_func_opt ::= AGGREGATE */
|
|
0, /* (354) bufsize_opt ::= */
|
|
-2, /* (355) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
0, /* (356) language_opt ::= */
|
|
-2, /* (357) language_opt ::= LANGUAGE NK_STRING */
|
|
0, /* (358) or_replace_opt ::= */
|
|
-2, /* (359) or_replace_opt ::= OR REPLACE */
|
|
-6, /* (360) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
-4, /* (361) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
-1, /* (362) full_view_name ::= view_name */
|
|
-3, /* (363) full_view_name ::= db_name NK_DOT view_name */
|
|
-12, /* (364) 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, /* (365) cmd ::= DROP STREAM exists_opt stream_name */
|
|
-4, /* (366) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
-5, /* (367) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
0, /* (368) col_list_opt ::= */
|
|
-3, /* (369) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
0, /* (370) tag_def_or_ref_opt ::= */
|
|
-1, /* (371) tag_def_or_ref_opt ::= tags_def */
|
|
-4, /* (372) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
0, /* (373) stream_options ::= */
|
|
-3, /* (374) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
-3, /* (375) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
-4, /* (376) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
-3, /* (377) stream_options ::= stream_options WATERMARK duration_literal */
|
|
-4, /* (378) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
-3, /* (379) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
-3, /* (380) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
-4, /* (381) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
0, /* (382) subtable_opt ::= */
|
|
-4, /* (383) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
0, /* (384) ignore_opt ::= */
|
|
-2, /* (385) ignore_opt ::= IGNORE UNTREATED */
|
|
-3, /* (386) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
-3, /* (387) cmd ::= KILL QUERY NK_STRING */
|
|
-3, /* (388) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
-3, /* (389) cmd ::= KILL COMPACT NK_INTEGER */
|
|
-2, /* (390) cmd ::= BALANCE VGROUP */
|
|
-4, /* (391) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
-4, /* (392) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
-4, /* (393) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
-3, /* (394) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
0, /* (395) on_vgroup_id ::= */
|
|
-2, /* (396) on_vgroup_id ::= ON NK_INTEGER */
|
|
-2, /* (397) dnode_list ::= DNODE NK_INTEGER */
|
|
-3, /* (398) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
-4, /* (399) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
-1, /* (400) cmd ::= query_or_subquery */
|
|
-1, /* (401) cmd ::= insert_query */
|
|
-7, /* (402) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
-4, /* (403) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
-1, /* (404) literal ::= NK_INTEGER */
|
|
-1, /* (405) literal ::= NK_FLOAT */
|
|
-1, /* (406) literal ::= NK_STRING */
|
|
-1, /* (407) literal ::= NK_BOOL */
|
|
-2, /* (408) literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (409) literal ::= duration_literal */
|
|
-1, /* (410) literal ::= NULL */
|
|
-1, /* (411) literal ::= NK_QUESTION */
|
|
-1, /* (412) duration_literal ::= NK_VARIABLE */
|
|
-1, /* (413) signed ::= NK_INTEGER */
|
|
-2, /* (414) signed ::= NK_PLUS NK_INTEGER */
|
|
-2, /* (415) signed ::= NK_MINUS NK_INTEGER */
|
|
-1, /* (416) signed ::= NK_FLOAT */
|
|
-2, /* (417) signed ::= NK_PLUS NK_FLOAT */
|
|
-2, /* (418) signed ::= NK_MINUS NK_FLOAT */
|
|
-1, /* (419) signed_literal ::= signed */
|
|
-1, /* (420) signed_literal ::= NK_STRING */
|
|
-1, /* (421) signed_literal ::= NK_BOOL */
|
|
-2, /* (422) signed_literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (423) signed_literal ::= duration_literal */
|
|
-1, /* (424) signed_literal ::= NULL */
|
|
-1, /* (425) signed_literal ::= literal_func */
|
|
-1, /* (426) signed_literal ::= NK_QUESTION */
|
|
-1, /* (427) literal_list ::= signed_literal */
|
|
-3, /* (428) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
-1, /* (429) db_name ::= NK_ID */
|
|
-1, /* (430) table_name ::= NK_ID */
|
|
-1, /* (431) column_name ::= NK_ID */
|
|
-1, /* (432) function_name ::= NK_ID */
|
|
-1, /* (433) view_name ::= NK_ID */
|
|
-1, /* (434) table_alias ::= NK_ID */
|
|
-1, /* (435) column_alias ::= NK_ID */
|
|
-1, /* (436) column_alias ::= NK_ALIAS */
|
|
-1, /* (437) user_name ::= NK_ID */
|
|
-1, /* (438) topic_name ::= NK_ID */
|
|
-1, /* (439) stream_name ::= NK_ID */
|
|
-1, /* (440) cgroup_name ::= NK_ID */
|
|
-1, /* (441) index_name ::= NK_ID */
|
|
-1, /* (442) expr_or_subquery ::= expression */
|
|
-1, /* (443) expression ::= literal */
|
|
-1, /* (444) expression ::= pseudo_column */
|
|
-1, /* (445) expression ::= column_reference */
|
|
-1, /* (446) expression ::= function_expression */
|
|
-1, /* (447) expression ::= case_when_expression */
|
|
-3, /* (448) expression ::= NK_LP expression NK_RP */
|
|
-2, /* (449) expression ::= NK_PLUS expr_or_subquery */
|
|
-2, /* (450) expression ::= NK_MINUS expr_or_subquery */
|
|
-3, /* (451) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
-3, /* (452) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
-3, /* (453) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
-3, /* (454) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
-3, /* (455) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
-3, /* (456) expression ::= column_reference NK_ARROW NK_STRING */
|
|
-3, /* (457) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
-3, /* (458) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
-1, /* (459) expression_list ::= expr_or_subquery */
|
|
-3, /* (460) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
-1, /* (461) column_reference ::= column_name */
|
|
-3, /* (462) column_reference ::= table_name NK_DOT column_name */
|
|
-1, /* (463) column_reference ::= NK_ALIAS */
|
|
-3, /* (464) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
-1, /* (465) pseudo_column ::= ROWTS */
|
|
-1, /* (466) pseudo_column ::= TBNAME */
|
|
-3, /* (467) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
-1, /* (468) pseudo_column ::= QSTART */
|
|
-1, /* (469) pseudo_column ::= QEND */
|
|
-1, /* (470) pseudo_column ::= QDURATION */
|
|
-1, /* (471) pseudo_column ::= WSTART */
|
|
-1, /* (472) pseudo_column ::= WEND */
|
|
-1, /* (473) pseudo_column ::= WDURATION */
|
|
-1, /* (474) pseudo_column ::= IROWTS */
|
|
-1, /* (475) pseudo_column ::= ISFILLED */
|
|
-1, /* (476) pseudo_column ::= QTAGS */
|
|
-4, /* (477) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
-4, /* (478) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
-6, /* (479) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
-1, /* (480) function_expression ::= literal_func */
|
|
-3, /* (481) literal_func ::= noarg_func NK_LP NK_RP */
|
|
-1, /* (482) literal_func ::= NOW */
|
|
-1, /* (483) noarg_func ::= NOW */
|
|
-1, /* (484) noarg_func ::= TODAY */
|
|
-1, /* (485) noarg_func ::= TIMEZONE */
|
|
-1, /* (486) noarg_func ::= DATABASE */
|
|
-1, /* (487) noarg_func ::= CLIENT_VERSION */
|
|
-1, /* (488) noarg_func ::= SERVER_VERSION */
|
|
-1, /* (489) noarg_func ::= SERVER_STATUS */
|
|
-1, /* (490) noarg_func ::= CURRENT_USER */
|
|
-1, /* (491) noarg_func ::= USER */
|
|
-1, /* (492) star_func ::= COUNT */
|
|
-1, /* (493) star_func ::= FIRST */
|
|
-1, /* (494) star_func ::= LAST */
|
|
-1, /* (495) star_func ::= LAST_ROW */
|
|
-1, /* (496) star_func_para_list ::= NK_STAR */
|
|
-1, /* (497) star_func_para_list ::= other_para_list */
|
|
-1, /* (498) other_para_list ::= star_func_para */
|
|
-3, /* (499) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
-1, /* (500) star_func_para ::= expr_or_subquery */
|
|
-3, /* (501) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
-4, /* (502) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
-5, /* (503) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
-1, /* (504) when_then_list ::= when_then_expr */
|
|
-2, /* (505) when_then_list ::= when_then_list when_then_expr */
|
|
-4, /* (506) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
0, /* (507) case_when_else_opt ::= */
|
|
-2, /* (508) case_when_else_opt ::= ELSE common_expression */
|
|
-3, /* (509) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
-5, /* (510) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-6, /* (511) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-3, /* (512) predicate ::= expr_or_subquery IS NULL */
|
|
-4, /* (513) predicate ::= expr_or_subquery IS NOT NULL */
|
|
-3, /* (514) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
-1, /* (515) compare_op ::= NK_LT */
|
|
-1, /* (516) compare_op ::= NK_GT */
|
|
-1, /* (517) compare_op ::= NK_LE */
|
|
-1, /* (518) compare_op ::= NK_GE */
|
|
-1, /* (519) compare_op ::= NK_NE */
|
|
-1, /* (520) compare_op ::= NK_EQ */
|
|
-1, /* (521) compare_op ::= LIKE */
|
|
-2, /* (522) compare_op ::= NOT LIKE */
|
|
-1, /* (523) compare_op ::= MATCH */
|
|
-1, /* (524) compare_op ::= NMATCH */
|
|
-1, /* (525) compare_op ::= CONTAINS */
|
|
-1, /* (526) in_op ::= IN */
|
|
-2, /* (527) in_op ::= NOT IN */
|
|
-3, /* (528) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
-1, /* (529) boolean_value_expression ::= boolean_primary */
|
|
-2, /* (530) boolean_value_expression ::= NOT boolean_primary */
|
|
-3, /* (531) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
-3, /* (532) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
-1, /* (533) boolean_primary ::= predicate */
|
|
-3, /* (534) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
-1, /* (535) common_expression ::= expr_or_subquery */
|
|
-1, /* (536) common_expression ::= boolean_value_expression */
|
|
0, /* (537) from_clause_opt ::= */
|
|
-2, /* (538) from_clause_opt ::= FROM table_reference_list */
|
|
-1, /* (539) table_reference_list ::= table_reference */
|
|
-3, /* (540) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
-1, /* (541) table_reference ::= table_primary */
|
|
-1, /* (542) table_reference ::= joined_table */
|
|
-2, /* (543) table_primary ::= table_name alias_opt */
|
|
-4, /* (544) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
-2, /* (545) table_primary ::= subquery alias_opt */
|
|
-1, /* (546) table_primary ::= parenthesized_joined_table */
|
|
0, /* (547) alias_opt ::= */
|
|
-1, /* (548) alias_opt ::= table_alias */
|
|
-2, /* (549) alias_opt ::= AS table_alias */
|
|
-3, /* (550) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
-3, /* (551) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
-9, /* (552) joined_table ::= table_reference join_type join_subtype JOIN table_reference ON search_condition window_offset_clause_opt jlimit_clause_opt */
|
|
0, /* (553) join_type ::= */
|
|
-1, /* (554) join_type ::= INNER */
|
|
-1, /* (555) join_type ::= LEFT */
|
|
-1, /* (556) join_type ::= RIGHT */
|
|
-1, /* (557) join_type ::= FULL */
|
|
0, /* (558) join_subtype ::= */
|
|
-1, /* (559) join_subtype ::= OUTER */
|
|
-1, /* (560) join_subtype ::= SEMI */
|
|
-1, /* (561) join_subtype ::= ANTI */
|
|
-1, /* (562) join_subtype ::= ASOF */
|
|
-1, /* (563) join_subtype ::= WINDOW */
|
|
0, /* (564) window_offset_clause_opt ::= */
|
|
-6, /* (565) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */
|
|
-1, /* (566) window_offset_literal ::= NK_VARIABLE */
|
|
-2, /* (567) window_offset_literal ::= NK_MINUS NK_VARIABLE */
|
|
0, /* (568) jlimit_clause_opt ::= */
|
|
-2, /* (569) jlimit_clause_opt ::= JLIMIT NK_INTEGER */
|
|
-14, /* (570) 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, /* (571) hint_list ::= */
|
|
-1, /* (572) hint_list ::= NK_HINT */
|
|
0, /* (573) tag_mode_opt ::= */
|
|
-1, /* (574) tag_mode_opt ::= TAGS */
|
|
0, /* (575) set_quantifier_opt ::= */
|
|
-1, /* (576) set_quantifier_opt ::= DISTINCT */
|
|
-1, /* (577) set_quantifier_opt ::= ALL */
|
|
-1, /* (578) select_list ::= select_item */
|
|
-3, /* (579) select_list ::= select_list NK_COMMA select_item */
|
|
-1, /* (580) select_item ::= NK_STAR */
|
|
-1, /* (581) select_item ::= common_expression */
|
|
-2, /* (582) select_item ::= common_expression column_alias */
|
|
-3, /* (583) select_item ::= common_expression AS column_alias */
|
|
-3, /* (584) select_item ::= table_name NK_DOT NK_STAR */
|
|
0, /* (585) where_clause_opt ::= */
|
|
-2, /* (586) where_clause_opt ::= WHERE search_condition */
|
|
0, /* (587) partition_by_clause_opt ::= */
|
|
-3, /* (588) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
-1, /* (589) partition_list ::= partition_item */
|
|
-3, /* (590) partition_list ::= partition_list NK_COMMA partition_item */
|
|
-1, /* (591) partition_item ::= expr_or_subquery */
|
|
-2, /* (592) partition_item ::= expr_or_subquery column_alias */
|
|
-3, /* (593) partition_item ::= expr_or_subquery AS column_alias */
|
|
0, /* (594) twindow_clause_opt ::= */
|
|
-6, /* (595) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
-4, /* (596) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
-6, /* (597) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
-8, /* (598) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
-7, /* (599) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
0, /* (600) sliding_opt ::= */
|
|
-4, /* (601) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
-1, /* (602) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
-1, /* (603) interval_sliding_duration_literal ::= NK_STRING */
|
|
-1, /* (604) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
0, /* (605) fill_opt ::= */
|
|
-4, /* (606) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
-6, /* (607) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
-6, /* (608) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
-1, /* (609) fill_mode ::= NONE */
|
|
-1, /* (610) fill_mode ::= PREV */
|
|
-1, /* (611) fill_mode ::= NULL */
|
|
-1, /* (612) fill_mode ::= NULL_F */
|
|
-1, /* (613) fill_mode ::= LINEAR */
|
|
-1, /* (614) fill_mode ::= NEXT */
|
|
0, /* (615) group_by_clause_opt ::= */
|
|
-3, /* (616) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
-1, /* (617) group_by_list ::= expr_or_subquery */
|
|
-3, /* (618) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
0, /* (619) having_clause_opt ::= */
|
|
-2, /* (620) having_clause_opt ::= HAVING search_condition */
|
|
0, /* (621) range_opt ::= */
|
|
-6, /* (622) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
-4, /* (623) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
0, /* (624) every_opt ::= */
|
|
-4, /* (625) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
-4, /* (626) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
-1, /* (627) query_simple ::= query_specification */
|
|
-1, /* (628) query_simple ::= union_query_expression */
|
|
-4, /* (629) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
-3, /* (630) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
-1, /* (631) query_simple_or_subquery ::= query_simple */
|
|
-1, /* (632) query_simple_or_subquery ::= subquery */
|
|
-1, /* (633) query_or_subquery ::= query_expression */
|
|
-1, /* (634) query_or_subquery ::= subquery */
|
|
0, /* (635) order_by_clause_opt ::= */
|
|
-3, /* (636) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
0, /* (637) slimit_clause_opt ::= */
|
|
-2, /* (638) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
-4, /* (639) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
-4, /* (640) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
0, /* (641) limit_clause_opt ::= */
|
|
-2, /* (642) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
-4, /* (643) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
-4, /* (644) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
-3, /* (645) subquery ::= NK_LP query_expression NK_RP */
|
|
-3, /* (646) subquery ::= NK_LP subquery NK_RP */
|
|
-1, /* (647) search_condition ::= common_expression */
|
|
-1, /* (648) sort_specification_list ::= sort_specification */
|
|
-3, /* (649) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
-3, /* (650) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
0, /* (651) ordering_specification_opt ::= */
|
|
-1, /* (652) ordering_specification_opt ::= ASC */
|
|
-1, /* (653) ordering_specification_opt ::= DESC */
|
|
0, /* (654) null_ordering_opt ::= */
|
|
-2, /* (655) null_ordering_opt ::= NULLS FIRST */
|
|
-2, /* (656) 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,357,&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,358,&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,357,&yymsp[-2].minor);
|
|
{ }
|
|
yy_destructor(yypParser,359,&yymsp[0].minor);
|
|
}
|
|
break;
|
|
case 12: /* alter_account_options ::= alter_account_option */
|
|
{ yy_destructor(yypParser,360,&yymsp[0].minor);
|
|
{ }
|
|
}
|
|
break;
|
|
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
|
|
{ yy_destructor(yypParser,358,&yymsp[-1].minor);
|
|
{ }
|
|
yy_destructor(yypParser,360,&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,359,&yymsp[0].minor);
|
|
break;
|
|
case 24: /* ip_range_list ::= NK_STRING */
|
|
{ yylhsminor.yy1006 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 26: /* white_list ::= HOST ip_range_list */
|
|
{ yymsp[-1].minor.yy1006 = yymsp[0].minor.yy1006; }
|
|
break;
|
|
case 27: /* white_list_opt ::= */
|
|
case 186: /* specific_cols_opt ::= */ yytestcase(yyruleno==186);
|
|
case 217: /* tags_def_opt ::= */ yytestcase(yyruleno==217);
|
|
case 302: /* tag_list_opt ::= */ yytestcase(yyruleno==302);
|
|
case 368: /* col_list_opt ::= */ yytestcase(yyruleno==368);
|
|
case 370: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==370);
|
|
case 587: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==587);
|
|
case 615: /* group_by_clause_opt ::= */ yytestcase(yyruleno==615);
|
|
case 635: /* order_by_clause_opt ::= */ yytestcase(yyruleno==635);
|
|
{ yymsp[1].minor.yy1006 = NULL; }
|
|
break;
|
|
case 28: /* white_list_opt ::= white_list */
|
|
case 218: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==218);
|
|
case 371: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==371);
|
|
case 497: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==497);
|
|
{ yylhsminor.yy1006 = yymsp[0].minor.yy1006; }
|
|
yymsp[0].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
{
|
|
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy213, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy379);
|
|
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy1006);
|
|
}
|
|
break;
|
|
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, 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.yy213, 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.yy213, 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.yy213, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy1006); }
|
|
break;
|
|
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy1006); }
|
|
break;
|
|
case 35: /* cmd ::= DROP USER user_name */
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 36: /* sysinfo_opt ::= */
|
|
{ yymsp[1].minor.yy379 = 1; }
|
|
break;
|
|
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
{ yymsp[-1].minor.yy379 = 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.yy337, &yymsp[-3].minor.yy285, &yymsp[0].minor.yy213, yymsp[-2].minor.yy664); }
|
|
break;
|
|
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy337, &yymsp[-3].minor.yy285, &yymsp[0].minor.yy213, yymsp[-2].minor.yy664); }
|
|
break;
|
|
case 40: /* privileges ::= ALL */
|
|
{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_ALL; }
|
|
break;
|
|
case 41: /* privileges ::= priv_type_list */
|
|
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
|
|
{ yylhsminor.yy337 = yymsp[0].minor.yy337; }
|
|
yymsp[0].minor.yy337 = yylhsminor.yy337;
|
|
break;
|
|
case 42: /* privileges ::= SUBSCRIBE */
|
|
{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_SUBSCRIBE; }
|
|
break;
|
|
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
{ yylhsminor.yy337 = yymsp[-2].minor.yy337 | yymsp[0].minor.yy337; }
|
|
yymsp[-2].minor.yy337 = yylhsminor.yy337;
|
|
break;
|
|
case 45: /* priv_type ::= READ */
|
|
{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_READ; }
|
|
break;
|
|
case 46: /* priv_type ::= WRITE */
|
|
{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_WRITE; }
|
|
break;
|
|
case 47: /* priv_type ::= ALTER */
|
|
{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_ALTER; }
|
|
break;
|
|
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
{ yylhsminor.yy285.first = yymsp[-2].minor.yy0; yylhsminor.yy285.second = yymsp[0].minor.yy0; }
|
|
yymsp[-2].minor.yy285 = yylhsminor.yy285;
|
|
break;
|
|
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
|
|
{ yylhsminor.yy285.first = yymsp[-2].minor.yy213; yylhsminor.yy285.second = yymsp[0].minor.yy0; }
|
|
yymsp[-2].minor.yy285 = yylhsminor.yy285;
|
|
break;
|
|
case 50: /* priv_level ::= db_name NK_DOT table_name */
|
|
{ yylhsminor.yy285.first = yymsp[-2].minor.yy213; yylhsminor.yy285.second = yymsp[0].minor.yy213; }
|
|
yymsp[-2].minor.yy285 = yylhsminor.yy285;
|
|
break;
|
|
case 51: /* priv_level ::= topic_name */
|
|
{ yylhsminor.yy285.first = yymsp[0].minor.yy213; yylhsminor.yy285.second = nil_token; }
|
|
yymsp[0].minor.yy285 = yylhsminor.yy285;
|
|
break;
|
|
case 52: /* with_opt ::= */
|
|
case 155: /* start_opt ::= */ yytestcase(yyruleno==155);
|
|
case 159: /* end_opt ::= */ yytestcase(yyruleno==159);
|
|
case 297: /* like_pattern_opt ::= */ yytestcase(yyruleno==297);
|
|
case 382: /* subtable_opt ::= */ yytestcase(yyruleno==382);
|
|
case 507: /* case_when_else_opt ::= */ yytestcase(yyruleno==507);
|
|
case 537: /* from_clause_opt ::= */ yytestcase(yyruleno==537);
|
|
case 564: /* window_offset_clause_opt ::= */ yytestcase(yyruleno==564);
|
|
case 568: /* jlimit_clause_opt ::= */ yytestcase(yyruleno==568);
|
|
case 585: /* where_clause_opt ::= */ yytestcase(yyruleno==585);
|
|
case 594: /* twindow_clause_opt ::= */ yytestcase(yyruleno==594);
|
|
case 600: /* sliding_opt ::= */ yytestcase(yyruleno==600);
|
|
case 605: /* fill_opt ::= */ yytestcase(yyruleno==605);
|
|
case 619: /* having_clause_opt ::= */ yytestcase(yyruleno==619);
|
|
case 621: /* range_opt ::= */ yytestcase(yyruleno==621);
|
|
case 624: /* every_opt ::= */ yytestcase(yyruleno==624);
|
|
case 637: /* slimit_clause_opt ::= */ yytestcase(yyruleno==637);
|
|
case 641: /* limit_clause_opt ::= */ yytestcase(yyruleno==641);
|
|
{ yymsp[1].minor.yy664 = NULL; }
|
|
break;
|
|
case 53: /* with_opt ::= WITH search_condition */
|
|
case 538: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==538);
|
|
case 586: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==586);
|
|
case 620: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==620);
|
|
{ yymsp[-1].minor.yy664 = yymsp[0].minor.yy664; }
|
|
break;
|
|
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy213, NULL); }
|
|
break;
|
|
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy213, &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.yy885, false); }
|
|
break;
|
|
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy885, false); }
|
|
break;
|
|
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy885); }
|
|
break;
|
|
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy213, false, yymsp[0].minor.yy885); }
|
|
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 324: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==324);
|
|
case 325: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==325);
|
|
case 326: /* sma_func_name ::= LAST */ yytestcase(yyruleno==326);
|
|
case 327: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==327);
|
|
case 429: /* db_name ::= NK_ID */ yytestcase(yyruleno==429);
|
|
case 430: /* table_name ::= NK_ID */ yytestcase(yyruleno==430);
|
|
case 431: /* column_name ::= NK_ID */ yytestcase(yyruleno==431);
|
|
case 432: /* function_name ::= NK_ID */ yytestcase(yyruleno==432);
|
|
case 433: /* view_name ::= NK_ID */ yytestcase(yyruleno==433);
|
|
case 434: /* table_alias ::= NK_ID */ yytestcase(yyruleno==434);
|
|
case 435: /* column_alias ::= NK_ID */ yytestcase(yyruleno==435);
|
|
case 436: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==436);
|
|
case 437: /* user_name ::= NK_ID */ yytestcase(yyruleno==437);
|
|
case 438: /* topic_name ::= NK_ID */ yytestcase(yyruleno==438);
|
|
case 439: /* stream_name ::= NK_ID */ yytestcase(yyruleno==439);
|
|
case 440: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==440);
|
|
case 441: /* index_name ::= NK_ID */ yytestcase(yyruleno==441);
|
|
case 483: /* noarg_func ::= NOW */ yytestcase(yyruleno==483);
|
|
case 484: /* noarg_func ::= TODAY */ yytestcase(yyruleno==484);
|
|
case 485: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==485);
|
|
case 486: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==486);
|
|
case 487: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==487);
|
|
case 488: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==488);
|
|
case 489: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==489);
|
|
case 490: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==490);
|
|
case 491: /* noarg_func ::= USER */ yytestcase(yyruleno==491);
|
|
case 492: /* star_func ::= COUNT */ yytestcase(yyruleno==492);
|
|
case 493: /* star_func ::= FIRST */ yytestcase(yyruleno==493);
|
|
case 494: /* star_func ::= LAST */ yytestcase(yyruleno==494);
|
|
case 495: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==495);
|
|
{ yylhsminor.yy213 = yymsp[0].minor.yy0; }
|
|
yymsp[0].minor.yy213 = yylhsminor.yy213;
|
|
break;
|
|
case 68: /* force_opt ::= */
|
|
case 92: /* not_exists_opt ::= */ yytestcase(yyruleno==92);
|
|
case 94: /* exists_opt ::= */ yytestcase(yyruleno==94);
|
|
case 345: /* analyze_opt ::= */ yytestcase(yyruleno==345);
|
|
case 352: /* agg_func_opt ::= */ yytestcase(yyruleno==352);
|
|
case 358: /* or_replace_opt ::= */ yytestcase(yyruleno==358);
|
|
case 384: /* ignore_opt ::= */ yytestcase(yyruleno==384);
|
|
case 573: /* tag_mode_opt ::= */ yytestcase(yyruleno==573);
|
|
case 575: /* set_quantifier_opt ::= */ yytestcase(yyruleno==575);
|
|
{ yymsp[1].minor.yy885 = false; }
|
|
break;
|
|
case 69: /* force_opt ::= FORCE */
|
|
case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70);
|
|
case 346: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==346);
|
|
case 353: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==353);
|
|
case 574: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==574);
|
|
case 576: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==576);
|
|
{ yymsp[0].minor.yy885 = true; }
|
|
break;
|
|
case 71: /* cmd ::= ALTER LOCAL NK_STRING */
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 72: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 73: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 74: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 75: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 76: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 77: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 78: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 79: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 80: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 81: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 82: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 83: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 84: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy885, &yymsp[-1].minor.yy213, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 85: /* cmd ::= DROP DATABASE exists_opt db_name */
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 86: /* cmd ::= USE db_name */
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 87: /* cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 88: /* cmd ::= FLUSH DATABASE db_name */
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 89: /* cmd ::= TRIM DATABASE db_name speed_opt */
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy316); }
|
|
break;
|
|
case 90: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy213, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 91: /* not_exists_opt ::= IF NOT EXISTS */
|
|
{ yymsp[-2].minor.yy885 = true; }
|
|
break;
|
|
case 93: /* exists_opt ::= IF EXISTS */
|
|
case 359: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==359);
|
|
case 385: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==385);
|
|
{ yymsp[-1].minor.yy885 = true; }
|
|
break;
|
|
case 95: /* db_options ::= */
|
|
{ yymsp[1].minor.yy664 = createDefaultDatabaseOptions(pCxt); }
|
|
break;
|
|
case 96: /* db_options ::= db_options BUFFER NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 97: /* db_options ::= db_options CACHEMODEL NK_STRING */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 98: /* db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 99: /* db_options ::= db_options COMP NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 100: /* db_options ::= db_options DURATION NK_INTEGER */
|
|
case 101: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==101);
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 102: /* db_options ::= db_options MAXROWS NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 103: /* db_options ::= db_options MINROWS NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 104: /* db_options ::= db_options KEEP integer_list */
|
|
case 105: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==105);
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_KEEP, yymsp[0].minor.yy1006); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 106: /* db_options ::= db_options PAGES NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 107: /* db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 108: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 109: /* db_options ::= db_options PRECISION NK_STRING */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 110: /* db_options ::= db_options REPLICA NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 111: /* db_options ::= db_options VGROUPS NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 112: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 113: /* db_options ::= db_options RETENTIONS retention_list */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_RETENTIONS, yymsp[0].minor.yy1006); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 114: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 115: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 116: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 117: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 118: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-3].minor.yy664, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
|
}
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 119: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 120: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-3].minor.yy664, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
|
}
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 121: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 122: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 123: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 124: /* db_options ::= db_options TABLE_PREFIX signed */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy664); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 125: /* db_options ::= db_options TABLE_SUFFIX signed */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy664); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 126: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 127: /* alter_db_options ::= alter_db_option */
|
|
{ yylhsminor.yy664 = createAlterDatabaseOptions(pCxt); yylhsminor.yy664 = setAlterDatabaseOption(pCxt, yylhsminor.yy664, &yymsp[0].minor.yy549); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 128: /* alter_db_options ::= alter_db_options alter_db_option */
|
|
{ yylhsminor.yy664 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy664, &yymsp[0].minor.yy549); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 129: /* alter_db_option ::= BUFFER NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 130: /* alter_db_option ::= CACHEMODEL NK_STRING */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 131: /* alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 132: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 133: /* alter_db_option ::= KEEP integer_list */
|
|
case 134: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==134);
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_KEEP; yymsp[-1].minor.yy549.pList = yymsp[0].minor.yy1006; }
|
|
break;
|
|
case 135: /* alter_db_option ::= PAGES NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_PAGES; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 136: /* alter_db_option ::= REPLICA NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 137: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_WAL; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 138: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 139: /* alter_db_option ::= MINROWS NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 140: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 141: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy549.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy549.val = t;
|
|
}
|
|
break;
|
|
case 142: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 143: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy549.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy549.val = t;
|
|
}
|
|
break;
|
|
case 144: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 145: /* integer_list ::= NK_INTEGER */
|
|
{ yylhsminor.yy1006 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 146: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
case 398: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==398);
|
|
{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 147: /* variable_list ::= NK_VARIABLE */
|
|
{ yylhsminor.yy1006 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 148: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 149: /* retention_list ::= retention */
|
|
case 180: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==180);
|
|
case 183: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==183);
|
|
case 190: /* column_def_list ::= column_def */ yytestcase(yyruleno==190);
|
|
case 234: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==234);
|
|
case 239: /* col_name_list ::= col_name */ yytestcase(yyruleno==239);
|
|
case 303: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==303);
|
|
case 320: /* func_list ::= func */ yytestcase(yyruleno==320);
|
|
case 427: /* literal_list ::= signed_literal */ yytestcase(yyruleno==427);
|
|
case 498: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==498);
|
|
case 504: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==504);
|
|
case 578: /* select_list ::= select_item */ yytestcase(yyruleno==578);
|
|
case 589: /* partition_list ::= partition_item */ yytestcase(yyruleno==589);
|
|
case 648: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==648);
|
|
{ yylhsminor.yy1006 = createNodeList(pCxt, yymsp[0].minor.yy664); }
|
|
yymsp[0].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 150: /* retention_list ::= retention_list NK_COMMA retention */
|
|
case 184: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==184);
|
|
case 191: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==191);
|
|
case 235: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==235);
|
|
case 240: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==240);
|
|
case 304: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==304);
|
|
case 321: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==321);
|
|
case 428: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==428);
|
|
case 499: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==499);
|
|
case 579: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==579);
|
|
case 590: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==590);
|
|
case 649: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==649);
|
|
{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, yymsp[0].minor.yy664); }
|
|
yymsp[-2].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 151: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
case 152: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==152);
|
|
{ yylhsminor.yy664 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 153: /* speed_opt ::= */
|
|
case 354: /* bufsize_opt ::= */ yytestcase(yyruleno==354);
|
|
{ yymsp[1].minor.yy316 = 0; }
|
|
break;
|
|
case 154: /* speed_opt ::= BWLIMIT NK_INTEGER */
|
|
case 355: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==355);
|
|
{ yymsp[-1].minor.yy316 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
break;
|
|
case 156: /* start_opt ::= START WITH NK_INTEGER */
|
|
case 160: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==160);
|
|
{ yymsp[-2].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 157: /* start_opt ::= START WITH NK_STRING */
|
|
case 161: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==161);
|
|
{ yymsp[-2].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 158: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
case 162: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==162);
|
|
{ yymsp[-3].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 163: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
case 165: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==165);
|
|
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy885, yymsp[-5].minor.yy664, yymsp[-3].minor.yy1006, yymsp[-1].minor.yy1006, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 164: /* cmd ::= CREATE TABLE multi_create_clause */
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy1006); }
|
|
break;
|
|
case 166: /* cmd ::= DROP TABLE multi_drop_clause */
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy1006); }
|
|
break;
|
|
case 167: /* cmd ::= DROP STABLE exists_opt full_table_name */
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 168: /* cmd ::= ALTER TABLE alter_table_clause */
|
|
case 400: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==400);
|
|
case 401: /* cmd ::= insert_query */ yytestcase(yyruleno==401);
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy664; }
|
|
break;
|
|
case 169: /* cmd ::= ALTER STABLE alter_table_clause */
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy664); }
|
|
break;
|
|
case 170: /* alter_table_clause ::= full_table_name alter_table_options */
|
|
{ yylhsminor.yy664 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 171: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); }
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 172: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
{ yylhsminor.yy664 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy664, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy213); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 173: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); }
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 174: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
{ yylhsminor.yy664 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); }
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 175: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); }
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 176: /* alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
{ yylhsminor.yy664 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy664, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy213); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 177: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); }
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 178: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
{ yylhsminor.yy664 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); }
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 179: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
{ yylhsminor.yy664 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy664, &yymsp[-2].minor.yy213, yymsp[0].minor.yy664); }
|
|
yymsp[-5].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 181: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
case 505: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==505);
|
|
{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-1].minor.yy1006, yymsp[0].minor.yy664); }
|
|
yymsp[-1].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 182: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
{ yylhsminor.yy664 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy885, yymsp[-8].minor.yy664, yymsp[-6].minor.yy664, yymsp[-5].minor.yy1006, yymsp[-2].minor.yy1006, yymsp[0].minor.yy664); }
|
|
yymsp[-9].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 185: /* drop_table_clause ::= exists_opt full_table_name */
|
|
{ yylhsminor.yy664 = createDropTableClause(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 187: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
case 369: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==369);
|
|
{ yymsp[-2].minor.yy1006 = yymsp[-1].minor.yy1006; }
|
|
break;
|
|
case 188: /* full_table_name ::= table_name */
|
|
{ yylhsminor.yy664 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy213, NULL); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 189: /* full_table_name ::= db_name NK_DOT table_name */
|
|
{ yylhsminor.yy664 = createRealTableNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213, NULL); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 192: /* column_def ::= column_name type_name */
|
|
{ yylhsminor.yy664 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892, NULL); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 193: /* type_name ::= BOOL */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_BOOL); }
|
|
break;
|
|
case 194: /* type_name ::= TINYINT */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_TINYINT); }
|
|
break;
|
|
case 195: /* type_name ::= SMALLINT */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
|
|
break;
|
|
case 196: /* type_name ::= INT */
|
|
case 197: /* type_name ::= INTEGER */ yytestcase(yyruleno==197);
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_INT); }
|
|
break;
|
|
case 198: /* type_name ::= BIGINT */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_BIGINT); }
|
|
break;
|
|
case 199: /* type_name ::= FLOAT */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_FLOAT); }
|
|
break;
|
|
case 200: /* type_name ::= DOUBLE */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
|
|
break;
|
|
case 201: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 202: /* type_name ::= TIMESTAMP */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
|
|
break;
|
|
case 203: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 204: /* type_name ::= TINYINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
|
|
break;
|
|
case 205: /* type_name ::= SMALLINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
|
|
break;
|
|
case 206: /* type_name ::= INT UNSIGNED */
|
|
{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_UINT); }
|
|
break;
|
|
case 207: /* type_name ::= BIGINT UNSIGNED */
|
|
{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
|
|
break;
|
|
case 208: /* type_name ::= JSON */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_JSON); }
|
|
break;
|
|
case 209: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 210: /* type_name ::= MEDIUMBLOB */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
|
|
break;
|
|
case 211: /* type_name ::= BLOB */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_BLOB); }
|
|
break;
|
|
case 212: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 213: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
|
|
break;
|
|
case 214: /* type_name ::= DECIMAL */
|
|
{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 215: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
{ yymsp[-3].minor.yy892 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 216: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
{ yymsp[-5].minor.yy892 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
break;
|
|
case 219: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
case 372: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==372);
|
|
{ yymsp[-3].minor.yy1006 = yymsp[-1].minor.yy1006; }
|
|
break;
|
|
case 220: /* table_options ::= */
|
|
{ yymsp[1].minor.yy664 = createDefaultTableOptions(pCxt); }
|
|
break;
|
|
case 221: /* table_options ::= table_options COMMENT NK_STRING */
|
|
{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 222: /* table_options ::= table_options MAX_DELAY duration_list */
|
|
{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy1006); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 223: /* table_options ::= table_options WATERMARK duration_list */
|
|
{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy1006); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 224: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-4].minor.yy664, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy1006); }
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 225: /* table_options ::= table_options TTL NK_INTEGER */
|
|
{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 226: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-4].minor.yy664, TABLE_OPTION_SMA, yymsp[-1].minor.yy1006); }
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 227: /* table_options ::= table_options DELETE_MARK duration_list */
|
|
{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy1006); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 228: /* alter_table_options ::= alter_table_option */
|
|
{ yylhsminor.yy664 = createAlterTableOptions(pCxt); yylhsminor.yy664 = setTableOption(pCxt, yylhsminor.yy664, yymsp[0].minor.yy549.type, &yymsp[0].minor.yy549.val); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 229: /* alter_table_options ::= alter_table_options alter_table_option */
|
|
{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy549.type, &yymsp[0].minor.yy549.val); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 230: /* alter_table_option ::= COMMENT NK_STRING */
|
|
{ yymsp[-1].minor.yy549.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 231: /* alter_table_option ::= TTL NK_INTEGER */
|
|
{ yymsp[-1].minor.yy549.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 232: /* duration_list ::= duration_literal */
|
|
case 459: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==459);
|
|
{ yylhsminor.yy1006 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); }
|
|
yymsp[0].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 233: /* duration_list ::= duration_list NK_COMMA duration_literal */
|
|
case 460: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==460);
|
|
{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); }
|
|
yymsp[-2].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 236: /* rollup_func_name ::= function_name */
|
|
{ yylhsminor.yy664 = createFunctionNode(pCxt, &yymsp[0].minor.yy213, NULL); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 237: /* rollup_func_name ::= FIRST */
|
|
case 238: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==238);
|
|
case 306: /* tag_item ::= QTAGS */ yytestcase(yyruleno==306);
|
|
{ yylhsminor.yy664 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 241: /* col_name ::= column_name */
|
|
case 307: /* tag_item ::= column_name */ yytestcase(yyruleno==307);
|
|
{ yylhsminor.yy664 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy213); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 242: /* cmd ::= SHOW DNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
|
|
break;
|
|
case 243: /* cmd ::= SHOW USERS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
|
|
break;
|
|
case 244: /* cmd ::= SHOW USER PRIVILEGES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
|
|
break;
|
|
case 245: /* cmd ::= SHOW db_kind_opt DATABASES */
|
|
{
|
|
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
|
|
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy217);
|
|
}
|
|
break;
|
|
case 246: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
{
|
|
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy943, yymsp[0].minor.yy664, OP_TYPE_LIKE);
|
|
}
|
|
break;
|
|
case 247: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, OP_TYPE_LIKE); }
|
|
break;
|
|
case 248: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy664, NULL, OP_TYPE_LIKE); }
|
|
break;
|
|
case 249: /* cmd ::= SHOW MNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
|
break;
|
|
case 250: /* cmd ::= SHOW QNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
|
break;
|
|
case 251: /* cmd ::= SHOW FUNCTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
|
break;
|
|
case 252: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy664, yymsp[-1].minor.yy664, OP_TYPE_EQUAL); }
|
|
break;
|
|
case 253: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy213), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213), OP_TYPE_EQUAL); }
|
|
break;
|
|
case 254: /* cmd ::= SHOW STREAMS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
|
|
break;
|
|
case 255: /* cmd ::= SHOW ACCOUNTS */
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
break;
|
|
case 256: /* cmd ::= SHOW APPS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
|
break;
|
|
case 257: /* cmd ::= SHOW CONNECTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
|
break;
|
|
case 258: /* cmd ::= SHOW LICENCES */
|
|
case 259: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==259);
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
|
|
break;
|
|
case 260: /* cmd ::= SHOW CREATE DATABASE db_name */
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 261: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 262: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 263: /* cmd ::= SHOW QUERIES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
|
break;
|
|
case 264: /* cmd ::= SHOW SCORES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
|
break;
|
|
case 265: /* cmd ::= SHOW TOPICS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
|
break;
|
|
case 266: /* cmd ::= SHOW VARIABLES */
|
|
case 267: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==267);
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
|
|
break;
|
|
case 268: /* cmd ::= SHOW LOCAL VARIABLES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
|
|
break;
|
|
case 269: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy664); }
|
|
break;
|
|
case 270: /* cmd ::= SHOW BNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
|
break;
|
|
case 271: /* cmd ::= SHOW SNODES */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
|
break;
|
|
case 272: /* cmd ::= SHOW CLUSTER */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
|
|
break;
|
|
case 273: /* cmd ::= SHOW TRANSACTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
|
|
break;
|
|
case 274: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 275: /* cmd ::= SHOW CONSUMERS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
|
|
break;
|
|
case 276: /* cmd ::= SHOW SUBSCRIPTIONS */
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
|
|
break;
|
|
case 277: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy664, yymsp[-1].minor.yy664, OP_TYPE_EQUAL); }
|
|
break;
|
|
case 278: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy213), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213), OP_TYPE_EQUAL); }
|
|
break;
|
|
case 279: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy664, yymsp[-3].minor.yy1006); }
|
|
break;
|
|
case 280: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy213), yymsp[-4].minor.yy1006); }
|
|
break;
|
|
case 281: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
|
|
break;
|
|
case 282: /* cmd ::= SHOW VNODES */
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
|
|
break;
|
|
case 283: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy664, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
|
break;
|
|
case 284: /* cmd ::= SHOW CLUSTER ALIVE */
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
|
break;
|
|
case 285: /* cmd ::= SHOW db_name_cond_opt VIEWS */
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-1].minor.yy664, NULL, OP_TYPE_LIKE); }
|
|
break;
|
|
case 286: /* cmd ::= SHOW CREATE VIEW full_table_name */
|
|
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 287: /* cmd ::= SHOW COMPACTS */
|
|
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
|
|
break;
|
|
case 288: /* cmd ::= SHOW COMPACT NK_INTEGER */
|
|
{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
break;
|
|
case 289: /* table_kind_db_name_cond_opt ::= */
|
|
{ yymsp[1].minor.yy943.kind = SHOW_KIND_ALL; yymsp[1].minor.yy943.dbName = nil_token; }
|
|
break;
|
|
case 290: /* table_kind_db_name_cond_opt ::= table_kind */
|
|
{ yylhsminor.yy943.kind = yymsp[0].minor.yy217; yylhsminor.yy943.dbName = nil_token; }
|
|
yymsp[0].minor.yy943 = yylhsminor.yy943;
|
|
break;
|
|
case 291: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
{ yylhsminor.yy943.kind = SHOW_KIND_ALL; yylhsminor.yy943.dbName = yymsp[-1].minor.yy213; }
|
|
yymsp[-1].minor.yy943 = yylhsminor.yy943;
|
|
break;
|
|
case 292: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
{ yylhsminor.yy943.kind = yymsp[-2].minor.yy217; yylhsminor.yy943.dbName = yymsp[-1].minor.yy213; }
|
|
yymsp[-2].minor.yy943 = yylhsminor.yy943;
|
|
break;
|
|
case 293: /* table_kind ::= NORMAL */
|
|
{ yymsp[0].minor.yy217 = SHOW_KIND_TABLES_NORMAL; }
|
|
break;
|
|
case 294: /* table_kind ::= CHILD */
|
|
{ yymsp[0].minor.yy217 = SHOW_KIND_TABLES_CHILD; }
|
|
break;
|
|
case 295: /* db_name_cond_opt ::= */
|
|
case 300: /* from_db_opt ::= */ yytestcase(yyruleno==300);
|
|
{ yymsp[1].minor.yy664 = createDefaultDatabaseCondValue(pCxt); }
|
|
break;
|
|
case 296: /* db_name_cond_opt ::= db_name NK_DOT */
|
|
{ yylhsminor.yy664 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy213); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 298: /* like_pattern_opt ::= LIKE NK_STRING */
|
|
{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 299: /* table_name_cond ::= table_name */
|
|
{ yylhsminor.yy664 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 301: /* from_db_opt ::= FROM db_name */
|
|
{ yymsp[-1].minor.yy664 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 305: /* tag_item ::= TBNAME */
|
|
{ yylhsminor.yy664 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 308: /* tag_item ::= column_name column_alias */
|
|
{ yylhsminor.yy664 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy213), &yymsp[0].minor.yy213); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 309: /* tag_item ::= column_name AS column_alias */
|
|
{ yylhsminor.yy664 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy213), &yymsp[0].minor.yy213); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 310: /* db_kind_opt ::= */
|
|
{ yymsp[1].minor.yy217 = SHOW_KIND_ALL; }
|
|
break;
|
|
case 311: /* db_kind_opt ::= USER */
|
|
{ yymsp[0].minor.yy217 = SHOW_KIND_DATABASES_USER; }
|
|
break;
|
|
case 312: /* db_kind_opt ::= SYSTEM */
|
|
{ yymsp[0].minor.yy217 = SHOW_KIND_DATABASES_SYSTEM; }
|
|
break;
|
|
case 313: /* 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.yy885, yymsp[-3].minor.yy664, yymsp[-1].minor.yy664, NULL, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 314: /* 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.yy885, yymsp[-5].minor.yy664, yymsp[-3].minor.yy664, yymsp[-1].minor.yy1006, NULL); }
|
|
break;
|
|
case 315: /* cmd ::= DROP INDEX exists_opt full_index_name */
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 316: /* full_index_name ::= index_name */
|
|
{ yylhsminor.yy664 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy213); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 317: /* full_index_name ::= db_name NK_DOT index_name */
|
|
{ yylhsminor.yy664 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 318: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
{ yymsp[-9].minor.yy664 = createIndexOption(pCxt, yymsp[-7].minor.yy1006, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), NULL, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 319: /* 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.yy664 = createIndexOption(pCxt, yymsp[-9].minor.yy1006, releaseRawExprNode(pCxt, yymsp[-5].minor.yy664), releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), yymsp[-1].minor.yy664, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 322: /* func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
{ yylhsminor.yy664 = createFunctionNode(pCxt, &yymsp[-3].minor.yy213, yymsp[-1].minor.yy1006); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 323: /* sma_func_name ::= function_name */
|
|
case 548: /* alias_opt ::= table_alias */ yytestcase(yyruleno==548);
|
|
{ yylhsminor.yy213 = yymsp[0].minor.yy213; }
|
|
yymsp[0].minor.yy213 = yylhsminor.yy213;
|
|
break;
|
|
case 328: /* sma_stream_opt ::= */
|
|
case 373: /* stream_options ::= */ yytestcase(yyruleno==373);
|
|
{ yymsp[1].minor.yy664 = createStreamOptions(pCxt); }
|
|
break;
|
|
case 329: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy664)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); yylhsminor.yy664 = yymsp[-2].minor.yy664; }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 330: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy664)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); yylhsminor.yy664 = yymsp[-2].minor.yy664; }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 331: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy664)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); yylhsminor.yy664 = yymsp[-2].minor.yy664; }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 332: /* with_meta ::= AS */
|
|
{ yymsp[0].minor.yy316 = 0; }
|
|
break;
|
|
case 333: /* with_meta ::= WITH META AS */
|
|
{ yymsp[-2].minor.yy316 = 1; }
|
|
break;
|
|
case 334: /* with_meta ::= ONLY META AS */
|
|
{ yymsp[-2].minor.yy316 = 2; }
|
|
break;
|
|
case 335: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy885, &yymsp[-2].minor.yy213, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 336: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy885, &yymsp[-3].minor.yy213, &yymsp[0].minor.yy213, yymsp[-2].minor.yy316); }
|
|
break;
|
|
case 337: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy885, &yymsp[-4].minor.yy213, yymsp[-1].minor.yy664, yymsp[-3].minor.yy316, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 338: /* cmd ::= DROP TOPIC exists_opt topic_name */
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 339: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy885, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 340: /* cmd ::= DESC full_table_name */
|
|
case 341: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==341);
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 342: /* cmd ::= RESET QUERY CACHE */
|
|
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
|
|
break;
|
|
case 343: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
case 344: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==344);
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy885, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 347: /* explain_options ::= */
|
|
{ yymsp[1].minor.yy664 = createDefaultExplainOptions(pCxt); }
|
|
break;
|
|
case 348: /* explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
{ yylhsminor.yy664 = setExplainVerbose(pCxt, yymsp[-2].minor.yy664, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 349: /* explain_options ::= explain_options RATIO NK_FLOAT */
|
|
{ yylhsminor.yy664 = setExplainRatio(pCxt, yymsp[-2].minor.yy664, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 350: /* 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.yy885, yymsp[-9].minor.yy885, &yymsp[-6].minor.yy213, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy892, yymsp[-1].minor.yy316, &yymsp[0].minor.yy213, yymsp[-10].minor.yy885); }
|
|
break;
|
|
case 351: /* cmd ::= DROP FUNCTION exists_opt function_name */
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 356: /* language_opt ::= */
|
|
case 395: /* on_vgroup_id ::= */ yytestcase(yyruleno==395);
|
|
{ yymsp[1].minor.yy213 = nil_token; }
|
|
break;
|
|
case 357: /* language_opt ::= LANGUAGE NK_STRING */
|
|
case 396: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==396);
|
|
{ yymsp[-1].minor.yy213 = yymsp[0].minor.yy0; }
|
|
break;
|
|
case 360: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy885, yymsp[-2].minor.yy664, &yymsp[-1].minor.yy0, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 361: /* cmd ::= DROP VIEW exists_opt full_view_name */
|
|
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 362: /* full_view_name ::= view_name */
|
|
{ yylhsminor.yy664 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy213); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 363: /* full_view_name ::= db_name NK_DOT view_name */
|
|
{ yylhsminor.yy664 = createViewNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 364: /* 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.yy885, &yymsp[-8].minor.yy213, yymsp[-5].minor.yy664, yymsp[-7].minor.yy664, yymsp[-3].minor.yy1006, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, yymsp[-4].minor.yy1006); }
|
|
break;
|
|
case 365: /* cmd ::= DROP STREAM exists_opt stream_name */
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 366: /* cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 367: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy885, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 374: /* stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
case 375: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==375);
|
|
{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 376: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-3].minor.yy664, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 377: /* stream_options ::= stream_options WATERMARK duration_literal */
|
|
{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 378: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-3].minor.yy664, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 379: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 380: /* stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 381: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-3].minor.yy664, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 383: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
case 601: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==601);
|
|
case 625: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==625);
|
|
{ yymsp[-3].minor.yy664 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy664); }
|
|
break;
|
|
case 386: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 387: /* cmd ::= KILL QUERY NK_STRING */
|
|
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 388: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 389: /* cmd ::= KILL COMPACT NK_INTEGER */
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 390: /* cmd ::= BALANCE VGROUP */
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
|
break;
|
|
case 391: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy213); }
|
|
break;
|
|
case 392: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 393: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy1006); }
|
|
break;
|
|
case 394: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 397: /* dnode_list ::= DNODE NK_INTEGER */
|
|
{ yymsp[-1].minor.yy1006 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
break;
|
|
case 399: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 402: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
{ yymsp[-6].minor.yy664 = createInsertStmt(pCxt, yymsp[-4].minor.yy664, yymsp[-2].minor.yy1006, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 403: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
{ yymsp[-3].minor.yy664 = createInsertStmt(pCxt, yymsp[-1].minor.yy664, NULL, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 404: /* literal ::= NK_INTEGER */
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 405: /* literal ::= NK_FLOAT */
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 406: /* literal ::= NK_STRING */
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 407: /* literal ::= NK_BOOL */
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 408: /* literal ::= TIMESTAMP NK_STRING */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 409: /* literal ::= duration_literal */
|
|
case 419: /* signed_literal ::= signed */ yytestcase(yyruleno==419);
|
|
case 442: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==442);
|
|
case 443: /* expression ::= literal */ yytestcase(yyruleno==443);
|
|
case 445: /* expression ::= column_reference */ yytestcase(yyruleno==445);
|
|
case 446: /* expression ::= function_expression */ yytestcase(yyruleno==446);
|
|
case 447: /* expression ::= case_when_expression */ yytestcase(yyruleno==447);
|
|
case 480: /* function_expression ::= literal_func */ yytestcase(yyruleno==480);
|
|
case 529: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==529);
|
|
case 533: /* boolean_primary ::= predicate */ yytestcase(yyruleno==533);
|
|
case 535: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==535);
|
|
case 536: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==536);
|
|
case 539: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==539);
|
|
case 541: /* table_reference ::= table_primary */ yytestcase(yyruleno==541);
|
|
case 542: /* table_reference ::= joined_table */ yytestcase(yyruleno==542);
|
|
case 546: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==546);
|
|
case 627: /* query_simple ::= query_specification */ yytestcase(yyruleno==627);
|
|
case 628: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==628);
|
|
case 631: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==631);
|
|
case 633: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==633);
|
|
{ yylhsminor.yy664 = yymsp[0].minor.yy664; }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 410: /* literal ::= NULL */
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 411: /* literal ::= NK_QUESTION */
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 412: /* duration_literal ::= NK_VARIABLE */
|
|
case 602: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==602);
|
|
case 603: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==603);
|
|
case 604: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==604);
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 413: /* signed ::= NK_INTEGER */
|
|
{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 414: /* signed ::= NK_PLUS NK_INTEGER */
|
|
{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 415: /* 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.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
|
}
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 416: /* signed ::= NK_FLOAT */
|
|
{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 417: /* signed ::= NK_PLUS NK_FLOAT */
|
|
{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 418: /* 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.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
|
}
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 420: /* signed_literal ::= NK_STRING */
|
|
{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 421: /* signed_literal ::= NK_BOOL */
|
|
{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 422: /* signed_literal ::= TIMESTAMP NK_STRING */
|
|
{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 423: /* signed_literal ::= duration_literal */
|
|
case 425: /* signed_literal ::= literal_func */ yytestcase(yyruleno==425);
|
|
case 500: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==500);
|
|
case 581: /* select_item ::= common_expression */ yytestcase(yyruleno==581);
|
|
case 591: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==591);
|
|
case 632: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==632);
|
|
case 634: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==634);
|
|
case 647: /* search_condition ::= common_expression */ yytestcase(yyruleno==647);
|
|
{ yylhsminor.yy664 = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 424: /* signed_literal ::= NULL */
|
|
{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 426: /* signed_literal ::= NK_QUESTION */
|
|
{ yylhsminor.yy664 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 444: /* expression ::= pseudo_column */
|
|
{ yylhsminor.yy664 = yymsp[0].minor.yy664; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy664, true); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 448: /* expression ::= NK_LP expression NK_RP */
|
|
case 534: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==534);
|
|
case 646: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==646);
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 449: /* expression ::= NK_PLUS expr_or_subquery */
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy664));
|
|
}
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 450: /* expression ::= NK_MINUS expr_or_subquery */
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy664), NULL));
|
|
}
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 451: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 452: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 453: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 454: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 455: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 456: /* expression ::= column_reference NK_ARROW NK_STRING */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 457: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 458: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 461: /* column_reference ::= column_name */
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy213, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy213)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 462: /* column_reference ::= table_name NK_DOT column_name */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213, createColumnNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213)); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 463: /* column_reference ::= NK_ALIAS */
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 464: /* column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0)); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 465: /* pseudo_column ::= ROWTS */
|
|
case 466: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==466);
|
|
case 468: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==468);
|
|
case 469: /* pseudo_column ::= QEND */ yytestcase(yyruleno==469);
|
|
case 470: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==470);
|
|
case 471: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==471);
|
|
case 472: /* pseudo_column ::= WEND */ yytestcase(yyruleno==472);
|
|
case 473: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==473);
|
|
case 474: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==474);
|
|
case 475: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==475);
|
|
case 476: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==476);
|
|
case 482: /* literal_func ::= NOW */ yytestcase(yyruleno==482);
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 467: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy213)))); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 477: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
case 478: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==478);
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy213, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy213, yymsp[-1].minor.yy1006)); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 479: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), yymsp[-1].minor.yy892)); }
|
|
yymsp[-5].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 481: /* literal_func ::= noarg_func NK_LP NK_RP */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy213, NULL)); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 496: /* star_func_para_list ::= NK_STAR */
|
|
{ yylhsminor.yy1006 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 501: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
case 584: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==584);
|
|
{ yylhsminor.yy664 = createColumnNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 502: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy1006, yymsp[-1].minor.yy664)); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 503: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), yymsp[-2].minor.yy1006, yymsp[-1].minor.yy664)); }
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 506: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
{ yymsp[-3].minor.yy664 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); }
|
|
break;
|
|
case 508: /* case_when_else_opt ::= ELSE common_expression */
|
|
{ yymsp[-1].minor.yy664 = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 509: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
case 514: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==514);
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy484, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 510: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy664), releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-4].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 511: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy664), releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-5].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 512: /* predicate ::= expr_or_subquery IS NULL */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), NULL));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 513: /* predicate ::= expr_or_subquery IS NOT NULL */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), NULL));
|
|
}
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 515: /* compare_op ::= NK_LT */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_LOWER_THAN; }
|
|
break;
|
|
case 516: /* compare_op ::= NK_GT */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_GREATER_THAN; }
|
|
break;
|
|
case 517: /* compare_op ::= NK_LE */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_LOWER_EQUAL; }
|
|
break;
|
|
case 518: /* compare_op ::= NK_GE */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_GREATER_EQUAL; }
|
|
break;
|
|
case 519: /* compare_op ::= NK_NE */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_NOT_EQUAL; }
|
|
break;
|
|
case 520: /* compare_op ::= NK_EQ */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_EQUAL; }
|
|
break;
|
|
case 521: /* compare_op ::= LIKE */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_LIKE; }
|
|
break;
|
|
case 522: /* compare_op ::= NOT LIKE */
|
|
{ yymsp[-1].minor.yy484 = OP_TYPE_NOT_LIKE; }
|
|
break;
|
|
case 523: /* compare_op ::= MATCH */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_MATCH; }
|
|
break;
|
|
case 524: /* compare_op ::= NMATCH */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_NMATCH; }
|
|
break;
|
|
case 525: /* compare_op ::= CONTAINS */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_JSON_CONTAINS; }
|
|
break;
|
|
case 526: /* in_op ::= IN */
|
|
{ yymsp[0].minor.yy484 = OP_TYPE_IN; }
|
|
break;
|
|
case 527: /* in_op ::= NOT IN */
|
|
{ yymsp[-1].minor.yy484 = OP_TYPE_NOT_IN; }
|
|
break;
|
|
case 528: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy1006)); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 530: /* boolean_value_expression ::= NOT boolean_primary */
|
|
{
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy664), NULL));
|
|
}
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 531: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 532: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664);
|
|
yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)));
|
|
}
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 540: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
{ yylhsminor.yy664 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, JOIN_STYPE_NONE, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, NULL); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 543: /* table_primary ::= table_name alias_opt */
|
|
{ yylhsminor.yy664 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 544: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
{ yylhsminor.yy664 = createRealTableNode(pCxt, &yymsp[-3].minor.yy213, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 545: /* table_primary ::= subquery alias_opt */
|
|
{ yylhsminor.yy664 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664), &yymsp[0].minor.yy213); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 547: /* alias_opt ::= */
|
|
{ yymsp[1].minor.yy213 = nil_token; }
|
|
break;
|
|
case 549: /* alias_opt ::= AS table_alias */
|
|
{ yymsp[-1].minor.yy213 = yymsp[0].minor.yy213; }
|
|
break;
|
|
case 550: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
case 551: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==551);
|
|
{ yymsp[-2].minor.yy664 = yymsp[-1].minor.yy664; }
|
|
break;
|
|
case 552: /* joined_table ::= table_reference join_type join_subtype JOIN table_reference ON search_condition window_offset_clause_opt jlimit_clause_opt */
|
|
{
|
|
yylhsminor.yy664 = createJoinTableNode(pCxt, yymsp[-7].minor.yy310, yymsp[-6].minor.yy972, yymsp[-8].minor.yy664, yymsp[-4].minor.yy664, yymsp[-2].minor.yy664);
|
|
yylhsminor.yy664 = addWindowOffsetClause(pCxt, yylhsminor.yy664, yymsp[-1].minor.yy664);
|
|
yylhsminor.yy664 = addJLimitClause(pCxt, yylhsminor.yy664, yymsp[0].minor.yy664);
|
|
}
|
|
yymsp[-8].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 553: /* join_type ::= */
|
|
{ yymsp[1].minor.yy310 = JOIN_TYPE_INNER; }
|
|
break;
|
|
case 554: /* join_type ::= INNER */
|
|
{ yymsp[0].minor.yy310 = JOIN_TYPE_INNER; }
|
|
break;
|
|
case 555: /* join_type ::= LEFT */
|
|
{ yymsp[0].minor.yy310 = JOIN_TYPE_LEFT; }
|
|
break;
|
|
case 556: /* join_type ::= RIGHT */
|
|
{ yymsp[0].minor.yy310 = JOIN_TYPE_RIGHT; }
|
|
break;
|
|
case 557: /* join_type ::= FULL */
|
|
{ yymsp[0].minor.yy310 = JOIN_TYPE_FULL; }
|
|
break;
|
|
case 558: /* join_subtype ::= */
|
|
{ yymsp[1].minor.yy972 = JOIN_STYPE_NONE; }
|
|
break;
|
|
case 559: /* join_subtype ::= OUTER */
|
|
{ yymsp[0].minor.yy972 = JOIN_STYPE_OUTER; }
|
|
break;
|
|
case 560: /* join_subtype ::= SEMI */
|
|
{ yymsp[0].minor.yy972 = JOIN_STYPE_SEMI; }
|
|
break;
|
|
case 561: /* join_subtype ::= ANTI */
|
|
{ yymsp[0].minor.yy972 = JOIN_STYPE_ANTI; }
|
|
break;
|
|
case 562: /* join_subtype ::= ASOF */
|
|
{ yymsp[0].minor.yy972 = JOIN_STYPE_ASOF; }
|
|
break;
|
|
case 563: /* join_subtype ::= WINDOW */
|
|
{ yymsp[0].minor.yy972 = JOIN_STYPE_WIN; }
|
|
break;
|
|
case 565: /* window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */
|
|
{ yymsp[-5].minor.yy664 = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); }
|
|
break;
|
|
case 566: /* window_offset_literal ::= NK_VARIABLE */
|
|
{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createTimeOffsetValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 567: /* window_offset_literal ::= NK_MINUS NK_VARIABLE */
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy664 = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t));
|
|
}
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 569: /* jlimit_clause_opt ::= JLIMIT NK_INTEGER */
|
|
case 638: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ yytestcase(yyruleno==638);
|
|
case 642: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==642);
|
|
{ yymsp[-1].minor.yy664 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
break;
|
|
case 570: /* 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.yy664 = createSelectStmt(pCxt, yymsp[-11].minor.yy885, yymsp[-9].minor.yy1006, yymsp[-8].minor.yy664, yymsp[-12].minor.yy1006);
|
|
yymsp[-13].minor.yy664 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy664, yymsp[-10].minor.yy885);
|
|
yymsp[-13].minor.yy664 = addWhereClause(pCxt, yymsp[-13].minor.yy664, yymsp[-7].minor.yy664);
|
|
yymsp[-13].minor.yy664 = addPartitionByClause(pCxt, yymsp[-13].minor.yy664, yymsp[-6].minor.yy1006);
|
|
yymsp[-13].minor.yy664 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy664, yymsp[-2].minor.yy664);
|
|
yymsp[-13].minor.yy664 = addGroupByClause(pCxt, yymsp[-13].minor.yy664, yymsp[-1].minor.yy1006);
|
|
yymsp[-13].minor.yy664 = addHavingClause(pCxt, yymsp[-13].minor.yy664, yymsp[0].minor.yy664);
|
|
yymsp[-13].minor.yy664 = addRangeClause(pCxt, yymsp[-13].minor.yy664, yymsp[-5].minor.yy664);
|
|
yymsp[-13].minor.yy664 = addEveryClause(pCxt, yymsp[-13].minor.yy664, yymsp[-4].minor.yy664);
|
|
yymsp[-13].minor.yy664 = addFillClause(pCxt, yymsp[-13].minor.yy664, yymsp[-3].minor.yy664);
|
|
}
|
|
break;
|
|
case 571: /* hint_list ::= */
|
|
{ yymsp[1].minor.yy1006 = createHintNodeList(pCxt, NULL); }
|
|
break;
|
|
case 572: /* hint_list ::= NK_HINT */
|
|
{ yylhsminor.yy1006 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 577: /* set_quantifier_opt ::= ALL */
|
|
{ yymsp[0].minor.yy885 = false; }
|
|
break;
|
|
case 580: /* select_item ::= NK_STAR */
|
|
{ yylhsminor.yy664 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
yymsp[0].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 582: /* select_item ::= common_expression column_alias */
|
|
case 592: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==592);
|
|
{ yylhsminor.yy664 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664), &yymsp[0].minor.yy213); }
|
|
yymsp[-1].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 583: /* select_item ::= common_expression AS column_alias */
|
|
case 593: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==593);
|
|
{ yylhsminor.yy664 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), &yymsp[0].minor.yy213); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 588: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
case 616: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==616);
|
|
case 636: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==636);
|
|
{ yymsp[-2].minor.yy1006 = yymsp[0].minor.yy1006; }
|
|
break;
|
|
case 595: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
{ yymsp[-5].minor.yy664 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); }
|
|
break;
|
|
case 596: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
{ yymsp[-3].minor.yy664 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); }
|
|
break;
|
|
case 597: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
{ yymsp[-5].minor.yy664 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), NULL, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 598: /* 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.yy664 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy664), releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), yymsp[-1].minor.yy664, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 599: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
{ yymsp[-6].minor.yy664 = createEventWindowNode(pCxt, yymsp[-3].minor.yy664, yymsp[0].minor.yy664); }
|
|
break;
|
|
case 606: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
{ yymsp[-3].minor.yy664 = createFillNode(pCxt, yymsp[-1].minor.yy992, NULL); }
|
|
break;
|
|
case 607: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
{ yymsp[-5].minor.yy664 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy1006)); }
|
|
break;
|
|
case 608: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
{ yymsp[-5].minor.yy664 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy1006)); }
|
|
break;
|
|
case 609: /* fill_mode ::= NONE */
|
|
{ yymsp[0].minor.yy992 = FILL_MODE_NONE; }
|
|
break;
|
|
case 610: /* fill_mode ::= PREV */
|
|
{ yymsp[0].minor.yy992 = FILL_MODE_PREV; }
|
|
break;
|
|
case 611: /* fill_mode ::= NULL */
|
|
{ yymsp[0].minor.yy992 = FILL_MODE_NULL; }
|
|
break;
|
|
case 612: /* fill_mode ::= NULL_F */
|
|
{ yymsp[0].minor.yy992 = FILL_MODE_NULL_F; }
|
|
break;
|
|
case 613: /* fill_mode ::= LINEAR */
|
|
{ yymsp[0].minor.yy992 = FILL_MODE_LINEAR; }
|
|
break;
|
|
case 614: /* fill_mode ::= NEXT */
|
|
{ yymsp[0].minor.yy992 = FILL_MODE_NEXT; }
|
|
break;
|
|
case 617: /* group_by_list ::= expr_or_subquery */
|
|
{ yylhsminor.yy1006 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); }
|
|
yymsp[0].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 618: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); }
|
|
yymsp[-2].minor.yy1006 = yylhsminor.yy1006;
|
|
break;
|
|
case 622: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
{ yymsp[-5].minor.yy664 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); }
|
|
break;
|
|
case 623: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
{ yymsp[-3].minor.yy664 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); }
|
|
break;
|
|
case 626: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
{
|
|
yylhsminor.yy664 = addOrderByClause(pCxt, yymsp[-3].minor.yy664, yymsp[-2].minor.yy1006);
|
|
yylhsminor.yy664 = addSlimitClause(pCxt, yylhsminor.yy664, yymsp[-1].minor.yy664);
|
|
yylhsminor.yy664 = addLimitClause(pCxt, yylhsminor.yy664, yymsp[0].minor.yy664);
|
|
}
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 629: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
{ yylhsminor.yy664 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy664, yymsp[0].minor.yy664); }
|
|
yymsp[-3].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 630: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
{ yylhsminor.yy664 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy664, yymsp[0].minor.yy664); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 639: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
case 643: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==643);
|
|
{ yymsp[-3].minor.yy664 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
|
break;
|
|
case 640: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
case 644: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==644);
|
|
{ yymsp[-3].minor.yy664 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
|
break;
|
|
case 645: /* subquery ::= NK_LP query_expression NK_RP */
|
|
{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy664); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 650: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
{ yylhsminor.yy664 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), yymsp[-1].minor.yy798, yymsp[0].minor.yy371); }
|
|
yymsp[-2].minor.yy664 = yylhsminor.yy664;
|
|
break;
|
|
case 651: /* ordering_specification_opt ::= */
|
|
{ yymsp[1].minor.yy798 = ORDER_ASC; }
|
|
break;
|
|
case 652: /* ordering_specification_opt ::= ASC */
|
|
{ yymsp[0].minor.yy798 = ORDER_ASC; }
|
|
break;
|
|
case 653: /* ordering_specification_opt ::= DESC */
|
|
{ yymsp[0].minor.yy798 = ORDER_DESC; }
|
|
break;
|
|
case 654: /* null_ordering_opt ::= */
|
|
{ yymsp[1].minor.yy371 = NULL_ORDER_DEFAULT; }
|
|
break;
|
|
case 655: /* null_ordering_opt ::= NULLS FIRST */
|
|
{ yymsp[-1].minor.yy371 = NULL_ORDER_FIRST; }
|
|
break;
|
|
case 656: /* null_ordering_opt ::= NULLS LAST */
|
|
{ yymsp[-1].minor.yy371 = 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
|
|
}
|