TDengine/source/libs/parser/src/sql.c

7416 lines
391 KiB
C
Raw Normal View History

/*
** 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:
*/
2023-09-20 11:30:40 +00:00
#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>
2022-06-01 06:39:40 +00:00
#define ALLOW_FORBID_FUNC
#include "functionMgt.h"
#include "nodes.h"
2022-03-10 07:36:06 +00:00
#include "parToken.h"
#include "ttokendef.h"
2022-03-10 07:36:06 +00:00
#include "parAst.h"
2022-06-01 06:39:40 +00:00
#define YYSTACKDEPTH 0
/**************** End of %include directives **********************************/
2023-09-20 11:30:40 +00:00
/* 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.
2022-03-10 07:36:06 +00:00
** 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
2022-03-10 07:36:06 +00:00
** 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
2022-03-28 09:08:48 +00:00
** zero the stack is dynamically sized using realloc()
2022-03-10 07:36:06 +00:00
** 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 *****************************************/
2022-03-21 06:00:30 +00:00
#define YYCODETYPE unsigned short int
#define YYNOCODE 538
#define YYACTIONTYPE unsigned short int
2022-03-10 07:36:06 +00:00
#define ParseTOKENTYPE SToken
typedef union {
int yyinit;
2022-03-10 07:36:06 +00:00
ParseTOKENTYPE yy0;
SAlterOption yy5;
SShowTablesOption yy165;
SDataType yy232;
EFillMode yy318;
int8_t yy443;
int32_t yy488;
EJoinSubType yy506;
STokenPair yy525;
ENullOrder yy545;
EJoinType yy548;
EOrder yy670;
SNode* yy720;
int64_t yy817;
bool yy833;
SNodeList* yy984;
EOperatorType yy1024;
EShowKind yy1029;
SToken yy1045;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
2022-03-10 07:36:06 +00:00
#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
2022-04-22 10:23:37 +00:00
#define YYFALLBACK 1
#define YYNSTATE 918
#define YYNRULE 726
#define YYNRULE_WITH_ACTION 726
#define YYNTOKEN 367
#define YY_MAX_SHIFT 917
#define YY_MIN_SHIFTREDUCE 1374
#define YY_MAX_SHIFTREDUCE 2099
#define YY_ERROR_ACTION 2100
#define YY_ACCEPT_ACTION 2101
#define YY_NO_ACTION 2102
#define YY_MIN_REDUCE 2103
#define YY_MAX_REDUCE 2828
/************* 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 (3171)
static const YYACTIONTYPE yy_action[] = {
/* 0 */ 2804, 2585, 760, 615, 705, 2445, 616, 2146, 2799, 184,
/* 10 */ 2799, 306, 47, 45, 2021, 520, 2585, 43, 42, 41,
/* 20 */ 447, 750, 1843, 2443, 802, 513, 2589, 2803, 759, 210,
/* 30 */ 512, 2800, 2802, 2800, 761, 1930, 2804, 1841, 2189, 1414,
/* 40 */ 1868, 2589, 473, 472, 40, 39, 2609, 2126, 46, 44,
/* 50 */ 43, 42, 41, 1871, 96, 9, 772, 149, 1421, 775,
/* 60 */ 2493, 580, 578, 1869, 397, 1925, 2103, 1850, 223, 2359,
/* 70 */ 2278, 419, 19, 2591, 2593, 444, 415, 66, 726, 1849,
/* 80 */ 2296, 1416, 1419, 1420, 819, 2357, 2799, 2627, 2591, 2594,
/* 90 */ 139, 138, 137, 136, 135, 134, 133, 132, 131, 819,
/* 100 */ 2575, 2575, 797, 623, 2805, 210, 616, 2146, 914, 2800,
/* 110 */ 761, 15, 889, 888, 887, 886, 476, 2716, 885, 884,
/* 120 */ 154, 879, 878, 877, 876, 875, 874, 873, 153, 867,
/* 130 */ 866, 865, 475, 474, 862, 861, 860, 190, 189, 859,
/* 140 */ 471, 858, 857, 2713, 2608, 2089, 814, 2647, 2065, 1932,
/* 150 */ 1933, 115, 2610, 801, 2612, 2613, 796, 191, 819, 760,
/* 160 */ 620, 2568, 2025, 193, 464, 2701, 617, 2799, 1868, 443,
/* 170 */ 2697, 186, 2709, 771, 468, 141, 770, 2352, 2354, 1996,
/* 180 */ 417, 696, 2425, 2799, 62, 759, 210, 1903, 1913, 211,
/* 190 */ 2800, 761, 1626, 1627, 1931, 1934, 694, 2748, 692, 277,
/* 200 */ 276, 759, 210, 2277, 772, 149, 2800, 761, 2104, 1844,
/* 210 */ 635, 1842, 854, 165, 164, 851, 850, 849, 162, 453,
/* 220 */ 40, 39, 311, 788, 46, 44, 43, 42, 41, 130,
/* 230 */ 819, 787, 129, 128, 127, 126, 125, 124, 123, 122,
/* 240 */ 121, 1853, 707, 1847, 1848, 1900, 1900, 1902, 1905, 1906,
/* 250 */ 1907, 1908, 1909, 1910, 1911, 1912, 793, 817, 816, 1924,
/* 260 */ 1926, 1927, 1928, 1929, 2, 47, 45, 529, 2421, 12,
/* 270 */ 395, 1843, 1866, 447, 856, 1843, 2292, 535, 2421, 563,
/* 280 */ 772, 149, 583, 709, 407, 245, 1841, 582, 1930, 618,
/* 290 */ 1841, 2154, 2721, 1993, 1994, 1995, 2721, 2721, 2721, 2721,
/* 300 */ 2721, 631, 33, 543, 1996, 584, 815, 2301, 40, 39,
/* 310 */ 396, 545, 46, 44, 43, 42, 41, 225, 1925, 119,
/* 320 */ 2709, 2710, 523, 147, 2714, 19, 214, 227, 1849, 815,
/* 330 */ 2301, 1959, 1849, 130, 453, 1904, 129, 128, 127, 126,
/* 340 */ 125, 124, 123, 122, 121, 819, 62, 40, 39, 140,
/* 350 */ 2125, 46, 44, 43, 42, 41, 658, 914, 1587, 1872,
/* 360 */ 764, 914, 418, 313, 15, 1998, 1999, 2000, 2001, 2002,
/* 370 */ 2569, 62, 706, 531, 1578, 844, 843, 842, 1582, 841,
/* 380 */ 1584, 1585, 840, 837, 2124, 1593, 834, 1595, 1596, 831,
/* 390 */ 828, 825, 2276, 1901, 774, 179, 2709, 2710, 1960, 147,
/* 400 */ 2714, 856, 1932, 1933, 2575, 2432, 2411, 2054, 571, 570,
/* 410 */ 569, 568, 567, 562, 561, 560, 559, 401, 1993, 1994,
/* 420 */ 1995, 549, 548, 547, 546, 540, 539, 538, 453, 533,
/* 430 */ 532, 416, 37, 317, 113, 524, 1686, 1687, 2575, 819,
/* 440 */ 1903, 1913, 1705, 511, 2378, 510, 710, 1931, 1934, 40,
/* 450 */ 39, 152, 203, 46, 44, 43, 42, 41, 1844, 2293,
/* 460 */ 1842, 177, 1844, 2115, 1842, 2346, 742, 741, 2052, 2053,
/* 470 */ 2055, 2056, 2057, 247, 29, 509, 2445, 618, 1849, 2154,
/* 480 */ 36, 445, 1954, 1955, 1956, 1957, 1958, 1962, 1963, 1964,
/* 490 */ 1965, 450, 1847, 1848, 2442, 802, 1847, 1848, 1900, 869,
/* 500 */ 1902, 1905, 1906, 1907, 1908, 1909, 1910, 1911, 1912, 793,
/* 510 */ 817, 816, 1924, 1926, 1927, 1928, 1929, 2, 12, 47,
/* 520 */ 45, 2716, 625, 2484, 2804, 313, 176, 447, 206, 1843,
/* 530 */ 848, 371, 2799, 2350, 854, 165, 164, 851, 850, 849,
/* 540 */ 162, 2609, 1930, 705, 1841, 1868, 2046, 2712, 369, 75,
/* 550 */ 313, 2803, 74, 2066, 795, 2800, 2801, 35, 565, 2421,
/* 560 */ 2609, 2047, 398, 40, 39, 871, 1872, 46, 44, 43,
/* 570 */ 42, 41, 1925, 798, 243, 597, 595, 592, 590, 19,
/* 580 */ 815, 2301, 2627, 281, 1873, 1440, 1849, 1439, 772, 149,
/* 590 */ 46, 44, 43, 42, 41, 2575, 814, 797, 432, 2492,
/* 600 */ 140, 2627, 145, 2045, 710, 1587, 51, 663, 232, 459,
/* 610 */ 558, 557, 423, 422, 2575, 914, 797, 745, 15, 62,
/* 620 */ 1441, 1578, 844, 843, 842, 1582, 841, 1584, 1585, 792,
/* 630 */ 791, 612, 1593, 790, 1595, 1596, 789, 828, 825, 2608,
/* 640 */ 610, 765, 2647, 606, 602, 749, 387, 2610, 801, 2612,
/* 650 */ 2613, 796, 794, 819, 780, 2666, 1932, 1933, 2608, 63,
/* 660 */ 280, 2647, 1771, 1772, 279, 115, 2610, 801, 2612, 2613,
/* 670 */ 796, 872, 819, 2627, 2262, 151, 1940, 159, 2672, 2701,
/* 680 */ 712, 2484, 1868, 443, 2697, 1871, 1996, 50, 421, 420,
/* 690 */ 2394, 660, 40, 39, 1903, 1913, 46, 44, 43, 42,
/* 700 */ 41, 1931, 1934, 180, 2709, 2710, 847, 147, 2714, 85,
/* 710 */ 84, 516, 1698, 1699, 222, 662, 1844, 814, 1842, 661,
/* 720 */ 751, 746, 739, 735, 462, 40, 39, 508, 506, 46,
/* 730 */ 44, 43, 42, 41, 99, 201, 229, 404, 394, 748,
/* 740 */ 431, 495, 698, 356, 492, 488, 484, 481, 509, 574,
/* 750 */ 1847, 1848, 1900, 2192, 1902, 1905, 1906, 1907, 1908, 1909,
/* 760 */ 1910, 1911, 1912, 793, 817, 816, 1924, 1926, 1927, 1928,
/* 770 */ 1929, 2, 47, 45, 1935, 12, 2609, 10, 497, 2123,
/* 780 */ 447, 91, 1843, 1812, 90, 313, 632, 725, 700, 775,
/* 790 */ 699, 1873, 815, 2301, 263, 1930, 2609, 1841, 313, 2721,
/* 800 */ 1993, 1994, 1995, 2721, 2721, 2721, 2721, 2721, 50, 798,
/* 810 */ 185, 2156, 55, 458, 457, 466, 234, 2627, 174, 652,
/* 820 */ 648, 644, 640, 168, 262, 1925, 2304, 678, 677, 676,
/* 830 */ 2575, 2303, 797, 2575, 668, 146, 672, 2627, 2122, 1849,
/* 840 */ 671, 573, 233, 633, 2438, 670, 675, 426, 425, 1904,
/* 850 */ 2575, 669, 797, 89, 311, 424, 665, 664, 556, 40,
/* 860 */ 39, 846, 555, 46, 44, 43, 42, 41, 914, 97,
/* 870 */ 554, 48, 260, 117, 2608, 786, 2609, 2647, 433, 2492,
/* 880 */ 2359, 115, 2610, 801, 2612, 2613, 796, 442, 819, 798,
/* 890 */ 754, 2756, 2575, 193, 2608, 2701, 2357, 2647, 1811, 443,
/* 900 */ 2697, 115, 2610, 801, 2612, 2613, 796, 1901, 819, 1932,
/* 910 */ 1933, 2716, 501, 2819, 1440, 2701, 1439, 2627, 2096, 443,
/* 920 */ 2697, 1421, 815, 2301, 815, 2301, 60, 2749, 461, 460,
/* 930 */ 2575, 781, 797, 2673, 723, 2290, 1869, 2711, 2121, 503,
/* 940 */ 499, 250, 517, 2519, 518, 1419, 1420, 1903, 1913, 1441,
/* 950 */ 259, 252, 815, 2301, 1931, 1934, 2007, 257, 629, 1961,
/* 960 */ 40, 39, 1868, 2037, 46, 44, 43, 42, 41, 1844,
/* 970 */ 2286, 1842, 537, 1868, 2608, 2528, 249, 2647, 2529, 1872,
/* 980 */ 204, 115, 2610, 801, 2612, 2613, 796, 313, 819, 2609,
/* 990 */ 451, 703, 2575, 2819, 486, 2701, 321, 322, 174, 443,
/* 1000 */ 2697, 320, 798, 1847, 1848, 1900, 2303, 1902, 1905, 1906,
/* 1010 */ 1907, 1908, 1909, 1910, 1911, 1912, 793, 817, 816, 1924,
/* 1020 */ 1926, 1927, 1928, 1929, 2, 47, 45, 2609, 726, 175,
/* 1030 */ 2627, 726, 1541, 447, 2095, 1843, 2799, 2237, 2288, 2799,
/* 1040 */ 798, 34, 2769, 2575, 726, 797, 1951, 1540, 1930, 191,
/* 1050 */ 1841, 1966, 2799, 62, 2805, 210, 466, 2805, 210, 2800,
/* 1060 */ 761, 469, 2800, 761, 174, 1718, 1719, 1529, 2627, 174,
/* 1070 */ 2805, 210, 2303, 2609, 2426, 2800, 761, 2303, 1925, 2353,
/* 1080 */ 2354, 2575, 2497, 797, 815, 2301, 798, 2608, 737, 2120,
/* 1090 */ 2647, 2119, 1849, 2803, 115, 2610, 801, 2612, 2613, 796,
/* 1100 */ 685, 819, 815, 2301, 550, 2118, 2676, 2359, 2701, 1531,
/* 1110 */ 1717, 1720, 443, 2697, 2627, 697, 14, 13, 585, 2117,
/* 1120 */ 1423, 914, 551, 779, 48, 2608, 1867, 2575, 2647, 797,
/* 1130 */ 2284, 278, 115, 2610, 801, 2612, 2613, 796, 282, 819,
/* 1140 */ 1904, 711, 2359, 2575, 2819, 2575, 2701, 688, 205, 452,
/* 1150 */ 443, 2697, 815, 2301, 682, 680, 815, 2301, 2357, 2575,
/* 1160 */ 1545, 275, 1932, 1933, 854, 165, 164, 851, 850, 849,
/* 1170 */ 162, 2608, 552, 2575, 2647, 1544, 634, 2359, 115, 2610,
/* 1180 */ 801, 2612, 2613, 796, 467, 819, 1872, 2114, 1443, 1444,
/* 1190 */ 2819, 2113, 2701, 2357, 726, 2112, 443, 2697, 1901, 2111,
/* 1200 */ 1903, 1913, 2799, 288, 1873, 2110, 71, 1931, 1934, 70,
/* 1210 */ 678, 677, 676, 815, 2301, 815, 2301, 668, 146, 672,
/* 1220 */ 2805, 210, 1844, 671, 1842, 2800, 761, 1973, 670, 675,
/* 1230 */ 426, 425, 313, 2298, 669, 283, 654, 653, 424, 665,
/* 1240 */ 664, 2575, 2609, 662, 776, 2575, 587, 661, 2109, 2575,
/* 1250 */ 656, 655, 2108, 2575, 1868, 798, 1847, 1848, 1900, 2575,
/* 1260 */ 1902, 1905, 1906, 1907, 1908, 1909, 1910, 1911, 1912, 793,
/* 1270 */ 817, 816, 1924, 1926, 1927, 1928, 1929, 2, 47, 45,
/* 1280 */ 2609, 674, 673, 2627, 815, 2301, 447, 2018, 1843, 815,
/* 1290 */ 2301, 815, 2301, 798, 107, 2792, 2575, 726, 797, 2107,
/* 1300 */ 2516, 1930, 2575, 1841, 291, 2799, 2575, 815, 2301, 778,
/* 1310 */ 2106, 325, 815, 2301, 767, 815, 2301, 2359, 783, 2294,
/* 1320 */ 2673, 2627, 150, 2805, 210, 2672, 2609, 812, 2800, 761,
/* 1330 */ 96, 1925, 813, 810, 2575, 352, 797, 815, 2301, 798,
/* 1340 */ 2608, 2733, 2101, 2647, 100, 1849, 163, 115, 2610, 801,
/* 1350 */ 2612, 2613, 796, 2575, 819, 852, 2297, 470, 2350, 2674,
/* 1360 */ 2359, 2701, 883, 881, 2575, 443, 2697, 2627, 853, 365,
/* 1370 */ 2404, 2350, 2336, 2279, 914, 1746, 2358, 15, 2608, 3,
/* 1380 */ 2575, 2647, 797, 2238, 666, 115, 2610, 801, 2612, 2613,
/* 1390 */ 796, 53, 819, 2131, 909, 473, 472, 2819, 142, 2701,
/* 1400 */ 77, 2762, 763, 443, 2697, 1857, 155, 156, 1523, 1525,
/* 1410 */ 87, 1873, 527, 156, 2116, 1932, 1933, 292, 1930, 268,
/* 1420 */ 1850, 733, 266, 479, 2608, 54, 270, 2647, 478, 269,
/* 1430 */ 184, 115, 2610, 801, 2612, 2613, 796, 272, 819, 2609,
/* 1440 */ 271, 274, 667, 2819, 273, 2701, 2176, 2174, 1925, 443,
/* 1450 */ 2697, 1526, 798, 1903, 1913, 88, 2165, 49, 112, 49,
/* 1460 */ 1931, 1934, 1849, 2163, 1504, 101, 1521, 109, 679, 681,
/* 1470 */ 1477, 194, 2596, 2098, 2099, 1844, 726, 1842, 683, 1901,
/* 1480 */ 2627, 163, 14, 13, 2799, 686, 1762, 64, 49, 1852,
/* 1490 */ 49, 785, 1769, 2575, 319, 797, 1851, 76, 331, 330,
/* 1500 */ 2041, 743, 2805, 210, 333, 332, 1505, 2800, 761, 1847,
/* 1510 */ 1848, 1900, 1478, 1902, 1905, 1906, 1907, 1908, 1909, 1910,
/* 1520 */ 1911, 1912, 793, 817, 816, 1924, 1926, 1927, 1928, 1929,
/* 1530 */ 2, 307, 400, 399, 2598, 216, 2051, 2608, 2050, 73,
/* 1540 */ 2647, 161, 454, 163, 115, 2610, 801, 2612, 2613, 796,
/* 1550 */ 297, 819, 823, 335, 334, 1930, 782, 463, 2701, 161,
/* 1560 */ 777, 773, 443, 2697, 337, 336, 1967, 1914, 163, 1715,
/* 1570 */ 339, 338, 299, 323, 144, 2017, 807, 143, 2609, 341,
/* 1580 */ 340, 161, 343, 342, 1587, 1925, 345, 344, 347, 346,
/* 1590 */ 2628, 798, 1858, 2231, 1853, 349, 348, 768, 351, 350,
/* 1600 */ 1578, 844, 843, 842, 1582, 841, 1584, 1585, 840, 837,
/* 1610 */ 2609, 1593, 834, 1595, 1596, 831, 828, 825, 364, 2627,
/* 1620 */ 327, 2157, 1571, 798, 863, 864, 1861, 1863, 2230, 2430,
/* 1630 */ 2147, 1600, 2575, 2752, 797, 740, 438, 747, 1608, 477,
/* 1640 */ 817, 816, 1924, 1926, 1927, 1928, 1929, 1615, 1496, 1494,
/* 1650 */ 434, 2627, 804, 2431, 2153, 2347, 1613, 719, 2753, 2763,
/* 1660 */ 166, 755, 756, 1855, 2575, 304, 797, 312, 309, 2263,
/* 1670 */ 1854, 5, 480, 907, 485, 413, 2608, 1876, 493, 2647,
/* 1680 */ 494, 218, 504, 116, 2610, 801, 2612, 2613, 796, 217,
/* 1690 */ 819, 505, 2609, 507, 220, 1739, 359, 2701, 1866, 521,
/* 1700 */ 1867, 2700, 2697, 528, 231, 798, 530, 536, 701, 534,
/* 1710 */ 576, 2647, 2609, 553, 541, 383, 2610, 801, 2612, 2613,
/* 1720 */ 796, 564, 819, 2423, 566, 798, 572, 575, 577, 1834,
/* 1730 */ 589, 1810, 2609, 2627, 588, 586, 237, 236, 591, 593,
/* 1740 */ 240, 594, 596, 598, 1874, 798, 2575, 4, 797, 624,
/* 1750 */ 613, 2609, 621, 2627, 248, 614, 1869, 93, 622, 626,
/* 1760 */ 251, 456, 455, 1835, 798, 1875, 2575, 1877, 797, 627,
/* 1770 */ 630, 628, 1878, 2627, 2439, 254, 657, 817, 816, 1924,
/* 1780 */ 1926, 1927, 1928, 1929, 256, 94, 2575, 95, 797, 636,
/* 1790 */ 2608, 261, 2627, 2647, 689, 118, 702, 116, 2610, 801,
/* 1800 */ 2612, 2613, 796, 659, 819, 2575, 2291, 797, 265, 2287,
/* 1810 */ 799, 2701, 690, 2647, 267, 784, 2697, 116, 2610, 801,
/* 1820 */ 2612, 2613, 796, 169, 819, 170, 2289, 2285, 171, 172,
/* 1830 */ 2608, 2701, 2609, 2647, 2506, 406, 2697, 178, 2610, 801,
/* 1840 */ 2612, 2613, 796, 391, 819, 798, 2503, 1870, 98, 2608,
/* 1850 */ 360, 704, 2647, 157, 2502, 284, 181, 2610, 801, 2612,
/* 1860 */ 2613, 796, 714, 819, 2609, 2485, 715, 713, 718, 289,
/* 1870 */ 744, 721, 2768, 2627, 720, 287, 294, 798, 805, 296,
/* 1880 */ 8, 2767, 753, 731, 727, 2759, 2575, 2740, 797, 730,
/* 1890 */ 729, 2609, 728, 303, 2822, 758, 757, 439, 766, 769,
/* 1900 */ 148, 298, 1871, 2015, 798, 2627, 183, 2013, 61, 2720,
/* 1910 */ 305, 197, 314, 361, 301, 762, 2820, 2717, 2575, 158,
/* 1920 */ 797, 300, 302, 1, 2682, 803, 2453, 2452, 2451, 362,
/* 1930 */ 2608, 449, 2627, 2647, 808, 809, 160, 116, 2610, 801,
/* 1940 */ 2612, 2613, 796, 363, 819, 2575, 212, 797, 106, 2302,
/* 1950 */ 308, 2701, 2567, 2566, 108, 2562, 2698, 2561, 2553, 2798,
/* 1960 */ 821, 2552, 2608, 2544, 2543, 2647, 2559, 436, 1398, 178,
/* 1970 */ 2610, 801, 2612, 2613, 796, 2609, 819, 2558, 2550, 2549,
/* 1980 */ 2538, 2537, 366, 354, 2556, 2555, 2547, 2546, 798, 2608,
/* 1990 */ 911, 908, 2647, 167, 913, 52, 388, 2610, 801, 2612,
/* 2000 */ 2613, 796, 378, 819, 389, 2609, 2535, 390, 411, 379,
/* 2010 */ 368, 2534, 2532, 2531, 2351, 2527, 2627, 2760, 798, 370,
/* 2020 */ 412, 2526, 2525, 82, 2520, 482, 483, 1794, 1795, 2575,
/* 2030 */ 215, 797, 487, 2518, 489, 490, 491, 1793, 2517, 414,
/* 2040 */ 2515, 496, 2514, 2513, 498, 500, 2627, 2512, 502, 1782,
/* 2050 */ 2489, 437, 219, 2488, 221, 1742, 83, 1741, 2466, 2575,
/* 2060 */ 2465, 797, 2464, 514, 515, 2463, 2462, 2413, 519, 1685,
/* 2070 */ 2410, 522, 2409, 2608, 2403, 2400, 2647, 526, 525, 2399,
/* 2080 */ 388, 2610, 801, 2612, 2613, 796, 224, 819, 2398, 86,
/* 2090 */ 2397, 2402, 2401, 2396, 226, 2395, 2609, 2393, 2392, 2391,
/* 2100 */ 228, 542, 2390, 2608, 544, 2388, 2647, 2387, 2386, 798,
/* 2110 */ 381, 2610, 801, 2612, 2613, 796, 2609, 819, 2385, 2408,
/* 2120 */ 2384, 2383, 2382, 2406, 2389, 2381, 2380, 2379, 2377, 795,
/* 2130 */ 230, 2371, 92, 2609, 2376, 2375, 2374, 2627, 2373, 2372,
/* 2140 */ 2370, 2369, 2368, 2367, 2407, 2405, 798, 2366, 2365, 2364,
/* 2150 */ 2575, 1691, 797, 235, 2363, 579, 2362, 2627, 2361, 2360,
/* 2160 */ 581, 752, 402, 403, 2196, 238, 2195, 2194, 1542, 239,
/* 2170 */ 2575, 241, 797, 1546, 2627, 2193, 242, 2191, 2188, 601,
/* 2180 */ 2187, 2180, 2167, 600, 604, 2142, 1422, 2575, 2141, 797,
/* 2190 */ 1538, 2487, 599, 2483, 2608, 244, 2473, 2647, 603, 605,
/* 2200 */ 607, 181, 2610, 801, 2612, 2613, 796, 609, 819, 446,
/* 2210 */ 611, 608, 79, 2461, 2608, 2460, 2609, 2647, 708, 192,
/* 2220 */ 2595, 387, 2610, 801, 2612, 2613, 796, 255, 819, 798,
/* 2230 */ 2667, 2608, 202, 619, 2647, 2609, 917, 80, 388, 2610,
/* 2240 */ 801, 2612, 2613, 796, 246, 819, 253, 258, 798, 2437,
/* 2250 */ 2280, 2190, 358, 2186, 638, 637, 639, 2627, 2184, 641,
/* 2260 */ 1470, 2821, 2609, 642, 2182, 643, 645, 646, 200, 647,
/* 2270 */ 2575, 2179, 797, 649, 651, 798, 2627, 905, 901, 897,
/* 2280 */ 893, 650, 355, 2162, 2160, 2161, 2159, 2138, 2282, 2575,
/* 2290 */ 1619, 797, 448, 72, 1620, 2281, 264, 1528, 1527, 1524,
/* 2300 */ 1522, 1511, 1520, 2627, 1519, 2177, 1518, 1517, 880, 1516,
/* 2310 */ 882, 1513, 427, 1512, 2608, 2175, 2575, 2647, 797, 1510,
/* 2320 */ 428, 388, 2610, 801, 2612, 2613, 796, 114, 819, 2166,
/* 2330 */ 328, 429, 2164, 2608, 684, 430, 2647, 687, 2609, 2137,
/* 2340 */ 373, 2610, 801, 2612, 2613, 796, 2136, 819, 2135, 691,
/* 2350 */ 2134, 798, 2133, 693, 120, 695, 1776, 1778, 1775, 1780,
/* 2360 */ 2608, 706, 2482, 2647, 811, 28, 2486, 372, 2610, 801,
/* 2370 */ 2612, 2613, 796, 286, 819, 1766, 2609, 67, 56, 2627,
/* 2380 */ 1748, 57, 1750, 2472, 1752, 716, 717, 2459, 173, 798,
/* 2390 */ 2458, 290, 2575, 732, 797, 1727, 722, 1726, 2804, 6,
/* 2400 */ 2609, 724, 20, 30, 17, 2068, 2042, 293, 316, 435,
/* 2410 */ 734, 736, 21, 798, 7, 315, 295, 2627, 738, 22,
/* 2420 */ 2049, 182, 2609, 207, 196, 195, 2596, 32, 31, 81,
/* 2430 */ 2575, 208, 797, 2008, 285, 798, 2608, 2036, 2006, 2647,
/* 2440 */ 2010, 2627, 209, 374, 2610, 801, 2612, 2613, 796, 2088,
/* 2450 */ 819, 65, 2089, 24, 2575, 2083, 797, 23, 2082, 440,
/* 2460 */ 2087, 2086, 441, 2627, 18, 1990, 310, 1989, 59, 58,
/* 2470 */ 2457, 2436, 103, 25, 2608, 187, 2575, 2647, 797, 102,
/* 2480 */ 1942, 380, 2610, 801, 2612, 2613, 796, 11, 819, 13,
/* 2490 */ 1941, 1859, 188, 198, 1917, 1893, 1916, 1915, 2608, 1952,
/* 2500 */ 2609, 2647, 2435, 830, 833, 384, 2610, 801, 2612, 2613,
/* 2510 */ 796, 836, 819, 798, 1885, 839, 38, 16, 26, 800,
/* 2520 */ 2608, 27, 199, 2647, 318, 2044, 324, 375, 2610, 801,
/* 2530 */ 2612, 2613, 796, 104, 819, 806, 326, 329, 69, 105,
/* 2540 */ 820, 2627, 2652, 2651, 822, 1919, 1601, 818, 68, 109,
/* 2550 */ 465, 1598, 824, 826, 2575, 829, 797, 827, 832, 1597,
/* 2560 */ 835, 1594, 1588, 1586, 838, 353, 110, 1614, 111, 78,
/* 2570 */ 1610, 1468, 2609, 855, 1507, 1506, 1592, 1577, 845, 1591,
/* 2580 */ 1503, 1500, 1499, 1498, 1497, 798, 1590, 1589, 1495, 2609,
/* 2590 */ 1493, 1492, 1491, 1536, 868, 870, 1535, 213, 2608, 1489,
/* 2600 */ 1488, 2647, 798, 1487, 1486, 385, 2610, 801, 2612, 2613,
/* 2610 */ 796, 2609, 819, 2627, 1485, 1484, 1483, 1530, 1532, 1474,
/* 2620 */ 1480, 1479, 1476, 2185, 798, 1475, 2575, 1473, 797, 890,
/* 2630 */ 2627, 892, 891, 2183, 2181, 894, 896, 898, 895, 2178,
/* 2640 */ 902, 900, 899, 2575, 903, 797, 904, 2158, 2609, 906,
/* 2650 */ 1411, 2132, 2627, 1399, 910, 2102, 916, 357, 912, 2102,
/* 2660 */ 1845, 798, 367, 915, 2102, 2575, 2102, 797, 2102, 2102,
/* 2670 */ 2608, 2102, 2102, 2647, 2102, 2102, 2102, 376, 2610, 801,
/* 2680 */ 2612, 2613, 796, 2102, 819, 2102, 2102, 2608, 2102, 2627,
/* 2690 */ 2647, 2102, 2102, 2102, 386, 2610, 801, 2612, 2613, 796,
/* 2700 */ 2102, 819, 2575, 2102, 797, 2102, 2102, 2102, 2102, 2608,
/* 2710 */ 2102, 2609, 2647, 2102, 2102, 2102, 377, 2610, 801, 2612,
/* 2720 */ 2613, 796, 2102, 819, 798, 2102, 2102, 2102, 2102, 2102,
/* 2730 */ 2102, 2609, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102,
/* 2740 */ 2102, 2102, 2102, 2102, 798, 2102, 2608, 2102, 2102, 2647,
/* 2750 */ 2609, 2102, 2627, 392, 2610, 801, 2612, 2613, 796, 2102,
/* 2760 */ 819, 2102, 2102, 798, 2102, 2575, 2102, 797, 2102, 2102,
/* 2770 */ 2102, 2102, 2627, 2102, 2102, 2102, 2102, 2102, 2102, 2102,
/* 2780 */ 2102, 2102, 2102, 2102, 2102, 2575, 2102, 797, 2102, 2102,
/* 2790 */ 2102, 2627, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102,
/* 2800 */ 2102, 2102, 2102, 2102, 2575, 2102, 797, 2102, 2102, 2608,
/* 2810 */ 2102, 2102, 2647, 2102, 2102, 2102, 393, 2610, 801, 2612,
/* 2820 */ 2613, 796, 2102, 819, 2102, 2102, 2102, 2102, 2102, 2608,
/* 2830 */ 2102, 2102, 2647, 2102, 2609, 2102, 2621, 2610, 801, 2612,
/* 2840 */ 2613, 796, 2102, 819, 2102, 2102, 2102, 798, 2608, 2102,
/* 2850 */ 2102, 2647, 2609, 2102, 2102, 2620, 2610, 801, 2612, 2613,
/* 2860 */ 796, 2102, 819, 2102, 2102, 798, 2102, 2102, 2102, 2609,
/* 2870 */ 2102, 2102, 2102, 2102, 2102, 2627, 2102, 2102, 2102, 2102,
/* 2880 */ 2102, 2102, 798, 2102, 2102, 2102, 2102, 2102, 2575, 2102,
/* 2890 */ 797, 2102, 2102, 2627, 2102, 2102, 2102, 2102, 2102, 2102,
/* 2900 */ 2102, 2102, 2102, 2102, 2102, 2102, 2575, 2102, 797, 2102,
/* 2910 */ 2627, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102,
/* 2920 */ 2102, 2102, 2102, 2575, 2102, 797, 2102, 2102, 2102, 2102,
/* 2930 */ 2102, 2102, 2608, 2102, 2102, 2647, 2102, 2102, 2102, 2619,
/* 2940 */ 2610, 801, 2612, 2613, 796, 2102, 819, 2102, 2102, 2102,
/* 2950 */ 2608, 2102, 2102, 2647, 2102, 2102, 2609, 408, 2610, 801,
/* 2960 */ 2612, 2613, 796, 2102, 819, 2102, 2102, 2608, 2102, 798,
/* 2970 */ 2647, 2102, 2609, 2102, 409, 2610, 801, 2612, 2613, 796,
/* 2980 */ 2102, 819, 2102, 2102, 2102, 798, 2102, 2102, 2102, 2102,
/* 2990 */ 2102, 2102, 2102, 2102, 2102, 2609, 2102, 2627, 2102, 2102,
/* 3000 */ 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 798, 2102,
/* 3010 */ 2575, 2102, 797, 2627, 2102, 2102, 2102, 2102, 2102, 2102,
/* 3020 */ 2102, 2102, 2102, 2102, 2102, 2102, 2575, 2102, 797, 2102,
/* 3030 */ 2102, 2102, 2102, 2102, 2102, 2102, 2627, 2102, 2102, 2102,
/* 3040 */ 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2575,
/* 3050 */ 2102, 797, 2102, 2102, 2608, 2102, 2102, 2647, 2609, 2102,
/* 3060 */ 2102, 405, 2610, 801, 2612, 2613, 796, 2102, 819, 2102,
/* 3070 */ 2608, 798, 2102, 2647, 2102, 2102, 2102, 410, 2610, 801,
/* 3080 */ 2612, 2613, 796, 2102, 819, 2102, 2102, 2102, 2102, 2102,
/* 3090 */ 2102, 2102, 2102, 799, 2102, 2102, 2647, 2102, 2102, 2627,
/* 3100 */ 383, 2610, 801, 2612, 2613, 796, 2102, 819, 2102, 2102,
/* 3110 */ 2102, 2102, 2575, 2102, 797, 2102, 2102, 2102, 2102, 2102,
/* 3120 */ 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102,
/* 3130 */ 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102,
/* 3140 */ 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102, 2102,
/* 3150 */ 2102, 2102, 2102, 2102, 2102, 2102, 2608, 2102, 2102, 2647,
/* 3160 */ 2102, 2102, 2102, 382, 2610, 801, 2612, 2613, 796, 2102,
/* 3170 */ 819,
};
static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 501, 399, 501, 377, 411, 426, 380, 381, 509, 503,
/* 10 */ 509, 505, 12, 13, 14, 382, 399, 14, 15, 16,
/* 20 */ 20, 20, 22, 444, 445, 448, 424, 528, 527, 528,
/* 30 */ 453, 532, 533, 532, 533, 35, 3, 37, 0, 4,
/* 40 */ 20, 424, 12, 13, 8, 9, 370, 370, 12, 13,
/* 50 */ 14, 15, 16, 20, 391, 42, 382, 383, 23, 383,
/* 60 */ 467, 428, 429, 20, 431, 65, 0, 37, 435, 411,
/* 70 */ 0, 408, 72, 471, 472, 473, 418, 4, 501, 79,
/* 80 */ 417, 46, 47, 48, 482, 427, 509, 411, 471, 472,
/* 90 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 482,
/* 100 */ 424, 424, 426, 377, 527, 528, 380, 381, 108, 532,
/* 110 */ 533, 111, 74, 75, 76, 77, 78, 474, 80, 81,
/* 120 */ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
/* 130 */ 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
/* 140 */ 102, 103, 104, 500, 468, 112, 20, 471, 112, 149,
/* 150 */ 150, 475, 476, 477, 478, 479, 480, 411, 482, 501,
/* 160 */ 14, 413, 14, 487, 416, 489, 20, 509, 20, 493,
/* 170 */ 494, 497, 498, 499, 422, 501, 502, 425, 426, 166,
/* 180 */ 434, 21, 436, 509, 111, 527, 528, 187, 188, 513,
/* 190 */ 532, 533, 149, 150, 194, 195, 36, 521, 38, 39,
/* 200 */ 40, 527, 528, 0, 382, 383, 532, 533, 0, 209,
/* 210 */ 71, 211, 142, 143, 144, 145, 146, 147, 148, 471,
/* 220 */ 8, 9, 189, 412, 12, 13, 14, 15, 16, 21,
/* 230 */ 482, 420, 24, 25, 26, 27, 28, 29, 30, 31,
/* 240 */ 32, 211, 121, 243, 244, 245, 245, 247, 248, 249,
2024-04-08 02:55:47 +00:00
/* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
/* 260 */ 260, 261, 262, 263, 264, 12, 13, 382, 383, 265,
/* 270 */ 18, 22, 20, 20, 71, 22, 413, 382, 383, 27,
/* 280 */ 382, 383, 30, 20, 72, 378, 37, 35, 35, 382,
/* 290 */ 37, 384, 279, 280, 281, 282, 283, 284, 285, 286,
/* 300 */ 287, 20, 2, 51, 166, 53, 382, 383, 8, 9,
/* 310 */ 58, 59, 12, 13, 14, 15, 16, 432, 65, 497,
/* 320 */ 498, 499, 70, 501, 502, 72, 402, 432, 79, 382,
/* 330 */ 383, 119, 79, 21, 471, 187, 24, 25, 26, 27,
/* 340 */ 28, 29, 30, 31, 32, 482, 111, 8, 9, 402,
/* 350 */ 370, 12, 13, 14, 15, 16, 409, 108, 108, 20,
/* 360 */ 33, 108, 110, 290, 111, 283, 284, 285, 286, 287,
/* 370 */ 413, 111, 122, 121, 124, 125, 126, 127, 128, 129,
/* 380 */ 130, 131, 132, 133, 370, 135, 136, 137, 138, 139,
/* 390 */ 140, 141, 0, 245, 496, 497, 498, 499, 186, 501,
/* 400 */ 502, 71, 149, 150, 424, 153, 154, 243, 156, 157,
/* 410 */ 158, 159, 160, 161, 162, 163, 164, 165, 280, 281,
/* 420 */ 282, 169, 170, 171, 172, 173, 174, 175, 471, 177,
/* 430 */ 178, 179, 490, 491, 389, 183, 184, 185, 424, 482,
/* 440 */ 187, 188, 190, 208, 0, 210, 382, 194, 195, 8,
/* 450 */ 9, 406, 410, 12, 13, 14, 15, 16, 209, 414,
/* 460 */ 211, 369, 209, 371, 211, 423, 302, 303, 304, 305,
/* 470 */ 306, 307, 308, 378, 33, 240, 426, 382, 79, 384,
/* 480 */ 268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
/* 490 */ 278, 441, 243, 244, 444, 445, 243, 244, 245, 13,
/* 500 */ 247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
/* 510 */ 257, 258, 259, 260, 261, 262, 263, 264, 265, 12,
/* 520 */ 13, 474, 458, 459, 501, 290, 18, 20, 189, 22,
/* 530 */ 421, 23, 509, 424, 142, 143, 144, 145, 146, 147,
/* 540 */ 148, 370, 35, 411, 37, 20, 22, 500, 40, 41,
/* 550 */ 290, 528, 44, 112, 383, 532, 533, 2, 382, 383,
/* 560 */ 370, 37, 54, 8, 9, 79, 20, 12, 13, 14,
/* 570 */ 15, 16, 65, 383, 66, 67, 68, 69, 70, 72,
/* 580 */ 382, 383, 411, 143, 245, 20, 79, 22, 382, 383,
/* 590 */ 12, 13, 14, 15, 16, 424, 20, 426, 466, 467,
/* 600 */ 402, 411, 37, 79, 382, 108, 111, 409, 432, 37,
/* 610 */ 166, 167, 39, 40, 424, 108, 426, 193, 111, 111,
/* 620 */ 55, 124, 125, 126, 127, 128, 129, 130, 131, 132,
/* 630 */ 133, 51, 135, 136, 137, 138, 139, 140, 141, 468,
/* 640 */ 60, 314, 471, 63, 64, 383, 475, 476, 477, 478,
/* 650 */ 479, 480, 481, 482, 483, 484, 149, 150, 468, 151,
/* 660 */ 144, 471, 222, 223, 148, 475, 476, 477, 478, 479,
/* 670 */ 480, 398, 482, 411, 401, 485, 14, 487, 488, 489,
/* 680 */ 458, 459, 20, 493, 494, 20, 166, 111, 115, 116,
/* 690 */ 0, 118, 8, 9, 187, 188, 12, 13, 14, 15,
/* 700 */ 16, 194, 195, 497, 498, 499, 121, 501, 502, 201,
/* 710 */ 202, 203, 187, 188, 206, 142, 209, 20, 211, 146,
/* 720 */ 296, 297, 298, 299, 37, 8, 9, 219, 220, 12,
/* 730 */ 13, 14, 15, 16, 218, 189, 65, 221, 230, 477,
/* 740 */ 224, 233, 226, 34, 236, 237, 238, 239, 240, 88,
/* 750 */ 243, 244, 245, 0, 247, 248, 249, 250, 251, 252,
/* 760 */ 253, 254, 255, 256, 257, 258, 259, 260, 261, 262,
/* 770 */ 263, 264, 12, 13, 14, 265, 370, 267, 70, 370,
/* 780 */ 20, 110, 22, 211, 113, 290, 382, 50, 225, 383,
/* 790 */ 227, 245, 382, 383, 35, 35, 370, 37, 290, 279,
/* 800 */ 280, 281, 282, 283, 284, 285, 286, 287, 111, 383,
/* 810 */ 51, 385, 402, 241, 242, 403, 155, 411, 411, 60,
/* 820 */ 61, 62, 63, 411, 65, 65, 419, 74, 75, 76,
/* 830 */ 424, 419, 426, 424, 81, 82, 83, 411, 370, 79,
/* 840 */ 87, 180, 181, 439, 440, 92, 93, 94, 95, 187,
/* 850 */ 424, 98, 426, 182, 189, 102, 103, 104, 168, 8,
/* 860 */ 9, 412, 172, 12, 13, 14, 15, 16, 108, 110,
/* 870 */ 180, 111, 113, 189, 468, 72, 370, 471, 466, 467,
/* 880 */ 411, 475, 476, 477, 478, 479, 480, 418, 482, 383,
/* 890 */ 13, 385, 424, 487, 468, 489, 427, 471, 211, 493,
/* 900 */ 494, 475, 476, 477, 478, 479, 480, 245, 482, 149,
/* 910 */ 150, 474, 204, 487, 20, 489, 22, 411, 201, 493,
/* 920 */ 494, 23, 382, 383, 382, 383, 189, 521, 241, 242,
/* 930 */ 424, 486, 426, 488, 197, 412, 20, 500, 370, 231,
/* 940 */ 232, 182, 402, 0, 402, 47, 48, 187, 188, 55,
/* 950 */ 191, 192, 382, 383, 194, 195, 79, 198, 199, 186,
/* 960 */ 8, 9, 20, 112, 12, 13, 14, 15, 16, 209,
/* 970 */ 412, 211, 402, 20, 468, 448, 217, 471, 448, 20,
/* 980 */ 454, 475, 476, 477, 478, 479, 480, 290, 482, 370,
/* 990 */ 403, 448, 424, 487, 51, 489, 143, 144, 411, 493,
/* 1000 */ 494, 148, 383, 243, 244, 245, 419, 247, 248, 249,
/* 1010 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
/* 1020 */ 260, 261, 262, 263, 264, 12, 13, 370, 501, 392,
/* 1030 */ 411, 501, 22, 20, 317, 22, 509, 400, 412, 509,
/* 1040 */ 383, 268, 385, 424, 501, 426, 243, 37, 35, 411,
/* 1050 */ 37, 278, 509, 111, 527, 528, 403, 527, 528, 532,
/* 1060 */ 533, 403, 532, 533, 411, 149, 150, 37, 411, 411,
/* 1070 */ 527, 528, 419, 370, 436, 532, 533, 419, 65, 425,
/* 1080 */ 426, 424, 407, 426, 382, 383, 383, 468, 385, 370,
/* 1090 */ 471, 370, 79, 3, 475, 476, 477, 478, 479, 480,
/* 1100 */ 4, 482, 382, 383, 402, 370, 487, 411, 489, 79,
/* 1110 */ 194, 195, 493, 494, 411, 19, 1, 2, 108, 370,
/* 1120 */ 14, 108, 402, 427, 111, 468, 20, 424, 471, 426,
/* 1130 */ 412, 35, 475, 476, 477, 478, 479, 480, 463, 482,
/* 1140 */ 187, 448, 411, 424, 487, 424, 489, 51, 189, 418,
/* 1150 */ 493, 494, 382, 383, 58, 59, 382, 383, 427, 424,
/* 1160 */ 22, 65, 149, 150, 142, 143, 144, 145, 146, 147,
/* 1170 */ 148, 468, 402, 424, 471, 37, 402, 411, 475, 476,
/* 1180 */ 477, 478, 479, 480, 418, 482, 20, 370, 56, 57,
/* 1190 */ 487, 370, 489, 427, 501, 370, 493, 494, 245, 370,
/* 1200 */ 187, 188, 509, 412, 245, 370, 110, 194, 195, 113,
/* 1210 */ 74, 75, 76, 382, 383, 382, 383, 81, 82, 83,
/* 1220 */ 527, 528, 209, 87, 211, 532, 533, 112, 92, 93,
/* 1230 */ 94, 95, 290, 402, 98, 402, 387, 388, 102, 103,
/* 1240 */ 104, 424, 370, 142, 448, 424, 108, 146, 370, 424,
/* 1250 */ 387, 388, 370, 424, 20, 383, 243, 244, 245, 424,
/* 1260 */ 247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
/* 1270 */ 257, 258, 259, 260, 261, 262, 263, 264, 12, 13,
/* 1280 */ 370, 396, 397, 411, 382, 383, 20, 4, 22, 382,
/* 1290 */ 383, 382, 383, 383, 389, 385, 424, 501, 426, 370,
/* 1300 */ 0, 35, 424, 37, 402, 509, 424, 382, 383, 402,
/* 1310 */ 370, 402, 382, 383, 33, 382, 383, 411, 486, 414,
/* 1320 */ 488, 411, 485, 527, 528, 488, 370, 402, 532, 533,
/* 1330 */ 391, 65, 402, 427, 424, 402, 426, 382, 383, 383,
/* 1340 */ 468, 385, 367, 471, 182, 79, 33, 475, 476, 477,
/* 1350 */ 478, 479, 480, 424, 482, 421, 417, 402, 424, 487,
/* 1360 */ 411, 489, 396, 397, 424, 493, 494, 411, 421, 404,
/* 1370 */ 0, 424, 407, 0, 108, 213, 427, 111, 468, 33,
/* 1380 */ 424, 471, 426, 400, 13, 475, 476, 477, 478, 479,
/* 1390 */ 480, 45, 482, 373, 374, 12, 13, 487, 33, 489,
/* 1400 */ 121, 437, 312, 493, 494, 22, 33, 33, 37, 37,
/* 1410 */ 45, 245, 42, 33, 371, 149, 150, 65, 35, 114,
/* 1420 */ 37, 33, 117, 448, 468, 112, 114, 471, 453, 117,
/* 1430 */ 503, 475, 476, 477, 478, 479, 480, 114, 482, 370,
/* 1440 */ 117, 114, 13, 487, 117, 489, 0, 0, 65, 493,
/* 1450 */ 494, 79, 383, 187, 188, 176, 0, 33, 111, 33,
/* 1460 */ 194, 195, 79, 0, 37, 113, 37, 120, 22, 22,
/* 1470 */ 37, 33, 49, 149, 150, 209, 501, 211, 22, 245,
/* 1480 */ 411, 33, 1, 2, 509, 22, 112, 33, 33, 37,
/* 1490 */ 33, 108, 112, 424, 33, 426, 37, 33, 12, 13,
/* 1500 */ 112, 525, 527, 528, 12, 13, 79, 532, 533, 243,
/* 1510 */ 244, 245, 79, 247, 248, 249, 250, 251, 252, 253,
/* 1520 */ 254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
/* 1530 */ 264, 536, 12, 13, 111, 235, 112, 468, 112, 33,
/* 1540 */ 471, 33, 22, 33, 475, 476, 477, 478, 479, 480,
/* 1550 */ 112, 482, 33, 12, 13, 35, 487, 37, 489, 33,
/* 1560 */ 112, 504, 493, 494, 12, 13, 112, 112, 33, 112,
/* 1570 */ 12, 13, 518, 112, 386, 292, 112, 33, 370, 12,
/* 1580 */ 13, 33, 12, 13, 108, 65, 12, 13, 12, 13,
/* 1590 */ 411, 383, 209, 399, 211, 12, 13, 316, 12, 13,
/* 1600 */ 124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
/* 1610 */ 370, 135, 136, 137, 138, 139, 140, 141, 112, 411,
/* 1620 */ 112, 0, 112, 383, 13, 13, 243, 244, 399, 437,
/* 1630 */ 381, 112, 424, 437, 426, 524, 524, 524, 112, 386,
/* 1640 */ 257, 258, 259, 260, 261, 262, 263, 112, 37, 37,
/* 1650 */ 447, 411, 524, 437, 383, 423, 112, 455, 437, 437,
/* 1660 */ 112, 508, 508, 211, 424, 495, 426, 511, 529, 401,
/* 1670 */ 211, 293, 449, 52, 51, 470, 468, 20, 42, 471,
/* 1680 */ 469, 391, 224, 475, 476, 477, 478, 479, 480, 465,
/* 1690 */ 482, 460, 370, 460, 391, 207, 451, 489, 20, 382,
/* 1700 */ 20, 493, 494, 383, 45, 383, 433, 433, 468, 383,
/* 1710 */ 186, 471, 370, 382, 430, 475, 476, 477, 478, 479,
/* 1720 */ 480, 383, 482, 382, 433, 383, 430, 430, 430, 209,
/* 1730 */ 395, 211, 370, 411, 109, 107, 382, 394, 382, 106,
/* 1740 */ 382, 393, 382, 382, 20, 383, 424, 50, 426, 460,
/* 1750 */ 375, 370, 375, 411, 391, 379, 20, 391, 379, 426,
/* 1760 */ 391, 241, 242, 243, 383, 20, 424, 20, 426, 384,
/* 1770 */ 384, 450, 20, 411, 440, 391, 375, 257, 258, 259,
/* 1780 */ 260, 261, 262, 263, 391, 391, 424, 391, 426, 382,
/* 1790 */ 468, 391, 411, 471, 373, 382, 228, 475, 476, 477,
/* 1800 */ 478, 479, 480, 411, 482, 424, 411, 426, 411, 411,
/* 1810 */ 468, 489, 373, 471, 411, 493, 494, 475, 476, 477,
/* 1820 */ 478, 479, 480, 411, 482, 411, 411, 411, 411, 411,
/* 1830 */ 468, 489, 370, 471, 424, 493, 494, 475, 476, 477,
/* 1840 */ 478, 479, 480, 375, 482, 383, 424, 20, 111, 468,
/* 1850 */ 460, 464, 471, 462, 424, 389, 475, 476, 477, 478,
/* 1860 */ 479, 480, 215, 482, 370, 459, 457, 214, 426, 389,
/* 1870 */ 301, 382, 517, 411, 449, 456, 442, 383, 300, 442,
/* 1880 */ 309, 517, 200, 311, 522, 523, 424, 520, 426, 424,
/* 1890 */ 310, 370, 294, 449, 537, 289, 288, 318, 313, 315,
/* 1900 */ 383, 519, 20, 121, 383, 411, 517, 291, 111, 507,
/* 1910 */ 506, 384, 389, 442, 515, 534, 535, 474, 424, 389,
/* 1920 */ 426, 516, 514, 512, 492, 424, 424, 424, 424, 442,
/* 1930 */ 468, 424, 411, 471, 192, 438, 389, 475, 476, 477,
/* 1940 */ 478, 479, 480, 407, 482, 424, 510, 426, 389, 383,
/* 1950 */ 530, 489, 424, 424, 111, 424, 494, 424, 424, 531,
/* 1960 */ 415, 424, 468, 424, 424, 471, 424, 446, 22, 475,
/* 1970 */ 476, 477, 478, 479, 480, 370, 482, 424, 424, 424,
/* 1980 */ 424, 424, 382, 389, 424, 424, 424, 424, 383, 468,
/* 1990 */ 372, 38, 471, 376, 375, 452, 475, 476, 477, 478,
/* 2000 */ 479, 480, 405, 482, 405, 370, 424, 461, 443, 405,
/* 2010 */ 390, 424, 424, 424, 424, 0, 411, 523, 383, 368,
/* 2020 */ 443, 0, 0, 45, 0, 37, 234, 37, 37, 424,
/* 2030 */ 37, 426, 234, 0, 37, 37, 234, 37, 0, 234,
/* 2040 */ 0, 37, 0, 0, 37, 22, 411, 0, 37, 229,
/* 2050 */ 0, 446, 217, 0, 217, 211, 218, 209, 0, 424,
/* 2060 */ 0, 426, 0, 205, 204, 0, 0, 154, 49, 49,
/* 2070 */ 0, 37, 0, 468, 0, 0, 471, 51, 37, 0,
/* 2080 */ 475, 476, 477, 478, 479, 480, 49, 482, 0, 45,
/* 2090 */ 0, 0, 0, 0, 49, 0, 370, 0, 0, 0,
/* 2100 */ 172, 37, 0, 468, 172, 0, 471, 0, 0, 383,
/* 2110 */ 475, 476, 477, 478, 479, 480, 370, 482, 0, 0,
/* 2120 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 383,
/* 2130 */ 49, 0, 45, 370, 0, 0, 0, 411, 0, 0,
/* 2140 */ 0, 0, 0, 0, 0, 0, 383, 0, 0, 0,
/* 2150 */ 424, 22, 426, 154, 0, 153, 0, 411, 0, 0,
/* 2160 */ 152, 526, 50, 50, 0, 65, 0, 0, 22, 65,
/* 2170 */ 424, 65, 426, 22, 411, 0, 65, 0, 0, 42,
/* 2180 */ 0, 0, 0, 51, 51, 0, 14, 424, 0, 426,
/* 2190 */ 37, 0, 37, 0, 468, 45, 0, 471, 37, 42,
/* 2200 */ 37, 475, 476, 477, 478, 479, 480, 42, 482, 446,
/* 2210 */ 37, 51, 42, 0, 468, 0, 370, 471, 1, 33,
/* 2220 */ 49, 475, 476, 477, 478, 479, 480, 200, 482, 383,
/* 2230 */ 484, 468, 49, 49, 471, 370, 19, 42, 475, 476,
/* 2240 */ 477, 478, 479, 480, 43, 482, 42, 49, 383, 0,
/* 2250 */ 0, 0, 35, 0, 51, 37, 42, 411, 0, 37,
/* 2260 */ 73, 535, 370, 51, 0, 42, 37, 51, 51, 42,
/* 2270 */ 424, 0, 426, 37, 42, 383, 411, 60, 61, 62,
/* 2280 */ 63, 51, 65, 0, 0, 0, 0, 0, 0, 424,
/* 2290 */ 22, 426, 446, 119, 37, 0, 117, 37, 37, 37,
/* 2300 */ 37, 22, 37, 411, 37, 0, 37, 37, 33, 37,
/* 2310 */ 33, 37, 22, 37, 468, 0, 424, 471, 426, 37,
/* 2320 */ 22, 475, 476, 477, 478, 479, 480, 110, 482, 0,
/* 2330 */ 113, 22, 0, 468, 53, 22, 471, 37, 370, 0,
/* 2340 */ 475, 476, 477, 478, 479, 480, 0, 482, 0, 37,
/* 2350 */ 0, 383, 0, 37, 20, 22, 37, 37, 37, 112,
/* 2360 */ 468, 122, 0, 471, 147, 111, 0, 475, 476, 477,
/* 2370 */ 478, 479, 480, 49, 482, 123, 370, 111, 189, 411,
/* 2380 */ 37, 189, 22, 0, 216, 22, 189, 0, 212, 383,
/* 2390 */ 0, 192, 424, 37, 426, 189, 196, 189, 3, 50,
/* 2400 */ 370, 196, 33, 111, 295, 112, 112, 111, 191, 37,
/* 2410 */ 111, 109, 33, 383, 50, 198, 112, 411, 107, 33,
/* 2420 */ 112, 111, 370, 49, 33, 111, 49, 33, 111, 111,
/* 2430 */ 424, 33, 426, 79, 217, 383, 468, 112, 112, 471,
/* 2440 */ 37, 411, 111, 475, 476, 477, 478, 479, 480, 112,
/* 2450 */ 482, 3, 112, 33, 424, 37, 426, 295, 37, 37,
/* 2460 */ 37, 37, 37, 411, 295, 112, 49, 112, 33, 279,
/* 2470 */ 0, 0, 42, 33, 468, 49, 424, 471, 426, 111,
/* 2480 */ 109, 475, 476, 477, 478, 479, 480, 266, 482, 2,
/* 2490 */ 109, 22, 49, 49, 112, 22, 112, 112, 468, 243,
/* 2500 */ 370, 471, 0, 111, 111, 475, 476, 477, 478, 479,
/* 2510 */ 480, 111, 482, 383, 112, 111, 111, 111, 111, 246,
/* 2520 */ 468, 111, 111, 471, 112, 112, 111, 475, 476, 477,
/* 2530 */ 478, 479, 480, 42, 482, 193, 191, 49, 111, 111,
/* 2540 */ 121, 411, 111, 111, 37, 112, 112, 111, 111, 120,
/* 2550 */ 37, 112, 111, 37, 424, 37, 426, 111, 37, 112,
/* 2560 */ 37, 112, 112, 112, 37, 33, 111, 37, 111, 111,
/* 2570 */ 22, 73, 370, 72, 37, 37, 134, 123, 122, 134,
/* 2580 */ 37, 37, 37, 37, 37, 383, 134, 134, 37, 370,
/* 2590 */ 37, 37, 37, 79, 105, 105, 79, 33, 468, 37,
/* 2600 */ 37, 471, 383, 37, 22, 475, 476, 477, 478, 479,
/* 2610 */ 480, 370, 482, 411, 37, 37, 37, 37, 79, 22,
/* 2620 */ 37, 37, 37, 0, 383, 37, 424, 37, 426, 37,
/* 2630 */ 411, 42, 51, 0, 0, 37, 42, 37, 51, 0,
/* 2640 */ 37, 42, 51, 424, 51, 426, 42, 0, 370, 37,
/* 2650 */ 37, 0, 411, 22, 33, 538, 20, 22, 21, 538,
/* 2660 */ 22, 383, 22, 21, 538, 424, 538, 426, 538, 538,
/* 2670 */ 468, 538, 538, 471, 538, 538, 538, 475, 476, 477,
/* 2680 */ 478, 479, 480, 538, 482, 538, 538, 468, 538, 411,
/* 2690 */ 471, 538, 538, 538, 475, 476, 477, 478, 479, 480,
/* 2700 */ 538, 482, 424, 538, 426, 538, 538, 538, 538, 468,
/* 2710 */ 538, 370, 471, 538, 538, 538, 475, 476, 477, 478,
/* 2720 */ 479, 480, 538, 482, 383, 538, 538, 538, 538, 538,
/* 2730 */ 538, 370, 538, 538, 538, 538, 538, 538, 538, 538,
/* 2740 */ 538, 538, 538, 538, 383, 538, 468, 538, 538, 471,
/* 2750 */ 370, 538, 411, 475, 476, 477, 478, 479, 480, 538,
/* 2760 */ 482, 538, 538, 383, 538, 424, 538, 426, 538, 538,
/* 2770 */ 538, 538, 411, 538, 538, 538, 538, 538, 538, 538,
/* 2780 */ 538, 538, 538, 538, 538, 424, 538, 426, 538, 538,
/* 2790 */ 538, 411, 538, 538, 538, 538, 538, 538, 538, 538,
/* 2800 */ 538, 538, 538, 538, 424, 538, 426, 538, 538, 468,
/* 2810 */ 538, 538, 471, 538, 538, 538, 475, 476, 477, 478,
/* 2820 */ 479, 480, 538, 482, 538, 538, 538, 538, 538, 468,
/* 2830 */ 538, 538, 471, 538, 370, 538, 475, 476, 477, 478,
/* 2840 */ 479, 480, 538, 482, 538, 538, 538, 383, 468, 538,
/* 2850 */ 538, 471, 370, 538, 538, 475, 476, 477, 478, 479,
/* 2860 */ 480, 538, 482, 538, 538, 383, 538, 538, 538, 370,
/* 2870 */ 538, 538, 538, 538, 538, 411, 538, 538, 538, 538,
/* 2880 */ 538, 538, 383, 538, 538, 538, 538, 538, 424, 538,
/* 2890 */ 426, 538, 538, 411, 538, 538, 538, 538, 538, 538,
/* 2900 */ 538, 538, 538, 538, 538, 538, 424, 538, 426, 538,
/* 2910 */ 411, 538, 538, 538, 538, 538, 538, 538, 538, 538,
/* 2920 */ 538, 538, 538, 424, 538, 426, 538, 538, 538, 538,
/* 2930 */ 538, 538, 468, 538, 538, 471, 538, 538, 538, 475,
/* 2940 */ 476, 477, 478, 479, 480, 538, 482, 538, 538, 538,
/* 2950 */ 468, 538, 538, 471, 538, 538, 370, 475, 476, 477,
/* 2960 */ 478, 479, 480, 538, 482, 538, 538, 468, 538, 383,
/* 2970 */ 471, 538, 370, 538, 475, 476, 477, 478, 479, 480,
/* 2980 */ 538, 482, 538, 538, 538, 383, 538, 538, 538, 538,
/* 2990 */ 538, 538, 538, 538, 538, 370, 538, 411, 538, 538,
/* 3000 */ 538, 538, 538, 538, 538, 538, 538, 538, 383, 538,
/* 3010 */ 424, 538, 426, 411, 538, 538, 538, 538, 538, 538,
/* 3020 */ 538, 538, 538, 538, 538, 538, 424, 538, 426, 538,
/* 3030 */ 538, 538, 538, 538, 538, 538, 411, 538, 538, 538,
/* 3040 */ 538, 538, 538, 538, 538, 538, 538, 538, 538, 424,
/* 3050 */ 538, 426, 538, 538, 468, 538, 538, 471, 370, 538,
/* 3060 */ 538, 475, 476, 477, 478, 479, 480, 538, 482, 538,
/* 3070 */ 468, 383, 538, 471, 538, 538, 538, 475, 476, 477,
/* 3080 */ 478, 479, 480, 538, 482, 538, 538, 538, 538, 538,
/* 3090 */ 538, 538, 538, 468, 538, 538, 471, 538, 538, 411,
/* 3100 */ 475, 476, 477, 478, 479, 480, 538, 482, 538, 538,
/* 3110 */ 538, 538, 424, 538, 426, 538, 538, 538, 538, 538,
/* 3120 */ 538, 538, 538, 538, 538, 538, 538, 538, 538, 538,
/* 3130 */ 538, 538, 538, 538, 538, 538, 538, 538, 538, 538,
/* 3140 */ 538, 538, 538, 538, 538, 538, 538, 538, 538, 538,
/* 3150 */ 538, 538, 538, 538, 538, 538, 468, 538, 538, 471,
/* 3160 */ 538, 538, 538, 475, 476, 477, 478, 479, 480, 538,
/* 3170 */ 482, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3180 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3190 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3200 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3210 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3220 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3230 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3240 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3250 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3260 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3270 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3280 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3290 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3300 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3310 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3320 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3330 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3340 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3350 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3360 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3370 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3380 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3390 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3400 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3410 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3420 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3430 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3440 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3450 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3460 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3470 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3480 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3490 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3500 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3510 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3520 */ 367, 367, 367, 367, 367, 367, 367, 367, 367, 367,
/* 3530 */ 367, 367, 367, 367, 367, 367, 367, 367,
};
#define YY_SHIFT_COUNT (917)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (2651)
static const unsigned short int yy_shift_ofst[] = {
/* 0 */ 508, 0, 253, 0, 507, 507, 507, 507, 507, 507,
/* 10 */ 507, 507, 507, 507, 507, 507, 760, 1013, 1013, 1266,
/* 20 */ 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013,
/* 30 */ 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013,
/* 40 */ 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013, 1013,
/* 50 */ 697, 942, 235, 576, 260, 495, 260, 260, 576, 576,
/* 60 */ 260, 1383, 260, 252, 1383, 73, 260, 20, 1520, 916,
/* 70 */ 126, 126, 1520, 1520, 35, 35, 916, 525, 43, 146,
/* 80 */ 146, 1, 126, 126, 126, 126, 126, 126, 126, 126,
/* 90 */ 126, 126, 126, 263, 281, 126, 126, 139, 20, 126,
/* 100 */ 263, 126, 20, 126, 126, 20, 126, 126, 20, 126,
/* 110 */ 20, 20, 20, 126, 330, 212, 212, 497, 1136, 13,
/* 120 */ 312, 249, 249, 249, 249, 249, 249, 249, 249, 249,
/* 130 */ 249, 249, 249, 249, 249, 249, 249, 249, 249, 249,
/* 140 */ 573, 33, 525, 43, 1132, 1132, 1030, 665, 665, 665,
/* 150 */ 510, 510, 203, 486, 1030, 139, 20, 121, 20, 4,
/* 160 */ 20, 20, 399, 20, 399, 399, 585, 709, 250, 1476,
/* 170 */ 1476, 1476, 1476, 1476, 1476, 753, 2217, 208, 339, 520,
/* 180 */ 520, 717, 164, 424, 82, 565, 138, 148, 662, 30,
/* 190 */ 30, 546, 898, 959, 524, 524, 524, 737, 953, 524,
/* 200 */ 894, 1166, 1106, 1101, 1162, 1166, 1166, 1234, 877, 877,
/* 210 */ 1090, 1346, 1283, 486, 1378, 1623, 1636, 1657, 1458, 139,
/* 220 */ 1657, 139, 1488, 1678, 1680, 1659, 1680, 1659, 1524, 1678,
/* 230 */ 1680, 1678, 1659, 1524, 1524, 1524, 1625, 1628, 1678, 1678,
/* 240 */ 1633, 1678, 1678, 1678, 1724, 1697, 1724, 1697, 1657, 139,
/* 250 */ 139, 1736, 139, 1745, 1747, 139, 1745, 139, 1752, 139,
/* 260 */ 139, 1678, 139, 1724, 20, 20, 20, 20, 20, 20,
/* 270 */ 20, 20, 20, 20, 20, 1678, 709, 709, 1724, 399,
/* 280 */ 399, 399, 1568, 1737, 1657, 330, 1827, 1647, 1653, 1736,
/* 290 */ 330, 1378, 1678, 399, 1569, 1578, 1569, 1578, 1571, 1682,
/* 300 */ 1569, 1572, 1580, 1598, 1378, 1606, 1608, 1579, 1584, 1585,
/* 310 */ 1680, 1882, 1782, 1616, 1745, 330, 330, 1797, 1578, 399,
/* 320 */ 399, 399, 399, 1578, 399, 1742, 330, 585, 330, 1680,
/* 330 */ 399, 399, 399, 399, 399, 399, 399, 399, 399, 399,
/* 340 */ 399, 399, 399, 399, 399, 399, 399, 399, 399, 399,
/* 350 */ 399, 399, 1843, 399, 1678, 330, 1946, 1953, 1724, 3171,
/* 360 */ 3171, 3171, 3171, 3171, 3171, 3171, 3171, 3171, 38, 759,
/* 370 */ 66, 1096, 441, 36, 851, 300, 555, 684, 70, 392,
/* 380 */ 952, 952, 952, 952, 952, 952, 952, 952, 952, 1022,
/* 390 */ 516, 160, 578, 578, 708, 671, 690, 661, 580, 572,
/* 400 */ 687, 444, 1010, 1138, 440, 3, 1115, 773, 3, 3,
/* 410 */ 3, 853, 853, 943, 1300, 1313, 1370, 1365, 1279, 1373,
/* 420 */ 1305, 1312, 1323, 1327, 1372, 1371, 1429, 1446, 1447, 1456,
/* 430 */ 1463, 563, 1374, 1380, 1352, 1388, 1424, 1426, 1438, 1324,
/* 440 */ 327, 1281, 1448, 1481, 1454, 803, 1455, 1423, 1457, 1461,
/* 450 */ 1464, 1508, 1510, 1486, 1492, 1541, 1552, 1558, 1567, 1570,
/* 460 */ 1574, 1576, 1583, 1586, 1506, 1519, 1526, 1535, 1544, 1548,
/* 470 */ 1347, 1427, 1452, 1459, 1611, 1612, 1433, 1621, 2015, 2021,
/* 480 */ 2022, 1978, 2024, 1988, 1792, 1990, 1991, 1993, 1798, 2033,
/* 490 */ 1997, 1998, 1802, 2000, 2038, 1805, 2040, 2004, 2042, 2007,
/* 500 */ 2043, 2023, 2047, 2011, 1820, 2050, 1835, 2053, 1837, 1838,
/* 510 */ 1844, 1848, 2058, 2060, 2062, 1858, 1860, 2065, 2066, 1913,
/* 520 */ 2019, 2020, 2070, 2034, 2072, 2074, 2041, 2026, 2075, 2037,
/* 530 */ 2079, 2044, 2088, 2090, 2091, 2045, 2092, 2093, 2095, 2097,
/* 540 */ 2098, 2099, 1928, 2064, 2102, 1932, 2105, 2107, 2108, 2118,
/* 550 */ 2119, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127, 2128,
/* 560 */ 2134, 2135, 2136, 2138, 2139, 2081, 2131, 2087, 2140, 2141,
/* 570 */ 2142, 2143, 2144, 2145, 2147, 2148, 2129, 2149, 1999, 2154,
/* 580 */ 2002, 2156, 2008, 2158, 2159, 2146, 2112, 2151, 2113, 2164,
/* 590 */ 2100, 2166, 2104, 2153, 2167, 2106, 2175, 2111, 2177, 2178,
/* 600 */ 2155, 2132, 2137, 2180, 2161, 2133, 2157, 2181, 2163, 2160,
/* 610 */ 2165, 2182, 2173, 2185, 2150, 2170, 2186, 2171, 2183, 2172,
/* 620 */ 2184, 2188, 2201, 2195, 2191, 2193, 2196, 2213, 2204, 2027,
/* 630 */ 2215, 2171, 2198, 2249, 2250, 2187, 2251, 2253, 2218, 2203,
/* 640 */ 2214, 2258, 2222, 2212, 2223, 2264, 2229, 2216, 2227, 2271,
/* 650 */ 2236, 2230, 2232, 2283, 2284, 2285, 2286, 2287, 2288, 2174,
/* 660 */ 2179, 2257, 2268, 2295, 2260, 2261, 2262, 2263, 2265, 2267,
/* 670 */ 2269, 2270, 2272, 2275, 2277, 2274, 2276, 2279, 2282, 2305,
/* 680 */ 2290, 2315, 2298, 2329, 2309, 2281, 2332, 2313, 2300, 2339,
/* 690 */ 2346, 2348, 2312, 2350, 2316, 2352, 2333, 2334, 2319, 2320,
/* 700 */ 2321, 2247, 2254, 2366, 2189, 2239, 2252, 2266, 2168, 2171,
/* 710 */ 2324, 2362, 2192, 2343, 2360, 2383, 2176, 2363, 2197, 2199,
/* 720 */ 2387, 2390, 2206, 2200, 2208, 2205, 2395, 2369, 2109, 2292,
/* 730 */ 2293, 2296, 2294, 2356, 2372, 2299, 2349, 2302, 2364, 2311,
/* 740 */ 2304, 2379, 2386, 2308, 2310, 2314, 2317, 2325, 2391, 2374,
/* 750 */ 2377, 2318, 2394, 2162, 2354, 2326, 2398, 2331, 2403, 2337,
/* 760 */ 2340, 2448, 2420, 2169, 2418, 2421, 2422, 2423, 2424, 2425,
/* 770 */ 2353, 2355, 2417, 2190, 2435, 2426, 2470, 2471, 2368, 2430,
/* 780 */ 2440, 2371, 2221, 2381, 2487, 2469, 2256, 2382, 2384, 2392,
/* 790 */ 2393, 2400, 2404, 2405, 2385, 2443, 2406, 2407, 2444, 2402,
/* 800 */ 2473, 2273, 2410, 2412, 2413, 2411, 2415, 2342, 2427, 2502,
/* 810 */ 2491, 2345, 2428, 2429, 2171, 2488, 2431, 2432, 2433, 2436,
/* 820 */ 2437, 2419, 2434, 2507, 2513, 2441, 2439, 2516, 2446, 2447,
/* 830 */ 2518, 2392, 2449, 2521, 2393, 2450, 2523, 2400, 2451, 2527,
/* 840 */ 2404, 2442, 2445, 2452, 2453, 2454, 2456, 2455, 2532, 2457,
/* 850 */ 2530, 2458, 2532, 2532, 2548, 2498, 2501, 2537, 2538, 2543,
/* 860 */ 2544, 2545, 2546, 2547, 2551, 2553, 2554, 2555, 2514, 2489,
/* 870 */ 2517, 2490, 2564, 2562, 2563, 2566, 2582, 2577, 2578, 2579,
/* 880 */ 2539, 2275, 2580, 2277, 2583, 2584, 2585, 2588, 2597, 2590,
/* 890 */ 2623, 2592, 2581, 2589, 2633, 2598, 2587, 2594, 2634, 2600,
/* 900 */ 2591, 2599, 2639, 2603, 2593, 2604, 2647, 2612, 2613, 2651,
/* 910 */ 2631, 2621, 2635, 2637, 2638, 2640, 2642, 2636,
};
#define YY_REDUCE_COUNT (367)
#define YY_REDUCE_MIN (-501)
#define YY_REDUCE_MAX (2688)
static const short yy_reduce_ofst[] = {
/* 0 */ 975, -324, 190, 406, 426, 506, 657, 703, 910, 956,
/* 10 */ 619, 872, 1069, 1208, 1322, 1342, 171, 1362, 1381, 1462,
/* 20 */ 1494, 1521, 1605, 1635, 1726, 1746, 1763, 1846, 1240, 1865,
/* 30 */ 1892, 1968, 2006, 2030, 2052, 2130, 2202, 2219, 2241, 2278,
/* 40 */ 2341, 2361, 2380, 2464, 2482, 2499, 2586, 2602, 2625, 2688,
/* 50 */ -326, -342, -423, -102, 527, 530, 543, 693, -178, 206,
/* 60 */ 796, -398, -499, -367, -383, -501, 23, 412, -252, 50,
/* 70 */ -53, 198, -137, -43, -374, -274, -421, -254, -248, -93,
/* 80 */ 95, 262, -76, 410, 540, 542, -115, -105, 570, 702,
/* 90 */ 720, 770, 176, 64, 404, 774, 831, -337, 132, 833,
/* 100 */ 222, 902, 469, 907, 909, 587, 925, 930, 731, 933,
/* 110 */ 653, 766, 658, 955, 45, -58, -58, -189, 637, -494,
/* 120 */ 92, -323, -20, 14, 409, 468, 568, 719, 721, 735,
/* 130 */ 749, 817, 821, 825, 829, 835, 878, 882, 929, 940,
/* 140 */ 42, -357, 638, 654, 849, 863, 885, -357, 47, 437,
/* 150 */ 445, 832, 905, 273, 966, 939, -407, 675, 696, 837,
/* 160 */ 906, 407, 109, 949, 934, 947, 965, 1020, 449, 523,
/* 170 */ 558, 626, 718, 791, 449, 983, 526, 1043, 964, 927,
/* 180 */ 927, 995, 976, 1054, 1057, 1188, 927, 1179, 1179, 1194,
/* 190 */ 1229, 1192, 1249, 1196, 1111, 1112, 1113, 1203, 1179, 1128,
/* 200 */ 1253, 1216, 1271, 1232, 1202, 1221, 1222, 1179, 1153, 1154,
/* 210 */ 1139, 1170, 1156, 1268, 1223, 1205, 1211, 1231, 1224, 1290,
/* 220 */ 1233, 1303, 1245, 1317, 1320, 1273, 1326, 1274, 1284, 1331,
/* 230 */ 1338, 1341, 1291, 1296, 1297, 1298, 1335, 1343, 1354, 1356,
/* 240 */ 1348, 1358, 1360, 1361, 1375, 1376, 1377, 1379, 1289, 1363,
/* 250 */ 1366, 1333, 1369, 1385, 1321, 1384, 1386, 1393, 1334, 1394,
/* 260 */ 1396, 1407, 1400, 1401, 1392, 1395, 1397, 1398, 1403, 1412,
/* 270 */ 1414, 1415, 1416, 1417, 1418, 1413, 1421, 1439, 1468, 1410,
/* 280 */ 1422, 1430, 1387, 1391, 1390, 1466, 1406, 1409, 1419, 1442,
/* 290 */ 1480, 1425, 1489, 1465, 1355, 1434, 1364, 1437, 1367, 1382,
/* 300 */ 1389, 1405, 1399, 1408, 1444, 1402, 1404, 1357, 1428, 1420,
/* 310 */ 1517, 1443, 1411, 1436, 1527, 1523, 1530, 1432, 1471, 1501,
/* 320 */ 1502, 1503, 1504, 1487, 1507, 1497, 1547, 1536, 1559, 1566,
/* 330 */ 1528, 1529, 1531, 1533, 1534, 1537, 1539, 1540, 1542, 1553,
/* 340 */ 1554, 1555, 1556, 1557, 1560, 1561, 1562, 1563, 1582, 1587,
/* 350 */ 1588, 1589, 1545, 1590, 1600, 1594, 1618, 1617, 1619, 1543,
/* 360 */ 1546, 1565, 1577, 1597, 1599, 1604, 1620, 1651,
};
static const YYACTIONTYPE yy_default[] = {
/* 0 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 10 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 20 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 30 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 40 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 50 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 60 */ 2454, 2100, 2100, 2417, 2100, 2100, 2100, 2100, 2100, 2100,
/* 70 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2424, 2100, 2100,
/* 80 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 90 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2200, 2100, 2100,
/* 100 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 110 */ 2100, 2100, 2100, 2100, 2198, 2703, 2100, 2100, 2100, 2732,
/* 120 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 130 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 140 */ 2100, 2715, 2100, 2100, 2171, 2171, 2100, 2715, 2715, 2715,
/* 150 */ 2675, 2675, 2198, 2100, 2100, 2200, 2100, 2496, 2100, 2100,
/* 160 */ 2100, 2100, 2100, 2100, 2100, 2100, 2335, 2130, 2494, 2100,
/* 170 */ 2100, 2100, 2100, 2100, 2100, 2100, 2480, 2100, 2761, 2707,
/* 180 */ 2708, 2823, 2100, 2764, 2726, 2100, 2721, 2100, 2100, 2100,
/* 190 */ 2100, 2429, 2100, 2751, 2100, 2100, 2100, 2100, 2100, 2100,
/* 200 */ 2100, 2100, 2100, 2283, 2474, 2100, 2100, 2100, 2100, 2100,
/* 210 */ 2807, 2705, 2745, 2100, 2755, 2100, 2521, 2100, 2510, 2200,
/* 220 */ 2100, 2200, 2467, 2412, 2100, 2422, 2100, 2422, 2419, 2100,
/* 230 */ 2100, 2100, 2422, 2419, 2419, 2419, 2272, 2268, 2100, 2100,
/* 240 */ 2266, 2100, 2100, 2100, 2100, 2155, 2100, 2155, 2100, 2200,
/* 250 */ 2200, 2100, 2200, 2100, 2100, 2200, 2100, 2200, 2100, 2200,
/* 260 */ 2200, 2100, 2200, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 270 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 280 */ 2100, 2100, 2508, 2490, 2100, 2198, 2100, 2478, 2476, 2100,
/* 290 */ 2198, 2755, 2100, 2100, 2777, 2772, 2777, 2772, 2791, 2787,
/* 300 */ 2777, 2796, 2793, 2757, 2755, 2738, 2734, 2826, 2813, 2809,
/* 310 */ 2100, 2100, 2743, 2741, 2100, 2198, 2198, 2100, 2772, 2100,
/* 320 */ 2100, 2100, 2100, 2772, 2100, 2100, 2198, 2100, 2198, 2100,
/* 330 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 340 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 350 */ 2100, 2100, 2299, 2100, 2100, 2198, 2100, 2139, 2100, 2469,
/* 360 */ 2499, 2450, 2450, 2338, 2338, 2338, 2201, 2105, 2100, 2100,
/* 370 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 380 */ 2790, 2789, 2626, 2100, 2679, 2678, 2677, 2668, 2625, 2295,
/* 390 */ 2100, 2100, 2624, 2623, 2100, 2100, 2100, 2100, 2100, 2100,
/* 400 */ 2100, 2100, 2100, 2100, 2100, 2617, 2100, 2100, 2618, 2616,
/* 410 */ 2615, 2441, 2440, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 420 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 430 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 440 */ 2810, 2814, 2100, 2704, 2100, 2100, 2100, 2597, 2100, 2100,
/* 450 */ 2100, 2100, 2100, 2565, 2560, 2551, 2542, 2557, 2548, 2536,
/* 460 */ 2554, 2545, 2533, 2530, 2100, 2100, 2100, 2100, 2100, 2100,
/* 470 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 480 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 490 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 500 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 510 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2418,
/* 520 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 530 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 540 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 550 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 560 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 570 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 580 */ 2100, 2100, 2433, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 590 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 600 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 610 */ 2100, 2100, 2100, 2100, 2100, 2100, 2144, 2604, 2100, 2100,
/* 620 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 630 */ 2100, 2607, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 640 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 650 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 660 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 670 */ 2100, 2100, 2100, 2244, 2243, 2100, 2100, 2100, 2100, 2100,
/* 680 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 690 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 700 */ 2100, 2608, 2100, 2100, 2100, 2494, 2100, 2100, 2100, 2599,
/* 710 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 720 */ 2100, 2100, 2100, 2100, 2100, 2100, 2806, 2758, 2100, 2100,
/* 730 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 740 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 750 */ 2597, 2100, 2788, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 760 */ 2804, 2100, 2808, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 770 */ 2714, 2710, 2100, 2100, 2706, 2100, 2100, 2100, 2100, 2100,
/* 780 */ 2665, 2100, 2100, 2100, 2699, 2100, 2100, 2100, 2100, 2334,
/* 790 */ 2333, 2332, 2331, 2100, 2100, 2100, 2100, 2100, 2100, 2608,
/* 800 */ 2100, 2611, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 810 */ 2100, 2100, 2100, 2100, 2596, 2100, 2650, 2649, 2100, 2100,
/* 820 */ 2100, 2100, 2100, 2100, 2100, 2328, 2100, 2100, 2100, 2100,
/* 830 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 840 */ 2100, 2312, 2310, 2309, 2308, 2100, 2305, 2100, 2345, 2100,
/* 850 */ 2100, 2100, 2341, 2340, 2100, 2100, 2100, 2100, 2100, 2100,
/* 860 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 870 */ 2100, 2100, 2219, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 880 */ 2100, 2211, 2100, 2210, 2100, 2100, 2100, 2100, 2100, 2100,
/* 890 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 900 */ 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100, 2100,
/* 910 */ 2100, 2129, 2100, 2100, 2100, 2100, 2100, 2100,
};
/********** 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[] = {
2022-04-22 10:23:37 +00:00
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 */
2023-08-24 07:54:10 +00:00
0, /* NK_COMMA => nothing */
0, /* HOST => nothing */
2022-04-22 10:23:37 +00:00
0, /* USER => nothing */
2022-06-22 08:35:14 +00:00
0, /* ENABLE => nothing */
0, /* NK_INTEGER => nothing */
0, /* SYSINFO => nothing */
2023-08-24 07:54:10 +00:00
0, /* ADD => nothing */
2022-04-22 10:23:37 +00:00
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 */
2023-03-28 10:43:58 +00:00
0, /* WITH => nothing */
2022-04-22 10:23:37 +00:00
0, /* DNODE => nothing */
0, /* PORT => nothing */
0, /* DNODES => nothing */
2023-05-09 11:19:14 +00:00
0, /* RESTORE => nothing */
0, /* NK_IPTOKEN => nothing */
0, /* FORCE => nothing */
2023-05-16 01:50:10 +00:00
0, /* UNSAFE => nothing */
2023-12-18 08:34:31 +00:00
0, /* CLUSTER => nothing */
2022-04-22 10:23:37 +00:00
0, /* LOCAL => nothing */
0, /* QNODE => nothing */
0, /* BNODE => nothing */
0, /* SNODE => nothing */
0, /* MNODE => nothing */
2023-05-09 11:19:14 +00:00
0, /* VNODE => nothing */
2022-04-22 10:23:37 +00:00
0, /* DATABASE => nothing */
0, /* USE => nothing */
2022-07-06 05:53:47 +00:00
0, /* FLUSH => nothing */
2022-07-11 02:53:06 +00:00
0, /* TRIM => nothing */
2024-04-08 02:55:47 +00:00
0, /* S3MIGRATE => nothing */
2022-12-27 03:11:02 +00:00
0, /* COMPACT => nothing */
2022-04-22 10:23:37 +00:00
0, /* IF => nothing */
0, /* NOT => nothing */
0, /* EXISTS => nothing */
2022-04-27 10:18:37 +00:00
0, /* BUFFER => nothing */
0, /* CACHEMODEL => nothing */
0, /* CACHESIZE => nothing */
2022-04-22 10:23:37 +00:00
0, /* COMP => nothing */
2022-06-15 05:49:29 +00:00
0, /* DURATION => nothing */
2022-04-22 10:23:37 +00:00
0, /* NK_VARIABLE => nothing */
0, /* MAXROWS => nothing */
0, /* MINROWS => nothing */
0, /* KEEP => nothing */
2022-04-27 10:18:37 +00:00
0, /* PAGES => nothing */
0, /* PAGESIZE => nothing */
2022-09-13 06:19:50 +00:00
0, /* TSDB_PAGESIZE => nothing */
2022-04-22 10:23:37 +00:00
0, /* PRECISION => nothing */
0, /* REPLICA => nothing */
0, /* VGROUPS => nothing */
0, /* SINGLE_STABLE => nothing */
0, /* RETENTIONS => nothing */
2022-05-25 13:20:11 +00:00
0, /* SCHEMALESS => nothing */
2022-07-27 03:55:19 +00:00
0, /* WAL_LEVEL => nothing */
0, /* WAL_FSYNC_PERIOD => nothing */
2022-07-25 13:09:06 +00:00
0, /* WAL_RETENTION_PERIOD => nothing */
0, /* WAL_RETENTION_SIZE => nothing */
0, /* WAL_ROLL_PERIOD => nothing */
0, /* WAL_SEGMENT_SIZE => nothing */
2022-09-13 06:19:50 +00:00
0, /* STT_TRIGGER => nothing */
0, /* TABLE_PREFIX => nothing */
0, /* TABLE_SUFFIX => nothing */
2024-04-08 02:55:47 +00:00
0, /* S3_CHUNKSIZE => nothing */
0, /* S3_KEEPLOCAL => nothing */
0, /* S3_COMPACT => nothing */
0, /* KEEP_TIME_OFFSET => nothing */
2022-04-22 10:23:37 +00:00
0, /* NK_COLON => nothing */
0, /* BWLIMIT => nothing */
0, /* START => nothing */
0, /* TIMESTAMP => nothing */
319, /* END => ABORT */
2022-04-22 10:23:37 +00:00
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 */
2024-01-25 03:20:04 +00:00
0, /* PRIMARY => nothing */
319, /* KEY => ABORT */
2022-04-22 10:23:37 +00:00
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 */
Feature/3.0 geometry (#21037) * Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far. * add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling * change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh * Add a function MakePoint() and introduce a lib geometry * implement sql functions GeomFromText() and AsText() * Use GEOS *_r funcions instead for thread safety * Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT. Add geosWrapper to wrap the basic GEOS functions for TDEngine. * refactor AsText and MakePoint functions to be like GeomFromText * Show WKT when print geometry data in screen Dump hex data when dump geometry data in a file * define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues. * set number of decimals of WKT to 6 * Implement SQL function Intersects() * refactor geometry sql functions * Add geosErrMsgeHandler() to get the GEOS error detail * use threadlocal to instantiate SGeosContext call destroyGeosContext() only if the thread exists * remove SGeosContext *context param for all geometry functions since we use thread local one, so that all caller do not need to know the context. * Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance. * rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn * Add prefix "ST_" for all geometry functions * move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util, so that all unit test tools can compile * Add unit test for geometry lib, only test MakePoint so far * refactor and enhance existing cases in geomFuncTest * implement NULL type and NULL value test for geomFuncTest * add test on geomFromText() * add unit test on AsText() in geomFuncTest * combine some makePointFunction test items * add intersectsFunctionTwoColumns test refactor on callGeomFromTextWrapper functions * enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content * add more cases into intersectsFunction test * Add basic test on geometry in system test * Add ST_GeomFromText and ST_AsText function test in system test on geometry * add ST_Intersects function test in system test on geometry * support to check expectedErrno in system test on geometry * adjust geomTest unit test and geometry system test * add geometry data type and functions in doc english version * implement touchesFunction() in geometry lib refactor geometry relation functions model * separate gemFuncTest into several src files * add unit test on touchesFunction * support sql function ST_Touches() add system test on ST_Touches * add docs for ST_Touches() * Add ST_Contains() * Add ST_Covers() * Add ST_Equals() * add swapAllowed param for geomRelationFunction() read geom2 earlier intead of at doGeosRelation() * Add ST_ContainsProperly() * build on windows * Merge from 3.0 to 3.0_geometry * change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility * change '\\NULL' to 'NULL' back in shellDumpFieldToFile() * add /usr/local/include into include directory * add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 07:36:46 +00:00
0, /* GEOMETRY => nothing */
2022-04-22 10:23:37 +00:00
0, /* DECIMAL => nothing */
0, /* COMMENT => nothing */
2022-06-17 09:27:42 +00:00
0, /* MAX_DELAY => nothing */
0, /* WATERMARK => nothing */
2022-04-27 10:18:37 +00:00
0, /* ROLLUP => nothing */
0, /* TTL => nothing */
0, /* SMA => nothing */
2022-12-06 08:07:11 +00:00
0, /* DELETE_MARK => nothing */
2022-06-17 09:27:42 +00:00
0, /* FIRST => nothing */
0, /* LAST => nothing */
2022-04-22 10:23:37 +00:00
0, /* SHOW => nothing */
0, /* PRIVILEGES => nothing */
2022-04-22 10:23:37 +00:00
0, /* DATABASES => nothing */
0, /* TABLES => nothing */
0, /* STABLES => nothing */
0, /* MNODES => nothing */
0, /* QNODES => nothing */
0, /* ARBGROUPS => nothing */
2022-04-22 10:23:37 +00:00
0, /* FUNCTIONS => nothing */
0, /* INDEXES => nothing */
0, /* ACCOUNTS => nothing */
0, /* APPS => nothing */
0, /* CONNECTIONS => nothing */
2022-08-11 07:37:26 +00:00
0, /* LICENCES => nothing */
2022-04-22 10:23:37 +00:00
0, /* GRANTS => nothing */
2024-01-18 07:23:38 +00:00
0, /* FULL => nothing */
2024-01-31 05:44:00 +00:00
0, /* LOGS => nothing */
2024-01-18 09:49:11 +00:00
0, /* MACHINES => nothing */
2022-04-22 10:23:37 +00:00
0, /* QUERIES => nothing */
0, /* SCORES => nothing */
0, /* TOPICS => nothing */
0, /* VARIABLES => nothing */
0, /* BNODES => nothing */
0, /* SNODES => nothing */
0, /* TRANSACTIONS => nothing */
0, /* DISTRIBUTED => nothing */
0, /* CONSUMERS => nothing */
0, /* SUBSCRIPTIONS => nothing */
0, /* VNODES => nothing */
0, /* ALIVE => nothing */
2023-10-09 09:19:36 +00:00
0, /* VIEWS => nothing */
319, /* VIEW => ABORT */
2023-11-16 03:41:02 +00:00
0, /* COMPACTS => nothing */
0, /* NORMAL => nothing */
0, /* CHILD => nothing */
2022-04-22 10:23:37 +00:00
0, /* LIKE => nothing */
2022-11-10 09:22:13 +00:00
0, /* TBNAME => nothing */
0, /* QTAGS => nothing */
0, /* AS => nothing */
0, /* SYSTEM => nothing */
2023-11-20 08:36:13 +00:00
0, /* TSMA => nothing */
2022-04-22 10:23:37 +00:00
0, /* INTERVAL => nothing */
2023-11-20 08:36:13 +00:00
0, /* TSMAS => nothing */
0, /* FUNCTION => nothing */
0, /* INDEX => nothing */
0, /* COUNT => nothing */
0, /* LAST_ROW => nothing */
2022-06-22 08:35:14 +00:00
0, /* META => nothing */
2023-06-30 08:57:29 +00:00
0, /* ONLY => nothing */
2023-06-30 11:36:39 +00:00
0, /* TOPIC => nothing */
0, /* CONSUMER => nothing */
0, /* GROUP => nothing */
2022-04-22 10:23:37 +00:00
0, /* DESC => nothing */
0, /* DESCRIBE => nothing */
0, /* RESET => nothing */
0, /* QUERY => nothing */
2022-04-27 10:18:37 +00:00
0, /* CACHE => nothing */
2022-04-22 10:23:37 +00:00
0, /* EXPLAIN => nothing */
0, /* ANALYZE => nothing */
0, /* VERBOSE => nothing */
0, /* NK_BOOL => nothing */
0, /* RATIO => nothing */
2022-06-17 09:27:42 +00:00
0, /* NK_FLOAT => nothing */
2022-04-22 10:23:37 +00:00
0, /* OUTPUTTYPE => nothing */
0, /* AGGREGATE => nothing */
0, /* BUFSIZE => nothing */
0, /* LANGUAGE => nothing */
0, /* REPLACE => nothing */
2022-04-22 10:23:37 +00:00
0, /* STREAM => nothing */
0, /* INTO => nothing */
0, /* PAUSE => nothing */
0, /* RESUME => nothing */
2022-04-22 10:23:37 +00:00
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 */
2022-04-22 10:23:37 +00:00
0, /* KILL => nothing */
0, /* CONNECTION => nothing */
0, /* TRANSACTION => nothing */
2022-06-07 03:53:32 +00:00
0, /* BALANCE => nothing */
2022-04-22 10:23:37 +00:00
0, /* VGROUP => nothing */
0, /* LEADER => nothing */
2022-06-07 03:53:32 +00:00
0, /* MERGE => nothing */
2022-04-22 10:23:37 +00:00
0, /* REDISTRIBUTE => nothing */
0, /* SPLIT => nothing */
2022-06-04 11:54:55 +00:00
0, /* DELETE => nothing */
2022-07-05 13:12:10 +00:00
0, /* INSERT => nothing */
2024-03-13 07:12:21 +00:00
0, /* NK_BIN => nothing */
0, /* NK_HEX => nothing */
2022-04-22 10:23:37 +00:00
0, /* NULL => nothing */
0, /* NK_QUESTION => nothing */
0, /* NK_ALIAS => nothing */
2022-04-22 10:23:37 +00:00
0, /* NK_ARROW => nothing */
0, /* ROWTS => nothing */
0, /* QSTART => nothing */
0, /* QEND => nothing */
0, /* QDURATION => nothing */
0, /* WSTART => nothing */
0, /* WEND => nothing */
2022-04-22 10:23:37 +00:00
0, /* WDURATION => nothing */
0, /* IROWTS => nothing */
0, /* ISFILLED => nothing */
2022-04-22 10:23:37 +00:00
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 */
2022-09-22 11:20:21 +00:00
0, /* CASE => nothing */
0, /* WHEN => nothing */
0, /* THEN => nothing */
0, /* ELSE => nothing */
2022-04-22 10:23:37 +00:00
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 */
2022-07-27 03:55:19 +00:00
0, /* IN => nothing */
2022-04-22 10:23:37 +00:00
0, /* JOIN => nothing */
0, /* INNER => nothing */
2023-11-27 12:01:00 +00:00
0, /* LEFT => nothing */
0, /* RIGHT => nothing */
0, /* OUTER => nothing */
319, /* SEMI => ABORT */
2023-11-27 12:01:00 +00:00
0, /* ANTI => nothing */
0, /* ASOF => nothing */
0, /* WINDOW => nothing */
0, /* WINDOW_OFFSET => nothing */
0, /* JLIMIT => nothing */
2022-04-22 10:23:37 +00:00
0, /* SELECT => nothing */
2023-08-16 06:28:39 +00:00
0, /* NK_HINT => nothing */
2022-04-22 10:23:37 +00:00
0, /* DISTINCT => nothing */
0, /* WHERE => nothing */
0, /* PARTITION => nothing */
0, /* BY => nothing */
0, /* SESSION => nothing */
0, /* STATE_WINDOW => nothing */
2022-12-08 01:36:37 +00:00
0, /* EVENT_WINDOW => nothing */
2024-01-17 06:22:19 +00:00
0, /* COUNT_WINDOW => nothing */
2022-04-22 10:23:37 +00:00
0, /* SLIDING => nothing */
0, /* FILL => nothing */
0, /* VALUE => nothing */
2023-02-03 07:37:04 +00:00
0, /* VALUE_F => nothing */
2022-04-22 10:23:37 +00:00
0, /* NONE => nothing */
0, /* PREV => nothing */
2023-02-03 07:37:04 +00:00
0, /* NULL_F => nothing */
2022-04-22 10:23:37 +00:00
0, /* LINEAR => nothing */
0, /* NEXT => nothing */
0, /* HAVING => nothing */
2022-06-19 11:39:12 +00:00
0, /* RANGE => nothing */
0, /* EVERY => nothing */
2022-04-22 10:23:37 +00:00
0, /* ORDER => nothing */
0, /* SLIMIT => nothing */
0, /* SOFFSET => nothing */
0, /* LIMIT => nothing */
0, /* OFFSET => nothing */
0, /* ASC => nothing */
0, /* NULLS => nothing */
2022-08-11 12:26:40 +00:00
0, /* ABORT => nothing */
319, /* AFTER => ABORT */
319, /* ATTACH => ABORT */
319, /* BEFORE => ABORT */
319, /* BEGIN => ABORT */
319, /* BITAND => ABORT */
319, /* BITNOT => ABORT */
319, /* BITOR => ABORT */
319, /* BLOCKS => ABORT */
319, /* CHANGE => ABORT */
319, /* COMMA => ABORT */
319, /* CONCAT => ABORT */
319, /* CONFLICT => ABORT */
319, /* COPY => ABORT */
319, /* DEFERRED => ABORT */
319, /* DELIMITERS => ABORT */
319, /* DETACH => ABORT */
319, /* DIVIDE => ABORT */
319, /* DOT => ABORT */
319, /* EACH => ABORT */
319, /* FAIL => ABORT */
319, /* FILE => ABORT */
319, /* FOR => ABORT */
319, /* GLOB => ABORT */
319, /* ID => ABORT */
319, /* IMMEDIATE => ABORT */
319, /* IMPORT => ABORT */
319, /* INITIALLY => ABORT */
319, /* INSTEAD => ABORT */
319, /* ISNULL => ABORT */
319, /* MODULES => ABORT */
319, /* NK_BITNOT => ABORT */
319, /* NK_SEMI => ABORT */
319, /* NOTNULL => ABORT */
319, /* OF => ABORT */
319, /* PLUS => ABORT */
319, /* PRIVILEGE => ABORT */
319, /* RAISE => ABORT */
319, /* RESTRICT => ABORT */
319, /* ROW => ABORT */
319, /* STAR => ABORT */
319, /* STATEMENT => ABORT */
319, /* STRICT => ABORT */
319, /* STRING => ABORT */
319, /* TIMES => ABORT */
319, /* VALUES => ABORT */
319, /* VARIABLE => ABORT */
319, /* 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
2022-03-10 07:36:06 +00:00
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.
*/
2022-03-10 07:36:06 +00:00
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",
2023-08-24 07:54:10 +00:00
/* 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",
2023-12-18 08:34:31 +00:00
/* 58 */ "CLUSTER",
/* 59 */ "LOCAL",
/* 60 */ "QNODE",
/* 61 */ "BNODE",
/* 62 */ "SNODE",
/* 63 */ "MNODE",
/* 64 */ "VNODE",
/* 65 */ "DATABASE",
/* 66 */ "USE",
/* 67 */ "FLUSH",
/* 68 */ "TRIM",
2024-04-08 02:55:47 +00:00
/* 69 */ "S3MIGRATE",
/* 70 */ "COMPACT",
/* 71 */ "IF",
/* 72 */ "NOT",
/* 73 */ "EXISTS",
/* 74 */ "BUFFER",
/* 75 */ "CACHEMODEL",
/* 76 */ "CACHESIZE",
/* 77 */ "COMP",
/* 78 */ "DURATION",
/* 79 */ "NK_VARIABLE",
/* 80 */ "MAXROWS",
/* 81 */ "MINROWS",
/* 82 */ "KEEP",
/* 83 */ "PAGES",
/* 84 */ "PAGESIZE",
/* 85 */ "TSDB_PAGESIZE",
/* 86 */ "PRECISION",
/* 87 */ "REPLICA",
/* 88 */ "VGROUPS",
/* 89 */ "SINGLE_STABLE",
/* 90 */ "RETENTIONS",
/* 91 */ "SCHEMALESS",
/* 92 */ "WAL_LEVEL",
/* 93 */ "WAL_FSYNC_PERIOD",
/* 94 */ "WAL_RETENTION_PERIOD",
/* 95 */ "WAL_RETENTION_SIZE",
/* 96 */ "WAL_ROLL_PERIOD",
/* 97 */ "WAL_SEGMENT_SIZE",
/* 98 */ "STT_TRIGGER",
/* 99 */ "TABLE_PREFIX",
/* 100 */ "TABLE_SUFFIX",
/* 101 */ "S3_CHUNKSIZE",
/* 102 */ "S3_KEEPLOCAL",
/* 103 */ "S3_COMPACT",
/* 104 */ "KEEP_TIME_OFFSET",
/* 105 */ "NK_COLON",
/* 106 */ "BWLIMIT",
/* 107 */ "START",
/* 108 */ "TIMESTAMP",
/* 109 */ "END",
/* 110 */ "TABLE",
/* 111 */ "NK_LP",
/* 112 */ "NK_RP",
/* 113 */ "STABLE",
/* 114 */ "COLUMN",
/* 115 */ "MODIFY",
/* 116 */ "RENAME",
/* 117 */ "TAG",
/* 118 */ "SET",
/* 119 */ "NK_EQ",
/* 120 */ "USING",
/* 121 */ "TAGS",
/* 122 */ "PRIMARY",
/* 123 */ "KEY",
/* 124 */ "BOOL",
/* 125 */ "TINYINT",
/* 126 */ "SMALLINT",
/* 127 */ "INT",
/* 128 */ "INTEGER",
/* 129 */ "BIGINT",
/* 130 */ "FLOAT",
/* 131 */ "DOUBLE",
/* 132 */ "BINARY",
/* 133 */ "NCHAR",
/* 134 */ "UNSIGNED",
/* 135 */ "JSON",
/* 136 */ "VARCHAR",
/* 137 */ "MEDIUMBLOB",
/* 138 */ "BLOB",
/* 139 */ "VARBINARY",
/* 140 */ "GEOMETRY",
/* 141 */ "DECIMAL",
/* 142 */ "COMMENT",
/* 143 */ "MAX_DELAY",
/* 144 */ "WATERMARK",
/* 145 */ "ROLLUP",
/* 146 */ "TTL",
/* 147 */ "SMA",
/* 148 */ "DELETE_MARK",
/* 149 */ "FIRST",
/* 150 */ "LAST",
/* 151 */ "SHOW",
/* 152 */ "PRIVILEGES",
/* 153 */ "DATABASES",
/* 154 */ "TABLES",
/* 155 */ "STABLES",
/* 156 */ "MNODES",
/* 157 */ "QNODES",
/* 158 */ "ARBGROUPS",
/* 159 */ "FUNCTIONS",
/* 160 */ "INDEXES",
/* 161 */ "ACCOUNTS",
/* 162 */ "APPS",
/* 163 */ "CONNECTIONS",
/* 164 */ "LICENCES",
/* 165 */ "GRANTS",
/* 166 */ "FULL",
/* 167 */ "LOGS",
/* 168 */ "MACHINES",
/* 169 */ "QUERIES",
/* 170 */ "SCORES",
/* 171 */ "TOPICS",
/* 172 */ "VARIABLES",
/* 173 */ "BNODES",
/* 174 */ "SNODES",
/* 175 */ "TRANSACTIONS",
/* 176 */ "DISTRIBUTED",
/* 177 */ "CONSUMERS",
/* 178 */ "SUBSCRIPTIONS",
/* 179 */ "VNODES",
/* 180 */ "ALIVE",
/* 181 */ "VIEWS",
/* 182 */ "VIEW",
/* 183 */ "COMPACTS",
/* 184 */ "NORMAL",
/* 185 */ "CHILD",
/* 186 */ "LIKE",
/* 187 */ "TBNAME",
/* 188 */ "QTAGS",
/* 189 */ "AS",
/* 190 */ "SYSTEM",
/* 191 */ "INDEX",
/* 192 */ "FUNCTION",
/* 193 */ "INTERVAL",
/* 194 */ "COUNT",
/* 195 */ "LAST_ROW",
/* 196 */ "META",
/* 197 */ "ONLY",
/* 198 */ "TOPIC",
/* 199 */ "CONSUMER",
/* 200 */ "GROUP",
/* 201 */ "DESC",
/* 202 */ "DESCRIBE",
/* 203 */ "RESET",
/* 204 */ "QUERY",
/* 205 */ "CACHE",
/* 206 */ "EXPLAIN",
/* 207 */ "ANALYZE",
/* 208 */ "VERBOSE",
/* 209 */ "NK_BOOL",
/* 210 */ "RATIO",
/* 211 */ "NK_FLOAT",
/* 212 */ "OUTPUTTYPE",
/* 213 */ "AGGREGATE",
/* 214 */ "BUFSIZE",
/* 215 */ "LANGUAGE",
/* 216 */ "REPLACE",
/* 217 */ "STREAM",
/* 218 */ "INTO",
/* 219 */ "PAUSE",
/* 220 */ "RESUME",
/* 221 */ "TRIGGER",
/* 222 */ "AT_ONCE",
/* 223 */ "WINDOW_CLOSE",
/* 224 */ "IGNORE",
/* 225 */ "EXPIRED",
/* 226 */ "FILL_HISTORY",
/* 227 */ "UPDATE",
/* 228 */ "SUBTABLE",
/* 229 */ "UNTREATED",
/* 230 */ "KILL",
/* 231 */ "CONNECTION",
/* 232 */ "TRANSACTION",
/* 233 */ "BALANCE",
/* 234 */ "VGROUP",
/* 235 */ "LEADER",
/* 236 */ "MERGE",
/* 237 */ "REDISTRIBUTE",
/* 238 */ "SPLIT",
/* 239 */ "DELETE",
/* 240 */ "INSERT",
/* 241 */ "NK_BIN",
/* 242 */ "NK_HEX",
/* 243 */ "NULL",
/* 244 */ "NK_QUESTION",
/* 245 */ "NK_ALIAS",
/* 246 */ "NK_ARROW",
/* 247 */ "ROWTS",
/* 248 */ "QSTART",
/* 249 */ "QEND",
/* 250 */ "QDURATION",
/* 251 */ "WSTART",
/* 252 */ "WEND",
/* 253 */ "WDURATION",
/* 254 */ "IROWTS",
/* 255 */ "ISFILLED",
/* 256 */ "CAST",
/* 257 */ "NOW",
/* 258 */ "TODAY",
/* 259 */ "TIMEZONE",
/* 260 */ "CLIENT_VERSION",
/* 261 */ "SERVER_VERSION",
/* 262 */ "SERVER_STATUS",
/* 263 */ "CURRENT_USER",
/* 264 */ "CASE",
/* 265 */ "WHEN",
/* 266 */ "THEN",
/* 267 */ "ELSE",
/* 268 */ "BETWEEN",
/* 269 */ "IS",
/* 270 */ "NK_LT",
/* 271 */ "NK_GT",
/* 272 */ "NK_LE",
/* 273 */ "NK_GE",
/* 274 */ "NK_NE",
/* 275 */ "MATCH",
/* 276 */ "NMATCH",
/* 277 */ "CONTAINS",
/* 278 */ "IN",
/* 279 */ "JOIN",
/* 280 */ "INNER",
/* 281 */ "LEFT",
/* 282 */ "RIGHT",
/* 283 */ "OUTER",
/* 284 */ "SEMI",
/* 285 */ "ANTI",
/* 286 */ "ASOF",
/* 287 */ "WINDOW",
/* 288 */ "WINDOW_OFFSET",
/* 289 */ "JLIMIT",
/* 290 */ "SELECT",
/* 291 */ "NK_HINT",
/* 292 */ "DISTINCT",
/* 293 */ "WHERE",
/* 294 */ "PARTITION",
/* 295 */ "BY",
/* 296 */ "SESSION",
/* 297 */ "STATE_WINDOW",
/* 298 */ "EVENT_WINDOW",
/* 299 */ "COUNT_WINDOW",
/* 300 */ "SLIDING",
/* 301 */ "FILL",
/* 302 */ "VALUE",
/* 303 */ "VALUE_F",
/* 304 */ "NONE",
/* 305 */ "PREV",
/* 306 */ "NULL_F",
/* 307 */ "LINEAR",
/* 308 */ "NEXT",
/* 309 */ "HAVING",
/* 310 */ "RANGE",
/* 311 */ "EVERY",
/* 312 */ "ORDER",
/* 313 */ "SLIMIT",
/* 314 */ "SOFFSET",
/* 315 */ "LIMIT",
/* 316 */ "OFFSET",
/* 317 */ "ASC",
/* 318 */ "NULLS",
/* 319 */ "ABORT",
/* 320 */ "AFTER",
/* 321 */ "ATTACH",
/* 322 */ "BEFORE",
/* 323 */ "BEGIN",
/* 324 */ "BITAND",
/* 325 */ "BITNOT",
/* 326 */ "BITOR",
/* 327 */ "BLOCKS",
/* 328 */ "CHANGE",
/* 329 */ "COMMA",
/* 330 */ "CONCAT",
/* 331 */ "CONFLICT",
/* 332 */ "COPY",
/* 333 */ "DEFERRED",
/* 334 */ "DELIMITERS",
/* 335 */ "DETACH",
/* 336 */ "DIVIDE",
/* 337 */ "DOT",
/* 338 */ "EACH",
/* 339 */ "FAIL",
/* 340 */ "FILE",
/* 341 */ "FOR",
/* 342 */ "GLOB",
/* 343 */ "ID",
/* 344 */ "IMMEDIATE",
/* 345 */ "IMPORT",
/* 346 */ "INITIALLY",
/* 347 */ "INSTEAD",
/* 348 */ "ISNULL",
/* 349 */ "MODULES",
/* 350 */ "NK_BITNOT",
/* 351 */ "NK_SEMI",
/* 352 */ "NOTNULL",
/* 353 */ "OF",
/* 354 */ "PLUS",
/* 355 */ "PRIVILEGE",
/* 356 */ "RAISE",
/* 357 */ "RESTRICT",
/* 358 */ "ROW",
/* 359 */ "STAR",
/* 360 */ "STATEMENT",
/* 361 */ "STRICT",
/* 362 */ "STRING",
/* 363 */ "TIMES",
/* 364 */ "VALUES",
/* 365 */ "VARIABLE",
/* 366 */ "WAL",
/* 367 */ "cmd",
/* 368 */ "account_options",
/* 369 */ "alter_account_options",
/* 370 */ "literal",
/* 371 */ "alter_account_option",
/* 372 */ "ip_range_list",
/* 373 */ "white_list",
/* 374 */ "white_list_opt",
/* 375 */ "user_name",
/* 376 */ "sysinfo_opt",
/* 377 */ "privileges",
/* 378 */ "priv_level",
/* 379 */ "with_opt",
/* 380 */ "priv_type_list",
/* 381 */ "priv_type",
/* 382 */ "db_name",
/* 383 */ "table_name",
/* 384 */ "topic_name",
/* 385 */ "search_condition",
/* 386 */ "dnode_endpoint",
/* 387 */ "force_opt",
/* 388 */ "unsafe_opt",
/* 389 */ "not_exists_opt",
/* 390 */ "db_options",
/* 391 */ "exists_opt",
/* 392 */ "alter_db_options",
/* 393 */ "speed_opt",
/* 394 */ "start_opt",
/* 395 */ "end_opt",
/* 396 */ "integer_list",
/* 397 */ "variable_list",
/* 398 */ "retention_list",
/* 399 */ "signed",
/* 400 */ "alter_db_option",
/* 401 */ "retention",
/* 402 */ "full_table_name",
/* 403 */ "column_def_list",
/* 404 */ "tags_def_opt",
/* 405 */ "table_options",
/* 406 */ "multi_create_clause",
/* 407 */ "tags_def",
/* 408 */ "multi_drop_clause",
/* 409 */ "alter_table_clause",
/* 410 */ "alter_table_options",
/* 411 */ "column_name",
/* 412 */ "type_name",
/* 413 */ "tags_literal",
/* 414 */ "create_subtable_clause",
/* 415 */ "specific_cols_opt",
/* 416 */ "tags_literal_list",
/* 417 */ "drop_table_clause",
/* 418 */ "col_name_list",
/* 419 */ "column_def",
/* 420 */ "type_name_default_len",
/* 421 */ "duration_list",
/* 422 */ "rollup_func_list",
/* 423 */ "alter_table_option",
/* 424 */ "duration_literal",
/* 425 */ "rollup_func_name",
/* 426 */ "function_name",
/* 427 */ "col_name",
/* 428 */ "db_kind_opt",
/* 429 */ "table_kind_db_name_cond_opt",
/* 430 */ "like_pattern_opt",
/* 431 */ "db_name_cond_opt",
/* 432 */ "table_name_cond",
/* 433 */ "from_db_opt",
/* 434 */ "tag_list_opt",
/* 435 */ "table_kind",
/* 436 */ "tag_item",
/* 437 */ "column_alias",
/* 438 */ "index_options",
/* 439 */ "full_index_name",
/* 440 */ "index_name",
/* 441 */ "func_list",
/* 442 */ "sliding_opt",
/* 443 */ "sma_stream_opt",
/* 444 */ "func",
/* 445 */ "sma_func_name",
/* 446 */ "expression_list",
/* 447 */ "with_meta",
/* 448 */ "query_or_subquery",
/* 449 */ "where_clause_opt",
/* 450 */ "cgroup_name",
/* 451 */ "analyze_opt",
/* 452 */ "explain_options",
/* 453 */ "insert_query",
/* 454 */ "or_replace_opt",
/* 455 */ "agg_func_opt",
/* 456 */ "bufsize_opt",
/* 457 */ "language_opt",
/* 458 */ "full_view_name",
/* 459 */ "view_name",
/* 460 */ "stream_name",
/* 461 */ "stream_options",
/* 462 */ "col_list_opt",
/* 463 */ "tag_def_or_ref_opt",
/* 464 */ "subtable_opt",
/* 465 */ "ignore_opt",
/* 466 */ "column_stream_def_list",
/* 467 */ "column_stream_def",
/* 468 */ "expression",
/* 469 */ "on_vgroup_id",
/* 470 */ "dnode_list",
/* 471 */ "literal_func",
/* 472 */ "signed_literal",
/* 473 */ "literal_list",
/* 474 */ "table_alias",
/* 475 */ "expr_or_subquery",
/* 476 */ "pseudo_column",
/* 477 */ "column_reference",
/* 478 */ "function_expression",
/* 479 */ "case_when_expression",
/* 480 */ "star_func",
/* 481 */ "star_func_para_list",
/* 482 */ "noarg_func",
/* 483 */ "other_para_list",
/* 484 */ "star_func_para",
/* 485 */ "when_then_list",
/* 486 */ "case_when_else_opt",
/* 487 */ "common_expression",
/* 488 */ "when_then_expr",
/* 489 */ "predicate",
/* 490 */ "compare_op",
/* 491 */ "in_op",
/* 492 */ "in_predicate_value",
/* 493 */ "boolean_value_expression",
/* 494 */ "boolean_primary",
/* 495 */ "from_clause_opt",
/* 496 */ "table_reference_list",
/* 497 */ "table_reference",
/* 498 */ "table_primary",
/* 499 */ "joined_table",
/* 500 */ "alias_opt",
/* 501 */ "subquery",
/* 502 */ "parenthesized_joined_table",
/* 503 */ "join_type",
/* 504 */ "join_subtype",
/* 505 */ "join_on_clause_opt",
/* 506 */ "window_offset_clause_opt",
/* 507 */ "jlimit_clause_opt",
/* 508 */ "window_offset_literal",
/* 509 */ "query_specification",
/* 510 */ "hint_list",
/* 511 */ "set_quantifier_opt",
/* 512 */ "tag_mode_opt",
/* 513 */ "select_list",
/* 514 */ "partition_by_clause_opt",
/* 515 */ "range_opt",
/* 516 */ "every_opt",
/* 517 */ "fill_opt",
/* 518 */ "twindow_clause_opt",
/* 519 */ "group_by_clause_opt",
/* 520 */ "having_clause_opt",
/* 521 */ "select_item",
/* 522 */ "partition_list",
/* 523 */ "partition_item",
/* 524 */ "interval_sliding_duration_literal",
/* 525 */ "fill_mode",
/* 526 */ "group_by_list",
/* 527 */ "query_expression",
/* 528 */ "query_simple",
/* 529 */ "order_by_clause_opt",
/* 530 */ "slimit_clause_opt",
/* 531 */ "limit_clause_opt",
/* 532 */ "union_query_expression",
/* 533 */ "query_simple_or_subquery",
/* 534 */ "sort_specification_list",
/* 535 */ "sort_specification",
/* 536 */ "ordering_specification_opt",
/* 537 */ "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",
2023-08-24 07:54:10 +00:00
/* 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",
2023-12-18 08:34:31 +00:00
/* 71 */ "cmd ::= ALTER CLUSTER NK_STRING",
/* 72 */ "cmd ::= ALTER CLUSTER NK_STRING NK_STRING",
/* 73 */ "cmd ::= ALTER LOCAL NK_STRING",
/* 74 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
/* 75 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
/* 76 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
/* 77 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
/* 78 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
/* 79 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
/* 80 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
/* 81 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
/* 82 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
/* 83 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
/* 84 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
/* 85 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
/* 86 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
/* 87 */ "cmd ::= DROP DATABASE exists_opt db_name",
/* 88 */ "cmd ::= USE db_name",
/* 89 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
/* 90 */ "cmd ::= FLUSH DATABASE db_name",
/* 91 */ "cmd ::= TRIM DATABASE db_name speed_opt",
2024-04-08 02:55:47 +00:00
/* 92 */ "cmd ::= S3MIGRATE DATABASE db_name",
/* 93 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
/* 94 */ "not_exists_opt ::= IF NOT EXISTS",
/* 95 */ "not_exists_opt ::=",
/* 96 */ "exists_opt ::= IF EXISTS",
/* 97 */ "exists_opt ::=",
/* 98 */ "db_options ::=",
/* 99 */ "db_options ::= db_options BUFFER NK_INTEGER",
/* 100 */ "db_options ::= db_options CACHEMODEL NK_STRING",
/* 101 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
/* 102 */ "db_options ::= db_options COMP NK_INTEGER",
/* 103 */ "db_options ::= db_options DURATION NK_INTEGER",
/* 104 */ "db_options ::= db_options DURATION NK_VARIABLE",
/* 105 */ "db_options ::= db_options MAXROWS NK_INTEGER",
/* 106 */ "db_options ::= db_options MINROWS NK_INTEGER",
/* 107 */ "db_options ::= db_options KEEP integer_list",
/* 108 */ "db_options ::= db_options KEEP variable_list",
/* 109 */ "db_options ::= db_options PAGES NK_INTEGER",
/* 110 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
/* 111 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
/* 112 */ "db_options ::= db_options PRECISION NK_STRING",
/* 113 */ "db_options ::= db_options REPLICA NK_INTEGER",
/* 114 */ "db_options ::= db_options VGROUPS NK_INTEGER",
/* 115 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
/* 116 */ "db_options ::= db_options RETENTIONS retention_list",
/* 117 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
/* 118 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
/* 119 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
/* 120 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
/* 121 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 122 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
/* 123 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 124 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
/* 125 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
/* 126 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
/* 127 */ "db_options ::= db_options TABLE_PREFIX signed",
/* 128 */ "db_options ::= db_options TABLE_SUFFIX signed",
/* 129 */ "db_options ::= db_options S3_CHUNKSIZE NK_INTEGER",
/* 130 */ "db_options ::= db_options S3_KEEPLOCAL NK_INTEGER",
/* 131 */ "db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE",
/* 132 */ "db_options ::= db_options S3_COMPACT NK_INTEGER",
/* 133 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
/* 134 */ "alter_db_options ::= alter_db_option",
/* 135 */ "alter_db_options ::= alter_db_options alter_db_option",
/* 136 */ "alter_db_option ::= BUFFER NK_INTEGER",
/* 137 */ "alter_db_option ::= CACHEMODEL NK_STRING",
/* 138 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
/* 139 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
/* 140 */ "alter_db_option ::= KEEP integer_list",
/* 141 */ "alter_db_option ::= KEEP variable_list",
/* 142 */ "alter_db_option ::= PAGES NK_INTEGER",
/* 143 */ "alter_db_option ::= REPLICA NK_INTEGER",
/* 144 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
/* 145 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
/* 146 */ "alter_db_option ::= MINROWS NK_INTEGER",
/* 147 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
/* 148 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 149 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
/* 150 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 151 */ "alter_db_option ::= S3_KEEPLOCAL NK_INTEGER",
/* 152 */ "alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE",
/* 153 */ "alter_db_option ::= S3_COMPACT NK_INTEGER",
/* 154 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
/* 155 */ "integer_list ::= NK_INTEGER",
/* 156 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
/* 157 */ "variable_list ::= NK_VARIABLE",
/* 158 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
/* 159 */ "retention_list ::= retention",
/* 160 */ "retention_list ::= retention_list NK_COMMA retention",
/* 161 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
/* 162 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
/* 163 */ "speed_opt ::=",
/* 164 */ "speed_opt ::= BWLIMIT NK_INTEGER",
/* 165 */ "start_opt ::=",
/* 166 */ "start_opt ::= START WITH NK_INTEGER",
/* 167 */ "start_opt ::= START WITH NK_STRING",
/* 168 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
/* 169 */ "end_opt ::=",
/* 170 */ "end_opt ::= END WITH NK_INTEGER",
/* 171 */ "end_opt ::= END WITH NK_STRING",
/* 172 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
/* 173 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
/* 174 */ "cmd ::= CREATE TABLE multi_create_clause",
/* 175 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
/* 176 */ "cmd ::= DROP TABLE multi_drop_clause",
/* 177 */ "cmd ::= DROP STABLE exists_opt full_table_name",
/* 178 */ "cmd ::= ALTER TABLE alter_table_clause",
/* 179 */ "cmd ::= ALTER STABLE alter_table_clause",
/* 180 */ "alter_table_clause ::= full_table_name alter_table_options",
/* 181 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
/* 182 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
/* 183 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
/* 184 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
/* 185 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
/* 186 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
/* 187 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
/* 188 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
/* 189 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal",
/* 190 */ "multi_create_clause ::= create_subtable_clause",
/* 191 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
/* 192 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options",
/* 193 */ "multi_drop_clause ::= drop_table_clause",
/* 194 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
/* 195 */ "drop_table_clause ::= exists_opt full_table_name",
/* 196 */ "specific_cols_opt ::=",
/* 197 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
/* 198 */ "full_table_name ::= table_name",
/* 199 */ "full_table_name ::= db_name NK_DOT table_name",
/* 200 */ "column_def_list ::= column_def",
/* 201 */ "column_def_list ::= column_def_list NK_COMMA column_def",
/* 202 */ "column_def ::= column_name type_name",
/* 203 */ "column_def ::= column_name type_name PRIMARY KEY",
/* 204 */ "type_name ::= BOOL",
/* 205 */ "type_name ::= TINYINT",
/* 206 */ "type_name ::= SMALLINT",
/* 207 */ "type_name ::= INT",
/* 208 */ "type_name ::= INTEGER",
/* 209 */ "type_name ::= BIGINT",
/* 210 */ "type_name ::= FLOAT",
/* 211 */ "type_name ::= DOUBLE",
/* 212 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
/* 213 */ "type_name ::= TIMESTAMP",
/* 214 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
/* 215 */ "type_name ::= TINYINT UNSIGNED",
/* 216 */ "type_name ::= SMALLINT UNSIGNED",
/* 217 */ "type_name ::= INT UNSIGNED",
/* 218 */ "type_name ::= BIGINT UNSIGNED",
/* 219 */ "type_name ::= JSON",
/* 220 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
/* 221 */ "type_name ::= MEDIUMBLOB",
/* 222 */ "type_name ::= BLOB",
/* 223 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
/* 224 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
/* 225 */ "type_name ::= DECIMAL",
/* 226 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
/* 227 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 228 */ "type_name_default_len ::= BINARY",
/* 229 */ "type_name_default_len ::= NCHAR",
/* 230 */ "type_name_default_len ::= VARCHAR",
/* 231 */ "type_name_default_len ::= VARBINARY",
/* 232 */ "tags_def_opt ::=",
/* 233 */ "tags_def_opt ::= tags_def",
/* 234 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
/* 235 */ "table_options ::=",
/* 236 */ "table_options ::= table_options COMMENT NK_STRING",
/* 237 */ "table_options ::= table_options MAX_DELAY duration_list",
/* 238 */ "table_options ::= table_options WATERMARK duration_list",
/* 239 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
/* 240 */ "table_options ::= table_options TTL NK_INTEGER",
/* 241 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
/* 242 */ "table_options ::= table_options DELETE_MARK duration_list",
/* 243 */ "alter_table_options ::= alter_table_option",
/* 244 */ "alter_table_options ::= alter_table_options alter_table_option",
/* 245 */ "alter_table_option ::= COMMENT NK_STRING",
/* 246 */ "alter_table_option ::= TTL NK_INTEGER",
/* 247 */ "duration_list ::= duration_literal",
/* 248 */ "duration_list ::= duration_list NK_COMMA duration_literal",
/* 249 */ "rollup_func_list ::= rollup_func_name",
/* 250 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
/* 251 */ "rollup_func_name ::= function_name",
/* 252 */ "rollup_func_name ::= FIRST",
/* 253 */ "rollup_func_name ::= LAST",
/* 254 */ "col_name_list ::= col_name",
/* 255 */ "col_name_list ::= col_name_list NK_COMMA col_name",
/* 256 */ "col_name ::= column_name",
/* 257 */ "cmd ::= SHOW DNODES",
/* 258 */ "cmd ::= SHOW USERS",
/* 259 */ "cmd ::= SHOW USER PRIVILEGES",
/* 260 */ "cmd ::= SHOW db_kind_opt DATABASES",
/* 261 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
/* 262 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
/* 263 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
/* 264 */ "cmd ::= SHOW MNODES",
/* 265 */ "cmd ::= SHOW QNODES",
/* 266 */ "cmd ::= SHOW ARBGROUPS",
/* 267 */ "cmd ::= SHOW FUNCTIONS",
/* 268 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
/* 269 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
/* 270 */ "cmd ::= SHOW STREAMS",
/* 271 */ "cmd ::= SHOW ACCOUNTS",
/* 272 */ "cmd ::= SHOW APPS",
/* 273 */ "cmd ::= SHOW CONNECTIONS",
/* 274 */ "cmd ::= SHOW LICENCES",
/* 275 */ "cmd ::= SHOW GRANTS",
/* 276 */ "cmd ::= SHOW GRANTS FULL",
/* 277 */ "cmd ::= SHOW GRANTS LOGS",
/* 278 */ "cmd ::= SHOW CLUSTER MACHINES",
/* 279 */ "cmd ::= SHOW CREATE DATABASE db_name",
/* 280 */ "cmd ::= SHOW CREATE TABLE full_table_name",
/* 281 */ "cmd ::= SHOW CREATE STABLE full_table_name",
/* 282 */ "cmd ::= SHOW QUERIES",
/* 283 */ "cmd ::= SHOW SCORES",
/* 284 */ "cmd ::= SHOW TOPICS",
/* 285 */ "cmd ::= SHOW VARIABLES",
/* 286 */ "cmd ::= SHOW CLUSTER VARIABLES",
/* 287 */ "cmd ::= SHOW LOCAL VARIABLES",
/* 288 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
/* 289 */ "cmd ::= SHOW BNODES",
/* 290 */ "cmd ::= SHOW SNODES",
/* 291 */ "cmd ::= SHOW CLUSTER",
/* 292 */ "cmd ::= SHOW TRANSACTIONS",
/* 293 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
/* 294 */ "cmd ::= SHOW CONSUMERS",
/* 295 */ "cmd ::= SHOW SUBSCRIPTIONS",
/* 296 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
/* 297 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
/* 298 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
/* 299 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
/* 300 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
/* 301 */ "cmd ::= SHOW VNODES",
/* 302 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
/* 303 */ "cmd ::= SHOW CLUSTER ALIVE",
/* 304 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt",
/* 305 */ "cmd ::= SHOW CREATE VIEW full_table_name",
/* 306 */ "cmd ::= SHOW COMPACTS",
/* 307 */ "cmd ::= SHOW COMPACT NK_INTEGER",
/* 308 */ "table_kind_db_name_cond_opt ::=",
/* 309 */ "table_kind_db_name_cond_opt ::= table_kind",
/* 310 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
/* 311 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
/* 312 */ "table_kind ::= NORMAL",
/* 313 */ "table_kind ::= CHILD",
/* 314 */ "db_name_cond_opt ::=",
/* 315 */ "db_name_cond_opt ::= db_name NK_DOT",
/* 316 */ "like_pattern_opt ::=",
/* 317 */ "like_pattern_opt ::= LIKE NK_STRING",
/* 318 */ "table_name_cond ::= table_name",
/* 319 */ "from_db_opt ::=",
/* 320 */ "from_db_opt ::= FROM db_name",
/* 321 */ "tag_list_opt ::=",
/* 322 */ "tag_list_opt ::= tag_item",
/* 323 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
/* 324 */ "tag_item ::= TBNAME",
/* 325 */ "tag_item ::= QTAGS",
/* 326 */ "tag_item ::= column_name",
/* 327 */ "tag_item ::= column_name column_alias",
/* 328 */ "tag_item ::= column_name AS column_alias",
/* 329 */ "db_kind_opt ::=",
/* 330 */ "db_kind_opt ::= USER",
/* 331 */ "db_kind_opt ::= SYSTEM",
/* 332 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
/* 333 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
/* 334 */ "cmd ::= DROP INDEX exists_opt full_index_name",
/* 335 */ "full_index_name ::= index_name",
/* 336 */ "full_index_name ::= db_name NK_DOT index_name",
/* 337 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
/* 338 */ "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",
/* 339 */ "func_list ::= func",
/* 340 */ "func_list ::= func_list NK_COMMA func",
/* 341 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
/* 342 */ "sma_func_name ::= function_name",
/* 343 */ "sma_func_name ::= COUNT",
/* 344 */ "sma_func_name ::= FIRST",
/* 345 */ "sma_func_name ::= LAST",
/* 346 */ "sma_func_name ::= LAST_ROW",
/* 347 */ "sma_stream_opt ::=",
/* 348 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
/* 349 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
/* 350 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
/* 351 */ "with_meta ::= AS",
/* 352 */ "with_meta ::= WITH META AS",
/* 353 */ "with_meta ::= ONLY META AS",
/* 354 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
/* 355 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
/* 356 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
/* 357 */ "cmd ::= DROP TOPIC exists_opt topic_name",
/* 358 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
/* 359 */ "cmd ::= DESC full_table_name",
/* 360 */ "cmd ::= DESCRIBE full_table_name",
/* 361 */ "cmd ::= RESET QUERY CACHE",
/* 362 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
/* 363 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
/* 364 */ "analyze_opt ::=",
/* 365 */ "analyze_opt ::= ANALYZE",
/* 366 */ "explain_options ::=",
/* 367 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
/* 368 */ "explain_options ::= explain_options RATIO NK_FLOAT",
/* 369 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
/* 370 */ "cmd ::= DROP FUNCTION exists_opt function_name",
/* 371 */ "agg_func_opt ::=",
/* 372 */ "agg_func_opt ::= AGGREGATE",
/* 373 */ "bufsize_opt ::=",
/* 374 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
/* 375 */ "language_opt ::=",
/* 376 */ "language_opt ::= LANGUAGE NK_STRING",
/* 377 */ "or_replace_opt ::=",
/* 378 */ "or_replace_opt ::= OR REPLACE",
/* 379 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
/* 380 */ "cmd ::= DROP VIEW exists_opt full_view_name",
/* 381 */ "full_view_name ::= view_name",
/* 382 */ "full_view_name ::= db_name NK_DOT view_name",
/* 383 */ "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",
/* 384 */ "cmd ::= DROP STREAM exists_opt stream_name",
/* 385 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
/* 386 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
/* 387 */ "col_list_opt ::=",
/* 388 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP",
/* 389 */ "column_stream_def_list ::= column_stream_def",
/* 390 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def",
/* 391 */ "column_stream_def ::= column_name",
/* 392 */ "column_stream_def ::= column_name PRIMARY KEY",
/* 393 */ "tag_def_or_ref_opt ::=",
/* 394 */ "tag_def_or_ref_opt ::= tags_def",
/* 395 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP",
/* 396 */ "stream_options ::=",
/* 397 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
/* 398 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
/* 399 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
/* 400 */ "stream_options ::= stream_options WATERMARK duration_literal",
/* 401 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
/* 402 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
/* 403 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
/* 404 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
/* 405 */ "subtable_opt ::=",
/* 406 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
/* 407 */ "ignore_opt ::=",
/* 408 */ "ignore_opt ::= IGNORE UNTREATED",
/* 409 */ "cmd ::= KILL CONNECTION NK_INTEGER",
/* 410 */ "cmd ::= KILL QUERY NK_STRING",
/* 411 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
/* 412 */ "cmd ::= KILL COMPACT NK_INTEGER",
/* 413 */ "cmd ::= BALANCE VGROUP",
/* 414 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
/* 415 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
/* 416 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
/* 417 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
/* 418 */ "on_vgroup_id ::=",
/* 419 */ "on_vgroup_id ::= ON NK_INTEGER",
/* 420 */ "dnode_list ::= DNODE NK_INTEGER",
/* 421 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
/* 422 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
/* 423 */ "cmd ::= query_or_subquery",
/* 424 */ "cmd ::= insert_query",
/* 425 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
/* 426 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
/* 427 */ "tags_literal ::= NK_INTEGER",
/* 428 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal",
/* 429 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal",
/* 430 */ "tags_literal ::= NK_PLUS NK_INTEGER",
/* 431 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal",
/* 432 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal",
/* 433 */ "tags_literal ::= NK_MINUS NK_INTEGER",
/* 434 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal",
/* 435 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal",
/* 436 */ "tags_literal ::= NK_FLOAT",
/* 437 */ "tags_literal ::= NK_PLUS NK_FLOAT",
/* 438 */ "tags_literal ::= NK_MINUS NK_FLOAT",
/* 439 */ "tags_literal ::= NK_BIN",
/* 440 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal",
/* 441 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal",
/* 442 */ "tags_literal ::= NK_PLUS NK_BIN",
/* 443 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal",
/* 444 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal",
/* 445 */ "tags_literal ::= NK_MINUS NK_BIN",
/* 446 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal",
/* 447 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal",
/* 448 */ "tags_literal ::= NK_HEX",
/* 449 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal",
/* 450 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal",
/* 451 */ "tags_literal ::= NK_PLUS NK_HEX",
/* 452 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal",
/* 453 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal",
/* 454 */ "tags_literal ::= NK_MINUS NK_HEX",
/* 455 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal",
/* 456 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal",
/* 457 */ "tags_literal ::= NK_STRING",
/* 458 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal",
/* 459 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal",
/* 460 */ "tags_literal ::= NK_BOOL",
/* 461 */ "tags_literal ::= NULL",
/* 462 */ "tags_literal ::= literal_func",
/* 463 */ "tags_literal ::= literal_func NK_PLUS duration_literal",
/* 464 */ "tags_literal ::= literal_func NK_MINUS duration_literal",
/* 465 */ "tags_literal_list ::= tags_literal",
/* 466 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal",
/* 467 */ "literal ::= NK_INTEGER",
/* 468 */ "literal ::= NK_FLOAT",
/* 469 */ "literal ::= NK_STRING",
/* 470 */ "literal ::= NK_BOOL",
/* 471 */ "literal ::= TIMESTAMP NK_STRING",
/* 472 */ "literal ::= duration_literal",
/* 473 */ "literal ::= NULL",
/* 474 */ "literal ::= NK_QUESTION",
/* 475 */ "duration_literal ::= NK_VARIABLE",
/* 476 */ "signed ::= NK_INTEGER",
/* 477 */ "signed ::= NK_PLUS NK_INTEGER",
/* 478 */ "signed ::= NK_MINUS NK_INTEGER",
/* 479 */ "signed ::= NK_FLOAT",
/* 480 */ "signed ::= NK_PLUS NK_FLOAT",
/* 481 */ "signed ::= NK_MINUS NK_FLOAT",
/* 482 */ "signed_literal ::= signed",
/* 483 */ "signed_literal ::= NK_STRING",
/* 484 */ "signed_literal ::= NK_BOOL",
/* 485 */ "signed_literal ::= TIMESTAMP NK_STRING",
/* 486 */ "signed_literal ::= duration_literal",
/* 487 */ "signed_literal ::= NULL",
/* 488 */ "signed_literal ::= literal_func",
/* 489 */ "signed_literal ::= NK_QUESTION",
/* 490 */ "literal_list ::= signed_literal",
/* 491 */ "literal_list ::= literal_list NK_COMMA signed_literal",
/* 492 */ "db_name ::= NK_ID",
/* 493 */ "table_name ::= NK_ID",
/* 494 */ "column_name ::= NK_ID",
/* 495 */ "function_name ::= NK_ID",
/* 496 */ "view_name ::= NK_ID",
/* 497 */ "table_alias ::= NK_ID",
/* 498 */ "column_alias ::= NK_ID",
/* 499 */ "column_alias ::= NK_ALIAS",
/* 500 */ "user_name ::= NK_ID",
/* 501 */ "topic_name ::= NK_ID",
/* 502 */ "stream_name ::= NK_ID",
/* 503 */ "cgroup_name ::= NK_ID",
/* 504 */ "index_name ::= NK_ID",
/* 505 */ "expr_or_subquery ::= expression",
/* 506 */ "expression ::= literal",
/* 507 */ "expression ::= pseudo_column",
/* 508 */ "expression ::= column_reference",
/* 509 */ "expression ::= function_expression",
/* 510 */ "expression ::= case_when_expression",
/* 511 */ "expression ::= NK_LP expression NK_RP",
/* 512 */ "expression ::= NK_PLUS expr_or_subquery",
/* 513 */ "expression ::= NK_MINUS expr_or_subquery",
/* 514 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
/* 515 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
/* 516 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
/* 517 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
/* 518 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
/* 519 */ "expression ::= column_reference NK_ARROW NK_STRING",
/* 520 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
/* 521 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
/* 522 */ "expression_list ::= expr_or_subquery",
/* 523 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
/* 524 */ "column_reference ::= column_name",
/* 525 */ "column_reference ::= table_name NK_DOT column_name",
/* 526 */ "column_reference ::= NK_ALIAS",
/* 527 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
/* 528 */ "pseudo_column ::= ROWTS",
/* 529 */ "pseudo_column ::= TBNAME",
/* 530 */ "pseudo_column ::= table_name NK_DOT TBNAME",
/* 531 */ "pseudo_column ::= QSTART",
/* 532 */ "pseudo_column ::= QEND",
/* 533 */ "pseudo_column ::= QDURATION",
/* 534 */ "pseudo_column ::= WSTART",
/* 535 */ "pseudo_column ::= WEND",
/* 536 */ "pseudo_column ::= WDURATION",
/* 537 */ "pseudo_column ::= IROWTS",
/* 538 */ "pseudo_column ::= ISFILLED",
/* 539 */ "pseudo_column ::= QTAGS",
/* 540 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
/* 541 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
/* 542 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
/* 543 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP",
/* 544 */ "function_expression ::= literal_func",
/* 545 */ "literal_func ::= noarg_func NK_LP NK_RP",
/* 546 */ "literal_func ::= NOW",
/* 547 */ "literal_func ::= TODAY",
/* 548 */ "noarg_func ::= NOW",
/* 549 */ "noarg_func ::= TODAY",
/* 550 */ "noarg_func ::= TIMEZONE",
/* 551 */ "noarg_func ::= DATABASE",
/* 552 */ "noarg_func ::= CLIENT_VERSION",
/* 553 */ "noarg_func ::= SERVER_VERSION",
/* 554 */ "noarg_func ::= SERVER_STATUS",
/* 555 */ "noarg_func ::= CURRENT_USER",
/* 556 */ "noarg_func ::= USER",
/* 557 */ "star_func ::= COUNT",
/* 558 */ "star_func ::= FIRST",
/* 559 */ "star_func ::= LAST",
/* 560 */ "star_func ::= LAST_ROW",
/* 561 */ "star_func_para_list ::= NK_STAR",
/* 562 */ "star_func_para_list ::= other_para_list",
/* 563 */ "other_para_list ::= star_func_para",
/* 564 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
/* 565 */ "star_func_para ::= expr_or_subquery",
/* 566 */ "star_func_para ::= table_name NK_DOT NK_STAR",
/* 567 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
/* 568 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
/* 569 */ "when_then_list ::= when_then_expr",
/* 570 */ "when_then_list ::= when_then_list when_then_expr",
/* 571 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
/* 572 */ "case_when_else_opt ::=",
/* 573 */ "case_when_else_opt ::= ELSE common_expression",
/* 574 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
/* 575 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
/* 576 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
/* 577 */ "predicate ::= expr_or_subquery IS NULL",
/* 578 */ "predicate ::= expr_or_subquery IS NOT NULL",
/* 579 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
/* 580 */ "compare_op ::= NK_LT",
/* 581 */ "compare_op ::= NK_GT",
/* 582 */ "compare_op ::= NK_LE",
/* 583 */ "compare_op ::= NK_GE",
/* 584 */ "compare_op ::= NK_NE",
/* 585 */ "compare_op ::= NK_EQ",
/* 586 */ "compare_op ::= LIKE",
/* 587 */ "compare_op ::= NOT LIKE",
/* 588 */ "compare_op ::= MATCH",
/* 589 */ "compare_op ::= NMATCH",
/* 590 */ "compare_op ::= CONTAINS",
/* 591 */ "in_op ::= IN",
/* 592 */ "in_op ::= NOT IN",
/* 593 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
/* 594 */ "boolean_value_expression ::= boolean_primary",
/* 595 */ "boolean_value_expression ::= NOT boolean_primary",
/* 596 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 597 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 598 */ "boolean_primary ::= predicate",
/* 599 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 600 */ "common_expression ::= expr_or_subquery",
/* 601 */ "common_expression ::= boolean_value_expression",
/* 602 */ "from_clause_opt ::=",
/* 603 */ "from_clause_opt ::= FROM table_reference_list",
/* 604 */ "table_reference_list ::= table_reference",
/* 605 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 606 */ "table_reference ::= table_primary",
/* 607 */ "table_reference ::= joined_table",
/* 608 */ "table_primary ::= table_name alias_opt",
/* 609 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 610 */ "table_primary ::= subquery alias_opt",
/* 611 */ "table_primary ::= parenthesized_joined_table",
/* 612 */ "alias_opt ::=",
/* 613 */ "alias_opt ::= table_alias",
/* 614 */ "alias_opt ::= AS table_alias",
/* 615 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 616 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 617 */ "joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt",
/* 618 */ "join_type ::=",
/* 619 */ "join_type ::= INNER",
/* 620 */ "join_type ::= LEFT",
/* 621 */ "join_type ::= RIGHT",
/* 622 */ "join_type ::= FULL",
/* 623 */ "join_subtype ::=",
/* 624 */ "join_subtype ::= OUTER",
/* 625 */ "join_subtype ::= SEMI",
/* 626 */ "join_subtype ::= ANTI",
/* 627 */ "join_subtype ::= ASOF",
/* 628 */ "join_subtype ::= WINDOW",
/* 629 */ "join_on_clause_opt ::=",
/* 630 */ "join_on_clause_opt ::= ON search_condition",
/* 631 */ "window_offset_clause_opt ::=",
/* 632 */ "window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP",
/* 633 */ "window_offset_literal ::= NK_VARIABLE",
/* 634 */ "window_offset_literal ::= NK_MINUS NK_VARIABLE",
/* 635 */ "jlimit_clause_opt ::=",
/* 636 */ "jlimit_clause_opt ::= JLIMIT NK_INTEGER",
/* 637 */ "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",
/* 638 */ "hint_list ::=",
/* 639 */ "hint_list ::= NK_HINT",
/* 640 */ "tag_mode_opt ::=",
/* 641 */ "tag_mode_opt ::= TAGS",
/* 642 */ "set_quantifier_opt ::=",
/* 643 */ "set_quantifier_opt ::= DISTINCT",
/* 644 */ "set_quantifier_opt ::= ALL",
/* 645 */ "select_list ::= select_item",
/* 646 */ "select_list ::= select_list NK_COMMA select_item",
/* 647 */ "select_item ::= NK_STAR",
/* 648 */ "select_item ::= common_expression",
/* 649 */ "select_item ::= common_expression column_alias",
/* 650 */ "select_item ::= common_expression AS column_alias",
/* 651 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 652 */ "where_clause_opt ::=",
/* 653 */ "where_clause_opt ::= WHERE search_condition",
/* 654 */ "partition_by_clause_opt ::=",
/* 655 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
/* 656 */ "partition_list ::= partition_item",
/* 657 */ "partition_list ::= partition_list NK_COMMA partition_item",
/* 658 */ "partition_item ::= expr_or_subquery",
/* 659 */ "partition_item ::= expr_or_subquery column_alias",
/* 660 */ "partition_item ::= expr_or_subquery AS column_alias",
/* 661 */ "twindow_clause_opt ::=",
/* 662 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
/* 663 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
/* 664 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 665 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 666 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
/* 667 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP",
/* 668 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 669 */ "sliding_opt ::=",
/* 670 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
/* 671 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
/* 672 */ "interval_sliding_duration_literal ::= NK_STRING",
/* 673 */ "interval_sliding_duration_literal ::= NK_INTEGER",
/* 674 */ "fill_opt ::=",
/* 675 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 676 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
/* 677 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
/* 678 */ "fill_mode ::= NONE",
/* 679 */ "fill_mode ::= PREV",
/* 680 */ "fill_mode ::= NULL",
/* 681 */ "fill_mode ::= NULL_F",
/* 682 */ "fill_mode ::= LINEAR",
/* 683 */ "fill_mode ::= NEXT",
/* 684 */ "group_by_clause_opt ::=",
/* 685 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 686 */ "group_by_list ::= expr_or_subquery",
/* 687 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
/* 688 */ "having_clause_opt ::=",
/* 689 */ "having_clause_opt ::= HAVING search_condition",
/* 690 */ "range_opt ::=",
/* 691 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
/* 692 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
/* 693 */ "every_opt ::=",
/* 694 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
/* 695 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 696 */ "query_simple ::= query_specification",
/* 697 */ "query_simple ::= union_query_expression",
/* 698 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
/* 699 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
/* 700 */ "query_simple_or_subquery ::= query_simple",
/* 701 */ "query_simple_or_subquery ::= subquery",
/* 702 */ "query_or_subquery ::= query_expression",
/* 703 */ "query_or_subquery ::= subquery",
/* 704 */ "order_by_clause_opt ::=",
/* 705 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 706 */ "slimit_clause_opt ::=",
/* 707 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 708 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 709 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 710 */ "limit_clause_opt ::=",
/* 711 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 712 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 713 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 714 */ "subquery ::= NK_LP query_expression NK_RP",
/* 715 */ "subquery ::= NK_LP subquery NK_RP",
/* 716 */ "search_condition ::= common_expression",
/* 717 */ "sort_specification_list ::= sort_specification",
/* 718 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 719 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
/* 720 */ "ordering_specification_opt ::=",
/* 721 */ "ordering_specification_opt ::= ASC",
/* 722 */ "ordering_specification_opt ::= DESC",
/* 723 */ "null_ordering_opt ::=",
/* 724 */ "null_ordering_opt ::= NULLS FIRST",
/* 725 */ "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 ){
2022-03-28 09:08:48 +00:00
pNew = malloc(newSize*sizeof(pNew[0]));
if( pNew ) pNew[0] = p->yystk0;
}else{
2022-03-28 09:08:48 +00:00
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
2022-03-10 07:36:06 +00:00
** 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.
*/
2022-03-10 07:36:06 +00:00
void ParseInit(void *yypRawParser ParseCTX_PDECL){
yyParser *yypParser = (yyParser*)yypRawParser;
2022-03-10 07:36:06 +00:00
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
}
2022-03-10 07:36:06 +00:00
#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
2022-03-10 07:36:06 +00:00
** to Parse and ParseFree.
*/
2022-03-10 07:36:06 +00:00
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
yyParser *yypParser;
yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
if( yypParser ){
2022-03-10 07:36:06 +00:00
ParseCTX_STORE
ParseInit(yypParser ParseCTX_PARAM);
}
return (void*)yypParser;
}
2022-03-10 07:36:06 +00:00
#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 */
){
2022-03-10 07:36:06 +00:00
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 367: /* cmd */
case 370: /* literal */
case 379: /* with_opt */
case 385: /* search_condition */
case 390: /* db_options */
case 392: /* alter_db_options */
case 394: /* start_opt */
case 395: /* end_opt */
case 399: /* signed */
case 401: /* retention */
case 402: /* full_table_name */
case 405: /* table_options */
case 409: /* alter_table_clause */
case 410: /* alter_table_options */
case 413: /* tags_literal */
case 414: /* create_subtable_clause */
case 417: /* drop_table_clause */
case 419: /* column_def */
case 424: /* duration_literal */
case 425: /* rollup_func_name */
case 427: /* col_name */
case 430: /* like_pattern_opt */
case 431: /* db_name_cond_opt */
case 432: /* table_name_cond */
case 433: /* from_db_opt */
case 436: /* tag_item */
case 438: /* index_options */
case 439: /* full_index_name */
case 442: /* sliding_opt */
case 443: /* sma_stream_opt */
case 444: /* func */
case 448: /* query_or_subquery */
case 449: /* where_clause_opt */
case 452: /* explain_options */
case 453: /* insert_query */
case 458: /* full_view_name */
case 461: /* stream_options */
case 464: /* subtable_opt */
case 467: /* column_stream_def */
case 468: /* expression */
case 471: /* literal_func */
case 472: /* signed_literal */
case 475: /* expr_or_subquery */
case 476: /* pseudo_column */
case 477: /* column_reference */
case 478: /* function_expression */
case 479: /* case_when_expression */
case 484: /* star_func_para */
case 486: /* case_when_else_opt */
case 487: /* common_expression */
case 488: /* when_then_expr */
case 489: /* predicate */
case 492: /* in_predicate_value */
case 493: /* boolean_value_expression */
case 494: /* boolean_primary */
case 495: /* from_clause_opt */
case 496: /* table_reference_list */
case 497: /* table_reference */
case 498: /* table_primary */
case 499: /* joined_table */
case 501: /* subquery */
case 502: /* parenthesized_joined_table */
case 505: /* join_on_clause_opt */
case 506: /* window_offset_clause_opt */
case 507: /* jlimit_clause_opt */
case 508: /* window_offset_literal */
case 509: /* query_specification */
case 515: /* range_opt */
case 516: /* every_opt */
case 517: /* fill_opt */
case 518: /* twindow_clause_opt */
case 520: /* having_clause_opt */
case 521: /* select_item */
case 523: /* partition_item */
case 524: /* interval_sliding_duration_literal */
case 527: /* query_expression */
case 528: /* query_simple */
case 530: /* slimit_clause_opt */
case 531: /* limit_clause_opt */
case 532: /* union_query_expression */
case 533: /* query_simple_or_subquery */
case 535: /* sort_specification */
2022-06-22 08:35:14 +00:00
{
nodesDestroyNode((yypminor->yy720));
2022-06-22 08:35:14 +00:00
}
break;
case 368: /* account_options */
case 369: /* alter_account_options */
case 371: /* alter_account_option */
case 393: /* speed_opt */
case 447: /* with_meta */
case 456: /* bufsize_opt */
{
2022-06-22 08:35:14 +00:00
}
break;
case 372: /* ip_range_list */
case 373: /* white_list */
case 374: /* white_list_opt */
case 396: /* integer_list */
case 397: /* variable_list */
case 398: /* retention_list */
case 403: /* column_def_list */
case 404: /* tags_def_opt */
case 406: /* multi_create_clause */
case 407: /* tags_def */
case 408: /* multi_drop_clause */
case 415: /* specific_cols_opt */
case 416: /* tags_literal_list */
case 418: /* col_name_list */
case 421: /* duration_list */
case 422: /* rollup_func_list */
case 434: /* tag_list_opt */
case 441: /* func_list */
case 446: /* expression_list */
case 462: /* col_list_opt */
case 463: /* tag_def_or_ref_opt */
case 466: /* column_stream_def_list */
case 470: /* dnode_list */
case 473: /* literal_list */
case 481: /* star_func_para_list */
case 483: /* other_para_list */
case 485: /* when_then_list */
case 510: /* hint_list */
case 513: /* select_list */
case 514: /* partition_by_clause_opt */
case 519: /* group_by_clause_opt */
case 522: /* partition_list */
case 526: /* group_by_list */
case 529: /* order_by_clause_opt */
case 534: /* sort_specification_list */
{
nodesDestroyList((yypminor->yy984));
}
break;
case 375: /* user_name */
case 382: /* db_name */
case 383: /* table_name */
case 384: /* topic_name */
case 386: /* dnode_endpoint */
case 411: /* column_name */
case 426: /* function_name */
case 437: /* column_alias */
case 440: /* index_name */
case 445: /* sma_func_name */
case 450: /* cgroup_name */
case 457: /* language_opt */
case 459: /* view_name */
case 460: /* stream_name */
case 469: /* on_vgroup_id */
case 474: /* table_alias */
case 480: /* star_func */
case 482: /* noarg_func */
case 500: /* alias_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
case 376: /* sysinfo_opt */
2023-03-28 10:43:58 +00:00
{
}
break;
case 377: /* privileges */
case 380: /* priv_type_list */
case 381: /* priv_type */
{
}
break;
case 378: /* priv_level */
{
}
break;
case 387: /* force_opt */
case 388: /* unsafe_opt */
case 389: /* not_exists_opt */
case 391: /* exists_opt */
case 451: /* analyze_opt */
case 454: /* or_replace_opt */
case 455: /* agg_func_opt */
case 465: /* ignore_opt */
case 511: /* set_quantifier_opt */
case 512: /* tag_mode_opt */
{
2023-08-24 07:54:10 +00:00
}
break;
case 400: /* alter_db_option */
case 423: /* alter_table_option */
{
2022-03-31 11:38:17 +00:00
}
break;
case 412: /* type_name */
case 420: /* type_name_default_len */
{
2022-03-05 23:12:08 +00:00
}
break;
case 428: /* db_kind_opt */
case 435: /* table_kind */
{
2022-03-05 23:12:08 +00:00
}
break;
case 429: /* table_kind_db_name_cond_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
case 490: /* compare_op */
case 491: /* in_op */
{
2022-03-05 23:12:08 +00:00
}
break;
case 503: /* join_type */
{
2022-03-05 23:12:08 +00:00
}
break;
case 504: /* join_subtype */
{
2022-03-05 23:12:08 +00:00
}
break;
case 525: /* fill_mode */
{
2022-03-05 23:12:08 +00:00
}
break;
case 536: /* ordering_specification_opt */
2023-11-27 12:01:00 +00:00
{
}
break;
case 537: /* null_ordering_opt */
{
2022-03-05 23:12:08 +00:00
}
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
*/
2022-03-10 07:36:06 +00:00
void ParseFinalize(void *p){
yyParser *pParser = (yyParser*)p;
while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
#if YYSTACKDEPTH<=0
2022-03-28 09:08:48 +00:00
if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
#endif
}
2022-03-10 07:36:06 +00:00
#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.
*/
2022-03-10 07:36:06 +00:00
void ParseFree(
void *p, /* The parser to be deleted */
void (*freeProc)(void*) /* Function used to reclaim memory */
){
#ifndef YYPARSEFREENEVERNULL
if( p==0 ) return;
#endif
2022-03-10 07:36:06 +00:00
ParseFinalize(p);
(*freeProc)(p);
}
2022-03-10 07:36:06 +00:00
#endif /* Parse_ENGINEALWAYSONSTACK */
/*
** Return the peak depth of the stack for a parser.
*/
#ifdef YYTRACKMAXSTACKDEPTH
2022-03-10 07:36:06 +00:00
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)
2022-03-10 07:36:06 +00:00
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 );
2023-05-09 11:19:14 +00:00
assert( i<=YY_ACTTAB_COUNT );
assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD );
assert( iLookAhead!=YYNOCODE );
assert( iLookAhead < YYNTOKEN );
i += iLookAhead;
2023-05-09 11:19:14 +00:00
assert( i<(int)YY_NLOOKAHEAD );
if( yy_lookahead[i]!=iLookAhead ){
#ifdef YYFALLBACK
YYCODETYPE iFallback; /* Fallback token */
2023-05-09 11:19:14 +00:00
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;
2023-05-09 11:19:14 +00:00
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{
2023-09-20 11:30:40 +00:00
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){
2022-03-10 07:36:06 +00:00
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 ********************************************/
2022-03-10 07:36:06 +00:00
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 */
2022-03-10 07:36:06 +00:00
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");
}
2023-05-09 11:19:14 +00:00
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static const YYCODETYPE yyRuleInfoLhs[] = {
367, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
367, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
368, /* (2) account_options ::= */
368, /* (3) account_options ::= account_options PPS literal */
368, /* (4) account_options ::= account_options TSERIES literal */
368, /* (5) account_options ::= account_options STORAGE literal */
368, /* (6) account_options ::= account_options STREAMS literal */
368, /* (7) account_options ::= account_options QTIME literal */
368, /* (8) account_options ::= account_options DBS literal */
368, /* (9) account_options ::= account_options USERS literal */
368, /* (10) account_options ::= account_options CONNS literal */
368, /* (11) account_options ::= account_options STATE literal */
369, /* (12) alter_account_options ::= alter_account_option */
369, /* (13) alter_account_options ::= alter_account_options alter_account_option */
371, /* (14) alter_account_option ::= PASS literal */
371, /* (15) alter_account_option ::= PPS literal */
371, /* (16) alter_account_option ::= TSERIES literal */
371, /* (17) alter_account_option ::= STORAGE literal */
371, /* (18) alter_account_option ::= STREAMS literal */
371, /* (19) alter_account_option ::= QTIME literal */
371, /* (20) alter_account_option ::= DBS literal */
371, /* (21) alter_account_option ::= USERS literal */
371, /* (22) alter_account_option ::= CONNS literal */
371, /* (23) alter_account_option ::= STATE literal */
372, /* (24) ip_range_list ::= NK_STRING */
372, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
373, /* (26) white_list ::= HOST ip_range_list */
374, /* (27) white_list_opt ::= */
374, /* (28) white_list_opt ::= white_list */
367, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
367, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
367, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
367, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
367, /* (33) cmd ::= ALTER USER user_name ADD white_list */
367, /* (34) cmd ::= ALTER USER user_name DROP white_list */
367, /* (35) cmd ::= DROP USER user_name */
376, /* (36) sysinfo_opt ::= */
376, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
367, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
367, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
377, /* (40) privileges ::= ALL */
377, /* (41) privileges ::= priv_type_list */
377, /* (42) privileges ::= SUBSCRIBE */
380, /* (43) priv_type_list ::= priv_type */
380, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
381, /* (45) priv_type ::= READ */
381, /* (46) priv_type ::= WRITE */
381, /* (47) priv_type ::= ALTER */
378, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
378, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
378, /* (50) priv_level ::= db_name NK_DOT table_name */
378, /* (51) priv_level ::= topic_name */
379, /* (52) with_opt ::= */
379, /* (53) with_opt ::= WITH search_condition */
367, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
367, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
367, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
367, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
367, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
367, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
367, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
367, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
367, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
367, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
367, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
386, /* (65) dnode_endpoint ::= NK_STRING */
386, /* (66) dnode_endpoint ::= NK_ID */
386, /* (67) dnode_endpoint ::= NK_IPTOKEN */
387, /* (68) force_opt ::= */
387, /* (69) force_opt ::= FORCE */
388, /* (70) unsafe_opt ::= UNSAFE */
367, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
367, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
367, /* (73) cmd ::= ALTER LOCAL NK_STRING */
367, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
367, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
367, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
367, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
367, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
367, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
367, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
367, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
367, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
367, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
367, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
367, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
367, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
367, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
367, /* (88) cmd ::= USE db_name */
367, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
367, /* (90) cmd ::= FLUSH DATABASE db_name */
367, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
367, /* (92) cmd ::= S3MIGRATE DATABASE db_name */
367, /* (93) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
389, /* (94) not_exists_opt ::= IF NOT EXISTS */
389, /* (95) not_exists_opt ::= */
391, /* (96) exists_opt ::= IF EXISTS */
391, /* (97) exists_opt ::= */
390, /* (98) db_options ::= */
390, /* (99) db_options ::= db_options BUFFER NK_INTEGER */
390, /* (100) db_options ::= db_options CACHEMODEL NK_STRING */
390, /* (101) db_options ::= db_options CACHESIZE NK_INTEGER */
390, /* (102) db_options ::= db_options COMP NK_INTEGER */
390, /* (103) db_options ::= db_options DURATION NK_INTEGER */
390, /* (104) db_options ::= db_options DURATION NK_VARIABLE */
390, /* (105) db_options ::= db_options MAXROWS NK_INTEGER */
390, /* (106) db_options ::= db_options MINROWS NK_INTEGER */
390, /* (107) db_options ::= db_options KEEP integer_list */
390, /* (108) db_options ::= db_options KEEP variable_list */
390, /* (109) db_options ::= db_options PAGES NK_INTEGER */
390, /* (110) db_options ::= db_options PAGESIZE NK_INTEGER */
390, /* (111) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
390, /* (112) db_options ::= db_options PRECISION NK_STRING */
390, /* (113) db_options ::= db_options REPLICA NK_INTEGER */
390, /* (114) db_options ::= db_options VGROUPS NK_INTEGER */
390, /* (115) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
390, /* (116) db_options ::= db_options RETENTIONS retention_list */
390, /* (117) db_options ::= db_options SCHEMALESS NK_INTEGER */
390, /* (118) db_options ::= db_options WAL_LEVEL NK_INTEGER */
390, /* (119) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
390, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
390, /* (121) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
390, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
390, /* (123) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
390, /* (124) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
390, /* (125) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
390, /* (126) db_options ::= db_options STT_TRIGGER NK_INTEGER */
390, /* (127) db_options ::= db_options TABLE_PREFIX signed */
390, /* (128) db_options ::= db_options TABLE_SUFFIX signed */
390, /* (129) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */
390, /* (130) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */
390, /* (131) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */
390, /* (132) db_options ::= db_options S3_COMPACT NK_INTEGER */
390, /* (133) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
392, /* (134) alter_db_options ::= alter_db_option */
392, /* (135) alter_db_options ::= alter_db_options alter_db_option */
400, /* (136) alter_db_option ::= BUFFER NK_INTEGER */
400, /* (137) alter_db_option ::= CACHEMODEL NK_STRING */
400, /* (138) alter_db_option ::= CACHESIZE NK_INTEGER */
400, /* (139) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
400, /* (140) alter_db_option ::= KEEP integer_list */
400, /* (141) alter_db_option ::= KEEP variable_list */
400, /* (142) alter_db_option ::= PAGES NK_INTEGER */
400, /* (143) alter_db_option ::= REPLICA NK_INTEGER */
400, /* (144) alter_db_option ::= WAL_LEVEL NK_INTEGER */
400, /* (145) alter_db_option ::= STT_TRIGGER NK_INTEGER */
400, /* (146) alter_db_option ::= MINROWS NK_INTEGER */
400, /* (147) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
400, /* (148) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
400, /* (149) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
400, /* (150) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
400, /* (151) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */
400, /* (152) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */
400, /* (153) alter_db_option ::= S3_COMPACT NK_INTEGER */
400, /* (154) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
396, /* (155) integer_list ::= NK_INTEGER */
396, /* (156) integer_list ::= integer_list NK_COMMA NK_INTEGER */
397, /* (157) variable_list ::= NK_VARIABLE */
397, /* (158) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
398, /* (159) retention_list ::= retention */
398, /* (160) retention_list ::= retention_list NK_COMMA retention */
401, /* (161) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
401, /* (162) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
393, /* (163) speed_opt ::= */
393, /* (164) speed_opt ::= BWLIMIT NK_INTEGER */
394, /* (165) start_opt ::= */
394, /* (166) start_opt ::= START WITH NK_INTEGER */
394, /* (167) start_opt ::= START WITH NK_STRING */
394, /* (168) start_opt ::= START WITH TIMESTAMP NK_STRING */
395, /* (169) end_opt ::= */
395, /* (170) end_opt ::= END WITH NK_INTEGER */
395, /* (171) end_opt ::= END WITH NK_STRING */
395, /* (172) end_opt ::= END WITH TIMESTAMP NK_STRING */
367, /* (173) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
367, /* (174) cmd ::= CREATE TABLE multi_create_clause */
367, /* (175) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
367, /* (176) cmd ::= DROP TABLE multi_drop_clause */
367, /* (177) cmd ::= DROP STABLE exists_opt full_table_name */
367, /* (178) cmd ::= ALTER TABLE alter_table_clause */
367, /* (179) cmd ::= ALTER STABLE alter_table_clause */
409, /* (180) alter_table_clause ::= full_table_name alter_table_options */
409, /* (181) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
409, /* (182) alter_table_clause ::= full_table_name DROP COLUMN column_name */
409, /* (183) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
409, /* (184) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
409, /* (185) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
409, /* (186) alter_table_clause ::= full_table_name DROP TAG column_name */
409, /* (187) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
409, /* (188) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
409, /* (189) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
406, /* (190) multi_create_clause ::= create_subtable_clause */
406, /* (191) multi_create_clause ::= multi_create_clause create_subtable_clause */
414, /* (192) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
408, /* (193) multi_drop_clause ::= drop_table_clause */
408, /* (194) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
417, /* (195) drop_table_clause ::= exists_opt full_table_name */
415, /* (196) specific_cols_opt ::= */
415, /* (197) specific_cols_opt ::= NK_LP col_name_list NK_RP */
402, /* (198) full_table_name ::= table_name */
402, /* (199) full_table_name ::= db_name NK_DOT table_name */
403, /* (200) column_def_list ::= column_def */
403, /* (201) column_def_list ::= column_def_list NK_COMMA column_def */
419, /* (202) column_def ::= column_name type_name */
419, /* (203) column_def ::= column_name type_name PRIMARY KEY */
412, /* (204) type_name ::= BOOL */
412, /* (205) type_name ::= TINYINT */
412, /* (206) type_name ::= SMALLINT */
412, /* (207) type_name ::= INT */
412, /* (208) type_name ::= INTEGER */
412, /* (209) type_name ::= BIGINT */
412, /* (210) type_name ::= FLOAT */
412, /* (211) type_name ::= DOUBLE */
412, /* (212) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
412, /* (213) type_name ::= TIMESTAMP */
412, /* (214) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
412, /* (215) type_name ::= TINYINT UNSIGNED */
412, /* (216) type_name ::= SMALLINT UNSIGNED */
412, /* (217) type_name ::= INT UNSIGNED */
412, /* (218) type_name ::= BIGINT UNSIGNED */
412, /* (219) type_name ::= JSON */
412, /* (220) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
412, /* (221) type_name ::= MEDIUMBLOB */
412, /* (222) type_name ::= BLOB */
412, /* (223) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
412, /* (224) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
412, /* (225) type_name ::= DECIMAL */
412, /* (226) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
412, /* (227) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
420, /* (228) type_name_default_len ::= BINARY */
420, /* (229) type_name_default_len ::= NCHAR */
420, /* (230) type_name_default_len ::= VARCHAR */
420, /* (231) type_name_default_len ::= VARBINARY */
404, /* (232) tags_def_opt ::= */
404, /* (233) tags_def_opt ::= tags_def */
407, /* (234) tags_def ::= TAGS NK_LP column_def_list NK_RP */
405, /* (235) table_options ::= */
405, /* (236) table_options ::= table_options COMMENT NK_STRING */
405, /* (237) table_options ::= table_options MAX_DELAY duration_list */
405, /* (238) table_options ::= table_options WATERMARK duration_list */
405, /* (239) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
405, /* (240) table_options ::= table_options TTL NK_INTEGER */
405, /* (241) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
405, /* (242) table_options ::= table_options DELETE_MARK duration_list */
410, /* (243) alter_table_options ::= alter_table_option */
410, /* (244) alter_table_options ::= alter_table_options alter_table_option */
423, /* (245) alter_table_option ::= COMMENT NK_STRING */
423, /* (246) alter_table_option ::= TTL NK_INTEGER */
421, /* (247) duration_list ::= duration_literal */
421, /* (248) duration_list ::= duration_list NK_COMMA duration_literal */
422, /* (249) rollup_func_list ::= rollup_func_name */
422, /* (250) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
425, /* (251) rollup_func_name ::= function_name */
425, /* (252) rollup_func_name ::= FIRST */
425, /* (253) rollup_func_name ::= LAST */
418, /* (254) col_name_list ::= col_name */
418, /* (255) col_name_list ::= col_name_list NK_COMMA col_name */
427, /* (256) col_name ::= column_name */
367, /* (257) cmd ::= SHOW DNODES */
367, /* (258) cmd ::= SHOW USERS */
367, /* (259) cmd ::= SHOW USER PRIVILEGES */
367, /* (260) cmd ::= SHOW db_kind_opt DATABASES */
367, /* (261) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
367, /* (262) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
367, /* (263) cmd ::= SHOW db_name_cond_opt VGROUPS */
367, /* (264) cmd ::= SHOW MNODES */
367, /* (265) cmd ::= SHOW QNODES */
367, /* (266) cmd ::= SHOW ARBGROUPS */
367, /* (267) cmd ::= SHOW FUNCTIONS */
367, /* (268) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
367, /* (269) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
367, /* (270) cmd ::= SHOW STREAMS */
367, /* (271) cmd ::= SHOW ACCOUNTS */
367, /* (272) cmd ::= SHOW APPS */
367, /* (273) cmd ::= SHOW CONNECTIONS */
367, /* (274) cmd ::= SHOW LICENCES */
367, /* (275) cmd ::= SHOW GRANTS */
367, /* (276) cmd ::= SHOW GRANTS FULL */
367, /* (277) cmd ::= SHOW GRANTS LOGS */
367, /* (278) cmd ::= SHOW CLUSTER MACHINES */
367, /* (279) cmd ::= SHOW CREATE DATABASE db_name */
367, /* (280) cmd ::= SHOW CREATE TABLE full_table_name */
367, /* (281) cmd ::= SHOW CREATE STABLE full_table_name */
367, /* (282) cmd ::= SHOW QUERIES */
367, /* (283) cmd ::= SHOW SCORES */
367, /* (284) cmd ::= SHOW TOPICS */
367, /* (285) cmd ::= SHOW VARIABLES */
367, /* (286) cmd ::= SHOW CLUSTER VARIABLES */
367, /* (287) cmd ::= SHOW LOCAL VARIABLES */
367, /* (288) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
367, /* (289) cmd ::= SHOW BNODES */
367, /* (290) cmd ::= SHOW SNODES */
367, /* (291) cmd ::= SHOW CLUSTER */
367, /* (292) cmd ::= SHOW TRANSACTIONS */
367, /* (293) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
367, /* (294) cmd ::= SHOW CONSUMERS */
367, /* (295) cmd ::= SHOW SUBSCRIPTIONS */
367, /* (296) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
367, /* (297) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
367, /* (298) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
367, /* (299) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
367, /* (300) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
367, /* (301) cmd ::= SHOW VNODES */
367, /* (302) cmd ::= SHOW db_name_cond_opt ALIVE */
367, /* (303) cmd ::= SHOW CLUSTER ALIVE */
367, /* (304) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
367, /* (305) cmd ::= SHOW CREATE VIEW full_table_name */
367, /* (306) cmd ::= SHOW COMPACTS */
367, /* (307) cmd ::= SHOW COMPACT NK_INTEGER */
429, /* (308) table_kind_db_name_cond_opt ::= */
429, /* (309) table_kind_db_name_cond_opt ::= table_kind */
429, /* (310) table_kind_db_name_cond_opt ::= db_name NK_DOT */
429, /* (311) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
435, /* (312) table_kind ::= NORMAL */
435, /* (313) table_kind ::= CHILD */
431, /* (314) db_name_cond_opt ::= */
431, /* (315) db_name_cond_opt ::= db_name NK_DOT */
430, /* (316) like_pattern_opt ::= */
430, /* (317) like_pattern_opt ::= LIKE NK_STRING */
432, /* (318) table_name_cond ::= table_name */
433, /* (319) from_db_opt ::= */
433, /* (320) from_db_opt ::= FROM db_name */
434, /* (321) tag_list_opt ::= */
434, /* (322) tag_list_opt ::= tag_item */
434, /* (323) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
436, /* (324) tag_item ::= TBNAME */
436, /* (325) tag_item ::= QTAGS */
436, /* (326) tag_item ::= column_name */
436, /* (327) tag_item ::= column_name column_alias */
436, /* (328) tag_item ::= column_name AS column_alias */
428, /* (329) db_kind_opt ::= */
428, /* (330) db_kind_opt ::= USER */
428, /* (331) db_kind_opt ::= SYSTEM */
367, /* (332) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
367, /* (333) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
367, /* (334) cmd ::= DROP INDEX exists_opt full_index_name */
439, /* (335) full_index_name ::= index_name */
439, /* (336) full_index_name ::= db_name NK_DOT index_name */
438, /* (337) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
438, /* (338) 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 */
441, /* (339) func_list ::= func */
441, /* (340) func_list ::= func_list NK_COMMA func */
444, /* (341) func ::= sma_func_name NK_LP expression_list NK_RP */
445, /* (342) sma_func_name ::= function_name */
445, /* (343) sma_func_name ::= COUNT */
445, /* (344) sma_func_name ::= FIRST */
445, /* (345) sma_func_name ::= LAST */
445, /* (346) sma_func_name ::= LAST_ROW */
443, /* (347) sma_stream_opt ::= */
443, /* (348) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
443, /* (349) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
443, /* (350) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
447, /* (351) with_meta ::= AS */
447, /* (352) with_meta ::= WITH META AS */
447, /* (353) with_meta ::= ONLY META AS */
367, /* (354) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
367, /* (355) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
367, /* (356) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
367, /* (357) cmd ::= DROP TOPIC exists_opt topic_name */
367, /* (358) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
367, /* (359) cmd ::= DESC full_table_name */
367, /* (360) cmd ::= DESCRIBE full_table_name */
367, /* (361) cmd ::= RESET QUERY CACHE */
367, /* (362) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
367, /* (363) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
451, /* (364) analyze_opt ::= */
451, /* (365) analyze_opt ::= ANALYZE */
452, /* (366) explain_options ::= */
452, /* (367) explain_options ::= explain_options VERBOSE NK_BOOL */
452, /* (368) explain_options ::= explain_options RATIO NK_FLOAT */
367, /* (369) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
367, /* (370) cmd ::= DROP FUNCTION exists_opt function_name */
455, /* (371) agg_func_opt ::= */
455, /* (372) agg_func_opt ::= AGGREGATE */
456, /* (373) bufsize_opt ::= */
456, /* (374) bufsize_opt ::= BUFSIZE NK_INTEGER */
457, /* (375) language_opt ::= */
457, /* (376) language_opt ::= LANGUAGE NK_STRING */
454, /* (377) or_replace_opt ::= */
454, /* (378) or_replace_opt ::= OR REPLACE */
367, /* (379) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
367, /* (380) cmd ::= DROP VIEW exists_opt full_view_name */
458, /* (381) full_view_name ::= view_name */
458, /* (382) full_view_name ::= db_name NK_DOT view_name */
367, /* (383) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
367, /* (384) cmd ::= DROP STREAM exists_opt stream_name */
367, /* (385) cmd ::= PAUSE STREAM exists_opt stream_name */
367, /* (386) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
462, /* (387) col_list_opt ::= */
462, /* (388) col_list_opt ::= NK_LP column_stream_def_list NK_RP */
466, /* (389) column_stream_def_list ::= column_stream_def */
466, /* (390) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */
467, /* (391) column_stream_def ::= column_name */
467, /* (392) column_stream_def ::= column_name PRIMARY KEY */
463, /* (393) tag_def_or_ref_opt ::= */
463, /* (394) tag_def_or_ref_opt ::= tags_def */
463, /* (395) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */
461, /* (396) stream_options ::= */
461, /* (397) stream_options ::= stream_options TRIGGER AT_ONCE */
461, /* (398) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
461, /* (399) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
461, /* (400) stream_options ::= stream_options WATERMARK duration_literal */
461, /* (401) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
461, /* (402) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
461, /* (403) stream_options ::= stream_options DELETE_MARK duration_literal */
461, /* (404) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
464, /* (405) subtable_opt ::= */
464, /* (406) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
465, /* (407) ignore_opt ::= */
465, /* (408) ignore_opt ::= IGNORE UNTREATED */
367, /* (409) cmd ::= KILL CONNECTION NK_INTEGER */
367, /* (410) cmd ::= KILL QUERY NK_STRING */
367, /* (411) cmd ::= KILL TRANSACTION NK_INTEGER */
367, /* (412) cmd ::= KILL COMPACT NK_INTEGER */
367, /* (413) cmd ::= BALANCE VGROUP */
367, /* (414) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
367, /* (415) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
367, /* (416) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
367, /* (417) cmd ::= SPLIT VGROUP NK_INTEGER */
469, /* (418) on_vgroup_id ::= */
469, /* (419) on_vgroup_id ::= ON NK_INTEGER */
470, /* (420) dnode_list ::= DNODE NK_INTEGER */
470, /* (421) dnode_list ::= dnode_list DNODE NK_INTEGER */
367, /* (422) cmd ::= DELETE FROM full_table_name where_clause_opt */
367, /* (423) cmd ::= query_or_subquery */
367, /* (424) cmd ::= insert_query */
453, /* (425) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
453, /* (426) insert_query ::= INSERT INTO full_table_name query_or_subquery */
413, /* (427) tags_literal ::= NK_INTEGER */
413, /* (428) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
413, /* (429) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */
413, /* (430) tags_literal ::= NK_PLUS NK_INTEGER */
413, /* (431) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
413, /* (432) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */
413, /* (433) tags_literal ::= NK_MINUS NK_INTEGER */
413, /* (434) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */
413, /* (435) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */
413, /* (436) tags_literal ::= NK_FLOAT */
413, /* (437) tags_literal ::= NK_PLUS NK_FLOAT */
413, /* (438) tags_literal ::= NK_MINUS NK_FLOAT */
413, /* (439) tags_literal ::= NK_BIN */
413, /* (440) tags_literal ::= NK_BIN NK_PLUS duration_literal */
413, /* (441) tags_literal ::= NK_BIN NK_MINUS duration_literal */
413, /* (442) tags_literal ::= NK_PLUS NK_BIN */
413, /* (443) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */
413, /* (444) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */
413, /* (445) tags_literal ::= NK_MINUS NK_BIN */
413, /* (446) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */
413, /* (447) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */
413, /* (448) tags_literal ::= NK_HEX */
413, /* (449) tags_literal ::= NK_HEX NK_PLUS duration_literal */
413, /* (450) tags_literal ::= NK_HEX NK_MINUS duration_literal */
413, /* (451) tags_literal ::= NK_PLUS NK_HEX */
413, /* (452) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */
413, /* (453) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */
413, /* (454) tags_literal ::= NK_MINUS NK_HEX */
413, /* (455) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */
413, /* (456) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */
413, /* (457) tags_literal ::= NK_STRING */
413, /* (458) tags_literal ::= NK_STRING NK_PLUS duration_literal */
413, /* (459) tags_literal ::= NK_STRING NK_MINUS duration_literal */
413, /* (460) tags_literal ::= NK_BOOL */
413, /* (461) tags_literal ::= NULL */
413, /* (462) tags_literal ::= literal_func */
413, /* (463) tags_literal ::= literal_func NK_PLUS duration_literal */
413, /* (464) tags_literal ::= literal_func NK_MINUS duration_literal */
416, /* (465) tags_literal_list ::= tags_literal */
416, /* (466) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
370, /* (467) literal ::= NK_INTEGER */
370, /* (468) literal ::= NK_FLOAT */
370, /* (469) literal ::= NK_STRING */
370, /* (470) literal ::= NK_BOOL */
370, /* (471) literal ::= TIMESTAMP NK_STRING */
370, /* (472) literal ::= duration_literal */
370, /* (473) literal ::= NULL */
370, /* (474) literal ::= NK_QUESTION */
424, /* (475) duration_literal ::= NK_VARIABLE */
399, /* (476) signed ::= NK_INTEGER */
399, /* (477) signed ::= NK_PLUS NK_INTEGER */
399, /* (478) signed ::= NK_MINUS NK_INTEGER */
399, /* (479) signed ::= NK_FLOAT */
399, /* (480) signed ::= NK_PLUS NK_FLOAT */
399, /* (481) signed ::= NK_MINUS NK_FLOAT */
472, /* (482) signed_literal ::= signed */
472, /* (483) signed_literal ::= NK_STRING */
472, /* (484) signed_literal ::= NK_BOOL */
472, /* (485) signed_literal ::= TIMESTAMP NK_STRING */
472, /* (486) signed_literal ::= duration_literal */
472, /* (487) signed_literal ::= NULL */
472, /* (488) signed_literal ::= literal_func */
472, /* (489) signed_literal ::= NK_QUESTION */
473, /* (490) literal_list ::= signed_literal */
473, /* (491) literal_list ::= literal_list NK_COMMA signed_literal */
382, /* (492) db_name ::= NK_ID */
383, /* (493) table_name ::= NK_ID */
411, /* (494) column_name ::= NK_ID */
426, /* (495) function_name ::= NK_ID */
459, /* (496) view_name ::= NK_ID */
474, /* (497) table_alias ::= NK_ID */
437, /* (498) column_alias ::= NK_ID */
437, /* (499) column_alias ::= NK_ALIAS */
375, /* (500) user_name ::= NK_ID */
384, /* (501) topic_name ::= NK_ID */
460, /* (502) stream_name ::= NK_ID */
450, /* (503) cgroup_name ::= NK_ID */
440, /* (504) index_name ::= NK_ID */
475, /* (505) expr_or_subquery ::= expression */
468, /* (506) expression ::= literal */
468, /* (507) expression ::= pseudo_column */
468, /* (508) expression ::= column_reference */
468, /* (509) expression ::= function_expression */
468, /* (510) expression ::= case_when_expression */
468, /* (511) expression ::= NK_LP expression NK_RP */
468, /* (512) expression ::= NK_PLUS expr_or_subquery */
468, /* (513) expression ::= NK_MINUS expr_or_subquery */
468, /* (514) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
468, /* (515) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
468, /* (516) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
468, /* (517) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
468, /* (518) expression ::= expr_or_subquery NK_REM expr_or_subquery */
468, /* (519) expression ::= column_reference NK_ARROW NK_STRING */
468, /* (520) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
468, /* (521) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
446, /* (522) expression_list ::= expr_or_subquery */
446, /* (523) expression_list ::= expression_list NK_COMMA expr_or_subquery */
477, /* (524) column_reference ::= column_name */
477, /* (525) column_reference ::= table_name NK_DOT column_name */
477, /* (526) column_reference ::= NK_ALIAS */
477, /* (527) column_reference ::= table_name NK_DOT NK_ALIAS */
476, /* (528) pseudo_column ::= ROWTS */
476, /* (529) pseudo_column ::= TBNAME */
476, /* (530) pseudo_column ::= table_name NK_DOT TBNAME */
476, /* (531) pseudo_column ::= QSTART */
476, /* (532) pseudo_column ::= QEND */
476, /* (533) pseudo_column ::= QDURATION */
476, /* (534) pseudo_column ::= WSTART */
476, /* (535) pseudo_column ::= WEND */
476, /* (536) pseudo_column ::= WDURATION */
476, /* (537) pseudo_column ::= IROWTS */
476, /* (538) pseudo_column ::= ISFILLED */
476, /* (539) pseudo_column ::= QTAGS */
478, /* (540) function_expression ::= function_name NK_LP expression_list NK_RP */
478, /* (541) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
478, /* (542) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
478, /* (543) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */
478, /* (544) function_expression ::= literal_func */
471, /* (545) literal_func ::= noarg_func NK_LP NK_RP */
471, /* (546) literal_func ::= NOW */
471, /* (547) literal_func ::= TODAY */
482, /* (548) noarg_func ::= NOW */
482, /* (549) noarg_func ::= TODAY */
482, /* (550) noarg_func ::= TIMEZONE */
482, /* (551) noarg_func ::= DATABASE */
482, /* (552) noarg_func ::= CLIENT_VERSION */
482, /* (553) noarg_func ::= SERVER_VERSION */
482, /* (554) noarg_func ::= SERVER_STATUS */
482, /* (555) noarg_func ::= CURRENT_USER */
482, /* (556) noarg_func ::= USER */
480, /* (557) star_func ::= COUNT */
480, /* (558) star_func ::= FIRST */
480, /* (559) star_func ::= LAST */
480, /* (560) star_func ::= LAST_ROW */
481, /* (561) star_func_para_list ::= NK_STAR */
481, /* (562) star_func_para_list ::= other_para_list */
483, /* (563) other_para_list ::= star_func_para */
483, /* (564) other_para_list ::= other_para_list NK_COMMA star_func_para */
484, /* (565) star_func_para ::= expr_or_subquery */
484, /* (566) star_func_para ::= table_name NK_DOT NK_STAR */
479, /* (567) case_when_expression ::= CASE when_then_list case_when_else_opt END */
479, /* (568) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
485, /* (569) when_then_list ::= when_then_expr */
485, /* (570) when_then_list ::= when_then_list when_then_expr */
488, /* (571) when_then_expr ::= WHEN common_expression THEN common_expression */
486, /* (572) case_when_else_opt ::= */
486, /* (573) case_when_else_opt ::= ELSE common_expression */
489, /* (574) predicate ::= expr_or_subquery compare_op expr_or_subquery */
489, /* (575) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
489, /* (576) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
489, /* (577) predicate ::= expr_or_subquery IS NULL */
489, /* (578) predicate ::= expr_or_subquery IS NOT NULL */
489, /* (579) predicate ::= expr_or_subquery in_op in_predicate_value */
490, /* (580) compare_op ::= NK_LT */
490, /* (581) compare_op ::= NK_GT */
490, /* (582) compare_op ::= NK_LE */
490, /* (583) compare_op ::= NK_GE */
490, /* (584) compare_op ::= NK_NE */
490, /* (585) compare_op ::= NK_EQ */
490, /* (586) compare_op ::= LIKE */
490, /* (587) compare_op ::= NOT LIKE */
490, /* (588) compare_op ::= MATCH */
490, /* (589) compare_op ::= NMATCH */
490, /* (590) compare_op ::= CONTAINS */
491, /* (591) in_op ::= IN */
491, /* (592) in_op ::= NOT IN */
492, /* (593) in_predicate_value ::= NK_LP literal_list NK_RP */
493, /* (594) boolean_value_expression ::= boolean_primary */
493, /* (595) boolean_value_expression ::= NOT boolean_primary */
493, /* (596) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
493, /* (597) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
494, /* (598) boolean_primary ::= predicate */
494, /* (599) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
487, /* (600) common_expression ::= expr_or_subquery */
487, /* (601) common_expression ::= boolean_value_expression */
495, /* (602) from_clause_opt ::= */
495, /* (603) from_clause_opt ::= FROM table_reference_list */
496, /* (604) table_reference_list ::= table_reference */
496, /* (605) table_reference_list ::= table_reference_list NK_COMMA table_reference */
497, /* (606) table_reference ::= table_primary */
497, /* (607) table_reference ::= joined_table */
498, /* (608) table_primary ::= table_name alias_opt */
498, /* (609) table_primary ::= db_name NK_DOT table_name alias_opt */
498, /* (610) table_primary ::= subquery alias_opt */
498, /* (611) table_primary ::= parenthesized_joined_table */
500, /* (612) alias_opt ::= */
500, /* (613) alias_opt ::= table_alias */
500, /* (614) alias_opt ::= AS table_alias */
502, /* (615) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
502, /* (616) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
499, /* (617) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */
503, /* (618) join_type ::= */
503, /* (619) join_type ::= INNER */
503, /* (620) join_type ::= LEFT */
503, /* (621) join_type ::= RIGHT */
503, /* (622) join_type ::= FULL */
504, /* (623) join_subtype ::= */
504, /* (624) join_subtype ::= OUTER */
504, /* (625) join_subtype ::= SEMI */
504, /* (626) join_subtype ::= ANTI */
504, /* (627) join_subtype ::= ASOF */
504, /* (628) join_subtype ::= WINDOW */
505, /* (629) join_on_clause_opt ::= */
505, /* (630) join_on_clause_opt ::= ON search_condition */
506, /* (631) window_offset_clause_opt ::= */
506, /* (632) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */
508, /* (633) window_offset_literal ::= NK_VARIABLE */
508, /* (634) window_offset_literal ::= NK_MINUS NK_VARIABLE */
507, /* (635) jlimit_clause_opt ::= */
507, /* (636) jlimit_clause_opt ::= JLIMIT NK_INTEGER */
509, /* (637) 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 */
510, /* (638) hint_list ::= */
510, /* (639) hint_list ::= NK_HINT */
512, /* (640) tag_mode_opt ::= */
512, /* (641) tag_mode_opt ::= TAGS */
511, /* (642) set_quantifier_opt ::= */
511, /* (643) set_quantifier_opt ::= DISTINCT */
511, /* (644) set_quantifier_opt ::= ALL */
513, /* (645) select_list ::= select_item */
513, /* (646) select_list ::= select_list NK_COMMA select_item */
521, /* (647) select_item ::= NK_STAR */
521, /* (648) select_item ::= common_expression */
521, /* (649) select_item ::= common_expression column_alias */
521, /* (650) select_item ::= common_expression AS column_alias */
521, /* (651) select_item ::= table_name NK_DOT NK_STAR */
449, /* (652) where_clause_opt ::= */
449, /* (653) where_clause_opt ::= WHERE search_condition */
514, /* (654) partition_by_clause_opt ::= */
514, /* (655) partition_by_clause_opt ::= PARTITION BY partition_list */
522, /* (656) partition_list ::= partition_item */
522, /* (657) partition_list ::= partition_list NK_COMMA partition_item */
523, /* (658) partition_item ::= expr_or_subquery */
523, /* (659) partition_item ::= expr_or_subquery column_alias */
523, /* (660) partition_item ::= expr_or_subquery AS column_alias */
518, /* (661) twindow_clause_opt ::= */
518, /* (662) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
518, /* (663) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
518, /* (664) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
518, /* (665) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
518, /* (666) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
518, /* (667) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
518, /* (668) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
442, /* (669) sliding_opt ::= */
442, /* (670) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
524, /* (671) interval_sliding_duration_literal ::= NK_VARIABLE */
524, /* (672) interval_sliding_duration_literal ::= NK_STRING */
524, /* (673) interval_sliding_duration_literal ::= NK_INTEGER */
517, /* (674) fill_opt ::= */
517, /* (675) fill_opt ::= FILL NK_LP fill_mode NK_RP */
517, /* (676) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
517, /* (677) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
525, /* (678) fill_mode ::= NONE */
525, /* (679) fill_mode ::= PREV */
525, /* (680) fill_mode ::= NULL */
525, /* (681) fill_mode ::= NULL_F */
525, /* (682) fill_mode ::= LINEAR */
525, /* (683) fill_mode ::= NEXT */
519, /* (684) group_by_clause_opt ::= */
519, /* (685) group_by_clause_opt ::= GROUP BY group_by_list */
526, /* (686) group_by_list ::= expr_or_subquery */
526, /* (687) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
520, /* (688) having_clause_opt ::= */
520, /* (689) having_clause_opt ::= HAVING search_condition */
515, /* (690) range_opt ::= */
515, /* (691) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
515, /* (692) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
516, /* (693) every_opt ::= */
516, /* (694) every_opt ::= EVERY NK_LP duration_literal NK_RP */
527, /* (695) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
528, /* (696) query_simple ::= query_specification */
528, /* (697) query_simple ::= union_query_expression */
532, /* (698) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
532, /* (699) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
533, /* (700) query_simple_or_subquery ::= query_simple */
533, /* (701) query_simple_or_subquery ::= subquery */
448, /* (702) query_or_subquery ::= query_expression */
448, /* (703) query_or_subquery ::= subquery */
529, /* (704) order_by_clause_opt ::= */
529, /* (705) order_by_clause_opt ::= ORDER BY sort_specification_list */
530, /* (706) slimit_clause_opt ::= */
530, /* (707) slimit_clause_opt ::= SLIMIT NK_INTEGER */
530, /* (708) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
530, /* (709) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
531, /* (710) limit_clause_opt ::= */
531, /* (711) limit_clause_opt ::= LIMIT NK_INTEGER */
531, /* (712) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
531, /* (713) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
501, /* (714) subquery ::= NK_LP query_expression NK_RP */
501, /* (715) subquery ::= NK_LP subquery NK_RP */
385, /* (716) search_condition ::= common_expression */
534, /* (717) sort_specification_list ::= sort_specification */
534, /* (718) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
535, /* (719) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
536, /* (720) ordering_specification_opt ::= */
536, /* (721) ordering_specification_opt ::= ASC */
536, /* (722) ordering_specification_opt ::= DESC */
537, /* (723) null_ordering_opt ::= */
537, /* (724) null_ordering_opt ::= NULLS FIRST */
537, /* (725) null_ordering_opt ::= NULLS LAST */
2023-05-09 11:19:14 +00:00
};
/* 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 */
2023-08-24 07:54:10 +00:00
-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 */
2023-12-18 08:34:31 +00:00
-3, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
-4, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
-3, /* (73) cmd ::= ALTER LOCAL NK_STRING */
-4, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
-5, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
-5, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
-5, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
-5, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
-5, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
-5, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
-5, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
-5, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
-5, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
-5, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
-5, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
-5, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
-4, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
-2, /* (88) cmd ::= USE db_name */
-4, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
-3, /* (90) cmd ::= FLUSH DATABASE db_name */
-4, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
2024-04-08 02:55:47 +00:00
-3, /* (92) cmd ::= S3MIGRATE DATABASE db_name */
-5, /* (93) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
-3, /* (94) not_exists_opt ::= IF NOT EXISTS */
0, /* (95) not_exists_opt ::= */
-2, /* (96) exists_opt ::= IF EXISTS */
0, /* (97) exists_opt ::= */
0, /* (98) db_options ::= */
-3, /* (99) db_options ::= db_options BUFFER NK_INTEGER */
-3, /* (100) db_options ::= db_options CACHEMODEL NK_STRING */
-3, /* (101) db_options ::= db_options CACHESIZE NK_INTEGER */
-3, /* (102) db_options ::= db_options COMP NK_INTEGER */
-3, /* (103) db_options ::= db_options DURATION NK_INTEGER */
-3, /* (104) db_options ::= db_options DURATION NK_VARIABLE */
-3, /* (105) db_options ::= db_options MAXROWS NK_INTEGER */
-3, /* (106) db_options ::= db_options MINROWS NK_INTEGER */
-3, /* (107) db_options ::= db_options KEEP integer_list */
-3, /* (108) db_options ::= db_options KEEP variable_list */
-3, /* (109) db_options ::= db_options PAGES NK_INTEGER */
-3, /* (110) db_options ::= db_options PAGESIZE NK_INTEGER */
-3, /* (111) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
-3, /* (112) db_options ::= db_options PRECISION NK_STRING */
-3, /* (113) db_options ::= db_options REPLICA NK_INTEGER */
-3, /* (114) db_options ::= db_options VGROUPS NK_INTEGER */
-3, /* (115) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
-3, /* (116) db_options ::= db_options RETENTIONS retention_list */
-3, /* (117) db_options ::= db_options SCHEMALESS NK_INTEGER */
-3, /* (118) db_options ::= db_options WAL_LEVEL NK_INTEGER */
-3, /* (119) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
-3, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
-4, /* (121) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-3, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
-4, /* (123) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-3, /* (124) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
-3, /* (125) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
-3, /* (126) db_options ::= db_options STT_TRIGGER NK_INTEGER */
-3, /* (127) db_options ::= db_options TABLE_PREFIX signed */
-3, /* (128) db_options ::= db_options TABLE_SUFFIX signed */
-3, /* (129) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */
-3, /* (130) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */
-3, /* (131) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */
-3, /* (132) db_options ::= db_options S3_COMPACT NK_INTEGER */
-3, /* (133) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (134) alter_db_options ::= alter_db_option */
-2, /* (135) alter_db_options ::= alter_db_options alter_db_option */
-2, /* (136) alter_db_option ::= BUFFER NK_INTEGER */
-2, /* (137) alter_db_option ::= CACHEMODEL NK_STRING */
-2, /* (138) alter_db_option ::= CACHESIZE NK_INTEGER */
-2, /* (139) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
-2, /* (140) alter_db_option ::= KEEP integer_list */
-2, /* (141) alter_db_option ::= KEEP variable_list */
-2, /* (142) alter_db_option ::= PAGES NK_INTEGER */
-2, /* (143) alter_db_option ::= REPLICA NK_INTEGER */
-2, /* (144) alter_db_option ::= WAL_LEVEL NK_INTEGER */
-2, /* (145) alter_db_option ::= STT_TRIGGER NK_INTEGER */
-2, /* (146) alter_db_option ::= MINROWS NK_INTEGER */
-2, /* (147) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
-3, /* (148) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-2, /* (149) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
-3, /* (150) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-2, /* (151) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */
-2, /* (152) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */
-2, /* (153) alter_db_option ::= S3_COMPACT NK_INTEGER */
-2, /* (154) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (155) integer_list ::= NK_INTEGER */
-3, /* (156) integer_list ::= integer_list NK_COMMA NK_INTEGER */
-1, /* (157) variable_list ::= NK_VARIABLE */
-3, /* (158) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
-1, /* (159) retention_list ::= retention */
-3, /* (160) retention_list ::= retention_list NK_COMMA retention */
-3, /* (161) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
-3, /* (162) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
0, /* (163) speed_opt ::= */
-2, /* (164) speed_opt ::= BWLIMIT NK_INTEGER */
0, /* (165) start_opt ::= */
-3, /* (166) start_opt ::= START WITH NK_INTEGER */
-3, /* (167) start_opt ::= START WITH NK_STRING */
-4, /* (168) start_opt ::= START WITH TIMESTAMP NK_STRING */
0, /* (169) end_opt ::= */
-3, /* (170) end_opt ::= END WITH NK_INTEGER */
-3, /* (171) end_opt ::= END WITH NK_STRING */
-4, /* (172) end_opt ::= END WITH TIMESTAMP NK_STRING */
-9, /* (173) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
-3, /* (174) cmd ::= CREATE TABLE multi_create_clause */
-9, /* (175) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
-3, /* (176) cmd ::= DROP TABLE multi_drop_clause */
-4, /* (177) cmd ::= DROP STABLE exists_opt full_table_name */
-3, /* (178) cmd ::= ALTER TABLE alter_table_clause */
-3, /* (179) cmd ::= ALTER STABLE alter_table_clause */
-2, /* (180) alter_table_clause ::= full_table_name alter_table_options */
-5, /* (181) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
-4, /* (182) alter_table_clause ::= full_table_name DROP COLUMN column_name */
-5, /* (183) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
-5, /* (184) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-5, /* (185) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-4, /* (186) alter_table_clause ::= full_table_name DROP TAG column_name */
-5, /* (187) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-5, /* (188) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
-6, /* (189) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
-1, /* (190) multi_create_clause ::= create_subtable_clause */
-2, /* (191) multi_create_clause ::= multi_create_clause create_subtable_clause */
-10, /* (192) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
-1, /* (193) multi_drop_clause ::= drop_table_clause */
-3, /* (194) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
-2, /* (195) drop_table_clause ::= exists_opt full_table_name */
0, /* (196) specific_cols_opt ::= */
-3, /* (197) specific_cols_opt ::= NK_LP col_name_list NK_RP */
-1, /* (198) full_table_name ::= table_name */
-3, /* (199) full_table_name ::= db_name NK_DOT table_name */
-1, /* (200) column_def_list ::= column_def */
-3, /* (201) column_def_list ::= column_def_list NK_COMMA column_def */
-2, /* (202) column_def ::= column_name type_name */
-4, /* (203) column_def ::= column_name type_name PRIMARY KEY */
-1, /* (204) type_name ::= BOOL */
-1, /* (205) type_name ::= TINYINT */
-1, /* (206) type_name ::= SMALLINT */
-1, /* (207) type_name ::= INT */
-1, /* (208) type_name ::= INTEGER */
-1, /* (209) type_name ::= BIGINT */
-1, /* (210) type_name ::= FLOAT */
-1, /* (211) type_name ::= DOUBLE */
-4, /* (212) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-1, /* (213) type_name ::= TIMESTAMP */
-4, /* (214) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-2, /* (215) type_name ::= TINYINT UNSIGNED */
-2, /* (216) type_name ::= SMALLINT UNSIGNED */
-2, /* (217) type_name ::= INT UNSIGNED */
-2, /* (218) type_name ::= BIGINT UNSIGNED */
-1, /* (219) type_name ::= JSON */
-4, /* (220) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-1, /* (221) type_name ::= MEDIUMBLOB */
-1, /* (222) type_name ::= BLOB */
-4, /* (223) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-4, /* (224) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
-1, /* (225) type_name ::= DECIMAL */
-4, /* (226) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-6, /* (227) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
-1, /* (228) type_name_default_len ::= BINARY */
-1, /* (229) type_name_default_len ::= NCHAR */
-1, /* (230) type_name_default_len ::= VARCHAR */
-1, /* (231) type_name_default_len ::= VARBINARY */
0, /* (232) tags_def_opt ::= */
-1, /* (233) tags_def_opt ::= tags_def */
-4, /* (234) tags_def ::= TAGS NK_LP column_def_list NK_RP */
0, /* (235) table_options ::= */
-3, /* (236) table_options ::= table_options COMMENT NK_STRING */
-3, /* (237) table_options ::= table_options MAX_DELAY duration_list */
-3, /* (238) table_options ::= table_options WATERMARK duration_list */
-5, /* (239) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
-3, /* (240) table_options ::= table_options TTL NK_INTEGER */
-5, /* (241) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-3, /* (242) table_options ::= table_options DELETE_MARK duration_list */
-1, /* (243) alter_table_options ::= alter_table_option */
-2, /* (244) alter_table_options ::= alter_table_options alter_table_option */
-2, /* (245) alter_table_option ::= COMMENT NK_STRING */
-2, /* (246) alter_table_option ::= TTL NK_INTEGER */
-1, /* (247) duration_list ::= duration_literal */
-3, /* (248) duration_list ::= duration_list NK_COMMA duration_literal */
-1, /* (249) rollup_func_list ::= rollup_func_name */
-3, /* (250) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
-1, /* (251) rollup_func_name ::= function_name */
-1, /* (252) rollup_func_name ::= FIRST */
-1, /* (253) rollup_func_name ::= LAST */
-1, /* (254) col_name_list ::= col_name */
-3, /* (255) col_name_list ::= col_name_list NK_COMMA col_name */
-1, /* (256) col_name ::= column_name */
-2, /* (257) cmd ::= SHOW DNODES */
-2, /* (258) cmd ::= SHOW USERS */
-3, /* (259) cmd ::= SHOW USER PRIVILEGES */
-3, /* (260) cmd ::= SHOW db_kind_opt DATABASES */
-4, /* (261) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
-4, /* (262) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-3, /* (263) cmd ::= SHOW db_name_cond_opt VGROUPS */
-2, /* (264) cmd ::= SHOW MNODES */
-2, /* (265) cmd ::= SHOW QNODES */
-2, /* (266) cmd ::= SHOW ARBGROUPS */
-2, /* (267) cmd ::= SHOW FUNCTIONS */
-5, /* (268) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-6, /* (269) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
-2, /* (270) cmd ::= SHOW STREAMS */
-2, /* (271) cmd ::= SHOW ACCOUNTS */
-2, /* (272) cmd ::= SHOW APPS */
-2, /* (273) cmd ::= SHOW CONNECTIONS */
-2, /* (274) cmd ::= SHOW LICENCES */
-2, /* (275) cmd ::= SHOW GRANTS */
-3, /* (276) cmd ::= SHOW GRANTS FULL */
-3, /* (277) cmd ::= SHOW GRANTS LOGS */
-3, /* (278) cmd ::= SHOW CLUSTER MACHINES */
-4, /* (279) cmd ::= SHOW CREATE DATABASE db_name */
-4, /* (280) cmd ::= SHOW CREATE TABLE full_table_name */
-4, /* (281) cmd ::= SHOW CREATE STABLE full_table_name */
-2, /* (282) cmd ::= SHOW QUERIES */
-2, /* (283) cmd ::= SHOW SCORES */
-2, /* (284) cmd ::= SHOW TOPICS */
-2, /* (285) cmd ::= SHOW VARIABLES */
-3, /* (286) cmd ::= SHOW CLUSTER VARIABLES */
-3, /* (287) cmd ::= SHOW LOCAL VARIABLES */
-5, /* (288) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
-2, /* (289) cmd ::= SHOW BNODES */
-2, /* (290) cmd ::= SHOW SNODES */
-2, /* (291) cmd ::= SHOW CLUSTER */
-2, /* (292) cmd ::= SHOW TRANSACTIONS */
-4, /* (293) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
-2, /* (294) cmd ::= SHOW CONSUMERS */
-2, /* (295) cmd ::= SHOW SUBSCRIPTIONS */
-5, /* (296) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
-6, /* (297) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
-7, /* (298) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
-8, /* (299) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
-5, /* (300) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
-2, /* (301) cmd ::= SHOW VNODES */
-3, /* (302) cmd ::= SHOW db_name_cond_opt ALIVE */
-3, /* (303) cmd ::= SHOW CLUSTER ALIVE */
-4, /* (304) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
-4, /* (305) cmd ::= SHOW CREATE VIEW full_table_name */
-2, /* (306) cmd ::= SHOW COMPACTS */
-3, /* (307) cmd ::= SHOW COMPACT NK_INTEGER */
0, /* (308) table_kind_db_name_cond_opt ::= */
-1, /* (309) table_kind_db_name_cond_opt ::= table_kind */
-2, /* (310) table_kind_db_name_cond_opt ::= db_name NK_DOT */
-3, /* (311) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
-1, /* (312) table_kind ::= NORMAL */
-1, /* (313) table_kind ::= CHILD */
0, /* (314) db_name_cond_opt ::= */
-2, /* (315) db_name_cond_opt ::= db_name NK_DOT */
0, /* (316) like_pattern_opt ::= */
-2, /* (317) like_pattern_opt ::= LIKE NK_STRING */
-1, /* (318) table_name_cond ::= table_name */
0, /* (319) from_db_opt ::= */
-2, /* (320) from_db_opt ::= FROM db_name */
0, /* (321) tag_list_opt ::= */
-1, /* (322) tag_list_opt ::= tag_item */
-3, /* (323) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
-1, /* (324) tag_item ::= TBNAME */
-1, /* (325) tag_item ::= QTAGS */
-1, /* (326) tag_item ::= column_name */
-2, /* (327) tag_item ::= column_name column_alias */
-3, /* (328) tag_item ::= column_name AS column_alias */
0, /* (329) db_kind_opt ::= */
-1, /* (330) db_kind_opt ::= USER */
-1, /* (331) db_kind_opt ::= SYSTEM */
-8, /* (332) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
-9, /* (333) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
-4, /* (334) cmd ::= DROP INDEX exists_opt full_index_name */
-1, /* (335) full_index_name ::= index_name */
-3, /* (336) full_index_name ::= db_name NK_DOT index_name */
-10, /* (337) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
-12, /* (338) 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, /* (339) func_list ::= func */
-3, /* (340) func_list ::= func_list NK_COMMA func */
-4, /* (341) func ::= sma_func_name NK_LP expression_list NK_RP */
-1, /* (342) sma_func_name ::= function_name */
-1, /* (343) sma_func_name ::= COUNT */
-1, /* (344) sma_func_name ::= FIRST */
-1, /* (345) sma_func_name ::= LAST */
-1, /* (346) sma_func_name ::= LAST_ROW */
0, /* (347) sma_stream_opt ::= */
-3, /* (348) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
-3, /* (349) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
-3, /* (350) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
-1, /* (351) with_meta ::= AS */
-3, /* (352) with_meta ::= WITH META AS */
-3, /* (353) with_meta ::= ONLY META AS */
-6, /* (354) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
-7, /* (355) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
-8, /* (356) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
-4, /* (357) cmd ::= DROP TOPIC exists_opt topic_name */
-7, /* (358) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
-2, /* (359) cmd ::= DESC full_table_name */
-2, /* (360) cmd ::= DESCRIBE full_table_name */
-3, /* (361) cmd ::= RESET QUERY CACHE */
-4, /* (362) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
-4, /* (363) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
0, /* (364) analyze_opt ::= */
-1, /* (365) analyze_opt ::= ANALYZE */
0, /* (366) explain_options ::= */
-3, /* (367) explain_options ::= explain_options VERBOSE NK_BOOL */
-3, /* (368) explain_options ::= explain_options RATIO NK_FLOAT */
-12, /* (369) 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, /* (370) cmd ::= DROP FUNCTION exists_opt function_name */
0, /* (371) agg_func_opt ::= */
-1, /* (372) agg_func_opt ::= AGGREGATE */
0, /* (373) bufsize_opt ::= */
-2, /* (374) bufsize_opt ::= BUFSIZE NK_INTEGER */
0, /* (375) language_opt ::= */
-2, /* (376) language_opt ::= LANGUAGE NK_STRING */
0, /* (377) or_replace_opt ::= */
-2, /* (378) or_replace_opt ::= OR REPLACE */
-6, /* (379) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
-4, /* (380) cmd ::= DROP VIEW exists_opt full_view_name */
-1, /* (381) full_view_name ::= view_name */
-3, /* (382) full_view_name ::= db_name NK_DOT view_name */
-12, /* (383) 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, /* (384) cmd ::= DROP STREAM exists_opt stream_name */
-4, /* (385) cmd ::= PAUSE STREAM exists_opt stream_name */
-5, /* (386) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
0, /* (387) col_list_opt ::= */
-3, /* (388) col_list_opt ::= NK_LP column_stream_def_list NK_RP */
-1, /* (389) column_stream_def_list ::= column_stream_def */
-3, /* (390) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */
-1, /* (391) column_stream_def ::= column_name */
-3, /* (392) column_stream_def ::= column_name PRIMARY KEY */
0, /* (393) tag_def_or_ref_opt ::= */
-1, /* (394) tag_def_or_ref_opt ::= tags_def */
-4, /* (395) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */
0, /* (396) stream_options ::= */
-3, /* (397) stream_options ::= stream_options TRIGGER AT_ONCE */
-3, /* (398) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
-4, /* (399) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
-3, /* (400) stream_options ::= stream_options WATERMARK duration_literal */
-4, /* (401) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
-3, /* (402) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
-3, /* (403) stream_options ::= stream_options DELETE_MARK duration_literal */
-4, /* (404) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
0, /* (405) subtable_opt ::= */
-4, /* (406) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
0, /* (407) ignore_opt ::= */
-2, /* (408) ignore_opt ::= IGNORE UNTREATED */
-3, /* (409) cmd ::= KILL CONNECTION NK_INTEGER */
-3, /* (410) cmd ::= KILL QUERY NK_STRING */
-3, /* (411) cmd ::= KILL TRANSACTION NK_INTEGER */
-3, /* (412) cmd ::= KILL COMPACT NK_INTEGER */
-2, /* (413) cmd ::= BALANCE VGROUP */
-4, /* (414) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
-4, /* (415) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
-4, /* (416) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-3, /* (417) cmd ::= SPLIT VGROUP NK_INTEGER */
0, /* (418) on_vgroup_id ::= */
-2, /* (419) on_vgroup_id ::= ON NK_INTEGER */
-2, /* (420) dnode_list ::= DNODE NK_INTEGER */
-3, /* (421) dnode_list ::= dnode_list DNODE NK_INTEGER */
-4, /* (422) cmd ::= DELETE FROM full_table_name where_clause_opt */
-1, /* (423) cmd ::= query_or_subquery */
-1, /* (424) cmd ::= insert_query */
-7, /* (425) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
-4, /* (426) insert_query ::= INSERT INTO full_table_name query_or_subquery */
-1, /* (427) tags_literal ::= NK_INTEGER */
-3, /* (428) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
-3, /* (429) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */
-2, /* (430) tags_literal ::= NK_PLUS NK_INTEGER */
-4, /* (431) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
-4, /* (432) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */
-2, /* (433) tags_literal ::= NK_MINUS NK_INTEGER */
-4, /* (434) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */
-4, /* (435) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */
-1, /* (436) tags_literal ::= NK_FLOAT */
-2, /* (437) tags_literal ::= NK_PLUS NK_FLOAT */
-2, /* (438) tags_literal ::= NK_MINUS NK_FLOAT */
-1, /* (439) tags_literal ::= NK_BIN */
-3, /* (440) tags_literal ::= NK_BIN NK_PLUS duration_literal */
-3, /* (441) tags_literal ::= NK_BIN NK_MINUS duration_literal */
-2, /* (442) tags_literal ::= NK_PLUS NK_BIN */
-4, /* (443) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */
-4, /* (444) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */
-2, /* (445) tags_literal ::= NK_MINUS NK_BIN */
-4, /* (446) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */
-4, /* (447) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */
-1, /* (448) tags_literal ::= NK_HEX */
-3, /* (449) tags_literal ::= NK_HEX NK_PLUS duration_literal */
-3, /* (450) tags_literal ::= NK_HEX NK_MINUS duration_literal */
-2, /* (451) tags_literal ::= NK_PLUS NK_HEX */
-4, /* (452) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */
-4, /* (453) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */
-2, /* (454) tags_literal ::= NK_MINUS NK_HEX */
-4, /* (455) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */
-4, /* (456) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */
-1, /* (457) tags_literal ::= NK_STRING */
-3, /* (458) tags_literal ::= NK_STRING NK_PLUS duration_literal */
-3, /* (459) tags_literal ::= NK_STRING NK_MINUS duration_literal */
-1, /* (460) tags_literal ::= NK_BOOL */
-1, /* (461) tags_literal ::= NULL */
-1, /* (462) tags_literal ::= literal_func */
-3, /* (463) tags_literal ::= literal_func NK_PLUS duration_literal */
-3, /* (464) tags_literal ::= literal_func NK_MINUS duration_literal */
-1, /* (465) tags_literal_list ::= tags_literal */
-3, /* (466) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
-1, /* (467) literal ::= NK_INTEGER */
-1, /* (468) literal ::= NK_FLOAT */
-1, /* (469) literal ::= NK_STRING */
-1, /* (470) literal ::= NK_BOOL */
-2, /* (471) literal ::= TIMESTAMP NK_STRING */
-1, /* (472) literal ::= duration_literal */
-1, /* (473) literal ::= NULL */
-1, /* (474) literal ::= NK_QUESTION */
-1, /* (475) duration_literal ::= NK_VARIABLE */
-1, /* (476) signed ::= NK_INTEGER */
-2, /* (477) signed ::= NK_PLUS NK_INTEGER */
-2, /* (478) signed ::= NK_MINUS NK_INTEGER */
-1, /* (479) signed ::= NK_FLOAT */
-2, /* (480) signed ::= NK_PLUS NK_FLOAT */
-2, /* (481) signed ::= NK_MINUS NK_FLOAT */
-1, /* (482) signed_literal ::= signed */
-1, /* (483) signed_literal ::= NK_STRING */
-1, /* (484) signed_literal ::= NK_BOOL */
-2, /* (485) signed_literal ::= TIMESTAMP NK_STRING */
-1, /* (486) signed_literal ::= duration_literal */
-1, /* (487) signed_literal ::= NULL */
-1, /* (488) signed_literal ::= literal_func */
-1, /* (489) signed_literal ::= NK_QUESTION */
-1, /* (490) literal_list ::= signed_literal */
-3, /* (491) literal_list ::= literal_list NK_COMMA signed_literal */
-1, /* (492) db_name ::= NK_ID */
-1, /* (493) table_name ::= NK_ID */
-1, /* (494) column_name ::= NK_ID */
-1, /* (495) function_name ::= NK_ID */
-1, /* (496) view_name ::= NK_ID */
-1, /* (497) table_alias ::= NK_ID */
-1, /* (498) column_alias ::= NK_ID */
-1, /* (499) column_alias ::= NK_ALIAS */
-1, /* (500) user_name ::= NK_ID */
-1, /* (501) topic_name ::= NK_ID */
-1, /* (502) stream_name ::= NK_ID */
-1, /* (503) cgroup_name ::= NK_ID */
-1, /* (504) index_name ::= NK_ID */
-1, /* (505) expr_or_subquery ::= expression */
-1, /* (506) expression ::= literal */
-1, /* (507) expression ::= pseudo_column */
-1, /* (508) expression ::= column_reference */
-1, /* (509) expression ::= function_expression */
-1, /* (510) expression ::= case_when_expression */
-3, /* (511) expression ::= NK_LP expression NK_RP */
-2, /* (512) expression ::= NK_PLUS expr_or_subquery */
-2, /* (513) expression ::= NK_MINUS expr_or_subquery */
-3, /* (514) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
-3, /* (515) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
-3, /* (516) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
-3, /* (517) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
-3, /* (518) expression ::= expr_or_subquery NK_REM expr_or_subquery */
-3, /* (519) expression ::= column_reference NK_ARROW NK_STRING */
-3, /* (520) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
-3, /* (521) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
-1, /* (522) expression_list ::= expr_or_subquery */
-3, /* (523) expression_list ::= expression_list NK_COMMA expr_or_subquery */
-1, /* (524) column_reference ::= column_name */
-3, /* (525) column_reference ::= table_name NK_DOT column_name */
-1, /* (526) column_reference ::= NK_ALIAS */
-3, /* (527) column_reference ::= table_name NK_DOT NK_ALIAS */
-1, /* (528) pseudo_column ::= ROWTS */
-1, /* (529) pseudo_column ::= TBNAME */
-3, /* (530) pseudo_column ::= table_name NK_DOT TBNAME */
-1, /* (531) pseudo_column ::= QSTART */
-1, /* (532) pseudo_column ::= QEND */
-1, /* (533) pseudo_column ::= QDURATION */
-1, /* (534) pseudo_column ::= WSTART */
-1, /* (535) pseudo_column ::= WEND */
-1, /* (536) pseudo_column ::= WDURATION */
-1, /* (537) pseudo_column ::= IROWTS */
-1, /* (538) pseudo_column ::= ISFILLED */
-1, /* (539) pseudo_column ::= QTAGS */
-4, /* (540) function_expression ::= function_name NK_LP expression_list NK_RP */
-4, /* (541) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
-6, /* (542) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
-6, /* (543) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */
-1, /* (544) function_expression ::= literal_func */
-3, /* (545) literal_func ::= noarg_func NK_LP NK_RP */
-1, /* (546) literal_func ::= NOW */
-1, /* (547) literal_func ::= TODAY */
-1, /* (548) noarg_func ::= NOW */
-1, /* (549) noarg_func ::= TODAY */
-1, /* (550) noarg_func ::= TIMEZONE */
-1, /* (551) noarg_func ::= DATABASE */
-1, /* (552) noarg_func ::= CLIENT_VERSION */
-1, /* (553) noarg_func ::= SERVER_VERSION */
-1, /* (554) noarg_func ::= SERVER_STATUS */
-1, /* (555) noarg_func ::= CURRENT_USER */
-1, /* (556) noarg_func ::= USER */
-1, /* (557) star_func ::= COUNT */
-1, /* (558) star_func ::= FIRST */
-1, /* (559) star_func ::= LAST */
-1, /* (560) star_func ::= LAST_ROW */
-1, /* (561) star_func_para_list ::= NK_STAR */
-1, /* (562) star_func_para_list ::= other_para_list */
-1, /* (563) other_para_list ::= star_func_para */
-3, /* (564) other_para_list ::= other_para_list NK_COMMA star_func_para */
-1, /* (565) star_func_para ::= expr_or_subquery */
-3, /* (566) star_func_para ::= table_name NK_DOT NK_STAR */
-4, /* (567) case_when_expression ::= CASE when_then_list case_when_else_opt END */
-5, /* (568) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
-1, /* (569) when_then_list ::= when_then_expr */
-2, /* (570) when_then_list ::= when_then_list when_then_expr */
-4, /* (571) when_then_expr ::= WHEN common_expression THEN common_expression */
0, /* (572) case_when_else_opt ::= */
-2, /* (573) case_when_else_opt ::= ELSE common_expression */
-3, /* (574) predicate ::= expr_or_subquery compare_op expr_or_subquery */
-5, /* (575) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
-6, /* (576) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
-3, /* (577) predicate ::= expr_or_subquery IS NULL */
-4, /* (578) predicate ::= expr_or_subquery IS NOT NULL */
-3, /* (579) predicate ::= expr_or_subquery in_op in_predicate_value */
-1, /* (580) compare_op ::= NK_LT */
-1, /* (581) compare_op ::= NK_GT */
-1, /* (582) compare_op ::= NK_LE */
-1, /* (583) compare_op ::= NK_GE */
-1, /* (584) compare_op ::= NK_NE */
-1, /* (585) compare_op ::= NK_EQ */
-1, /* (586) compare_op ::= LIKE */
-2, /* (587) compare_op ::= NOT LIKE */
-1, /* (588) compare_op ::= MATCH */
-1, /* (589) compare_op ::= NMATCH */
-1, /* (590) compare_op ::= CONTAINS */
-1, /* (591) in_op ::= IN */
-2, /* (592) in_op ::= NOT IN */
-3, /* (593) in_predicate_value ::= NK_LP literal_list NK_RP */
-1, /* (594) boolean_value_expression ::= boolean_primary */
-2, /* (595) boolean_value_expression ::= NOT boolean_primary */
-3, /* (596) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
-3, /* (597) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
-1, /* (598) boolean_primary ::= predicate */
-3, /* (599) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
-1, /* (600) common_expression ::= expr_or_subquery */
-1, /* (601) common_expression ::= boolean_value_expression */
0, /* (602) from_clause_opt ::= */
-2, /* (603) from_clause_opt ::= FROM table_reference_list */
-1, /* (604) table_reference_list ::= table_reference */
-3, /* (605) table_reference_list ::= table_reference_list NK_COMMA table_reference */
-1, /* (606) table_reference ::= table_primary */
-1, /* (607) table_reference ::= joined_table */
-2, /* (608) table_primary ::= table_name alias_opt */
-4, /* (609) table_primary ::= db_name NK_DOT table_name alias_opt */
-2, /* (610) table_primary ::= subquery alias_opt */
-1, /* (611) table_primary ::= parenthesized_joined_table */
0, /* (612) alias_opt ::= */
-1, /* (613) alias_opt ::= table_alias */
-2, /* (614) alias_opt ::= AS table_alias */
-3, /* (615) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
-3, /* (616) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
-8, /* (617) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */
0, /* (618) join_type ::= */
-1, /* (619) join_type ::= INNER */
-1, /* (620) join_type ::= LEFT */
-1, /* (621) join_type ::= RIGHT */
-1, /* (622) join_type ::= FULL */
0, /* (623) join_subtype ::= */
-1, /* (624) join_subtype ::= OUTER */
-1, /* (625) join_subtype ::= SEMI */
-1, /* (626) join_subtype ::= ANTI */
-1, /* (627) join_subtype ::= ASOF */
-1, /* (628) join_subtype ::= WINDOW */
0, /* (629) join_on_clause_opt ::= */
-2, /* (630) join_on_clause_opt ::= ON search_condition */
0, /* (631) window_offset_clause_opt ::= */
-6, /* (632) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */
-1, /* (633) window_offset_literal ::= NK_VARIABLE */
-2, /* (634) window_offset_literal ::= NK_MINUS NK_VARIABLE */
0, /* (635) jlimit_clause_opt ::= */
-2, /* (636) jlimit_clause_opt ::= JLIMIT NK_INTEGER */
-14, /* (637) 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, /* (638) hint_list ::= */
-1, /* (639) hint_list ::= NK_HINT */
0, /* (640) tag_mode_opt ::= */
-1, /* (641) tag_mode_opt ::= TAGS */
0, /* (642) set_quantifier_opt ::= */
-1, /* (643) set_quantifier_opt ::= DISTINCT */
-1, /* (644) set_quantifier_opt ::= ALL */
-1, /* (645) select_list ::= select_item */
-3, /* (646) select_list ::= select_list NK_COMMA select_item */
-1, /* (647) select_item ::= NK_STAR */
-1, /* (648) select_item ::= common_expression */
-2, /* (649) select_item ::= common_expression column_alias */
-3, /* (650) select_item ::= common_expression AS column_alias */
-3, /* (651) select_item ::= table_name NK_DOT NK_STAR */
0, /* (652) where_clause_opt ::= */
-2, /* (653) where_clause_opt ::= WHERE search_condition */
0, /* (654) partition_by_clause_opt ::= */
-3, /* (655) partition_by_clause_opt ::= PARTITION BY partition_list */
-1, /* (656) partition_list ::= partition_item */
-3, /* (657) partition_list ::= partition_list NK_COMMA partition_item */
-1, /* (658) partition_item ::= expr_or_subquery */
-2, /* (659) partition_item ::= expr_or_subquery column_alias */
-3, /* (660) partition_item ::= expr_or_subquery AS column_alias */
0, /* (661) twindow_clause_opt ::= */
-6, /* (662) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
-4, /* (663) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
-6, /* (664) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-8, /* (665) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-7, /* (666) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
-4, /* (667) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
-6, /* (668) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (669) sliding_opt ::= */
-4, /* (670) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
-1, /* (671) interval_sliding_duration_literal ::= NK_VARIABLE */
-1, /* (672) interval_sliding_duration_literal ::= NK_STRING */
-1, /* (673) interval_sliding_duration_literal ::= NK_INTEGER */
0, /* (674) fill_opt ::= */
-4, /* (675) fill_opt ::= FILL NK_LP fill_mode NK_RP */
-6, /* (676) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
-6, /* (677) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
-1, /* (678) fill_mode ::= NONE */
-1, /* (679) fill_mode ::= PREV */
-1, /* (680) fill_mode ::= NULL */
-1, /* (681) fill_mode ::= NULL_F */
-1, /* (682) fill_mode ::= LINEAR */
-1, /* (683) fill_mode ::= NEXT */
0, /* (684) group_by_clause_opt ::= */
-3, /* (685) group_by_clause_opt ::= GROUP BY group_by_list */
-1, /* (686) group_by_list ::= expr_or_subquery */
-3, /* (687) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
0, /* (688) having_clause_opt ::= */
-2, /* (689) having_clause_opt ::= HAVING search_condition */
0, /* (690) range_opt ::= */
-6, /* (691) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
-4, /* (692) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
0, /* (693) every_opt ::= */
-4, /* (694) every_opt ::= EVERY NK_LP duration_literal NK_RP */
-4, /* (695) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
-1, /* (696) query_simple ::= query_specification */
-1, /* (697) query_simple ::= union_query_expression */
-4, /* (698) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
-3, /* (699) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
-1, /* (700) query_simple_or_subquery ::= query_simple */
-1, /* (701) query_simple_or_subquery ::= subquery */
-1, /* (702) query_or_subquery ::= query_expression */
-1, /* (703) query_or_subquery ::= subquery */
0, /* (704) order_by_clause_opt ::= */
-3, /* (705) order_by_clause_opt ::= ORDER BY sort_specification_list */
0, /* (706) slimit_clause_opt ::= */
-2, /* (707) slimit_clause_opt ::= SLIMIT NK_INTEGER */
-4, /* (708) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
-4, /* (709) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
0, /* (710) limit_clause_opt ::= */
-2, /* (711) limit_clause_opt ::= LIMIT NK_INTEGER */
-4, /* (712) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
-4, /* (713) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
-3, /* (714) subquery ::= NK_LP query_expression NK_RP */
-3, /* (715) subquery ::= NK_LP subquery NK_RP */
-1, /* (716) search_condition ::= common_expression */
-1, /* (717) sort_specification_list ::= sort_specification */
-3, /* (718) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
-3, /* (719) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
0, /* (720) ordering_specification_opt ::= */
-1, /* (721) ordering_specification_opt ::= ASC */
-1, /* (722) ordering_specification_opt ::= DESC */
0, /* (723) null_ordering_opt ::= */
-2, /* (724) null_ordering_opt ::= NULLS FIRST */
-2, /* (725) 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 */
2022-03-10 07:36:06 +00:00
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 */
2022-03-10 07:36:06 +00:00
ParseARG_FETCH
(void)yyLookahead;
(void)yyLookaheadToken;
yymsp = yypParser->yytos;
2023-09-20 11:30:40 +00:00
#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,368,&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,369,&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,368,&yymsp[-2].minor);
{ }
yy_destructor(yypParser,370,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
{ yy_destructor(yypParser,371,&yymsp[0].minor);
{ }
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
{ yy_destructor(yypParser,369,&yymsp[-1].minor);
{ }
yy_destructor(yypParser,371,&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,370,&yymsp[0].minor);
2023-05-16 01:50:10 +00:00
break;
2023-08-24 07:54:10 +00:00
case 24: /* ip_range_list ::= NK_STRING */
{ yylhsminor.yy984 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy984 = yylhsminor.yy984;
2023-08-24 07:54:10 +00:00
break;
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
{ yylhsminor.yy984 = addNodeToList(pCxt, yymsp[-2].minor.yy984, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy984 = yylhsminor.yy984;
2023-08-24 07:54:10 +00:00
break;
case 26: /* white_list ::= HOST ip_range_list */
{ yymsp[-1].minor.yy984 = yymsp[0].minor.yy984; }
2023-08-24 07:54:10 +00:00
break;
case 27: /* white_list_opt ::= */
2024-04-08 02:55:47 +00:00
case 196: /* specific_cols_opt ::= */ yytestcase(yyruleno==196);
case 232: /* tags_def_opt ::= */ yytestcase(yyruleno==232);
case 321: /* tag_list_opt ::= */ yytestcase(yyruleno==321);
case 387: /* col_list_opt ::= */ yytestcase(yyruleno==387);
case 393: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==393);
case 654: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==654);
case 684: /* group_by_clause_opt ::= */ yytestcase(yyruleno==684);
case 704: /* order_by_clause_opt ::= */ yytestcase(yyruleno==704);
{ yymsp[1].minor.yy984 = NULL; }
2023-08-24 07:54:10 +00:00
break;
case 28: /* white_list_opt ::= white_list */
case 233: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==233);
case 394: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==394);
case 562: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==562);
{ yylhsminor.yy984 = yymsp[0].minor.yy984; }
yymsp[0].minor.yy984 = yylhsminor.yy984;
2023-08-24 07:54:10 +00:00
break;
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
{
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy1045, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy443);
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy984);
2023-08-24 07:54:10 +00:00
}
break;
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1045, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1045, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1045, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1045, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy984); }
2023-08-24 07:54:10 +00:00
break;
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1045, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy984); }
2023-08-24 07:54:10 +00:00
break;
case 35: /* cmd ::= DROP USER user_name */
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy1045); }
2023-08-24 07:54:10 +00:00
break;
case 36: /* sysinfo_opt ::= */
{ yymsp[1].minor.yy443 = 1; }
2023-08-24 07:54:10 +00:00
break;
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
{ yymsp[-1].minor.yy443 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
2023-08-24 07:54:10 +00:00
break;
case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy817, &yymsp[-3].minor.yy525, &yymsp[0].minor.yy1045, yymsp[-2].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy817, &yymsp[-3].minor.yy525, &yymsp[0].minor.yy1045, yymsp[-2].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
case 40: /* privileges ::= ALL */
{ yymsp[0].minor.yy817 = PRIVILEGE_TYPE_ALL; }
2023-08-24 07:54:10 +00:00
break;
case 41: /* privileges ::= priv_type_list */
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
{ yylhsminor.yy817 = yymsp[0].minor.yy817; }
yymsp[0].minor.yy817 = yylhsminor.yy817;
2023-08-24 07:54:10 +00:00
break;
case 42: /* privileges ::= SUBSCRIBE */
{ yymsp[0].minor.yy817 = PRIVILEGE_TYPE_SUBSCRIBE; }
2023-08-24 07:54:10 +00:00
break;
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
{ yylhsminor.yy817 = yymsp[-2].minor.yy817 | yymsp[0].minor.yy817; }
yymsp[-2].minor.yy817 = yylhsminor.yy817;
2023-08-24 07:54:10 +00:00
break;
case 45: /* priv_type ::= READ */
{ yymsp[0].minor.yy817 = PRIVILEGE_TYPE_READ; }
2023-08-24 07:54:10 +00:00
break;
case 46: /* priv_type ::= WRITE */
{ yymsp[0].minor.yy817 = PRIVILEGE_TYPE_WRITE; }
2023-08-24 07:54:10 +00:00
break;
case 47: /* priv_type ::= ALTER */
{ yymsp[0].minor.yy817 = PRIVILEGE_TYPE_ALTER; }
break;
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
{ yylhsminor.yy525.first = yymsp[-2].minor.yy0; yylhsminor.yy525.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy525 = yylhsminor.yy525;
2023-08-24 07:54:10 +00:00
break;
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
{ yylhsminor.yy525.first = yymsp[-2].minor.yy1045; yylhsminor.yy525.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy525 = yylhsminor.yy525;
2023-08-24 07:54:10 +00:00
break;
case 50: /* priv_level ::= db_name NK_DOT table_name */
{ yylhsminor.yy525.first = yymsp[-2].minor.yy1045; yylhsminor.yy525.second = yymsp[0].minor.yy1045; }
yymsp[-2].minor.yy525 = yylhsminor.yy525;
2023-08-24 07:54:10 +00:00
break;
case 51: /* priv_level ::= topic_name */
{ yylhsminor.yy525.first = yymsp[0].minor.yy1045; yylhsminor.yy525.second = nil_token; }
yymsp[0].minor.yy525 = yylhsminor.yy525;
2023-08-24 07:54:10 +00:00
break;
case 52: /* with_opt ::= */
2024-04-08 02:55:47 +00:00
case 165: /* start_opt ::= */ yytestcase(yyruleno==165);
case 169: /* end_opt ::= */ yytestcase(yyruleno==169);
case 316: /* like_pattern_opt ::= */ yytestcase(yyruleno==316);
case 405: /* subtable_opt ::= */ yytestcase(yyruleno==405);
case 572: /* case_when_else_opt ::= */ yytestcase(yyruleno==572);
case 602: /* from_clause_opt ::= */ yytestcase(yyruleno==602);
case 629: /* join_on_clause_opt ::= */ yytestcase(yyruleno==629);
case 631: /* window_offset_clause_opt ::= */ yytestcase(yyruleno==631);
case 635: /* jlimit_clause_opt ::= */ yytestcase(yyruleno==635);
case 652: /* where_clause_opt ::= */ yytestcase(yyruleno==652);
case 661: /* twindow_clause_opt ::= */ yytestcase(yyruleno==661);
case 669: /* sliding_opt ::= */ yytestcase(yyruleno==669);
case 674: /* fill_opt ::= */ yytestcase(yyruleno==674);
case 688: /* having_clause_opt ::= */ yytestcase(yyruleno==688);
case 690: /* range_opt ::= */ yytestcase(yyruleno==690);
case 693: /* every_opt ::= */ yytestcase(yyruleno==693);
case 706: /* slimit_clause_opt ::= */ yytestcase(yyruleno==706);
case 710: /* limit_clause_opt ::= */ yytestcase(yyruleno==710);
{ yymsp[1].minor.yy720 = NULL; }
2023-08-24 07:54:10 +00:00
break;
case 53: /* with_opt ::= WITH search_condition */
case 603: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==603);
case 630: /* join_on_clause_opt ::= ON search_condition */ yytestcase(yyruleno==630);
case 653: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==653);
case 689: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==689);
{ yymsp[-1].minor.yy720 = yymsp[0].minor.yy720; }
2023-08-24 07:54:10 +00:00
break;
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy1045, NULL); }
2023-08-24 07:54:10 +00:00
break;
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy833, false); }
2023-08-24 07:54:10 +00:00
break;
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy1045, yymsp[0].minor.yy833, false); }
2023-08-24 07:54:10 +00:00
break;
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy833); }
2023-08-24 07:54:10 +00:00
break;
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy1045, false, yymsp[0].minor.yy833); }
2023-08-24 07:54:10 +00:00
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 */
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
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 343: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==343);
case 344: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==344);
case 345: /* sma_func_name ::= LAST */ yytestcase(yyruleno==345);
case 346: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==346);
case 492: /* db_name ::= NK_ID */ yytestcase(yyruleno==492);
case 493: /* table_name ::= NK_ID */ yytestcase(yyruleno==493);
case 494: /* column_name ::= NK_ID */ yytestcase(yyruleno==494);
case 495: /* function_name ::= NK_ID */ yytestcase(yyruleno==495);
case 496: /* view_name ::= NK_ID */ yytestcase(yyruleno==496);
case 497: /* table_alias ::= NK_ID */ yytestcase(yyruleno==497);
case 498: /* column_alias ::= NK_ID */ yytestcase(yyruleno==498);
case 499: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==499);
case 500: /* user_name ::= NK_ID */ yytestcase(yyruleno==500);
case 501: /* topic_name ::= NK_ID */ yytestcase(yyruleno==501);
case 502: /* stream_name ::= NK_ID */ yytestcase(yyruleno==502);
case 503: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==503);
case 504: /* index_name ::= NK_ID */ yytestcase(yyruleno==504);
case 548: /* noarg_func ::= NOW */ yytestcase(yyruleno==548);
case 549: /* noarg_func ::= TODAY */ yytestcase(yyruleno==549);
case 550: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==550);
case 551: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==551);
case 552: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==552);
case 553: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==553);
case 554: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==554);
case 555: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==555);
case 556: /* noarg_func ::= USER */ yytestcase(yyruleno==556);
case 557: /* star_func ::= COUNT */ yytestcase(yyruleno==557);
case 558: /* star_func ::= FIRST */ yytestcase(yyruleno==558);
case 559: /* star_func ::= LAST */ yytestcase(yyruleno==559);
case 560: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==560);
{ yylhsminor.yy1045 = yymsp[0].minor.yy0; }
yymsp[0].minor.yy1045 = yylhsminor.yy1045;
2023-08-24 07:54:10 +00:00
break;
case 68: /* force_opt ::= */
2024-04-08 02:55:47 +00:00
case 95: /* not_exists_opt ::= */ yytestcase(yyruleno==95);
case 97: /* exists_opt ::= */ yytestcase(yyruleno==97);
case 364: /* analyze_opt ::= */ yytestcase(yyruleno==364);
case 371: /* agg_func_opt ::= */ yytestcase(yyruleno==371);
case 377: /* or_replace_opt ::= */ yytestcase(yyruleno==377);
case 407: /* ignore_opt ::= */ yytestcase(yyruleno==407);
case 640: /* tag_mode_opt ::= */ yytestcase(yyruleno==640);
case 642: /* set_quantifier_opt ::= */ yytestcase(yyruleno==642);
{ yymsp[1].minor.yy833 = false; }
2023-08-24 07:54:10 +00:00
break;
case 69: /* force_opt ::= FORCE */
case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70);
case 365: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==365);
case 372: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==372);
case 641: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==641);
case 643: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==643);
{ yymsp[0].minor.yy833 = true; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
2023-12-18 08:34:31 +00:00
case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
2022-03-15 12:04:52 +00:00
break;
2023-12-18 08:34:31 +00:00
case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
2022-03-15 12:04:52 +00:00
break;
2023-12-18 08:34:31 +00:00
case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
2022-03-15 12:04:52 +00:00
break;
2023-12-18 08:34:31 +00:00
case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 86: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy833, &yymsp[-1].minor.yy1045, yymsp[0].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 87: /* cmd ::= DROP DATABASE exists_opt db_name */
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy833, &yymsp[0].minor.yy1045); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 88: /* cmd ::= USE db_name */
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy1045); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy1045, yymsp[0].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 90: /* cmd ::= FLUSH DATABASE db_name */
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy1045); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy1045, yymsp[0].minor.yy488); }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 92: /* cmd ::= S3MIGRATE DATABASE db_name */
{ pCxt->pRootNode = createS3MigrateDatabaseStmt(pCxt, &yymsp[0].minor.yy1045); }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 93: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy1045, yymsp[-1].minor.yy720, yymsp[0].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 94: /* not_exists_opt ::= IF NOT EXISTS */
{ yymsp[-2].minor.yy833 = true; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 96: /* exists_opt ::= IF EXISTS */
case 378: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==378);
case 408: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==408);
{ yymsp[-1].minor.yy833 = true; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 98: /* db_options ::= */
{ yymsp[1].minor.yy720 = createDefaultDatabaseOptions(pCxt); }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 99: /* db_options ::= db_options BUFFER NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 100: /* db_options ::= db_options CACHEMODEL NK_STRING */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 101: /* db_options ::= db_options CACHESIZE NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 102: /* db_options ::= db_options COMP NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 103: /* db_options ::= db_options DURATION NK_INTEGER */
case 104: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==104);
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 105: /* db_options ::= db_options MAXROWS NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 106: /* db_options ::= db_options MINROWS NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 107: /* db_options ::= db_options KEEP integer_list */
case 108: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==108);
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_KEEP, yymsp[0].minor.yy984); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 109: /* db_options ::= db_options PAGES NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 110: /* db_options ::= db_options PAGESIZE NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 111: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 112: /* db_options ::= db_options PRECISION NK_STRING */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 113: /* db_options ::= db_options REPLICA NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 114: /* db_options ::= db_options VGROUPS NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 115: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 116: /* db_options ::= db_options RETENTIONS retention_list */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_RETENTIONS, yymsp[0].minor.yy984); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 117: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 118: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 119: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 120: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 121: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
{
2022-07-25 13:09:06 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-3].minor.yy720, DB_OPTION_WAL_RETENTION_PERIOD, &t);
2022-07-25 13:09:06 +00:00
}
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2022-07-25 13:09:06 +00:00
break;
2024-04-08 02:55:47 +00:00
case 122: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2022-07-25 13:09:06 +00:00
break;
2024-04-08 02:55:47 +00:00
case 123: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
{
2022-07-25 13:09:06 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-3].minor.yy720, DB_OPTION_WAL_RETENTION_SIZE, &t);
2022-07-25 13:09:06 +00:00
}
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 124: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 125: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 126: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 127: /* db_options ::= db_options TABLE_PREFIX signed */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy720); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 128: /* db_options ::= db_options TABLE_SUFFIX signed */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy720); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 129: /* db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_S3_CHUNKSIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 130: /* db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */
case 131: /* db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==131);
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_S3_KEEPLOCAL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 132: /* db_options ::= db_options S3_COMPACT NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_S3_COMPACT, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 133: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
{ yylhsminor.yy720 = setDatabaseOption(pCxt, yymsp[-2].minor.yy720, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 134: /* alter_db_options ::= alter_db_option */
{ yylhsminor.yy720 = createAlterDatabaseOptions(pCxt); yylhsminor.yy720 = setAlterDatabaseOption(pCxt, yylhsminor.yy720, &yymsp[0].minor.yy5); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 135: /* alter_db_options ::= alter_db_options alter_db_option */
{ yylhsminor.yy720 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy720, &yymsp[0].minor.yy5); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 136: /* alter_db_option ::= BUFFER NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 137: /* alter_db_option ::= CACHEMODEL NK_STRING */
{ yymsp[-1].minor.yy5.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 138: /* alter_db_option ::= CACHESIZE NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 139: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 140: /* alter_db_option ::= KEEP integer_list */
case 141: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==141);
{ yymsp[-1].minor.yy5.type = DB_OPTION_KEEP; yymsp[-1].minor.yy5.pList = yymsp[0].minor.yy984; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 142: /* alter_db_option ::= PAGES NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_PAGES; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 143: /* alter_db_option ::= REPLICA NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 144: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_WAL; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 145: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 146: /* alter_db_option ::= MINROWS NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 147: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2024-04-08 02:55:47 +00:00
break;
case 148: /* 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.yy5.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy5.val = t;
}
break;
2024-04-08 02:55:47 +00:00
case 149: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
break;
2024-04-08 02:55:47 +00:00
case 150: /* 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.yy5.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy5.val = t;
}
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 151: /* alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */
case 152: /* alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==152);
{ yymsp[-1].minor.yy5.type = DB_OPTION_S3_KEEPLOCAL; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2024-04-08 02:55:47 +00:00
break;
case 153: /* alter_db_option ::= S3_COMPACT NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_S3_COMPACT, yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2024-04-08 02:55:47 +00:00
break;
case 154: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2024-04-08 02:55:47 +00:00
break;
case 155: /* integer_list ::= NK_INTEGER */
{ yylhsminor.yy984 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy984 = yylhsminor.yy984;
2024-04-08 02:55:47 +00:00
break;
case 156: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
case 421: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==421);
{ yylhsminor.yy984 = addNodeToList(pCxt, yymsp[-2].minor.yy984, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy984 = yylhsminor.yy984;
2024-04-08 02:55:47 +00:00
break;
case 157: /* variable_list ::= NK_VARIABLE */
{ yylhsminor.yy984 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy984 = yylhsminor.yy984;
2024-04-08 02:55:47 +00:00
break;
case 158: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
{ yylhsminor.yy984 = addNodeToList(pCxt, yymsp[-2].minor.yy984, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy984 = yylhsminor.yy984;
2024-04-08 02:55:47 +00:00
break;
case 159: /* retention_list ::= retention */
case 190: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==190);
case 193: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==193);
case 200: /* column_def_list ::= column_def */ yytestcase(yyruleno==200);
case 249: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==249);
case 254: /* col_name_list ::= col_name */ yytestcase(yyruleno==254);
case 322: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==322);
case 339: /* func_list ::= func */ yytestcase(yyruleno==339);
case 389: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==389);
case 465: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==465);
case 490: /* literal_list ::= signed_literal */ yytestcase(yyruleno==490);
case 563: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==563);
case 569: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==569);
case 645: /* select_list ::= select_item */ yytestcase(yyruleno==645);
case 656: /* partition_list ::= partition_item */ yytestcase(yyruleno==656);
case 717: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==717);
{ yylhsminor.yy984 = createNodeList(pCxt, yymsp[0].minor.yy720); }
yymsp[0].minor.yy984 = yylhsminor.yy984;
2024-04-08 02:55:47 +00:00
break;
case 160: /* retention_list ::= retention_list NK_COMMA retention */
case 194: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==194);
case 201: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==201);
case 250: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==250);
case 255: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==255);
case 323: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==323);
case 340: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==340);
case 390: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==390);
case 466: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==466);
case 491: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==491);
case 564: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==564);
case 646: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==646);
case 657: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==657);
case 718: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==718);
{ yylhsminor.yy984 = addNodeToList(pCxt, yymsp[-2].minor.yy984, yymsp[0].minor.yy720); }
yymsp[-2].minor.yy984 = yylhsminor.yy984;
2024-04-08 02:55:47 +00:00
break;
case 161: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
case 162: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==162);
{ yylhsminor.yy720 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 163: /* speed_opt ::= */
case 373: /* bufsize_opt ::= */ yytestcase(yyruleno==373);
{ yymsp[1].minor.yy488 = 0; }
2024-04-08 02:55:47 +00:00
break;
case 164: /* speed_opt ::= BWLIMIT NK_INTEGER */
case 374: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==374);
{ yymsp[-1].minor.yy488 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
2024-04-08 02:55:47 +00:00
break;
case 166: /* start_opt ::= START WITH NK_INTEGER */
case 170: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==170);
{ yymsp[-2].minor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
2024-04-08 02:55:47 +00:00
break;
case 167: /* start_opt ::= START WITH NK_STRING */
case 171: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==171);
{ yymsp[-2].minor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
2024-04-08 02:55:47 +00:00
break;
case 168: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
case 172: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==172);
{ yymsp[-3].minor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
2024-04-08 02:55:47 +00:00
break;
case 173: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
case 175: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==175);
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy833, yymsp[-5].minor.yy720, yymsp[-3].minor.yy984, yymsp[-1].minor.yy984, yymsp[0].minor.yy720); }
2024-04-08 02:55:47 +00:00
break;
case 174: /* cmd ::= CREATE TABLE multi_create_clause */
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy984); }
2024-04-08 02:55:47 +00:00
break;
case 176: /* cmd ::= DROP TABLE multi_drop_clause */
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy984); }
2024-04-08 02:55:47 +00:00
break;
case 177: /* cmd ::= DROP STABLE exists_opt full_table_name */
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy833, yymsp[0].minor.yy720); }
2024-04-08 02:55:47 +00:00
break;
case 178: /* cmd ::= ALTER TABLE alter_table_clause */
case 423: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==423);
case 424: /* cmd ::= insert_query */ yytestcase(yyruleno==424);
{ pCxt->pRootNode = yymsp[0].minor.yy720; }
2024-04-08 02:55:47 +00:00
break;
case 179: /* cmd ::= ALTER STABLE alter_table_clause */
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy720); }
2024-04-08 02:55:47 +00:00
break;
case 180: /* alter_table_clause ::= full_table_name alter_table_options */
{ yylhsminor.yy720 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy720, yymsp[0].minor.yy720); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 181: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
{ yylhsminor.yy720 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy720, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy1045, yymsp[0].minor.yy232); }
yymsp[-4].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 182: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
{ yylhsminor.yy720 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy720, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy1045); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 183: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
{ yylhsminor.yy720 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy720, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy1045, yymsp[0].minor.yy232); }
yymsp[-4].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 184: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
{ yylhsminor.yy720 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy720, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy1045, &yymsp[0].minor.yy1045); }
yymsp[-4].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 185: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
{ yylhsminor.yy720 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy720, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy1045, yymsp[0].minor.yy232); }
yymsp[-4].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 186: /* alter_table_clause ::= full_table_name DROP TAG column_name */
{ yylhsminor.yy720 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy720, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy1045); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 187: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
{ yylhsminor.yy720 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy720, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy1045, yymsp[0].minor.yy232); }
yymsp[-4].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 188: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
{ yylhsminor.yy720 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy720, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy1045, &yymsp[0].minor.yy1045); }
yymsp[-4].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 189: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
{ yylhsminor.yy720 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy720, &yymsp[-2].minor.yy1045, yymsp[0].minor.yy720); }
yymsp[-5].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 191: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
case 570: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==570);
{ yylhsminor.yy984 = addNodeToList(pCxt, yymsp[-1].minor.yy984, yymsp[0].minor.yy720); }
yymsp[-1].minor.yy984 = yylhsminor.yy984;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 192: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
{ yylhsminor.yy720 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy833, yymsp[-8].minor.yy720, yymsp[-6].minor.yy720, yymsp[-5].minor.yy984, yymsp[-2].minor.yy984, yymsp[0].minor.yy720); }
yymsp[-9].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 195: /* drop_table_clause ::= exists_opt full_table_name */
{ yylhsminor.yy720 = createDropTableClause(pCxt, yymsp[-1].minor.yy833, yymsp[0].minor.yy720); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 197: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
case 388: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==388);
{ yymsp[-2].minor.yy984 = yymsp[-1].minor.yy984; }
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 198: /* full_table_name ::= table_name */
{ yylhsminor.yy720 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy1045, NULL); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 199: /* full_table_name ::= db_name NK_DOT table_name */
{ yylhsminor.yy720 = createRealTableNode(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy1045, NULL); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 202: /* column_def ::= column_name type_name */
{ yylhsminor.yy720 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy1045, yymsp[0].minor.yy232, NULL, false); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 203: /* column_def ::= column_name type_name PRIMARY KEY */
{ yylhsminor.yy720 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy1045, yymsp[-2].minor.yy232, NULL, true); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 204: /* type_name ::= BOOL */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_BOOL); }
2023-08-24 07:54:10 +00:00
break;
case 205: /* type_name ::= TINYINT */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_TINYINT); }
2023-08-24 07:54:10 +00:00
break;
case 206: /* type_name ::= SMALLINT */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
2023-08-24 07:54:10 +00:00
break;
case 207: /* type_name ::= INT */
case 208: /* type_name ::= INTEGER */ yytestcase(yyruleno==208);
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_INT); }
2023-08-24 07:54:10 +00:00
break;
case 209: /* type_name ::= BIGINT */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_BIGINT); }
2023-08-24 07:54:10 +00:00
break;
case 210: /* type_name ::= FLOAT */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_FLOAT); }
2023-08-24 07:54:10 +00:00
break;
case 211: /* type_name ::= DOUBLE */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
2023-08-24 07:54:10 +00:00
break;
case 212: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy232 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 213: /* type_name ::= TIMESTAMP */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
2023-08-24 07:54:10 +00:00
break;
case 214: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy232 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 215: /* type_name ::= TINYINT UNSIGNED */
{ yymsp[-1].minor.yy232 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
2023-08-24 07:54:10 +00:00
break;
case 216: /* type_name ::= SMALLINT UNSIGNED */
{ yymsp[-1].minor.yy232 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
2023-08-24 07:54:10 +00:00
break;
case 217: /* type_name ::= INT UNSIGNED */
{ yymsp[-1].minor.yy232 = createDataType(TSDB_DATA_TYPE_UINT); }
2023-08-24 07:54:10 +00:00
break;
case 218: /* type_name ::= BIGINT UNSIGNED */
{ yymsp[-1].minor.yy232 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
2023-08-24 07:54:10 +00:00
break;
case 219: /* type_name ::= JSON */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_JSON); }
2023-08-24 07:54:10 +00:00
break;
case 220: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy232 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 221: /* type_name ::= MEDIUMBLOB */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
2023-08-24 07:54:10 +00:00
break;
case 222: /* type_name ::= BLOB */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_BLOB); }
2023-08-24 07:54:10 +00:00
break;
case 223: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy232 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 224: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy232 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 225: /* type_name ::= DECIMAL */
{ yymsp[0].minor.yy232 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
2023-08-24 07:54:10 +00:00
break;
case 226: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy232 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
2023-08-24 07:54:10 +00:00
break;
case 227: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy232 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
2023-08-24 07:54:10 +00:00
break;
case 228: /* type_name_default_len ::= BINARY */
{ yymsp[0].minor.yy232 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); }
2023-08-24 07:54:10 +00:00
break;
case 229: /* type_name_default_len ::= NCHAR */
{ yymsp[0].minor.yy232 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); }
2023-08-24 07:54:10 +00:00
break;
case 230: /* type_name_default_len ::= VARCHAR */
{ yymsp[0].minor.yy232 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); }
2023-08-24 07:54:10 +00:00
break;
case 231: /* type_name_default_len ::= VARBINARY */
{ yymsp[0].minor.yy232 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); }
2023-08-24 07:54:10 +00:00
break;
case 234: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
case 395: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==395);
{ yymsp[-3].minor.yy984 = yymsp[-1].minor.yy984; }
2023-08-24 07:54:10 +00:00
break;
case 235: /* table_options ::= */
{ yymsp[1].minor.yy720 = createDefaultTableOptions(pCxt); }
2023-08-24 07:54:10 +00:00
break;
case 236: /* table_options ::= table_options COMMENT NK_STRING */
{ yylhsminor.yy720 = setTableOption(pCxt, yymsp[-2].minor.yy720, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 237: /* table_options ::= table_options MAX_DELAY duration_list */
{ yylhsminor.yy720 = setTableOption(pCxt, yymsp[-2].minor.yy720, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy984); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 238: /* table_options ::= table_options WATERMARK duration_list */
{ yylhsminor.yy720 = setTableOption(pCxt, yymsp[-2].minor.yy720, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy984); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 239: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
{ yylhsminor.yy720 = setTableOption(pCxt, yymsp[-4].minor.yy720, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy984); }
yymsp[-4].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 240: /* table_options ::= table_options TTL NK_INTEGER */
{ yylhsminor.yy720 = setTableOption(pCxt, yymsp[-2].minor.yy720, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 241: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
{ yylhsminor.yy720 = setTableOption(pCxt, yymsp[-4].minor.yy720, TABLE_OPTION_SMA, yymsp[-1].minor.yy984); }
yymsp[-4].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 242: /* table_options ::= table_options DELETE_MARK duration_list */
{ yylhsminor.yy720 = setTableOption(pCxt, yymsp[-2].minor.yy720, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy984); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 243: /* alter_table_options ::= alter_table_option */
{ yylhsminor.yy720 = createAlterTableOptions(pCxt); yylhsminor.yy720 = setTableOption(pCxt, yylhsminor.yy720, yymsp[0].minor.yy5.type, &yymsp[0].minor.yy5.val); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 244: /* alter_table_options ::= alter_table_options alter_table_option */
{ yylhsminor.yy720 = setTableOption(pCxt, yymsp[-1].minor.yy720, yymsp[0].minor.yy5.type, &yymsp[0].minor.yy5.val); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 245: /* alter_table_option ::= COMMENT NK_STRING */
{ yymsp[-1].minor.yy5.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
case 246: /* alter_table_option ::= TTL NK_INTEGER */
{ yymsp[-1].minor.yy5.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
case 247: /* duration_list ::= duration_literal */
case 522: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==522);
{ yylhsminor.yy984 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy720)); }
yymsp[0].minor.yy984 = yylhsminor.yy984;
2023-08-24 07:54:10 +00:00
break;
case 248: /* duration_list ::= duration_list NK_COMMA duration_literal */
case 523: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==523);
{ yylhsminor.yy984 = addNodeToList(pCxt, yymsp[-2].minor.yy984, releaseRawExprNode(pCxt, yymsp[0].minor.yy720)); }
yymsp[-2].minor.yy984 = yylhsminor.yy984;
2023-08-24 07:54:10 +00:00
break;
case 251: /* rollup_func_name ::= function_name */
{ yylhsminor.yy720 = createFunctionNode(pCxt, &yymsp[0].minor.yy1045, NULL); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 252: /* rollup_func_name ::= FIRST */
case 253: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==253);
case 325: /* tag_item ::= QTAGS */ yytestcase(yyruleno==325);
{ yylhsminor.yy720 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 256: /* col_name ::= column_name */
case 326: /* tag_item ::= column_name */ yytestcase(yyruleno==326);
{ yylhsminor.yy720 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy1045); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 257: /* cmd ::= SHOW DNODES */
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
break;
case 258: /* cmd ::= SHOW USERS */
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
break;
case 259: /* cmd ::= SHOW USER PRIVILEGES */
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
break;
case 260: /* cmd ::= SHOW db_kind_opt DATABASES */
{
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy1029);
}
break;
case 261: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
{
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy165, yymsp[0].minor.yy720, OP_TYPE_LIKE);
}
break;
case 262: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy720, yymsp[0].minor.yy720, OP_TYPE_LIKE); }
break;
case 263: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy720, NULL, OP_TYPE_LIKE); }
break;
case 264: /* cmd ::= SHOW MNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
break;
case 265: /* cmd ::= SHOW QNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
break;
case 266: /* cmd ::= SHOW ARBGROUPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); }
break;
case 267: /* cmd ::= SHOW FUNCTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
break;
case 268: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy720, yymsp[-1].minor.yy720, OP_TYPE_EQUAL); }
break;
case 269: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy1045), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1045), OP_TYPE_EQUAL); }
break;
case 270: /* cmd ::= SHOW STREAMS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
2022-03-08 09:25:26 +00:00
break;
case 271: /* cmd ::= SHOW ACCOUNTS */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
break;
case 272: /* cmd ::= SHOW APPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
break;
case 273: /* cmd ::= SHOW CONNECTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
break;
case 274: /* cmd ::= SHOW LICENCES */
case 275: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==275);
2022-08-11 07:37:26 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
break;
case 276: /* cmd ::= SHOW GRANTS FULL */
2024-01-18 07:23:38 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); }
break;
case 277: /* cmd ::= SHOW GRANTS LOGS */
2024-01-31 05:52:03 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); }
2024-01-18 07:23:38 +00:00
break;
case 278: /* cmd ::= SHOW CLUSTER MACHINES */
2024-01-18 09:49:11 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); }
break;
case 279: /* cmd ::= SHOW CREATE DATABASE db_name */
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy1045); }
break;
case 280: /* cmd ::= SHOW CREATE TABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy720); }
break;
case 281: /* cmd ::= SHOW CREATE STABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy720); }
break;
case 282: /* cmd ::= SHOW QUERIES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
break;
case 283: /* cmd ::= SHOW SCORES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
break;
case 284: /* cmd ::= SHOW TOPICS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
break;
case 285: /* cmd ::= SHOW VARIABLES */
case 286: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==286);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
2022-03-28 09:08:48 +00:00
break;
case 287: /* cmd ::= SHOW LOCAL VARIABLES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
break;
case 288: /* 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.yy720); }
break;
case 289: /* cmd ::= SHOW BNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
break;
case 290: /* cmd ::= SHOW SNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
break;
case 291: /* cmd ::= SHOW CLUSTER */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
2022-04-20 09:43:02 +00:00
break;
case 292: /* cmd ::= SHOW TRANSACTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
break;
case 293: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy720); }
2022-03-28 09:08:48 +00:00
break;
case 294: /* cmd ::= SHOW CONSUMERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
2022-05-25 13:20:11 +00:00
break;
case 295: /* cmd ::= SHOW SUBSCRIPTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
2023-08-24 07:54:10 +00:00
break;
case 296: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy720, yymsp[-1].minor.yy720, OP_TYPE_EQUAL); }
2023-08-24 07:54:10 +00:00
break;
case 297: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy1045), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1045), OP_TYPE_EQUAL); }
2023-08-24 07:54:10 +00:00
break;
case 298: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy720, yymsp[0].minor.yy720, yymsp[-3].minor.yy984); }
2023-08-24 07:54:10 +00:00
break;
case 299: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1045), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy1045), yymsp[-4].minor.yy984); }
2023-08-24 07:54:10 +00:00
break;
case 300: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
break;
case 301: /* cmd ::= SHOW VNODES */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
break;
case 302: /* cmd ::= SHOW db_name_cond_opt ALIVE */
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy720, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
break;
case 303: /* cmd ::= SHOW CLUSTER ALIVE */
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
2023-08-24 07:54:10 +00:00
break;
case 304: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy720, yymsp[0].minor.yy720, OP_TYPE_LIKE); }
break;
case 305: /* cmd ::= SHOW CREATE VIEW full_table_name */
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy720); }
2023-11-16 03:41:02 +00:00
break;
case 306: /* cmd ::= SHOW COMPACTS */
2023-11-23 07:26:21 +00:00
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
2023-10-11 02:38:22 +00:00
break;
case 307: /* cmd ::= SHOW COMPACT NK_INTEGER */
2023-11-23 07:26:21 +00:00
{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
break;
case 308: /* table_kind_db_name_cond_opt ::= */
{ yymsp[1].minor.yy165.kind = SHOW_KIND_ALL; yymsp[1].minor.yy165.dbName = nil_token; }
break;
case 309: /* table_kind_db_name_cond_opt ::= table_kind */
{ yylhsminor.yy165.kind = yymsp[0].minor.yy1029; yylhsminor.yy165.dbName = nil_token; }
yymsp[0].minor.yy165 = yylhsminor.yy165;
break;
case 310: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy165.kind = SHOW_KIND_ALL; yylhsminor.yy165.dbName = yymsp[-1].minor.yy1045; }
yymsp[-1].minor.yy165 = yylhsminor.yy165;
2023-10-09 09:19:36 +00:00
break;
case 311: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
{ yylhsminor.yy165.kind = yymsp[-2].minor.yy1029; yylhsminor.yy165.dbName = yymsp[-1].minor.yy1045; }
yymsp[-2].minor.yy165 = yylhsminor.yy165;
2023-08-24 07:54:10 +00:00
break;
case 312: /* table_kind ::= NORMAL */
{ yymsp[0].minor.yy1029 = SHOW_KIND_TABLES_NORMAL; }
2023-08-24 07:54:10 +00:00
break;
case 313: /* table_kind ::= CHILD */
{ yymsp[0].minor.yy1029 = SHOW_KIND_TABLES_CHILD; }
2023-08-24 07:54:10 +00:00
break;
case 314: /* db_name_cond_opt ::= */
case 319: /* from_db_opt ::= */ yytestcase(yyruleno==319);
{ yymsp[1].minor.yy720 = createDefaultDatabaseCondValue(pCxt); }
2023-08-24 07:54:10 +00:00
break;
case 315: /* db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy720 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy1045); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 317: /* like_pattern_opt ::= LIKE NK_STRING */
{ yymsp[-1].minor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 318: /* table_name_cond ::= table_name */
{ yylhsminor.yy720 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1045); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 320: /* from_db_opt ::= FROM db_name */
{ yymsp[-1].minor.yy720 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1045); }
2023-08-24 07:54:10 +00:00
break;
case 324: /* tag_item ::= TBNAME */
{ yylhsminor.yy720 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 327: /* tag_item ::= column_name column_alias */
{ yylhsminor.yy720 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy1045), &yymsp[0].minor.yy1045); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 328: /* tag_item ::= column_name AS column_alias */
{ yylhsminor.yy720 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy1045), &yymsp[0].minor.yy1045); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 329: /* db_kind_opt ::= */
{ yymsp[1].minor.yy1029 = SHOW_KIND_ALL; }
2023-08-24 07:54:10 +00:00
break;
case 330: /* db_kind_opt ::= USER */
{ yymsp[0].minor.yy1029 = SHOW_KIND_DATABASES_USER; }
2023-08-24 07:54:10 +00:00
break;
case 331: /* db_kind_opt ::= SYSTEM */
{ yymsp[0].minor.yy1029 = SHOW_KIND_DATABASES_SYSTEM; }
2023-08-24 07:54:10 +00:00
break;
case 332: /* 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.yy833, yymsp[-3].minor.yy720, yymsp[-1].minor.yy720, NULL, yymsp[0].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
case 333: /* 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.yy833, yymsp[-5].minor.yy720, yymsp[-3].minor.yy720, yymsp[-1].minor.yy984, NULL); }
2023-08-24 07:54:10 +00:00
break;
case 334: /* cmd ::= DROP INDEX exists_opt full_index_name */
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy833, yymsp[0].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
case 335: /* full_index_name ::= index_name */
{ yylhsminor.yy720 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy1045); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 336: /* full_index_name ::= db_name NK_DOT index_name */
{ yylhsminor.yy720 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy1045); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 337: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
{ yymsp[-9].minor.yy720 = createIndexOption(pCxt, yymsp[-7].minor.yy984, releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), NULL, yymsp[-1].minor.yy720, yymsp[0].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
case 338: /* 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.yy720 = createIndexOption(pCxt, yymsp[-9].minor.yy984, releaseRawExprNode(pCxt, yymsp[-5].minor.yy720), releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), yymsp[-1].minor.yy720, yymsp[0].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
case 341: /* func ::= sma_func_name NK_LP expression_list NK_RP */
{ yylhsminor.yy720 = createFunctionNode(pCxt, &yymsp[-3].minor.yy1045, yymsp[-1].minor.yy984); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 342: /* sma_func_name ::= function_name */
case 613: /* alias_opt ::= table_alias */ yytestcase(yyruleno==613);
{ yylhsminor.yy1045 = yymsp[0].minor.yy1045; }
yymsp[0].minor.yy1045 = yylhsminor.yy1045;
2023-08-24 07:54:10 +00:00
break;
case 347: /* sma_stream_opt ::= */
case 396: /* stream_options ::= */ yytestcase(yyruleno==396);
{ yymsp[1].minor.yy720 = createStreamOptions(pCxt); }
2023-08-24 07:54:10 +00:00
break;
case 348: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy720)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy720); yylhsminor.yy720 = yymsp[-2].minor.yy720; }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 349: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy720)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy720); yylhsminor.yy720 = yymsp[-2].minor.yy720; }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 350: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy720)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy720); yylhsminor.yy720 = yymsp[-2].minor.yy720; }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 351: /* with_meta ::= AS */
{ yymsp[0].minor.yy488 = 0; }
2023-08-24 07:54:10 +00:00
break;
case 352: /* with_meta ::= WITH META AS */
{ yymsp[-2].minor.yy488 = 1; }
2023-08-24 07:54:10 +00:00
break;
case 353: /* with_meta ::= ONLY META AS */
{ yymsp[-2].minor.yy488 = 2; }
2023-08-24 07:54:10 +00:00
break;
case 354: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy833, &yymsp[-2].minor.yy1045, yymsp[0].minor.yy720); }
break;
case 355: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy833, &yymsp[-3].minor.yy1045, &yymsp[0].minor.yy1045, yymsp[-2].minor.yy488); }
break;
case 356: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy833, &yymsp[-4].minor.yy1045, yymsp[-1].minor.yy720, yymsp[-3].minor.yy488, yymsp[0].minor.yy720); }
break;
case 357: /* cmd ::= DROP TOPIC exists_opt topic_name */
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy833, &yymsp[0].minor.yy1045); }
break;
case 358: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy833, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy1045); }
break;
case 359: /* cmd ::= DESC full_table_name */
case 360: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==360);
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy720); }
2023-11-16 03:41:02 +00:00
break;
case 361: /* cmd ::= RESET QUERY CACHE */
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
2023-08-24 07:54:10 +00:00
break;
case 362: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
case 363: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==363);
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy833, yymsp[-1].minor.yy720, yymsp[0].minor.yy720); }
break;
case 366: /* explain_options ::= */
{ yymsp[1].minor.yy720 = createDefaultExplainOptions(pCxt); }
2024-04-08 02:55:47 +00:00
break;
case 367: /* explain_options ::= explain_options VERBOSE NK_BOOL */
{ yylhsminor.yy720 = setExplainVerbose(pCxt, yymsp[-2].minor.yy720, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 368: /* explain_options ::= explain_options RATIO NK_FLOAT */
{ yylhsminor.yy720 = setExplainRatio(pCxt, yymsp[-2].minor.yy720, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-08-24 07:54:10 +00:00
break;
case 369: /* 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.yy833, yymsp[-9].minor.yy833, &yymsp[-6].minor.yy1045, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy232, yymsp[-1].minor.yy488, &yymsp[0].minor.yy1045, yymsp[-10].minor.yy833); }
2023-08-24 07:54:10 +00:00
break;
case 370: /* cmd ::= DROP FUNCTION exists_opt function_name */
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy833, &yymsp[0].minor.yy1045); }
2023-08-24 07:54:10 +00:00
break;
case 375: /* language_opt ::= */
case 418: /* on_vgroup_id ::= */ yytestcase(yyruleno==418);
{ yymsp[1].minor.yy1045 = nil_token; }
2023-08-24 07:54:10 +00:00
break;
case 376: /* language_opt ::= LANGUAGE NK_STRING */
case 419: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==419);
{ yymsp[-1].minor.yy1045 = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
case 379: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy833, yymsp[-2].minor.yy720, &yymsp[-1].minor.yy0, yymsp[0].minor.yy720); }
2023-08-24 07:54:10 +00:00
break;
case 380: /* cmd ::= DROP VIEW exists_opt full_view_name */
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy833, yymsp[0].minor.yy720); }
2023-09-20 11:30:40 +00:00
break;
case 381: /* full_view_name ::= view_name */
{ yylhsminor.yy720 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy1045); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 382: /* full_view_name ::= db_name NK_DOT view_name */
{ yylhsminor.yy720 = createViewNode(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy1045); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 383: /* 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.yy833, &yymsp[-8].minor.yy1045, yymsp[-5].minor.yy720, yymsp[-7].minor.yy720, yymsp[-3].minor.yy984, yymsp[-2].minor.yy720, yymsp[0].minor.yy720, yymsp[-4].minor.yy984); }
2023-09-20 11:30:40 +00:00
break;
case 384: /* cmd ::= DROP STREAM exists_opt stream_name */
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy833, &yymsp[0].minor.yy1045); }
2023-09-20 11:30:40 +00:00
break;
case 385: /* cmd ::= PAUSE STREAM exists_opt stream_name */
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy833, &yymsp[0].minor.yy1045); }
2023-09-20 11:30:40 +00:00
break;
case 386: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy833, yymsp[-1].minor.yy833, &yymsp[0].minor.yy1045); }
2023-09-20 11:30:40 +00:00
break;
case 391: /* column_stream_def ::= column_name */
{ yylhsminor.yy720 = createColumnDefNode(pCxt, &yymsp[0].minor.yy1045, createDataType(TSDB_DATA_TYPE_NULL), NULL, false); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 392: /* column_stream_def ::= column_name PRIMARY KEY */
{ yylhsminor.yy720 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy1045, createDataType(TSDB_DATA_TYPE_NULL), NULL, true); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 397: /* stream_options ::= stream_options TRIGGER AT_ONCE */
case 398: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==398);
{ yylhsminor.yy720 = setStreamOptions(pCxt, yymsp[-2].minor.yy720, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 399: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
{ yylhsminor.yy720 = setStreamOptions(pCxt, yymsp[-3].minor.yy720, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy720)); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 400: /* stream_options ::= stream_options WATERMARK duration_literal */
{ yylhsminor.yy720 = setStreamOptions(pCxt, yymsp[-2].minor.yy720, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy720)); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 401: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
{ yylhsminor.yy720 = setStreamOptions(pCxt, yymsp[-3].minor.yy720, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 402: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
{ yylhsminor.yy720 = setStreamOptions(pCxt, yymsp[-2].minor.yy720, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 403: /* stream_options ::= stream_options DELETE_MARK duration_literal */
{ yylhsminor.yy720 = setStreamOptions(pCxt, yymsp[-2].minor.yy720, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy720)); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 404: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
{ yylhsminor.yy720 = setStreamOptions(pCxt, yymsp[-3].minor.yy720, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 406: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
case 670: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==670);
case 694: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==694);
{ yymsp[-3].minor.yy720 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy720); }
2023-09-20 11:30:40 +00:00
break;
case 409: /* cmd ::= KILL CONNECTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
break;
case 410: /* cmd ::= KILL QUERY NK_STRING */
2022-06-15 05:49:29 +00:00
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
break;
case 411: /* cmd ::= KILL TRANSACTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
break;
case 412: /* cmd ::= KILL COMPACT NK_INTEGER */
2023-11-16 03:41:02 +00:00
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); }
break;
case 413: /* cmd ::= BALANCE VGROUP */
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
break;
case 414: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy1045); }
2022-06-07 03:53:32 +00:00
break;
case 415: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 416: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy984); }
break;
case 417: /* cmd ::= SPLIT VGROUP NK_INTEGER */
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
2023-09-20 11:30:40 +00:00
break;
case 420: /* dnode_list ::= DNODE NK_INTEGER */
{ yymsp[-1].minor.yy984 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
2024-01-18 09:49:11 +00:00
break;
case 422: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy720, yymsp[0].minor.yy720); }
2024-01-18 09:49:11 +00:00
break;
case 425: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
{ yymsp[-6].minor.yy720 = createInsertStmt(pCxt, yymsp[-4].minor.yy720, yymsp[-2].minor.yy984, yymsp[0].minor.yy720); }
2024-01-18 09:49:11 +00:00
break;
case 426: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
{ yymsp[-3].minor.yy720 = createInsertStmt(pCxt, yymsp[-1].minor.yy720, NULL, yymsp[0].minor.yy720); }
2024-03-10 14:14:57 +00:00
break;
case 427: /* tags_literal ::= NK_INTEGER */
case 439: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==439);
case 448: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==448);
{ yylhsminor.yy720 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2024-03-10 14:14:57 +00:00
break;
case 428: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
case 429: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==429);
case 440: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==440);
case 441: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==441);
case 449: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==449);
case 450: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==450);
case 458: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==458);
case 459: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==459);
{
SToken l = yymsp[-2].minor.yy0;
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
l.n = (r.z + r.n) - l.z;
yylhsminor.yy720 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy720);
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 430: /* tags_literal ::= NK_PLUS NK_INTEGER */
case 433: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==433);
case 442: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==442);
case 445: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==445);
case 451: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==451);
case 454: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==454);
2024-03-10 14:14:57 +00:00
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy720 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL);
2024-03-10 14:14:57 +00:00
}
yymsp[-1].minor.yy720 = yylhsminor.yy720;
break;
case 431: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
case 432: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==432);
case 434: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==434);
case 435: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==435);
case 443: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==443);
case 444: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==444);
case 446: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==446);
case 447: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==447);
case 452: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==452);
case 453: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==453);
case 455: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==455);
case 456: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==456);
{
SToken l = yymsp[-3].minor.yy0;
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
l.n = (r.z + r.n) - l.z;
yylhsminor.yy720 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy720);
}
yymsp[-3].minor.yy720 = yylhsminor.yy720;
break;
case 436: /* tags_literal ::= NK_FLOAT */
{ yylhsminor.yy720 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2024-03-10 14:14:57 +00:00
break;
case 437: /* tags_literal ::= NK_PLUS NK_FLOAT */
case 438: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==438);
{
2022-03-22 06:09:15 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy720 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL);
2022-03-22 06:09:15 +00:00
}
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-11-16 03:41:02 +00:00
break;
case 457: /* tags_literal ::= NK_STRING */
{ yylhsminor.yy720 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-11-16 03:41:02 +00:00
break;
case 460: /* tags_literal ::= NK_BOOL */
{ yylhsminor.yy720 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-11-16 03:41:02 +00:00
break;
case 461: /* tags_literal ::= NULL */
{ yylhsminor.yy720 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2024-03-10 14:14:57 +00:00
break;
case 462: /* tags_literal ::= literal_func */
{ yylhsminor.yy720 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy720); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2024-03-10 14:14:57 +00:00
break;
case 463: /* tags_literal ::= literal_func NK_PLUS duration_literal */
case 464: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==464);
2024-03-10 14:14:57 +00:00
{
SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
2024-03-10 14:14:57 +00:00
l.n = (r.z + r.n) - l.z;
yylhsminor.yy720 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy720, yymsp[0].minor.yy720);
2024-03-10 14:14:57 +00:00
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 467: /* literal ::= NK_INTEGER */
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 468: /* literal ::= NK_FLOAT */
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 469: /* literal ::= NK_STRING */
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 470: /* literal ::= NK_BOOL */
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 471: /* literal ::= TIMESTAMP NK_STRING */
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
break;
case 472: /* literal ::= duration_literal */
case 482: /* signed_literal ::= signed */ yytestcase(yyruleno==482);
case 505: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==505);
case 506: /* expression ::= literal */ yytestcase(yyruleno==506);
case 508: /* expression ::= column_reference */ yytestcase(yyruleno==508);
case 509: /* expression ::= function_expression */ yytestcase(yyruleno==509);
case 510: /* expression ::= case_when_expression */ yytestcase(yyruleno==510);
case 544: /* function_expression ::= literal_func */ yytestcase(yyruleno==544);
case 594: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==594);
case 598: /* boolean_primary ::= predicate */ yytestcase(yyruleno==598);
case 600: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==600);
case 601: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==601);
case 604: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==604);
case 606: /* table_reference ::= table_primary */ yytestcase(yyruleno==606);
case 607: /* table_reference ::= joined_table */ yytestcase(yyruleno==607);
case 611: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==611);
case 696: /* query_simple ::= query_specification */ yytestcase(yyruleno==696);
case 697: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==697);
case 700: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==700);
case 702: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==702);
{ yylhsminor.yy720 = yymsp[0].minor.yy720; }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2024-04-08 02:55:47 +00:00
break;
case 473: /* literal ::= NULL */
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 474: /* literal ::= NK_QUESTION */
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 475: /* duration_literal ::= NK_VARIABLE */
case 671: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==671);
case 672: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==672);
case 673: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==673);
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 476: /* signed ::= NK_INTEGER */
{ yylhsminor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 477: /* signed ::= NK_PLUS NK_INTEGER */
{ yymsp[-1].minor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
2024-04-08 02:55:47 +00:00
break;
case 478: /* signed ::= NK_MINUS NK_INTEGER */
{
2022-03-22 06:09:15 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
2022-03-22 06:09:15 +00:00
}
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 479: /* signed ::= NK_FLOAT */
{ yylhsminor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 480: /* signed ::= NK_PLUS NK_FLOAT */
{ yymsp[-1].minor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
2023-09-20 11:30:40 +00:00
break;
case 481: /* signed ::= NK_MINUS NK_FLOAT */
{
2022-03-22 06:09:15 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
2022-03-22 06:09:15 +00:00
}
yymsp[-1].minor.yy720 = yylhsminor.yy720;
break;
case 483: /* signed_literal ::= NK_STRING */
{ yylhsminor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 484: /* signed_literal ::= NK_BOOL */
{ yylhsminor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 485: /* signed_literal ::= TIMESTAMP NK_STRING */
{ yymsp[-1].minor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 486: /* signed_literal ::= duration_literal */
case 488: /* signed_literal ::= literal_func */ yytestcase(yyruleno==488);
case 565: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==565);
case 648: /* select_item ::= common_expression */ yytestcase(yyruleno==648);
case 658: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==658);
case 701: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==701);
case 703: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==703);
case 716: /* search_condition ::= common_expression */ yytestcase(yyruleno==716);
{ yylhsminor.yy720 = releaseRawExprNode(pCxt, yymsp[0].minor.yy720); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 487: /* signed_literal ::= NULL */
{ yylhsminor.yy720 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 489: /* signed_literal ::= NK_QUESTION */
{ yylhsminor.yy720 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 507: /* expression ::= pseudo_column */
{ yylhsminor.yy720 = yymsp[0].minor.yy720; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy720, true); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 511: /* expression ::= NK_LP expression NK_RP */
case 599: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==599);
case 715: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==715);
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy720)); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 512: /* expression ::= NK_PLUS expr_or_subquery */
2022-06-22 08:35:14 +00:00
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy720));
2022-06-22 08:35:14 +00:00
}
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2022-06-22 08:35:14 +00:00
break;
case 513: /* expression ::= NK_MINUS expr_or_subquery */
2022-06-22 08:35:14 +00:00
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy720), NULL));
2022-06-22 08:35:14 +00:00
}
yymsp[-1].minor.yy720 = yylhsminor.yy720;
break;
case 514: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2022-03-22 06:09:15 +00:00
break;
case 515: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 516: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 517: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 518: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 519: /* expression ::= column_reference NK_ARROW NK_STRING */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 520: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 521: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 524: /* column_reference ::= column_name */
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy1045, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy1045)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 525: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy1045, createColumnNode(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy1045)); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 526: /* column_reference ::= NK_ALIAS */
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 527: /* column_reference ::= table_name NK_DOT NK_ALIAS */
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 528: /* pseudo_column ::= ROWTS */
case 529: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==529);
case 531: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==531);
case 532: /* pseudo_column ::= QEND */ yytestcase(yyruleno==532);
case 533: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==533);
case 534: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==534);
case 535: /* pseudo_column ::= WEND */ yytestcase(yyruleno==535);
case 536: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==536);
case 537: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==537);
case 538: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==538);
case 539: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==539);
case 546: /* literal_func ::= NOW */ yytestcase(yyruleno==546);
case 547: /* literal_func ::= TODAY */ yytestcase(yyruleno==547);
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
break;
case 530: /* pseudo_column ::= table_name NK_DOT TBNAME */
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy1045)))); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 540: /* function_expression ::= function_name NK_LP expression_list NK_RP */
case 541: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==541);
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy1045, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy1045, yymsp[-1].minor.yy984)); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
break;
case 542: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
case 543: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==543);
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), yymsp[-1].minor.yy232)); }
yymsp[-5].minor.yy720 = yylhsminor.yy720;
break;
case 545: /* literal_func ::= noarg_func NK_LP NK_RP */
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy1045, NULL)); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 561: /* star_func_para_list ::= NK_STAR */
{ yylhsminor.yy984 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy984 = yylhsminor.yy984;
break;
case 566: /* star_func_para ::= table_name NK_DOT NK_STAR */
case 651: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==651);
{ yylhsminor.yy720 = createColumnNode(pCxt, &yymsp[-2].minor.yy1045, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 567: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy984, yymsp[-1].minor.yy720)); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
break;
case 568: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), yymsp[-2].minor.yy984, yymsp[-1].minor.yy720)); }
yymsp[-4].minor.yy720 = yylhsminor.yy720;
break;
case 571: /* when_then_expr ::= WHEN common_expression THEN common_expression */
{ yymsp[-3].minor.yy720 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)); }
break;
case 573: /* case_when_else_opt ::= ELSE common_expression */
{ yymsp[-1].minor.yy720 = releaseRawExprNode(pCxt, yymsp[0].minor.yy720); }
break;
case 574: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
case 579: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==579);
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy1024, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 575: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy720), releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-4].minor.yy720 = yylhsminor.yy720;
break;
case 576: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy720), releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-5].minor.yy720 = yylhsminor.yy720;
break;
case 577: /* predicate ::= expr_or_subquery IS NULL */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), NULL));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 578: /* predicate ::= expr_or_subquery IS NOT NULL */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), NULL));
}
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 580: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy1024 = OP_TYPE_LOWER_THAN; }
2023-09-20 11:30:40 +00:00
break;
case 581: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy1024 = OP_TYPE_GREATER_THAN; }
2023-09-20 11:30:40 +00:00
break;
case 582: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy1024 = OP_TYPE_LOWER_EQUAL; }
2023-09-20 11:30:40 +00:00
break;
case 583: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy1024 = OP_TYPE_GREATER_EQUAL; }
2023-09-20 11:30:40 +00:00
break;
case 584: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy1024 = OP_TYPE_NOT_EQUAL; }
2023-09-20 11:30:40 +00:00
break;
case 585: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy1024 = OP_TYPE_EQUAL; }
2023-09-20 11:30:40 +00:00
break;
case 586: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy1024 = OP_TYPE_LIKE; }
2023-09-20 11:30:40 +00:00
break;
case 587: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy1024 = OP_TYPE_NOT_LIKE; }
2023-09-20 11:30:40 +00:00
break;
case 588: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy1024 = OP_TYPE_MATCH; }
2023-09-20 11:30:40 +00:00
break;
case 589: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy1024 = OP_TYPE_NMATCH; }
2023-09-20 11:30:40 +00:00
break;
case 590: /* compare_op ::= CONTAINS */
{ yymsp[0].minor.yy1024 = OP_TYPE_JSON_CONTAINS; }
2023-09-20 11:30:40 +00:00
break;
case 591: /* in_op ::= IN */
{ yymsp[0].minor.yy1024 = OP_TYPE_IN; }
2023-09-20 11:30:40 +00:00
break;
case 592: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy1024 = OP_TYPE_NOT_IN; }
2023-09-20 11:30:40 +00:00
break;
case 593: /* in_predicate_value ::= NK_LP literal_list NK_RP */
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy984)); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 595: /* boolean_value_expression ::= NOT boolean_primary */
{
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy720), NULL));
}
yymsp[-1].minor.yy720 = yylhsminor.yy720;
break;
case 596: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
break;
case 597: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy720);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy720);
yylhsminor.yy720 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), releaseRawExprNode(pCxt, yymsp[0].minor.yy720)));
}
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 605: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy720 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, JOIN_STYPE_NONE, yymsp[-2].minor.yy720, yymsp[0].minor.yy720, NULL); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 608: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy720 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy1045, &yymsp[0].minor.yy1045); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 609: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy720 = createRealTableNode(pCxt, &yymsp[-3].minor.yy1045, &yymsp[-1].minor.yy1045, &yymsp[0].minor.yy1045); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 610: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy720 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy720), &yymsp[0].minor.yy1045); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 612: /* alias_opt ::= */
{ yymsp[1].minor.yy1045 = nil_token; }
2023-09-20 11:30:40 +00:00
break;
case 614: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy1045 = yymsp[0].minor.yy1045; }
2023-09-20 11:30:40 +00:00
break;
case 615: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 616: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==616);
{ yymsp[-2].minor.yy720 = yymsp[-1].minor.yy720; }
2023-09-20 11:30:40 +00:00
break;
case 617: /* joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */
2023-11-27 12:01:00 +00:00
{
yylhsminor.yy720 = createJoinTableNode(pCxt, yymsp[-6].minor.yy548, yymsp[-5].minor.yy506, yymsp[-7].minor.yy720, yymsp[-3].minor.yy720, yymsp[-2].minor.yy720);
yylhsminor.yy720 = addWindowOffsetClause(pCxt, yylhsminor.yy720, yymsp[-1].minor.yy720);
yylhsminor.yy720 = addJLimitClause(pCxt, yylhsminor.yy720, yymsp[0].minor.yy720);
2023-11-27 12:01:00 +00:00
}
yymsp[-7].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 618: /* join_type ::= */
{ yymsp[1].minor.yy548 = JOIN_TYPE_INNER; }
2023-09-20 11:30:40 +00:00
break;
case 619: /* join_type ::= INNER */
{ yymsp[0].minor.yy548 = JOIN_TYPE_INNER; }
2023-11-27 12:01:00 +00:00
break;
case 620: /* join_type ::= LEFT */
{ yymsp[0].minor.yy548 = JOIN_TYPE_LEFT; }
2023-11-27 12:01:00 +00:00
break;
case 621: /* join_type ::= RIGHT */
{ yymsp[0].minor.yy548 = JOIN_TYPE_RIGHT; }
2023-11-27 12:01:00 +00:00
break;
case 622: /* join_type ::= FULL */
{ yymsp[0].minor.yy548 = JOIN_TYPE_FULL; }
2023-11-27 12:01:00 +00:00
break;
case 623: /* join_subtype ::= */
{ yymsp[1].minor.yy506 = JOIN_STYPE_NONE; }
2023-09-20 11:30:40 +00:00
break;
case 624: /* join_subtype ::= OUTER */
{ yymsp[0].minor.yy506 = JOIN_STYPE_OUTER; }
2023-11-27 12:01:00 +00:00
break;
case 625: /* join_subtype ::= SEMI */
{ yymsp[0].minor.yy506 = JOIN_STYPE_SEMI; }
2023-11-27 12:01:00 +00:00
break;
case 626: /* join_subtype ::= ANTI */
{ yymsp[0].minor.yy506 = JOIN_STYPE_ANTI; }
2023-11-27 12:01:00 +00:00
break;
case 627: /* join_subtype ::= ASOF */
{ yymsp[0].minor.yy506 = JOIN_STYPE_ASOF; }
2023-11-27 12:01:00 +00:00
break;
case 628: /* join_subtype ::= WINDOW */
{ yymsp[0].minor.yy506 = JOIN_STYPE_WIN; }
2023-11-27 12:01:00 +00:00
break;
case 632: /* window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */
{ yymsp[-5].minor.yy720 = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), releaseRawExprNode(pCxt, yymsp[-1].minor.yy720)); }
2023-11-27 12:01:00 +00:00
break;
case 633: /* window_offset_literal ::= NK_VARIABLE */
{ yylhsminor.yy720 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createTimeOffsetValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-11-28 06:35:11 +00:00
break;
case 634: /* window_offset_literal ::= NK_MINUS NK_VARIABLE */
2023-11-28 06:35:11 +00:00
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy720 = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t));
2023-11-28 06:35:11 +00:00
}
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-11-28 06:35:11 +00:00
break;
case 636: /* jlimit_clause_opt ::= JLIMIT NK_INTEGER */
case 707: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ yytestcase(yyruleno==707);
case 711: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==711);
{ yymsp[-1].minor.yy720 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
2023-11-27 12:01:00 +00:00
break;
case 637: /* 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.yy720 = createSelectStmt(pCxt, yymsp[-11].minor.yy833, yymsp[-9].minor.yy984, yymsp[-8].minor.yy720, yymsp[-12].minor.yy984);
yymsp[-13].minor.yy720 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy720, yymsp[-10].minor.yy833);
yymsp[-13].minor.yy720 = addWhereClause(pCxt, yymsp[-13].minor.yy720, yymsp[-7].minor.yy720);
yymsp[-13].minor.yy720 = addPartitionByClause(pCxt, yymsp[-13].minor.yy720, yymsp[-6].minor.yy984);
yymsp[-13].minor.yy720 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy720, yymsp[-2].minor.yy720);
yymsp[-13].minor.yy720 = addGroupByClause(pCxt, yymsp[-13].minor.yy720, yymsp[-1].minor.yy984);
yymsp[-13].minor.yy720 = addHavingClause(pCxt, yymsp[-13].minor.yy720, yymsp[0].minor.yy720);
yymsp[-13].minor.yy720 = addRangeClause(pCxt, yymsp[-13].minor.yy720, yymsp[-5].minor.yy720);
yymsp[-13].minor.yy720 = addEveryClause(pCxt, yymsp[-13].minor.yy720, yymsp[-4].minor.yy720);
yymsp[-13].minor.yy720 = addFillClause(pCxt, yymsp[-13].minor.yy720, yymsp[-3].minor.yy720);
}
2023-09-20 11:30:40 +00:00
break;
case 638: /* hint_list ::= */
{ yymsp[1].minor.yy984 = createHintNodeList(pCxt, NULL); }
2023-09-20 11:30:40 +00:00
break;
case 639: /* hint_list ::= NK_HINT */
{ yylhsminor.yy984 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy984 = yylhsminor.yy984;
2023-09-20 11:30:40 +00:00
break;
case 644: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy833 = false; }
2023-09-20 11:30:40 +00:00
break;
case 647: /* select_item ::= NK_STAR */
{ yylhsminor.yy720 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 649: /* select_item ::= common_expression column_alias */
case 659: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==659);
{ yylhsminor.yy720 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy720), &yymsp[0].minor.yy1045); }
yymsp[-1].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 650: /* select_item ::= common_expression AS column_alias */
case 660: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==660);
{ yylhsminor.yy720 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), &yymsp[0].minor.yy1045); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 655: /* partition_by_clause_opt ::= PARTITION BY partition_list */
case 685: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==685);
case 705: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==705);
{ yymsp[-2].minor.yy984 = yymsp[0].minor.yy984; }
2023-09-20 11:30:40 +00:00
break;
case 662: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
{ yymsp[-5].minor.yy720 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), releaseRawExprNode(pCxt, yymsp[-1].minor.yy720)); }
2023-09-20 11:30:40 +00:00
break;
case 663: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy720 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy720)); }
2023-09-20 11:30:40 +00:00
break;
case 664: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy720 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), NULL, yymsp[-1].minor.yy720, yymsp[0].minor.yy720); }
2023-09-20 11:30:40 +00:00
break;
case 665: /* 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.yy720 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy720), releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), yymsp[-1].minor.yy720, yymsp[0].minor.yy720); }
2023-09-20 11:30:40 +00:00
break;
case 666: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
{ yymsp[-6].minor.yy720 = createEventWindowNode(pCxt, yymsp[-3].minor.yy720, yymsp[0].minor.yy720); }
2024-01-17 06:22:19 +00:00
break;
case 667: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy720 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); }
2024-01-17 06:22:19 +00:00
break;
case 668: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy720 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); }
2023-09-20 11:30:40 +00:00
break;
case 675: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy720 = createFillNode(pCxt, yymsp[-1].minor.yy318, NULL); }
2023-09-20 11:30:40 +00:00
break;
case 676: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy720 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy984)); }
2023-09-20 11:30:40 +00:00
break;
case 677: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy720 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy984)); }
2023-09-20 11:30:40 +00:00
break;
case 678: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy318 = FILL_MODE_NONE; }
2023-09-20 11:30:40 +00:00
break;
case 679: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy318 = FILL_MODE_PREV; }
2023-09-20 11:30:40 +00:00
break;
case 680: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy318 = FILL_MODE_NULL; }
2023-09-20 11:30:40 +00:00
break;
case 681: /* fill_mode ::= NULL_F */
{ yymsp[0].minor.yy318 = FILL_MODE_NULL_F; }
2023-09-20 11:30:40 +00:00
break;
case 682: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy318 = FILL_MODE_LINEAR; }
2023-09-20 11:30:40 +00:00
break;
case 683: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy318 = FILL_MODE_NEXT; }
2023-09-20 11:30:40 +00:00
break;
case 686: /* group_by_list ::= expr_or_subquery */
{ yylhsminor.yy984 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy720))); }
yymsp[0].minor.yy984 = yylhsminor.yy984;
2023-09-20 11:30:40 +00:00
break;
case 687: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
{ yylhsminor.yy984 = addNodeToList(pCxt, yymsp[-2].minor.yy984, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy720))); }
yymsp[-2].minor.yy984 = yylhsminor.yy984;
2023-09-20 11:30:40 +00:00
break;
case 691: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
{ yymsp[-5].minor.yy720 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy720), releaseRawExprNode(pCxt, yymsp[-1].minor.yy720)); }
2023-09-20 11:30:40 +00:00
break;
case 692: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy720 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy720)); }
2023-09-20 11:30:40 +00:00
break;
case 695: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
2022-09-16 07:53:27 +00:00
{
yylhsminor.yy720 = addOrderByClause(pCxt, yymsp[-3].minor.yy720, yymsp[-2].minor.yy984);
yylhsminor.yy720 = addSlimitClause(pCxt, yylhsminor.yy720, yymsp[-1].minor.yy720);
yylhsminor.yy720 = addLimitClause(pCxt, yylhsminor.yy720, yymsp[0].minor.yy720);
}
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 698: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
{ yylhsminor.yy720 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy720, yymsp[0].minor.yy720); }
yymsp[-3].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 699: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
{ yylhsminor.yy720 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy720, yymsp[0].minor.yy720); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 708: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 712: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==712);
{ yymsp[-3].minor.yy720 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
2023-09-20 11:30:40 +00:00
break;
case 709: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 713: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==713);
{ yymsp[-3].minor.yy720 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
2023-09-20 11:30:40 +00:00
break;
case 714: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy720 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy720); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 719: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy720 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy720), yymsp[-1].minor.yy670, yymsp[0].minor.yy545); }
yymsp[-2].minor.yy720 = yylhsminor.yy720;
2023-09-20 11:30:40 +00:00
break;
case 720: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy670 = ORDER_ASC; }
2023-09-20 11:30:40 +00:00
break;
case 721: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy670 = ORDER_ASC; }
2023-09-20 11:30:40 +00:00
break;
case 722: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy670 = ORDER_DESC; }
2023-09-20 11:30:40 +00:00
break;
case 723: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy545 = NULL_ORDER_DEFAULT; }
2023-09-20 11:30:40 +00:00
break;
case 724: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy545 = NULL_ORDER_FIRST; }
2023-09-20 11:30:40 +00:00
break;
case 725: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy545 = NULL_ORDER_LAST; }
2023-03-22 01:36:59 +00:00
break;
default:
break;
/********** End reduce actions ************************************************/
};
2023-05-09 11:19:14 +00:00
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 */
){
2022-03-10 07:36:06 +00:00
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 *****************************************/
2022-03-10 07:36:06 +00:00
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 */
2022-03-10 07:36:06 +00:00
ParseTOKENTYPE yyminor /* The minor type of the error token */
){
2022-03-10 07:36:06 +00:00
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 ******************************************/
2022-03-10 07:36:06 +00:00
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 */
){
2022-03-10 07:36:06 +00:00
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 *******************************************/
2022-03-10 07:36:06 +00:00
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
2022-03-10 07:36:06 +00:00
** "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.
*/
2022-03-10 07:36:06 +00:00
void Parse(
void *yyp, /* The parser */
int yymajor, /* The major token code number */
2022-03-10 07:36:06 +00:00
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 */
2022-03-10 07:36:06 +00:00
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
2023-09-20 11:30:40 +00:00
do{
assert( yyact==yypParser->yytos->stateno );
yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
if( yyact >= YY_MIN_REDUCE ){
2023-09-20 11:30:40 +00:00
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{
2023-09-20 11:30:40 +00:00
while( yypParser->yytos >= yypParser->yystack
&& (yyact = yy_find_reduce_action(
yypParser->yytos->stateno,
YYERRORSYMBOL)) > YY_MAX_SHIFTREDUCE
){
yy_pop_parser_stack(yypParser);
}
2023-09-20 11:30:40 +00:00
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
}
2023-09-20 11:30:40 +00:00
}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.
*/
2022-03-10 07:36:06 +00:00
int ParseFallback(int iToken){
#ifdef YYFALLBACK
2023-05-09 11:19:14 +00:00
assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
return yyFallback[iToken];
#else
(void)iToken;
2023-04-23 03:20:34 +00:00
return 0;
2023-05-09 11:19:14 +00:00
#endif
}