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

7318 lines
386 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:
*/
2024-03-26 11:56:15 +00:00
#include <stdio.h>
#include <assert.h>
/************ Begin %include sections from the grammar ************************/
2024-03-10 14:14:57 +00:00
#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 **********************************/
2024-03-26 11:56:15 +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
2024-04-15 08:12:15 +00:00
#define YYNOCODE 528
#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;
2024-04-15 08:12:15 +00:00
ENullOrder yy169;
bool yy185;
EOrder yy290;
EFillMode yy294;
int8_t yy311;
EShowKind yy321;
SNodeList* yy376;
SDataType yy400;
SShowTablesOption yy685;
int32_t yy772;
SToken yy833;
SNode* yy872;
SAlterOption yy893;
EJoinType yy948;
STokenPair yy1017;
EOperatorType yy1052;
int64_t yy1053;
} 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
2024-04-15 08:12:15 +00:00
#define YYNSTATE 913
#define YYNRULE 713
#define YYNRULE_WITH_ACTION 713
#define YYNTOKEN 362
#define YY_MAX_SHIFT 912
#define YY_MIN_SHIFTREDUCE 1358
#define YY_MAX_SHIFTREDUCE 2070
#define YY_ERROR_ACTION 2071
#define YY_ACCEPT_ACTION 2072
#define YY_NO_ACTION 2073
#define YY_MIN_REDUCE 2074
#define YY_MAX_REDUCE 2786
/************* 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 **********************************************/
2024-04-15 07:12:32 +00:00
#define YY_ACTTAB_COUNT (3200)
static const YYACTIONTYPE yy_action[] = {
2024-04-15 08:12:15 +00:00
/* 0 */ 2543, 838, 515, 459, 752, 2097, 2762, 2757, 780, 2757,
/* 10 */ 2761, 2584, 47, 45, 1992, 2075, 779, 241, 807, 2275,
/* 20 */ 442, 614, 1831, 2125, 790, 751, 205, 176, 2761, 2086,
/* 30 */ 2758, 753, 2758, 2760, 2266, 1918, 129, 1829, 210, 128,
/* 40 */ 127, 126, 125, 124, 123, 122, 121, 120, 576, 574,
/* 50 */ 1516, 392, 2602, 2544, 186, 219, 40, 39, 448, 2550,
/* 60 */ 46, 44, 43, 42, 41, 2550, 1913, 789, 1860, 811,
/* 70 */ 40, 39, 1856, 19, 46, 44, 43, 42, 41, 2401,
/* 80 */ 1837, 2161, 616, 46, 44, 43, 42, 41, 613, 747,
/* 90 */ 40, 39, 448, 1518, 46, 44, 43, 42, 41, 1856,
/* 100 */ 40, 39, 107, 811, 46, 44, 43, 42, 41, 2583,
/* 110 */ 909, 448, 2622, 15, 468, 467, 115, 2585, 793, 2587,
/* 120 */ 2588, 788, 811, 811, 608, 29, 150, 2268, 158, 2647,
/* 130 */ 2676, 14, 13, 606, 438, 2672, 602, 598, 129, 1838,
/* 140 */ 62, 128, 127, 126, 125, 124, 123, 122, 121, 120,
/* 150 */ 51, 1920, 1921, 225, 806, 402, 882, 881, 880, 879,
/* 160 */ 471, 706, 878, 877, 153, 872, 871, 870, 869, 868,
/* 170 */ 867, 866, 152, 860, 859, 858, 470, 469, 855, 854,
/* 180 */ 853, 185, 184, 852, 466, 851, 850, 849, 40, 39,
/* 190 */ 1891, 1901, 46, 44, 43, 42, 41, 1919, 1922, 91,
/* 200 */ 631, 1574, 90, 1947, 37, 312, 2037, 243, 764, 148,
/* 210 */ 62, 614, 1832, 2125, 1830, 703, 454, 1565, 836, 835,
/* 220 */ 834, 1569, 833, 1571, 1572, 832, 829, 112, 1580, 826,
/* 230 */ 1582, 1583, 823, 820, 817, 611, 109, 806, 612, 2117,
/* 240 */ 201, 1856, 1686, 1687, 1961, 658, 1835, 1836, 1888, 657,
/* 250 */ 1890, 1893, 1894, 1895, 1896, 1897, 1898, 1899, 1900, 785,
/* 260 */ 809, 808, 1912, 1914, 1915, 1916, 1917, 2, 47, 45,
/* 270 */ 2420, 1948, 89, 390, 2074, 1854, 442, 619, 1831, 2584,
/* 280 */ 612, 2117, 559, 463, 627, 579, 2326, 2328, 2418, 794,
/* 290 */ 578, 1918, 767, 1829, 2036, 1425, 1861, 1424, 138, 137,
/* 300 */ 136, 135, 134, 133, 132, 131, 130, 538, 506, 580,
/* 310 */ 505, 308, 144, 755, 391, 540, 1841, 1888, 2072, 1857,
/* 320 */ 2602, 308, 1913, 204, 2684, 2685, 518, 146, 2689, 19,
/* 330 */ 50, 1426, 848, 2550, 62, 789, 1837, 628, 40, 39,
/* 340 */ 504, 704, 46, 44, 43, 42, 41, 764, 148, 66,
/* 350 */ 524, 2396, 198, 36, 440, 1942, 1943, 1944, 1945, 1946,
/* 360 */ 1950, 1951, 1952, 1953, 492, 2320, 909, 413, 707, 15,
/* 370 */ 846, 164, 163, 843, 842, 841, 161, 2583, 526, 2762,
/* 380 */ 2622, 308, 2757, 2352, 115, 2585, 793, 2587, 2588, 788,
/* 390 */ 12, 811, 2252, 1800, 629, 2413, 188, 2251, 2676, 474,
/* 400 */ 221, 2761, 438, 2672, 473, 2758, 2759, 1920, 1921, 865,
/* 410 */ 2407, 2386, 2236, 567, 566, 565, 564, 563, 558, 557,
/* 420 */ 556, 555, 396, 453, 452, 2707, 545, 544, 543, 542,
/* 430 */ 541, 535, 534, 533, 175, 528, 527, 411, 2025, 366,
/* 440 */ 839, 519, 1674, 1675, 621, 2459, 1891, 1901, 1693, 1860,
/* 450 */ 1706, 1707, 723, 1919, 1922, 2757, 364, 75, 62, 756,
/* 460 */ 74, 766, 203, 2684, 2685, 722, 146, 2689, 1832, 848,
/* 470 */ 1830, 393, 351, 2763, 205, 418, 417, 1856, 2758, 753,
/* 480 */ 2420, 530, 2396, 239, 593, 591, 588, 586, 739, 738,
/* 490 */ 2023, 2024, 2026, 2027, 2028, 445, 1705, 1708, 2417, 794,
/* 500 */ 496, 308, 1835, 1836, 1888, 308, 1890, 1893, 1894, 1895,
/* 510 */ 1896, 1897, 1898, 1899, 1900, 785, 809, 808, 1912, 1914,
/* 520 */ 1915, 1916, 1917, 2, 12, 47, 45, 498, 494, 62,
/* 530 */ 1831, 223, 186, 442, 2067, 1831, 846, 164, 163, 843,
/* 540 */ 842, 841, 161, 1574, 1837, 1829, 561, 2396, 1918, 457,
/* 550 */ 1829, 554, 553, 416, 415, 412, 656, 2400, 1405, 1565,
/* 560 */ 836, 835, 834, 1569, 833, 1571, 1572, 784, 783, 63,
/* 570 */ 1580, 782, 1582, 1583, 781, 820, 817, 174, 2584, 1913,
/* 580 */ 658, 1574, 1403, 1404, 657, 2210, 19, 508, 1837, 702,
/* 590 */ 1949, 767, 507, 1837, 2264, 2503, 228, 1565, 836, 835,
/* 600 */ 834, 1569, 833, 1571, 1572, 832, 829, 60, 1580, 826,
/* 610 */ 1582, 1583, 823, 820, 817, 720, 807, 2275, 909, 2602,
/* 620 */ 85, 84, 511, 909, 806, 218, 15, 2369, 12, 308,
/* 630 */ 10, 276, 2550, 702, 789, 275, 55, 2584, 503, 501,
/* 640 */ 723, 2066, 2260, 2757, 427, 2467, 2560, 1892, 723, 389,
/* 650 */ 787, 2757, 490, 807, 2275, 487, 483, 479, 476, 504,
/* 660 */ 2262, 2763, 205, 707, 1920, 1921, 2758, 753, 746, 2763,
/* 670 */ 205, 2564, 34, 139, 2758, 753, 2583, 1861, 2602, 2622,
/* 680 */ 654, 2691, 1954, 115, 2585, 793, 2587, 2588, 788, 2468,
/* 690 */ 811, 2550, 773, 789, 2648, 188, 2602, 2676, 395, 394,
/* 700 */ 308, 438, 2672, 1891, 1901, 1889, 99, 2688, 449, 399,
/* 710 */ 1919, 1922, 426, 693, 695, 277, 207, 50, 2566, 2569,
/* 720 */ 1832, 1918, 1830, 458, 2706, 1832, 1799, 1830, 691, 811,
/* 730 */ 689, 273, 272, 1857, 757, 2583, 764, 148, 2622, 709,
/* 740 */ 2459, 3, 382, 2585, 793, 2587, 2588, 788, 786, 811,
/* 750 */ 772, 2641, 1913, 53, 1835, 1836, 456, 455, 862, 1835,
/* 760 */ 1836, 1888, 745, 1890, 1893, 1894, 1895, 1896, 1897, 1898,
/* 770 */ 1899, 1900, 785, 809, 808, 1912, 1914, 1915, 1916, 1917,
/* 780 */ 2, 47, 45, 1923, 2017, 2584, 2096, 2258, 682, 442,
/* 790 */ 1398, 1831, 43, 42, 41, 1759, 1760, 552, 790, 2018,
/* 800 */ 2127, 33, 551, 694, 1918, 2584, 1829, 40, 39, 1405,
/* 810 */ 550, 46, 44, 43, 42, 41, 2095, 35, 790, 274,
/* 820 */ 2714, 96, 2691, 40, 39, 864, 2602, 46, 44, 43,
/* 830 */ 42, 41, 1400, 1403, 1404, 1913, 685, 2691, 414, 2550,
/* 840 */ 2550, 789, 2016, 679, 677, 2211, 2602, 2270, 2687, 1837,
/* 850 */ 271, 206, 2684, 2685, 2762, 146, 2689, 807, 2275, 2550,
/* 860 */ 2472, 789, 2250, 2686, 1613, 1614, 2327, 2328, 40, 39,
/* 870 */ 2550, 1859, 46, 44, 43, 42, 41, 139, 1989, 909,
/* 880 */ 650, 649, 48, 2583, 659, 2094, 2622, 807, 2275, 284,
/* 890 */ 115, 2585, 793, 2587, 2588, 788, 71, 811, 1822, 70,
/* 900 */ 1798, 113, 2777, 2583, 2676, 2504, 2622, 512, 438, 2672,
/* 910 */ 115, 2585, 793, 2587, 2588, 788, 278, 811, 151, 446,
/* 920 */ 1920, 1921, 2777, 199, 2676, 1528, 2267, 173, 438, 2672,
/* 930 */ 451, 450, 1823, 807, 2275, 2277, 2720, 40, 39, 2550,
/* 940 */ 1527, 46, 44, 43, 42, 41, 809, 808, 1912, 1914,
/* 950 */ 1915, 1916, 1917, 513, 764, 148, 1996, 742, 723, 1891,
/* 960 */ 1901, 2757, 1856, 2087, 1860, 2060, 1919, 1922, 301, 675,
/* 970 */ 674, 673, 149, 570, 2008, 2647, 665, 145, 669, 2763,
/* 980 */ 205, 1832, 668, 1830, 2758, 753, 461, 667, 672, 421,
/* 990 */ 420, 652, 651, 666, 167, 1428, 1429, 419, 662, 661,
/* 1000 */ 660, 1859, 2277, 1856, 2093, 2584, 846, 164, 163, 843,
/* 1010 */ 842, 841, 161, 581, 2560, 1835, 1836, 1888, 790, 1890,
/* 1020 */ 1893, 1894, 1895, 1896, 1897, 1898, 1899, 1900, 785, 809,
/* 1030 */ 808, 1912, 1914, 1915, 1916, 1917, 2, 47, 45, 2564,
/* 1040 */ 461, 230, 2584, 306, 740, 442, 2602, 1831, 173, 428,
/* 1050 */ 2467, 748, 743, 736, 732, 790, 2277, 2727, 2550, 2550,
/* 1060 */ 1918, 789, 1829, 2333, 807, 2275, 1928, 569, 229, 304,
/* 1070 */ 2684, 763, 1856, 140, 762, 840, 2757, 2584, 2324, 771,
/* 1080 */ 2092, 807, 2275, 2602, 532, 1860, 2566, 2568, 439, 295,
/* 1090 */ 790, 1913, 734, 96, 751, 205, 2550, 811, 789, 2758,
/* 1100 */ 753, 546, 759, 2583, 2091, 1837, 2622, 807, 2275, 2333,
/* 1110 */ 115, 2585, 793, 2587, 2588, 788, 410, 811, 2602, 2271,
/* 1120 */ 2090, 117, 2651, 2333, 2676, 2331, 1532, 547, 438, 2672,
/* 1130 */ 437, 2550, 1892, 789, 2550, 909, 196, 2089, 48, 2331,
/* 1140 */ 2583, 1531, 9, 2622, 807, 2275, 2333, 115, 2585, 793,
/* 1150 */ 2587, 2588, 788, 447, 811, 141, 2333, 2584, 2550, 2777,
/* 1160 */ 1988, 2676, 2331, 462, 548, 438, 2672, 87, 807, 2275,
/* 1170 */ 790, 700, 2331, 306, 2550, 2583, 1920, 1921, 2622, 143,
/* 1180 */ 671, 670, 115, 2585, 793, 2587, 2588, 788, 630, 811,
/* 1190 */ 1889, 2550, 1861, 2088, 2777, 775, 2676, 2648, 2602, 752,
/* 1200 */ 438, 2672, 2757, 876, 874, 316, 317, 100, 807, 2275,
/* 1210 */ 315, 2550, 1407, 789, 583, 1891, 1901, 1425, 1855, 1424,
/* 1220 */ 751, 205, 1919, 1922, 723, 2758, 753, 2757, 2272, 807,
/* 1230 */ 2275, 1889, 807, 2275, 807, 2275, 173, 1832, 1734, 1830,
/* 1240 */ 807, 2275, 1892, 2085, 2278, 2763, 205, 2550, 2491, 279,
/* 1250 */ 2758, 753, 287, 1426, 770, 2583, 844, 200, 2622, 2324,
/* 1260 */ 320, 2584, 177, 2585, 793, 2587, 2588, 788, 697, 811,
/* 1270 */ 696, 1835, 1836, 1888, 790, 1890, 1893, 1894, 1895, 1896,
/* 1280 */ 1897, 1898, 1899, 1900, 785, 809, 808, 1912, 1914, 1915,
/* 1290 */ 1916, 1917, 2, 47, 45, 2584, 2084, 2550, 464, 2253,
/* 1300 */ 1889, 442, 2602, 1831, 724, 2717, 173, 162, 790, 77,
/* 1310 */ 2750, 807, 2275, 1861, 2277, 2550, 1918, 789, 1829, 2333,
/* 1320 */ 807, 2275, 2083, 807, 2275, 807, 2275, 2082, 2081, 2102,
/* 1330 */ 904, 804, 154, 2584, 845, 802, 2602, 2324, 2696, 1981,
/* 1340 */ 805, 2333, 708, 347, 2379, 465, 790, 1913, 2695, 2550,
/* 1350 */ 2550, 789, 2080, 360, 2079, 2078, 2310, 2332, 2603, 2583,
/* 1360 */ 2203, 1837, 2622, 2494, 2202, 88, 115, 2585, 793, 2587,
/* 1370 */ 2588, 788, 2077, 811, 2602, 663, 2550, 2405, 2649, 760,
/* 1380 */ 2676, 2550, 2550, 1981, 438, 2672, 522, 2550, 54, 789,
/* 1390 */ 2118, 909, 1511, 2583, 15, 723, 2622, 288, 2757, 1509,
/* 1400 */ 115, 2585, 793, 2587, 2588, 788, 2550, 811, 2550, 2550,
/* 1410 */ 768, 778, 2777, 664, 2676, 481, 2763, 205, 438, 2672,
/* 1420 */ 264, 2758, 753, 262, 266, 268, 2550, 265, 267, 2148,
/* 1430 */ 155, 2583, 1920, 1921, 2622, 1512, 155, 1507, 115, 2585,
/* 1440 */ 793, 2587, 2588, 788, 270, 811, 101, 269, 2146, 730,
/* 1450 */ 2777, 676, 2676, 2069, 2070, 2571, 438, 2672, 468, 467,
/* 1460 */ 2137, 1840, 2584, 723, 14, 13, 2757, 1839, 1845, 2135,
/* 1470 */ 678, 1891, 1901, 49, 49, 790, 189, 162, 1919, 1922,
/* 1480 */ 64, 1918, 680, 1838, 2763, 205, 212, 326, 325, 2758,
/* 1490 */ 753, 683, 49, 1832, 49, 1830, 2710, 314, 737, 76,
/* 1500 */ 328, 327, 433, 2602, 330, 329, 160, 332, 331, 744,
/* 1510 */ 162, 1750, 1913, 2164, 334, 333, 2550, 1757, 789, 2573,
/* 1520 */ 336, 335, 73, 338, 337, 429, 1837, 1835, 1836, 1888,
/* 1530 */ 2012, 1890, 1893, 1894, 1895, 1896, 1897, 1898, 1899, 1900,
/* 1540 */ 785, 809, 808, 1912, 1914, 1915, 1916, 1917, 2, 340,
/* 1550 */ 339, 342, 341, 815, 2022, 2021, 777, 293, 769, 1489,
/* 1560 */ 2583, 1955, 160, 2622, 344, 343, 162, 115, 2585, 793,
/* 1570 */ 2587, 2588, 788, 1902, 811, 1703, 346, 345, 318, 774,
/* 1580 */ 799, 2676, 142, 160, 1939, 438, 2672, 322, 675, 674,
/* 1590 */ 673, 1558, 1462, 2129, 796, 665, 145, 669, 856, 857,
/* 1600 */ 472, 668, 1490, 359, 2406, 2124, 667, 672, 421, 420,
/* 1610 */ 2321, 716, 666, 2711, 2721, 765, 419, 662, 661, 660,
/* 1620 */ 303, 300, 1481, 1479, 307, 259, 2237, 2584, 5, 475,
/* 1630 */ 480, 408, 489, 488, 1587, 1463, 1864, 499, 1843, 500,
/* 1640 */ 790, 214, 181, 1595, 1842, 502, 900, 1602, 213, 216,
/* 1650 */ 354, 648, 644, 640, 636, 1727, 258, 1854, 1846, 2584,
/* 1660 */ 1841, 516, 1855, 1600, 165, 523, 227, 525, 2602, 529,
/* 1670 */ 531, 572, 790, 549, 536, 560, 568, 2398, 562, 571,
/* 1680 */ 584, 2550, 573, 789, 582, 585, 1862, 232, 233, 587,
/* 1690 */ 589, 590, 1849, 1851, 236, 592, 594, 609, 4, 610,
/* 1700 */ 2602, 620, 97, 617, 618, 256, 809, 808, 1912, 1914,
/* 1710 */ 1915, 1916, 1917, 2550, 1857, 789, 1863, 1865, 244, 623,
/* 1720 */ 93, 247, 622, 624, 626, 2583, 1866, 2414, 2622, 250,
/* 1730 */ 632, 653, 116, 2585, 793, 2587, 2588, 788, 252, 811,
/* 1740 */ 2584, 686, 94, 95, 257, 655, 2676, 687, 2265, 118,
/* 1750 */ 2675, 2672, 261, 790, 2261, 263, 168, 2583, 386, 699,
/* 1760 */ 2622, 280, 98, 156, 116, 2585, 793, 2587, 2588, 788,
/* 1770 */ 169, 811, 2263, 2584, 2259, 246, 170, 171, 2676, 2481,
/* 1780 */ 701, 2602, 776, 2672, 255, 248, 790, 1858, 2478, 711,
/* 1790 */ 2460, 253, 625, 2477, 2550, 285, 789, 715, 710, 2584,
/* 1800 */ 718, 727, 355, 712, 741, 283, 797, 8, 750, 717,
/* 1810 */ 245, 728, 790, 725, 2602, 290, 294, 2726, 292, 726,
/* 1820 */ 2725, 297, 180, 761, 2698, 758, 296, 2550, 298, 789,
/* 1830 */ 299, 434, 2780, 147, 1981, 1859, 2692, 1986, 791, 1984,
/* 1840 */ 2602, 2622, 309, 2756, 192, 116, 2585, 793, 2587, 2588,
/* 1850 */ 788, 157, 811, 2550, 61, 789, 356, 302, 795, 2676,
/* 1860 */ 800, 1, 357, 401, 2672, 801, 108, 2657, 2428, 2427,
/* 1870 */ 2426, 2583, 444, 358, 2622, 159, 705, 106, 178, 2585,
/* 1880 */ 793, 2587, 2588, 788, 208, 811, 903, 2542, 2276, 2541,
/* 1890 */ 813, 2537, 1382, 2536, 912, 2528, 908, 2583, 2527, 2584,
/* 1900 */ 2622, 349, 2519, 2518, 116, 2585, 793, 2587, 2588, 788,
/* 1910 */ 353, 811, 790, 2534, 906, 2533, 2525, 2524, 2676, 2513,
/* 1920 */ 2512, 361, 2584, 2673, 2531, 52, 902, 195, 406, 166,
/* 1930 */ 363, 365, 754, 2778, 82, 790, 898, 894, 890, 886,
/* 1940 */ 2602, 350, 2530, 2522, 2502, 2584, 2521, 2501, 373, 2510,
/* 1950 */ 2509, 2507, 2500, 2550, 2506, 789, 384, 2325, 790, 385,
/* 1960 */ 374, 2495, 477, 2602, 478, 1782, 1783, 211, 482, 2493,
/* 1970 */ 484, 486, 485, 1781, 407, 2492, 2550, 409, 789, 2490,
/* 1980 */ 491, 2489, 493, 2488, 495, 2487, 2602, 114, 497, 1770,
/* 1990 */ 323, 2464, 215, 2463, 217, 1730, 83, 2583, 431, 2550,
/* 2000 */ 2622, 789, 1729, 2441, 177, 2585, 793, 2587, 2588, 788,
/* 2010 */ 2440, 811, 2439, 509, 510, 2438, 2437, 2388, 2385, 514,
/* 2020 */ 2583, 432, 1673, 2622, 803, 2584, 517, 383, 2585, 793,
/* 2030 */ 2587, 2588, 788, 2384, 811, 2378, 520, 2375, 790, 521,
/* 2040 */ 2374, 220, 86, 2583, 2373, 2372, 2622, 2718, 2377, 2584,
/* 2050 */ 383, 2585, 793, 2587, 2588, 788, 222, 811, 2376, 2371,
/* 2060 */ 2370, 2368, 790, 2367, 2366, 224, 2602, 537, 2365, 311,
/* 2070 */ 539, 2363, 2362, 2584, 2361, 2360, 310, 2359, 2383, 2550,
/* 2080 */ 2358, 789, 2357, 2356, 2381, 2364, 787, 2355, 2354, 2353,
/* 2090 */ 2602, 2351, 2350, 2349, 2348, 281, 2347, 2346, 226, 2345,
/* 2100 */ 92, 2344, 2343, 2550, 2342, 789, 2341, 2382, 2380, 2340,
/* 2110 */ 2339, 2338, 2584, 231, 2602, 2337, 2336, 1679, 575, 577,
/* 2120 */ 2335, 2334, 1529, 2583, 2168, 790, 2622, 2550, 234, 789,
/* 2130 */ 376, 2585, 793, 2587, 2588, 788, 397, 811, 2167, 1533,
/* 2140 */ 398, 2166, 235, 2165, 2163, 237, 2160, 2583, 2159, 2584,
/* 2150 */ 2622, 1525, 2152, 2602, 178, 2585, 793, 2587, 2588, 788,
/* 2160 */ 595, 811, 790, 599, 238, 596, 2550, 597, 789, 601,
/* 2170 */ 600, 2583, 603, 605, 2622, 2139, 749, 607, 382, 2585,
/* 2180 */ 793, 2587, 2588, 788, 604, 811, 2113, 2642, 441, 187,
/* 2190 */ 2602, 79, 240, 1406, 2570, 2584, 2112, 242, 2462, 80,
/* 2200 */ 197, 2458, 615, 2550, 2448, 789, 2436, 249, 790, 2779,
/* 2210 */ 2583, 251, 2435, 2622, 2412, 254, 2254, 383, 2585, 793,
/* 2220 */ 2587, 2588, 788, 2162, 811, 443, 2158, 633, 634, 2584,
/* 2230 */ 635, 2156, 1455, 638, 637, 639, 2602, 2154, 2151, 641,
/* 2240 */ 2134, 642, 790, 646, 645, 643, 2132, 2583, 2133, 2550,
/* 2250 */ 2622, 789, 647, 2131, 383, 2585, 793, 2587, 2588, 788,
/* 2260 */ 2109, 811, 2256, 72, 1607, 2584, 1606, 2255, 2149, 1515,
/* 2270 */ 2602, 1514, 1513, 1510, 260, 2147, 1508, 2138, 790, 1506,
/* 2280 */ 1505, 1497, 1504, 2550, 873, 789, 1503, 1502, 875, 1499,
/* 2290 */ 2136, 1498, 422, 698, 1496, 423, 2622, 2108, 424, 2584,
/* 2300 */ 378, 2585, 793, 2587, 2588, 788, 2602, 811, 684, 425,
/* 2310 */ 681, 2107, 790, 2106, 2105, 688, 690, 2104, 692, 2550,
/* 2320 */ 119, 789, 1764, 1768, 28, 1766, 1763, 2583, 2461, 56,
/* 2330 */ 2622, 67, 703, 282, 368, 2585, 793, 2587, 2588, 788,
/* 2340 */ 2602, 811, 1754, 2457, 1736, 1738, 2447, 1740, 172, 713,
/* 2350 */ 2434, 57, 714, 2550, 2433, 789, 286, 20, 2762, 17,
/* 2360 */ 1715, 719, 1714, 2583, 65, 6, 2622, 729, 721, 430,
/* 2370 */ 367, 2585, 793, 2587, 2588, 788, 30, 811, 2039, 289,
/* 2380 */ 21, 7, 22, 2013, 191, 731, 2584, 202, 291, 2571,
/* 2390 */ 735, 733, 32, 24, 23, 2054, 2020, 2583, 2432, 790,
/* 2400 */ 2622, 18, 2053, 435, 369, 2585, 793, 2587, 2588, 788,
/* 2410 */ 2058, 811, 2584, 2007, 179, 2057, 190, 31, 81, 436,
/* 2420 */ 2059, 305, 2060, 1978, 1977, 790, 59, 2602, 182, 2411,
/* 2430 */ 103, 102, 2584, 25, 13, 1847, 1930, 1929, 1940, 183,
/* 2440 */ 2550, 11, 789, 1905, 193, 790, 58, 1904, 822, 825,
/* 2450 */ 828, 2410, 831, 2602, 38, 321, 1903, 16, 26, 1881,
/* 2460 */ 104, 798, 1873, 324, 792, 27, 2550, 313, 789, 348,
/* 2470 */ 2015, 814, 460, 2602, 1597, 194, 319, 69, 818, 109,
/* 2480 */ 105, 2627, 2626, 810, 2583, 1907, 2550, 2622, 789, 68,
/* 2490 */ 816, 375, 2585, 793, 2587, 2588, 788, 812, 811, 1588,
/* 2500 */ 1585, 1584, 819, 821, 824, 1581, 1575, 837, 827, 830,
/* 2510 */ 2583, 1573, 1453, 2622, 1601, 2584, 1579, 379, 2585, 793,
/* 2520 */ 2587, 2588, 788, 847, 811, 110, 1564, 1493, 790, 111,
/* 2530 */ 2583, 1492, 2584, 2622, 78, 1578, 1491, 370, 2585, 793,
/* 2540 */ 2587, 2588, 788, 1577, 811, 790, 1576, 1488, 2584, 1485,
/* 2550 */ 1484, 1483, 1482, 1480, 1478, 1477, 2602, 1476, 1523, 1522,
/* 2560 */ 861, 790, 863, 209, 1474, 1473, 1472, 1471, 1470, 2550,
/* 2570 */ 1469, 789, 1468, 2602, 1517, 1519, 1465, 1464, 1461, 1460,
/* 2580 */ 1459, 1458, 2157, 883, 884, 885, 2550, 2155, 789, 2602,
/* 2590 */ 887, 889, 2153, 891, 893, 2150, 895, 897, 2130, 888,
/* 2600 */ 892, 899, 2550, 896, 789, 2128, 901, 2103, 1395, 905,
/* 2610 */ 1383, 352, 907, 2583, 911, 1833, 2622, 2073, 362, 2073,
/* 2620 */ 380, 2585, 793, 2587, 2588, 788, 2073, 811, 2073, 910,
/* 2630 */ 2583, 2073, 2073, 2622, 2073, 2073, 2073, 371, 2585, 793,
/* 2640 */ 2587, 2588, 788, 2073, 811, 2073, 2583, 2073, 2073, 2622,
/* 2650 */ 2073, 2584, 2073, 381, 2585, 793, 2587, 2588, 788, 2073,
/* 2660 */ 811, 2073, 2073, 2073, 790, 2073, 2073, 2584, 2073, 2073,
/* 2670 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073,
/* 2680 */ 790, 2073, 2073, 2073, 2073, 2584, 2073, 2073, 2073, 2073,
/* 2690 */ 2073, 2073, 2602, 2073, 2073, 2073, 2073, 2073, 790, 2073,
/* 2700 */ 2073, 2073, 2073, 2073, 2073, 2550, 2073, 789, 2602, 2073,
/* 2710 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073,
/* 2720 */ 2073, 2550, 2073, 789, 2073, 2073, 2602, 2073, 2073, 2073,
/* 2730 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2550,
/* 2740 */ 2073, 789, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2583,
/* 2750 */ 2073, 2073, 2622, 2073, 2073, 2073, 372, 2585, 793, 2587,
/* 2760 */ 2588, 788, 2073, 811, 2073, 2583, 2073, 2073, 2622, 2073,
/* 2770 */ 2073, 2584, 387, 2585, 793, 2587, 2588, 788, 2073, 811,
/* 2780 */ 2073, 2073, 2073, 2583, 790, 2073, 2622, 2073, 2073, 2073,
/* 2790 */ 388, 2585, 793, 2587, 2588, 788, 2073, 811, 2584, 2073,
/* 2800 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073,
/* 2810 */ 2073, 790, 2602, 2073, 2073, 2073, 2073, 2073, 2073, 2584,
/* 2820 */ 2073, 2073, 2073, 2073, 2073, 2550, 2073, 789, 2073, 2073,
/* 2830 */ 2073, 2073, 790, 2073, 2073, 2073, 2073, 2073, 2073, 2602,
/* 2840 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073,
/* 2850 */ 2073, 2073, 2550, 2073, 789, 2073, 2073, 2584, 2073, 2073,
/* 2860 */ 2602, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2583,
/* 2870 */ 790, 2073, 2622, 2550, 2073, 789, 2596, 2585, 793, 2587,
/* 2880 */ 2588, 788, 2073, 811, 2073, 2073, 2073, 2073, 2073, 2073,
/* 2890 */ 2073, 2073, 2073, 2073, 2073, 2073, 2583, 2073, 2602, 2622,
/* 2900 */ 2073, 2073, 2073, 2595, 2585, 793, 2587, 2588, 788, 2073,
/* 2910 */ 811, 2550, 2073, 789, 2073, 2073, 2073, 2583, 2073, 2073,
/* 2920 */ 2622, 2073, 2073, 2073, 2594, 2585, 793, 2587, 2588, 788,
/* 2930 */ 2073, 811, 2073, 2073, 2073, 2584, 2073, 2073, 2073, 2073,
/* 2940 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 790, 2073,
/* 2950 */ 2073, 2073, 2073, 2073, 2073, 2583, 2073, 2073, 2622, 2073,
/* 2960 */ 2073, 2073, 403, 2585, 793, 2587, 2588, 788, 2584, 811,
/* 2970 */ 2073, 2073, 2073, 2073, 2073, 2073, 2602, 2073, 2073, 2073,
/* 2980 */ 2073, 790, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2550,
/* 2990 */ 2073, 789, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073,
/* 3000 */ 2073, 2073, 2073, 2073, 2073, 2584, 2073, 2073, 2073, 2602,
/* 3010 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 790, 2073,
/* 3020 */ 2073, 2073, 2550, 2073, 789, 2073, 2073, 2073, 2073, 2073,
/* 3030 */ 2073, 2073, 2073, 2583, 2073, 2073, 2622, 2073, 2073, 2073,
/* 3040 */ 404, 2585, 793, 2587, 2588, 788, 2602, 811, 2073, 2073,
/* 3050 */ 2073, 2584, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2550,
/* 3060 */ 2073, 789, 2073, 2073, 790, 2073, 2583, 2073, 2073, 2622,
/* 3070 */ 2073, 2073, 2073, 400, 2585, 793, 2587, 2588, 788, 2073,
/* 3080 */ 811, 2073, 2073, 2073, 2073, 2073, 2073, 2584, 2073, 2073,
/* 3090 */ 2073, 2073, 2602, 2073, 2073, 2073, 2073, 2073, 2073, 2073,
/* 3100 */ 790, 2073, 2073, 2583, 2073, 2550, 2622, 789, 2073, 2073,
/* 3110 */ 405, 2585, 793, 2587, 2588, 788, 2073, 811, 2073, 2073,
/* 3120 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2602, 2073,
/* 3130 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073,
/* 3140 */ 2073, 2550, 2073, 789, 2073, 2073, 2073, 2073, 2073, 791,
/* 3150 */ 2073, 2073, 2622, 2073, 2073, 2073, 378, 2585, 793, 2587,
/* 3160 */ 2588, 788, 2073, 811, 2073, 2073, 2073, 2073, 2073, 2073,
/* 3170 */ 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073, 2073,
/* 3180 */ 2073, 2073, 2073, 2073, 2073, 2583, 2073, 2073, 2622, 2073,
/* 3190 */ 2073, 2073, 377, 2585, 793, 2587, 2588, 788, 2073, 811,
};
static const YYCODETYPE yy_lookahead[] = {
2024-04-15 08:12:15 +00:00
/* 0 */ 408, 407, 377, 411, 496, 365, 496, 499, 407, 499,
/* 10 */ 3, 365, 12, 13, 14, 0, 415, 373, 377, 378,
/* 20 */ 20, 377, 22, 379, 378, 517, 518, 364, 518, 366,
/* 30 */ 522, 523, 522, 523, 408, 35, 21, 37, 397, 24,
/* 40 */ 25, 26, 27, 28, 29, 30, 31, 32, 423, 424,
/* 50 */ 37, 426, 406, 408, 406, 430, 8, 9, 466, 419,
/* 60 */ 12, 13, 14, 15, 16, 419, 66, 421, 20, 477,
/* 70 */ 8, 9, 20, 73, 12, 13, 14, 15, 16, 431,
/* 80 */ 80, 0, 14, 12, 13, 14, 15, 16, 20, 20,
/* 90 */ 8, 9, 466, 80, 12, 13, 14, 15, 16, 20,
/* 100 */ 8, 9, 384, 477, 12, 13, 14, 15, 16, 463,
/* 110 */ 110, 466, 466, 113, 12, 13, 470, 471, 472, 473,
/* 120 */ 474, 475, 477, 477, 52, 33, 480, 409, 482, 483,
/* 130 */ 484, 1, 2, 61, 488, 489, 64, 65, 21, 37,
/* 140 */ 113, 24, 25, 26, 27, 28, 29, 30, 31, 32,
/* 150 */ 113, 151, 152, 66, 20, 73, 75, 76, 77, 78,
/* 160 */ 79, 20, 81, 82, 83, 84, 85, 86, 87, 88,
/* 170 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
/* 180 */ 99, 100, 101, 102, 103, 104, 105, 106, 8, 9,
/* 190 */ 190, 191, 12, 13, 14, 15, 16, 197, 198, 112,
/* 200 */ 72, 110, 115, 121, 485, 486, 114, 373, 377, 378,
/* 210 */ 113, 377, 212, 379, 214, 124, 37, 126, 127, 128,
/* 220 */ 129, 130, 131, 132, 133, 134, 135, 113, 137, 138,
/* 230 */ 139, 140, 141, 142, 143, 372, 122, 20, 375, 376,
/* 240 */ 192, 20, 190, 191, 114, 144, 246, 247, 248, 148,
2024-03-26 11:56:15 +00:00
/* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
2024-04-15 08:12:15 +00:00
/* 260 */ 260, 261, 262, 263, 264, 265, 266, 267, 12, 13,
/* 270 */ 421, 189, 185, 18, 0, 20, 20, 372, 22, 365,
/* 280 */ 375, 376, 27, 417, 20, 30, 420, 421, 439, 440,
/* 290 */ 35, 35, 378, 37, 114, 20, 248, 22, 24, 25,
/* 300 */ 26, 27, 28, 29, 30, 31, 32, 52, 211, 54,
/* 310 */ 213, 284, 37, 306, 59, 60, 214, 248, 362, 20,
/* 320 */ 406, 284, 66, 492, 493, 494, 71, 496, 497, 73,
/* 330 */ 113, 56, 72, 419, 113, 421, 80, 377, 8, 9,
/* 340 */ 243, 123, 12, 13, 14, 15, 16, 377, 378, 4,
/* 350 */ 377, 378, 405, 271, 272, 273, 274, 275, 276, 277,
/* 360 */ 278, 279, 280, 281, 71, 418, 110, 112, 377, 113,
/* 370 */ 144, 145, 146, 147, 148, 149, 150, 463, 123, 496,
/* 380 */ 466, 284, 499, 0, 470, 471, 472, 473, 474, 475,
/* 390 */ 268, 477, 0, 214, 434, 435, 482, 0, 484, 443,
/* 400 */ 427, 518, 488, 489, 448, 522, 523, 151, 152, 393,
/* 410 */ 155, 156, 396, 158, 159, 160, 161, 162, 163, 164,
/* 420 */ 165, 166, 167, 244, 245, 511, 171, 172, 173, 174,
/* 430 */ 175, 176, 177, 178, 18, 180, 181, 182, 246, 23,
/* 440 */ 123, 186, 187, 188, 453, 454, 190, 191, 193, 20,
/* 450 */ 151, 152, 496, 197, 198, 499, 40, 41, 113, 33,
/* 460 */ 44, 491, 492, 493, 494, 50, 496, 497, 212, 72,
/* 470 */ 214, 55, 34, 517, 518, 39, 40, 20, 522, 523,
/* 480 */ 421, 377, 378, 67, 68, 69, 70, 71, 296, 297,
/* 490 */ 298, 299, 300, 301, 302, 436, 197, 198, 439, 440,
/* 500 */ 207, 284, 246, 247, 248, 284, 250, 251, 252, 253,
/* 510 */ 254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
/* 520 */ 264, 265, 266, 267, 268, 12, 13, 234, 235, 113,
/* 530 */ 22, 427, 406, 20, 204, 22, 144, 145, 146, 147,
/* 540 */ 148, 149, 150, 110, 80, 37, 377, 378, 35, 37,
/* 550 */ 37, 168, 169, 117, 118, 429, 120, 431, 23, 126,
/* 560 */ 127, 128, 129, 130, 131, 132, 133, 134, 135, 153,
/* 570 */ 137, 138, 139, 140, 141, 142, 143, 387, 365, 66,
/* 580 */ 144, 110, 47, 48, 148, 395, 73, 443, 80, 406,
/* 590 */ 189, 378, 448, 80, 407, 443, 427, 126, 127, 128,
/* 600 */ 129, 130, 131, 132, 133, 134, 135, 192, 137, 138,
/* 610 */ 139, 140, 141, 142, 143, 200, 377, 378, 110, 406,
/* 620 */ 204, 205, 206, 110, 20, 209, 113, 0, 268, 284,
/* 630 */ 270, 146, 419, 406, 421, 150, 397, 365, 222, 223,
/* 640 */ 496, 311, 407, 499, 461, 462, 394, 190, 496, 233,
/* 650 */ 378, 499, 236, 377, 378, 239, 240, 241, 242, 243,
/* 660 */ 407, 517, 518, 377, 151, 152, 522, 523, 378, 517,
/* 670 */ 518, 419, 271, 397, 522, 523, 463, 248, 406, 466,
/* 680 */ 404, 469, 281, 470, 471, 472, 473, 474, 475, 462,
/* 690 */ 477, 419, 481, 421, 483, 482, 406, 484, 12, 13,
/* 700 */ 284, 488, 489, 190, 191, 248, 221, 495, 22, 224,
/* 710 */ 197, 198, 227, 21, 229, 145, 503, 113, 466, 467,
/* 720 */ 212, 35, 214, 37, 511, 212, 214, 214, 36, 477,
/* 730 */ 38, 39, 40, 20, 308, 463, 377, 378, 466, 453,
/* 740 */ 454, 33, 470, 471, 472, 473, 474, 475, 476, 477,
/* 750 */ 478, 479, 66, 45, 246, 247, 244, 245, 13, 246,
/* 760 */ 247, 248, 472, 250, 251, 252, 253, 254, 255, 256,
/* 770 */ 257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
/* 780 */ 267, 12, 13, 14, 22, 365, 365, 407, 4, 20,
/* 790 */ 4, 22, 14, 15, 16, 225, 226, 170, 378, 37,
/* 800 */ 380, 2, 175, 19, 35, 365, 37, 8, 9, 23,
/* 810 */ 183, 12, 13, 14, 15, 16, 365, 2, 378, 35,
/* 820 */ 380, 386, 469, 8, 9, 80, 406, 12, 13, 14,
/* 830 */ 15, 16, 46, 47, 48, 66, 52, 469, 403, 419,
/* 840 */ 419, 421, 80, 59, 60, 395, 406, 412, 495, 80,
/* 850 */ 66, 492, 493, 494, 3, 496, 497, 377, 378, 419,
/* 860 */ 402, 421, 0, 495, 151, 152, 420, 421, 8, 9,
/* 870 */ 419, 20, 12, 13, 14, 15, 16, 397, 4, 110,
/* 880 */ 382, 383, 113, 463, 404, 365, 466, 377, 378, 407,
/* 890 */ 470, 471, 472, 473, 474, 475, 112, 477, 212, 115,
/* 900 */ 214, 384, 482, 463, 484, 443, 466, 397, 488, 489,
/* 910 */ 470, 471, 472, 473, 474, 475, 458, 477, 401, 398,
/* 920 */ 151, 152, 482, 449, 484, 22, 409, 406, 488, 489,
/* 930 */ 244, 245, 246, 377, 378, 414, 432, 8, 9, 419,
/* 940 */ 37, 12, 13, 14, 15, 16, 260, 261, 262, 263,
/* 950 */ 264, 265, 266, 397, 377, 378, 14, 196, 496, 190,
/* 960 */ 191, 499, 20, 366, 20, 114, 197, 198, 526, 75,
/* 970 */ 76, 77, 480, 89, 114, 483, 82, 83, 84, 517,
/* 980 */ 518, 212, 88, 214, 522, 523, 398, 93, 94, 95,
/* 990 */ 96, 382, 383, 99, 406, 57, 58, 103, 104, 105,
/* 1000 */ 106, 20, 414, 20, 365, 365, 144, 145, 146, 147,
/* 1010 */ 148, 149, 150, 110, 394, 246, 247, 248, 378, 250,
/* 1020 */ 251, 252, 253, 254, 255, 256, 257, 258, 259, 260,
/* 1030 */ 261, 262, 263, 264, 265, 266, 267, 12, 13, 419,
/* 1040 */ 398, 157, 365, 192, 515, 20, 406, 22, 406, 461,
/* 1050 */ 462, 290, 291, 292, 293, 378, 414, 380, 419, 419,
/* 1060 */ 35, 421, 37, 406, 377, 378, 14, 183, 184, 492,
/* 1070 */ 493, 494, 20, 496, 497, 416, 499, 365, 419, 422,
/* 1080 */ 365, 377, 378, 406, 397, 20, 466, 467, 468, 508,
/* 1090 */ 378, 66, 380, 386, 517, 518, 419, 477, 421, 522,
/* 1100 */ 523, 397, 33, 463, 365, 80, 466, 377, 378, 406,
/* 1110 */ 470, 471, 472, 473, 474, 475, 413, 477, 406, 412,
/* 1120 */ 365, 192, 482, 406, 484, 422, 22, 397, 488, 489,
/* 1130 */ 413, 419, 190, 421, 419, 110, 192, 365, 113, 422,
/* 1140 */ 463, 37, 42, 466, 377, 378, 406, 470, 471, 472,
/* 1150 */ 473, 474, 475, 413, 477, 33, 406, 365, 419, 482,
/* 1160 */ 286, 484, 422, 413, 397, 488, 489, 45, 377, 378,
/* 1170 */ 378, 443, 422, 192, 419, 463, 151, 152, 466, 381,
/* 1180 */ 391, 392, 470, 471, 472, 473, 474, 475, 397, 477,
/* 1190 */ 248, 419, 248, 365, 482, 481, 484, 483, 406, 496,
/* 1200 */ 488, 489, 499, 391, 392, 145, 146, 185, 377, 378,
/* 1210 */ 150, 419, 14, 421, 110, 190, 191, 20, 20, 22,
/* 1220 */ 517, 518, 197, 198, 496, 522, 523, 499, 397, 377,
/* 1230 */ 378, 248, 377, 378, 377, 378, 406, 212, 216, 214,
/* 1240 */ 377, 378, 190, 365, 414, 517, 518, 419, 0, 397,
/* 1250 */ 522, 523, 397, 56, 397, 463, 416, 192, 466, 419,
/* 1260 */ 397, 365, 470, 471, 472, 473, 474, 475, 228, 477,
/* 1270 */ 230, 246, 247, 248, 378, 250, 251, 252, 253, 254,
/* 1280 */ 255, 256, 257, 258, 259, 260, 261, 262, 263, 264,
/* 1290 */ 265, 266, 267, 12, 13, 365, 365, 419, 398, 0,
/* 1300 */ 248, 20, 406, 22, 512, 513, 406, 33, 378, 123,
/* 1310 */ 380, 377, 378, 248, 414, 419, 35, 421, 37, 406,
/* 1320 */ 377, 378, 365, 377, 378, 377, 378, 365, 365, 368,
/* 1330 */ 369, 397, 33, 365, 416, 422, 406, 419, 282, 283,
/* 1340 */ 397, 406, 443, 397, 0, 397, 378, 66, 380, 419,
/* 1350 */ 419, 421, 365, 399, 365, 365, 402, 422, 406, 463,
/* 1360 */ 394, 80, 466, 0, 394, 179, 470, 471, 472, 473,
/* 1370 */ 474, 475, 365, 477, 406, 13, 419, 432, 482, 310,
/* 1380 */ 484, 419, 419, 283, 488, 489, 42, 419, 114, 421,
/* 1390 */ 376, 110, 37, 463, 113, 496, 466, 66, 499, 37,
/* 1400 */ 470, 471, 472, 473, 474, 475, 419, 477, 419, 419,
/* 1410 */ 443, 73, 482, 13, 484, 52, 517, 518, 488, 489,
/* 1420 */ 116, 522, 523, 119, 116, 116, 419, 119, 119, 0,
/* 1430 */ 33, 463, 151, 152, 466, 80, 33, 37, 470, 471,
/* 1440 */ 472, 473, 474, 475, 116, 477, 115, 119, 0, 33,
/* 1450 */ 482, 22, 484, 151, 152, 49, 488, 489, 12, 13,
/* 1460 */ 0, 37, 365, 496, 1, 2, 499, 37, 22, 0,
/* 1470 */ 22, 190, 191, 33, 33, 378, 33, 33, 197, 198,
/* 1480 */ 33, 35, 22, 37, 517, 518, 238, 12, 13, 522,
/* 1490 */ 523, 22, 33, 212, 33, 214, 432, 33, 514, 33,
/* 1500 */ 12, 13, 514, 406, 12, 13, 33, 12, 13, 514,
/* 1510 */ 33, 114, 66, 0, 12, 13, 419, 114, 421, 113,
/* 1520 */ 12, 13, 33, 12, 13, 442, 80, 246, 247, 248,
/* 1530 */ 114, 250, 251, 252, 253, 254, 255, 256, 257, 258,
/* 1540 */ 259, 260, 261, 262, 263, 264, 265, 266, 267, 12,
/* 1550 */ 13, 12, 13, 33, 114, 114, 110, 114, 114, 37,
/* 1560 */ 463, 114, 33, 466, 12, 13, 33, 470, 471, 472,
/* 1570 */ 473, 474, 475, 114, 477, 114, 12, 13, 114, 482,
/* 1580 */ 114, 484, 33, 33, 246, 488, 489, 114, 75, 76,
/* 1590 */ 77, 114, 37, 0, 514, 82, 83, 84, 13, 13,
/* 1600 */ 381, 88, 80, 114, 432, 378, 93, 94, 95, 96,
/* 1610 */ 418, 450, 99, 432, 432, 498, 103, 104, 105, 106,
/* 1620 */ 519, 490, 37, 37, 501, 35, 396, 365, 287, 444,
/* 1630 */ 52, 465, 464, 42, 114, 80, 20, 227, 214, 455,
/* 1640 */ 378, 386, 52, 114, 214, 455, 53, 114, 460, 386,
/* 1650 */ 446, 61, 62, 63, 64, 210, 66, 20, 212, 365,
/* 1660 */ 214, 377, 20, 114, 114, 378, 45, 428, 406, 378,
/* 1670 */ 428, 189, 378, 377, 425, 378, 425, 377, 428, 425,
/* 1680 */ 111, 419, 425, 421, 109, 390, 20, 389, 377, 377,
/* 1690 */ 108, 388, 246, 247, 377, 377, 377, 370, 50, 374,
/* 1700 */ 406, 455, 112, 370, 374, 115, 260, 261, 262, 263,
/* 1710 */ 264, 265, 266, 419, 20, 421, 20, 20, 386, 379,
/* 1720 */ 386, 386, 421, 445, 379, 463, 20, 435, 466, 386,
/* 1730 */ 377, 370, 470, 471, 472, 473, 474, 475, 386, 477,
/* 1740 */ 365, 368, 386, 386, 386, 406, 484, 368, 406, 377,
/* 1750 */ 488, 489, 406, 378, 406, 406, 406, 463, 370, 231,
/* 1760 */ 466, 384, 113, 457, 470, 471, 472, 473, 474, 475,
/* 1770 */ 406, 477, 406, 365, 406, 185, 406, 406, 484, 419,
/* 1780 */ 459, 406, 488, 489, 194, 195, 378, 20, 419, 218,
/* 1790 */ 454, 201, 202, 419, 419, 384, 421, 421, 217, 365,
/* 1800 */ 377, 419, 455, 452, 295, 451, 294, 303, 203, 444,
/* 1810 */ 220, 305, 378, 288, 406, 437, 509, 507, 437, 304,
/* 1820 */ 507, 505, 507, 309, 510, 307, 506, 419, 504, 421,
/* 1830 */ 444, 312, 527, 378, 283, 20, 469, 123, 463, 285,
/* 1840 */ 406, 466, 384, 521, 379, 470, 471, 472, 473, 474,
/* 1850 */ 475, 384, 477, 419, 113, 421, 437, 520, 419, 484,
/* 1860 */ 195, 502, 437, 488, 489, 433, 113, 487, 419, 419,
/* 1870 */ 419, 463, 419, 402, 466, 384, 1, 384, 470, 471,
/* 1880 */ 472, 473, 474, 475, 500, 477, 38, 419, 378, 419,
/* 1890 */ 410, 419, 22, 419, 19, 419, 370, 463, 419, 365,
/* 1900 */ 466, 384, 419, 419, 470, 471, 472, 473, 474, 475,
/* 1910 */ 35, 477, 378, 419, 367, 419, 419, 419, 484, 419,
/* 1920 */ 419, 377, 365, 489, 419, 447, 51, 52, 438, 371,
/* 1930 */ 385, 363, 524, 525, 45, 378, 61, 62, 63, 64,
/* 1940 */ 406, 66, 419, 419, 0, 365, 419, 0, 400, 419,
/* 1950 */ 419, 419, 0, 419, 419, 421, 400, 419, 378, 456,
/* 1960 */ 400, 0, 37, 406, 237, 37, 37, 37, 237, 0,
/* 1970 */ 37, 237, 37, 37, 438, 0, 419, 237, 421, 0,
/* 1980 */ 37, 0, 37, 0, 22, 0, 406, 112, 37, 232,
/* 1990 */ 115, 0, 220, 0, 220, 214, 221, 463, 441, 419,
/* 2000 */ 466, 421, 212, 0, 470, 471, 472, 473, 474, 475,
/* 2010 */ 0, 477, 0, 208, 207, 0, 0, 156, 0, 49,
/* 2020 */ 463, 441, 49, 466, 149, 365, 37, 470, 471, 472,
/* 2030 */ 473, 474, 475, 0, 477, 0, 37, 0, 378, 52,
/* 2040 */ 0, 49, 45, 463, 0, 0, 466, 513, 0, 365,
/* 2050 */ 470, 471, 472, 473, 474, 475, 49, 477, 0, 0,
/* 2060 */ 0, 0, 378, 0, 0, 175, 406, 37, 0, 194,
/* 2070 */ 175, 0, 0, 365, 0, 0, 201, 0, 0, 419,
/* 2080 */ 0, 421, 0, 0, 0, 0, 378, 0, 0, 0,
/* 2090 */ 406, 0, 0, 0, 0, 220, 0, 0, 49, 0,
/* 2100 */ 45, 0, 0, 419, 0, 421, 0, 0, 0, 0,
/* 2110 */ 0, 0, 365, 156, 406, 0, 0, 22, 155, 154,
/* 2120 */ 0, 0, 22, 463, 0, 378, 466, 419, 66, 421,
/* 2130 */ 470, 471, 472, 473, 474, 475, 50, 477, 0, 22,
/* 2140 */ 50, 0, 66, 0, 0, 66, 0, 463, 0, 365,
/* 2150 */ 466, 37, 0, 406, 470, 471, 472, 473, 474, 475,
/* 2160 */ 37, 477, 378, 37, 66, 52, 419, 42, 421, 42,
/* 2170 */ 52, 463, 37, 42, 466, 0, 516, 37, 470, 471,
/* 2180 */ 472, 473, 474, 475, 52, 477, 0, 479, 441, 33,
/* 2190 */ 406, 42, 45, 14, 49, 365, 0, 43, 0, 42,
/* 2200 */ 49, 0, 49, 419, 0, 421, 0, 42, 378, 525,
/* 2210 */ 463, 203, 0, 466, 0, 49, 0, 470, 471, 472,
/* 2220 */ 473, 474, 475, 0, 477, 441, 0, 37, 52, 365,
/* 2230 */ 42, 0, 74, 52, 37, 42, 406, 0, 0, 37,
/* 2240 */ 0, 52, 378, 52, 37, 42, 0, 463, 0, 419,
/* 2250 */ 466, 421, 42, 0, 470, 471, 472, 473, 474, 475,
/* 2260 */ 0, 477, 0, 121, 37, 365, 22, 0, 0, 22,
/* 2270 */ 406, 37, 37, 37, 119, 0, 37, 0, 378, 37,
/* 2280 */ 37, 22, 37, 419, 33, 421, 37, 37, 33, 37,
/* 2290 */ 0, 37, 22, 463, 37, 22, 466, 0, 22, 365,
/* 2300 */ 470, 471, 472, 473, 474, 475, 406, 477, 37, 22,
/* 2310 */ 54, 0, 378, 0, 0, 37, 37, 0, 22, 419,
/* 2320 */ 20, 421, 37, 114, 113, 37, 37, 463, 0, 192,
/* 2330 */ 466, 113, 124, 49, 470, 471, 472, 473, 474, 475,
/* 2340 */ 406, 477, 125, 0, 37, 22, 0, 219, 215, 22,
/* 2350 */ 0, 192, 192, 419, 0, 421, 195, 33, 3, 289,
/* 2360 */ 192, 199, 192, 463, 3, 50, 466, 37, 199, 37,
/* 2370 */ 470, 471, 472, 473, 474, 475, 113, 477, 114, 113,
/* 2380 */ 33, 50, 33, 114, 33, 113, 365, 49, 114, 49,
/* 2390 */ 109, 111, 33, 33, 289, 37, 114, 463, 0, 378,
/* 2400 */ 466, 289, 37, 37, 470, 471, 472, 473, 474, 475,
/* 2410 */ 37, 477, 365, 114, 113, 37, 113, 113, 113, 37,
/* 2420 */ 114, 49, 114, 114, 114, 378, 33, 406, 49, 0,
/* 2430 */ 42, 113, 365, 33, 2, 22, 111, 111, 246, 49,
/* 2440 */ 419, 269, 421, 114, 49, 378, 282, 114, 113, 113,
/* 2450 */ 113, 0, 113, 406, 113, 194, 114, 113, 113, 22,
/* 2460 */ 42, 196, 114, 49, 249, 113, 419, 114, 421, 33,
/* 2470 */ 114, 37, 37, 406, 22, 113, 113, 113, 37, 122,
/* 2480 */ 113, 113, 113, 113, 463, 114, 419, 466, 421, 113,
/* 2490 */ 113, 470, 471, 472, 473, 474, 475, 123, 477, 114,
/* 2500 */ 114, 114, 113, 37, 37, 114, 114, 124, 37, 37,
/* 2510 */ 463, 114, 74, 466, 37, 365, 136, 470, 471, 472,
/* 2520 */ 473, 474, 475, 73, 477, 113, 125, 22, 378, 113,
/* 2530 */ 463, 37, 365, 466, 113, 136, 37, 470, 471, 472,
/* 2540 */ 473, 474, 475, 136, 477, 378, 136, 37, 365, 37,
/* 2550 */ 37, 37, 37, 37, 37, 37, 406, 37, 80, 80,
/* 2560 */ 107, 378, 107, 33, 37, 37, 37, 22, 37, 419,
/* 2570 */ 37, 421, 37, 406, 37, 80, 37, 37, 37, 37,
/* 2580 */ 22, 37, 0, 37, 52, 42, 419, 0, 421, 406,
/* 2590 */ 37, 42, 0, 37, 42, 0, 37, 42, 0, 52,
/* 2600 */ 52, 37, 419, 52, 421, 0, 22, 0, 37, 33,
/* 2610 */ 22, 22, 21, 463, 20, 22, 466, 528, 22, 528,
/* 2620 */ 470, 471, 472, 473, 474, 475, 528, 477, 528, 21,
/* 2630 */ 463, 528, 528, 466, 528, 528, 528, 470, 471, 472,
/* 2640 */ 473, 474, 475, 528, 477, 528, 463, 528, 528, 466,
/* 2650 */ 528, 365, 528, 470, 471, 472, 473, 474, 475, 528,
/* 2660 */ 477, 528, 528, 528, 378, 528, 528, 365, 528, 528,
/* 2670 */ 528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
/* 2680 */ 378, 528, 528, 528, 528, 365, 528, 528, 528, 528,
/* 2690 */ 528, 528, 406, 528, 528, 528, 528, 528, 378, 528,
/* 2700 */ 528, 528, 528, 528, 528, 419, 528, 421, 406, 528,
/* 2710 */ 528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
/* 2720 */ 528, 419, 528, 421, 528, 528, 406, 528, 528, 528,
/* 2730 */ 528, 528, 528, 528, 528, 528, 528, 528, 528, 419,
/* 2740 */ 528, 421, 528, 528, 528, 528, 528, 528, 528, 463,
/* 2750 */ 528, 528, 466, 528, 528, 528, 470, 471, 472, 473,
/* 2760 */ 474, 475, 528, 477, 528, 463, 528, 528, 466, 528,
/* 2770 */ 528, 365, 470, 471, 472, 473, 474, 475, 528, 477,
/* 2780 */ 528, 528, 528, 463, 378, 528, 466, 528, 528, 528,
/* 2790 */ 470, 471, 472, 473, 474, 475, 528, 477, 365, 528,
/* 2800 */ 528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
/* 2810 */ 528, 378, 406, 528, 528, 528, 528, 528, 528, 365,
/* 2820 */ 528, 528, 528, 528, 528, 419, 528, 421, 528, 528,
/* 2830 */ 528, 528, 378, 528, 528, 528, 528, 528, 528, 406,
/* 2840 */ 528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
/* 2850 */ 528, 528, 419, 528, 421, 528, 528, 365, 528, 528,
/* 2860 */ 406, 528, 528, 528, 528, 528, 528, 528, 528, 463,
/* 2870 */ 378, 528, 466, 419, 528, 421, 470, 471, 472, 473,
/* 2880 */ 474, 475, 528, 477, 528, 528, 528, 528, 528, 528,
/* 2890 */ 528, 528, 528, 528, 528, 528, 463, 528, 406, 466,
/* 2900 */ 528, 528, 528, 470, 471, 472, 473, 474, 475, 528,
/* 2910 */ 477, 419, 528, 421, 528, 528, 528, 463, 528, 528,
/* 2920 */ 466, 528, 528, 528, 470, 471, 472, 473, 474, 475,
/* 2930 */ 528, 477, 528, 528, 528, 365, 528, 528, 528, 528,
/* 2940 */ 528, 528, 528, 528, 528, 528, 528, 528, 378, 528,
/* 2950 */ 528, 528, 528, 528, 528, 463, 528, 528, 466, 528,
/* 2960 */ 528, 528, 470, 471, 472, 473, 474, 475, 365, 477,
/* 2970 */ 528, 528, 528, 528, 528, 528, 406, 528, 528, 528,
/* 2980 */ 528, 378, 528, 528, 528, 528, 528, 528, 528, 419,
/* 2990 */ 528, 421, 528, 528, 528, 528, 528, 528, 528, 528,
/* 3000 */ 528, 528, 528, 528, 528, 365, 528, 528, 528, 406,
/* 3010 */ 528, 528, 528, 528, 528, 528, 528, 528, 378, 528,
/* 3020 */ 528, 528, 419, 528, 421, 528, 528, 528, 528, 528,
/* 3030 */ 528, 528, 528, 463, 528, 528, 466, 528, 528, 528,
/* 3040 */ 470, 471, 472, 473, 474, 475, 406, 477, 528, 528,
/* 3050 */ 528, 365, 528, 528, 528, 528, 528, 528, 528, 419,
/* 3060 */ 528, 421, 528, 528, 378, 528, 463, 528, 528, 466,
/* 3070 */ 528, 528, 528, 470, 471, 472, 473, 474, 475, 528,
/* 3080 */ 477, 528, 528, 528, 528, 528, 528, 365, 528, 528,
/* 3090 */ 528, 528, 406, 528, 528, 528, 528, 528, 528, 528,
/* 3100 */ 378, 528, 528, 463, 528, 419, 466, 421, 528, 528,
/* 3110 */ 470, 471, 472, 473, 474, 475, 528, 477, 528, 528,
/* 3120 */ 528, 528, 528, 528, 528, 528, 528, 528, 406, 528,
/* 3130 */ 528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
/* 3140 */ 528, 419, 528, 421, 528, 528, 528, 528, 528, 463,
/* 3150 */ 528, 528, 466, 528, 528, 528, 470, 471, 472, 473,
/* 3160 */ 474, 475, 528, 477, 528, 528, 528, 528, 528, 528,
/* 3170 */ 528, 528, 528, 528, 528, 528, 528, 528, 528, 528,
/* 3180 */ 528, 528, 528, 528, 528, 463, 528, 528, 466, 528,
/* 3190 */ 528, 528, 470, 471, 472, 473, 474, 475, 528, 477,
/* 3200 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3210 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3220 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3230 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3240 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3250 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3260 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3270 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3280 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3290 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3300 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3310 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3320 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3330 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3340 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3350 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3360 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3370 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3380 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3390 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3400 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3410 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3420 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3430 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3440 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3450 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3460 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3470 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3480 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3490 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3500 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3510 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3520 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3530 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3540 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3550 */ 362, 362, 362, 362, 362, 362, 362, 362, 362, 362,
/* 3560 */ 362, 362,
};
2024-04-15 08:12:15 +00:00
#define YY_SHIFT_COUNT (912)
#define YY_SHIFT_MIN (0)
2024-04-15 08:12:15 +00:00
#define YY_SHIFT_MAX (2608)
static const unsigned short int yy_shift_ofst[] = {
2024-04-15 08:12:15 +00:00
/* 0 */ 416, 0, 256, 0, 513, 513, 513, 513, 513, 513,
/* 10 */ 513, 513, 513, 513, 513, 513, 769, 1025, 1025, 1281,
/* 20 */ 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025,
/* 30 */ 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025,
/* 40 */ 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025, 1025,
/* 50 */ 217, 221, 97, 604, 27, 37, 27, 27, 604, 604,
/* 60 */ 27, 1446, 27, 255, 1446, 345, 27, 79, 686, 299,
/* 70 */ 134, 134, 686, 686, 786, 786, 299, 52, 713, 68,
/* 80 */ 68, 69, 134, 134, 134, 134, 134, 134, 134, 134,
/* 90 */ 134, 134, 134, 141, 264, 134, 134, 128, 79, 134,
/* 100 */ 141, 134, 79, 134, 134, 79, 134, 134, 79, 134,
/* 110 */ 79, 79, 79, 134, 260, 82, 82, 433, 894, 117,
/* 120 */ 508, 508, 508, 508, 508, 508, 508, 508, 508, 508,
/* 130 */ 508, 508, 508, 508, 508, 508, 508, 508, 508, 436,
/* 140 */ 851, 52, 713, 938, 938, 13, 981, 981, 981, 360,
/* 150 */ 360, 397, 745, 13, 128, 79, 218, 79, 122, 79,
/* 160 */ 79, 464, 79, 464, 464, 317, 438, 91, 471, 471,
/* 170 */ 471, 471, 471, 471, 1513, 1875, 15, 48, 330, 192,
/* 180 */ 761, 275, 942, 1052, 102, 102, 944, 535, 1065, 762,
/* 190 */ 762, 762, 415, 457, 762, 1197, 429, 1198, 101, 1022,
/* 200 */ 429, 429, 983, 1056, 1100, 7, 1056, 708, 874, 745,
/* 210 */ 1341, 1578, 1591, 1616, 1410, 128, 1616, 128, 1445, 1637,
/* 220 */ 1642, 1621, 1642, 1621, 1482, 1637, 1642, 1637, 1621, 1482,
/* 230 */ 1482, 1482, 1569, 1575, 1637, 1637, 1582, 1637, 1637, 1637,
/* 240 */ 1666, 1648, 1666, 1648, 1616, 128, 128, 1694, 128, 1696,
/* 250 */ 1697, 128, 1696, 128, 1706, 128, 128, 1637, 128, 1666,
/* 260 */ 79, 79, 79, 79, 79, 79, 79, 79, 79, 79,
/* 270 */ 79, 1637, 438, 438, 1666, 464, 464, 464, 1528, 1649,
/* 280 */ 1616, 260, 1767, 1571, 1581, 1694, 260, 1341, 1637, 464,
/* 290 */ 1509, 1512, 1509, 1512, 1504, 1605, 1509, 1506, 1515, 1525,
/* 300 */ 1341, 1519, 1514, 1518, 1551, 1642, 1815, 1714, 1554, 1696,
/* 310 */ 260, 260, 1741, 1512, 464, 464, 464, 464, 1512, 464,
/* 320 */ 1665, 260, 317, 260, 1642, 464, 464, 464, 464, 464,
/* 330 */ 464, 464, 464, 464, 464, 464, 464, 464, 464, 464,
/* 340 */ 464, 464, 464, 464, 464, 464, 464, 1753, 464, 1637,
/* 350 */ 260, 1870, 1848, 1666, 3200, 3200, 3200, 3200, 3200, 3200,
/* 360 */ 3200, 3200, 3200, 81, 1590, 274, 784, 92, 180, 860,
/* 370 */ 799, 815, 929, 392, 862, 62, 62, 62, 62, 62,
/* 380 */ 62, 62, 62, 62, 226, 485, 692, 71, 71, 293,
/* 390 */ 87, 627, 884, 72, 179, 512, 383, 903, 1104, 570,
/* 400 */ 778, 130, 401, 778, 778, 778, 1060, 1060, 1363, 1248,
/* 410 */ 1274, 1344, 1122, 1186, 1299, 1304, 1308, 1309, 1328, 1355,
/* 420 */ 1362, 1400, 1429, 1448, 1460, 1469, 1040, 1397, 1403, 1331,
/* 430 */ 1416, 1440, 1441, 1443, 1302, 426, 1069, 1444, 1463, 1447,
/* 440 */ 1338, 1459, 1406, 1461, 1464, 1466, 1473, 1477, 1475, 1488,
/* 450 */ 1492, 1495, 1502, 1508, 1511, 1537, 1539, 1552, 1564, 1489,
/* 460 */ 1520, 1529, 1533, 1549, 1550, 114, 1522, 1424, 1430, 1585,
/* 470 */ 1586, 1555, 1593, 1944, 1947, 1952, 1889, 1961, 1925, 1727,
/* 480 */ 1928, 1929, 1930, 1731, 1969, 1933, 1935, 1734, 1936, 1975,
/* 490 */ 1740, 1979, 1943, 1981, 1945, 1983, 1962, 1985, 1951, 1757,
/* 500 */ 1991, 1772, 1993, 1774, 1775, 1781, 1790, 2003, 2010, 2012,
/* 510 */ 1805, 1807, 2015, 2016, 1861, 1970, 1973, 2018, 1989, 2033,
/* 520 */ 2035, 1999, 1987, 2037, 1992, 2040, 1997, 2044, 2045, 2048,
/* 530 */ 2007, 2058, 2059, 2060, 2061, 2063, 2064, 1890, 2030, 2068,
/* 540 */ 1895, 2071, 2072, 2074, 2075, 2077, 2078, 2080, 2082, 2083,
/* 550 */ 2084, 2085, 2087, 2088, 2089, 2091, 2092, 2093, 2094, 2096,
/* 560 */ 2097, 2049, 2099, 2055, 2101, 2102, 2104, 2106, 2107, 2108,
/* 570 */ 2109, 2110, 2095, 2111, 1957, 2115, 1963, 2116, 1965, 2120,
/* 580 */ 2121, 2100, 2086, 2117, 2090, 2124, 2062, 2138, 2076, 2114,
/* 590 */ 2141, 2079, 2143, 2098, 2144, 2146, 2123, 2113, 2125, 2148,
/* 600 */ 2126, 2118, 2127, 2152, 2135, 2132, 2131, 2175, 2140, 2186,
/* 610 */ 2147, 2149, 2156, 2145, 2151, 2179, 2153, 2196, 2154, 2157,
/* 620 */ 2198, 2201, 2204, 2206, 2165, 2008, 2212, 2145, 2166, 2214,
/* 630 */ 2216, 2158, 2223, 2226, 2190, 2176, 2188, 2231, 2197, 2181,
/* 640 */ 2193, 2237, 2202, 2189, 2203, 2238, 2207, 2191, 2210, 2240,
/* 650 */ 2246, 2248, 2253, 2260, 2262, 2142, 2155, 2227, 2244, 2267,
/* 660 */ 2247, 2234, 2235, 2236, 2239, 2242, 2243, 2245, 2249, 2250,
/* 670 */ 2251, 2255, 2252, 2254, 2259, 2257, 2268, 2270, 2275, 2273,
/* 680 */ 2277, 2276, 2256, 2290, 2287, 2271, 2297, 2311, 2313, 2278,
/* 690 */ 2314, 2279, 2317, 2296, 2300, 2285, 2288, 2289, 2209, 2211,
/* 700 */ 2328, 2137, 2208, 2217, 2218, 2128, 2145, 2284, 2343, 2159,
/* 710 */ 2307, 2323, 2346, 2133, 2327, 2160, 2161, 2350, 2354, 2168,
/* 720 */ 2162, 2170, 2169, 2355, 2324, 2070, 2263, 2264, 2266, 2269,
/* 730 */ 2330, 2332, 2272, 2315, 2280, 2331, 2281, 2274, 2347, 2349,
/* 740 */ 2282, 2301, 2303, 2304, 2299, 2351, 2338, 2340, 2305, 2359,
/* 750 */ 2105, 2306, 2308, 2361, 2360, 2112, 2358, 2365, 2366, 2373,
/* 760 */ 2378, 2382, 2309, 2310, 2372, 2164, 2393, 2379, 2398, 2429,
/* 770 */ 2318, 2388, 2400, 2325, 2172, 2326, 2432, 2413, 2192, 2329,
/* 780 */ 2333, 2335, 2336, 2337, 2339, 2341, 2342, 2390, 2344, 2345,
/* 790 */ 2395, 2348, 2437, 2215, 2352, 2353, 2356, 2362, 2363, 2265,
/* 800 */ 2364, 2451, 2418, 2261, 2367, 2357, 2145, 2414, 2368, 2369,
/* 810 */ 2371, 2370, 2376, 2374, 2385, 2434, 2435, 2377, 2386, 2441,
/* 820 */ 2389, 2387, 2466, 2335, 2391, 2467, 2336, 2392, 2471, 2337,
/* 830 */ 2397, 2472, 2339, 2380, 2399, 2407, 2410, 2401, 2383, 2412,
/* 840 */ 2436, 2416, 2477, 2421, 2436, 2436, 2452, 2438, 2450, 2505,
/* 850 */ 2494, 2499, 2510, 2512, 2513, 2514, 2515, 2516, 2517, 2518,
/* 860 */ 2520, 2478, 2453, 2479, 2455, 2530, 2527, 2528, 2529, 2545,
/* 870 */ 2531, 2533, 2535, 2495, 2251, 2537, 2255, 2539, 2540, 2541,
/* 880 */ 2542, 2558, 2544, 2582, 2546, 2532, 2543, 2587, 2553, 2547,
/* 890 */ 2549, 2592, 2556, 2548, 2552, 2595, 2559, 2551, 2555, 2598,
/* 900 */ 2564, 2605, 2584, 2571, 2607, 2588, 2576, 2589, 2591, 2593,
/* 910 */ 2596, 2608, 2594,
};
#define YY_REDUCE_COUNT (362)
2024-04-15 08:12:15 +00:00
#define YY_REDUCE_MIN (-492)
#define YY_REDUCE_MAX (2722)
static const short yy_reduce_ofst[] = {
2024-04-15 08:12:15 +00:00
/* 0 */ -44, 213, -354, -86, 420, 440, 677, 712, 930, 968,
/* 10 */ 640, 896, 1097, 1262, 1294, 1375, 272, 792, 1408, 1434,
/* 20 */ 1534, 1557, 1580, 1660, 1684, 1708, 1747, 1784, 1830, 1864,
/* 30 */ 1900, 1934, 2021, 2047, 2067, 2150, 2167, 2183, 2286, 2302,
/* 40 */ 2320, 2406, 2433, 2454, 2492, 2570, 2603, 2640, 2686, 2722,
/* 50 */ 577, 703, 144, -30, 152, 462, 728, 899, -169, 359,
/* 60 */ 967, 620, -492, -375, 252, -490, -117, 588, -408, 59,
/* 70 */ 276, 480, -374, -355, -137, -95, -151, 126, -134, -356,
/* 80 */ -166, 290, -359, 239, 510, 556, -27, 104, 687, 704,
/* 90 */ 730, 767, 169, -9, -40, 791, 831, 435, 183, 852,
/* 100 */ 286, 855, 717, 857, 863, 521, 934, 943, 740, 946,
/* 110 */ 642, 750, 900, 948, 517, -281, -281, -399, 190, -337,
/* 120 */ -360, 421, 451, 520, 639, 715, 739, 755, 772, 828,
/* 130 */ 878, 931, 957, 962, 963, 987, 989, 990, 1007, -53,
/* 140 */ 212, -352, 446, 498, 609, 789, 212, 353, 368, 211,
/* 150 */ 714, -282, 16, 812, 707, 227, 458, 657, 492, 913,
/* 160 */ 830, 659, 935, 840, 918, 954, 961, -406, 187, 235,
/* 170 */ 253, 380, 482, -406, 450, 474, 597, 504, 442, 529,
/* 180 */ 581, 798, 952, 952, 966, 970, 945, 1014, 1064, 984,
/* 190 */ 988, 995, 1083, 952, 1080, 1219, 1172, 1227, 1192, 1161,
/* 200 */ 1181, 1182, 952, 1117, 1117, 1101, 1117, 1131, 1123, 1230,
/* 210 */ 1185, 1166, 1168, 1184, 1188, 1255, 1190, 1263, 1204, 1284,
/* 220 */ 1287, 1239, 1291, 1242, 1249, 1296, 1297, 1300, 1250, 1251,
/* 230 */ 1254, 1257, 1295, 1298, 1311, 1312, 1303, 1317, 1318, 1319,
/* 240 */ 1327, 1325, 1333, 1330, 1246, 1332, 1334, 1301, 1335, 1340,
/* 250 */ 1278, 1343, 1345, 1352, 1292, 1356, 1357, 1353, 1358, 1361,
/* 260 */ 1339, 1342, 1346, 1348, 1349, 1350, 1364, 1366, 1368, 1370,
/* 270 */ 1371, 1372, 1373, 1379, 1388, 1360, 1369, 1374, 1321, 1306,
/* 280 */ 1347, 1377, 1336, 1351, 1354, 1376, 1411, 1365, 1423, 1382,
/* 290 */ 1310, 1378, 1313, 1381, 1314, 1307, 1315, 1320, 1316, 1324,
/* 300 */ 1386, 1305, 1322, 1337, 1117, 1455, 1367, 1359, 1384, 1465,
/* 310 */ 1458, 1467, 1380, 1419, 1439, 1449, 1450, 1451, 1425, 1453,
/* 320 */ 1432, 1491, 1471, 1493, 1510, 1468, 1470, 1472, 1474, 1476,
/* 330 */ 1479, 1483, 1484, 1494, 1496, 1497, 1498, 1500, 1501, 1505,
/* 340 */ 1523, 1524, 1527, 1530, 1531, 1532, 1535, 1480, 1538, 1544,
/* 350 */ 1517, 1547, 1558, 1526, 1478, 1503, 1490, 1536, 1548, 1556,
/* 360 */ 1560, 1545, 1568,
};
static const YYACTIONTYPE yy_default[] = {
2024-04-15 08:12:15 +00:00
/* 0 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 10 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 20 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 30 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 40 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 50 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 60 */ 2429, 2071, 2071, 2392, 2071, 2071, 2071, 2071, 2071, 2071,
/* 70 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2399, 2071, 2071,
/* 80 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 90 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2172, 2071, 2071,
/* 100 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 110 */ 2071, 2071, 2071, 2071, 2170, 2678, 2071, 2071, 2071, 2071,
/* 120 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 130 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 140 */ 2690, 2071, 2071, 2143, 2143, 2071, 2690, 2690, 2690, 2650,
/* 150 */ 2650, 2170, 2071, 2071, 2172, 2071, 2471, 2071, 2071, 2071,
/* 160 */ 2071, 2071, 2071, 2071, 2071, 2309, 2101, 2469, 2071, 2071,
/* 170 */ 2071, 2071, 2071, 2071, 2071, 2455, 2071, 2719, 2781, 2071,
/* 180 */ 2722, 2071, 2071, 2071, 2071, 2071, 2404, 2071, 2709, 2071,
/* 190 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2257, 2449,
/* 200 */ 2071, 2071, 2071, 2682, 2696, 2765, 2683, 2680, 2703, 2071,
/* 210 */ 2713, 2071, 2496, 2071, 2485, 2172, 2071, 2172, 2442, 2387,
/* 220 */ 2071, 2397, 2071, 2397, 2394, 2071, 2071, 2071, 2397, 2394,
/* 230 */ 2394, 2394, 2246, 2242, 2071, 2071, 2240, 2071, 2071, 2071,
/* 240 */ 2071, 2126, 2071, 2126, 2071, 2172, 2172, 2071, 2172, 2071,
/* 250 */ 2071, 2172, 2071, 2172, 2071, 2172, 2172, 2071, 2172, 2071,
/* 260 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 270 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2483, 2465,
/* 280 */ 2071, 2170, 2071, 2453, 2451, 2071, 2170, 2713, 2071, 2071,
/* 290 */ 2735, 2730, 2735, 2730, 2749, 2745, 2735, 2754, 2751, 2715,
/* 300 */ 2713, 2784, 2771, 2767, 2696, 2071, 2071, 2701, 2699, 2071,
/* 310 */ 2170, 2170, 2071, 2730, 2071, 2071, 2071, 2071, 2730, 2071,
/* 320 */ 2071, 2170, 2071, 2170, 2071, 2071, 2071, 2071, 2071, 2071,
/* 330 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 340 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2273, 2071, 2071,
/* 350 */ 2170, 2071, 2110, 2071, 2444, 2474, 2425, 2425, 2312, 2312,
/* 360 */ 2312, 2173, 2076, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 370 */ 2071, 2071, 2071, 2071, 2071, 2748, 2747, 2601, 2071, 2654,
/* 380 */ 2653, 2652, 2643, 2600, 2269, 2071, 2071, 2599, 2598, 2071,
/* 390 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 400 */ 2592, 2071, 2071, 2593, 2591, 2590, 2416, 2415, 2071, 2071,
/* 410 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 420 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 430 */ 2071, 2071, 2071, 2071, 2071, 2768, 2772, 2071, 2679, 2071,
/* 440 */ 2071, 2071, 2572, 2071, 2071, 2071, 2071, 2071, 2540, 2535,
/* 450 */ 2526, 2517, 2532, 2523, 2511, 2529, 2520, 2508, 2505, 2071,
/* 460 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 470 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 480 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 490 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 500 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 510 */ 2071, 2071, 2071, 2071, 2393, 2071, 2071, 2071, 2071, 2071,
/* 520 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 530 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 540 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 550 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 560 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 570 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2408, 2071,
/* 580 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 590 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 600 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 610 */ 2071, 2071, 2115, 2579, 2071, 2071, 2071, 2071, 2071, 2071,
/* 620 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2582, 2071, 2071,
/* 630 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 640 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 650 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 660 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 670 */ 2217, 2216, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 680 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 690 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2583, 2071,
/* 700 */ 2071, 2071, 2469, 2071, 2071, 2071, 2574, 2071, 2071, 2071,
/* 710 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 720 */ 2071, 2071, 2071, 2764, 2716, 2071, 2071, 2071, 2071, 2071,
/* 730 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 740 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2572, 2071, 2746,
/* 750 */ 2071, 2071, 2762, 2071, 2766, 2071, 2071, 2071, 2071, 2071,
/* 760 */ 2071, 2071, 2689, 2685, 2071, 2071, 2681, 2071, 2071, 2071,
/* 770 */ 2071, 2071, 2640, 2071, 2071, 2071, 2674, 2071, 2071, 2071,
/* 780 */ 2071, 2308, 2307, 2306, 2305, 2071, 2071, 2071, 2071, 2071,
/* 790 */ 2071, 2583, 2071, 2586, 2071, 2071, 2071, 2071, 2071, 2071,
/* 800 */ 2071, 2071, 2071, 2071, 2071, 2071, 2571, 2071, 2625, 2624,
/* 810 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2302, 2071, 2071,
/* 820 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 830 */ 2071, 2071, 2071, 2286, 2284, 2283, 2282, 2071, 2279, 2071,
/* 840 */ 2319, 2071, 2071, 2071, 2315, 2314, 2071, 2071, 2071, 2071,
/* 850 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 860 */ 2071, 2071, 2071, 2071, 2071, 2191, 2071, 2071, 2071, 2071,
/* 870 */ 2071, 2071, 2071, 2071, 2183, 2071, 2182, 2071, 2071, 2071,
/* 880 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 890 */ 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
/* 900 */ 2071, 2071, 2071, 2071, 2071, 2071, 2100, 2071, 2071, 2071,
/* 910 */ 2071, 2071, 2071,
};
/********** 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 */
2024-03-26 11:56:15 +00:00
0, /* ENCRYPT_KEY => 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 */
2024-03-26 11:56:15 +00:00
0, /* ENCRYPT_ALGORITHM => nothing */
2022-04-22 10:23:37 +00:00
0, /* NK_COLON => nothing */
0, /* BWLIMIT => nothing */
0, /* START => nothing */
0, /* TIMESTAMP => nothing */
2024-04-15 08:12:15 +00:00
313, /* 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 */
2024-04-15 08:12:15 +00:00
313, /* 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 */
2024-03-26 11:56:15 +00:00
0, /* ENCRYPTIONS => 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 */
2024-04-15 08:12:15 +00:00
313, /* 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 */
2022-04-22 10:23:37 +00:00
0, /* INDEX => nothing */
0, /* FUNCTION => nothing */
0, /* INTERVAL => 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 */
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 */
2024-04-15 08:12:15 +00:00
313, /* AFTER => ABORT */
313, /* ATTACH => ABORT */
313, /* BEFORE => ABORT */
313, /* BEGIN => ABORT */
313, /* BITAND => ABORT */
313, /* BITNOT => ABORT */
313, /* BITOR => ABORT */
313, /* BLOCKS => ABORT */
313, /* CHANGE => ABORT */
313, /* COMMA => ABORT */
313, /* CONCAT => ABORT */
313, /* CONFLICT => ABORT */
313, /* COPY => ABORT */
313, /* DEFERRED => ABORT */
313, /* DELIMITERS => ABORT */
313, /* DETACH => ABORT */
313, /* DIVIDE => ABORT */
313, /* DOT => ABORT */
313, /* EACH => ABORT */
313, /* FAIL => ABORT */
313, /* FILE => ABORT */
313, /* FOR => ABORT */
313, /* GLOB => ABORT */
313, /* ID => ABORT */
313, /* IMMEDIATE => ABORT */
313, /* IMPORT => ABORT */
313, /* INITIALLY => ABORT */
313, /* INSTEAD => ABORT */
313, /* ISNULL => ABORT */
313, /* MODULES => ABORT */
313, /* NK_BITNOT => ABORT */
313, /* NK_SEMI => ABORT */
313, /* NOTNULL => ABORT */
313, /* OF => ABORT */
313, /* PLUS => ABORT */
313, /* PRIVILEGE => ABORT */
313, /* RAISE => ABORT */
313, /* RESTRICT => ABORT */
313, /* ROW => ABORT */
313, /* SEMI => ABORT */
313, /* STAR => ABORT */
313, /* STATEMENT => ABORT */
313, /* STRICT => ABORT */
313, /* STRING => ABORT */
313, /* TIMES => ABORT */
313, /* VALUES => ABORT */
313, /* VARIABLE => ABORT */
313, /* 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",
2024-03-26 11:56:15 +00:00
/* 51 */ "ENCRYPT_KEY",
/* 52 */ "DNODE",
/* 53 */ "PORT",
/* 54 */ "DNODES",
/* 55 */ "RESTORE",
/* 56 */ "NK_IPTOKEN",
/* 57 */ "FORCE",
/* 58 */ "UNSAFE",
/* 59 */ "CLUSTER",
/* 60 */ "LOCAL",
/* 61 */ "QNODE",
/* 62 */ "BNODE",
/* 63 */ "SNODE",
/* 64 */ "MNODE",
/* 65 */ "VNODE",
/* 66 */ "DATABASE",
/* 67 */ "USE",
/* 68 */ "FLUSH",
/* 69 */ "TRIM",
2024-04-15 08:12:15 +00:00
/* 70 */ "S3MIGRATE",
/* 71 */ "COMPACT",
/* 72 */ "IF",
/* 73 */ "NOT",
/* 74 */ "EXISTS",
/* 75 */ "BUFFER",
/* 76 */ "CACHEMODEL",
/* 77 */ "CACHESIZE",
/* 78 */ "COMP",
/* 79 */ "DURATION",
/* 80 */ "NK_VARIABLE",
/* 81 */ "MAXROWS",
/* 82 */ "MINROWS",
/* 83 */ "KEEP",
/* 84 */ "PAGES",
/* 85 */ "PAGESIZE",
/* 86 */ "TSDB_PAGESIZE",
/* 87 */ "PRECISION",
/* 88 */ "REPLICA",
/* 89 */ "VGROUPS",
/* 90 */ "SINGLE_STABLE",
/* 91 */ "RETENTIONS",
/* 92 */ "SCHEMALESS",
/* 93 */ "WAL_LEVEL",
/* 94 */ "WAL_FSYNC_PERIOD",
/* 95 */ "WAL_RETENTION_PERIOD",
/* 96 */ "WAL_RETENTION_SIZE",
/* 97 */ "WAL_ROLL_PERIOD",
/* 98 */ "WAL_SEGMENT_SIZE",
/* 99 */ "STT_TRIGGER",
/* 100 */ "TABLE_PREFIX",
/* 101 */ "TABLE_SUFFIX",
/* 102 */ "S3_CHUNKSIZE",
/* 103 */ "S3_KEEPLOCAL",
/* 104 */ "S3_COMPACT",
/* 105 */ "KEEP_TIME_OFFSET",
/* 106 */ "ENCRYPT_ALGORITHM",
/* 107 */ "NK_COLON",
/* 108 */ "BWLIMIT",
/* 109 */ "START",
/* 110 */ "TIMESTAMP",
/* 111 */ "END",
/* 112 */ "TABLE",
/* 113 */ "NK_LP",
/* 114 */ "NK_RP",
/* 115 */ "STABLE",
/* 116 */ "COLUMN",
/* 117 */ "MODIFY",
/* 118 */ "RENAME",
/* 119 */ "TAG",
/* 120 */ "SET",
/* 121 */ "NK_EQ",
/* 122 */ "USING",
/* 123 */ "TAGS",
/* 124 */ "PRIMARY",
/* 125 */ "KEY",
/* 126 */ "BOOL",
/* 127 */ "TINYINT",
/* 128 */ "SMALLINT",
/* 129 */ "INT",
/* 130 */ "INTEGER",
/* 131 */ "BIGINT",
/* 132 */ "FLOAT",
/* 133 */ "DOUBLE",
/* 134 */ "BINARY",
/* 135 */ "NCHAR",
/* 136 */ "UNSIGNED",
/* 137 */ "JSON",
/* 138 */ "VARCHAR",
/* 139 */ "MEDIUMBLOB",
/* 140 */ "BLOB",
/* 141 */ "VARBINARY",
/* 142 */ "GEOMETRY",
/* 143 */ "DECIMAL",
/* 144 */ "COMMENT",
/* 145 */ "MAX_DELAY",
/* 146 */ "WATERMARK",
/* 147 */ "ROLLUP",
/* 148 */ "TTL",
/* 149 */ "SMA",
/* 150 */ "DELETE_MARK",
/* 151 */ "FIRST",
/* 152 */ "LAST",
/* 153 */ "SHOW",
/* 154 */ "PRIVILEGES",
/* 155 */ "DATABASES",
/* 156 */ "TABLES",
/* 157 */ "STABLES",
/* 158 */ "MNODES",
/* 159 */ "QNODES",
/* 160 */ "ARBGROUPS",
/* 161 */ "FUNCTIONS",
/* 162 */ "INDEXES",
/* 163 */ "ACCOUNTS",
/* 164 */ "APPS",
/* 165 */ "CONNECTIONS",
/* 166 */ "LICENCES",
/* 167 */ "GRANTS",
/* 168 */ "FULL",
/* 169 */ "LOGS",
/* 170 */ "MACHINES",
/* 171 */ "ENCRYPTIONS",
/* 172 */ "QUERIES",
/* 173 */ "SCORES",
/* 174 */ "TOPICS",
/* 175 */ "VARIABLES",
/* 176 */ "BNODES",
/* 177 */ "SNODES",
/* 178 */ "TRANSACTIONS",
/* 179 */ "DISTRIBUTED",
/* 180 */ "CONSUMERS",
/* 181 */ "SUBSCRIPTIONS",
/* 182 */ "VNODES",
/* 183 */ "ALIVE",
/* 184 */ "VIEWS",
/* 185 */ "VIEW",
/* 186 */ "COMPACTS",
/* 187 */ "NORMAL",
/* 188 */ "CHILD",
/* 189 */ "LIKE",
/* 190 */ "TBNAME",
/* 191 */ "QTAGS",
/* 192 */ "AS",
/* 193 */ "SYSTEM",
/* 194 */ "INDEX",
/* 195 */ "FUNCTION",
/* 196 */ "INTERVAL",
/* 197 */ "COUNT",
/* 198 */ "LAST_ROW",
/* 199 */ "META",
/* 200 */ "ONLY",
/* 201 */ "TOPIC",
/* 202 */ "CONSUMER",
/* 203 */ "GROUP",
/* 204 */ "DESC",
/* 205 */ "DESCRIBE",
/* 206 */ "RESET",
/* 207 */ "QUERY",
/* 208 */ "CACHE",
/* 209 */ "EXPLAIN",
/* 210 */ "ANALYZE",
/* 211 */ "VERBOSE",
/* 212 */ "NK_BOOL",
/* 213 */ "RATIO",
/* 214 */ "NK_FLOAT",
/* 215 */ "OUTPUTTYPE",
/* 216 */ "AGGREGATE",
/* 217 */ "BUFSIZE",
/* 218 */ "LANGUAGE",
/* 219 */ "REPLACE",
/* 220 */ "STREAM",
/* 221 */ "INTO",
/* 222 */ "PAUSE",
/* 223 */ "RESUME",
/* 224 */ "TRIGGER",
/* 225 */ "AT_ONCE",
/* 226 */ "WINDOW_CLOSE",
/* 227 */ "IGNORE",
/* 228 */ "EXPIRED",
/* 229 */ "FILL_HISTORY",
/* 230 */ "UPDATE",
/* 231 */ "SUBTABLE",
/* 232 */ "UNTREATED",
/* 233 */ "KILL",
/* 234 */ "CONNECTION",
/* 235 */ "TRANSACTION",
/* 236 */ "BALANCE",
/* 237 */ "VGROUP",
/* 238 */ "LEADER",
/* 239 */ "MERGE",
/* 240 */ "REDISTRIBUTE",
/* 241 */ "SPLIT",
/* 242 */ "DELETE",
/* 243 */ "INSERT",
/* 244 */ "NK_BIN",
/* 245 */ "NK_HEX",
/* 246 */ "NULL",
/* 247 */ "NK_QUESTION",
/* 248 */ "NK_ALIAS",
/* 249 */ "NK_ARROW",
/* 250 */ "ROWTS",
/* 251 */ "QSTART",
/* 252 */ "QEND",
/* 253 */ "QDURATION",
/* 254 */ "WSTART",
/* 255 */ "WEND",
/* 256 */ "WDURATION",
/* 257 */ "IROWTS",
/* 258 */ "ISFILLED",
/* 259 */ "CAST",
/* 260 */ "NOW",
/* 261 */ "TODAY",
/* 262 */ "TIMEZONE",
/* 263 */ "CLIENT_VERSION",
/* 264 */ "SERVER_VERSION",
/* 265 */ "SERVER_STATUS",
/* 266 */ "CURRENT_USER",
/* 267 */ "CASE",
/* 268 */ "WHEN",
/* 269 */ "THEN",
/* 270 */ "ELSE",
/* 271 */ "BETWEEN",
/* 272 */ "IS",
/* 273 */ "NK_LT",
/* 274 */ "NK_GT",
/* 275 */ "NK_LE",
/* 276 */ "NK_GE",
/* 277 */ "NK_NE",
/* 278 */ "MATCH",
/* 279 */ "NMATCH",
/* 280 */ "CONTAINS",
/* 281 */ "IN",
/* 282 */ "JOIN",
/* 283 */ "INNER",
/* 284 */ "SELECT",
/* 285 */ "NK_HINT",
/* 286 */ "DISTINCT",
/* 287 */ "WHERE",
/* 288 */ "PARTITION",
/* 289 */ "BY",
/* 290 */ "SESSION",
/* 291 */ "STATE_WINDOW",
/* 292 */ "EVENT_WINDOW",
/* 293 */ "COUNT_WINDOW",
/* 294 */ "SLIDING",
/* 295 */ "FILL",
/* 296 */ "VALUE",
/* 297 */ "VALUE_F",
/* 298 */ "NONE",
/* 299 */ "PREV",
/* 300 */ "NULL_F",
/* 301 */ "LINEAR",
/* 302 */ "NEXT",
/* 303 */ "HAVING",
/* 304 */ "RANGE",
/* 305 */ "EVERY",
/* 306 */ "ORDER",
/* 307 */ "SLIMIT",
/* 308 */ "SOFFSET",
/* 309 */ "LIMIT",
/* 310 */ "OFFSET",
/* 311 */ "ASC",
/* 312 */ "NULLS",
/* 313 */ "ABORT",
/* 314 */ "AFTER",
/* 315 */ "ATTACH",
/* 316 */ "BEFORE",
/* 317 */ "BEGIN",
/* 318 */ "BITAND",
/* 319 */ "BITNOT",
/* 320 */ "BITOR",
/* 321 */ "BLOCKS",
/* 322 */ "CHANGE",
/* 323 */ "COMMA",
/* 324 */ "CONCAT",
/* 325 */ "CONFLICT",
/* 326 */ "COPY",
/* 327 */ "DEFERRED",
/* 328 */ "DELIMITERS",
/* 329 */ "DETACH",
/* 330 */ "DIVIDE",
/* 331 */ "DOT",
/* 332 */ "EACH",
/* 333 */ "FAIL",
/* 334 */ "FILE",
/* 335 */ "FOR",
/* 336 */ "GLOB",
/* 337 */ "ID",
/* 338 */ "IMMEDIATE",
/* 339 */ "IMPORT",
/* 340 */ "INITIALLY",
/* 341 */ "INSTEAD",
/* 342 */ "ISNULL",
/* 343 */ "MODULES",
/* 344 */ "NK_BITNOT",
/* 345 */ "NK_SEMI",
/* 346 */ "NOTNULL",
/* 347 */ "OF",
/* 348 */ "PLUS",
/* 349 */ "PRIVILEGE",
/* 350 */ "RAISE",
/* 351 */ "RESTRICT",
/* 352 */ "ROW",
/* 353 */ "SEMI",
/* 354 */ "STAR",
/* 355 */ "STATEMENT",
/* 356 */ "STRICT",
/* 357 */ "STRING",
/* 358 */ "TIMES",
/* 359 */ "VALUES",
/* 360 */ "VARIABLE",
/* 361 */ "WAL",
/* 362 */ "cmd",
/* 363 */ "account_options",
/* 364 */ "alter_account_options",
/* 365 */ "literal",
/* 366 */ "alter_account_option",
/* 367 */ "ip_range_list",
/* 368 */ "white_list",
/* 369 */ "white_list_opt",
/* 370 */ "user_name",
/* 371 */ "sysinfo_opt",
/* 372 */ "privileges",
/* 373 */ "priv_level",
/* 374 */ "with_opt",
/* 375 */ "priv_type_list",
/* 376 */ "priv_type",
/* 377 */ "db_name",
/* 378 */ "table_name",
/* 379 */ "topic_name",
/* 380 */ "search_condition",
/* 381 */ "dnode_endpoint",
/* 382 */ "force_opt",
/* 383 */ "unsafe_opt",
/* 384 */ "not_exists_opt",
/* 385 */ "db_options",
/* 386 */ "exists_opt",
/* 387 */ "alter_db_options",
/* 388 */ "speed_opt",
/* 389 */ "start_opt",
/* 390 */ "end_opt",
/* 391 */ "integer_list",
/* 392 */ "variable_list",
/* 393 */ "retention_list",
/* 394 */ "signed",
/* 395 */ "alter_db_option",
/* 396 */ "retention",
/* 397 */ "full_table_name",
/* 398 */ "column_def_list",
/* 399 */ "tags_def_opt",
/* 400 */ "table_options",
/* 401 */ "multi_create_clause",
/* 402 */ "tags_def",
/* 403 */ "multi_drop_clause",
/* 404 */ "alter_table_clause",
/* 405 */ "alter_table_options",
/* 406 */ "column_name",
/* 407 */ "type_name",
/* 408 */ "tags_literal",
/* 409 */ "create_subtable_clause",
/* 410 */ "specific_cols_opt",
/* 411 */ "tags_literal_list",
/* 412 */ "drop_table_clause",
/* 413 */ "col_name_list",
/* 414 */ "column_def",
/* 415 */ "type_name_default_len",
/* 416 */ "duration_list",
/* 417 */ "rollup_func_list",
/* 418 */ "alter_table_option",
/* 419 */ "duration_literal",
/* 420 */ "rollup_func_name",
/* 421 */ "function_name",
/* 422 */ "col_name",
/* 423 */ "db_kind_opt",
/* 424 */ "table_kind_db_name_cond_opt",
/* 425 */ "like_pattern_opt",
/* 426 */ "db_name_cond_opt",
/* 427 */ "table_name_cond",
/* 428 */ "from_db_opt",
/* 429 */ "tag_list_opt",
/* 430 */ "table_kind",
/* 431 */ "tag_item",
/* 432 */ "column_alias",
/* 433 */ "index_options",
/* 434 */ "full_index_name",
/* 435 */ "index_name",
/* 436 */ "func_list",
/* 437 */ "sliding_opt",
/* 438 */ "sma_stream_opt",
/* 439 */ "func",
/* 440 */ "sma_func_name",
/* 441 */ "expression_list",
/* 442 */ "with_meta",
/* 443 */ "query_or_subquery",
/* 444 */ "where_clause_opt",
/* 445 */ "cgroup_name",
/* 446 */ "analyze_opt",
/* 447 */ "explain_options",
/* 448 */ "insert_query",
/* 449 */ "or_replace_opt",
/* 450 */ "agg_func_opt",
/* 451 */ "bufsize_opt",
/* 452 */ "language_opt",
/* 453 */ "full_view_name",
/* 454 */ "view_name",
/* 455 */ "stream_name",
/* 456 */ "stream_options",
/* 457 */ "col_list_opt",
/* 458 */ "tag_def_or_ref_opt",
/* 459 */ "subtable_opt",
/* 460 */ "ignore_opt",
/* 461 */ "column_stream_def_list",
/* 462 */ "column_stream_def",
/* 463 */ "expression",
/* 464 */ "on_vgroup_id",
/* 465 */ "dnode_list",
/* 466 */ "literal_func",
/* 467 */ "signed_literal",
/* 468 */ "literal_list",
/* 469 */ "table_alias",
/* 470 */ "expr_or_subquery",
/* 471 */ "pseudo_column",
/* 472 */ "column_reference",
/* 473 */ "function_expression",
/* 474 */ "case_when_expression",
/* 475 */ "star_func",
/* 476 */ "star_func_para_list",
/* 477 */ "noarg_func",
/* 478 */ "other_para_list",
/* 479 */ "star_func_para",
/* 480 */ "when_then_list",
/* 481 */ "case_when_else_opt",
/* 482 */ "common_expression",
/* 483 */ "when_then_expr",
/* 484 */ "predicate",
/* 485 */ "compare_op",
/* 486 */ "in_op",
/* 487 */ "in_predicate_value",
/* 488 */ "boolean_value_expression",
/* 489 */ "boolean_primary",
/* 490 */ "from_clause_opt",
/* 491 */ "table_reference_list",
/* 492 */ "table_reference",
/* 493 */ "table_primary",
/* 494 */ "joined_table",
/* 495 */ "alias_opt",
/* 496 */ "subquery",
/* 497 */ "parenthesized_joined_table",
/* 498 */ "join_type",
/* 499 */ "query_specification",
/* 500 */ "hint_list",
/* 501 */ "set_quantifier_opt",
/* 502 */ "tag_mode_opt",
/* 503 */ "select_list",
/* 504 */ "partition_by_clause_opt",
/* 505 */ "range_opt",
/* 506 */ "every_opt",
/* 507 */ "fill_opt",
/* 508 */ "twindow_clause_opt",
/* 509 */ "group_by_clause_opt",
/* 510 */ "having_clause_opt",
/* 511 */ "select_item",
/* 512 */ "partition_list",
/* 513 */ "partition_item",
/* 514 */ "interval_sliding_duration_literal",
/* 515 */ "fill_mode",
/* 516 */ "group_by_list",
/* 517 */ "query_expression",
/* 518 */ "query_simple",
/* 519 */ "order_by_clause_opt",
/* 520 */ "slimit_clause_opt",
/* 521 */ "limit_clause_opt",
/* 522 */ "union_query_expression",
/* 523 */ "query_simple_or_subquery",
/* 524 */ "sort_specification_list",
/* 525 */ "sort_specification",
/* 526 */ "ordering_specification_opt",
/* 527 */ "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",
2024-03-26 11:56:15 +00:00
/* 54 */ "cmd ::= CREATE ENCRYPT_KEY NK_STRING",
/* 55 */ "cmd ::= CREATE DNODE dnode_endpoint",
/* 56 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
/* 57 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
/* 58 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
/* 59 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
/* 60 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
/* 61 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
/* 62 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
/* 63 */ "cmd ::= ALTER ALL DNODES NK_STRING",
/* 64 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
/* 65 */ "cmd ::= RESTORE DNODE NK_INTEGER",
/* 66 */ "dnode_endpoint ::= NK_STRING",
/* 67 */ "dnode_endpoint ::= NK_ID",
/* 68 */ "dnode_endpoint ::= NK_IPTOKEN",
/* 69 */ "force_opt ::=",
/* 70 */ "force_opt ::= FORCE",
/* 71 */ "unsafe_opt ::= UNSAFE",
/* 72 */ "cmd ::= ALTER CLUSTER NK_STRING",
/* 73 */ "cmd ::= ALTER CLUSTER NK_STRING NK_STRING",
/* 74 */ "cmd ::= ALTER LOCAL NK_STRING",
/* 75 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
/* 76 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
/* 77 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
/* 78 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
/* 79 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
/* 80 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
/* 81 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
/* 82 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
/* 83 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
/* 84 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
/* 85 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
/* 86 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
/* 87 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
/* 88 */ "cmd ::= DROP DATABASE exists_opt db_name",
/* 89 */ "cmd ::= USE db_name",
/* 90 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
/* 91 */ "cmd ::= FLUSH DATABASE db_name",
/* 92 */ "cmd ::= TRIM DATABASE db_name speed_opt",
2024-04-15 08:12:15 +00:00
/* 93 */ "cmd ::= S3MIGRATE DATABASE db_name",
/* 94 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
/* 95 */ "not_exists_opt ::= IF NOT EXISTS",
/* 96 */ "not_exists_opt ::=",
/* 97 */ "exists_opt ::= IF EXISTS",
/* 98 */ "exists_opt ::=",
/* 99 */ "db_options ::=",
/* 100 */ "db_options ::= db_options BUFFER NK_INTEGER",
/* 101 */ "db_options ::= db_options CACHEMODEL NK_STRING",
/* 102 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
/* 103 */ "db_options ::= db_options COMP NK_INTEGER",
/* 104 */ "db_options ::= db_options DURATION NK_INTEGER",
/* 105 */ "db_options ::= db_options DURATION NK_VARIABLE",
/* 106 */ "db_options ::= db_options MAXROWS NK_INTEGER",
/* 107 */ "db_options ::= db_options MINROWS NK_INTEGER",
/* 108 */ "db_options ::= db_options KEEP integer_list",
/* 109 */ "db_options ::= db_options KEEP variable_list",
/* 110 */ "db_options ::= db_options PAGES NK_INTEGER",
/* 111 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
/* 112 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
/* 113 */ "db_options ::= db_options PRECISION NK_STRING",
/* 114 */ "db_options ::= db_options REPLICA NK_INTEGER",
/* 115 */ "db_options ::= db_options VGROUPS NK_INTEGER",
/* 116 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
/* 117 */ "db_options ::= db_options RETENTIONS retention_list",
/* 118 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
/* 119 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
/* 120 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
/* 121 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
/* 122 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 123 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
/* 124 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 125 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
/* 126 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
/* 127 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
/* 128 */ "db_options ::= db_options TABLE_PREFIX signed",
/* 129 */ "db_options ::= db_options TABLE_SUFFIX signed",
/* 130 */ "db_options ::= db_options S3_CHUNKSIZE NK_INTEGER",
/* 131 */ "db_options ::= db_options S3_KEEPLOCAL NK_INTEGER",
/* 132 */ "db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE",
/* 133 */ "db_options ::= db_options S3_COMPACT NK_INTEGER",
/* 134 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
/* 135 */ "db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING",
/* 136 */ "alter_db_options ::= alter_db_option",
/* 137 */ "alter_db_options ::= alter_db_options alter_db_option",
/* 138 */ "alter_db_option ::= BUFFER NK_INTEGER",
/* 139 */ "alter_db_option ::= CACHEMODEL NK_STRING",
/* 140 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
/* 141 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
/* 142 */ "alter_db_option ::= KEEP integer_list",
/* 143 */ "alter_db_option ::= KEEP variable_list",
/* 144 */ "alter_db_option ::= PAGES NK_INTEGER",
/* 145 */ "alter_db_option ::= REPLICA NK_INTEGER",
/* 146 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
/* 147 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
/* 148 */ "alter_db_option ::= MINROWS NK_INTEGER",
/* 149 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
/* 150 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 151 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
/* 152 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 153 */ "alter_db_option ::= S3_KEEPLOCAL NK_INTEGER",
/* 154 */ "alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE",
/* 155 */ "alter_db_option ::= S3_COMPACT NK_INTEGER",
/* 156 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
/* 157 */ "alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING",
/* 158 */ "integer_list ::= NK_INTEGER",
/* 159 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
/* 160 */ "variable_list ::= NK_VARIABLE",
/* 161 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
/* 162 */ "retention_list ::= retention",
/* 163 */ "retention_list ::= retention_list NK_COMMA retention",
/* 164 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
/* 165 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
/* 166 */ "speed_opt ::=",
/* 167 */ "speed_opt ::= BWLIMIT NK_INTEGER",
/* 168 */ "start_opt ::=",
/* 169 */ "start_opt ::= START WITH NK_INTEGER",
/* 170 */ "start_opt ::= START WITH NK_STRING",
/* 171 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
/* 172 */ "end_opt ::=",
/* 173 */ "end_opt ::= END WITH NK_INTEGER",
/* 174 */ "end_opt ::= END WITH NK_STRING",
/* 175 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
/* 176 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
/* 177 */ "cmd ::= CREATE TABLE multi_create_clause",
/* 178 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
/* 179 */ "cmd ::= DROP TABLE multi_drop_clause",
/* 180 */ "cmd ::= DROP STABLE exists_opt full_table_name",
/* 181 */ "cmd ::= ALTER TABLE alter_table_clause",
/* 182 */ "cmd ::= ALTER STABLE alter_table_clause",
/* 183 */ "alter_table_clause ::= full_table_name alter_table_options",
/* 184 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
/* 185 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
/* 186 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
/* 187 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
/* 188 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
/* 189 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
/* 190 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
/* 191 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
/* 192 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal",
/* 193 */ "multi_create_clause ::= create_subtable_clause",
/* 194 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
/* 195 */ "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",
/* 196 */ "multi_drop_clause ::= drop_table_clause",
/* 197 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
/* 198 */ "drop_table_clause ::= exists_opt full_table_name",
/* 199 */ "specific_cols_opt ::=",
/* 200 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
/* 201 */ "full_table_name ::= table_name",
/* 202 */ "full_table_name ::= db_name NK_DOT table_name",
/* 203 */ "column_def_list ::= column_def",
/* 204 */ "column_def_list ::= column_def_list NK_COMMA column_def",
/* 205 */ "column_def ::= column_name type_name",
/* 206 */ "column_def ::= column_name type_name PRIMARY KEY",
/* 207 */ "type_name ::= BOOL",
/* 208 */ "type_name ::= TINYINT",
/* 209 */ "type_name ::= SMALLINT",
/* 210 */ "type_name ::= INT",
/* 211 */ "type_name ::= INTEGER",
/* 212 */ "type_name ::= BIGINT",
/* 213 */ "type_name ::= FLOAT",
/* 214 */ "type_name ::= DOUBLE",
/* 215 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
/* 216 */ "type_name ::= TIMESTAMP",
/* 217 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
/* 218 */ "type_name ::= TINYINT UNSIGNED",
/* 219 */ "type_name ::= SMALLINT UNSIGNED",
/* 220 */ "type_name ::= INT UNSIGNED",
/* 221 */ "type_name ::= BIGINT UNSIGNED",
/* 222 */ "type_name ::= JSON",
/* 223 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
/* 224 */ "type_name ::= MEDIUMBLOB",
/* 225 */ "type_name ::= BLOB",
/* 226 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
/* 227 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
/* 228 */ "type_name ::= DECIMAL",
/* 229 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
/* 230 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 231 */ "type_name_default_len ::= BINARY",
/* 232 */ "type_name_default_len ::= NCHAR",
/* 233 */ "type_name_default_len ::= VARCHAR",
/* 234 */ "type_name_default_len ::= VARBINARY",
/* 235 */ "tags_def_opt ::=",
/* 236 */ "tags_def_opt ::= tags_def",
/* 237 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
/* 238 */ "table_options ::=",
/* 239 */ "table_options ::= table_options COMMENT NK_STRING",
/* 240 */ "table_options ::= table_options MAX_DELAY duration_list",
/* 241 */ "table_options ::= table_options WATERMARK duration_list",
/* 242 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
/* 243 */ "table_options ::= table_options TTL NK_INTEGER",
/* 244 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
/* 245 */ "table_options ::= table_options DELETE_MARK duration_list",
/* 246 */ "alter_table_options ::= alter_table_option",
/* 247 */ "alter_table_options ::= alter_table_options alter_table_option",
/* 248 */ "alter_table_option ::= COMMENT NK_STRING",
/* 249 */ "alter_table_option ::= TTL NK_INTEGER",
/* 250 */ "duration_list ::= duration_literal",
/* 251 */ "duration_list ::= duration_list NK_COMMA duration_literal",
/* 252 */ "rollup_func_list ::= rollup_func_name",
/* 253 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
/* 254 */ "rollup_func_name ::= function_name",
/* 255 */ "rollup_func_name ::= FIRST",
/* 256 */ "rollup_func_name ::= LAST",
/* 257 */ "col_name_list ::= col_name",
/* 258 */ "col_name_list ::= col_name_list NK_COMMA col_name",
/* 259 */ "col_name ::= column_name",
/* 260 */ "cmd ::= SHOW DNODES",
/* 261 */ "cmd ::= SHOW USERS",
/* 262 */ "cmd ::= SHOW USER PRIVILEGES",
/* 263 */ "cmd ::= SHOW db_kind_opt DATABASES",
/* 264 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
/* 265 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
/* 266 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
/* 267 */ "cmd ::= SHOW MNODES",
/* 268 */ "cmd ::= SHOW QNODES",
/* 269 */ "cmd ::= SHOW ARBGROUPS",
/* 270 */ "cmd ::= SHOW FUNCTIONS",
/* 271 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
/* 272 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
/* 273 */ "cmd ::= SHOW STREAMS",
/* 274 */ "cmd ::= SHOW ACCOUNTS",
/* 275 */ "cmd ::= SHOW APPS",
/* 276 */ "cmd ::= SHOW CONNECTIONS",
/* 277 */ "cmd ::= SHOW LICENCES",
/* 278 */ "cmd ::= SHOW GRANTS",
/* 279 */ "cmd ::= SHOW GRANTS FULL",
/* 280 */ "cmd ::= SHOW GRANTS LOGS",
/* 281 */ "cmd ::= SHOW CLUSTER MACHINES",
/* 282 */ "cmd ::= SHOW CREATE DATABASE db_name",
/* 283 */ "cmd ::= SHOW CREATE TABLE full_table_name",
/* 284 */ "cmd ::= SHOW CREATE STABLE full_table_name",
/* 285 */ "cmd ::= SHOW ENCRYPTIONS",
/* 286 */ "cmd ::= SHOW QUERIES",
/* 287 */ "cmd ::= SHOW SCORES",
/* 288 */ "cmd ::= SHOW TOPICS",
/* 289 */ "cmd ::= SHOW VARIABLES",
/* 290 */ "cmd ::= SHOW CLUSTER VARIABLES",
/* 291 */ "cmd ::= SHOW LOCAL VARIABLES",
/* 292 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
/* 293 */ "cmd ::= SHOW BNODES",
/* 294 */ "cmd ::= SHOW SNODES",
/* 295 */ "cmd ::= SHOW CLUSTER",
/* 296 */ "cmd ::= SHOW TRANSACTIONS",
/* 297 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
/* 298 */ "cmd ::= SHOW CONSUMERS",
/* 299 */ "cmd ::= SHOW SUBSCRIPTIONS",
/* 300 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
/* 301 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
/* 302 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
/* 303 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
/* 304 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
/* 305 */ "cmd ::= SHOW VNODES",
/* 306 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
/* 307 */ "cmd ::= SHOW CLUSTER ALIVE",
/* 308 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt",
/* 309 */ "cmd ::= SHOW CREATE VIEW full_table_name",
/* 310 */ "cmd ::= SHOW COMPACTS",
/* 311 */ "cmd ::= SHOW COMPACT NK_INTEGER",
/* 312 */ "table_kind_db_name_cond_opt ::=",
/* 313 */ "table_kind_db_name_cond_opt ::= table_kind",
/* 314 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
/* 315 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
/* 316 */ "table_kind ::= NORMAL",
/* 317 */ "table_kind ::= CHILD",
/* 318 */ "db_name_cond_opt ::=",
/* 319 */ "db_name_cond_opt ::= db_name NK_DOT",
/* 320 */ "like_pattern_opt ::=",
/* 321 */ "like_pattern_opt ::= LIKE NK_STRING",
/* 322 */ "table_name_cond ::= table_name",
/* 323 */ "from_db_opt ::=",
/* 324 */ "from_db_opt ::= FROM db_name",
/* 325 */ "tag_list_opt ::=",
/* 326 */ "tag_list_opt ::= tag_item",
/* 327 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
/* 328 */ "tag_item ::= TBNAME",
/* 329 */ "tag_item ::= QTAGS",
/* 330 */ "tag_item ::= column_name",
/* 331 */ "tag_item ::= column_name column_alias",
/* 332 */ "tag_item ::= column_name AS column_alias",
/* 333 */ "db_kind_opt ::=",
/* 334 */ "db_kind_opt ::= USER",
/* 335 */ "db_kind_opt ::= SYSTEM",
/* 336 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
/* 337 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
/* 338 */ "cmd ::= DROP INDEX exists_opt full_index_name",
/* 339 */ "full_index_name ::= index_name",
/* 340 */ "full_index_name ::= db_name NK_DOT index_name",
/* 341 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
/* 342 */ "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",
/* 343 */ "func_list ::= func",
/* 344 */ "func_list ::= func_list NK_COMMA func",
/* 345 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
/* 346 */ "sma_func_name ::= function_name",
/* 347 */ "sma_func_name ::= COUNT",
/* 348 */ "sma_func_name ::= FIRST",
/* 349 */ "sma_func_name ::= LAST",
/* 350 */ "sma_func_name ::= LAST_ROW",
/* 351 */ "sma_stream_opt ::=",
/* 352 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
/* 353 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
/* 354 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
/* 355 */ "with_meta ::= AS",
/* 356 */ "with_meta ::= WITH META AS",
/* 357 */ "with_meta ::= ONLY META AS",
/* 358 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
/* 359 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
/* 360 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
/* 361 */ "cmd ::= DROP TOPIC exists_opt topic_name",
/* 362 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
/* 363 */ "cmd ::= DESC full_table_name",
/* 364 */ "cmd ::= DESCRIBE full_table_name",
/* 365 */ "cmd ::= RESET QUERY CACHE",
/* 366 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
/* 367 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
/* 368 */ "analyze_opt ::=",
/* 369 */ "analyze_opt ::= ANALYZE",
/* 370 */ "explain_options ::=",
/* 371 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
/* 372 */ "explain_options ::= explain_options RATIO NK_FLOAT",
/* 373 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
/* 374 */ "cmd ::= DROP FUNCTION exists_opt function_name",
/* 375 */ "agg_func_opt ::=",
/* 376 */ "agg_func_opt ::= AGGREGATE",
/* 377 */ "bufsize_opt ::=",
/* 378 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
/* 379 */ "language_opt ::=",
/* 380 */ "language_opt ::= LANGUAGE NK_STRING",
/* 381 */ "or_replace_opt ::=",
/* 382 */ "or_replace_opt ::= OR REPLACE",
/* 383 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
/* 384 */ "cmd ::= DROP VIEW exists_opt full_view_name",
/* 385 */ "full_view_name ::= view_name",
/* 386 */ "full_view_name ::= db_name NK_DOT view_name",
/* 387 */ "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",
/* 388 */ "cmd ::= DROP STREAM exists_opt stream_name",
/* 389 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
/* 390 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
/* 391 */ "col_list_opt ::=",
/* 392 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP",
/* 393 */ "column_stream_def_list ::= column_stream_def",
/* 394 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def",
/* 395 */ "column_stream_def ::= column_name",
/* 396 */ "column_stream_def ::= column_name PRIMARY KEY",
/* 397 */ "tag_def_or_ref_opt ::=",
/* 398 */ "tag_def_or_ref_opt ::= tags_def",
/* 399 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP",
/* 400 */ "stream_options ::=",
/* 401 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
/* 402 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
/* 403 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
/* 404 */ "stream_options ::= stream_options WATERMARK duration_literal",
/* 405 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
/* 406 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
/* 407 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
/* 408 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
/* 409 */ "subtable_opt ::=",
/* 410 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
/* 411 */ "ignore_opt ::=",
/* 412 */ "ignore_opt ::= IGNORE UNTREATED",
/* 413 */ "cmd ::= KILL CONNECTION NK_INTEGER",
/* 414 */ "cmd ::= KILL QUERY NK_STRING",
/* 415 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
/* 416 */ "cmd ::= KILL COMPACT NK_INTEGER",
/* 417 */ "cmd ::= BALANCE VGROUP",
/* 418 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
/* 419 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
/* 420 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
/* 421 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
/* 422 */ "on_vgroup_id ::=",
/* 423 */ "on_vgroup_id ::= ON NK_INTEGER",
/* 424 */ "dnode_list ::= DNODE NK_INTEGER",
/* 425 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
/* 426 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
/* 427 */ "cmd ::= query_or_subquery",
/* 428 */ "cmd ::= insert_query",
/* 429 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
/* 430 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
/* 431 */ "tags_literal ::= NK_INTEGER",
/* 432 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal",
/* 433 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal",
/* 434 */ "tags_literal ::= NK_PLUS NK_INTEGER",
/* 435 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal",
/* 436 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal",
/* 437 */ "tags_literal ::= NK_MINUS NK_INTEGER",
/* 438 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal",
/* 439 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal",
/* 440 */ "tags_literal ::= NK_FLOAT",
/* 441 */ "tags_literal ::= NK_PLUS NK_FLOAT",
/* 442 */ "tags_literal ::= NK_MINUS NK_FLOAT",
/* 443 */ "tags_literal ::= NK_BIN",
/* 444 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal",
/* 445 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal",
/* 446 */ "tags_literal ::= NK_PLUS NK_BIN",
/* 447 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal",
/* 448 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal",
/* 449 */ "tags_literal ::= NK_MINUS NK_BIN",
/* 450 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal",
/* 451 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal",
/* 452 */ "tags_literal ::= NK_HEX",
/* 453 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal",
/* 454 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal",
/* 455 */ "tags_literal ::= NK_PLUS NK_HEX",
/* 456 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal",
/* 457 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal",
/* 458 */ "tags_literal ::= NK_MINUS NK_HEX",
/* 459 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal",
/* 460 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal",
/* 461 */ "tags_literal ::= NK_STRING",
/* 462 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal",
/* 463 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal",
/* 464 */ "tags_literal ::= NK_BOOL",
/* 465 */ "tags_literal ::= NULL",
/* 466 */ "tags_literal ::= literal_func",
/* 467 */ "tags_literal ::= literal_func NK_PLUS duration_literal",
/* 468 */ "tags_literal ::= literal_func NK_MINUS duration_literal",
/* 469 */ "tags_literal_list ::= tags_literal",
/* 470 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal",
/* 471 */ "literal ::= NK_INTEGER",
/* 472 */ "literal ::= NK_FLOAT",
/* 473 */ "literal ::= NK_STRING",
/* 474 */ "literal ::= NK_BOOL",
/* 475 */ "literal ::= TIMESTAMP NK_STRING",
/* 476 */ "literal ::= duration_literal",
/* 477 */ "literal ::= NULL",
/* 478 */ "literal ::= NK_QUESTION",
/* 479 */ "duration_literal ::= NK_VARIABLE",
/* 480 */ "signed ::= NK_INTEGER",
/* 481 */ "signed ::= NK_PLUS NK_INTEGER",
/* 482 */ "signed ::= NK_MINUS NK_INTEGER",
/* 483 */ "signed ::= NK_FLOAT",
/* 484 */ "signed ::= NK_PLUS NK_FLOAT",
/* 485 */ "signed ::= NK_MINUS NK_FLOAT",
/* 486 */ "signed_literal ::= signed",
/* 487 */ "signed_literal ::= NK_STRING",
/* 488 */ "signed_literal ::= NK_BOOL",
/* 489 */ "signed_literal ::= TIMESTAMP NK_STRING",
/* 490 */ "signed_literal ::= duration_literal",
/* 491 */ "signed_literal ::= NULL",
/* 492 */ "signed_literal ::= literal_func",
/* 493 */ "signed_literal ::= NK_QUESTION",
/* 494 */ "literal_list ::= signed_literal",
/* 495 */ "literal_list ::= literal_list NK_COMMA signed_literal",
/* 496 */ "db_name ::= NK_ID",
/* 497 */ "table_name ::= NK_ID",
/* 498 */ "column_name ::= NK_ID",
/* 499 */ "function_name ::= NK_ID",
/* 500 */ "view_name ::= NK_ID",
/* 501 */ "table_alias ::= NK_ID",
/* 502 */ "column_alias ::= NK_ID",
/* 503 */ "column_alias ::= NK_ALIAS",
/* 504 */ "user_name ::= NK_ID",
/* 505 */ "topic_name ::= NK_ID",
/* 506 */ "stream_name ::= NK_ID",
/* 507 */ "cgroup_name ::= NK_ID",
/* 508 */ "index_name ::= NK_ID",
/* 509 */ "expr_or_subquery ::= expression",
/* 510 */ "expression ::= literal",
/* 511 */ "expression ::= pseudo_column",
/* 512 */ "expression ::= column_reference",
/* 513 */ "expression ::= function_expression",
/* 514 */ "expression ::= case_when_expression",
/* 515 */ "expression ::= NK_LP expression NK_RP",
/* 516 */ "expression ::= NK_PLUS expr_or_subquery",
/* 517 */ "expression ::= NK_MINUS expr_or_subquery",
/* 518 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
/* 519 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
/* 520 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
/* 521 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
/* 522 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
/* 523 */ "expression ::= column_reference NK_ARROW NK_STRING",
/* 524 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
/* 525 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
/* 526 */ "expression_list ::= expr_or_subquery",
/* 527 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
/* 528 */ "column_reference ::= column_name",
/* 529 */ "column_reference ::= table_name NK_DOT column_name",
/* 530 */ "column_reference ::= NK_ALIAS",
/* 531 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
/* 532 */ "pseudo_column ::= ROWTS",
/* 533 */ "pseudo_column ::= TBNAME",
/* 534 */ "pseudo_column ::= table_name NK_DOT TBNAME",
/* 535 */ "pseudo_column ::= QSTART",
/* 536 */ "pseudo_column ::= QEND",
/* 537 */ "pseudo_column ::= QDURATION",
/* 538 */ "pseudo_column ::= WSTART",
/* 539 */ "pseudo_column ::= WEND",
/* 540 */ "pseudo_column ::= WDURATION",
/* 541 */ "pseudo_column ::= IROWTS",
/* 542 */ "pseudo_column ::= ISFILLED",
/* 543 */ "pseudo_column ::= QTAGS",
/* 544 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
/* 545 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
/* 546 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
/* 547 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP",
/* 548 */ "function_expression ::= literal_func",
/* 549 */ "literal_func ::= noarg_func NK_LP NK_RP",
/* 550 */ "literal_func ::= NOW",
/* 551 */ "literal_func ::= TODAY",
/* 552 */ "noarg_func ::= NOW",
/* 553 */ "noarg_func ::= TODAY",
/* 554 */ "noarg_func ::= TIMEZONE",
/* 555 */ "noarg_func ::= DATABASE",
/* 556 */ "noarg_func ::= CLIENT_VERSION",
/* 557 */ "noarg_func ::= SERVER_VERSION",
/* 558 */ "noarg_func ::= SERVER_STATUS",
/* 559 */ "noarg_func ::= CURRENT_USER",
/* 560 */ "noarg_func ::= USER",
/* 561 */ "star_func ::= COUNT",
/* 562 */ "star_func ::= FIRST",
/* 563 */ "star_func ::= LAST",
/* 564 */ "star_func ::= LAST_ROW",
/* 565 */ "star_func_para_list ::= NK_STAR",
/* 566 */ "star_func_para_list ::= other_para_list",
/* 567 */ "other_para_list ::= star_func_para",
/* 568 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
/* 569 */ "star_func_para ::= expr_or_subquery",
/* 570 */ "star_func_para ::= table_name NK_DOT NK_STAR",
/* 571 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
/* 572 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
/* 573 */ "when_then_list ::= when_then_expr",
/* 574 */ "when_then_list ::= when_then_list when_then_expr",
/* 575 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
/* 576 */ "case_when_else_opt ::=",
/* 577 */ "case_when_else_opt ::= ELSE common_expression",
/* 578 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
/* 579 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
/* 580 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
/* 581 */ "predicate ::= expr_or_subquery IS NULL",
/* 582 */ "predicate ::= expr_or_subquery IS NOT NULL",
/* 583 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
/* 584 */ "compare_op ::= NK_LT",
/* 585 */ "compare_op ::= NK_GT",
/* 586 */ "compare_op ::= NK_LE",
/* 587 */ "compare_op ::= NK_GE",
/* 588 */ "compare_op ::= NK_NE",
/* 589 */ "compare_op ::= NK_EQ",
/* 590 */ "compare_op ::= LIKE",
/* 591 */ "compare_op ::= NOT LIKE",
/* 592 */ "compare_op ::= MATCH",
/* 593 */ "compare_op ::= NMATCH",
/* 594 */ "compare_op ::= CONTAINS",
/* 595 */ "in_op ::= IN",
/* 596 */ "in_op ::= NOT IN",
/* 597 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
/* 598 */ "boolean_value_expression ::= boolean_primary",
/* 599 */ "boolean_value_expression ::= NOT boolean_primary",
/* 600 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 601 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 602 */ "boolean_primary ::= predicate",
/* 603 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 604 */ "common_expression ::= expr_or_subquery",
/* 605 */ "common_expression ::= boolean_value_expression",
/* 606 */ "from_clause_opt ::=",
/* 607 */ "from_clause_opt ::= FROM table_reference_list",
/* 608 */ "table_reference_list ::= table_reference",
/* 609 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 610 */ "table_reference ::= table_primary",
/* 611 */ "table_reference ::= joined_table",
/* 612 */ "table_primary ::= table_name alias_opt",
/* 613 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 614 */ "table_primary ::= subquery alias_opt",
/* 615 */ "table_primary ::= parenthesized_joined_table",
/* 616 */ "alias_opt ::=",
/* 617 */ "alias_opt ::= table_alias",
/* 618 */ "alias_opt ::= AS table_alias",
/* 619 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 620 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 621 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
/* 622 */ "join_type ::=",
/* 623 */ "join_type ::= INNER",
/* 624 */ "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",
/* 625 */ "hint_list ::=",
/* 626 */ "hint_list ::= NK_HINT",
/* 627 */ "tag_mode_opt ::=",
/* 628 */ "tag_mode_opt ::= TAGS",
/* 629 */ "set_quantifier_opt ::=",
/* 630 */ "set_quantifier_opt ::= DISTINCT",
/* 631 */ "set_quantifier_opt ::= ALL",
/* 632 */ "select_list ::= select_item",
/* 633 */ "select_list ::= select_list NK_COMMA select_item",
/* 634 */ "select_item ::= NK_STAR",
/* 635 */ "select_item ::= common_expression",
/* 636 */ "select_item ::= common_expression column_alias",
/* 637 */ "select_item ::= common_expression AS column_alias",
/* 638 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 639 */ "where_clause_opt ::=",
/* 640 */ "where_clause_opt ::= WHERE search_condition",
/* 641 */ "partition_by_clause_opt ::=",
/* 642 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
/* 643 */ "partition_list ::= partition_item",
/* 644 */ "partition_list ::= partition_list NK_COMMA partition_item",
/* 645 */ "partition_item ::= expr_or_subquery",
/* 646 */ "partition_item ::= expr_or_subquery column_alias",
/* 647 */ "partition_item ::= expr_or_subquery AS column_alias",
/* 648 */ "twindow_clause_opt ::=",
/* 649 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
/* 650 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
/* 651 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 652 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 653 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
/* 654 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP",
/* 655 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 656 */ "sliding_opt ::=",
/* 657 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
/* 658 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
/* 659 */ "interval_sliding_duration_literal ::= NK_STRING",
/* 660 */ "interval_sliding_duration_literal ::= NK_INTEGER",
/* 661 */ "fill_opt ::=",
/* 662 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 663 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
/* 664 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
/* 665 */ "fill_mode ::= NONE",
/* 666 */ "fill_mode ::= PREV",
/* 667 */ "fill_mode ::= NULL",
/* 668 */ "fill_mode ::= NULL_F",
/* 669 */ "fill_mode ::= LINEAR",
/* 670 */ "fill_mode ::= NEXT",
/* 671 */ "group_by_clause_opt ::=",
/* 672 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 673 */ "group_by_list ::= expr_or_subquery",
/* 674 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
/* 675 */ "having_clause_opt ::=",
/* 676 */ "having_clause_opt ::= HAVING search_condition",
/* 677 */ "range_opt ::=",
/* 678 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
/* 679 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
/* 680 */ "every_opt ::=",
/* 681 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
/* 682 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 683 */ "query_simple ::= query_specification",
/* 684 */ "query_simple ::= union_query_expression",
/* 685 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
/* 686 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
/* 687 */ "query_simple_or_subquery ::= query_simple",
/* 688 */ "query_simple_or_subquery ::= subquery",
/* 689 */ "query_or_subquery ::= query_expression",
/* 690 */ "query_or_subquery ::= subquery",
/* 691 */ "order_by_clause_opt ::=",
/* 692 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 693 */ "slimit_clause_opt ::=",
/* 694 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 695 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 696 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 697 */ "limit_clause_opt ::=",
/* 698 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 699 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 700 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 701 */ "subquery ::= NK_LP query_expression NK_RP",
/* 702 */ "subquery ::= NK_LP subquery NK_RP",
/* 703 */ "search_condition ::= common_expression",
/* 704 */ "sort_specification_list ::= sort_specification",
/* 705 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 706 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
/* 707 */ "ordering_specification_opt ::=",
/* 708 */ "ordering_specification_opt ::= ASC",
/* 709 */ "ordering_specification_opt ::= DESC",
/* 710 */ "null_ordering_opt ::=",
/* 711 */ "null_ordering_opt ::= NULLS FIRST",
/* 712 */ "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 */
2024-04-15 08:12:15 +00:00
case 362: /* cmd */
case 365: /* literal */
case 374: /* with_opt */
case 380: /* search_condition */
case 385: /* db_options */
case 387: /* alter_db_options */
case 389: /* start_opt */
case 390: /* end_opt */
case 394: /* signed */
case 396: /* retention */
case 397: /* full_table_name */
case 400: /* table_options */
case 404: /* alter_table_clause */
case 405: /* alter_table_options */
case 408: /* tags_literal */
case 409: /* create_subtable_clause */
case 412: /* drop_table_clause */
case 414: /* column_def */
case 419: /* duration_literal */
case 420: /* rollup_func_name */
case 422: /* col_name */
case 425: /* like_pattern_opt */
case 426: /* db_name_cond_opt */
case 427: /* table_name_cond */
case 428: /* from_db_opt */
case 431: /* tag_item */
case 433: /* index_options */
case 434: /* full_index_name */
case 437: /* sliding_opt */
case 438: /* sma_stream_opt */
case 439: /* func */
case 443: /* query_or_subquery */
case 444: /* where_clause_opt */
case 447: /* explain_options */
case 448: /* insert_query */
case 453: /* full_view_name */
case 456: /* stream_options */
case 459: /* subtable_opt */
case 462: /* column_stream_def */
case 463: /* expression */
case 466: /* literal_func */
case 467: /* signed_literal */
case 470: /* expr_or_subquery */
case 471: /* pseudo_column */
case 472: /* column_reference */
case 473: /* function_expression */
case 474: /* case_when_expression */
case 479: /* star_func_para */
case 481: /* case_when_else_opt */
case 482: /* common_expression */
case 483: /* when_then_expr */
case 484: /* predicate */
case 487: /* in_predicate_value */
case 488: /* boolean_value_expression */
case 489: /* boolean_primary */
case 490: /* from_clause_opt */
case 491: /* table_reference_list */
case 492: /* table_reference */
case 493: /* table_primary */
case 494: /* joined_table */
case 496: /* subquery */
case 497: /* parenthesized_joined_table */
case 499: /* query_specification */
case 505: /* range_opt */
case 506: /* every_opt */
case 507: /* fill_opt */
case 508: /* twindow_clause_opt */
case 510: /* having_clause_opt */
case 511: /* select_item */
case 513: /* partition_item */
case 514: /* interval_sliding_duration_literal */
case 517: /* query_expression */
case 518: /* query_simple */
case 520: /* slimit_clause_opt */
case 521: /* limit_clause_opt */
case 522: /* union_query_expression */
case 523: /* query_simple_or_subquery */
case 525: /* sort_specification */
2022-06-22 08:35:14 +00:00
{
2024-04-15 08:12:15 +00:00
nodesDestroyNode((yypminor->yy872));
2022-06-22 08:35:14 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 363: /* account_options */
case 364: /* alter_account_options */
case 366: /* alter_account_option */
case 388: /* speed_opt */
case 442: /* with_meta */
case 451: /* bufsize_opt */
{
2022-06-22 08:35:14 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 367: /* ip_range_list */
case 368: /* white_list */
case 369: /* white_list_opt */
case 391: /* integer_list */
case 392: /* variable_list */
case 393: /* retention_list */
case 398: /* column_def_list */
case 399: /* tags_def_opt */
case 401: /* multi_create_clause */
case 402: /* tags_def */
case 403: /* multi_drop_clause */
case 410: /* specific_cols_opt */
case 411: /* tags_literal_list */
case 413: /* col_name_list */
case 416: /* duration_list */
case 417: /* rollup_func_list */
case 429: /* tag_list_opt */
case 436: /* func_list */
case 441: /* expression_list */
case 457: /* col_list_opt */
case 458: /* tag_def_or_ref_opt */
case 461: /* column_stream_def_list */
case 465: /* dnode_list */
case 468: /* literal_list */
case 476: /* star_func_para_list */
case 478: /* other_para_list */
case 480: /* when_then_list */
case 500: /* hint_list */
case 503: /* select_list */
case 504: /* partition_by_clause_opt */
case 509: /* group_by_clause_opt */
case 512: /* partition_list */
case 516: /* group_by_list */
case 519: /* order_by_clause_opt */
case 524: /* sort_specification_list */
{
2024-04-15 08:12:15 +00:00
nodesDestroyList((yypminor->yy376));
}
break;
2024-04-15 08:12:15 +00:00
case 370: /* user_name */
case 377: /* db_name */
case 378: /* table_name */
case 379: /* topic_name */
case 381: /* dnode_endpoint */
case 406: /* column_name */
case 421: /* function_name */
case 432: /* column_alias */
case 435: /* index_name */
case 440: /* sma_func_name */
case 445: /* cgroup_name */
case 452: /* language_opt */
case 454: /* view_name */
case 455: /* stream_name */
case 464: /* on_vgroup_id */
case 469: /* table_alias */
case 475: /* star_func */
case 477: /* noarg_func */
case 495: /* alias_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 371: /* sysinfo_opt */
2023-03-28 10:43:58 +00:00
{
}
break;
2024-04-15 08:12:15 +00:00
case 372: /* privileges */
case 375: /* priv_type_list */
case 376: /* priv_type */
{
}
break;
2024-04-15 08:12:15 +00:00
case 373: /* priv_level */
{
}
break;
2024-04-15 08:12:15 +00:00
case 382: /* force_opt */
case 383: /* unsafe_opt */
case 384: /* not_exists_opt */
case 386: /* exists_opt */
case 446: /* analyze_opt */
case 449: /* or_replace_opt */
case 450: /* agg_func_opt */
case 460: /* ignore_opt */
case 501: /* set_quantifier_opt */
case 502: /* tag_mode_opt */
{
2023-08-24 07:54:10 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 395: /* alter_db_option */
case 418: /* alter_table_option */
{
2022-03-31 11:38:17 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 407: /* type_name */
case 415: /* type_name_default_len */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 423: /* db_kind_opt */
case 430: /* table_kind */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 424: /* table_kind_db_name_cond_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 485: /* compare_op */
case 486: /* in_op */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 498: /* join_type */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 515: /* fill_mode */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 526: /* ordering_specification_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-04-15 08:12:15 +00:00
case 527: /* 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{
2024-03-26 11:56:15 +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[] = {
2024-04-15 08:12:15 +00:00
362, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
362, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
363, /* (2) account_options ::= */
363, /* (3) account_options ::= account_options PPS literal */
363, /* (4) account_options ::= account_options TSERIES literal */
363, /* (5) account_options ::= account_options STORAGE literal */
363, /* (6) account_options ::= account_options STREAMS literal */
363, /* (7) account_options ::= account_options QTIME literal */
363, /* (8) account_options ::= account_options DBS literal */
363, /* (9) account_options ::= account_options USERS literal */
363, /* (10) account_options ::= account_options CONNS literal */
363, /* (11) account_options ::= account_options STATE literal */
364, /* (12) alter_account_options ::= alter_account_option */
364, /* (13) alter_account_options ::= alter_account_options alter_account_option */
366, /* (14) alter_account_option ::= PASS literal */
366, /* (15) alter_account_option ::= PPS literal */
366, /* (16) alter_account_option ::= TSERIES literal */
366, /* (17) alter_account_option ::= STORAGE literal */
366, /* (18) alter_account_option ::= STREAMS literal */
366, /* (19) alter_account_option ::= QTIME literal */
366, /* (20) alter_account_option ::= DBS literal */
366, /* (21) alter_account_option ::= USERS literal */
366, /* (22) alter_account_option ::= CONNS literal */
366, /* (23) alter_account_option ::= STATE literal */
367, /* (24) ip_range_list ::= NK_STRING */
367, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
368, /* (26) white_list ::= HOST ip_range_list */
369, /* (27) white_list_opt ::= */
369, /* (28) white_list_opt ::= white_list */
362, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
362, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
362, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
362, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
362, /* (33) cmd ::= ALTER USER user_name ADD white_list */
362, /* (34) cmd ::= ALTER USER user_name DROP white_list */
362, /* (35) cmd ::= DROP USER user_name */
371, /* (36) sysinfo_opt ::= */
371, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
362, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
362, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
372, /* (40) privileges ::= ALL */
372, /* (41) privileges ::= priv_type_list */
372, /* (42) privileges ::= SUBSCRIBE */
375, /* (43) priv_type_list ::= priv_type */
375, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
376, /* (45) priv_type ::= READ */
376, /* (46) priv_type ::= WRITE */
376, /* (47) priv_type ::= ALTER */
373, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
373, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
373, /* (50) priv_level ::= db_name NK_DOT table_name */
373, /* (51) priv_level ::= topic_name */
374, /* (52) with_opt ::= */
374, /* (53) with_opt ::= WITH search_condition */
362, /* (54) cmd ::= CREATE ENCRYPT_KEY NK_STRING */
362, /* (55) cmd ::= CREATE DNODE dnode_endpoint */
362, /* (56) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
362, /* (57) cmd ::= DROP DNODE NK_INTEGER force_opt */
362, /* (58) cmd ::= DROP DNODE dnode_endpoint force_opt */
362, /* (59) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
362, /* (60) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
362, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
362, /* (62) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
362, /* (63) cmd ::= ALTER ALL DNODES NK_STRING */
362, /* (64) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
362, /* (65) cmd ::= RESTORE DNODE NK_INTEGER */
381, /* (66) dnode_endpoint ::= NK_STRING */
381, /* (67) dnode_endpoint ::= NK_ID */
381, /* (68) dnode_endpoint ::= NK_IPTOKEN */
382, /* (69) force_opt ::= */
382, /* (70) force_opt ::= FORCE */
383, /* (71) unsafe_opt ::= UNSAFE */
362, /* (72) cmd ::= ALTER CLUSTER NK_STRING */
362, /* (73) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
362, /* (74) cmd ::= ALTER LOCAL NK_STRING */
362, /* (75) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
362, /* (76) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
362, /* (77) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
362, /* (78) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
362, /* (79) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
362, /* (80) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
362, /* (81) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
362, /* (82) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
362, /* (83) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
362, /* (84) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
362, /* (85) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
362, /* (86) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
362, /* (87) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
362, /* (88) cmd ::= DROP DATABASE exists_opt db_name */
362, /* (89) cmd ::= USE db_name */
362, /* (90) cmd ::= ALTER DATABASE db_name alter_db_options */
362, /* (91) cmd ::= FLUSH DATABASE db_name */
362, /* (92) cmd ::= TRIM DATABASE db_name speed_opt */
362, /* (93) cmd ::= S3MIGRATE DATABASE db_name */
362, /* (94) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
384, /* (95) not_exists_opt ::= IF NOT EXISTS */
384, /* (96) not_exists_opt ::= */
386, /* (97) exists_opt ::= IF EXISTS */
386, /* (98) exists_opt ::= */
385, /* (99) db_options ::= */
385, /* (100) db_options ::= db_options BUFFER NK_INTEGER */
385, /* (101) db_options ::= db_options CACHEMODEL NK_STRING */
385, /* (102) db_options ::= db_options CACHESIZE NK_INTEGER */
385, /* (103) db_options ::= db_options COMP NK_INTEGER */
385, /* (104) db_options ::= db_options DURATION NK_INTEGER */
385, /* (105) db_options ::= db_options DURATION NK_VARIABLE */
385, /* (106) db_options ::= db_options MAXROWS NK_INTEGER */
385, /* (107) db_options ::= db_options MINROWS NK_INTEGER */
385, /* (108) db_options ::= db_options KEEP integer_list */
385, /* (109) db_options ::= db_options KEEP variable_list */
385, /* (110) db_options ::= db_options PAGES NK_INTEGER */
385, /* (111) db_options ::= db_options PAGESIZE NK_INTEGER */
385, /* (112) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
385, /* (113) db_options ::= db_options PRECISION NK_STRING */
385, /* (114) db_options ::= db_options REPLICA NK_INTEGER */
385, /* (115) db_options ::= db_options VGROUPS NK_INTEGER */
385, /* (116) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
385, /* (117) db_options ::= db_options RETENTIONS retention_list */
385, /* (118) db_options ::= db_options SCHEMALESS NK_INTEGER */
385, /* (119) db_options ::= db_options WAL_LEVEL NK_INTEGER */
385, /* (120) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
385, /* (121) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
385, /* (122) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
385, /* (123) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
385, /* (124) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
385, /* (125) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
385, /* (126) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
385, /* (127) db_options ::= db_options STT_TRIGGER NK_INTEGER */
385, /* (128) db_options ::= db_options TABLE_PREFIX signed */
385, /* (129) db_options ::= db_options TABLE_SUFFIX signed */
385, /* (130) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */
385, /* (131) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */
385, /* (132) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */
385, /* (133) db_options ::= db_options S3_COMPACT NK_INTEGER */
385, /* (134) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
385, /* (135) db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */
387, /* (136) alter_db_options ::= alter_db_option */
387, /* (137) alter_db_options ::= alter_db_options alter_db_option */
395, /* (138) alter_db_option ::= BUFFER NK_INTEGER */
395, /* (139) alter_db_option ::= CACHEMODEL NK_STRING */
395, /* (140) alter_db_option ::= CACHESIZE NK_INTEGER */
395, /* (141) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
395, /* (142) alter_db_option ::= KEEP integer_list */
395, /* (143) alter_db_option ::= KEEP variable_list */
395, /* (144) alter_db_option ::= PAGES NK_INTEGER */
395, /* (145) alter_db_option ::= REPLICA NK_INTEGER */
395, /* (146) alter_db_option ::= WAL_LEVEL NK_INTEGER */
395, /* (147) alter_db_option ::= STT_TRIGGER NK_INTEGER */
395, /* (148) alter_db_option ::= MINROWS NK_INTEGER */
395, /* (149) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
395, /* (150) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
395, /* (151) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
395, /* (152) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
395, /* (153) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */
395, /* (154) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */
395, /* (155) alter_db_option ::= S3_COMPACT NK_INTEGER */
395, /* (156) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
395, /* (157) alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */
391, /* (158) integer_list ::= NK_INTEGER */
391, /* (159) integer_list ::= integer_list NK_COMMA NK_INTEGER */
392, /* (160) variable_list ::= NK_VARIABLE */
392, /* (161) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
393, /* (162) retention_list ::= retention */
393, /* (163) retention_list ::= retention_list NK_COMMA retention */
396, /* (164) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
396, /* (165) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
388, /* (166) speed_opt ::= */
388, /* (167) speed_opt ::= BWLIMIT NK_INTEGER */
389, /* (168) start_opt ::= */
389, /* (169) start_opt ::= START WITH NK_INTEGER */
389, /* (170) start_opt ::= START WITH NK_STRING */
389, /* (171) start_opt ::= START WITH TIMESTAMP NK_STRING */
390, /* (172) end_opt ::= */
390, /* (173) end_opt ::= END WITH NK_INTEGER */
390, /* (174) end_opt ::= END WITH NK_STRING */
390, /* (175) end_opt ::= END WITH TIMESTAMP NK_STRING */
362, /* (176) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
362, /* (177) cmd ::= CREATE TABLE multi_create_clause */
362, /* (178) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
362, /* (179) cmd ::= DROP TABLE multi_drop_clause */
362, /* (180) cmd ::= DROP STABLE exists_opt full_table_name */
362, /* (181) cmd ::= ALTER TABLE alter_table_clause */
362, /* (182) cmd ::= ALTER STABLE alter_table_clause */
404, /* (183) alter_table_clause ::= full_table_name alter_table_options */
404, /* (184) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
404, /* (185) alter_table_clause ::= full_table_name DROP COLUMN column_name */
404, /* (186) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
404, /* (187) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
404, /* (188) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
404, /* (189) alter_table_clause ::= full_table_name DROP TAG column_name */
404, /* (190) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
404, /* (191) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
404, /* (192) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
401, /* (193) multi_create_clause ::= create_subtable_clause */
401, /* (194) multi_create_clause ::= multi_create_clause create_subtable_clause */
409, /* (195) 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 */
403, /* (196) multi_drop_clause ::= drop_table_clause */
403, /* (197) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
412, /* (198) drop_table_clause ::= exists_opt full_table_name */
410, /* (199) specific_cols_opt ::= */
410, /* (200) specific_cols_opt ::= NK_LP col_name_list NK_RP */
397, /* (201) full_table_name ::= table_name */
397, /* (202) full_table_name ::= db_name NK_DOT table_name */
398, /* (203) column_def_list ::= column_def */
398, /* (204) column_def_list ::= column_def_list NK_COMMA column_def */
414, /* (205) column_def ::= column_name type_name */
414, /* (206) column_def ::= column_name type_name PRIMARY KEY */
407, /* (207) type_name ::= BOOL */
407, /* (208) type_name ::= TINYINT */
407, /* (209) type_name ::= SMALLINT */
407, /* (210) type_name ::= INT */
407, /* (211) type_name ::= INTEGER */
407, /* (212) type_name ::= BIGINT */
407, /* (213) type_name ::= FLOAT */
407, /* (214) type_name ::= DOUBLE */
407, /* (215) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
407, /* (216) type_name ::= TIMESTAMP */
407, /* (217) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
407, /* (218) type_name ::= TINYINT UNSIGNED */
407, /* (219) type_name ::= SMALLINT UNSIGNED */
407, /* (220) type_name ::= INT UNSIGNED */
407, /* (221) type_name ::= BIGINT UNSIGNED */
407, /* (222) type_name ::= JSON */
407, /* (223) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
407, /* (224) type_name ::= MEDIUMBLOB */
407, /* (225) type_name ::= BLOB */
407, /* (226) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
407, /* (227) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
407, /* (228) type_name ::= DECIMAL */
407, /* (229) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
407, /* (230) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
415, /* (231) type_name_default_len ::= BINARY */
415, /* (232) type_name_default_len ::= NCHAR */
415, /* (233) type_name_default_len ::= VARCHAR */
415, /* (234) type_name_default_len ::= VARBINARY */
399, /* (235) tags_def_opt ::= */
399, /* (236) tags_def_opt ::= tags_def */
402, /* (237) tags_def ::= TAGS NK_LP column_def_list NK_RP */
400, /* (238) table_options ::= */
400, /* (239) table_options ::= table_options COMMENT NK_STRING */
400, /* (240) table_options ::= table_options MAX_DELAY duration_list */
400, /* (241) table_options ::= table_options WATERMARK duration_list */
400, /* (242) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
400, /* (243) table_options ::= table_options TTL NK_INTEGER */
400, /* (244) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
400, /* (245) table_options ::= table_options DELETE_MARK duration_list */
405, /* (246) alter_table_options ::= alter_table_option */
405, /* (247) alter_table_options ::= alter_table_options alter_table_option */
418, /* (248) alter_table_option ::= COMMENT NK_STRING */
418, /* (249) alter_table_option ::= TTL NK_INTEGER */
416, /* (250) duration_list ::= duration_literal */
416, /* (251) duration_list ::= duration_list NK_COMMA duration_literal */
417, /* (252) rollup_func_list ::= rollup_func_name */
417, /* (253) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
420, /* (254) rollup_func_name ::= function_name */
420, /* (255) rollup_func_name ::= FIRST */
420, /* (256) rollup_func_name ::= LAST */
413, /* (257) col_name_list ::= col_name */
413, /* (258) col_name_list ::= col_name_list NK_COMMA col_name */
422, /* (259) col_name ::= column_name */
362, /* (260) cmd ::= SHOW DNODES */
362, /* (261) cmd ::= SHOW USERS */
362, /* (262) cmd ::= SHOW USER PRIVILEGES */
362, /* (263) cmd ::= SHOW db_kind_opt DATABASES */
362, /* (264) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
362, /* (265) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
362, /* (266) cmd ::= SHOW db_name_cond_opt VGROUPS */
362, /* (267) cmd ::= SHOW MNODES */
362, /* (268) cmd ::= SHOW QNODES */
362, /* (269) cmd ::= SHOW ARBGROUPS */
362, /* (270) cmd ::= SHOW FUNCTIONS */
362, /* (271) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
362, /* (272) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
362, /* (273) cmd ::= SHOW STREAMS */
362, /* (274) cmd ::= SHOW ACCOUNTS */
362, /* (275) cmd ::= SHOW APPS */
362, /* (276) cmd ::= SHOW CONNECTIONS */
362, /* (277) cmd ::= SHOW LICENCES */
362, /* (278) cmd ::= SHOW GRANTS */
362, /* (279) cmd ::= SHOW GRANTS FULL */
362, /* (280) cmd ::= SHOW GRANTS LOGS */
362, /* (281) cmd ::= SHOW CLUSTER MACHINES */
362, /* (282) cmd ::= SHOW CREATE DATABASE db_name */
362, /* (283) cmd ::= SHOW CREATE TABLE full_table_name */
362, /* (284) cmd ::= SHOW CREATE STABLE full_table_name */
362, /* (285) cmd ::= SHOW ENCRYPTIONS */
362, /* (286) cmd ::= SHOW QUERIES */
362, /* (287) cmd ::= SHOW SCORES */
362, /* (288) cmd ::= SHOW TOPICS */
362, /* (289) cmd ::= SHOW VARIABLES */
362, /* (290) cmd ::= SHOW CLUSTER VARIABLES */
362, /* (291) cmd ::= SHOW LOCAL VARIABLES */
362, /* (292) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
362, /* (293) cmd ::= SHOW BNODES */
362, /* (294) cmd ::= SHOW SNODES */
362, /* (295) cmd ::= SHOW CLUSTER */
362, /* (296) cmd ::= SHOW TRANSACTIONS */
362, /* (297) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
362, /* (298) cmd ::= SHOW CONSUMERS */
362, /* (299) cmd ::= SHOW SUBSCRIPTIONS */
362, /* (300) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
362, /* (301) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
362, /* (302) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
362, /* (303) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
362, /* (304) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
362, /* (305) cmd ::= SHOW VNODES */
362, /* (306) cmd ::= SHOW db_name_cond_opt ALIVE */
362, /* (307) cmd ::= SHOW CLUSTER ALIVE */
362, /* (308) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
362, /* (309) cmd ::= SHOW CREATE VIEW full_table_name */
362, /* (310) cmd ::= SHOW COMPACTS */
362, /* (311) cmd ::= SHOW COMPACT NK_INTEGER */
424, /* (312) table_kind_db_name_cond_opt ::= */
424, /* (313) table_kind_db_name_cond_opt ::= table_kind */
424, /* (314) table_kind_db_name_cond_opt ::= db_name NK_DOT */
424, /* (315) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
430, /* (316) table_kind ::= NORMAL */
430, /* (317) table_kind ::= CHILD */
426, /* (318) db_name_cond_opt ::= */
426, /* (319) db_name_cond_opt ::= db_name NK_DOT */
425, /* (320) like_pattern_opt ::= */
425, /* (321) like_pattern_opt ::= LIKE NK_STRING */
427, /* (322) table_name_cond ::= table_name */
428, /* (323) from_db_opt ::= */
428, /* (324) from_db_opt ::= FROM db_name */
429, /* (325) tag_list_opt ::= */
429, /* (326) tag_list_opt ::= tag_item */
429, /* (327) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
431, /* (328) tag_item ::= TBNAME */
431, /* (329) tag_item ::= QTAGS */
431, /* (330) tag_item ::= column_name */
431, /* (331) tag_item ::= column_name column_alias */
431, /* (332) tag_item ::= column_name AS column_alias */
423, /* (333) db_kind_opt ::= */
423, /* (334) db_kind_opt ::= USER */
423, /* (335) db_kind_opt ::= SYSTEM */
362, /* (336) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
362, /* (337) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
362, /* (338) cmd ::= DROP INDEX exists_opt full_index_name */
434, /* (339) full_index_name ::= index_name */
434, /* (340) full_index_name ::= db_name NK_DOT index_name */
433, /* (341) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
433, /* (342) 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 */
436, /* (343) func_list ::= func */
436, /* (344) func_list ::= func_list NK_COMMA func */
439, /* (345) func ::= sma_func_name NK_LP expression_list NK_RP */
440, /* (346) sma_func_name ::= function_name */
440, /* (347) sma_func_name ::= COUNT */
440, /* (348) sma_func_name ::= FIRST */
440, /* (349) sma_func_name ::= LAST */
440, /* (350) sma_func_name ::= LAST_ROW */
438, /* (351) sma_stream_opt ::= */
438, /* (352) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
438, /* (353) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
438, /* (354) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
442, /* (355) with_meta ::= AS */
442, /* (356) with_meta ::= WITH META AS */
442, /* (357) with_meta ::= ONLY META AS */
362, /* (358) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
362, /* (359) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
362, /* (360) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
362, /* (361) cmd ::= DROP TOPIC exists_opt topic_name */
362, /* (362) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
362, /* (363) cmd ::= DESC full_table_name */
362, /* (364) cmd ::= DESCRIBE full_table_name */
362, /* (365) cmd ::= RESET QUERY CACHE */
362, /* (366) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
362, /* (367) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
446, /* (368) analyze_opt ::= */
446, /* (369) analyze_opt ::= ANALYZE */
447, /* (370) explain_options ::= */
447, /* (371) explain_options ::= explain_options VERBOSE NK_BOOL */
447, /* (372) explain_options ::= explain_options RATIO NK_FLOAT */
362, /* (373) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
362, /* (374) cmd ::= DROP FUNCTION exists_opt function_name */
450, /* (375) agg_func_opt ::= */
450, /* (376) agg_func_opt ::= AGGREGATE */
451, /* (377) bufsize_opt ::= */
451, /* (378) bufsize_opt ::= BUFSIZE NK_INTEGER */
452, /* (379) language_opt ::= */
452, /* (380) language_opt ::= LANGUAGE NK_STRING */
449, /* (381) or_replace_opt ::= */
449, /* (382) or_replace_opt ::= OR REPLACE */
362, /* (383) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
362, /* (384) cmd ::= DROP VIEW exists_opt full_view_name */
453, /* (385) full_view_name ::= view_name */
453, /* (386) full_view_name ::= db_name NK_DOT view_name */
362, /* (387) 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 */
362, /* (388) cmd ::= DROP STREAM exists_opt stream_name */
362, /* (389) cmd ::= PAUSE STREAM exists_opt stream_name */
362, /* (390) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
457, /* (391) col_list_opt ::= */
457, /* (392) col_list_opt ::= NK_LP column_stream_def_list NK_RP */
461, /* (393) column_stream_def_list ::= column_stream_def */
461, /* (394) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */
462, /* (395) column_stream_def ::= column_name */
462, /* (396) column_stream_def ::= column_name PRIMARY KEY */
458, /* (397) tag_def_or_ref_opt ::= */
458, /* (398) tag_def_or_ref_opt ::= tags_def */
458, /* (399) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */
456, /* (400) stream_options ::= */
456, /* (401) stream_options ::= stream_options TRIGGER AT_ONCE */
456, /* (402) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
456, /* (403) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
456, /* (404) stream_options ::= stream_options WATERMARK duration_literal */
456, /* (405) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
456, /* (406) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
456, /* (407) stream_options ::= stream_options DELETE_MARK duration_literal */
456, /* (408) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
459, /* (409) subtable_opt ::= */
459, /* (410) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
460, /* (411) ignore_opt ::= */
460, /* (412) ignore_opt ::= IGNORE UNTREATED */
362, /* (413) cmd ::= KILL CONNECTION NK_INTEGER */
362, /* (414) cmd ::= KILL QUERY NK_STRING */
362, /* (415) cmd ::= KILL TRANSACTION NK_INTEGER */
362, /* (416) cmd ::= KILL COMPACT NK_INTEGER */
362, /* (417) cmd ::= BALANCE VGROUP */
362, /* (418) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
362, /* (419) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
362, /* (420) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
362, /* (421) cmd ::= SPLIT VGROUP NK_INTEGER */
464, /* (422) on_vgroup_id ::= */
464, /* (423) on_vgroup_id ::= ON NK_INTEGER */
465, /* (424) dnode_list ::= DNODE NK_INTEGER */
465, /* (425) dnode_list ::= dnode_list DNODE NK_INTEGER */
362, /* (426) cmd ::= DELETE FROM full_table_name where_clause_opt */
362, /* (427) cmd ::= query_or_subquery */
362, /* (428) cmd ::= insert_query */
448, /* (429) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
448, /* (430) insert_query ::= INSERT INTO full_table_name query_or_subquery */
408, /* (431) tags_literal ::= NK_INTEGER */
408, /* (432) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
408, /* (433) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */
408, /* (434) tags_literal ::= NK_PLUS NK_INTEGER */
408, /* (435) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
408, /* (436) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */
408, /* (437) tags_literal ::= NK_MINUS NK_INTEGER */
408, /* (438) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */
408, /* (439) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */
408, /* (440) tags_literal ::= NK_FLOAT */
408, /* (441) tags_literal ::= NK_PLUS NK_FLOAT */
408, /* (442) tags_literal ::= NK_MINUS NK_FLOAT */
408, /* (443) tags_literal ::= NK_BIN */
408, /* (444) tags_literal ::= NK_BIN NK_PLUS duration_literal */
408, /* (445) tags_literal ::= NK_BIN NK_MINUS duration_literal */
408, /* (446) tags_literal ::= NK_PLUS NK_BIN */
408, /* (447) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */
408, /* (448) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */
408, /* (449) tags_literal ::= NK_MINUS NK_BIN */
408, /* (450) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */
408, /* (451) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */
408, /* (452) tags_literal ::= NK_HEX */
408, /* (453) tags_literal ::= NK_HEX NK_PLUS duration_literal */
408, /* (454) tags_literal ::= NK_HEX NK_MINUS duration_literal */
408, /* (455) tags_literal ::= NK_PLUS NK_HEX */
408, /* (456) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */
408, /* (457) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */
408, /* (458) tags_literal ::= NK_MINUS NK_HEX */
408, /* (459) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */
408, /* (460) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */
408, /* (461) tags_literal ::= NK_STRING */
408, /* (462) tags_literal ::= NK_STRING NK_PLUS duration_literal */
408, /* (463) tags_literal ::= NK_STRING NK_MINUS duration_literal */
408, /* (464) tags_literal ::= NK_BOOL */
408, /* (465) tags_literal ::= NULL */
408, /* (466) tags_literal ::= literal_func */
408, /* (467) tags_literal ::= literal_func NK_PLUS duration_literal */
408, /* (468) tags_literal ::= literal_func NK_MINUS duration_literal */
411, /* (469) tags_literal_list ::= tags_literal */
411, /* (470) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
365, /* (471) literal ::= NK_INTEGER */
365, /* (472) literal ::= NK_FLOAT */
365, /* (473) literal ::= NK_STRING */
365, /* (474) literal ::= NK_BOOL */
365, /* (475) literal ::= TIMESTAMP NK_STRING */
365, /* (476) literal ::= duration_literal */
365, /* (477) literal ::= NULL */
365, /* (478) literal ::= NK_QUESTION */
419, /* (479) duration_literal ::= NK_VARIABLE */
394, /* (480) signed ::= NK_INTEGER */
394, /* (481) signed ::= NK_PLUS NK_INTEGER */
394, /* (482) signed ::= NK_MINUS NK_INTEGER */
394, /* (483) signed ::= NK_FLOAT */
394, /* (484) signed ::= NK_PLUS NK_FLOAT */
394, /* (485) signed ::= NK_MINUS NK_FLOAT */
467, /* (486) signed_literal ::= signed */
467, /* (487) signed_literal ::= NK_STRING */
467, /* (488) signed_literal ::= NK_BOOL */
467, /* (489) signed_literal ::= TIMESTAMP NK_STRING */
467, /* (490) signed_literal ::= duration_literal */
467, /* (491) signed_literal ::= NULL */
467, /* (492) signed_literal ::= literal_func */
467, /* (493) signed_literal ::= NK_QUESTION */
468, /* (494) literal_list ::= signed_literal */
468, /* (495) literal_list ::= literal_list NK_COMMA signed_literal */
377, /* (496) db_name ::= NK_ID */
378, /* (497) table_name ::= NK_ID */
406, /* (498) column_name ::= NK_ID */
421, /* (499) function_name ::= NK_ID */
454, /* (500) view_name ::= NK_ID */
469, /* (501) table_alias ::= NK_ID */
432, /* (502) column_alias ::= NK_ID */
432, /* (503) column_alias ::= NK_ALIAS */
370, /* (504) user_name ::= NK_ID */
379, /* (505) topic_name ::= NK_ID */
455, /* (506) stream_name ::= NK_ID */
445, /* (507) cgroup_name ::= NK_ID */
435, /* (508) index_name ::= NK_ID */
470, /* (509) expr_or_subquery ::= expression */
463, /* (510) expression ::= literal */
463, /* (511) expression ::= pseudo_column */
463, /* (512) expression ::= column_reference */
463, /* (513) expression ::= function_expression */
463, /* (514) expression ::= case_when_expression */
463, /* (515) expression ::= NK_LP expression NK_RP */
463, /* (516) expression ::= NK_PLUS expr_or_subquery */
463, /* (517) expression ::= NK_MINUS expr_or_subquery */
463, /* (518) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
463, /* (519) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
463, /* (520) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
463, /* (521) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
463, /* (522) expression ::= expr_or_subquery NK_REM expr_or_subquery */
463, /* (523) expression ::= column_reference NK_ARROW NK_STRING */
463, /* (524) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
463, /* (525) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
441, /* (526) expression_list ::= expr_or_subquery */
441, /* (527) expression_list ::= expression_list NK_COMMA expr_or_subquery */
472, /* (528) column_reference ::= column_name */
472, /* (529) column_reference ::= table_name NK_DOT column_name */
472, /* (530) column_reference ::= NK_ALIAS */
472, /* (531) column_reference ::= table_name NK_DOT NK_ALIAS */
471, /* (532) pseudo_column ::= ROWTS */
471, /* (533) pseudo_column ::= TBNAME */
471, /* (534) pseudo_column ::= table_name NK_DOT TBNAME */
471, /* (535) pseudo_column ::= QSTART */
471, /* (536) pseudo_column ::= QEND */
471, /* (537) pseudo_column ::= QDURATION */
471, /* (538) pseudo_column ::= WSTART */
471, /* (539) pseudo_column ::= WEND */
471, /* (540) pseudo_column ::= WDURATION */
471, /* (541) pseudo_column ::= IROWTS */
471, /* (542) pseudo_column ::= ISFILLED */
471, /* (543) pseudo_column ::= QTAGS */
473, /* (544) function_expression ::= function_name NK_LP expression_list NK_RP */
473, /* (545) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
473, /* (546) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
473, /* (547) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */
473, /* (548) function_expression ::= literal_func */
466, /* (549) literal_func ::= noarg_func NK_LP NK_RP */
466, /* (550) literal_func ::= NOW */
466, /* (551) literal_func ::= TODAY */
477, /* (552) noarg_func ::= NOW */
477, /* (553) noarg_func ::= TODAY */
477, /* (554) noarg_func ::= TIMEZONE */
477, /* (555) noarg_func ::= DATABASE */
477, /* (556) noarg_func ::= CLIENT_VERSION */
477, /* (557) noarg_func ::= SERVER_VERSION */
477, /* (558) noarg_func ::= SERVER_STATUS */
477, /* (559) noarg_func ::= CURRENT_USER */
477, /* (560) noarg_func ::= USER */
475, /* (561) star_func ::= COUNT */
475, /* (562) star_func ::= FIRST */
475, /* (563) star_func ::= LAST */
475, /* (564) star_func ::= LAST_ROW */
476, /* (565) star_func_para_list ::= NK_STAR */
476, /* (566) star_func_para_list ::= other_para_list */
478, /* (567) other_para_list ::= star_func_para */
478, /* (568) other_para_list ::= other_para_list NK_COMMA star_func_para */
479, /* (569) star_func_para ::= expr_or_subquery */
479, /* (570) star_func_para ::= table_name NK_DOT NK_STAR */
474, /* (571) case_when_expression ::= CASE when_then_list case_when_else_opt END */
474, /* (572) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
480, /* (573) when_then_list ::= when_then_expr */
480, /* (574) when_then_list ::= when_then_list when_then_expr */
483, /* (575) when_then_expr ::= WHEN common_expression THEN common_expression */
481, /* (576) case_when_else_opt ::= */
481, /* (577) case_when_else_opt ::= ELSE common_expression */
484, /* (578) predicate ::= expr_or_subquery compare_op expr_or_subquery */
484, /* (579) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
484, /* (580) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
484, /* (581) predicate ::= expr_or_subquery IS NULL */
484, /* (582) predicate ::= expr_or_subquery IS NOT NULL */
484, /* (583) predicate ::= expr_or_subquery in_op in_predicate_value */
485, /* (584) compare_op ::= NK_LT */
485, /* (585) compare_op ::= NK_GT */
485, /* (586) compare_op ::= NK_LE */
485, /* (587) compare_op ::= NK_GE */
485, /* (588) compare_op ::= NK_NE */
485, /* (589) compare_op ::= NK_EQ */
485, /* (590) compare_op ::= LIKE */
485, /* (591) compare_op ::= NOT LIKE */
485, /* (592) compare_op ::= MATCH */
485, /* (593) compare_op ::= NMATCH */
485, /* (594) compare_op ::= CONTAINS */
486, /* (595) in_op ::= IN */
486, /* (596) in_op ::= NOT IN */
487, /* (597) in_predicate_value ::= NK_LP literal_list NK_RP */
488, /* (598) boolean_value_expression ::= boolean_primary */
488, /* (599) boolean_value_expression ::= NOT boolean_primary */
488, /* (600) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
488, /* (601) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
489, /* (602) boolean_primary ::= predicate */
489, /* (603) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
482, /* (604) common_expression ::= expr_or_subquery */
482, /* (605) common_expression ::= boolean_value_expression */
490, /* (606) from_clause_opt ::= */
490, /* (607) from_clause_opt ::= FROM table_reference_list */
491, /* (608) table_reference_list ::= table_reference */
491, /* (609) table_reference_list ::= table_reference_list NK_COMMA table_reference */
492, /* (610) table_reference ::= table_primary */
492, /* (611) table_reference ::= joined_table */
493, /* (612) table_primary ::= table_name alias_opt */
493, /* (613) table_primary ::= db_name NK_DOT table_name alias_opt */
493, /* (614) table_primary ::= subquery alias_opt */
493, /* (615) table_primary ::= parenthesized_joined_table */
495, /* (616) alias_opt ::= */
495, /* (617) alias_opt ::= table_alias */
495, /* (618) alias_opt ::= AS table_alias */
497, /* (619) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
497, /* (620) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
494, /* (621) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
498, /* (622) join_type ::= */
498, /* (623) join_type ::= INNER */
499, /* (624) 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 */
500, /* (625) hint_list ::= */
500, /* (626) hint_list ::= NK_HINT */
502, /* (627) tag_mode_opt ::= */
502, /* (628) tag_mode_opt ::= TAGS */
501, /* (629) set_quantifier_opt ::= */
501, /* (630) set_quantifier_opt ::= DISTINCT */
501, /* (631) set_quantifier_opt ::= ALL */
503, /* (632) select_list ::= select_item */
503, /* (633) select_list ::= select_list NK_COMMA select_item */
511, /* (634) select_item ::= NK_STAR */
511, /* (635) select_item ::= common_expression */
511, /* (636) select_item ::= common_expression column_alias */
511, /* (637) select_item ::= common_expression AS column_alias */
511, /* (638) select_item ::= table_name NK_DOT NK_STAR */
444, /* (639) where_clause_opt ::= */
444, /* (640) where_clause_opt ::= WHERE search_condition */
504, /* (641) partition_by_clause_opt ::= */
504, /* (642) partition_by_clause_opt ::= PARTITION BY partition_list */
512, /* (643) partition_list ::= partition_item */
512, /* (644) partition_list ::= partition_list NK_COMMA partition_item */
513, /* (645) partition_item ::= expr_or_subquery */
513, /* (646) partition_item ::= expr_or_subquery column_alias */
513, /* (647) partition_item ::= expr_or_subquery AS column_alias */
508, /* (648) twindow_clause_opt ::= */
508, /* (649) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
508, /* (650) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
508, /* (651) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
508, /* (652) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
508, /* (653) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
508, /* (654) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
508, /* (655) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
437, /* (656) sliding_opt ::= */
437, /* (657) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
514, /* (658) interval_sliding_duration_literal ::= NK_VARIABLE */
514, /* (659) interval_sliding_duration_literal ::= NK_STRING */
514, /* (660) interval_sliding_duration_literal ::= NK_INTEGER */
507, /* (661) fill_opt ::= */
507, /* (662) fill_opt ::= FILL NK_LP fill_mode NK_RP */
507, /* (663) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
507, /* (664) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
515, /* (665) fill_mode ::= NONE */
515, /* (666) fill_mode ::= PREV */
515, /* (667) fill_mode ::= NULL */
515, /* (668) fill_mode ::= NULL_F */
515, /* (669) fill_mode ::= LINEAR */
515, /* (670) fill_mode ::= NEXT */
509, /* (671) group_by_clause_opt ::= */
509, /* (672) group_by_clause_opt ::= GROUP BY group_by_list */
516, /* (673) group_by_list ::= expr_or_subquery */
516, /* (674) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
510, /* (675) having_clause_opt ::= */
510, /* (676) having_clause_opt ::= HAVING search_condition */
505, /* (677) range_opt ::= */
505, /* (678) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
505, /* (679) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
506, /* (680) every_opt ::= */
506, /* (681) every_opt ::= EVERY NK_LP duration_literal NK_RP */
517, /* (682) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
518, /* (683) query_simple ::= query_specification */
518, /* (684) query_simple ::= union_query_expression */
522, /* (685) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
522, /* (686) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
523, /* (687) query_simple_or_subquery ::= query_simple */
523, /* (688) query_simple_or_subquery ::= subquery */
443, /* (689) query_or_subquery ::= query_expression */
443, /* (690) query_or_subquery ::= subquery */
519, /* (691) order_by_clause_opt ::= */
519, /* (692) order_by_clause_opt ::= ORDER BY sort_specification_list */
520, /* (693) slimit_clause_opt ::= */
520, /* (694) slimit_clause_opt ::= SLIMIT NK_INTEGER */
520, /* (695) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
520, /* (696) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
521, /* (697) limit_clause_opt ::= */
521, /* (698) limit_clause_opt ::= LIMIT NK_INTEGER */
521, /* (699) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
521, /* (700) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
496, /* (701) subquery ::= NK_LP query_expression NK_RP */
496, /* (702) subquery ::= NK_LP subquery NK_RP */
380, /* (703) search_condition ::= common_expression */
524, /* (704) sort_specification_list ::= sort_specification */
524, /* (705) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
525, /* (706) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
526, /* (707) ordering_specification_opt ::= */
526, /* (708) ordering_specification_opt ::= ASC */
526, /* (709) ordering_specification_opt ::= DESC */
527, /* (710) null_ordering_opt ::= */
527, /* (711) null_ordering_opt ::= NULLS FIRST */
527, /* (712) 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 */
2024-03-26 11:56:15 +00:00
-3, /* (54) cmd ::= CREATE ENCRYPT_KEY NK_STRING */
-3, /* (55) cmd ::= CREATE DNODE dnode_endpoint */
-5, /* (56) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
-4, /* (57) cmd ::= DROP DNODE NK_INTEGER force_opt */
-4, /* (58) cmd ::= DROP DNODE dnode_endpoint force_opt */
-4, /* (59) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
-4, /* (60) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
-4, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
-5, /* (62) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
-4, /* (63) cmd ::= ALTER ALL DNODES NK_STRING */
-5, /* (64) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
-3, /* (65) cmd ::= RESTORE DNODE NK_INTEGER */
-1, /* (66) dnode_endpoint ::= NK_STRING */
-1, /* (67) dnode_endpoint ::= NK_ID */
-1, /* (68) dnode_endpoint ::= NK_IPTOKEN */
0, /* (69) force_opt ::= */
-1, /* (70) force_opt ::= FORCE */
-1, /* (71) unsafe_opt ::= UNSAFE */
-3, /* (72) cmd ::= ALTER CLUSTER NK_STRING */
-4, /* (73) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
-3, /* (74) cmd ::= ALTER LOCAL NK_STRING */
-4, /* (75) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
-5, /* (76) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
-5, /* (77) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
-5, /* (78) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
-5, /* (79) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
-5, /* (80) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
-5, /* (81) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
-5, /* (82) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
-5, /* (83) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
-5, /* (84) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
-5, /* (85) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
-5, /* (86) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
-5, /* (87) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
-4, /* (88) cmd ::= DROP DATABASE exists_opt db_name */
-2, /* (89) cmd ::= USE db_name */
-4, /* (90) cmd ::= ALTER DATABASE db_name alter_db_options */
-3, /* (91) cmd ::= FLUSH DATABASE db_name */
-4, /* (92) cmd ::= TRIM DATABASE db_name speed_opt */
2024-04-15 08:12:15 +00:00
-3, /* (93) cmd ::= S3MIGRATE DATABASE db_name */
-5, /* (94) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
-3, /* (95) not_exists_opt ::= IF NOT EXISTS */
0, /* (96) not_exists_opt ::= */
-2, /* (97) exists_opt ::= IF EXISTS */
0, /* (98) exists_opt ::= */
0, /* (99) db_options ::= */
-3, /* (100) db_options ::= db_options BUFFER NK_INTEGER */
-3, /* (101) db_options ::= db_options CACHEMODEL NK_STRING */
-3, /* (102) db_options ::= db_options CACHESIZE NK_INTEGER */
-3, /* (103) db_options ::= db_options COMP NK_INTEGER */
-3, /* (104) db_options ::= db_options DURATION NK_INTEGER */
-3, /* (105) db_options ::= db_options DURATION NK_VARIABLE */
-3, /* (106) db_options ::= db_options MAXROWS NK_INTEGER */
-3, /* (107) db_options ::= db_options MINROWS NK_INTEGER */
-3, /* (108) db_options ::= db_options KEEP integer_list */
-3, /* (109) db_options ::= db_options KEEP variable_list */
-3, /* (110) db_options ::= db_options PAGES NK_INTEGER */
-3, /* (111) db_options ::= db_options PAGESIZE NK_INTEGER */
-3, /* (112) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
-3, /* (113) db_options ::= db_options PRECISION NK_STRING */
-3, /* (114) db_options ::= db_options REPLICA NK_INTEGER */
-3, /* (115) db_options ::= db_options VGROUPS NK_INTEGER */
-3, /* (116) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
-3, /* (117) db_options ::= db_options RETENTIONS retention_list */
-3, /* (118) db_options ::= db_options SCHEMALESS NK_INTEGER */
-3, /* (119) db_options ::= db_options WAL_LEVEL NK_INTEGER */
-3, /* (120) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
-3, /* (121) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
-4, /* (122) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-3, /* (123) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
-4, /* (124) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-3, /* (125) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
-3, /* (126) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
-3, /* (127) db_options ::= db_options STT_TRIGGER NK_INTEGER */
-3, /* (128) db_options ::= db_options TABLE_PREFIX signed */
-3, /* (129) db_options ::= db_options TABLE_SUFFIX signed */
-3, /* (130) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */
-3, /* (131) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */
-3, /* (132) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */
-3, /* (133) db_options ::= db_options S3_COMPACT NK_INTEGER */
-3, /* (134) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
-3, /* (135) db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */
-1, /* (136) alter_db_options ::= alter_db_option */
-2, /* (137) alter_db_options ::= alter_db_options alter_db_option */
-2, /* (138) alter_db_option ::= BUFFER NK_INTEGER */
-2, /* (139) alter_db_option ::= CACHEMODEL NK_STRING */
-2, /* (140) alter_db_option ::= CACHESIZE NK_INTEGER */
-2, /* (141) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
-2, /* (142) alter_db_option ::= KEEP integer_list */
-2, /* (143) alter_db_option ::= KEEP variable_list */
-2, /* (144) alter_db_option ::= PAGES NK_INTEGER */
-2, /* (145) alter_db_option ::= REPLICA NK_INTEGER */
-2, /* (146) alter_db_option ::= WAL_LEVEL NK_INTEGER */
-2, /* (147) alter_db_option ::= STT_TRIGGER NK_INTEGER */
-2, /* (148) alter_db_option ::= MINROWS NK_INTEGER */
-2, /* (149) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
-3, /* (150) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-2, /* (151) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
-3, /* (152) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-2, /* (153) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */
-2, /* (154) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */
-2, /* (155) alter_db_option ::= S3_COMPACT NK_INTEGER */
-2, /* (156) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
-2, /* (157) alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */
-1, /* (158) integer_list ::= NK_INTEGER */
-3, /* (159) integer_list ::= integer_list NK_COMMA NK_INTEGER */
-1, /* (160) variable_list ::= NK_VARIABLE */
-3, /* (161) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
-1, /* (162) retention_list ::= retention */
-3, /* (163) retention_list ::= retention_list NK_COMMA retention */
-3, /* (164) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
-3, /* (165) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
0, /* (166) speed_opt ::= */
-2, /* (167) speed_opt ::= BWLIMIT NK_INTEGER */
0, /* (168) start_opt ::= */
-3, /* (169) start_opt ::= START WITH NK_INTEGER */
-3, /* (170) start_opt ::= START WITH NK_STRING */
-4, /* (171) start_opt ::= START WITH TIMESTAMP NK_STRING */
0, /* (172) end_opt ::= */
-3, /* (173) end_opt ::= END WITH NK_INTEGER */
-3, /* (174) end_opt ::= END WITH NK_STRING */
-4, /* (175) end_opt ::= END WITH TIMESTAMP NK_STRING */
-9, /* (176) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
-3, /* (177) cmd ::= CREATE TABLE multi_create_clause */
-9, /* (178) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
-3, /* (179) cmd ::= DROP TABLE multi_drop_clause */
-4, /* (180) cmd ::= DROP STABLE exists_opt full_table_name */
-3, /* (181) cmd ::= ALTER TABLE alter_table_clause */
-3, /* (182) cmd ::= ALTER STABLE alter_table_clause */
-2, /* (183) alter_table_clause ::= full_table_name alter_table_options */
-5, /* (184) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
-4, /* (185) alter_table_clause ::= full_table_name DROP COLUMN column_name */
-5, /* (186) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
-5, /* (187) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-5, /* (188) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-4, /* (189) alter_table_clause ::= full_table_name DROP TAG column_name */
-5, /* (190) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-5, /* (191) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
-6, /* (192) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
-1, /* (193) multi_create_clause ::= create_subtable_clause */
-2, /* (194) multi_create_clause ::= multi_create_clause create_subtable_clause */
-10, /* (195) 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, /* (196) multi_drop_clause ::= drop_table_clause */
-3, /* (197) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
-2, /* (198) drop_table_clause ::= exists_opt full_table_name */
0, /* (199) specific_cols_opt ::= */
-3, /* (200) specific_cols_opt ::= NK_LP col_name_list NK_RP */
-1, /* (201) full_table_name ::= table_name */
-3, /* (202) full_table_name ::= db_name NK_DOT table_name */
-1, /* (203) column_def_list ::= column_def */
-3, /* (204) column_def_list ::= column_def_list NK_COMMA column_def */
-2, /* (205) column_def ::= column_name type_name */
-4, /* (206) column_def ::= column_name type_name PRIMARY KEY */
-1, /* (207) type_name ::= BOOL */
-1, /* (208) type_name ::= TINYINT */
-1, /* (209) type_name ::= SMALLINT */
-1, /* (210) type_name ::= INT */
-1, /* (211) type_name ::= INTEGER */
-1, /* (212) type_name ::= BIGINT */
-1, /* (213) type_name ::= FLOAT */
-1, /* (214) type_name ::= DOUBLE */
-4, /* (215) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-1, /* (216) type_name ::= TIMESTAMP */
-4, /* (217) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-2, /* (218) type_name ::= TINYINT UNSIGNED */
-2, /* (219) type_name ::= SMALLINT UNSIGNED */
-2, /* (220) type_name ::= INT UNSIGNED */
-2, /* (221) type_name ::= BIGINT UNSIGNED */
-1, /* (222) type_name ::= JSON */
-4, /* (223) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-1, /* (224) type_name ::= MEDIUMBLOB */
-1, /* (225) type_name ::= BLOB */
-4, /* (226) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-4, /* (227) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
-1, /* (228) type_name ::= DECIMAL */
-4, /* (229) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-6, /* (230) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
-1, /* (231) type_name_default_len ::= BINARY */
-1, /* (232) type_name_default_len ::= NCHAR */
-1, /* (233) type_name_default_len ::= VARCHAR */
-1, /* (234) type_name_default_len ::= VARBINARY */
0, /* (235) tags_def_opt ::= */
-1, /* (236) tags_def_opt ::= tags_def */
-4, /* (237) tags_def ::= TAGS NK_LP column_def_list NK_RP */
0, /* (238) table_options ::= */
-3, /* (239) table_options ::= table_options COMMENT NK_STRING */
-3, /* (240) table_options ::= table_options MAX_DELAY duration_list */
-3, /* (241) table_options ::= table_options WATERMARK duration_list */
-5, /* (242) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
-3, /* (243) table_options ::= table_options TTL NK_INTEGER */
-5, /* (244) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-3, /* (245) table_options ::= table_options DELETE_MARK duration_list */
-1, /* (246) alter_table_options ::= alter_table_option */
-2, /* (247) alter_table_options ::= alter_table_options alter_table_option */
-2, /* (248) alter_table_option ::= COMMENT NK_STRING */
-2, /* (249) alter_table_option ::= TTL NK_INTEGER */
-1, /* (250) duration_list ::= duration_literal */
-3, /* (251) duration_list ::= duration_list NK_COMMA duration_literal */
-1, /* (252) rollup_func_list ::= rollup_func_name */
-3, /* (253) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
-1, /* (254) rollup_func_name ::= function_name */
-1, /* (255) rollup_func_name ::= FIRST */
-1, /* (256) rollup_func_name ::= LAST */
-1, /* (257) col_name_list ::= col_name */
-3, /* (258) col_name_list ::= col_name_list NK_COMMA col_name */
-1, /* (259) col_name ::= column_name */
-2, /* (260) cmd ::= SHOW DNODES */
-2, /* (261) cmd ::= SHOW USERS */
-3, /* (262) cmd ::= SHOW USER PRIVILEGES */
-3, /* (263) cmd ::= SHOW db_kind_opt DATABASES */
-4, /* (264) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
-4, /* (265) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-3, /* (266) cmd ::= SHOW db_name_cond_opt VGROUPS */
-2, /* (267) cmd ::= SHOW MNODES */
-2, /* (268) cmd ::= SHOW QNODES */
-2, /* (269) cmd ::= SHOW ARBGROUPS */
-2, /* (270) cmd ::= SHOW FUNCTIONS */
-5, /* (271) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-6, /* (272) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
-2, /* (273) cmd ::= SHOW STREAMS */
-2, /* (274) cmd ::= SHOW ACCOUNTS */
-2, /* (275) cmd ::= SHOW APPS */
-2, /* (276) cmd ::= SHOW CONNECTIONS */
-2, /* (277) cmd ::= SHOW LICENCES */
-2, /* (278) cmd ::= SHOW GRANTS */
-3, /* (279) cmd ::= SHOW GRANTS FULL */
-3, /* (280) cmd ::= SHOW GRANTS LOGS */
-3, /* (281) cmd ::= SHOW CLUSTER MACHINES */
-4, /* (282) cmd ::= SHOW CREATE DATABASE db_name */
-4, /* (283) cmd ::= SHOW CREATE TABLE full_table_name */
-4, /* (284) cmd ::= SHOW CREATE STABLE full_table_name */
-2, /* (285) cmd ::= SHOW ENCRYPTIONS */
-2, /* (286) cmd ::= SHOW QUERIES */
-2, /* (287) cmd ::= SHOW SCORES */
-2, /* (288) cmd ::= SHOW TOPICS */
-2, /* (289) cmd ::= SHOW VARIABLES */
-3, /* (290) cmd ::= SHOW CLUSTER VARIABLES */
-3, /* (291) cmd ::= SHOW LOCAL VARIABLES */
-5, /* (292) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
-2, /* (293) cmd ::= SHOW BNODES */
-2, /* (294) cmd ::= SHOW SNODES */
-2, /* (295) cmd ::= SHOW CLUSTER */
-2, /* (296) cmd ::= SHOW TRANSACTIONS */
-4, /* (297) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
-2, /* (298) cmd ::= SHOW CONSUMERS */
-2, /* (299) cmd ::= SHOW SUBSCRIPTIONS */
-5, /* (300) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
-6, /* (301) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
-7, /* (302) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
-8, /* (303) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
-5, /* (304) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
-2, /* (305) cmd ::= SHOW VNODES */
-3, /* (306) cmd ::= SHOW db_name_cond_opt ALIVE */
-3, /* (307) cmd ::= SHOW CLUSTER ALIVE */
-4, /* (308) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
-4, /* (309) cmd ::= SHOW CREATE VIEW full_table_name */
-2, /* (310) cmd ::= SHOW COMPACTS */
-3, /* (311) cmd ::= SHOW COMPACT NK_INTEGER */
0, /* (312) table_kind_db_name_cond_opt ::= */
-1, /* (313) table_kind_db_name_cond_opt ::= table_kind */
-2, /* (314) table_kind_db_name_cond_opt ::= db_name NK_DOT */
-3, /* (315) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
-1, /* (316) table_kind ::= NORMAL */
-1, /* (317) table_kind ::= CHILD */
0, /* (318) db_name_cond_opt ::= */
-2, /* (319) db_name_cond_opt ::= db_name NK_DOT */
0, /* (320) like_pattern_opt ::= */
-2, /* (321) like_pattern_opt ::= LIKE NK_STRING */
-1, /* (322) table_name_cond ::= table_name */
0, /* (323) from_db_opt ::= */
-2, /* (324) from_db_opt ::= FROM db_name */
0, /* (325) tag_list_opt ::= */
-1, /* (326) tag_list_opt ::= tag_item */
-3, /* (327) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
-1, /* (328) tag_item ::= TBNAME */
-1, /* (329) tag_item ::= QTAGS */
-1, /* (330) tag_item ::= column_name */
-2, /* (331) tag_item ::= column_name column_alias */
-3, /* (332) tag_item ::= column_name AS column_alias */
0, /* (333) db_kind_opt ::= */
-1, /* (334) db_kind_opt ::= USER */
-1, /* (335) db_kind_opt ::= SYSTEM */
-8, /* (336) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
-9, /* (337) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
-4, /* (338) cmd ::= DROP INDEX exists_opt full_index_name */
-1, /* (339) full_index_name ::= index_name */
-3, /* (340) full_index_name ::= db_name NK_DOT index_name */
-10, /* (341) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
-12, /* (342) 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, /* (343) func_list ::= func */
-3, /* (344) func_list ::= func_list NK_COMMA func */
-4, /* (345) func ::= sma_func_name NK_LP expression_list NK_RP */
-1, /* (346) sma_func_name ::= function_name */
-1, /* (347) sma_func_name ::= COUNT */
-1, /* (348) sma_func_name ::= FIRST */
-1, /* (349) sma_func_name ::= LAST */
-1, /* (350) sma_func_name ::= LAST_ROW */
0, /* (351) sma_stream_opt ::= */
-3, /* (352) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
-3, /* (353) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
-3, /* (354) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
-1, /* (355) with_meta ::= AS */
-3, /* (356) with_meta ::= WITH META AS */
-3, /* (357) with_meta ::= ONLY META AS */
-6, /* (358) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
-7, /* (359) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
-8, /* (360) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
-4, /* (361) cmd ::= DROP TOPIC exists_opt topic_name */
-7, /* (362) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
-2, /* (363) cmd ::= DESC full_table_name */
-2, /* (364) cmd ::= DESCRIBE full_table_name */
-3, /* (365) cmd ::= RESET QUERY CACHE */
-4, /* (366) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
-4, /* (367) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
0, /* (368) analyze_opt ::= */
-1, /* (369) analyze_opt ::= ANALYZE */
0, /* (370) explain_options ::= */
-3, /* (371) explain_options ::= explain_options VERBOSE NK_BOOL */
-3, /* (372) explain_options ::= explain_options RATIO NK_FLOAT */
-12, /* (373) 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, /* (374) cmd ::= DROP FUNCTION exists_opt function_name */
0, /* (375) agg_func_opt ::= */
-1, /* (376) agg_func_opt ::= AGGREGATE */
0, /* (377) bufsize_opt ::= */
-2, /* (378) bufsize_opt ::= BUFSIZE NK_INTEGER */
0, /* (379) language_opt ::= */
-2, /* (380) language_opt ::= LANGUAGE NK_STRING */
0, /* (381) or_replace_opt ::= */
-2, /* (382) or_replace_opt ::= OR REPLACE */
-6, /* (383) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
-4, /* (384) cmd ::= DROP VIEW exists_opt full_view_name */
-1, /* (385) full_view_name ::= view_name */
-3, /* (386) full_view_name ::= db_name NK_DOT view_name */
-12, /* (387) 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, /* (388) cmd ::= DROP STREAM exists_opt stream_name */
-4, /* (389) cmd ::= PAUSE STREAM exists_opt stream_name */
-5, /* (390) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
0, /* (391) col_list_opt ::= */
-3, /* (392) col_list_opt ::= NK_LP column_stream_def_list NK_RP */
-1, /* (393) column_stream_def_list ::= column_stream_def */
-3, /* (394) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */
-1, /* (395) column_stream_def ::= column_name */
-3, /* (396) column_stream_def ::= column_name PRIMARY KEY */
0, /* (397) tag_def_or_ref_opt ::= */
-1, /* (398) tag_def_or_ref_opt ::= tags_def */
-4, /* (399) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */
0, /* (400) stream_options ::= */
-3, /* (401) stream_options ::= stream_options TRIGGER AT_ONCE */
-3, /* (402) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
-4, /* (403) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
-3, /* (404) stream_options ::= stream_options WATERMARK duration_literal */
-4, /* (405) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
-3, /* (406) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
-3, /* (407) stream_options ::= stream_options DELETE_MARK duration_literal */
-4, /* (408) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
0, /* (409) subtable_opt ::= */
-4, /* (410) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
0, /* (411) ignore_opt ::= */
-2, /* (412) ignore_opt ::= IGNORE UNTREATED */
-3, /* (413) cmd ::= KILL CONNECTION NK_INTEGER */
-3, /* (414) cmd ::= KILL QUERY NK_STRING */
-3, /* (415) cmd ::= KILL TRANSACTION NK_INTEGER */
-3, /* (416) cmd ::= KILL COMPACT NK_INTEGER */
-2, /* (417) cmd ::= BALANCE VGROUP */
-4, /* (418) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
-4, /* (419) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
-4, /* (420) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-3, /* (421) cmd ::= SPLIT VGROUP NK_INTEGER */
0, /* (422) on_vgroup_id ::= */
-2, /* (423) on_vgroup_id ::= ON NK_INTEGER */
-2, /* (424) dnode_list ::= DNODE NK_INTEGER */
-3, /* (425) dnode_list ::= dnode_list DNODE NK_INTEGER */
-4, /* (426) cmd ::= DELETE FROM full_table_name where_clause_opt */
-1, /* (427) cmd ::= query_or_subquery */
-1, /* (428) cmd ::= insert_query */
-7, /* (429) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
-4, /* (430) insert_query ::= INSERT INTO full_table_name query_or_subquery */
-1, /* (431) tags_literal ::= NK_INTEGER */
-3, /* (432) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
-3, /* (433) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */
-2, /* (434) tags_literal ::= NK_PLUS NK_INTEGER */
-4, /* (435) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
-4, /* (436) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */
-2, /* (437) tags_literal ::= NK_MINUS NK_INTEGER */
-4, /* (438) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */
-4, /* (439) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */
-1, /* (440) tags_literal ::= NK_FLOAT */
-2, /* (441) tags_literal ::= NK_PLUS NK_FLOAT */
-2, /* (442) tags_literal ::= NK_MINUS NK_FLOAT */
-1, /* (443) tags_literal ::= NK_BIN */
-3, /* (444) tags_literal ::= NK_BIN NK_PLUS duration_literal */
-3, /* (445) tags_literal ::= NK_BIN NK_MINUS duration_literal */
-2, /* (446) tags_literal ::= NK_PLUS NK_BIN */
-4, /* (447) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */
-4, /* (448) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */
-2, /* (449) tags_literal ::= NK_MINUS NK_BIN */
-4, /* (450) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */
-4, /* (451) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */
-1, /* (452) tags_literal ::= NK_HEX */
-3, /* (453) tags_literal ::= NK_HEX NK_PLUS duration_literal */
-3, /* (454) tags_literal ::= NK_HEX NK_MINUS duration_literal */
-2, /* (455) tags_literal ::= NK_PLUS NK_HEX */
-4, /* (456) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */
-4, /* (457) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */
-2, /* (458) tags_literal ::= NK_MINUS NK_HEX */
-4, /* (459) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */
-4, /* (460) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */
-1, /* (461) tags_literal ::= NK_STRING */
-3, /* (462) tags_literal ::= NK_STRING NK_PLUS duration_literal */
-3, /* (463) tags_literal ::= NK_STRING NK_MINUS duration_literal */
-1, /* (464) tags_literal ::= NK_BOOL */
-1, /* (465) tags_literal ::= NULL */
-1, /* (466) tags_literal ::= literal_func */
-3, /* (467) tags_literal ::= literal_func NK_PLUS duration_literal */
-3, /* (468) tags_literal ::= literal_func NK_MINUS duration_literal */
-1, /* (469) tags_literal_list ::= tags_literal */
-3, /* (470) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
-1, /* (471) literal ::= NK_INTEGER */
-1, /* (472) literal ::= NK_FLOAT */
-1, /* (473) literal ::= NK_STRING */
-1, /* (474) literal ::= NK_BOOL */
-2, /* (475) literal ::= TIMESTAMP NK_STRING */
-1, /* (476) literal ::= duration_literal */
-1, /* (477) literal ::= NULL */
-1, /* (478) literal ::= NK_QUESTION */
-1, /* (479) duration_literal ::= NK_VARIABLE */
-1, /* (480) signed ::= NK_INTEGER */
-2, /* (481) signed ::= NK_PLUS NK_INTEGER */
-2, /* (482) signed ::= NK_MINUS NK_INTEGER */
-1, /* (483) signed ::= NK_FLOAT */
-2, /* (484) signed ::= NK_PLUS NK_FLOAT */
-2, /* (485) signed ::= NK_MINUS NK_FLOAT */
-1, /* (486) signed_literal ::= signed */
-1, /* (487) signed_literal ::= NK_STRING */
-1, /* (488) signed_literal ::= NK_BOOL */
-2, /* (489) signed_literal ::= TIMESTAMP NK_STRING */
-1, /* (490) signed_literal ::= duration_literal */
-1, /* (491) signed_literal ::= NULL */
-1, /* (492) signed_literal ::= literal_func */
-1, /* (493) signed_literal ::= NK_QUESTION */
-1, /* (494) literal_list ::= signed_literal */
-3, /* (495) literal_list ::= literal_list NK_COMMA signed_literal */
-1, /* (496) db_name ::= NK_ID */
-1, /* (497) table_name ::= NK_ID */
-1, /* (498) column_name ::= NK_ID */
-1, /* (499) function_name ::= NK_ID */
-1, /* (500) view_name ::= NK_ID */
-1, /* (501) table_alias ::= NK_ID */
-1, /* (502) column_alias ::= NK_ID */
-1, /* (503) column_alias ::= NK_ALIAS */
-1, /* (504) user_name ::= NK_ID */
-1, /* (505) topic_name ::= NK_ID */
-1, /* (506) stream_name ::= NK_ID */
-1, /* (507) cgroup_name ::= NK_ID */
-1, /* (508) index_name ::= NK_ID */
-1, /* (509) expr_or_subquery ::= expression */
-1, /* (510) expression ::= literal */
-1, /* (511) expression ::= pseudo_column */
-1, /* (512) expression ::= column_reference */
-1, /* (513) expression ::= function_expression */
-1, /* (514) expression ::= case_when_expression */
-3, /* (515) expression ::= NK_LP expression NK_RP */
-2, /* (516) expression ::= NK_PLUS expr_or_subquery */
-2, /* (517) expression ::= NK_MINUS expr_or_subquery */
-3, /* (518) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
-3, /* (519) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
-3, /* (520) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
-3, /* (521) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
-3, /* (522) expression ::= expr_or_subquery NK_REM expr_or_subquery */
-3, /* (523) expression ::= column_reference NK_ARROW NK_STRING */
-3, /* (524) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
-3, /* (525) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
-1, /* (526) expression_list ::= expr_or_subquery */
-3, /* (527) expression_list ::= expression_list NK_COMMA expr_or_subquery */
-1, /* (528) column_reference ::= column_name */
-3, /* (529) column_reference ::= table_name NK_DOT column_name */
-1, /* (530) column_reference ::= NK_ALIAS */
-3, /* (531) column_reference ::= table_name NK_DOT NK_ALIAS */
-1, /* (532) pseudo_column ::= ROWTS */
-1, /* (533) pseudo_column ::= TBNAME */
-3, /* (534) pseudo_column ::= table_name NK_DOT TBNAME */
-1, /* (535) pseudo_column ::= QSTART */
-1, /* (536) pseudo_column ::= QEND */
-1, /* (537) pseudo_column ::= QDURATION */
-1, /* (538) pseudo_column ::= WSTART */
-1, /* (539) pseudo_column ::= WEND */
-1, /* (540) pseudo_column ::= WDURATION */
-1, /* (541) pseudo_column ::= IROWTS */
-1, /* (542) pseudo_column ::= ISFILLED */
-1, /* (543) pseudo_column ::= QTAGS */
-4, /* (544) function_expression ::= function_name NK_LP expression_list NK_RP */
-4, /* (545) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
-6, /* (546) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
-6, /* (547) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */
-1, /* (548) function_expression ::= literal_func */
-3, /* (549) literal_func ::= noarg_func NK_LP NK_RP */
-1, /* (550) literal_func ::= NOW */
-1, /* (551) literal_func ::= TODAY */
-1, /* (552) noarg_func ::= NOW */
-1, /* (553) noarg_func ::= TODAY */
-1, /* (554) noarg_func ::= TIMEZONE */
-1, /* (555) noarg_func ::= DATABASE */
-1, /* (556) noarg_func ::= CLIENT_VERSION */
-1, /* (557) noarg_func ::= SERVER_VERSION */
-1, /* (558) noarg_func ::= SERVER_STATUS */
-1, /* (559) noarg_func ::= CURRENT_USER */
-1, /* (560) noarg_func ::= USER */
-1, /* (561) star_func ::= COUNT */
-1, /* (562) star_func ::= FIRST */
-1, /* (563) star_func ::= LAST */
-1, /* (564) star_func ::= LAST_ROW */
-1, /* (565) star_func_para_list ::= NK_STAR */
-1, /* (566) star_func_para_list ::= other_para_list */
-1, /* (567) other_para_list ::= star_func_para */
-3, /* (568) other_para_list ::= other_para_list NK_COMMA star_func_para */
-1, /* (569) star_func_para ::= expr_or_subquery */
-3, /* (570) star_func_para ::= table_name NK_DOT NK_STAR */
-4, /* (571) case_when_expression ::= CASE when_then_list case_when_else_opt END */
-5, /* (572) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
-1, /* (573) when_then_list ::= when_then_expr */
-2, /* (574) when_then_list ::= when_then_list when_then_expr */
-4, /* (575) when_then_expr ::= WHEN common_expression THEN common_expression */
0, /* (576) case_when_else_opt ::= */
-2, /* (577) case_when_else_opt ::= ELSE common_expression */
-3, /* (578) predicate ::= expr_or_subquery compare_op expr_or_subquery */
-5, /* (579) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
-6, /* (580) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
-3, /* (581) predicate ::= expr_or_subquery IS NULL */
-4, /* (582) predicate ::= expr_or_subquery IS NOT NULL */
-3, /* (583) predicate ::= expr_or_subquery in_op in_predicate_value */
-1, /* (584) compare_op ::= NK_LT */
-1, /* (585) compare_op ::= NK_GT */
-1, /* (586) compare_op ::= NK_LE */
-1, /* (587) compare_op ::= NK_GE */
-1, /* (588) compare_op ::= NK_NE */
-1, /* (589) compare_op ::= NK_EQ */
-1, /* (590) compare_op ::= LIKE */
-2, /* (591) compare_op ::= NOT LIKE */
-1, /* (592) compare_op ::= MATCH */
-1, /* (593) compare_op ::= NMATCH */
-1, /* (594) compare_op ::= CONTAINS */
-1, /* (595) in_op ::= IN */
-2, /* (596) in_op ::= NOT IN */
-3, /* (597) in_predicate_value ::= NK_LP literal_list NK_RP */
-1, /* (598) boolean_value_expression ::= boolean_primary */
-2, /* (599) boolean_value_expression ::= NOT boolean_primary */
-3, /* (600) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
-3, /* (601) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
-1, /* (602) boolean_primary ::= predicate */
-3, /* (603) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
-1, /* (604) common_expression ::= expr_or_subquery */
-1, /* (605) common_expression ::= boolean_value_expression */
0, /* (606) from_clause_opt ::= */
-2, /* (607) from_clause_opt ::= FROM table_reference_list */
-1, /* (608) table_reference_list ::= table_reference */
-3, /* (609) table_reference_list ::= table_reference_list NK_COMMA table_reference */
-1, /* (610) table_reference ::= table_primary */
-1, /* (611) table_reference ::= joined_table */
-2, /* (612) table_primary ::= table_name alias_opt */
-4, /* (613) table_primary ::= db_name NK_DOT table_name alias_opt */
-2, /* (614) table_primary ::= subquery alias_opt */
-1, /* (615) table_primary ::= parenthesized_joined_table */
0, /* (616) alias_opt ::= */
-1, /* (617) alias_opt ::= table_alias */
-2, /* (618) alias_opt ::= AS table_alias */
-3, /* (619) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
-3, /* (620) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
-6, /* (621) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
0, /* (622) join_type ::= */
-1, /* (623) join_type ::= INNER */
-14, /* (624) 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, /* (625) hint_list ::= */
-1, /* (626) hint_list ::= NK_HINT */
0, /* (627) tag_mode_opt ::= */
-1, /* (628) tag_mode_opt ::= TAGS */
0, /* (629) set_quantifier_opt ::= */
-1, /* (630) set_quantifier_opt ::= DISTINCT */
-1, /* (631) set_quantifier_opt ::= ALL */
-1, /* (632) select_list ::= select_item */
-3, /* (633) select_list ::= select_list NK_COMMA select_item */
-1, /* (634) select_item ::= NK_STAR */
-1, /* (635) select_item ::= common_expression */
-2, /* (636) select_item ::= common_expression column_alias */
-3, /* (637) select_item ::= common_expression AS column_alias */
-3, /* (638) select_item ::= table_name NK_DOT NK_STAR */
0, /* (639) where_clause_opt ::= */
-2, /* (640) where_clause_opt ::= WHERE search_condition */
0, /* (641) partition_by_clause_opt ::= */
-3, /* (642) partition_by_clause_opt ::= PARTITION BY partition_list */
-1, /* (643) partition_list ::= partition_item */
-3, /* (644) partition_list ::= partition_list NK_COMMA partition_item */
-1, /* (645) partition_item ::= expr_or_subquery */
-2, /* (646) partition_item ::= expr_or_subquery column_alias */
-3, /* (647) partition_item ::= expr_or_subquery AS column_alias */
0, /* (648) twindow_clause_opt ::= */
-6, /* (649) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
-4, /* (650) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
-6, /* (651) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-8, /* (652) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-7, /* (653) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
-4, /* (654) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
-6, /* (655) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (656) sliding_opt ::= */
-4, /* (657) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
-1, /* (658) interval_sliding_duration_literal ::= NK_VARIABLE */
-1, /* (659) interval_sliding_duration_literal ::= NK_STRING */
-1, /* (660) interval_sliding_duration_literal ::= NK_INTEGER */
0, /* (661) fill_opt ::= */
-4, /* (662) fill_opt ::= FILL NK_LP fill_mode NK_RP */
-6, /* (663) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
-6, /* (664) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
-1, /* (665) fill_mode ::= NONE */
-1, /* (666) fill_mode ::= PREV */
-1, /* (667) fill_mode ::= NULL */
-1, /* (668) fill_mode ::= NULL_F */
-1, /* (669) fill_mode ::= LINEAR */
-1, /* (670) fill_mode ::= NEXT */
0, /* (671) group_by_clause_opt ::= */
-3, /* (672) group_by_clause_opt ::= GROUP BY group_by_list */
-1, /* (673) group_by_list ::= expr_or_subquery */
-3, /* (674) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
0, /* (675) having_clause_opt ::= */
-2, /* (676) having_clause_opt ::= HAVING search_condition */
0, /* (677) range_opt ::= */
-6, /* (678) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
-4, /* (679) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
0, /* (680) every_opt ::= */
-4, /* (681) every_opt ::= EVERY NK_LP duration_literal NK_RP */
-4, /* (682) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
-1, /* (683) query_simple ::= query_specification */
-1, /* (684) query_simple ::= union_query_expression */
-4, /* (685) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
-3, /* (686) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
-1, /* (687) query_simple_or_subquery ::= query_simple */
-1, /* (688) query_simple_or_subquery ::= subquery */
-1, /* (689) query_or_subquery ::= query_expression */
-1, /* (690) query_or_subquery ::= subquery */
0, /* (691) order_by_clause_opt ::= */
-3, /* (692) order_by_clause_opt ::= ORDER BY sort_specification_list */
0, /* (693) slimit_clause_opt ::= */
-2, /* (694) slimit_clause_opt ::= SLIMIT NK_INTEGER */
-4, /* (695) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
-4, /* (696) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
0, /* (697) limit_clause_opt ::= */
-2, /* (698) limit_clause_opt ::= LIMIT NK_INTEGER */
-4, /* (699) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
-4, /* (700) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
-3, /* (701) subquery ::= NK_LP query_expression NK_RP */
-3, /* (702) subquery ::= NK_LP subquery NK_RP */
-1, /* (703) search_condition ::= common_expression */
-1, /* (704) sort_specification_list ::= sort_specification */
-3, /* (705) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
-3, /* (706) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
0, /* (707) ordering_specification_opt ::= */
-1, /* (708) ordering_specification_opt ::= ASC */
-1, /* (709) ordering_specification_opt ::= DESC */
0, /* (710) null_ordering_opt ::= */
-2, /* (711) null_ordering_opt ::= NULLS FIRST */
-2, /* (712) 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;
2024-03-26 11:56:15 +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); }
2024-04-15 08:12:15 +00:00
yy_destructor(yypParser,363,&yymsp[0].minor);
break;
case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
2024-04-15 08:12:15 +00:00
yy_destructor(yypParser,364,&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);
2024-04-15 08:12:15 +00:00
{ yy_destructor(yypParser,363,&yymsp[-2].minor);
{ }
2024-04-15 08:12:15 +00:00
yy_destructor(yypParser,365,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
2024-04-15 08:12:15 +00:00
{ yy_destructor(yypParser,366,&yymsp[0].minor);
{ }
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
2024-04-15 08:12:15 +00:00
{ yy_destructor(yypParser,364,&yymsp[-1].minor);
{ }
2024-04-15 08:12:15 +00:00
yy_destructor(yypParser,366,&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);
{ }
2024-04-15 08:12:15 +00:00
yy_destructor(yypParser,365,&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 */
2024-04-15 08:12:15 +00:00
{ yylhsminor.yy376 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy376 = yylhsminor.yy376;
2023-08-24 07:54:10 +00:00
break;
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
2024-04-15 08:12:15 +00:00
{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy376 = yylhsminor.yy376;
2023-08-24 07:54:10 +00:00
break;
case 26: /* white_list ::= HOST ip_range_list */
2024-04-15 08:12:15 +00:00
{ yymsp[-1].minor.yy376 = yymsp[0].minor.yy376; }
2023-08-24 07:54:10 +00:00
break;
case 27: /* white_list_opt ::= */
2024-04-15 08:12:15 +00:00
case 199: /* specific_cols_opt ::= */ yytestcase(yyruleno==199);
case 235: /* tags_def_opt ::= */ yytestcase(yyruleno==235);
case 325: /* tag_list_opt ::= */ yytestcase(yyruleno==325);
case 391: /* col_list_opt ::= */ yytestcase(yyruleno==391);
case 397: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==397);
case 641: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==641);
case 671: /* group_by_clause_opt ::= */ yytestcase(yyruleno==671);
case 691: /* order_by_clause_opt ::= */ yytestcase(yyruleno==691);
{ yymsp[1].minor.yy376 = NULL; }
2023-08-24 07:54:10 +00:00
break;
case 28: /* white_list_opt ::= white_list */
2024-04-15 08:12:15 +00:00
case 236: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==236);
case 398: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==398);
case 566: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==566);
{ yylhsminor.yy376 = yymsp[0].minor.yy376; }
yymsp[0].minor.yy376 = yylhsminor.yy376;
2023-08-24 07:54:10 +00:00
break;
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
{
2024-04-15 08:12:15 +00:00
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy833, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy311);
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy376);
2023-08-24 07:54:10 +00:00
}
break;
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy833, 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 */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy833, 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 */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy833, 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 */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy833, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy376); }
2023-08-24 07:54:10 +00:00
break;
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy833, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy376); }
2023-08-24 07:54:10 +00:00
break;
case 35: /* cmd ::= DROP USER user_name */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy833); }
2023-08-24 07:54:10 +00:00
break;
case 36: /* sysinfo_opt ::= */
2024-04-15 08:12:15 +00:00
{ yymsp[1].minor.yy311 = 1; }
2023-08-24 07:54:10 +00:00
break;
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
2024-04-15 08:12:15 +00:00
{ yymsp[-1].minor.yy311 = 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 */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy1053, &yymsp[-3].minor.yy1017, &yymsp[0].minor.yy833, yymsp[-2].minor.yy872); }
2023-08-24 07:54:10 +00:00
break;
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy1053, &yymsp[-3].minor.yy1017, &yymsp[0].minor.yy833, yymsp[-2].minor.yy872); }
2023-08-24 07:54:10 +00:00
break;
case 40: /* privileges ::= ALL */
2024-04-15 08:12:15 +00:00
{ yymsp[0].minor.yy1053 = 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);
2024-04-15 08:12:15 +00:00
{ yylhsminor.yy1053 = yymsp[0].minor.yy1053; }
yymsp[0].minor.yy1053 = yylhsminor.yy1053;
2023-08-24 07:54:10 +00:00
break;
case 42: /* privileges ::= SUBSCRIBE */
2024-04-15 08:12:15 +00:00
{ yymsp[0].minor.yy1053 = PRIVILEGE_TYPE_SUBSCRIBE; }
2023-08-24 07:54:10 +00:00
break;
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
2024-04-15 08:12:15 +00:00
{ yylhsminor.yy1053 = yymsp[-2].minor.yy1053 | yymsp[0].minor.yy1053; }
yymsp[-2].minor.yy1053 = yylhsminor.yy1053;
2023-08-24 07:54:10 +00:00
break;
case 45: /* priv_type ::= READ */
2024-04-15 08:12:15 +00:00
{ yymsp[0].minor.yy1053 = PRIVILEGE_TYPE_READ; }
2023-08-24 07:54:10 +00:00
break;
case 46: /* priv_type ::= WRITE */
2024-04-15 08:12:15 +00:00
{ yymsp[0].minor.yy1053 = PRIVILEGE_TYPE_WRITE; }
2023-08-24 07:54:10 +00:00
break;
case 47: /* priv_type ::= ALTER */
2024-04-15 08:12:15 +00:00
{ yymsp[0].minor.yy1053 = PRIVILEGE_TYPE_ALTER; }
break;
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
2024-04-15 08:12:15 +00:00
{ yylhsminor.yy1017.first = yymsp[-2].minor.yy0; yylhsminor.yy1017.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy1017 = yylhsminor.yy1017;
2023-08-24 07:54:10 +00:00
break;
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
2024-04-15 08:12:15 +00:00
{ yylhsminor.yy1017.first = yymsp[-2].minor.yy833; yylhsminor.yy1017.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy1017 = yylhsminor.yy1017;
2023-08-24 07:54:10 +00:00
break;
case 50: /* priv_level ::= db_name NK_DOT table_name */
2024-04-15 08:12:15 +00:00
{ yylhsminor.yy1017.first = yymsp[-2].minor.yy833; yylhsminor.yy1017.second = yymsp[0].minor.yy833; }
yymsp[-2].minor.yy1017 = yylhsminor.yy1017;
2023-08-24 07:54:10 +00:00
break;
case 51: /* priv_level ::= topic_name */
2024-04-15 08:12:15 +00:00
{ yylhsminor.yy1017.first = yymsp[0].minor.yy833; yylhsminor.yy1017.second = nil_token; }
yymsp[0].minor.yy1017 = yylhsminor.yy1017;
2023-08-24 07:54:10 +00:00
break;
case 52: /* with_opt ::= */
2024-04-15 08:12:15 +00:00
case 168: /* start_opt ::= */ yytestcase(yyruleno==168);
case 172: /* end_opt ::= */ yytestcase(yyruleno==172);
case 320: /* like_pattern_opt ::= */ yytestcase(yyruleno==320);
case 409: /* subtable_opt ::= */ yytestcase(yyruleno==409);
case 576: /* case_when_else_opt ::= */ yytestcase(yyruleno==576);
case 606: /* from_clause_opt ::= */ yytestcase(yyruleno==606);
case 639: /* where_clause_opt ::= */ yytestcase(yyruleno==639);
case 648: /* twindow_clause_opt ::= */ yytestcase(yyruleno==648);
case 656: /* sliding_opt ::= */ yytestcase(yyruleno==656);
case 661: /* fill_opt ::= */ yytestcase(yyruleno==661);
case 675: /* having_clause_opt ::= */ yytestcase(yyruleno==675);
case 677: /* range_opt ::= */ yytestcase(yyruleno==677);
case 680: /* every_opt ::= */ yytestcase(yyruleno==680);
case 693: /* slimit_clause_opt ::= */ yytestcase(yyruleno==693);
case 697: /* limit_clause_opt ::= */ yytestcase(yyruleno==697);
{ yymsp[1].minor.yy872 = NULL; }
2023-08-24 07:54:10 +00:00
break;
case 53: /* with_opt ::= WITH search_condition */
2024-04-15 08:12:15 +00:00
case 607: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==607);
case 640: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==640);
case 676: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==676);
{ yymsp[-1].minor.yy872 = yymsp[0].minor.yy872; }
2024-03-26 11:56:15 +00:00
break;
case 54: /* cmd ::= CREATE ENCRYPT_KEY NK_STRING */
{ pCxt->pRootNode = createEncryptKeyStmt(pCxt, &yymsp[0].minor.yy0); }
break;
case 55: /* cmd ::= CREATE DNODE dnode_endpoint */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy833, NULL); }
2024-03-26 11:56:15 +00:00
break;
case 56: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
case 57: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy185, false); }
2024-03-26 11:56:15 +00:00
break;
case 58: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy833, yymsp[0].minor.yy185, false); }
2024-03-26 11:56:15 +00:00
break;
case 59: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy185); }
2024-03-26 11:56:15 +00:00
break;
case 60: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy833, false, yymsp[0].minor.yy185); }
2024-03-26 11:56:15 +00:00
break;
case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
break;
2024-03-26 11:56:15 +00:00
case 62: /* 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;
2024-03-26 11:56:15 +00:00
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
break;
2024-03-26 11:56:15 +00:00
case 64: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
2024-03-26 11:56:15 +00:00
case 65: /* 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); }
2024-03-26 11:56:15 +00:00
break;
case 66: /* dnode_endpoint ::= NK_STRING */
case 67: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==67);
case 68: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==68);
2024-04-15 08:12:15 +00:00
case 347: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==347);
case 348: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==348);
case 349: /* sma_func_name ::= LAST */ yytestcase(yyruleno==349);
case 350: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==350);
case 496: /* db_name ::= NK_ID */ yytestcase(yyruleno==496);
case 497: /* table_name ::= NK_ID */ yytestcase(yyruleno==497);
case 498: /* column_name ::= NK_ID */ yytestcase(yyruleno==498);
case 499: /* function_name ::= NK_ID */ yytestcase(yyruleno==499);
case 500: /* view_name ::= NK_ID */ yytestcase(yyruleno==500);
case 501: /* table_alias ::= NK_ID */ yytestcase(yyruleno==501);
case 502: /* column_alias ::= NK_ID */ yytestcase(yyruleno==502);
case 503: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==503);
case 504: /* user_name ::= NK_ID */ yytestcase(yyruleno==504);
case 505: /* topic_name ::= NK_ID */ yytestcase(yyruleno==505);
case 506: /* stream_name ::= NK_ID */ yytestcase(yyruleno==506);
case 507: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==507);
case 508: /* index_name ::= NK_ID */ yytestcase(yyruleno==508);
case 552: /* noarg_func ::= NOW */ yytestcase(yyruleno==552);
case 553: /* noarg_func ::= TODAY */ yytestcase(yyruleno==553);
case 554: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==554);
case 555: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==555);
case 556: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==556);
case 557: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==557);
case 558: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==558);
case 559: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==559);
case 560: /* noarg_func ::= USER */ yytestcase(yyruleno==560);
case 561: /* star_func ::= COUNT */ yytestcase(yyruleno==561);
case 562: /* star_func ::= FIRST */ yytestcase(yyruleno==562);
case 563: /* star_func ::= LAST */ yytestcase(yyruleno==563);
case 564: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==564);
{ yylhsminor.yy833 = yymsp[0].minor.yy0; }
yymsp[0].minor.yy833 = yylhsminor.yy833;
2024-03-26 11:56:15 +00:00
break;
case 69: /* force_opt ::= */
2024-04-15 08:12:15 +00:00
case 96: /* not_exists_opt ::= */ yytestcase(yyruleno==96);
case 98: /* exists_opt ::= */ yytestcase(yyruleno==98);
case 368: /* analyze_opt ::= */ yytestcase(yyruleno==368);
case 375: /* agg_func_opt ::= */ yytestcase(yyruleno==375);
case 381: /* or_replace_opt ::= */ yytestcase(yyruleno==381);
case 411: /* ignore_opt ::= */ yytestcase(yyruleno==411);
case 627: /* tag_mode_opt ::= */ yytestcase(yyruleno==627);
case 629: /* set_quantifier_opt ::= */ yytestcase(yyruleno==629);
{ yymsp[1].minor.yy185 = false; }
2024-03-26 11:56:15 +00:00
break;
case 70: /* force_opt ::= FORCE */
case 71: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==71);
2024-04-15 08:12:15 +00:00
case 369: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==369);
case 376: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==376);
case 628: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==628);
case 630: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==630);
{ yymsp[0].minor.yy185 = true; }
2024-03-26 11:56:15 +00:00
break;
case 72: /* cmd ::= ALTER CLUSTER NK_STRING */
2023-12-18 08:34:31 +00:00
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
2023-08-24 07:54:10 +00:00
break;
2024-03-26 11:56:15 +00:00
case 73: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
2023-12-18 08:34:31 +00:00
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
2024-03-26 11:56:15 +00:00
case 74: /* cmd ::= ALTER LOCAL NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
2024-03-26 11:56:15 +00:00
case 75: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
2024-03-26 11:56:15 +00:00
case 76: /* 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;
2024-03-26 11:56:15 +00:00
case 77: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
2024-03-26 11:56:15 +00:00
case 78: /* 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;
2024-03-26 11:56:15 +00:00
case 79: /* 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;
2024-03-26 11:56:15 +00:00
case 80: /* 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;
2024-03-26 11:56:15 +00:00
case 81: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
2024-03-26 11:56:15 +00:00
case 82: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
2024-03-26 11:56:15 +00:00
case 83: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
2024-03-26 11:56:15 +00:00
case 84: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
2024-03-26 11:56:15 +00:00
case 85: /* 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;
2024-03-26 11:56:15 +00:00
case 86: /* 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); }
2024-03-26 11:56:15 +00:00
break;
case 87: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy185, &yymsp[-1].minor.yy833, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
case 88: /* cmd ::= DROP DATABASE exists_opt db_name */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy185, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
case 89: /* cmd ::= USE db_name */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
case 90: /* cmd ::= ALTER DATABASE db_name alter_db_options */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy833, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
case 91: /* cmd ::= FLUSH DATABASE db_name */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
case 92: /* cmd ::= TRIM DATABASE db_name speed_opt */
2024-04-15 08:12:15 +00:00
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy833, yymsp[0].minor.yy772); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 93: /* cmd ::= S3MIGRATE DATABASE db_name */
{ pCxt->pRootNode = createS3MigrateDatabaseStmt(pCxt, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 94: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy833, yymsp[-1].minor.yy872, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 95: /* not_exists_opt ::= IF NOT EXISTS */
{ yymsp[-2].minor.yy185 = true; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 97: /* exists_opt ::= IF EXISTS */
case 382: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==382);
case 412: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==412);
{ yymsp[-1].minor.yy185 = true; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 99: /* db_options ::= */
{ yymsp[1].minor.yy872 = createDefaultDatabaseOptions(pCxt); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 100: /* db_options ::= db_options BUFFER NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 101: /* db_options ::= db_options CACHEMODEL NK_STRING */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 102: /* db_options ::= db_options CACHESIZE NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 103: /* db_options ::= db_options COMP NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 104: /* db_options ::= db_options DURATION NK_INTEGER */
case 105: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==105);
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 106: /* db_options ::= db_options MAXROWS NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 107: /* db_options ::= db_options MINROWS NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 108: /* db_options ::= db_options KEEP integer_list */
case 109: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==109);
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_KEEP, yymsp[0].minor.yy376); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 110: /* db_options ::= db_options PAGES NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 111: /* db_options ::= db_options PAGESIZE NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 112: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 113: /* db_options ::= db_options PRECISION NK_STRING */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 114: /* db_options ::= db_options REPLICA NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 115: /* db_options ::= db_options VGROUPS NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 116: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 117: /* db_options ::= db_options RETENTIONS retention_list */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_RETENTIONS, yymsp[0].minor.yy376); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 118: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 119: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 120: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 121: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 122: /* 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;
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-3].minor.yy872, DB_OPTION_WAL_RETENTION_PERIOD, &t);
2022-07-25 13:09:06 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2022-07-25 13:09:06 +00:00
break;
2024-04-15 08:12:15 +00:00
case 123: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2022-07-25 13:09:06 +00:00
break;
2024-04-15 08:12:15 +00:00
case 124: /* 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;
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-3].minor.yy872, DB_OPTION_WAL_RETENTION_SIZE, &t);
2022-07-25 13:09:06 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-3].minor.yy872 = yylhsminor.yy872;
break;
case 125: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 126: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 127: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 128: /* db_options ::= db_options TABLE_PREFIX signed */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy872); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 129: /* db_options ::= db_options TABLE_SUFFIX signed */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy872); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 130: /* db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_S3_CHUNKSIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 131: /* db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */
case 132: /* db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==132);
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_S3_KEEPLOCAL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 133: /* db_options ::= db_options S3_COMPACT NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_S3_COMPACT, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 134: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 135: /* db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */
{ yylhsminor.yy872 = setDatabaseOption(pCxt, yymsp[-2].minor.yy872, DB_OPTION_ENCRYPT_ALGORITHM, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 136: /* alter_db_options ::= alter_db_option */
{ yylhsminor.yy872 = createAlterDatabaseOptions(pCxt); yylhsminor.yy872 = setAlterDatabaseOption(pCxt, yylhsminor.yy872, &yymsp[0].minor.yy893); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 137: /* alter_db_options ::= alter_db_options alter_db_option */
{ yylhsminor.yy872 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy872, &yymsp[0].minor.yy893); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 138: /* alter_db_option ::= BUFFER NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 139: /* alter_db_option ::= CACHEMODEL NK_STRING */
{ yymsp[-1].minor.yy893.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 140: /* alter_db_option ::= CACHESIZE NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 141: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 142: /* alter_db_option ::= KEEP integer_list */
case 143: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==143);
{ yymsp[-1].minor.yy893.type = DB_OPTION_KEEP; yymsp[-1].minor.yy893.pList = yymsp[0].minor.yy376; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 144: /* alter_db_option ::= PAGES NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_PAGES; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 145: /* alter_db_option ::= REPLICA NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 146: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_WAL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 147: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 148: /* alter_db_option ::= MINROWS NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 149: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 150: /* 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;
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy893.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy893.val = t;
}
break;
2024-04-15 08:12:15 +00:00
case 151: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
2024-04-15 08:12:15 +00:00
case 152: /* 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;
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy893.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy893.val = t;
}
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 153: /* alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */
case 154: /* alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==154);
{ yymsp[-1].minor.yy893.type = DB_OPTION_S3_KEEPLOCAL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 155: /* alter_db_option ::= S3_COMPACT NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_S3_COMPACT, yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 156: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
{ yymsp[-1].minor.yy893.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 157: /* alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */
{ yymsp[-1].minor.yy893.type = DB_OPTION_ENCRYPT_ALGORITHM; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
break;
case 158: /* integer_list ::= NK_INTEGER */
{ yylhsminor.yy376 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy376 = yylhsminor.yy376;
break;
case 159: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
case 425: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==425);
{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy376 = yylhsminor.yy376;
break;
case 160: /* variable_list ::= NK_VARIABLE */
{ yylhsminor.yy376 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy376 = yylhsminor.yy376;
break;
case 161: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy376 = yylhsminor.yy376;
break;
case 162: /* retention_list ::= retention */
case 193: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==193);
case 196: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==196);
case 203: /* column_def_list ::= column_def */ yytestcase(yyruleno==203);
case 252: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==252);
case 257: /* col_name_list ::= col_name */ yytestcase(yyruleno==257);
case 326: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==326);
case 343: /* func_list ::= func */ yytestcase(yyruleno==343);
case 393: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==393);
case 469: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==469);
case 494: /* literal_list ::= signed_literal */ yytestcase(yyruleno==494);
case 567: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==567);
case 573: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==573);
case 632: /* select_list ::= select_item */ yytestcase(yyruleno==632);
case 643: /* partition_list ::= partition_item */ yytestcase(yyruleno==643);
case 704: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==704);
{ yylhsminor.yy376 = createNodeList(pCxt, yymsp[0].minor.yy872); }
yymsp[0].minor.yy376 = yylhsminor.yy376;
break;
case 163: /* retention_list ::= retention_list NK_COMMA retention */
case 197: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==197);
case 204: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==204);
case 253: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==253);
case 258: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==258);
case 327: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==327);
case 344: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==344);
case 394: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==394);
case 470: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==470);
case 495: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==495);
case 568: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==568);
case 633: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==633);
case 644: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==644);
case 705: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==705);
{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, yymsp[0].minor.yy872); }
yymsp[-2].minor.yy376 = yylhsminor.yy376;
break;
case 164: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
case 165: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==165);
{ yylhsminor.yy872 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 166: /* speed_opt ::= */
case 377: /* bufsize_opt ::= */ yytestcase(yyruleno==377);
{ yymsp[1].minor.yy772 = 0; }
break;
case 167: /* speed_opt ::= BWLIMIT NK_INTEGER */
case 378: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==378);
{ yymsp[-1].minor.yy772 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
break;
case 169: /* start_opt ::= START WITH NK_INTEGER */
case 173: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==173);
{ yymsp[-2].minor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
break;
case 170: /* start_opt ::= START WITH NK_STRING */
case 174: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==174);
{ yymsp[-2].minor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 171: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
case 175: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==175);
{ yymsp[-3].minor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 176: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
case 178: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==178);
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy185, yymsp[-5].minor.yy872, yymsp[-3].minor.yy376, yymsp[-1].minor.yy376, yymsp[0].minor.yy872); }
break;
case 177: /* cmd ::= CREATE TABLE multi_create_clause */
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy376); }
break;
case 179: /* cmd ::= DROP TABLE multi_drop_clause */
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy376); }
break;
case 180: /* cmd ::= DROP STABLE exists_opt full_table_name */
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy185, yymsp[0].minor.yy872); }
break;
case 181: /* cmd ::= ALTER TABLE alter_table_clause */
case 427: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==427);
case 428: /* cmd ::= insert_query */ yytestcase(yyruleno==428);
{ pCxt->pRootNode = yymsp[0].minor.yy872; }
break;
case 182: /* cmd ::= ALTER STABLE alter_table_clause */
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy872); }
break;
case 183: /* alter_table_clause ::= full_table_name alter_table_options */
{ yylhsminor.yy872 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy872, yymsp[0].minor.yy872); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
break;
case 184: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
{ yylhsminor.yy872 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy872, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy833, yymsp[0].minor.yy400); }
yymsp[-4].minor.yy872 = yylhsminor.yy872;
break;
case 185: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
{ yylhsminor.yy872 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy872, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy833); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
break;
case 186: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
{ yylhsminor.yy872 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy872, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy833, yymsp[0].minor.yy400); }
yymsp[-4].minor.yy872 = yylhsminor.yy872;
break;
case 187: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
{ yylhsminor.yy872 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy872, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy833, &yymsp[0].minor.yy833); }
yymsp[-4].minor.yy872 = yylhsminor.yy872;
break;
case 188: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
{ yylhsminor.yy872 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy872, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy833, yymsp[0].minor.yy400); }
yymsp[-4].minor.yy872 = yylhsminor.yy872;
break;
case 189: /* alter_table_clause ::= full_table_name DROP TAG column_name */
{ yylhsminor.yy872 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy872, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy833); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 190: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
{ yylhsminor.yy872 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy872, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy833, yymsp[0].minor.yy400); }
yymsp[-4].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 191: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
{ yylhsminor.yy872 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy872, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy833, &yymsp[0].minor.yy833); }
yymsp[-4].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 192: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
{ yylhsminor.yy872 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy872, &yymsp[-2].minor.yy833, yymsp[0].minor.yy872); }
yymsp[-5].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 194: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
case 574: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==574);
{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-1].minor.yy376, yymsp[0].minor.yy872); }
yymsp[-1].minor.yy376 = yylhsminor.yy376;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 195: /* 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.yy872 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy185, yymsp[-8].minor.yy872, yymsp[-6].minor.yy872, yymsp[-5].minor.yy376, yymsp[-2].minor.yy376, yymsp[0].minor.yy872); }
yymsp[-9].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 198: /* drop_table_clause ::= exists_opt full_table_name */
{ yylhsminor.yy872 = createDropTableClause(pCxt, yymsp[-1].minor.yy185, yymsp[0].minor.yy872); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 200: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
case 392: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==392);
{ yymsp[-2].minor.yy376 = yymsp[-1].minor.yy376; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 201: /* full_table_name ::= table_name */
{ yylhsminor.yy872 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy833, NULL); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 202: /* full_table_name ::= db_name NK_DOT table_name */
{ yylhsminor.yy872 = createRealTableNode(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy833, NULL); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 205: /* column_def ::= column_name type_name */
{ yylhsminor.yy872 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy833, yymsp[0].minor.yy400, NULL, false); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-04-15 07:12:32 +00:00
break;
2024-04-15 08:12:15 +00:00
case 206: /* column_def ::= column_name type_name PRIMARY KEY */
{ yylhsminor.yy872 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy833, yymsp[-2].minor.yy400, NULL, true); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 207: /* type_name ::= BOOL */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BOOL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 208: /* type_name ::= TINYINT */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TINYINT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 209: /* type_name ::= SMALLINT */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 210: /* type_name ::= INT */
case 211: /* type_name ::= INTEGER */ yytestcase(yyruleno==211);
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_INT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 212: /* type_name ::= BIGINT */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BIGINT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 213: /* type_name ::= FLOAT */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_FLOAT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 214: /* type_name ::= DOUBLE */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 215: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 216: /* type_name ::= TIMESTAMP */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 217: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 218: /* type_name ::= TINYINT UNSIGNED */
{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 219: /* type_name ::= SMALLINT UNSIGNED */
{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 220: /* type_name ::= INT UNSIGNED */
{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UINT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 221: /* type_name ::= BIGINT UNSIGNED */
{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 222: /* type_name ::= JSON */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_JSON); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 223: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 224: /* type_name ::= MEDIUMBLOB */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 225: /* type_name ::= BLOB */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BLOB); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 226: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 227: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 228: /* type_name ::= DECIMAL */
{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 229: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 230: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 231: /* type_name_default_len ::= BINARY */
{ yymsp[0].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 232: /* type_name_default_len ::= NCHAR */
{ yymsp[0].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 233: /* type_name_default_len ::= VARCHAR */
{ yymsp[0].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 234: /* type_name_default_len ::= VARBINARY */
{ yymsp[0].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 237: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
case 399: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==399);
{ yymsp[-3].minor.yy376 = yymsp[-1].minor.yy376; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 238: /* table_options ::= */
{ yymsp[1].minor.yy872 = createDefaultTableOptions(pCxt); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 239: /* table_options ::= table_options COMMENT NK_STRING */
{ yylhsminor.yy872 = setTableOption(pCxt, yymsp[-2].minor.yy872, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 240: /* table_options ::= table_options MAX_DELAY duration_list */
{ yylhsminor.yy872 = setTableOption(pCxt, yymsp[-2].minor.yy872, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy376); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 241: /* table_options ::= table_options WATERMARK duration_list */
{ yylhsminor.yy872 = setTableOption(pCxt, yymsp[-2].minor.yy872, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy376); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 242: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
{ yylhsminor.yy872 = setTableOption(pCxt, yymsp[-4].minor.yy872, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy376); }
yymsp[-4].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 243: /* table_options ::= table_options TTL NK_INTEGER */
{ yylhsminor.yy872 = setTableOption(pCxt, yymsp[-2].minor.yy872, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 244: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
{ yylhsminor.yy872 = setTableOption(pCxt, yymsp[-4].minor.yy872, TABLE_OPTION_SMA, yymsp[-1].minor.yy376); }
yymsp[-4].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 245: /* table_options ::= table_options DELETE_MARK duration_list */
{ yylhsminor.yy872 = setTableOption(pCxt, yymsp[-2].minor.yy872, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy376); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 246: /* alter_table_options ::= alter_table_option */
{ yylhsminor.yy872 = createAlterTableOptions(pCxt); yylhsminor.yy872 = setTableOption(pCxt, yylhsminor.yy872, yymsp[0].minor.yy893.type, &yymsp[0].minor.yy893.val); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 247: /* alter_table_options ::= alter_table_options alter_table_option */
{ yylhsminor.yy872 = setTableOption(pCxt, yymsp[-1].minor.yy872, yymsp[0].minor.yy893.type, &yymsp[0].minor.yy893.val); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 248: /* alter_table_option ::= COMMENT NK_STRING */
{ yymsp[-1].minor.yy893.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 249: /* alter_table_option ::= TTL NK_INTEGER */
{ yymsp[-1].minor.yy893.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 250: /* duration_list ::= duration_literal */
case 526: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==526);
{ yylhsminor.yy376 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy872)); }
yymsp[0].minor.yy376 = yylhsminor.yy376;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 251: /* duration_list ::= duration_list NK_COMMA duration_literal */
case 527: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==527);
{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, releaseRawExprNode(pCxt, yymsp[0].minor.yy872)); }
yymsp[-2].minor.yy376 = yylhsminor.yy376;
2024-04-11 03:05:58 +00:00
break;
2024-04-15 08:12:15 +00:00
case 254: /* rollup_func_name ::= function_name */
{ yylhsminor.yy872 = createFunctionNode(pCxt, &yymsp[0].minor.yy833, NULL); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-04-11 03:05:58 +00:00
break;
2024-04-15 08:12:15 +00:00
case 255: /* rollup_func_name ::= FIRST */
case 256: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==256);
case 329: /* tag_item ::= QTAGS */ yytestcase(yyruleno==329);
{ yylhsminor.yy872 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-04-11 03:05:58 +00:00
break;
2024-04-15 08:12:15 +00:00
case 259: /* col_name ::= column_name */
case 330: /* tag_item ::= column_name */ yytestcase(yyruleno==330);
{ yylhsminor.yy872 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy833); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-04-11 03:05:58 +00:00
break;
2024-04-15 08:12:15 +00:00
case 260: /* cmd ::= SHOW DNODES */
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 261: /* cmd ::= SHOW USERS */
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 262: /* cmd ::= SHOW USER PRIVILEGES */
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 263: /* cmd ::= SHOW db_kind_opt DATABASES */
{
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
2024-04-15 08:12:15 +00:00
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy321);
}
break;
2024-04-15 08:12:15 +00:00
case 264: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
{
2024-04-15 08:12:15 +00:00
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy685, yymsp[0].minor.yy872, OP_TYPE_LIKE);
}
break;
2024-04-15 08:12:15 +00:00
case 265: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy872, yymsp[0].minor.yy872, OP_TYPE_LIKE); }
break;
2024-04-15 08:12:15 +00:00
case 266: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy872, NULL, OP_TYPE_LIKE); }
break;
2024-04-15 08:12:15 +00:00
case 267: /* cmd ::= SHOW MNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 268: /* cmd ::= SHOW QNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 269: /* cmd ::= SHOW ARBGROUPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 270: /* cmd ::= SHOW FUNCTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 271: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy872, yymsp[-1].minor.yy872, OP_TYPE_EQUAL); }
break;
2024-04-15 08:12:15 +00:00
case 272: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy833), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy833), OP_TYPE_EQUAL); }
break;
2024-04-15 08:12:15 +00:00
case 273: /* cmd ::= SHOW STREAMS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
2022-03-08 09:25:26 +00:00
break;
2024-04-15 08:12:15 +00:00
case 274: /* cmd ::= SHOW ACCOUNTS */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
break;
2024-04-15 08:12:15 +00:00
case 275: /* cmd ::= SHOW APPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 276: /* cmd ::= SHOW CONNECTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 277: /* cmd ::= SHOW LICENCES */
case 278: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==278);
2022-08-11 07:37:26 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 279: /* cmd ::= SHOW GRANTS FULL */
2024-01-18 07:23:38 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 280: /* 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;
2024-04-15 08:12:15 +00:00
case 281: /* cmd ::= SHOW CLUSTER MACHINES */
2024-01-18 09:49:11 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 282: /* cmd ::= SHOW CREATE DATABASE db_name */
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 283: /* cmd ::= SHOW CREATE TABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy872); }
break;
2024-04-15 08:12:15 +00:00
case 284: /* cmd ::= SHOW CREATE STABLE full_table_name */
2024-03-26 11:56:15 +00:00
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT,
2024-04-15 08:12:15 +00:00
yymsp[0].minor.yy872); }
break;
2024-04-15 08:12:15 +00:00
case 285: /* cmd ::= SHOW ENCRYPTIONS */
2024-03-26 11:56:15 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ENCRYPTIONS_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 286: /* cmd ::= SHOW QUERIES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 287: /* cmd ::= SHOW SCORES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 288: /* cmd ::= SHOW TOPICS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 289: /* cmd ::= SHOW VARIABLES */
case 290: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==290);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
2022-03-28 09:08:48 +00:00
break;
2024-04-15 08:12:15 +00:00
case 291: /* cmd ::= SHOW LOCAL VARIABLES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 292: /* 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.yy872); }
break;
2024-04-15 08:12:15 +00:00
case 293: /* cmd ::= SHOW BNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 294: /* cmd ::= SHOW SNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 295: /* cmd ::= SHOW CLUSTER */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
2022-04-20 09:43:02 +00:00
break;
2024-04-15 08:12:15 +00:00
case 296: /* cmd ::= SHOW TRANSACTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 297: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy872); }
2022-03-28 09:08:48 +00:00
break;
2024-04-15 08:12:15 +00:00
case 298: /* cmd ::= SHOW CONSUMERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
2022-05-25 13:20:11 +00:00
break;
2024-04-15 08:12:15 +00:00
case 299: /* cmd ::= SHOW SUBSCRIPTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 300: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy872, yymsp[-1].minor.yy872, OP_TYPE_EQUAL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 301: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy833), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy833), OP_TYPE_EQUAL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 302: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy872, yymsp[0].minor.yy872, yymsp[-3].minor.yy376); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 303: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy833), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy833), yymsp[-4].minor.yy376); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 304: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
break;
2024-04-15 08:12:15 +00:00
case 305: /* cmd ::= SHOW VNODES */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
break;
2024-04-15 08:12:15 +00:00
case 306: /* cmd ::= SHOW db_name_cond_opt ALIVE */
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy872, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
break;
2024-04-15 08:12:15 +00:00
case 307: /* cmd ::= SHOW CLUSTER ALIVE */
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
2023-08-24 07:54:10 +00:00
break;
2024-04-15 08:12:15 +00:00
case 308: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy872, yymsp[0].minor.yy872, OP_TYPE_LIKE); }
break;
2024-04-15 08:12:15 +00:00
case 309: /* cmd ::= SHOW CREATE VIEW full_table_name */
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy872); }
2023-11-16 03:41:02 +00:00
break;
2024-04-15 08:12:15 +00:00
case 310: /* cmd ::= SHOW COMPACTS */
2023-11-23 07:26:21 +00:00
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
2023-11-16 03:41:02 +00:00
break;
2024-04-15 08:12:15 +00:00
case 311: /* 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)); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 312: /* table_kind_db_name_cond_opt ::= */
{ yymsp[1].minor.yy685.kind = SHOW_KIND_ALL; yymsp[1].minor.yy685.dbName = nil_token; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 313: /* table_kind_db_name_cond_opt ::= table_kind */
{ yylhsminor.yy685.kind = yymsp[0].minor.yy321; yylhsminor.yy685.dbName = nil_token; }
yymsp[0].minor.yy685 = yylhsminor.yy685;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 314: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy685.kind = SHOW_KIND_ALL; yylhsminor.yy685.dbName = yymsp[-1].minor.yy833; }
yymsp[-1].minor.yy685 = yylhsminor.yy685;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 315: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
{ yylhsminor.yy685.kind = yymsp[-2].minor.yy321; yylhsminor.yy685.dbName = yymsp[-1].minor.yy833; }
yymsp[-2].minor.yy685 = yylhsminor.yy685;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 316: /* table_kind ::= NORMAL */
{ yymsp[0].minor.yy321 = SHOW_KIND_TABLES_NORMAL; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 317: /* table_kind ::= CHILD */
{ yymsp[0].minor.yy321 = SHOW_KIND_TABLES_CHILD; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 318: /* db_name_cond_opt ::= */
case 323: /* from_db_opt ::= */ yytestcase(yyruleno==323);
{ yymsp[1].minor.yy872 = createDefaultDatabaseCondValue(pCxt); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 319: /* db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy872 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy833); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 321: /* like_pattern_opt ::= LIKE NK_STRING */
{ yymsp[-1].minor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 322: /* table_name_cond ::= table_name */
{ yylhsminor.yy872 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy833); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 324: /* from_db_opt ::= FROM db_name */
{ yymsp[-1].minor.yy872 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 328: /* tag_item ::= TBNAME */
{ yylhsminor.yy872 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 331: /* tag_item ::= column_name column_alias */
{ yylhsminor.yy872 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy833), &yymsp[0].minor.yy833); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 332: /* tag_item ::= column_name AS column_alias */
{ yylhsminor.yy872 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy833), &yymsp[0].minor.yy833); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 333: /* db_kind_opt ::= */
{ yymsp[1].minor.yy321 = SHOW_KIND_ALL; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 334: /* db_kind_opt ::= USER */
{ yymsp[0].minor.yy321 = SHOW_KIND_DATABASES_USER; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 335: /* db_kind_opt ::= SYSTEM */
{ yymsp[0].minor.yy321 = SHOW_KIND_DATABASES_SYSTEM; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 336: /* 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.yy185, yymsp[-3].minor.yy872, yymsp[-1].minor.yy872, NULL, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 337: /* 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.yy185, yymsp[-5].minor.yy872, yymsp[-3].minor.yy872, yymsp[-1].minor.yy376, NULL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 338: /* cmd ::= DROP INDEX exists_opt full_index_name */
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy185, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 339: /* full_index_name ::= index_name */
{ yylhsminor.yy872 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy833); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 340: /* full_index_name ::= db_name NK_DOT index_name */
{ yylhsminor.yy872 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy833); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 341: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
{ yymsp[-9].minor.yy872 = createIndexOption(pCxt, yymsp[-7].minor.yy376, releaseRawExprNode(pCxt, yymsp[-3].minor.yy872), NULL, yymsp[-1].minor.yy872, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 342: /* 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.yy872 = createIndexOption(pCxt, yymsp[-9].minor.yy376, releaseRawExprNode(pCxt, yymsp[-5].minor.yy872), releaseRawExprNode(pCxt, yymsp[-3].minor.yy872), yymsp[-1].minor.yy872, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 345: /* func ::= sma_func_name NK_LP expression_list NK_RP */
{ yylhsminor.yy872 = createFunctionNode(pCxt, &yymsp[-3].minor.yy833, yymsp[-1].minor.yy376); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 346: /* sma_func_name ::= function_name */
case 617: /* alias_opt ::= table_alias */ yytestcase(yyruleno==617);
{ yylhsminor.yy833 = yymsp[0].minor.yy833; }
yymsp[0].minor.yy833 = yylhsminor.yy833;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 351: /* sma_stream_opt ::= */
case 400: /* stream_options ::= */ yytestcase(yyruleno==400);
{ yymsp[1].minor.yy872 = createStreamOptions(pCxt); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 352: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy872)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy872); yylhsminor.yy872 = yymsp[-2].minor.yy872; }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 353: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy872)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy872); yylhsminor.yy872 = yymsp[-2].minor.yy872; }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 354: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy872)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy872); yylhsminor.yy872 = yymsp[-2].minor.yy872; }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 355: /* with_meta ::= AS */
{ yymsp[0].minor.yy772 = 0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 356: /* with_meta ::= WITH META AS */
{ yymsp[-2].minor.yy772 = 1; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 357: /* with_meta ::= ONLY META AS */
{ yymsp[-2].minor.yy772 = 2; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 358: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy185, &yymsp[-2].minor.yy833, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 359: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy185, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy833, yymsp[-2].minor.yy772); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 360: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy185, &yymsp[-4].minor.yy833, yymsp[-1].minor.yy872, yymsp[-3].minor.yy772, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 361: /* cmd ::= DROP TOPIC exists_opt topic_name */
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy185, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 362: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy185, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 363: /* cmd ::= DESC full_table_name */
case 364: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==364);
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 365: /* cmd ::= RESET QUERY CACHE */
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 366: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
case 367: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==367);
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy185, yymsp[-1].minor.yy872, yymsp[0].minor.yy872); }
2024-04-15 07:12:32 +00:00
break;
2024-04-15 08:12:15 +00:00
case 370: /* explain_options ::= */
{ yymsp[1].minor.yy872 = createDefaultExplainOptions(pCxt); }
2024-04-15 07:12:32 +00:00
break;
2024-04-15 08:12:15 +00:00
case 371: /* explain_options ::= explain_options VERBOSE NK_BOOL */
{ yylhsminor.yy872 = setExplainVerbose(pCxt, yymsp[-2].minor.yy872, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 372: /* explain_options ::= explain_options RATIO NK_FLOAT */
{ yylhsminor.yy872 = setExplainRatio(pCxt, yymsp[-2].minor.yy872, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 373: /* 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.yy185, yymsp[-9].minor.yy185, &yymsp[-6].minor.yy833, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy400, yymsp[-1].minor.yy772, &yymsp[0].minor.yy833, yymsp[-10].minor.yy185); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 374: /* cmd ::= DROP FUNCTION exists_opt function_name */
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy185, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 379: /* language_opt ::= */
case 422: /* on_vgroup_id ::= */ yytestcase(yyruleno==422);
{ yymsp[1].minor.yy833 = nil_token; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 380: /* language_opt ::= LANGUAGE NK_STRING */
case 423: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==423);
{ yymsp[-1].minor.yy833 = yymsp[0].minor.yy0; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 383: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy185, yymsp[-2].minor.yy872, &yymsp[-1].minor.yy0, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 384: /* cmd ::= DROP VIEW exists_opt full_view_name */
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy185, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 385: /* full_view_name ::= view_name */
{ yylhsminor.yy872 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy833); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 386: /* full_view_name ::= db_name NK_DOT view_name */
{ yylhsminor.yy872 = createViewNode(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy833); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 387: /* 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.yy185, &yymsp[-8].minor.yy833, yymsp[-5].minor.yy872, yymsp[-7].minor.yy872, yymsp[-3].minor.yy376, yymsp[-2].minor.yy872, yymsp[0].minor.yy872, yymsp[-4].minor.yy376); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 388: /* cmd ::= DROP STREAM exists_opt stream_name */
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy185, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 389: /* cmd ::= PAUSE STREAM exists_opt stream_name */
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy185, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 390: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy185, yymsp[-1].minor.yy185, &yymsp[0].minor.yy833); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 395: /* column_stream_def ::= column_name */
{ yylhsminor.yy872 = createColumnDefNode(pCxt, &yymsp[0].minor.yy833, createDataType(TSDB_DATA_TYPE_NULL), NULL, false); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 396: /* column_stream_def ::= column_name PRIMARY KEY */
{ yylhsminor.yy872 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy833, createDataType(TSDB_DATA_TYPE_NULL), NULL, true); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 401: /* stream_options ::= stream_options TRIGGER AT_ONCE */
case 402: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==402);
{ yylhsminor.yy872 = setStreamOptions(pCxt, yymsp[-2].minor.yy872, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 403: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
{ yylhsminor.yy872 = setStreamOptions(pCxt, yymsp[-3].minor.yy872, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy872)); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 404: /* stream_options ::= stream_options WATERMARK duration_literal */
{ yylhsminor.yy872 = setStreamOptions(pCxt, yymsp[-2].minor.yy872, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy872)); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 405: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
{ yylhsminor.yy872 = setStreamOptions(pCxt, yymsp[-3].minor.yy872, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 406: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
{ yylhsminor.yy872 = setStreamOptions(pCxt, yymsp[-2].minor.yy872, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 407: /* stream_options ::= stream_options DELETE_MARK duration_literal */
{ yylhsminor.yy872 = setStreamOptions(pCxt, yymsp[-2].minor.yy872, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy872)); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 408: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
{ yylhsminor.yy872 = setStreamOptions(pCxt, yymsp[-3].minor.yy872, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 410: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
case 657: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==657);
case 681: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==681);
{ yymsp[-3].minor.yy872 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 413: /* cmd ::= KILL CONNECTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
break;
2024-04-15 08:12:15 +00:00
case 414: /* cmd ::= KILL QUERY NK_STRING */
2022-06-15 05:49:29 +00:00
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
break;
2024-04-15 08:12:15 +00:00
case 415: /* cmd ::= KILL TRANSACTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
break;
2024-04-15 08:12:15 +00:00
case 416: /* 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;
2024-04-15 08:12:15 +00:00
case 417: /* cmd ::= BALANCE VGROUP */
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
break;
2024-04-15 08:12:15 +00:00
case 418: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy833); }
2022-06-07 03:53:32 +00:00
break;
2024-04-15 08:12:15 +00:00
case 419: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
2024-04-15 08:12:15 +00:00
case 420: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy376); }
break;
2024-04-15 08:12:15 +00:00
case 421: /* cmd ::= SPLIT VGROUP NK_INTEGER */
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 424: /* dnode_list ::= DNODE NK_INTEGER */
{ yymsp[-1].minor.yy376 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 426: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy872, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 429: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
{ yymsp[-6].minor.yy872 = createInsertStmt(pCxt, yymsp[-4].minor.yy872, yymsp[-2].minor.yy376, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 430: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
{ yymsp[-3].minor.yy872 = createInsertStmt(pCxt, yymsp[-1].minor.yy872, NULL, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 431: /* tags_literal ::= NK_INTEGER */
case 443: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==443);
case 452: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==452);
{ yylhsminor.yy872 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 432: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
case 433: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==433);
case 444: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==444);
case 445: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==445);
case 453: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==453);
case 454: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==454);
case 462: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==462);
case 463: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==463);
2024-04-01 05:58:13 +00:00
{
SToken l = yymsp[-2].minor.yy0;
2024-04-15 08:12:15 +00:00
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
2024-04-01 05:58:13 +00:00
l.n = (r.z + r.n) - l.z;
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy872);
2024-04-01 05:58:13 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 434: /* tags_literal ::= NK_PLUS NK_INTEGER */
case 437: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==437);
case 446: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==446);
case 449: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==449);
case 455: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==455);
case 458: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==458);
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;
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL);
2024-03-10 14:14:57 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-1].minor.yy872 = yylhsminor.yy872;
break;
case 435: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
case 436: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==436);
case 438: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==438);
case 439: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==439);
case 447: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==447);
case 448: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==448);
case 450: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==450);
case 451: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==451);
case 456: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==456);
case 457: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==457);
case 459: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==459);
case 460: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==460);
2024-04-01 05:58:13 +00:00
{
SToken l = yymsp[-3].minor.yy0;
2024-04-15 08:12:15 +00:00
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
2024-04-01 05:58:13 +00:00
l.n = (r.z + r.n) - l.z;
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy872);
2024-04-01 05:58:13 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-04-01 05:58:13 +00:00
break;
2024-04-15 08:12:15 +00:00
case 440: /* tags_literal ::= NK_FLOAT */
{ yylhsminor.yy872 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 441: /* tags_literal ::= NK_PLUS NK_FLOAT */
case 442: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==442);
{
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;
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL);
2022-03-22 06:09:15 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 461: /* tags_literal ::= NK_STRING */
{ yylhsminor.yy872 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 464: /* tags_literal ::= NK_BOOL */
{ yylhsminor.yy872 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 465: /* tags_literal ::= NULL */
{ yylhsminor.yy872 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 466: /* tags_literal ::= literal_func */
{ yylhsminor.yy872 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy872); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 467: /* tags_literal ::= literal_func NK_PLUS duration_literal */
case 468: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==468);
2024-03-10 14:14:57 +00:00
{
2024-04-15 08:12:15 +00:00
SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
2024-03-10 14:14:57 +00:00
l.n = (r.z + r.n) - l.z;
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy872, yymsp[0].minor.yy872);
2024-03-10 14:14:57 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 471: /* literal ::= NK_INTEGER */
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 472: /* literal ::= NK_FLOAT */
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 473: /* literal ::= NK_STRING */
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 474: /* literal ::= NK_BOOL */
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 475: /* literal ::= TIMESTAMP NK_STRING */
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
break;
case 476: /* literal ::= duration_literal */
case 486: /* signed_literal ::= signed */ yytestcase(yyruleno==486);
case 509: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==509);
case 510: /* expression ::= literal */ yytestcase(yyruleno==510);
case 512: /* expression ::= column_reference */ yytestcase(yyruleno==512);
case 513: /* expression ::= function_expression */ yytestcase(yyruleno==513);
case 514: /* expression ::= case_when_expression */ yytestcase(yyruleno==514);
case 548: /* function_expression ::= literal_func */ yytestcase(yyruleno==548);
case 598: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==598);
case 602: /* boolean_primary ::= predicate */ yytestcase(yyruleno==602);
case 604: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==604);
case 605: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==605);
case 608: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==608);
case 610: /* table_reference ::= table_primary */ yytestcase(yyruleno==610);
case 611: /* table_reference ::= joined_table */ yytestcase(yyruleno==611);
case 615: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==615);
case 683: /* query_simple ::= query_specification */ yytestcase(yyruleno==683);
case 684: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==684);
case 687: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==687);
case 689: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==689);
{ yylhsminor.yy872 = yymsp[0].minor.yy872; }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 477: /* literal ::= NULL */
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 478: /* literal ::= NK_QUESTION */
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 479: /* duration_literal ::= NK_VARIABLE */
case 658: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==658);
case 659: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==659);
case 660: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==660);
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 480: /* signed ::= NK_INTEGER */
{ yylhsminor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 481: /* signed ::= NK_PLUS NK_INTEGER */
{ yymsp[-1].minor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
break;
case 482: /* 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;
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
2022-03-22 06:09:15 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 483: /* signed ::= NK_FLOAT */
{ yylhsminor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 484: /* signed ::= NK_PLUS NK_FLOAT */
{ yymsp[-1].minor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 485: /* signed ::= NK_MINUS NK_FLOAT */
2022-06-22 08:35:14 +00:00
{
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;
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
2024-03-10 14:14:57 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-1].minor.yy872 = yylhsminor.yy872;
break;
case 487: /* signed_literal ::= NK_STRING */
{ yylhsminor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 488: /* signed_literal ::= NK_BOOL */
{ yylhsminor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 489: /* signed_literal ::= TIMESTAMP NK_STRING */
{ yymsp[-1].minor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 490: /* signed_literal ::= duration_literal */
case 492: /* signed_literal ::= literal_func */ yytestcase(yyruleno==492);
case 569: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==569);
case 635: /* select_item ::= common_expression */ yytestcase(yyruleno==635);
case 645: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==645);
case 688: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==688);
case 690: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==690);
case 703: /* search_condition ::= common_expression */ yytestcase(yyruleno==703);
{ yylhsminor.yy872 = releaseRawExprNode(pCxt, yymsp[0].minor.yy872); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 491: /* signed_literal ::= NULL */
{ yylhsminor.yy872 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 493: /* signed_literal ::= NK_QUESTION */
{ yylhsminor.yy872 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 511: /* expression ::= pseudo_column */
{ yylhsminor.yy872 = yymsp[0].minor.yy872; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy872, true); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 515: /* expression ::= NK_LP expression NK_RP */
case 603: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==603);
case 702: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==702);
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy872)); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 516: /* expression ::= NK_PLUS expr_or_subquery */
2024-03-10 14:14:57 +00:00
{
2024-04-15 08:12:15 +00:00
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy872));
2022-06-22 08:35:14 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2022-06-22 08:35:14 +00:00
break;
2024-04-15 08:12:15 +00:00
case 517: /* expression ::= NK_MINUS expr_or_subquery */
2022-06-22 08:35:14 +00:00
{
2024-04-15 08:12:15 +00:00
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy872), NULL));
2022-06-22 08:35:14 +00:00
}
2024-04-15 08:12:15 +00:00
yymsp[-1].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 518: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2022-03-22 06:09:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 519: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 520: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 521: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 522: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 523: /* expression ::= column_reference NK_ARROW NK_STRING */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 524: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 525: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 528: /* column_reference ::= column_name */
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy833, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy833)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 529: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy833, createColumnNode(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy833)); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 530: /* column_reference ::= NK_ALIAS */
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 531: /* column_reference ::= table_name NK_DOT NK_ALIAS */
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 532: /* pseudo_column ::= ROWTS */
case 533: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==533);
case 535: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==535);
case 536: /* pseudo_column ::= QEND */ yytestcase(yyruleno==536);
case 537: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==537);
case 538: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==538);
case 539: /* pseudo_column ::= WEND */ yytestcase(yyruleno==539);
case 540: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==540);
case 541: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==541);
case 542: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==542);
case 543: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==543);
case 550: /* literal_func ::= NOW */ yytestcase(yyruleno==550);
case 551: /* literal_func ::= TODAY */ yytestcase(yyruleno==551);
{ yylhsminor.yy872 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
break;
case 534: /* pseudo_column ::= table_name NK_DOT TBNAME */
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy833)))); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 544: /* function_expression ::= function_name NK_LP expression_list NK_RP */
case 545: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==545);
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy833, yymsp[-1].minor.yy376)); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
break;
case 546: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
case 547: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==547);
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy872), yymsp[-1].minor.yy400)); }
yymsp[-5].minor.yy872 = yylhsminor.yy872;
break;
case 549: /* literal_func ::= noarg_func NK_LP NK_RP */
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy833, NULL)); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 565: /* star_func_para_list ::= NK_STAR */
{ yylhsminor.yy376 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy376 = yylhsminor.yy376;
break;
case 570: /* star_func_para ::= table_name NK_DOT NK_STAR */
case 638: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==638);
{ yylhsminor.yy872 = createColumnNode(pCxt, &yymsp[-2].minor.yy833, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
case 571: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy376, yymsp[-1].minor.yy872)); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
break;
case 572: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy872), yymsp[-2].minor.yy376, yymsp[-1].minor.yy872)); }
yymsp[-4].minor.yy872 = yylhsminor.yy872;
break;
case 575: /* when_then_expr ::= WHEN common_expression THEN common_expression */
{ yymsp[-3].minor.yy872 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)); }
break;
case 577: /* case_when_else_opt ::= ELSE common_expression */
{ yymsp[-1].minor.yy872 = releaseRawExprNode(pCxt, yymsp[0].minor.yy872); }
break;
case 578: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
case 583: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==583);
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy1052, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 579: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy872), releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-4].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 580: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy872), releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-5].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 581: /* predicate ::= expr_or_subquery IS NULL */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), NULL));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 582: /* predicate ::= expr_or_subquery IS NOT NULL */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy872), NULL));
}
2024-04-15 08:12:15 +00:00
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 584: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy1052 = OP_TYPE_LOWER_THAN; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 585: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy1052 = OP_TYPE_GREATER_THAN; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 586: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy1052 = OP_TYPE_LOWER_EQUAL; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 587: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy1052 = OP_TYPE_GREATER_EQUAL; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 588: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy1052 = OP_TYPE_NOT_EQUAL; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 589: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy1052 = OP_TYPE_EQUAL; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 590: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy1052 = OP_TYPE_LIKE; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 591: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy1052 = OP_TYPE_NOT_LIKE; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 592: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy1052 = OP_TYPE_MATCH; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 593: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy1052 = OP_TYPE_NMATCH; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 594: /* compare_op ::= CONTAINS */
{ yymsp[0].minor.yy1052 = OP_TYPE_JSON_CONTAINS; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 595: /* in_op ::= IN */
{ yymsp[0].minor.yy1052 = OP_TYPE_IN; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 596: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy1052 = OP_TYPE_NOT_IN; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 597: /* in_predicate_value ::= NK_LP literal_list NK_RP */
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy376)); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 599: /* boolean_value_expression ::= NOT boolean_primary */
{
2024-04-15 08:12:15 +00:00
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy872), NULL));
}
2024-04-15 08:12:15 +00:00
yymsp[-1].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 600: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
break;
2024-04-15 08:12:15 +00:00
case 601: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{
2024-04-15 08:12:15 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy872);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy872);
yylhsminor.yy872 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), releaseRawExprNode(pCxt, yymsp[0].minor.yy872)));
}
2024-04-15 08:12:15 +00:00
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 609: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy872 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy872, yymsp[0].minor.yy872, NULL); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 612: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy872 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy833, &yymsp[0].minor.yy833); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 613: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy872 = createRealTableNode(pCxt, &yymsp[-3].minor.yy833, &yymsp[-1].minor.yy833, &yymsp[0].minor.yy833); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 614: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy872 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy872), &yymsp[0].minor.yy833); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 616: /* alias_opt ::= */
{ yymsp[1].minor.yy833 = nil_token; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 618: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy833 = yymsp[0].minor.yy833; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 619: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 620: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==620);
{ yymsp[-2].minor.yy872 = yymsp[-1].minor.yy872; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 621: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ yylhsminor.yy872 = createJoinTableNode(pCxt, yymsp[-4].minor.yy948, yymsp[-5].minor.yy872, yymsp[-2].minor.yy872, yymsp[0].minor.yy872); }
yymsp[-5].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 622: /* join_type ::= */
{ yymsp[1].minor.yy948 = JOIN_TYPE_INNER; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 623: /* join_type ::= INNER */
{ yymsp[0].minor.yy948 = JOIN_TYPE_INNER; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 624: /* 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 */
{
2024-04-15 08:12:15 +00:00
yymsp[-13].minor.yy872 = createSelectStmt(pCxt, yymsp[-11].minor.yy185, yymsp[-9].minor.yy376, yymsp[-8].minor.yy872, yymsp[-12].minor.yy376);
yymsp[-13].minor.yy872 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy872, yymsp[-10].minor.yy185);
yymsp[-13].minor.yy872 = addWhereClause(pCxt, yymsp[-13].minor.yy872, yymsp[-7].minor.yy872);
yymsp[-13].minor.yy872 = addPartitionByClause(pCxt, yymsp[-13].minor.yy872, yymsp[-6].minor.yy376);
yymsp[-13].minor.yy872 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy872, yymsp[-2].minor.yy872);
yymsp[-13].minor.yy872 = addGroupByClause(pCxt, yymsp[-13].minor.yy872, yymsp[-1].minor.yy376);
yymsp[-13].minor.yy872 = addHavingClause(pCxt, yymsp[-13].minor.yy872, yymsp[0].minor.yy872);
yymsp[-13].minor.yy872 = addRangeClause(pCxt, yymsp[-13].minor.yy872, yymsp[-5].minor.yy872);
yymsp[-13].minor.yy872 = addEveryClause(pCxt, yymsp[-13].minor.yy872, yymsp[-4].minor.yy872);
yymsp[-13].minor.yy872 = addFillClause(pCxt, yymsp[-13].minor.yy872, yymsp[-3].minor.yy872);
}
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 625: /* hint_list ::= */
{ yymsp[1].minor.yy376 = createHintNodeList(pCxt, NULL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 626: /* hint_list ::= NK_HINT */
{ yylhsminor.yy376 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy376 = yylhsminor.yy376;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 631: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy185 = false; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 634: /* select_item ::= NK_STAR */
{ yylhsminor.yy872 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 636: /* select_item ::= common_expression column_alias */
case 646: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==646);
{ yylhsminor.yy872 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy872), &yymsp[0].minor.yy833); }
yymsp[-1].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 637: /* select_item ::= common_expression AS column_alias */
case 647: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==647);
{ yylhsminor.yy872 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), &yymsp[0].minor.yy833); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 642: /* partition_by_clause_opt ::= PARTITION BY partition_list */
case 672: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==672);
case 692: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==692);
{ yymsp[-2].minor.yy376 = yymsp[0].minor.yy376; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 649: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
{ yymsp[-5].minor.yy872 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy872), releaseRawExprNode(pCxt, yymsp[-1].minor.yy872)); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 650: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy872 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy872)); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 651: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy872 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy872), NULL, yymsp[-1].minor.yy872, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 652: /* 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.yy872 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy872), releaseRawExprNode(pCxt, yymsp[-3].minor.yy872), yymsp[-1].minor.yy872, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 653: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
{ yymsp[-6].minor.yy872 = createEventWindowNode(pCxt, yymsp[-3].minor.yy872, yymsp[0].minor.yy872); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 654: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy872 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 655: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy872 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 662: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy872 = createFillNode(pCxt, yymsp[-1].minor.yy294, NULL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 663: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy872 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy376)); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 664: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy872 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy376)); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 665: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy294 = FILL_MODE_NONE; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 666: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy294 = FILL_MODE_PREV; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 667: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy294 = FILL_MODE_NULL; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 668: /* fill_mode ::= NULL_F */
{ yymsp[0].minor.yy294 = FILL_MODE_NULL_F; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 669: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy294 = FILL_MODE_LINEAR; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 670: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy294 = FILL_MODE_NEXT; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 673: /* group_by_list ::= expr_or_subquery */
{ yylhsminor.yy376 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy872))); }
yymsp[0].minor.yy376 = yylhsminor.yy376;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 674: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy872))); }
yymsp[-2].minor.yy376 = yylhsminor.yy376;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 678: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
{ yymsp[-5].minor.yy872 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy872), releaseRawExprNode(pCxt, yymsp[-1].minor.yy872)); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 679: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy872 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy872)); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 682: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
2022-09-16 07:53:27 +00:00
{
2024-04-15 08:12:15 +00:00
yylhsminor.yy872 = addOrderByClause(pCxt, yymsp[-3].minor.yy872, yymsp[-2].minor.yy376);
yylhsminor.yy872 = addSlimitClause(pCxt, yylhsminor.yy872, yymsp[-1].minor.yy872);
yylhsminor.yy872 = addLimitClause(pCxt, yylhsminor.yy872, yymsp[0].minor.yy872);
}
2024-04-15 08:12:15 +00:00
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 685: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
{ yylhsminor.yy872 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy872, yymsp[0].minor.yy872); }
yymsp[-3].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 686: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
{ yylhsminor.yy872 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy872, yymsp[0].minor.yy872); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 694: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
case 698: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==698);
{ yymsp[-1].minor.yy872 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 695: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 699: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==699);
{ yymsp[-3].minor.yy872 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 696: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 700: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==700);
{ yymsp[-3].minor.yy872 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 701: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy872 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy872); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 706: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy872 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy872), yymsp[-1].minor.yy290, yymsp[0].minor.yy169); }
yymsp[-2].minor.yy872 = yylhsminor.yy872;
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 707: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy290 = ORDER_ASC; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 708: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy290 = ORDER_ASC; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 709: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy290 = ORDER_DESC; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 710: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy169 = NULL_ORDER_DEFAULT; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 711: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy169 = NULL_ORDER_FIRST; }
2024-03-26 11:56:15 +00:00
break;
2024-04-15 08:12:15 +00:00
case 712: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy169 = 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
2024-03-26 11:56:15 +00:00
do{
assert( yyact==yypParser->yytos->stateno );
yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
if( yyact >= YY_MIN_REDUCE ){
2024-03-26 11:56:15 +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{
2024-03-26 11:56:15 +00:00
while( yypParser->yytos >= yypParser->yystack
&& (yyact = yy_find_reduce_action(
yypParser->yytos->stateno,
YYERRORSYMBOL)) > YY_MAX_SHIFTREDUCE
){
yy_pop_parser_stack(yypParser);
}
2024-03-26 11:56:15 +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
}
2024-03-26 11:56:15 +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
}