2022-01-23 12:34:16 +00:00
|
|
|
/*
|
|
|
|
|
** 2000-05-29
|
|
|
|
|
**
|
|
|
|
|
** The author disclaims copyright to this source code. In place of
|
|
|
|
|
** a legal notice, here is a blessing:
|
|
|
|
|
**
|
|
|
|
|
** May you do good and not evil.
|
|
|
|
|
** May you find forgiveness for yourself and forgive others.
|
|
|
|
|
** May you share freely, never taking more than you give.
|
|
|
|
|
**
|
|
|
|
|
*************************************************************************
|
|
|
|
|
** Driver template for the LEMON parser generator.
|
|
|
|
|
**
|
|
|
|
|
** The "lemon" program processes an LALR(1) input grammar file, then uses
|
|
|
|
|
** this template to construct a parser. The "lemon" program inserts text
|
|
|
|
|
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
|
|
|
|
|
** interstitial "-" characters) contained in this template is changed into
|
|
|
|
|
** the value of the %name directive from the grammar. Otherwise, the content
|
|
|
|
|
** of this template is copied straight through into the generate parser
|
|
|
|
|
** source file.
|
|
|
|
|
**
|
|
|
|
|
** The following is the concatenation of all %include directives from the
|
|
|
|
|
** input grammar file:
|
|
|
|
|
*/
|
2023-12-18 08:34:31 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <assert.h>
|
2022-01-23 12:34:16 +00:00
|
|
|
/************ Begin %include sections from the grammar ************************/
|
2023-07-12 03:06:47 +00:00
|
|
|
|
2022-01-23 12:34:16 +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
|
|
|
|
|
|
2022-03-28 11:26:06 +00:00
|
|
|
#include "functionMgt.h"
|
2022-01-23 12:34:16 +00:00
|
|
|
#include "nodes.h"
|
2022-03-10 07:36:06 +00:00
|
|
|
#include "parToken.h"
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
/**************** End of %include directives **********************************/
|
2023-12-18 08:34:31 +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 ***************************/
|
2022-01-23 12:34:16 +00:00
|
|
|
|
|
|
|
|
/* 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
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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-01-18 09:49:11 +00:00
|
|
|
#define YYNOCODE 511
|
2022-01-27 06:32:40 +00:00
|
|
|
#define YYACTIONTYPE unsigned short int
|
2022-03-10 07:36:06 +00:00
|
|
|
#define ParseTOKENTYPE SToken
|
2022-01-23 12:34:16 +00:00
|
|
|
typedef union {
|
|
|
|
|
int yyinit;
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseTOKENTYPE yy0;
|
2024-01-18 09:49:11 +00:00
|
|
|
EOperatorType yy30;
|
|
|
|
|
EJoinType yy246;
|
|
|
|
|
int64_t yy277;
|
|
|
|
|
ENullOrder yy361;
|
|
|
|
|
STokenPair yy483;
|
|
|
|
|
SNode* yy490;
|
|
|
|
|
SNodeList* yy502;
|
|
|
|
|
SAlterOption yy529;
|
|
|
|
|
SToken yy561;
|
|
|
|
|
EShowKind yy579;
|
|
|
|
|
EFillMode yy718;
|
|
|
|
|
int32_t yy774;
|
|
|
|
|
SDataType yy826;
|
|
|
|
|
bool yy845;
|
|
|
|
|
EOrder yy876;
|
|
|
|
|
SShowTablesOption yy961;
|
|
|
|
|
int8_t yy1013;
|
2022-01-23 12:34:16 +00:00
|
|
|
} 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-01-18 09:49:11 +00:00
|
|
|
#define YYNSTATE 846
|
|
|
|
|
#define YYNRULE 647
|
|
|
|
|
#define YYNRULE_WITH_ACTION 647
|
|
|
|
|
#define YYNTOKEN 350
|
|
|
|
|
#define YY_MAX_SHIFT 845
|
|
|
|
|
#define YY_MIN_SHIFTREDUCE 1248
|
|
|
|
|
#define YY_MAX_SHIFTREDUCE 1894
|
|
|
|
|
#define YY_ERROR_ACTION 1895
|
|
|
|
|
#define YY_ACCEPT_ACTION 1896
|
|
|
|
|
#define YY_NO_ACTION 1897
|
|
|
|
|
#define YY_MIN_REDUCE 1898
|
|
|
|
|
#define YY_MAX_REDUCE 2544
|
2022-01-23 12:34:16 +00:00
|
|
|
/************* 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-01-18 09:49:11 +00:00
|
|
|
#define YY_ACTTAB_COUNT (3083)
|
2022-01-23 12:34:16 +00:00
|
|
|
static const YYACTIONTYPE yy_action[] = {
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 0 */ 1921, 2322, 565, 2077, 466, 566, 1941, 14, 13, 465,
|
|
|
|
|
/* 10 */ 2175, 2305, 48, 46, 1818, 2330, 2520, 34, 411, 2515,
|
|
|
|
|
/* 20 */ 417, 1684, 1659, 41, 40, 2326, 171, 47, 45, 44,
|
|
|
|
|
/* 30 */ 43, 42, 2073, 645, 2090, 1744, 1984, 1657, 2519, 731,
|
|
|
|
|
/* 40 */ 2088, 698, 2516, 2518, 2515, 2346, 38, 320, 643, 582,
|
|
|
|
|
/* 50 */ 641, 269, 268, 2312, 673, 710, 146, 2515, 713, 137,
|
|
|
|
|
/* 60 */ 112, 673, 697, 203, 2515, 1739, 608, 2516, 699, 2328,
|
|
|
|
|
/* 70 */ 414, 19, 174, 2226, 1910, 2521, 203, 147, 1665, 741,
|
|
|
|
|
/* 80 */ 2516, 699, 2521, 203, 2226, 2080, 2364, 2516, 699, 41,
|
|
|
|
|
/* 90 */ 40, 2224, 718, 47, 45, 44, 43, 42, 2312, 410,
|
|
|
|
|
/* 100 */ 747, 585, 2223, 718, 842, 583, 2219, 15, 473, 817,
|
|
|
|
|
/* 110 */ 816, 815, 814, 429, 1787, 813, 812, 151, 807, 806,
|
|
|
|
|
/* 120 */ 805, 804, 803, 802, 801, 150, 795, 794, 793, 428,
|
|
|
|
|
/* 130 */ 427, 790, 789, 788, 183, 182, 787, 2064, 1314, 2345,
|
|
|
|
|
/* 140 */ 1313, 63, 2383, 1746, 1747, 114, 2347, 751, 2349, 2350,
|
|
|
|
|
/* 150 */ 746, 730, 741, 532, 530, 142, 366, 186, 573, 2436,
|
|
|
|
|
/* 160 */ 217, 566, 1941, 413, 2432, 300, 2444, 709, 570, 138,
|
|
|
|
|
/* 170 */ 708, 509, 2515, 1315, 567, 508, 184, 2141, 205, 2520,
|
|
|
|
|
/* 180 */ 1719, 1729, 2515, 507, 382, 656, 2466, 1745, 1748, 1860,
|
|
|
|
|
/* 190 */ 697, 203, 2139, 710, 146, 2516, 699, 1898, 384, 688,
|
|
|
|
|
/* 200 */ 2206, 2519, 1660, 63, 1658, 2516, 2517, 786, 196, 710,
|
|
|
|
|
/* 210 */ 146, 41, 40, 731, 2088, 47, 45, 44, 43, 42,
|
|
|
|
|
/* 220 */ 2128, 136, 135, 134, 133, 132, 131, 130, 129, 128,
|
|
|
|
|
/* 230 */ 730, 482, 2202, 208, 1663, 1664, 1716, 52, 1718, 1721,
|
|
|
|
|
/* 240 */ 1722, 1723, 1724, 1725, 1726, 1727, 1728, 743, 739, 1737,
|
|
|
|
|
/* 250 */ 1738, 1740, 1741, 1742, 1743, 2, 48, 46, 581, 2520,
|
|
|
|
|
/* 260 */ 1685, 364, 698, 1682, 417, 2515, 1659, 731, 2088, 99,
|
|
|
|
|
/* 270 */ 516, 237, 2346, 535, 376, 568, 1687, 1949, 534, 1744,
|
|
|
|
|
/* 280 */ 219, 1657, 692, 697, 203, 745, 272, 56, 2516, 699,
|
|
|
|
|
/* 290 */ 271, 694, 689, 682, 496, 450, 536, 464, 1687, 463,
|
|
|
|
|
/* 300 */ 1606, 365, 498, 202, 2444, 2445, 304, 144, 2449, 1739,
|
|
|
|
|
/* 310 */ 2364, 657, 476, 2364, 1684, 19, 1452, 51, 1773, 204,
|
|
|
|
|
/* 320 */ 2444, 2445, 1665, 144, 2449, 2312, 68, 747, 3, 462,
|
|
|
|
|
/* 330 */ 1443, 776, 775, 774, 1447, 773, 1449, 1450, 772, 769,
|
|
|
|
|
/* 340 */ 54, 1458, 766, 1460, 1461, 763, 760, 757, 842, 385,
|
|
|
|
|
/* 350 */ 1684, 15, 784, 161, 160, 781, 780, 779, 158, 98,
|
|
|
|
|
/* 360 */ 484, 1987, 371, 2451, 1884, 397, 2345, 647, 304, 2383,
|
|
|
|
|
/* 370 */ 2185, 691, 356, 2347, 751, 2349, 2350, 746, 744, 741,
|
|
|
|
|
/* 380 */ 732, 2401, 1774, 1578, 1579, 575, 2265, 1746, 1747, 2448,
|
|
|
|
|
/* 390 */ 2213, 2192, 1920, 523, 522, 521, 520, 515, 514, 513,
|
|
|
|
|
/* 400 */ 512, 368, 304, 710, 146, 502, 501, 500, 499, 493,
|
|
|
|
|
/* 410 */ 492, 491, 480, 486, 485, 383, 797, 731, 2088, 477,
|
|
|
|
|
/* 420 */ 1546, 1547, 173, 454, 1719, 1729, 1565, 1577, 1580, 63,
|
|
|
|
|
/* 430 */ 2027, 1745, 1748, 1297, 627, 626, 625, 137, 302, 1683,
|
|
|
|
|
/* 440 */ 730, 617, 143, 621, 613, 2312, 1660, 620, 1658, 184,
|
|
|
|
|
/* 450 */ 456, 452, 619, 624, 392, 391, 488, 2202, 618, 1684,
|
|
|
|
|
/* 460 */ 302, 614, 37, 415, 1768, 1769, 1770, 1771, 1772, 1776,
|
|
|
|
|
/* 470 */ 1777, 1778, 1779, 2207, 1558, 1559, 390, 389, 1663, 1664,
|
|
|
|
|
/* 480 */ 1716, 799, 1718, 1721, 1722, 1723, 1724, 1725, 1726, 1727,
|
|
|
|
|
/* 490 */ 1728, 743, 739, 1737, 1738, 1740, 1741, 1742, 1743, 2,
|
|
|
|
|
/* 500 */ 12, 48, 46, 2346, 738, 221, 2135, 2136, 2322, 417,
|
|
|
|
|
/* 510 */ 1720, 1659, 712, 201, 2444, 2445, 748, 144, 2449, 239,
|
|
|
|
|
/* 520 */ 159, 1685, 2079, 568, 1744, 1949, 1657, 51, 12, 36,
|
|
|
|
|
/* 530 */ 10, 2322, 2326, 95, 2346, 41, 40, 731, 2088, 47,
|
|
|
|
|
/* 540 */ 45, 44, 43, 42, 2364, 2331, 63, 713, 388, 387,
|
|
|
|
|
/* 550 */ 386, 610, 731, 2088, 1739, 2326, 2312, 470, 747, 2083,
|
|
|
|
|
/* 560 */ 19, 627, 626, 625, 731, 2088, 1717, 1665, 617, 143,
|
|
|
|
|
/* 570 */ 621, 693, 471, 612, 620, 2364, 2328, 611, 2519, 619,
|
|
|
|
|
/* 580 */ 624, 392, 391, 2141, 490, 618, 741, 2312, 614, 747,
|
|
|
|
|
/* 590 */ 398, 604, 603, 842, 304, 55, 15, 2345, 2139, 2328,
|
|
|
|
|
/* 600 */ 2383, 2346, 786, 114, 2347, 751, 2349, 2350, 746, 741,
|
|
|
|
|
/* 610 */ 741, 1317, 1318, 149, 748, 156, 2407, 2436, 9, 41,
|
|
|
|
|
/* 620 */ 40, 413, 2432, 47, 45, 44, 43, 42, 2345, 654,
|
|
|
|
|
/* 630 */ 1896, 2383, 1746, 1747, 114, 2347, 751, 2349, 2350, 746,
|
|
|
|
|
/* 640 */ 2274, 741, 2364, 1822, 1487, 1488, 186, 657, 2436, 1684,
|
|
|
|
|
/* 650 */ 518, 2202, 413, 2432, 2312, 127, 747, 1899, 126, 125,
|
|
|
|
|
/* 660 */ 124, 123, 122, 121, 120, 119, 118, 1765, 422, 1719,
|
|
|
|
|
/* 670 */ 1729, 2134, 2136, 1754, 2451, 2467, 1745, 1748, 127, 1684,
|
|
|
|
|
/* 680 */ 12, 126, 125, 124, 123, 122, 121, 120, 119, 118,
|
|
|
|
|
/* 690 */ 672, 1660, 304, 1658, 274, 2345, 731, 2088, 2383, 226,
|
|
|
|
|
/* 700 */ 2447, 114, 2347, 751, 2349, 2350, 746, 1919, 741, 432,
|
|
|
|
|
/* 710 */ 420, 304, 777, 2411, 431, 2436, 503, 159, 171, 413,
|
|
|
|
|
/* 720 */ 2432, 659, 2265, 1663, 1664, 1716, 2090, 1718, 1721, 1722,
|
|
|
|
|
/* 730 */ 1723, 1724, 1725, 1726, 1727, 1728, 743, 739, 1737, 1738,
|
|
|
|
|
/* 740 */ 1740, 1741, 1742, 1743, 2, 48, 46, 1749, 2346, 420,
|
|
|
|
|
/* 750 */ 426, 425, 634, 417, 1407, 1659, 1841, 168, 423, 673,
|
|
|
|
|
/* 760 */ 2312, 748, 2515, 1951, 399, 2090, 171, 646, 1744, 1406,
|
|
|
|
|
/* 770 */ 1657, 1842, 2139, 2159, 2090, 1666, 731, 2088, 2346, 106,
|
|
|
|
|
/* 780 */ 2521, 203, 95, 270, 1775, 2516, 699, 1716, 1314, 2364,
|
|
|
|
|
/* 790 */ 1313, 748, 1622, 2474, 223, 2141, 504, 1688, 1739, 637,
|
|
|
|
|
/* 800 */ 1395, 2312, 407, 747, 2081, 1891, 631, 629, 2084, 1720,
|
|
|
|
|
/* 810 */ 2139, 1665, 1840, 267, 47, 45, 44, 43, 42, 2364,
|
|
|
|
|
/* 820 */ 41, 40, 61, 1315, 47, 45, 44, 43, 42, 526,
|
|
|
|
|
/* 830 */ 670, 2312, 1688, 747, 1688, 90, 537, 842, 89, 1720,
|
|
|
|
|
/* 840 */ 49, 1397, 2345, 731, 2088, 2383, 2346, 1807, 114, 2347,
|
|
|
|
|
/* 850 */ 751, 2349, 2350, 746, 72, 741, 1659, 71, 1665, 748,
|
|
|
|
|
/* 860 */ 2535, 2487, 2436, 505, 35, 1717, 413, 2432, 701, 731,
|
|
|
|
|
/* 870 */ 2088, 1657, 2345, 1849, 1780, 2383, 1746, 1747, 114, 2347,
|
|
|
|
|
/* 880 */ 751, 2349, 2350, 746, 273, 741, 1918, 2364, 2065, 584,
|
|
|
|
|
/* 890 */ 2535, 227, 2436, 2141, 562, 1717, 413, 2432, 1815, 2312,
|
|
|
|
|
/* 900 */ 412, 747, 334, 560, 88, 2118, 556, 552, 2139, 1890,
|
|
|
|
|
/* 910 */ 731, 2088, 1665, 1719, 1729, 525, 524, 1917, 325, 1411,
|
|
|
|
|
/* 920 */ 1745, 1748, 685, 684, 1847, 1848, 1850, 1851, 1852, 2141,
|
|
|
|
|
/* 930 */ 2085, 1295, 511, 510, 1410, 1660, 421, 1658, 842, 2312,
|
|
|
|
|
/* 940 */ 2345, 612, 1669, 2383, 2139, 611, 114, 2347, 751, 2349,
|
|
|
|
|
/* 950 */ 2350, 746, 1916, 741, 1915, 1293, 1294, 1914, 2535, 194,
|
|
|
|
|
/* 960 */ 2436, 2075, 1627, 1628, 413, 2432, 2071, 1663, 1664, 1716,
|
|
|
|
|
/* 970 */ 2312, 1718, 1721, 1722, 1723, 1724, 1725, 1726, 1727, 1728,
|
|
|
|
|
/* 980 */ 743, 739, 1737, 1738, 1740, 1741, 1742, 1743, 2, 48,
|
|
|
|
|
/* 990 */ 46, 2346, 606, 605, 199, 2063, 198, 417, 733, 1659,
|
|
|
|
|
/* 1000 */ 2408, 539, 623, 622, 748, 2312, 680, 2312, 800, 2092,
|
|
|
|
|
/* 1010 */ 2312, 2049, 1744, 1689, 1657, 41, 40, 731, 2088, 47,
|
|
|
|
|
/* 1020 */ 45, 44, 43, 42, 784, 161, 160, 781, 780, 779,
|
|
|
|
|
/* 1030 */ 158, 171, 2364, 44, 43, 42, 1660, 275, 1658, 2091,
|
|
|
|
|
/* 1040 */ 30, 2451, 1739, 280, 2312, 1688, 747, 1913, 1689, 1684,
|
|
|
|
|
/* 1050 */ 1689, 311, 312, 41, 40, 1665, 310, 47, 45, 44,
|
|
|
|
|
/* 1060 */ 43, 42, 731, 2088, 1288, 1912, 2293, 2446, 1663, 1664,
|
|
|
|
|
/* 1070 */ 41, 40, 1909, 2346, 47, 45, 44, 43, 42, 731,
|
|
|
|
|
/* 1080 */ 2088, 842, 283, 1295, 49, 2345, 748, 148, 2383, 2346,
|
|
|
|
|
/* 1090 */ 2407, 114, 2347, 751, 2349, 2350, 746, 2141, 741, 716,
|
|
|
|
|
/* 1100 */ 2312, 702, 748, 2535, 2508, 2436, 1290, 1293, 1294, 413,
|
|
|
|
|
/* 1110 */ 2432, 735, 717, 2408, 2364, 1861, 811, 809, 2312, 401,
|
|
|
|
|
/* 1120 */ 1746, 1747, 2066, 731, 2088, 2312, 2312, 197, 747, 1908,
|
|
|
|
|
/* 1130 */ 2364, 784, 161, 160, 781, 780, 779, 158, 742, 2141,
|
|
|
|
|
/* 1140 */ 731, 2088, 2312, 315, 747, 76, 731, 2088, 2141, 731,
|
|
|
|
|
/* 1150 */ 2088, 731, 2088, 1834, 726, 152, 1907, 1719, 1729, 778,
|
|
|
|
|
/* 1160 */ 424, 1906, 2132, 2140, 1745, 1748, 728, 2345, 1814, 729,
|
|
|
|
|
/* 1170 */ 2383, 321, 2028, 357, 2347, 751, 2349, 2350, 746, 1660,
|
|
|
|
|
/* 1180 */ 741, 1658, 2312, 2345, 1905, 1904, 2383, 2456, 1807, 114,
|
|
|
|
|
/* 1190 */ 2347, 751, 2349, 2350, 746, 1911, 741, 87, 2306, 1903,
|
|
|
|
|
/* 1200 */ 652, 2535, 782, 2436, 1902, 2132, 1901, 413, 2432, 2312,
|
|
|
|
|
/* 1210 */ 284, 1663, 1664, 1716, 2312, 1718, 1721, 1722, 1723, 1724,
|
|
|
|
|
/* 1220 */ 1725, 1726, 1727, 1728, 743, 739, 1737, 1738, 1740, 1741,
|
|
|
|
|
/* 1230 */ 1742, 1743, 2, 48, 46, 139, 783, 2312, 2312, 2132,
|
|
|
|
|
/* 1240 */ 1971, 417, 615, 1659, 170, 1926, 837, 86, 673, 2296,
|
|
|
|
|
/* 1250 */ 673, 2515, 2312, 2515, 100, 2346, 1744, 2312, 1657, 2312,
|
|
|
|
|
/* 1260 */ 616, 1689, 628, 255, 260, 1717, 1392, 258, 748, 2521,
|
|
|
|
|
/* 1270 */ 203, 2521, 203, 1969, 2516, 699, 2516, 699, 262, 178,
|
|
|
|
|
/* 1280 */ 264, 261, 266, 263, 1390, 265, 1739, 1960, 602, 598,
|
|
|
|
|
/* 1290 */ 594, 590, 1958, 254, 210, 630, 2364, 41, 40, 1665,
|
|
|
|
|
/* 1300 */ 439, 47, 45, 44, 43, 42, 2480, 159, 2312, 632,
|
|
|
|
|
/* 1310 */ 747, 649, 705, 648, 635, 50, 50, 2333, 172, 187,
|
|
|
|
|
/* 1320 */ 1893, 1894, 1668, 340, 159, 842, 14, 13, 15, 50,
|
|
|
|
|
/* 1330 */ 309, 75, 2346, 297, 96, 686, 1667, 252, 1350, 658,
|
|
|
|
|
/* 1340 */ 338, 74, 157, 159, 73, 748, 66, 2455, 791, 2345,
|
|
|
|
|
/* 1350 */ 792, 141, 2383, 50, 367, 175, 2347, 751, 2349, 2350,
|
|
|
|
|
/* 1360 */ 746, 111, 741, 703, 1746, 1747, 235, 547, 545, 542,
|
|
|
|
|
/* 1370 */ 108, 291, 1369, 2364, 1367, 2335, 2025, 714, 2365, 1351,
|
|
|
|
|
/* 1380 */ 2024, 2211, 1625, 50, 1942, 2312, 2470, 747, 683, 673,
|
|
|
|
|
/* 1390 */ 1846, 1845, 2515, 403, 289, 690, 400, 674, 2477, 715,
|
|
|
|
|
/* 1400 */ 720, 1719, 1729, 242, 1575, 313, 723, 63, 1745, 1748,
|
|
|
|
|
/* 1410 */ 2521, 203, 251, 244, 1948, 2516, 699, 317, 1437, 249,
|
|
|
|
|
/* 1420 */ 579, 1781, 430, 1660, 2212, 1658, 2345, 673, 1730, 2383,
|
|
|
|
|
/* 1430 */ 2515, 1952, 114, 2347, 751, 2349, 2350, 746, 241, 741,
|
|
|
|
|
/* 1440 */ 755, 157, 2129, 159, 2535, 64, 2436, 140, 2521, 203,
|
|
|
|
|
/* 1450 */ 413, 2432, 157, 2516, 699, 1663, 1664, 1716, 333, 1718,
|
|
|
|
|
/* 1460 */ 1721, 1722, 1723, 1724, 1725, 1726, 1727, 1728, 743, 739,
|
|
|
|
|
/* 1470 */ 1737, 1738, 1740, 1741, 1742, 1743, 2, 666, 2471, 296,
|
|
|
|
|
/* 1480 */ 2481, 426, 425, 835, 2346, 711, 303, 299, 2050, 1671,
|
|
|
|
|
/* 1490 */ 5, 1673, 438, 433, 84, 83, 469, 748, 380, 216,
|
|
|
|
|
/* 1500 */ 446, 1692, 447, 1670, 1744, 458, 1666, 457, 212, 214,
|
|
|
|
|
/* 1510 */ 460, 2346, 461, 459, 1599, 1465, 1469, 211, 1476, 328,
|
|
|
|
|
/* 1520 */ 1682, 474, 1474, 363, 748, 2364, 448, 162, 1683, 445,
|
|
|
|
|
/* 1530 */ 441, 437, 434, 462, 1739, 481, 225, 2312, 483, 747,
|
|
|
|
|
/* 1540 */ 487, 489, 528, 506, 494, 517, 2204, 1665, 519, 527,
|
|
|
|
|
/* 1550 */ 529, 540, 2364, 541, 538, 230, 543, 229, 544, 232,
|
|
|
|
|
/* 1560 */ 546, 548, 1690, 563, 2312, 4, 747, 571, 564, 572,
|
|
|
|
|
/* 1570 */ 574, 240, 304, 737, 92, 1685, 706, 243, 2345, 576,
|
|
|
|
|
/* 1580 */ 2346, 2383, 1691, 577, 114, 2347, 751, 2349, 2350, 746,
|
|
|
|
|
/* 1590 */ 1693, 741, 578, 748, 246, 1694, 2409, 580, 2436, 248,
|
|
|
|
|
/* 1600 */ 93, 586, 413, 2432, 607, 2345, 2220, 94, 2383, 253,
|
|
|
|
|
/* 1610 */ 360, 114, 2347, 751, 2349, 2350, 746, 609, 741, 638,
|
|
|
|
|
/* 1620 */ 116, 2364, 639, 734, 2283, 2436, 2078, 651, 257, 413,
|
|
|
|
|
/* 1630 */ 2432, 2074, 259, 2312, 653, 747, 164, 165, 2076, 2072,
|
|
|
|
|
/* 1640 */ 97, 153, 166, 276, 167, 2280, 1686, 2279, 661, 329,
|
|
|
|
|
/* 1650 */ 2266, 662, 660, 281, 279, 687, 2486, 721, 668, 665,
|
|
|
|
|
/* 1660 */ 8, 667, 677, 2485, 696, 675, 404, 678, 676, 2458,
|
|
|
|
|
/* 1670 */ 2538, 1674, 294, 1669, 2345, 290, 179, 2383, 707, 293,
|
|
|
|
|
/* 1680 */ 115, 2347, 751, 2349, 2350, 746, 286, 741, 288, 295,
|
|
|
|
|
/* 1690 */ 292, 2514, 704, 1807, 2436, 2346, 655, 145, 2435, 2432,
|
|
|
|
|
/* 1700 */ 1687, 1812, 298, 1677, 1679, 2452, 1810, 1, 748, 719,
|
|
|
|
|
/* 1710 */ 190, 305, 154, 2234, 845, 724, 155, 739, 1737, 1738,
|
|
|
|
|
/* 1720 */ 1740, 1741, 1742, 1743, 2233, 2232, 330, 2346, 331, 409,
|
|
|
|
|
/* 1730 */ 327, 725, 105, 2133, 2089, 332, 2364, 62, 107, 2417,
|
|
|
|
|
/* 1740 */ 748, 206, 1272, 335, 753, 839, 193, 836, 2312, 841,
|
|
|
|
|
/* 1750 */ 747, 323, 163, 372, 53, 833, 829, 825, 821, 359,
|
|
|
|
|
/* 1760 */ 324, 373, 2346, 339, 2304, 337, 2303, 2302, 2364, 344,
|
|
|
|
|
/* 1770 */ 81, 358, 348, 2297, 435, 748, 436, 1650, 1651, 209,
|
|
|
|
|
/* 1780 */ 2312, 440, 747, 2295, 442, 443, 444, 1649, 2294, 2345,
|
|
|
|
|
/* 1790 */ 381, 2292, 2383, 449, 2291, 115, 2347, 751, 2349, 2350,
|
|
|
|
|
/* 1800 */ 746, 113, 741, 2364, 318, 451, 2290, 453, 2289, 2436,
|
|
|
|
|
/* 1810 */ 1638, 455, 2270, 736, 2432, 2312, 213, 747, 2269, 215,
|
|
|
|
|
/* 1820 */ 1602, 749, 82, 1601, 2383, 2247, 2246, 115, 2347, 751,
|
|
|
|
|
/* 1830 */ 2349, 2350, 746, 2245, 741, 2346, 727, 467, 468, 2244,
|
|
|
|
|
/* 1840 */ 2243, 2436, 2194, 2191, 472, 375, 2432, 1545, 748, 2190,
|
|
|
|
|
/* 1850 */ 475, 2184, 479, 478, 2181, 2180, 2345, 2179, 2346, 2383,
|
|
|
|
|
/* 1860 */ 218, 2178, 176, 2347, 751, 2349, 2350, 746, 85, 741,
|
|
|
|
|
/* 1870 */ 2183, 748, 2182, 220, 2177, 2176, 2364, 2174, 2346, 307,
|
|
|
|
|
/* 1880 */ 222, 495, 2171, 497, 2169, 2168, 306, 2173, 2312, 2172,
|
|
|
|
|
/* 1890 */ 747, 748, 2167, 2346, 2166, 2189, 2165, 2164, 2163, 2364,
|
|
|
|
|
/* 1900 */ 2187, 2170, 2162, 2161, 2160, 277, 748, 2158, 2157, 2156,
|
|
|
|
|
/* 1910 */ 2155, 2312, 2154, 747, 224, 2152, 700, 2536, 2153, 2364,
|
|
|
|
|
/* 1920 */ 2151, 91, 2150, 2149, 402, 2188, 2186, 2148, 2147, 2345,
|
|
|
|
|
/* 1930 */ 2146, 2312, 2383, 747, 2364, 115, 2347, 751, 2349, 2350,
|
|
|
|
|
/* 1940 */ 746, 1551, 741, 2145, 228, 2144, 2312, 531, 747, 2436,
|
|
|
|
|
/* 1950 */ 533, 2143, 2345, 2142, 2433, 2383, 1408, 1412, 175, 2347,
|
|
|
|
|
/* 1960 */ 751, 2349, 2350, 746, 1990, 741, 369, 370, 1404, 1989,
|
|
|
|
|
/* 1970 */ 231, 233, 2345, 1988, 1986, 2383, 234, 1983, 357, 2347,
|
|
|
|
|
/* 1980 */ 751, 2349, 2350, 746, 549, 741, 551, 2345, 1982, 2346,
|
|
|
|
|
/* 1990 */ 2383, 550, 553, 350, 2347, 751, 2349, 2350, 746, 554,
|
|
|
|
|
/* 2000 */ 741, 2478, 748, 555, 1975, 557, 1962, 558, 559, 561,
|
|
|
|
|
/* 2010 */ 1937, 185, 236, 78, 2332, 1296, 1936, 2268, 79, 195,
|
|
|
|
|
/* 2020 */ 2264, 2254, 238, 2242, 569, 2346, 245, 247, 2241, 250,
|
|
|
|
|
/* 2030 */ 2364, 2218, 2067, 1985, 1343, 1981, 587, 588, 748, 695,
|
|
|
|
|
/* 2040 */ 589, 1979, 2312, 592, 747, 591, 1977, 593, 595, 597,
|
|
|
|
|
/* 2050 */ 1974, 596, 599, 600, 601, 1957, 1955, 2346, 1956, 1954,
|
|
|
|
|
/* 2060 */ 1933, 2069, 1481, 256, 65, 1480, 2364, 1394, 1972, 1380,
|
|
|
|
|
/* 2070 */ 745, 408, 2068, 1393, 1391, 1389, 1388, 1387, 2312, 1386,
|
|
|
|
|
/* 2080 */ 747, 1385, 808, 2345, 810, 1382, 2383, 393, 1970, 176,
|
|
|
|
|
/* 2090 */ 2347, 751, 2349, 2350, 746, 394, 741, 1961, 2364, 1381,
|
|
|
|
|
/* 2100 */ 1379, 395, 1959, 396, 1932, 633, 636, 1931, 1930, 1929,
|
|
|
|
|
/* 2110 */ 2312, 640, 747, 642, 1928, 644, 117, 1632, 2267, 2345,
|
|
|
|
|
/* 2120 */ 1634, 1631, 2383, 57, 278, 357, 2347, 751, 2349, 2350,
|
|
|
|
|
/* 2130 */ 746, 29, 741, 69, 2346, 1636, 2263, 1608, 1612, 58,
|
|
|
|
|
/* 2140 */ 2253, 1610, 663, 169, 2537, 664, 2240, 748, 2239, 669,
|
|
|
|
|
/* 2150 */ 2346, 2345, 2520, 1863, 2383, 20, 17, 356, 2347, 751,
|
|
|
|
|
/* 2160 */ 2349, 2350, 746, 748, 741, 1587, 2402, 282, 2346, 1586,
|
|
|
|
|
/* 2170 */ 671, 31, 21, 285, 6, 2364, 679, 7, 287, 200,
|
|
|
|
|
/* 2180 */ 416, 748, 2333, 22, 177, 681, 1844, 2312, 189, 747,
|
|
|
|
|
/* 2190 */ 33, 2364, 188, 32, 67, 24, 418, 1833, 80, 2238,
|
|
|
|
|
/* 2200 */ 1883, 23, 1884, 2312, 1878, 747, 1877, 405, 1882, 2364,
|
|
|
|
|
/* 2210 */ 18, 1881, 406, 1804, 1803, 301, 59, 60, 2217, 101,
|
|
|
|
|
/* 2220 */ 102, 2312, 180, 747, 25, 2216, 108, 103, 2345, 308,
|
|
|
|
|
/* 2230 */ 191, 2383, 314, 2346, 357, 2347, 751, 2349, 2350, 746,
|
|
|
|
|
/* 2240 */ 1839, 741, 70, 722, 2345, 104, 748, 2383, 26, 319,
|
|
|
|
|
/* 2250 */ 357, 2347, 751, 2349, 2350, 746, 1756, 741, 1755, 13,
|
|
|
|
|
/* 2260 */ 11, 1675, 650, 1766, 1734, 2383, 2386, 2346, 352, 2347,
|
|
|
|
|
/* 2270 */ 751, 2349, 2350, 746, 2364, 741, 1732, 181, 192, 316,
|
|
|
|
|
/* 2280 */ 748, 1709, 752, 740, 39, 754, 2312, 1731, 747, 1701,
|
|
|
|
|
/* 2290 */ 2346, 750, 1457, 16, 27, 28, 1341, 1466, 419, 756,
|
|
|
|
|
/* 2300 */ 758, 1463, 759, 748, 1462, 761, 1459, 764, 2364, 762,
|
|
|
|
|
/* 2310 */ 765, 767, 1453, 768, 770, 1451, 771, 109, 1456, 322,
|
|
|
|
|
/* 2320 */ 2312, 110, 747, 77, 1475, 1455, 1471, 2345, 1376, 1454,
|
|
|
|
|
/* 2330 */ 2383, 2364, 1373, 342, 2347, 751, 2349, 2350, 746, 1372,
|
|
|
|
|
/* 2340 */ 741, 207, 785, 2312, 1371, 747, 1370, 2346, 1368, 1366,
|
|
|
|
|
/* 2350 */ 1365, 1364, 796, 798, 1402, 1362, 1401, 1361, 1360, 1359,
|
|
|
|
|
/* 2360 */ 748, 2345, 1358, 1357, 2383, 1356, 1398, 341, 2347, 751,
|
|
|
|
|
/* 2370 */ 2349, 2350, 746, 1396, 741, 1353, 1352, 1349, 1348, 1347,
|
|
|
|
|
/* 2380 */ 1346, 1980, 818, 819, 2345, 823, 820, 2383, 2364, 1978,
|
|
|
|
|
/* 2390 */ 343, 2347, 751, 2349, 2350, 746, 822, 741, 824, 1976,
|
|
|
|
|
/* 2400 */ 2312, 826, 747, 827, 828, 1973, 830, 832, 1953, 831,
|
|
|
|
|
/* 2410 */ 834, 1285, 1927, 1273, 326, 838, 840, 1897, 1661, 336,
|
|
|
|
|
/* 2420 */ 2346, 843, 844, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2430 */ 1897, 1897, 1897, 748, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2440 */ 2346, 2345, 1897, 1897, 2383, 1897, 1897, 349, 2347, 751,
|
|
|
|
|
/* 2450 */ 2349, 2350, 746, 748, 741, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2460 */ 1897, 2364, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2470 */ 1897, 1897, 1897, 2312, 1897, 747, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2480 */ 1897, 2364, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2490 */ 1897, 1897, 1897, 2312, 1897, 747, 1897, 1897, 2346, 1897,
|
|
|
|
|
/* 2500 */ 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2510 */ 1897, 748, 1897, 2346, 2345, 1897, 1897, 2383, 1897, 1897,
|
|
|
|
|
/* 2520 */ 353, 2347, 751, 2349, 2350, 746, 748, 741, 1897, 1897,
|
|
|
|
|
/* 2530 */ 1897, 1897, 1897, 1897, 2345, 2346, 1897, 2383, 1897, 2364,
|
|
|
|
|
/* 2540 */ 345, 2347, 751, 2349, 2350, 746, 1897, 741, 748, 1897,
|
|
|
|
|
/* 2550 */ 1897, 2312, 1897, 747, 2364, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2560 */ 1897, 1897, 1897, 1897, 1897, 1897, 2312, 1897, 747, 1897,
|
|
|
|
|
/* 2570 */ 1897, 1897, 1897, 1897, 1897, 1897, 2364, 1897, 1897, 1897,
|
|
|
|
|
/* 2580 */ 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 2312, 1897,
|
|
|
|
|
/* 2590 */ 747, 1897, 2345, 2346, 1897, 2383, 1897, 1897, 354, 2347,
|
|
|
|
|
/* 2600 */ 751, 2349, 2350, 746, 1897, 741, 748, 2345, 2346, 1897,
|
|
|
|
|
/* 2610 */ 2383, 1897, 1897, 346, 2347, 751, 2349, 2350, 746, 1897,
|
|
|
|
|
/* 2620 */ 741, 748, 1897, 1897, 1897, 1897, 1897, 1897, 2346, 2345,
|
|
|
|
|
/* 2630 */ 1897, 1897, 2383, 1897, 2364, 355, 2347, 751, 2349, 2350,
|
|
|
|
|
/* 2640 */ 746, 748, 741, 1897, 1897, 1897, 2312, 1897, 747, 2364,
|
|
|
|
|
/* 2650 */ 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2660 */ 1897, 2312, 1897, 747, 1897, 1897, 1897, 1897, 1897, 2364,
|
|
|
|
|
/* 2670 */ 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2680 */ 1897, 2312, 1897, 747, 1897, 1897, 1897, 2345, 1897, 1897,
|
|
|
|
|
/* 2690 */ 2383, 1897, 1897, 347, 2347, 751, 2349, 2350, 746, 1897,
|
|
|
|
|
/* 2700 */ 741, 2346, 2345, 1897, 1897, 2383, 1897, 1897, 361, 2347,
|
|
|
|
|
/* 2710 */ 751, 2349, 2350, 746, 748, 741, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2720 */ 1897, 2346, 2345, 1897, 1897, 2383, 1897, 1897, 362, 2347,
|
|
|
|
|
/* 2730 */ 751, 2349, 2350, 746, 748, 741, 1897, 1897, 2346, 1897,
|
|
|
|
|
/* 2740 */ 1897, 1897, 2364, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2750 */ 1897, 748, 1897, 1897, 2312, 1897, 747, 1897, 1897, 1897,
|
|
|
|
|
/* 2760 */ 1897, 1897, 2364, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2770 */ 1897, 1897, 1897, 1897, 2312, 1897, 747, 1897, 1897, 2364,
|
|
|
|
|
/* 2780 */ 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2790 */ 1897, 2312, 1897, 747, 1897, 2345, 1897, 1897, 2383, 1897,
|
|
|
|
|
/* 2800 */ 1897, 2358, 2347, 751, 2349, 2350, 746, 2346, 741, 1897,
|
|
|
|
|
/* 2810 */ 1897, 1897, 1897, 1897, 1897, 2345, 1897, 1897, 2383, 1897,
|
|
|
|
|
/* 2820 */ 748, 2357, 2347, 751, 2349, 2350, 746, 1897, 741, 1897,
|
|
|
|
|
/* 2830 */ 1897, 1897, 2345, 1897, 1897, 2383, 1897, 1897, 2356, 2347,
|
|
|
|
|
/* 2840 */ 751, 2349, 2350, 746, 1897, 741, 1897, 1897, 2364, 1897,
|
|
|
|
|
/* 2850 */ 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2860 */ 2312, 1897, 747, 1897, 1897, 2346, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2870 */ 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 748, 1897,
|
|
|
|
|
/* 2880 */ 2346, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2890 */ 1897, 1897, 1897, 748, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2900 */ 1897, 2345, 2346, 1897, 2383, 1897, 2364, 377, 2347, 751,
|
|
|
|
|
/* 2910 */ 2349, 2350, 746, 1897, 741, 748, 1897, 1897, 2312, 1897,
|
|
|
|
|
/* 2920 */ 747, 2364, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2930 */ 1897, 1897, 1897, 2312, 1897, 747, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2940 */ 1897, 1897, 1897, 2364, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 2950 */ 1897, 1897, 1897, 1897, 1897, 2312, 1897, 747, 1897, 2345,
|
|
|
|
|
/* 2960 */ 2346, 1897, 2383, 1897, 1897, 378, 2347, 751, 2349, 2350,
|
|
|
|
|
/* 2970 */ 746, 1897, 741, 748, 2345, 2346, 1897, 2383, 1897, 1897,
|
|
|
|
|
/* 2980 */ 374, 2347, 751, 2349, 2350, 746, 1897, 741, 748, 1897,
|
|
|
|
|
/* 2990 */ 1897, 1897, 1897, 1897, 1897, 1897, 2345, 1897, 1897, 2383,
|
|
|
|
|
/* 3000 */ 1897, 2364, 379, 2347, 751, 2349, 2350, 746, 1897, 741,
|
|
|
|
|
/* 3010 */ 1897, 1897, 1897, 2312, 1897, 747, 2364, 1897, 1897, 1897,
|
|
|
|
|
/* 3020 */ 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 2312, 1897,
|
|
|
|
|
/* 3030 */ 747, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 3040 */ 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897, 1897,
|
|
|
|
|
/* 3050 */ 1897, 1897, 1897, 1897, 749, 1897, 1897, 2383, 1897, 1897,
|
|
|
|
|
/* 3060 */ 352, 2347, 751, 2349, 2350, 746, 1897, 741, 1897, 2345,
|
|
|
|
|
/* 3070 */ 1897, 1897, 2383, 1897, 1897, 351, 2347, 751, 2349, 2350,
|
|
|
|
|
/* 3080 */ 746, 1897, 741,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
static const YYCODETYPE yy_lookahead[] = {
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 0 */ 353, 382, 360, 395, 429, 363, 364, 1, 2, 434,
|
|
|
|
|
/* 10 */ 0, 429, 12, 13, 14, 396, 479, 2, 386, 482,
|
|
|
|
|
/* 20 */ 20, 20, 22, 8, 9, 406, 394, 12, 13, 14,
|
|
|
|
|
/* 30 */ 15, 16, 395, 21, 402, 35, 0, 37, 501, 365,
|
|
|
|
|
/* 40 */ 366, 479, 505, 506, 482, 353, 468, 469, 36, 365,
|
|
|
|
|
/* 50 */ 38, 39, 40, 406, 479, 365, 366, 482, 366, 385,
|
|
|
|
|
/* 60 */ 372, 479, 500, 501, 482, 65, 392, 505, 506, 450,
|
|
|
|
|
/* 70 */ 451, 71, 352, 408, 354, 500, 501, 389, 78, 460,
|
|
|
|
|
/* 80 */ 505, 506, 500, 501, 408, 397, 394, 505, 506, 8,
|
|
|
|
|
/* 90 */ 9, 426, 427, 12, 13, 14, 15, 16, 406, 423,
|
|
|
|
|
/* 100 */ 408, 70, 426, 427, 104, 421, 422, 107, 365, 73,
|
|
|
|
|
/* 110 */ 74, 75, 76, 77, 108, 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-01-18 09:49:11 +00:00
|
|
|
/* 130 */ 94, 95, 96, 97, 98, 99, 100, 0, 20, 447,
|
|
|
|
|
/* 140 */ 22, 107, 450, 143, 144, 453, 454, 455, 456, 457,
|
|
|
|
|
/* 150 */ 458, 20, 460, 410, 411, 37, 413, 465, 360, 467,
|
|
|
|
|
/* 160 */ 417, 363, 364, 471, 472, 475, 476, 477, 14, 479,
|
|
|
|
|
/* 170 */ 480, 161, 482, 55, 20, 165, 394, 394, 486, 479,
|
|
|
|
|
/* 180 */ 180, 181, 482, 173, 401, 20, 494, 187, 188, 108,
|
|
|
|
|
/* 190 */ 500, 501, 409, 365, 366, 505, 506, 0, 416, 186,
|
|
|
|
|
/* 200 */ 418, 501, 202, 107, 204, 505, 506, 70, 393, 365,
|
|
|
|
|
/* 210 */ 366, 8, 9, 365, 366, 12, 13, 14, 15, 16,
|
|
|
|
|
/* 220 */ 405, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
|
|
|
/* 230 */ 20, 365, 366, 385, 234, 235, 236, 107, 238, 239,
|
2023-10-09 10:34:08 +00:00
|
|
|
/* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 250 */ 250, 251, 252, 253, 254, 255, 12, 13, 20, 3,
|
|
|
|
|
/* 260 */ 20, 18, 479, 20, 20, 482, 22, 365, 366, 175,
|
|
|
|
|
/* 270 */ 27, 361, 353, 30, 71, 365, 20, 367, 35, 35,
|
|
|
|
|
/* 280 */ 414, 37, 366, 500, 501, 366, 138, 385, 505, 506,
|
|
|
|
|
/* 290 */ 142, 278, 279, 280, 51, 69, 53, 201, 20, 203,
|
|
|
|
|
/* 300 */ 206, 58, 59, 475, 476, 477, 272, 479, 480, 65,
|
|
|
|
|
/* 310 */ 394, 365, 69, 394, 20, 71, 104, 107, 115, 475,
|
|
|
|
|
/* 320 */ 476, 477, 78, 479, 480, 406, 4, 408, 33, 233,
|
|
|
|
|
/* 330 */ 118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
|
|
|
|
|
/* 340 */ 45, 129, 130, 131, 132, 133, 134, 135, 104, 106,
|
|
|
|
|
/* 350 */ 20, 107, 136, 137, 138, 139, 140, 141, 142, 211,
|
|
|
|
|
/* 360 */ 117, 0, 214, 452, 108, 217, 447, 219, 272, 450,
|
|
|
|
|
/* 370 */ 0, 455, 453, 454, 455, 456, 457, 458, 459, 460,
|
|
|
|
|
/* 380 */ 461, 462, 179, 143, 144, 439, 440, 143, 144, 478,
|
|
|
|
|
/* 390 */ 147, 148, 353, 150, 151, 152, 153, 154, 155, 156,
|
|
|
|
|
/* 400 */ 157, 158, 272, 365, 366, 162, 163, 164, 165, 166,
|
|
|
|
|
/* 410 */ 167, 168, 42, 170, 171, 172, 13, 365, 366, 176,
|
|
|
|
|
/* 420 */ 177, 178, 375, 197, 180, 181, 183, 187, 188, 107,
|
|
|
|
|
/* 430 */ 383, 187, 188, 14, 73, 74, 75, 385, 182, 20,
|
|
|
|
|
/* 440 */ 20, 80, 81, 82, 392, 406, 202, 86, 204, 394,
|
|
|
|
|
/* 450 */ 224, 225, 91, 92, 93, 94, 365, 366, 97, 20,
|
|
|
|
|
/* 460 */ 182, 100, 259, 260, 261, 262, 263, 264, 265, 266,
|
|
|
|
|
/* 470 */ 267, 268, 269, 418, 180, 181, 39, 40, 234, 235,
|
|
|
|
|
/* 480 */ 236, 78, 238, 239, 240, 241, 242, 243, 244, 245,
|
|
|
|
|
/* 490 */ 246, 247, 248, 249, 250, 251, 252, 253, 254, 255,
|
|
|
|
|
/* 500 */ 256, 12, 13, 353, 71, 414, 407, 408, 382, 20,
|
|
|
|
|
/* 510 */ 180, 22, 474, 475, 476, 477, 366, 479, 480, 361,
|
|
|
|
|
/* 520 */ 33, 20, 396, 365, 35, 367, 37, 107, 256, 2,
|
|
|
|
|
/* 530 */ 258, 382, 406, 374, 353, 8, 9, 365, 366, 12,
|
|
|
|
|
/* 540 */ 13, 14, 15, 16, 394, 396, 107, 366, 111, 112,
|
|
|
|
|
/* 550 */ 391, 114, 365, 366, 65, 406, 406, 385, 408, 400,
|
|
|
|
|
/* 560 */ 71, 73, 74, 75, 365, 366, 236, 78, 80, 81,
|
|
|
|
|
/* 570 */ 82, 20, 385, 136, 86, 394, 450, 140, 3, 91,
|
|
|
|
|
/* 580 */ 92, 93, 94, 394, 385, 97, 460, 406, 100, 408,
|
|
|
|
|
/* 590 */ 401, 370, 371, 104, 272, 108, 107, 447, 409, 450,
|
|
|
|
|
/* 600 */ 450, 353, 70, 453, 454, 455, 456, 457, 458, 460,
|
|
|
|
|
/* 610 */ 460, 56, 57, 463, 366, 465, 466, 467, 42, 8,
|
|
|
|
|
/* 620 */ 9, 471, 472, 12, 13, 14, 15, 16, 447, 117,
|
|
|
|
|
/* 630 */ 350, 450, 143, 144, 453, 454, 455, 456, 457, 458,
|
|
|
|
|
/* 640 */ 390, 460, 394, 14, 143, 144, 465, 365, 467, 20,
|
|
|
|
|
/* 650 */ 365, 366, 471, 472, 406, 21, 408, 0, 24, 25,
|
|
|
|
|
/* 660 */ 26, 27, 28, 29, 30, 31, 32, 234, 404, 180,
|
|
|
|
|
/* 670 */ 181, 407, 408, 14, 452, 494, 187, 188, 21, 20,
|
|
|
|
|
/* 680 */ 256, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
|
|
|
/* 690 */ 50, 202, 272, 204, 444, 447, 365, 366, 450, 414,
|
|
|
|
|
/* 700 */ 478, 453, 454, 455, 456, 457, 458, 353, 460, 429,
|
|
|
|
|
/* 710 */ 386, 272, 117, 465, 434, 467, 385, 33, 394, 471,
|
|
|
|
|
/* 720 */ 472, 439, 440, 234, 235, 236, 402, 238, 239, 240,
|
|
|
|
|
/* 730 */ 241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
|
|
|
|
|
/* 740 */ 251, 252, 253, 254, 255, 12, 13, 14, 353, 386,
|
|
|
|
|
/* 750 */ 12, 13, 4, 20, 22, 22, 22, 394, 386, 479,
|
|
|
|
|
/* 760 */ 406, 366, 482, 368, 401, 402, 394, 19, 35, 37,
|
|
|
|
|
/* 770 */ 37, 37, 409, 0, 402, 37, 365, 366, 353, 372,
|
|
|
|
|
/* 780 */ 500, 501, 374, 35, 179, 505, 506, 236, 20, 394,
|
|
|
|
|
/* 790 */ 22, 366, 108, 368, 65, 394, 385, 20, 65, 51,
|
|
|
|
|
/* 800 */ 37, 406, 401, 408, 397, 194, 58, 59, 400, 180,
|
|
|
|
|
/* 810 */ 409, 78, 78, 65, 12, 13, 14, 15, 16, 394,
|
|
|
|
|
/* 820 */ 8, 9, 182, 55, 12, 13, 14, 15, 16, 87,
|
|
|
|
|
/* 830 */ 190, 406, 20, 408, 20, 106, 104, 104, 109, 180,
|
|
|
|
|
/* 840 */ 107, 78, 447, 365, 366, 450, 353, 271, 453, 454,
|
|
|
|
|
/* 850 */ 455, 456, 457, 458, 106, 460, 22, 109, 78, 366,
|
|
|
|
|
/* 860 */ 465, 368, 467, 385, 259, 236, 471, 472, 293, 365,
|
|
|
|
|
/* 870 */ 366, 37, 447, 234, 269, 450, 143, 144, 453, 454,
|
|
|
|
|
/* 880 */ 455, 456, 457, 458, 137, 460, 353, 394, 0, 385,
|
|
|
|
|
/* 890 */ 465, 149, 467, 394, 51, 236, 471, 472, 4, 406,
|
|
|
|
|
/* 900 */ 401, 408, 387, 60, 175, 390, 63, 64, 409, 298,
|
|
|
|
|
/* 910 */ 365, 366, 78, 180, 181, 173, 174, 353, 34, 22,
|
|
|
|
|
/* 920 */ 187, 188, 283, 284, 285, 286, 287, 288, 289, 394,
|
|
|
|
|
/* 930 */ 385, 23, 159, 160, 37, 202, 401, 204, 104, 406,
|
|
|
|
|
/* 940 */ 447, 136, 204, 450, 409, 140, 453, 454, 455, 456,
|
|
|
|
|
/* 950 */ 457, 458, 353, 460, 353, 47, 48, 353, 465, 182,
|
|
|
|
|
/* 960 */ 467, 395, 215, 216, 471, 472, 395, 234, 235, 236,
|
|
|
|
|
/* 970 */ 406, 238, 239, 240, 241, 242, 243, 244, 245, 246,
|
|
|
|
|
/* 980 */ 247, 248, 249, 250, 251, 252, 253, 254, 255, 12,
|
|
|
|
|
/* 990 */ 13, 353, 370, 371, 182, 0, 182, 20, 464, 22,
|
|
|
|
|
/* 1000 */ 466, 104, 379, 380, 366, 406, 368, 406, 381, 395,
|
|
|
|
|
/* 1010 */ 406, 384, 35, 236, 37, 8, 9, 365, 366, 12,
|
|
|
|
|
/* 1020 */ 13, 14, 15, 16, 136, 137, 138, 139, 140, 141,
|
|
|
|
|
/* 1030 */ 142, 394, 394, 14, 15, 16, 202, 385, 204, 402,
|
|
|
|
|
/* 1040 */ 33, 452, 65, 395, 406, 20, 408, 353, 236, 20,
|
|
|
|
|
/* 1050 */ 236, 137, 138, 8, 9, 78, 142, 12, 13, 14,
|
|
|
|
|
/* 1060 */ 15, 16, 365, 366, 4, 353, 0, 478, 234, 235,
|
|
|
|
|
/* 1070 */ 8, 9, 353, 353, 12, 13, 14, 15, 16, 365,
|
|
|
|
|
/* 1080 */ 366, 104, 385, 23, 107, 447, 366, 463, 450, 353,
|
|
|
|
|
/* 1090 */ 466, 453, 454, 455, 456, 457, 458, 394, 460, 385,
|
|
|
|
|
/* 1100 */ 406, 33, 366, 465, 368, 467, 46, 47, 48, 471,
|
|
|
|
|
/* 1110 */ 472, 464, 409, 466, 394, 108, 379, 380, 406, 399,
|
|
|
|
|
/* 1120 */ 143, 144, 0, 365, 366, 406, 406, 435, 408, 353,
|
|
|
|
|
/* 1130 */ 394, 136, 137, 138, 139, 140, 141, 142, 395, 394,
|
|
|
|
|
/* 1140 */ 365, 366, 406, 385, 408, 117, 365, 366, 394, 365,
|
|
|
|
|
/* 1150 */ 366, 365, 366, 108, 409, 33, 353, 180, 181, 403,
|
|
|
|
|
/* 1160 */ 385, 353, 406, 409, 187, 188, 385, 447, 274, 385,
|
|
|
|
|
/* 1170 */ 450, 385, 383, 453, 454, 455, 456, 457, 458, 202,
|
|
|
|
|
/* 1180 */ 460, 204, 406, 447, 353, 353, 450, 270, 271, 453,
|
|
|
|
|
/* 1190 */ 454, 455, 456, 457, 458, 354, 460, 169, 429, 353,
|
|
|
|
|
/* 1200 */ 429, 465, 403, 467, 353, 406, 353, 471, 472, 406,
|
|
|
|
|
/* 1210 */ 65, 234, 235, 236, 406, 238, 239, 240, 241, 242,
|
|
|
|
|
/* 1220 */ 243, 244, 245, 246, 247, 248, 249, 250, 251, 252,
|
|
|
|
|
/* 1230 */ 253, 254, 255, 12, 13, 33, 403, 406, 406, 406,
|
|
|
|
|
/* 1240 */ 0, 20, 13, 22, 182, 356, 357, 45, 479, 0,
|
|
|
|
|
/* 1250 */ 479, 482, 406, 482, 109, 353, 35, 406, 37, 406,
|
|
|
|
|
/* 1260 */ 13, 236, 22, 35, 110, 236, 37, 113, 366, 500,
|
|
|
|
|
/* 1270 */ 501, 500, 501, 0, 505, 506, 505, 506, 110, 51,
|
|
|
|
|
/* 1280 */ 110, 113, 110, 113, 37, 113, 65, 0, 60, 61,
|
|
|
|
|
/* 1290 */ 62, 63, 0, 65, 228, 22, 394, 8, 9, 78,
|
|
|
|
|
/* 1300 */ 51, 12, 13, 14, 15, 16, 419, 33, 406, 22,
|
|
|
|
|
/* 1310 */ 408, 218, 33, 220, 22, 33, 33, 49, 18, 33,
|
|
|
|
|
/* 1320 */ 143, 144, 37, 23, 33, 104, 1, 2, 107, 33,
|
|
|
|
|
/* 1330 */ 33, 33, 353, 509, 106, 498, 37, 109, 37, 429,
|
|
|
|
|
/* 1340 */ 40, 41, 33, 33, 44, 366, 33, 368, 13, 447,
|
|
|
|
|
/* 1350 */ 13, 369, 450, 33, 54, 453, 454, 455, 456, 457,
|
|
|
|
|
/* 1360 */ 458, 107, 460, 295, 143, 144, 66, 67, 68, 69,
|
|
|
|
|
/* 1370 */ 116, 491, 37, 394, 37, 107, 382, 429, 394, 78,
|
|
|
|
|
/* 1380 */ 382, 419, 108, 33, 364, 406, 419, 408, 497, 479,
|
|
|
|
|
/* 1390 */ 108, 108, 482, 497, 108, 497, 428, 495, 496, 108,
|
|
|
|
|
/* 1400 */ 497, 180, 181, 175, 108, 108, 108, 107, 187, 188,
|
|
|
|
|
/* 1410 */ 500, 501, 184, 185, 366, 505, 506, 108, 108, 191,
|
|
|
|
|
/* 1420 */ 192, 108, 369, 202, 419, 204, 447, 479, 108, 450,
|
|
|
|
|
/* 1430 */ 482, 0, 453, 454, 455, 456, 457, 458, 210, 460,
|
|
|
|
|
/* 1440 */ 33, 33, 405, 33, 465, 145, 467, 33, 500, 501,
|
|
|
|
|
/* 1450 */ 471, 472, 33, 505, 506, 234, 235, 236, 108, 238,
|
|
|
|
|
/* 1460 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
|
|
|
/* 1470 */ 249, 250, 251, 252, 253, 254, 255, 436, 419, 473,
|
|
|
|
|
/* 1480 */ 419, 12, 13, 52, 353, 481, 484, 502, 384, 204,
|
|
|
|
|
/* 1490 */ 275, 22, 51, 430, 194, 195, 196, 366, 449, 199,
|
|
|
|
|
/* 1500 */ 42, 20, 448, 204, 35, 441, 37, 217, 374, 374,
|
|
|
|
|
/* 1510 */ 441, 353, 212, 213, 200, 108, 108, 446, 108, 432,
|
|
|
|
|
/* 1520 */ 20, 365, 108, 223, 366, 394, 226, 108, 20, 229,
|
|
|
|
|
/* 1530 */ 230, 231, 232, 233, 65, 366, 45, 406, 415, 408,
|
|
|
|
|
/* 1540 */ 366, 415, 179, 365, 412, 366, 365, 78, 415, 412,
|
|
|
|
|
/* 1550 */ 412, 105, 394, 378, 103, 365, 102, 377, 376, 365,
|
|
|
|
|
/* 1560 */ 365, 365, 20, 358, 406, 50, 408, 358, 362, 362,
|
|
|
|
|
/* 1570 */ 441, 374, 272, 104, 374, 20, 297, 374, 447, 408,
|
|
|
|
|
/* 1580 */ 353, 450, 20, 367, 453, 454, 455, 456, 457, 458,
|
|
|
|
|
/* 1590 */ 20, 460, 431, 366, 374, 20, 465, 367, 467, 374,
|
|
|
|
|
/* 1600 */ 374, 365, 471, 472, 358, 447, 422, 374, 450, 374,
|
|
|
|
|
/* 1610 */ 358, 453, 454, 455, 456, 457, 458, 394, 460, 356,
|
|
|
|
|
/* 1620 */ 365, 394, 356, 465, 406, 467, 394, 221, 394, 471,
|
|
|
|
|
/* 1630 */ 472, 394, 394, 406, 445, 408, 394, 394, 394, 394,
|
|
|
|
|
/* 1640 */ 107, 443, 394, 372, 394, 406, 20, 406, 208, 441,
|
|
|
|
|
/* 1650 */ 440, 438, 207, 372, 437, 282, 490, 281, 365, 408,
|
|
|
|
|
/* 1660 */ 290, 430, 406, 490, 193, 276, 299, 292, 291, 493,
|
|
|
|
|
/* 1670 */ 510, 202, 487, 204, 447, 492, 490, 450, 296, 488,
|
|
|
|
|
/* 1680 */ 453, 454, 455, 456, 457, 458, 424, 460, 424, 430,
|
|
|
|
|
/* 1690 */ 489, 504, 294, 271, 467, 353, 1, 366, 471, 472,
|
|
|
|
|
/* 1700 */ 20, 117, 503, 234, 235, 452, 273, 485, 366, 406,
|
|
|
|
|
/* 1710 */ 367, 372, 372, 406, 19, 185, 372, 248, 249, 250,
|
|
|
|
|
/* 1720 */ 251, 252, 253, 254, 406, 406, 424, 353, 424, 406,
|
|
|
|
|
/* 1730 */ 35, 420, 372, 406, 366, 390, 394, 107, 107, 470,
|
|
|
|
|
/* 1740 */ 366, 483, 22, 365, 398, 355, 51, 38, 406, 358,
|
|
|
|
|
/* 1750 */ 408, 372, 359, 425, 433, 60, 61, 62, 63, 442,
|
|
|
|
|
/* 1760 */ 65, 425, 353, 351, 0, 373, 0, 0, 394, 388,
|
|
|
|
|
/* 1770 */ 45, 388, 388, 0, 37, 366, 227, 37, 37, 37,
|
|
|
|
|
/* 1780 */ 406, 227, 408, 0, 37, 37, 227, 37, 0, 447,
|
|
|
|
|
/* 1790 */ 227, 0, 450, 37, 0, 453, 454, 455, 456, 457,
|
|
|
|
|
/* 1800 */ 458, 106, 460, 394, 109, 37, 0, 22, 0, 467,
|
|
|
|
|
/* 1810 */ 222, 37, 0, 471, 472, 406, 210, 408, 0, 210,
|
|
|
|
|
/* 1820 */ 204, 447, 211, 202, 450, 0, 0, 453, 454, 455,
|
|
|
|
|
/* 1830 */ 456, 457, 458, 0, 460, 353, 141, 198, 197, 0,
|
|
|
|
|
/* 1840 */ 0, 467, 148, 0, 49, 471, 472, 49, 366, 0,
|
|
|
|
|
/* 1850 */ 37, 0, 51, 37, 0, 0, 447, 0, 353, 450,
|
|
|
|
|
/* 1860 */ 49, 0, 453, 454, 455, 456, 457, 458, 45, 460,
|
|
|
|
|
/* 1870 */ 0, 366, 0, 49, 0, 0, 394, 0, 353, 184,
|
|
|
|
|
/* 1880 */ 165, 37, 0, 165, 0, 0, 191, 0, 406, 0,
|
|
|
|
|
/* 1890 */ 408, 366, 0, 353, 0, 0, 0, 0, 0, 394,
|
|
|
|
|
/* 1900 */ 0, 0, 0, 0, 0, 210, 366, 0, 0, 0,
|
|
|
|
|
/* 1910 */ 0, 406, 0, 408, 49, 0, 507, 508, 0, 394,
|
|
|
|
|
/* 1920 */ 0, 45, 0, 0, 399, 0, 0, 0, 0, 447,
|
|
|
|
|
/* 1930 */ 0, 406, 450, 408, 394, 453, 454, 455, 456, 457,
|
|
|
|
|
/* 1940 */ 458, 22, 460, 0, 148, 0, 406, 147, 408, 467,
|
|
|
|
|
/* 1950 */ 146, 0, 447, 0, 472, 450, 22, 22, 453, 454,
|
|
|
|
|
/* 1960 */ 455, 456, 457, 458, 0, 460, 50, 50, 37, 0,
|
|
|
|
|
/* 1970 */ 65, 65, 447, 0, 0, 450, 65, 0, 453, 454,
|
|
|
|
|
/* 1980 */ 455, 456, 457, 458, 37, 460, 42, 447, 0, 353,
|
|
|
|
|
/* 1990 */ 450, 51, 37, 453, 454, 455, 456, 457, 458, 51,
|
|
|
|
|
/* 2000 */ 460, 496, 366, 42, 0, 37, 0, 51, 42, 37,
|
|
|
|
|
/* 2010 */ 0, 33, 45, 42, 49, 14, 0, 0, 42, 49,
|
|
|
|
|
/* 2020 */ 0, 0, 43, 0, 49, 353, 42, 193, 0, 49,
|
|
|
|
|
/* 2030 */ 394, 0, 0, 0, 72, 0, 37, 51, 366, 499,
|
|
|
|
|
/* 2040 */ 42, 0, 406, 51, 408, 37, 0, 42, 37, 42,
|
|
|
|
|
/* 2050 */ 0, 51, 37, 51, 42, 0, 0, 353, 0, 0,
|
|
|
|
|
/* 2060 */ 0, 0, 37, 113, 115, 22, 394, 37, 0, 22,
|
|
|
|
|
/* 2070 */ 366, 399, 0, 37, 37, 37, 37, 37, 406, 37,
|
|
|
|
|
/* 2080 */ 408, 37, 33, 447, 33, 37, 450, 22, 0, 453,
|
|
|
|
|
/* 2090 */ 454, 455, 456, 457, 458, 22, 460, 0, 394, 37,
|
|
|
|
|
/* 2100 */ 37, 22, 0, 22, 0, 53, 37, 0, 0, 0,
|
|
|
|
|
/* 2110 */ 406, 37, 408, 37, 0, 22, 20, 37, 0, 447,
|
|
|
|
|
/* 2120 */ 37, 37, 450, 182, 49, 453, 454, 455, 456, 457,
|
|
|
|
|
/* 2130 */ 458, 107, 460, 107, 353, 108, 0, 37, 209, 182,
|
|
|
|
|
/* 2140 */ 0, 22, 22, 205, 508, 182, 0, 366, 0, 189,
|
|
|
|
|
/* 2150 */ 353, 447, 3, 108, 450, 33, 277, 453, 454, 455,
|
|
|
|
|
/* 2160 */ 456, 457, 458, 366, 460, 182, 462, 185, 353, 182,
|
|
|
|
|
/* 2170 */ 189, 107, 33, 107, 50, 394, 105, 50, 108, 49,
|
|
|
|
|
/* 2180 */ 399, 366, 49, 33, 107, 103, 108, 406, 33, 408,
|
|
|
|
|
/* 2190 */ 33, 394, 107, 107, 3, 33, 399, 108, 107, 0,
|
|
|
|
|
/* 2200 */ 108, 277, 108, 406, 37, 408, 37, 37, 37, 394,
|
|
|
|
|
/* 2210 */ 277, 37, 37, 108, 108, 49, 270, 33, 0, 107,
|
|
|
|
|
/* 2220 */ 42, 406, 49, 408, 107, 0, 116, 42, 447, 108,
|
|
|
|
|
/* 2230 */ 107, 450, 107, 353, 453, 454, 455, 456, 457, 458,
|
|
|
|
|
/* 2240 */ 108, 460, 107, 186, 447, 107, 366, 450, 33, 49,
|
|
|
|
|
/* 2250 */ 453, 454, 455, 456, 457, 458, 105, 460, 105, 2,
|
|
|
|
|
/* 2260 */ 257, 22, 447, 234, 108, 450, 107, 353, 453, 454,
|
|
|
|
|
/* 2270 */ 455, 456, 457, 458, 394, 460, 108, 49, 49, 184,
|
|
|
|
|
/* 2280 */ 366, 22, 117, 107, 107, 37, 406, 108, 408, 108,
|
|
|
|
|
/* 2290 */ 353, 237, 128, 107, 107, 107, 72, 108, 37, 107,
|
|
|
|
|
/* 2300 */ 37, 108, 107, 366, 108, 37, 108, 37, 394, 107,
|
|
|
|
|
/* 2310 */ 107, 37, 108, 107, 37, 108, 107, 107, 128, 33,
|
|
|
|
|
/* 2320 */ 406, 107, 408, 107, 37, 128, 22, 447, 37, 128,
|
|
|
|
|
/* 2330 */ 450, 394, 37, 453, 454, 455, 456, 457, 458, 37,
|
|
|
|
|
/* 2340 */ 460, 33, 71, 406, 37, 408, 37, 353, 37, 37,
|
|
|
|
|
/* 2350 */ 37, 37, 101, 101, 78, 37, 78, 37, 37, 22,
|
|
|
|
|
/* 2360 */ 366, 447, 37, 37, 450, 37, 78, 453, 454, 455,
|
|
|
|
|
/* 2370 */ 456, 457, 458, 37, 460, 37, 37, 37, 37, 22,
|
|
|
|
|
/* 2380 */ 37, 0, 37, 51, 447, 51, 42, 450, 394, 0,
|
|
|
|
|
/* 2390 */ 453, 454, 455, 456, 457, 458, 37, 460, 42, 0,
|
|
|
|
|
/* 2400 */ 406, 37, 408, 51, 42, 0, 37, 42, 0, 51,
|
|
|
|
|
/* 2410 */ 37, 37, 0, 22, 22, 33, 21, 511, 22, 22,
|
|
|
|
|
/* 2420 */ 353, 21, 20, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2430 */ 511, 511, 511, 366, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2440 */ 353, 447, 511, 511, 450, 511, 511, 453, 454, 455,
|
|
|
|
|
/* 2450 */ 456, 457, 458, 366, 460, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2460 */ 511, 394, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2470 */ 511, 511, 511, 406, 511, 408, 511, 511, 511, 511,
|
|
|
|
|
/* 2480 */ 511, 394, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2490 */ 511, 511, 511, 406, 511, 408, 511, 511, 353, 511,
|
|
|
|
|
/* 2500 */ 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2510 */ 511, 366, 511, 353, 447, 511, 511, 450, 511, 511,
|
|
|
|
|
/* 2520 */ 453, 454, 455, 456, 457, 458, 366, 460, 511, 511,
|
|
|
|
|
/* 2530 */ 511, 511, 511, 511, 447, 353, 511, 450, 511, 394,
|
|
|
|
|
/* 2540 */ 453, 454, 455, 456, 457, 458, 511, 460, 366, 511,
|
|
|
|
|
/* 2550 */ 511, 406, 511, 408, 394, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2560 */ 511, 511, 511, 511, 511, 511, 406, 511, 408, 511,
|
|
|
|
|
/* 2570 */ 511, 511, 511, 511, 511, 511, 394, 511, 511, 511,
|
|
|
|
|
/* 2580 */ 511, 511, 511, 511, 511, 511, 511, 511, 406, 511,
|
|
|
|
|
/* 2590 */ 408, 511, 447, 353, 511, 450, 511, 511, 453, 454,
|
|
|
|
|
/* 2600 */ 455, 456, 457, 458, 511, 460, 366, 447, 353, 511,
|
|
|
|
|
/* 2610 */ 450, 511, 511, 453, 454, 455, 456, 457, 458, 511,
|
|
|
|
|
/* 2620 */ 460, 366, 511, 511, 511, 511, 511, 511, 353, 447,
|
|
|
|
|
/* 2630 */ 511, 511, 450, 511, 394, 453, 454, 455, 456, 457,
|
|
|
|
|
/* 2640 */ 458, 366, 460, 511, 511, 511, 406, 511, 408, 394,
|
|
|
|
|
/* 2650 */ 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2660 */ 511, 406, 511, 408, 511, 511, 511, 511, 511, 394,
|
|
|
|
|
/* 2670 */ 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2680 */ 511, 406, 511, 408, 511, 511, 511, 447, 511, 511,
|
|
|
|
|
/* 2690 */ 450, 511, 511, 453, 454, 455, 456, 457, 458, 511,
|
|
|
|
|
/* 2700 */ 460, 353, 447, 511, 511, 450, 511, 511, 453, 454,
|
|
|
|
|
/* 2710 */ 455, 456, 457, 458, 366, 460, 511, 511, 511, 511,
|
|
|
|
|
/* 2720 */ 511, 353, 447, 511, 511, 450, 511, 511, 453, 454,
|
|
|
|
|
/* 2730 */ 455, 456, 457, 458, 366, 460, 511, 511, 353, 511,
|
|
|
|
|
/* 2740 */ 511, 511, 394, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2750 */ 511, 366, 511, 511, 406, 511, 408, 511, 511, 511,
|
|
|
|
|
/* 2760 */ 511, 511, 394, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2770 */ 511, 511, 511, 511, 406, 511, 408, 511, 511, 394,
|
|
|
|
|
/* 2780 */ 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2790 */ 511, 406, 511, 408, 511, 447, 511, 511, 450, 511,
|
|
|
|
|
/* 2800 */ 511, 453, 454, 455, 456, 457, 458, 353, 460, 511,
|
|
|
|
|
/* 2810 */ 511, 511, 511, 511, 511, 447, 511, 511, 450, 511,
|
|
|
|
|
/* 2820 */ 366, 453, 454, 455, 456, 457, 458, 511, 460, 511,
|
|
|
|
|
/* 2830 */ 511, 511, 447, 511, 511, 450, 511, 511, 453, 454,
|
|
|
|
|
/* 2840 */ 455, 456, 457, 458, 511, 460, 511, 511, 394, 511,
|
|
|
|
|
/* 2850 */ 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2860 */ 406, 511, 408, 511, 511, 353, 511, 511, 511, 511,
|
|
|
|
|
/* 2870 */ 511, 511, 511, 511, 511, 511, 511, 511, 366, 511,
|
|
|
|
|
/* 2880 */ 353, 511, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2890 */ 511, 511, 511, 366, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2900 */ 511, 447, 353, 511, 450, 511, 394, 453, 454, 455,
|
|
|
|
|
/* 2910 */ 456, 457, 458, 511, 460, 366, 511, 511, 406, 511,
|
|
|
|
|
/* 2920 */ 408, 394, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2930 */ 511, 511, 511, 406, 511, 408, 511, 511, 511, 511,
|
|
|
|
|
/* 2940 */ 511, 511, 511, 394, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 2950 */ 511, 511, 511, 511, 511, 406, 511, 408, 511, 447,
|
|
|
|
|
/* 2960 */ 353, 511, 450, 511, 511, 453, 454, 455, 456, 457,
|
|
|
|
|
/* 2970 */ 458, 511, 460, 366, 447, 353, 511, 450, 511, 511,
|
|
|
|
|
/* 2980 */ 453, 454, 455, 456, 457, 458, 511, 460, 366, 511,
|
|
|
|
|
/* 2990 */ 511, 511, 511, 511, 511, 511, 447, 511, 511, 450,
|
|
|
|
|
/* 3000 */ 511, 394, 453, 454, 455, 456, 457, 458, 511, 460,
|
|
|
|
|
/* 3010 */ 511, 511, 511, 406, 511, 408, 394, 511, 511, 511,
|
|
|
|
|
/* 3020 */ 511, 511, 511, 511, 511, 511, 511, 511, 406, 511,
|
|
|
|
|
/* 3030 */ 408, 511, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 3040 */ 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
|
/* 3050 */ 511, 511, 511, 511, 447, 511, 511, 450, 511, 511,
|
|
|
|
|
/* 3060 */ 453, 454, 455, 456, 457, 458, 511, 460, 511, 447,
|
|
|
|
|
/* 3070 */ 511, 511, 450, 511, 511, 453, 454, 455, 456, 457,
|
|
|
|
|
/* 3080 */ 458, 511, 460, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3090 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3100 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3110 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3120 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3130 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3140 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3150 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3160 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3170 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3180 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3190 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3200 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3210 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3220 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3230 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3240 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3250 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3260 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3270 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3280 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3290 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3300 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3310 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3320 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3330 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3340 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3350 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3360 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3370 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3380 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3390 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3400 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3410 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3420 */ 350, 350, 350, 350, 350, 350, 350, 350, 350, 350,
|
|
|
|
|
/* 3430 */ 350, 350, 350,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
2024-01-18 09:49:11 +00:00
|
|
|
#define YY_SHIFT_COUNT (845)
|
2022-01-23 12:34:16 +00:00
|
|
|
#define YY_SHIFT_MIN (0)
|
2024-01-18 09:49:11 +00:00
|
|
|
#define YY_SHIFT_MAX (2412)
|
2022-01-24 03:29:46 +00:00
|
|
|
static const unsigned short int yy_shift_ofst[] = {
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 0 */ 1300, 0, 244, 0, 489, 489, 489, 489, 489, 489,
|
|
|
|
|
/* 10 */ 489, 489, 489, 489, 489, 489, 733, 977, 977, 1221,
|
|
|
|
|
/* 20 */ 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
|
|
|
|
|
/* 30 */ 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
|
|
|
|
|
/* 40 */ 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
|
|
|
|
|
/* 50 */ 977, 420, 439, 96, 210, 34, 130, 34, 34, 210,
|
|
|
|
|
/* 60 */ 210, 34, 1469, 34, 243, 1469, 1469, 322, 34, 1,
|
|
|
|
|
/* 70 */ 240, 131, 131, 1060, 1060, 240, 294, 501, 154, 154,
|
|
|
|
|
/* 80 */ 551, 131, 131, 131, 131, 131, 131, 131, 131, 131,
|
|
|
|
|
/* 90 */ 131, 131, 165, 238, 131, 131, 31, 1, 131, 165,
|
|
|
|
|
/* 100 */ 131, 1, 131, 131, 1, 131, 131, 1, 131, 1,
|
|
|
|
|
/* 110 */ 1, 1, 131, 532, 203, 203, 488, 634, 834, 834,
|
|
|
|
|
/* 120 */ 834, 834, 834, 834, 834, 834, 834, 834, 834, 834,
|
|
|
|
|
/* 130 */ 834, 834, 834, 834, 834, 834, 834, 437, 256, 294,
|
|
|
|
|
/* 140 */ 501, 555, 555, 763, 278, 278, 278, 137, 272, 272,
|
|
|
|
|
/* 150 */ 403, 763, 31, 512, 1, 1, 424, 1, 780, 1,
|
|
|
|
|
/* 160 */ 780, 780, 595, 884, 212, 212, 212, 212, 212, 212,
|
|
|
|
|
/* 170 */ 212, 212, 1695, 361, 657, 812, 611, 639, 118, 13,
|
|
|
|
|
/* 180 */ 629, 659, 738, 738, 777, 908, 814, 734, 734, 734,
|
|
|
|
|
/* 190 */ 640, 734, 330, 768, 1025, 419, 805, 94, 1025, 1025,
|
|
|
|
|
/* 200 */ 1029, 917, 576, 575, 917, 295, 894, 403, 1215, 1441,
|
|
|
|
|
/* 210 */ 1458, 1481, 1290, 31, 1481, 31, 1314, 1500, 1508, 1491,
|
|
|
|
|
/* 220 */ 1508, 1491, 1363, 1500, 1508, 1500, 1491, 1363, 1363, 1446,
|
|
|
|
|
/* 230 */ 1451, 1500, 1454, 1500, 1500, 1500, 1542, 1515, 1542, 1515,
|
|
|
|
|
/* 240 */ 1481, 31, 31, 1555, 31, 1562, 1570, 31, 1562, 31,
|
|
|
|
|
/* 250 */ 1575, 31, 31, 1500, 31, 1542, 1, 1, 1, 1,
|
|
|
|
|
/* 260 */ 1, 1, 1, 1, 1, 1, 1, 1500, 884, 884,
|
|
|
|
|
/* 270 */ 1542, 780, 780, 780, 1406, 1533, 1481, 532, 1626, 1440,
|
|
|
|
|
/* 280 */ 1445, 1555, 532, 1215, 1500, 780, 1373, 1376, 1373, 1376,
|
|
|
|
|
/* 290 */ 1370, 1471, 1373, 1375, 1377, 1389, 1215, 1367, 1382, 1398,
|
|
|
|
|
/* 300 */ 1422, 1508, 1680, 1584, 1433, 1562, 532, 532, 1376, 780,
|
|
|
|
|
/* 310 */ 780, 780, 780, 1376, 780, 1530, 532, 595, 532, 1508,
|
|
|
|
|
/* 320 */ 1630, 1631, 780, 1500, 532, 1720, 1709, 1542, 3083, 3083,
|
|
|
|
|
/* 330 */ 3083, 3083, 3083, 3083, 3083, 3083, 3083, 36, 1228, 197,
|
|
|
|
|
/* 340 */ 748, 1007, 81, 1045, 888, 15, 527, 1062, 995, 1289,
|
|
|
|
|
/* 350 */ 1289, 1289, 1289, 1289, 1289, 1289, 1289, 1289, 216, 148,
|
|
|
|
|
/* 360 */ 12, 802, 802, 226, 729, 10, 742, 843, 773, 732,
|
|
|
|
|
/* 370 */ 897, 747, 914, 914, 1019, 6, 605, 1019, 1019, 1019,
|
|
|
|
|
/* 380 */ 1249, 1066, 487, 370, 1202, 1028, 1122, 1154, 1168, 1170,
|
|
|
|
|
/* 390 */ 1172, 1229, 1247, 1240, 1273, 1287, 1292, 1093, 684, 1274,
|
|
|
|
|
/* 400 */ 1145, 1282, 1283, 1286, 1177, 1068, 1279, 1291, 1296, 1297,
|
|
|
|
|
/* 410 */ 1298, 1309, 1310, 1325, 1313, 433, 1320, 1268, 1350, 1407,
|
|
|
|
|
/* 420 */ 1408, 1410, 1414, 1419, 1254, 1285, 1299, 1335, 1337, 1301,
|
|
|
|
|
/* 430 */ 1431, 1764, 1766, 1767, 1725, 1773, 1737, 1549, 1740, 1741,
|
|
|
|
|
/* 440 */ 1742, 1554, 1783, 1747, 1748, 1559, 1750, 1788, 1563, 1791,
|
|
|
|
|
/* 450 */ 1756, 1794, 1768, 1806, 1785, 1808, 1774, 1588, 1812, 1606,
|
|
|
|
|
/* 460 */ 1818, 1609, 1611, 1616, 1621, 1825, 1826, 1833, 1639, 1641,
|
|
|
|
|
/* 470 */ 1839, 1840, 1694, 1795, 1798, 1843, 1813, 1849, 1851, 1816,
|
|
|
|
|
/* 480 */ 1801, 1854, 1811, 1855, 1823, 1857, 1861, 1870, 1824, 1872,
|
|
|
|
|
/* 490 */ 1874, 1875, 1877, 1887, 1889, 1715, 1844, 1882, 1718, 1884,
|
|
|
|
|
/* 500 */ 1885, 1892, 1894, 1895, 1896, 1897, 1898, 1900, 1901, 1902,
|
|
|
|
|
/* 510 */ 1903, 1904, 1907, 1908, 1909, 1910, 1912, 1918, 1865, 1915,
|
|
|
|
|
/* 520 */ 1876, 1920, 1922, 1923, 1925, 1926, 1927, 1928, 1919, 1930,
|
|
|
|
|
/* 530 */ 1796, 1943, 1800, 1945, 1804, 1951, 1953, 1934, 1916, 1935,
|
|
|
|
|
/* 540 */ 1917, 1964, 1905, 1931, 1969, 1906, 1973, 1911, 1974, 1977,
|
|
|
|
|
/* 550 */ 1947, 1940, 1944, 1988, 1955, 1948, 1961, 2004, 1968, 1956,
|
|
|
|
|
/* 560 */ 1966, 2006, 1972, 2010, 1967, 1971, 1978, 1965, 1970, 2001,
|
|
|
|
|
/* 570 */ 1975, 2016, 1979, 1976, 2017, 2020, 2021, 2023, 1984, 1834,
|
|
|
|
|
/* 580 */ 2028, 1965, 1980, 2031, 2032, 1962, 2033, 2035, 1999, 1986,
|
|
|
|
|
/* 590 */ 1998, 2041, 2008, 1992, 2005, 2046, 2011, 2000, 2007, 2050,
|
|
|
|
|
/* 600 */ 2015, 2002, 2012, 2055, 2056, 2058, 2059, 2060, 2061, 1949,
|
|
|
|
|
/* 610 */ 1950, 2025, 2043, 2072, 2030, 2036, 2037, 2038, 2039, 2040,
|
|
|
|
|
/* 620 */ 2042, 2044, 2049, 2051, 2048, 2062, 2047, 2063, 2068, 2065,
|
|
|
|
|
/* 630 */ 2088, 2073, 2097, 2079, 2052, 2102, 2081, 2069, 2104, 2107,
|
|
|
|
|
/* 640 */ 2108, 2074, 2109, 2076, 2114, 2093, 2096, 2080, 2083, 2084,
|
|
|
|
|
/* 650 */ 2027, 2024, 2118, 1941, 2026, 1929, 1965, 2075, 2136, 1957,
|
|
|
|
|
/* 660 */ 2100, 2119, 2140, 1938, 2120, 1963, 1982, 2146, 2148, 1983,
|
|
|
|
|
/* 670 */ 1960, 1987, 1981, 2149, 2122, 1879, 2064, 2045, 2066, 2124,
|
|
|
|
|
/* 680 */ 2071, 2127, 2082, 2070, 2139, 2150, 2078, 2077, 2085, 2086,
|
|
|
|
|
/* 690 */ 2089, 2155, 2130, 2133, 2091, 2157, 1924, 2092, 2094, 2191,
|
|
|
|
|
/* 700 */ 2162, 1933, 2167, 2169, 2170, 2171, 2174, 2175, 2105, 2106,
|
|
|
|
|
/* 710 */ 2166, 1946, 2184, 2173, 2199, 2218, 2112, 2178, 2117, 2121,
|
|
|
|
|
/* 720 */ 2132, 2123, 2125, 2057, 2135, 2225, 2185, 2095, 2138, 2110,
|
|
|
|
|
/* 730 */ 1965, 2200, 2215, 2151, 2003, 2153, 2257, 2239, 2029, 2159,
|
|
|
|
|
/* 740 */ 2156, 2176, 2168, 2177, 2179, 2228, 2186, 2187, 2229, 2181,
|
|
|
|
|
/* 750 */ 2259, 2054, 2188, 2165, 2189, 2248, 2261, 2192, 2193, 2263,
|
|
|
|
|
/* 760 */ 2195, 2196, 2268, 2202, 2198, 2270, 2203, 2204, 2274, 2206,
|
|
|
|
|
/* 770 */ 2207, 2277, 2209, 2164, 2190, 2197, 2201, 2210, 2286, 2214,
|
|
|
|
|
/* 780 */ 2287, 2216, 2286, 2286, 2304, 2224, 2271, 2291, 2295, 2302,
|
|
|
|
|
/* 790 */ 2307, 2309, 2311, 2312, 2313, 2314, 2276, 2251, 2278, 2252,
|
|
|
|
|
/* 800 */ 2308, 2318, 2320, 2321, 2337, 2325, 2326, 2328, 2288, 2049,
|
|
|
|
|
/* 810 */ 2336, 2051, 2338, 2339, 2340, 2341, 2357, 2343, 2381, 2345,
|
|
|
|
|
/* 820 */ 2332, 2344, 2389, 2359, 2334, 2356, 2399, 2364, 2352, 2362,
|
|
|
|
|
/* 830 */ 2405, 2369, 2358, 2365, 2408, 2373, 2374, 2412, 2391, 2382,
|
|
|
|
|
/* 840 */ 2392, 2395, 2396, 2397, 2400, 2402,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
2023-10-13 08:51:38 +00:00
|
|
|
#define YY_REDUCE_COUNT (336)
|
2024-01-18 09:49:11 +00:00
|
|
|
#define YY_REDUCE_MIN (-463)
|
|
|
|
|
#define YY_REDUCE_MAX (2622)
|
2022-01-23 12:34:16 +00:00
|
|
|
static const short yy_reduce_ofst[] = {
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 0 */ 280, -308, 150, 181, 395, 425, 493, 638, 736, 979,
|
|
|
|
|
/* 10 */ 248, 1131, 1158, 1227, 1342, 1374, -81, 902, 1409, 1482,
|
|
|
|
|
/* 20 */ 1505, 720, 1525, 1540, 1636, 1672, 1704, 1781, 1797, 1815,
|
|
|
|
|
/* 30 */ 1880, 1914, 1937, 1994, 2067, 2087, 2145, 2160, 2182, 2240,
|
|
|
|
|
/* 40 */ 2255, 2275, 2348, 2368, 2385, 2454, 2512, 2527, 2549, 2607,
|
|
|
|
|
/* 50 */ 2622, -310, -217, -425, 38, -418, 769, 771, 910, -172,
|
|
|
|
|
/* 60 */ -156, 948, -381, -438, -257, 126, 149, -463, -300, 363,
|
|
|
|
|
/* 70 */ -324, -326, 52, -358, -202, -335, -218, 264, -90, 158,
|
|
|
|
|
/* 80 */ -84, -152, -98, 172, 187, -134, 91, 199, 331, 411,
|
|
|
|
|
/* 90 */ 478, 285, -54, -316, 504, 545, 159, 189, 652, 282,
|
|
|
|
|
/* 100 */ 697, 401, 714, 758, -368, 781, 784, 499, 786, 324,
|
|
|
|
|
/* 110 */ 535, 372, 775, -312, -422, -422, 47, -280, -353, 39,
|
|
|
|
|
/* 120 */ 354, 533, 564, 599, 601, 604, 694, 712, 719, 776,
|
|
|
|
|
/* 130 */ 803, 808, 831, 832, 846, 851, 853, -185, -89, 55,
|
|
|
|
|
/* 140 */ 99, 221, 622, 623, -89, 222, 589, 407, 534, 647,
|
|
|
|
|
/* 150 */ 627, 737, 408, 250, 703, 745, 624, 637, 756, 754,
|
|
|
|
|
/* 160 */ 799, 833, 515, 889, -392, -363, 566, 571, 614, 648,
|
|
|
|
|
/* 170 */ 743, 614, 692, 789, 841, 887, 824, 837, 982, 880,
|
|
|
|
|
/* 180 */ 984, 984, 994, 998, 962, 1020, 967, 891, 896, 898,
|
|
|
|
|
/* 190 */ 968, 903, 984, 1053, 1005, 1048, 1037, 1041, 1059, 1061,
|
|
|
|
|
/* 200 */ 984, 1004, 1004, 985, 1004, 1006, 1002, 1104, 1063, 1049,
|
|
|
|
|
/* 210 */ 1054, 1064, 1071, 1134, 1069, 1135, 1087, 1156, 1169, 1123,
|
|
|
|
|
/* 220 */ 1174, 1126, 1132, 1178, 1179, 1181, 1133, 1137, 1138, 1175,
|
|
|
|
|
/* 230 */ 1180, 1190, 1182, 1194, 1195, 1196, 1205, 1206, 1209, 1207,
|
|
|
|
|
/* 240 */ 1129, 1197, 1200, 1171, 1203, 1216, 1161, 1220, 1230, 1225,
|
|
|
|
|
/* 250 */ 1184, 1226, 1233, 1236, 1235, 1246, 1223, 1232, 1234, 1237,
|
|
|
|
|
/* 260 */ 1238, 1242, 1243, 1244, 1245, 1248, 1250, 1255, 1263, 1266,
|
|
|
|
|
/* 270 */ 1252, 1218, 1239, 1241, 1189, 1198, 1208, 1271, 1210, 1213,
|
|
|
|
|
/* 280 */ 1217, 1251, 1281, 1231, 1293, 1256, 1166, 1262, 1173, 1264,
|
|
|
|
|
/* 290 */ 1176, 1183, 1186, 1201, 1191, 1185, 1259, 1160, 1187, 1199,
|
|
|
|
|
/* 300 */ 1004, 1331, 1253, 1222, 1258, 1343, 1339, 1340, 1302, 1303,
|
|
|
|
|
/* 310 */ 1307, 1318, 1319, 1304, 1323, 1311, 1344, 1345, 1360, 1368,
|
|
|
|
|
/* 320 */ 1269, 1346, 1327, 1378, 1379, 1390, 1393, 1391, 1321, 1317,
|
|
|
|
|
/* 330 */ 1328, 1336, 1381, 1383, 1384, 1392, 1412,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
static const YYACTIONTYPE yy_default[] = {
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 0 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 10 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 20 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 30 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 40 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 50 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 60 */ 1895, 2235, 1895, 1895, 2198, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 70 */ 1895, 1895, 1895, 1895, 1895, 1895, 2205, 1895, 1895, 1895,
|
|
|
|
|
/* 80 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 90 */ 1895, 1895, 1895, 1895, 1895, 1895, 1994, 1895, 1895, 1895,
|
|
|
|
|
/* 100 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 110 */ 1895, 1895, 1895, 1992, 2438, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 120 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 130 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 2450, 1895,
|
|
|
|
|
/* 140 */ 1895, 1966, 1966, 1895, 2450, 2450, 2450, 1992, 2410, 2410,
|
|
|
|
|
/* 150 */ 1895, 1895, 1994, 2273, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 160 */ 1895, 1895, 2117, 1925, 1895, 1895, 1895, 1895, 2141, 1895,
|
|
|
|
|
/* 170 */ 1895, 1895, 2261, 1895, 1895, 2479, 2539, 1895, 1895, 2482,
|
|
|
|
|
/* 180 */ 1895, 1895, 1895, 1895, 2210, 1895, 2469, 1895, 1895, 1895,
|
|
|
|
|
/* 190 */ 1895, 1895, 1895, 1895, 1895, 1895, 2070, 2255, 1895, 1895,
|
|
|
|
|
/* 200 */ 1895, 2442, 2456, 2523, 2443, 2440, 2463, 1895, 2473, 1895,
|
|
|
|
|
/* 210 */ 2298, 1895, 2287, 1994, 1895, 1994, 2248, 2193, 1895, 2203,
|
|
|
|
|
/* 220 */ 1895, 2203, 2200, 1895, 1895, 1895, 2203, 2200, 2200, 2059,
|
|
|
|
|
/* 230 */ 2055, 1895, 2053, 1895, 1895, 1895, 1895, 1950, 1895, 1950,
|
|
|
|
|
/* 240 */ 1895, 1994, 1994, 1895, 1994, 1895, 1895, 1994, 1895, 1994,
|
|
|
|
|
/* 250 */ 1895, 1994, 1994, 1895, 1994, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 260 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 270 */ 1895, 1895, 1895, 1895, 2285, 2271, 1895, 1992, 1895, 2259,
|
|
|
|
|
/* 280 */ 2257, 1895, 1992, 2473, 1895, 1895, 2493, 2488, 2493, 2488,
|
|
|
|
|
/* 290 */ 2507, 2503, 2493, 2512, 2509, 2475, 2473, 2542, 2529, 2525,
|
|
|
|
|
/* 300 */ 2456, 1895, 1895, 2461, 2459, 1895, 1992, 1992, 2488, 1895,
|
|
|
|
|
/* 310 */ 1895, 1895, 1895, 2488, 1895, 1895, 1992, 1895, 1992, 1895,
|
|
|
|
|
/* 320 */ 1895, 2086, 1895, 1895, 1992, 1895, 1934, 1895, 2250, 2276,
|
|
|
|
|
/* 330 */ 2231, 2231, 2120, 2120, 2120, 1995, 1900, 1895, 1895, 1895,
|
|
|
|
|
/* 340 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 2506,
|
|
|
|
|
/* 350 */ 2505, 2363, 1895, 2414, 2413, 2412, 2403, 2362, 2082, 1895,
|
|
|
|
|
/* 360 */ 1895, 2361, 2360, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 370 */ 1895, 1895, 2222, 2221, 2354, 1895, 1895, 2355, 2353, 2352,
|
|
|
|
|
/* 380 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 390 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 400 */ 1895, 1895, 1895, 1895, 1895, 2526, 2530, 1895, 1895, 1895,
|
|
|
|
|
/* 410 */ 1895, 1895, 1895, 2439, 1895, 1895, 1895, 2334, 1895, 1895,
|
|
|
|
|
/* 420 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 430 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 440 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 450 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 460 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 470 */ 1895, 1895, 2199, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 480 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 490 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 500 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 510 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 520 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 530 */ 1895, 1895, 1895, 1895, 2214, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 540 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 550 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 560 */ 1895, 1895, 1895, 1895, 1895, 1895, 1939, 2341, 1895, 1895,
|
|
|
|
|
/* 570 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 580 */ 1895, 2344, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 590 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 600 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 610 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 620 */ 1895, 1895, 2034, 2033, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 630 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 640 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 650 */ 2345, 1895, 1895, 1895, 1895, 1895, 2336, 1895, 1895, 1895,
|
|
|
|
|
/* 660 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 670 */ 1895, 1895, 1895, 2522, 2476, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 680 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 690 */ 1895, 1895, 1895, 2334, 1895, 2504, 1895, 1895, 2520, 1895,
|
|
|
|
|
/* 700 */ 2524, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 2449, 2445,
|
|
|
|
|
/* 710 */ 1895, 1895, 2441, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 720 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 730 */ 2333, 1895, 2400, 1895, 1895, 1895, 2434, 1895, 1895, 2385,
|
|
|
|
|
/* 740 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 2345,
|
|
|
|
|
/* 750 */ 1895, 2348, 1895, 1895, 1895, 1895, 1895, 2114, 1895, 1895,
|
|
|
|
|
/* 760 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 770 */ 1895, 1895, 1895, 2098, 2096, 2095, 2094, 1895, 2127, 1895,
|
|
|
|
|
/* 780 */ 1895, 1895, 2123, 2122, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 790 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 800 */ 2013, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 2005,
|
|
|
|
|
/* 810 */ 1895, 2004, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 820 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895,
|
|
|
|
|
/* 830 */ 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1895, 1924,
|
|
|
|
|
/* 840 */ 1895, 1895, 1895, 1895, 1895, 1895,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
/********** 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 */
|
2022-05-07 09:37:17 +00:00
|
|
|
0, /* GRANT => nothing */
|
|
|
|
|
0, /* ON => nothing */
|
|
|
|
|
0, /* TO => nothing */
|
|
|
|
|
0, /* REVOKE => nothing */
|
|
|
|
|
0, /* FROM => nothing */
|
2022-11-30 11:24:15 +00:00
|
|
|
0, /* SUBSCRIBE => nothing */
|
2022-05-07 09:37:17 +00:00
|
|
|
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 */
|
2022-06-18 06:49:36 +00:00
|
|
|
0, /* NK_IPTOKEN => nothing */
|
2022-10-31 02:30:54 +00:00
|
|
|
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 */
|
2022-07-16 03:47:26 +00:00
|
|
|
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 */
|
2022-09-03 03:22:36 +00:00
|
|
|
0, /* TABLE_PREFIX => nothing */
|
|
|
|
|
0, /* TABLE_SUFFIX => nothing */
|
2023-09-19 10:44:27 +00:00
|
|
|
0, /* KEEP_TIME_OFFSET => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* NK_COLON => nothing */
|
2023-08-28 01:28:55 +00:00
|
|
|
0, /* BWLIMIT => nothing */
|
2023-03-07 07:24:04 +00:00
|
|
|
0, /* START => nothing */
|
|
|
|
|
0, /* TIMESTAMP => nothing */
|
2024-01-18 09:49:11 +00:00
|
|
|
300, /* 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 */
|
2023-05-24 07:36:46 +00:00
|
|
|
0, /* GEOMETRY => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* DECIMAL => nothing */
|
2023-08-24 05:54:27 +00:00
|
|
|
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 */
|
2022-11-30 11:24:15 +00:00
|
|
|
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 */
|
|
|
|
|
0, /* LOG => 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 */
|
2022-05-07 09:37:17 +00:00
|
|
|
0, /* TRANSACTIONS => nothing */
|
2022-06-18 10:37:18 +00:00
|
|
|
0, /* DISTRIBUTED => nothing */
|
2022-06-23 10:03:15 +00:00
|
|
|
0, /* CONSUMERS => nothing */
|
|
|
|
|
0, /* SUBSCRIPTIONS => nothing */
|
2022-09-01 11:01:37 +00:00
|
|
|
0, /* VNODES => nothing */
|
2022-12-29 10:07:57 +00:00
|
|
|
0, /* ALIVE => nothing */
|
2023-10-09 09:19:36 +00:00
|
|
|
0, /* VIEWS => nothing */
|
2024-01-18 09:49:11 +00:00
|
|
|
300, /* VIEW => ABORT */
|
2023-11-16 03:41:02 +00:00
|
|
|
0, /* COMPACTS => nothing */
|
2023-09-19 08:14:17 +00:00
|
|
|
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 */
|
2023-09-19 08:14:17 +00:00
|
|
|
0, /* SYSTEM => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* INDEX => nothing */
|
|
|
|
|
0, /* FUNCTION => nothing */
|
|
|
|
|
0, /* INTERVAL => nothing */
|
2022-12-19 02:57:56 +00:00
|
|
|
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 */
|
2022-05-31 07:07:15 +00:00
|
|
|
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 */
|
2023-03-04 03:08:50 +00:00
|
|
|
0, /* LANGUAGE => nothing */
|
2023-04-04 09:45:18 +00:00
|
|
|
0, /* REPLACE => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* STREAM => nothing */
|
|
|
|
|
0, /* INTO => nothing */
|
2023-04-24 06:48:33 +00:00
|
|
|
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 */
|
2022-06-30 08:16:05 +00:00
|
|
|
0, /* IGNORE => nothing */
|
|
|
|
|
0, /* EXPIRED => nothing */
|
2022-10-26 09:01:55 +00:00
|
|
|
0, /* FILL_HISTORY => nothing */
|
2023-02-07 11:31:08 +00:00
|
|
|
0, /* UPDATE => nothing */
|
2022-09-26 10:39:47 +00:00
|
|
|
0, /* SUBTABLE => nothing */
|
2023-04-24 06:48:33 +00:00
|
|
|
0, /* UNTREATED => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* KILL => nothing */
|
|
|
|
|
0, /* CONNECTION => nothing */
|
2022-05-07 09:37:17 +00:00
|
|
|
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 */
|
2023-03-22 01:53:56 +00:00
|
|
|
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 */
|
2022-06-10 06:28:58 +00:00
|
|
|
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 */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* NULL => nothing */
|
|
|
|
|
0, /* NK_QUESTION => nothing */
|
2023-10-24 07:59:51 +00:00
|
|
|
0, /* NK_ALIAS => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* NK_ARROW => nothing */
|
|
|
|
|
0, /* ROWTS => nothing */
|
2022-07-13 07:13:01 +00:00
|
|
|
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 */
|
2022-09-27 07:23:24 +00:00
|
|
|
0, /* IROWTS => nothing */
|
2022-12-14 08:23:49 +00:00
|
|
|
0, /* ISFILLED => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* CAST => nothing */
|
|
|
|
|
0, /* NOW => nothing */
|
|
|
|
|
0, /* TODAY => nothing */
|
|
|
|
|
0, /* TIMEZONE => nothing */
|
2022-06-29 03:41:32 +00:00
|
|
|
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 */
|
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-01-18 09:49:11 +00:00
|
|
|
300, /* AFTER => ABORT */
|
|
|
|
|
300, /* ATTACH => ABORT */
|
|
|
|
|
300, /* BEFORE => ABORT */
|
|
|
|
|
300, /* BEGIN => ABORT */
|
|
|
|
|
300, /* BITAND => ABORT */
|
|
|
|
|
300, /* BITNOT => ABORT */
|
|
|
|
|
300, /* BITOR => ABORT */
|
|
|
|
|
300, /* BLOCKS => ABORT */
|
|
|
|
|
300, /* CHANGE => ABORT */
|
|
|
|
|
300, /* COMMA => ABORT */
|
|
|
|
|
300, /* CONCAT => ABORT */
|
|
|
|
|
300, /* CONFLICT => ABORT */
|
|
|
|
|
300, /* COPY => ABORT */
|
|
|
|
|
300, /* DEFERRED => ABORT */
|
|
|
|
|
300, /* DELIMITERS => ABORT */
|
|
|
|
|
300, /* DETACH => ABORT */
|
|
|
|
|
300, /* DIVIDE => ABORT */
|
|
|
|
|
300, /* DOT => ABORT */
|
|
|
|
|
300, /* EACH => ABORT */
|
|
|
|
|
300, /* FAIL => ABORT */
|
|
|
|
|
300, /* FILE => ABORT */
|
|
|
|
|
300, /* FOR => ABORT */
|
|
|
|
|
300, /* GLOB => ABORT */
|
|
|
|
|
300, /* ID => ABORT */
|
|
|
|
|
300, /* IMMEDIATE => ABORT */
|
|
|
|
|
300, /* IMPORT => ABORT */
|
|
|
|
|
300, /* INITIALLY => ABORT */
|
|
|
|
|
300, /* INSTEAD => ABORT */
|
|
|
|
|
300, /* ISNULL => ABORT */
|
|
|
|
|
300, /* KEY => ABORT */
|
|
|
|
|
300, /* MODULES => ABORT */
|
|
|
|
|
300, /* NK_BITNOT => ABORT */
|
|
|
|
|
300, /* NK_SEMI => ABORT */
|
|
|
|
|
300, /* NOTNULL => ABORT */
|
|
|
|
|
300, /* OF => ABORT */
|
|
|
|
|
300, /* PLUS => ABORT */
|
|
|
|
|
300, /* PRIVILEGE => ABORT */
|
|
|
|
|
300, /* RAISE => ABORT */
|
|
|
|
|
300, /* RESTRICT => ABORT */
|
|
|
|
|
300, /* ROW => ABORT */
|
|
|
|
|
300, /* SEMI => ABORT */
|
|
|
|
|
300, /* STAR => ABORT */
|
|
|
|
|
300, /* STATEMENT => ABORT */
|
|
|
|
|
300, /* STRICT => ABORT */
|
|
|
|
|
300, /* STRING => ABORT */
|
|
|
|
|
300, /* TIMES => ABORT */
|
|
|
|
|
300, /* VALUES => ABORT */
|
|
|
|
|
300, /* VARIABLE => ABORT */
|
|
|
|
|
300, /* WAL => ABORT */
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
#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 */
|
2022-01-23 12:34:16 +00:00
|
|
|
#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){
|
2022-01-23 12:34:16 +00:00
|
|
|
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 */ "$",
|
2022-01-27 06:32:40 +00:00
|
|
|
/* 1 */ "OR",
|
|
|
|
|
/* 2 */ "AND",
|
2022-01-27 16:28:13 +00:00
|
|
|
/* 3 */ "UNION",
|
|
|
|
|
/* 4 */ "ALL",
|
|
|
|
|
/* 5 */ "MINUS",
|
|
|
|
|
/* 6 */ "EXCEPT",
|
|
|
|
|
/* 7 */ "INTERSECT",
|
2022-03-01 02:13:22 +00:00
|
|
|
/* 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",
|
2022-03-17 03:11:49 +00:00
|
|
|
/* 18 */ "CREATE",
|
2022-03-16 11:28:40 +00:00
|
|
|
/* 19 */ "ACCOUNT",
|
|
|
|
|
/* 20 */ "NK_ID",
|
|
|
|
|
/* 21 */ "PASS",
|
2022-03-17 03:11:49 +00:00
|
|
|
/* 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",
|
|
|
|
|
/* 160 */ "LOG",
|
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",
|
|
|
|
|
/* 234 */ "NULL",
|
|
|
|
|
/* 235 */ "NK_QUESTION",
|
|
|
|
|
/* 236 */ "NK_ALIAS",
|
|
|
|
|
/* 237 */ "NK_ARROW",
|
|
|
|
|
/* 238 */ "ROWTS",
|
|
|
|
|
/* 239 */ "QSTART",
|
|
|
|
|
/* 240 */ "QEND",
|
|
|
|
|
/* 241 */ "QDURATION",
|
|
|
|
|
/* 242 */ "WSTART",
|
|
|
|
|
/* 243 */ "WEND",
|
|
|
|
|
/* 244 */ "WDURATION",
|
|
|
|
|
/* 245 */ "IROWTS",
|
|
|
|
|
/* 246 */ "ISFILLED",
|
|
|
|
|
/* 247 */ "CAST",
|
|
|
|
|
/* 248 */ "NOW",
|
|
|
|
|
/* 249 */ "TODAY",
|
|
|
|
|
/* 250 */ "TIMEZONE",
|
|
|
|
|
/* 251 */ "CLIENT_VERSION",
|
|
|
|
|
/* 252 */ "SERVER_VERSION",
|
|
|
|
|
/* 253 */ "SERVER_STATUS",
|
|
|
|
|
/* 254 */ "CURRENT_USER",
|
|
|
|
|
/* 255 */ "CASE",
|
|
|
|
|
/* 256 */ "WHEN",
|
|
|
|
|
/* 257 */ "THEN",
|
|
|
|
|
/* 258 */ "ELSE",
|
|
|
|
|
/* 259 */ "BETWEEN",
|
|
|
|
|
/* 260 */ "IS",
|
|
|
|
|
/* 261 */ "NK_LT",
|
|
|
|
|
/* 262 */ "NK_GT",
|
|
|
|
|
/* 263 */ "NK_LE",
|
|
|
|
|
/* 264 */ "NK_GE",
|
|
|
|
|
/* 265 */ "NK_NE",
|
|
|
|
|
/* 266 */ "MATCH",
|
|
|
|
|
/* 267 */ "NMATCH",
|
|
|
|
|
/* 268 */ "CONTAINS",
|
|
|
|
|
/* 269 */ "IN",
|
|
|
|
|
/* 270 */ "JOIN",
|
|
|
|
|
/* 271 */ "INNER",
|
|
|
|
|
/* 272 */ "SELECT",
|
|
|
|
|
/* 273 */ "NK_HINT",
|
|
|
|
|
/* 274 */ "DISTINCT",
|
|
|
|
|
/* 275 */ "WHERE",
|
|
|
|
|
/* 276 */ "PARTITION",
|
|
|
|
|
/* 277 */ "BY",
|
|
|
|
|
/* 278 */ "SESSION",
|
|
|
|
|
/* 279 */ "STATE_WINDOW",
|
|
|
|
|
/* 280 */ "EVENT_WINDOW",
|
|
|
|
|
/* 281 */ "SLIDING",
|
|
|
|
|
/* 282 */ "FILL",
|
|
|
|
|
/* 283 */ "VALUE",
|
|
|
|
|
/* 284 */ "VALUE_F",
|
|
|
|
|
/* 285 */ "NONE",
|
|
|
|
|
/* 286 */ "PREV",
|
|
|
|
|
/* 287 */ "NULL_F",
|
|
|
|
|
/* 288 */ "LINEAR",
|
|
|
|
|
/* 289 */ "NEXT",
|
|
|
|
|
/* 290 */ "HAVING",
|
|
|
|
|
/* 291 */ "RANGE",
|
|
|
|
|
/* 292 */ "EVERY",
|
|
|
|
|
/* 293 */ "ORDER",
|
|
|
|
|
/* 294 */ "SLIMIT",
|
|
|
|
|
/* 295 */ "SOFFSET",
|
|
|
|
|
/* 296 */ "LIMIT",
|
|
|
|
|
/* 297 */ "OFFSET",
|
|
|
|
|
/* 298 */ "ASC",
|
|
|
|
|
/* 299 */ "NULLS",
|
|
|
|
|
/* 300 */ "ABORT",
|
|
|
|
|
/* 301 */ "AFTER",
|
|
|
|
|
/* 302 */ "ATTACH",
|
|
|
|
|
/* 303 */ "BEFORE",
|
|
|
|
|
/* 304 */ "BEGIN",
|
|
|
|
|
/* 305 */ "BITAND",
|
|
|
|
|
/* 306 */ "BITNOT",
|
|
|
|
|
/* 307 */ "BITOR",
|
|
|
|
|
/* 308 */ "BLOCKS",
|
|
|
|
|
/* 309 */ "CHANGE",
|
|
|
|
|
/* 310 */ "COMMA",
|
|
|
|
|
/* 311 */ "CONCAT",
|
|
|
|
|
/* 312 */ "CONFLICT",
|
|
|
|
|
/* 313 */ "COPY",
|
|
|
|
|
/* 314 */ "DEFERRED",
|
|
|
|
|
/* 315 */ "DELIMITERS",
|
|
|
|
|
/* 316 */ "DETACH",
|
|
|
|
|
/* 317 */ "DIVIDE",
|
|
|
|
|
/* 318 */ "DOT",
|
|
|
|
|
/* 319 */ "EACH",
|
|
|
|
|
/* 320 */ "FAIL",
|
|
|
|
|
/* 321 */ "FILE",
|
|
|
|
|
/* 322 */ "FOR",
|
|
|
|
|
/* 323 */ "GLOB",
|
|
|
|
|
/* 324 */ "ID",
|
|
|
|
|
/* 325 */ "IMMEDIATE",
|
|
|
|
|
/* 326 */ "IMPORT",
|
|
|
|
|
/* 327 */ "INITIALLY",
|
|
|
|
|
/* 328 */ "INSTEAD",
|
|
|
|
|
/* 329 */ "ISNULL",
|
|
|
|
|
/* 330 */ "KEY",
|
|
|
|
|
/* 331 */ "MODULES",
|
|
|
|
|
/* 332 */ "NK_BITNOT",
|
|
|
|
|
/* 333 */ "NK_SEMI",
|
|
|
|
|
/* 334 */ "NOTNULL",
|
|
|
|
|
/* 335 */ "OF",
|
|
|
|
|
/* 336 */ "PLUS",
|
|
|
|
|
/* 337 */ "PRIVILEGE",
|
|
|
|
|
/* 338 */ "RAISE",
|
|
|
|
|
/* 339 */ "RESTRICT",
|
|
|
|
|
/* 340 */ "ROW",
|
|
|
|
|
/* 341 */ "SEMI",
|
|
|
|
|
/* 342 */ "STAR",
|
|
|
|
|
/* 343 */ "STATEMENT",
|
|
|
|
|
/* 344 */ "STRICT",
|
|
|
|
|
/* 345 */ "STRING",
|
|
|
|
|
/* 346 */ "TIMES",
|
|
|
|
|
/* 347 */ "VALUES",
|
|
|
|
|
/* 348 */ "VARIABLE",
|
|
|
|
|
/* 349 */ "WAL",
|
|
|
|
|
/* 350 */ "cmd",
|
|
|
|
|
/* 351 */ "account_options",
|
|
|
|
|
/* 352 */ "alter_account_options",
|
|
|
|
|
/* 353 */ "literal",
|
|
|
|
|
/* 354 */ "alter_account_option",
|
|
|
|
|
/* 355 */ "ip_range_list",
|
|
|
|
|
/* 356 */ "white_list",
|
|
|
|
|
/* 357 */ "white_list_opt",
|
|
|
|
|
/* 358 */ "user_name",
|
|
|
|
|
/* 359 */ "sysinfo_opt",
|
|
|
|
|
/* 360 */ "privileges",
|
|
|
|
|
/* 361 */ "priv_level",
|
|
|
|
|
/* 362 */ "with_opt",
|
|
|
|
|
/* 363 */ "priv_type_list",
|
|
|
|
|
/* 364 */ "priv_type",
|
|
|
|
|
/* 365 */ "db_name",
|
|
|
|
|
/* 366 */ "table_name",
|
|
|
|
|
/* 367 */ "topic_name",
|
|
|
|
|
/* 368 */ "search_condition",
|
|
|
|
|
/* 369 */ "dnode_endpoint",
|
|
|
|
|
/* 370 */ "force_opt",
|
|
|
|
|
/* 371 */ "unsafe_opt",
|
|
|
|
|
/* 372 */ "not_exists_opt",
|
|
|
|
|
/* 373 */ "db_options",
|
|
|
|
|
/* 374 */ "exists_opt",
|
|
|
|
|
/* 375 */ "alter_db_options",
|
|
|
|
|
/* 376 */ "speed_opt",
|
|
|
|
|
/* 377 */ "start_opt",
|
|
|
|
|
/* 378 */ "end_opt",
|
|
|
|
|
/* 379 */ "integer_list",
|
|
|
|
|
/* 380 */ "variable_list",
|
|
|
|
|
/* 381 */ "retention_list",
|
|
|
|
|
/* 382 */ "signed",
|
|
|
|
|
/* 383 */ "alter_db_option",
|
|
|
|
|
/* 384 */ "retention",
|
|
|
|
|
/* 385 */ "full_table_name",
|
|
|
|
|
/* 386 */ "column_def_list",
|
|
|
|
|
/* 387 */ "tags_def_opt",
|
|
|
|
|
/* 388 */ "table_options",
|
|
|
|
|
/* 389 */ "multi_create_clause",
|
|
|
|
|
/* 390 */ "tags_def",
|
|
|
|
|
/* 391 */ "multi_drop_clause",
|
|
|
|
|
/* 392 */ "alter_table_clause",
|
|
|
|
|
/* 393 */ "alter_table_options",
|
|
|
|
|
/* 394 */ "column_name",
|
|
|
|
|
/* 395 */ "type_name",
|
|
|
|
|
/* 396 */ "signed_literal",
|
|
|
|
|
/* 397 */ "create_subtable_clause",
|
|
|
|
|
/* 398 */ "specific_cols_opt",
|
|
|
|
|
/* 399 */ "expression_list",
|
|
|
|
|
/* 400 */ "drop_table_clause",
|
|
|
|
|
/* 401 */ "col_name_list",
|
|
|
|
|
/* 402 */ "column_def",
|
|
|
|
|
/* 403 */ "duration_list",
|
|
|
|
|
/* 404 */ "rollup_func_list",
|
|
|
|
|
/* 405 */ "alter_table_option",
|
|
|
|
|
/* 406 */ "duration_literal",
|
|
|
|
|
/* 407 */ "rollup_func_name",
|
|
|
|
|
/* 408 */ "function_name",
|
|
|
|
|
/* 409 */ "col_name",
|
|
|
|
|
/* 410 */ "db_kind_opt",
|
|
|
|
|
/* 411 */ "table_kind_db_name_cond_opt",
|
|
|
|
|
/* 412 */ "like_pattern_opt",
|
|
|
|
|
/* 413 */ "db_name_cond_opt",
|
|
|
|
|
/* 414 */ "table_name_cond",
|
|
|
|
|
/* 415 */ "from_db_opt",
|
|
|
|
|
/* 416 */ "tag_list_opt",
|
|
|
|
|
/* 417 */ "table_kind",
|
|
|
|
|
/* 418 */ "tag_item",
|
|
|
|
|
/* 419 */ "column_alias",
|
|
|
|
|
/* 420 */ "index_options",
|
|
|
|
|
/* 421 */ "full_index_name",
|
|
|
|
|
/* 422 */ "index_name",
|
|
|
|
|
/* 423 */ "func_list",
|
|
|
|
|
/* 424 */ "sliding_opt",
|
|
|
|
|
/* 425 */ "sma_stream_opt",
|
|
|
|
|
/* 426 */ "func",
|
|
|
|
|
/* 427 */ "sma_func_name",
|
|
|
|
|
/* 428 */ "with_meta",
|
|
|
|
|
/* 429 */ "query_or_subquery",
|
|
|
|
|
/* 430 */ "where_clause_opt",
|
|
|
|
|
/* 431 */ "cgroup_name",
|
|
|
|
|
/* 432 */ "analyze_opt",
|
|
|
|
|
/* 433 */ "explain_options",
|
|
|
|
|
/* 434 */ "insert_query",
|
|
|
|
|
/* 435 */ "or_replace_opt",
|
|
|
|
|
/* 436 */ "agg_func_opt",
|
|
|
|
|
/* 437 */ "bufsize_opt",
|
|
|
|
|
/* 438 */ "language_opt",
|
|
|
|
|
/* 439 */ "full_view_name",
|
|
|
|
|
/* 440 */ "view_name",
|
|
|
|
|
/* 441 */ "stream_name",
|
|
|
|
|
/* 442 */ "stream_options",
|
|
|
|
|
/* 443 */ "col_list_opt",
|
|
|
|
|
/* 444 */ "tag_def_or_ref_opt",
|
|
|
|
|
/* 445 */ "subtable_opt",
|
|
|
|
|
/* 446 */ "ignore_opt",
|
|
|
|
|
/* 447 */ "expression",
|
|
|
|
|
/* 448 */ "on_vgroup_id",
|
|
|
|
|
/* 449 */ "dnode_list",
|
|
|
|
|
/* 450 */ "literal_func",
|
|
|
|
|
/* 451 */ "literal_list",
|
|
|
|
|
/* 452 */ "table_alias",
|
|
|
|
|
/* 453 */ "expr_or_subquery",
|
|
|
|
|
/* 454 */ "pseudo_column",
|
|
|
|
|
/* 455 */ "column_reference",
|
|
|
|
|
/* 456 */ "function_expression",
|
|
|
|
|
/* 457 */ "case_when_expression",
|
|
|
|
|
/* 458 */ "star_func",
|
|
|
|
|
/* 459 */ "star_func_para_list",
|
|
|
|
|
/* 460 */ "noarg_func",
|
|
|
|
|
/* 461 */ "other_para_list",
|
|
|
|
|
/* 462 */ "star_func_para",
|
|
|
|
|
/* 463 */ "when_then_list",
|
|
|
|
|
/* 464 */ "case_when_else_opt",
|
|
|
|
|
/* 465 */ "common_expression",
|
|
|
|
|
/* 466 */ "when_then_expr",
|
|
|
|
|
/* 467 */ "predicate",
|
|
|
|
|
/* 468 */ "compare_op",
|
|
|
|
|
/* 469 */ "in_op",
|
|
|
|
|
/* 470 */ "in_predicate_value",
|
|
|
|
|
/* 471 */ "boolean_value_expression",
|
|
|
|
|
/* 472 */ "boolean_primary",
|
|
|
|
|
/* 473 */ "from_clause_opt",
|
|
|
|
|
/* 474 */ "table_reference_list",
|
|
|
|
|
/* 475 */ "table_reference",
|
|
|
|
|
/* 476 */ "table_primary",
|
|
|
|
|
/* 477 */ "joined_table",
|
|
|
|
|
/* 478 */ "alias_opt",
|
|
|
|
|
/* 479 */ "subquery",
|
|
|
|
|
/* 480 */ "parenthesized_joined_table",
|
|
|
|
|
/* 481 */ "join_type",
|
|
|
|
|
/* 482 */ "query_specification",
|
|
|
|
|
/* 483 */ "hint_list",
|
|
|
|
|
/* 484 */ "set_quantifier_opt",
|
|
|
|
|
/* 485 */ "tag_mode_opt",
|
|
|
|
|
/* 486 */ "select_list",
|
|
|
|
|
/* 487 */ "partition_by_clause_opt",
|
|
|
|
|
/* 488 */ "range_opt",
|
|
|
|
|
/* 489 */ "every_opt",
|
|
|
|
|
/* 490 */ "fill_opt",
|
|
|
|
|
/* 491 */ "twindow_clause_opt",
|
|
|
|
|
/* 492 */ "group_by_clause_opt",
|
|
|
|
|
/* 493 */ "having_clause_opt",
|
|
|
|
|
/* 494 */ "select_item",
|
|
|
|
|
/* 495 */ "partition_list",
|
|
|
|
|
/* 496 */ "partition_item",
|
|
|
|
|
/* 497 */ "interval_sliding_duration_literal",
|
|
|
|
|
/* 498 */ "fill_mode",
|
|
|
|
|
/* 499 */ "group_by_list",
|
|
|
|
|
/* 500 */ "query_expression",
|
|
|
|
|
/* 501 */ "query_simple",
|
|
|
|
|
/* 502 */ "order_by_clause_opt",
|
|
|
|
|
/* 503 */ "slimit_clause_opt",
|
|
|
|
|
/* 504 */ "limit_clause_opt",
|
|
|
|
|
/* 505 */ "union_query_expression",
|
|
|
|
|
/* 506 */ "query_simple_or_subquery",
|
|
|
|
|
/* 507 */ "sort_specification_list",
|
|
|
|
|
/* 508 */ "sort_specification",
|
|
|
|
|
/* 509 */ "ordering_specification_opt",
|
|
|
|
|
/* 510 */ "null_ordering_opt",
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
|
|
|
|
|
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
/* For tracing reduce actions, the names of all rules are required.
|
|
|
|
|
*/
|
|
|
|
|
static const char *const yyRuleName[] = {
|
2022-03-17 03:11:49 +00:00
|
|
|
/* 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",
|
2023-10-20 00:46:32 +00:00
|
|
|
/* 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",
|
|
|
|
|
/* 181 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
|
|
|
|
|
/* 182 */ "multi_create_clause ::= create_subtable_clause",
|
|
|
|
|
/* 183 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
|
|
|
|
|
/* 184 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options",
|
|
|
|
|
/* 185 */ "multi_drop_clause ::= drop_table_clause",
|
|
|
|
|
/* 186 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
|
|
|
|
|
/* 187 */ "drop_table_clause ::= exists_opt full_table_name",
|
|
|
|
|
/* 188 */ "specific_cols_opt ::=",
|
|
|
|
|
/* 189 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 190 */ "full_table_name ::= table_name",
|
|
|
|
|
/* 191 */ "full_table_name ::= db_name NK_DOT table_name",
|
|
|
|
|
/* 192 */ "column_def_list ::= column_def",
|
|
|
|
|
/* 193 */ "column_def_list ::= column_def_list NK_COMMA column_def",
|
|
|
|
|
/* 194 */ "column_def ::= column_name type_name",
|
|
|
|
|
/* 195 */ "type_name ::= BOOL",
|
|
|
|
|
/* 196 */ "type_name ::= TINYINT",
|
|
|
|
|
/* 197 */ "type_name ::= SMALLINT",
|
|
|
|
|
/* 198 */ "type_name ::= INT",
|
|
|
|
|
/* 199 */ "type_name ::= INTEGER",
|
|
|
|
|
/* 200 */ "type_name ::= BIGINT",
|
|
|
|
|
/* 201 */ "type_name ::= FLOAT",
|
|
|
|
|
/* 202 */ "type_name ::= DOUBLE",
|
|
|
|
|
/* 203 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 204 */ "type_name ::= TIMESTAMP",
|
|
|
|
|
/* 205 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 206 */ "type_name ::= TINYINT UNSIGNED",
|
|
|
|
|
/* 207 */ "type_name ::= SMALLINT UNSIGNED",
|
|
|
|
|
/* 208 */ "type_name ::= INT UNSIGNED",
|
|
|
|
|
/* 209 */ "type_name ::= BIGINT UNSIGNED",
|
|
|
|
|
/* 210 */ "type_name ::= JSON",
|
|
|
|
|
/* 211 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 212 */ "type_name ::= MEDIUMBLOB",
|
|
|
|
|
/* 213 */ "type_name ::= BLOB",
|
|
|
|
|
/* 214 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 215 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 216 */ "type_name ::= DECIMAL",
|
|
|
|
|
/* 217 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 218 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
|
|
|
/* 219 */ "tags_def_opt ::=",
|
|
|
|
|
/* 220 */ "tags_def_opt ::= tags_def",
|
|
|
|
|
/* 221 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
|
|
|
|
|
/* 222 */ "table_options ::=",
|
|
|
|
|
/* 223 */ "table_options ::= table_options COMMENT NK_STRING",
|
|
|
|
|
/* 224 */ "table_options ::= table_options MAX_DELAY duration_list",
|
|
|
|
|
/* 225 */ "table_options ::= table_options WATERMARK duration_list",
|
|
|
|
|
/* 226 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
|
|
|
|
|
/* 227 */ "table_options ::= table_options TTL NK_INTEGER",
|
|
|
|
|
/* 228 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 229 */ "table_options ::= table_options DELETE_MARK duration_list",
|
|
|
|
|
/* 230 */ "alter_table_options ::= alter_table_option",
|
|
|
|
|
/* 231 */ "alter_table_options ::= alter_table_options alter_table_option",
|
|
|
|
|
/* 232 */ "alter_table_option ::= COMMENT NK_STRING",
|
|
|
|
|
/* 233 */ "alter_table_option ::= TTL NK_INTEGER",
|
|
|
|
|
/* 234 */ "duration_list ::= duration_literal",
|
|
|
|
|
/* 235 */ "duration_list ::= duration_list NK_COMMA duration_literal",
|
|
|
|
|
/* 236 */ "rollup_func_list ::= rollup_func_name",
|
|
|
|
|
/* 237 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
|
|
|
|
|
/* 238 */ "rollup_func_name ::= function_name",
|
|
|
|
|
/* 239 */ "rollup_func_name ::= FIRST",
|
|
|
|
|
/* 240 */ "rollup_func_name ::= LAST",
|
|
|
|
|
/* 241 */ "col_name_list ::= col_name",
|
|
|
|
|
/* 242 */ "col_name_list ::= col_name_list NK_COMMA col_name",
|
|
|
|
|
/* 243 */ "col_name ::= column_name",
|
|
|
|
|
/* 244 */ "cmd ::= SHOW DNODES",
|
|
|
|
|
/* 245 */ "cmd ::= SHOW USERS",
|
|
|
|
|
/* 246 */ "cmd ::= SHOW USER PRIVILEGES",
|
|
|
|
|
/* 247 */ "cmd ::= SHOW db_kind_opt DATABASES",
|
|
|
|
|
/* 248 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
|
|
|
|
|
/* 249 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
|
|
|
|
|
/* 250 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
|
|
|
|
|
/* 251 */ "cmd ::= SHOW MNODES",
|
|
|
|
|
/* 252 */ "cmd ::= SHOW QNODES",
|
|
|
|
|
/* 253 */ "cmd ::= SHOW FUNCTIONS",
|
|
|
|
|
/* 254 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
|
|
|
/* 255 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
|
|
|
/* 256 */ "cmd ::= SHOW STREAMS",
|
|
|
|
|
/* 257 */ "cmd ::= SHOW ACCOUNTS",
|
|
|
|
|
/* 258 */ "cmd ::= SHOW APPS",
|
|
|
|
|
/* 259 */ "cmd ::= SHOW CONNECTIONS",
|
|
|
|
|
/* 260 */ "cmd ::= SHOW LICENCES",
|
|
|
|
|
/* 261 */ "cmd ::= SHOW GRANTS",
|
2024-01-18 07:23:38 +00:00
|
|
|
/* 262 */ "cmd ::= SHOW GRANTS FULL",
|
|
|
|
|
/* 263 */ "cmd ::= SHOW GRANTS LOG",
|
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",
|
|
|
|
|
/* 290 */ "cmd ::= SHOW db_name_cond_opt VIEWS",
|
|
|
|
|
/* 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",
|
|
|
|
|
/* 409 */ "literal ::= NK_INTEGER",
|
|
|
|
|
/* 410 */ "literal ::= NK_FLOAT",
|
|
|
|
|
/* 411 */ "literal ::= NK_STRING",
|
|
|
|
|
/* 412 */ "literal ::= NK_BOOL",
|
|
|
|
|
/* 413 */ "literal ::= TIMESTAMP NK_STRING",
|
|
|
|
|
/* 414 */ "literal ::= duration_literal",
|
|
|
|
|
/* 415 */ "literal ::= NULL",
|
|
|
|
|
/* 416 */ "literal ::= NK_QUESTION",
|
|
|
|
|
/* 417 */ "duration_literal ::= NK_VARIABLE",
|
|
|
|
|
/* 418 */ "signed ::= NK_INTEGER",
|
|
|
|
|
/* 419 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
|
|
|
/* 420 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
|
|
|
/* 421 */ "signed ::= NK_FLOAT",
|
|
|
|
|
/* 422 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
|
|
|
/* 423 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
|
|
|
/* 424 */ "signed_literal ::= signed",
|
|
|
|
|
/* 425 */ "signed_literal ::= NK_STRING",
|
|
|
|
|
/* 426 */ "signed_literal ::= NK_BOOL",
|
|
|
|
|
/* 427 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
|
|
|
/* 428 */ "signed_literal ::= duration_literal",
|
|
|
|
|
/* 429 */ "signed_literal ::= NULL",
|
|
|
|
|
/* 430 */ "signed_literal ::= literal_func",
|
|
|
|
|
/* 431 */ "signed_literal ::= NK_QUESTION",
|
|
|
|
|
/* 432 */ "literal_list ::= signed_literal",
|
|
|
|
|
/* 433 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
|
|
|
/* 434 */ "db_name ::= NK_ID",
|
|
|
|
|
/* 435 */ "table_name ::= NK_ID",
|
|
|
|
|
/* 436 */ "column_name ::= NK_ID",
|
|
|
|
|
/* 437 */ "function_name ::= NK_ID",
|
|
|
|
|
/* 438 */ "view_name ::= NK_ID",
|
|
|
|
|
/* 439 */ "table_alias ::= NK_ID",
|
|
|
|
|
/* 440 */ "column_alias ::= NK_ID",
|
|
|
|
|
/* 441 */ "column_alias ::= NK_ALIAS",
|
|
|
|
|
/* 442 */ "user_name ::= NK_ID",
|
|
|
|
|
/* 443 */ "topic_name ::= NK_ID",
|
|
|
|
|
/* 444 */ "stream_name ::= NK_ID",
|
|
|
|
|
/* 445 */ "cgroup_name ::= NK_ID",
|
|
|
|
|
/* 446 */ "index_name ::= NK_ID",
|
|
|
|
|
/* 447 */ "expr_or_subquery ::= expression",
|
|
|
|
|
/* 448 */ "expression ::= literal",
|
|
|
|
|
/* 449 */ "expression ::= pseudo_column",
|
|
|
|
|
/* 450 */ "expression ::= column_reference",
|
|
|
|
|
/* 451 */ "expression ::= function_expression",
|
|
|
|
|
/* 452 */ "expression ::= case_when_expression",
|
|
|
|
|
/* 453 */ "expression ::= NK_LP expression NK_RP",
|
|
|
|
|
/* 454 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
|
|
|
/* 455 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
|
|
|
/* 456 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
|
|
|
/* 457 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
|
|
|
/* 458 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
|
|
|
/* 459 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
|
|
|
/* 460 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
|
|
|
/* 461 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
|
|
|
/* 462 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
|
|
|
/* 463 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
|
|
|
/* 464 */ "expression_list ::= expr_or_subquery",
|
|
|
|
|
/* 465 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
|
|
|
/* 466 */ "column_reference ::= column_name",
|
|
|
|
|
/* 467 */ "column_reference ::= table_name NK_DOT column_name",
|
|
|
|
|
/* 468 */ "column_reference ::= NK_ALIAS",
|
|
|
|
|
/* 469 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
|
|
|
|
|
/* 470 */ "pseudo_column ::= ROWTS",
|
|
|
|
|
/* 471 */ "pseudo_column ::= TBNAME",
|
|
|
|
|
/* 472 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
|
|
|
/* 473 */ "pseudo_column ::= QSTART",
|
|
|
|
|
/* 474 */ "pseudo_column ::= QEND",
|
|
|
|
|
/* 475 */ "pseudo_column ::= QDURATION",
|
|
|
|
|
/* 476 */ "pseudo_column ::= WSTART",
|
|
|
|
|
/* 477 */ "pseudo_column ::= WEND",
|
|
|
|
|
/* 478 */ "pseudo_column ::= WDURATION",
|
|
|
|
|
/* 479 */ "pseudo_column ::= IROWTS",
|
|
|
|
|
/* 480 */ "pseudo_column ::= ISFILLED",
|
|
|
|
|
/* 481 */ "pseudo_column ::= QTAGS",
|
|
|
|
|
/* 482 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
|
|
|
/* 483 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
|
|
|
/* 484 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
|
|
|
/* 485 */ "function_expression ::= literal_func",
|
|
|
|
|
/* 486 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
|
|
|
/* 487 */ "literal_func ::= NOW",
|
|
|
|
|
/* 488 */ "noarg_func ::= NOW",
|
|
|
|
|
/* 489 */ "noarg_func ::= TODAY",
|
|
|
|
|
/* 490 */ "noarg_func ::= TIMEZONE",
|
|
|
|
|
/* 491 */ "noarg_func ::= DATABASE",
|
|
|
|
|
/* 492 */ "noarg_func ::= CLIENT_VERSION",
|
|
|
|
|
/* 493 */ "noarg_func ::= SERVER_VERSION",
|
|
|
|
|
/* 494 */ "noarg_func ::= SERVER_STATUS",
|
|
|
|
|
/* 495 */ "noarg_func ::= CURRENT_USER",
|
|
|
|
|
/* 496 */ "noarg_func ::= USER",
|
|
|
|
|
/* 497 */ "star_func ::= COUNT",
|
|
|
|
|
/* 498 */ "star_func ::= FIRST",
|
|
|
|
|
/* 499 */ "star_func ::= LAST",
|
|
|
|
|
/* 500 */ "star_func ::= LAST_ROW",
|
|
|
|
|
/* 501 */ "star_func_para_list ::= NK_STAR",
|
|
|
|
|
/* 502 */ "star_func_para_list ::= other_para_list",
|
|
|
|
|
/* 503 */ "other_para_list ::= star_func_para",
|
|
|
|
|
/* 504 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
|
|
|
/* 505 */ "star_func_para ::= expr_or_subquery",
|
|
|
|
|
/* 506 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
|
|
|
/* 507 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
|
|
|
/* 508 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
|
|
|
/* 509 */ "when_then_list ::= when_then_expr",
|
|
|
|
|
/* 510 */ "when_then_list ::= when_then_list when_then_expr",
|
|
|
|
|
/* 511 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
|
|
|
/* 512 */ "case_when_else_opt ::=",
|
|
|
|
|
/* 513 */ "case_when_else_opt ::= ELSE common_expression",
|
|
|
|
|
/* 514 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
|
|
|
/* 515 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
|
|
|
/* 516 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
|
|
|
/* 517 */ "predicate ::= expr_or_subquery IS NULL",
|
|
|
|
|
/* 518 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
|
|
|
/* 519 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
|
|
|
/* 520 */ "compare_op ::= NK_LT",
|
|
|
|
|
/* 521 */ "compare_op ::= NK_GT",
|
|
|
|
|
/* 522 */ "compare_op ::= NK_LE",
|
|
|
|
|
/* 523 */ "compare_op ::= NK_GE",
|
|
|
|
|
/* 524 */ "compare_op ::= NK_NE",
|
|
|
|
|
/* 525 */ "compare_op ::= NK_EQ",
|
|
|
|
|
/* 526 */ "compare_op ::= LIKE",
|
|
|
|
|
/* 527 */ "compare_op ::= NOT LIKE",
|
|
|
|
|
/* 528 */ "compare_op ::= MATCH",
|
|
|
|
|
/* 529 */ "compare_op ::= NMATCH",
|
|
|
|
|
/* 530 */ "compare_op ::= CONTAINS",
|
|
|
|
|
/* 531 */ "in_op ::= IN",
|
|
|
|
|
/* 532 */ "in_op ::= NOT IN",
|
|
|
|
|
/* 533 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
|
|
|
/* 534 */ "boolean_value_expression ::= boolean_primary",
|
|
|
|
|
/* 535 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
|
|
|
/* 536 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
|
|
|
/* 537 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
|
|
|
/* 538 */ "boolean_primary ::= predicate",
|
|
|
|
|
/* 539 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
|
|
|
/* 540 */ "common_expression ::= expr_or_subquery",
|
|
|
|
|
/* 541 */ "common_expression ::= boolean_value_expression",
|
|
|
|
|
/* 542 */ "from_clause_opt ::=",
|
|
|
|
|
/* 543 */ "from_clause_opt ::= FROM table_reference_list",
|
|
|
|
|
/* 544 */ "table_reference_list ::= table_reference",
|
|
|
|
|
/* 545 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
|
|
|
/* 546 */ "table_reference ::= table_primary",
|
|
|
|
|
/* 547 */ "table_reference ::= joined_table",
|
|
|
|
|
/* 548 */ "table_primary ::= table_name alias_opt",
|
|
|
|
|
/* 549 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
|
|
|
/* 550 */ "table_primary ::= subquery alias_opt",
|
|
|
|
|
/* 551 */ "table_primary ::= parenthesized_joined_table",
|
|
|
|
|
/* 552 */ "alias_opt ::=",
|
|
|
|
|
/* 553 */ "alias_opt ::= table_alias",
|
|
|
|
|
/* 554 */ "alias_opt ::= AS table_alias",
|
|
|
|
|
/* 555 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
|
|
|
/* 556 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
|
|
|
/* 557 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
|
|
|
|
|
/* 558 */ "join_type ::=",
|
|
|
|
|
/* 559 */ "join_type ::= INNER",
|
|
|
|
|
/* 560 */ "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",
|
|
|
|
|
/* 561 */ "hint_list ::=",
|
|
|
|
|
/* 562 */ "hint_list ::= NK_HINT",
|
|
|
|
|
/* 563 */ "tag_mode_opt ::=",
|
|
|
|
|
/* 564 */ "tag_mode_opt ::= TAGS",
|
|
|
|
|
/* 565 */ "set_quantifier_opt ::=",
|
|
|
|
|
/* 566 */ "set_quantifier_opt ::= DISTINCT",
|
|
|
|
|
/* 567 */ "set_quantifier_opt ::= ALL",
|
|
|
|
|
/* 568 */ "select_list ::= select_item",
|
|
|
|
|
/* 569 */ "select_list ::= select_list NK_COMMA select_item",
|
|
|
|
|
/* 570 */ "select_item ::= NK_STAR",
|
|
|
|
|
/* 571 */ "select_item ::= common_expression",
|
|
|
|
|
/* 572 */ "select_item ::= common_expression column_alias",
|
|
|
|
|
/* 573 */ "select_item ::= common_expression AS column_alias",
|
|
|
|
|
/* 574 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
|
|
|
/* 575 */ "where_clause_opt ::=",
|
|
|
|
|
/* 576 */ "where_clause_opt ::= WHERE search_condition",
|
|
|
|
|
/* 577 */ "partition_by_clause_opt ::=",
|
|
|
|
|
/* 578 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
|
|
|
/* 579 */ "partition_list ::= partition_item",
|
|
|
|
|
/* 580 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
|
|
|
/* 581 */ "partition_item ::= expr_or_subquery",
|
|
|
|
|
/* 582 */ "partition_item ::= expr_or_subquery column_alias",
|
|
|
|
|
/* 583 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
|
|
|
/* 584 */ "twindow_clause_opt ::=",
|
|
|
|
|
/* 585 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
|
|
|
|
|
/* 586 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
|
|
|
/* 587 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
|
|
|
/* 588 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
|
|
|
/* 589 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
|
|
|
|
/* 590 */ "sliding_opt ::=",
|
|
|
|
|
/* 591 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
|
|
|
|
|
/* 592 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
|
|
|
|
|
/* 593 */ "interval_sliding_duration_literal ::= NK_STRING",
|
|
|
|
|
/* 594 */ "interval_sliding_duration_literal ::= NK_INTEGER",
|
|
|
|
|
/* 595 */ "fill_opt ::=",
|
|
|
|
|
/* 596 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
|
|
|
/* 597 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
|
|
|
/* 598 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
|
|
|
/* 599 */ "fill_mode ::= NONE",
|
|
|
|
|
/* 600 */ "fill_mode ::= PREV",
|
|
|
|
|
/* 601 */ "fill_mode ::= NULL",
|
|
|
|
|
/* 602 */ "fill_mode ::= NULL_F",
|
|
|
|
|
/* 603 */ "fill_mode ::= LINEAR",
|
|
|
|
|
/* 604 */ "fill_mode ::= NEXT",
|
|
|
|
|
/* 605 */ "group_by_clause_opt ::=",
|
|
|
|
|
/* 606 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
|
|
|
/* 607 */ "group_by_list ::= expr_or_subquery",
|
|
|
|
|
/* 608 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
|
|
|
/* 609 */ "having_clause_opt ::=",
|
|
|
|
|
/* 610 */ "having_clause_opt ::= HAVING search_condition",
|
|
|
|
|
/* 611 */ "range_opt ::=",
|
|
|
|
|
/* 612 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
|
|
|
/* 613 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
|
|
|
/* 614 */ "every_opt ::=",
|
|
|
|
|
/* 615 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
|
|
|
/* 616 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
|
|
|
/* 617 */ "query_simple ::= query_specification",
|
|
|
|
|
/* 618 */ "query_simple ::= union_query_expression",
|
|
|
|
|
/* 619 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
|
|
|
/* 620 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
|
|
|
/* 621 */ "query_simple_or_subquery ::= query_simple",
|
|
|
|
|
/* 622 */ "query_simple_or_subquery ::= subquery",
|
|
|
|
|
/* 623 */ "query_or_subquery ::= query_expression",
|
|
|
|
|
/* 624 */ "query_or_subquery ::= subquery",
|
|
|
|
|
/* 625 */ "order_by_clause_opt ::=",
|
|
|
|
|
/* 626 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
|
|
|
/* 627 */ "slimit_clause_opt ::=",
|
|
|
|
|
/* 628 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
|
|
|
/* 629 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
|
|
|
/* 630 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
|
|
|
/* 631 */ "limit_clause_opt ::=",
|
|
|
|
|
/* 632 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
|
|
|
/* 633 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
|
|
|
/* 634 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
|
|
|
/* 635 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
|
|
|
/* 636 */ "subquery ::= NK_LP subquery NK_RP",
|
|
|
|
|
/* 637 */ "search_condition ::= common_expression",
|
|
|
|
|
/* 638 */ "sort_specification_list ::= sort_specification",
|
|
|
|
|
/* 639 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
|
|
|
/* 640 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
|
|
|
/* 641 */ "ordering_specification_opt ::=",
|
|
|
|
|
/* 642 */ "ordering_specification_opt ::= ASC",
|
|
|
|
|
/* 643 */ "ordering_specification_opt ::= DESC",
|
|
|
|
|
/* 644 */ "null_ordering_opt ::=",
|
|
|
|
|
/* 645 */ "null_ordering_opt ::= NULLS FIRST",
|
|
|
|
|
/* 646 */ "null_ordering_opt ::= NULLS LAST",
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
#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]));
|
2022-01-23 12:34:16 +00:00
|
|
|
if( pNew ) pNew[0] = p->yystk0;
|
|
|
|
|
}else{
|
2022-03-28 09:08:48 +00:00
|
|
|
pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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){
|
2022-01-23 12:34:16 +00:00
|
|
|
yyParser *yypParser = (yyParser*)yypRawParser;
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseCTX_STORE
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
/*
|
|
|
|
|
** 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-01-23 12:34:16 +00:00
|
|
|
*/
|
2022-03-10 07:36:06 +00:00
|
|
|
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
|
2022-01-23 12:34:16 +00:00
|
|
|
yyParser *yypParser;
|
|
|
|
|
yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
|
|
|
|
|
if( yypParser ){
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseCTX_STORE
|
|
|
|
|
ParseInit(yypParser ParseCTX_PARAM);
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
return (void*)yypParser;
|
|
|
|
|
}
|
2022-03-10 07:36:06 +00:00
|
|
|
#endif /* Parse_ENGINEALWAYSONSTACK */
|
2022-01-23 12:34:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 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
|
2022-01-23 12:34:16 +00:00
|
|
|
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-01-18 09:49:11 +00:00
|
|
|
case 350: /* cmd */
|
|
|
|
|
case 353: /* literal */
|
|
|
|
|
case 362: /* with_opt */
|
|
|
|
|
case 368: /* search_condition */
|
|
|
|
|
case 373: /* db_options */
|
|
|
|
|
case 375: /* alter_db_options */
|
|
|
|
|
case 377: /* start_opt */
|
|
|
|
|
case 378: /* end_opt */
|
|
|
|
|
case 382: /* signed */
|
|
|
|
|
case 384: /* retention */
|
|
|
|
|
case 385: /* full_table_name */
|
|
|
|
|
case 388: /* table_options */
|
|
|
|
|
case 392: /* alter_table_clause */
|
|
|
|
|
case 393: /* alter_table_options */
|
|
|
|
|
case 396: /* signed_literal */
|
|
|
|
|
case 397: /* create_subtable_clause */
|
|
|
|
|
case 400: /* drop_table_clause */
|
|
|
|
|
case 402: /* column_def */
|
|
|
|
|
case 406: /* duration_literal */
|
|
|
|
|
case 407: /* rollup_func_name */
|
|
|
|
|
case 409: /* col_name */
|
|
|
|
|
case 412: /* like_pattern_opt */
|
|
|
|
|
case 413: /* db_name_cond_opt */
|
|
|
|
|
case 414: /* table_name_cond */
|
|
|
|
|
case 415: /* from_db_opt */
|
|
|
|
|
case 418: /* tag_item */
|
|
|
|
|
case 420: /* index_options */
|
|
|
|
|
case 421: /* full_index_name */
|
|
|
|
|
case 424: /* sliding_opt */
|
|
|
|
|
case 425: /* sma_stream_opt */
|
|
|
|
|
case 426: /* func */
|
|
|
|
|
case 429: /* query_or_subquery */
|
|
|
|
|
case 430: /* where_clause_opt */
|
|
|
|
|
case 433: /* explain_options */
|
|
|
|
|
case 434: /* insert_query */
|
|
|
|
|
case 439: /* full_view_name */
|
|
|
|
|
case 442: /* stream_options */
|
|
|
|
|
case 445: /* subtable_opt */
|
|
|
|
|
case 447: /* expression */
|
|
|
|
|
case 450: /* literal_func */
|
|
|
|
|
case 453: /* expr_or_subquery */
|
|
|
|
|
case 454: /* pseudo_column */
|
|
|
|
|
case 455: /* column_reference */
|
|
|
|
|
case 456: /* function_expression */
|
|
|
|
|
case 457: /* case_when_expression */
|
|
|
|
|
case 462: /* star_func_para */
|
|
|
|
|
case 464: /* case_when_else_opt */
|
|
|
|
|
case 465: /* common_expression */
|
|
|
|
|
case 466: /* when_then_expr */
|
|
|
|
|
case 467: /* predicate */
|
|
|
|
|
case 470: /* in_predicate_value */
|
|
|
|
|
case 471: /* boolean_value_expression */
|
|
|
|
|
case 472: /* boolean_primary */
|
|
|
|
|
case 473: /* from_clause_opt */
|
|
|
|
|
case 474: /* table_reference_list */
|
|
|
|
|
case 475: /* table_reference */
|
|
|
|
|
case 476: /* table_primary */
|
|
|
|
|
case 477: /* joined_table */
|
|
|
|
|
case 479: /* subquery */
|
|
|
|
|
case 480: /* parenthesized_joined_table */
|
|
|
|
|
case 482: /* query_specification */
|
|
|
|
|
case 488: /* range_opt */
|
|
|
|
|
case 489: /* every_opt */
|
|
|
|
|
case 490: /* fill_opt */
|
|
|
|
|
case 491: /* twindow_clause_opt */
|
|
|
|
|
case 493: /* having_clause_opt */
|
|
|
|
|
case 494: /* select_item */
|
|
|
|
|
case 496: /* partition_item */
|
|
|
|
|
case 497: /* interval_sliding_duration_literal */
|
|
|
|
|
case 500: /* query_expression */
|
|
|
|
|
case 501: /* query_simple */
|
|
|
|
|
case 503: /* slimit_clause_opt */
|
|
|
|
|
case 504: /* limit_clause_opt */
|
|
|
|
|
case 505: /* union_query_expression */
|
|
|
|
|
case 506: /* query_simple_or_subquery */
|
|
|
|
|
case 508: /* sort_specification */
|
2022-06-22 08:35:14 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
nodesDestroyNode((yypminor->yy490));
|
2022-06-22 08:35:14 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 351: /* account_options */
|
|
|
|
|
case 352: /* alter_account_options */
|
|
|
|
|
case 354: /* alter_account_option */
|
|
|
|
|
case 376: /* speed_opt */
|
|
|
|
|
case 428: /* with_meta */
|
|
|
|
|
case 437: /* bufsize_opt */
|
2022-05-07 09:37:17 +00:00
|
|
|
{
|
2022-06-22 08:35:14 +00:00
|
|
|
|
2022-05-07 09:37:17 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 355: /* ip_range_list */
|
|
|
|
|
case 356: /* white_list */
|
|
|
|
|
case 357: /* white_list_opt */
|
|
|
|
|
case 379: /* integer_list */
|
|
|
|
|
case 380: /* variable_list */
|
|
|
|
|
case 381: /* retention_list */
|
|
|
|
|
case 386: /* column_def_list */
|
|
|
|
|
case 387: /* tags_def_opt */
|
|
|
|
|
case 389: /* multi_create_clause */
|
|
|
|
|
case 390: /* tags_def */
|
|
|
|
|
case 391: /* multi_drop_clause */
|
|
|
|
|
case 398: /* specific_cols_opt */
|
|
|
|
|
case 399: /* expression_list */
|
|
|
|
|
case 401: /* col_name_list */
|
|
|
|
|
case 403: /* duration_list */
|
|
|
|
|
case 404: /* rollup_func_list */
|
|
|
|
|
case 416: /* tag_list_opt */
|
|
|
|
|
case 423: /* func_list */
|
|
|
|
|
case 443: /* col_list_opt */
|
|
|
|
|
case 444: /* tag_def_or_ref_opt */
|
|
|
|
|
case 449: /* dnode_list */
|
|
|
|
|
case 451: /* literal_list */
|
|
|
|
|
case 459: /* star_func_para_list */
|
|
|
|
|
case 461: /* other_para_list */
|
|
|
|
|
case 463: /* when_then_list */
|
|
|
|
|
case 483: /* hint_list */
|
|
|
|
|
case 486: /* select_list */
|
|
|
|
|
case 487: /* partition_by_clause_opt */
|
|
|
|
|
case 492: /* group_by_clause_opt */
|
|
|
|
|
case 495: /* partition_list */
|
|
|
|
|
case 499: /* group_by_list */
|
|
|
|
|
case 502: /* order_by_clause_opt */
|
|
|
|
|
case 507: /* sort_specification_list */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
nodesDestroyList((yypminor->yy502));
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 358: /* user_name */
|
|
|
|
|
case 365: /* db_name */
|
|
|
|
|
case 366: /* table_name */
|
|
|
|
|
case 367: /* topic_name */
|
|
|
|
|
case 369: /* dnode_endpoint */
|
|
|
|
|
case 394: /* column_name */
|
|
|
|
|
case 408: /* function_name */
|
|
|
|
|
case 419: /* column_alias */
|
|
|
|
|
case 422: /* index_name */
|
|
|
|
|
case 427: /* sma_func_name */
|
|
|
|
|
case 431: /* cgroup_name */
|
|
|
|
|
case 438: /* language_opt */
|
|
|
|
|
case 440: /* view_name */
|
|
|
|
|
case 441: /* stream_name */
|
|
|
|
|
case 448: /* on_vgroup_id */
|
|
|
|
|
case 452: /* table_alias */
|
|
|
|
|
case 458: /* star_func */
|
|
|
|
|
case 460: /* noarg_func */
|
|
|
|
|
case 478: /* alias_opt */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-03-01 02:13:22 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 359: /* sysinfo_opt */
|
2023-03-28 10:43:58 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 360: /* privileges */
|
|
|
|
|
case 363: /* priv_type_list */
|
|
|
|
|
case 364: /* priv_type */
|
2022-03-01 02:13:22 +00:00
|
|
|
{
|
2022-03-03 12:25:16 +00:00
|
|
|
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 361: /* priv_level */
|
2022-03-03 12:25:16 +00:00
|
|
|
{
|
2022-03-16 11:28:40 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 370: /* force_opt */
|
|
|
|
|
case 371: /* unsafe_opt */
|
|
|
|
|
case 372: /* not_exists_opt */
|
|
|
|
|
case 374: /* exists_opt */
|
|
|
|
|
case 432: /* analyze_opt */
|
|
|
|
|
case 435: /* or_replace_opt */
|
|
|
|
|
case 436: /* agg_func_opt */
|
|
|
|
|
case 446: /* ignore_opt */
|
|
|
|
|
case 484: /* set_quantifier_opt */
|
|
|
|
|
case 485: /* tag_mode_opt */
|
2022-03-16 11:28:40 +00:00
|
|
|
{
|
2023-08-24 07:54:10 +00:00
|
|
|
|
2022-03-03 12:25:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 383: /* alter_db_option */
|
|
|
|
|
case 405: /* alter_table_option */
|
2022-03-16 11:28:40 +00:00
|
|
|
{
|
2022-03-31 11:38:17 +00:00
|
|
|
|
2022-03-16 11:28:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 395: /* type_name */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 410: /* db_kind_opt */
|
|
|
|
|
case 417: /* table_kind */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 411: /* table_kind_db_name_cond_opt */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-27 06:32:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 468: /* compare_op */
|
|
|
|
|
case 469: /* in_op */
|
2022-01-27 06:32:40 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-27 06:32:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 481: /* join_type */
|
2022-01-27 16:28:13 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-27 16:28:13 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 498: /* fill_mode */
|
2023-09-19 08:14:17 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-27 16:28:13 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 509: /* ordering_specification_opt */
|
2022-01-27 06:32:40 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2023-09-19 08:14:17 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 510: /* null_ordering_opt */
|
2022-01-27 06:32:40 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-23 12:34:16 +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){
|
2022-01-23 12:34:16 +00:00
|
|
|
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);
|
2022-01-23 12:34:16 +00:00
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-10 07:36:06 +00:00
|
|
|
#ifndef Parse_ENGINEALWAYSONSTACK
|
2022-01-23 12:34:16 +00:00
|
|
|
/*
|
|
|
|
|
** 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(
|
2022-01-23 12:34:16 +00:00
|
|
|
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);
|
2022-01-23 12:34:16 +00:00
|
|
|
(*freeProc)(p);
|
|
|
|
|
}
|
2022-03-10 07:36:06 +00:00
|
|
|
#endif /* Parse_ENGINEALWAYSONSTACK */
|
2022-01-23 12:34:16 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** Return the peak depth of the stack for a parser.
|
|
|
|
|
*/
|
|
|
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
2022-03-10 07:36:06 +00:00
|
|
|
int ParseStackPeak(void *p){
|
2022-01-23 12:34:16 +00:00
|
|
|
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){
|
2022-01-23 12:34:16 +00:00
|
|
|
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 );
|
2022-01-23 12:34:16 +00:00
|
|
|
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 ){
|
2022-01-23 12:34:16 +00:00
|
|
|
#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 ){
|
2022-01-23 12:34:16 +00:00
|
|
|
#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 ){
|
2022-01-23 12:34:16 +00:00
|
|
|
#ifndef NDEBUG
|
|
|
|
|
if( yyTraceFILE ){
|
|
|
|
|
fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
|
|
|
|
|
yyTracePrompt, yyTokenName[iLookAhead],
|
|
|
|
|
yyTokenName[YYWILDCARD]);
|
|
|
|
|
}
|
|
|
|
|
#endif /* NDEBUG */
|
|
|
|
|
return yy_action[j];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif /* YYWILDCARD */
|
|
|
|
|
return yy_default[stateno];
|
|
|
|
|
}else{
|
2023-12-18 08:34:31 +00:00
|
|
|
assert( i>=0 && i<sizeof(yy_action)/sizeof(yy_action[0]) );
|
2022-01-23 12:34:16 +00:00
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** 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 */
|
2022-01-23 12:34:16 +00:00
|
|
|
){
|
|
|
|
|
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-01-18 09:49:11 +00:00
|
|
|
350, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
|
|
|
350, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
|
|
|
351, /* (2) account_options ::= */
|
|
|
|
|
351, /* (3) account_options ::= account_options PPS literal */
|
|
|
|
|
351, /* (4) account_options ::= account_options TSERIES literal */
|
|
|
|
|
351, /* (5) account_options ::= account_options STORAGE literal */
|
|
|
|
|
351, /* (6) account_options ::= account_options STREAMS literal */
|
|
|
|
|
351, /* (7) account_options ::= account_options QTIME literal */
|
|
|
|
|
351, /* (8) account_options ::= account_options DBS literal */
|
|
|
|
|
351, /* (9) account_options ::= account_options USERS literal */
|
|
|
|
|
351, /* (10) account_options ::= account_options CONNS literal */
|
|
|
|
|
351, /* (11) account_options ::= account_options STATE literal */
|
|
|
|
|
352, /* (12) alter_account_options ::= alter_account_option */
|
|
|
|
|
352, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
|
|
|
354, /* (14) alter_account_option ::= PASS literal */
|
|
|
|
|
354, /* (15) alter_account_option ::= PPS literal */
|
|
|
|
|
354, /* (16) alter_account_option ::= TSERIES literal */
|
|
|
|
|
354, /* (17) alter_account_option ::= STORAGE literal */
|
|
|
|
|
354, /* (18) alter_account_option ::= STREAMS literal */
|
|
|
|
|
354, /* (19) alter_account_option ::= QTIME literal */
|
|
|
|
|
354, /* (20) alter_account_option ::= DBS literal */
|
|
|
|
|
354, /* (21) alter_account_option ::= USERS literal */
|
|
|
|
|
354, /* (22) alter_account_option ::= CONNS literal */
|
|
|
|
|
354, /* (23) alter_account_option ::= STATE literal */
|
|
|
|
|
355, /* (24) ip_range_list ::= NK_STRING */
|
|
|
|
|
355, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
|
|
|
356, /* (26) white_list ::= HOST ip_range_list */
|
|
|
|
|
357, /* (27) white_list_opt ::= */
|
|
|
|
|
357, /* (28) white_list_opt ::= white_list */
|
|
|
|
|
350, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
|
|
|
350, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
|
|
|
350, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
|
|
|
350, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
|
|
|
350, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
|
|
|
350, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
|
|
|
350, /* (35) cmd ::= DROP USER user_name */
|
|
|
|
|
359, /* (36) sysinfo_opt ::= */
|
|
|
|
|
359, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
|
|
|
350, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
|
|
|
350, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
|
|
|
360, /* (40) privileges ::= ALL */
|
|
|
|
|
360, /* (41) privileges ::= priv_type_list */
|
|
|
|
|
360, /* (42) privileges ::= SUBSCRIBE */
|
|
|
|
|
363, /* (43) priv_type_list ::= priv_type */
|
|
|
|
|
363, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
|
|
|
364, /* (45) priv_type ::= READ */
|
|
|
|
|
364, /* (46) priv_type ::= WRITE */
|
|
|
|
|
364, /* (47) priv_type ::= ALTER */
|
|
|
|
|
361, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
|
|
|
361, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
|
|
|
|
|
361, /* (50) priv_level ::= db_name NK_DOT table_name */
|
|
|
|
|
361, /* (51) priv_level ::= topic_name */
|
|
|
|
|
362, /* (52) with_opt ::= */
|
|
|
|
|
362, /* (53) with_opt ::= WITH search_condition */
|
|
|
|
|
350, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
|
|
|
|
|
350, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
|
|
|
350, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
|
|
|
350, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
|
|
|
350, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
|
|
|
350, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
|
|
|
350, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
|
|
|
350, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
|
|
|
350, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
|
|
|
350, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
|
|
|
350, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
|
|
|
369, /* (65) dnode_endpoint ::= NK_STRING */
|
|
|
|
|
369, /* (66) dnode_endpoint ::= NK_ID */
|
|
|
|
|
369, /* (67) dnode_endpoint ::= NK_IPTOKEN */
|
|
|
|
|
370, /* (68) force_opt ::= */
|
|
|
|
|
370, /* (69) force_opt ::= FORCE */
|
|
|
|
|
371, /* (70) unsafe_opt ::= UNSAFE */
|
|
|
|
|
350, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
|
|
|
|
|
350, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
|
|
|
350, /* (73) cmd ::= ALTER LOCAL NK_STRING */
|
|
|
|
|
350, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
|
|
|
350, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
|
|
|
350, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
|
|
|
|
|
350, /* (88) cmd ::= USE db_name */
|
|
|
|
|
350, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
|
|
|
350, /* (90) cmd ::= FLUSH DATABASE db_name */
|
|
|
|
|
350, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
|
|
|
350, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
|
|
|
372, /* (93) not_exists_opt ::= IF NOT EXISTS */
|
|
|
|
|
372, /* (94) not_exists_opt ::= */
|
|
|
|
|
374, /* (95) exists_opt ::= IF EXISTS */
|
|
|
|
|
374, /* (96) exists_opt ::= */
|
|
|
|
|
373, /* (97) db_options ::= */
|
|
|
|
|
373, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
|
|
|
|
|
373, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
|
|
|
373, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
|
|
|
373, /* (101) db_options ::= db_options COMP NK_INTEGER */
|
|
|
|
|
373, /* (102) db_options ::= db_options DURATION NK_INTEGER */
|
|
|
|
|
373, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
|
|
|
|
|
373, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
|
|
|
373, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
|
|
|
|
|
373, /* (106) db_options ::= db_options KEEP integer_list */
|
|
|
|
|
373, /* (107) db_options ::= db_options KEEP variable_list */
|
|
|
|
|
373, /* (108) db_options ::= db_options PAGES NK_INTEGER */
|
|
|
|
|
373, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
|
|
|
373, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
|
|
|
373, /* (111) db_options ::= db_options PRECISION NK_STRING */
|
|
|
|
|
373, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
|
|
|
|
|
373, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
|
|
|
373, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
|
|
|
373, /* (115) db_options ::= db_options RETENTIONS retention_list */
|
|
|
|
|
373, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
|
|
|
373, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
|
|
|
373, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
|
|
|
373, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
|
|
|
373, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
|
|
|
373, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
|
|
|
373, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
|
|
|
373, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
|
|
|
373, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
|
|
|
373, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
|
|
|
373, /* (126) db_options ::= db_options TABLE_PREFIX signed */
|
|
|
|
|
373, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
|
|
|
|
|
373, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
|
|
|
375, /* (129) alter_db_options ::= alter_db_option */
|
|
|
|
|
375, /* (130) alter_db_options ::= alter_db_options alter_db_option */
|
|
|
|
|
383, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
|
|
|
|
|
383, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
|
|
|
383, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
|
|
|
383, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
|
|
|
383, /* (135) alter_db_option ::= KEEP integer_list */
|
|
|
|
|
383, /* (136) alter_db_option ::= KEEP variable_list */
|
|
|
|
|
383, /* (137) alter_db_option ::= PAGES NK_INTEGER */
|
|
|
|
|
383, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
|
|
|
|
|
383, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
|
|
|
383, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
|
|
|
383, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
|
|
|
|
|
383, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
|
|
|
383, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
|
|
|
383, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
|
|
|
383, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
|
|
|
383, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
|
|
|
379, /* (147) integer_list ::= NK_INTEGER */
|
|
|
|
|
379, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
|
|
|
380, /* (149) variable_list ::= NK_VARIABLE */
|
|
|
|
|
380, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
|
|
|
381, /* (151) retention_list ::= retention */
|
|
|
|
|
381, /* (152) retention_list ::= retention_list NK_COMMA retention */
|
|
|
|
|
384, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
|
|
|
384, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
|
|
|
376, /* (155) speed_opt ::= */
|
|
|
|
|
376, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
|
|
|
377, /* (157) start_opt ::= */
|
|
|
|
|
377, /* (158) start_opt ::= START WITH NK_INTEGER */
|
|
|
|
|
377, /* (159) start_opt ::= START WITH NK_STRING */
|
|
|
|
|
377, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
|
|
|
378, /* (161) end_opt ::= */
|
|
|
|
|
378, /* (162) end_opt ::= END WITH NK_INTEGER */
|
|
|
|
|
378, /* (163) end_opt ::= END WITH NK_STRING */
|
|
|
|
|
378, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
|
|
|
350, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
|
|
|
350, /* (166) cmd ::= CREATE TABLE multi_create_clause */
|
|
|
|
|
350, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
|
|
|
350, /* (168) cmd ::= DROP TABLE multi_drop_clause */
|
|
|
|
|
350, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
|
|
|
350, /* (170) cmd ::= ALTER TABLE alter_table_clause */
|
|
|
|
|
350, /* (171) cmd ::= ALTER STABLE alter_table_clause */
|
|
|
|
|
392, /* (172) alter_table_clause ::= full_table_name alter_table_options */
|
|
|
|
|
392, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
|
|
|
392, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
|
|
|
392, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
|
|
|
392, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
|
|
|
392, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
|
|
|
392, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
|
|
|
392, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
|
|
|
392, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
|
|
|
392, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
|
|
|
389, /* (182) multi_create_clause ::= create_subtable_clause */
|
|
|
|
|
389, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
|
|
|
397, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
|
|
|
391, /* (185) multi_drop_clause ::= drop_table_clause */
|
|
|
|
|
391, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
|
|
|
400, /* (187) drop_table_clause ::= exists_opt full_table_name */
|
|
|
|
|
398, /* (188) specific_cols_opt ::= */
|
|
|
|
|
398, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
385, /* (190) full_table_name ::= table_name */
|
|
|
|
|
385, /* (191) full_table_name ::= db_name NK_DOT table_name */
|
|
|
|
|
386, /* (192) column_def_list ::= column_def */
|
|
|
|
|
386, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
|
|
|
402, /* (194) column_def ::= column_name type_name */
|
|
|
|
|
395, /* (195) type_name ::= BOOL */
|
|
|
|
|
395, /* (196) type_name ::= TINYINT */
|
|
|
|
|
395, /* (197) type_name ::= SMALLINT */
|
|
|
|
|
395, /* (198) type_name ::= INT */
|
|
|
|
|
395, /* (199) type_name ::= INTEGER */
|
|
|
|
|
395, /* (200) type_name ::= BIGINT */
|
|
|
|
|
395, /* (201) type_name ::= FLOAT */
|
|
|
|
|
395, /* (202) type_name ::= DOUBLE */
|
|
|
|
|
395, /* (203) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
395, /* (204) type_name ::= TIMESTAMP */
|
|
|
|
|
395, /* (205) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
395, /* (206) type_name ::= TINYINT UNSIGNED */
|
|
|
|
|
395, /* (207) type_name ::= SMALLINT UNSIGNED */
|
|
|
|
|
395, /* (208) type_name ::= INT UNSIGNED */
|
|
|
|
|
395, /* (209) type_name ::= BIGINT UNSIGNED */
|
|
|
|
|
395, /* (210) type_name ::= JSON */
|
|
|
|
|
395, /* (211) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
395, /* (212) type_name ::= MEDIUMBLOB */
|
|
|
|
|
395, /* (213) type_name ::= BLOB */
|
|
|
|
|
395, /* (214) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
395, /* (215) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
395, /* (216) type_name ::= DECIMAL */
|
|
|
|
|
395, /* (217) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
395, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
387, /* (219) tags_def_opt ::= */
|
|
|
|
|
387, /* (220) tags_def_opt ::= tags_def */
|
|
|
|
|
390, /* (221) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
|
|
|
388, /* (222) table_options ::= */
|
|
|
|
|
388, /* (223) table_options ::= table_options COMMENT NK_STRING */
|
|
|
|
|
388, /* (224) table_options ::= table_options MAX_DELAY duration_list */
|
|
|
|
|
388, /* (225) table_options ::= table_options WATERMARK duration_list */
|
|
|
|
|
388, /* (226) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
|
|
|
388, /* (227) table_options ::= table_options TTL NK_INTEGER */
|
|
|
|
|
388, /* (228) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
|
|
|
388, /* (229) table_options ::= table_options DELETE_MARK duration_list */
|
|
|
|
|
393, /* (230) alter_table_options ::= alter_table_option */
|
|
|
|
|
393, /* (231) alter_table_options ::= alter_table_options alter_table_option */
|
|
|
|
|
405, /* (232) alter_table_option ::= COMMENT NK_STRING */
|
|
|
|
|
405, /* (233) alter_table_option ::= TTL NK_INTEGER */
|
|
|
|
|
403, /* (234) duration_list ::= duration_literal */
|
|
|
|
|
403, /* (235) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
|
|
|
404, /* (236) rollup_func_list ::= rollup_func_name */
|
|
|
|
|
404, /* (237) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
|
|
|
407, /* (238) rollup_func_name ::= function_name */
|
|
|
|
|
407, /* (239) rollup_func_name ::= FIRST */
|
|
|
|
|
407, /* (240) rollup_func_name ::= LAST */
|
|
|
|
|
401, /* (241) col_name_list ::= col_name */
|
|
|
|
|
401, /* (242) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
|
|
|
409, /* (243) col_name ::= column_name */
|
|
|
|
|
350, /* (244) cmd ::= SHOW DNODES */
|
|
|
|
|
350, /* (245) cmd ::= SHOW USERS */
|
|
|
|
|
350, /* (246) cmd ::= SHOW USER PRIVILEGES */
|
|
|
|
|
350, /* (247) cmd ::= SHOW db_kind_opt DATABASES */
|
|
|
|
|
350, /* (248) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
|
|
|
350, /* (249) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
|
|
|
350, /* (250) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
|
|
|
350, /* (251) cmd ::= SHOW MNODES */
|
|
|
|
|
350, /* (252) cmd ::= SHOW QNODES */
|
|
|
|
|
350, /* (253) cmd ::= SHOW FUNCTIONS */
|
|
|
|
|
350, /* (254) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
|
|
|
350, /* (255) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
|
|
|
350, /* (256) cmd ::= SHOW STREAMS */
|
|
|
|
|
350, /* (257) cmd ::= SHOW ACCOUNTS */
|
|
|
|
|
350, /* (258) cmd ::= SHOW APPS */
|
|
|
|
|
350, /* (259) cmd ::= SHOW CONNECTIONS */
|
|
|
|
|
350, /* (260) cmd ::= SHOW LICENCES */
|
|
|
|
|
350, /* (261) cmd ::= SHOW GRANTS */
|
|
|
|
|
350, /* (262) cmd ::= SHOW GRANTS FULL */
|
|
|
|
|
350, /* (263) cmd ::= SHOW GRANTS LOG */
|
|
|
|
|
350, /* (264) cmd ::= SHOW CLUSTER MACHINES */
|
|
|
|
|
350, /* (265) cmd ::= SHOW CREATE DATABASE db_name */
|
|
|
|
|
350, /* (266) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
|
|
|
350, /* (267) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
|
|
|
350, /* (268) cmd ::= SHOW QUERIES */
|
|
|
|
|
350, /* (269) cmd ::= SHOW SCORES */
|
|
|
|
|
350, /* (270) cmd ::= SHOW TOPICS */
|
|
|
|
|
350, /* (271) cmd ::= SHOW VARIABLES */
|
|
|
|
|
350, /* (272) cmd ::= SHOW CLUSTER VARIABLES */
|
|
|
|
|
350, /* (273) cmd ::= SHOW LOCAL VARIABLES */
|
|
|
|
|
350, /* (274) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
|
|
|
350, /* (275) cmd ::= SHOW BNODES */
|
|
|
|
|
350, /* (276) cmd ::= SHOW SNODES */
|
|
|
|
|
350, /* (277) cmd ::= SHOW CLUSTER */
|
|
|
|
|
350, /* (278) cmd ::= SHOW TRANSACTIONS */
|
|
|
|
|
350, /* (279) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
|
|
|
350, /* (280) cmd ::= SHOW CONSUMERS */
|
|
|
|
|
350, /* (281) cmd ::= SHOW SUBSCRIPTIONS */
|
|
|
|
|
350, /* (282) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
|
|
|
350, /* (283) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
|
|
|
350, /* (284) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
|
|
|
350, /* (285) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
|
|
|
350, /* (286) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
|
|
|
350, /* (287) cmd ::= SHOW VNODES */
|
|
|
|
|
350, /* (288) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
|
|
|
350, /* (289) cmd ::= SHOW CLUSTER ALIVE */
|
|
|
|
|
350, /* (290) cmd ::= SHOW db_name_cond_opt VIEWS */
|
|
|
|
|
350, /* (291) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
|
|
|
350, /* (292) cmd ::= SHOW COMPACTS */
|
|
|
|
|
350, /* (293) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
|
|
|
411, /* (294) table_kind_db_name_cond_opt ::= */
|
|
|
|
|
411, /* (295) table_kind_db_name_cond_opt ::= table_kind */
|
|
|
|
|
411, /* (296) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
411, /* (297) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
|
|
|
417, /* (298) table_kind ::= NORMAL */
|
|
|
|
|
417, /* (299) table_kind ::= CHILD */
|
|
|
|
|
413, /* (300) db_name_cond_opt ::= */
|
|
|
|
|
413, /* (301) db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
412, /* (302) like_pattern_opt ::= */
|
|
|
|
|
412, /* (303) like_pattern_opt ::= LIKE NK_STRING */
|
|
|
|
|
414, /* (304) table_name_cond ::= table_name */
|
|
|
|
|
415, /* (305) from_db_opt ::= */
|
|
|
|
|
415, /* (306) from_db_opt ::= FROM db_name */
|
|
|
|
|
416, /* (307) tag_list_opt ::= */
|
|
|
|
|
416, /* (308) tag_list_opt ::= tag_item */
|
|
|
|
|
416, /* (309) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
|
|
|
418, /* (310) tag_item ::= TBNAME */
|
|
|
|
|
418, /* (311) tag_item ::= QTAGS */
|
|
|
|
|
418, /* (312) tag_item ::= column_name */
|
|
|
|
|
418, /* (313) tag_item ::= column_name column_alias */
|
|
|
|
|
418, /* (314) tag_item ::= column_name AS column_alias */
|
|
|
|
|
410, /* (315) db_kind_opt ::= */
|
|
|
|
|
410, /* (316) db_kind_opt ::= USER */
|
|
|
|
|
410, /* (317) db_kind_opt ::= SYSTEM */
|
|
|
|
|
350, /* (318) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
|
|
|
350, /* (319) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
|
|
|
350, /* (320) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
|
|
|
421, /* (321) full_index_name ::= index_name */
|
|
|
|
|
421, /* (322) full_index_name ::= db_name NK_DOT index_name */
|
|
|
|
|
420, /* (323) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
|
|
|
420, /* (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 */
|
|
|
|
|
423, /* (325) func_list ::= func */
|
|
|
|
|
423, /* (326) func_list ::= func_list NK_COMMA func */
|
|
|
|
|
426, /* (327) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
|
|
|
427, /* (328) sma_func_name ::= function_name */
|
|
|
|
|
427, /* (329) sma_func_name ::= COUNT */
|
|
|
|
|
427, /* (330) sma_func_name ::= FIRST */
|
|
|
|
|
427, /* (331) sma_func_name ::= LAST */
|
|
|
|
|
427, /* (332) sma_func_name ::= LAST_ROW */
|
|
|
|
|
425, /* (333) sma_stream_opt ::= */
|
|
|
|
|
425, /* (334) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
|
|
|
425, /* (335) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
|
|
|
425, /* (336) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
|
|
|
428, /* (337) with_meta ::= AS */
|
|
|
|
|
428, /* (338) with_meta ::= WITH META AS */
|
|
|
|
|
428, /* (339) with_meta ::= ONLY META AS */
|
|
|
|
|
350, /* (340) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
|
|
|
350, /* (341) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
|
|
|
350, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
|
|
|
350, /* (343) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
|
|
|
350, /* (344) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
|
|
|
350, /* (345) cmd ::= DESC full_table_name */
|
|
|
|
|
350, /* (346) cmd ::= DESCRIBE full_table_name */
|
|
|
|
|
350, /* (347) cmd ::= RESET QUERY CACHE */
|
|
|
|
|
350, /* (348) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
|
|
|
350, /* (349) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
|
|
|
432, /* (350) analyze_opt ::= */
|
|
|
|
|
432, /* (351) analyze_opt ::= ANALYZE */
|
|
|
|
|
433, /* (352) explain_options ::= */
|
|
|
|
|
433, /* (353) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
|
|
|
433, /* (354) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
|
|
|
350, /* (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 */
|
|
|
|
|
350, /* (356) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
|
|
|
436, /* (357) agg_func_opt ::= */
|
|
|
|
|
436, /* (358) agg_func_opt ::= AGGREGATE */
|
|
|
|
|
437, /* (359) bufsize_opt ::= */
|
|
|
|
|
437, /* (360) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
|
|
|
438, /* (361) language_opt ::= */
|
|
|
|
|
438, /* (362) language_opt ::= LANGUAGE NK_STRING */
|
|
|
|
|
435, /* (363) or_replace_opt ::= */
|
|
|
|
|
435, /* (364) or_replace_opt ::= OR REPLACE */
|
|
|
|
|
350, /* (365) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
|
|
|
350, /* (366) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
|
|
|
439, /* (367) full_view_name ::= view_name */
|
|
|
|
|
439, /* (368) full_view_name ::= db_name NK_DOT view_name */
|
|
|
|
|
350, /* (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 */
|
|
|
|
|
350, /* (370) cmd ::= DROP STREAM exists_opt stream_name */
|
|
|
|
|
350, /* (371) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
|
|
|
350, /* (372) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
|
|
|
443, /* (373) col_list_opt ::= */
|
|
|
|
|
443, /* (374) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
444, /* (375) tag_def_or_ref_opt ::= */
|
|
|
|
|
444, /* (376) tag_def_or_ref_opt ::= tags_def */
|
|
|
|
|
444, /* (377) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
|
|
|
442, /* (378) stream_options ::= */
|
|
|
|
|
442, /* (379) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
|
|
|
442, /* (380) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
|
|
|
442, /* (381) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
|
|
|
442, /* (382) stream_options ::= stream_options WATERMARK duration_literal */
|
|
|
|
|
442, /* (383) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
|
|
|
442, /* (384) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
|
|
|
442, /* (385) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
|
|
|
442, /* (386) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
|
|
|
445, /* (387) subtable_opt ::= */
|
|
|
|
|
445, /* (388) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
|
|
|
446, /* (389) ignore_opt ::= */
|
|
|
|
|
446, /* (390) ignore_opt ::= IGNORE UNTREATED */
|
|
|
|
|
350, /* (391) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
|
|
|
350, /* (392) cmd ::= KILL QUERY NK_STRING */
|
|
|
|
|
350, /* (393) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
|
|
|
350, /* (394) cmd ::= KILL COMPACT NK_INTEGER */
|
|
|
|
|
350, /* (395) cmd ::= BALANCE VGROUP */
|
|
|
|
|
350, /* (396) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
|
|
|
350, /* (397) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
|
|
|
350, /* (398) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
|
|
|
350, /* (399) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
|
|
|
448, /* (400) on_vgroup_id ::= */
|
|
|
|
|
448, /* (401) on_vgroup_id ::= ON NK_INTEGER */
|
|
|
|
|
449, /* (402) dnode_list ::= DNODE NK_INTEGER */
|
|
|
|
|
449, /* (403) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
|
|
|
350, /* (404) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
|
|
|
350, /* (405) cmd ::= query_or_subquery */
|
|
|
|
|
350, /* (406) cmd ::= insert_query */
|
|
|
|
|
434, /* (407) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
|
|
|
434, /* (408) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
|
|
|
353, /* (409) literal ::= NK_INTEGER */
|
|
|
|
|
353, /* (410) literal ::= NK_FLOAT */
|
|
|
|
|
353, /* (411) literal ::= NK_STRING */
|
|
|
|
|
353, /* (412) literal ::= NK_BOOL */
|
|
|
|
|
353, /* (413) literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
353, /* (414) literal ::= duration_literal */
|
|
|
|
|
353, /* (415) literal ::= NULL */
|
|
|
|
|
353, /* (416) literal ::= NK_QUESTION */
|
|
|
|
|
406, /* (417) duration_literal ::= NK_VARIABLE */
|
|
|
|
|
382, /* (418) signed ::= NK_INTEGER */
|
|
|
|
|
382, /* (419) signed ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
382, /* (420) signed ::= NK_MINUS NK_INTEGER */
|
|
|
|
|
382, /* (421) signed ::= NK_FLOAT */
|
|
|
|
|
382, /* (422) signed ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
382, /* (423) signed ::= NK_MINUS NK_FLOAT */
|
|
|
|
|
396, /* (424) signed_literal ::= signed */
|
|
|
|
|
396, /* (425) signed_literal ::= NK_STRING */
|
|
|
|
|
396, /* (426) signed_literal ::= NK_BOOL */
|
|
|
|
|
396, /* (427) signed_literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
396, /* (428) signed_literal ::= duration_literal */
|
|
|
|
|
396, /* (429) signed_literal ::= NULL */
|
|
|
|
|
396, /* (430) signed_literal ::= literal_func */
|
|
|
|
|
396, /* (431) signed_literal ::= NK_QUESTION */
|
|
|
|
|
451, /* (432) literal_list ::= signed_literal */
|
|
|
|
|
451, /* (433) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
|
|
|
365, /* (434) db_name ::= NK_ID */
|
|
|
|
|
366, /* (435) table_name ::= NK_ID */
|
|
|
|
|
394, /* (436) column_name ::= NK_ID */
|
|
|
|
|
408, /* (437) function_name ::= NK_ID */
|
|
|
|
|
440, /* (438) view_name ::= NK_ID */
|
|
|
|
|
452, /* (439) table_alias ::= NK_ID */
|
|
|
|
|
419, /* (440) column_alias ::= NK_ID */
|
|
|
|
|
419, /* (441) column_alias ::= NK_ALIAS */
|
|
|
|
|
358, /* (442) user_name ::= NK_ID */
|
|
|
|
|
367, /* (443) topic_name ::= NK_ID */
|
|
|
|
|
441, /* (444) stream_name ::= NK_ID */
|
|
|
|
|
431, /* (445) cgroup_name ::= NK_ID */
|
|
|
|
|
422, /* (446) index_name ::= NK_ID */
|
|
|
|
|
453, /* (447) expr_or_subquery ::= expression */
|
|
|
|
|
447, /* (448) expression ::= literal */
|
|
|
|
|
447, /* (449) expression ::= pseudo_column */
|
|
|
|
|
447, /* (450) expression ::= column_reference */
|
|
|
|
|
447, /* (451) expression ::= function_expression */
|
|
|
|
|
447, /* (452) expression ::= case_when_expression */
|
|
|
|
|
447, /* (453) expression ::= NK_LP expression NK_RP */
|
|
|
|
|
447, /* (454) expression ::= NK_PLUS expr_or_subquery */
|
|
|
|
|
447, /* (455) expression ::= NK_MINUS expr_or_subquery */
|
|
|
|
|
447, /* (456) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
|
|
|
447, /* (457) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
|
|
|
447, /* (458) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
|
|
|
447, /* (459) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
|
|
|
447, /* (460) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
|
|
|
447, /* (461) expression ::= column_reference NK_ARROW NK_STRING */
|
|
|
|
|
447, /* (462) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
|
|
|
447, /* (463) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
|
|
|
399, /* (464) expression_list ::= expr_or_subquery */
|
|
|
|
|
399, /* (465) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
|
|
|
455, /* (466) column_reference ::= column_name */
|
|
|
|
|
455, /* (467) column_reference ::= table_name NK_DOT column_name */
|
|
|
|
|
455, /* (468) column_reference ::= NK_ALIAS */
|
|
|
|
|
455, /* (469) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
|
|
|
454, /* (470) pseudo_column ::= ROWTS */
|
|
|
|
|
454, /* (471) pseudo_column ::= TBNAME */
|
|
|
|
|
454, /* (472) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
|
|
|
454, /* (473) pseudo_column ::= QSTART */
|
|
|
|
|
454, /* (474) pseudo_column ::= QEND */
|
|
|
|
|
454, /* (475) pseudo_column ::= QDURATION */
|
|
|
|
|
454, /* (476) pseudo_column ::= WSTART */
|
|
|
|
|
454, /* (477) pseudo_column ::= WEND */
|
|
|
|
|
454, /* (478) pseudo_column ::= WDURATION */
|
|
|
|
|
454, /* (479) pseudo_column ::= IROWTS */
|
|
|
|
|
454, /* (480) pseudo_column ::= ISFILLED */
|
|
|
|
|
454, /* (481) pseudo_column ::= QTAGS */
|
|
|
|
|
456, /* (482) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
|
|
|
456, /* (483) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
|
|
|
456, /* (484) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
|
|
|
456, /* (485) function_expression ::= literal_func */
|
|
|
|
|
450, /* (486) literal_func ::= noarg_func NK_LP NK_RP */
|
|
|
|
|
450, /* (487) literal_func ::= NOW */
|
|
|
|
|
460, /* (488) noarg_func ::= NOW */
|
|
|
|
|
460, /* (489) noarg_func ::= TODAY */
|
|
|
|
|
460, /* (490) noarg_func ::= TIMEZONE */
|
|
|
|
|
460, /* (491) noarg_func ::= DATABASE */
|
|
|
|
|
460, /* (492) noarg_func ::= CLIENT_VERSION */
|
|
|
|
|
460, /* (493) noarg_func ::= SERVER_VERSION */
|
|
|
|
|
460, /* (494) noarg_func ::= SERVER_STATUS */
|
|
|
|
|
460, /* (495) noarg_func ::= CURRENT_USER */
|
|
|
|
|
460, /* (496) noarg_func ::= USER */
|
|
|
|
|
458, /* (497) star_func ::= COUNT */
|
|
|
|
|
458, /* (498) star_func ::= FIRST */
|
|
|
|
|
458, /* (499) star_func ::= LAST */
|
|
|
|
|
458, /* (500) star_func ::= LAST_ROW */
|
|
|
|
|
459, /* (501) star_func_para_list ::= NK_STAR */
|
|
|
|
|
459, /* (502) star_func_para_list ::= other_para_list */
|
|
|
|
|
461, /* (503) other_para_list ::= star_func_para */
|
|
|
|
|
461, /* (504) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
|
|
|
462, /* (505) star_func_para ::= expr_or_subquery */
|
|
|
|
|
462, /* (506) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
457, /* (507) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
|
|
|
457, /* (508) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
|
|
|
463, /* (509) when_then_list ::= when_then_expr */
|
|
|
|
|
463, /* (510) when_then_list ::= when_then_list when_then_expr */
|
|
|
|
|
466, /* (511) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
|
|
|
464, /* (512) case_when_else_opt ::= */
|
|
|
|
|
464, /* (513) case_when_else_opt ::= ELSE common_expression */
|
|
|
|
|
467, /* (514) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
|
|
|
467, /* (515) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
467, /* (516) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
467, /* (517) predicate ::= expr_or_subquery IS NULL */
|
|
|
|
|
467, /* (518) predicate ::= expr_or_subquery IS NOT NULL */
|
|
|
|
|
467, /* (519) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
|
|
|
468, /* (520) compare_op ::= NK_LT */
|
|
|
|
|
468, /* (521) compare_op ::= NK_GT */
|
|
|
|
|
468, /* (522) compare_op ::= NK_LE */
|
|
|
|
|
468, /* (523) compare_op ::= NK_GE */
|
|
|
|
|
468, /* (524) compare_op ::= NK_NE */
|
|
|
|
|
468, /* (525) compare_op ::= NK_EQ */
|
|
|
|
|
468, /* (526) compare_op ::= LIKE */
|
|
|
|
|
468, /* (527) compare_op ::= NOT LIKE */
|
|
|
|
|
468, /* (528) compare_op ::= MATCH */
|
|
|
|
|
468, /* (529) compare_op ::= NMATCH */
|
|
|
|
|
468, /* (530) compare_op ::= CONTAINS */
|
|
|
|
|
469, /* (531) in_op ::= IN */
|
|
|
|
|
469, /* (532) in_op ::= NOT IN */
|
|
|
|
|
470, /* (533) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
|
|
|
471, /* (534) boolean_value_expression ::= boolean_primary */
|
|
|
|
|
471, /* (535) boolean_value_expression ::= NOT boolean_primary */
|
|
|
|
|
471, /* (536) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
|
|
|
471, /* (537) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
|
|
|
472, /* (538) boolean_primary ::= predicate */
|
|
|
|
|
472, /* (539) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
|
|
|
465, /* (540) common_expression ::= expr_or_subquery */
|
|
|
|
|
465, /* (541) common_expression ::= boolean_value_expression */
|
|
|
|
|
473, /* (542) from_clause_opt ::= */
|
|
|
|
|
473, /* (543) from_clause_opt ::= FROM table_reference_list */
|
|
|
|
|
474, /* (544) table_reference_list ::= table_reference */
|
|
|
|
|
474, /* (545) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
|
|
|
475, /* (546) table_reference ::= table_primary */
|
|
|
|
|
475, /* (547) table_reference ::= joined_table */
|
|
|
|
|
476, /* (548) table_primary ::= table_name alias_opt */
|
|
|
|
|
476, /* (549) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
|
|
|
476, /* (550) table_primary ::= subquery alias_opt */
|
|
|
|
|
476, /* (551) table_primary ::= parenthesized_joined_table */
|
|
|
|
|
478, /* (552) alias_opt ::= */
|
|
|
|
|
478, /* (553) alias_opt ::= table_alias */
|
|
|
|
|
478, /* (554) alias_opt ::= AS table_alias */
|
|
|
|
|
480, /* (555) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
|
|
|
480, /* (556) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
|
|
|
477, /* (557) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
|
|
|
481, /* (558) join_type ::= */
|
|
|
|
|
481, /* (559) join_type ::= INNER */
|
|
|
|
|
482, /* (560) 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 */
|
|
|
|
|
483, /* (561) hint_list ::= */
|
|
|
|
|
483, /* (562) hint_list ::= NK_HINT */
|
|
|
|
|
485, /* (563) tag_mode_opt ::= */
|
|
|
|
|
485, /* (564) tag_mode_opt ::= TAGS */
|
|
|
|
|
484, /* (565) set_quantifier_opt ::= */
|
|
|
|
|
484, /* (566) set_quantifier_opt ::= DISTINCT */
|
|
|
|
|
484, /* (567) set_quantifier_opt ::= ALL */
|
|
|
|
|
486, /* (568) select_list ::= select_item */
|
|
|
|
|
486, /* (569) select_list ::= select_list NK_COMMA select_item */
|
|
|
|
|
494, /* (570) select_item ::= NK_STAR */
|
|
|
|
|
494, /* (571) select_item ::= common_expression */
|
|
|
|
|
494, /* (572) select_item ::= common_expression column_alias */
|
|
|
|
|
494, /* (573) select_item ::= common_expression AS column_alias */
|
|
|
|
|
494, /* (574) select_item ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
430, /* (575) where_clause_opt ::= */
|
|
|
|
|
430, /* (576) where_clause_opt ::= WHERE search_condition */
|
|
|
|
|
487, /* (577) partition_by_clause_opt ::= */
|
|
|
|
|
487, /* (578) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
|
|
|
495, /* (579) partition_list ::= partition_item */
|
|
|
|
|
495, /* (580) partition_list ::= partition_list NK_COMMA partition_item */
|
|
|
|
|
496, /* (581) partition_item ::= expr_or_subquery */
|
|
|
|
|
496, /* (582) partition_item ::= expr_or_subquery column_alias */
|
|
|
|
|
496, /* (583) partition_item ::= expr_or_subquery AS column_alias */
|
|
|
|
|
491, /* (584) twindow_clause_opt ::= */
|
|
|
|
|
491, /* (585) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
|
|
|
491, /* (586) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
491, /* (587) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
491, /* (588) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
491, /* (589) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
|
|
|
424, /* (590) sliding_opt ::= */
|
|
|
|
|
424, /* (591) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
|
|
|
497, /* (592) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
|
|
|
497, /* (593) interval_sliding_duration_literal ::= NK_STRING */
|
|
|
|
|
497, /* (594) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
|
|
|
490, /* (595) fill_opt ::= */
|
|
|
|
|
490, /* (596) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
|
|
|
490, /* (597) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
|
|
|
490, /* (598) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
|
|
|
498, /* (599) fill_mode ::= NONE */
|
|
|
|
|
498, /* (600) fill_mode ::= PREV */
|
|
|
|
|
498, /* (601) fill_mode ::= NULL */
|
|
|
|
|
498, /* (602) fill_mode ::= NULL_F */
|
|
|
|
|
498, /* (603) fill_mode ::= LINEAR */
|
|
|
|
|
498, /* (604) fill_mode ::= NEXT */
|
|
|
|
|
492, /* (605) group_by_clause_opt ::= */
|
|
|
|
|
492, /* (606) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
|
|
|
499, /* (607) group_by_list ::= expr_or_subquery */
|
|
|
|
|
499, /* (608) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
|
|
|
493, /* (609) having_clause_opt ::= */
|
|
|
|
|
493, /* (610) having_clause_opt ::= HAVING search_condition */
|
|
|
|
|
488, /* (611) range_opt ::= */
|
|
|
|
|
488, /* (612) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
|
|
|
488, /* (613) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
489, /* (614) every_opt ::= */
|
|
|
|
|
489, /* (615) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
|
|
|
500, /* (616) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
|
|
|
501, /* (617) query_simple ::= query_specification */
|
|
|
|
|
501, /* (618) query_simple ::= union_query_expression */
|
|
|
|
|
505, /* (619) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
|
|
|
505, /* (620) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
|
|
|
506, /* (621) query_simple_or_subquery ::= query_simple */
|
|
|
|
|
506, /* (622) query_simple_or_subquery ::= subquery */
|
|
|
|
|
429, /* (623) query_or_subquery ::= query_expression */
|
|
|
|
|
429, /* (624) query_or_subquery ::= subquery */
|
|
|
|
|
502, /* (625) order_by_clause_opt ::= */
|
|
|
|
|
502, /* (626) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
|
|
|
503, /* (627) slimit_clause_opt ::= */
|
|
|
|
|
503, /* (628) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
|
|
|
503, /* (629) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
|
|
|
503, /* (630) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
504, /* (631) limit_clause_opt ::= */
|
|
|
|
|
504, /* (632) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
|
|
|
504, /* (633) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
|
|
|
504, /* (634) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
479, /* (635) subquery ::= NK_LP query_expression NK_RP */
|
|
|
|
|
479, /* (636) subquery ::= NK_LP subquery NK_RP */
|
|
|
|
|
368, /* (637) search_condition ::= common_expression */
|
|
|
|
|
507, /* (638) sort_specification_list ::= sort_specification */
|
|
|
|
|
507, /* (639) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
|
|
|
508, /* (640) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
|
|
|
509, /* (641) ordering_specification_opt ::= */
|
|
|
|
|
509, /* (642) ordering_specification_opt ::= ASC */
|
|
|
|
|
509, /* (643) ordering_specification_opt ::= DESC */
|
|
|
|
|
510, /* (644) null_ordering_opt ::= */
|
|
|
|
|
510, /* (645) null_ordering_opt ::= NULLS FIRST */
|
|
|
|
|
510, /* (646) 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 */
|
2023-10-20 00:46:32 +00:00
|
|
|
-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 */
|
|
|
|
|
-6, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
|
|
|
-1, /* (182) multi_create_clause ::= create_subtable_clause */
|
|
|
|
|
-2, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
|
|
|
-10, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
|
|
|
-1, /* (185) multi_drop_clause ::= drop_table_clause */
|
|
|
|
|
-3, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
|
|
|
-2, /* (187) drop_table_clause ::= exists_opt full_table_name */
|
|
|
|
|
0, /* (188) specific_cols_opt ::= */
|
|
|
|
|
-3, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
-1, /* (190) full_table_name ::= table_name */
|
|
|
|
|
-3, /* (191) full_table_name ::= db_name NK_DOT table_name */
|
|
|
|
|
-1, /* (192) column_def_list ::= column_def */
|
|
|
|
|
-3, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
|
|
|
-2, /* (194) column_def ::= column_name type_name */
|
|
|
|
|
-1, /* (195) type_name ::= BOOL */
|
|
|
|
|
-1, /* (196) type_name ::= TINYINT */
|
|
|
|
|
-1, /* (197) type_name ::= SMALLINT */
|
|
|
|
|
-1, /* (198) type_name ::= INT */
|
|
|
|
|
-1, /* (199) type_name ::= INTEGER */
|
|
|
|
|
-1, /* (200) type_name ::= BIGINT */
|
|
|
|
|
-1, /* (201) type_name ::= FLOAT */
|
|
|
|
|
-1, /* (202) type_name ::= DOUBLE */
|
|
|
|
|
-4, /* (203) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-1, /* (204) type_name ::= TIMESTAMP */
|
|
|
|
|
-4, /* (205) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-2, /* (206) type_name ::= TINYINT UNSIGNED */
|
|
|
|
|
-2, /* (207) type_name ::= SMALLINT UNSIGNED */
|
|
|
|
|
-2, /* (208) type_name ::= INT UNSIGNED */
|
|
|
|
|
-2, /* (209) type_name ::= BIGINT UNSIGNED */
|
|
|
|
|
-1, /* (210) type_name ::= JSON */
|
|
|
|
|
-4, /* (211) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-1, /* (212) type_name ::= MEDIUMBLOB */
|
|
|
|
|
-1, /* (213) type_name ::= BLOB */
|
|
|
|
|
-4, /* (214) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-4, /* (215) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-1, /* (216) type_name ::= DECIMAL */
|
|
|
|
|
-4, /* (217) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-6, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
0, /* (219) tags_def_opt ::= */
|
|
|
|
|
-1, /* (220) tags_def_opt ::= tags_def */
|
|
|
|
|
-4, /* (221) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
|
|
|
0, /* (222) table_options ::= */
|
|
|
|
|
-3, /* (223) table_options ::= table_options COMMENT NK_STRING */
|
|
|
|
|
-3, /* (224) table_options ::= table_options MAX_DELAY duration_list */
|
|
|
|
|
-3, /* (225) table_options ::= table_options WATERMARK duration_list */
|
|
|
|
|
-5, /* (226) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
|
|
|
-3, /* (227) table_options ::= table_options TTL NK_INTEGER */
|
|
|
|
|
-5, /* (228) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
|
|
|
-3, /* (229) table_options ::= table_options DELETE_MARK duration_list */
|
|
|
|
|
-1, /* (230) alter_table_options ::= alter_table_option */
|
|
|
|
|
-2, /* (231) alter_table_options ::= alter_table_options alter_table_option */
|
|
|
|
|
-2, /* (232) alter_table_option ::= COMMENT NK_STRING */
|
|
|
|
|
-2, /* (233) alter_table_option ::= TTL NK_INTEGER */
|
|
|
|
|
-1, /* (234) duration_list ::= duration_literal */
|
|
|
|
|
-3, /* (235) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
|
|
|
-1, /* (236) rollup_func_list ::= rollup_func_name */
|
|
|
|
|
-3, /* (237) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
|
|
|
-1, /* (238) rollup_func_name ::= function_name */
|
|
|
|
|
-1, /* (239) rollup_func_name ::= FIRST */
|
|
|
|
|
-1, /* (240) rollup_func_name ::= LAST */
|
|
|
|
|
-1, /* (241) col_name_list ::= col_name */
|
|
|
|
|
-3, /* (242) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
|
|
|
-1, /* (243) col_name ::= column_name */
|
|
|
|
|
-2, /* (244) cmd ::= SHOW DNODES */
|
|
|
|
|
-2, /* (245) cmd ::= SHOW USERS */
|
|
|
|
|
-3, /* (246) cmd ::= SHOW USER PRIVILEGES */
|
|
|
|
|
-3, /* (247) cmd ::= SHOW db_kind_opt DATABASES */
|
|
|
|
|
-4, /* (248) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
|
|
|
-4, /* (249) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
|
|
|
-3, /* (250) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
|
|
|
-2, /* (251) cmd ::= SHOW MNODES */
|
|
|
|
|
-2, /* (252) cmd ::= SHOW QNODES */
|
|
|
|
|
-2, /* (253) cmd ::= SHOW FUNCTIONS */
|
|
|
|
|
-5, /* (254) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
|
|
|
-6, /* (255) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
|
|
|
-2, /* (256) cmd ::= SHOW STREAMS */
|
|
|
|
|
-2, /* (257) cmd ::= SHOW ACCOUNTS */
|
|
|
|
|
-2, /* (258) cmd ::= SHOW APPS */
|
|
|
|
|
-2, /* (259) cmd ::= SHOW CONNECTIONS */
|
|
|
|
|
-2, /* (260) cmd ::= SHOW LICENCES */
|
|
|
|
|
-2, /* (261) cmd ::= SHOW GRANTS */
|
2024-01-18 07:23:38 +00:00
|
|
|
-3, /* (262) cmd ::= SHOW GRANTS FULL */
|
|
|
|
|
-3, /* (263) cmd ::= SHOW GRANTS LOG */
|
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 */
|
|
|
|
|
-3, /* (290) cmd ::= SHOW db_name_cond_opt VIEWS */
|
|
|
|
|
-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 */
|
|
|
|
|
-1, /* (409) literal ::= NK_INTEGER */
|
|
|
|
|
-1, /* (410) literal ::= NK_FLOAT */
|
|
|
|
|
-1, /* (411) literal ::= NK_STRING */
|
|
|
|
|
-1, /* (412) literal ::= NK_BOOL */
|
|
|
|
|
-2, /* (413) literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
-1, /* (414) literal ::= duration_literal */
|
|
|
|
|
-1, /* (415) literal ::= NULL */
|
|
|
|
|
-1, /* (416) literal ::= NK_QUESTION */
|
|
|
|
|
-1, /* (417) duration_literal ::= NK_VARIABLE */
|
|
|
|
|
-1, /* (418) signed ::= NK_INTEGER */
|
|
|
|
|
-2, /* (419) signed ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
-2, /* (420) signed ::= NK_MINUS NK_INTEGER */
|
|
|
|
|
-1, /* (421) signed ::= NK_FLOAT */
|
|
|
|
|
-2, /* (422) signed ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
-2, /* (423) signed ::= NK_MINUS NK_FLOAT */
|
|
|
|
|
-1, /* (424) signed_literal ::= signed */
|
|
|
|
|
-1, /* (425) signed_literal ::= NK_STRING */
|
|
|
|
|
-1, /* (426) signed_literal ::= NK_BOOL */
|
|
|
|
|
-2, /* (427) signed_literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
-1, /* (428) signed_literal ::= duration_literal */
|
|
|
|
|
-1, /* (429) signed_literal ::= NULL */
|
|
|
|
|
-1, /* (430) signed_literal ::= literal_func */
|
|
|
|
|
-1, /* (431) signed_literal ::= NK_QUESTION */
|
|
|
|
|
-1, /* (432) literal_list ::= signed_literal */
|
|
|
|
|
-3, /* (433) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
|
|
|
-1, /* (434) db_name ::= NK_ID */
|
|
|
|
|
-1, /* (435) table_name ::= NK_ID */
|
|
|
|
|
-1, /* (436) column_name ::= NK_ID */
|
|
|
|
|
-1, /* (437) function_name ::= NK_ID */
|
|
|
|
|
-1, /* (438) view_name ::= NK_ID */
|
|
|
|
|
-1, /* (439) table_alias ::= NK_ID */
|
|
|
|
|
-1, /* (440) column_alias ::= NK_ID */
|
|
|
|
|
-1, /* (441) column_alias ::= NK_ALIAS */
|
|
|
|
|
-1, /* (442) user_name ::= NK_ID */
|
|
|
|
|
-1, /* (443) topic_name ::= NK_ID */
|
|
|
|
|
-1, /* (444) stream_name ::= NK_ID */
|
|
|
|
|
-1, /* (445) cgroup_name ::= NK_ID */
|
|
|
|
|
-1, /* (446) index_name ::= NK_ID */
|
|
|
|
|
-1, /* (447) expr_or_subquery ::= expression */
|
|
|
|
|
-1, /* (448) expression ::= literal */
|
|
|
|
|
-1, /* (449) expression ::= pseudo_column */
|
|
|
|
|
-1, /* (450) expression ::= column_reference */
|
|
|
|
|
-1, /* (451) expression ::= function_expression */
|
|
|
|
|
-1, /* (452) expression ::= case_when_expression */
|
|
|
|
|
-3, /* (453) expression ::= NK_LP expression NK_RP */
|
|
|
|
|
-2, /* (454) expression ::= NK_PLUS expr_or_subquery */
|
|
|
|
|
-2, /* (455) expression ::= NK_MINUS expr_or_subquery */
|
|
|
|
|
-3, /* (456) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
|
|
|
-3, /* (457) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
|
|
|
-3, /* (458) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
|
|
|
-3, /* (459) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
|
|
|
-3, /* (460) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
|
|
|
-3, /* (461) expression ::= column_reference NK_ARROW NK_STRING */
|
|
|
|
|
-3, /* (462) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
|
|
|
-3, /* (463) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
|
|
|
-1, /* (464) expression_list ::= expr_or_subquery */
|
|
|
|
|
-3, /* (465) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
|
|
|
-1, /* (466) column_reference ::= column_name */
|
|
|
|
|
-3, /* (467) column_reference ::= table_name NK_DOT column_name */
|
|
|
|
|
-1, /* (468) column_reference ::= NK_ALIAS */
|
|
|
|
|
-3, /* (469) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
|
|
|
-1, /* (470) pseudo_column ::= ROWTS */
|
|
|
|
|
-1, /* (471) pseudo_column ::= TBNAME */
|
|
|
|
|
-3, /* (472) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
|
|
|
-1, /* (473) pseudo_column ::= QSTART */
|
|
|
|
|
-1, /* (474) pseudo_column ::= QEND */
|
|
|
|
|
-1, /* (475) pseudo_column ::= QDURATION */
|
|
|
|
|
-1, /* (476) pseudo_column ::= WSTART */
|
|
|
|
|
-1, /* (477) pseudo_column ::= WEND */
|
|
|
|
|
-1, /* (478) pseudo_column ::= WDURATION */
|
|
|
|
|
-1, /* (479) pseudo_column ::= IROWTS */
|
|
|
|
|
-1, /* (480) pseudo_column ::= ISFILLED */
|
|
|
|
|
-1, /* (481) pseudo_column ::= QTAGS */
|
|
|
|
|
-4, /* (482) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
|
|
|
-4, /* (483) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
|
|
|
-6, /* (484) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
|
|
|
-1, /* (485) function_expression ::= literal_func */
|
|
|
|
|
-3, /* (486) literal_func ::= noarg_func NK_LP NK_RP */
|
|
|
|
|
-1, /* (487) literal_func ::= NOW */
|
|
|
|
|
-1, /* (488) noarg_func ::= NOW */
|
|
|
|
|
-1, /* (489) noarg_func ::= TODAY */
|
|
|
|
|
-1, /* (490) noarg_func ::= TIMEZONE */
|
|
|
|
|
-1, /* (491) noarg_func ::= DATABASE */
|
|
|
|
|
-1, /* (492) noarg_func ::= CLIENT_VERSION */
|
|
|
|
|
-1, /* (493) noarg_func ::= SERVER_VERSION */
|
|
|
|
|
-1, /* (494) noarg_func ::= SERVER_STATUS */
|
|
|
|
|
-1, /* (495) noarg_func ::= CURRENT_USER */
|
|
|
|
|
-1, /* (496) noarg_func ::= USER */
|
|
|
|
|
-1, /* (497) star_func ::= COUNT */
|
|
|
|
|
-1, /* (498) star_func ::= FIRST */
|
|
|
|
|
-1, /* (499) star_func ::= LAST */
|
|
|
|
|
-1, /* (500) star_func ::= LAST_ROW */
|
|
|
|
|
-1, /* (501) star_func_para_list ::= NK_STAR */
|
|
|
|
|
-1, /* (502) star_func_para_list ::= other_para_list */
|
|
|
|
|
-1, /* (503) other_para_list ::= star_func_para */
|
|
|
|
|
-3, /* (504) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
|
|
|
-1, /* (505) star_func_para ::= expr_or_subquery */
|
|
|
|
|
-3, /* (506) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
-4, /* (507) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
|
|
|
-5, /* (508) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
|
|
|
-1, /* (509) when_then_list ::= when_then_expr */
|
|
|
|
|
-2, /* (510) when_then_list ::= when_then_list when_then_expr */
|
|
|
|
|
-4, /* (511) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
|
|
|
0, /* (512) case_when_else_opt ::= */
|
|
|
|
|
-2, /* (513) case_when_else_opt ::= ELSE common_expression */
|
|
|
|
|
-3, /* (514) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
|
|
|
-5, /* (515) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
-6, /* (516) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
-3, /* (517) predicate ::= expr_or_subquery IS NULL */
|
|
|
|
|
-4, /* (518) predicate ::= expr_or_subquery IS NOT NULL */
|
|
|
|
|
-3, /* (519) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
|
|
|
-1, /* (520) compare_op ::= NK_LT */
|
|
|
|
|
-1, /* (521) compare_op ::= NK_GT */
|
|
|
|
|
-1, /* (522) compare_op ::= NK_LE */
|
|
|
|
|
-1, /* (523) compare_op ::= NK_GE */
|
|
|
|
|
-1, /* (524) compare_op ::= NK_NE */
|
|
|
|
|
-1, /* (525) compare_op ::= NK_EQ */
|
|
|
|
|
-1, /* (526) compare_op ::= LIKE */
|
|
|
|
|
-2, /* (527) compare_op ::= NOT LIKE */
|
|
|
|
|
-1, /* (528) compare_op ::= MATCH */
|
|
|
|
|
-1, /* (529) compare_op ::= NMATCH */
|
|
|
|
|
-1, /* (530) compare_op ::= CONTAINS */
|
|
|
|
|
-1, /* (531) in_op ::= IN */
|
|
|
|
|
-2, /* (532) in_op ::= NOT IN */
|
|
|
|
|
-3, /* (533) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
|
|
|
-1, /* (534) boolean_value_expression ::= boolean_primary */
|
|
|
|
|
-2, /* (535) boolean_value_expression ::= NOT boolean_primary */
|
|
|
|
|
-3, /* (536) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
|
|
|
-3, /* (537) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
|
|
|
-1, /* (538) boolean_primary ::= predicate */
|
|
|
|
|
-3, /* (539) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
|
|
|
-1, /* (540) common_expression ::= expr_or_subquery */
|
|
|
|
|
-1, /* (541) common_expression ::= boolean_value_expression */
|
|
|
|
|
0, /* (542) from_clause_opt ::= */
|
|
|
|
|
-2, /* (543) from_clause_opt ::= FROM table_reference_list */
|
|
|
|
|
-1, /* (544) table_reference_list ::= table_reference */
|
|
|
|
|
-3, /* (545) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
|
|
|
-1, /* (546) table_reference ::= table_primary */
|
|
|
|
|
-1, /* (547) table_reference ::= joined_table */
|
|
|
|
|
-2, /* (548) table_primary ::= table_name alias_opt */
|
|
|
|
|
-4, /* (549) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
|
|
|
-2, /* (550) table_primary ::= subquery alias_opt */
|
|
|
|
|
-1, /* (551) table_primary ::= parenthesized_joined_table */
|
|
|
|
|
0, /* (552) alias_opt ::= */
|
|
|
|
|
-1, /* (553) alias_opt ::= table_alias */
|
|
|
|
|
-2, /* (554) alias_opt ::= AS table_alias */
|
|
|
|
|
-3, /* (555) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
|
|
|
-3, /* (556) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
|
|
|
-6, /* (557) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
|
|
|
0, /* (558) join_type ::= */
|
|
|
|
|
-1, /* (559) join_type ::= INNER */
|
|
|
|
|
-14, /* (560) 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, /* (561) hint_list ::= */
|
|
|
|
|
-1, /* (562) hint_list ::= NK_HINT */
|
|
|
|
|
0, /* (563) tag_mode_opt ::= */
|
|
|
|
|
-1, /* (564) tag_mode_opt ::= TAGS */
|
|
|
|
|
0, /* (565) set_quantifier_opt ::= */
|
|
|
|
|
-1, /* (566) set_quantifier_opt ::= DISTINCT */
|
|
|
|
|
-1, /* (567) set_quantifier_opt ::= ALL */
|
|
|
|
|
-1, /* (568) select_list ::= select_item */
|
|
|
|
|
-3, /* (569) select_list ::= select_list NK_COMMA select_item */
|
|
|
|
|
-1, /* (570) select_item ::= NK_STAR */
|
|
|
|
|
-1, /* (571) select_item ::= common_expression */
|
|
|
|
|
-2, /* (572) select_item ::= common_expression column_alias */
|
|
|
|
|
-3, /* (573) select_item ::= common_expression AS column_alias */
|
|
|
|
|
-3, /* (574) select_item ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
0, /* (575) where_clause_opt ::= */
|
|
|
|
|
-2, /* (576) where_clause_opt ::= WHERE search_condition */
|
|
|
|
|
0, /* (577) partition_by_clause_opt ::= */
|
|
|
|
|
-3, /* (578) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
|
|
|
-1, /* (579) partition_list ::= partition_item */
|
|
|
|
|
-3, /* (580) partition_list ::= partition_list NK_COMMA partition_item */
|
|
|
|
|
-1, /* (581) partition_item ::= expr_or_subquery */
|
|
|
|
|
-2, /* (582) partition_item ::= expr_or_subquery column_alias */
|
|
|
|
|
-3, /* (583) partition_item ::= expr_or_subquery AS column_alias */
|
|
|
|
|
0, /* (584) twindow_clause_opt ::= */
|
|
|
|
|
-6, /* (585) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
|
|
|
-4, /* (586) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
-6, /* (587) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
-8, /* (588) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
-7, /* (589) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
|
|
|
0, /* (590) sliding_opt ::= */
|
|
|
|
|
-4, /* (591) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
|
|
|
-1, /* (592) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
|
|
|
-1, /* (593) interval_sliding_duration_literal ::= NK_STRING */
|
|
|
|
|
-1, /* (594) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
|
|
|
0, /* (595) fill_opt ::= */
|
|
|
|
|
-4, /* (596) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
|
|
|
-6, /* (597) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
|
|
|
-6, /* (598) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
|
|
|
-1, /* (599) fill_mode ::= NONE */
|
|
|
|
|
-1, /* (600) fill_mode ::= PREV */
|
|
|
|
|
-1, /* (601) fill_mode ::= NULL */
|
|
|
|
|
-1, /* (602) fill_mode ::= NULL_F */
|
|
|
|
|
-1, /* (603) fill_mode ::= LINEAR */
|
|
|
|
|
-1, /* (604) fill_mode ::= NEXT */
|
|
|
|
|
0, /* (605) group_by_clause_opt ::= */
|
|
|
|
|
-3, /* (606) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
|
|
|
-1, /* (607) group_by_list ::= expr_or_subquery */
|
|
|
|
|
-3, /* (608) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
|
|
|
0, /* (609) having_clause_opt ::= */
|
|
|
|
|
-2, /* (610) having_clause_opt ::= HAVING search_condition */
|
|
|
|
|
0, /* (611) range_opt ::= */
|
|
|
|
|
-6, /* (612) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
|
|
|
-4, /* (613) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
0, /* (614) every_opt ::= */
|
|
|
|
|
-4, /* (615) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
|
|
|
-4, /* (616) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
|
|
|
-1, /* (617) query_simple ::= query_specification */
|
|
|
|
|
-1, /* (618) query_simple ::= union_query_expression */
|
|
|
|
|
-4, /* (619) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
|
|
|
-3, /* (620) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
|
|
|
-1, /* (621) query_simple_or_subquery ::= query_simple */
|
|
|
|
|
-1, /* (622) query_simple_or_subquery ::= subquery */
|
|
|
|
|
-1, /* (623) query_or_subquery ::= query_expression */
|
|
|
|
|
-1, /* (624) query_or_subquery ::= subquery */
|
|
|
|
|
0, /* (625) order_by_clause_opt ::= */
|
|
|
|
|
-3, /* (626) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
|
|
|
0, /* (627) slimit_clause_opt ::= */
|
|
|
|
|
-2, /* (628) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
|
|
|
-4, /* (629) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
|
|
|
-4, /* (630) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
0, /* (631) limit_clause_opt ::= */
|
|
|
|
|
-2, /* (632) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
|
|
|
-4, /* (633) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
|
|
|
-4, /* (634) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
-3, /* (635) subquery ::= NK_LP query_expression NK_RP */
|
|
|
|
|
-3, /* (636) subquery ::= NK_LP subquery NK_RP */
|
|
|
|
|
-1, /* (637) search_condition ::= common_expression */
|
|
|
|
|
-1, /* (638) sort_specification_list ::= sort_specification */
|
|
|
|
|
-3, /* (639) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
|
|
|
-3, /* (640) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
|
|
|
0, /* (641) ordering_specification_opt ::= */
|
|
|
|
|
-1, /* (642) ordering_specification_opt ::= ASC */
|
|
|
|
|
-1, /* (643) ordering_specification_opt ::= DESC */
|
|
|
|
|
0, /* (644) null_ordering_opt ::= */
|
|
|
|
|
-2, /* (645) null_ordering_opt ::= NULLS FIRST */
|
|
|
|
|
-2, /* (646) null_ordering_opt ::= NULLS LAST */
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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 */
|
2022-01-23 12:34:16 +00:00
|
|
|
){
|
|
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
(void)yyLookahead;
|
|
|
|
|
(void)yyLookaheadToken;
|
|
|
|
|
yymsp = yypParser->yytos;
|
2023-12-18 08:34:31 +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
|
|
|
|
|
}
|
2022-01-23 12:34:16 +00:00
|
|
|
|
|
|
|
|
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;
|
2022-03-17 03:11:49 +00:00
|
|
|
case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
2022-04-29 01:53:53 +00:00
|
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
2024-01-18 09:49:11 +00:00
|
|
|
yy_destructor(yypParser,351,&yymsp[0].minor);
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2022-03-17 03:11:49 +00:00
|
|
|
case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
2022-04-29 01:53:53 +00:00
|
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
2024-01-18 09:49:11 +00:00
|
|
|
yy_destructor(yypParser,352,&yymsp[0].minor);
|
2022-03-17 03:11:49 +00:00
|
|
|
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-01-18 09:49:11 +00:00
|
|
|
{ yy_destructor(yypParser,351,&yymsp[-2].minor);
|
2022-03-16 11:28:40 +00:00
|
|
|
{ }
|
2024-01-18 09:49:11 +00:00
|
|
|
yy_destructor(yypParser,353,&yymsp[0].minor);
|
2022-03-16 11:28:40 +00:00
|
|
|
}
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2022-03-17 03:11:49 +00:00
|
|
|
case 12: /* alter_account_options ::= alter_account_option */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yy_destructor(yypParser,354,&yymsp[0].minor);
|
2022-03-16 11:28:40 +00:00
|
|
|
{ }
|
|
|
|
|
}
|
|
|
|
|
break;
|
2022-03-17 03:11:49 +00:00
|
|
|
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yy_destructor(yypParser,352,&yymsp[-1].minor);
|
2022-03-17 03:11:49 +00:00
|
|
|
{ }
|
2024-01-18 09:49:11 +00:00
|
|
|
yy_destructor(yypParser,354,&yymsp[0].minor);
|
2022-03-17 03:11:49 +00:00
|
|
|
}
|
|
|
|
|
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);
|
2022-03-16 11:28:40 +00:00
|
|
|
{ }
|
2024-01-18 09:49:11 +00:00
|
|
|
yy_destructor(yypParser,353,&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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy502 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy502 = yylhsminor.yy502;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy502 = addNodeToList(pCxt, yymsp[-2].minor.yy502, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy502 = yylhsminor.yy502;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 26: /* white_list ::= HOST ip_range_list */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy502 = yymsp[0].minor.yy502; }
|
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);
|
|
|
|
|
case 577: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==577);
|
|
|
|
|
case 605: /* group_by_clause_opt ::= */ yytestcase(yyruleno==605);
|
|
|
|
|
case 625: /* order_by_clause_opt ::= */ yytestcase(yyruleno==625);
|
|
|
|
|
{ yymsp[1].minor.yy502 = 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);
|
|
|
|
|
case 502: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==502);
|
|
|
|
|
{ yylhsminor.yy502 = yymsp[0].minor.yy502; }
|
|
|
|
|
yymsp[0].minor.yy502 = yylhsminor.yy502;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy561, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy1013);
|
|
|
|
|
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy502);
|
2023-08-24 07:54:10 +00:00
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy561, 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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy561, 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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy561, 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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy561, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy502); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy561, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy502); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 35: /* cmd ::= DROP USER user_name */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy561); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 36: /* sysinfo_opt ::= */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[1].minor.yy1013 = 1; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy1013 = 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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy277, &yymsp[-3].minor.yy483, &yymsp[0].minor.yy561, yymsp[-2].minor.yy490); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy277, &yymsp[-3].minor.yy483, &yymsp[0].minor.yy561, yymsp[-2].minor.yy490); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 40: /* privileges ::= ALL */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy277 = 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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy277 = yymsp[0].minor.yy277; }
|
|
|
|
|
yymsp[0].minor.yy277 = yylhsminor.yy277;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 42: /* privileges ::= SUBSCRIBE */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy277 = 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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy277 = yymsp[-2].minor.yy277 | yymsp[0].minor.yy277; }
|
|
|
|
|
yymsp[-2].minor.yy277 = yylhsminor.yy277;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 45: /* priv_type ::= READ */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy277 = PRIVILEGE_TYPE_READ; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 46: /* priv_type ::= WRITE */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy277 = PRIVILEGE_TYPE_WRITE; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 47: /* priv_type ::= ALTER */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy277 = PRIVILEGE_TYPE_ALTER; }
|
2023-10-20 00:46:32 +00:00
|
|
|
break;
|
|
|
|
|
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy483.first = yymsp[-2].minor.yy0; yylhsminor.yy483.second = yymsp[0].minor.yy0; }
|
|
|
|
|
yymsp[-2].minor.yy483 = yylhsminor.yy483;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy483.first = yymsp[-2].minor.yy561; yylhsminor.yy483.second = yymsp[0].minor.yy0; }
|
|
|
|
|
yymsp[-2].minor.yy483 = yylhsminor.yy483;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 50: /* priv_level ::= db_name NK_DOT table_name */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy483.first = yymsp[-2].minor.yy561; yylhsminor.yy483.second = yymsp[0].minor.yy561; }
|
|
|
|
|
yymsp[-2].minor.yy483 = yylhsminor.yy483;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 51: /* priv_level ::= topic_name */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy483.first = yymsp[0].minor.yy561; yylhsminor.yy483.second = nil_token; }
|
|
|
|
|
yymsp[0].minor.yy483 = yylhsminor.yy483;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
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);
|
|
|
|
|
case 512: /* case_when_else_opt ::= */ yytestcase(yyruleno==512);
|
|
|
|
|
case 542: /* from_clause_opt ::= */ yytestcase(yyruleno==542);
|
|
|
|
|
case 575: /* where_clause_opt ::= */ yytestcase(yyruleno==575);
|
|
|
|
|
case 584: /* twindow_clause_opt ::= */ yytestcase(yyruleno==584);
|
|
|
|
|
case 590: /* sliding_opt ::= */ yytestcase(yyruleno==590);
|
|
|
|
|
case 595: /* fill_opt ::= */ yytestcase(yyruleno==595);
|
|
|
|
|
case 609: /* having_clause_opt ::= */ yytestcase(yyruleno==609);
|
|
|
|
|
case 611: /* range_opt ::= */ yytestcase(yyruleno==611);
|
|
|
|
|
case 614: /* every_opt ::= */ yytestcase(yyruleno==614);
|
|
|
|
|
case 627: /* slimit_clause_opt ::= */ yytestcase(yyruleno==627);
|
|
|
|
|
case 631: /* limit_clause_opt ::= */ yytestcase(yyruleno==631);
|
|
|
|
|
{ yymsp[1].minor.yy490 = NULL; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 53: /* with_opt ::= WITH search_condition */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 543: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==543);
|
|
|
|
|
case 576: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==576);
|
|
|
|
|
case 610: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==610);
|
|
|
|
|
{ yymsp[-1].minor.yy490 = yymsp[0].minor.yy490; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy561, NULL); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy845, false); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy561, yymsp[0].minor.yy845, false); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy845); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy561, false, yymsp[0].minor.yy845); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
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;
|
2023-10-20 00:46:32 +00:00
|
|
|
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);
|
|
|
|
|
case 434: /* db_name ::= NK_ID */ yytestcase(yyruleno==434);
|
|
|
|
|
case 435: /* table_name ::= NK_ID */ yytestcase(yyruleno==435);
|
|
|
|
|
case 436: /* column_name ::= NK_ID */ yytestcase(yyruleno==436);
|
|
|
|
|
case 437: /* function_name ::= NK_ID */ yytestcase(yyruleno==437);
|
|
|
|
|
case 438: /* view_name ::= NK_ID */ yytestcase(yyruleno==438);
|
|
|
|
|
case 439: /* table_alias ::= NK_ID */ yytestcase(yyruleno==439);
|
|
|
|
|
case 440: /* column_alias ::= NK_ID */ yytestcase(yyruleno==440);
|
|
|
|
|
case 441: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==441);
|
|
|
|
|
case 442: /* user_name ::= NK_ID */ yytestcase(yyruleno==442);
|
|
|
|
|
case 443: /* topic_name ::= NK_ID */ yytestcase(yyruleno==443);
|
|
|
|
|
case 444: /* stream_name ::= NK_ID */ yytestcase(yyruleno==444);
|
|
|
|
|
case 445: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==445);
|
|
|
|
|
case 446: /* index_name ::= NK_ID */ yytestcase(yyruleno==446);
|
|
|
|
|
case 488: /* noarg_func ::= NOW */ yytestcase(yyruleno==488);
|
|
|
|
|
case 489: /* noarg_func ::= TODAY */ yytestcase(yyruleno==489);
|
|
|
|
|
case 490: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==490);
|
|
|
|
|
case 491: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==491);
|
|
|
|
|
case 492: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==492);
|
|
|
|
|
case 493: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==493);
|
|
|
|
|
case 494: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==494);
|
|
|
|
|
case 495: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==495);
|
|
|
|
|
case 496: /* noarg_func ::= USER */ yytestcase(yyruleno==496);
|
|
|
|
|
case 497: /* star_func ::= COUNT */ yytestcase(yyruleno==497);
|
|
|
|
|
case 498: /* star_func ::= FIRST */ yytestcase(yyruleno==498);
|
|
|
|
|
case 499: /* star_func ::= LAST */ yytestcase(yyruleno==499);
|
|
|
|
|
case 500: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==500);
|
|
|
|
|
{ yylhsminor.yy561 = yymsp[0].minor.yy0; }
|
|
|
|
|
yymsp[0].minor.yy561 = yylhsminor.yy561;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
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);
|
|
|
|
|
case 563: /* tag_mode_opt ::= */ yytestcase(yyruleno==563);
|
|
|
|
|
case 565: /* set_quantifier_opt ::= */ yytestcase(yyruleno==565);
|
|
|
|
|
{ yymsp[1].minor.yy845 = false; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
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);
|
|
|
|
|
case 564: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==564);
|
|
|
|
|
case 566: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==566);
|
|
|
|
|
{ yymsp[0].minor.yy845 = true; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
|
|
|
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
|
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
|
|
|
|
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ 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 */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ 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 */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ 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 */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-16 06:08:59 +00:00
|
|
|
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 */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ 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 */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ 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 */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-01 02:13:22 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-16 11:28:40 +00:00
|
|
|
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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy845, &yymsp[-1].minor.yy561, yymsp[0].minor.yy490); }
|
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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy845, &yymsp[0].minor.yy561); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 88: /* cmd ::= USE db_name */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy561); }
|
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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy561, yymsp[0].minor.yy490); }
|
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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy561); }
|
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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy561, yymsp[0].minor.yy774); }
|
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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy561, yymsp[-1].minor.yy490, yymsp[0].minor.yy490); }
|
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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-2].minor.yy845 = 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);
|
|
|
|
|
{ yymsp[-1].minor.yy845 = true; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 97: /* db_options ::= */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[1].minor.yy490 = 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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_KEEP, yymsp[0].minor.yy502); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_RETENTIONS, yymsp[0].minor.yy502); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
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-01-18 09:49:11 +00:00
|
|
|
yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-3].minor.yy490, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
2022-07-25 13:09:06 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
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-01-18 09:49:11 +00:00
|
|
|
yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-3].minor.yy490, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
2022-07-25 13:09:06 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setDatabaseOption(pCxt, yymsp[-2].minor.yy490, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterDatabaseOptions(pCxt); yylhsminor.yy490 = setAlterDatabaseOption(pCxt, yylhsminor.yy490, &yymsp[0].minor.yy529); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy490, &yymsp[0].minor.yy529); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_KEEP; yymsp[-1].minor.yy529.pList = yymsp[0].minor.yy502; }
|
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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_PAGES; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_WAL; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy529.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 */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
2023-03-21 08:45:19 +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-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy529.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy529.val = t;
|
2023-03-21 08:45:19 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 144: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
2023-03-21 08:45:19 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 145: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
2023-03-21 08:45:19 +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-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy529.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy529.val = t;
|
2023-03-21 08:45:19 +00:00
|
|
|
}
|
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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 147: /* integer_list ::= NK_INTEGER */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy502 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy502 = yylhsminor.yy502;
|
2023-09-19 10:44:27 +00:00
|
|
|
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);
|
|
|
|
|
{ yylhsminor.yy502 = addNodeToList(pCxt, yymsp[-2].minor.yy502, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy502 = yylhsminor.yy502;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 149: /* variable_list ::= NK_VARIABLE */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy502 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy502 = yylhsminor.yy502;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 150: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy502 = addNodeToList(pCxt, yymsp[-2].minor.yy502, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy502 = yylhsminor.yy502;
|
2023-09-19 10:44:27 +00:00
|
|
|
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);
|
|
|
|
|
case 432: /* literal_list ::= signed_literal */ yytestcase(yyruleno==432);
|
|
|
|
|
case 503: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==503);
|
|
|
|
|
case 509: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==509);
|
|
|
|
|
case 568: /* select_list ::= select_item */ yytestcase(yyruleno==568);
|
|
|
|
|
case 579: /* partition_list ::= partition_item */ yytestcase(yyruleno==579);
|
|
|
|
|
case 638: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==638);
|
|
|
|
|
{ yylhsminor.yy502 = createNodeList(pCxt, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[0].minor.yy502 = yylhsminor.yy502;
|
2023-09-19 10:44:27 +00:00
|
|
|
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);
|
|
|
|
|
case 433: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==433);
|
|
|
|
|
case 504: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==504);
|
|
|
|
|
case 569: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==569);
|
|
|
|
|
case 580: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==580);
|
|
|
|
|
case 639: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==639);
|
|
|
|
|
{ yylhsminor.yy502 = addNodeToList(pCxt, yymsp[-2].minor.yy502, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-2].minor.yy502 = yylhsminor.yy502;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-09-19 10:44:27 +00:00
|
|
|
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);
|
|
|
|
|
{ yymsp[1].minor.yy774 = 0; }
|
2023-09-19 10:44:27 +00:00
|
|
|
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);
|
|
|
|
|
{ yymsp[-1].minor.yy774 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
|
2023-09-19 10:44:27 +00:00
|
|
|
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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-2].minor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
|
2023-09-19 10:44:27 +00:00
|
|
|
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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-2].minor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
2023-09-19 10:44:27 +00:00
|
|
|
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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-3].minor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
2023-09-19 10:44:27 +00:00
|
|
|
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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy845, yymsp[-5].minor.yy490, yymsp[-3].minor.yy502, yymsp[-1].minor.yy502, yymsp[0].minor.yy490); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 166: /* cmd ::= CREATE TABLE multi_create_clause */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy502); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 168: /* cmd ::= DROP TABLE multi_drop_clause */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy502); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 169: /* cmd ::= DROP STABLE exists_opt full_table_name */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy845, yymsp[0].minor.yy490); }
|
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);
|
|
|
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy490; }
|
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-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy490); }
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy490, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy490, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy561, yymsp[0].minor.yy826); }
|
|
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy490, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy490, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy561, yymsp[0].minor.yy826); }
|
|
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy490, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy561, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy490, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy561, yymsp[0].minor.yy826); }
|
|
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy490, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy490, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy561, yymsp[0].minor.yy826); }
|
|
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy490, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy561, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 181: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy490, &yymsp[-2].minor.yy561, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-5].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
case 510: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==510);
|
|
|
|
|
{ yylhsminor.yy502 = addNodeToList(pCxt, yymsp[-1].minor.yy502, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-1].minor.yy502 = yylhsminor.yy502;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 184: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy845, yymsp[-8].minor.yy490, yymsp[-6].minor.yy490, yymsp[-5].minor.yy502, yymsp[-2].minor.yy502, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-9].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createDropTableClause(pCxt, yymsp[-1].minor.yy845, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
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);
|
|
|
|
|
{ yymsp[-2].minor.yy502 = yymsp[-1].minor.yy502; }
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy561, NULL); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createRealTableNode(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy561, NULL); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy561, yymsp[0].minor.yy826, NULL); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 195: /* type_name ::= BOOL */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-3].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-3].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-3].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-3].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-3].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[0].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-3].minor.yy826 = 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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-5].minor.yy826 = 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);
|
|
|
|
|
{ yymsp[-3].minor.yy502 = yymsp[-1].minor.yy502; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 222: /* table_options ::= */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ yymsp[1].minor.yy490 = 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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setTableOption(pCxt, yymsp[-2].minor.yy490, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setTableOption(pCxt, yymsp[-2].minor.yy490, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy502); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setTableOption(pCxt, yymsp[-2].minor.yy490, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy502); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setTableOption(pCxt, yymsp[-4].minor.yy490, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy502); }
|
|
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setTableOption(pCxt, yymsp[-2].minor.yy490, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setTableOption(pCxt, yymsp[-4].minor.yy490, TABLE_OPTION_SMA, yymsp[-1].minor.yy502); }
|
|
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setTableOption(pCxt, yymsp[-2].minor.yy490, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy502); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createAlterTableOptions(pCxt); yylhsminor.yy490 = setTableOption(pCxt, yylhsminor.yy490, yymsp[0].minor.yy529.type, &yymsp[0].minor.yy529.val); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = setTableOption(pCxt, yymsp[-1].minor.yy490, yymsp[0].minor.yy529.type, &yymsp[0].minor.yy529.val); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
{ yymsp[-1].minor.yy529.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy529.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-01-18 09:49:11 +00:00
|
|
|
case 464: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==464);
|
|
|
|
|
{ yylhsminor.yy502 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy490)); }
|
|
|
|
|
yymsp[0].minor.yy502 = yylhsminor.yy502;
|
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-01-18 09:49:11 +00:00
|
|
|
case 465: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==465);
|
|
|
|
|
{ yylhsminor.yy502 = addNodeToList(pCxt, yymsp[-2].minor.yy502, releaseRawExprNode(pCxt, yymsp[0].minor.yy490)); }
|
|
|
|
|
yymsp[-2].minor.yy502 = yylhsminor.yy502;
|
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-01-18 09:49:11 +00:00
|
|
|
{ yylhsminor.yy490 = createFunctionNode(pCxt, &yymsp[0].minor.yy561, NULL); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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);
|
|
|
|
|
{ yylhsminor.yy490 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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);
|
|
|
|
|
{ yylhsminor.yy490 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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); }
|
2022-11-30 11:24:15 +00:00
|
|
|
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); }
|
2022-11-30 11:24:15 +00:00
|
|
|
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); }
|
2022-11-30 11:24:15 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 247: /* cmd ::= SHOW db_kind_opt DATABASES */
|
2023-09-19 08:14:17 +00:00
|
|
|
{
|
|
|
|
|
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
|
2024-01-18 09:49:11 +00:00
|
|
|
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy579);
|
2023-09-19 08:14:17 +00:00
|
|
|
}
|
2022-11-30 11:24:15 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 248: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
2023-09-19 08:14:17 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy961, yymsp[0].minor.yy490, OP_TYPE_LIKE);
|
2023-09-19 08:14:17 +00:00
|
|
|
}
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 249: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy490, yymsp[0].minor.yy490, OP_TYPE_LIKE); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 250: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy490, NULL, OP_TYPE_LIKE); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 251: /* cmd ::= SHOW MNODES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 252: /* cmd ::= SHOW QNODES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 253: /* cmd ::= SHOW FUNCTIONS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 254: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy490, yymsp[-1].minor.yy490, OP_TYPE_EQUAL); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 255: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy561), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy561), OP_TYPE_EQUAL); }
|
2023-07-12 03:06:47 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 256: /* cmd ::= SHOW STREAMS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ 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 */
|
2022-04-29 01:53:53 +00:00
|
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 258: /* cmd ::= SHOW APPS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 259: /* cmd ::= SHOW CONNECTIONS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
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); }
|
2022-04-01 08:31:24 +00:00
|
|
|
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;
|
|
|
|
|
case 263: /* cmd ::= SHOW GRANTS LOG */
|
|
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOG_STMT); }
|
|
|
|
|
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); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 265: /* cmd ::= SHOW CREATE DATABASE db_name */
|
|
|
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy561); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 266: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
|
|
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy490); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 267: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
|
|
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy490); }
|
|
|
|
|
break;
|
|
|
|
|
case 268: /* cmd ::= SHOW QUERIES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 269: /* cmd ::= SHOW SCORES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 270: /* cmd ::= SHOW TOPICS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 271: /* cmd ::= SHOW VARIABLES */
|
|
|
|
|
case 272: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==272);
|
2022-06-20 12:36:15 +00:00
|
|
|
{ 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 */
|
2022-06-20 12:36:15 +00:00
|
|
|
{ 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 */
|
|
|
|
|
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy490); }
|
2022-06-20 12:36:15 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 275: /* cmd ::= SHOW BNODES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
2022-04-09 06:57:28 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 276: /* cmd ::= SHOW SNODES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
2022-04-09 06:57:28 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 277: /* cmd ::= SHOW CLUSTER */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ 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 */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ 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 */
|
|
|
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy490); }
|
2022-03-28 09:08:48 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 280: /* cmd ::= SHOW CONSUMERS */
|
2022-06-23 10:03:15 +00:00
|
|
|
{ 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 */
|
2022-06-23 10:03:15 +00:00
|
|
|
{ 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 */
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy490, yymsp[-1].minor.yy490, 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 */
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy561), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy561), 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 */
|
|
|
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy490, yymsp[0].minor.yy490, yymsp[-3].minor.yy502); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy561), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy561), yymsp[-4].minor.yy502); }
|
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 */
|
2022-09-01 11:01:37 +00:00
|
|
|
{ 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 */
|
2023-08-16 07:55:34 +00:00
|
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
|
2022-07-19 07:31:44 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 288: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
|
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy490, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
2022-12-29 10:07:57 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 289: /* cmd ::= SHOW CLUSTER ALIVE */
|
2022-12-29 10:07:57 +00:00
|
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 290: /* cmd ::= SHOW db_name_cond_opt VIEWS */
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-1].minor.yy490, NULL, OP_TYPE_LIKE); }
|
2023-10-09 10:34:08 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 291: /* cmd ::= SHOW CREATE VIEW full_table_name */
|
|
|
|
|
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy490); }
|
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 ::= */
|
|
|
|
|
{ yymsp[1].minor.yy961.kind = SHOW_KIND_ALL; yymsp[1].minor.yy961.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 */
|
|
|
|
|
{ yylhsminor.yy961.kind = yymsp[0].minor.yy579; yylhsminor.yy961.dbName = nil_token; }
|
|
|
|
|
yymsp[0].minor.yy961 = yylhsminor.yy961;
|
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 */
|
|
|
|
|
{ yylhsminor.yy961.kind = SHOW_KIND_ALL; yylhsminor.yy961.dbName = yymsp[-1].minor.yy561; }
|
|
|
|
|
yymsp[-1].minor.yy961 = yylhsminor.yy961;
|
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 */
|
|
|
|
|
{ yylhsminor.yy961.kind = yymsp[-2].minor.yy579; yylhsminor.yy961.dbName = yymsp[-1].minor.yy561; }
|
|
|
|
|
yymsp[-2].minor.yy961 = yylhsminor.yy961;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 298: /* table_kind ::= NORMAL */
|
|
|
|
|
{ yymsp[0].minor.yy579 = 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 */
|
|
|
|
|
{ yymsp[0].minor.yy579 = 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);
|
|
|
|
|
{ yymsp[1].minor.yy490 = 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 */
|
|
|
|
|
{ yylhsminor.yy490 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy561); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yymsp[-1].minor.yy490 = 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 */
|
|
|
|
|
{ yylhsminor.yy490 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yymsp[-1].minor.yy490 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy561); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 310: /* tag_item ::= TBNAME */
|
|
|
|
|
{ yylhsminor.yy490 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy561), &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy561), &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 315: /* db_kind_opt ::= */
|
|
|
|
|
{ yymsp[1].minor.yy579 = 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 */
|
|
|
|
|
{ yymsp[0].minor.yy579 = 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 */
|
|
|
|
|
{ yymsp[0].minor.yy579 = 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 */
|
|
|
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy845, yymsp[-3].minor.yy490, yymsp[-1].minor.yy490, NULL, yymsp[0].minor.yy490); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy845, yymsp[-5].minor.yy490, yymsp[-3].minor.yy490, yymsp[-1].minor.yy502, 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 */
|
|
|
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy845, yymsp[0].minor.yy490); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 321: /* full_index_name ::= index_name */
|
|
|
|
|
{ yylhsminor.yy490 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yymsp[-9].minor.yy490 = createIndexOption(pCxt, yymsp[-7].minor.yy502, releaseRawExprNode(pCxt, yymsp[-3].minor.yy490), NULL, yymsp[-1].minor.yy490, yymsp[0].minor.yy490); }
|
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 */
|
|
|
|
|
{ yymsp[-11].minor.yy490 = createIndexOption(pCxt, yymsp[-9].minor.yy502, releaseRawExprNode(pCxt, yymsp[-5].minor.yy490), releaseRawExprNode(pCxt, yymsp[-3].minor.yy490), yymsp[-1].minor.yy490, yymsp[0].minor.yy490); }
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = createFunctionNode(pCxt, &yymsp[-3].minor.yy561, yymsp[-1].minor.yy502); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 328: /* sma_func_name ::= function_name */
|
|
|
|
|
case 553: /* alias_opt ::= table_alias */ yytestcase(yyruleno==553);
|
|
|
|
|
{ yylhsminor.yy561 = yymsp[0].minor.yy561; }
|
|
|
|
|
yymsp[0].minor.yy561 = yylhsminor.yy561;
|
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);
|
|
|
|
|
{ yymsp[1].minor.yy490 = 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 */
|
|
|
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy490)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy490); yylhsminor.yy490 = yymsp[-2].minor.yy490; }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy490)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy490); yylhsminor.yy490 = yymsp[-2].minor.yy490; }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy490)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy490); yylhsminor.yy490 = yymsp[-2].minor.yy490; }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 337: /* with_meta ::= AS */
|
|
|
|
|
{ yymsp[0].minor.yy774 = 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 */
|
|
|
|
|
{ yymsp[-2].minor.yy774 = 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 */
|
|
|
|
|
{ yymsp[-2].minor.yy774 = 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 */
|
|
|
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy845, &yymsp[-2].minor.yy561, yymsp[0].minor.yy490); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy845, &yymsp[-3].minor.yy561, &yymsp[0].minor.yy561, yymsp[-2].minor.yy774); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy845, &yymsp[-4].minor.yy561, yymsp[-1].minor.yy490, yymsp[-3].minor.yy774, yymsp[0].minor.yy490); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy845, &yymsp[0].minor.yy561); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy845, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy561); }
|
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);
|
|
|
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy490); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 347: /* cmd ::= RESET QUERY CACHE */
|
2022-06-23 10:03:15 +00:00
|
|
|
{ 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);
|
|
|
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy845, yymsp[-1].minor.yy490, yymsp[0].minor.yy490); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 352: /* explain_options ::= */
|
|
|
|
|
{ yymsp[1].minor.yy490 = 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 */
|
|
|
|
|
{ yylhsminor.yy490 = setExplainVerbose(pCxt, yymsp[-2].minor.yy490, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = setExplainRatio(pCxt, yymsp[-2].minor.yy490, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy845, yymsp[-9].minor.yy845, &yymsp[-6].minor.yy561, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy826, yymsp[-1].minor.yy774, &yymsp[0].minor.yy561, yymsp[-10].minor.yy845); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy845, &yymsp[0].minor.yy561); }
|
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);
|
|
|
|
|
{ yymsp[1].minor.yy561 = 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);
|
|
|
|
|
{ yymsp[-1].minor.yy561 = 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 */
|
|
|
|
|
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy845, yymsp[-2].minor.yy490, &yymsp[-1].minor.yy0, yymsp[0].minor.yy490); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy845, yymsp[0].minor.yy490); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 367: /* full_view_name ::= view_name */
|
|
|
|
|
{ yylhsminor.yy490 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = createViewNode(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy845, &yymsp[-8].minor.yy561, yymsp[-5].minor.yy490, yymsp[-7].minor.yy490, yymsp[-3].minor.yy502, yymsp[-2].minor.yy490, yymsp[0].minor.yy490, yymsp[-4].minor.yy502); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy845, &yymsp[0].minor.yy561); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy845, &yymsp[0].minor.yy561); }
|
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 */
|
|
|
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy845, yymsp[-1].minor.yy845, &yymsp[0].minor.yy561); }
|
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);
|
|
|
|
|
{ yylhsminor.yy490 = setStreamOptions(pCxt, yymsp[-2].minor.yy490, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = setStreamOptions(pCxt, yymsp[-3].minor.yy490, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy490)); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = setStreamOptions(pCxt, yymsp[-2].minor.yy490, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy490)); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = setStreamOptions(pCxt, yymsp[-3].minor.yy490, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = setStreamOptions(pCxt, yymsp[-2].minor.yy490, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = setStreamOptions(pCxt, yymsp[-2].minor.yy490, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy490)); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
{ yylhsminor.yy490 = setStreamOptions(pCxt, yymsp[-3].minor.yy490, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
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 */
|
|
|
|
|
case 591: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==591);
|
|
|
|
|
case 615: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==615);
|
|
|
|
|
{ yymsp[-3].minor.yy490 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy490); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 391: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
2022-04-01 08:31:24 +00:00
|
|
|
{ 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); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 393: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
2022-05-07 09:37:17 +00:00
|
|
|
{ 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 */
|
2023-03-22 01:53:56 +00:00
|
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 396: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
|
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy561); }
|
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 */
|
2022-04-01 08:31:24 +00:00
|
|
|
{ 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 */
|
|
|
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy502); }
|
2022-06-10 06:28:58 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 399: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
2022-06-10 06:28:58 +00:00
|
|
|
{ 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 */
|
|
|
|
|
{ yymsp[-1].minor.yy502 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
break;
|
|
|
|
|
case 404: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
|
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy490, yymsp[0].minor.yy490); }
|
|
|
|
|
break;
|
|
|
|
|
case 407: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
|
|
|
{ yymsp[-6].minor.yy490 = createInsertStmt(pCxt, yymsp[-4].minor.yy490, yymsp[-2].minor.yy502, yymsp[0].minor.yy490); }
|
|
|
|
|
break;
|
|
|
|
|
case 408: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
|
|
|
{ yymsp[-3].minor.yy490 = createInsertStmt(pCxt, yymsp[-1].minor.yy490, NULL, yymsp[0].minor.yy490); }
|
|
|
|
|
break;
|
|
|
|
|
case 409: /* literal ::= NK_INTEGER */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 410: /* literal ::= NK_FLOAT */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 411: /* literal ::= NK_STRING */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 412: /* literal ::= NK_BOOL */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 413: /* literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 414: /* literal ::= duration_literal */
|
|
|
|
|
case 424: /* signed_literal ::= signed */ yytestcase(yyruleno==424);
|
|
|
|
|
case 447: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==447);
|
|
|
|
|
case 448: /* expression ::= literal */ yytestcase(yyruleno==448);
|
|
|
|
|
case 450: /* expression ::= column_reference */ yytestcase(yyruleno==450);
|
|
|
|
|
case 451: /* expression ::= function_expression */ yytestcase(yyruleno==451);
|
|
|
|
|
case 452: /* expression ::= case_when_expression */ yytestcase(yyruleno==452);
|
|
|
|
|
case 485: /* function_expression ::= literal_func */ yytestcase(yyruleno==485);
|
|
|
|
|
case 534: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==534);
|
|
|
|
|
case 538: /* boolean_primary ::= predicate */ yytestcase(yyruleno==538);
|
|
|
|
|
case 540: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==540);
|
|
|
|
|
case 541: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==541);
|
|
|
|
|
case 544: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==544);
|
|
|
|
|
case 546: /* table_reference ::= table_primary */ yytestcase(yyruleno==546);
|
|
|
|
|
case 547: /* table_reference ::= joined_table */ yytestcase(yyruleno==547);
|
|
|
|
|
case 551: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==551);
|
|
|
|
|
case 617: /* query_simple ::= query_specification */ yytestcase(yyruleno==617);
|
|
|
|
|
case 618: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==618);
|
|
|
|
|
case 621: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==621);
|
|
|
|
|
case 623: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==623);
|
|
|
|
|
{ yylhsminor.yy490 = yymsp[0].minor.yy490; }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 415: /* literal ::= NULL */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 416: /* literal ::= NK_QUESTION */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 417: /* duration_literal ::= NK_VARIABLE */
|
|
|
|
|
case 592: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==592);
|
|
|
|
|
case 593: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==593);
|
|
|
|
|
case 594: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==594);
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 418: /* signed ::= NK_INTEGER */
|
|
|
|
|
{ yylhsminor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 419: /* signed ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
{ yymsp[-1].minor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
|
|
|
|
case 420: /* signed ::= NK_MINUS NK_INTEGER */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
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-01-18 09:49:11 +00:00
|
|
|
yylhsminor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
2022-03-22 06:09:15 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 421: /* signed ::= NK_FLOAT */
|
|
|
|
|
{ yylhsminor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 422: /* signed ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
{ yymsp[-1].minor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 423: /* signed ::= NK_MINUS NK_FLOAT */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
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-01-18 09:49:11 +00:00
|
|
|
yylhsminor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
2022-03-22 06:09:15 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 425: /* signed_literal ::= NK_STRING */
|
|
|
|
|
{ yylhsminor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 426: /* signed_literal ::= NK_BOOL */
|
|
|
|
|
{ yylhsminor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 427: /* signed_literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
{ yymsp[-1].minor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
|
|
|
|
case 428: /* signed_literal ::= duration_literal */
|
|
|
|
|
case 430: /* signed_literal ::= literal_func */ yytestcase(yyruleno==430);
|
|
|
|
|
case 505: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==505);
|
|
|
|
|
case 571: /* select_item ::= common_expression */ yytestcase(yyruleno==571);
|
|
|
|
|
case 581: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==581);
|
|
|
|
|
case 622: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==622);
|
|
|
|
|
case 624: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==624);
|
|
|
|
|
case 637: /* search_condition ::= common_expression */ yytestcase(yyruleno==637);
|
|
|
|
|
{ yylhsminor.yy490 = releaseRawExprNode(pCxt, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 429: /* signed_literal ::= NULL */
|
|
|
|
|
{ yylhsminor.yy490 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 431: /* signed_literal ::= NK_QUESTION */
|
|
|
|
|
{ yylhsminor.yy490 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 449: /* expression ::= pseudo_column */
|
|
|
|
|
{ yylhsminor.yy490 = yymsp[0].minor.yy490; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy490, true); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 453: /* expression ::= NK_LP expression NK_RP */
|
|
|
|
|
case 539: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==539);
|
|
|
|
|
case 636: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==636);
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy490)); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 454: /* expression ::= NK_PLUS expr_or_subquery */
|
2022-06-22 08:35:14 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy490));
|
2022-06-22 08:35:14 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
2022-06-22 08:35:14 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 455: /* expression ::= NK_MINUS expr_or_subquery */
|
2022-06-22 08:35:14 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy490), NULL));
|
2022-06-22 08:35:14 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
2022-04-13 04:38:57 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 456: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
2022-04-15 10:30:01 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-04-15 10:30:01 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-03-22 06:09:15 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 457: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 458: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 459: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 460: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 461: /* expression ::= column_reference NK_ARROW NK_STRING */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 462: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 463: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 466: /* column_reference ::= column_name */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy561, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy561)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 467: /* column_reference ::= table_name NK_DOT column_name */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy561, createColumnNode(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy561)); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 468: /* column_reference ::= NK_ALIAS */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 469: /* column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 470: /* pseudo_column ::= ROWTS */
|
|
|
|
|
case 471: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==471);
|
|
|
|
|
case 473: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==473);
|
|
|
|
|
case 474: /* pseudo_column ::= QEND */ yytestcase(yyruleno==474);
|
|
|
|
|
case 475: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==475);
|
|
|
|
|
case 476: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==476);
|
|
|
|
|
case 477: /* pseudo_column ::= WEND */ yytestcase(yyruleno==477);
|
|
|
|
|
case 478: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==478);
|
|
|
|
|
case 479: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==479);
|
|
|
|
|
case 480: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==480);
|
|
|
|
|
case 481: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==481);
|
|
|
|
|
case 487: /* literal_func ::= NOW */ yytestcase(yyruleno==487);
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 472: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy561)))); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 482: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
|
|
|
case 483: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==483);
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy561, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy561, yymsp[-1].minor.yy502)); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 484: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy490), yymsp[-1].minor.yy826)); }
|
|
|
|
|
yymsp[-5].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 486: /* literal_func ::= noarg_func NK_LP NK_RP */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy561, NULL)); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 501: /* star_func_para_list ::= NK_STAR */
|
|
|
|
|
{ yylhsminor.yy502 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy502 = yylhsminor.yy502;
|
|
|
|
|
break;
|
|
|
|
|
case 506: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
case 574: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==574);
|
|
|
|
|
{ yylhsminor.yy490 = createColumnNode(pCxt, &yymsp[-2].minor.yy561, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 507: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy502, yymsp[-1].minor.yy490)); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 508: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy490), yymsp[-2].minor.yy502, yymsp[-1].minor.yy490)); }
|
|
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
|
|
|
|
break;
|
|
|
|
|
case 511: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
|
|
|
{ yymsp[-3].minor.yy490 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)); }
|
|
|
|
|
break;
|
|
|
|
|
case 513: /* case_when_else_opt ::= ELSE common_expression */
|
|
|
|
|
{ yymsp[-1].minor.yy490 = releaseRawExprNode(pCxt, yymsp[0].minor.yy490); }
|
|
|
|
|
break;
|
|
|
|
|
case 514: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
|
|
|
case 519: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==519);
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy30, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 515: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy490), releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-4].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 516: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy490), releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-5].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 517: /* predicate ::= expr_or_subquery IS NULL */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), NULL));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 518: /* predicate ::= expr_or_subquery IS NOT NULL */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy490), NULL));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 520: /* compare_op ::= NK_LT */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_LOWER_THAN; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 521: /* compare_op ::= NK_GT */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_GREATER_THAN; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 522: /* compare_op ::= NK_LE */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_LOWER_EQUAL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 523: /* compare_op ::= NK_GE */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_GREATER_EQUAL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 524: /* compare_op ::= NK_NE */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_NOT_EQUAL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 525: /* compare_op ::= NK_EQ */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_EQUAL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 526: /* compare_op ::= LIKE */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_LIKE; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 527: /* compare_op ::= NOT LIKE */
|
|
|
|
|
{ yymsp[-1].minor.yy30 = OP_TYPE_NOT_LIKE; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 528: /* compare_op ::= MATCH */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_MATCH; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 529: /* compare_op ::= NMATCH */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_NMATCH; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 530: /* compare_op ::= CONTAINS */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_JSON_CONTAINS; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 531: /* in_op ::= IN */
|
|
|
|
|
{ yymsp[0].minor.yy30 = OP_TYPE_IN; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 532: /* in_op ::= NOT IN */
|
|
|
|
|
{ yymsp[-1].minor.yy30 = OP_TYPE_NOT_IN; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 533: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy502)); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 535: /* boolean_value_expression ::= NOT boolean_primary */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy490), NULL));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
2022-01-27 06:32:40 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 536: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2022-01-23 12:34:16 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 537: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy490);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), releaseRawExprNode(pCxt, yymsp[0].minor.yy490)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 545: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
|
|
|
{ yylhsminor.yy490 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy490, yymsp[0].minor.yy490, NULL); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 548: /* table_primary ::= table_name alias_opt */
|
|
|
|
|
{ yylhsminor.yy490 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy561, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 549: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
|
|
|
{ yylhsminor.yy490 = createRealTableNode(pCxt, &yymsp[-3].minor.yy561, &yymsp[-1].minor.yy561, &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 550: /* table_primary ::= subquery alias_opt */
|
|
|
|
|
{ yylhsminor.yy490 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy490), &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 552: /* alias_opt ::= */
|
|
|
|
|
{ yymsp[1].minor.yy561 = nil_token; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 554: /* alias_opt ::= AS table_alias */
|
|
|
|
|
{ yymsp[-1].minor.yy561 = yymsp[0].minor.yy561; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 555: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
|
|
|
case 556: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==556);
|
|
|
|
|
{ yymsp[-2].minor.yy490 = yymsp[-1].minor.yy490; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 557: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
|
|
|
{ yylhsminor.yy490 = createJoinTableNode(pCxt, yymsp[-4].minor.yy246, yymsp[-5].minor.yy490, yymsp[-2].minor.yy490, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-5].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 558: /* join_type ::= */
|
|
|
|
|
{ yymsp[1].minor.yy246 = JOIN_TYPE_INNER; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 559: /* join_type ::= INNER */
|
|
|
|
|
{ yymsp[0].minor.yy246 = JOIN_TYPE_INNER; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 560: /* 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 */
|
2023-08-15 07:16:57 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-13].minor.yy490 = createSelectStmt(pCxt, yymsp[-11].minor.yy845, yymsp[-9].minor.yy502, yymsp[-8].minor.yy490, yymsp[-12].minor.yy502);
|
|
|
|
|
yymsp[-13].minor.yy490 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy490, yymsp[-10].minor.yy845);
|
|
|
|
|
yymsp[-13].minor.yy490 = addWhereClause(pCxt, yymsp[-13].minor.yy490, yymsp[-7].minor.yy490);
|
|
|
|
|
yymsp[-13].minor.yy490 = addPartitionByClause(pCxt, yymsp[-13].minor.yy490, yymsp[-6].minor.yy502);
|
|
|
|
|
yymsp[-13].minor.yy490 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy490, yymsp[-2].minor.yy490);
|
|
|
|
|
yymsp[-13].minor.yy490 = addGroupByClause(pCxt, yymsp[-13].minor.yy490, yymsp[-1].minor.yy502);
|
|
|
|
|
yymsp[-13].minor.yy490 = addHavingClause(pCxt, yymsp[-13].minor.yy490, yymsp[0].minor.yy490);
|
|
|
|
|
yymsp[-13].minor.yy490 = addRangeClause(pCxt, yymsp[-13].minor.yy490, yymsp[-5].minor.yy490);
|
|
|
|
|
yymsp[-13].minor.yy490 = addEveryClause(pCxt, yymsp[-13].minor.yy490, yymsp[-4].minor.yy490);
|
|
|
|
|
yymsp[-13].minor.yy490 = addFillClause(pCxt, yymsp[-13].minor.yy490, yymsp[-3].minor.yy490);
|
2022-01-27 06:32:40 +00:00
|
|
|
}
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 561: /* hint_list ::= */
|
|
|
|
|
{ yymsp[1].minor.yy502 = createHintNodeList(pCxt, NULL); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 562: /* hint_list ::= NK_HINT */
|
|
|
|
|
{ yylhsminor.yy502 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy502 = yylhsminor.yy502;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 567: /* set_quantifier_opt ::= ALL */
|
|
|
|
|
{ yymsp[0].minor.yy845 = false; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 570: /* select_item ::= NK_STAR */
|
|
|
|
|
{ yylhsminor.yy490 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 572: /* select_item ::= common_expression column_alias */
|
|
|
|
|
case 582: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==582);
|
|
|
|
|
{ yylhsminor.yy490 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy490), &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-1].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 573: /* select_item ::= common_expression AS column_alias */
|
|
|
|
|
case 583: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==583);
|
|
|
|
|
{ yylhsminor.yy490 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), &yymsp[0].minor.yy561); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 578: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
|
|
|
case 606: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==606);
|
|
|
|
|
case 626: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==626);
|
|
|
|
|
{ yymsp[-2].minor.yy502 = yymsp[0].minor.yy502; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 585: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
|
|
|
{ yymsp[-5].minor.yy490 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy490), releaseRawExprNode(pCxt, yymsp[-1].minor.yy490)); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 586: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
{ yymsp[-3].minor.yy490 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy490)); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 587: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
{ yymsp[-5].minor.yy490 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy490), NULL, yymsp[-1].minor.yy490, yymsp[0].minor.yy490); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 588: /* 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.yy490 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy490), releaseRawExprNode(pCxt, yymsp[-3].minor.yy490), yymsp[-1].minor.yy490, yymsp[0].minor.yy490); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 589: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
|
|
|
{ yymsp[-6].minor.yy490 = createEventWindowNode(pCxt, yymsp[-3].minor.yy490, yymsp[0].minor.yy490); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 596: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
|
|
|
{ yymsp[-3].minor.yy490 = createFillNode(pCxt, yymsp[-1].minor.yy718, NULL); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 597: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
|
|
|
{ yymsp[-5].minor.yy490 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy502)); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 598: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
|
|
|
{ yymsp[-5].minor.yy490 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy502)); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 599: /* fill_mode ::= NONE */
|
|
|
|
|
{ yymsp[0].minor.yy718 = FILL_MODE_NONE; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 600: /* fill_mode ::= PREV */
|
|
|
|
|
{ yymsp[0].minor.yy718 = FILL_MODE_PREV; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 601: /* fill_mode ::= NULL */
|
|
|
|
|
{ yymsp[0].minor.yy718 = FILL_MODE_NULL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 602: /* fill_mode ::= NULL_F */
|
|
|
|
|
{ yymsp[0].minor.yy718 = FILL_MODE_NULL_F; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 603: /* fill_mode ::= LINEAR */
|
|
|
|
|
{ yymsp[0].minor.yy718 = FILL_MODE_LINEAR; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 604: /* fill_mode ::= NEXT */
|
|
|
|
|
{ yymsp[0].minor.yy718 = FILL_MODE_NEXT; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 607: /* group_by_list ::= expr_or_subquery */
|
|
|
|
|
{ yylhsminor.yy502 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy490))); }
|
|
|
|
|
yymsp[0].minor.yy502 = yylhsminor.yy502;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 608: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
|
|
|
{ yylhsminor.yy502 = addNodeToList(pCxt, yymsp[-2].minor.yy502, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy490))); }
|
|
|
|
|
yymsp[-2].minor.yy502 = yylhsminor.yy502;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 612: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
|
|
|
{ yymsp[-5].minor.yy490 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy490), releaseRawExprNode(pCxt, yymsp[-1].minor.yy490)); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 613: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
{ yymsp[-3].minor.yy490 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy490)); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 616: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
2022-09-16 07:53:27 +00:00
|
|
|
{
|
2024-01-18 09:49:11 +00:00
|
|
|
yylhsminor.yy490 = addOrderByClause(pCxt, yymsp[-3].minor.yy490, yymsp[-2].minor.yy502);
|
|
|
|
|
yylhsminor.yy490 = addSlimitClause(pCxt, yylhsminor.yy490, yymsp[-1].minor.yy490);
|
|
|
|
|
yylhsminor.yy490 = addLimitClause(pCxt, yylhsminor.yy490, yymsp[0].minor.yy490);
|
2022-01-27 16:28:13 +00:00
|
|
|
}
|
2024-01-18 09:49:11 +00:00
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 619: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
|
|
|
{ yylhsminor.yy490 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy490, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-3].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 620: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
|
|
|
{ yylhsminor.yy490 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy490, yymsp[0].minor.yy490); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 628: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
|
|
|
case 632: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==632);
|
|
|
|
|
{ yymsp[-1].minor.yy490 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 629: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
|
|
|
case 633: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==633);
|
|
|
|
|
{ yymsp[-3].minor.yy490 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 630: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
case 634: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==634);
|
|
|
|
|
{ yymsp[-3].minor.yy490 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 635: /* subquery ::= NK_LP query_expression NK_RP */
|
|
|
|
|
{ yylhsminor.yy490 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy490); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 640: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
|
|
|
{ yylhsminor.yy490 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy490), yymsp[-1].minor.yy876, yymsp[0].minor.yy361); }
|
|
|
|
|
yymsp[-2].minor.yy490 = yylhsminor.yy490;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 641: /* ordering_specification_opt ::= */
|
|
|
|
|
{ yymsp[1].minor.yy876 = ORDER_ASC; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 642: /* ordering_specification_opt ::= ASC */
|
|
|
|
|
{ yymsp[0].minor.yy876 = ORDER_ASC; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 643: /* ordering_specification_opt ::= DESC */
|
|
|
|
|
{ yymsp[0].minor.yy876 = ORDER_DESC; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 644: /* null_ordering_opt ::= */
|
|
|
|
|
{ yymsp[1].minor.yy361 = NULL_ORDER_DEFAULT; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 645: /* null_ordering_opt ::= NULLS FIRST */
|
|
|
|
|
{ yymsp[-1].minor.yy361 = NULL_ORDER_FIRST; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 646: /* null_ordering_opt ::= NULLS LAST */
|
|
|
|
|
{ yymsp[-1].minor.yy361 = NULL_ORDER_LAST; }
|
2023-03-22 01:36:59 +00:00
|
|
|
break;
|
2022-01-23 12:34:16 +00:00
|
|
|
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];
|
2022-01-23 12:34:16 +00:00
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
#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-01-23 12:34:16 +00:00
|
|
|
){
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseARG_FETCH
|
|
|
|
|
ParseCTX_FETCH
|
2022-01-23 12:34:16 +00:00
|
|
|
#define TOKEN yyminor
|
|
|
|
|
/************ Begin %syntax_error code ****************************************/
|
2022-03-16 11:28:40 +00:00
|
|
|
|
2022-04-29 01:53:53 +00:00
|
|
|
if (TSDB_CODE_SUCCESS == pCxt->errCode) {
|
2022-03-16 11:28:40 +00:00
|
|
|
if(TOKEN.z) {
|
2022-04-28 13:02:11 +00:00
|
|
|
pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
|
2022-03-16 11:28:40 +00:00
|
|
|
} else {
|
2022-04-28 13:02:11 +00:00
|
|
|
pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL);
|
2022-03-16 11:28:40 +00:00
|
|
|
}
|
2022-08-01 07:54:53 +00:00
|
|
|
} 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);
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
/************ End %syntax_error code ******************************************/
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
|
|
|
|
|
ParseCTX_STORE
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** 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
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 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.
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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(
|
2022-01-23 12:34:16 +00:00
|
|
|
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 */
|
2022-01-23 12:34:16 +00:00
|
|
|
){
|
|
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
|
|
|
|
|
assert( yypParser->yytos!=0 );
|
|
|
|
|
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
|
|
|
|
|
yyendofinput = (yymajor==0);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
yyact = yypParser->yytos->stateno;
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
if( yyTraceFILE ){
|
|
|
|
|
if( yyact < YY_MIN_REDUCE ){
|
|
|
|
|
fprintf(yyTraceFILE,"%sInput '%s' in state %d\n",
|
|
|
|
|
yyTracePrompt,yyTokenName[yymajor],yyact);
|
|
|
|
|
}else{
|
|
|
|
|
fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n",
|
|
|
|
|
yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-12-18 08:34:31 +00:00
|
|
|
do{
|
2022-01-23 12:34:16 +00:00
|
|
|
assert( yyact==yypParser->yytos->stateno );
|
|
|
|
|
yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
|
|
|
|
|
if( yyact >= YY_MIN_REDUCE ){
|
2023-12-18 08:34:31 +00:00
|
|
|
yyact = yy_reduce(yypParser,yyact-YY_MIN_REDUCE,yymajor,
|
|
|
|
|
yyminor ParseCTX_PARAM);
|
2022-01-23 12:34:16 +00:00
|
|
|
}else if( yyact <= YY_MAX_SHIFTREDUCE ){
|
|
|
|
|
yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor);
|
|
|
|
|
#ifndef YYNOERRORRECOVERY
|
|
|
|
|
yypParser->yyerrcnt--;
|
|
|
|
|
#endif
|
|
|
|
|
break;
|
|
|
|
|
}else if( yyact==YY_ACCEPT_ACTION ){
|
|
|
|
|
yypParser->yytos--;
|
|
|
|
|
yy_accept(yypParser);
|
|
|
|
|
return;
|
|
|
|
|
}else{
|
|
|
|
|
assert( yyact == YY_ERROR_ACTION );
|
|
|
|
|
yyminorunion.yy0 = yyminor;
|
|
|
|
|
#ifdef YYERRORSYMBOL
|
|
|
|
|
int yymx;
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
if( yyTraceFILE ){
|
|
|
|
|
fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef YYERRORSYMBOL
|
|
|
|
|
/* A syntax error has occurred.
|
|
|
|
|
** The response to an error depends upon whether or not the
|
|
|
|
|
** grammar defines an error token "ERROR".
|
|
|
|
|
**
|
|
|
|
|
** This is what we do if the grammar does define ERROR:
|
|
|
|
|
**
|
|
|
|
|
** * Call the %syntax_error function.
|
|
|
|
|
**
|
|
|
|
|
** * Begin popping the stack until we enter a state where
|
|
|
|
|
** it is legal to shift the error symbol, then shift
|
|
|
|
|
** the error symbol.
|
|
|
|
|
**
|
|
|
|
|
** * Set the error count to three.
|
|
|
|
|
**
|
|
|
|
|
** * Begin accepting and shifting new tokens. No new error
|
|
|
|
|
** processing will occur until three tokens have been
|
|
|
|
|
** shifted successfully.
|
|
|
|
|
**
|
|
|
|
|
*/
|
|
|
|
|
if( yypParser->yyerrcnt<0 ){
|
|
|
|
|
yy_syntax_error(yypParser,yymajor,yyminor);
|
|
|
|
|
}
|
|
|
|
|
yymx = yypParser->yytos->major;
|
|
|
|
|
if( yymx==YYERRORSYMBOL || yyerrorhit ){
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
if( yyTraceFILE ){
|
|
|
|
|
fprintf(yyTraceFILE,"%sDiscard input token %s\n",
|
|
|
|
|
yyTracePrompt,yyTokenName[yymajor]);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion);
|
|
|
|
|
yymajor = YYNOCODE;
|
|
|
|
|
}else{
|
2023-12-18 08:34:31 +00:00
|
|
|
while( yypParser->yytos >= yypParser->yystack
|
|
|
|
|
&& (yyact = yy_find_reduce_action(
|
|
|
|
|
yypParser->yytos->stateno,
|
|
|
|
|
YYERRORSYMBOL)) > YY_MAX_SHIFTREDUCE
|
|
|
|
|
){
|
2022-01-23 12:34:16 +00:00
|
|
|
yy_pop_parser_stack(yypParser);
|
|
|
|
|
}
|
2023-12-18 08:34:31 +00:00
|
|
|
if( yypParser->yytos < yypParser->yystack || yymajor==0 ){
|
2022-01-23 12:34:16 +00:00
|
|
|
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
|
|
|
|
|
yy_parse_failed(yypParser);
|
|
|
|
|
#ifndef YYNOERRORRECOVERY
|
|
|
|
|
yypParser->yyerrcnt = -1;
|
|
|
|
|
#endif
|
|
|
|
|
yymajor = YYNOCODE;
|
|
|
|
|
}else if( yymx!=YYERRORSYMBOL ){
|
|
|
|
|
yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
yypParser->yyerrcnt = 3;
|
|
|
|
|
yyerrorhit = 1;
|
|
|
|
|
if( yymajor==YYNOCODE ) break;
|
|
|
|
|
yyact = yypParser->yytos->stateno;
|
|
|
|
|
#elif defined(YYNOERRORRECOVERY)
|
|
|
|
|
/* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
|
|
|
|
|
** do any kind of error recovery. Instead, simply invoke the syntax
|
|
|
|
|
** error routine and continue going as if nothing had happened.
|
|
|
|
|
**
|
|
|
|
|
** Applications can set this macro (for example inside %include) if
|
|
|
|
|
** they intend to abandon the parse upon the first syntax error seen.
|
|
|
|
|
*/
|
|
|
|
|
yy_syntax_error(yypParser,yymajor, yyminor);
|
|
|
|
|
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
|
|
|
|
|
break;
|
|
|
|
|
#else /* YYERRORSYMBOL is not defined */
|
|
|
|
|
/* This is what we do if the grammar does not define ERROR:
|
|
|
|
|
**
|
|
|
|
|
** * Report an error message, and throw away the input token.
|
|
|
|
|
**
|
|
|
|
|
** * If the input token is $, then fail the parse.
|
|
|
|
|
**
|
|
|
|
|
** As before, subsequent error messages are suppressed until
|
|
|
|
|
** three input tokens have been successfully shifted.
|
|
|
|
|
*/
|
|
|
|
|
if( yypParser->yyerrcnt<=0 ){
|
|
|
|
|
yy_syntax_error(yypParser,yymajor, yyminor);
|
|
|
|
|
}
|
|
|
|
|
yypParser->yyerrcnt = 3;
|
|
|
|
|
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
|
|
|
|
|
if( yyendofinput ){
|
|
|
|
|
yy_parse_failed(yypParser);
|
|
|
|
|
#ifndef YYNOERRORRECOVERY
|
|
|
|
|
yypParser->yyerrcnt = -1;
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
}
|
2023-12-18 08:34:31 +00:00
|
|
|
}while( yypParser->yytos>yypParser->yystack );
|
2022-01-23 12:34:16 +00:00
|
|
|
#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){
|
2022-01-23 12:34:16 +00:00
|
|
|
#ifdef YYFALLBACK
|
2023-05-09 11:19:14 +00:00
|
|
|
assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
|
|
|
|
|
return yyFallback[iToken];
|
2022-01-23 12:34:16 +00:00
|
|
|
#else
|
|
|
|
|
(void)iToken;
|
2023-04-23 03:20:34 +00:00
|
|
|
return 0;
|
2023-05-09 11:19:14 +00:00
|
|
|
#endif
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|