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

7006 lines
365 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-10 14:14:57 +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-10 14:14:57 +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-03-13 07:12:21 +00:00
#define YYNOCODE 516
#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-03-13 07:12:21 +00:00
ENullOrder yy73;
SNodeList* yy136;
int8_t yy191;
SDataType yy256;
SShowTablesOption yy493;
bool yy497;
EShowKind yy633;
SNode* yy656;
EJoinType yy660;
SToken yy665;
EOrder yy674;
int32_t yy676;
SAlterOption yy749;
STokenPair yy753;
EFillMode yy822;
EOperatorType yy836;
int64_t yy909;
} 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-03-10 14:14:57 +00:00
#define YYNSTATE 859
2024-03-13 07:12:21 +00:00
#define YYNRULE 670
#define YYNRULE_WITH_ACTION 670
#define YYNTOKEN 353
2024-03-10 14:14:57 +00:00
#define YY_MAX_SHIFT 858
2024-03-13 07:12:21 +00:00
#define YY_MIN_SHIFTREDUCE 1281
#define YY_MAX_SHIFTREDUCE 1950
#define YY_ERROR_ACTION 1951
#define YY_ACCEPT_ACTION 1952
#define YY_NO_ACTION 1953
#define YY_MIN_REDUCE 1954
#define YY_MAX_REDUCE 2623
/************* 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-03-13 07:12:21 +00:00
#define YY_ACTTAB_COUNT (2992)
static const YYACTIONTYPE yy_action[] = {
2024-03-13 07:12:21 +00:00
/* 0 */ 2197, 2197, 573, 428, 474, 574, 1997, 404, 414, 473,
/* 10 */ 2197, 169, 47, 45, 1872, 2195, 2195, 33, 405, 2146,
/* 20 */ 419, 1737, 1712, 40, 39, 729, 2195, 46, 44, 43,
/* 30 */ 42, 41, 1738, 2282, 35, 1798, 2040, 1710, 2215, 759,
/* 40 */ 40, 39, 653, 2422, 46, 44, 43, 42, 41, 481,
/* 50 */ 1328, 2280, 747, 722, 147, 681, 725, 651, 2594, 649,
/* 60 */ 271, 270, 40, 39, 759, 1793, 46, 44, 43, 42,
/* 70 */ 41, 19, 1692, 1737, 1326, 1327, 2600, 204, 1718, 760,
/* 80 */ 2144, 2595, 711, 664, 2440, 40, 39, 29, 2528, 46,
/* 90 */ 44, 43, 42, 41, 540, 538, 2388, 370, 742, 138,
/* 100 */ 1977, 218, 37, 310, 855, 2381, 616, 15, 426, 830,
/* 110 */ 829, 828, 827, 437, 2525, 826, 825, 152, 820, 819,
2024-03-10 14:14:57 +00:00
/* 120 */ 818, 817, 816, 815, 814, 151, 808, 807, 806, 436,
2024-03-13 07:12:21 +00:00
/* 130 */ 435, 803, 802, 801, 184, 183, 800, 593, 2421, 2135,
/* 140 */ 175, 2459, 1966, 1800, 1801, 115, 2423, 746, 2425, 2426,
/* 150 */ 741, 50, 764, 2388, 1740, 1611, 1612, 187, 2282, 2513,
/* 160 */ 425, 66, 1917, 415, 2509, 302, 2521, 721, 2197, 139,
/* 170 */ 720, 764, 2594, 422, 2352, 424, 2279, 747, 206, 62,
/* 180 */ 1772, 1782, 1955, 2195, 759, 1916, 2543, 1799, 1802, 581,
/* 190 */ 709, 204, 574, 1997, 425, 2595, 711, 519, 518, 1610,
/* 200 */ 1613, 1485, 1713, 128, 1711, 764, 127, 126, 125, 124,
/* 210 */ 123, 122, 121, 120, 119, 1476, 789, 788, 787, 1480,
/* 220 */ 786, 1482, 1483, 785, 782, 447, 1491, 779, 1493, 1494,
/* 230 */ 776, 773, 770, 1591, 1592, 2349, 1716, 1717, 1769, 1695,
/* 240 */ 1771, 1774, 1775, 1776, 1777, 1778, 1779, 1780, 1781, 738,
/* 250 */ 762, 761, 1792, 1794, 1795, 1796, 1797, 2, 47, 45,
/* 260 */ 96, 578, 589, 368, 62, 1735, 419, 575, 1712, 1698,
/* 270 */ 1701, 50, 524, 710, 2422, 543, 2594, 392, 1321, 2122,
/* 280 */ 542, 1798, 1976, 1710, 40, 39, 2139, 740, 46, 44,
/* 290 */ 43, 42, 41, 2528, 709, 204, 504, 1328, 544, 2595,
/* 300 */ 711, 40, 39, 369, 506, 46, 44, 43, 42, 41,
/* 310 */ 62, 1793, 153, 1741, 484, 2440, 304, 19, 306, 2524,
/* 320 */ 1323, 1326, 1327, 107, 1718, 760, 2144, 2388, 430, 742,
/* 330 */ 799, 2190, 2192, 128, 1738, 2388, 127, 126, 125, 124,
/* 340 */ 123, 122, 121, 120, 119, 138, 306, 380, 2137, 2398,
/* 350 */ 855, 391, 621, 15, 46, 44, 43, 42, 41, 40,
/* 360 */ 39, 2528, 492, 46, 44, 43, 42, 41, 1876, 2421,
/* 370 */ 185, 2599, 2459, 2402, 1737, 534, 360, 2423, 746, 2425,
/* 380 */ 2426, 741, 739, 764, 730, 2478, 1737, 2523, 1740, 1800,
/* 390 */ 1801, 1827, 2269, 2248, 2263, 531, 530, 529, 528, 523,
/* 400 */ 522, 521, 520, 374, 472, 51, 471, 510, 509, 508,
/* 410 */ 507, 501, 500, 499, 1954, 494, 493, 389, 2404, 2406,
/* 420 */ 416, 485, 1579, 1580, 12, 185, 1772, 1782, 1598, 764,
/* 430 */ 173, 306, 1952, 1799, 1802, 344, 470, 229, 137, 136,
/* 440 */ 135, 134, 133, 132, 131, 130, 129, 390, 1713, 2262,
/* 450 */ 1711, 705, 342, 75, 1808, 1828, 74, 1520, 1521, 1888,
/* 460 */ 1737, 533, 228, 211, 40, 39, 371, 810, 46, 44,
/* 470 */ 43, 42, 41, 62, 662, 200, 1940, 306, 237, 555,
/* 480 */ 553, 550, 1716, 1717, 1769, 329, 1771, 1774, 1775, 1776,
/* 490 */ 1777, 1778, 1779, 1780, 1781, 738, 762, 761, 1792, 1794,
/* 500 */ 1795, 1796, 1797, 2, 12, 47, 45, 2382, 43, 42,
/* 510 */ 41, 2398, 440, 419, 2197, 1712, 1347, 439, 1346, 62,
/* 520 */ 239, 388, 314, 315, 576, 1718, 2005, 313, 1798, 2195,
/* 530 */ 1710, 1742, 812, 143, 1773, 2402, 700, 36, 417, 1822,
/* 540 */ 1823, 1824, 1825, 1826, 1830, 1831, 1832, 1833, 40, 39,
/* 550 */ 304, 1348, 46, 44, 43, 42, 41, 63, 1793, 760,
/* 560 */ 2144, 2422, 425, 681, 19, 12, 2594, 10, 434, 433,
/* 570 */ 174, 1718, 306, 764, 743, 2361, 722, 147, 2083, 209,
/* 580 */ 2404, 2407, 396, 395, 2600, 204, 570, 9, 1691, 2595,
/* 590 */ 711, 764, 1770, 1719, 731, 568, 2485, 855, 564, 560,
/* 600 */ 15, 710, 2440, 2598, 2594, 2422, 85, 84, 477, 1975,
/* 610 */ 2133, 217, 490, 2258, 2388, 241, 742, 2027, 743, 576,
/* 620 */ 1773, 2005, 709, 204, 469, 467, 681, 2595, 711, 2594,
/* 630 */ 706, 701, 694, 690, 1440, 367, 1800, 1801, 456, 636,
/* 640 */ 306, 453, 449, 445, 442, 470, 2440, 2600, 204, 1439,
/* 650 */ 1947, 1741, 2595, 711, 394, 393, 2421, 618, 2388, 2459,
/* 660 */ 742, 220, 2388, 176, 2423, 746, 2425, 2426, 741, 1769,
/* 670 */ 764, 790, 2599, 1772, 1782, 2594, 760, 2144, 1770, 620,
/* 680 */ 1799, 1802, 714, 619, 760, 2144, 306, 724, 202, 2521,
/* 690 */ 2522, 1428, 145, 2526, 2598, 1713, 55, 1711, 2595, 2597,
/* 700 */ 2421, 14, 13, 2459, 478, 682, 2554, 115, 2423, 746,
/* 710 */ 2425, 2426, 741, 1741, 764, 2362, 545, 149, 286, 156,
/* 720 */ 2484, 2513, 171, 496, 2258, 415, 2509, 1905, 704, 1716,
/* 730 */ 1717, 1769, 1430, 1771, 1774, 1775, 1776, 1777, 1778, 1779,
/* 740 */ 1780, 1781, 738, 762, 761, 1792, 1794, 1795, 1796, 1797,
/* 750 */ 2, 47, 45, 1803, 2422, 1694, 2440, 1946, 96, 419,
/* 760 */ 1722, 1712, 101, 197, 722, 147, 681, 725, 680, 2594,
/* 770 */ 760, 2144, 222, 257, 1798, 2184, 1710, 697, 696, 1903,
/* 780 */ 1904, 1906, 1907, 1908, 2140, 1697, 1700, 2600, 204, 180,
/* 790 */ 479, 813, 2595, 711, 2105, 2440, 2121, 1444, 610, 606,
/* 800 */ 602, 598, 2599, 256, 1793, 2594, 2129, 2388, 1841, 742,
/* 810 */ 760, 2144, 1443, 195, 635, 634, 633, 1718, 1861, 703,
/* 820 */ 1829, 625, 144, 629, 2598, 760, 2144, 628, 2595, 2596,
/* 830 */ 498, 2131, 627, 632, 398, 397, 1974, 1347, 626, 1346,
/* 840 */ 642, 622, 1741, 855, 97, 511, 48, 254, 2231, 2421,
/* 850 */ 2127, 2422, 2459, 760, 2144, 654, 115, 2423, 746, 2425,
/* 860 */ 2426, 741, 148, 764, 743, 2484, 2007, 1869, 187, 1742,
/* 870 */ 2513, 272, 1348, 512, 415, 2509, 203, 2521, 2522, 547,
/* 880 */ 145, 2526, 1800, 1801, 1712, 760, 2144, 645, 2119, 2388,
/* 890 */ 526, 2258, 2440, 665, 639, 637, 713, 2544, 665, 1710,
/* 900 */ 60, 269, 34, 620, 2388, 513, 742, 619, 678, 1973,
/* 910 */ 40, 39, 1834, 244, 46, 44, 43, 42, 41, 1772,
/* 920 */ 1782, 100, 253, 246, 275, 791, 1799, 1802, 2188, 251,
/* 930 */ 587, 1742, 797, 162, 161, 794, 793, 792, 159, 227,
/* 940 */ 1718, 1713, 71, 1711, 590, 70, 2421, 715, 243, 2459,
/* 950 */ 760, 2144, 1639, 115, 2423, 746, 2425, 2426, 741, 733,
/* 960 */ 764, 2485, 2388, 1897, 660, 2614, 855, 2513, 583, 2321,
/* 970 */ 592, 415, 2509, 667, 2321, 1716, 1717, 1769, 1898, 1771,
/* 980 */ 1774, 1775, 1776, 1777, 1778, 1779, 1780, 1781, 738, 762,
/* 990 */ 761, 1792, 1794, 1795, 1796, 1797, 2, 47, 45, 2422,
/* 1000 */ 591, 2275, 1660, 1661, 199, 419, 2148, 1712, 666, 517,
/* 1010 */ 722, 147, 743, 516, 2551, 681, 1972, 1971, 2594, 1896,
/* 1020 */ 1798, 515, 1710, 423, 797, 162, 161, 794, 793, 792,
/* 1030 */ 159, 172, 1737, 2191, 2192, 1970, 2600, 204, 2422, 2146,
/* 1040 */ 2440, 2595, 711, 797, 162, 161, 794, 793, 792, 159,
/* 1050 */ 1793, 743, 2388, 2564, 742, 760, 2144, 428, 458, 681,
/* 1060 */ 1742, 1969, 2594, 1718, 1713, 172, 1711, 760, 2144, 2388,
/* 1070 */ 2388, 1350, 1351, 2146, 431, 2141, 612, 611, 2120, 2440,
/* 1080 */ 2600, 204, 172, 1737, 726, 2595, 711, 277, 2388, 855,
/* 1090 */ 2146, 2388, 48, 742, 2421, 282, 2422, 2459, 1716, 1717,
/* 1100 */ 1968, 115, 2423, 746, 2425, 2426, 741, 1965, 764, 743,
/* 1110 */ 2197, 692, 77, 2614, 2388, 2513, 717, 429, 737, 415,
/* 1120 */ 2509, 1964, 205, 2521, 2522, 2195, 145, 2526, 1800, 1801,
/* 1130 */ 760, 2144, 2557, 2421, 3, 681, 2459, 2440, 2594, 1868,
/* 1140 */ 115, 2423, 746, 2425, 2426, 741, 53, 764, 799, 2388,
/* 1150 */ 285, 742, 2614, 2388, 2513, 1963, 2600, 204, 415, 2509,
/* 1160 */ 2388, 2595, 711, 224, 88, 1772, 1782, 1962, 760, 2144,
/* 1170 */ 760, 2144, 1799, 1802, 2388, 198, 760, 2144, 2197, 274,
/* 1180 */ 631, 630, 2197, 273, 1982, 850, 462, 1713, 728, 1711,
/* 1190 */ 318, 2421, 1773, 755, 2459, 736, 757, 2196, 115, 2423,
/* 1200 */ 746, 2425, 2426, 741, 91, 764, 1961, 90, 2388, 1330,
/* 1210 */ 2614, 1967, 2513, 464, 460, 1736, 415, 2509, 614, 613,
/* 1220 */ 2388, 1716, 1717, 1769, 2330, 1771, 1774, 1775, 1776, 1777,
/* 1230 */ 1778, 1779, 1780, 1781, 738, 762, 761, 1792, 1794, 1795,
/* 1240 */ 1796, 1797, 2, 47, 45, 760, 2144, 760, 2144, 2422,
/* 1250 */ 1770, 419, 99, 1712, 1960, 377, 160, 1959, 403, 2388,
/* 1260 */ 655, 113, 743, 2241, 2587, 758, 1798, 325, 1710, 1958,
/* 1270 */ 1957, 824, 822, 89, 760, 2144, 1721, 172, 150, 276,
/* 1280 */ 795, 2533, 1861, 2188, 2422, 2147, 2136, 160, 796, 338,
/* 1290 */ 2440, 2188, 2174, 160, 432, 262, 1793, 743, 260, 2532,
/* 1300 */ 623, 1770, 2388, 140, 742, 488, 624, 2388, 264, 1718,
/* 1310 */ 2388, 263, 2025, 266, 268, 87, 265, 267, 2016, 2014,
/* 1320 */ 1949, 1950, 2388, 2388, 1425, 2440, 657, 688, 656, 1720,
/* 1330 */ 1423, 54, 49, 2084, 638, 855, 698, 2388, 15, 742,
/* 1340 */ 640, 643, 49, 804, 2421, 2409, 188, 2459, 160, 14,
/* 1350 */ 13, 115, 2423, 746, 2425, 2426, 741, 64, 764, 49,
/* 1360 */ 1819, 2008, 1655, 2614, 49, 2513, 312, 1402, 1658, 415,
/* 1370 */ 2509, 434, 433, 805, 1800, 1801, 76, 324, 323, 2421,
/* 1380 */ 158, 1726, 2459, 718, 160, 73, 115, 2423, 746, 2425,
/* 1390 */ 2426, 741, 112, 764, 1798, 2422, 1719, 1400, 2614, 299,
/* 1400 */ 2513, 109, 1892, 2411, 415, 2509, 1383, 1902, 743, 142,
/* 1410 */ 2441, 1772, 1782, 848, 768, 293, 158, 1901, 1799, 1802,
/* 1420 */ 160, 291, 2267, 727, 1793, 2081, 1998, 2080, 141, 2547,
/* 1430 */ 158, 695, 1835, 1713, 1783, 1711, 2440, 1718, 410, 1608,
/* 1440 */ 702, 316, 406, 1724, 749, 438, 2268, 1384, 2388, 2004,
/* 1450 */ 742, 752, 2185, 2422, 674, 320, 2548, 2558, 723, 1470,
/* 1460 */ 337, 301, 298, 735, 305, 5, 743, 1716, 1717, 1769,
/* 1470 */ 441, 1771, 1774, 1775, 1776, 1777, 1778, 1779, 1780, 1781,
/* 1480 */ 738, 762, 761, 1792, 1794, 1795, 1796, 1797, 2, 1498,
/* 1490 */ 2421, 1502, 2106, 2459, 2440, 1509, 1723, 115, 2423, 746,
/* 1500 */ 2425, 2426, 741, 1507, 764, 163, 2388, 2043, 742, 2488,
/* 1510 */ 446, 2513, 373, 372, 386, 415, 2509, 454, 455, 1745,
/* 1520 */ 466, 465, 1702, 2422, 212, 213, 468, 215, 1632, 332,
/* 1530 */ 1735, 482, 1736, 489, 226, 1798, 743, 1690, 491, 495,
/* 1540 */ 497, 536, 502, 514, 527, 525, 2260, 532, 2421, 535,
/* 1550 */ 537, 2459, 548, 549, 546, 115, 2423, 746, 2425, 2426,
/* 1560 */ 741, 1727, 764, 1722, 2440, 1793, 231, 2486, 232, 2513,
/* 1570 */ 551, 552, 1743, 415, 2509, 234, 2388, 554, 742, 556,
/* 1580 */ 635, 634, 633, 571, 4, 572, 579, 625, 144, 629,
/* 1590 */ 582, 580, 2422, 628, 242, 1730, 1732, 1738, 627, 632,
/* 1600 */ 398, 397, 584, 1744, 626, 743, 93, 622, 585, 762,
/* 1610 */ 761, 1792, 1794, 1795, 1796, 1797, 586, 245, 2421, 1746,
/* 1620 */ 248, 2459, 588, 2422, 250, 115, 2423, 746, 2425, 2426,
/* 1630 */ 741, 1747, 764, 2440, 94, 2276, 743, 732, 95, 2513,
/* 1640 */ 594, 255, 615, 415, 2509, 2388, 617, 742, 2134, 646,
/* 1650 */ 259, 117, 2130, 261, 647, 165, 166, 2339, 364, 2132,
/* 1660 */ 659, 661, 2128, 167, 2440, 168, 98, 1739, 154, 333,
/* 1670 */ 669, 2322, 670, 278, 668, 281, 2388, 283, 742, 675,
/* 1680 */ 2336, 699, 2335, 750, 676, 673, 685, 2421, 2563, 2562,
/* 1690 */ 2459, 8, 2422, 292, 116, 2423, 746, 2425, 2426, 741,
/* 1700 */ 2535, 764, 1703, 288, 1693, 743, 290, 708, 2513, 179,
/* 1710 */ 686, 684, 2512, 2509, 683, 411, 297, 719, 2421, 716,
/* 1720 */ 2617, 2459, 294, 300, 296, 116, 2423, 746, 2425, 2426,
/* 1730 */ 741, 1861, 764, 2440, 1696, 1699, 1704, 295, 1740, 2513,
/* 1740 */ 146, 2529, 2593, 734, 2509, 2388, 1866, 742, 1864, 191,
/* 1750 */ 762, 761, 1792, 1794, 1795, 1796, 1797, 307, 61, 1,
/* 1760 */ 155, 2422, 334, 207, 2494, 748, 2290, 2289, 335, 753,
/* 1770 */ 336, 2145, 2288, 421, 743, 157, 2422, 754, 106, 2380,
/* 1780 */ 108, 2379, 2189, 327, 339, 766, 1305, 744, 852, 743,
/* 1790 */ 2459, 849, 52, 164, 116, 2423, 746, 2425, 2426, 741,
/* 1800 */ 351, 764, 2440, 854, 384, 2422, 385, 343, 2513, 341,
/* 1810 */ 362, 2360, 379, 2509, 2388, 352, 742, 2440, 743, 2359,
/* 1820 */ 363, 2358, 82, 2353, 443, 444, 1683, 1684, 210, 2388,
/* 1830 */ 448, 742, 2351, 450, 451, 2422, 452, 1682, 2350, 387,
/* 1840 */ 2348, 457, 2347, 2346, 459, 2345, 2440, 461, 743, 463,
/* 1850 */ 1671, 2326, 214, 2325, 216, 1634, 2421, 83, 2388, 2459,
/* 1860 */ 742, 1635, 2303, 177, 2423, 746, 2425, 2426, 741, 2302,
/* 1870 */ 764, 2421, 2301, 475, 2459, 476, 2440, 2300, 116, 2423,
/* 1880 */ 746, 2425, 2426, 741, 2299, 764, 2250, 2247, 2388, 483,
/* 1890 */ 742, 2246, 2513, 2422, 2240, 480, 1578, 2510, 486, 487,
/* 1900 */ 2421, 2237, 2236, 2459, 219, 86, 743, 176, 2423, 746,
/* 1910 */ 2425, 2426, 741, 2235, 764, 2234, 2239, 712, 2615, 2422,
/* 1920 */ 221, 2238, 2233, 2232, 2230, 2229, 2228, 223, 2227, 503,
/* 1930 */ 2421, 505, 743, 2459, 2440, 2225, 2224, 354, 2423, 746,
/* 1940 */ 2425, 2426, 741, 2223, 764, 2222, 2388, 2245, 742, 2221,
/* 1950 */ 2555, 2220, 2422, 225, 2208, 92, 2207, 2206, 2205, 2244,
/* 1960 */ 2440, 2219, 2243, 2226, 2218, 743, 2217, 2216, 408, 2214,
/* 1970 */ 2213, 2212, 2388, 2211, 742, 230, 2201, 1584, 2202, 2200,
/* 1980 */ 539, 541, 2199, 707, 2210, 2209, 2242, 2204, 2421, 2203,
/* 1990 */ 2422, 2459, 2198, 2440, 409, 361, 2423, 746, 2425, 2426,
/* 2000 */ 741, 2046, 764, 740, 233, 2388, 2045, 742, 2044, 1437,
/* 2010 */ 1441, 235, 1445, 236, 2421, 375, 2042, 2459, 376, 2039,
/* 2020 */ 557, 361, 2423, 746, 2425, 2426, 741, 2038, 764, 2031,
/* 2030 */ 561, 2440, 558, 559, 2018, 565, 563, 1993, 567, 569,
/* 2040 */ 186, 1992, 1329, 2388, 238, 742, 562, 2421, 240, 2422,
/* 2050 */ 2459, 566, 79, 2408, 177, 2423, 746, 2425, 2426, 741,
/* 2060 */ 196, 764, 743, 577, 80, 2422, 2324, 2320, 2310, 2298,
/* 2070 */ 2297, 249, 247, 252, 2274, 2123, 2041, 2037, 743, 595,
/* 2080 */ 597, 1376, 596, 2035, 599, 2421, 600, 601, 2459, 2033,
/* 2090 */ 2440, 603, 360, 2423, 746, 2425, 2426, 741, 605, 764,
/* 2100 */ 604, 2479, 2388, 2030, 742, 609, 2440, 2013, 607, 2616,
/* 2110 */ 608, 2011, 2012, 2010, 1989, 2125, 258, 1514, 2388, 1513,
/* 2120 */ 742, 2124, 1427, 1426, 418, 1424, 1413, 72, 1422, 1421,
/* 2130 */ 1420, 821, 1419, 1418, 823, 2028, 1415, 1414, 399, 1412,
/* 2140 */ 420, 2026, 400, 2017, 2421, 401, 663, 2459, 2015, 402,
/* 2150 */ 1988, 361, 2423, 746, 2425, 2426, 741, 1987, 764, 641,
/* 2160 */ 2421, 644, 2422, 2459, 858, 1986, 648, 361, 2423, 746,
/* 2170 */ 2425, 2426, 741, 1985, 764, 743, 650, 1984, 652, 118,
/* 2180 */ 331, 1665, 2323, 1667, 1664, 28, 2422, 1669, 67, 1645,
/* 2190 */ 2319, 280, 1641, 1643, 2309, 56, 194, 57, 671, 743,
/* 2200 */ 672, 2296, 2295, 2440, 687, 846, 842, 838, 834, 677,
/* 2210 */ 328, 284, 679, 2599, 1620, 2388, 20, 742, 1619, 17,
/* 2220 */ 6, 2422, 170, 407, 30, 7, 1919, 2440, 21, 287,
/* 2230 */ 22, 190, 65, 689, 743, 691, 1893, 693, 178, 2388,
/* 2240 */ 289, 742, 201, 1934, 1900, 189, 32, 31, 2409, 24,
/* 2250 */ 59, 114, 1933, 23, 321, 412, 81, 658, 1938, 1887,
/* 2260 */ 2459, 1939, 2440, 1937, 356, 2423, 746, 2425, 2426, 741,
/* 2270 */ 1940, 764, 413, 303, 2388, 2294, 742, 181, 2273, 103,
/* 2280 */ 1858, 2421, 1857, 25, 2459, 102, 756, 13, 346, 2423,
/* 2290 */ 746, 2425, 2426, 741, 2422, 764, 1810, 58, 11, 1728,
/* 2300 */ 18, 1809, 182, 192, 1762, 751, 2272, 743, 1820, 2422,
/* 2310 */ 104, 1785, 38, 322, 326, 1784, 2421, 1754, 16, 2459,
/* 2320 */ 311, 26, 743, 345, 2423, 746, 2425, 2426, 741, 309,
/* 2330 */ 764, 2422, 27, 767, 193, 2440, 308, 765, 1895, 317,
/* 2340 */ 69, 105, 319, 809, 743, 2464, 2463, 2388, 745, 742,
/* 2350 */ 2440, 1787, 109, 2422, 763, 279, 68, 427, 771, 1499,
/* 2360 */ 1496, 774, 2388, 769, 742, 772, 743, 1495, 775, 777,
/* 2370 */ 1492, 1486, 2440, 778, 780, 1484, 781, 783, 784, 110,
/* 2380 */ 111, 1504, 1508, 78, 2388, 1490, 742, 1374, 1489, 2421,
/* 2390 */ 798, 1435, 2459, 1488, 2440, 1409, 347, 2423, 746, 2425,
/* 2400 */ 2426, 741, 1487, 764, 2421, 1406, 2388, 2459, 742, 1405,
/* 2410 */ 1404, 353, 2423, 746, 2425, 2426, 741, 1403, 764, 1401,
/* 2420 */ 1399, 1398, 1397, 811, 1434, 208, 2421, 1395, 1394, 2459,
/* 2430 */ 1393, 1392, 1391, 357, 2423, 746, 2425, 2426, 741, 1390,
/* 2440 */ 764, 1389, 1431, 1429, 1386, 1385, 1380, 1382, 2421, 2036,
/* 2450 */ 2422, 2459, 1381, 1379, 831, 348, 2423, 746, 2425, 2426,
/* 2460 */ 741, 833, 764, 743, 832, 2034, 2422, 835, 837, 836,
/* 2470 */ 2032, 839, 840, 841, 2029, 843, 844, 845, 2009, 743,
/* 2480 */ 847, 2422, 1318, 1983, 1306, 851, 330, 853, 1953, 1714,
/* 2490 */ 340, 2440, 856, 857, 743, 1953, 1953, 1953, 1953, 1953,
/* 2500 */ 1953, 1953, 1953, 2388, 1953, 742, 1953, 2440, 1953, 1953,
/* 2510 */ 2422, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2388,
/* 2520 */ 1953, 742, 2440, 743, 1953, 2422, 1953, 1953, 1953, 1953,
/* 2530 */ 1953, 1953, 1953, 1953, 2388, 1953, 742, 1953, 743, 1953,
/* 2540 */ 1953, 1953, 1953, 1953, 1953, 2421, 1953, 1953, 2459, 1953,
/* 2550 */ 1953, 2440, 358, 2423, 746, 2425, 2426, 741, 1953, 764,
/* 2560 */ 1953, 2421, 1953, 2388, 2459, 742, 2440, 1953, 349, 2423,
/* 2570 */ 746, 2425, 2426, 741, 1953, 764, 2421, 1953, 2388, 2459,
/* 2580 */ 742, 1953, 1953, 359, 2423, 746, 2425, 2426, 741, 1953,
/* 2590 */ 764, 1953, 1953, 1953, 1953, 1953, 2422, 1953, 1953, 1953,
/* 2600 */ 1953, 1953, 1953, 1953, 1953, 2421, 1953, 1953, 2459, 743,
/* 2610 */ 1953, 2422, 350, 2423, 746, 2425, 2426, 741, 1953, 764,
/* 2620 */ 2421, 1953, 1953, 2459, 743, 1953, 2422, 365, 2423, 746,
/* 2630 */ 2425, 2426, 741, 1953, 764, 1953, 1953, 2440, 1953, 743,
/* 2640 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2388,
/* 2650 */ 1953, 742, 2440, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
/* 2660 */ 1953, 1953, 1953, 1953, 2388, 1953, 742, 2440, 1953, 1953,
/* 2670 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2388,
/* 2680 */ 1953, 742, 1953, 1953, 2422, 1953, 1953, 1953, 1953, 1953,
/* 2690 */ 1953, 2421, 1953, 1953, 2459, 1953, 1953, 743, 366, 2423,
/* 2700 */ 746, 2425, 2426, 741, 1953, 764, 2421, 1953, 1953, 2459,
/* 2710 */ 2422, 1953, 1953, 2434, 2423, 746, 2425, 2426, 741, 1953,
/* 2720 */ 764, 2421, 1953, 743, 2459, 2440, 1953, 1953, 2433, 2423,
/* 2730 */ 746, 2425, 2426, 741, 1953, 764, 1953, 2388, 1953, 742,
/* 2740 */ 1953, 1953, 1953, 2422, 1953, 1953, 1953, 1953, 1953, 1953,
/* 2750 */ 1953, 2440, 1953, 1953, 1953, 1953, 743, 1953, 1953, 1953,
/* 2760 */ 1953, 1953, 1953, 2388, 1953, 742, 1953, 1953, 2422, 1953,
/* 2770 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2421,
/* 2780 */ 1953, 743, 2459, 1953, 2440, 1953, 2432, 2423, 746, 2425,
/* 2790 */ 2426, 741, 1953, 764, 1953, 1953, 2388, 1953, 742, 1953,
/* 2800 */ 1953, 1953, 1953, 1953, 1953, 2421, 1953, 1953, 2459, 2440,
/* 2810 */ 1953, 1953, 381, 2423, 746, 2425, 2426, 741, 1953, 764,
/* 2820 */ 1953, 2388, 1953, 742, 1953, 1953, 1953, 1953, 1953, 1953,
/* 2830 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2421, 1953,
/* 2840 */ 1953, 2459, 1953, 1953, 1953, 382, 2423, 746, 2425, 2426,
/* 2850 */ 741, 2422, 764, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
/* 2860 */ 1953, 1953, 1953, 2421, 743, 1953, 2459, 2422, 1953, 1953,
/* 2870 */ 378, 2423, 746, 2425, 2426, 741, 1953, 764, 1953, 1953,
/* 2880 */ 743, 1953, 2422, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
/* 2890 */ 1953, 1953, 2440, 1953, 1953, 743, 1953, 1953, 1953, 1953,
/* 2900 */ 1953, 1953, 1953, 1953, 2388, 1953, 742, 1953, 2440, 1953,
/* 2910 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
/* 2920 */ 2388, 1953, 742, 2440, 1953, 1953, 1953, 1953, 1953, 1953,
/* 2930 */ 1953, 1953, 1953, 1953, 1953, 2388, 1953, 742, 1953, 1953,
/* 2940 */ 1953, 1953, 1953, 1953, 1953, 1953, 2421, 1953, 1953, 2459,
/* 2950 */ 1953, 1953, 1953, 383, 2423, 746, 2425, 2426, 741, 1953,
/* 2960 */ 764, 1953, 744, 1953, 1953, 2459, 1953, 1953, 1953, 356,
/* 2970 */ 2423, 746, 2425, 2426, 741, 1953, 764, 2421, 1953, 1953,
/* 2980 */ 2459, 1953, 1953, 1953, 355, 2423, 746, 2425, 2426, 741,
/* 2990 */ 1953, 764,
};
static const YYCODETYPE yy_lookahead[] = {
2024-03-13 07:12:21 +00:00
/* 0 */ 397, 397, 363, 389, 433, 366, 367, 404, 404, 438,
/* 10 */ 397, 397, 12, 13, 14, 412, 412, 2, 404, 405,
/* 20 */ 20, 20, 22, 8, 9, 412, 412, 12, 13, 14,
/* 30 */ 15, 16, 20, 411, 2, 35, 0, 37, 0, 20,
/* 40 */ 8, 9, 21, 356, 12, 13, 14, 15, 16, 368,
/* 50 */ 23, 429, 430, 368, 369, 484, 369, 36, 487, 38,
/* 60 */ 39, 40, 8, 9, 20, 65, 12, 13, 14, 15,
/* 70 */ 16, 71, 37, 20, 47, 48, 505, 506, 78, 368,
/* 80 */ 369, 510, 511, 20, 397, 8, 9, 33, 457, 12,
/* 90 */ 13, 14, 15, 16, 413, 414, 409, 416, 411, 388,
/* 100 */ 356, 420, 473, 474, 104, 399, 395, 107, 402, 73,
/* 110 */ 74, 75, 76, 77, 483, 79, 80, 81, 82, 83,
2023-08-24 07:54:10 +00:00
/* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
2024-03-13 07:12:21 +00:00
/* 130 */ 94, 95, 96, 97, 98, 99, 100, 70, 451, 399,
/* 140 */ 355, 454, 357, 143, 144, 458, 459, 460, 461, 462,
/* 150 */ 463, 107, 465, 409, 20, 143, 144, 470, 411, 472,
/* 160 */ 454, 4, 108, 476, 477, 480, 481, 482, 397, 484,
/* 170 */ 485, 465, 487, 426, 0, 404, 429, 430, 491, 107,
/* 180 */ 180, 181, 0, 412, 20, 108, 499, 187, 188, 363,
/* 190 */ 505, 506, 366, 367, 454, 510, 511, 159, 160, 187,
/* 200 */ 188, 104, 202, 21, 204, 465, 24, 25, 26, 27,
/* 210 */ 28, 29, 30, 31, 32, 118, 119, 120, 121, 122,
/* 220 */ 123, 124, 125, 126, 127, 51, 129, 130, 131, 132,
/* 230 */ 133, 134, 135, 180, 181, 0, 236, 237, 238, 204,
/* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
2024-03-13 07:12:21 +00:00
/* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 12, 13,
/* 260 */ 377, 14, 20, 18, 107, 20, 20, 20, 22, 234,
/* 270 */ 235, 107, 27, 484, 356, 30, 487, 394, 4, 0,
/* 280 */ 35, 35, 356, 37, 8, 9, 403, 369, 12, 13,
/* 290 */ 14, 15, 16, 457, 505, 506, 51, 23, 53, 510,
/* 300 */ 511, 8, 9, 58, 59, 12, 13, 14, 15, 16,
/* 310 */ 107, 65, 33, 20, 69, 397, 182, 71, 274, 483,
/* 320 */ 46, 47, 48, 375, 78, 368, 369, 409, 407, 411,
/* 330 */ 70, 410, 411, 21, 20, 409, 24, 25, 26, 27,
/* 340 */ 28, 29, 30, 31, 32, 388, 274, 71, 400, 385,
/* 350 */ 104, 106, 395, 107, 12, 13, 14, 15, 16, 8,
/* 360 */ 9, 457, 117, 12, 13, 14, 15, 16, 14, 451,
/* 370 */ 397, 3, 454, 409, 20, 87, 458, 459, 460, 461,
/* 380 */ 462, 463, 464, 465, 466, 467, 20, 483, 20, 143,
/* 390 */ 144, 115, 147, 148, 421, 150, 151, 152, 153, 154,
/* 400 */ 155, 156, 157, 158, 201, 107, 203, 162, 163, 164,
/* 410 */ 165, 166, 167, 168, 0, 170, 171, 172, 454, 455,
/* 420 */ 456, 176, 177, 178, 258, 397, 180, 181, 183, 465,
/* 430 */ 18, 274, 353, 187, 188, 23, 233, 149, 24, 25,
/* 440 */ 26, 27, 28, 29, 30, 31, 32, 419, 202, 421,
/* 450 */ 204, 20, 40, 41, 14, 179, 44, 143, 144, 108,
/* 460 */ 20, 173, 174, 228, 8, 9, 54, 13, 12, 13,
/* 470 */ 14, 15, 16, 107, 117, 182, 108, 274, 66, 67,
/* 480 */ 68, 69, 236, 237, 238, 34, 240, 241, 242, 243,
/* 490 */ 244, 245, 246, 247, 248, 249, 250, 251, 252, 253,
/* 500 */ 254, 255, 256, 257, 258, 12, 13, 399, 14, 15,
/* 510 */ 16, 385, 433, 20, 397, 22, 20, 438, 22, 107,
/* 520 */ 364, 404, 137, 138, 368, 78, 370, 142, 35, 412,
/* 530 */ 37, 238, 78, 37, 180, 409, 186, 261, 262, 263,
/* 540 */ 264, 265, 266, 267, 268, 269, 270, 271, 8, 9,
/* 550 */ 182, 55, 12, 13, 14, 15, 16, 145, 65, 368,
/* 560 */ 369, 356, 454, 484, 71, 258, 487, 260, 12, 13,
/* 570 */ 378, 78, 274, 465, 369, 433, 368, 369, 386, 388,
/* 580 */ 454, 455, 39, 40, 505, 506, 51, 42, 37, 510,
/* 590 */ 511, 465, 238, 37, 469, 60, 471, 104, 63, 64,
/* 600 */ 107, 484, 397, 3, 487, 356, 194, 195, 196, 356,
/* 610 */ 398, 199, 368, 369, 409, 364, 411, 0, 369, 368,
/* 620 */ 180, 370, 505, 506, 212, 213, 484, 510, 511, 487,
/* 630 */ 280, 281, 282, 283, 22, 223, 143, 144, 226, 22,
/* 640 */ 274, 229, 230, 231, 232, 233, 397, 505, 506, 37,
/* 650 */ 194, 20, 510, 511, 111, 112, 451, 114, 409, 454,
/* 660 */ 411, 417, 409, 458, 459, 460, 461, 462, 463, 238,
/* 670 */ 465, 117, 484, 180, 181, 487, 368, 369, 238, 136,
/* 680 */ 187, 188, 33, 140, 368, 369, 274, 479, 480, 481,
/* 690 */ 482, 37, 484, 485, 506, 202, 388, 204, 510, 511,
/* 700 */ 451, 1, 2, 454, 388, 500, 501, 458, 459, 460,
/* 710 */ 461, 462, 463, 20, 465, 433, 104, 468, 65, 470,
/* 720 */ 471, 472, 182, 368, 369, 476, 477, 236, 369, 236,
/* 730 */ 237, 238, 78, 240, 241, 242, 243, 244, 245, 246,
/* 740 */ 247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
/* 750 */ 257, 12, 13, 14, 356, 204, 397, 301, 377, 20,
/* 760 */ 204, 22, 109, 396, 368, 369, 484, 369, 50, 487,
/* 770 */ 368, 369, 417, 35, 35, 408, 37, 286, 287, 288,
/* 780 */ 289, 290, 291, 292, 403, 234, 235, 505, 506, 51,
/* 790 */ 388, 384, 510, 511, 387, 397, 0, 22, 60, 61,
/* 800 */ 62, 63, 484, 65, 65, 487, 398, 409, 108, 411,
/* 810 */ 368, 369, 37, 182, 73, 74, 75, 78, 273, 460,
/* 820 */ 179, 80, 81, 82, 506, 368, 369, 86, 510, 511,
/* 830 */ 388, 398, 91, 92, 93, 94, 356, 20, 97, 22,
/* 840 */ 4, 100, 20, 104, 106, 388, 107, 109, 0, 451,
/* 850 */ 398, 356, 454, 368, 369, 19, 458, 459, 460, 461,
/* 860 */ 462, 463, 468, 465, 369, 471, 371, 4, 470, 238,
/* 870 */ 472, 35, 55, 388, 476, 477, 480, 481, 482, 104,
/* 880 */ 484, 485, 143, 144, 22, 368, 369, 51, 0, 409,
/* 890 */ 368, 369, 397, 368, 58, 59, 296, 499, 368, 37,
/* 900 */ 182, 65, 261, 136, 409, 388, 411, 140, 190, 356,
/* 910 */ 8, 9, 271, 175, 12, 13, 14, 15, 16, 180,
/* 920 */ 181, 175, 184, 185, 137, 406, 187, 188, 409, 191,
/* 930 */ 192, 238, 136, 137, 138, 139, 140, 141, 142, 417,
/* 940 */ 78, 202, 106, 204, 368, 109, 451, 298, 210, 454,
/* 950 */ 368, 369, 206, 458, 459, 460, 461, 462, 463, 469,
/* 960 */ 465, 471, 409, 22, 433, 470, 104, 472, 443, 444,
/* 970 */ 388, 476, 477, 443, 444, 236, 237, 238, 37, 240,
/* 980 */ 241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
/* 990 */ 251, 252, 253, 254, 255, 256, 257, 12, 13, 356,
/* 1000 */ 424, 425, 215, 216, 182, 20, 398, 22, 433, 161,
/* 1010 */ 368, 369, 369, 165, 371, 484, 356, 356, 487, 78,
/* 1020 */ 35, 173, 37, 389, 136, 137, 138, 139, 140, 141,
/* 1030 */ 142, 397, 20, 410, 411, 356, 505, 506, 356, 405,
/* 1040 */ 397, 510, 511, 136, 137, 138, 139, 140, 141, 142,
/* 1050 */ 65, 369, 409, 371, 411, 368, 369, 389, 69, 484,
/* 1060 */ 238, 356, 487, 78, 202, 397, 204, 368, 369, 409,
/* 1070 */ 409, 56, 57, 405, 389, 388, 373, 374, 0, 397,
/* 1080 */ 505, 506, 397, 20, 433, 510, 511, 388, 409, 104,
/* 1090 */ 405, 409, 107, 411, 451, 398, 356, 454, 236, 237,
/* 1100 */ 356, 458, 459, 460, 461, 462, 463, 356, 465, 369,
/* 1110 */ 397, 371, 117, 470, 409, 472, 33, 404, 398, 476,
/* 1120 */ 477, 356, 480, 481, 482, 412, 484, 485, 143, 144,
/* 1130 */ 368, 369, 422, 451, 33, 484, 454, 397, 487, 276,
/* 1140 */ 458, 459, 460, 461, 462, 463, 45, 465, 70, 409,
/* 1150 */ 388, 411, 470, 409, 472, 356, 505, 506, 476, 477,
/* 1160 */ 409, 510, 511, 65, 169, 180, 181, 356, 368, 369,
/* 1170 */ 368, 369, 187, 188, 409, 439, 368, 369, 397, 138,
/* 1180 */ 382, 383, 397, 142, 359, 360, 197, 202, 388, 204,
/* 1190 */ 388, 451, 180, 412, 454, 71, 388, 412, 458, 459,
/* 1200 */ 460, 461, 462, 463, 106, 465, 356, 109, 409, 14,
/* 1210 */ 470, 357, 472, 224, 225, 20, 476, 477, 373, 374,
/* 1220 */ 409, 236, 237, 238, 393, 240, 241, 242, 243, 244,
/* 1230 */ 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
/* 1240 */ 255, 256, 257, 12, 13, 368, 369, 368, 369, 356,
/* 1250 */ 238, 20, 211, 22, 356, 214, 33, 356, 217, 409,
/* 1260 */ 219, 375, 369, 0, 371, 388, 35, 388, 37, 356,
/* 1270 */ 356, 382, 383, 175, 368, 369, 37, 397, 392, 448,
/* 1280 */ 406, 272, 273, 409, 356, 405, 400, 33, 406, 390,
/* 1290 */ 397, 409, 393, 33, 388, 110, 65, 369, 113, 371,
/* 1300 */ 13, 238, 409, 33, 411, 42, 13, 409, 110, 78,
/* 1310 */ 409, 113, 0, 110, 110, 45, 113, 113, 0, 0,
/* 1320 */ 143, 144, 409, 409, 37, 397, 218, 33, 220, 37,
/* 1330 */ 37, 108, 33, 386, 22, 104, 503, 409, 107, 411,
/* 1340 */ 22, 22, 33, 13, 451, 49, 33, 454, 33, 1,
/* 1350 */ 2, 458, 459, 460, 461, 462, 463, 33, 465, 33,
/* 1360 */ 236, 0, 108, 470, 33, 472, 33, 37, 108, 476,
/* 1370 */ 477, 12, 13, 13, 143, 144, 33, 12, 13, 451,
/* 1380 */ 33, 22, 454, 300, 33, 33, 458, 459, 460, 461,
/* 1390 */ 462, 463, 107, 465, 35, 356, 37, 37, 470, 514,
/* 1400 */ 472, 116, 108, 107, 476, 477, 37, 108, 369, 372,
/* 1410 */ 397, 180, 181, 52, 33, 496, 33, 108, 187, 188,
/* 1420 */ 33, 108, 422, 108, 65, 385, 367, 385, 33, 422,
/* 1430 */ 33, 502, 108, 202, 108, 204, 397, 78, 502, 108,
/* 1440 */ 502, 108, 432, 204, 502, 372, 422, 78, 409, 369,
/* 1450 */ 411, 108, 408, 356, 440, 108, 422, 422, 486, 108,
/* 1460 */ 108, 507, 478, 104, 489, 277, 369, 236, 237, 238,
/* 1470 */ 434, 240, 241, 242, 243, 244, 245, 246, 247, 248,
/* 1480 */ 249, 250, 251, 252, 253, 254, 255, 256, 257, 108,
/* 1490 */ 451, 108, 387, 454, 397, 108, 204, 458, 459, 460,
/* 1500 */ 461, 462, 463, 108, 465, 108, 409, 0, 411, 470,
/* 1510 */ 51, 472, 12, 13, 453, 476, 477, 42, 452, 20,
/* 1520 */ 445, 217, 22, 356, 450, 377, 445, 377, 200, 436,
/* 1530 */ 20, 368, 20, 369, 45, 35, 369, 37, 418, 369,
/* 1540 */ 418, 179, 415, 368, 418, 369, 368, 415, 451, 415,
/* 1550 */ 415, 454, 105, 381, 103, 458, 459, 460, 461, 462,
/* 1560 */ 463, 202, 465, 204, 397, 65, 380, 470, 368, 472,
/* 1570 */ 102, 379, 20, 476, 477, 368, 409, 368, 411, 368,
/* 1580 */ 73, 74, 75, 361, 50, 365, 361, 80, 81, 82,
/* 1590 */ 445, 365, 356, 86, 377, 236, 237, 20, 91, 92,
/* 1600 */ 93, 94, 411, 20, 97, 369, 377, 100, 370, 250,
/* 1610 */ 251, 252, 253, 254, 255, 256, 435, 377, 451, 20,
/* 1620 */ 377, 454, 370, 356, 377, 458, 459, 460, 461, 462,
/* 1630 */ 463, 20, 465, 397, 377, 425, 369, 470, 377, 472,
/* 1640 */ 368, 377, 361, 476, 477, 409, 397, 411, 397, 359,
/* 1650 */ 397, 368, 397, 397, 359, 397, 397, 409, 361, 397,
/* 1660 */ 221, 449, 397, 397, 397, 397, 107, 20, 447, 445,
/* 1670 */ 208, 444, 442, 375, 207, 441, 409, 375, 411, 434,
/* 1680 */ 409, 285, 409, 284, 368, 411, 409, 451, 495, 495,
/* 1690 */ 454, 293, 356, 497, 458, 459, 460, 461, 462, 463,
/* 1700 */ 498, 465, 202, 427, 204, 369, 427, 193, 472, 495,
/* 1710 */ 295, 294, 476, 477, 278, 302, 434, 299, 451, 297,
/* 1720 */ 515, 454, 494, 508, 492, 458, 459, 460, 461, 462,
/* 1730 */ 463, 273, 465, 397, 234, 235, 236, 493, 20, 472,
/* 1740 */ 369, 457, 509, 476, 477, 409, 117, 411, 275, 370,
/* 1750 */ 250, 251, 252, 253, 254, 255, 256, 375, 107, 490,
/* 1760 */ 375, 356, 427, 488, 475, 409, 409, 409, 427, 185,
/* 1770 */ 393, 369, 409, 409, 369, 375, 356, 423, 375, 409,
/* 1780 */ 107, 409, 409, 375, 368, 401, 22, 451, 358, 369,
/* 1790 */ 454, 38, 437, 362, 458, 459, 460, 461, 462, 463,
/* 1800 */ 391, 465, 397, 361, 428, 356, 428, 354, 472, 376,
/* 1810 */ 391, 0, 476, 477, 409, 391, 411, 397, 369, 0,
/* 1820 */ 446, 0, 45, 0, 37, 227, 37, 37, 37, 409,
/* 1830 */ 227, 411, 0, 37, 37, 356, 227, 37, 0, 227,
/* 1840 */ 0, 37, 0, 0, 37, 0, 397, 22, 369, 37,
/* 1850 */ 222, 0, 210, 0, 210, 202, 451, 211, 409, 454,
/* 1860 */ 411, 204, 0, 458, 459, 460, 461, 462, 463, 0,
/* 1870 */ 465, 451, 0, 198, 454, 197, 397, 0, 458, 459,
/* 1880 */ 460, 461, 462, 463, 0, 465, 148, 0, 409, 37,
/* 1890 */ 411, 0, 472, 356, 0, 49, 49, 477, 37, 51,
/* 1900 */ 451, 0, 0, 454, 49, 45, 369, 458, 459, 460,
/* 1910 */ 461, 462, 463, 0, 465, 0, 0, 512, 513, 356,
/* 1920 */ 49, 0, 0, 0, 0, 0, 0, 165, 0, 37,
/* 1930 */ 451, 165, 369, 454, 397, 0, 0, 458, 459, 460,
/* 1940 */ 461, 462, 463, 0, 465, 0, 409, 0, 411, 0,
/* 1950 */ 501, 0, 356, 49, 0, 45, 0, 0, 0, 0,
/* 1960 */ 397, 0, 0, 0, 0, 369, 0, 0, 431, 0,
/* 1970 */ 0, 0, 409, 0, 411, 148, 0, 22, 0, 0,
/* 1980 */ 147, 146, 0, 504, 0, 0, 0, 0, 451, 0,
/* 1990 */ 356, 454, 0, 397, 431, 458, 459, 460, 461, 462,
/* 2000 */ 463, 0, 465, 369, 65, 409, 0, 411, 0, 37,
/* 2010 */ 22, 65, 22, 65, 451, 50, 0, 454, 50, 0,
/* 2020 */ 37, 458, 459, 460, 461, 462, 463, 0, 465, 0,
/* 2030 */ 37, 397, 51, 42, 0, 37, 42, 0, 42, 37,
/* 2040 */ 33, 0, 14, 409, 45, 411, 51, 451, 43, 356,
/* 2050 */ 454, 51, 42, 49, 458, 459, 460, 461, 462, 463,
/* 2060 */ 49, 465, 369, 49, 42, 356, 0, 0, 0, 0,
/* 2070 */ 0, 193, 42, 49, 0, 0, 0, 0, 369, 37,
/* 2080 */ 42, 72, 51, 0, 37, 451, 51, 42, 454, 0,
/* 2090 */ 397, 37, 458, 459, 460, 461, 462, 463, 42, 465,
/* 2100 */ 51, 467, 409, 0, 411, 42, 397, 0, 37, 513,
/* 2110 */ 51, 0, 0, 0, 0, 0, 113, 37, 409, 22,
/* 2120 */ 411, 0, 37, 37, 431, 37, 22, 115, 37, 37,
/* 2130 */ 37, 33, 37, 37, 33, 0, 37, 37, 22, 37,
/* 2140 */ 431, 0, 22, 0, 451, 22, 1, 454, 0, 22,
/* 2150 */ 0, 458, 459, 460, 461, 462, 463, 0, 465, 53,
/* 2160 */ 451, 37, 356, 454, 19, 0, 37, 458, 459, 460,
/* 2170 */ 461, 462, 463, 0, 465, 369, 37, 0, 22, 20,
/* 2180 */ 35, 37, 0, 37, 37, 107, 356, 108, 107, 209,
/* 2190 */ 0, 49, 37, 22, 0, 182, 51, 182, 22, 369,
/* 2200 */ 182, 0, 0, 397, 37, 60, 61, 62, 63, 189,
/* 2210 */ 65, 185, 189, 3, 182, 409, 33, 411, 182, 279,
/* 2220 */ 50, 356, 205, 37, 107, 50, 108, 397, 33, 107,
/* 2230 */ 33, 33, 3, 107, 369, 105, 108, 103, 107, 409,
/* 2240 */ 108, 411, 49, 37, 108, 107, 33, 107, 49, 33,
/* 2250 */ 33, 106, 37, 279, 109, 37, 107, 451, 37, 108,
/* 2260 */ 454, 108, 397, 37, 458, 459, 460, 461, 462, 463,
/* 2270 */ 108, 465, 37, 49, 409, 0, 411, 49, 0, 42,
/* 2280 */ 108, 451, 108, 33, 454, 107, 141, 2, 458, 459,
/* 2290 */ 460, 461, 462, 463, 356, 465, 105, 272, 259, 22,
/* 2300 */ 279, 105, 49, 49, 22, 186, 0, 369, 236, 356,
/* 2310 */ 42, 108, 107, 49, 33, 108, 451, 108, 107, 454,
/* 2320 */ 108, 107, 369, 458, 459, 460, 461, 462, 463, 184,
/* 2330 */ 465, 356, 107, 37, 107, 397, 191, 117, 108, 107,
/* 2340 */ 107, 107, 184, 101, 369, 107, 107, 409, 239, 411,
/* 2350 */ 397, 108, 116, 356, 107, 210, 107, 37, 37, 108,
/* 2360 */ 108, 37, 409, 107, 411, 107, 369, 108, 107, 37,
/* 2370 */ 108, 108, 397, 107, 37, 108, 107, 37, 107, 107,
/* 2380 */ 107, 22, 37, 107, 409, 128, 411, 72, 128, 451,
/* 2390 */ 71, 78, 454, 128, 397, 37, 458, 459, 460, 461,
/* 2400 */ 462, 463, 128, 465, 451, 37, 409, 454, 411, 37,
/* 2410 */ 37, 458, 459, 460, 461, 462, 463, 37, 465, 37,
/* 2420 */ 37, 37, 37, 101, 78, 33, 451, 37, 37, 454,
/* 2430 */ 37, 22, 37, 458, 459, 460, 461, 462, 463, 37,
/* 2440 */ 465, 37, 78, 37, 37, 37, 22, 37, 451, 0,
/* 2450 */ 356, 454, 37, 37, 37, 458, 459, 460, 461, 462,
/* 2460 */ 463, 42, 465, 369, 51, 0, 356, 37, 42, 51,
/* 2470 */ 0, 37, 51, 42, 0, 37, 51, 42, 0, 369,
/* 2480 */ 37, 356, 37, 0, 22, 33, 22, 21, 516, 22,
/* 2490 */ 22, 397, 21, 20, 369, 516, 516, 516, 516, 516,
/* 2500 */ 516, 516, 516, 409, 516, 411, 516, 397, 516, 516,
/* 2510 */ 356, 516, 516, 516, 516, 516, 516, 516, 516, 409,
/* 2520 */ 516, 411, 397, 369, 516, 356, 516, 516, 516, 516,
/* 2530 */ 516, 516, 516, 516, 409, 516, 411, 516, 369, 516,
/* 2540 */ 516, 516, 516, 516, 516, 451, 516, 516, 454, 516,
/* 2550 */ 516, 397, 458, 459, 460, 461, 462, 463, 516, 465,
/* 2560 */ 516, 451, 516, 409, 454, 411, 397, 516, 458, 459,
/* 2570 */ 460, 461, 462, 463, 516, 465, 451, 516, 409, 454,
/* 2580 */ 411, 516, 516, 458, 459, 460, 461, 462, 463, 516,
/* 2590 */ 465, 516, 516, 516, 516, 516, 356, 516, 516, 516,
/* 2600 */ 516, 516, 516, 516, 516, 451, 516, 516, 454, 369,
/* 2610 */ 516, 356, 458, 459, 460, 461, 462, 463, 516, 465,
/* 2620 */ 451, 516, 516, 454, 369, 516, 356, 458, 459, 460,
/* 2630 */ 461, 462, 463, 516, 465, 516, 516, 397, 516, 369,
/* 2640 */ 516, 516, 516, 516, 516, 516, 516, 516, 516, 409,
/* 2650 */ 516, 411, 397, 516, 516, 516, 516, 516, 516, 516,
/* 2660 */ 516, 516, 516, 516, 409, 516, 411, 397, 516, 516,
/* 2670 */ 516, 516, 516, 516, 516, 516, 516, 516, 516, 409,
/* 2680 */ 516, 411, 516, 516, 356, 516, 516, 516, 516, 516,
/* 2690 */ 516, 451, 516, 516, 454, 516, 516, 369, 458, 459,
/* 2700 */ 460, 461, 462, 463, 516, 465, 451, 516, 516, 454,
/* 2710 */ 356, 516, 516, 458, 459, 460, 461, 462, 463, 516,
/* 2720 */ 465, 451, 516, 369, 454, 397, 516, 516, 458, 459,
/* 2730 */ 460, 461, 462, 463, 516, 465, 516, 409, 516, 411,
/* 2740 */ 516, 516, 516, 356, 516, 516, 516, 516, 516, 516,
/* 2750 */ 516, 397, 516, 516, 516, 516, 369, 516, 516, 516,
/* 2760 */ 516, 516, 516, 409, 516, 411, 516, 516, 356, 516,
/* 2770 */ 516, 516, 516, 516, 516, 516, 516, 516, 516, 451,
/* 2780 */ 516, 369, 454, 516, 397, 516, 458, 459, 460, 461,
/* 2790 */ 462, 463, 516, 465, 516, 516, 409, 516, 411, 516,
/* 2800 */ 516, 516, 516, 516, 516, 451, 516, 516, 454, 397,
/* 2810 */ 516, 516, 458, 459, 460, 461, 462, 463, 516, 465,
/* 2820 */ 516, 409, 516, 411, 516, 516, 516, 516, 516, 516,
/* 2830 */ 516, 516, 516, 516, 516, 516, 516, 516, 451, 516,
/* 2840 */ 516, 454, 516, 516, 516, 458, 459, 460, 461, 462,
/* 2850 */ 463, 356, 465, 516, 516, 516, 516, 516, 516, 516,
/* 2860 */ 516, 516, 516, 451, 369, 516, 454, 356, 516, 516,
/* 2870 */ 458, 459, 460, 461, 462, 463, 516, 465, 516, 516,
/* 2880 */ 369, 516, 356, 516, 516, 516, 516, 516, 516, 516,
/* 2890 */ 516, 516, 397, 516, 516, 369, 516, 516, 516, 516,
/* 2900 */ 516, 516, 516, 516, 409, 516, 411, 516, 397, 516,
/* 2910 */ 516, 516, 516, 516, 516, 516, 516, 516, 516, 516,
/* 2920 */ 409, 516, 411, 397, 516, 516, 516, 516, 516, 516,
/* 2930 */ 516, 516, 516, 516, 516, 409, 516, 411, 516, 516,
/* 2940 */ 516, 516, 516, 516, 516, 516, 451, 516, 516, 454,
/* 2950 */ 516, 516, 516, 458, 459, 460, 461, 462, 463, 516,
/* 2960 */ 465, 516, 451, 516, 516, 454, 516, 516, 516, 458,
/* 2970 */ 459, 460, 461, 462, 463, 516, 465, 451, 516, 516,
/* 2980 */ 454, 516, 516, 516, 458, 459, 460, 461, 462, 463,
/* 2990 */ 516, 465, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3000 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3010 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3020 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3030 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3040 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3050 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3060 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3070 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3080 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3090 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3100 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3110 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3120 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3130 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3140 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3150 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3160 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3170 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3180 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3190 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3200 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3210 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3220 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3230 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3240 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3250 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3260 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3270 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3280 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3290 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3300 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3310 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3320 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3330 */ 353, 353, 353, 353, 353, 353, 353, 353, 353, 353,
/* 3340 */ 353, 353, 353, 353, 353,
};
2024-03-10 14:14:57 +00:00
#define YY_SHIFT_COUNT (858)
#define YY_SHIFT_MIN (0)
2024-03-13 07:12:21 +00:00
#define YY_SHIFT_MAX (2483)
static const unsigned short int yy_shift_ofst[] = {
2024-03-13 07:12:21 +00:00
/* 0 */ 412, 0, 246, 0, 493, 493, 493, 493, 493, 493,
/* 10 */ 493, 493, 493, 493, 493, 493, 739, 985, 985, 1231,
/* 20 */ 985, 985, 985, 985, 985, 985, 985, 985, 985, 985,
/* 30 */ 985, 985, 985, 985, 985, 985, 985, 985, 985, 985,
/* 40 */ 985, 985, 985, 985, 985, 985, 985, 985, 985, 985,
/* 50 */ 44, 366, 203, 164, 72, 298, 72, 72, 164, 164,
/* 60 */ 72, 1359, 72, 245, 1359, 157, 72, 1, 1500, 12,
/* 70 */ 19, 19, 1500, 1500, 274, 274, 12, 53, 314, 247,
/* 80 */ 247, 431, 19, 19, 19, 19, 19, 19, 19, 19,
/* 90 */ 19, 19, 19, 63, 242, 19, 19, 67, 1, 19,
/* 100 */ 63, 19, 1, 19, 19, 1, 19, 19, 1, 19,
/* 110 */ 1, 1, 1, 19, 260, 276, 276, 741, 312, 862,
/* 120 */ 862, 862, 862, 862, 862, 862, 862, 862, 862, 862,
/* 130 */ 862, 862, 862, 862, 862, 862, 862, 862, 543, 368,
/* 140 */ 53, 314, 1015, 1015, 654, 134, 134, 134, 307, 307,
/* 150 */ 1078, 454, 654, 67, 357, 1, 166, 1, 1, 447,
/* 160 */ 1, 447, 447, 554, 451, 97, 97, 97, 97, 97,
/* 170 */ 97, 97, 97, 2145, 1507, 182, 293, 456, 491, 350,
/* 180 */ 496, 354, 440, 556, 556, 631, 27, 822, 941, 941,
/* 190 */ 941, 718, 1012, 941, 817, 693, 1195, 767, 746, 693,
/* 200 */ 693, 1063, 1009, 545, 600, 1009, 1101, 863, 454, 1188,
/* 210 */ 1459, 1475, 1499, 1304, 67, 1499, 67, 1328, 1510, 1512,
/* 220 */ 1489, 1512, 1489, 1362, 1510, 1512, 1510, 1489, 1362, 1362,
/* 230 */ 1362, 1447, 1451, 1510, 1468, 1510, 1510, 1510, 1552, 1534,
/* 240 */ 1552, 1534, 1499, 67, 67, 1577, 67, 1583, 1599, 67,
/* 250 */ 1583, 67, 1611, 67, 67, 1510, 67, 1552, 1, 1,
/* 260 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1510,
/* 270 */ 451, 451, 1552, 447, 447, 447, 1439, 1559, 1499, 260,
/* 280 */ 1647, 1462, 1467, 1577, 260, 1188, 1510, 447, 1396, 1399,
/* 290 */ 1396, 1399, 1398, 1514, 1396, 1415, 1417, 1436, 1188, 1413,
/* 300 */ 1418, 1422, 1458, 1512, 1718, 1629, 1473, 1583, 260, 260,
/* 310 */ 1651, 1399, 447, 447, 447, 447, 1399, 447, 1584, 260,
/* 320 */ 554, 260, 1512, 447, 447, 1673, 447, 1510, 260, 1764,
/* 330 */ 1753, 1552, 2992, 2992, 2992, 2992, 2992, 2992, 2992, 2992,
/* 340 */ 2992, 36, 738, 414, 836, 54, 77, 351, 15, 32,
/* 350 */ 540, 796, 888, 902, 902, 902, 902, 902, 902, 902,
/* 360 */ 902, 902, 907, 1041, 21, 342, 342, 989, 1098, 848,
/* 370 */ 288, 535, 35, 551, 38, 612, 775, 787, 494, 700,
/* 380 */ 641, 494, 494, 494, 385, 385, 174, 235, 1223, 1263,
/* 390 */ 1270, 995, 279, 1185, 1198, 1203, 1204, 1287, 1293, 617,
/* 400 */ 1312, 1318, 1319, 1108, 1254, 1260, 653, 1294, 1299, 1309,
/* 410 */ 1313, 1177, 649, 1083, 1315, 1348, 1324, 1124, 1326, 1296,
/* 420 */ 1331, 1333, 1343, 1347, 1351, 1365, 1352, 1381, 1383, 1387,
/* 430 */ 1395, 1397, 1285, 1239, 1292, 1330, 1360, 1369, 1361, 1811,
/* 440 */ 1819, 1821, 1777, 1823, 1787, 1598, 1789, 1790, 1791, 1603,
/* 450 */ 1832, 1796, 1797, 1609, 1800, 1838, 1612, 1840, 1804, 1842,
/* 460 */ 1807, 1843, 1825, 1845, 1812, 1628, 1851, 1642, 1853, 1644,
/* 470 */ 1646, 1657, 1653, 1862, 1869, 1872, 1675, 1678, 1877, 1884,
/* 480 */ 1738, 1846, 1847, 1887, 1852, 1891, 1894, 1861, 1848, 1901,
/* 490 */ 1855, 1902, 1860, 1913, 1915, 1916, 1871, 1921, 1922, 1923,
/* 500 */ 1924, 1925, 1926, 1762, 1892, 1928, 1766, 1935, 1936, 1943,
/* 510 */ 1945, 1947, 1949, 1951, 1961, 1962, 1963, 1964, 1966, 1967,
/* 520 */ 1969, 1970, 1971, 1973, 1984, 1985, 1904, 1954, 1910, 1956,
/* 530 */ 1957, 1958, 1959, 1986, 1987, 1989, 1955, 1978, 1827, 1976,
/* 540 */ 1833, 1979, 1835, 1982, 1992, 1988, 1965, 1990, 1968, 2001,
/* 550 */ 1939, 1972, 2006, 1946, 2008, 1948, 2016, 2019, 1983, 1981,
/* 560 */ 1991, 2027, 1993, 1995, 1994, 2029, 1998, 2000, 1996, 2034,
/* 570 */ 2002, 2037, 1999, 2010, 2007, 2004, 2011, 2028, 2014, 2041,
/* 580 */ 2005, 2022, 2066, 2067, 2068, 2069, 2030, 1878, 2070, 2004,
/* 590 */ 2024, 2074, 2075, 2009, 2076, 2077, 2042, 2031, 2038, 2083,
/* 600 */ 2047, 2035, 2045, 2089, 2054, 2049, 2056, 2103, 2071, 2059,
/* 610 */ 2063, 2107, 2111, 2112, 2113, 2114, 2115, 2012, 2003, 2080,
/* 620 */ 2097, 2121, 2085, 2086, 2088, 2091, 2092, 2093, 2095, 2096,
/* 630 */ 2098, 2101, 2099, 2100, 2104, 2102, 2135, 2116, 2141, 2120,
/* 640 */ 2143, 2123, 2106, 2148, 2127, 2124, 2150, 2157, 2165, 2129,
/* 650 */ 2173, 2139, 2177, 2156, 2159, 2144, 2146, 2147, 2079, 2078,
/* 660 */ 2182, 2013, 2081, 1980, 2004, 2142, 2190, 2015, 2155, 2171,
/* 670 */ 2194, 2017, 2176, 2018, 2026, 2201, 2202, 2032, 2020, 2036,
/* 680 */ 2023, 2210, 2183, 1940, 2117, 2118, 2122, 2128, 2167, 2186,
/* 690 */ 2126, 2170, 2130, 2175, 2134, 2132, 2195, 2197, 2136, 2131,
/* 700 */ 2138, 2140, 2151, 2198, 2193, 2199, 2149, 2213, 1974, 2153,
/* 710 */ 2162, 2229, 2216, 2021, 2206, 2215, 2218, 2221, 2226, 2235,
/* 720 */ 2172, 2174, 2224, 2025, 2217, 2228, 2275, 2278, 2178, 2237,
/* 730 */ 2250, 2191, 2039, 2196, 2285, 2277, 2072, 2203, 2205, 2207,
/* 740 */ 2253, 2211, 2214, 2254, 2209, 2282, 2109, 2225, 2212, 2230,
/* 750 */ 2227, 2232, 2119, 2233, 2306, 2268, 2158, 2234, 2236, 2004,
/* 760 */ 2264, 2238, 2239, 2243, 2247, 2249, 2220, 2251, 2296, 2320,
/* 770 */ 2256, 2252, 2321, 2258, 2259, 2324, 2261, 2262, 2332, 2266,
/* 780 */ 2263, 2337, 2269, 2267, 2340, 2271, 2257, 2260, 2265, 2274,
/* 790 */ 2272, 2281, 2273, 2345, 2276, 2281, 2281, 2359, 2315, 2319,
/* 800 */ 2358, 2368, 2372, 2373, 2380, 2382, 2383, 2384, 2385, 2313,
/* 810 */ 2242, 2346, 2322, 2392, 2390, 2391, 2393, 2409, 2395, 2402,
/* 820 */ 2404, 2364, 2098, 2406, 2101, 2407, 2408, 2410, 2415, 2424,
/* 830 */ 2416, 2449, 2417, 2413, 2419, 2465, 2430, 2418, 2426, 2470,
/* 840 */ 2434, 2421, 2431, 2474, 2438, 2425, 2435, 2478, 2443, 2445,
/* 850 */ 2483, 2462, 2452, 2464, 2466, 2467, 2468, 2471, 2473,
};
2024-03-10 14:14:57 +00:00
#define YY_REDUCE_COUNT (340)
2024-03-13 07:12:21 +00:00
#define YY_REDUCE_MIN (-429)
#define YY_REDUCE_MAX (2526)
static const short yy_reduce_ofst[] = {
2024-03-13 07:12:21 +00:00
/* 0 */ 79, -313, 249, 398, 495, 643, 682, 740, 893, 928,
/* 10 */ 1039, 1097, 1167, 1236, 1267, 1336, -82, 205, 1405, 1420,
/* 20 */ 1449, 1537, 1563, 1479, 1596, 1634, 1693, 1709, 1806, 1830,
/* 30 */ 1865, 1938, 1953, 1975, 1997, 2094, 2110, 2125, 2154, 2169,
/* 40 */ 2240, 2255, 2270, 2328, 2354, 2387, 2412, 2495, 2511, 2526,
/* 50 */ -315, 117, -429, 208, 142, 282, 531, 575, 396, 642,
/* 60 */ 651, -36, -211, -319, 126, 188, 318, -386, -294, -253,
/* 70 */ -289, -43, -260, 108, -361, -174, -378, 28, -79, 156,
/* 80 */ 251, 359, 191, 308, 316, 402, 244, 355, 442, 457,
/* 90 */ 485, 517, 522, 525, 576, 582, 687, -117, -397, 699,
/* 100 */ 530, 762, -396, 800, 802, 634, 808, 877, -229, 879,
/* 110 */ 668, 713, 685, 906, 886, -371, -371, 192, -215, -256,
/* 120 */ -74, 253, 480, 553, 660, 661, 679, 705, 744, 751,
/* 130 */ 765, 799, 811, 850, 898, 901, 913, 914, 367, -369,
/* 140 */ -27, 623, 703, 845, 798, -369, -164, -96, 125, 490,
/* 150 */ -52, 407, 889, 381, 831, -387, 394, 781, 880, 519,
/* 160 */ 785, 874, 882, 899, 825, 212, 408, 433, 452, 608,
/* 170 */ 697, 720, 608, 736, 947, 854, 710, 885, 833, 919,
/* 180 */ 1037, 1013, 1013, 1040, 1042, 1000, 1059, 1007, 929, 936,
/* 190 */ 938, 1010, 1013, 942, 1073, 1024, 1080, 1044, 1014, 1034,
/* 200 */ 1035, 1013, 972, 972, 954, 972, 984, 975, 1105, 1036,
/* 210 */ 1061, 1066, 1075, 1074, 1148, 1081, 1150, 1093, 1163, 1164,
/* 220 */ 1120, 1170, 1122, 1127, 1175, 1176, 1178, 1126, 1132, 1134,
/* 230 */ 1135, 1172, 1186, 1200, 1192, 1207, 1209, 1211, 1222, 1220,
/* 240 */ 1225, 1226, 1145, 1217, 1229, 1191, 1240, 1238, 1181, 1243,
/* 250 */ 1252, 1247, 1210, 1257, 1261, 1272, 1264, 1281, 1249, 1251,
/* 260 */ 1253, 1255, 1256, 1258, 1259, 1262, 1265, 1266, 1268, 1283,
/* 270 */ 1290, 1295, 1297, 1248, 1271, 1273, 1212, 1221, 1224, 1298,
/* 280 */ 1227, 1230, 1234, 1274, 1302, 1245, 1316, 1277, 1193, 1276,
/* 290 */ 1194, 1279, 1202, 1196, 1214, 1228, 1244, 1232, 1282, 1205,
/* 300 */ 1233, 1215, 972, 1371, 1284, 1269, 1275, 1379, 1382, 1385,
/* 310 */ 1289, 1335, 1356, 1357, 1358, 1363, 1341, 1364, 1354, 1400,
/* 320 */ 1377, 1403, 1402, 1370, 1372, 1384, 1373, 1416, 1408, 1430,
/* 330 */ 1431, 1442, 1355, 1374, 1376, 1378, 1409, 1419, 1424, 1433,
/* 340 */ 1453,
};
static const YYACTIONTYPE yy_default[] = {
2024-03-13 07:12:21 +00:00
/* 0 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 10 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 20 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 30 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 40 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 50 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 60 */ 2291, 1951, 1951, 2254, 1951, 1951, 1951, 1951, 1951, 1951,
/* 70 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 2261, 1951, 1951,
/* 80 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 90 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 2050, 1951, 1951,
/* 100 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 110 */ 1951, 1951, 1951, 1951, 2048, 2515, 1951, 1951, 1951, 1951,
/* 120 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 130 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 2527,
/* 140 */ 1951, 1951, 2022, 2022, 1951, 2527, 2527, 2527, 2487, 2487,
/* 150 */ 2048, 1951, 1951, 2050, 2329, 1951, 1951, 1951, 1951, 1951,
/* 160 */ 1951, 1951, 1951, 2173, 1981, 1951, 1951, 1951, 1951, 2197,
/* 170 */ 1951, 1951, 1951, 2317, 1951, 1951, 2556, 2618, 1951, 2559,
/* 180 */ 1951, 1951, 1951, 1951, 1951, 2266, 1951, 2546, 1951, 1951,
/* 190 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 2126, 2311, 1951,
/* 200 */ 1951, 1951, 2519, 2533, 2602, 2520, 2517, 2540, 1951, 2550,
/* 210 */ 1951, 2354, 1951, 2343, 2050, 1951, 2050, 2304, 2249, 1951,
/* 220 */ 2259, 1951, 2259, 2256, 1951, 1951, 1951, 2259, 2256, 2256,
/* 230 */ 2256, 2115, 2111, 1951, 2109, 1951, 1951, 1951, 1951, 2006,
/* 240 */ 1951, 2006, 1951, 2050, 2050, 1951, 2050, 1951, 1951, 2050,
/* 250 */ 1951, 2050, 1951, 2050, 2050, 1951, 2050, 1951, 1951, 1951,
/* 260 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 270 */ 1951, 1951, 1951, 1951, 1951, 1951, 2341, 2327, 1951, 2048,
/* 280 */ 1951, 2315, 2313, 1951, 2048, 2550, 1951, 1951, 2572, 2567,
/* 290 */ 2572, 2567, 2586, 2582, 2572, 2591, 2588, 2552, 2550, 2621,
/* 300 */ 2608, 2604, 2533, 1951, 1951, 2538, 2536, 1951, 2048, 2048,
/* 310 */ 1951, 2567, 1951, 1951, 1951, 1951, 2567, 1951, 1951, 2048,
/* 320 */ 1951, 2048, 1951, 1951, 1951, 2142, 1951, 1951, 2048, 1951,
/* 330 */ 1990, 1951, 2306, 2332, 2287, 2287, 2176, 2176, 2176, 2051,
/* 340 */ 1956, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 350 */ 1951, 1951, 1951, 2585, 2584, 2439, 1951, 2491, 2490, 2489,
/* 360 */ 2480, 2438, 2138, 1951, 1951, 2437, 2436, 1951, 1951, 1951,
/* 370 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 2430, 1951,
/* 380 */ 1951, 2431, 2429, 2428, 2278, 2277, 1951, 1951, 1951, 1951,
/* 390 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 400 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 410 */ 1951, 1951, 2605, 2609, 1951, 2516, 1951, 1951, 1951, 2410,
/* 420 */ 1951, 1951, 1951, 1951, 1951, 2378, 1951, 1951, 1951, 1951,
/* 430 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 440 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 450 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 460 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 470 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 480 */ 2255, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 490 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 500 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 510 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 520 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 530 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 540 */ 1951, 1951, 2270, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 550 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 560 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 570 */ 1951, 1951, 1951, 1951, 1995, 2417, 1951, 1951, 1951, 1951,
/* 580 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 2420,
/* 590 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 600 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 610 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 620 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 630 */ 2090, 2089, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 640 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 650 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 2421, 1951,
/* 660 */ 1951, 1951, 1951, 1951, 2412, 1951, 1951, 1951, 1951, 1951,
/* 670 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 680 */ 1951, 2601, 2553, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 690 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 700 */ 1951, 1951, 1951, 1951, 1951, 2410, 1951, 2583, 1951, 1951,
/* 710 */ 2599, 1951, 2603, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 720 */ 2526, 2522, 1951, 1951, 2518, 1951, 1951, 1951, 1951, 1951,
/* 730 */ 2477, 1951, 1951, 1951, 2511, 1951, 1951, 1951, 1951, 1951,
/* 740 */ 1951, 1951, 1951, 1951, 2421, 1951, 2424, 1951, 1951, 1951,
/* 750 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 2409,
/* 760 */ 1951, 2462, 2461, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 770 */ 2170, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 780 */ 1951, 1951, 1951, 1951, 1951, 1951, 2154, 2152, 2151, 2150,
/* 790 */ 1951, 2183, 1951, 1951, 1951, 2179, 2178, 1951, 1951, 1951,
/* 800 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 810 */ 1951, 1951, 1951, 2069, 1951, 1951, 1951, 1951, 1951, 1951,
/* 820 */ 1951, 1951, 2061, 1951, 2060, 1951, 1951, 1951, 1951, 1951,
/* 830 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 840 */ 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951,
/* 850 */ 1951, 1951, 1980, 1951, 1951, 1951, 1951, 1951, 1951,
};
/********** End of lemon-generated parsing tables *****************************/
/* The next table maps tokens (terminal symbols) into fallback tokens.
** If a construct like the following:
**
** %fallback ID X Y Z.
**
** appears in the grammar, then ID becomes a fallback token for X, Y,
** and Z. Whenever one of the tokens X, Y, or Z is input to the parser
** but it does not parse, the type of the token is changed to ID and
** the parse is retried before an error is thrown.
**
** This feature can be used, for example, to cause some keywords in a language
** to revert to identifiers if they keyword does not apply in the context where
** it appears.
*/
#ifdef YYFALLBACK
static const YYCODETYPE yyFallback[] = {
2022-04-22 10:23:37 +00:00
0, /* $ => nothing */
0, /* OR => nothing */
0, /* AND => nothing */
0, /* UNION => nothing */
0, /* ALL => nothing */
0, /* MINUS => nothing */
0, /* EXCEPT => nothing */
0, /* INTERSECT => nothing */
0, /* NK_BITAND => nothing */
0, /* NK_BITOR => nothing */
0, /* NK_LSHIFT => nothing */
0, /* NK_RSHIFT => nothing */
0, /* NK_PLUS => nothing */
0, /* NK_MINUS => nothing */
0, /* NK_STAR => nothing */
0, /* NK_SLASH => nothing */
0, /* NK_REM => nothing */
0, /* NK_CONCAT => nothing */
0, /* CREATE => nothing */
0, /* ACCOUNT => nothing */
0, /* NK_ID => nothing */
0, /* PASS => nothing */
0, /* NK_STRING => nothing */
0, /* ALTER => nothing */
0, /* PPS => nothing */
0, /* TSERIES => nothing */
0, /* STORAGE => nothing */
0, /* STREAMS => nothing */
0, /* QTIME => nothing */
0, /* DBS => nothing */
0, /* USERS => nothing */
0, /* CONNS => nothing */
0, /* STATE => nothing */
2023-08-24 07:54:10 +00:00
0, /* NK_COMMA => nothing */
0, /* HOST => nothing */
2022-04-22 10:23:37 +00:00
0, /* USER => nothing */
2022-06-22 08:35:14 +00:00
0, /* ENABLE => nothing */
0, /* NK_INTEGER => nothing */
0, /* SYSINFO => nothing */
2023-08-24 07:54:10 +00:00
0, /* ADD => nothing */
2022-04-22 10:23:37 +00:00
0, /* DROP => nothing */
0, /* GRANT => nothing */
0, /* ON => nothing */
0, /* TO => nothing */
0, /* REVOKE => nothing */
0, /* FROM => nothing */
0, /* SUBSCRIBE => nothing */
0, /* READ => nothing */
0, /* WRITE => nothing */
0, /* NK_DOT => nothing */
2023-03-28 10:43:58 +00:00
0, /* WITH => nothing */
2022-04-22 10:23:37 +00:00
0, /* DNODE => nothing */
0, /* PORT => nothing */
0, /* DNODES => nothing */
2023-05-09 11:19:14 +00:00
0, /* RESTORE => nothing */
0, /* NK_IPTOKEN => nothing */
0, /* FORCE => nothing */
2023-05-16 01:50:10 +00:00
0, /* UNSAFE => nothing */
2023-12-18 08:34:31 +00:00
0, /* CLUSTER => nothing */
2022-04-22 10:23:37 +00:00
0, /* LOCAL => nothing */
0, /* QNODE => nothing */
0, /* BNODE => nothing */
0, /* SNODE => nothing */
0, /* MNODE => nothing */
2023-05-09 11:19:14 +00:00
0, /* VNODE => nothing */
2022-04-22 10:23:37 +00:00
0, /* DATABASE => nothing */
0, /* USE => nothing */
2022-07-06 05:53:47 +00:00
0, /* FLUSH => nothing */
2022-07-11 02:53:06 +00:00
0, /* TRIM => nothing */
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 */
0, /* KEEP_TIME_OFFSET => nothing */
2022-04-22 10:23:37 +00:00
0, /* NK_COLON => nothing */
0, /* BWLIMIT => nothing */
0, /* START => nothing */
0, /* TIMESTAMP => nothing */
2024-03-13 07:12:21 +00:00
303, /* 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 */
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, /* FUNCTIONS => nothing */
0, /* INDEXES => nothing */
0, /* ACCOUNTS => nothing */
0, /* APPS => nothing */
0, /* CONNECTIONS => nothing */
2022-08-11 07:37:26 +00:00
0, /* LICENCES => nothing */
2022-04-22 10:23:37 +00:00
0, /* GRANTS => nothing */
2024-01-18 07:23:38 +00:00
0, /* FULL => nothing */
2024-01-31 05:44:00 +00:00
0, /* LOGS => nothing */
2024-01-18 09:49:11 +00:00
0, /* MACHINES => nothing */
2022-04-22 10:23:37 +00:00
0, /* QUERIES => nothing */
0, /* SCORES => nothing */
0, /* TOPICS => nothing */
0, /* VARIABLES => nothing */
0, /* BNODES => nothing */
0, /* SNODES => nothing */
0, /* TRANSACTIONS => nothing */
0, /* DISTRIBUTED => nothing */
0, /* CONSUMERS => nothing */
0, /* SUBSCRIPTIONS => nothing */
0, /* VNODES => nothing */
0, /* ALIVE => nothing */
2023-10-09 09:19:36 +00:00
0, /* VIEWS => nothing */
2024-03-13 07:12:21 +00:00
303, /* 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-03-13 07:12:21 +00:00
303, /* AFTER => ABORT */
303, /* ATTACH => ABORT */
303, /* BEFORE => ABORT */
303, /* BEGIN => ABORT */
303, /* BITAND => ABORT */
303, /* BITNOT => ABORT */
303, /* BITOR => ABORT */
303, /* BLOCKS => ABORT */
303, /* CHANGE => ABORT */
303, /* COMMA => ABORT */
303, /* CONCAT => ABORT */
303, /* CONFLICT => ABORT */
303, /* COPY => ABORT */
303, /* DEFERRED => ABORT */
303, /* DELIMITERS => ABORT */
303, /* DETACH => ABORT */
303, /* DIVIDE => ABORT */
303, /* DOT => ABORT */
303, /* EACH => ABORT */
303, /* FAIL => ABORT */
303, /* FILE => ABORT */
303, /* FOR => ABORT */
303, /* GLOB => ABORT */
303, /* ID => ABORT */
303, /* IMMEDIATE => ABORT */
303, /* IMPORT => ABORT */
303, /* INITIALLY => ABORT */
303, /* INSTEAD => ABORT */
303, /* ISNULL => ABORT */
303, /* KEY => ABORT */
303, /* MODULES => ABORT */
303, /* NK_BITNOT => ABORT */
303, /* NK_SEMI => ABORT */
303, /* NOTNULL => ABORT */
303, /* OF => ABORT */
303, /* PLUS => ABORT */
303, /* PRIVILEGE => ABORT */
303, /* RAISE => ABORT */
303, /* RESTRICT => ABORT */
303, /* ROW => ABORT */
303, /* SEMI => ABORT */
303, /* STAR => ABORT */
303, /* STATEMENT => ABORT */
303, /* STRICT => ABORT */
303, /* STRING => ABORT */
303, /* TIMES => ABORT */
303, /* VALUES => ABORT */
303, /* VARIABLE => ABORT */
303, /* WAL => ABORT */
};
#endif /* YYFALLBACK */
/* The following structure represents a single element of the
** parser's stack. Information stored includes:
**
** + The state number for the parser at this level of the stack.
**
** + The value of the token stored at this level of the stack.
** (In other words, the "major" token.)
**
** + The semantic value stored at this level of the stack. This is
** the information used by the action routines in the grammar.
** It is sometimes called the "minor" token.
**
** After the "shift" half of a SHIFTREDUCE action, the stateno field
** actually contains the reduce action for the second half of the
** SHIFTREDUCE.
*/
struct yyStackEntry {
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
YYCODETYPE major; /* The major token value. This is the code
** number for the token at this stack level */
YYMINORTYPE minor; /* The user-supplied minor token value. This
** is the value of the token */
};
typedef struct yyStackEntry yyStackEntry;
/* The state of the parser is completely contained in an instance of
** the following structure */
struct yyParser {
yyStackEntry *yytos; /* Pointer to top element of the stack */
#ifdef YYTRACKMAXSTACKDEPTH
int yyhwm; /* High-water mark of the stack */
#endif
#ifndef YYNOERRORRECOVERY
int yyerrcnt; /* Shifts left before out of the error */
#endif
2022-03-10 07:36:06 +00:00
ParseARG_SDECL /* A place to hold %extra_argument */
ParseCTX_SDECL /* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
int yystksz; /* Current side of the stack */
yyStackEntry *yystack; /* The parser's stack */
yyStackEntry yystk0; /* First stack entry */
#else
yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
yyStackEntry *yystackEnd; /* Last entry in the stack */
#endif
};
typedef struct yyParser yyParser;
#ifndef NDEBUG
#include <stdio.h>
static FILE *yyTraceFILE = 0;
static char *yyTracePrompt = 0;
#endif /* NDEBUG */
#ifndef NDEBUG
/*
** Turn parser tracing on by giving a stream to which to write the trace
** and a prompt to preface each trace message. Tracing is turned off
** by making either argument NULL
**
** Inputs:
** <ul>
** <li> A FILE* to which trace output should be written.
** If NULL, then tracing is turned off.
** <li> A prefix string written at the beginning of every
** line of trace output. If NULL, then tracing is
** turned off.
** </ul>
**
** Outputs:
** None.
*/
2022-03-10 07:36:06 +00:00
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
yyTraceFILE = TraceFILE;
yyTracePrompt = zTracePrompt;
if( yyTraceFILE==0 ) yyTracePrompt = 0;
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
}
#endif /* NDEBUG */
#if defined(YYCOVERAGE) || !defined(NDEBUG)
/* For tracing shifts, the names of all terminals and nonterminals
** are required. The following table supplies these names */
static const char *const yyTokenName[] = {
/* 0 */ "$",
/* 1 */ "OR",
/* 2 */ "AND",
/* 3 */ "UNION",
/* 4 */ "ALL",
/* 5 */ "MINUS",
/* 6 */ "EXCEPT",
/* 7 */ "INTERSECT",
/* 8 */ "NK_BITAND",
/* 9 */ "NK_BITOR",
/* 10 */ "NK_LSHIFT",
/* 11 */ "NK_RSHIFT",
/* 12 */ "NK_PLUS",
/* 13 */ "NK_MINUS",
/* 14 */ "NK_STAR",
/* 15 */ "NK_SLASH",
/* 16 */ "NK_REM",
/* 17 */ "NK_CONCAT",
/* 18 */ "CREATE",
/* 19 */ "ACCOUNT",
/* 20 */ "NK_ID",
/* 21 */ "PASS",
/* 22 */ "NK_STRING",
/* 23 */ "ALTER",
/* 24 */ "PPS",
/* 25 */ "TSERIES",
/* 26 */ "STORAGE",
/* 27 */ "STREAMS",
/* 28 */ "QTIME",
/* 29 */ "DBS",
/* 30 */ "USERS",
/* 31 */ "CONNS",
/* 32 */ "STATE",
2023-08-24 07:54:10 +00:00
/* 33 */ "NK_COMMA",
/* 34 */ "HOST",
/* 35 */ "USER",
/* 36 */ "ENABLE",
/* 37 */ "NK_INTEGER",
/* 38 */ "SYSINFO",
/* 39 */ "ADD",
/* 40 */ "DROP",
/* 41 */ "GRANT",
/* 42 */ "ON",
/* 43 */ "TO",
/* 44 */ "REVOKE",
/* 45 */ "FROM",
/* 46 */ "SUBSCRIBE",
/* 47 */ "READ",
/* 48 */ "WRITE",
/* 49 */ "NK_DOT",
/* 50 */ "WITH",
/* 51 */ "DNODE",
/* 52 */ "PORT",
/* 53 */ "DNODES",
/* 54 */ "RESTORE",
/* 55 */ "NK_IPTOKEN",
/* 56 */ "FORCE",
/* 57 */ "UNSAFE",
2023-12-18 08:34:31 +00:00
/* 58 */ "CLUSTER",
/* 59 */ "LOCAL",
/* 60 */ "QNODE",
/* 61 */ "BNODE",
/* 62 */ "SNODE",
/* 63 */ "MNODE",
/* 64 */ "VNODE",
/* 65 */ "DATABASE",
/* 66 */ "USE",
/* 67 */ "FLUSH",
/* 68 */ "TRIM",
/* 69 */ "COMPACT",
/* 70 */ "IF",
/* 71 */ "NOT",
/* 72 */ "EXISTS",
/* 73 */ "BUFFER",
/* 74 */ "CACHEMODEL",
/* 75 */ "CACHESIZE",
/* 76 */ "COMP",
/* 77 */ "DURATION",
/* 78 */ "NK_VARIABLE",
/* 79 */ "MAXROWS",
/* 80 */ "MINROWS",
/* 81 */ "KEEP",
/* 82 */ "PAGES",
/* 83 */ "PAGESIZE",
/* 84 */ "TSDB_PAGESIZE",
/* 85 */ "PRECISION",
/* 86 */ "REPLICA",
/* 87 */ "VGROUPS",
/* 88 */ "SINGLE_STABLE",
/* 89 */ "RETENTIONS",
/* 90 */ "SCHEMALESS",
/* 91 */ "WAL_LEVEL",
/* 92 */ "WAL_FSYNC_PERIOD",
/* 93 */ "WAL_RETENTION_PERIOD",
/* 94 */ "WAL_RETENTION_SIZE",
/* 95 */ "WAL_ROLL_PERIOD",
/* 96 */ "WAL_SEGMENT_SIZE",
/* 97 */ "STT_TRIGGER",
/* 98 */ "TABLE_PREFIX",
/* 99 */ "TABLE_SUFFIX",
/* 100 */ "KEEP_TIME_OFFSET",
/* 101 */ "NK_COLON",
/* 102 */ "BWLIMIT",
/* 103 */ "START",
/* 104 */ "TIMESTAMP",
/* 105 */ "END",
/* 106 */ "TABLE",
/* 107 */ "NK_LP",
/* 108 */ "NK_RP",
/* 109 */ "STABLE",
/* 110 */ "COLUMN",
/* 111 */ "MODIFY",
/* 112 */ "RENAME",
/* 113 */ "TAG",
/* 114 */ "SET",
/* 115 */ "NK_EQ",
/* 116 */ "USING",
/* 117 */ "TAGS",
/* 118 */ "BOOL",
/* 119 */ "TINYINT",
/* 120 */ "SMALLINT",
/* 121 */ "INT",
/* 122 */ "INTEGER",
/* 123 */ "BIGINT",
/* 124 */ "FLOAT",
/* 125 */ "DOUBLE",
/* 126 */ "BINARY",
/* 127 */ "NCHAR",
/* 128 */ "UNSIGNED",
/* 129 */ "JSON",
/* 130 */ "VARCHAR",
/* 131 */ "MEDIUMBLOB",
/* 132 */ "BLOB",
/* 133 */ "VARBINARY",
/* 134 */ "GEOMETRY",
/* 135 */ "DECIMAL",
/* 136 */ "COMMENT",
/* 137 */ "MAX_DELAY",
/* 138 */ "WATERMARK",
/* 139 */ "ROLLUP",
/* 140 */ "TTL",
/* 141 */ "SMA",
/* 142 */ "DELETE_MARK",
/* 143 */ "FIRST",
/* 144 */ "LAST",
/* 145 */ "SHOW",
/* 146 */ "PRIVILEGES",
/* 147 */ "DATABASES",
/* 148 */ "TABLES",
/* 149 */ "STABLES",
/* 150 */ "MNODES",
/* 151 */ "QNODES",
/* 152 */ "FUNCTIONS",
/* 153 */ "INDEXES",
/* 154 */ "ACCOUNTS",
/* 155 */ "APPS",
/* 156 */ "CONNECTIONS",
/* 157 */ "LICENCES",
/* 158 */ "GRANTS",
2024-01-18 07:23:38 +00:00
/* 159 */ "FULL",
2024-01-31 05:44:00 +00:00
/* 160 */ "LOGS",
2024-01-18 09:49:11 +00:00
/* 161 */ "MACHINES",
/* 162 */ "QUERIES",
/* 163 */ "SCORES",
/* 164 */ "TOPICS",
/* 165 */ "VARIABLES",
/* 166 */ "BNODES",
/* 167 */ "SNODES",
/* 168 */ "TRANSACTIONS",
/* 169 */ "DISTRIBUTED",
/* 170 */ "CONSUMERS",
/* 171 */ "SUBSCRIPTIONS",
/* 172 */ "VNODES",
/* 173 */ "ALIVE",
/* 174 */ "VIEWS",
/* 175 */ "VIEW",
/* 176 */ "COMPACTS",
/* 177 */ "NORMAL",
/* 178 */ "CHILD",
/* 179 */ "LIKE",
/* 180 */ "TBNAME",
/* 181 */ "QTAGS",
/* 182 */ "AS",
/* 183 */ "SYSTEM",
/* 184 */ "INDEX",
/* 185 */ "FUNCTION",
/* 186 */ "INTERVAL",
/* 187 */ "COUNT",
/* 188 */ "LAST_ROW",
/* 189 */ "META",
/* 190 */ "ONLY",
/* 191 */ "TOPIC",
/* 192 */ "CONSUMER",
/* 193 */ "GROUP",
/* 194 */ "DESC",
/* 195 */ "DESCRIBE",
/* 196 */ "RESET",
/* 197 */ "QUERY",
/* 198 */ "CACHE",
/* 199 */ "EXPLAIN",
/* 200 */ "ANALYZE",
/* 201 */ "VERBOSE",
/* 202 */ "NK_BOOL",
/* 203 */ "RATIO",
/* 204 */ "NK_FLOAT",
/* 205 */ "OUTPUTTYPE",
/* 206 */ "AGGREGATE",
/* 207 */ "BUFSIZE",
/* 208 */ "LANGUAGE",
/* 209 */ "REPLACE",
/* 210 */ "STREAM",
/* 211 */ "INTO",
/* 212 */ "PAUSE",
/* 213 */ "RESUME",
/* 214 */ "TRIGGER",
/* 215 */ "AT_ONCE",
/* 216 */ "WINDOW_CLOSE",
/* 217 */ "IGNORE",
/* 218 */ "EXPIRED",
/* 219 */ "FILL_HISTORY",
/* 220 */ "UPDATE",
/* 221 */ "SUBTABLE",
/* 222 */ "UNTREATED",
/* 223 */ "KILL",
/* 224 */ "CONNECTION",
/* 225 */ "TRANSACTION",
/* 226 */ "BALANCE",
/* 227 */ "VGROUP",
/* 228 */ "LEADER",
/* 229 */ "MERGE",
/* 230 */ "REDISTRIBUTE",
/* 231 */ "SPLIT",
/* 232 */ "DELETE",
/* 233 */ "INSERT",
2024-03-13 07:12:21 +00:00
/* 234 */ "NK_BIN",
/* 235 */ "NK_HEX",
/* 236 */ "NULL",
/* 237 */ "NK_QUESTION",
/* 238 */ "NK_ALIAS",
/* 239 */ "NK_ARROW",
/* 240 */ "ROWTS",
/* 241 */ "QSTART",
/* 242 */ "QEND",
/* 243 */ "QDURATION",
/* 244 */ "WSTART",
/* 245 */ "WEND",
/* 246 */ "WDURATION",
/* 247 */ "IROWTS",
/* 248 */ "ISFILLED",
/* 249 */ "CAST",
/* 250 */ "NOW",
/* 251 */ "TODAY",
/* 252 */ "TIMEZONE",
/* 253 */ "CLIENT_VERSION",
/* 254 */ "SERVER_VERSION",
/* 255 */ "SERVER_STATUS",
/* 256 */ "CURRENT_USER",
/* 257 */ "CASE",
/* 258 */ "WHEN",
/* 259 */ "THEN",
/* 260 */ "ELSE",
/* 261 */ "BETWEEN",
/* 262 */ "IS",
/* 263 */ "NK_LT",
/* 264 */ "NK_GT",
/* 265 */ "NK_LE",
/* 266 */ "NK_GE",
/* 267 */ "NK_NE",
/* 268 */ "MATCH",
/* 269 */ "NMATCH",
/* 270 */ "CONTAINS",
/* 271 */ "IN",
/* 272 */ "JOIN",
/* 273 */ "INNER",
/* 274 */ "SELECT",
/* 275 */ "NK_HINT",
/* 276 */ "DISTINCT",
/* 277 */ "WHERE",
/* 278 */ "PARTITION",
/* 279 */ "BY",
/* 280 */ "SESSION",
/* 281 */ "STATE_WINDOW",
/* 282 */ "EVENT_WINDOW",
/* 283 */ "COUNT_WINDOW",
/* 284 */ "SLIDING",
/* 285 */ "FILL",
/* 286 */ "VALUE",
/* 287 */ "VALUE_F",
/* 288 */ "NONE",
/* 289 */ "PREV",
/* 290 */ "NULL_F",
/* 291 */ "LINEAR",
/* 292 */ "NEXT",
/* 293 */ "HAVING",
/* 294 */ "RANGE",
/* 295 */ "EVERY",
/* 296 */ "ORDER",
/* 297 */ "SLIMIT",
/* 298 */ "SOFFSET",
/* 299 */ "LIMIT",
/* 300 */ "OFFSET",
/* 301 */ "ASC",
/* 302 */ "NULLS",
/* 303 */ "ABORT",
/* 304 */ "AFTER",
/* 305 */ "ATTACH",
/* 306 */ "BEFORE",
/* 307 */ "BEGIN",
/* 308 */ "BITAND",
/* 309 */ "BITNOT",
/* 310 */ "BITOR",
/* 311 */ "BLOCKS",
/* 312 */ "CHANGE",
/* 313 */ "COMMA",
/* 314 */ "CONCAT",
/* 315 */ "CONFLICT",
/* 316 */ "COPY",
/* 317 */ "DEFERRED",
/* 318 */ "DELIMITERS",
/* 319 */ "DETACH",
/* 320 */ "DIVIDE",
/* 321 */ "DOT",
/* 322 */ "EACH",
/* 323 */ "FAIL",
/* 324 */ "FILE",
/* 325 */ "FOR",
/* 326 */ "GLOB",
/* 327 */ "ID",
/* 328 */ "IMMEDIATE",
/* 329 */ "IMPORT",
/* 330 */ "INITIALLY",
/* 331 */ "INSTEAD",
/* 332 */ "ISNULL",
/* 333 */ "KEY",
/* 334 */ "MODULES",
/* 335 */ "NK_BITNOT",
/* 336 */ "NK_SEMI",
/* 337 */ "NOTNULL",
/* 338 */ "OF",
/* 339 */ "PLUS",
/* 340 */ "PRIVILEGE",
/* 341 */ "RAISE",
/* 342 */ "RESTRICT",
/* 343 */ "ROW",
/* 344 */ "SEMI",
/* 345 */ "STAR",
/* 346 */ "STATEMENT",
/* 347 */ "STRICT",
/* 348 */ "STRING",
/* 349 */ "TIMES",
/* 350 */ "VALUES",
/* 351 */ "VARIABLE",
/* 352 */ "WAL",
/* 353 */ "cmd",
/* 354 */ "account_options",
/* 355 */ "alter_account_options",
/* 356 */ "literal",
/* 357 */ "alter_account_option",
/* 358 */ "ip_range_list",
/* 359 */ "white_list",
/* 360 */ "white_list_opt",
/* 361 */ "user_name",
/* 362 */ "sysinfo_opt",
/* 363 */ "privileges",
/* 364 */ "priv_level",
/* 365 */ "with_opt",
/* 366 */ "priv_type_list",
/* 367 */ "priv_type",
/* 368 */ "db_name",
/* 369 */ "table_name",
/* 370 */ "topic_name",
/* 371 */ "search_condition",
/* 372 */ "dnode_endpoint",
/* 373 */ "force_opt",
/* 374 */ "unsafe_opt",
/* 375 */ "not_exists_opt",
/* 376 */ "db_options",
/* 377 */ "exists_opt",
/* 378 */ "alter_db_options",
/* 379 */ "speed_opt",
/* 380 */ "start_opt",
/* 381 */ "end_opt",
/* 382 */ "integer_list",
/* 383 */ "variable_list",
/* 384 */ "retention_list",
/* 385 */ "signed",
/* 386 */ "alter_db_option",
/* 387 */ "retention",
/* 388 */ "full_table_name",
/* 389 */ "column_def_list",
/* 390 */ "tags_def_opt",
/* 391 */ "table_options",
/* 392 */ "multi_create_clause",
/* 393 */ "tags_def",
/* 394 */ "multi_drop_clause",
/* 395 */ "alter_table_clause",
/* 396 */ "alter_table_options",
/* 397 */ "column_name",
/* 398 */ "type_name",
/* 399 */ "tags_literal",
/* 400 */ "create_subtable_clause",
/* 401 */ "specific_cols_opt",
/* 402 */ "tags_literal_list",
/* 403 */ "drop_table_clause",
/* 404 */ "col_name_list",
/* 405 */ "column_def",
/* 406 */ "duration_list",
/* 407 */ "rollup_func_list",
/* 408 */ "alter_table_option",
/* 409 */ "duration_literal",
/* 410 */ "rollup_func_name",
/* 411 */ "function_name",
/* 412 */ "col_name",
/* 413 */ "db_kind_opt",
/* 414 */ "table_kind_db_name_cond_opt",
/* 415 */ "like_pattern_opt",
/* 416 */ "db_name_cond_opt",
/* 417 */ "table_name_cond",
/* 418 */ "from_db_opt",
/* 419 */ "tag_list_opt",
/* 420 */ "table_kind",
/* 421 */ "tag_item",
/* 422 */ "column_alias",
/* 423 */ "index_options",
/* 424 */ "full_index_name",
/* 425 */ "index_name",
/* 426 */ "func_list",
/* 427 */ "sliding_opt",
/* 428 */ "sma_stream_opt",
/* 429 */ "func",
/* 430 */ "sma_func_name",
/* 431 */ "expression_list",
/* 432 */ "with_meta",
/* 433 */ "query_or_subquery",
/* 434 */ "where_clause_opt",
/* 435 */ "cgroup_name",
/* 436 */ "analyze_opt",
/* 437 */ "explain_options",
/* 438 */ "insert_query",
/* 439 */ "or_replace_opt",
/* 440 */ "agg_func_opt",
/* 441 */ "bufsize_opt",
/* 442 */ "language_opt",
/* 443 */ "full_view_name",
/* 444 */ "view_name",
/* 445 */ "stream_name",
/* 446 */ "stream_options",
/* 447 */ "col_list_opt",
/* 448 */ "tag_def_or_ref_opt",
/* 449 */ "subtable_opt",
/* 450 */ "ignore_opt",
/* 451 */ "expression",
/* 452 */ "on_vgroup_id",
/* 453 */ "dnode_list",
/* 454 */ "literal_func",
/* 455 */ "signed_literal",
/* 456 */ "literal_list",
/* 457 */ "table_alias",
/* 458 */ "expr_or_subquery",
/* 459 */ "pseudo_column",
/* 460 */ "column_reference",
/* 461 */ "function_expression",
/* 462 */ "case_when_expression",
/* 463 */ "star_func",
/* 464 */ "star_func_para_list",
/* 465 */ "noarg_func",
/* 466 */ "other_para_list",
/* 467 */ "star_func_para",
/* 468 */ "when_then_list",
/* 469 */ "case_when_else_opt",
/* 470 */ "common_expression",
/* 471 */ "when_then_expr",
/* 472 */ "predicate",
/* 473 */ "compare_op",
/* 474 */ "in_op",
/* 475 */ "in_predicate_value",
/* 476 */ "boolean_value_expression",
/* 477 */ "boolean_primary",
/* 478 */ "from_clause_opt",
/* 479 */ "table_reference_list",
/* 480 */ "table_reference",
/* 481 */ "table_primary",
/* 482 */ "joined_table",
/* 483 */ "alias_opt",
/* 484 */ "subquery",
/* 485 */ "parenthesized_joined_table",
/* 486 */ "join_type",
/* 487 */ "query_specification",
/* 488 */ "hint_list",
/* 489 */ "set_quantifier_opt",
/* 490 */ "tag_mode_opt",
/* 491 */ "select_list",
/* 492 */ "partition_by_clause_opt",
/* 493 */ "range_opt",
/* 494 */ "every_opt",
/* 495 */ "fill_opt",
/* 496 */ "twindow_clause_opt",
/* 497 */ "group_by_clause_opt",
/* 498 */ "having_clause_opt",
/* 499 */ "select_item",
/* 500 */ "partition_list",
/* 501 */ "partition_item",
/* 502 */ "interval_sliding_duration_literal",
/* 503 */ "fill_mode",
/* 504 */ "group_by_list",
/* 505 */ "query_expression",
/* 506 */ "query_simple",
/* 507 */ "order_by_clause_opt",
/* 508 */ "slimit_clause_opt",
/* 509 */ "limit_clause_opt",
/* 510 */ "union_query_expression",
/* 511 */ "query_simple_or_subquery",
/* 512 */ "sort_specification_list",
/* 513 */ "sort_specification",
/* 514 */ "ordering_specification_opt",
/* 515 */ "null_ordering_opt",
};
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
#ifndef NDEBUG
/* For tracing reduce actions, the names of all rules are required.
*/
static const char *const yyRuleName[] = {
/* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
/* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
/* 2 */ "account_options ::=",
/* 3 */ "account_options ::= account_options PPS literal",
/* 4 */ "account_options ::= account_options TSERIES literal",
/* 5 */ "account_options ::= account_options STORAGE literal",
/* 6 */ "account_options ::= account_options STREAMS literal",
/* 7 */ "account_options ::= account_options QTIME literal",
/* 8 */ "account_options ::= account_options DBS literal",
/* 9 */ "account_options ::= account_options USERS literal",
/* 10 */ "account_options ::= account_options CONNS literal",
/* 11 */ "account_options ::= account_options STATE literal",
/* 12 */ "alter_account_options ::= alter_account_option",
/* 13 */ "alter_account_options ::= alter_account_options alter_account_option",
/* 14 */ "alter_account_option ::= PASS literal",
/* 15 */ "alter_account_option ::= PPS literal",
/* 16 */ "alter_account_option ::= TSERIES literal",
/* 17 */ "alter_account_option ::= STORAGE literal",
/* 18 */ "alter_account_option ::= STREAMS literal",
/* 19 */ "alter_account_option ::= QTIME literal",
/* 20 */ "alter_account_option ::= DBS literal",
/* 21 */ "alter_account_option ::= USERS literal",
/* 22 */ "alter_account_option ::= CONNS literal",
/* 23 */ "alter_account_option ::= STATE literal",
2023-08-24 07:54:10 +00:00
/* 24 */ "ip_range_list ::= NK_STRING",
/* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING",
/* 26 */ "white_list ::= HOST ip_range_list",
/* 27 */ "white_list_opt ::=",
/* 28 */ "white_list_opt ::= white_list",
/* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt",
/* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
/* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
/* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
/* 33 */ "cmd ::= ALTER USER user_name ADD white_list",
/* 34 */ "cmd ::= ALTER USER user_name DROP white_list",
/* 35 */ "cmd ::= DROP USER user_name",
/* 36 */ "sysinfo_opt ::=",
/* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
/* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
/* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
/* 40 */ "privileges ::= ALL",
/* 41 */ "privileges ::= priv_type_list",
/* 42 */ "privileges ::= SUBSCRIBE",
/* 43 */ "priv_type_list ::= priv_type",
/* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
/* 45 */ "priv_type ::= READ",
/* 46 */ "priv_type ::= WRITE",
/* 47 */ "priv_type ::= ALTER",
/* 48 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
/* 49 */ "priv_level ::= db_name NK_DOT NK_STAR",
/* 50 */ "priv_level ::= db_name NK_DOT table_name",
/* 51 */ "priv_level ::= topic_name",
/* 52 */ "with_opt ::=",
/* 53 */ "with_opt ::= WITH search_condition",
/* 54 */ "cmd ::= CREATE DNODE dnode_endpoint",
/* 55 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
/* 56 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
/* 57 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
/* 58 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
/* 59 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
/* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
/* 61 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
/* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING",
/* 63 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
/* 64 */ "cmd ::= RESTORE DNODE NK_INTEGER",
/* 65 */ "dnode_endpoint ::= NK_STRING",
/* 66 */ "dnode_endpoint ::= NK_ID",
/* 67 */ "dnode_endpoint ::= NK_IPTOKEN",
/* 68 */ "force_opt ::=",
/* 69 */ "force_opt ::= FORCE",
/* 70 */ "unsafe_opt ::= UNSAFE",
2023-12-18 08:34:31 +00:00
/* 71 */ "cmd ::= ALTER CLUSTER NK_STRING",
/* 72 */ "cmd ::= ALTER CLUSTER NK_STRING NK_STRING",
/* 73 */ "cmd ::= ALTER LOCAL NK_STRING",
/* 74 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
/* 75 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
/* 76 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
/* 77 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
/* 78 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
/* 79 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
/* 80 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
/* 81 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
/* 82 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
/* 83 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
/* 84 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
/* 85 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
/* 86 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
/* 87 */ "cmd ::= DROP DATABASE exists_opt db_name",
/* 88 */ "cmd ::= USE db_name",
/* 89 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
/* 90 */ "cmd ::= FLUSH DATABASE db_name",
/* 91 */ "cmd ::= TRIM DATABASE db_name speed_opt",
/* 92 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
/* 93 */ "not_exists_opt ::= IF NOT EXISTS",
/* 94 */ "not_exists_opt ::=",
/* 95 */ "exists_opt ::= IF EXISTS",
/* 96 */ "exists_opt ::=",
/* 97 */ "db_options ::=",
/* 98 */ "db_options ::= db_options BUFFER NK_INTEGER",
/* 99 */ "db_options ::= db_options CACHEMODEL NK_STRING",
/* 100 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
/* 101 */ "db_options ::= db_options COMP NK_INTEGER",
/* 102 */ "db_options ::= db_options DURATION NK_INTEGER",
/* 103 */ "db_options ::= db_options DURATION NK_VARIABLE",
/* 104 */ "db_options ::= db_options MAXROWS NK_INTEGER",
/* 105 */ "db_options ::= db_options MINROWS NK_INTEGER",
/* 106 */ "db_options ::= db_options KEEP integer_list",
/* 107 */ "db_options ::= db_options KEEP variable_list",
/* 108 */ "db_options ::= db_options PAGES NK_INTEGER",
/* 109 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
/* 110 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
/* 111 */ "db_options ::= db_options PRECISION NK_STRING",
/* 112 */ "db_options ::= db_options REPLICA NK_INTEGER",
/* 113 */ "db_options ::= db_options VGROUPS NK_INTEGER",
/* 114 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
/* 115 */ "db_options ::= db_options RETENTIONS retention_list",
/* 116 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
/* 117 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
/* 118 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
/* 119 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
/* 120 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 121 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
/* 122 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 123 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
/* 124 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
/* 125 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
/* 126 */ "db_options ::= db_options TABLE_PREFIX signed",
/* 127 */ "db_options ::= db_options TABLE_SUFFIX signed",
/* 128 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
/* 129 */ "alter_db_options ::= alter_db_option",
/* 130 */ "alter_db_options ::= alter_db_options alter_db_option",
/* 131 */ "alter_db_option ::= BUFFER NK_INTEGER",
/* 132 */ "alter_db_option ::= CACHEMODEL NK_STRING",
/* 133 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
/* 134 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
/* 135 */ "alter_db_option ::= KEEP integer_list",
/* 136 */ "alter_db_option ::= KEEP variable_list",
/* 137 */ "alter_db_option ::= PAGES NK_INTEGER",
/* 138 */ "alter_db_option ::= REPLICA NK_INTEGER",
/* 139 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
/* 140 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
/* 141 */ "alter_db_option ::= MINROWS NK_INTEGER",
/* 142 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
/* 143 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 144 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
/* 145 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 146 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
/* 147 */ "integer_list ::= NK_INTEGER",
/* 148 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
/* 149 */ "variable_list ::= NK_VARIABLE",
/* 150 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
/* 151 */ "retention_list ::= retention",
/* 152 */ "retention_list ::= retention_list NK_COMMA retention",
/* 153 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
/* 154 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
/* 155 */ "speed_opt ::=",
/* 156 */ "speed_opt ::= BWLIMIT NK_INTEGER",
/* 157 */ "start_opt ::=",
/* 158 */ "start_opt ::= START WITH NK_INTEGER",
/* 159 */ "start_opt ::= START WITH NK_STRING",
/* 160 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
/* 161 */ "end_opt ::=",
/* 162 */ "end_opt ::= END WITH NK_INTEGER",
/* 163 */ "end_opt ::= END WITH NK_STRING",
/* 164 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
/* 165 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
/* 166 */ "cmd ::= CREATE TABLE multi_create_clause",
/* 167 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
/* 168 */ "cmd ::= DROP TABLE multi_drop_clause",
/* 169 */ "cmd ::= DROP STABLE exists_opt full_table_name",
/* 170 */ "cmd ::= ALTER TABLE alter_table_clause",
/* 171 */ "cmd ::= ALTER STABLE alter_table_clause",
/* 172 */ "alter_table_clause ::= full_table_name alter_table_options",
/* 173 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
/* 174 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
/* 175 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
/* 176 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
/* 177 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
/* 178 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
/* 179 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
/* 180 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
2024-03-10 14:14:57 +00:00
/* 181 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal",
2023-12-18 08:34:31 +00:00
/* 182 */ "multi_create_clause ::= create_subtable_clause",
/* 183 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
2024-03-10 14:14:57 +00:00
/* 184 */ "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",
2023-12-18 08:34:31 +00:00
/* 185 */ "multi_drop_clause ::= drop_table_clause",
/* 186 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
/* 187 */ "drop_table_clause ::= exists_opt full_table_name",
/* 188 */ "specific_cols_opt ::=",
/* 189 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
/* 190 */ "full_table_name ::= table_name",
/* 191 */ "full_table_name ::= db_name NK_DOT table_name",
/* 192 */ "column_def_list ::= column_def",
/* 193 */ "column_def_list ::= column_def_list NK_COMMA column_def",
/* 194 */ "column_def ::= column_name type_name",
/* 195 */ "type_name ::= BOOL",
/* 196 */ "type_name ::= TINYINT",
/* 197 */ "type_name ::= SMALLINT",
/* 198 */ "type_name ::= INT",
/* 199 */ "type_name ::= INTEGER",
/* 200 */ "type_name ::= BIGINT",
/* 201 */ "type_name ::= FLOAT",
/* 202 */ "type_name ::= DOUBLE",
/* 203 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
/* 204 */ "type_name ::= TIMESTAMP",
/* 205 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
/* 206 */ "type_name ::= TINYINT UNSIGNED",
/* 207 */ "type_name ::= SMALLINT UNSIGNED",
/* 208 */ "type_name ::= INT UNSIGNED",
/* 209 */ "type_name ::= BIGINT UNSIGNED",
/* 210 */ "type_name ::= JSON",
/* 211 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
/* 212 */ "type_name ::= MEDIUMBLOB",
/* 213 */ "type_name ::= BLOB",
/* 214 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
/* 215 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
/* 216 */ "type_name ::= DECIMAL",
/* 217 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
/* 218 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 219 */ "tags_def_opt ::=",
/* 220 */ "tags_def_opt ::= tags_def",
/* 221 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
/* 222 */ "table_options ::=",
/* 223 */ "table_options ::= table_options COMMENT NK_STRING",
/* 224 */ "table_options ::= table_options MAX_DELAY duration_list",
/* 225 */ "table_options ::= table_options WATERMARK duration_list",
/* 226 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
/* 227 */ "table_options ::= table_options TTL NK_INTEGER",
/* 228 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
/* 229 */ "table_options ::= table_options DELETE_MARK duration_list",
/* 230 */ "alter_table_options ::= alter_table_option",
/* 231 */ "alter_table_options ::= alter_table_options alter_table_option",
/* 232 */ "alter_table_option ::= COMMENT NK_STRING",
/* 233 */ "alter_table_option ::= TTL NK_INTEGER",
/* 234 */ "duration_list ::= duration_literal",
/* 235 */ "duration_list ::= duration_list NK_COMMA duration_literal",
/* 236 */ "rollup_func_list ::= rollup_func_name",
/* 237 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
/* 238 */ "rollup_func_name ::= function_name",
/* 239 */ "rollup_func_name ::= FIRST",
/* 240 */ "rollup_func_name ::= LAST",
/* 241 */ "col_name_list ::= col_name",
/* 242 */ "col_name_list ::= col_name_list NK_COMMA col_name",
/* 243 */ "col_name ::= column_name",
/* 244 */ "cmd ::= SHOW DNODES",
/* 245 */ "cmd ::= SHOW USERS",
/* 246 */ "cmd ::= SHOW USER PRIVILEGES",
/* 247 */ "cmd ::= SHOW db_kind_opt DATABASES",
/* 248 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
/* 249 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
/* 250 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
/* 251 */ "cmd ::= SHOW MNODES",
/* 252 */ "cmd ::= SHOW QNODES",
/* 253 */ "cmd ::= SHOW FUNCTIONS",
/* 254 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
/* 255 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
/* 256 */ "cmd ::= SHOW STREAMS",
/* 257 */ "cmd ::= SHOW ACCOUNTS",
/* 258 */ "cmd ::= SHOW APPS",
/* 259 */ "cmd ::= SHOW CONNECTIONS",
/* 260 */ "cmd ::= SHOW LICENCES",
/* 261 */ "cmd ::= SHOW GRANTS",
2024-01-18 07:23:38 +00:00
/* 262 */ "cmd ::= SHOW GRANTS FULL",
2024-01-31 05:44:00 +00:00
/* 263 */ "cmd ::= SHOW GRANTS LOGS",
2024-01-18 09:49:11 +00:00
/* 264 */ "cmd ::= SHOW CLUSTER MACHINES",
/* 265 */ "cmd ::= SHOW CREATE DATABASE db_name",
/* 266 */ "cmd ::= SHOW CREATE TABLE full_table_name",
/* 267 */ "cmd ::= SHOW CREATE STABLE full_table_name",
/* 268 */ "cmd ::= SHOW QUERIES",
/* 269 */ "cmd ::= SHOW SCORES",
/* 270 */ "cmd ::= SHOW TOPICS",
/* 271 */ "cmd ::= SHOW VARIABLES",
/* 272 */ "cmd ::= SHOW CLUSTER VARIABLES",
/* 273 */ "cmd ::= SHOW LOCAL VARIABLES",
/* 274 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
/* 275 */ "cmd ::= SHOW BNODES",
/* 276 */ "cmd ::= SHOW SNODES",
/* 277 */ "cmd ::= SHOW CLUSTER",
/* 278 */ "cmd ::= SHOW TRANSACTIONS",
/* 279 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
/* 280 */ "cmd ::= SHOW CONSUMERS",
/* 281 */ "cmd ::= SHOW SUBSCRIPTIONS",
/* 282 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
/* 283 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
/* 284 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
/* 285 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
/* 286 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
/* 287 */ "cmd ::= SHOW VNODES",
/* 288 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
/* 289 */ "cmd ::= SHOW CLUSTER ALIVE",
2024-02-19 05:10:27 +00:00
/* 290 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt",
2024-01-18 09:49:11 +00:00
/* 291 */ "cmd ::= SHOW CREATE VIEW full_table_name",
/* 292 */ "cmd ::= SHOW COMPACTS",
/* 293 */ "cmd ::= SHOW COMPACT NK_INTEGER",
/* 294 */ "table_kind_db_name_cond_opt ::=",
/* 295 */ "table_kind_db_name_cond_opt ::= table_kind",
/* 296 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
/* 297 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
/* 298 */ "table_kind ::= NORMAL",
/* 299 */ "table_kind ::= CHILD",
/* 300 */ "db_name_cond_opt ::=",
/* 301 */ "db_name_cond_opt ::= db_name NK_DOT",
/* 302 */ "like_pattern_opt ::=",
/* 303 */ "like_pattern_opt ::= LIKE NK_STRING",
/* 304 */ "table_name_cond ::= table_name",
/* 305 */ "from_db_opt ::=",
/* 306 */ "from_db_opt ::= FROM db_name",
/* 307 */ "tag_list_opt ::=",
/* 308 */ "tag_list_opt ::= tag_item",
/* 309 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
/* 310 */ "tag_item ::= TBNAME",
/* 311 */ "tag_item ::= QTAGS",
/* 312 */ "tag_item ::= column_name",
/* 313 */ "tag_item ::= column_name column_alias",
/* 314 */ "tag_item ::= column_name AS column_alias",
/* 315 */ "db_kind_opt ::=",
/* 316 */ "db_kind_opt ::= USER",
/* 317 */ "db_kind_opt ::= SYSTEM",
/* 318 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
/* 319 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
/* 320 */ "cmd ::= DROP INDEX exists_opt full_index_name",
/* 321 */ "full_index_name ::= index_name",
/* 322 */ "full_index_name ::= db_name NK_DOT index_name",
/* 323 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
/* 324 */ "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",
/* 325 */ "func_list ::= func",
/* 326 */ "func_list ::= func_list NK_COMMA func",
/* 327 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
/* 328 */ "sma_func_name ::= function_name",
/* 329 */ "sma_func_name ::= COUNT",
/* 330 */ "sma_func_name ::= FIRST",
/* 331 */ "sma_func_name ::= LAST",
/* 332 */ "sma_func_name ::= LAST_ROW",
/* 333 */ "sma_stream_opt ::=",
/* 334 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
/* 335 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
/* 336 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
/* 337 */ "with_meta ::= AS",
/* 338 */ "with_meta ::= WITH META AS",
/* 339 */ "with_meta ::= ONLY META AS",
/* 340 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
/* 341 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
/* 342 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
/* 343 */ "cmd ::= DROP TOPIC exists_opt topic_name",
/* 344 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
/* 345 */ "cmd ::= DESC full_table_name",
/* 346 */ "cmd ::= DESCRIBE full_table_name",
/* 347 */ "cmd ::= RESET QUERY CACHE",
/* 348 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
/* 349 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
/* 350 */ "analyze_opt ::=",
/* 351 */ "analyze_opt ::= ANALYZE",
/* 352 */ "explain_options ::=",
/* 353 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
/* 354 */ "explain_options ::= explain_options RATIO NK_FLOAT",
/* 355 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
/* 356 */ "cmd ::= DROP FUNCTION exists_opt function_name",
/* 357 */ "agg_func_opt ::=",
/* 358 */ "agg_func_opt ::= AGGREGATE",
/* 359 */ "bufsize_opt ::=",
/* 360 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
/* 361 */ "language_opt ::=",
/* 362 */ "language_opt ::= LANGUAGE NK_STRING",
/* 363 */ "or_replace_opt ::=",
/* 364 */ "or_replace_opt ::= OR REPLACE",
/* 365 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
/* 366 */ "cmd ::= DROP VIEW exists_opt full_view_name",
/* 367 */ "full_view_name ::= view_name",
/* 368 */ "full_view_name ::= db_name NK_DOT view_name",
/* 369 */ "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",
/* 370 */ "cmd ::= DROP STREAM exists_opt stream_name",
/* 371 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
/* 372 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
/* 373 */ "col_list_opt ::=",
/* 374 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
/* 375 */ "tag_def_or_ref_opt ::=",
/* 376 */ "tag_def_or_ref_opt ::= tags_def",
/* 377 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
/* 378 */ "stream_options ::=",
/* 379 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
/* 380 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
/* 381 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
/* 382 */ "stream_options ::= stream_options WATERMARK duration_literal",
/* 383 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
/* 384 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
/* 385 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
/* 386 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
/* 387 */ "subtable_opt ::=",
/* 388 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
/* 389 */ "ignore_opt ::=",
/* 390 */ "ignore_opt ::= IGNORE UNTREATED",
/* 391 */ "cmd ::= KILL CONNECTION NK_INTEGER",
/* 392 */ "cmd ::= KILL QUERY NK_STRING",
/* 393 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
/* 394 */ "cmd ::= KILL COMPACT NK_INTEGER",
/* 395 */ "cmd ::= BALANCE VGROUP",
/* 396 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
/* 397 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
/* 398 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
/* 399 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
/* 400 */ "on_vgroup_id ::=",
/* 401 */ "on_vgroup_id ::= ON NK_INTEGER",
/* 402 */ "dnode_list ::= DNODE NK_INTEGER",
/* 403 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
/* 404 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
/* 405 */ "cmd ::= query_or_subquery",
/* 406 */ "cmd ::= insert_query",
/* 407 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
/* 408 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
2024-03-10 14:14:57 +00:00
/* 409 */ "tags_literal ::= NK_INTEGER",
/* 410 */ "tags_literal ::= NK_PLUS NK_INTEGER",
/* 411 */ "tags_literal ::= NK_MINUS NK_INTEGER",
/* 412 */ "tags_literal ::= NK_FLOAT",
/* 413 */ "tags_literal ::= NK_PLUS NK_FLOAT",
/* 414 */ "tags_literal ::= NK_MINUS NK_FLOAT",
2024-03-13 07:12:21 +00:00
/* 415 */ "tags_literal ::= NK_BIN",
/* 416 */ "tags_literal ::= NK_PLUS NK_BIN",
/* 417 */ "tags_literal ::= NK_MINUS NK_BIN",
/* 418 */ "tags_literal ::= NK_HEX",
/* 419 */ "tags_literal ::= NK_PLUS NK_HEX",
/* 420 */ "tags_literal ::= NK_MINUS NK_HEX",
/* 421 */ "tags_literal ::= NK_STRING",
/* 422 */ "tags_literal ::= NK_BOOL",
/* 423 */ "tags_literal ::= NULL",
/* 424 */ "tags_literal ::= literal_func",
/* 425 */ "tags_literal ::= literal_func NK_PLUS duration_literal",
/* 426 */ "tags_literal ::= literal_func NK_MINUS duration_literal",
/* 427 */ "tags_literal_list ::= tags_literal",
/* 428 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal",
/* 429 */ "literal ::= NK_INTEGER",
/* 430 */ "literal ::= NK_FLOAT",
/* 431 */ "literal ::= NK_STRING",
/* 432 */ "literal ::= NK_BOOL",
/* 433 */ "literal ::= TIMESTAMP NK_STRING",
/* 434 */ "literal ::= duration_literal",
/* 435 */ "literal ::= NULL",
/* 436 */ "literal ::= NK_QUESTION",
/* 437 */ "duration_literal ::= NK_VARIABLE",
/* 438 */ "signed ::= NK_INTEGER",
/* 439 */ "signed ::= NK_PLUS NK_INTEGER",
/* 440 */ "signed ::= NK_MINUS NK_INTEGER",
/* 441 */ "signed ::= NK_FLOAT",
/* 442 */ "signed ::= NK_PLUS NK_FLOAT",
/* 443 */ "signed ::= NK_MINUS NK_FLOAT",
/* 444 */ "signed_literal ::= signed",
/* 445 */ "signed_literal ::= NK_STRING",
/* 446 */ "signed_literal ::= NK_BOOL",
/* 447 */ "signed_literal ::= TIMESTAMP NK_STRING",
/* 448 */ "signed_literal ::= duration_literal",
/* 449 */ "signed_literal ::= NULL",
/* 450 */ "signed_literal ::= literal_func",
/* 451 */ "signed_literal ::= NK_QUESTION",
/* 452 */ "literal_list ::= signed_literal",
/* 453 */ "literal_list ::= literal_list NK_COMMA signed_literal",
/* 454 */ "db_name ::= NK_ID",
/* 455 */ "table_name ::= NK_ID",
/* 456 */ "column_name ::= NK_ID",
/* 457 */ "function_name ::= NK_ID",
/* 458 */ "view_name ::= NK_ID",
/* 459 */ "table_alias ::= NK_ID",
/* 460 */ "column_alias ::= NK_ID",
/* 461 */ "column_alias ::= NK_ALIAS",
/* 462 */ "user_name ::= NK_ID",
/* 463 */ "topic_name ::= NK_ID",
/* 464 */ "stream_name ::= NK_ID",
/* 465 */ "cgroup_name ::= NK_ID",
/* 466 */ "index_name ::= NK_ID",
/* 467 */ "expr_or_subquery ::= expression",
/* 468 */ "expression ::= literal",
/* 469 */ "expression ::= pseudo_column",
/* 470 */ "expression ::= column_reference",
/* 471 */ "expression ::= function_expression",
/* 472 */ "expression ::= case_when_expression",
/* 473 */ "expression ::= NK_LP expression NK_RP",
/* 474 */ "expression ::= NK_PLUS expr_or_subquery",
/* 475 */ "expression ::= NK_MINUS expr_or_subquery",
/* 476 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
/* 477 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
/* 478 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
/* 479 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
/* 480 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
/* 481 */ "expression ::= column_reference NK_ARROW NK_STRING",
/* 482 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
/* 483 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
/* 484 */ "expression_list ::= expr_or_subquery",
/* 485 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
/* 486 */ "column_reference ::= column_name",
/* 487 */ "column_reference ::= table_name NK_DOT column_name",
/* 488 */ "column_reference ::= NK_ALIAS",
/* 489 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
/* 490 */ "pseudo_column ::= ROWTS",
/* 491 */ "pseudo_column ::= TBNAME",
/* 492 */ "pseudo_column ::= table_name NK_DOT TBNAME",
/* 493 */ "pseudo_column ::= QSTART",
/* 494 */ "pseudo_column ::= QEND",
/* 495 */ "pseudo_column ::= QDURATION",
/* 496 */ "pseudo_column ::= WSTART",
/* 497 */ "pseudo_column ::= WEND",
/* 498 */ "pseudo_column ::= WDURATION",
/* 499 */ "pseudo_column ::= IROWTS",
/* 500 */ "pseudo_column ::= ISFILLED",
/* 501 */ "pseudo_column ::= QTAGS",
/* 502 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
/* 503 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
/* 504 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
/* 505 */ "function_expression ::= literal_func",
/* 506 */ "literal_func ::= noarg_func NK_LP NK_RP",
/* 507 */ "literal_func ::= NOW",
/* 508 */ "literal_func ::= TODAY",
/* 509 */ "noarg_func ::= NOW",
/* 510 */ "noarg_func ::= TODAY",
/* 511 */ "noarg_func ::= TIMEZONE",
/* 512 */ "noarg_func ::= DATABASE",
/* 513 */ "noarg_func ::= CLIENT_VERSION",
/* 514 */ "noarg_func ::= SERVER_VERSION",
/* 515 */ "noarg_func ::= SERVER_STATUS",
/* 516 */ "noarg_func ::= CURRENT_USER",
/* 517 */ "noarg_func ::= USER",
/* 518 */ "star_func ::= COUNT",
/* 519 */ "star_func ::= FIRST",
/* 520 */ "star_func ::= LAST",
/* 521 */ "star_func ::= LAST_ROW",
/* 522 */ "star_func_para_list ::= NK_STAR",
/* 523 */ "star_func_para_list ::= other_para_list",
/* 524 */ "other_para_list ::= star_func_para",
/* 525 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
/* 526 */ "star_func_para ::= expr_or_subquery",
/* 527 */ "star_func_para ::= table_name NK_DOT NK_STAR",
/* 528 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
/* 529 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
/* 530 */ "when_then_list ::= when_then_expr",
/* 531 */ "when_then_list ::= when_then_list when_then_expr",
/* 532 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
/* 533 */ "case_when_else_opt ::=",
/* 534 */ "case_when_else_opt ::= ELSE common_expression",
/* 535 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
/* 536 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
/* 537 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
/* 538 */ "predicate ::= expr_or_subquery IS NULL",
/* 539 */ "predicate ::= expr_or_subquery IS NOT NULL",
/* 540 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
/* 541 */ "compare_op ::= NK_LT",
/* 542 */ "compare_op ::= NK_GT",
/* 543 */ "compare_op ::= NK_LE",
/* 544 */ "compare_op ::= NK_GE",
/* 545 */ "compare_op ::= NK_NE",
/* 546 */ "compare_op ::= NK_EQ",
/* 547 */ "compare_op ::= LIKE",
/* 548 */ "compare_op ::= NOT LIKE",
/* 549 */ "compare_op ::= MATCH",
/* 550 */ "compare_op ::= NMATCH",
/* 551 */ "compare_op ::= CONTAINS",
/* 552 */ "in_op ::= IN",
/* 553 */ "in_op ::= NOT IN",
/* 554 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
/* 555 */ "boolean_value_expression ::= boolean_primary",
/* 556 */ "boolean_value_expression ::= NOT boolean_primary",
/* 557 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 558 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 559 */ "boolean_primary ::= predicate",
/* 560 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 561 */ "common_expression ::= expr_or_subquery",
/* 562 */ "common_expression ::= boolean_value_expression",
/* 563 */ "from_clause_opt ::=",
/* 564 */ "from_clause_opt ::= FROM table_reference_list",
/* 565 */ "table_reference_list ::= table_reference",
/* 566 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 567 */ "table_reference ::= table_primary",
/* 568 */ "table_reference ::= joined_table",
/* 569 */ "table_primary ::= table_name alias_opt",
/* 570 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 571 */ "table_primary ::= subquery alias_opt",
/* 572 */ "table_primary ::= parenthesized_joined_table",
/* 573 */ "alias_opt ::=",
/* 574 */ "alias_opt ::= table_alias",
/* 575 */ "alias_opt ::= AS table_alias",
/* 576 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 577 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 578 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
/* 579 */ "join_type ::=",
/* 580 */ "join_type ::= INNER",
/* 581 */ "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",
/* 582 */ "hint_list ::=",
/* 583 */ "hint_list ::= NK_HINT",
/* 584 */ "tag_mode_opt ::=",
/* 585 */ "tag_mode_opt ::= TAGS",
/* 586 */ "set_quantifier_opt ::=",
/* 587 */ "set_quantifier_opt ::= DISTINCT",
/* 588 */ "set_quantifier_opt ::= ALL",
/* 589 */ "select_list ::= select_item",
/* 590 */ "select_list ::= select_list NK_COMMA select_item",
/* 591 */ "select_item ::= NK_STAR",
/* 592 */ "select_item ::= common_expression",
/* 593 */ "select_item ::= common_expression column_alias",
/* 594 */ "select_item ::= common_expression AS column_alias",
/* 595 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 596 */ "where_clause_opt ::=",
/* 597 */ "where_clause_opt ::= WHERE search_condition",
/* 598 */ "partition_by_clause_opt ::=",
/* 599 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
/* 600 */ "partition_list ::= partition_item",
/* 601 */ "partition_list ::= partition_list NK_COMMA partition_item",
/* 602 */ "partition_item ::= expr_or_subquery",
/* 603 */ "partition_item ::= expr_or_subquery column_alias",
/* 604 */ "partition_item ::= expr_or_subquery AS column_alias",
/* 605 */ "twindow_clause_opt ::=",
/* 606 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
/* 607 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
/* 608 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 609 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 610 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
/* 611 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP",
/* 612 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 613 */ "sliding_opt ::=",
/* 614 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
/* 615 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
/* 616 */ "interval_sliding_duration_literal ::= NK_STRING",
/* 617 */ "interval_sliding_duration_literal ::= NK_INTEGER",
/* 618 */ "fill_opt ::=",
/* 619 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 620 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
/* 621 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
/* 622 */ "fill_mode ::= NONE",
/* 623 */ "fill_mode ::= PREV",
/* 624 */ "fill_mode ::= NULL",
/* 625 */ "fill_mode ::= NULL_F",
/* 626 */ "fill_mode ::= LINEAR",
/* 627 */ "fill_mode ::= NEXT",
/* 628 */ "group_by_clause_opt ::=",
/* 629 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 630 */ "group_by_list ::= expr_or_subquery",
/* 631 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
/* 632 */ "having_clause_opt ::=",
/* 633 */ "having_clause_opt ::= HAVING search_condition",
/* 634 */ "range_opt ::=",
/* 635 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
/* 636 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
/* 637 */ "every_opt ::=",
/* 638 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
/* 639 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 640 */ "query_simple ::= query_specification",
/* 641 */ "query_simple ::= union_query_expression",
/* 642 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
/* 643 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
/* 644 */ "query_simple_or_subquery ::= query_simple",
/* 645 */ "query_simple_or_subquery ::= subquery",
/* 646 */ "query_or_subquery ::= query_expression",
/* 647 */ "query_or_subquery ::= subquery",
/* 648 */ "order_by_clause_opt ::=",
/* 649 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 650 */ "slimit_clause_opt ::=",
/* 651 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 652 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 653 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 654 */ "limit_clause_opt ::=",
/* 655 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 656 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 657 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 658 */ "subquery ::= NK_LP query_expression NK_RP",
/* 659 */ "subquery ::= NK_LP subquery NK_RP",
/* 660 */ "search_condition ::= common_expression",
/* 661 */ "sort_specification_list ::= sort_specification",
/* 662 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 663 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
/* 664 */ "ordering_specification_opt ::=",
/* 665 */ "ordering_specification_opt ::= ASC",
/* 666 */ "ordering_specification_opt ::= DESC",
/* 667 */ "null_ordering_opt ::=",
/* 668 */ "null_ordering_opt ::= NULLS FIRST",
/* 669 */ "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-03-13 07:12:21 +00:00
case 353: /* cmd */
case 356: /* literal */
case 365: /* with_opt */
case 371: /* search_condition */
case 376: /* db_options */
case 378: /* alter_db_options */
case 380: /* start_opt */
case 381: /* end_opt */
case 385: /* signed */
case 387: /* retention */
case 388: /* full_table_name */
case 391: /* table_options */
case 395: /* alter_table_clause */
case 396: /* alter_table_options */
case 399: /* tags_literal */
case 400: /* create_subtable_clause */
case 403: /* drop_table_clause */
case 405: /* column_def */
case 409: /* duration_literal */
case 410: /* rollup_func_name */
case 412: /* col_name */
case 415: /* like_pattern_opt */
case 416: /* db_name_cond_opt */
case 417: /* table_name_cond */
case 418: /* from_db_opt */
case 421: /* tag_item */
case 423: /* index_options */
case 424: /* full_index_name */
case 427: /* sliding_opt */
case 428: /* sma_stream_opt */
case 429: /* func */
case 433: /* query_or_subquery */
case 434: /* where_clause_opt */
case 437: /* explain_options */
case 438: /* insert_query */
case 443: /* full_view_name */
case 446: /* stream_options */
case 449: /* subtable_opt */
case 451: /* expression */
case 454: /* literal_func */
case 455: /* signed_literal */
case 458: /* expr_or_subquery */
case 459: /* pseudo_column */
case 460: /* column_reference */
case 461: /* function_expression */
case 462: /* case_when_expression */
case 467: /* star_func_para */
case 469: /* case_when_else_opt */
case 470: /* common_expression */
case 471: /* when_then_expr */
case 472: /* predicate */
case 475: /* in_predicate_value */
case 476: /* boolean_value_expression */
case 477: /* boolean_primary */
case 478: /* from_clause_opt */
case 479: /* table_reference_list */
case 480: /* table_reference */
case 481: /* table_primary */
case 482: /* joined_table */
case 484: /* subquery */
case 485: /* parenthesized_joined_table */
case 487: /* query_specification */
case 493: /* range_opt */
case 494: /* every_opt */
case 495: /* fill_opt */
case 496: /* twindow_clause_opt */
case 498: /* having_clause_opt */
case 499: /* select_item */
case 501: /* partition_item */
case 502: /* interval_sliding_duration_literal */
case 505: /* query_expression */
case 506: /* query_simple */
case 508: /* slimit_clause_opt */
case 509: /* limit_clause_opt */
case 510: /* union_query_expression */
case 511: /* query_simple_or_subquery */
case 513: /* sort_specification */
2022-06-22 08:35:14 +00:00
{
2024-03-13 07:12:21 +00:00
nodesDestroyNode((yypminor->yy656));
2022-06-22 08:35:14 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 354: /* account_options */
case 355: /* alter_account_options */
case 357: /* alter_account_option */
case 379: /* speed_opt */
case 432: /* with_meta */
case 441: /* bufsize_opt */
{
2022-06-22 08:35:14 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 358: /* ip_range_list */
case 359: /* white_list */
case 360: /* white_list_opt */
case 382: /* integer_list */
case 383: /* variable_list */
case 384: /* retention_list */
case 389: /* column_def_list */
case 390: /* tags_def_opt */
case 392: /* multi_create_clause */
case 393: /* tags_def */
case 394: /* multi_drop_clause */
case 401: /* specific_cols_opt */
case 402: /* tags_literal_list */
case 404: /* col_name_list */
case 406: /* duration_list */
case 407: /* rollup_func_list */
case 419: /* tag_list_opt */
case 426: /* func_list */
case 431: /* expression_list */
case 447: /* col_list_opt */
case 448: /* tag_def_or_ref_opt */
case 453: /* dnode_list */
case 456: /* literal_list */
case 464: /* star_func_para_list */
case 466: /* other_para_list */
case 468: /* when_then_list */
case 488: /* hint_list */
case 491: /* select_list */
case 492: /* partition_by_clause_opt */
case 497: /* group_by_clause_opt */
case 500: /* partition_list */
case 504: /* group_by_list */
case 507: /* order_by_clause_opt */
case 512: /* sort_specification_list */
{
2024-03-13 07:12:21 +00:00
nodesDestroyList((yypminor->yy136));
}
break;
2024-03-13 07:12:21 +00:00
case 361: /* user_name */
case 368: /* db_name */
case 369: /* table_name */
case 370: /* topic_name */
case 372: /* dnode_endpoint */
case 397: /* column_name */
case 411: /* function_name */
case 422: /* column_alias */
case 425: /* index_name */
case 430: /* sma_func_name */
case 435: /* cgroup_name */
case 442: /* language_opt */
case 444: /* view_name */
case 445: /* stream_name */
case 452: /* on_vgroup_id */
case 457: /* table_alias */
case 463: /* star_func */
case 465: /* noarg_func */
case 483: /* alias_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 362: /* sysinfo_opt */
2023-03-28 10:43:58 +00:00
{
}
break;
2024-03-13 07:12:21 +00:00
case 363: /* privileges */
case 366: /* priv_type_list */
case 367: /* priv_type */
{
}
break;
2024-03-13 07:12:21 +00:00
case 364: /* priv_level */
{
}
break;
2024-03-13 07:12:21 +00:00
case 373: /* force_opt */
case 374: /* unsafe_opt */
case 375: /* not_exists_opt */
case 377: /* exists_opt */
case 436: /* analyze_opt */
case 439: /* or_replace_opt */
case 440: /* agg_func_opt */
case 450: /* ignore_opt */
case 489: /* set_quantifier_opt */
case 490: /* tag_mode_opt */
{
2023-08-24 07:54:10 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 386: /* alter_db_option */
case 408: /* alter_table_option */
{
2022-03-31 11:38:17 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 398: /* type_name */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 413: /* db_kind_opt */
case 420: /* table_kind */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 414: /* table_kind_db_name_cond_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 473: /* compare_op */
case 474: /* in_op */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 486: /* join_type */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 503: /* fill_mode */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 514: /* ordering_specification_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
2024-03-13 07:12:21 +00:00
case 515: /* 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-10 14:14:57 +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-03-13 07:12:21 +00:00
353, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
353, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
354, /* (2) account_options ::= */
354, /* (3) account_options ::= account_options PPS literal */
354, /* (4) account_options ::= account_options TSERIES literal */
354, /* (5) account_options ::= account_options STORAGE literal */
354, /* (6) account_options ::= account_options STREAMS literal */
354, /* (7) account_options ::= account_options QTIME literal */
354, /* (8) account_options ::= account_options DBS literal */
354, /* (9) account_options ::= account_options USERS literal */
354, /* (10) account_options ::= account_options CONNS literal */
354, /* (11) account_options ::= account_options STATE literal */
355, /* (12) alter_account_options ::= alter_account_option */
355, /* (13) alter_account_options ::= alter_account_options alter_account_option */
357, /* (14) alter_account_option ::= PASS literal */
357, /* (15) alter_account_option ::= PPS literal */
357, /* (16) alter_account_option ::= TSERIES literal */
357, /* (17) alter_account_option ::= STORAGE literal */
357, /* (18) alter_account_option ::= STREAMS literal */
357, /* (19) alter_account_option ::= QTIME literal */
357, /* (20) alter_account_option ::= DBS literal */
357, /* (21) alter_account_option ::= USERS literal */
357, /* (22) alter_account_option ::= CONNS literal */
357, /* (23) alter_account_option ::= STATE literal */
358, /* (24) ip_range_list ::= NK_STRING */
358, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
359, /* (26) white_list ::= HOST ip_range_list */
360, /* (27) white_list_opt ::= */
360, /* (28) white_list_opt ::= white_list */
353, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
353, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
353, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
353, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
353, /* (33) cmd ::= ALTER USER user_name ADD white_list */
353, /* (34) cmd ::= ALTER USER user_name DROP white_list */
353, /* (35) cmd ::= DROP USER user_name */
362, /* (36) sysinfo_opt ::= */
362, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
353, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
353, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
363, /* (40) privileges ::= ALL */
363, /* (41) privileges ::= priv_type_list */
363, /* (42) privileges ::= SUBSCRIBE */
366, /* (43) priv_type_list ::= priv_type */
366, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
367, /* (45) priv_type ::= READ */
367, /* (46) priv_type ::= WRITE */
367, /* (47) priv_type ::= ALTER */
364, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
364, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
364, /* (50) priv_level ::= db_name NK_DOT table_name */
364, /* (51) priv_level ::= topic_name */
365, /* (52) with_opt ::= */
365, /* (53) with_opt ::= WITH search_condition */
353, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
353, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
353, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
353, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
353, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
353, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
353, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
353, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
353, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
353, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
353, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
372, /* (65) dnode_endpoint ::= NK_STRING */
372, /* (66) dnode_endpoint ::= NK_ID */
372, /* (67) dnode_endpoint ::= NK_IPTOKEN */
373, /* (68) force_opt ::= */
373, /* (69) force_opt ::= FORCE */
374, /* (70) unsafe_opt ::= UNSAFE */
353, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
353, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
353, /* (73) cmd ::= ALTER LOCAL NK_STRING */
353, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
353, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
353, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
353, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
353, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
353, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
353, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
353, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
353, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
353, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
353, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
353, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
353, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
353, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
353, /* (88) cmd ::= USE db_name */
353, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
353, /* (90) cmd ::= FLUSH DATABASE db_name */
353, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
353, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
375, /* (93) not_exists_opt ::= IF NOT EXISTS */
375, /* (94) not_exists_opt ::= */
377, /* (95) exists_opt ::= IF EXISTS */
377, /* (96) exists_opt ::= */
376, /* (97) db_options ::= */
376, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
376, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
376, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
376, /* (101) db_options ::= db_options COMP NK_INTEGER */
376, /* (102) db_options ::= db_options DURATION NK_INTEGER */
376, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
376, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
376, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
376, /* (106) db_options ::= db_options KEEP integer_list */
376, /* (107) db_options ::= db_options KEEP variable_list */
376, /* (108) db_options ::= db_options PAGES NK_INTEGER */
376, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
376, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
376, /* (111) db_options ::= db_options PRECISION NK_STRING */
376, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
376, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
376, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
376, /* (115) db_options ::= db_options RETENTIONS retention_list */
376, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
376, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
376, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
376, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
376, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
376, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
376, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
376, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
376, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
376, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
376, /* (126) db_options ::= db_options TABLE_PREFIX signed */
376, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
376, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
378, /* (129) alter_db_options ::= alter_db_option */
378, /* (130) alter_db_options ::= alter_db_options alter_db_option */
386, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
386, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
386, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
386, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
386, /* (135) alter_db_option ::= KEEP integer_list */
386, /* (136) alter_db_option ::= KEEP variable_list */
386, /* (137) alter_db_option ::= PAGES NK_INTEGER */
386, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
386, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
386, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
386, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
386, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
386, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
386, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
386, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
386, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
382, /* (147) integer_list ::= NK_INTEGER */
382, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
383, /* (149) variable_list ::= NK_VARIABLE */
383, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
384, /* (151) retention_list ::= retention */
384, /* (152) retention_list ::= retention_list NK_COMMA retention */
387, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
387, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
379, /* (155) speed_opt ::= */
379, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
380, /* (157) start_opt ::= */
380, /* (158) start_opt ::= START WITH NK_INTEGER */
380, /* (159) start_opt ::= START WITH NK_STRING */
380, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
381, /* (161) end_opt ::= */
381, /* (162) end_opt ::= END WITH NK_INTEGER */
381, /* (163) end_opt ::= END WITH NK_STRING */
381, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
353, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
353, /* (166) cmd ::= CREATE TABLE multi_create_clause */
353, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
353, /* (168) cmd ::= DROP TABLE multi_drop_clause */
353, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
353, /* (170) cmd ::= ALTER TABLE alter_table_clause */
353, /* (171) cmd ::= ALTER STABLE alter_table_clause */
395, /* (172) alter_table_clause ::= full_table_name alter_table_options */
395, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
395, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
395, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
395, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
395, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
395, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
395, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
395, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
395, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
392, /* (182) multi_create_clause ::= create_subtable_clause */
392, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
400, /* (184) 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 */
394, /* (185) multi_drop_clause ::= drop_table_clause */
394, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
403, /* (187) drop_table_clause ::= exists_opt full_table_name */
401, /* (188) specific_cols_opt ::= */
401, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
388, /* (190) full_table_name ::= table_name */
388, /* (191) full_table_name ::= db_name NK_DOT table_name */
389, /* (192) column_def_list ::= column_def */
389, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
405, /* (194) column_def ::= column_name type_name */
398, /* (195) type_name ::= BOOL */
398, /* (196) type_name ::= TINYINT */
398, /* (197) type_name ::= SMALLINT */
398, /* (198) type_name ::= INT */
398, /* (199) type_name ::= INTEGER */
398, /* (200) type_name ::= BIGINT */
398, /* (201) type_name ::= FLOAT */
398, /* (202) type_name ::= DOUBLE */
398, /* (203) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
398, /* (204) type_name ::= TIMESTAMP */
398, /* (205) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
398, /* (206) type_name ::= TINYINT UNSIGNED */
398, /* (207) type_name ::= SMALLINT UNSIGNED */
398, /* (208) type_name ::= INT UNSIGNED */
398, /* (209) type_name ::= BIGINT UNSIGNED */
398, /* (210) type_name ::= JSON */
398, /* (211) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
398, /* (212) type_name ::= MEDIUMBLOB */
398, /* (213) type_name ::= BLOB */
398, /* (214) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
398, /* (215) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
398, /* (216) type_name ::= DECIMAL */
398, /* (217) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
398, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
390, /* (219) tags_def_opt ::= */
390, /* (220) tags_def_opt ::= tags_def */
393, /* (221) tags_def ::= TAGS NK_LP column_def_list NK_RP */
391, /* (222) table_options ::= */
391, /* (223) table_options ::= table_options COMMENT NK_STRING */
391, /* (224) table_options ::= table_options MAX_DELAY duration_list */
391, /* (225) table_options ::= table_options WATERMARK duration_list */
391, /* (226) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
391, /* (227) table_options ::= table_options TTL NK_INTEGER */
391, /* (228) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
391, /* (229) table_options ::= table_options DELETE_MARK duration_list */
396, /* (230) alter_table_options ::= alter_table_option */
396, /* (231) alter_table_options ::= alter_table_options alter_table_option */
408, /* (232) alter_table_option ::= COMMENT NK_STRING */
408, /* (233) alter_table_option ::= TTL NK_INTEGER */
406, /* (234) duration_list ::= duration_literal */
406, /* (235) duration_list ::= duration_list NK_COMMA duration_literal */
407, /* (236) rollup_func_list ::= rollup_func_name */
407, /* (237) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
410, /* (238) rollup_func_name ::= function_name */
410, /* (239) rollup_func_name ::= FIRST */
410, /* (240) rollup_func_name ::= LAST */
404, /* (241) col_name_list ::= col_name */
404, /* (242) col_name_list ::= col_name_list NK_COMMA col_name */
412, /* (243) col_name ::= column_name */
353, /* (244) cmd ::= SHOW DNODES */
353, /* (245) cmd ::= SHOW USERS */
353, /* (246) cmd ::= SHOW USER PRIVILEGES */
353, /* (247) cmd ::= SHOW db_kind_opt DATABASES */
353, /* (248) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
353, /* (249) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
353, /* (250) cmd ::= SHOW db_name_cond_opt VGROUPS */
353, /* (251) cmd ::= SHOW MNODES */
353, /* (252) cmd ::= SHOW QNODES */
353, /* (253) cmd ::= SHOW FUNCTIONS */
353, /* (254) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
353, /* (255) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
353, /* (256) cmd ::= SHOW STREAMS */
353, /* (257) cmd ::= SHOW ACCOUNTS */
353, /* (258) cmd ::= SHOW APPS */
353, /* (259) cmd ::= SHOW CONNECTIONS */
353, /* (260) cmd ::= SHOW LICENCES */
353, /* (261) cmd ::= SHOW GRANTS */
353, /* (262) cmd ::= SHOW GRANTS FULL */
353, /* (263) cmd ::= SHOW GRANTS LOGS */
353, /* (264) cmd ::= SHOW CLUSTER MACHINES */
353, /* (265) cmd ::= SHOW CREATE DATABASE db_name */
353, /* (266) cmd ::= SHOW CREATE TABLE full_table_name */
353, /* (267) cmd ::= SHOW CREATE STABLE full_table_name */
353, /* (268) cmd ::= SHOW QUERIES */
353, /* (269) cmd ::= SHOW SCORES */
353, /* (270) cmd ::= SHOW TOPICS */
353, /* (271) cmd ::= SHOW VARIABLES */
353, /* (272) cmd ::= SHOW CLUSTER VARIABLES */
353, /* (273) cmd ::= SHOW LOCAL VARIABLES */
353, /* (274) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
353, /* (275) cmd ::= SHOW BNODES */
353, /* (276) cmd ::= SHOW SNODES */
353, /* (277) cmd ::= SHOW CLUSTER */
353, /* (278) cmd ::= SHOW TRANSACTIONS */
353, /* (279) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
353, /* (280) cmd ::= SHOW CONSUMERS */
353, /* (281) cmd ::= SHOW SUBSCRIPTIONS */
353, /* (282) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
353, /* (283) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
353, /* (284) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
353, /* (285) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
353, /* (286) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
353, /* (287) cmd ::= SHOW VNODES */
353, /* (288) cmd ::= SHOW db_name_cond_opt ALIVE */
353, /* (289) cmd ::= SHOW CLUSTER ALIVE */
353, /* (290) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
353, /* (291) cmd ::= SHOW CREATE VIEW full_table_name */
353, /* (292) cmd ::= SHOW COMPACTS */
353, /* (293) cmd ::= SHOW COMPACT NK_INTEGER */
414, /* (294) table_kind_db_name_cond_opt ::= */
414, /* (295) table_kind_db_name_cond_opt ::= table_kind */
414, /* (296) table_kind_db_name_cond_opt ::= db_name NK_DOT */
414, /* (297) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
420, /* (298) table_kind ::= NORMAL */
420, /* (299) table_kind ::= CHILD */
416, /* (300) db_name_cond_opt ::= */
416, /* (301) db_name_cond_opt ::= db_name NK_DOT */
415, /* (302) like_pattern_opt ::= */
415, /* (303) like_pattern_opt ::= LIKE NK_STRING */
417, /* (304) table_name_cond ::= table_name */
418, /* (305) from_db_opt ::= */
418, /* (306) from_db_opt ::= FROM db_name */
419, /* (307) tag_list_opt ::= */
419, /* (308) tag_list_opt ::= tag_item */
419, /* (309) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
421, /* (310) tag_item ::= TBNAME */
421, /* (311) tag_item ::= QTAGS */
421, /* (312) tag_item ::= column_name */
421, /* (313) tag_item ::= column_name column_alias */
421, /* (314) tag_item ::= column_name AS column_alias */
413, /* (315) db_kind_opt ::= */
413, /* (316) db_kind_opt ::= USER */
413, /* (317) db_kind_opt ::= SYSTEM */
353, /* (318) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
353, /* (319) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
353, /* (320) cmd ::= DROP INDEX exists_opt full_index_name */
424, /* (321) full_index_name ::= index_name */
424, /* (322) full_index_name ::= db_name NK_DOT index_name */
423, /* (323) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
423, /* (324) 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 */
426, /* (325) func_list ::= func */
426, /* (326) func_list ::= func_list NK_COMMA func */
429, /* (327) func ::= sma_func_name NK_LP expression_list NK_RP */
430, /* (328) sma_func_name ::= function_name */
430, /* (329) sma_func_name ::= COUNT */
430, /* (330) sma_func_name ::= FIRST */
430, /* (331) sma_func_name ::= LAST */
430, /* (332) sma_func_name ::= LAST_ROW */
428, /* (333) sma_stream_opt ::= */
428, /* (334) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
428, /* (335) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
428, /* (336) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
432, /* (337) with_meta ::= AS */
432, /* (338) with_meta ::= WITH META AS */
432, /* (339) with_meta ::= ONLY META AS */
353, /* (340) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
353, /* (341) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
353, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
353, /* (343) cmd ::= DROP TOPIC exists_opt topic_name */
353, /* (344) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
353, /* (345) cmd ::= DESC full_table_name */
353, /* (346) cmd ::= DESCRIBE full_table_name */
353, /* (347) cmd ::= RESET QUERY CACHE */
353, /* (348) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
353, /* (349) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
436, /* (350) analyze_opt ::= */
436, /* (351) analyze_opt ::= ANALYZE */
437, /* (352) explain_options ::= */
437, /* (353) explain_options ::= explain_options VERBOSE NK_BOOL */
437, /* (354) explain_options ::= explain_options RATIO NK_FLOAT */
353, /* (355) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
353, /* (356) cmd ::= DROP FUNCTION exists_opt function_name */
440, /* (357) agg_func_opt ::= */
440, /* (358) agg_func_opt ::= AGGREGATE */
441, /* (359) bufsize_opt ::= */
441, /* (360) bufsize_opt ::= BUFSIZE NK_INTEGER */
442, /* (361) language_opt ::= */
442, /* (362) language_opt ::= LANGUAGE NK_STRING */
439, /* (363) or_replace_opt ::= */
439, /* (364) or_replace_opt ::= OR REPLACE */
353, /* (365) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
353, /* (366) cmd ::= DROP VIEW exists_opt full_view_name */
443, /* (367) full_view_name ::= view_name */
443, /* (368) full_view_name ::= db_name NK_DOT view_name */
353, /* (369) 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 */
353, /* (370) cmd ::= DROP STREAM exists_opt stream_name */
353, /* (371) cmd ::= PAUSE STREAM exists_opt stream_name */
353, /* (372) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
447, /* (373) col_list_opt ::= */
447, /* (374) col_list_opt ::= NK_LP col_name_list NK_RP */
448, /* (375) tag_def_or_ref_opt ::= */
448, /* (376) tag_def_or_ref_opt ::= tags_def */
448, /* (377) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
446, /* (378) stream_options ::= */
446, /* (379) stream_options ::= stream_options TRIGGER AT_ONCE */
446, /* (380) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
446, /* (381) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
446, /* (382) stream_options ::= stream_options WATERMARK duration_literal */
446, /* (383) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
446, /* (384) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
446, /* (385) stream_options ::= stream_options DELETE_MARK duration_literal */
446, /* (386) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
449, /* (387) subtable_opt ::= */
449, /* (388) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
450, /* (389) ignore_opt ::= */
450, /* (390) ignore_opt ::= IGNORE UNTREATED */
353, /* (391) cmd ::= KILL CONNECTION NK_INTEGER */
353, /* (392) cmd ::= KILL QUERY NK_STRING */
353, /* (393) cmd ::= KILL TRANSACTION NK_INTEGER */
353, /* (394) cmd ::= KILL COMPACT NK_INTEGER */
353, /* (395) cmd ::= BALANCE VGROUP */
353, /* (396) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
353, /* (397) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
353, /* (398) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
353, /* (399) cmd ::= SPLIT VGROUP NK_INTEGER */
452, /* (400) on_vgroup_id ::= */
452, /* (401) on_vgroup_id ::= ON NK_INTEGER */
453, /* (402) dnode_list ::= DNODE NK_INTEGER */
453, /* (403) dnode_list ::= dnode_list DNODE NK_INTEGER */
353, /* (404) cmd ::= DELETE FROM full_table_name where_clause_opt */
353, /* (405) cmd ::= query_or_subquery */
353, /* (406) cmd ::= insert_query */
438, /* (407) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
438, /* (408) insert_query ::= INSERT INTO full_table_name query_or_subquery */
399, /* (409) tags_literal ::= NK_INTEGER */
399, /* (410) tags_literal ::= NK_PLUS NK_INTEGER */
399, /* (411) tags_literal ::= NK_MINUS NK_INTEGER */
399, /* (412) tags_literal ::= NK_FLOAT */
399, /* (413) tags_literal ::= NK_PLUS NK_FLOAT */
399, /* (414) tags_literal ::= NK_MINUS NK_FLOAT */
399, /* (415) tags_literal ::= NK_BIN */
399, /* (416) tags_literal ::= NK_PLUS NK_BIN */
399, /* (417) tags_literal ::= NK_MINUS NK_BIN */
399, /* (418) tags_literal ::= NK_HEX */
399, /* (419) tags_literal ::= NK_PLUS NK_HEX */
399, /* (420) tags_literal ::= NK_MINUS NK_HEX */
399, /* (421) tags_literal ::= NK_STRING */
399, /* (422) tags_literal ::= NK_BOOL */
399, /* (423) tags_literal ::= NULL */
399, /* (424) tags_literal ::= literal_func */
399, /* (425) tags_literal ::= literal_func NK_PLUS duration_literal */
399, /* (426) tags_literal ::= literal_func NK_MINUS duration_literal */
402, /* (427) tags_literal_list ::= tags_literal */
402, /* (428) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
356, /* (429) literal ::= NK_INTEGER */
356, /* (430) literal ::= NK_FLOAT */
356, /* (431) literal ::= NK_STRING */
356, /* (432) literal ::= NK_BOOL */
356, /* (433) literal ::= TIMESTAMP NK_STRING */
356, /* (434) literal ::= duration_literal */
356, /* (435) literal ::= NULL */
356, /* (436) literal ::= NK_QUESTION */
409, /* (437) duration_literal ::= NK_VARIABLE */
385, /* (438) signed ::= NK_INTEGER */
385, /* (439) signed ::= NK_PLUS NK_INTEGER */
385, /* (440) signed ::= NK_MINUS NK_INTEGER */
385, /* (441) signed ::= NK_FLOAT */
385, /* (442) signed ::= NK_PLUS NK_FLOAT */
385, /* (443) signed ::= NK_MINUS NK_FLOAT */
455, /* (444) signed_literal ::= signed */
455, /* (445) signed_literal ::= NK_STRING */
455, /* (446) signed_literal ::= NK_BOOL */
455, /* (447) signed_literal ::= TIMESTAMP NK_STRING */
455, /* (448) signed_literal ::= duration_literal */
455, /* (449) signed_literal ::= NULL */
455, /* (450) signed_literal ::= literal_func */
455, /* (451) signed_literal ::= NK_QUESTION */
456, /* (452) literal_list ::= signed_literal */
456, /* (453) literal_list ::= literal_list NK_COMMA signed_literal */
368, /* (454) db_name ::= NK_ID */
369, /* (455) table_name ::= NK_ID */
397, /* (456) column_name ::= NK_ID */
411, /* (457) function_name ::= NK_ID */
444, /* (458) view_name ::= NK_ID */
457, /* (459) table_alias ::= NK_ID */
422, /* (460) column_alias ::= NK_ID */
422, /* (461) column_alias ::= NK_ALIAS */
361, /* (462) user_name ::= NK_ID */
370, /* (463) topic_name ::= NK_ID */
445, /* (464) stream_name ::= NK_ID */
435, /* (465) cgroup_name ::= NK_ID */
425, /* (466) index_name ::= NK_ID */
458, /* (467) expr_or_subquery ::= expression */
451, /* (468) expression ::= literal */
451, /* (469) expression ::= pseudo_column */
451, /* (470) expression ::= column_reference */
451, /* (471) expression ::= function_expression */
451, /* (472) expression ::= case_when_expression */
451, /* (473) expression ::= NK_LP expression NK_RP */
451, /* (474) expression ::= NK_PLUS expr_or_subquery */
451, /* (475) expression ::= NK_MINUS expr_or_subquery */
451, /* (476) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
451, /* (477) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
451, /* (478) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
451, /* (479) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
451, /* (480) expression ::= expr_or_subquery NK_REM expr_or_subquery */
451, /* (481) expression ::= column_reference NK_ARROW NK_STRING */
451, /* (482) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
451, /* (483) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
431, /* (484) expression_list ::= expr_or_subquery */
431, /* (485) expression_list ::= expression_list NK_COMMA expr_or_subquery */
460, /* (486) column_reference ::= column_name */
460, /* (487) column_reference ::= table_name NK_DOT column_name */
460, /* (488) column_reference ::= NK_ALIAS */
460, /* (489) column_reference ::= table_name NK_DOT NK_ALIAS */
459, /* (490) pseudo_column ::= ROWTS */
459, /* (491) pseudo_column ::= TBNAME */
459, /* (492) pseudo_column ::= table_name NK_DOT TBNAME */
459, /* (493) pseudo_column ::= QSTART */
459, /* (494) pseudo_column ::= QEND */
459, /* (495) pseudo_column ::= QDURATION */
459, /* (496) pseudo_column ::= WSTART */
459, /* (497) pseudo_column ::= WEND */
459, /* (498) pseudo_column ::= WDURATION */
459, /* (499) pseudo_column ::= IROWTS */
459, /* (500) pseudo_column ::= ISFILLED */
459, /* (501) pseudo_column ::= QTAGS */
461, /* (502) function_expression ::= function_name NK_LP expression_list NK_RP */
461, /* (503) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
461, /* (504) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
461, /* (505) function_expression ::= literal_func */
454, /* (506) literal_func ::= noarg_func NK_LP NK_RP */
454, /* (507) literal_func ::= NOW */
454, /* (508) literal_func ::= TODAY */
465, /* (509) noarg_func ::= NOW */
465, /* (510) noarg_func ::= TODAY */
465, /* (511) noarg_func ::= TIMEZONE */
465, /* (512) noarg_func ::= DATABASE */
465, /* (513) noarg_func ::= CLIENT_VERSION */
465, /* (514) noarg_func ::= SERVER_VERSION */
465, /* (515) noarg_func ::= SERVER_STATUS */
465, /* (516) noarg_func ::= CURRENT_USER */
465, /* (517) noarg_func ::= USER */
463, /* (518) star_func ::= COUNT */
463, /* (519) star_func ::= FIRST */
463, /* (520) star_func ::= LAST */
463, /* (521) star_func ::= LAST_ROW */
464, /* (522) star_func_para_list ::= NK_STAR */
464, /* (523) star_func_para_list ::= other_para_list */
466, /* (524) other_para_list ::= star_func_para */
466, /* (525) other_para_list ::= other_para_list NK_COMMA star_func_para */
467, /* (526) star_func_para ::= expr_or_subquery */
467, /* (527) star_func_para ::= table_name NK_DOT NK_STAR */
462, /* (528) case_when_expression ::= CASE when_then_list case_when_else_opt END */
462, /* (529) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
468, /* (530) when_then_list ::= when_then_expr */
468, /* (531) when_then_list ::= when_then_list when_then_expr */
471, /* (532) when_then_expr ::= WHEN common_expression THEN common_expression */
469, /* (533) case_when_else_opt ::= */
469, /* (534) case_when_else_opt ::= ELSE common_expression */
472, /* (535) predicate ::= expr_or_subquery compare_op expr_or_subquery */
472, /* (536) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
472, /* (537) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
472, /* (538) predicate ::= expr_or_subquery IS NULL */
472, /* (539) predicate ::= expr_or_subquery IS NOT NULL */
472, /* (540) predicate ::= expr_or_subquery in_op in_predicate_value */
473, /* (541) compare_op ::= NK_LT */
473, /* (542) compare_op ::= NK_GT */
473, /* (543) compare_op ::= NK_LE */
473, /* (544) compare_op ::= NK_GE */
473, /* (545) compare_op ::= NK_NE */
473, /* (546) compare_op ::= NK_EQ */
473, /* (547) compare_op ::= LIKE */
473, /* (548) compare_op ::= NOT LIKE */
473, /* (549) compare_op ::= MATCH */
473, /* (550) compare_op ::= NMATCH */
473, /* (551) compare_op ::= CONTAINS */
474, /* (552) in_op ::= IN */
474, /* (553) in_op ::= NOT IN */
475, /* (554) in_predicate_value ::= NK_LP literal_list NK_RP */
476, /* (555) boolean_value_expression ::= boolean_primary */
476, /* (556) boolean_value_expression ::= NOT boolean_primary */
476, /* (557) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
476, /* (558) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
477, /* (559) boolean_primary ::= predicate */
477, /* (560) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
470, /* (561) common_expression ::= expr_or_subquery */
470, /* (562) common_expression ::= boolean_value_expression */
478, /* (563) from_clause_opt ::= */
478, /* (564) from_clause_opt ::= FROM table_reference_list */
479, /* (565) table_reference_list ::= table_reference */
479, /* (566) table_reference_list ::= table_reference_list NK_COMMA table_reference */
480, /* (567) table_reference ::= table_primary */
480, /* (568) table_reference ::= joined_table */
481, /* (569) table_primary ::= table_name alias_opt */
481, /* (570) table_primary ::= db_name NK_DOT table_name alias_opt */
481, /* (571) table_primary ::= subquery alias_opt */
481, /* (572) table_primary ::= parenthesized_joined_table */
483, /* (573) alias_opt ::= */
483, /* (574) alias_opt ::= table_alias */
483, /* (575) alias_opt ::= AS table_alias */
485, /* (576) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
485, /* (577) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
482, /* (578) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
486, /* (579) join_type ::= */
486, /* (580) join_type ::= INNER */
487, /* (581) 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 */
488, /* (582) hint_list ::= */
488, /* (583) hint_list ::= NK_HINT */
490, /* (584) tag_mode_opt ::= */
490, /* (585) tag_mode_opt ::= TAGS */
489, /* (586) set_quantifier_opt ::= */
489, /* (587) set_quantifier_opt ::= DISTINCT */
489, /* (588) set_quantifier_opt ::= ALL */
491, /* (589) select_list ::= select_item */
491, /* (590) select_list ::= select_list NK_COMMA select_item */
499, /* (591) select_item ::= NK_STAR */
499, /* (592) select_item ::= common_expression */
499, /* (593) select_item ::= common_expression column_alias */
499, /* (594) select_item ::= common_expression AS column_alias */
499, /* (595) select_item ::= table_name NK_DOT NK_STAR */
434, /* (596) where_clause_opt ::= */
434, /* (597) where_clause_opt ::= WHERE search_condition */
492, /* (598) partition_by_clause_opt ::= */
492, /* (599) partition_by_clause_opt ::= PARTITION BY partition_list */
500, /* (600) partition_list ::= partition_item */
500, /* (601) partition_list ::= partition_list NK_COMMA partition_item */
501, /* (602) partition_item ::= expr_or_subquery */
501, /* (603) partition_item ::= expr_or_subquery column_alias */
501, /* (604) partition_item ::= expr_or_subquery AS column_alias */
496, /* (605) twindow_clause_opt ::= */
496, /* (606) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
496, /* (607) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
496, /* (608) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
496, /* (609) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
496, /* (610) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
496, /* (611) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
496, /* (612) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
427, /* (613) sliding_opt ::= */
427, /* (614) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
502, /* (615) interval_sliding_duration_literal ::= NK_VARIABLE */
502, /* (616) interval_sliding_duration_literal ::= NK_STRING */
502, /* (617) interval_sliding_duration_literal ::= NK_INTEGER */
495, /* (618) fill_opt ::= */
495, /* (619) fill_opt ::= FILL NK_LP fill_mode NK_RP */
495, /* (620) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
495, /* (621) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
503, /* (622) fill_mode ::= NONE */
503, /* (623) fill_mode ::= PREV */
503, /* (624) fill_mode ::= NULL */
503, /* (625) fill_mode ::= NULL_F */
503, /* (626) fill_mode ::= LINEAR */
503, /* (627) fill_mode ::= NEXT */
497, /* (628) group_by_clause_opt ::= */
497, /* (629) group_by_clause_opt ::= GROUP BY group_by_list */
504, /* (630) group_by_list ::= expr_or_subquery */
504, /* (631) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
498, /* (632) having_clause_opt ::= */
498, /* (633) having_clause_opt ::= HAVING search_condition */
493, /* (634) range_opt ::= */
493, /* (635) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
493, /* (636) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
494, /* (637) every_opt ::= */
494, /* (638) every_opt ::= EVERY NK_LP duration_literal NK_RP */
505, /* (639) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
506, /* (640) query_simple ::= query_specification */
506, /* (641) query_simple ::= union_query_expression */
510, /* (642) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
510, /* (643) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
511, /* (644) query_simple_or_subquery ::= query_simple */
511, /* (645) query_simple_or_subquery ::= subquery */
433, /* (646) query_or_subquery ::= query_expression */
433, /* (647) query_or_subquery ::= subquery */
507, /* (648) order_by_clause_opt ::= */
507, /* (649) order_by_clause_opt ::= ORDER BY sort_specification_list */
508, /* (650) slimit_clause_opt ::= */
508, /* (651) slimit_clause_opt ::= SLIMIT NK_INTEGER */
508, /* (652) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
508, /* (653) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
509, /* (654) limit_clause_opt ::= */
509, /* (655) limit_clause_opt ::= LIMIT NK_INTEGER */
509, /* (656) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
509, /* (657) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
484, /* (658) subquery ::= NK_LP query_expression NK_RP */
484, /* (659) subquery ::= NK_LP subquery NK_RP */
371, /* (660) search_condition ::= common_expression */
512, /* (661) sort_specification_list ::= sort_specification */
512, /* (662) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
513, /* (663) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
514, /* (664) ordering_specification_opt ::= */
514, /* (665) ordering_specification_opt ::= ASC */
514, /* (666) ordering_specification_opt ::= DESC */
515, /* (667) null_ordering_opt ::= */
515, /* (668) null_ordering_opt ::= NULLS FIRST */
515, /* (669) null_ordering_opt ::= NULLS LAST */
2023-05-09 11:19:14 +00:00
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static const signed char yyRuleInfoNRhs[] = {
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
0, /* (2) account_options ::= */
-3, /* (3) account_options ::= account_options PPS literal */
-3, /* (4) account_options ::= account_options TSERIES literal */
-3, /* (5) account_options ::= account_options STORAGE literal */
-3, /* (6) account_options ::= account_options STREAMS literal */
-3, /* (7) account_options ::= account_options QTIME literal */
-3, /* (8) account_options ::= account_options DBS literal */
-3, /* (9) account_options ::= account_options USERS literal */
-3, /* (10) account_options ::= account_options CONNS literal */
-3, /* (11) account_options ::= account_options STATE literal */
-1, /* (12) alter_account_options ::= alter_account_option */
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
-2, /* (14) alter_account_option ::= PASS literal */
-2, /* (15) alter_account_option ::= PPS literal */
-2, /* (16) alter_account_option ::= TSERIES literal */
-2, /* (17) alter_account_option ::= STORAGE literal */
-2, /* (18) alter_account_option ::= STREAMS literal */
-2, /* (19) alter_account_option ::= QTIME literal */
-2, /* (20) alter_account_option ::= DBS literal */
-2, /* (21) alter_account_option ::= USERS literal */
-2, /* (22) alter_account_option ::= CONNS literal */
-2, /* (23) alter_account_option ::= STATE literal */
2023-08-24 07:54:10 +00:00
-1, /* (24) ip_range_list ::= NK_STRING */
-3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
-2, /* (26) white_list ::= HOST ip_range_list */
0, /* (27) white_list_opt ::= */
-1, /* (28) white_list_opt ::= white_list */
-7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
-5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
-5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
-5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
-5, /* (33) cmd ::= ALTER USER user_name ADD white_list */
-5, /* (34) cmd ::= ALTER USER user_name DROP white_list */
-3, /* (35) cmd ::= DROP USER user_name */
0, /* (36) sysinfo_opt ::= */
-2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
-7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
-7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
-1, /* (40) privileges ::= ALL */
-1, /* (41) privileges ::= priv_type_list */
-1, /* (42) privileges ::= SUBSCRIBE */
-1, /* (43) priv_type_list ::= priv_type */
-3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
-1, /* (45) priv_type ::= READ */
-1, /* (46) priv_type ::= WRITE */
-1, /* (47) priv_type ::= ALTER */
-3, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
-3, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
-3, /* (50) priv_level ::= db_name NK_DOT table_name */
-1, /* (51) priv_level ::= topic_name */
0, /* (52) with_opt ::= */
-2, /* (53) with_opt ::= WITH search_condition */
-3, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
-5, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
-4, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
-4, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
-4, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
-4, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
-4, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
-5, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
-4, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
-5, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
-3, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
-1, /* (65) dnode_endpoint ::= NK_STRING */
-1, /* (66) dnode_endpoint ::= NK_ID */
-1, /* (67) dnode_endpoint ::= NK_IPTOKEN */
0, /* (68) force_opt ::= */
-1, /* (69) force_opt ::= FORCE */
-1, /* (70) unsafe_opt ::= UNSAFE */
2023-12-18 08:34:31 +00:00
-3, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
-4, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
-3, /* (73) cmd ::= ALTER LOCAL NK_STRING */
-4, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
-5, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
-5, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
-5, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
-5, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
-5, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
-5, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
-5, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
-5, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
-5, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
-5, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
-5, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
-5, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
-4, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
-2, /* (88) cmd ::= USE db_name */
-4, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
-3, /* (90) cmd ::= FLUSH DATABASE db_name */
-4, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
-5, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
-3, /* (93) not_exists_opt ::= IF NOT EXISTS */
0, /* (94) not_exists_opt ::= */
-2, /* (95) exists_opt ::= IF EXISTS */
0, /* (96) exists_opt ::= */
0, /* (97) db_options ::= */
-3, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
-3, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
-3, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
-3, /* (101) db_options ::= db_options COMP NK_INTEGER */
-3, /* (102) db_options ::= db_options DURATION NK_INTEGER */
-3, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
-3, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
-3, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
-3, /* (106) db_options ::= db_options KEEP integer_list */
-3, /* (107) db_options ::= db_options KEEP variable_list */
-3, /* (108) db_options ::= db_options PAGES NK_INTEGER */
-3, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
-3, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
-3, /* (111) db_options ::= db_options PRECISION NK_STRING */
-3, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
-3, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
-3, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
-3, /* (115) db_options ::= db_options RETENTIONS retention_list */
-3, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
-3, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
-3, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
-3, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
-4, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-3, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
-4, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-3, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
-3, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
-3, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
-3, /* (126) db_options ::= db_options TABLE_PREFIX signed */
-3, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
-3, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (129) alter_db_options ::= alter_db_option */
-2, /* (130) alter_db_options ::= alter_db_options alter_db_option */
-2, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
-2, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
-2, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
-2, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
-2, /* (135) alter_db_option ::= KEEP integer_list */
-2, /* (136) alter_db_option ::= KEEP variable_list */
-2, /* (137) alter_db_option ::= PAGES NK_INTEGER */
-2, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
-2, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
-2, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
-2, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
-2, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
-3, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-2, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
-3, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-2, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (147) integer_list ::= NK_INTEGER */
-3, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
-1, /* (149) variable_list ::= NK_VARIABLE */
-3, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
-1, /* (151) retention_list ::= retention */
-3, /* (152) retention_list ::= retention_list NK_COMMA retention */
-3, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
-3, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
0, /* (155) speed_opt ::= */
-2, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
0, /* (157) start_opt ::= */
-3, /* (158) start_opt ::= START WITH NK_INTEGER */
-3, /* (159) start_opt ::= START WITH NK_STRING */
-4, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
0, /* (161) end_opt ::= */
-3, /* (162) end_opt ::= END WITH NK_INTEGER */
-3, /* (163) end_opt ::= END WITH NK_STRING */
-4, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
-9, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
-3, /* (166) cmd ::= CREATE TABLE multi_create_clause */
-9, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
-3, /* (168) cmd ::= DROP TABLE multi_drop_clause */
-4, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
-3, /* (170) cmd ::= ALTER TABLE alter_table_clause */
-3, /* (171) cmd ::= ALTER STABLE alter_table_clause */
-2, /* (172) alter_table_clause ::= full_table_name alter_table_options */
-5, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
-4, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
-5, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
-5, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-5, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-4, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
-5, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-5, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
2024-03-10 14:14:57 +00:00
-6, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
2023-12-18 08:34:31 +00:00
-1, /* (182) multi_create_clause ::= create_subtable_clause */
-2, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
2024-03-10 14:14:57 +00:00
-10, /* (184) 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 */
2023-12-18 08:34:31 +00:00
-1, /* (185) multi_drop_clause ::= drop_table_clause */
-3, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
-2, /* (187) drop_table_clause ::= exists_opt full_table_name */
0, /* (188) specific_cols_opt ::= */
-3, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
-1, /* (190) full_table_name ::= table_name */
-3, /* (191) full_table_name ::= db_name NK_DOT table_name */
-1, /* (192) column_def_list ::= column_def */
-3, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
-2, /* (194) column_def ::= column_name type_name */
-1, /* (195) type_name ::= BOOL */
-1, /* (196) type_name ::= TINYINT */
-1, /* (197) type_name ::= SMALLINT */
-1, /* (198) type_name ::= INT */
-1, /* (199) type_name ::= INTEGER */
-1, /* (200) type_name ::= BIGINT */
-1, /* (201) type_name ::= FLOAT */
-1, /* (202) type_name ::= DOUBLE */
-4, /* (203) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-1, /* (204) type_name ::= TIMESTAMP */
-4, /* (205) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-2, /* (206) type_name ::= TINYINT UNSIGNED */
-2, /* (207) type_name ::= SMALLINT UNSIGNED */
-2, /* (208) type_name ::= INT UNSIGNED */
-2, /* (209) type_name ::= BIGINT UNSIGNED */
-1, /* (210) type_name ::= JSON */
-4, /* (211) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-1, /* (212) type_name ::= MEDIUMBLOB */
-1, /* (213) type_name ::= BLOB */
-4, /* (214) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-4, /* (215) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
-1, /* (216) type_name ::= DECIMAL */
-4, /* (217) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-6, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (219) tags_def_opt ::= */
-1, /* (220) tags_def_opt ::= tags_def */
-4, /* (221) tags_def ::= TAGS NK_LP column_def_list NK_RP */
0, /* (222) table_options ::= */
-3, /* (223) table_options ::= table_options COMMENT NK_STRING */
-3, /* (224) table_options ::= table_options MAX_DELAY duration_list */
-3, /* (225) table_options ::= table_options WATERMARK duration_list */
-5, /* (226) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
-3, /* (227) table_options ::= table_options TTL NK_INTEGER */
-5, /* (228) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-3, /* (229) table_options ::= table_options DELETE_MARK duration_list */
-1, /* (230) alter_table_options ::= alter_table_option */
-2, /* (231) alter_table_options ::= alter_table_options alter_table_option */
-2, /* (232) alter_table_option ::= COMMENT NK_STRING */
-2, /* (233) alter_table_option ::= TTL NK_INTEGER */
-1, /* (234) duration_list ::= duration_literal */
-3, /* (235) duration_list ::= duration_list NK_COMMA duration_literal */
-1, /* (236) rollup_func_list ::= rollup_func_name */
-3, /* (237) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
-1, /* (238) rollup_func_name ::= function_name */
-1, /* (239) rollup_func_name ::= FIRST */
-1, /* (240) rollup_func_name ::= LAST */
-1, /* (241) col_name_list ::= col_name */
-3, /* (242) col_name_list ::= col_name_list NK_COMMA col_name */
-1, /* (243) col_name ::= column_name */
-2, /* (244) cmd ::= SHOW DNODES */
-2, /* (245) cmd ::= SHOW USERS */
-3, /* (246) cmd ::= SHOW USER PRIVILEGES */
-3, /* (247) cmd ::= SHOW db_kind_opt DATABASES */
-4, /* (248) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
-4, /* (249) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-3, /* (250) cmd ::= SHOW db_name_cond_opt VGROUPS */
-2, /* (251) cmd ::= SHOW MNODES */
-2, /* (252) cmd ::= SHOW QNODES */
-2, /* (253) cmd ::= SHOW FUNCTIONS */
-5, /* (254) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-6, /* (255) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
-2, /* (256) cmd ::= SHOW STREAMS */
-2, /* (257) cmd ::= SHOW ACCOUNTS */
-2, /* (258) cmd ::= SHOW APPS */
-2, /* (259) cmd ::= SHOW CONNECTIONS */
-2, /* (260) cmd ::= SHOW LICENCES */
-2, /* (261) cmd ::= SHOW GRANTS */
2024-01-18 07:23:38 +00:00
-3, /* (262) cmd ::= SHOW GRANTS FULL */
2024-01-31 05:44:00 +00:00
-3, /* (263) cmd ::= SHOW GRANTS LOGS */
2024-01-18 09:49:11 +00:00
-3, /* (264) cmd ::= SHOW CLUSTER MACHINES */
-4, /* (265) cmd ::= SHOW CREATE DATABASE db_name */
-4, /* (266) cmd ::= SHOW CREATE TABLE full_table_name */
-4, /* (267) cmd ::= SHOW CREATE STABLE full_table_name */
-2, /* (268) cmd ::= SHOW QUERIES */
-2, /* (269) cmd ::= SHOW SCORES */
-2, /* (270) cmd ::= SHOW TOPICS */
-2, /* (271) cmd ::= SHOW VARIABLES */
-3, /* (272) cmd ::= SHOW CLUSTER VARIABLES */
-3, /* (273) cmd ::= SHOW LOCAL VARIABLES */
-5, /* (274) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
-2, /* (275) cmd ::= SHOW BNODES */
-2, /* (276) cmd ::= SHOW SNODES */
-2, /* (277) cmd ::= SHOW CLUSTER */
-2, /* (278) cmd ::= SHOW TRANSACTIONS */
-4, /* (279) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
-2, /* (280) cmd ::= SHOW CONSUMERS */
-2, /* (281) cmd ::= SHOW SUBSCRIPTIONS */
-5, /* (282) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
-6, /* (283) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
-7, /* (284) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
-8, /* (285) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
-5, /* (286) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
-2, /* (287) cmd ::= SHOW VNODES */
-3, /* (288) cmd ::= SHOW db_name_cond_opt ALIVE */
-3, /* (289) cmd ::= SHOW CLUSTER ALIVE */
2024-02-19 05:10:27 +00:00
-4, /* (290) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
2024-01-18 09:49:11 +00:00
-4, /* (291) cmd ::= SHOW CREATE VIEW full_table_name */
-2, /* (292) cmd ::= SHOW COMPACTS */
-3, /* (293) cmd ::= SHOW COMPACT NK_INTEGER */
0, /* (294) table_kind_db_name_cond_opt ::= */
-1, /* (295) table_kind_db_name_cond_opt ::= table_kind */
-2, /* (296) table_kind_db_name_cond_opt ::= db_name NK_DOT */
-3, /* (297) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
-1, /* (298) table_kind ::= NORMAL */
-1, /* (299) table_kind ::= CHILD */
0, /* (300) db_name_cond_opt ::= */
-2, /* (301) db_name_cond_opt ::= db_name NK_DOT */
0, /* (302) like_pattern_opt ::= */
-2, /* (303) like_pattern_opt ::= LIKE NK_STRING */
-1, /* (304) table_name_cond ::= table_name */
0, /* (305) from_db_opt ::= */
-2, /* (306) from_db_opt ::= FROM db_name */
0, /* (307) tag_list_opt ::= */
-1, /* (308) tag_list_opt ::= tag_item */
-3, /* (309) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
-1, /* (310) tag_item ::= TBNAME */
-1, /* (311) tag_item ::= QTAGS */
-1, /* (312) tag_item ::= column_name */
-2, /* (313) tag_item ::= column_name column_alias */
-3, /* (314) tag_item ::= column_name AS column_alias */
0, /* (315) db_kind_opt ::= */
-1, /* (316) db_kind_opt ::= USER */
-1, /* (317) db_kind_opt ::= SYSTEM */
-8, /* (318) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
-9, /* (319) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
-4, /* (320) cmd ::= DROP INDEX exists_opt full_index_name */
-1, /* (321) full_index_name ::= index_name */
-3, /* (322) full_index_name ::= db_name NK_DOT index_name */
-10, /* (323) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
-12, /* (324) 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, /* (325) func_list ::= func */
-3, /* (326) func_list ::= func_list NK_COMMA func */
-4, /* (327) func ::= sma_func_name NK_LP expression_list NK_RP */
-1, /* (328) sma_func_name ::= function_name */
-1, /* (329) sma_func_name ::= COUNT */
-1, /* (330) sma_func_name ::= FIRST */
-1, /* (331) sma_func_name ::= LAST */
-1, /* (332) sma_func_name ::= LAST_ROW */
0, /* (333) sma_stream_opt ::= */
-3, /* (334) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
-3, /* (335) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
-3, /* (336) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
-1, /* (337) with_meta ::= AS */
-3, /* (338) with_meta ::= WITH META AS */
-3, /* (339) with_meta ::= ONLY META AS */
-6, /* (340) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
-7, /* (341) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
-8, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
-4, /* (343) cmd ::= DROP TOPIC exists_opt topic_name */
-7, /* (344) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
-2, /* (345) cmd ::= DESC full_table_name */
-2, /* (346) cmd ::= DESCRIBE full_table_name */
-3, /* (347) cmd ::= RESET QUERY CACHE */
-4, /* (348) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
-4, /* (349) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
0, /* (350) analyze_opt ::= */
-1, /* (351) analyze_opt ::= ANALYZE */
0, /* (352) explain_options ::= */
-3, /* (353) explain_options ::= explain_options VERBOSE NK_BOOL */
-3, /* (354) explain_options ::= explain_options RATIO NK_FLOAT */
-12, /* (355) 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, /* (356) cmd ::= DROP FUNCTION exists_opt function_name */
0, /* (357) agg_func_opt ::= */
-1, /* (358) agg_func_opt ::= AGGREGATE */
0, /* (359) bufsize_opt ::= */
-2, /* (360) bufsize_opt ::= BUFSIZE NK_INTEGER */
0, /* (361) language_opt ::= */
-2, /* (362) language_opt ::= LANGUAGE NK_STRING */
0, /* (363) or_replace_opt ::= */
-2, /* (364) or_replace_opt ::= OR REPLACE */
-6, /* (365) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
-4, /* (366) cmd ::= DROP VIEW exists_opt full_view_name */
-1, /* (367) full_view_name ::= view_name */
-3, /* (368) full_view_name ::= db_name NK_DOT view_name */
-12, /* (369) 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, /* (370) cmd ::= DROP STREAM exists_opt stream_name */
-4, /* (371) cmd ::= PAUSE STREAM exists_opt stream_name */
-5, /* (372) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
0, /* (373) col_list_opt ::= */
-3, /* (374) col_list_opt ::= NK_LP col_name_list NK_RP */
0, /* (375) tag_def_or_ref_opt ::= */
-1, /* (376) tag_def_or_ref_opt ::= tags_def */
-4, /* (377) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
0, /* (378) stream_options ::= */
-3, /* (379) stream_options ::= stream_options TRIGGER AT_ONCE */
-3, /* (380) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
-4, /* (381) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
-3, /* (382) stream_options ::= stream_options WATERMARK duration_literal */
-4, /* (383) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
-3, /* (384) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
-3, /* (385) stream_options ::= stream_options DELETE_MARK duration_literal */
-4, /* (386) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
0, /* (387) subtable_opt ::= */
-4, /* (388) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
0, /* (389) ignore_opt ::= */
-2, /* (390) ignore_opt ::= IGNORE UNTREATED */
-3, /* (391) cmd ::= KILL CONNECTION NK_INTEGER */
-3, /* (392) cmd ::= KILL QUERY NK_STRING */
-3, /* (393) cmd ::= KILL TRANSACTION NK_INTEGER */
-3, /* (394) cmd ::= KILL COMPACT NK_INTEGER */
-2, /* (395) cmd ::= BALANCE VGROUP */
-4, /* (396) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
-4, /* (397) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
-4, /* (398) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-3, /* (399) cmd ::= SPLIT VGROUP NK_INTEGER */
0, /* (400) on_vgroup_id ::= */
-2, /* (401) on_vgroup_id ::= ON NK_INTEGER */
-2, /* (402) dnode_list ::= DNODE NK_INTEGER */
-3, /* (403) dnode_list ::= dnode_list DNODE NK_INTEGER */
-4, /* (404) cmd ::= DELETE FROM full_table_name where_clause_opt */
-1, /* (405) cmd ::= query_or_subquery */
-1, /* (406) cmd ::= insert_query */
-7, /* (407) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
-4, /* (408) insert_query ::= INSERT INTO full_table_name query_or_subquery */
2024-03-10 14:14:57 +00:00
-1, /* (409) tags_literal ::= NK_INTEGER */
-2, /* (410) tags_literal ::= NK_PLUS NK_INTEGER */
-2, /* (411) tags_literal ::= NK_MINUS NK_INTEGER */
-1, /* (412) tags_literal ::= NK_FLOAT */
-2, /* (413) tags_literal ::= NK_PLUS NK_FLOAT */
-2, /* (414) tags_literal ::= NK_MINUS NK_FLOAT */
2024-03-13 07:12:21 +00:00
-1, /* (415) tags_literal ::= NK_BIN */
-2, /* (416) tags_literal ::= NK_PLUS NK_BIN */
-2, /* (417) tags_literal ::= NK_MINUS NK_BIN */
-1, /* (418) tags_literal ::= NK_HEX */
-2, /* (419) tags_literal ::= NK_PLUS NK_HEX */
-2, /* (420) tags_literal ::= NK_MINUS NK_HEX */
-1, /* (421) tags_literal ::= NK_STRING */
-1, /* (422) tags_literal ::= NK_BOOL */
-1, /* (423) tags_literal ::= NULL */
-1, /* (424) tags_literal ::= literal_func */
-3, /* (425) tags_literal ::= literal_func NK_PLUS duration_literal */
-3, /* (426) tags_literal ::= literal_func NK_MINUS duration_literal */
-1, /* (427) tags_literal_list ::= tags_literal */
-3, /* (428) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
-1, /* (429) literal ::= NK_INTEGER */
-1, /* (430) literal ::= NK_FLOAT */
-1, /* (431) literal ::= NK_STRING */
-1, /* (432) literal ::= NK_BOOL */
-2, /* (433) literal ::= TIMESTAMP NK_STRING */
-1, /* (434) literal ::= duration_literal */
-1, /* (435) literal ::= NULL */
-1, /* (436) literal ::= NK_QUESTION */
-1, /* (437) duration_literal ::= NK_VARIABLE */
-1, /* (438) signed ::= NK_INTEGER */
-2, /* (439) signed ::= NK_PLUS NK_INTEGER */
-2, /* (440) signed ::= NK_MINUS NK_INTEGER */
-1, /* (441) signed ::= NK_FLOAT */
-2, /* (442) signed ::= NK_PLUS NK_FLOAT */
-2, /* (443) signed ::= NK_MINUS NK_FLOAT */
-1, /* (444) signed_literal ::= signed */
-1, /* (445) signed_literal ::= NK_STRING */
-1, /* (446) signed_literal ::= NK_BOOL */
-2, /* (447) signed_literal ::= TIMESTAMP NK_STRING */
-1, /* (448) signed_literal ::= duration_literal */
-1, /* (449) signed_literal ::= NULL */
-1, /* (450) signed_literal ::= literal_func */
-1, /* (451) signed_literal ::= NK_QUESTION */
-1, /* (452) literal_list ::= signed_literal */
-3, /* (453) literal_list ::= literal_list NK_COMMA signed_literal */
-1, /* (454) db_name ::= NK_ID */
-1, /* (455) table_name ::= NK_ID */
-1, /* (456) column_name ::= NK_ID */
-1, /* (457) function_name ::= NK_ID */
-1, /* (458) view_name ::= NK_ID */
-1, /* (459) table_alias ::= NK_ID */
-1, /* (460) column_alias ::= NK_ID */
-1, /* (461) column_alias ::= NK_ALIAS */
-1, /* (462) user_name ::= NK_ID */
-1, /* (463) topic_name ::= NK_ID */
-1, /* (464) stream_name ::= NK_ID */
-1, /* (465) cgroup_name ::= NK_ID */
-1, /* (466) index_name ::= NK_ID */
-1, /* (467) expr_or_subquery ::= expression */
-1, /* (468) expression ::= literal */
-1, /* (469) expression ::= pseudo_column */
-1, /* (470) expression ::= column_reference */
-1, /* (471) expression ::= function_expression */
-1, /* (472) expression ::= case_when_expression */
-3, /* (473) expression ::= NK_LP expression NK_RP */
-2, /* (474) expression ::= NK_PLUS expr_or_subquery */
-2, /* (475) expression ::= NK_MINUS expr_or_subquery */
-3, /* (476) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
-3, /* (477) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
-3, /* (478) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
-3, /* (479) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
-3, /* (480) expression ::= expr_or_subquery NK_REM expr_or_subquery */
-3, /* (481) expression ::= column_reference NK_ARROW NK_STRING */
-3, /* (482) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
-3, /* (483) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
-1, /* (484) expression_list ::= expr_or_subquery */
-3, /* (485) expression_list ::= expression_list NK_COMMA expr_or_subquery */
-1, /* (486) column_reference ::= column_name */
-3, /* (487) column_reference ::= table_name NK_DOT column_name */
-1, /* (488) column_reference ::= NK_ALIAS */
-3, /* (489) column_reference ::= table_name NK_DOT NK_ALIAS */
-1, /* (490) pseudo_column ::= ROWTS */
-1, /* (491) pseudo_column ::= TBNAME */
-3, /* (492) pseudo_column ::= table_name NK_DOT TBNAME */
-1, /* (493) pseudo_column ::= QSTART */
-1, /* (494) pseudo_column ::= QEND */
-1, /* (495) pseudo_column ::= QDURATION */
-1, /* (496) pseudo_column ::= WSTART */
-1, /* (497) pseudo_column ::= WEND */
-1, /* (498) pseudo_column ::= WDURATION */
-1, /* (499) pseudo_column ::= IROWTS */
-1, /* (500) pseudo_column ::= ISFILLED */
-1, /* (501) pseudo_column ::= QTAGS */
-4, /* (502) function_expression ::= function_name NK_LP expression_list NK_RP */
-4, /* (503) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
-6, /* (504) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
-1, /* (505) function_expression ::= literal_func */
-3, /* (506) literal_func ::= noarg_func NK_LP NK_RP */
-1, /* (507) literal_func ::= NOW */
-1, /* (508) literal_func ::= TODAY */
-1, /* (509) noarg_func ::= NOW */
-1, /* (510) noarg_func ::= TODAY */
-1, /* (511) noarg_func ::= TIMEZONE */
-1, /* (512) noarg_func ::= DATABASE */
-1, /* (513) noarg_func ::= CLIENT_VERSION */
-1, /* (514) noarg_func ::= SERVER_VERSION */
-1, /* (515) noarg_func ::= SERVER_STATUS */
-1, /* (516) noarg_func ::= CURRENT_USER */
-1, /* (517) noarg_func ::= USER */
-1, /* (518) star_func ::= COUNT */
-1, /* (519) star_func ::= FIRST */
-1, /* (520) star_func ::= LAST */
-1, /* (521) star_func ::= LAST_ROW */
-1, /* (522) star_func_para_list ::= NK_STAR */
-1, /* (523) star_func_para_list ::= other_para_list */
-1, /* (524) other_para_list ::= star_func_para */
-3, /* (525) other_para_list ::= other_para_list NK_COMMA star_func_para */
-1, /* (526) star_func_para ::= expr_or_subquery */
-3, /* (527) star_func_para ::= table_name NK_DOT NK_STAR */
-4, /* (528) case_when_expression ::= CASE when_then_list case_when_else_opt END */
-5, /* (529) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
-1, /* (530) when_then_list ::= when_then_expr */
-2, /* (531) when_then_list ::= when_then_list when_then_expr */
-4, /* (532) when_then_expr ::= WHEN common_expression THEN common_expression */
0, /* (533) case_when_else_opt ::= */
-2, /* (534) case_when_else_opt ::= ELSE common_expression */
-3, /* (535) predicate ::= expr_or_subquery compare_op expr_or_subquery */
-5, /* (536) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
-6, /* (537) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
-3, /* (538) predicate ::= expr_or_subquery IS NULL */
-4, /* (539) predicate ::= expr_or_subquery IS NOT NULL */
-3, /* (540) predicate ::= expr_or_subquery in_op in_predicate_value */
-1, /* (541) compare_op ::= NK_LT */
-1, /* (542) compare_op ::= NK_GT */
-1, /* (543) compare_op ::= NK_LE */
-1, /* (544) compare_op ::= NK_GE */
-1, /* (545) compare_op ::= NK_NE */
-1, /* (546) compare_op ::= NK_EQ */
-1, /* (547) compare_op ::= LIKE */
-2, /* (548) compare_op ::= NOT LIKE */
-1, /* (549) compare_op ::= MATCH */
-1, /* (550) compare_op ::= NMATCH */
-1, /* (551) compare_op ::= CONTAINS */
-1, /* (552) in_op ::= IN */
-2, /* (553) in_op ::= NOT IN */
-3, /* (554) in_predicate_value ::= NK_LP literal_list NK_RP */
-1, /* (555) boolean_value_expression ::= boolean_primary */
-2, /* (556) boolean_value_expression ::= NOT boolean_primary */
-3, /* (557) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
-3, /* (558) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
-1, /* (559) boolean_primary ::= predicate */
-3, /* (560) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
-1, /* (561) common_expression ::= expr_or_subquery */
-1, /* (562) common_expression ::= boolean_value_expression */
0, /* (563) from_clause_opt ::= */
-2, /* (564) from_clause_opt ::= FROM table_reference_list */
-1, /* (565) table_reference_list ::= table_reference */
-3, /* (566) table_reference_list ::= table_reference_list NK_COMMA table_reference */
-1, /* (567) table_reference ::= table_primary */
-1, /* (568) table_reference ::= joined_table */
-2, /* (569) table_primary ::= table_name alias_opt */
-4, /* (570) table_primary ::= db_name NK_DOT table_name alias_opt */
-2, /* (571) table_primary ::= subquery alias_opt */
-1, /* (572) table_primary ::= parenthesized_joined_table */
0, /* (573) alias_opt ::= */
-1, /* (574) alias_opt ::= table_alias */
-2, /* (575) alias_opt ::= AS table_alias */
-3, /* (576) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
-3, /* (577) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
-6, /* (578) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
0, /* (579) join_type ::= */
-1, /* (580) join_type ::= INNER */
-14, /* (581) 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, /* (582) hint_list ::= */
-1, /* (583) hint_list ::= NK_HINT */
0, /* (584) tag_mode_opt ::= */
-1, /* (585) tag_mode_opt ::= TAGS */
0, /* (586) set_quantifier_opt ::= */
-1, /* (587) set_quantifier_opt ::= DISTINCT */
-1, /* (588) set_quantifier_opt ::= ALL */
-1, /* (589) select_list ::= select_item */
-3, /* (590) select_list ::= select_list NK_COMMA select_item */
-1, /* (591) select_item ::= NK_STAR */
-1, /* (592) select_item ::= common_expression */
-2, /* (593) select_item ::= common_expression column_alias */
-3, /* (594) select_item ::= common_expression AS column_alias */
-3, /* (595) select_item ::= table_name NK_DOT NK_STAR */
0, /* (596) where_clause_opt ::= */
-2, /* (597) where_clause_opt ::= WHERE search_condition */
0, /* (598) partition_by_clause_opt ::= */
-3, /* (599) partition_by_clause_opt ::= PARTITION BY partition_list */
-1, /* (600) partition_list ::= partition_item */
-3, /* (601) partition_list ::= partition_list NK_COMMA partition_item */
-1, /* (602) partition_item ::= expr_or_subquery */
-2, /* (603) partition_item ::= expr_or_subquery column_alias */
-3, /* (604) partition_item ::= expr_or_subquery AS column_alias */
0, /* (605) twindow_clause_opt ::= */
-6, /* (606) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
-4, /* (607) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
-6, /* (608) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-8, /* (609) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-7, /* (610) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
-4, /* (611) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
-6, /* (612) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (613) sliding_opt ::= */
-4, /* (614) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
-1, /* (615) interval_sliding_duration_literal ::= NK_VARIABLE */
-1, /* (616) interval_sliding_duration_literal ::= NK_STRING */
-1, /* (617) interval_sliding_duration_literal ::= NK_INTEGER */
0, /* (618) fill_opt ::= */
-4, /* (619) fill_opt ::= FILL NK_LP fill_mode NK_RP */
-6, /* (620) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
-6, /* (621) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
-1, /* (622) fill_mode ::= NONE */
-1, /* (623) fill_mode ::= PREV */
-1, /* (624) fill_mode ::= NULL */
-1, /* (625) fill_mode ::= NULL_F */
-1, /* (626) fill_mode ::= LINEAR */
-1, /* (627) fill_mode ::= NEXT */
0, /* (628) group_by_clause_opt ::= */
-3, /* (629) group_by_clause_opt ::= GROUP BY group_by_list */
-1, /* (630) group_by_list ::= expr_or_subquery */
-3, /* (631) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
0, /* (632) having_clause_opt ::= */
-2, /* (633) having_clause_opt ::= HAVING search_condition */
0, /* (634) range_opt ::= */
-6, /* (635) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
-4, /* (636) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
0, /* (637) every_opt ::= */
-4, /* (638) every_opt ::= EVERY NK_LP duration_literal NK_RP */
-4, /* (639) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
-1, /* (640) query_simple ::= query_specification */
-1, /* (641) query_simple ::= union_query_expression */
-4, /* (642) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
-3, /* (643) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
-1, /* (644) query_simple_or_subquery ::= query_simple */
-1, /* (645) query_simple_or_subquery ::= subquery */
-1, /* (646) query_or_subquery ::= query_expression */
-1, /* (647) query_or_subquery ::= subquery */
0, /* (648) order_by_clause_opt ::= */
-3, /* (649) order_by_clause_opt ::= ORDER BY sort_specification_list */
0, /* (650) slimit_clause_opt ::= */
-2, /* (651) slimit_clause_opt ::= SLIMIT NK_INTEGER */
-4, /* (652) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
-4, /* (653) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
0, /* (654) limit_clause_opt ::= */
-2, /* (655) limit_clause_opt ::= LIMIT NK_INTEGER */
-4, /* (656) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
-4, /* (657) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
-3, /* (658) subquery ::= NK_LP query_expression NK_RP */
-3, /* (659) subquery ::= NK_LP subquery NK_RP */
-1, /* (660) search_condition ::= common_expression */
-1, /* (661) sort_specification_list ::= sort_specification */
-3, /* (662) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
-3, /* (663) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
0, /* (664) ordering_specification_opt ::= */
-1, /* (665) ordering_specification_opt ::= ASC */
-1, /* (666) ordering_specification_opt ::= DESC */
0, /* (667) null_ordering_opt ::= */
-2, /* (668) null_ordering_opt ::= NULLS FIRST */
-2, /* (669) 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-10 14:14:57 +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-03-13 07:12:21 +00:00
yy_destructor(yypParser,354,&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-03-13 07:12:21 +00:00
yy_destructor(yypParser,355,&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-03-13 07:12:21 +00:00
{ yy_destructor(yypParser,354,&yymsp[-2].minor);
{ }
2024-03-13 07:12:21 +00:00
yy_destructor(yypParser,356,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
2024-03-13 07:12:21 +00:00
{ yy_destructor(yypParser,357,&yymsp[0].minor);
{ }
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
2024-03-13 07:12:21 +00:00
{ yy_destructor(yypParser,355,&yymsp[-1].minor);
{ }
2024-03-13 07:12:21 +00:00
yy_destructor(yypParser,357,&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-03-13 07:12:21 +00:00
yy_destructor(yypParser,356,&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-03-13 07:12:21 +00:00
{ yylhsminor.yy136 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy136 = yylhsminor.yy136;
2023-08-24 07:54:10 +00:00
break;
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy136 = addNodeToList(pCxt, yymsp[-2].minor.yy136, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy136 = yylhsminor.yy136;
2023-08-24 07:54:10 +00:00
break;
case 26: /* white_list ::= HOST ip_range_list */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy136 = yymsp[0].minor.yy136; }
2023-08-24 07:54:10 +00:00
break;
case 27: /* white_list_opt ::= */
2023-12-18 08:34:31 +00:00
case 188: /* specific_cols_opt ::= */ yytestcase(yyruleno==188);
case 219: /* tags_def_opt ::= */ yytestcase(yyruleno==219);
2024-01-18 09:49:11 +00:00
case 307: /* tag_list_opt ::= */ yytestcase(yyruleno==307);
case 373: /* col_list_opt ::= */ yytestcase(yyruleno==373);
case 375: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==375);
2024-03-13 07:12:21 +00:00
case 598: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==598);
case 628: /* group_by_clause_opt ::= */ yytestcase(yyruleno==628);
case 648: /* order_by_clause_opt ::= */ yytestcase(yyruleno==648);
{ yymsp[1].minor.yy136 = NULL; }
2023-08-24 07:54:10 +00:00
break;
case 28: /* white_list_opt ::= white_list */
2023-12-18 08:34:31 +00:00
case 220: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==220);
2024-01-18 09:49:11 +00:00
case 376: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==376);
2024-03-13 07:12:21 +00:00
case 523: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==523);
{ yylhsminor.yy136 = yymsp[0].minor.yy136; }
yymsp[0].minor.yy136 = yylhsminor.yy136;
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-03-13 07:12:21 +00:00
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy665, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy191);
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy136);
2023-08-24 07:54:10 +00:00
}
break;
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy665, 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-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy665, 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-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy665, 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-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy665, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy136); }
2023-08-24 07:54:10 +00:00
break;
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy665, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy136); }
2023-08-24 07:54:10 +00:00
break;
case 35: /* cmd ::= DROP USER user_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy665); }
2023-08-24 07:54:10 +00:00
break;
case 36: /* sysinfo_opt ::= */
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy191 = 1; }
2023-08-24 07:54:10 +00:00
break;
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy191 = 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-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy753, &yymsp[0].minor.yy665, yymsp[-2].minor.yy656); }
2023-08-24 07:54:10 +00:00
break;
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy753, &yymsp[0].minor.yy665, yymsp[-2].minor.yy656); }
2023-08-24 07:54:10 +00:00
break;
case 40: /* privileges ::= ALL */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy909 = 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-03-13 07:12:21 +00:00
{ yylhsminor.yy909 = yymsp[0].minor.yy909; }
yymsp[0].minor.yy909 = yylhsminor.yy909;
2023-08-24 07:54:10 +00:00
break;
case 42: /* privileges ::= SUBSCRIBE */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy909 = 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-03-13 07:12:21 +00:00
{ yylhsminor.yy909 = yymsp[-2].minor.yy909 | yymsp[0].minor.yy909; }
yymsp[-2].minor.yy909 = yylhsminor.yy909;
2023-08-24 07:54:10 +00:00
break;
case 45: /* priv_type ::= READ */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_READ; }
2023-08-24 07:54:10 +00:00
break;
case 46: /* priv_type ::= WRITE */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_WRITE; }
2023-08-24 07:54:10 +00:00
break;
case 47: /* priv_type ::= ALTER */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALTER; }
break;
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy753.first = yymsp[-2].minor.yy0; yylhsminor.yy753.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy753 = yylhsminor.yy753;
2023-08-24 07:54:10 +00:00
break;
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy753.first = yymsp[-2].minor.yy665; yylhsminor.yy753.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy753 = yylhsminor.yy753;
2023-08-24 07:54:10 +00:00
break;
case 50: /* priv_level ::= db_name NK_DOT table_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy753.first = yymsp[-2].minor.yy665; yylhsminor.yy753.second = yymsp[0].minor.yy665; }
yymsp[-2].minor.yy753 = yylhsminor.yy753;
2023-08-24 07:54:10 +00:00
break;
case 51: /* priv_level ::= topic_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy753.first = yymsp[0].minor.yy665; yylhsminor.yy753.second = nil_token; }
yymsp[0].minor.yy753 = yylhsminor.yy753;
2023-08-24 07:54:10 +00:00
break;
case 52: /* with_opt ::= */
2023-12-18 08:34:31 +00:00
case 157: /* start_opt ::= */ yytestcase(yyruleno==157);
case 161: /* end_opt ::= */ yytestcase(yyruleno==161);
2024-01-18 09:49:11 +00:00
case 302: /* like_pattern_opt ::= */ yytestcase(yyruleno==302);
case 387: /* subtable_opt ::= */ yytestcase(yyruleno==387);
2024-03-13 07:12:21 +00:00
case 533: /* case_when_else_opt ::= */ yytestcase(yyruleno==533);
case 563: /* from_clause_opt ::= */ yytestcase(yyruleno==563);
case 596: /* where_clause_opt ::= */ yytestcase(yyruleno==596);
case 605: /* twindow_clause_opt ::= */ yytestcase(yyruleno==605);
case 613: /* sliding_opt ::= */ yytestcase(yyruleno==613);
case 618: /* fill_opt ::= */ yytestcase(yyruleno==618);
case 632: /* having_clause_opt ::= */ yytestcase(yyruleno==632);
case 634: /* range_opt ::= */ yytestcase(yyruleno==634);
case 637: /* every_opt ::= */ yytestcase(yyruleno==637);
case 650: /* slimit_clause_opt ::= */ yytestcase(yyruleno==650);
case 654: /* limit_clause_opt ::= */ yytestcase(yyruleno==654);
{ yymsp[1].minor.yy656 = NULL; }
2023-08-24 07:54:10 +00:00
break;
case 53: /* with_opt ::= WITH search_condition */
2024-03-13 07:12:21 +00:00
case 564: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==564);
case 597: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==597);
case 633: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==633);
{ yymsp[-1].minor.yy656 = yymsp[0].minor.yy656; }
2023-08-24 07:54:10 +00:00
break;
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy665, NULL); }
2023-08-24 07:54:10 +00:00
break;
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy497, false); }
2023-08-24 07:54:10 +00:00
break;
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy665, yymsp[0].minor.yy497, false); }
2023-08-24 07:54:10 +00:00
break;
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy497); }
2023-08-24 07:54:10 +00:00
break;
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy665, false, yymsp[0].minor.yy497); }
2023-08-24 07:54:10 +00:00
break;
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
break;
case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
break;
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
case 65: /* dnode_endpoint ::= NK_STRING */
case 66: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==66);
case 67: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==67);
2024-01-18 09:49:11 +00:00
case 329: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==329);
case 330: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==330);
case 331: /* sma_func_name ::= LAST */ yytestcase(yyruleno==331);
case 332: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==332);
2024-03-13 07:12:21 +00:00
case 454: /* db_name ::= NK_ID */ yytestcase(yyruleno==454);
case 455: /* table_name ::= NK_ID */ yytestcase(yyruleno==455);
case 456: /* column_name ::= NK_ID */ yytestcase(yyruleno==456);
case 457: /* function_name ::= NK_ID */ yytestcase(yyruleno==457);
case 458: /* view_name ::= NK_ID */ yytestcase(yyruleno==458);
case 459: /* table_alias ::= NK_ID */ yytestcase(yyruleno==459);
case 460: /* column_alias ::= NK_ID */ yytestcase(yyruleno==460);
case 461: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==461);
case 462: /* user_name ::= NK_ID */ yytestcase(yyruleno==462);
case 463: /* topic_name ::= NK_ID */ yytestcase(yyruleno==463);
case 464: /* stream_name ::= NK_ID */ yytestcase(yyruleno==464);
case 465: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==465);
case 466: /* index_name ::= NK_ID */ yytestcase(yyruleno==466);
case 509: /* noarg_func ::= NOW */ yytestcase(yyruleno==509);
case 510: /* noarg_func ::= TODAY */ yytestcase(yyruleno==510);
case 511: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==511);
case 512: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==512);
case 513: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==513);
case 514: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==514);
case 515: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==515);
case 516: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==516);
case 517: /* noarg_func ::= USER */ yytestcase(yyruleno==517);
case 518: /* star_func ::= COUNT */ yytestcase(yyruleno==518);
case 519: /* star_func ::= FIRST */ yytestcase(yyruleno==519);
case 520: /* star_func ::= LAST */ yytestcase(yyruleno==520);
case 521: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==521);
{ yylhsminor.yy665 = yymsp[0].minor.yy0; }
yymsp[0].minor.yy665 = yylhsminor.yy665;
2023-08-24 07:54:10 +00:00
break;
case 68: /* force_opt ::= */
2023-12-18 08:34:31 +00:00
case 94: /* not_exists_opt ::= */ yytestcase(yyruleno==94);
case 96: /* exists_opt ::= */ yytestcase(yyruleno==96);
2024-01-18 09:49:11 +00:00
case 350: /* analyze_opt ::= */ yytestcase(yyruleno==350);
case 357: /* agg_func_opt ::= */ yytestcase(yyruleno==357);
case 363: /* or_replace_opt ::= */ yytestcase(yyruleno==363);
case 389: /* ignore_opt ::= */ yytestcase(yyruleno==389);
2024-03-13 07:12:21 +00:00
case 584: /* tag_mode_opt ::= */ yytestcase(yyruleno==584);
case 586: /* set_quantifier_opt ::= */ yytestcase(yyruleno==586);
{ yymsp[1].minor.yy497 = false; }
2023-08-24 07:54:10 +00:00
break;
case 69: /* force_opt ::= FORCE */
case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70);
2024-01-18 09:49:11 +00:00
case 351: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==351);
case 358: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==358);
2024-03-13 07:12:21 +00:00
case 585: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==585);
case 587: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==587);
{ yymsp[0].minor.yy497 = true; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
2023-12-18 08:34:31 +00:00
case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
2022-03-15 12:04:52 +00:00
break;
2023-12-18 08:34:31 +00:00
case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
2022-03-15 12:04:52 +00:00
break;
2023-12-18 08:34:31 +00:00
case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
2022-03-15 12:04:52 +00:00
break;
2023-12-18 08:34:31 +00:00
case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 86: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy497, &yymsp[-1].minor.yy665, yymsp[0].minor.yy656); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 87: /* cmd ::= DROP DATABASE exists_opt db_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy497, &yymsp[0].minor.yy665); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 88: /* cmd ::= USE db_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy665); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy665, yymsp[0].minor.yy656); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 90: /* cmd ::= FLUSH DATABASE db_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy665); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy665, yymsp[0].minor.yy676); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 92: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy665, yymsp[-1].minor.yy656, yymsp[0].minor.yy656); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 93: /* not_exists_opt ::= IF NOT EXISTS */
2024-03-13 07:12:21 +00:00
{ yymsp[-2].minor.yy497 = true; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 95: /* exists_opt ::= IF EXISTS */
2024-01-18 09:49:11 +00:00
case 364: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==364);
case 390: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==390);
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy497 = true; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 97: /* db_options ::= */
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy656 = createDefaultDatabaseOptions(pCxt); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 98: /* db_options ::= db_options BUFFER NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 99: /* db_options ::= db_options CACHEMODEL NK_STRING */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 100: /* db_options ::= db_options CACHESIZE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 101: /* db_options ::= db_options COMP NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 102: /* db_options ::= db_options DURATION NK_INTEGER */
case 103: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==103);
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 104: /* db_options ::= db_options MAXROWS NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 105: /* db_options ::= db_options MINROWS NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 106: /* db_options ::= db_options KEEP integer_list */
case 107: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==107);
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_KEEP, yymsp[0].minor.yy136); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 108: /* db_options ::= db_options PAGES NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 109: /* db_options ::= db_options PAGESIZE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 110: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 111: /* db_options ::= db_options PRECISION NK_STRING */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 112: /* db_options ::= db_options REPLICA NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 113: /* db_options ::= db_options VGROUPS NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 114: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 115: /* db_options ::= db_options RETENTIONS retention_list */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_RETENTIONS, yymsp[0].minor.yy136); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 116: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 117: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 118: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 119: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 120: /* 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-03-13 07:12:21 +00:00
yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-3].minor.yy656, DB_OPTION_WAL_RETENTION_PERIOD, &t);
2022-07-25 13:09:06 +00:00
}
2024-03-13 07:12:21 +00:00
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2022-07-25 13:09:06 +00:00
break;
2023-12-18 08:34:31 +00:00
case 121: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2022-07-25 13:09:06 +00:00
break;
2023-12-18 08:34:31 +00:00
case 122: /* 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-03-13 07:12:21 +00:00
yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-3].minor.yy656, DB_OPTION_WAL_RETENTION_SIZE, &t);
2022-07-25 13:09:06 +00:00
}
2024-03-13 07:12:21 +00:00
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 123: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 124: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 125: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 126: /* db_options ::= db_options TABLE_PREFIX signed */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy656); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 127: /* db_options ::= db_options TABLE_SUFFIX signed */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy656); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 128: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setDatabaseOption(pCxt, yymsp[-2].minor.yy656, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 129: /* alter_db_options ::= alter_db_option */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterDatabaseOptions(pCxt); yylhsminor.yy656 = setAlterDatabaseOption(pCxt, yylhsminor.yy656, &yymsp[0].minor.yy749); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 130: /* alter_db_options ::= alter_db_options alter_db_option */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy656, &yymsp[0].minor.yy749); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 131: /* alter_db_option ::= BUFFER NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 132: /* alter_db_option ::= CACHEMODEL NK_STRING */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 133: /* alter_db_option ::= CACHESIZE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 134: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 135: /* alter_db_option ::= KEEP integer_list */
case 136: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==136);
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_KEEP; yymsp[-1].minor.yy749.pList = yymsp[0].minor.yy136; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 137: /* alter_db_option ::= PAGES NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_PAGES; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 138: /* alter_db_option ::= REPLICA NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 139: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_WAL; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 140: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 141: /* alter_db_option ::= MINROWS NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 142: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 143: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy749.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy749.val = t;
}
break;
2023-12-18 08:34:31 +00:00
case 144: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
break;
2023-12-18 08:34:31 +00:00
case 145: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy749.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy749.val = t;
}
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 146: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
break;
2023-12-18 08:34:31 +00:00
case 147: /* integer_list ::= NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy136 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy136 = yylhsminor.yy136;
break;
2023-12-18 08:34:31 +00:00
case 148: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
2024-01-18 09:49:11 +00:00
case 403: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==403);
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy136 = addNodeToList(pCxt, yymsp[-2].minor.yy136, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy136 = yylhsminor.yy136;
break;
2023-12-18 08:34:31 +00:00
case 149: /* variable_list ::= NK_VARIABLE */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy136 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy136 = yylhsminor.yy136;
break;
2023-12-18 08:34:31 +00:00
case 150: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy136 = addNodeToList(pCxt, yymsp[-2].minor.yy136, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy136 = yylhsminor.yy136;
break;
2023-12-18 08:34:31 +00:00
case 151: /* retention_list ::= retention */
case 182: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==182);
case 185: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==185);
case 192: /* column_def_list ::= column_def */ yytestcase(yyruleno==192);
case 236: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==236);
case 241: /* col_name_list ::= col_name */ yytestcase(yyruleno==241);
2024-01-18 09:49:11 +00:00
case 308: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==308);
case 325: /* func_list ::= func */ yytestcase(yyruleno==325);
2024-03-13 07:12:21 +00:00
case 427: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==427);
case 452: /* literal_list ::= signed_literal */ yytestcase(yyruleno==452);
case 524: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==524);
case 530: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==530);
case 589: /* select_list ::= select_item */ yytestcase(yyruleno==589);
case 600: /* partition_list ::= partition_item */ yytestcase(yyruleno==600);
case 661: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==661);
{ yylhsminor.yy136 = createNodeList(pCxt, yymsp[0].minor.yy656); }
yymsp[0].minor.yy136 = yylhsminor.yy136;
break;
2023-12-18 08:34:31 +00:00
case 152: /* retention_list ::= retention_list NK_COMMA retention */
case 186: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==186);
case 193: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==193);
case 237: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==237);
case 242: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==242);
2024-01-18 09:49:11 +00:00
case 309: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==309);
case 326: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==326);
2024-03-13 07:12:21 +00:00
case 428: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==428);
case 453: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==453);
case 525: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==525);
case 590: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==590);
case 601: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==601);
case 662: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==662);
{ yylhsminor.yy136 = addNodeToList(pCxt, yymsp[-2].minor.yy136, yymsp[0].minor.yy656); }
yymsp[-2].minor.yy136 = yylhsminor.yy136;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 153: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
case 154: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==154);
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2023-12-18 08:34:31 +00:00
case 155: /* speed_opt ::= */
2024-01-18 09:49:11 +00:00
case 359: /* bufsize_opt ::= */ yytestcase(yyruleno==359);
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy676 = 0; }
break;
2023-12-18 08:34:31 +00:00
case 156: /* speed_opt ::= BWLIMIT NK_INTEGER */
2024-01-18 09:49:11 +00:00
case 360: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==360);
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy676 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
break;
2023-12-18 08:34:31 +00:00
case 158: /* start_opt ::= START WITH NK_INTEGER */
case 162: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==162);
2024-03-13 07:12:21 +00:00
{ yymsp[-2].minor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 159: /* start_opt ::= START WITH NK_STRING */
case 163: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==163);
2024-03-13 07:12:21 +00:00
{ yymsp[-2].minor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 160: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
case 164: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==164);
2024-03-13 07:12:21 +00:00
{ yymsp[-3].minor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
2023-12-18 08:34:31 +00:00
case 165: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
case 167: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==167);
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy497, yymsp[-5].minor.yy656, yymsp[-3].minor.yy136, yymsp[-1].minor.yy136, yymsp[0].minor.yy656); }
break;
2023-12-18 08:34:31 +00:00
case 166: /* cmd ::= CREATE TABLE multi_create_clause */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy136); }
break;
2023-12-18 08:34:31 +00:00
case 168: /* cmd ::= DROP TABLE multi_drop_clause */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy136); }
break;
2023-12-18 08:34:31 +00:00
case 169: /* cmd ::= DROP STABLE exists_opt full_table_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy497, yymsp[0].minor.yy656); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 170: /* cmd ::= ALTER TABLE alter_table_clause */
2024-01-18 09:49:11 +00:00
case 405: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==405);
case 406: /* cmd ::= insert_query */ yytestcase(yyruleno==406);
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = yymsp[0].minor.yy656; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 171: /* cmd ::= ALTER STABLE alter_table_clause */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy656); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 172: /* alter_table_clause ::= full_table_name alter_table_options */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy656, yymsp[0].minor.yy656); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 173: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy656, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy665, yymsp[0].minor.yy256); }
yymsp[-4].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 174: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy656, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy665); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 175: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy656, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy665, yymsp[0].minor.yy256); }
yymsp[-4].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 176: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy656, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy665, &yymsp[0].minor.yy665); }
yymsp[-4].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 177: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy656, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy665, yymsp[0].minor.yy256); }
yymsp[-4].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 178: /* alter_table_clause ::= full_table_name DROP TAG column_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy656, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy665); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 179: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy656, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy665, yymsp[0].minor.yy256); }
yymsp[-4].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 180: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy656, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy665, &yymsp[0].minor.yy665); }
yymsp[-4].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2024-03-10 14:14:57 +00:00
case 181: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy656, &yymsp[-2].minor.yy665, yymsp[0].minor.yy656); }
yymsp[-5].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 183: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
2024-03-13 07:12:21 +00:00
case 531: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==531);
{ yylhsminor.yy136 = addNodeToList(pCxt, yymsp[-1].minor.yy136, yymsp[0].minor.yy656); }
yymsp[-1].minor.yy136 = yylhsminor.yy136;
2023-08-24 07:54:10 +00:00
break;
2024-03-10 14:14:57 +00:00
case 184: /* 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 */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy497, yymsp[-8].minor.yy656, yymsp[-6].minor.yy656, yymsp[-5].minor.yy136, yymsp[-2].minor.yy136, yymsp[0].minor.yy656); }
yymsp[-9].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 187: /* drop_table_clause ::= exists_opt full_table_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createDropTableClause(pCxt, yymsp[-1].minor.yy497, yymsp[0].minor.yy656); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 189: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
2024-01-18 09:49:11 +00:00
case 374: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==374);
2024-03-13 07:12:21 +00:00
{ yymsp[-2].minor.yy136 = yymsp[-1].minor.yy136; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 190: /* full_table_name ::= table_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy665, NULL); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 191: /* full_table_name ::= db_name NK_DOT table_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createRealTableNode(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy665, NULL); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 194: /* column_def ::= column_name type_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy665, yymsp[0].minor.yy256, NULL); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 195: /* type_name ::= BOOL */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_BOOL); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 196: /* type_name ::= TINYINT */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_TINYINT); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 197: /* type_name ::= SMALLINT */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 198: /* type_name ::= INT */
case 199: /* type_name ::= INTEGER */ yytestcase(yyruleno==199);
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_INT); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 200: /* type_name ::= BIGINT */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_BIGINT); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 201: /* type_name ::= FLOAT */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_FLOAT); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 202: /* type_name ::= DOUBLE */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 203: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
2024-03-13 07:12:21 +00:00
{ yymsp[-3].minor.yy256 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 204: /* type_name ::= TIMESTAMP */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 205: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
2024-03-13 07:12:21 +00:00
{ yymsp[-3].minor.yy256 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 206: /* type_name ::= TINYINT UNSIGNED */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy256 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 207: /* type_name ::= SMALLINT UNSIGNED */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy256 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 208: /* type_name ::= INT UNSIGNED */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy256 = createDataType(TSDB_DATA_TYPE_UINT); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 209: /* type_name ::= BIGINT UNSIGNED */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy256 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 210: /* type_name ::= JSON */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_JSON); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 211: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
2024-03-13 07:12:21 +00:00
{ yymsp[-3].minor.yy256 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 212: /* type_name ::= MEDIUMBLOB */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 213: /* type_name ::= BLOB */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_BLOB); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 214: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
2024-03-13 07:12:21 +00:00
{ yymsp[-3].minor.yy256 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 215: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
2024-03-13 07:12:21 +00:00
{ yymsp[-3].minor.yy256 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 216: /* type_name ::= DECIMAL */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy256 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 217: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
2024-03-13 07:12:21 +00:00
{ yymsp[-3].minor.yy256 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 218: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
2024-03-13 07:12:21 +00:00
{ yymsp[-5].minor.yy256 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 221: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
2024-01-18 09:49:11 +00:00
case 377: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==377);
2024-03-13 07:12:21 +00:00
{ yymsp[-3].minor.yy136 = yymsp[-1].minor.yy136; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 222: /* table_options ::= */
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy656 = createDefaultTableOptions(pCxt); }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 223: /* table_options ::= table_options COMMENT NK_STRING */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setTableOption(pCxt, yymsp[-2].minor.yy656, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 224: /* table_options ::= table_options MAX_DELAY duration_list */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setTableOption(pCxt, yymsp[-2].minor.yy656, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy136); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 225: /* table_options ::= table_options WATERMARK duration_list */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setTableOption(pCxt, yymsp[-2].minor.yy656, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy136); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 226: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setTableOption(pCxt, yymsp[-4].minor.yy656, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy136); }
yymsp[-4].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 227: /* table_options ::= table_options TTL NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setTableOption(pCxt, yymsp[-2].minor.yy656, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 228: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setTableOption(pCxt, yymsp[-4].minor.yy656, TABLE_OPTION_SMA, yymsp[-1].minor.yy136); }
yymsp[-4].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 229: /* table_options ::= table_options DELETE_MARK duration_list */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setTableOption(pCxt, yymsp[-2].minor.yy656, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy136); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 230: /* alter_table_options ::= alter_table_option */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createAlterTableOptions(pCxt); yylhsminor.yy656 = setTableOption(pCxt, yylhsminor.yy656, yymsp[0].minor.yy749.type, &yymsp[0].minor.yy749.val); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 231: /* alter_table_options ::= alter_table_options alter_table_option */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setTableOption(pCxt, yymsp[-1].minor.yy656, yymsp[0].minor.yy749.type, &yymsp[0].minor.yy749.val); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 232: /* alter_table_option ::= COMMENT NK_STRING */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 233: /* alter_table_option ::= TTL NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy749.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy749.val = yymsp[0].minor.yy0; }
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 234: /* duration_list ::= duration_literal */
2024-03-13 07:12:21 +00:00
case 484: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==484);
{ yylhsminor.yy136 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy656)); }
yymsp[0].minor.yy136 = yylhsminor.yy136;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 235: /* duration_list ::= duration_list NK_COMMA duration_literal */
2024-03-13 07:12:21 +00:00
case 485: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==485);
{ yylhsminor.yy136 = addNodeToList(pCxt, yymsp[-2].minor.yy136, releaseRawExprNode(pCxt, yymsp[0].minor.yy656)); }
yymsp[-2].minor.yy136 = yylhsminor.yy136;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 238: /* rollup_func_name ::= function_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createFunctionNode(pCxt, &yymsp[0].minor.yy665, NULL); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 239: /* rollup_func_name ::= FIRST */
case 240: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==240);
2024-01-18 09:49:11 +00:00
case 311: /* tag_item ::= QTAGS */ yytestcase(yyruleno==311);
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 243: /* col_name ::= column_name */
2024-01-18 09:49:11 +00:00
case 312: /* tag_item ::= column_name */ yytestcase(yyruleno==312);
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy665); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 244: /* cmd ::= SHOW DNODES */
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
break;
2023-12-18 08:34:31 +00:00
case 245: /* cmd ::= SHOW USERS */
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
break;
2023-12-18 08:34:31 +00:00
case 246: /* cmd ::= SHOW USER PRIVILEGES */
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
break;
2023-12-18 08:34:31 +00:00
case 247: /* cmd ::= SHOW db_kind_opt DATABASES */
{
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
2024-03-13 07:12:21 +00:00
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy633);
}
break;
2023-12-18 08:34:31 +00:00
case 248: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
{
2024-03-13 07:12:21 +00:00
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy493, yymsp[0].minor.yy656, OP_TYPE_LIKE);
}
break;
2023-12-18 08:34:31 +00:00
case 249: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy656, yymsp[0].minor.yy656, OP_TYPE_LIKE); }
break;
2023-12-18 08:34:31 +00:00
case 250: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy656, NULL, OP_TYPE_LIKE); }
break;
2023-12-18 08:34:31 +00:00
case 251: /* cmd ::= SHOW MNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
break;
2023-12-18 08:34:31 +00:00
case 252: /* cmd ::= SHOW QNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
break;
2023-12-18 08:34:31 +00:00
case 253: /* cmd ::= SHOW FUNCTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
break;
2023-12-18 08:34:31 +00:00
case 254: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy656, yymsp[-1].minor.yy656, OP_TYPE_EQUAL); }
break;
2023-12-18 08:34:31 +00:00
case 255: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy665), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy665), OP_TYPE_EQUAL); }
break;
2023-12-18 08:34:31 +00:00
case 256: /* cmd ::= SHOW STREAMS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
2022-03-08 09:25:26 +00:00
break;
2023-12-18 08:34:31 +00:00
case 257: /* cmd ::= SHOW ACCOUNTS */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
break;
2023-12-18 08:34:31 +00:00
case 258: /* cmd ::= SHOW APPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
break;
2023-12-18 08:34:31 +00:00
case 259: /* cmd ::= SHOW CONNECTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
break;
2023-12-18 08:34:31 +00:00
case 260: /* cmd ::= SHOW LICENCES */
case 261: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==261);
2022-08-11 07:37:26 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
break;
2024-01-18 07:23:38 +00:00
case 262: /* cmd ::= SHOW GRANTS FULL */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); }
break;
2024-01-31 05:44:00 +00:00
case 263: /* 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-01-18 09:49:11 +00:00
case 264: /* cmd ::= SHOW CLUSTER MACHINES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); }
break;
2024-01-18 09:49:11 +00:00
case 265: /* cmd ::= SHOW CREATE DATABASE db_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy665); }
break;
2024-01-18 09:49:11 +00:00
case 266: /* cmd ::= SHOW CREATE TABLE full_table_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy656); }
break;
2024-01-18 09:49:11 +00:00
case 267: /* cmd ::= SHOW CREATE STABLE full_table_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy656); }
break;
2024-01-18 09:49:11 +00:00
case 268: /* cmd ::= SHOW QUERIES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
break;
2024-01-18 09:49:11 +00:00
case 269: /* cmd ::= SHOW SCORES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
break;
2024-01-18 09:49:11 +00:00
case 270: /* cmd ::= SHOW TOPICS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
break;
2024-01-18 09:49:11 +00:00
case 271: /* cmd ::= SHOW VARIABLES */
case 272: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==272);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
2022-03-28 09:08:48 +00:00
break;
2024-01-18 09:49:11 +00:00
case 273: /* cmd ::= SHOW LOCAL VARIABLES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
break;
2024-01-18 09:49:11 +00:00
case 274: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy656); }
break;
2024-01-18 09:49:11 +00:00
case 275: /* cmd ::= SHOW BNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
break;
2024-01-18 09:49:11 +00:00
case 276: /* cmd ::= SHOW SNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
break;
2024-01-18 09:49:11 +00:00
case 277: /* cmd ::= SHOW CLUSTER */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
2022-04-20 09:43:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 278: /* cmd ::= SHOW TRANSACTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
break;
2024-01-18 09:49:11 +00:00
case 279: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy656); }
2022-03-28 09:08:48 +00:00
break;
2024-01-18 09:49:11 +00:00
case 280: /* cmd ::= SHOW CONSUMERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
2022-05-25 13:20:11 +00:00
break;
2024-01-18 09:49:11 +00:00
case 281: /* cmd ::= SHOW SUBSCRIPTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
2023-08-24 07:54:10 +00:00
break;
2024-01-18 09:49:11 +00:00
case 282: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy656, yymsp[-1].minor.yy656, OP_TYPE_EQUAL); }
2023-08-24 07:54:10 +00:00
break;
2024-01-18 09:49:11 +00:00
case 283: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy665), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy665), OP_TYPE_EQUAL); }
2023-08-24 07:54:10 +00:00
break;
2024-01-18 09:49:11 +00:00
case 284: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy656, yymsp[0].minor.yy656, yymsp[-3].minor.yy136); }
2023-08-24 07:54:10 +00:00
break;
2024-01-18 09:49:11 +00:00
case 285: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy665), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy665), yymsp[-4].minor.yy136); }
2023-08-24 07:54:10 +00:00
break;
2024-01-18 09:49:11 +00:00
case 286: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
break;
2024-01-18 09:49:11 +00:00
case 287: /* cmd ::= SHOW VNODES */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
break;
2024-01-18 09:49:11 +00:00
case 288: /* cmd ::= SHOW db_name_cond_opt ALIVE */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy656, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
break;
2024-01-18 09:49:11 +00:00
case 289: /* 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-02-19 05:10:27 +00:00
case 290: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy656, yymsp[0].minor.yy656, OP_TYPE_LIKE); }
break;
2024-01-18 09:49:11 +00:00
case 291: /* cmd ::= SHOW CREATE VIEW full_table_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 292: /* 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-01-18 09:49:11 +00:00
case 293: /* 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)); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 294: /* table_kind_db_name_cond_opt ::= */
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy493.kind = SHOW_KIND_ALL; yymsp[1].minor.yy493.dbName = nil_token; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 295: /* table_kind_db_name_cond_opt ::= table_kind */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy493.kind = yymsp[0].minor.yy633; yylhsminor.yy493.dbName = nil_token; }
yymsp[0].minor.yy493 = yylhsminor.yy493;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 296: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy493.kind = SHOW_KIND_ALL; yylhsminor.yy493.dbName = yymsp[-1].minor.yy665; }
yymsp[-1].minor.yy493 = yylhsminor.yy493;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 297: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy493.kind = yymsp[-2].minor.yy633; yylhsminor.yy493.dbName = yymsp[-1].minor.yy665; }
yymsp[-2].minor.yy493 = yylhsminor.yy493;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 298: /* table_kind ::= NORMAL */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy633 = SHOW_KIND_TABLES_NORMAL; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 299: /* table_kind ::= CHILD */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy633 = SHOW_KIND_TABLES_CHILD; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 300: /* db_name_cond_opt ::= */
case 305: /* from_db_opt ::= */ yytestcase(yyruleno==305);
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy656 = createDefaultDatabaseCondValue(pCxt); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 301: /* db_name_cond_opt ::= db_name NK_DOT */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy665); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 303: /* like_pattern_opt ::= LIKE NK_STRING */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 304: /* table_name_cond ::= table_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy665); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 306: /* from_db_opt ::= FROM db_name */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy656 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy665); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 310: /* tag_item ::= TBNAME */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 313: /* tag_item ::= column_name column_alias */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy665), &yymsp[0].minor.yy665); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 314: /* tag_item ::= column_name AS column_alias */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy665), &yymsp[0].minor.yy665); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 315: /* db_kind_opt ::= */
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy633 = SHOW_KIND_ALL; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 316: /* db_kind_opt ::= USER */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy633 = SHOW_KIND_DATABASES_USER; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 317: /* db_kind_opt ::= SYSTEM */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy633 = SHOW_KIND_DATABASES_SYSTEM; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 318: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy497, yymsp[-3].minor.yy656, yymsp[-1].minor.yy656, NULL, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 319: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy497, yymsp[-5].minor.yy656, yymsp[-3].minor.yy656, yymsp[-1].minor.yy136, NULL); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 320: /* cmd ::= DROP INDEX exists_opt full_index_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy497, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 321: /* full_index_name ::= index_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy665); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 322: /* full_index_name ::= db_name NK_DOT index_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy665); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 323: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
2024-03-13 07:12:21 +00:00
{ yymsp[-9].minor.yy656 = createIndexOption(pCxt, yymsp[-7].minor.yy136, releaseRawExprNode(pCxt, yymsp[-3].minor.yy656), NULL, yymsp[-1].minor.yy656, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 324: /* 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 */
2024-03-13 07:12:21 +00:00
{ yymsp[-11].minor.yy656 = createIndexOption(pCxt, yymsp[-9].minor.yy136, releaseRawExprNode(pCxt, yymsp[-5].minor.yy656), releaseRawExprNode(pCxt, yymsp[-3].minor.yy656), yymsp[-1].minor.yy656, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 327: /* func ::= sma_func_name NK_LP expression_list NK_RP */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createFunctionNode(pCxt, &yymsp[-3].minor.yy665, yymsp[-1].minor.yy136); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 328: /* sma_func_name ::= function_name */
2024-03-13 07:12:21 +00:00
case 574: /* alias_opt ::= table_alias */ yytestcase(yyruleno==574);
{ yylhsminor.yy665 = yymsp[0].minor.yy665; }
yymsp[0].minor.yy665 = yylhsminor.yy665;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 333: /* sma_stream_opt ::= */
case 378: /* stream_options ::= */ yytestcase(yyruleno==378);
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy656 = createStreamOptions(pCxt); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 334: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
2024-03-13 07:12:21 +00:00
{ ((SStreamOptions*)yymsp[-2].minor.yy656)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy656); yylhsminor.yy656 = yymsp[-2].minor.yy656; }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 335: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
2024-03-13 07:12:21 +00:00
{ ((SStreamOptions*)yymsp[-2].minor.yy656)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy656); yylhsminor.yy656 = yymsp[-2].minor.yy656; }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 336: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
2024-03-13 07:12:21 +00:00
{ ((SStreamOptions*)yymsp[-2].minor.yy656)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy656); yylhsminor.yy656 = yymsp[-2].minor.yy656; }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 337: /* with_meta ::= AS */
2024-03-13 07:12:21 +00:00
{ yymsp[0].minor.yy676 = 0; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 338: /* with_meta ::= WITH META AS */
2024-03-13 07:12:21 +00:00
{ yymsp[-2].minor.yy676 = 1; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 339: /* with_meta ::= ONLY META AS */
2024-03-13 07:12:21 +00:00
{ yymsp[-2].minor.yy676 = 2; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 340: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy497, &yymsp[-2].minor.yy665, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 341: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy497, &yymsp[-3].minor.yy665, &yymsp[0].minor.yy665, yymsp[-2].minor.yy676); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 342: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy497, &yymsp[-4].minor.yy665, yymsp[-1].minor.yy656, yymsp[-3].minor.yy676, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 343: /* cmd ::= DROP TOPIC exists_opt topic_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy497, &yymsp[0].minor.yy665); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 344: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy497, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy665); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 345: /* cmd ::= DESC full_table_name */
case 346: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==346);
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 347: /* cmd ::= RESET QUERY CACHE */
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 348: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
case 349: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==349);
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy497, yymsp[-1].minor.yy656, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 352: /* explain_options ::= */
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy656 = createDefaultExplainOptions(pCxt); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 353: /* explain_options ::= explain_options VERBOSE NK_BOOL */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setExplainVerbose(pCxt, yymsp[-2].minor.yy656, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 354: /* explain_options ::= explain_options RATIO NK_FLOAT */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setExplainRatio(pCxt, yymsp[-2].minor.yy656, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 355: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy497, yymsp[-9].minor.yy497, &yymsp[-6].minor.yy665, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy256, yymsp[-1].minor.yy676, &yymsp[0].minor.yy665, yymsp[-10].minor.yy497); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 356: /* cmd ::= DROP FUNCTION exists_opt function_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy497, &yymsp[0].minor.yy665); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 361: /* language_opt ::= */
case 400: /* on_vgroup_id ::= */ yytestcase(yyruleno==400);
2024-03-13 07:12:21 +00:00
{ yymsp[1].minor.yy665 = nil_token; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 362: /* language_opt ::= LANGUAGE NK_STRING */
case 401: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==401);
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy665 = yymsp[0].minor.yy0; }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 365: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy497, yymsp[-2].minor.yy656, &yymsp[-1].minor.yy0, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 366: /* cmd ::= DROP VIEW exists_opt full_view_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy497, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 367: /* full_view_name ::= view_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy665); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 368: /* full_view_name ::= db_name NK_DOT view_name */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createViewNode(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy665); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 369: /* 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 */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy497, &yymsp[-8].minor.yy665, yymsp[-5].minor.yy656, yymsp[-7].minor.yy656, yymsp[-3].minor.yy136, yymsp[-2].minor.yy656, yymsp[0].minor.yy656, yymsp[-4].minor.yy136); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 370: /* cmd ::= DROP STREAM exists_opt stream_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy497, &yymsp[0].minor.yy665); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 371: /* cmd ::= PAUSE STREAM exists_opt stream_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy497, &yymsp[0].minor.yy665); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 372: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy497, yymsp[-1].minor.yy497, &yymsp[0].minor.yy665); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 379: /* stream_options ::= stream_options TRIGGER AT_ONCE */
case 380: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==380);
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setStreamOptions(pCxt, yymsp[-2].minor.yy656, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 381: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setStreamOptions(pCxt, yymsp[-3].minor.yy656, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy656)); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 382: /* stream_options ::= stream_options WATERMARK duration_literal */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setStreamOptions(pCxt, yymsp[-2].minor.yy656, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy656)); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 383: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setStreamOptions(pCxt, yymsp[-3].minor.yy656, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 384: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setStreamOptions(pCxt, yymsp[-2].minor.yy656, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 385: /* stream_options ::= stream_options DELETE_MARK duration_literal */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setStreamOptions(pCxt, yymsp[-2].minor.yy656, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy656)); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 386: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = setStreamOptions(pCxt, yymsp[-3].minor.yy656, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 388: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
2024-03-13 07:12:21 +00:00
case 614: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==614);
case 638: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==638);
{ yymsp[-3].minor.yy656 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 391: /* cmd ::= KILL CONNECTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
break;
2024-01-18 09:49:11 +00:00
case 392: /* cmd ::= KILL QUERY NK_STRING */
2022-06-15 05:49:29 +00:00
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
break;
2024-01-18 09:49:11 +00:00
case 393: /* cmd ::= KILL TRANSACTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
break;
2024-01-18 09:49:11 +00:00
case 394: /* 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-01-18 09:49:11 +00:00
case 395: /* cmd ::= BALANCE VGROUP */
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
break;
2024-01-18 09:49:11 +00:00
case 396: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy665); }
2022-06-07 03:53:32 +00:00
break;
2024-01-18 09:49:11 +00:00
case 397: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
2024-01-18 09:49:11 +00:00
case 398: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy136); }
break;
2024-01-18 09:49:11 +00:00
case 399: /* cmd ::= SPLIT VGROUP NK_INTEGER */
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
2023-11-16 03:41:02 +00:00
break;
2024-01-18 09:49:11 +00:00
case 402: /* dnode_list ::= DNODE NK_INTEGER */
2024-03-13 07:12:21 +00:00
{ yymsp[-1].minor.yy136 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
2024-01-18 09:49:11 +00:00
break;
case 404: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
2024-03-13 07:12:21 +00:00
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy656, yymsp[0].minor.yy656); }
2024-01-18 09:49:11 +00:00
break;
case 407: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
2024-03-13 07:12:21 +00:00
{ yymsp[-6].minor.yy656 = createInsertStmt(pCxt, yymsp[-4].minor.yy656, yymsp[-2].minor.yy136, yymsp[0].minor.yy656); }
2024-01-18 09:49:11 +00:00
break;
case 408: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
2024-03-13 07:12:21 +00:00
{ yymsp[-3].minor.yy656 = createInsertStmt(pCxt, yymsp[-1].minor.yy656, NULL, yymsp[0].minor.yy656); }
2024-03-10 14:14:57 +00:00
break;
case 409: /* tags_literal ::= NK_INTEGER */
2024-03-13 07:12:21 +00:00
case 415: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==415);
case 418: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==418);
{ yylhsminor.yy656 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2024-03-10 14:14:57 +00:00
break;
case 410: /* tags_literal ::= NK_PLUS NK_INTEGER */
case 411: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==411);
2024-03-13 07:12:21 +00:00
case 416: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==416);
case 417: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==417);
case 419: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==419);
case 420: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==420);
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-03-13 07:12:21 +00:00
yylhsminor.yy656 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL);
2024-03-10 14:14:57 +00:00
}
2024-03-13 07:12:21 +00:00
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2024-03-10 14:14:57 +00:00
break;
case 412: /* tags_literal ::= NK_FLOAT */
2024-03-13 07:12:21 +00:00
{ yylhsminor.yy656 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2024-03-10 14:14:57 +00:00
break;
case 413: /* tags_literal ::= NK_PLUS NK_FLOAT */
case 414: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==414);
{
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-03-13 07:12:21 +00:00
yylhsminor.yy656 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL);
2022-03-22 06:09:15 +00:00
}
2024-03-13 07:12:21 +00:00
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 421: /* tags_literal ::= NK_STRING */
{ yylhsminor.yy656 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 422: /* tags_literal ::= NK_BOOL */
{ yylhsminor.yy656 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 423: /* tags_literal ::= NULL */
{ yylhsminor.yy656 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2024-03-10 14:14:57 +00:00
break;
2024-03-13 07:12:21 +00:00
case 424: /* tags_literal ::= literal_func */
{ yylhsminor.yy656 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy656); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2024-03-10 14:14:57 +00:00
break;
2024-03-13 07:12:21 +00:00
case 425: /* tags_literal ::= literal_func NK_PLUS duration_literal */
case 426: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==426);
2024-03-10 14:14:57 +00:00
{
2024-03-13 07:12:21 +00:00
SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
2024-03-10 14:14:57 +00:00
l.n = (r.z + r.n) - l.z;
2024-03-13 07:12:21 +00:00
yylhsminor.yy656 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy656, yymsp[0].minor.yy656);
2024-03-10 14:14:57 +00:00
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
case 429: /* literal ::= NK_INTEGER */
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 430: /* literal ::= NK_FLOAT */
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 431: /* literal ::= NK_STRING */
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 432: /* literal ::= NK_BOOL */
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 433: /* literal ::= TIMESTAMP NK_STRING */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
break;
case 434: /* literal ::= duration_literal */
case 444: /* signed_literal ::= signed */ yytestcase(yyruleno==444);
case 467: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==467);
case 468: /* expression ::= literal */ yytestcase(yyruleno==468);
case 470: /* expression ::= column_reference */ yytestcase(yyruleno==470);
case 471: /* expression ::= function_expression */ yytestcase(yyruleno==471);
case 472: /* expression ::= case_when_expression */ yytestcase(yyruleno==472);
case 505: /* function_expression ::= literal_func */ yytestcase(yyruleno==505);
case 555: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==555);
case 559: /* boolean_primary ::= predicate */ yytestcase(yyruleno==559);
case 561: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==561);
case 562: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==562);
case 565: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==565);
case 567: /* table_reference ::= table_primary */ yytestcase(yyruleno==567);
case 568: /* table_reference ::= joined_table */ yytestcase(yyruleno==568);
case 572: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==572);
case 640: /* query_simple ::= query_specification */ yytestcase(yyruleno==640);
case 641: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==641);
case 644: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==644);
case 646: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==646);
{ yylhsminor.yy656 = yymsp[0].minor.yy656; }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 435: /* literal ::= NULL */
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 436: /* literal ::= NK_QUESTION */
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 437: /* duration_literal ::= NK_VARIABLE */
case 615: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==615);
case 616: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==616);
case 617: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==617);
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 438: /* signed ::= NK_INTEGER */
{ yylhsminor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 439: /* signed ::= NK_PLUS NK_INTEGER */
{ yymsp[-1].minor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
break;
case 440: /* 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-03-13 07:12:21 +00:00
yylhsminor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
2022-03-22 06:09:15 +00:00
}
2024-03-13 07:12:21 +00:00
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2024-03-10 14:14:57 +00:00
break;
2024-03-13 07:12:21 +00:00
case 441: /* signed ::= NK_FLOAT */
{ yylhsminor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2024-03-10 14:14:57 +00:00
break;
2024-03-13 07:12:21 +00:00
case 442: /* signed ::= NK_PLUS NK_FLOAT */
{ yymsp[-1].minor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
2024-03-10 14:14:57 +00:00
break;
2024-03-13 07:12:21 +00:00
case 443: /* 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-03-13 07:12:21 +00:00
yylhsminor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
2024-03-10 14:14:57 +00:00
}
2024-03-13 07:12:21 +00:00
yymsp[-1].minor.yy656 = yylhsminor.yy656;
break;
case 445: /* signed_literal ::= NK_STRING */
{ yylhsminor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 446: /* signed_literal ::= NK_BOOL */
{ yylhsminor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 447: /* signed_literal ::= TIMESTAMP NK_STRING */
{ yymsp[-1].minor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 448: /* signed_literal ::= duration_literal */
case 450: /* signed_literal ::= literal_func */ yytestcase(yyruleno==450);
case 526: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==526);
case 592: /* select_item ::= common_expression */ yytestcase(yyruleno==592);
case 602: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==602);
case 645: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==645);
case 647: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==647);
case 660: /* search_condition ::= common_expression */ yytestcase(yyruleno==660);
{ yylhsminor.yy656 = releaseRawExprNode(pCxt, yymsp[0].minor.yy656); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 449: /* signed_literal ::= NULL */
{ yylhsminor.yy656 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 451: /* signed_literal ::= NK_QUESTION */
{ yylhsminor.yy656 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 469: /* expression ::= pseudo_column */
{ yylhsminor.yy656 = yymsp[0].minor.yy656; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy656, true); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 473: /* expression ::= NK_LP expression NK_RP */
case 560: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==560);
case 659: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==659);
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy656)); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
case 474: /* expression ::= NK_PLUS expr_or_subquery */
2024-03-10 14:14:57 +00:00
{
2024-03-13 07:12:21 +00:00
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy656));
2022-06-22 08:35:14 +00:00
}
2024-03-13 07:12:21 +00:00
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2022-06-22 08:35:14 +00:00
break;
2024-03-13 07:12:21 +00:00
case 475: /* expression ::= NK_MINUS expr_or_subquery */
2022-06-22 08:35:14 +00:00
{
2024-03-13 07:12:21 +00:00
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy656), NULL));
2022-06-22 08:35:14 +00:00
}
2024-03-13 07:12:21 +00:00
yymsp[-1].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 476: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2022-03-22 06:09:15 +00:00
break;
2024-03-13 07:12:21 +00:00
case 477: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 478: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 479: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 480: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 481: /* expression ::= column_reference NK_ARROW NK_STRING */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 482: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 483: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
case 486: /* column_reference ::= column_name */
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy665, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy665)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 487: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy665, createColumnNode(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy665)); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
case 488: /* column_reference ::= NK_ALIAS */
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 489: /* column_reference ::= table_name NK_DOT NK_ALIAS */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
case 490: /* pseudo_column ::= ROWTS */
case 491: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==491);
case 493: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==493);
case 494: /* pseudo_column ::= QEND */ yytestcase(yyruleno==494);
case 495: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==495);
case 496: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==496);
case 497: /* pseudo_column ::= WEND */ yytestcase(yyruleno==497);
case 498: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==498);
case 499: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==499);
case 500: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==500);
case 501: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==501);
case 507: /* literal_func ::= NOW */ yytestcase(yyruleno==507);
case 508: /* literal_func ::= TODAY */ yytestcase(yyruleno==508);
{ yylhsminor.yy656 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
break;
case 492: /* pseudo_column ::= table_name NK_DOT TBNAME */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy665)))); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
case 502: /* function_expression ::= function_name NK_LP expression_list NK_RP */
case 503: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==503);
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy665, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy665, yymsp[-1].minor.yy136)); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
break;
case 504: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy656), yymsp[-1].minor.yy256)); }
yymsp[-5].minor.yy656 = yylhsminor.yy656;
break;
case 506: /* literal_func ::= noarg_func NK_LP NK_RP */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy665, NULL)); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
case 522: /* star_func_para_list ::= NK_STAR */
{ yylhsminor.yy136 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy136 = yylhsminor.yy136;
break;
case 527: /* star_func_para ::= table_name NK_DOT NK_STAR */
case 595: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==595);
{ yylhsminor.yy656 = createColumnNode(pCxt, &yymsp[-2].minor.yy665, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
case 528: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy136, yymsp[-1].minor.yy656)); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
break;
case 529: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy656), yymsp[-2].minor.yy136, yymsp[-1].minor.yy656)); }
yymsp[-4].minor.yy656 = yylhsminor.yy656;
break;
case 532: /* when_then_expr ::= WHEN common_expression THEN common_expression */
{ yymsp[-3].minor.yy656 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)); }
break;
case 534: /* case_when_else_opt ::= ELSE common_expression */
{ yymsp[-1].minor.yy656 = releaseRawExprNode(pCxt, yymsp[0].minor.yy656); }
break;
case 535: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
case 540: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==540);
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy836, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 536: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy656), releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-4].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 537: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy656), releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-5].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 538: /* predicate ::= expr_or_subquery IS NULL */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), NULL));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 539: /* predicate ::= expr_or_subquery IS NOT NULL */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy656), NULL));
}
2024-03-13 07:12:21 +00:00
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 541: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy836 = OP_TYPE_LOWER_THAN; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 542: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy836 = OP_TYPE_GREATER_THAN; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 543: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy836 = OP_TYPE_LOWER_EQUAL; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 544: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy836 = OP_TYPE_GREATER_EQUAL; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 545: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy836 = OP_TYPE_NOT_EQUAL; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 546: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy836 = OP_TYPE_EQUAL; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 547: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy836 = OP_TYPE_LIKE; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 548: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy836 = OP_TYPE_NOT_LIKE; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 549: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy836 = OP_TYPE_MATCH; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 550: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy836 = OP_TYPE_NMATCH; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 551: /* compare_op ::= CONTAINS */
{ yymsp[0].minor.yy836 = OP_TYPE_JSON_CONTAINS; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 552: /* in_op ::= IN */
{ yymsp[0].minor.yy836 = OP_TYPE_IN; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 553: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy836 = OP_TYPE_NOT_IN; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 554: /* in_predicate_value ::= NK_LP literal_list NK_RP */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy136)); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 556: /* boolean_value_expression ::= NOT boolean_primary */
{
2024-03-13 07:12:21 +00:00
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy656), NULL));
}
2024-03-13 07:12:21 +00:00
yymsp[-1].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 557: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
break;
2024-03-13 07:12:21 +00:00
case 558: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{
2024-03-13 07:12:21 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy656);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy656);
yylhsminor.yy656 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), releaseRawExprNode(pCxt, yymsp[0].minor.yy656)));
}
2024-03-13 07:12:21 +00:00
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 566: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy656 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy656, yymsp[0].minor.yy656, NULL); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 569: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy656 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy665, &yymsp[0].minor.yy665); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 570: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy656 = createRealTableNode(pCxt, &yymsp[-3].minor.yy665, &yymsp[-1].minor.yy665, &yymsp[0].minor.yy665); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 571: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy656 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy656), &yymsp[0].minor.yy665); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 573: /* alias_opt ::= */
{ yymsp[1].minor.yy665 = nil_token; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 575: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy665 = yymsp[0].minor.yy665; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 576: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 577: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==577);
{ yymsp[-2].minor.yy656 = yymsp[-1].minor.yy656; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 578: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ yylhsminor.yy656 = createJoinTableNode(pCxt, yymsp[-4].minor.yy660, yymsp[-5].minor.yy656, yymsp[-2].minor.yy656, yymsp[0].minor.yy656); }
yymsp[-5].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 579: /* join_type ::= */
{ yymsp[1].minor.yy660 = JOIN_TYPE_INNER; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 580: /* join_type ::= INNER */
{ yymsp[0].minor.yy660 = JOIN_TYPE_INNER; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 581: /* 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-03-13 07:12:21 +00:00
yymsp[-13].minor.yy656 = createSelectStmt(pCxt, yymsp[-11].minor.yy497, yymsp[-9].minor.yy136, yymsp[-8].minor.yy656, yymsp[-12].minor.yy136);
yymsp[-13].minor.yy656 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy656, yymsp[-10].minor.yy497);
yymsp[-13].minor.yy656 = addWhereClause(pCxt, yymsp[-13].minor.yy656, yymsp[-7].minor.yy656);
yymsp[-13].minor.yy656 = addPartitionByClause(pCxt, yymsp[-13].minor.yy656, yymsp[-6].minor.yy136);
yymsp[-13].minor.yy656 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy656, yymsp[-2].minor.yy656);
yymsp[-13].minor.yy656 = addGroupByClause(pCxt, yymsp[-13].minor.yy656, yymsp[-1].minor.yy136);
yymsp[-13].minor.yy656 = addHavingClause(pCxt, yymsp[-13].minor.yy656, yymsp[0].minor.yy656);
yymsp[-13].minor.yy656 = addRangeClause(pCxt, yymsp[-13].minor.yy656, yymsp[-5].minor.yy656);
yymsp[-13].minor.yy656 = addEveryClause(pCxt, yymsp[-13].minor.yy656, yymsp[-4].minor.yy656);
yymsp[-13].minor.yy656 = addFillClause(pCxt, yymsp[-13].minor.yy656, yymsp[-3].minor.yy656);
}
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 582: /* hint_list ::= */
{ yymsp[1].minor.yy136 = createHintNodeList(pCxt, NULL); }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 583: /* hint_list ::= NK_HINT */
{ yylhsminor.yy136 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy136 = yylhsminor.yy136;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 588: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy497 = false; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 591: /* select_item ::= NK_STAR */
{ yylhsminor.yy656 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 593: /* select_item ::= common_expression column_alias */
case 603: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==603);
{ yylhsminor.yy656 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy656), &yymsp[0].minor.yy665); }
yymsp[-1].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 594: /* select_item ::= common_expression AS column_alias */
case 604: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==604);
{ yylhsminor.yy656 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), &yymsp[0].minor.yy665); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 599: /* partition_by_clause_opt ::= PARTITION BY partition_list */
case 629: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==629);
case 649: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==649);
{ yymsp[-2].minor.yy136 = yymsp[0].minor.yy136; }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 606: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
{ yymsp[-5].minor.yy656 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy656), releaseRawExprNode(pCxt, yymsp[-1].minor.yy656)); }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 607: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy656 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy656)); }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 608: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy656 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy656), NULL, yymsp[-1].minor.yy656, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 609: /* 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.yy656 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy656), releaseRawExprNode(pCxt, yymsp[-3].minor.yy656), yymsp[-1].minor.yy656, yymsp[0].minor.yy656); }
2023-11-16 03:41:02 +00:00
break;
2024-03-13 07:12:21 +00:00
case 610: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
{ yymsp[-6].minor.yy656 = createEventWindowNode(pCxt, yymsp[-3].minor.yy656, yymsp[0].minor.yy656); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 611: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy656 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 612: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy656 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); }
2024-01-26 07:56:26 +00:00
break;
2024-03-13 07:12:21 +00:00
case 619: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy656 = createFillNode(pCxt, yymsp[-1].minor.yy822, NULL); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 620: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy656 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy136)); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 621: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy656 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy136)); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 622: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy822 = FILL_MODE_NONE; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 623: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy822 = FILL_MODE_PREV; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 624: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy822 = FILL_MODE_NULL; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 625: /* fill_mode ::= NULL_F */
{ yymsp[0].minor.yy822 = FILL_MODE_NULL_F; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 626: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy822 = FILL_MODE_LINEAR; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 627: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy822 = FILL_MODE_NEXT; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 630: /* group_by_list ::= expr_or_subquery */
{ yylhsminor.yy136 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy656))); }
yymsp[0].minor.yy136 = yylhsminor.yy136;
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 631: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
{ yylhsminor.yy136 = addNodeToList(pCxt, yymsp[-2].minor.yy136, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy656))); }
yymsp[-2].minor.yy136 = yylhsminor.yy136;
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 635: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
{ yymsp[-5].minor.yy656 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy656), releaseRawExprNode(pCxt, yymsp[-1].minor.yy656)); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 636: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy656 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy656)); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 639: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
2022-09-16 07:53:27 +00:00
{
2024-03-13 07:12:21 +00:00
yylhsminor.yy656 = addOrderByClause(pCxt, yymsp[-3].minor.yy656, yymsp[-2].minor.yy136);
yylhsminor.yy656 = addSlimitClause(pCxt, yylhsminor.yy656, yymsp[-1].minor.yy656);
yylhsminor.yy656 = addLimitClause(pCxt, yylhsminor.yy656, yymsp[0].minor.yy656);
}
2024-03-13 07:12:21 +00:00
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 642: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
{ yylhsminor.yy656 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy656, yymsp[0].minor.yy656); }
yymsp[-3].minor.yy656 = yylhsminor.yy656;
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 643: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
{ yylhsminor.yy656 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy656, yymsp[0].minor.yy656); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 651: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
case 655: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==655);
{ yymsp[-1].minor.yy656 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 652: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 656: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==656);
{ yymsp[-3].minor.yy656 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 653: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 657: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==657);
{ yymsp[-3].minor.yy656 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 658: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy656 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy656); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 663: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy656 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy656), yymsp[-1].minor.yy674, yymsp[0].minor.yy73); }
yymsp[-2].minor.yy656 = yylhsminor.yy656;
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 664: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy674 = ORDER_ASC; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 665: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy674 = ORDER_ASC; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 666: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy674 = ORDER_DESC; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 667: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy73 = NULL_ORDER_DEFAULT; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 668: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy73 = NULL_ORDER_FIRST; }
2024-01-17 06:22:19 +00:00
break;
2024-03-13 07:12:21 +00:00
case 669: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy73 = 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-10 14:14:57 +00:00
do{
assert( yyact==yypParser->yytos->stateno );
yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
if( yyact >= YY_MIN_REDUCE ){
2024-03-10 14:14:57 +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-10 14:14:57 +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-10 14:14:57 +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-10 14:14:57 +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
}