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

4746 lines
238 KiB
C
Raw Normal View History

/*
** 2000-05-29
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
** Driver template for the LEMON parser generator.
**
** The "lemon" program processes an LALR(1) input grammar file, then uses
** this template to construct a parser. The "lemon" program inserts text
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
** interstitial "-" characters) contained in this template is changed into
** the value of the %name directive from the grammar. Otherwise, the content
** of this template is copied straight through into the generate parser
** source file.
**
** The following is the concatenation of all %include directives from the
** input grammar file:
*/
#include <stdio.h>
#include <assert.h>
/************ Begin %include sections from the grammar ************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>
#include "functionMgt.h"
#include "nodes.h"
2022-03-10 07:36:06 +00:00
#include "parToken.h"
#include "ttokendef.h"
2022-03-10 07:36:06 +00:00
#include "parAst.h"
/**************** End of %include directives **********************************/
/* These constants specify the various numeric values for terminal symbols
** in a format understandable to "makeheaders". This section is blank unless
** "lemon" is run with the "-m" command-line option.
***************** Begin makeheaders token definitions *************************/
/**************** End makeheaders token definitions ***************************/
/* The next sections is a series of control #defines.
** various aspects of the generated parser.
** YYCODETYPE is the data type used to store the integer codes
** that represent terminal and non-terminal symbols.
** "unsigned char" is used if there are fewer than
** 256 symbols. Larger types otherwise.
** YYNOCODE is a number of type YYCODETYPE that is not used for
** any terminal or nonterminal symbol.
** YYFALLBACK If defined, this indicates that one or more tokens
** (also known as: "terminal symbols") have fall-back
** values which should be used if the original symbol
** would not parse. This permits keywords to sometimes
** be used as identifiers, for example.
** YYACTIONTYPE is the data type used for "action codes" - numbers
** that indicate what to do in response to the next
** token.
2022-03-10 07:36:06 +00:00
** ParseTOKENTYPE is the data type used for minor type for terminal
** symbols. Background: A "minor type" is a semantic
** value associated with a terminal or non-terminal
** symbols. For example, for an "ID" terminal symbol,
** the minor type might be the name of the identifier.
** Each non-terminal can have a different minor type.
** Terminal symbols all have the same minor type, though.
** This macros defines the minor type for terminal
** symbols.
** YYMINORTYPE is the data type used for all minor types.
** This is typically a union of many types, one of
2022-03-10 07:36:06 +00:00
** which is ParseTOKENTYPE. The entry in the union
** for terminal symbols is called "yy0".
** YYSTACKDEPTH is the maximum depth of the parser's stack. If
2022-03-28 09:08:48 +00:00
** zero the stack is dynamically sized using realloc()
2022-03-10 07:36:06 +00:00
** ParseARG_SDECL A static variable declaration for the %extra_argument
** ParseARG_PDECL A parameter declaration for the %extra_argument
** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter
** ParseARG_STORE Code to store %extra_argument into yypParser
** ParseARG_FETCH Code to extract %extra_argument from yypParser
** ParseCTX_* As ParseARG_ except for %extra_context
** YYERRORSYMBOL is the code number of the error symbol. If not
** defined, then do no error processing.
** YYNSTATE the combined number of states.
** YYNRULE the number of rules in the grammar
** YYNTOKEN Number of terminal symbols
** YY_MAX_SHIFT Maximum value for shift actions
** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions
** YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions
** YY_ERROR_ACTION The yy_action[] code for syntax error
** YY_ACCEPT_ACTION The yy_action[] code for accept
** YY_NO_ACTION The yy_action[] code for no-op
** YY_MIN_REDUCE Minimum value for reduce actions
** YY_MAX_REDUCE Maximum value for reduce actions
*/
#ifndef INTERFACE
# define INTERFACE 1
#endif
/************* Begin control #defines *****************************************/
2022-03-21 06:00:30 +00:00
#define YYCODETYPE unsigned short int
2022-05-25 13:20:11 +00:00
#define YYNOCODE 361
#define YYACTIONTYPE unsigned short int
2022-03-10 07:36:06 +00:00
#define ParseTOKENTYPE SToken
typedef union {
int yyinit;
2022-03-10 07:36:06 +00:00
ParseTOKENTYPE yy0;
2022-05-25 13:20:11 +00:00
EFillMode yy18;
SAlterOption yy25;
SToken yy53;
EOperatorType yy136;
int32_t yy158;
ENullOrder yy185;
SNodeList* yy236;
EJoinType yy342;
EOrder yy430;
int64_t yy435;
SDataType yy450;
bool yy603;
SNode* yy636;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
2022-03-10 07:36:06 +00:00
#define ParseARG_SDECL SAstCreateContext* pCxt ;
#define ParseARG_PDECL , SAstCreateContext* pCxt
#define ParseARG_PARAM ,pCxt
#define ParseARG_FETCH SAstCreateContext* pCxt =yypParser->pCxt ;
#define ParseARG_STORE yypParser->pCxt =pCxt ;
#define ParseCTX_SDECL
#define ParseCTX_PDECL
#define ParseCTX_PARAM
#define ParseCTX_FETCH
#define ParseCTX_STORE
2022-04-22 10:23:37 +00:00
#define YYFALLBACK 1
#define YYNSTATE 612
2022-05-25 13:20:11 +00:00
#define YYNRULE 455
#define YYNTOKEN 240
#define YY_MAX_SHIFT 611
#define YY_MIN_SHIFTREDUCE 902
#define YY_MAX_SHIFTREDUCE 1356
#define YY_ERROR_ACTION 1357
#define YY_ACCEPT_ACTION 1358
#define YY_NO_ACTION 1359
#define YY_MIN_REDUCE 1360
#define YY_MAX_REDUCE 1814
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
/* Define the yytestcase() macro to be a no-op if is not already defined
** otherwise.
**
** Applications can choose to define yytestcase() in the %include section
** to a macro that can assist in verifying code coverage. For production
** code the yytestcase() macro should be turned off. But it is useful
** for testing.
*/
#ifndef yytestcase
# define yytestcase(X)
#endif
/* Next are the tables used to determine what action to take based on the
** current state and lookahead token. These tables are used to implement
** functions that take a state number and lookahead value and return an
** action integer.
**
** Suppose the action integer is N. Then the action is determined as
** follows
**
** 0 <= N <= YY_MAX_SHIFT Shift N. That is, push the lookahead
** token onto the stack and goto state N.
**
** N between YY_MIN_SHIFTREDUCE Shift to an arbitrary state then
** and YY_MAX_SHIFTREDUCE reduce by rule N-YY_MIN_SHIFTREDUCE.
**
** N == YY_ERROR_ACTION A syntax error has occurred.
**
** N == YY_ACCEPT_ACTION The parser accepts its input.
**
** N == YY_NO_ACTION No such action. Denotes unused
** slots in the yy_action[] table.
**
** N between YY_MIN_REDUCE Reduce by rule N-YY_MIN_REDUCE
** and YY_MAX_REDUCE
**
** The action table is constructed as a single large table named yy_action[].
** Given state S and lookahead X, the action is computed as either:
**
** (A) N = yy_action[ yy_shift_ofst[S] + X ]
** (B) N = yy_default[S]
**
** The (A) formula is preferred. The B formula is used instead if
** yy_lookahead[yy_shift_ofst[S]+X] is not equal to X.
**
** The formulas above are for computing the action when the lookahead is
** a terminal symbol. If the lookahead is a non-terminal (as occurs after
** a reduce action) then the yy_reduce_ofst[] array is used in place of
** the yy_shift_ofst[] array.
**
** The following are the tables generated in this section:
**
** yy_action[] A single table containing all actions.
** yy_lookahead[] A table containing the lookahead for each entry in
** yy_action. Used to detect hash collisions.
** yy_shift_ofst[] For each state, the offset into yy_action for
** shifting terminals.
** yy_reduce_ofst[] For each state, the offset into yy_action for
** shifting non-terminals after a reduce.
** yy_default[] Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (2136)
static const YYACTIONTYPE yy_action[] = {
/* 0 */ 460, 1648, 1536, 1648, 295, 386, 312, 387, 1392, 294,
/* 10 */ 28, 226, 35, 33, 1534, 24, 1383, 1661, 932, 1480,
/* 20 */ 304, 1645, 1170, 1645, 140, 36, 34, 32, 31, 30,
/* 30 */ 36, 34, 32, 31, 30, 1482, 1530, 1641, 1647, 1641,
/* 40 */ 1647, 394, 1469, 387, 1392, 1677, 524, 1168, 528, 130,
/* 50 */ 528, 1372, 1792, 509, 485, 1645, 936, 937, 14, 524,
/* 60 */ 35, 33, 1297, 508, 1176, 1791, 1631, 1631, 304, 1789,
/* 70 */ 1170, 1641, 1647, 489, 36, 34, 32, 31, 30, 604,
/* 80 */ 603, 1, 528, 112, 1690, 1131, 525, 80, 1662, 511,
/* 90 */ 1664, 1665, 507, 1133, 528, 1168, 1661, 1730, 104, 404,
/* 100 */ 1311, 276, 1726, 608, 1744, 425, 14, 39, 35, 33,
/* 110 */ 1792, 1649, 1176, 1792, 1169, 1491, 304, 1744, 1170, 512,
/* 120 */ 277, 110, 307, 146, 1677, 1581, 147, 1789, 1741, 2,
/* 130 */ 1789, 1645, 506, 1304, 376, 487, 142, 1737, 1738, 1194,
/* 140 */ 1742, 1740, 508, 1168, 1208, 55, 1631, 1641, 1647, 525,
/* 150 */ 56, 608, 1259, 131, 14, 1132, 1677, 1448, 528, 1171,
/* 160 */ 1176, 350, 1169, 1690, 478, 404, 270, 1662, 511, 1664,
/* 170 */ 1665, 507, 505, 528, 502, 1702, 1382, 2, 1491, 158,
/* 180 */ 157, 1174, 1175, 1194, 1221, 1222, 1224, 1225, 1226, 1227,
/* 190 */ 1228, 504, 526, 1236, 1237, 1238, 1239, 1240, 1241, 608,
/* 200 */ 477, 62, 1260, 154, 64, 292, 1296, 1171, 191, 94,
/* 210 */ 1169, 148, 93, 92, 91, 90, 89, 88, 87, 86,
/* 220 */ 85, 1381, 345, 1487, 344, 1265, 1631, 55, 60, 1174,
/* 230 */ 1175, 59, 1221, 1222, 1224, 1225, 1226, 1227, 1228, 504,
/* 240 */ 526, 1236, 1237, 1238, 1239, 1240, 1241, 1419, 286, 479,
/* 250 */ 36, 34, 32, 31, 30, 1171, 36, 34, 32, 31,
/* 260 */ 30, 27, 302, 1254, 1255, 1256, 1257, 1258, 1262, 1263,
/* 270 */ 1264, 1631, 55, 1358, 1744, 148, 385, 1174, 1175, 389,
/* 280 */ 1221, 1222, 1224, 1225, 1226, 1227, 1228, 504, 526, 1236,
/* 290 */ 1237, 1238, 1239, 1240, 1241, 35, 33, 287, 1739, 285,
/* 300 */ 284, 524, 427, 304, 1223, 1170, 429, 584, 583, 582,
/* 310 */ 319, 1467, 581, 580, 579, 114, 574, 573, 572, 571,
/* 320 */ 570, 569, 568, 567, 121, 563, 439, 438, 62, 428,
/* 330 */ 1168, 437, 320, 1661, 109, 434, 560, 346, 433, 432,
/* 340 */ 431, 108, 525, 35, 33, 1242, 391, 1176, 1192, 948,
/* 350 */ 1486, 304, 1192, 1170, 351, 559, 558, 148, 557, 556,
/* 360 */ 555, 1677, 38, 1792, 8, 308, 1380, 474, 562, 488,
/* 370 */ 1261, 1491, 1792, 128, 423, 453, 1790, 1792, 1168, 508,
/* 380 */ 1789, 1321, 1493, 1631, 127, 145, 608, 436, 435, 1789,
/* 390 */ 145, 35, 33, 1266, 1789, 1176, 949, 1169, 948, 304,
/* 400 */ 1690, 1170, 148, 81, 1662, 511, 1664, 1665, 507, 55,
/* 410 */ 528, 1379, 9, 1730, 1295, 1792, 1631, 297, 1726, 141,
/* 420 */ 471, 1319, 1320, 1322, 1323, 950, 1168, 1361, 145, 25,
/* 430 */ 512, 218, 1789, 314, 608, 1422, 1582, 467, 1757, 480,
/* 440 */ 475, 128, 1171, 1176, 1409, 1169, 393, 1378, 94, 389,
/* 450 */ 1493, 93, 92, 91, 90, 89, 88, 87, 86, 85,
/* 460 */ 9, 1631, 578, 576, 1174, 1175, 440, 1221, 1222, 1224,
/* 470 */ 1225, 1226, 1227, 1228, 504, 526, 1236, 1237, 1238, 1239,
/* 480 */ 1240, 1241, 608, 36, 34, 32, 31, 30, 1468, 70,
/* 490 */ 1171, 1569, 148, 1169, 148, 439, 438, 1631, 156, 1536,
/* 500 */ 437, 7, 525, 109, 434, 1195, 309, 433, 432, 431,
/* 510 */ 1484, 1534, 1174, 1175, 361, 1221, 1222, 1224, 1225, 1226,
/* 520 */ 1227, 1228, 504, 526, 1236, 1237, 1238, 1239, 1240, 1241,
/* 530 */ 493, 1491, 36, 34, 32, 31, 30, 1196, 1171, 148,
/* 540 */ 1039, 551, 550, 549, 1043, 548, 1045, 1046, 547, 1048,
/* 550 */ 544, 316, 1054, 541, 1056, 1057, 538, 535, 1572, 1574,
/* 560 */ 1174, 1175, 1377, 1221, 1222, 1224, 1225, 1226, 1227, 1228,
/* 570 */ 504, 526, 1236, 1237, 1238, 1239, 1240, 1241, 35, 33,
/* 580 */ 273, 560, 1192, 26, 11, 10, 304, 1661, 1170, 369,
/* 590 */ 54, 1001, 381, 36, 34, 32, 31, 30, 1573, 1574,
/* 600 */ 559, 558, 1208, 557, 556, 555, 177, 525, 1003, 1536,
/* 610 */ 382, 1247, 1631, 1168, 1360, 1677, 315, 1194, 139, 362,
/* 620 */ 525, 1534, 1353, 509, 421, 417, 413, 409, 176, 1376,
/* 630 */ 1176, 337, 403, 508, 936, 937, 1491, 1631, 103, 102,
/* 640 */ 101, 100, 99, 98, 97, 96, 95, 2, 485, 1491,
/* 650 */ 1193, 339, 335, 63, 1690, 77, 174, 81, 1662, 511,
/* 660 */ 1664, 1665, 507, 217, 528, 1273, 128, 1730, 113, 608,
/* 670 */ 352, 297, 1726, 1805, 1292, 1494, 1483, 112, 461, 1631,
/* 680 */ 1169, 380, 1764, 1375, 375, 374, 373, 372, 371, 368,
/* 690 */ 367, 366, 365, 364, 360, 359, 358, 357, 356, 355,
/* 700 */ 354, 353, 1352, 249, 274, 129, 1521, 525, 554, 525,
/* 710 */ 255, 32, 31, 30, 173, 110, 165, 494, 170, 1488,
/* 720 */ 399, 104, 253, 53, 562, 1171, 52, 462, 430, 565,
/* 730 */ 143, 1737, 1738, 1631, 1742, 1197, 1491, 1661, 1491, 182,
/* 740 */ 163, 1466, 180, 159, 1374, 496, 1371, 1174, 1175, 1194,
/* 750 */ 1221, 1222, 1224, 1225, 1226, 1227, 1228, 504, 526, 1236,
/* 760 */ 1237, 1238, 1239, 1240, 1241, 1677, 1370, 1792, 55, 525,
/* 770 */ 566, 317, 1463, 509, 36, 34, 32, 31, 30, 128,
/* 780 */ 145, 1611, 1223, 508, 1789, 1749, 1292, 1631, 1493, 525,
/* 790 */ 525, 1369, 1620, 489, 1631, 485, 1631, 1368, 1491, 1476,
/* 800 */ 429, 522, 523, 525, 1690, 79, 485, 80, 1662, 511,
/* 810 */ 1664, 1665, 507, 491, 528, 239, 1631, 1730, 1491, 1491,
/* 820 */ 277, 276, 1726, 428, 112, 1367, 1155, 1156, 184, 1404,
/* 830 */ 525, 183, 1491, 1792, 560, 112, 1661, 327, 58, 57,
/* 840 */ 349, 1631, 318, 153, 489, 1170, 145, 1631, 343, 1366,
/* 850 */ 1789, 442, 1259, 559, 558, 1365, 557, 556, 555, 1491,
/* 860 */ 272, 202, 110, 333, 1677, 329, 325, 150, 1364, 1363,
/* 870 */ 1168, 501, 488, 110, 577, 1631, 1478, 215, 1737, 484,
/* 880 */ 186, 483, 508, 185, 1792, 76, 1631, 1176, 144, 1737,
/* 890 */ 1738, 47, 1742, 188, 275, 72, 187, 147, 148, 1631,
/* 900 */ 1536, 1789, 1260, 1690, 1661, 1631, 81, 1662, 511, 1664,
/* 910 */ 1665, 507, 1535, 528, 1223, 340, 1730, 1402, 1631, 1631,
/* 920 */ 297, 1726, 141, 451, 485, 1265, 608, 11, 10, 1355,
/* 930 */ 1356, 118, 1677, 1373, 497, 1179, 449, 1169, 1474, 445,
/* 940 */ 509, 1758, 46, 1651, 205, 1178, 1449, 194, 503, 553,
/* 950 */ 508, 37, 37, 112, 1631, 37, 228, 116, 221, 117,
/* 960 */ 118, 27, 302, 1254, 1255, 1256, 1257, 1258, 1262, 1263,
/* 970 */ 1264, 1690, 463, 489, 81, 1662, 511, 1664, 1665, 507,
/* 980 */ 1653, 528, 1171, 1318, 1730, 207, 46, 1661, 297, 1726,
/* 990 */ 1805, 110, 1267, 1229, 1251, 533, 1125, 230, 517, 1787,
/* 1000 */ 236, 1032, 1182, 117, 1174, 1175, 215, 1737, 484, 118,
/* 1010 */ 483, 119, 1181, 1792, 973, 1677, 454, 212, 472, 1661,
/* 1020 */ 1678, 1393, 117, 509, 422, 1760, 145, 248, 1531, 486,
/* 1030 */ 1789, 974, 220, 508, 223, 225, 1060, 1631, 3, 1192,
/* 1040 */ 322, 326, 282, 283, 1064, 1001, 1139, 1677, 244, 1661,
/* 1050 */ 1071, 363, 1069, 1571, 1690, 509, 155, 81, 1662, 511,
/* 1060 */ 1664, 1665, 507, 120, 528, 508, 370, 1730, 378, 1631,
/* 1070 */ 377, 297, 1726, 1805, 379, 489, 383, 1677, 1198, 384,
/* 1080 */ 392, 1201, 1748, 395, 1200, 509, 1690, 162, 396, 262,
/* 1090 */ 1662, 511, 1664, 1665, 507, 508, 528, 164, 1202, 1631,
/* 1100 */ 398, 167, 397, 169, 400, 489, 401, 1661, 1199, 402,
/* 1110 */ 444, 172, 61, 405, 175, 1792, 1690, 424, 426, 262,
/* 1120 */ 1662, 511, 1664, 1665, 507, 452, 528, 84, 147, 1481,
/* 1130 */ 291, 179, 1789, 1477, 1176, 1677, 181, 122, 123, 190,
/* 1140 */ 1479, 1475, 124, 509, 125, 1792, 1615, 1661, 245, 192,
/* 1150 */ 455, 447, 246, 508, 456, 464, 441, 1631, 145, 195,
/* 1160 */ 197, 189, 1789, 459, 1197, 465, 1661, 473, 515, 1771,
/* 1170 */ 1770, 6, 470, 200, 1690, 1677, 203, 82, 1662, 511,
/* 1180 */ 1664, 1665, 507, 509, 528, 206, 51, 1730, 296, 50,
/* 1190 */ 1761, 1729, 1726, 508, 1677, 1751, 482, 1631, 1661, 211,
/* 1200 */ 469, 476, 509, 5, 135, 1292, 111, 1196, 1745, 40,
/* 1210 */ 213, 214, 508, 18, 1690, 495, 1631, 82, 1662, 511,
/* 1220 */ 1664, 1665, 507, 498, 528, 298, 1677, 1730, 1580, 513,
/* 1230 */ 514, 500, 1726, 1690, 509, 1788, 132, 1662, 511, 1664,
/* 1240 */ 1665, 507, 306, 528, 508, 1579, 219, 1808, 1631, 492,
/* 1250 */ 1711, 518, 519, 611, 222, 232, 520, 234, 247, 69,
/* 1260 */ 499, 1492, 71, 1661, 531, 1690, 224, 243, 82, 1662,
/* 1270 */ 511, 1664, 1665, 507, 1464, 528, 250, 241, 1730, 105,
/* 1280 */ 490, 1806, 607, 1727, 134, 600, 596, 592, 588, 242,
/* 1290 */ 256, 1677, 263, 257, 48, 293, 252, 254, 1625, 509,
/* 1300 */ 1624, 321, 1621, 323, 324, 1164, 1165, 151, 328, 508,
/* 1310 */ 1619, 1661, 330, 1631, 78, 331, 468, 237, 332, 1618,
/* 1320 */ 334, 1617, 336, 1616, 338, 1601, 152, 341, 342, 1142,
/* 1330 */ 1690, 1141, 1595, 271, 1662, 511, 1664, 1665, 507, 1677,
/* 1340 */ 528, 1594, 1593, 347, 348, 1592, 1564, 509, 1108, 1563,
/* 1350 */ 1562, 521, 1561, 1560, 1559, 1558, 1557, 508, 1556, 1661,
/* 1360 */ 1555, 1631, 1554, 1553, 1552, 1551, 1550, 1549, 1661, 1548,
/* 1370 */ 1547, 115, 1546, 1545, 1544, 1543, 466, 1542, 1690, 198,
/* 1380 */ 1541, 266, 1662, 511, 1664, 1665, 507, 1677, 528, 1540,
/* 1390 */ 1110, 1539, 1538, 1537, 1421, 509, 1677, 160, 106, 1147,
/* 1400 */ 1389, 193, 939, 388, 509, 508, 1388, 1609, 1603, 1631,
/* 1410 */ 938, 1587, 138, 1586, 508, 168, 161, 1577, 1631, 481,
/* 1420 */ 390, 301, 1661, 107, 166, 1470, 1690, 171, 1420, 132,
/* 1430 */ 1662, 511, 1664, 1665, 507, 1690, 528, 1661, 271, 1662,
/* 1440 */ 511, 1664, 1665, 507, 967, 528, 1418, 407, 406, 408,
/* 1450 */ 1677, 1416, 410, 412, 411, 1414, 416, 414, 506, 415,
/* 1460 */ 1412, 420, 418, 419, 1401, 1677, 1400, 1387, 508, 1472,
/* 1470 */ 1661, 45, 1631, 509, 1807, 1074, 1075, 1471, 1000, 999,
/* 1480 */ 998, 997, 575, 508, 577, 1661, 178, 1631, 1410, 1690,
/* 1490 */ 303, 994, 270, 1662, 511, 1664, 1665, 507, 1677, 528,
/* 1500 */ 288, 1703, 1405, 993, 1690, 992, 509, 271, 1662, 511,
/* 1510 */ 1664, 1665, 507, 1677, 528, 1403, 508, 289, 443, 290,
/* 1520 */ 1631, 509, 446, 305, 1386, 1661, 448, 1385, 450, 83,
/* 1530 */ 1608, 508, 1149, 1602, 457, 1631, 1585, 1690, 196, 1584,
/* 1540 */ 271, 1662, 511, 1664, 1665, 507, 1576, 528, 126, 49,
/* 1550 */ 458, 199, 1690, 1677, 65, 258, 1662, 511, 1664, 1665,
/* 1560 */ 507, 509, 528, 201, 4, 204, 37, 43, 1317, 1310,
/* 1570 */ 133, 508, 208, 22, 10, 1631, 209, 1661, 210, 66,
/* 1580 */ 29, 1651, 1289, 23, 216, 1288, 42, 136, 17, 1346,
/* 1590 */ 1335, 1341, 1690, 19, 15, 265, 1662, 511, 1664, 1665,
/* 1600 */ 507, 1340, 528, 299, 1345, 1677, 1344, 300, 1252, 137,
/* 1610 */ 1231, 1230, 12, 509, 16, 149, 1216, 1575, 510, 20,
/* 1620 */ 516, 233, 235, 508, 1650, 1661, 238, 1631, 965, 41,
/* 1630 */ 21, 1186, 227, 1315, 532, 313, 13, 536, 539, 229,
/* 1640 */ 1661, 1038, 231, 67, 1690, 68, 72, 267, 1662, 511,
/* 1650 */ 1664, 1665, 507, 1677, 528, 1693, 552, 1233, 527, 44,
/* 1660 */ 530, 509, 542, 1061, 534, 545, 1066, 1058, 1677, 1070,
/* 1670 */ 537, 508, 1053, 1661, 1055, 1631, 509, 540, 1052, 1049,
/* 1680 */ 543, 1051, 1047, 546, 1050, 73, 508, 1067, 74, 75,
/* 1690 */ 1631, 561, 1690, 989, 1007, 259, 1662, 511, 1664, 1665,
/* 1700 */ 507, 1677, 528, 564, 240, 987, 986, 1690, 985, 509,
/* 1710 */ 268, 1662, 511, 1664, 1665, 507, 982, 528, 984, 508,
/* 1720 */ 983, 981, 980, 1631, 1068, 1002, 1004, 1661, 977, 976,
/* 1730 */ 975, 972, 971, 970, 1417, 585, 1661, 586, 587, 1415,
/* 1740 */ 1690, 590, 589, 260, 1662, 511, 1664, 1665, 507, 591,
/* 1750 */ 528, 1413, 593, 594, 595, 1677, 597, 599, 598, 1399,
/* 1760 */ 1398, 601, 602, 509, 1677, 1411, 1384, 605, 606, 1359,
/* 1770 */ 1172, 251, 509, 508, 609, 610, 1359, 1631, 1359, 1359,
/* 1780 */ 1359, 1359, 508, 1359, 1661, 1359, 1631, 1359, 1359, 1359,
/* 1790 */ 1359, 1359, 1359, 1359, 1690, 1359, 1661, 269, 1662, 511,
/* 1800 */ 1664, 1665, 507, 1690, 528, 1359, 261, 1662, 511, 1664,
/* 1810 */ 1665, 507, 1677, 528, 1359, 1359, 1359, 1359, 1359, 1359,
/* 1820 */ 509, 1359, 1359, 1359, 1677, 1359, 1359, 1359, 1359, 1359,
/* 1830 */ 508, 1359, 509, 1359, 1631, 1359, 1661, 1359, 1359, 1359,
/* 1840 */ 1359, 1359, 508, 1359, 1359, 1359, 1631, 1359, 1359, 1661,
/* 1850 */ 1359, 1690, 1359, 1359, 1673, 1662, 511, 1664, 1665, 507,
/* 1860 */ 1359, 528, 1359, 1690, 1677, 1359, 1672, 1662, 511, 1664,
/* 1870 */ 1665, 507, 509, 528, 1359, 1359, 1359, 1677, 1359, 1359,
/* 1880 */ 1359, 1359, 508, 1359, 1359, 509, 1631, 1359, 1359, 1359,
/* 1890 */ 1359, 1359, 1359, 1359, 1359, 508, 1359, 1661, 1359, 1631,
/* 1900 */ 1359, 1359, 1359, 1690, 1359, 1359, 1671, 1662, 511, 1664,
/* 1910 */ 1665, 507, 1661, 528, 1359, 1359, 1690, 1359, 1359, 280,
/* 1920 */ 1662, 511, 1664, 1665, 507, 1677, 528, 1359, 1359, 1359,
/* 1930 */ 1359, 1359, 1359, 509, 1359, 1359, 1359, 1359, 1359, 1359,
/* 1940 */ 1677, 1359, 1359, 508, 1359, 1661, 1359, 1631, 509, 1359,
/* 1950 */ 1359, 1359, 1359, 311, 310, 1359, 1359, 1359, 508, 1359,
/* 1960 */ 1359, 1359, 1631, 1184, 1690, 1359, 1359, 279, 1662, 511,
/* 1970 */ 1664, 1665, 507, 1677, 528, 1359, 1359, 1359, 1359, 1690,
/* 1980 */ 1359, 509, 281, 1662, 511, 1664, 1665, 507, 1177, 528,
/* 1990 */ 1359, 508, 1359, 1359, 1359, 1631, 1359, 1359, 1359, 1661,
/* 2000 */ 1359, 1359, 1359, 1359, 1359, 1176, 1359, 1359, 1359, 1359,
/* 2010 */ 1359, 1359, 1690, 1359, 1359, 278, 1662, 511, 1664, 1665,
/* 2020 */ 507, 1359, 528, 1359, 1359, 1359, 1359, 1677, 1359, 1359,
/* 2030 */ 1359, 1359, 1359, 1359, 1359, 509, 1359, 1359, 1359, 1359,
/* 2040 */ 1359, 1359, 1359, 1359, 529, 508, 1359, 1359, 1359, 1631,
/* 2050 */ 1359, 1359, 1359, 1359, 1359, 1180, 1359, 1359, 1359, 1359,
/* 2060 */ 1359, 1359, 1359, 1359, 1359, 1359, 1690, 1359, 1359, 264,
/* 2070 */ 1662, 511, 1664, 1665, 507, 1359, 528, 1359, 1359, 1359,
/* 2080 */ 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359,
/* 2090 */ 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359,
/* 2100 */ 1185, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359,
/* 2110 */ 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359, 1359,
/* 2120 */ 1359, 1359, 1188, 1359, 1359, 1359, 1359, 1359, 1359, 1359,
/* 2130 */ 1359, 1359, 1359, 526, 1236, 1237,
};
static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 303, 273, 271, 273, 276, 246, 276, 248, 249, 278,
/* 10 */ 324, 325, 12, 13, 283, 2, 243, 243, 4, 272,
/* 20 */ 20, 293, 22, 293, 270, 12, 13, 14, 15, 16,
/* 30 */ 12, 13, 14, 15, 16, 273, 282, 309, 310, 309,
/* 40 */ 310, 246, 0, 248, 249, 271, 20, 47, 320, 242,
/* 50 */ 320, 244, 339, 279, 250, 293, 42, 43, 58, 20,
/* 60 */ 12, 13, 14, 289, 64, 352, 293, 293, 20, 356,
/* 70 */ 22, 309, 310, 299, 12, 13, 14, 15, 16, 251,
/* 80 */ 252, 81, 320, 279, 310, 80, 250, 313, 314, 315,
/* 90 */ 316, 317, 318, 88, 320, 47, 243, 323, 262, 57,
/* 100 */ 82, 327, 328, 103, 311, 269, 58, 81, 12, 13,
/* 110 */ 339, 273, 64, 339, 114, 279, 20, 311, 22, 289,
/* 120 */ 58, 317, 292, 352, 271, 295, 352, 356, 335, 81,
/* 130 */ 356, 293, 279, 14, 75, 331, 332, 333, 334, 20,
/* 140 */ 336, 335, 289, 47, 82, 81, 293, 309, 310, 250,
/* 150 */ 4, 103, 90, 256, 58, 150, 271, 260, 320, 159,
/* 160 */ 64, 262, 114, 310, 279, 57, 313, 314, 315, 316,
/* 170 */ 317, 318, 319, 320, 321, 322, 243, 81, 279, 120,
/* 180 */ 121, 181, 182, 20, 184, 185, 186, 187, 188, 189,
/* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 198, 103,
/* 200 */ 315, 255, 140, 55, 168, 169, 4, 159, 172, 21,
/* 210 */ 114, 211, 24, 25, 26, 27, 28, 29, 30, 31,
/* 220 */ 32, 243, 158, 277, 160, 163, 293, 81, 80, 181,
/* 230 */ 182, 83, 184, 185, 186, 187, 188, 189, 190, 191,
/* 240 */ 192, 193, 194, 195, 196, 197, 198, 0, 35, 20,
/* 250 */ 12, 13, 14, 15, 16, 159, 12, 13, 14, 15,
/* 260 */ 16, 199, 200, 201, 202, 203, 204, 205, 206, 207,
/* 270 */ 208, 293, 81, 240, 311, 211, 247, 181, 182, 250,
/* 280 */ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
/* 290 */ 194, 195, 196, 197, 198, 12, 13, 84, 335, 86,
/* 300 */ 87, 20, 89, 20, 185, 22, 93, 60, 61, 62,
/* 310 */ 63, 0, 65, 66, 67, 68, 69, 70, 71, 72,
/* 320 */ 73, 74, 75, 76, 77, 78, 60, 61, 255, 116,
/* 330 */ 47, 65, 299, 243, 68, 69, 93, 299, 72, 73,
/* 340 */ 74, 268, 250, 12, 13, 14, 14, 64, 20, 22,
/* 350 */ 277, 20, 20, 22, 262, 112, 113, 211, 115, 116,
/* 360 */ 117, 271, 81, 339, 81, 263, 243, 144, 57, 279,
/* 370 */ 140, 279, 339, 271, 47, 299, 352, 339, 47, 289,
/* 380 */ 356, 181, 280, 293, 146, 352, 103, 257, 258, 356,
/* 390 */ 352, 12, 13, 163, 356, 64, 20, 114, 22, 20,
/* 400 */ 310, 22, 211, 313, 314, 315, 316, 317, 318, 81,
/* 410 */ 320, 243, 81, 323, 212, 339, 293, 327, 328, 329,
/* 420 */ 220, 221, 222, 223, 224, 49, 47, 0, 352, 199,
/* 430 */ 289, 341, 356, 263, 103, 0, 295, 347, 348, 216,
/* 440 */ 217, 271, 159, 64, 0, 114, 247, 243, 21, 250,
/* 450 */ 280, 24, 25, 26, 27, 28, 29, 30, 31, 32,
/* 460 */ 81, 293, 257, 258, 181, 182, 22, 184, 185, 186,
/* 470 */ 187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
/* 480 */ 197, 198, 103, 12, 13, 14, 15, 16, 0, 253,
/* 490 */ 159, 279, 211, 114, 211, 60, 61, 293, 286, 271,
/* 500 */ 65, 37, 250, 68, 69, 20, 278, 72, 73, 74,
/* 510 */ 274, 283, 181, 182, 262, 184, 185, 186, 187, 188,
/* 520 */ 189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
/* 530 */ 41, 279, 12, 13, 14, 15, 16, 20, 159, 211,
/* 540 */ 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
/* 550 */ 104, 281, 106, 107, 108, 109, 110, 111, 288, 289,
/* 560 */ 181, 182, 243, 184, 185, 186, 187, 188, 189, 190,
/* 570 */ 191, 192, 193, 194, 195, 196, 197, 198, 12, 13,
/* 580 */ 18, 93, 20, 2, 1, 2, 20, 243, 22, 27,
/* 590 */ 3, 47, 30, 12, 13, 14, 15, 16, 288, 289,
/* 600 */ 112, 113, 82, 115, 116, 117, 33, 250, 64, 271,
/* 610 */ 48, 14, 293, 47, 0, 271, 278, 20, 45, 262,
/* 620 */ 250, 283, 151, 279, 51, 52, 53, 54, 55, 243,
/* 630 */ 64, 154, 262, 289, 42, 43, 279, 293, 24, 25,
/* 640 */ 26, 27, 28, 29, 30, 31, 32, 81, 250, 279,
/* 650 */ 20, 174, 175, 80, 310, 253, 83, 313, 314, 315,
/* 660 */ 316, 317, 318, 146, 320, 82, 271, 323, 266, 103,
/* 670 */ 250, 327, 328, 329, 210, 280, 274, 279, 250, 293,
/* 680 */ 114, 119, 338, 243, 122, 123, 124, 125, 126, 127,
/* 690 */ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
/* 700 */ 138, 139, 231, 264, 284, 18, 267, 250, 92, 250,
/* 710 */ 23, 14, 15, 16, 141, 317, 143, 228, 145, 262,
/* 720 */ 147, 262, 35, 36, 57, 159, 39, 299, 269, 64,
/* 730 */ 332, 333, 334, 293, 336, 20, 279, 243, 279, 85,
/* 740 */ 167, 0, 88, 56, 243, 41, 243, 181, 182, 20,
/* 750 */ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
/* 760 */ 194, 195, 196, 197, 198, 271, 243, 339, 81, 250,
/* 770 */ 259, 263, 261, 279, 12, 13, 14, 15, 16, 271,
/* 780 */ 352, 262, 185, 289, 356, 209, 210, 293, 280, 250,
/* 790 */ 250, 243, 0, 299, 293, 250, 293, 243, 279, 272,
/* 800 */ 93, 262, 262, 250, 310, 118, 250, 313, 314, 315,
/* 810 */ 316, 317, 318, 226, 320, 262, 293, 323, 279, 279,
/* 820 */ 58, 327, 328, 116, 279, 243, 170, 171, 85, 0,
/* 830 */ 250, 88, 279, 339, 93, 279, 243, 45, 151, 152,
/* 840 */ 153, 293, 262, 156, 299, 22, 352, 293, 161, 243,
/* 850 */ 356, 22, 90, 112, 113, 243, 115, 116, 117, 279,
/* 860 */ 173, 146, 317, 176, 271, 178, 179, 180, 243, 243,
/* 870 */ 47, 58, 279, 317, 41, 293, 272, 332, 333, 334,
/* 880 */ 85, 336, 289, 88, 339, 81, 293, 64, 332, 333,
/* 890 */ 334, 146, 336, 85, 149, 91, 88, 352, 211, 293,
/* 900 */ 271, 356, 140, 310, 243, 293, 313, 314, 315, 316,
/* 910 */ 317, 318, 283, 320, 185, 82, 323, 0, 293, 293,
/* 920 */ 327, 328, 329, 21, 250, 163, 103, 1, 2, 196,
/* 930 */ 197, 41, 271, 244, 230, 47, 34, 114, 272, 22,
/* 940 */ 279, 348, 41, 44, 41, 47, 260, 272, 272, 272,
/* 950 */ 289, 41, 41, 279, 293, 41, 41, 41, 359, 41,
/* 960 */ 41, 199, 200, 201, 202, 203, 204, 205, 206, 207,
/* 970 */ 208, 310, 82, 299, 313, 314, 315, 316, 317, 318,
/* 980 */ 81, 320, 159, 82, 323, 82, 41, 243, 327, 328,
/* 990 */ 329, 317, 82, 82, 181, 41, 82, 82, 82, 338,
/* 1000 */ 82, 82, 114, 41, 181, 182, 332, 333, 334, 41,
/* 1010 */ 336, 41, 114, 339, 47, 271, 307, 344, 350, 243,
/* 1020 */ 271, 249, 41, 279, 251, 312, 352, 82, 282, 337,
/* 1030 */ 356, 64, 353, 289, 353, 353, 82, 293, 340, 20,
/* 1040 */ 250, 45, 308, 257, 82, 47, 157, 271, 301, 243,
/* 1050 */ 82, 250, 82, 250, 310, 279, 40, 313, 314, 315,
/* 1060 */ 316, 317, 318, 82, 320, 289, 287, 323, 140, 293,
/* 1070 */ 285, 327, 328, 329, 285, 299, 250, 271, 20, 245,
/* 1080 */ 245, 20, 338, 305, 20, 279, 310, 255, 289, 313,
/* 1090 */ 314, 315, 316, 317, 318, 289, 320, 255, 20, 293,
/* 1100 */ 300, 255, 297, 255, 297, 299, 279, 243, 20, 290,
/* 1110 */ 4, 255, 255, 250, 255, 339, 310, 245, 271, 313,
/* 1120 */ 314, 315, 316, 317, 318, 19, 320, 250, 352, 271,
/* 1130 */ 245, 271, 356, 271, 64, 271, 271, 271, 271, 33,
/* 1140 */ 271, 271, 271, 279, 271, 339, 293, 243, 305, 253,
/* 1150 */ 166, 45, 297, 289, 304, 279, 50, 293, 352, 253,
/* 1160 */ 253, 55, 356, 289, 20, 290, 243, 219, 218, 349,
/* 1170 */ 349, 225, 293, 253, 310, 271, 294, 313, 314, 315,
/* 1180 */ 316, 317, 318, 279, 320, 294, 80, 323, 293, 83,
/* 1190 */ 312, 327, 328, 289, 271, 346, 148, 293, 243, 345,
/* 1200 */ 214, 293, 279, 213, 343, 210, 279, 20, 311, 40,
/* 1210 */ 342, 330, 289, 81, 310, 227, 293, 313, 314, 315,
/* 1220 */ 316, 317, 318, 229, 320, 232, 271, 323, 294, 293,
/* 1230 */ 293, 327, 328, 310, 279, 355, 313, 314, 315, 316,
/* 1240 */ 317, 318, 293, 320, 289, 294, 354, 360, 293, 355,
/* 1250 */ 326, 143, 291, 19, 354, 279, 290, 253, 267, 253,
/* 1260 */ 355, 279, 81, 243, 275, 310, 354, 33, 313, 314,
/* 1270 */ 315, 316, 317, 318, 261, 320, 250, 253, 323, 45,
/* 1280 */ 357, 358, 245, 328, 306, 51, 52, 53, 54, 55,
/* 1290 */ 265, 271, 265, 265, 302, 298, 254, 241, 0, 279,
/* 1300 */ 0, 72, 0, 47, 177, 47, 47, 47, 177, 289,
/* 1310 */ 0, 243, 47, 293, 80, 47, 296, 83, 177, 0,
/* 1320 */ 47, 0, 47, 0, 47, 0, 81, 163, 162, 114,
/* 1330 */ 310, 159, 0, 313, 314, 315, 316, 317, 318, 271,
/* 1340 */ 320, 0, 0, 155, 154, 0, 0, 279, 44, 0,
/* 1350 */ 0, 117, 0, 0, 0, 0, 0, 289, 0, 243,
/* 1360 */ 0, 293, 0, 0, 0, 0, 0, 0, 243, 0,
/* 1370 */ 0, 40, 0, 0, 0, 0, 142, 0, 310, 145,
/* 1380 */ 0, 313, 314, 315, 316, 317, 318, 271, 320, 0,
/* 1390 */ 22, 0, 0, 0, 0, 279, 271, 40, 37, 165,
/* 1400 */ 0, 167, 14, 44, 279, 289, 0, 0, 0, 293,
/* 1410 */ 14, 0, 41, 0, 289, 148, 38, 0, 293, 351,
/* 1420 */ 44, 296, 243, 37, 37, 0, 310, 37, 0, 313,
/* 1430 */ 314, 315, 316, 317, 318, 310, 320, 243, 313, 314,
/* 1440 */ 315, 316, 317, 318, 59, 320, 0, 45, 47, 37,
/* 1450 */ 271, 0, 47, 37, 45, 0, 37, 47, 279, 45,
/* 1460 */ 0, 37, 47, 45, 0, 271, 0, 0, 289, 0,
/* 1470 */ 243, 90, 293, 279, 358, 22, 47, 0, 47, 47,
/* 1480 */ 47, 47, 41, 289, 41, 243, 88, 293, 0, 310,
/* 1490 */ 296, 47, 313, 314, 315, 316, 317, 318, 271, 320,
/* 1500 */ 22, 322, 0, 47, 310, 47, 279, 313, 314, 315,
/* 1510 */ 316, 317, 318, 271, 320, 0, 289, 22, 48, 22,
/* 1520 */ 293, 279, 47, 296, 0, 243, 22, 0, 22, 20,
/* 1530 */ 0, 289, 47, 0, 22, 293, 0, 310, 143, 0,
/* 1540 */ 313, 314, 315, 316, 317, 318, 0, 320, 164, 146,
/* 1550 */ 146, 37, 310, 271, 81, 313, 314, 315, 316, 317,
/* 1560 */ 318, 279, 320, 141, 41, 82, 41, 41, 82, 82,
/* 1570 */ 81, 289, 81, 81, 2, 293, 41, 243, 44, 81,
/* 1580 */ 81, 44, 82, 41, 44, 82, 41, 44, 41, 82,
/* 1590 */ 82, 47, 310, 41, 215, 313, 314, 315, 316, 317,
/* 1600 */ 318, 47, 320, 47, 47, 271, 47, 47, 181, 44,
/* 1610 */ 82, 82, 81, 279, 215, 44, 22, 0, 183, 81,
/* 1620 */ 144, 37, 141, 289, 44, 243, 44, 293, 59, 209,
/* 1630 */ 81, 22, 82, 82, 47, 47, 215, 47, 47, 81,
/* 1640 */ 243, 22, 81, 81, 310, 81, 91, 313, 314, 315,
/* 1650 */ 316, 317, 318, 271, 320, 81, 93, 82, 81, 81,
/* 1660 */ 92, 279, 47, 82, 81, 47, 22, 82, 271, 47,
/* 1670 */ 81, 289, 105, 243, 82, 293, 279, 81, 105, 82,
/* 1680 */ 81, 105, 82, 81, 105, 81, 289, 47, 81, 81,
/* 1690 */ 293, 58, 310, 47, 64, 313, 314, 315, 316, 317,
/* 1700 */ 318, 271, 320, 79, 41, 47, 47, 310, 47, 279,
/* 1710 */ 313, 314, 315, 316, 317, 318, 22, 320, 47, 289,
/* 1720 */ 47, 47, 47, 293, 114, 47, 64, 243, 47, 47,
/* 1730 */ 47, 47, 47, 47, 0, 47, 243, 45, 37, 0,
/* 1740 */ 310, 45, 47, 313, 314, 315, 316, 317, 318, 37,
/* 1750 */ 320, 0, 47, 45, 37, 271, 47, 37, 45, 0,
/* 1760 */ 0, 47, 46, 279, 271, 0, 0, 22, 21, 361,
/* 1770 */ 22, 22, 279, 289, 21, 20, 361, 293, 361, 361,
2022-05-25 13:20:11 +00:00
/* 1780 */ 361, 361, 289, 361, 243, 361, 293, 361, 361, 361,
/* 1790 */ 361, 361, 361, 361, 310, 361, 243, 313, 314, 315,
/* 1800 */ 316, 317, 318, 310, 320, 361, 313, 314, 315, 316,
/* 1810 */ 317, 318, 271, 320, 361, 361, 361, 361, 361, 361,
/* 1820 */ 279, 361, 361, 361, 271, 361, 361, 361, 361, 361,
/* 1830 */ 289, 361, 279, 361, 293, 361, 243, 361, 361, 361,
/* 1840 */ 361, 361, 289, 361, 361, 361, 293, 361, 361, 243,
/* 1850 */ 361, 310, 361, 361, 313, 314, 315, 316, 317, 318,
/* 1860 */ 361, 320, 361, 310, 271, 361, 313, 314, 315, 316,
/* 1870 */ 317, 318, 279, 320, 361, 361, 361, 271, 361, 361,
/* 1880 */ 361, 361, 289, 361, 361, 279, 293, 361, 361, 361,
/* 1890 */ 361, 361, 361, 361, 361, 289, 361, 243, 361, 293,
/* 1900 */ 361, 361, 361, 310, 361, 361, 313, 314, 315, 316,
/* 1910 */ 317, 318, 243, 320, 361, 361, 310, 361, 361, 313,
/* 1920 */ 314, 315, 316, 317, 318, 271, 320, 361, 361, 361,
/* 1930 */ 361, 361, 361, 279, 361, 361, 361, 361, 361, 361,
/* 1940 */ 271, 361, 361, 289, 361, 243, 361, 293, 279, 361,
/* 1950 */ 361, 361, 361, 12, 13, 361, 361, 361, 289, 361,
/* 1960 */ 361, 361, 293, 22, 310, 361, 361, 313, 314, 315,
/* 1970 */ 316, 317, 318, 271, 320, 361, 361, 361, 361, 310,
/* 1980 */ 361, 279, 313, 314, 315, 316, 317, 318, 47, 320,
/* 1990 */ 361, 289, 361, 361, 361, 293, 361, 361, 361, 243,
/* 2000 */ 361, 361, 361, 361, 361, 64, 361, 361, 361, 361,
/* 2010 */ 361, 361, 310, 361, 361, 313, 314, 315, 316, 317,
/* 2020 */ 318, 361, 320, 361, 361, 361, 361, 271, 361, 361,
/* 2030 */ 361, 361, 361, 361, 361, 279, 361, 361, 361, 361,
/* 2040 */ 361, 361, 361, 361, 103, 289, 361, 361, 361, 293,
/* 2050 */ 361, 361, 361, 361, 361, 114, 361, 361, 361, 361,
2022-05-25 13:20:11 +00:00
/* 2060 */ 361, 361, 361, 361, 361, 361, 310, 361, 361, 313,
/* 2070 */ 314, 315, 316, 317, 318, 361, 320, 361, 361, 361,
2022-05-25 13:20:11 +00:00
/* 2080 */ 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
/* 2090 */ 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
/* 2100 */ 159, 361, 361, 361, 361, 361, 361, 361, 361, 361,
/* 2110 */ 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
/* 2120 */ 361, 361, 181, 361, 361, 361, 361, 361, 361, 361,
/* 2130 */ 361, 361, 361, 192, 193, 194, 361, 361, 361, 361,
/* 2140 */ 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
/* 2150 */ 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
/* 2160 */ 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
/* 2170 */ 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
/* 2180 */ 361, 361, 361, 361, 361, 361, 361, 361, 361, 361,
/* 2190 */ 361, 361, 361, 361,
};
#define YY_SHIFT_COUNT (611)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (1941)
static const unsigned short int yy_shift_ofst[] = {
/* 0 */ 687, 0, 0, 48, 96, 96, 96, 96, 283, 283,
/* 10 */ 96, 96, 331, 379, 566, 379, 379, 379, 379, 379,
/* 20 */ 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
/* 30 */ 379, 379, 379, 379, 379, 379, 379, 379, 281, 281,
/* 40 */ 26, 26, 26, 1941, 1941, 1941, 1941, 328, 64, 191,
/* 50 */ 39, 39, 14, 14, 146, 191, 191, 39, 39, 39,
/* 60 */ 39, 39, 39, 108, 39, 163, 229, 485, 163, 39,
/* 70 */ 39, 163, 39, 163, 163, 485, 163, 39, 667, 562,
/* 80 */ 62, 762, 762, 188, 266, 823, 823, 823, 823, 823,
/* 90 */ 823, 823, 823, 823, 823, 823, 823, 823, 823, 823,
/* 100 */ 823, 823, 823, 823, 213, 376, 332, 332, 42, 544,
/* 110 */ 517, 517, 517, 311, 544, 630, 485, 163, 163, 485,
/* 120 */ 616, 665, 446, 446, 446, 446, 446, 446, 446, 1234,
/* 130 */ 427, 435, 471, 200, 36, 223, 119, 597, 592, 327,
/* 140 */ 707, 715, 576, 464, 576, 587, 587, 587, 202, 729,
/* 150 */ 1019, 996, 998, 889, 1019, 1019, 1016, 928, 928, 1019,
/* 160 */ 1058, 1058, 1061, 108, 485, 108, 1064, 1078, 108, 1064,
/* 170 */ 108, 630, 1088, 108, 108, 1019, 108, 1058, 163, 163,
/* 180 */ 163, 163, 163, 163, 163, 163, 163, 163, 163, 1019,
/* 190 */ 1058, 1070, 1061, 667, 984, 485, 667, 1064, 667, 630,
/* 200 */ 1088, 667, 1144, 948, 950, 1070, 948, 950, 1070, 1070,
/* 210 */ 163, 946, 1048, 986, 990, 995, 630, 1187, 1169, 994,
/* 220 */ 988, 993, 994, 988, 994, 988, 1132, 950, 1070, 1070,
/* 230 */ 950, 1070, 1108, 630, 1088, 667, 616, 667, 630, 1181,
/* 240 */ 665, 1019, 667, 1058, 2136, 2136, 2136, 2136, 2136, 2136,
/* 250 */ 2136, 2136, 247, 573, 614, 1106, 488, 741, 18, 13,
/* 260 */ 581, 238, 520, 243, 244, 244, 244, 244, 244, 244,
/* 270 */ 244, 244, 477, 148, 59, 5, 583, 230, 697, 697,
/* 280 */ 697, 697, 792, 833, 654, 743, 795, 808, 444, 829,
/* 290 */ 917, 902, 656, 745, 890, 901, 903, 926, 733, 489,
/* 300 */ 704, 910, 813, 911, 899, 914, 915, 916, 918, 919,
/* 310 */ 888, 898, 945, 954, 962, 968, 970, 981, 804, 967,
/* 320 */ 1298, 1300, 1229, 1302, 1256, 1127, 1258, 1259, 1260, 1131,
/* 330 */ 1310, 1265, 1268, 1141, 1319, 1273, 1321, 1275, 1323, 1277,
/* 340 */ 1325, 1245, 1164, 1166, 1215, 1172, 1332, 1341, 1188, 1190,
/* 350 */ 1342, 1345, 1304, 1346, 1349, 1350, 1352, 1353, 1354, 1355,
/* 360 */ 1356, 1358, 1360, 1362, 1363, 1364, 1365, 1366, 1367, 1369,
/* 370 */ 1370, 1331, 1372, 1373, 1374, 1375, 1377, 1380, 1368, 1389,
/* 380 */ 1391, 1392, 1393, 1394, 1400, 1357, 1361, 1371, 1388, 1359,
/* 390 */ 1396, 1376, 1406, 1378, 1386, 1407, 1408, 1411, 1387, 1267,
/* 400 */ 1413, 1417, 1390, 1425, 1385, 1428, 1446, 1401, 1402, 1412,
/* 410 */ 1451, 1405, 1409, 1416, 1455, 1410, 1414, 1419, 1460, 1415,
/* 420 */ 1418, 1424, 1464, 1466, 1467, 1469, 1381, 1398, 1429, 1453,
/* 430 */ 1477, 1431, 1432, 1433, 1434, 1441, 1443, 1444, 1456, 1458,
/* 440 */ 1488, 1478, 1502, 1495, 1470, 1515, 1497, 1475, 1524, 1504,
/* 450 */ 1527, 1506, 1509, 1530, 1403, 1485, 1533, 1384, 1512, 1404,
/* 460 */ 1395, 1536, 1539, 1546, 1473, 1514, 1422, 1523, 1525, 1379,
/* 470 */ 1483, 1526, 1486, 1489, 1491, 1492, 1487, 1535, 1534, 1537,
/* 480 */ 1498, 1542, 1399, 1500, 1503, 1540, 1420, 1545, 1543, 1507,
/* 490 */ 1547, 1421, 1508, 1544, 1554, 1556, 1557, 1559, 1560, 1508,
/* 500 */ 1572, 1427, 1552, 1528, 1499, 1529, 1565, 1531, 1538, 1571,
/* 510 */ 1594, 1435, 1549, 1550, 1551, 1558, 1561, 1476, 1562, 1617,
/* 520 */ 1584, 1481, 1564, 1555, 1580, 1582, 1574, 1575, 1577, 1609,
/* 530 */ 1578, 1568, 1581, 1587, 1588, 1583, 1585, 1590, 1589, 1592,
/* 540 */ 1591, 1596, 1597, 1615, 1599, 1600, 1618, 1602, 1567, 1573,
/* 550 */ 1576, 1579, 1619, 1563, 1604, 1607, 1622, 1608, 1610, 1640,
/* 560 */ 1644, 1569, 1633, 1646, 1630, 1624, 1663, 1658, 1659, 1661,
/* 570 */ 1671, 1673, 1694, 1674, 1675, 1662, 1441, 1678, 1443, 1681,
/* 580 */ 1682, 1683, 1684, 1685, 1686, 1734, 1688, 1692, 1701, 1739,
/* 590 */ 1695, 1696, 1712, 1751, 1705, 1708, 1717, 1765, 1709, 1713,
/* 600 */ 1720, 1759, 1714, 1716, 1760, 1766, 1745, 1747, 1748, 1749,
/* 610 */ 1753, 1755,
};
2022-05-25 13:20:11 +00:00
#define YY_REDUCE_COUNT (251)
#define YY_REDUCE_MIN (-314)
#define YY_REDUCE_MAX (1756)
static const short yy_reduce_ofst[] = {
/* 0 */ 33, -226, 494, 90, 593, 344, 661, 744, 776, 806,
/* 10 */ 864, 904, -147, 923, 955, 1020, 1068, 1116, 1125, 1179,
/* 20 */ 1194, 1227, 1242, 1282, 1334, 1382, 1397, 1430, 1484, 1493,
/* 30 */ 1541, 1553, 1593, 1606, 1654, 1669, 1702, 1756, 545, 674,
/* 40 */ -196, 398, 556, -272, -270, -238, -162, 428, 38, 76,
/* 50 */ -164, 459, -241, -205, -287, -229, 24, -101, 92, 252,
/* 60 */ 357, 370, 457, 73, 519, -269, -115, -170, 102, 539,
/* 70 */ 540, 228, 553, 170, 338, 270, 508, 580, 402, 420,
/* 80 */ -314, -314, -314, -193, -103, -227, -67, -22, 123, 168,
/* 90 */ 204, 319, 386, 440, 501, 503, 523, 548, 554, 582,
/* 100 */ 606, 612, 625, 626, -246, -172, 29, 199, -54, 130,
/* 110 */ -207, -194, -37, 236, 205, 212, 141, 395, 629, 310,
/* 120 */ 439, 511, -253, 527, 604, 666, 675, 676, 677, -303,
/* 130 */ 689, 686, 599, 668, 709, 673, 749, 749, 772, 773,
/* 140 */ 746, 713, 692, 692, 692, 679, 681, 682, 698, 749,
/* 150 */ 790, 734, 786, 747, 801, 803, 779, 785, 789, 826,
/* 160 */ 834, 835, 778, 832, 799, 842, 805, 800, 846, 807,
/* 170 */ 848, 827, 819, 856, 857, 863, 859, 872, 847, 858,
/* 180 */ 860, 862, 865, 866, 867, 869, 870, 871, 873, 877,
/* 190 */ 885, 853, 843, 896, 850, 874, 906, 855, 907, 876,
/* 200 */ 875, 920, 878, 820, 882, 879, 821, 891, 895, 908,
/* 210 */ 749, 849, 854, 861, 868, 692, 927, 897, 881, 880,
/* 220 */ 892, 887, 894, 900, 905, 912, 924, 934, 936, 937,
/* 230 */ 951, 949, 961, 976, 966, 1004, 991, 1006, 982, 989,
/* 240 */ 1013, 1026, 1024, 1037, 992, 978, 997, 1025, 1027, 1028,
/* 250 */ 1042, 1056,
};
static const YYACTIONTYPE yy_default[] = {
/* 0 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 10 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 20 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 30 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 40 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 50 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 60 */ 1357, 1357, 1357, 1426, 1357, 1357, 1357, 1357, 1357, 1357,
/* 70 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1424, 1565,
/* 80 */ 1357, 1732, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 90 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 100 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1426, 1357,
/* 110 */ 1743, 1743, 1743, 1424, 1357, 1357, 1357, 1357, 1357, 1357,
/* 120 */ 1520, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1604,
/* 130 */ 1357, 1357, 1809, 1357, 1610, 1767, 1357, 1357, 1357, 1357,
/* 140 */ 1473, 1759, 1735, 1749, 1736, 1794, 1794, 1794, 1752, 1357,
/* 150 */ 1357, 1357, 1357, 1596, 1357, 1357, 1570, 1567, 1567, 1357,
/* 160 */ 1357, 1357, 1357, 1426, 1357, 1426, 1357, 1357, 1426, 1357,
/* 170 */ 1426, 1357, 1357, 1426, 1426, 1357, 1426, 1357, 1357, 1357,
/* 180 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 190 */ 1357, 1357, 1357, 1424, 1606, 1357, 1424, 1357, 1424, 1357,
/* 200 */ 1357, 1424, 1357, 1774, 1772, 1357, 1774, 1772, 1357, 1357,
/* 210 */ 1357, 1786, 1782, 1765, 1763, 1749, 1357, 1357, 1357, 1800,
/* 220 */ 1796, 1812, 1800, 1796, 1800, 1796, 1357, 1772, 1357, 1357,
/* 230 */ 1772, 1357, 1578, 1357, 1357, 1424, 1357, 1424, 1357, 1489,
/* 240 */ 1357, 1357, 1424, 1357, 1598, 1612, 1588, 1523, 1523, 1523,
/* 250 */ 1427, 1362, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 260 */ 1357, 1357, 1357, 1485, 1676, 1785, 1784, 1708, 1707, 1706,
/* 270 */ 1704, 1675, 1357, 1357, 1357, 1357, 1357, 1357, 1669, 1670,
/* 280 */ 1668, 1667, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 290 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1733, 1357, 1797,
/* 300 */ 1801, 1357, 1357, 1357, 1652, 1357, 1357, 1357, 1357, 1357,
/* 310 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 320 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 330 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 340 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 350 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 360 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 370 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 380 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1391, 1357, 1357,
/* 390 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 400 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 410 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 420 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 430 */ 1357, 1357, 1357, 1357, 1357, 1454, 1453, 1357, 1357, 1357,
/* 440 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 450 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 460 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1756, 1766, 1357,
/* 470 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1652,
/* 480 */ 1357, 1783, 1357, 1742, 1738, 1357, 1357, 1734, 1357, 1357,
/* 490 */ 1795, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 500 */ 1728, 1357, 1701, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 510 */ 1357, 1663, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 520 */ 1357, 1357, 1357, 1357, 1651, 1357, 1692, 1357, 1357, 1357,
/* 530 */ 1357, 1357, 1357, 1357, 1357, 1517, 1357, 1357, 1357, 1357,
/* 540 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1502, 1500,
/* 550 */ 1499, 1498, 1357, 1495, 1357, 1357, 1357, 1357, 1357, 1357,
/* 560 */ 1357, 1357, 1357, 1357, 1357, 1357, 1446, 1357, 1357, 1357,
/* 570 */ 1357, 1357, 1357, 1357, 1357, 1357, 1437, 1357, 1436, 1357,
/* 580 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 590 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 600 */ 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357, 1357,
/* 610 */ 1357, 1357,
};
/********** 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 */
0, /* USER => nothing */
0, /* PRIVILEGE => nothing */
0, /* DROP => nothing */
0, /* GRANT => nothing */
0, /* ON => nothing */
0, /* TO => nothing */
0, /* REVOKE => nothing */
0, /* FROM => nothing */
0, /* NK_COMMA => nothing */
0, /* READ => nothing */
0, /* WRITE => nothing */
0, /* NK_DOT => nothing */
2022-04-22 10:23:37 +00:00
0, /* DNODE => nothing */
0, /* PORT => nothing */
0, /* NK_INTEGER => nothing */
0, /* DNODES => nothing */
0, /* NK_IPTOKEN => nothing */
0, /* LOCAL => nothing */
0, /* QNODE => nothing */
0, /* BNODE => nothing */
0, /* SNODE => nothing */
0, /* MNODE => nothing */
0, /* DATABASE => nothing */
0, /* USE => nothing */
0, /* IF => nothing */
0, /* NOT => nothing */
0, /* EXISTS => nothing */
2022-04-27 10:18:37 +00:00
0, /* BUFFER => nothing */
2022-04-22 10:23:37 +00:00
0, /* CACHELAST => nothing */
0, /* COMP => nothing */
0, /* DAYS => nothing */
0, /* NK_VARIABLE => nothing */
0, /* FSYNC => 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-04-22 10:23:37 +00:00
0, /* PRECISION => nothing */
0, /* REPLICA => nothing */
2022-04-27 10:18:37 +00:00
0, /* STRICT => nothing */
2022-04-22 10:23:37 +00:00
0, /* WAL => nothing */
0, /* VGROUPS => nothing */
0, /* SINGLE_STABLE => nothing */
0, /* RETENTIONS => nothing */
2022-05-25 13:20:11 +00:00
0, /* SCHEMALESS => nothing */
2022-04-22 10:23:37 +00:00
0, /* NK_COLON => nothing */
0, /* TABLE => nothing */
0, /* NK_LP => nothing */
0, /* NK_RP => nothing */
0, /* STABLE => nothing */
0, /* ADD => 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, /* COMMENT => 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, /* TIMESTAMP => nothing */
0, /* NCHAR => nothing */
0, /* UNSIGNED => nothing */
0, /* JSON => nothing */
0, /* VARCHAR => nothing */
0, /* MEDIUMBLOB => nothing */
0, /* BLOB => nothing */
0, /* VARBINARY => nothing */
0, /* DECIMAL => nothing */
2022-04-27 10:18:37 +00:00
0, /* DELAY => nothing */
2022-04-22 10:23:37 +00:00
0, /* FILE_FACTOR => nothing */
0, /* NK_FLOAT => nothing */
2022-04-27 10:18:37 +00:00
0, /* ROLLUP => nothing */
0, /* TTL => nothing */
0, /* SMA => nothing */
2022-04-22 10:23:37 +00:00
0, /* SHOW => nothing */
0, /* DATABASES => nothing */
0, /* TABLES => nothing */
0, /* STABLES => nothing */
0, /* MNODES => nothing */
0, /* MODULES => nothing */
0, /* QNODES => nothing */
0, /* FUNCTIONS => nothing */
0, /* INDEXES => nothing */
0, /* ACCOUNTS => nothing */
0, /* APPS => nothing */
0, /* CONNECTIONS => nothing */
0, /* LICENCE => nothing */
0, /* GRANTS => nothing */
0, /* QUERIES => nothing */
0, /* SCORES => nothing */
0, /* TOPICS => nothing */
0, /* VARIABLES => nothing */
0, /* BNODES => nothing */
0, /* SNODES => nothing */
0, /* CLUSTER => nothing */
0, /* TRANSACTIONS => nothing */
2022-04-22 10:23:37 +00:00
0, /* LIKE => nothing */
0, /* INDEX => nothing */
0, /* FULLTEXT => nothing */
0, /* FUNCTION => nothing */
0, /* INTERVAL => nothing */
0, /* TOPIC => nothing */
0, /* AS => nothing */
0, /* CONSUMER => nothing */
0, /* GROUP => nothing */
2022-04-22 10:23:37 +00:00
0, /* WITH => nothing */
0, /* SCHEMA => nothing */
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 */
0, /* COMPACT => nothing */
0, /* VNODES => nothing */
0, /* IN => nothing */
0, /* OUTPUTTYPE => nothing */
0, /* AGGREGATE => nothing */
0, /* BUFSIZE => nothing */
0, /* STREAM => nothing */
0, /* INTO => nothing */
0, /* TRIGGER => nothing */
0, /* AT_ONCE => nothing */
0, /* WINDOW_CLOSE => nothing */
0, /* WATERMARK => nothing */
0, /* KILL => nothing */
0, /* CONNECTION => nothing */
0, /* TRANSACTION => nothing */
2022-04-22 10:23:37 +00:00
0, /* MERGE => nothing */
0, /* VGROUP => nothing */
0, /* REDISTRIBUTE => nothing */
0, /* SPLIT => nothing */
0, /* SYNCDB => nothing */
0, /* NULL => nothing */
0, /* NK_QUESTION => nothing */
0, /* NK_ARROW => nothing */
0, /* ROWTS => nothing */
0, /* TBNAME => nothing */
0, /* QSTARTTS => nothing */
0, /* QENDTS => nothing */
0, /* WSTARTTS => nothing */
0, /* WENDTS => nothing */
0, /* WDURATION => nothing */
0, /* CAST => nothing */
0, /* NOW => nothing */
0, /* TODAY => nothing */
0, /* TIMEZONE => nothing */
0, /* COUNT => nothing */
0, /* FIRST => nothing */
0, /* LAST => nothing */
0, /* LAST_ROW => nothing */
0, /* BETWEEN => nothing */
0, /* IS => nothing */
0, /* NK_LT => nothing */
0, /* NK_GT => nothing */
0, /* NK_LE => nothing */
0, /* NK_GE => nothing */
0, /* NK_NE => nothing */
0, /* MATCH => nothing */
0, /* NMATCH => nothing */
0, /* CONTAINS => nothing */
0, /* JOIN => nothing */
0, /* INNER => nothing */
0, /* SELECT => nothing */
0, /* DISTINCT => nothing */
0, /* WHERE => nothing */
0, /* PARTITION => nothing */
0, /* BY => nothing */
0, /* SESSION => nothing */
0, /* STATE_WINDOW => nothing */
0, /* SLIDING => nothing */
0, /* FILL => nothing */
0, /* VALUE => nothing */
0, /* NONE => nothing */
0, /* PREV => nothing */
0, /* LINEAR => nothing */
0, /* NEXT => nothing */
0, /* HAVING => nothing */
0, /* ORDER => nothing */
0, /* SLIMIT => nothing */
0, /* SOFFSET => nothing */
0, /* LIMIT => nothing */
0, /* OFFSET => nothing */
0, /* ASC => nothing */
0, /* NULLS => nothing */
0, /* ID => nothing */
2022-05-25 13:20:11 +00:00
233, /* NK_BITNOT => ID */
233, /* INSERT => ID */
233, /* VALUES => ID */
233, /* IMPORT => ID */
233, /* NK_SEMI => ID */
233, /* FILE => ID */
};
#endif /* YYFALLBACK */
/* The following structure represents a single element of the
** parser's stack. Information stored includes:
**
** + The state number for the parser at this level of the stack.
**
** + The value of the token stored at this level of the stack.
** (In other words, the "major" token.)
**
** + The semantic value stored at this level of the stack. This is
** the information used by the action routines in the grammar.
** It is sometimes called the "minor" token.
**
** After the "shift" half of a SHIFTREDUCE action, the stateno field
** actually contains the reduce action for the second half of the
** SHIFTREDUCE.
*/
struct yyStackEntry {
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
YYCODETYPE major; /* The major token value. This is the code
** number for the token at this stack level */
YYMINORTYPE minor; /* The user-supplied minor token value. This
** is the value of the token */
};
typedef struct yyStackEntry yyStackEntry;
/* The state of the parser is completely contained in an instance of
** the following structure */
struct yyParser {
yyStackEntry *yytos; /* Pointer to top element of the stack */
#ifdef YYTRACKMAXSTACKDEPTH
int yyhwm; /* High-water mark of the stack */
#endif
#ifndef YYNOERRORRECOVERY
int yyerrcnt; /* Shifts left before out of the error */
#endif
2022-03-10 07:36:06 +00:00
ParseARG_SDECL /* A place to hold %extra_argument */
ParseCTX_SDECL /* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
int yystksz; /* Current side of the stack */
yyStackEntry *yystack; /* The parser's stack */
yyStackEntry yystk0; /* First stack entry */
#else
yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
yyStackEntry *yystackEnd; /* Last entry in the stack */
#endif
};
typedef struct yyParser yyParser;
#ifndef NDEBUG
#include <stdio.h>
static FILE *yyTraceFILE = 0;
static char *yyTracePrompt = 0;
#endif /* NDEBUG */
#ifndef NDEBUG
/*
** Turn parser tracing on by giving a stream to which to write the trace
** and a prompt to preface each trace message. Tracing is turned off
** by making either argument NULL
**
** Inputs:
** <ul>
** <li> A FILE* to which trace output should be written.
** If NULL, then tracing is turned off.
** <li> A prefix string written at the beginning of every
** line of trace output. If NULL, then tracing is
** turned off.
** </ul>
**
** Outputs:
** None.
*/
2022-03-10 07:36:06 +00:00
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
yyTraceFILE = TraceFILE;
yyTracePrompt = zTracePrompt;
if( yyTraceFILE==0 ) yyTracePrompt = 0;
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
}
#endif /* NDEBUG */
#if defined(YYCOVERAGE) || !defined(NDEBUG)
/* For tracing shifts, the names of all terminals and nonterminals
** are required. The following table supplies these names */
static const char *const yyTokenName[] = {
/* 0 */ "$",
/* 1 */ "OR",
/* 2 */ "AND",
/* 3 */ "UNION",
/* 4 */ "ALL",
/* 5 */ "MINUS",
/* 6 */ "EXCEPT",
/* 7 */ "INTERSECT",
/* 8 */ "NK_BITAND",
/* 9 */ "NK_BITOR",
/* 10 */ "NK_LSHIFT",
/* 11 */ "NK_RSHIFT",
/* 12 */ "NK_PLUS",
/* 13 */ "NK_MINUS",
/* 14 */ "NK_STAR",
/* 15 */ "NK_SLASH",
/* 16 */ "NK_REM",
/* 17 */ "NK_CONCAT",
/* 18 */ "CREATE",
/* 19 */ "ACCOUNT",
/* 20 */ "NK_ID",
/* 21 */ "PASS",
/* 22 */ "NK_STRING",
/* 23 */ "ALTER",
/* 24 */ "PPS",
/* 25 */ "TSERIES",
/* 26 */ "STORAGE",
/* 27 */ "STREAMS",
/* 28 */ "QTIME",
/* 29 */ "DBS",
/* 30 */ "USERS",
/* 31 */ "CONNS",
/* 32 */ "STATE",
/* 33 */ "USER",
/* 34 */ "PRIVILEGE",
/* 35 */ "DROP",
/* 36 */ "GRANT",
/* 37 */ "ON",
/* 38 */ "TO",
/* 39 */ "REVOKE",
/* 40 */ "FROM",
/* 41 */ "NK_COMMA",
/* 42 */ "READ",
/* 43 */ "WRITE",
/* 44 */ "NK_DOT",
/* 45 */ "DNODE",
/* 46 */ "PORT",
/* 47 */ "NK_INTEGER",
/* 48 */ "DNODES",
/* 49 */ "NK_IPTOKEN",
/* 50 */ "LOCAL",
/* 51 */ "QNODE",
/* 52 */ "BNODE",
/* 53 */ "SNODE",
/* 54 */ "MNODE",
/* 55 */ "DATABASE",
/* 56 */ "USE",
/* 57 */ "IF",
/* 58 */ "NOT",
/* 59 */ "EXISTS",
/* 60 */ "BUFFER",
/* 61 */ "CACHELAST",
/* 62 */ "COMP",
/* 63 */ "DAYS",
/* 64 */ "NK_VARIABLE",
/* 65 */ "FSYNC",
/* 66 */ "MAXROWS",
/* 67 */ "MINROWS",
/* 68 */ "KEEP",
/* 69 */ "PAGES",
/* 70 */ "PAGESIZE",
/* 71 */ "PRECISION",
/* 72 */ "REPLICA",
/* 73 */ "STRICT",
/* 74 */ "WAL",
/* 75 */ "VGROUPS",
/* 76 */ "SINGLE_STABLE",
/* 77 */ "RETENTIONS",
2022-05-25 13:20:11 +00:00
/* 78 */ "SCHEMALESS",
/* 79 */ "NK_COLON",
/* 80 */ "TABLE",
/* 81 */ "NK_LP",
/* 82 */ "NK_RP",
/* 83 */ "STABLE",
/* 84 */ "ADD",
/* 85 */ "COLUMN",
/* 86 */ "MODIFY",
/* 87 */ "RENAME",
/* 88 */ "TAG",
/* 89 */ "SET",
/* 90 */ "NK_EQ",
/* 91 */ "USING",
/* 92 */ "TAGS",
/* 93 */ "COMMENT",
/* 94 */ "BOOL",
/* 95 */ "TINYINT",
/* 96 */ "SMALLINT",
/* 97 */ "INT",
/* 98 */ "INTEGER",
/* 99 */ "BIGINT",
/* 100 */ "FLOAT",
/* 101 */ "DOUBLE",
/* 102 */ "BINARY",
/* 103 */ "TIMESTAMP",
/* 104 */ "NCHAR",
/* 105 */ "UNSIGNED",
/* 106 */ "JSON",
/* 107 */ "VARCHAR",
/* 108 */ "MEDIUMBLOB",
/* 109 */ "BLOB",
/* 110 */ "VARBINARY",
/* 111 */ "DECIMAL",
/* 112 */ "DELAY",
/* 113 */ "FILE_FACTOR",
/* 114 */ "NK_FLOAT",
/* 115 */ "ROLLUP",
/* 116 */ "TTL",
/* 117 */ "SMA",
/* 118 */ "SHOW",
/* 119 */ "DATABASES",
/* 120 */ "TABLES",
/* 121 */ "STABLES",
/* 122 */ "MNODES",
/* 123 */ "MODULES",
/* 124 */ "QNODES",
/* 125 */ "FUNCTIONS",
/* 126 */ "INDEXES",
/* 127 */ "ACCOUNTS",
/* 128 */ "APPS",
/* 129 */ "CONNECTIONS",
/* 130 */ "LICENCE",
/* 131 */ "GRANTS",
/* 132 */ "QUERIES",
/* 133 */ "SCORES",
/* 134 */ "TOPICS",
/* 135 */ "VARIABLES",
/* 136 */ "BNODES",
/* 137 */ "SNODES",
/* 138 */ "CLUSTER",
/* 139 */ "TRANSACTIONS",
/* 140 */ "LIKE",
/* 141 */ "INDEX",
/* 142 */ "FULLTEXT",
/* 143 */ "FUNCTION",
/* 144 */ "INTERVAL",
/* 145 */ "TOPIC",
/* 146 */ "AS",
/* 147 */ "CONSUMER",
/* 148 */ "GROUP",
/* 149 */ "WITH",
/* 150 */ "SCHEMA",
/* 151 */ "DESC",
/* 152 */ "DESCRIBE",
/* 153 */ "RESET",
/* 154 */ "QUERY",
/* 155 */ "CACHE",
/* 156 */ "EXPLAIN",
/* 157 */ "ANALYZE",
/* 158 */ "VERBOSE",
/* 159 */ "NK_BOOL",
/* 160 */ "RATIO",
/* 161 */ "COMPACT",
/* 162 */ "VNODES",
/* 163 */ "IN",
/* 164 */ "OUTPUTTYPE",
/* 165 */ "AGGREGATE",
/* 166 */ "BUFSIZE",
/* 167 */ "STREAM",
/* 168 */ "INTO",
/* 169 */ "TRIGGER",
/* 170 */ "AT_ONCE",
/* 171 */ "WINDOW_CLOSE",
/* 172 */ "WATERMARK",
/* 173 */ "KILL",
/* 174 */ "CONNECTION",
/* 175 */ "TRANSACTION",
/* 176 */ "MERGE",
/* 177 */ "VGROUP",
/* 178 */ "REDISTRIBUTE",
/* 179 */ "SPLIT",
/* 180 */ "SYNCDB",
/* 181 */ "NULL",
/* 182 */ "NK_QUESTION",
/* 183 */ "NK_ARROW",
/* 184 */ "ROWTS",
/* 185 */ "TBNAME",
/* 186 */ "QSTARTTS",
/* 187 */ "QENDTS",
/* 188 */ "WSTARTTS",
/* 189 */ "WENDTS",
/* 190 */ "WDURATION",
/* 191 */ "CAST",
/* 192 */ "NOW",
/* 193 */ "TODAY",
/* 194 */ "TIMEZONE",
/* 195 */ "COUNT",
/* 196 */ "FIRST",
/* 197 */ "LAST",
/* 198 */ "LAST_ROW",
/* 199 */ "BETWEEN",
/* 200 */ "IS",
/* 201 */ "NK_LT",
/* 202 */ "NK_GT",
/* 203 */ "NK_LE",
/* 204 */ "NK_GE",
/* 205 */ "NK_NE",
/* 206 */ "MATCH",
/* 207 */ "NMATCH",
/* 208 */ "CONTAINS",
/* 209 */ "JOIN",
/* 210 */ "INNER",
/* 211 */ "SELECT",
/* 212 */ "DISTINCT",
/* 213 */ "WHERE",
/* 214 */ "PARTITION",
/* 215 */ "BY",
/* 216 */ "SESSION",
/* 217 */ "STATE_WINDOW",
/* 218 */ "SLIDING",
/* 219 */ "FILL",
/* 220 */ "VALUE",
/* 221 */ "NONE",
/* 222 */ "PREV",
/* 223 */ "LINEAR",
/* 224 */ "NEXT",
2022-05-25 13:20:11 +00:00
/* 225 */ "HAVING",
/* 226 */ "ORDER",
/* 227 */ "SLIMIT",
/* 228 */ "SOFFSET",
/* 229 */ "LIMIT",
/* 230 */ "OFFSET",
/* 231 */ "ASC",
/* 232 */ "NULLS",
/* 233 */ "ID",
/* 234 */ "NK_BITNOT",
/* 235 */ "INSERT",
/* 236 */ "VALUES",
/* 237 */ "IMPORT",
/* 238 */ "NK_SEMI",
/* 239 */ "FILE",
/* 240 */ "cmd",
/* 241 */ "account_options",
/* 242 */ "alter_account_options",
/* 243 */ "literal",
/* 244 */ "alter_account_option",
/* 245 */ "user_name",
/* 246 */ "privileges",
/* 247 */ "priv_level",
/* 248 */ "priv_type_list",
/* 249 */ "priv_type",
/* 250 */ "db_name",
/* 251 */ "dnode_endpoint",
/* 252 */ "dnode_host_name",
/* 253 */ "not_exists_opt",
/* 254 */ "db_options",
/* 255 */ "exists_opt",
/* 256 */ "alter_db_options",
/* 257 */ "integer_list",
/* 258 */ "variable_list",
/* 259 */ "retention_list",
/* 260 */ "alter_db_option",
/* 261 */ "retention",
/* 262 */ "full_table_name",
/* 263 */ "column_def_list",
/* 264 */ "tags_def_opt",
/* 265 */ "table_options",
/* 266 */ "multi_create_clause",
/* 267 */ "tags_def",
/* 268 */ "multi_drop_clause",
/* 269 */ "alter_table_clause",
/* 270 */ "alter_table_options",
/* 271 */ "column_name",
/* 272 */ "type_name",
/* 273 */ "signed_literal",
/* 274 */ "create_subtable_clause",
/* 275 */ "specific_tags_opt",
/* 276 */ "literal_list",
/* 277 */ "drop_table_clause",
/* 278 */ "col_name_list",
/* 279 */ "table_name",
/* 280 */ "column_def",
/* 281 */ "func_name_list",
/* 282 */ "alter_table_option",
/* 283 */ "col_name",
/* 284 */ "db_name_cond_opt",
/* 285 */ "like_pattern_opt",
/* 286 */ "table_name_cond",
/* 287 */ "from_db_opt",
/* 288 */ "func_name",
/* 289 */ "function_name",
/* 290 */ "index_name",
/* 291 */ "index_options",
/* 292 */ "func_list",
/* 293 */ "duration_literal",
/* 294 */ "sliding_opt",
/* 295 */ "func",
/* 296 */ "expression_list",
/* 297 */ "topic_name",
/* 298 */ "topic_options",
/* 299 */ "query_expression",
/* 300 */ "cgroup_name",
/* 301 */ "analyze_opt",
/* 302 */ "explain_options",
/* 303 */ "agg_func_opt",
/* 304 */ "bufsize_opt",
/* 305 */ "stream_name",
/* 306 */ "stream_options",
/* 307 */ "into_opt",
/* 308 */ "dnode_list",
/* 309 */ "signed",
/* 310 */ "literal_func",
/* 311 */ "table_alias",
/* 312 */ "column_alias",
/* 313 */ "expression",
/* 314 */ "pseudo_column",
/* 315 */ "column_reference",
/* 316 */ "function_expression",
/* 317 */ "subquery",
/* 318 */ "star_func",
/* 319 */ "star_func_para_list",
/* 320 */ "noarg_func",
/* 321 */ "other_para_list",
/* 322 */ "star_func_para",
/* 323 */ "predicate",
/* 324 */ "compare_op",
/* 325 */ "in_op",
/* 326 */ "in_predicate_value",
/* 327 */ "boolean_value_expression",
/* 328 */ "boolean_primary",
/* 329 */ "common_expression",
/* 330 */ "from_clause",
/* 331 */ "table_reference_list",
/* 332 */ "table_reference",
/* 333 */ "table_primary",
/* 334 */ "joined_table",
/* 335 */ "alias_opt",
/* 336 */ "parenthesized_joined_table",
/* 337 */ "join_type",
/* 338 */ "search_condition",
/* 339 */ "query_specification",
/* 340 */ "set_quantifier_opt",
/* 341 */ "select_list",
/* 342 */ "where_clause_opt",
/* 343 */ "partition_by_clause_opt",
/* 344 */ "twindow_clause_opt",
/* 345 */ "group_by_clause_opt",
/* 346 */ "having_clause_opt",
/* 347 */ "select_sublist",
/* 348 */ "select_item",
/* 349 */ "fill_opt",
/* 350 */ "fill_mode",
/* 351 */ "group_by_list",
/* 352 */ "query_expression_body",
/* 353 */ "order_by_clause_opt",
/* 354 */ "slimit_clause_opt",
/* 355 */ "limit_clause_opt",
/* 356 */ "query_primary",
/* 357 */ "sort_specification_list",
/* 358 */ "sort_specification",
/* 359 */ "ordering_specification_opt",
/* 360 */ "null_ordering_opt",
};
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
#ifndef NDEBUG
/* For tracing reduce actions, the names of all rules are required.
*/
static const char *const yyRuleName[] = {
/* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
/* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
/* 2 */ "account_options ::=",
/* 3 */ "account_options ::= account_options PPS literal",
/* 4 */ "account_options ::= account_options TSERIES literal",
/* 5 */ "account_options ::= account_options STORAGE literal",
/* 6 */ "account_options ::= account_options STREAMS literal",
/* 7 */ "account_options ::= account_options QTIME literal",
/* 8 */ "account_options ::= account_options DBS literal",
/* 9 */ "account_options ::= account_options USERS literal",
/* 10 */ "account_options ::= account_options CONNS literal",
/* 11 */ "account_options ::= account_options STATE literal",
/* 12 */ "alter_account_options ::= alter_account_option",
/* 13 */ "alter_account_options ::= alter_account_options alter_account_option",
/* 14 */ "alter_account_option ::= PASS literal",
/* 15 */ "alter_account_option ::= PPS literal",
/* 16 */ "alter_account_option ::= TSERIES literal",
/* 17 */ "alter_account_option ::= STORAGE literal",
/* 18 */ "alter_account_option ::= STREAMS literal",
/* 19 */ "alter_account_option ::= QTIME literal",
/* 20 */ "alter_account_option ::= DBS literal",
/* 21 */ "alter_account_option ::= USERS literal",
/* 22 */ "alter_account_option ::= CONNS literal",
/* 23 */ "alter_account_option ::= STATE literal",
/* 24 */ "cmd ::= CREATE USER user_name PASS NK_STRING",
/* 25 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
/* 26 */ "cmd ::= ALTER USER user_name PRIVILEGE NK_STRING",
/* 27 */ "cmd ::= DROP USER user_name",
/* 28 */ "cmd ::= GRANT privileges ON priv_level TO user_name",
/* 29 */ "cmd ::= REVOKE privileges ON priv_level FROM user_name",
/* 30 */ "privileges ::= ALL",
/* 31 */ "privileges ::= priv_type_list",
/* 32 */ "priv_type_list ::= priv_type",
/* 33 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
/* 34 */ "priv_type ::= READ",
/* 35 */ "priv_type ::= WRITE",
/* 36 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
/* 37 */ "priv_level ::= db_name NK_DOT NK_STAR",
/* 38 */ "cmd ::= CREATE DNODE dnode_endpoint",
/* 39 */ "cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER",
/* 40 */ "cmd ::= DROP DNODE NK_INTEGER",
/* 41 */ "cmd ::= DROP DNODE dnode_endpoint",
/* 42 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
/* 43 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
/* 44 */ "cmd ::= ALTER ALL DNODES NK_STRING",
/* 45 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
/* 46 */ "dnode_endpoint ::= NK_STRING",
/* 47 */ "dnode_host_name ::= NK_ID",
/* 48 */ "dnode_host_name ::= NK_IPTOKEN",
/* 49 */ "cmd ::= ALTER LOCAL NK_STRING",
/* 50 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
/* 51 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
/* 52 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
/* 53 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
/* 54 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
/* 55 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
/* 56 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
/* 57 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
/* 58 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
/* 59 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
/* 60 */ "cmd ::= DROP DATABASE exists_opt db_name",
/* 61 */ "cmd ::= USE db_name",
/* 62 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
/* 63 */ "not_exists_opt ::= IF NOT EXISTS",
/* 64 */ "not_exists_opt ::=",
/* 65 */ "exists_opt ::= IF EXISTS",
/* 66 */ "exists_opt ::=",
/* 67 */ "db_options ::=",
/* 68 */ "db_options ::= db_options BUFFER NK_INTEGER",
/* 69 */ "db_options ::= db_options CACHELAST NK_INTEGER",
/* 70 */ "db_options ::= db_options COMP NK_INTEGER",
/* 71 */ "db_options ::= db_options DAYS NK_INTEGER",
/* 72 */ "db_options ::= db_options DAYS NK_VARIABLE",
/* 73 */ "db_options ::= db_options FSYNC NK_INTEGER",
/* 74 */ "db_options ::= db_options MAXROWS NK_INTEGER",
/* 75 */ "db_options ::= db_options MINROWS NK_INTEGER",
/* 76 */ "db_options ::= db_options KEEP integer_list",
/* 77 */ "db_options ::= db_options KEEP variable_list",
/* 78 */ "db_options ::= db_options PAGES NK_INTEGER",
/* 79 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
/* 80 */ "db_options ::= db_options PRECISION NK_STRING",
/* 81 */ "db_options ::= db_options REPLICA NK_INTEGER",
/* 82 */ "db_options ::= db_options STRICT NK_INTEGER",
/* 83 */ "db_options ::= db_options WAL NK_INTEGER",
/* 84 */ "db_options ::= db_options VGROUPS NK_INTEGER",
/* 85 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
/* 86 */ "db_options ::= db_options RETENTIONS retention_list",
2022-05-25 13:20:11 +00:00
/* 87 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
/* 88 */ "alter_db_options ::= alter_db_option",
/* 89 */ "alter_db_options ::= alter_db_options alter_db_option",
/* 90 */ "alter_db_option ::= BUFFER NK_INTEGER",
/* 91 */ "alter_db_option ::= CACHELAST NK_INTEGER",
/* 92 */ "alter_db_option ::= FSYNC NK_INTEGER",
/* 93 */ "alter_db_option ::= KEEP integer_list",
/* 94 */ "alter_db_option ::= KEEP variable_list",
/* 95 */ "alter_db_option ::= PAGES NK_INTEGER",
/* 96 */ "alter_db_option ::= REPLICA NK_INTEGER",
/* 97 */ "alter_db_option ::= STRICT NK_INTEGER",
/* 98 */ "alter_db_option ::= WAL NK_INTEGER",
/* 99 */ "integer_list ::= NK_INTEGER",
/* 100 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
/* 101 */ "variable_list ::= NK_VARIABLE",
/* 102 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
/* 103 */ "retention_list ::= retention",
/* 104 */ "retention_list ::= retention_list NK_COMMA retention",
/* 105 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
/* 106 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
/* 107 */ "cmd ::= CREATE TABLE multi_create_clause",
/* 108 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
/* 109 */ "cmd ::= DROP TABLE multi_drop_clause",
/* 110 */ "cmd ::= DROP STABLE exists_opt full_table_name",
/* 111 */ "cmd ::= ALTER TABLE alter_table_clause",
/* 112 */ "cmd ::= ALTER STABLE alter_table_clause",
/* 113 */ "alter_table_clause ::= full_table_name alter_table_options",
/* 114 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
/* 115 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
/* 116 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
/* 117 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
/* 118 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
/* 119 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
/* 120 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
/* 121 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
/* 122 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
/* 123 */ "multi_create_clause ::= create_subtable_clause",
/* 124 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
/* 125 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options",
/* 126 */ "multi_drop_clause ::= drop_table_clause",
/* 127 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause",
/* 128 */ "drop_table_clause ::= exists_opt full_table_name",
/* 129 */ "specific_tags_opt ::=",
/* 130 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP",
/* 131 */ "full_table_name ::= table_name",
/* 132 */ "full_table_name ::= db_name NK_DOT table_name",
/* 133 */ "column_def_list ::= column_def",
/* 134 */ "column_def_list ::= column_def_list NK_COMMA column_def",
/* 135 */ "column_def ::= column_name type_name",
/* 136 */ "column_def ::= column_name type_name COMMENT NK_STRING",
/* 137 */ "type_name ::= BOOL",
/* 138 */ "type_name ::= TINYINT",
/* 139 */ "type_name ::= SMALLINT",
/* 140 */ "type_name ::= INT",
/* 141 */ "type_name ::= INTEGER",
/* 142 */ "type_name ::= BIGINT",
/* 143 */ "type_name ::= FLOAT",
/* 144 */ "type_name ::= DOUBLE",
/* 145 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
/* 146 */ "type_name ::= TIMESTAMP",
/* 147 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
/* 148 */ "type_name ::= TINYINT UNSIGNED",
/* 149 */ "type_name ::= SMALLINT UNSIGNED",
/* 150 */ "type_name ::= INT UNSIGNED",
/* 151 */ "type_name ::= BIGINT UNSIGNED",
/* 152 */ "type_name ::= JSON",
/* 153 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
/* 154 */ "type_name ::= MEDIUMBLOB",
/* 155 */ "type_name ::= BLOB",
/* 156 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
/* 157 */ "type_name ::= DECIMAL",
/* 158 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
/* 159 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 160 */ "tags_def_opt ::=",
/* 161 */ "tags_def_opt ::= tags_def",
/* 162 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
/* 163 */ "table_options ::=",
/* 164 */ "table_options ::= table_options COMMENT NK_STRING",
/* 165 */ "table_options ::= table_options DELAY NK_INTEGER",
/* 166 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT",
/* 167 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP",
/* 168 */ "table_options ::= table_options TTL NK_INTEGER",
/* 169 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
/* 170 */ "alter_table_options ::= alter_table_option",
/* 171 */ "alter_table_options ::= alter_table_options alter_table_option",
/* 172 */ "alter_table_option ::= COMMENT NK_STRING",
/* 173 */ "alter_table_option ::= TTL NK_INTEGER",
/* 174 */ "col_name_list ::= col_name",
/* 175 */ "col_name_list ::= col_name_list NK_COMMA col_name",
/* 176 */ "col_name ::= column_name",
/* 177 */ "cmd ::= SHOW DNODES",
/* 178 */ "cmd ::= SHOW USERS",
/* 179 */ "cmd ::= SHOW DATABASES",
/* 180 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt",
/* 181 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
/* 182 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
/* 183 */ "cmd ::= SHOW MNODES",
/* 184 */ "cmd ::= SHOW MODULES",
/* 185 */ "cmd ::= SHOW QNODES",
/* 186 */ "cmd ::= SHOW FUNCTIONS",
/* 187 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
/* 188 */ "cmd ::= SHOW STREAMS",
/* 189 */ "cmd ::= SHOW ACCOUNTS",
/* 190 */ "cmd ::= SHOW APPS",
/* 191 */ "cmd ::= SHOW CONNECTIONS",
/* 192 */ "cmd ::= SHOW LICENCE",
/* 193 */ "cmd ::= SHOW GRANTS",
/* 194 */ "cmd ::= SHOW CREATE DATABASE db_name",
/* 195 */ "cmd ::= SHOW CREATE TABLE full_table_name",
/* 196 */ "cmd ::= SHOW CREATE STABLE full_table_name",
/* 197 */ "cmd ::= SHOW QUERIES",
/* 198 */ "cmd ::= SHOW SCORES",
/* 199 */ "cmd ::= SHOW TOPICS",
/* 200 */ "cmd ::= SHOW VARIABLES",
/* 201 */ "cmd ::= SHOW BNODES",
/* 202 */ "cmd ::= SHOW SNODES",
/* 203 */ "cmd ::= SHOW CLUSTER",
/* 204 */ "cmd ::= SHOW TRANSACTIONS",
/* 205 */ "db_name_cond_opt ::=",
/* 206 */ "db_name_cond_opt ::= db_name NK_DOT",
/* 207 */ "like_pattern_opt ::=",
/* 208 */ "like_pattern_opt ::= LIKE NK_STRING",
/* 209 */ "table_name_cond ::= table_name",
/* 210 */ "from_db_opt ::=",
/* 211 */ "from_db_opt ::= FROM db_name",
/* 212 */ "func_name_list ::= func_name",
/* 213 */ "func_name_list ::= func_name_list NK_COMMA func_name",
/* 214 */ "func_name ::= function_name",
/* 215 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options",
/* 216 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP",
/* 217 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name",
/* 218 */ "index_options ::=",
/* 219 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt",
/* 220 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt",
/* 221 */ "func_list ::= func",
/* 222 */ "func_list ::= func_list NK_COMMA func",
/* 223 */ "func ::= function_name NK_LP expression_list NK_RP",
/* 224 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression",
/* 225 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name",
/* 226 */ "cmd ::= DROP TOPIC exists_opt topic_name",
/* 227 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
2022-05-25 13:20:11 +00:00
/* 228 */ "topic_options ::=",
/* 229 */ "topic_options ::= topic_options WITH TABLE",
/* 230 */ "topic_options ::= topic_options WITH SCHEMA",
/* 231 */ "topic_options ::= topic_options WITH TAG",
/* 232 */ "cmd ::= DESC full_table_name",
/* 233 */ "cmd ::= DESCRIBE full_table_name",
/* 234 */ "cmd ::= RESET QUERY CACHE",
/* 235 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression",
/* 236 */ "analyze_opt ::=",
/* 237 */ "analyze_opt ::= ANALYZE",
/* 238 */ "explain_options ::=",
/* 239 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
/* 240 */ "explain_options ::= explain_options RATIO NK_FLOAT",
/* 241 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP",
/* 242 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt",
/* 243 */ "cmd ::= DROP FUNCTION exists_opt function_name",
/* 244 */ "agg_func_opt ::=",
/* 245 */ "agg_func_opt ::= AGGREGATE",
/* 246 */ "bufsize_opt ::=",
/* 247 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
/* 248 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression",
/* 249 */ "cmd ::= DROP STREAM exists_opt stream_name",
/* 250 */ "into_opt ::=",
/* 251 */ "into_opt ::= INTO full_table_name",
/* 252 */ "stream_options ::=",
/* 253 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
/* 254 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
/* 255 */ "stream_options ::= stream_options WATERMARK duration_literal",
/* 256 */ "cmd ::= KILL CONNECTION NK_INTEGER",
/* 257 */ "cmd ::= KILL QUERY NK_INTEGER",
/* 258 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
/* 259 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
/* 260 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
/* 261 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
/* 262 */ "dnode_list ::= DNODE NK_INTEGER",
/* 263 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
/* 264 */ "cmd ::= SYNCDB db_name REPLICA",
/* 265 */ "cmd ::= query_expression",
/* 266 */ "literal ::= NK_INTEGER",
/* 267 */ "literal ::= NK_FLOAT",
/* 268 */ "literal ::= NK_STRING",
/* 269 */ "literal ::= NK_BOOL",
/* 270 */ "literal ::= TIMESTAMP NK_STRING",
/* 271 */ "literal ::= duration_literal",
/* 272 */ "literal ::= NULL",
/* 273 */ "literal ::= NK_QUESTION",
/* 274 */ "duration_literal ::= NK_VARIABLE",
/* 275 */ "signed ::= NK_INTEGER",
/* 276 */ "signed ::= NK_PLUS NK_INTEGER",
/* 277 */ "signed ::= NK_MINUS NK_INTEGER",
/* 278 */ "signed ::= NK_FLOAT",
/* 279 */ "signed ::= NK_PLUS NK_FLOAT",
/* 280 */ "signed ::= NK_MINUS NK_FLOAT",
/* 281 */ "signed_literal ::= signed",
/* 282 */ "signed_literal ::= NK_STRING",
/* 283 */ "signed_literal ::= NK_BOOL",
/* 284 */ "signed_literal ::= TIMESTAMP NK_STRING",
/* 285 */ "signed_literal ::= duration_literal",
/* 286 */ "signed_literal ::= NULL",
/* 287 */ "signed_literal ::= literal_func",
/* 288 */ "literal_list ::= signed_literal",
/* 289 */ "literal_list ::= literal_list NK_COMMA signed_literal",
/* 290 */ "db_name ::= NK_ID",
/* 291 */ "table_name ::= NK_ID",
/* 292 */ "column_name ::= NK_ID",
/* 293 */ "function_name ::= NK_ID",
/* 294 */ "table_alias ::= NK_ID",
/* 295 */ "column_alias ::= NK_ID",
/* 296 */ "user_name ::= NK_ID",
/* 297 */ "index_name ::= NK_ID",
/* 298 */ "topic_name ::= NK_ID",
/* 299 */ "stream_name ::= NK_ID",
/* 300 */ "cgroup_name ::= NK_ID",
/* 301 */ "expression ::= literal",
/* 302 */ "expression ::= pseudo_column",
/* 303 */ "expression ::= column_reference",
/* 304 */ "expression ::= function_expression",
/* 305 */ "expression ::= subquery",
/* 306 */ "expression ::= NK_LP expression NK_RP",
/* 307 */ "expression ::= NK_PLUS expression",
/* 308 */ "expression ::= NK_MINUS expression",
/* 309 */ "expression ::= expression NK_PLUS expression",
/* 310 */ "expression ::= expression NK_MINUS expression",
/* 311 */ "expression ::= expression NK_STAR expression",
/* 312 */ "expression ::= expression NK_SLASH expression",
/* 313 */ "expression ::= expression NK_REM expression",
/* 314 */ "expression ::= column_reference NK_ARROW NK_STRING",
/* 315 */ "expression_list ::= expression",
/* 316 */ "expression_list ::= expression_list NK_COMMA expression",
/* 317 */ "column_reference ::= column_name",
/* 318 */ "column_reference ::= table_name NK_DOT column_name",
/* 319 */ "pseudo_column ::= ROWTS",
/* 320 */ "pseudo_column ::= TBNAME",
/* 321 */ "pseudo_column ::= table_name NK_DOT TBNAME",
/* 322 */ "pseudo_column ::= QSTARTTS",
/* 323 */ "pseudo_column ::= QENDTS",
/* 324 */ "pseudo_column ::= WSTARTTS",
/* 325 */ "pseudo_column ::= WENDTS",
/* 326 */ "pseudo_column ::= WDURATION",
/* 327 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
/* 328 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
/* 329 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP",
/* 330 */ "function_expression ::= literal_func",
/* 331 */ "literal_func ::= noarg_func NK_LP NK_RP",
/* 332 */ "literal_func ::= NOW",
/* 333 */ "noarg_func ::= NOW",
/* 334 */ "noarg_func ::= TODAY",
/* 335 */ "noarg_func ::= TIMEZONE",
/* 336 */ "star_func ::= COUNT",
/* 337 */ "star_func ::= FIRST",
/* 338 */ "star_func ::= LAST",
/* 339 */ "star_func ::= LAST_ROW",
/* 340 */ "star_func_para_list ::= NK_STAR",
/* 341 */ "star_func_para_list ::= other_para_list",
/* 342 */ "other_para_list ::= star_func_para",
/* 343 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
/* 344 */ "star_func_para ::= expression",
/* 345 */ "star_func_para ::= table_name NK_DOT NK_STAR",
/* 346 */ "predicate ::= expression compare_op expression",
/* 347 */ "predicate ::= expression BETWEEN expression AND expression",
/* 348 */ "predicate ::= expression NOT BETWEEN expression AND expression",
/* 349 */ "predicate ::= expression IS NULL",
/* 350 */ "predicate ::= expression IS NOT NULL",
/* 351 */ "predicate ::= expression in_op in_predicate_value",
/* 352 */ "compare_op ::= NK_LT",
/* 353 */ "compare_op ::= NK_GT",
/* 354 */ "compare_op ::= NK_LE",
/* 355 */ "compare_op ::= NK_GE",
/* 356 */ "compare_op ::= NK_NE",
/* 357 */ "compare_op ::= NK_EQ",
/* 358 */ "compare_op ::= LIKE",
/* 359 */ "compare_op ::= NOT LIKE",
/* 360 */ "compare_op ::= MATCH",
/* 361 */ "compare_op ::= NMATCH",
/* 362 */ "compare_op ::= CONTAINS",
/* 363 */ "in_op ::= IN",
/* 364 */ "in_op ::= NOT IN",
/* 365 */ "in_predicate_value ::= NK_LP expression_list NK_RP",
/* 366 */ "boolean_value_expression ::= boolean_primary",
/* 367 */ "boolean_value_expression ::= NOT boolean_primary",
/* 368 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 369 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 370 */ "boolean_primary ::= predicate",
/* 371 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 372 */ "common_expression ::= expression",
/* 373 */ "common_expression ::= boolean_value_expression",
/* 374 */ "from_clause ::= FROM table_reference_list",
/* 375 */ "table_reference_list ::= table_reference",
/* 376 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 377 */ "table_reference ::= table_primary",
/* 378 */ "table_reference ::= joined_table",
/* 379 */ "table_primary ::= table_name alias_opt",
/* 380 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 381 */ "table_primary ::= subquery alias_opt",
/* 382 */ "table_primary ::= parenthesized_joined_table",
/* 383 */ "alias_opt ::=",
/* 384 */ "alias_opt ::= table_alias",
/* 385 */ "alias_opt ::= AS table_alias",
/* 386 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 387 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 388 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
/* 389 */ "join_type ::=",
/* 390 */ "join_type ::= INNER",
/* 391 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
/* 392 */ "set_quantifier_opt ::=",
/* 393 */ "set_quantifier_opt ::= DISTINCT",
/* 394 */ "set_quantifier_opt ::= ALL",
/* 395 */ "select_list ::= NK_STAR",
/* 396 */ "select_list ::= select_sublist",
/* 397 */ "select_sublist ::= select_item",
/* 398 */ "select_sublist ::= select_sublist NK_COMMA select_item",
/* 399 */ "select_item ::= common_expression",
/* 400 */ "select_item ::= common_expression column_alias",
/* 401 */ "select_item ::= common_expression AS column_alias",
/* 402 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 403 */ "where_clause_opt ::=",
/* 404 */ "where_clause_opt ::= WHERE search_condition",
/* 405 */ "partition_by_clause_opt ::=",
/* 406 */ "partition_by_clause_opt ::= PARTITION BY expression_list",
/* 407 */ "twindow_clause_opt ::=",
/* 408 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
/* 409 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP",
/* 410 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
/* 411 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
/* 412 */ "sliding_opt ::=",
/* 413 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
/* 414 */ "fill_opt ::=",
/* 415 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 416 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP",
/* 417 */ "fill_mode ::= NONE",
/* 418 */ "fill_mode ::= PREV",
/* 419 */ "fill_mode ::= NULL",
/* 420 */ "fill_mode ::= LINEAR",
/* 421 */ "fill_mode ::= NEXT",
/* 422 */ "group_by_clause_opt ::=",
/* 423 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 424 */ "group_by_list ::= expression",
/* 425 */ "group_by_list ::= group_by_list NK_COMMA expression",
/* 426 */ "having_clause_opt ::=",
/* 427 */ "having_clause_opt ::= HAVING search_condition",
/* 428 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 429 */ "query_expression_body ::= query_primary",
/* 430 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body",
/* 431 */ "query_expression_body ::= query_expression_body UNION query_expression_body",
/* 432 */ "query_primary ::= query_specification",
/* 433 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP",
/* 434 */ "order_by_clause_opt ::=",
/* 435 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 436 */ "slimit_clause_opt ::=",
/* 437 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 438 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 439 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 440 */ "limit_clause_opt ::=",
/* 441 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 442 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 443 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 444 */ "subquery ::= NK_LP query_expression NK_RP",
/* 445 */ "search_condition ::= common_expression",
/* 446 */ "sort_specification_list ::= sort_specification",
/* 447 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 448 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt",
/* 449 */ "ordering_specification_opt ::=",
/* 450 */ "ordering_specification_opt ::= ASC",
/* 451 */ "ordering_specification_opt ::= DESC",
/* 452 */ "null_ordering_opt ::=",
/* 453 */ "null_ordering_opt ::= NULLS FIRST",
/* 454 */ "null_ordering_opt ::= NULLS LAST",
};
#endif /* NDEBUG */
#if YYSTACKDEPTH<=0
/*
** Try to increase the size of the parser stack. Return the number
** of errors. Return 0 on success.
*/
static int yyGrowStack(yyParser *p){
int newSize;
int idx;
yyStackEntry *pNew;
newSize = p->yystksz*2 + 100;
idx = p->yytos ? (int)(p->yytos - p->yystack) : 0;
if( p->yystack==&p->yystk0 ){
2022-03-28 09:08:48 +00:00
pNew = malloc(newSize*sizeof(pNew[0]));
if( pNew ) pNew[0] = p->yystk0;
}else{
2022-03-28 09:08:48 +00:00
pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
}
if( pNew ){
p->yystack = pNew;
p->yytos = &p->yystack[idx];
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n",
yyTracePrompt, p->yystksz, newSize);
}
#endif
p->yystksz = newSize;
}
return pNew==0;
}
#endif
/* Datatype of the argument to the memory allocated passed as the
2022-03-10 07:36:06 +00:00
** second argument to ParseAlloc() below. This can be changed by
** putting an appropriate #define in the %include section of the input
** grammar.
*/
#ifndef YYMALLOCARGTYPE
# define YYMALLOCARGTYPE size_t
#endif
/* Initialize a new parser that has already been allocated.
*/
2022-03-10 07:36:06 +00:00
void ParseInit(void *yypRawParser ParseCTX_PDECL){
yyParser *yypParser = (yyParser*)yypRawParser;
2022-03-10 07:36:06 +00:00
ParseCTX_STORE
#ifdef YYTRACKMAXSTACKDEPTH
yypParser->yyhwm = 0;
#endif
#if YYSTACKDEPTH<=0
yypParser->yytos = NULL;
yypParser->yystack = NULL;
yypParser->yystksz = 0;
if( yyGrowStack(yypParser) ){
yypParser->yystack = &yypParser->yystk0;
yypParser->yystksz = 1;
}
#endif
#ifndef YYNOERRORRECOVERY
yypParser->yyerrcnt = -1;
#endif
yypParser->yytos = yypParser->yystack;
yypParser->yystack[0].stateno = 0;
yypParser->yystack[0].major = 0;
#if YYSTACKDEPTH>0
yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1];
#endif
}
2022-03-10 07:36:06 +00:00
#ifndef Parse_ENGINEALWAYSONSTACK
/*
** This function allocates a new parser.
** The only argument is a pointer to a function which works like
** malloc.
**
** Inputs:
** A pointer to the function used to allocate memory.
**
** Outputs:
** A pointer to a parser. This pointer is used in subsequent calls
2022-03-10 07:36:06 +00:00
** to Parse and ParseFree.
*/
2022-03-10 07:36:06 +00:00
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
yyParser *yypParser;
yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
if( yypParser ){
2022-03-10 07:36:06 +00:00
ParseCTX_STORE
ParseInit(yypParser ParseCTX_PARAM);
}
return (void*)yypParser;
}
2022-03-10 07:36:06 +00:00
#endif /* Parse_ENGINEALWAYSONSTACK */
/* The following function deletes the "minor type" or semantic value
** associated with a symbol. The symbol can be either a terminal
** or nonterminal. "yymajor" is the symbol code, and "yypminor" is
** a pointer to the value to be deleted. The code used to do the
** deletions is derived from the %destructor and/or %token_destructor
** directives of the input grammar.
*/
static void yy_destructor(
yyParser *yypParser, /* The parser */
YYCODETYPE yymajor, /* Type code for object to destroy */
YYMINORTYPE *yypminor /* The object to be destroyed */
){
2022-03-10 07:36:06 +00:00
ParseARG_FETCH
ParseCTX_FETCH
switch( yymajor ){
/* Here is inserted the actions which take place when a
** terminal or non-terminal is destroyed. This can happen
** when the symbol is popped from the stack during a
** reduce or during error processing or when a parser is
** being destroyed before it is finished parsing.
**
** Note: during a reduce, the only symbols destroyed are those
** which appear on the RHS of the rule, but which are *not* used
** inside the C code.
*/
/********* Begin destructor definitions ***************************************/
/* Default NON-TERMINAL Destructor */
2022-05-25 13:20:11 +00:00
case 240: /* cmd */
case 243: /* literal */
case 254: /* db_options */
case 256: /* alter_db_options */
case 261: /* retention */
case 262: /* full_table_name */
case 265: /* table_options */
case 269: /* alter_table_clause */
case 270: /* alter_table_options */
case 273: /* signed_literal */
case 274: /* create_subtable_clause */
case 277: /* drop_table_clause */
case 280: /* column_def */
case 283: /* col_name */
case 284: /* db_name_cond_opt */
case 285: /* like_pattern_opt */
case 286: /* table_name_cond */
case 287: /* from_db_opt */
case 288: /* func_name */
case 291: /* index_options */
case 293: /* duration_literal */
case 294: /* sliding_opt */
case 295: /* func */
case 298: /* topic_options */
case 299: /* query_expression */
case 302: /* explain_options */
case 306: /* stream_options */
case 307: /* into_opt */
case 309: /* signed */
case 310: /* literal_func */
case 313: /* expression */
case 314: /* pseudo_column */
case 315: /* column_reference */
case 316: /* function_expression */
case 317: /* subquery */
case 322: /* star_func_para */
case 323: /* predicate */
case 326: /* in_predicate_value */
case 327: /* boolean_value_expression */
case 328: /* boolean_primary */
case 329: /* common_expression */
case 330: /* from_clause */
case 331: /* table_reference_list */
case 332: /* table_reference */
case 333: /* table_primary */
case 334: /* joined_table */
case 336: /* parenthesized_joined_table */
case 338: /* search_condition */
case 339: /* query_specification */
case 342: /* where_clause_opt */
case 344: /* twindow_clause_opt */
case 346: /* having_clause_opt */
case 348: /* select_item */
case 349: /* fill_opt */
case 352: /* query_expression_body */
case 354: /* slimit_clause_opt */
case 355: /* limit_clause_opt */
case 356: /* query_primary */
case 358: /* sort_specification */
{
2022-05-25 13:20:11 +00:00
nodesDestroyNode((yypminor->yy636));
}
break;
2022-05-25 13:20:11 +00:00
case 241: /* account_options */
case 242: /* alter_account_options */
case 244: /* alter_account_option */
case 304: /* bufsize_opt */
{
}
break;
2022-05-25 13:20:11 +00:00
case 245: /* user_name */
case 247: /* priv_level */
case 250: /* db_name */
case 251: /* dnode_endpoint */
case 252: /* dnode_host_name */
case 271: /* column_name */
case 279: /* table_name */
case 289: /* function_name */
case 290: /* index_name */
case 297: /* topic_name */
case 300: /* cgroup_name */
case 305: /* stream_name */
case 311: /* table_alias */
case 312: /* column_alias */
case 318: /* star_func */
case 320: /* noarg_func */
case 335: /* alias_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
2022-05-25 13:20:11 +00:00
case 246: /* privileges */
case 248: /* priv_type_list */
case 249: /* priv_type */
{
}
break;
2022-05-25 13:20:11 +00:00
case 253: /* not_exists_opt */
case 255: /* exists_opt */
case 301: /* analyze_opt */
case 303: /* agg_func_opt */
case 340: /* set_quantifier_opt */
{
}
break;
2022-05-25 13:20:11 +00:00
case 257: /* integer_list */
case 258: /* variable_list */
case 259: /* retention_list */
case 263: /* column_def_list */
case 264: /* tags_def_opt */
case 266: /* multi_create_clause */
case 267: /* tags_def */
case 268: /* multi_drop_clause */
case 275: /* specific_tags_opt */
case 276: /* literal_list */
case 278: /* col_name_list */
case 281: /* func_name_list */
case 292: /* func_list */
case 296: /* expression_list */
case 308: /* dnode_list */
case 319: /* star_func_para_list */
case 321: /* other_para_list */
case 341: /* select_list */
case 343: /* partition_by_clause_opt */
case 345: /* group_by_clause_opt */
case 347: /* select_sublist */
case 351: /* group_by_list */
case 353: /* order_by_clause_opt */
case 357: /* sort_specification_list */
{
2022-05-25 13:20:11 +00:00
nodesDestroyList((yypminor->yy236));
}
break;
2022-05-25 13:20:11 +00:00
case 260: /* alter_db_option */
case 282: /* alter_table_option */
{
2022-03-31 11:38:17 +00:00
}
break;
2022-05-25 13:20:11 +00:00
case 272: /* type_name */
{
2022-03-05 23:12:08 +00:00
}
break;
2022-05-25 13:20:11 +00:00
case 324: /* compare_op */
case 325: /* in_op */
{
2022-03-05 23:12:08 +00:00
}
break;
2022-05-25 13:20:11 +00:00
case 337: /* join_type */
{
2022-03-05 23:12:08 +00:00
}
break;
2022-05-25 13:20:11 +00:00
case 350: /* fill_mode */
{
2022-03-05 23:12:08 +00:00
}
break;
2022-05-25 13:20:11 +00:00
case 359: /* ordering_specification_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
2022-05-25 13:20:11 +00:00
case 360: /* null_ordering_opt */
{
2022-03-05 23:12:08 +00:00
}
break;
/********* End destructor definitions *****************************************/
default: break; /* If no destructor action specified: do nothing */
}
}
/*
** Pop the parser's stack once.
**
** If there is a destructor routine associated with the token which
** is popped from the stack, then call it.
*/
static void yy_pop_parser_stack(yyParser *pParser){
yyStackEntry *yytos;
assert( pParser->yytos!=0 );
assert( pParser->yytos > pParser->yystack );
yytos = pParser->yytos--;
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sPopping %s\n",
yyTracePrompt,
yyTokenName[yytos->major]);
}
#endif
yy_destructor(pParser, yytos->major, &yytos->minor);
}
/*
** Clear all secondary memory allocations from the parser
*/
2022-03-10 07:36:06 +00:00
void ParseFinalize(void *p){
yyParser *pParser = (yyParser*)p;
while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
#if YYSTACKDEPTH<=0
2022-03-28 09:08:48 +00:00
if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
#endif
}
2022-03-10 07:36:06 +00:00
#ifndef Parse_ENGINEALWAYSONSTACK
/*
** Deallocate and destroy a parser. Destructors are called for
** all stack elements before shutting the parser down.
**
** If the YYPARSEFREENEVERNULL macro exists (for example because it
** is defined in a %include section of the input grammar) then it is
** assumed that the input pointer is never NULL.
*/
2022-03-10 07:36:06 +00:00
void ParseFree(
void *p, /* The parser to be deleted */
void (*freeProc)(void*) /* Function used to reclaim memory */
){
#ifndef YYPARSEFREENEVERNULL
if( p==0 ) return;
#endif
2022-03-10 07:36:06 +00:00
ParseFinalize(p);
(*freeProc)(p);
}
2022-03-10 07:36:06 +00:00
#endif /* Parse_ENGINEALWAYSONSTACK */
/*
** Return the peak depth of the stack for a parser.
*/
#ifdef YYTRACKMAXSTACKDEPTH
2022-03-10 07:36:06 +00:00
int ParseStackPeak(void *p){
yyParser *pParser = (yyParser*)p;
return pParser->yyhwm;
}
#endif
/* This array of booleans keeps track of the parser statement
** coverage. The element yycoverage[X][Y] is set when the parser
** is in state X and has a lookahead token Y. In a well-tested
** systems, every element of this matrix should end up being set.
*/
#if defined(YYCOVERAGE)
static unsigned char yycoverage[YYNSTATE][YYNTOKEN];
#endif
/*
** Write into out a description of every state/lookahead combination that
**
** (1) has not been used by the parser, and
** (2) is not a syntax error.
**
** Return the number of missed state/lookahead combinations.
*/
#if defined(YYCOVERAGE)
2022-03-10 07:36:06 +00:00
int ParseCoverage(FILE *out){
int stateno, iLookAhead, i;
int nMissed = 0;
for(stateno=0; stateno<YYNSTATE; stateno++){
i = yy_shift_ofst[stateno];
for(iLookAhead=0; iLookAhead<YYNTOKEN; iLookAhead++){
if( yy_lookahead[i+iLookAhead]!=iLookAhead ) continue;
if( yycoverage[stateno][iLookAhead]==0 ) nMissed++;
if( out ){
fprintf(out,"State %d lookahead %s %s\n", stateno,
yyTokenName[iLookAhead],
yycoverage[stateno][iLookAhead] ? "ok" : "missed");
}
}
}
return nMissed;
}
#endif
/*
** Find the appropriate action for a parser given the terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_shift_action(
YYCODETYPE iLookAhead, /* The look-ahead token */
YYACTIONTYPE stateno /* Current state number */
){
int i;
if( stateno>YY_MAX_SHIFT ) return stateno;
assert( stateno <= YY_SHIFT_COUNT );
#if defined(YYCOVERAGE)
yycoverage[stateno][iLookAhead] = 1;
#endif
do{
i = yy_shift_ofst[stateno];
assert( i>=0 );
/* assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); */
assert( iLookAhead!=YYNOCODE );
assert( iLookAhead < YYNTOKEN );
i += iLookAhead;
if( i>=YY_NLOOKAHEAD || yy_lookahead[i]!=iLookAhead ){
#ifdef YYFALLBACK
YYCODETYPE iFallback; /* Fallback token */
if( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0])
&& (iFallback = yyFallback[iLookAhead])!=0 ){
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
}
#endif
assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
iLookAhead = iFallback;
continue;
}
#endif
#ifdef YYWILDCARD
{
int j = i - iLookAhead + YYWILDCARD;
if(
#if YY_SHIFT_MIN+YYWILDCARD<0
j>=0 &&
#endif
#if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT
j<YY_ACTTAB_COUNT &&
#endif
j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) &&
yy_lookahead[j]==YYWILDCARD && iLookAhead>0
){
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
yyTracePrompt, yyTokenName[iLookAhead],
yyTokenName[YYWILDCARD]);
}
#endif /* NDEBUG */
return yy_action[j];
}
}
#endif /* YYWILDCARD */
return yy_default[stateno];
}else{
return yy_action[i];
}
}while(1);
}
/*
** Find the appropriate action for a parser given the non-terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_reduce_action(
YYACTIONTYPE stateno, /* Current state number */
YYCODETYPE iLookAhead /* The look-ahead token */
){
int i;
#ifdef YYERRORSYMBOL
if( stateno>YY_REDUCE_COUNT ){
return yy_default[stateno];
}
#else
assert( stateno<=YY_REDUCE_COUNT );
#endif
i = yy_reduce_ofst[stateno];
assert( iLookAhead!=YYNOCODE );
i += iLookAhead;
#ifdef YYERRORSYMBOL
if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){
return yy_default[stateno];
}
#else
assert( i>=0 && i<YY_ACTTAB_COUNT );
assert( yy_lookahead[i]==iLookAhead );
#endif
return yy_action[i];
}
/*
** The following routine is called if the stack overflows.
*/
static void yyStackOverflow(yyParser *yypParser){
2022-03-10 07:36:06 +00:00
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
}
#endif
while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
/* Here code is inserted which will execute if the parser
** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
/******** End %stack_overflow code ********************************************/
2022-03-10 07:36:06 +00:00
ParseARG_STORE /* Suppress warning about unused %extra_argument var */
ParseCTX_STORE
}
/*
** Print tracing information for a SHIFT action
*/
#ifndef NDEBUG
static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
if( yyTraceFILE ){
if( yyNewState<YYNSTATE ){
fprintf(yyTraceFILE,"%s%s '%s', go to state %d\n",
yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
yyNewState);
}else{
fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n",
yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
yyNewState - YY_MIN_REDUCE);
}
}
}
#else
# define yyTraceShift(X,Y,Z)
#endif
/*
** Perform a shift action.
*/
static void yy_shift(
yyParser *yypParser, /* The parser to be shifted */
YYACTIONTYPE yyNewState, /* The new state to shift in */
YYCODETYPE yyMajor, /* The major token to shift in */
2022-03-10 07:36:06 +00:00
ParseTOKENTYPE yyMinor /* The minor token to shift in */
){
yyStackEntry *yytos;
yypParser->yytos++;
#ifdef YYTRACKMAXSTACKDEPTH
if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
yypParser->yyhwm++;
assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) );
}
#endif
#if YYSTACKDEPTH>0
if( yypParser->yytos>yypParser->yystackEnd ){
yypParser->yytos--;
yyStackOverflow(yypParser);
return;
}
#else
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
if( yyGrowStack(yypParser) ){
yypParser->yytos--;
yyStackOverflow(yypParser);
return;
}
}
#endif
if( yyNewState > YY_MAX_SHIFT ){
yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE;
}
yytos = yypParser->yytos;
yytos->stateno = yyNewState;
yytos->major = yyMajor;
yytos->minor.yy0 = yyMinor;
yyTraceShift(yypParser, yyNewState, "Shift");
}
/* The following table contains information about every rule that
** is used during the reduce.
*/
static const struct {
YYCODETYPE lhs; /* Symbol on the left-hand side of the rule */
signed char nrhs; /* Negative of the number of RHS symbols in the rule */
} yyRuleInfo[] = {
2022-05-25 13:20:11 +00:00
{ 240, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
{ 240, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
{ 241, 0 }, /* (2) account_options ::= */
{ 241, -3 }, /* (3) account_options ::= account_options PPS literal */
{ 241, -3 }, /* (4) account_options ::= account_options TSERIES literal */
{ 241, -3 }, /* (5) account_options ::= account_options STORAGE literal */
{ 241, -3 }, /* (6) account_options ::= account_options STREAMS literal */
{ 241, -3 }, /* (7) account_options ::= account_options QTIME literal */
{ 241, -3 }, /* (8) account_options ::= account_options DBS literal */
{ 241, -3 }, /* (9) account_options ::= account_options USERS literal */
{ 241, -3 }, /* (10) account_options ::= account_options CONNS literal */
{ 241, -3 }, /* (11) account_options ::= account_options STATE literal */
{ 242, -1 }, /* (12) alter_account_options ::= alter_account_option */
{ 242, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */
{ 244, -2 }, /* (14) alter_account_option ::= PASS literal */
{ 244, -2 }, /* (15) alter_account_option ::= PPS literal */
{ 244, -2 }, /* (16) alter_account_option ::= TSERIES literal */
{ 244, -2 }, /* (17) alter_account_option ::= STORAGE literal */
{ 244, -2 }, /* (18) alter_account_option ::= STREAMS literal */
{ 244, -2 }, /* (19) alter_account_option ::= QTIME literal */
{ 244, -2 }, /* (20) alter_account_option ::= DBS literal */
{ 244, -2 }, /* (21) alter_account_option ::= USERS literal */
{ 244, -2 }, /* (22) alter_account_option ::= CONNS literal */
{ 244, -2 }, /* (23) alter_account_option ::= STATE literal */
{ 240, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */
{ 240, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
{ 240, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */
{ 240, -3 }, /* (27) cmd ::= DROP USER user_name */
{ 240, -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */
{ 240, -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */
{ 246, -1 }, /* (30) privileges ::= ALL */
{ 246, -1 }, /* (31) privileges ::= priv_type_list */
{ 248, -1 }, /* (32) priv_type_list ::= priv_type */
{ 248, -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */
{ 249, -1 }, /* (34) priv_type ::= READ */
{ 249, -1 }, /* (35) priv_type ::= WRITE */
{ 247, -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */
{ 247, -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */
{ 240, -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */
{ 240, -5 }, /* (39) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */
{ 240, -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */
{ 240, -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */
{ 240, -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ 240, -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
{ 240, -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */
{ 240, -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
{ 251, -1 }, /* (46) dnode_endpoint ::= NK_STRING */
{ 252, -1 }, /* (47) dnode_host_name ::= NK_ID */
{ 252, -1 }, /* (48) dnode_host_name ::= NK_IPTOKEN */
{ 240, -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */
{ 240, -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ 240, -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
{ 240, -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ 240, -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
{ 240, -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
{ 240, -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ 240, -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ 240, -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ 240, -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ 240, -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
{ 240, -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */
{ 240, -2 }, /* (61) cmd ::= USE db_name */
{ 240, -4 }, /* (62) cmd ::= ALTER DATABASE db_name alter_db_options */
{ 253, -3 }, /* (63) not_exists_opt ::= IF NOT EXISTS */
{ 253, 0 }, /* (64) not_exists_opt ::= */
{ 255, -2 }, /* (65) exists_opt ::= IF EXISTS */
{ 255, 0 }, /* (66) exists_opt ::= */
{ 254, 0 }, /* (67) db_options ::= */
{ 254, -3 }, /* (68) db_options ::= db_options BUFFER NK_INTEGER */
{ 254, -3 }, /* (69) db_options ::= db_options CACHELAST NK_INTEGER */
{ 254, -3 }, /* (70) db_options ::= db_options COMP NK_INTEGER */
{ 254, -3 }, /* (71) db_options ::= db_options DAYS NK_INTEGER */
{ 254, -3 }, /* (72) db_options ::= db_options DAYS NK_VARIABLE */
{ 254, -3 }, /* (73) db_options ::= db_options FSYNC NK_INTEGER */
{ 254, -3 }, /* (74) db_options ::= db_options MAXROWS NK_INTEGER */
{ 254, -3 }, /* (75) db_options ::= db_options MINROWS NK_INTEGER */
{ 254, -3 }, /* (76) db_options ::= db_options KEEP integer_list */
{ 254, -3 }, /* (77) db_options ::= db_options KEEP variable_list */
{ 254, -3 }, /* (78) db_options ::= db_options PAGES NK_INTEGER */
{ 254, -3 }, /* (79) db_options ::= db_options PAGESIZE NK_INTEGER */
{ 254, -3 }, /* (80) db_options ::= db_options PRECISION NK_STRING */
{ 254, -3 }, /* (81) db_options ::= db_options REPLICA NK_INTEGER */
{ 254, -3 }, /* (82) db_options ::= db_options STRICT NK_INTEGER */
{ 254, -3 }, /* (83) db_options ::= db_options WAL NK_INTEGER */
{ 254, -3 }, /* (84) db_options ::= db_options VGROUPS NK_INTEGER */
{ 254, -3 }, /* (85) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
{ 254, -3 }, /* (86) db_options ::= db_options RETENTIONS retention_list */
{ 254, -3 }, /* (87) db_options ::= db_options SCHEMALESS NK_INTEGER */
{ 256, -1 }, /* (88) alter_db_options ::= alter_db_option */
{ 256, -2 }, /* (89) alter_db_options ::= alter_db_options alter_db_option */
{ 260, -2 }, /* (90) alter_db_option ::= BUFFER NK_INTEGER */
{ 260, -2 }, /* (91) alter_db_option ::= CACHELAST NK_INTEGER */
{ 260, -2 }, /* (92) alter_db_option ::= FSYNC NK_INTEGER */
{ 260, -2 }, /* (93) alter_db_option ::= KEEP integer_list */
{ 260, -2 }, /* (94) alter_db_option ::= KEEP variable_list */
{ 260, -2 }, /* (95) alter_db_option ::= PAGES NK_INTEGER */
{ 260, -2 }, /* (96) alter_db_option ::= REPLICA NK_INTEGER */
{ 260, -2 }, /* (97) alter_db_option ::= STRICT NK_INTEGER */
{ 260, -2 }, /* (98) alter_db_option ::= WAL NK_INTEGER */
{ 257, -1 }, /* (99) integer_list ::= NK_INTEGER */
{ 257, -3 }, /* (100) integer_list ::= integer_list NK_COMMA NK_INTEGER */
{ 258, -1 }, /* (101) variable_list ::= NK_VARIABLE */
{ 258, -3 }, /* (102) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
{ 259, -1 }, /* (103) retention_list ::= retention */
{ 259, -3 }, /* (104) retention_list ::= retention_list NK_COMMA retention */
{ 261, -3 }, /* (105) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
{ 240, -9 }, /* (106) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
{ 240, -3 }, /* (107) cmd ::= CREATE TABLE multi_create_clause */
{ 240, -9 }, /* (108) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
{ 240, -3 }, /* (109) cmd ::= DROP TABLE multi_drop_clause */
{ 240, -4 }, /* (110) cmd ::= DROP STABLE exists_opt full_table_name */
{ 240, -3 }, /* (111) cmd ::= ALTER TABLE alter_table_clause */
{ 240, -3 }, /* (112) cmd ::= ALTER STABLE alter_table_clause */
{ 269, -2 }, /* (113) alter_table_clause ::= full_table_name alter_table_options */
{ 269, -5 }, /* (114) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
{ 269, -4 }, /* (115) alter_table_clause ::= full_table_name DROP COLUMN column_name */
{ 269, -5 }, /* (116) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
{ 269, -5 }, /* (117) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
{ 269, -5 }, /* (118) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
{ 269, -4 }, /* (119) alter_table_clause ::= full_table_name DROP TAG column_name */
{ 269, -5 }, /* (120) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
{ 269, -5 }, /* (121) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
{ 269, -6 }, /* (122) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
{ 266, -1 }, /* (123) multi_create_clause ::= create_subtable_clause */
{ 266, -2 }, /* (124) multi_create_clause ::= multi_create_clause create_subtable_clause */
{ 274, -10 }, /* (125) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */
{ 268, -1 }, /* (126) multi_drop_clause ::= drop_table_clause */
{ 268, -2 }, /* (127) multi_drop_clause ::= multi_drop_clause drop_table_clause */
{ 277, -2 }, /* (128) drop_table_clause ::= exists_opt full_table_name */
{ 275, 0 }, /* (129) specific_tags_opt ::= */
{ 275, -3 }, /* (130) specific_tags_opt ::= NK_LP col_name_list NK_RP */
{ 262, -1 }, /* (131) full_table_name ::= table_name */
{ 262, -3 }, /* (132) full_table_name ::= db_name NK_DOT table_name */
{ 263, -1 }, /* (133) column_def_list ::= column_def */
{ 263, -3 }, /* (134) column_def_list ::= column_def_list NK_COMMA column_def */
{ 280, -2 }, /* (135) column_def ::= column_name type_name */
{ 280, -4 }, /* (136) column_def ::= column_name type_name COMMENT NK_STRING */
{ 272, -1 }, /* (137) type_name ::= BOOL */
{ 272, -1 }, /* (138) type_name ::= TINYINT */
{ 272, -1 }, /* (139) type_name ::= SMALLINT */
{ 272, -1 }, /* (140) type_name ::= INT */
{ 272, -1 }, /* (141) type_name ::= INTEGER */
{ 272, -1 }, /* (142) type_name ::= BIGINT */
{ 272, -1 }, /* (143) type_name ::= FLOAT */
{ 272, -1 }, /* (144) type_name ::= DOUBLE */
{ 272, -4 }, /* (145) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
{ 272, -1 }, /* (146) type_name ::= TIMESTAMP */
{ 272, -4 }, /* (147) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
{ 272, -2 }, /* (148) type_name ::= TINYINT UNSIGNED */
{ 272, -2 }, /* (149) type_name ::= SMALLINT UNSIGNED */
{ 272, -2 }, /* (150) type_name ::= INT UNSIGNED */
{ 272, -2 }, /* (151) type_name ::= BIGINT UNSIGNED */
{ 272, -1 }, /* (152) type_name ::= JSON */
{ 272, -4 }, /* (153) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
{ 272, -1 }, /* (154) type_name ::= MEDIUMBLOB */
{ 272, -1 }, /* (155) type_name ::= BLOB */
{ 272, -4 }, /* (156) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
{ 272, -1 }, /* (157) type_name ::= DECIMAL */
{ 272, -4 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
{ 272, -6 }, /* (159) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ 264, 0 }, /* (160) tags_def_opt ::= */
{ 264, -1 }, /* (161) tags_def_opt ::= tags_def */
{ 267, -4 }, /* (162) tags_def ::= TAGS NK_LP column_def_list NK_RP */
{ 265, 0 }, /* (163) table_options ::= */
{ 265, -3 }, /* (164) table_options ::= table_options COMMENT NK_STRING */
{ 265, -3 }, /* (165) table_options ::= table_options DELAY NK_INTEGER */
{ 265, -3 }, /* (166) table_options ::= table_options FILE_FACTOR NK_FLOAT */
{ 265, -5 }, /* (167) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */
{ 265, -3 }, /* (168) table_options ::= table_options TTL NK_INTEGER */
{ 265, -5 }, /* (169) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
{ 270, -1 }, /* (170) alter_table_options ::= alter_table_option */
{ 270, -2 }, /* (171) alter_table_options ::= alter_table_options alter_table_option */
{ 282, -2 }, /* (172) alter_table_option ::= COMMENT NK_STRING */
{ 282, -2 }, /* (173) alter_table_option ::= TTL NK_INTEGER */
{ 278, -1 }, /* (174) col_name_list ::= col_name */
{ 278, -3 }, /* (175) col_name_list ::= col_name_list NK_COMMA col_name */
{ 283, -1 }, /* (176) col_name ::= column_name */
{ 240, -2 }, /* (177) cmd ::= SHOW DNODES */
{ 240, -2 }, /* (178) cmd ::= SHOW USERS */
{ 240, -2 }, /* (179) cmd ::= SHOW DATABASES */
{ 240, -4 }, /* (180) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
{ 240, -4 }, /* (181) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
{ 240, -3 }, /* (182) cmd ::= SHOW db_name_cond_opt VGROUPS */
{ 240, -2 }, /* (183) cmd ::= SHOW MNODES */
{ 240, -2 }, /* (184) cmd ::= SHOW MODULES */
{ 240, -2 }, /* (185) cmd ::= SHOW QNODES */
{ 240, -2 }, /* (186) cmd ::= SHOW FUNCTIONS */
{ 240, -5 }, /* (187) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
{ 240, -2 }, /* (188) cmd ::= SHOW STREAMS */
{ 240, -2 }, /* (189) cmd ::= SHOW ACCOUNTS */
{ 240, -2 }, /* (190) cmd ::= SHOW APPS */
{ 240, -2 }, /* (191) cmd ::= SHOW CONNECTIONS */
{ 240, -2 }, /* (192) cmd ::= SHOW LICENCE */
{ 240, -2 }, /* (193) cmd ::= SHOW GRANTS */
{ 240, -4 }, /* (194) cmd ::= SHOW CREATE DATABASE db_name */
{ 240, -4 }, /* (195) cmd ::= SHOW CREATE TABLE full_table_name */
{ 240, -4 }, /* (196) cmd ::= SHOW CREATE STABLE full_table_name */
{ 240, -2 }, /* (197) cmd ::= SHOW QUERIES */
{ 240, -2 }, /* (198) cmd ::= SHOW SCORES */
{ 240, -2 }, /* (199) cmd ::= SHOW TOPICS */
{ 240, -2 }, /* (200) cmd ::= SHOW VARIABLES */
{ 240, -2 }, /* (201) cmd ::= SHOW BNODES */
{ 240, -2 }, /* (202) cmd ::= SHOW SNODES */
{ 240, -2 }, /* (203) cmd ::= SHOW CLUSTER */
{ 240, -2 }, /* (204) cmd ::= SHOW TRANSACTIONS */
{ 284, 0 }, /* (205) db_name_cond_opt ::= */
{ 284, -2 }, /* (206) db_name_cond_opt ::= db_name NK_DOT */
{ 285, 0 }, /* (207) like_pattern_opt ::= */
{ 285, -2 }, /* (208) like_pattern_opt ::= LIKE NK_STRING */
{ 286, -1 }, /* (209) table_name_cond ::= table_name */
{ 287, 0 }, /* (210) from_db_opt ::= */
{ 287, -2 }, /* (211) from_db_opt ::= FROM db_name */
{ 281, -1 }, /* (212) func_name_list ::= func_name */
{ 281, -3 }, /* (213) func_name_list ::= func_name_list NK_COMMA func_name */
{ 288, -1 }, /* (214) func_name ::= function_name */
{ 240, -8 }, /* (215) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */
{ 240, -10 }, /* (216) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */
{ 240, -6 }, /* (217) cmd ::= DROP INDEX exists_opt index_name ON table_name */
{ 291, 0 }, /* (218) index_options ::= */
{ 291, -9 }, /* (219) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */
{ 291, -11 }, /* (220) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */
{ 292, -1 }, /* (221) func_list ::= func */
{ 292, -3 }, /* (222) func_list ::= func_list NK_COMMA func */
{ 295, -4 }, /* (223) func ::= function_name NK_LP expression_list NK_RP */
{ 240, -7 }, /* (224) cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression */
{ 240, -7 }, /* (225) cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name */
{ 240, -4 }, /* (226) cmd ::= DROP TOPIC exists_opt topic_name */
{ 240, -7 }, /* (227) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
2022-05-25 13:20:11 +00:00
{ 298, 0 }, /* (228) topic_options ::= */
{ 298, -3 }, /* (229) topic_options ::= topic_options WITH TABLE */
{ 298, -3 }, /* (230) topic_options ::= topic_options WITH SCHEMA */
{ 298, -3 }, /* (231) topic_options ::= topic_options WITH TAG */
{ 240, -2 }, /* (232) cmd ::= DESC full_table_name */
{ 240, -2 }, /* (233) cmd ::= DESCRIBE full_table_name */
{ 240, -3 }, /* (234) cmd ::= RESET QUERY CACHE */
{ 240, -4 }, /* (235) cmd ::= EXPLAIN analyze_opt explain_options query_expression */
{ 301, 0 }, /* (236) analyze_opt ::= */
{ 301, -1 }, /* (237) analyze_opt ::= ANALYZE */
{ 302, 0 }, /* (238) explain_options ::= */
{ 302, -3 }, /* (239) explain_options ::= explain_options VERBOSE NK_BOOL */
{ 302, -3 }, /* (240) explain_options ::= explain_options RATIO NK_FLOAT */
{ 240, -6 }, /* (241) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */
{ 240, -10 }, /* (242) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
{ 240, -4 }, /* (243) cmd ::= DROP FUNCTION exists_opt function_name */
{ 303, 0 }, /* (244) agg_func_opt ::= */
{ 303, -1 }, /* (245) agg_func_opt ::= AGGREGATE */
{ 304, 0 }, /* (246) bufsize_opt ::= */
{ 304, -2 }, /* (247) bufsize_opt ::= BUFSIZE NK_INTEGER */
{ 240, -8 }, /* (248) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */
{ 240, -4 }, /* (249) cmd ::= DROP STREAM exists_opt stream_name */
{ 307, 0 }, /* (250) into_opt ::= */
{ 307, -2 }, /* (251) into_opt ::= INTO full_table_name */
{ 306, 0 }, /* (252) stream_options ::= */
{ 306, -3 }, /* (253) stream_options ::= stream_options TRIGGER AT_ONCE */
{ 306, -3 }, /* (254) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
{ 306, -3 }, /* (255) stream_options ::= stream_options WATERMARK duration_literal */
{ 240, -3 }, /* (256) cmd ::= KILL CONNECTION NK_INTEGER */
{ 240, -3 }, /* (257) cmd ::= KILL QUERY NK_INTEGER */
{ 240, -3 }, /* (258) cmd ::= KILL TRANSACTION NK_INTEGER */
{ 240, -4 }, /* (259) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ 240, -4 }, /* (260) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ 240, -3 }, /* (261) cmd ::= SPLIT VGROUP NK_INTEGER */
{ 308, -2 }, /* (262) dnode_list ::= DNODE NK_INTEGER */
{ 308, -3 }, /* (263) dnode_list ::= dnode_list DNODE NK_INTEGER */
{ 240, -3 }, /* (264) cmd ::= SYNCDB db_name REPLICA */
{ 240, -1 }, /* (265) cmd ::= query_expression */
{ 243, -1 }, /* (266) literal ::= NK_INTEGER */
{ 243, -1 }, /* (267) literal ::= NK_FLOAT */
{ 243, -1 }, /* (268) literal ::= NK_STRING */
{ 243, -1 }, /* (269) literal ::= NK_BOOL */
{ 243, -2 }, /* (270) literal ::= TIMESTAMP NK_STRING */
{ 243, -1 }, /* (271) literal ::= duration_literal */
{ 243, -1 }, /* (272) literal ::= NULL */
{ 243, -1 }, /* (273) literal ::= NK_QUESTION */
{ 293, -1 }, /* (274) duration_literal ::= NK_VARIABLE */
{ 309, -1 }, /* (275) signed ::= NK_INTEGER */
{ 309, -2 }, /* (276) signed ::= NK_PLUS NK_INTEGER */
{ 309, -2 }, /* (277) signed ::= NK_MINUS NK_INTEGER */
{ 309, -1 }, /* (278) signed ::= NK_FLOAT */
{ 309, -2 }, /* (279) signed ::= NK_PLUS NK_FLOAT */
{ 309, -2 }, /* (280) signed ::= NK_MINUS NK_FLOAT */
{ 273, -1 }, /* (281) signed_literal ::= signed */
{ 273, -1 }, /* (282) signed_literal ::= NK_STRING */
{ 273, -1 }, /* (283) signed_literal ::= NK_BOOL */
{ 273, -2 }, /* (284) signed_literal ::= TIMESTAMP NK_STRING */
{ 273, -1 }, /* (285) signed_literal ::= duration_literal */
{ 273, -1 }, /* (286) signed_literal ::= NULL */
{ 273, -1 }, /* (287) signed_literal ::= literal_func */
{ 276, -1 }, /* (288) literal_list ::= signed_literal */
{ 276, -3 }, /* (289) literal_list ::= literal_list NK_COMMA signed_literal */
{ 250, -1 }, /* (290) db_name ::= NK_ID */
{ 279, -1 }, /* (291) table_name ::= NK_ID */
{ 271, -1 }, /* (292) column_name ::= NK_ID */
{ 289, -1 }, /* (293) function_name ::= NK_ID */
{ 311, -1 }, /* (294) table_alias ::= NK_ID */
{ 312, -1 }, /* (295) column_alias ::= NK_ID */
{ 245, -1 }, /* (296) user_name ::= NK_ID */
{ 290, -1 }, /* (297) index_name ::= NK_ID */
{ 297, -1 }, /* (298) topic_name ::= NK_ID */
{ 305, -1 }, /* (299) stream_name ::= NK_ID */
{ 300, -1 }, /* (300) cgroup_name ::= NK_ID */
{ 313, -1 }, /* (301) expression ::= literal */
{ 313, -1 }, /* (302) expression ::= pseudo_column */
{ 313, -1 }, /* (303) expression ::= column_reference */
{ 313, -1 }, /* (304) expression ::= function_expression */
{ 313, -1 }, /* (305) expression ::= subquery */
{ 313, -3 }, /* (306) expression ::= NK_LP expression NK_RP */
{ 313, -2 }, /* (307) expression ::= NK_PLUS expression */
{ 313, -2 }, /* (308) expression ::= NK_MINUS expression */
{ 313, -3 }, /* (309) expression ::= expression NK_PLUS expression */
{ 313, -3 }, /* (310) expression ::= expression NK_MINUS expression */
{ 313, -3 }, /* (311) expression ::= expression NK_STAR expression */
{ 313, -3 }, /* (312) expression ::= expression NK_SLASH expression */
{ 313, -3 }, /* (313) expression ::= expression NK_REM expression */
{ 313, -3 }, /* (314) expression ::= column_reference NK_ARROW NK_STRING */
{ 296, -1 }, /* (315) expression_list ::= expression */
{ 296, -3 }, /* (316) expression_list ::= expression_list NK_COMMA expression */
{ 315, -1 }, /* (317) column_reference ::= column_name */
{ 315, -3 }, /* (318) column_reference ::= table_name NK_DOT column_name */
{ 314, -1 }, /* (319) pseudo_column ::= ROWTS */
{ 314, -1 }, /* (320) pseudo_column ::= TBNAME */
{ 314, -3 }, /* (321) pseudo_column ::= table_name NK_DOT TBNAME */
{ 314, -1 }, /* (322) pseudo_column ::= QSTARTTS */
{ 314, -1 }, /* (323) pseudo_column ::= QENDTS */
{ 314, -1 }, /* (324) pseudo_column ::= WSTARTTS */
{ 314, -1 }, /* (325) pseudo_column ::= WENDTS */
{ 314, -1 }, /* (326) pseudo_column ::= WDURATION */
{ 316, -4 }, /* (327) function_expression ::= function_name NK_LP expression_list NK_RP */
{ 316, -4 }, /* (328) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
{ 316, -6 }, /* (329) function_expression ::= CAST NK_LP expression AS type_name NK_RP */
{ 316, -1 }, /* (330) function_expression ::= literal_func */
{ 310, -3 }, /* (331) literal_func ::= noarg_func NK_LP NK_RP */
{ 310, -1 }, /* (332) literal_func ::= NOW */
{ 320, -1 }, /* (333) noarg_func ::= NOW */
{ 320, -1 }, /* (334) noarg_func ::= TODAY */
{ 320, -1 }, /* (335) noarg_func ::= TIMEZONE */
{ 318, -1 }, /* (336) star_func ::= COUNT */
{ 318, -1 }, /* (337) star_func ::= FIRST */
{ 318, -1 }, /* (338) star_func ::= LAST */
{ 318, -1 }, /* (339) star_func ::= LAST_ROW */
{ 319, -1 }, /* (340) star_func_para_list ::= NK_STAR */
{ 319, -1 }, /* (341) star_func_para_list ::= other_para_list */
{ 321, -1 }, /* (342) other_para_list ::= star_func_para */
{ 321, -3 }, /* (343) other_para_list ::= other_para_list NK_COMMA star_func_para */
{ 322, -1 }, /* (344) star_func_para ::= expression */
{ 322, -3 }, /* (345) star_func_para ::= table_name NK_DOT NK_STAR */
{ 323, -3 }, /* (346) predicate ::= expression compare_op expression */
{ 323, -5 }, /* (347) predicate ::= expression BETWEEN expression AND expression */
{ 323, -6 }, /* (348) predicate ::= expression NOT BETWEEN expression AND expression */
{ 323, -3 }, /* (349) predicate ::= expression IS NULL */
{ 323, -4 }, /* (350) predicate ::= expression IS NOT NULL */
{ 323, -3 }, /* (351) predicate ::= expression in_op in_predicate_value */
{ 324, -1 }, /* (352) compare_op ::= NK_LT */
{ 324, -1 }, /* (353) compare_op ::= NK_GT */
{ 324, -1 }, /* (354) compare_op ::= NK_LE */
{ 324, -1 }, /* (355) compare_op ::= NK_GE */
{ 324, -1 }, /* (356) compare_op ::= NK_NE */
{ 324, -1 }, /* (357) compare_op ::= NK_EQ */
{ 324, -1 }, /* (358) compare_op ::= LIKE */
{ 324, -2 }, /* (359) compare_op ::= NOT LIKE */
{ 324, -1 }, /* (360) compare_op ::= MATCH */
{ 324, -1 }, /* (361) compare_op ::= NMATCH */
{ 324, -1 }, /* (362) compare_op ::= CONTAINS */
{ 325, -1 }, /* (363) in_op ::= IN */
{ 325, -2 }, /* (364) in_op ::= NOT IN */
{ 326, -3 }, /* (365) in_predicate_value ::= NK_LP expression_list NK_RP */
{ 327, -1 }, /* (366) boolean_value_expression ::= boolean_primary */
{ 327, -2 }, /* (367) boolean_value_expression ::= NOT boolean_primary */
{ 327, -3 }, /* (368) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{ 327, -3 }, /* (369) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{ 328, -1 }, /* (370) boolean_primary ::= predicate */
{ 328, -3 }, /* (371) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
{ 329, -1 }, /* (372) common_expression ::= expression */
{ 329, -1 }, /* (373) common_expression ::= boolean_value_expression */
{ 330, -2 }, /* (374) from_clause ::= FROM table_reference_list */
{ 331, -1 }, /* (375) table_reference_list ::= table_reference */
{ 331, -3 }, /* (376) table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ 332, -1 }, /* (377) table_reference ::= table_primary */
{ 332, -1 }, /* (378) table_reference ::= joined_table */
{ 333, -2 }, /* (379) table_primary ::= table_name alias_opt */
{ 333, -4 }, /* (380) table_primary ::= db_name NK_DOT table_name alias_opt */
{ 333, -2 }, /* (381) table_primary ::= subquery alias_opt */
{ 333, -1 }, /* (382) table_primary ::= parenthesized_joined_table */
{ 335, 0 }, /* (383) alias_opt ::= */
{ 335, -1 }, /* (384) alias_opt ::= table_alias */
{ 335, -2 }, /* (385) alias_opt ::= AS table_alias */
{ 336, -3 }, /* (386) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
{ 336, -3 }, /* (387) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
{ 334, -6 }, /* (388) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ 337, 0 }, /* (389) join_type ::= */
{ 337, -1 }, /* (390) join_type ::= INNER */
{ 339, -9 }, /* (391) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
{ 340, 0 }, /* (392) set_quantifier_opt ::= */
{ 340, -1 }, /* (393) set_quantifier_opt ::= DISTINCT */
{ 340, -1 }, /* (394) set_quantifier_opt ::= ALL */
{ 341, -1 }, /* (395) select_list ::= NK_STAR */
{ 341, -1 }, /* (396) select_list ::= select_sublist */
{ 347, -1 }, /* (397) select_sublist ::= select_item */
{ 347, -3 }, /* (398) select_sublist ::= select_sublist NK_COMMA select_item */
{ 348, -1 }, /* (399) select_item ::= common_expression */
{ 348, -2 }, /* (400) select_item ::= common_expression column_alias */
{ 348, -3 }, /* (401) select_item ::= common_expression AS column_alias */
{ 348, -3 }, /* (402) select_item ::= table_name NK_DOT NK_STAR */
{ 342, 0 }, /* (403) where_clause_opt ::= */
{ 342, -2 }, /* (404) where_clause_opt ::= WHERE search_condition */
{ 343, 0 }, /* (405) partition_by_clause_opt ::= */
{ 343, -3 }, /* (406) partition_by_clause_opt ::= PARTITION BY expression_list */
{ 344, 0 }, /* (407) twindow_clause_opt ::= */
{ 344, -6 }, /* (408) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
{ 344, -4 }, /* (409) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */
{ 344, -6 }, /* (410) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
{ 344, -8 }, /* (411) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
{ 294, 0 }, /* (412) sliding_opt ::= */
{ 294, -4 }, /* (413) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
{ 349, 0 }, /* (414) fill_opt ::= */
{ 349, -4 }, /* (415) fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ 349, -6 }, /* (416) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
{ 350, -1 }, /* (417) fill_mode ::= NONE */
{ 350, -1 }, /* (418) fill_mode ::= PREV */
{ 350, -1 }, /* (419) fill_mode ::= NULL */
{ 350, -1 }, /* (420) fill_mode ::= LINEAR */
{ 350, -1 }, /* (421) fill_mode ::= NEXT */
{ 345, 0 }, /* (422) group_by_clause_opt ::= */
{ 345, -3 }, /* (423) group_by_clause_opt ::= GROUP BY group_by_list */
{ 351, -1 }, /* (424) group_by_list ::= expression */
{ 351, -3 }, /* (425) group_by_list ::= group_by_list NK_COMMA expression */
{ 346, 0 }, /* (426) having_clause_opt ::= */
{ 346, -2 }, /* (427) having_clause_opt ::= HAVING search_condition */
{ 299, -4 }, /* (428) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */
{ 352, -1 }, /* (429) query_expression_body ::= query_primary */
{ 352, -4 }, /* (430) query_expression_body ::= query_expression_body UNION ALL query_expression_body */
{ 352, -3 }, /* (431) query_expression_body ::= query_expression_body UNION query_expression_body */
{ 356, -1 }, /* (432) query_primary ::= query_specification */
{ 356, -6 }, /* (433) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */
{ 353, 0 }, /* (434) order_by_clause_opt ::= */
{ 353, -3 }, /* (435) order_by_clause_opt ::= ORDER BY sort_specification_list */
{ 354, 0 }, /* (436) slimit_clause_opt ::= */
{ 354, -2 }, /* (437) slimit_clause_opt ::= SLIMIT NK_INTEGER */
{ 354, -4 }, /* (438) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
{ 354, -4 }, /* (439) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
{ 355, 0 }, /* (440) limit_clause_opt ::= */
{ 355, -2 }, /* (441) limit_clause_opt ::= LIMIT NK_INTEGER */
{ 355, -4 }, /* (442) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
{ 355, -4 }, /* (443) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
{ 317, -3 }, /* (444) subquery ::= NK_LP query_expression NK_RP */
{ 338, -1 }, /* (445) search_condition ::= common_expression */
{ 357, -1 }, /* (446) sort_specification_list ::= sort_specification */
{ 357, -3 }, /* (447) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
{ 358, -3 }, /* (448) sort_specification ::= expression ordering_specification_opt null_ordering_opt */
{ 359, 0 }, /* (449) ordering_specification_opt ::= */
{ 359, -1 }, /* (450) ordering_specification_opt ::= ASC */
{ 359, -1 }, /* (451) ordering_specification_opt ::= DESC */
{ 360, 0 }, /* (452) null_ordering_opt ::= */
{ 360, -2 }, /* (453) null_ordering_opt ::= NULLS FIRST */
{ 360, -2 }, /* (454) null_ordering_opt ::= NULLS LAST */
};
static void yy_accept(yyParser*); /* Forward Declaration */
/*
** Perform a reduce action and the shift that must immediately
** follow the reduce.
**
** The yyLookahead and yyLookaheadToken parameters provide reduce actions
** access to the lookahead token (if any). The yyLookahead will be YYNOCODE
** if the lookahead token has already been consumed. As this procedure is
** only called from one place, optimizing compilers will in-line it, which
** means that the extra parameters have no performance impact.
*/
static YYACTIONTYPE yy_reduce(
yyParser *yypParser, /* The parser */
unsigned int yyruleno, /* Number of the rule by which to reduce */
int yyLookahead, /* Lookahead token, or YYNOCODE if none */
2022-03-10 07:36:06 +00:00
ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */
ParseCTX_PDECL /* %extra_context */
){
int yygoto; /* The next state */
YYACTIONTYPE yyact; /* The next action */
yyStackEntry *yymsp; /* The top of the parser's stack */
int yysize; /* Amount to pop the stack */
2022-03-10 07:36:06 +00:00
ParseARG_FETCH
(void)yyLookahead;
(void)yyLookaheadToken;
yymsp = yypParser->yytos;
#ifndef NDEBUG
if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){
yysize = yyRuleInfo[yyruleno].nrhs;
if( yysize ){
fprintf(yyTraceFILE, "%sReduce %d [%s], go to state %d.\n",
yyTracePrompt,
yyruleno, yyRuleName[yyruleno], yymsp[yysize].stateno);
}else{
fprintf(yyTraceFILE, "%sReduce %d [%s].\n",
yyTracePrompt, yyruleno, yyRuleName[yyruleno]);
}
}
#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( yyRuleInfo[yyruleno].nrhs==0 ){
#ifdef YYTRACKMAXSTACKDEPTH
if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
yypParser->yyhwm++;
assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack));
}
#endif
#if YYSTACKDEPTH>0
if( yypParser->yytos>=yypParser->yystackEnd ){
yyStackOverflow(yypParser);
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return 0;
}
#else
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
if( yyGrowStack(yypParser) ){
yyStackOverflow(yypParser);
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return 0;
}
yymsp = yypParser->yytos;
}
#endif
}
switch( yyruleno ){
/* Beginning here are the reduction cases. A typical example
** follows:
** case 0:
** #line <lineno> <grammarfile>
** { ... } // User supplied code
** #line <lineno> <thisfile>
** break;
*/
/********** Begin reduce actions **********************************************/
YYMINORTYPE yylhsminor;
case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
2022-05-25 13:20:11 +00:00
yy_destructor(yypParser,241,&yymsp[0].minor);
break;
case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
2022-05-25 13:20:11 +00:00
yy_destructor(yypParser,242,&yymsp[0].minor);
break;
case 2: /* account_options ::= */
{ }
break;
case 3: /* account_options ::= account_options PPS literal */
case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4);
case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5);
case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6);
case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7);
case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8);
case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9);
case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10);
case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11);
2022-05-25 13:20:11 +00:00
{ yy_destructor(yypParser,241,&yymsp[-2].minor);
{ }
2022-05-25 13:20:11 +00:00
yy_destructor(yypParser,243,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
2022-05-25 13:20:11 +00:00
{ yy_destructor(yypParser,244,&yymsp[0].minor);
{ }
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
2022-05-25 13:20:11 +00:00
{ yy_destructor(yypParser,242,&yymsp[-1].minor);
{ }
2022-05-25 13:20:11 +00:00
yy_destructor(yypParser,244,&yymsp[0].minor);
}
break;
case 14: /* alter_account_option ::= PASS literal */
case 15: /* alter_account_option ::= PPS literal */ yytestcase(yyruleno==15);
case 16: /* alter_account_option ::= TSERIES literal */ yytestcase(yyruleno==16);
case 17: /* alter_account_option ::= STORAGE literal */ yytestcase(yyruleno==17);
case 18: /* alter_account_option ::= STREAMS literal */ yytestcase(yyruleno==18);
case 19: /* alter_account_option ::= QTIME literal */ yytestcase(yyruleno==19);
case 20: /* alter_account_option ::= DBS literal */ yytestcase(yyruleno==20);
case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21);
case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22);
case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23);
{ }
2022-05-25 13:20:11 +00:00
yy_destructor(yypParser,243,&yymsp[0].minor);
break;
case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy0); }
break;
case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy53, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
break;
case 26: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy53, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); }
break;
case 27: /* cmd ::= DROP USER user_name */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy53); }
break;
case 28: /* cmd ::= GRANT privileges ON priv_level TO user_name */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy435, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy53); }
break;
case 29: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy435, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy53); }
break;
case 30: /* privileges ::= ALL */
2022-05-25 13:20:11 +00:00
{ yymsp[0].minor.yy435 = PRIVILEGE_TYPE_ALL; }
break;
case 31: /* privileges ::= priv_type_list */
case 32: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==32);
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy435 = yymsp[0].minor.yy435; }
yymsp[0].minor.yy435 = yylhsminor.yy435;
break;
case 33: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy435 = yymsp[-2].minor.yy435 | yymsp[0].minor.yy435; }
yymsp[-2].minor.yy435 = yylhsminor.yy435;
break;
case 34: /* priv_type ::= READ */
2022-05-25 13:20:11 +00:00
{ yymsp[0].minor.yy435 = PRIVILEGE_TYPE_READ; }
break;
case 35: /* priv_type ::= WRITE */
2022-05-25 13:20:11 +00:00
{ yymsp[0].minor.yy435 = PRIVILEGE_TYPE_WRITE; }
break;
case 36: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy53 = yymsp[-2].minor.yy0; }
yymsp[-2].minor.yy53 = yylhsminor.yy53;
break;
case 37: /* priv_level ::= db_name NK_DOT NK_STAR */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy53 = yymsp[-2].minor.yy53; }
yymsp[-2].minor.yy53 = yylhsminor.yy53;
break;
case 38: /* cmd ::= CREATE DNODE dnode_endpoint */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy53, NULL); }
break;
case 39: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy0); }
break;
case 40: /* cmd ::= DROP DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); }
break;
case 41: /* cmd ::= DROP DNODE dnode_endpoint */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy53); }
break;
case 42: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
break;
case 43: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 44: /* cmd ::= ALTER ALL DNODES NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
break;
case 45: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 46: /* dnode_endpoint ::= NK_STRING */
case 47: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==47);
case 48: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==48);
2022-05-25 13:20:11 +00:00
case 290: /* db_name ::= NK_ID */ yytestcase(yyruleno==290);
case 291: /* table_name ::= NK_ID */ yytestcase(yyruleno==291);
case 292: /* column_name ::= NK_ID */ yytestcase(yyruleno==292);
case 293: /* function_name ::= NK_ID */ yytestcase(yyruleno==293);
case 294: /* table_alias ::= NK_ID */ yytestcase(yyruleno==294);
case 295: /* column_alias ::= NK_ID */ yytestcase(yyruleno==295);
case 296: /* user_name ::= NK_ID */ yytestcase(yyruleno==296);
case 297: /* index_name ::= NK_ID */ yytestcase(yyruleno==297);
case 298: /* topic_name ::= NK_ID */ yytestcase(yyruleno==298);
case 299: /* stream_name ::= NK_ID */ yytestcase(yyruleno==299);
case 300: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==300);
case 333: /* noarg_func ::= NOW */ yytestcase(yyruleno==333);
case 334: /* noarg_func ::= TODAY */ yytestcase(yyruleno==334);
case 335: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==335);
case 336: /* star_func ::= COUNT */ yytestcase(yyruleno==336);
case 337: /* star_func ::= FIRST */ yytestcase(yyruleno==337);
case 338: /* star_func ::= LAST */ yytestcase(yyruleno==338);
case 339: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==339);
{ yylhsminor.yy53 = yymsp[0].minor.yy0; }
yymsp[0].minor.yy53 = yylhsminor.yy53;
break;
case 49: /* cmd ::= ALTER LOCAL NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
case 50: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 51: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
2022-03-15 12:04:52 +00:00
break;
case 52: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 53: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
2022-03-15 12:04:52 +00:00
break;
case 54: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
2022-03-15 12:04:52 +00:00
break;
case 55: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 56: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 57: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 58: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 59: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy603, &yymsp[-1].minor.yy53, yymsp[0].minor.yy636); }
break;
case 60: /* cmd ::= DROP DATABASE exists_opt db_name */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy603, &yymsp[0].minor.yy53); }
break;
case 61: /* cmd ::= USE db_name */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy53); }
break;
case 62: /* cmd ::= ALTER DATABASE db_name alter_db_options */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy53, yymsp[0].minor.yy636); }
break;
case 63: /* not_exists_opt ::= IF NOT EXISTS */
2022-05-25 13:20:11 +00:00
{ yymsp[-2].minor.yy603 = true; }
break;
case 64: /* not_exists_opt ::= */
case 66: /* exists_opt ::= */ yytestcase(yyruleno==66);
2022-05-25 13:20:11 +00:00
case 236: /* analyze_opt ::= */ yytestcase(yyruleno==236);
case 244: /* agg_func_opt ::= */ yytestcase(yyruleno==244);
case 392: /* set_quantifier_opt ::= */ yytestcase(yyruleno==392);
{ yymsp[1].minor.yy603 = false; }
break;
case 65: /* exists_opt ::= IF EXISTS */
2022-05-25 13:20:11 +00:00
{ yymsp[-1].minor.yy603 = true; }
2022-03-28 09:08:48 +00:00
break;
case 67: /* db_options ::= */
2022-05-25 13:20:11 +00:00
{ yymsp[1].minor.yy636 = createDefaultDatabaseOptions(pCxt); }
break;
case 68: /* db_options ::= db_options BUFFER NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 69: /* db_options ::= db_options CACHELAST NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-03-31 11:38:17 +00:00
break;
case 70: /* db_options ::= db_options COMP NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-04-07 10:19:20 +00:00
break;
case 71: /* db_options ::= db_options DAYS NK_INTEGER */
case 72: /* db_options ::= db_options DAYS NK_VARIABLE */ yytestcase(yyruleno==72);
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-04-07 10:19:20 +00:00
break;
case 73: /* db_options ::= db_options FSYNC NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-04-07 10:19:20 +00:00
break;
case 74: /* db_options ::= db_options MAXROWS NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-03-31 11:38:17 +00:00
break;
case 75: /* db_options ::= db_options MINROWS NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-03-31 11:38:17 +00:00
break;
case 76: /* db_options ::= db_options KEEP integer_list */
case 77: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==77);
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_KEEP, yymsp[0].minor.yy236); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-03-31 11:38:17 +00:00
break;
case 78: /* db_options ::= db_options PAGES NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 79: /* db_options ::= db_options PAGESIZE NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 80: /* db_options ::= db_options PRECISION NK_STRING */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 81: /* db_options ::= db_options REPLICA NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 82: /* db_options ::= db_options STRICT NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_STRICT, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 83: /* db_options ::= db_options WAL NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 84: /* db_options ::= db_options VGROUPS NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 85: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 86: /* db_options ::= db_options RETENTIONS retention_list */
2022-05-25 13:20:11 +00:00
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_RETENTIONS, yymsp[0].minor.yy236); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 87: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
{ yylhsminor.yy636 = setDatabaseOption(pCxt, yymsp[-2].minor.yy636, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 88: /* alter_db_options ::= alter_db_option */
{ yylhsminor.yy636 = createAlterDatabaseOptions(pCxt); yylhsminor.yy636 = setAlterDatabaseOption(pCxt, yylhsminor.yy636, &yymsp[0].minor.yy25); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 89: /* alter_db_options ::= alter_db_options alter_db_option */
{ yylhsminor.yy636 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy636, &yymsp[0].minor.yy25); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
case 90: /* alter_db_option ::= BUFFER NK_INTEGER */
{ yymsp[-1].minor.yy25.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
break;
case 91: /* alter_db_option ::= CACHELAST NK_INTEGER */
{ yymsp[-1].minor.yy25.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
break;
case 92: /* alter_db_option ::= FSYNC NK_INTEGER */
{ yymsp[-1].minor.yy25.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
break;
case 93: /* alter_db_option ::= KEEP integer_list */
case 94: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==94);
{ yymsp[-1].minor.yy25.type = DB_OPTION_KEEP; yymsp[-1].minor.yy25.pList = yymsp[0].minor.yy236; }
break;
case 95: /* alter_db_option ::= PAGES NK_INTEGER */
{ yymsp[-1].minor.yy25.type = DB_OPTION_PAGES; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
break;
case 96: /* alter_db_option ::= REPLICA NK_INTEGER */
{ yymsp[-1].minor.yy25.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
break;
case 97: /* alter_db_option ::= STRICT NK_INTEGER */
{ yymsp[-1].minor.yy25.type = DB_OPTION_STRICT; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
break;
case 98: /* alter_db_option ::= WAL NK_INTEGER */
{ yymsp[-1].minor.yy25.type = DB_OPTION_WAL; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
break;
case 99: /* integer_list ::= NK_INTEGER */
{ yylhsminor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 100: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
case 263: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==263);
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 101: /* variable_list ::= NK_VARIABLE */
{ yylhsminor.yy236 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 102: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 103: /* retention_list ::= retention */
case 123: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==123);
case 126: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==126);
case 133: /* column_def_list ::= column_def */ yytestcase(yyruleno==133);
case 174: /* col_name_list ::= col_name */ yytestcase(yyruleno==174);
case 212: /* func_name_list ::= func_name */ yytestcase(yyruleno==212);
case 221: /* func_list ::= func */ yytestcase(yyruleno==221);
case 288: /* literal_list ::= signed_literal */ yytestcase(yyruleno==288);
case 342: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==342);
case 397: /* select_sublist ::= select_item */ yytestcase(yyruleno==397);
case 446: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==446);
{ yylhsminor.yy236 = createNodeList(pCxt, yymsp[0].minor.yy636); }
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 104: /* retention_list ::= retention_list NK_COMMA retention */
case 134: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==134);
case 175: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==175);
case 213: /* func_name_list ::= func_name_list NK_COMMA func_name */ yytestcase(yyruleno==213);
case 222: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==222);
case 289: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==289);
case 343: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==343);
case 398: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==398);
case 447: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==447);
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, yymsp[0].minor.yy636); }
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 105: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
{ yylhsminor.yy636 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 106: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
case 108: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==108);
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy603, yymsp[-5].minor.yy636, yymsp[-3].minor.yy236, yymsp[-1].minor.yy236, yymsp[0].minor.yy636); }
break;
case 107: /* cmd ::= CREATE TABLE multi_create_clause */
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy236); }
break;
case 109: /* cmd ::= DROP TABLE multi_drop_clause */
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy236); }
break;
case 110: /* cmd ::= DROP STABLE exists_opt full_table_name */
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy603, yymsp[0].minor.yy636); }
break;
case 111: /* cmd ::= ALTER TABLE alter_table_clause */
case 112: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==112);
case 265: /* cmd ::= query_expression */ yytestcase(yyruleno==265);
{ pCxt->pRootNode = yymsp[0].minor.yy636; }
break;
case 113: /* alter_table_clause ::= full_table_name alter_table_options */
{ yylhsminor.yy636 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy636, yymsp[0].minor.yy636); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
case 114: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
{ yylhsminor.yy636 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy636, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy53, yymsp[0].minor.yy450); }
yymsp[-4].minor.yy636 = yylhsminor.yy636;
break;
case 115: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
{ yylhsminor.yy636 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy636, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy53); }
yymsp[-3].minor.yy636 = yylhsminor.yy636;
break;
case 116: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
{ yylhsminor.yy636 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy636, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy53, yymsp[0].minor.yy450); }
yymsp[-4].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 117: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
{ yylhsminor.yy636 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy636, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy53, &yymsp[0].minor.yy53); }
yymsp[-4].minor.yy636 = yylhsminor.yy636;
break;
case 118: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
{ yylhsminor.yy636 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy636, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy53, yymsp[0].minor.yy450); }
yymsp[-4].minor.yy636 = yylhsminor.yy636;
break;
case 119: /* alter_table_clause ::= full_table_name DROP TAG column_name */
{ yylhsminor.yy636 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy636, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy53); }
yymsp[-3].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 120: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
{ yylhsminor.yy636 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy636, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy53, yymsp[0].minor.yy450); }
yymsp[-4].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 121: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
{ yylhsminor.yy636 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy636, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy53, &yymsp[0].minor.yy53); }
yymsp[-4].minor.yy636 = yylhsminor.yy636;
break;
case 122: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
{ yylhsminor.yy636 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy636, &yymsp[-2].minor.yy53, yymsp[0].minor.yy636); }
yymsp[-5].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 124: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
case 127: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==127);
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-1].minor.yy236, yymsp[0].minor.yy636); }
yymsp[-1].minor.yy236 = yylhsminor.yy236;
break;
2022-05-25 13:20:11 +00:00
case 125: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */
{ yylhsminor.yy636 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy603, yymsp[-8].minor.yy636, yymsp[-6].minor.yy636, yymsp[-5].minor.yy236, yymsp[-2].minor.yy236, yymsp[0].minor.yy636); }
yymsp[-9].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 128: /* drop_table_clause ::= exists_opt full_table_name */
{ yylhsminor.yy636 = createDropTableClause(pCxt, yymsp[-1].minor.yy603, yymsp[0].minor.yy636); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 129: /* specific_tags_opt ::= */
case 160: /* tags_def_opt ::= */ yytestcase(yyruleno==160);
case 405: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==405);
case 422: /* group_by_clause_opt ::= */ yytestcase(yyruleno==422);
case 434: /* order_by_clause_opt ::= */ yytestcase(yyruleno==434);
{ yymsp[1].minor.yy236 = NULL; }
break;
2022-05-25 13:20:11 +00:00
case 130: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */
{ yymsp[-2].minor.yy236 = yymsp[-1].minor.yy236; }
break;
2022-05-25 13:20:11 +00:00
case 131: /* full_table_name ::= table_name */
{ yylhsminor.yy636 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy53, NULL); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 132: /* full_table_name ::= db_name NK_DOT table_name */
{ yylhsminor.yy636 = createRealTableNode(pCxt, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy53, NULL); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 135: /* column_def ::= column_name type_name */
{ yylhsminor.yy636 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy53, yymsp[0].minor.yy450, NULL); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
2022-03-05 23:12:08 +00:00
break;
2022-05-25 13:20:11 +00:00
case 136: /* column_def ::= column_name type_name COMMENT NK_STRING */
{ yylhsminor.yy636 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy53, yymsp[-2].minor.yy450, &yymsp[0].minor.yy0); }
yymsp[-3].minor.yy636 = yylhsminor.yy636;
2022-03-05 23:12:08 +00:00
break;
2022-05-25 13:20:11 +00:00
case 137: /* type_name ::= BOOL */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_BOOL); }
2022-03-05 23:12:08 +00:00
break;
2022-05-25 13:20:11 +00:00
case 138: /* type_name ::= TINYINT */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_TINYINT); }
2022-03-05 23:12:08 +00:00
break;
2022-05-25 13:20:11 +00:00
case 139: /* type_name ::= SMALLINT */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
2022-03-05 23:12:08 +00:00
break;
2022-05-25 13:20:11 +00:00
case 140: /* type_name ::= INT */
case 141: /* type_name ::= INTEGER */ yytestcase(yyruleno==141);
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_INT); }
2022-03-05 23:12:08 +00:00
break;
2022-05-25 13:20:11 +00:00
case 142: /* type_name ::= BIGINT */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_BIGINT); }
2022-03-05 23:12:08 +00:00
break;
2022-05-25 13:20:11 +00:00
case 143: /* type_name ::= FLOAT */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_FLOAT); }
2022-03-05 23:12:08 +00:00
break;
2022-05-25 13:20:11 +00:00
case 144: /* type_name ::= DOUBLE */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
2022-03-05 23:12:08 +00:00
break;
2022-05-25 13:20:11 +00:00
case 145: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy450 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 146: /* type_name ::= TIMESTAMP */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
break;
2022-05-25 13:20:11 +00:00
case 147: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy450 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 148: /* type_name ::= TINYINT UNSIGNED */
{ yymsp[-1].minor.yy450 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
break;
2022-05-25 13:20:11 +00:00
case 149: /* type_name ::= SMALLINT UNSIGNED */
{ yymsp[-1].minor.yy450 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
break;
2022-05-25 13:20:11 +00:00
case 150: /* type_name ::= INT UNSIGNED */
{ yymsp[-1].minor.yy450 = createDataType(TSDB_DATA_TYPE_UINT); }
break;
2022-05-25 13:20:11 +00:00
case 151: /* type_name ::= BIGINT UNSIGNED */
{ yymsp[-1].minor.yy450 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
break;
2022-05-25 13:20:11 +00:00
case 152: /* type_name ::= JSON */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_JSON); }
break;
2022-05-25 13:20:11 +00:00
case 153: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy450 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 154: /* type_name ::= MEDIUMBLOB */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
break;
2022-05-25 13:20:11 +00:00
case 155: /* type_name ::= BLOB */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_BLOB); }
break;
2022-05-25 13:20:11 +00:00
case 156: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy450 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 157: /* type_name ::= DECIMAL */
{ yymsp[0].minor.yy450 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
2022-05-25 13:20:11 +00:00
case 158: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy450 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
2022-05-25 13:20:11 +00:00
case 159: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy450 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
2022-05-25 13:20:11 +00:00
case 161: /* tags_def_opt ::= tags_def */
case 341: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==341);
case 396: /* select_list ::= select_sublist */ yytestcase(yyruleno==396);
{ yylhsminor.yy236 = yymsp[0].minor.yy236; }
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
2022-05-25 13:20:11 +00:00
case 162: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
{ yymsp[-3].minor.yy236 = yymsp[-1].minor.yy236; }
break;
2022-05-25 13:20:11 +00:00
case 163: /* table_options ::= */
{ yymsp[1].minor.yy636 = createDefaultTableOptions(pCxt); }
break;
2022-05-25 13:20:11 +00:00
case 164: /* table_options ::= table_options COMMENT NK_STRING */
{ yylhsminor.yy636 = setTableOption(pCxt, yymsp[-2].minor.yy636, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 165: /* table_options ::= table_options DELAY NK_INTEGER */
{ yylhsminor.yy636 = setTableOption(pCxt, yymsp[-2].minor.yy636, TABLE_OPTION_DELAY, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 166: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */
{ yylhsminor.yy636 = setTableOption(pCxt, yymsp[-2].minor.yy636, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 167: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */
{ yylhsminor.yy636 = setTableOption(pCxt, yymsp[-4].minor.yy636, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy236); }
yymsp[-4].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 168: /* table_options ::= table_options TTL NK_INTEGER */
{ yylhsminor.yy636 = setTableOption(pCxt, yymsp[-2].minor.yy636, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 169: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
{ yylhsminor.yy636 = setTableOption(pCxt, yymsp[-4].minor.yy636, TABLE_OPTION_SMA, yymsp[-1].minor.yy236); }
yymsp[-4].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 170: /* alter_table_options ::= alter_table_option */
{ yylhsminor.yy636 = createAlterTableOptions(pCxt); yylhsminor.yy636 = setTableOption(pCxt, yylhsminor.yy636, yymsp[0].minor.yy25.type, &yymsp[0].minor.yy25.val); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 171: /* alter_table_options ::= alter_table_options alter_table_option */
{ yylhsminor.yy636 = setTableOption(pCxt, yymsp[-1].minor.yy636, yymsp[0].minor.yy25.type, &yymsp[0].minor.yy25.val); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 172: /* alter_table_option ::= COMMENT NK_STRING */
{ yymsp[-1].minor.yy25.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
break;
2022-05-25 13:20:11 +00:00
case 173: /* alter_table_option ::= TTL NK_INTEGER */
{ yymsp[-1].minor.yy25.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; }
break;
2022-05-25 13:20:11 +00:00
case 176: /* col_name ::= column_name */
{ yylhsminor.yy636 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy53); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 177: /* cmd ::= SHOW DNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 178: /* cmd ::= SHOW USERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 179: /* cmd ::= SHOW DATABASES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 180: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy636, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 181: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy636, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 182: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy636, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 183: /* cmd ::= SHOW MNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 184: /* cmd ::= SHOW MODULES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 185: /* cmd ::= SHOW QNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 186: /* cmd ::= SHOW FUNCTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 187: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy636, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 188: /* cmd ::= SHOW STREAMS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); }
2022-03-08 09:25:26 +00:00
break;
2022-05-25 13:20:11 +00:00
case 189: /* cmd ::= SHOW ACCOUNTS */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
break;
2022-05-25 13:20:11 +00:00
case 190: /* cmd ::= SHOW APPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 191: /* cmd ::= SHOW CONNECTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 192: /* cmd ::= SHOW LICENCE */
case 193: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==193);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 194: /* cmd ::= SHOW CREATE DATABASE db_name */
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy53); }
break;
2022-05-25 13:20:11 +00:00
case 195: /* cmd ::= SHOW CREATE TABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 196: /* cmd ::= SHOW CREATE STABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 197: /* cmd ::= SHOW QUERIES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 198: /* cmd ::= SHOW SCORES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 199: /* cmd ::= SHOW TOPICS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 200: /* cmd ::= SHOW VARIABLES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 201: /* cmd ::= SHOW BNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 202: /* cmd ::= SHOW SNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 203: /* cmd ::= SHOW CLUSTER */
2022-04-20 09:43:02 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT, NULL, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 204: /* cmd ::= SHOW TRANSACTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT, NULL, NULL); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 205: /* db_name_cond_opt ::= */
case 210: /* from_db_opt ::= */ yytestcase(yyruleno==210);
{ yymsp[1].minor.yy636 = createDefaultDatabaseCondValue(pCxt); }
break;
case 206: /* db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy53); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 207: /* like_pattern_opt ::= */
case 218: /* index_options ::= */ yytestcase(yyruleno==218);
case 250: /* into_opt ::= */ yytestcase(yyruleno==250);
case 403: /* where_clause_opt ::= */ yytestcase(yyruleno==403);
case 407: /* twindow_clause_opt ::= */ yytestcase(yyruleno==407);
case 412: /* sliding_opt ::= */ yytestcase(yyruleno==412);
case 414: /* fill_opt ::= */ yytestcase(yyruleno==414);
case 426: /* having_clause_opt ::= */ yytestcase(yyruleno==426);
case 436: /* slimit_clause_opt ::= */ yytestcase(yyruleno==436);
case 440: /* limit_clause_opt ::= */ yytestcase(yyruleno==440);
{ yymsp[1].minor.yy636 = NULL; }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 208: /* like_pattern_opt ::= LIKE NK_STRING */
{ yymsp[-1].minor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 209: /* table_name_cond ::= table_name */
{ yylhsminor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy53); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 211: /* from_db_opt ::= FROM db_name */
{ yymsp[-1].minor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy53); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 214: /* func_name ::= function_name */
{ yylhsminor.yy636 = createFunctionNode(pCxt, &yymsp[0].minor.yy53, NULL); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 215: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy603, &yymsp[-3].minor.yy53, &yymsp[-1].minor.yy53, NULL, yymsp[0].minor.yy636); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 216: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy603, &yymsp[-5].minor.yy53, &yymsp[-3].minor.yy53, yymsp[-1].minor.yy236, NULL); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 217: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy603, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy53); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 219: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */
{ yymsp[-8].minor.yy636 = createIndexOption(pCxt, yymsp[-6].minor.yy236, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), NULL, yymsp[0].minor.yy636); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 220: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */
{ yymsp[-10].minor.yy636 = createIndexOption(pCxt, yymsp[-8].minor.yy236, releaseRawExprNode(pCxt, yymsp[-4].minor.yy636), releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), yymsp[0].minor.yy636); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 223: /* func ::= function_name NK_LP expression_list NK_RP */
{ yylhsminor.yy636 = createFunctionNode(pCxt, &yymsp[-3].minor.yy53, yymsp[-1].minor.yy236); }
yymsp[-3].minor.yy636 = yylhsminor.yy636;
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 224: /* cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression */
{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy603, &yymsp[-3].minor.yy53, yymsp[0].minor.yy636, NULL, yymsp[-2].minor.yy636); }
2022-03-28 09:08:48 +00:00
break;
2022-05-25 13:20:11 +00:00
case 225: /* cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name */
{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy603, &yymsp[-3].minor.yy53, NULL, &yymsp[0].minor.yy53, yymsp[-2].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 226: /* cmd ::= DROP TOPIC exists_opt topic_name */
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy603, &yymsp[0].minor.yy53); }
break;
case 227: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
2022-05-25 13:20:11 +00:00
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy603, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy53); }
break;
2022-05-25 13:20:11 +00:00
case 228: /* topic_options ::= */
{ yymsp[1].minor.yy636 = createTopicOptions(pCxt); }
2022-04-22 10:23:37 +00:00
break;
2022-05-25 13:20:11 +00:00
case 229: /* topic_options ::= topic_options WITH TABLE */
{ ((STopicOptions*)yymsp[-2].minor.yy636)->withTable = true; yylhsminor.yy636 = yymsp[-2].minor.yy636; }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-04-22 10:23:37 +00:00
break;
2022-05-25 13:20:11 +00:00
case 230: /* topic_options ::= topic_options WITH SCHEMA */
{ ((STopicOptions*)yymsp[-2].minor.yy636)->withSchema = true; yylhsminor.yy636 = yymsp[-2].minor.yy636; }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-04-22 10:23:37 +00:00
break;
2022-05-25 13:20:11 +00:00
case 231: /* topic_options ::= topic_options WITH TAG */
{ ((STopicOptions*)yymsp[-2].minor.yy636)->withTag = true; yylhsminor.yy636 = yymsp[-2].minor.yy636; }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-04-22 10:23:37 +00:00
break;
2022-05-25 13:20:11 +00:00
case 232: /* cmd ::= DESC full_table_name */
case 233: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==233);
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 234: /* cmd ::= RESET QUERY CACHE */
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
break;
2022-05-25 13:20:11 +00:00
case 235: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy603, yymsp[-1].minor.yy636, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 237: /* analyze_opt ::= ANALYZE */
case 245: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==245);
case 393: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==393);
{ yymsp[0].minor.yy603 = true; }
break;
2022-05-25 13:20:11 +00:00
case 238: /* explain_options ::= */
{ yymsp[1].minor.yy636 = createDefaultExplainOptions(pCxt); }
break;
2022-05-25 13:20:11 +00:00
case 239: /* explain_options ::= explain_options VERBOSE NK_BOOL */
{ yylhsminor.yy636 = setExplainVerbose(pCxt, yymsp[-2].minor.yy636, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 240: /* explain_options ::= explain_options RATIO NK_FLOAT */
{ yylhsminor.yy636 = setExplainRatio(pCxt, yymsp[-2].minor.yy636, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 241: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */
{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy236); }
break;
2022-05-25 13:20:11 +00:00
case 242: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy603, yymsp[-8].minor.yy603, &yymsp[-5].minor.yy53, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy450, yymsp[0].minor.yy158); }
break;
2022-05-25 13:20:11 +00:00
case 243: /* cmd ::= DROP FUNCTION exists_opt function_name */
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy603, &yymsp[0].minor.yy53); }
break;
2022-05-25 13:20:11 +00:00
case 246: /* bufsize_opt ::= */
{ yymsp[1].minor.yy158 = 0; }
break;
2022-05-25 13:20:11 +00:00
case 247: /* bufsize_opt ::= BUFSIZE NK_INTEGER */
{ yymsp[-1].minor.yy158 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
break;
2022-05-25 13:20:11 +00:00
case 248: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy603, &yymsp[-4].minor.yy53, yymsp[-2].minor.yy636, yymsp[-3].minor.yy636, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 249: /* cmd ::= DROP STREAM exists_opt stream_name */
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy603, &yymsp[0].minor.yy53); }
break;
2022-05-25 13:20:11 +00:00
case 251: /* into_opt ::= INTO full_table_name */
case 374: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==374);
case 404: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==404);
case 427: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==427);
{ yymsp[-1].minor.yy636 = yymsp[0].minor.yy636; }
break;
2022-05-25 13:20:11 +00:00
case 252: /* stream_options ::= */
{ yymsp[1].minor.yy636 = createStreamOptions(pCxt); }
break;
2022-05-25 13:20:11 +00:00
case 253: /* stream_options ::= stream_options TRIGGER AT_ONCE */
{ ((SStreamOptions*)yymsp[-2].minor.yy636)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy636 = yymsp[-2].minor.yy636; }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 254: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
{ ((SStreamOptions*)yymsp[-2].minor.yy636)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy636 = yymsp[-2].minor.yy636; }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 255: /* stream_options ::= stream_options WATERMARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy636)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy636); yylhsminor.yy636 = yymsp[-2].minor.yy636; }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 256: /* cmd ::= KILL CONNECTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 257: /* cmd ::= KILL QUERY NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_QUERY_STMT, &yymsp[0].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 258: /* cmd ::= KILL TRANSACTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 259: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 260: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy236); }
break;
2022-05-25 13:20:11 +00:00
case 261: /* cmd ::= SPLIT VGROUP NK_INTEGER */
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 262: /* dnode_list ::= DNODE NK_INTEGER */
{ yymsp[-1].minor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
break;
case 264: /* cmd ::= SYNCDB db_name REPLICA */
{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy53); }
break;
case 266: /* literal ::= NK_INTEGER */
{ yylhsminor.yy636 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 267: /* literal ::= NK_FLOAT */
{ yylhsminor.yy636 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 268: /* literal ::= NK_STRING */
{ yylhsminor.yy636 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 269: /* literal ::= NK_BOOL */
{ yylhsminor.yy636 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 270: /* literal ::= TIMESTAMP NK_STRING */
{ yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
case 271: /* literal ::= duration_literal */
case 281: /* signed_literal ::= signed */ yytestcase(yyruleno==281);
case 301: /* expression ::= literal */ yytestcase(yyruleno==301);
case 302: /* expression ::= pseudo_column */ yytestcase(yyruleno==302);
case 303: /* expression ::= column_reference */ yytestcase(yyruleno==303);
case 304: /* expression ::= function_expression */ yytestcase(yyruleno==304);
case 305: /* expression ::= subquery */ yytestcase(yyruleno==305);
case 330: /* function_expression ::= literal_func */ yytestcase(yyruleno==330);
case 366: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==366);
case 370: /* boolean_primary ::= predicate */ yytestcase(yyruleno==370);
case 372: /* common_expression ::= expression */ yytestcase(yyruleno==372);
case 373: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==373);
case 375: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==375);
case 377: /* table_reference ::= table_primary */ yytestcase(yyruleno==377);
case 378: /* table_reference ::= joined_table */ yytestcase(yyruleno==378);
case 382: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==382);
case 429: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==429);
case 432: /* query_primary ::= query_specification */ yytestcase(yyruleno==432);
{ yylhsminor.yy636 = yymsp[0].minor.yy636; }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 272: /* literal ::= NULL */
{ yylhsminor.yy636 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 273: /* literal ::= NK_QUESTION */
{ yylhsminor.yy636 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 274: /* duration_literal ::= NK_VARIABLE */
{ yylhsminor.yy636 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 275: /* signed ::= NK_INTEGER */
{ yylhsminor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 276: /* signed ::= NK_PLUS NK_INTEGER */
{ yymsp[-1].minor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
break;
case 277: /* signed ::= NK_MINUS NK_INTEGER */
2022-03-22 06:09:15 +00:00
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2022-05-25 13:20:11 +00:00
yylhsminor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
2022-03-22 06:09:15 +00:00
}
2022-05-25 13:20:11 +00:00
yymsp[-1].minor.yy636 = yylhsminor.yy636;
2022-03-22 06:09:15 +00:00
break;
2022-05-25 13:20:11 +00:00
case 278: /* signed ::= NK_FLOAT */
{ yylhsminor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
2022-03-22 06:09:15 +00:00
break;
2022-05-25 13:20:11 +00:00
case 279: /* signed ::= NK_PLUS NK_FLOAT */
{ yymsp[-1].minor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
2022-03-22 06:09:15 +00:00
break;
2022-05-25 13:20:11 +00:00
case 280: /* signed ::= NK_MINUS NK_FLOAT */
2022-03-22 06:09:15 +00:00
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2022-05-25 13:20:11 +00:00
yylhsminor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
2022-03-22 06:09:15 +00:00
}
2022-05-25 13:20:11 +00:00
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 282: /* signed_literal ::= NK_STRING */
{ yylhsminor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 283: /* signed_literal ::= NK_BOOL */
{ yylhsminor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
2022-03-22 06:09:15 +00:00
break;
2022-05-25 13:20:11 +00:00
case 284: /* signed_literal ::= TIMESTAMP NK_STRING */
{ yymsp[-1].minor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
2022-03-29 08:04:04 +00:00
break;
2022-05-25 13:20:11 +00:00
case 285: /* signed_literal ::= duration_literal */
case 287: /* signed_literal ::= literal_func */ yytestcase(yyruleno==287);
case 344: /* star_func_para ::= expression */ yytestcase(yyruleno==344);
case 399: /* select_item ::= common_expression */ yytestcase(yyruleno==399);
case 445: /* search_condition ::= common_expression */ yytestcase(yyruleno==445);
{ yylhsminor.yy636 = releaseRawExprNode(pCxt, yymsp[0].minor.yy636); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
2022-03-22 06:09:15 +00:00
break;
2022-05-25 13:20:11 +00:00
case 286: /* signed_literal ::= NULL */
{ yylhsminor.yy636 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
2022-03-22 06:09:15 +00:00
break;
2022-05-25 13:20:11 +00:00
case 306: /* expression ::= NK_LP expression NK_RP */
case 371: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==371);
{ yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy636)); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 307: /* expression ::= NK_PLUS expression */
{
2022-05-25 13:20:11 +00:00
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy636));
}
2022-05-25 13:20:11 +00:00
yymsp[-1].minor.yy636 = yylhsminor.yy636;
2022-03-22 06:09:15 +00:00
break;
2022-05-25 13:20:11 +00:00
case 308: /* expression ::= NK_MINUS expression */
{
2022-05-25 13:20:11 +00:00
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy636), NULL));
}
2022-05-25 13:20:11 +00:00
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 309: /* expression ::= expression NK_PLUS expression */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 310: /* expression ::= expression NK_MINUS expression */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 311: /* expression ::= expression NK_STAR expression */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 312: /* expression ::= expression NK_SLASH expression */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 313: /* expression ::= expression NK_REM expression */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 314: /* expression ::= column_reference NK_ARROW NK_STRING */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 315: /* expression_list ::= expression */
{ yylhsminor.yy236 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy636)); }
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 316: /* expression_list ::= expression_list NK_COMMA expression */
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, releaseRawExprNode(pCxt, yymsp[0].minor.yy636)); }
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 317: /* column_reference ::= column_name */
{ yylhsminor.yy636 = createRawExprNode(pCxt, &yymsp[0].minor.yy53, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy53)); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 318: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy53, createColumnNode(pCxt, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy53)); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 319: /* pseudo_column ::= ROWTS */
case 320: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==320);
case 322: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==322);
case 323: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==323);
case 324: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==324);
case 325: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==325);
case 326: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==326);
case 332: /* literal_func ::= NOW */ yytestcase(yyruleno==332);
{ yylhsminor.yy636 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
yymsp[0].minor.yy636 = yylhsminor.yy636;
break;
case 321: /* pseudo_column ::= table_name NK_DOT TBNAME */
{ yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy53)))); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 327: /* function_expression ::= function_name NK_LP expression_list NK_RP */
case 328: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==328);
{ yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy53, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy53, yymsp[-1].minor.yy236)); }
yymsp[-3].minor.yy636 = yylhsminor.yy636;
break;
case 329: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */
{ yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy636), yymsp[-1].minor.yy450)); }
yymsp[-5].minor.yy636 = yylhsminor.yy636;
break;
case 331: /* literal_func ::= noarg_func NK_LP NK_RP */
{ yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy53, NULL)); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 340: /* star_func_para_list ::= NK_STAR */
{ yylhsminor.yy236 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 345: /* star_func_para ::= table_name NK_DOT NK_STAR */
case 402: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==402);
{ yylhsminor.yy636 = createColumnNode(pCxt, &yymsp[-2].minor.yy53, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
case 346: /* predicate ::= expression compare_op expression */
case 351: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==351);
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy136, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 347: /* predicate ::= expression BETWEEN expression AND expression */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy636), releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-4].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 348: /* predicate ::= expression NOT BETWEEN expression AND expression */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy636), releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-5].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 349: /* predicate ::= expression IS NULL */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), NULL));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 350: /* predicate ::= expression IS NOT NULL */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy636), NULL));
}
2022-05-25 13:20:11 +00:00
yymsp[-3].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 352: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy136 = OP_TYPE_LOWER_THAN; }
break;
2022-05-25 13:20:11 +00:00
case 353: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy136 = OP_TYPE_GREATER_THAN; }
break;
2022-05-25 13:20:11 +00:00
case 354: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy136 = OP_TYPE_LOWER_EQUAL; }
break;
2022-05-25 13:20:11 +00:00
case 355: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy136 = OP_TYPE_GREATER_EQUAL; }
break;
2022-05-25 13:20:11 +00:00
case 356: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy136 = OP_TYPE_NOT_EQUAL; }
break;
2022-05-25 13:20:11 +00:00
case 357: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy136 = OP_TYPE_EQUAL; }
break;
2022-05-25 13:20:11 +00:00
case 358: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy136 = OP_TYPE_LIKE; }
break;
2022-05-25 13:20:11 +00:00
case 359: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy136 = OP_TYPE_NOT_LIKE; }
break;
2022-05-25 13:20:11 +00:00
case 360: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy136 = OP_TYPE_MATCH; }
break;
2022-05-25 13:20:11 +00:00
case 361: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy136 = OP_TYPE_NMATCH; }
break;
2022-05-25 13:20:11 +00:00
case 362: /* compare_op ::= CONTAINS */
{ yymsp[0].minor.yy136 = OP_TYPE_JSON_CONTAINS; }
break;
2022-05-25 13:20:11 +00:00
case 363: /* in_op ::= IN */
{ yymsp[0].minor.yy136 = OP_TYPE_IN; }
break;
2022-05-25 13:20:11 +00:00
case 364: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy136 = OP_TYPE_NOT_IN; }
break;
2022-05-25 13:20:11 +00:00
case 365: /* in_predicate_value ::= NK_LP expression_list NK_RP */
{ yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 367: /* boolean_value_expression ::= NOT boolean_primary */
{
2022-05-25 13:20:11 +00:00
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy636), NULL));
}
2022-05-25 13:20:11 +00:00
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 368: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 369: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{
2022-05-25 13:20:11 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy636);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy636);
yylhsminor.yy636 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), releaseRawExprNode(pCxt, yymsp[0].minor.yy636)));
}
2022-05-25 13:20:11 +00:00
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 376: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy636 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy636, yymsp[0].minor.yy636, NULL); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 379: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy636 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy53, &yymsp[0].minor.yy53); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 380: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy636 = createRealTableNode(pCxt, &yymsp[-3].minor.yy53, &yymsp[-1].minor.yy53, &yymsp[0].minor.yy53); }
yymsp[-3].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 381: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy636 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy636), &yymsp[0].minor.yy53); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 383: /* alias_opt ::= */
{ yymsp[1].minor.yy53 = nil_token; }
break;
2022-05-25 13:20:11 +00:00
case 384: /* alias_opt ::= table_alias */
{ yylhsminor.yy53 = yymsp[0].minor.yy53; }
yymsp[0].minor.yy53 = yylhsminor.yy53;
break;
2022-05-25 13:20:11 +00:00
case 385: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy53 = yymsp[0].minor.yy53; }
break;
2022-05-25 13:20:11 +00:00
case 386: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 387: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==387);
{ yymsp[-2].minor.yy636 = yymsp[-1].minor.yy636; }
break;
2022-05-25 13:20:11 +00:00
case 388: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ yylhsminor.yy636 = createJoinTableNode(pCxt, yymsp[-4].minor.yy342, yymsp[-5].minor.yy636, yymsp[-2].minor.yy636, yymsp[0].minor.yy636); }
yymsp[-5].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 389: /* join_type ::= */
{ yymsp[1].minor.yy342 = JOIN_TYPE_INNER; }
break;
2022-05-25 13:20:11 +00:00
case 390: /* join_type ::= INNER */
{ yymsp[0].minor.yy342 = JOIN_TYPE_INNER; }
break;
2022-05-25 13:20:11 +00:00
case 391: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
{
2022-05-25 13:20:11 +00:00
yymsp[-8].minor.yy636 = createSelectStmt(pCxt, yymsp[-7].minor.yy603, yymsp[-6].minor.yy236, yymsp[-5].minor.yy636);
yymsp[-8].minor.yy636 = addWhereClause(pCxt, yymsp[-8].minor.yy636, yymsp[-4].minor.yy636);
yymsp[-8].minor.yy636 = addPartitionByClause(pCxt, yymsp[-8].minor.yy636, yymsp[-3].minor.yy236);
yymsp[-8].minor.yy636 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy636, yymsp[-2].minor.yy636);
yymsp[-8].minor.yy636 = addGroupByClause(pCxt, yymsp[-8].minor.yy636, yymsp[-1].minor.yy236);
yymsp[-8].minor.yy636 = addHavingClause(pCxt, yymsp[-8].minor.yy636, yymsp[0].minor.yy636);
}
break;
2022-05-25 13:20:11 +00:00
case 394: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy603 = false; }
break;
2022-05-25 13:20:11 +00:00
case 395: /* select_list ::= NK_STAR */
{ yymsp[0].minor.yy236 = NULL; }
break;
2022-05-25 13:20:11 +00:00
case 400: /* select_item ::= common_expression column_alias */
{ yylhsminor.yy636 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy636), &yymsp[0].minor.yy53); }
yymsp[-1].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 401: /* select_item ::= common_expression AS column_alias */
{ yylhsminor.yy636 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), &yymsp[0].minor.yy53); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 406: /* partition_by_clause_opt ::= PARTITION BY expression_list */
case 423: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==423);
case 435: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==435);
{ yymsp[-2].minor.yy236 = yymsp[0].minor.yy236; }
break;
2022-05-25 13:20:11 +00:00
case 408: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
{ yymsp[-5].minor.yy636 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy636), releaseRawExprNode(pCxt, yymsp[-1].minor.yy636)); }
break;
2022-05-25 13:20:11 +00:00
case 409: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */
{ yymsp[-3].minor.yy636 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy636)); }
break;
2022-05-25 13:20:11 +00:00
case 410: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy636 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy636), NULL, yymsp[-1].minor.yy636, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 411: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-7].minor.yy636 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy636), releaseRawExprNode(pCxt, yymsp[-3].minor.yy636), yymsp[-1].minor.yy636, yymsp[0].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 413: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
{ yymsp[-3].minor.yy636 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy636); }
break;
2022-05-25 13:20:11 +00:00
case 415: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy636 = createFillNode(pCxt, yymsp[-1].minor.yy18, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 416: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
{ yymsp[-5].minor.yy636 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); }
break;
2022-05-25 13:20:11 +00:00
case 417: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy18 = FILL_MODE_NONE; }
break;
2022-05-25 13:20:11 +00:00
case 418: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy18 = FILL_MODE_PREV; }
break;
2022-05-25 13:20:11 +00:00
case 419: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy18 = FILL_MODE_NULL; }
break;
2022-05-25 13:20:11 +00:00
case 420: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy18 = FILL_MODE_LINEAR; }
break;
2022-05-25 13:20:11 +00:00
case 421: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy18 = FILL_MODE_NEXT; }
break;
2022-05-25 13:20:11 +00:00
case 424: /* group_by_list ::= expression */
{ yylhsminor.yy236 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy636))); }
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
2022-05-25 13:20:11 +00:00
case 425: /* group_by_list ::= group_by_list NK_COMMA expression */
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy636))); }
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
2022-05-25 13:20:11 +00:00
case 428: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */
{
2022-05-25 13:20:11 +00:00
yylhsminor.yy636 = addOrderByClause(pCxt, yymsp[-3].minor.yy636, yymsp[-2].minor.yy236);
yylhsminor.yy636 = addSlimitClause(pCxt, yylhsminor.yy636, yymsp[-1].minor.yy636);
yylhsminor.yy636 = addLimitClause(pCxt, yylhsminor.yy636, yymsp[0].minor.yy636);
}
2022-05-25 13:20:11 +00:00
yymsp[-3].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 430: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */
{ yylhsminor.yy636 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy636, yymsp[0].minor.yy636); }
yymsp[-3].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 431: /* query_expression_body ::= query_expression_body UNION query_expression_body */
{ yylhsminor.yy636 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy636, yymsp[0].minor.yy636); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
2022-04-21 09:09:54 +00:00
break;
2022-05-25 13:20:11 +00:00
case 433: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */
{ yymsp[-5].minor.yy636 = yymsp[-4].minor.yy636; }
yy_destructor(yypParser,353,&yymsp[-3].minor);
yy_destructor(yypParser,354,&yymsp[-2].minor);
yy_destructor(yypParser,355,&yymsp[-1].minor);
2022-05-14 01:42:52 +00:00
break;
2022-05-25 13:20:11 +00:00
case 437: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
case 441: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==441);
{ yymsp[-1].minor.yy636 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
2022-05-25 13:20:11 +00:00
case 438: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 442: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==442);
{ yymsp[-3].minor.yy636 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 439: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 443: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==443);
{ yymsp[-3].minor.yy636 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
break;
2022-05-25 13:20:11 +00:00
case 444: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy636 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy636); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 448: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy636 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy636), yymsp[-1].minor.yy430, yymsp[0].minor.yy185); }
yymsp[-2].minor.yy636 = yylhsminor.yy636;
break;
2022-05-25 13:20:11 +00:00
case 449: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy430 = ORDER_ASC; }
break;
2022-05-25 13:20:11 +00:00
case 450: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy430 = ORDER_ASC; }
break;
2022-05-25 13:20:11 +00:00
case 451: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy430 = ORDER_DESC; }
break;
2022-05-25 13:20:11 +00:00
case 452: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy185 = NULL_ORDER_DEFAULT; }
break;
2022-05-25 13:20:11 +00:00
case 453: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy185 = NULL_ORDER_FIRST; }
break;
2022-05-25 13:20:11 +00:00
case 454: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy185 = NULL_ORDER_LAST; }
break;
default:
break;
/********** End reduce actions ************************************************/
};
assert( yyruleno<sizeof(yyRuleInfo)/sizeof(yyRuleInfo[0]) );
yygoto = yyRuleInfo[yyruleno].lhs;
yysize = yyRuleInfo[yyruleno].nrhs;
yyact = yy_find_reduce_action(yymsp[yysize].stateno,(YYCODETYPE)yygoto);
/* There are no SHIFTREDUCE actions on nonterminals because the table
** generator has simplified them to pure REDUCE actions. */
assert( !(yyact>YY_MAX_SHIFT && yyact<=YY_MAX_SHIFTREDUCE) );
/* It is not possible for a REDUCE to be followed by an error */
assert( yyact!=YY_ERROR_ACTION );
yymsp += yysize+1;
yypParser->yytos = yymsp;
yymsp->stateno = (YYACTIONTYPE)yyact;
yymsp->major = (YYCODETYPE)yygoto;
yyTraceShift(yypParser, yyact, "... then shift");
return yyact;
}
/*
** The following code executes when the parse fails
*/
#ifndef YYNOERRORRECOVERY
static void yy_parse_failed(
yyParser *yypParser /* The parser */
){
2022-03-10 07:36:06 +00:00
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt);
}
#endif
while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
/* Here code is inserted which will be executed whenever the
** parser fails */
/************ Begin %parse_failure code ***************************************/
/************ End %parse_failure code *****************************************/
2022-03-10 07:36:06 +00:00
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
#endif /* YYNOERRORRECOVERY */
/*
** The following code executes when a syntax error first occurs.
*/
static void yy_syntax_error(
yyParser *yypParser, /* The parser */
int yymajor, /* The major type of the error token */
2022-03-10 07:36:06 +00:00
ParseTOKENTYPE yyminor /* The minor type of the error token */
){
2022-03-10 07:36:06 +00:00
ParseARG_FETCH
ParseCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
if (TSDB_CODE_SUCCESS == pCxt->errCode) {
if(TOKEN.z) {
pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
} else {
pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL);
}
}
/************ End %syntax_error code ******************************************/
2022-03-10 07:36:06 +00:00
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
/*
** The following is executed when the parser accepts
*/
static void yy_accept(
yyParser *yypParser /* The parser */
){
2022-03-10 07:36:06 +00:00
ParseARG_FETCH
ParseCTX_FETCH
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt);
}
#endif
#ifndef YYNOERRORRECOVERY
yypParser->yyerrcnt = -1;
#endif
assert( yypParser->yytos==yypParser->yystack );
/* Here code is inserted which will be executed whenever the
** parser accepts */
/*********** Begin %parse_accept code *****************************************/
/*********** End %parse_accept code *******************************************/
2022-03-10 07:36:06 +00:00
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
ParseCTX_STORE
}
/* The main parser program.
** The first argument is a pointer to a structure obtained from
2022-03-10 07:36:06 +00:00
** "ParseAlloc" which describes the current state of the parser.
** The second argument is the major token number. The third is
** the minor token. The fourth optional argument is whatever the
** user wants (and specified in the grammar) and is available for
** use by the action routines.
**
** Inputs:
** <ul>
** <li> A pointer to the parser (an opaque structure.)
** <li> The major token number.
** <li> The minor token number.
** <li> An option argument of a grammar-specified type.
** </ul>
**
** Outputs:
** None.
*/
2022-03-10 07:36:06 +00:00
void Parse(
void *yyp, /* The parser */
int yymajor, /* The major token code number */
2022-03-10 07:36:06 +00:00
ParseTOKENTYPE yyminor /* The value for the token */
ParseARG_PDECL /* Optional %extra_argument parameter */
){
YYMINORTYPE yyminorunion;
YYACTIONTYPE yyact; /* The parser action. */
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
int yyendofinput; /* True if we are at the end of input */
#endif
#ifdef YYERRORSYMBOL
int yyerrorhit = 0; /* True if yymajor has invoked an error */
#endif
yyParser *yypParser = (yyParser*)yyp; /* The parser */
2022-03-10 07:36:06 +00:00
ParseCTX_FETCH
ParseARG_STORE
assert( yypParser->yytos!=0 );
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
yyendofinput = (yymajor==0);
#endif
yyact = yypParser->yytos->stateno;
#ifndef NDEBUG
if( yyTraceFILE ){
if( yyact < YY_MIN_REDUCE ){
fprintf(yyTraceFILE,"%sInput '%s' in state %d\n",
yyTracePrompt,yyTokenName[yymajor],yyact);
}else{
fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n",
yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE);
}
}
#endif
do{
assert( yyact==yypParser->yytos->stateno );
yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
if( yyact >= YY_MIN_REDUCE ){
yyact = yy_reduce(yypParser,yyact-YY_MIN_REDUCE,yymajor,
2022-03-10 07:36:06 +00:00
yyminor ParseCTX_PARAM);
}else if( yyact <= YY_MAX_SHIFTREDUCE ){
yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor);
#ifndef YYNOERRORRECOVERY
yypParser->yyerrcnt--;
#endif
break;
}else if( yyact==YY_ACCEPT_ACTION ){
yypParser->yytos--;
yy_accept(yypParser);
return;
}else{
assert( yyact == YY_ERROR_ACTION );
yyminorunion.yy0 = yyminor;
#ifdef YYERRORSYMBOL
int yymx;
#endif
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt);
}
#endif
#ifdef YYERRORSYMBOL
/* A syntax error has occurred.
** The response to an error depends upon whether or not the
** grammar defines an error token "ERROR".
**
** This is what we do if the grammar does define ERROR:
**
** * Call the %syntax_error function.
**
** * Begin popping the stack until we enter a state where
** it is legal to shift the error symbol, then shift
** the error symbol.
**
** * Set the error count to three.
**
** * Begin accepting and shifting new tokens. No new error
** processing will occur until three tokens have been
** shifted successfully.
**
*/
if( yypParser->yyerrcnt<0 ){
yy_syntax_error(yypParser,yymajor,yyminor);
}
yymx = yypParser->yytos->major;
if( yymx==YYERRORSYMBOL || yyerrorhit ){
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sDiscard input token %s\n",
yyTracePrompt,yyTokenName[yymajor]);
}
#endif
yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion);
yymajor = YYNOCODE;
}else{
while( yypParser->yytos >= yypParser->yystack
&& (yyact = yy_find_reduce_action(
yypParser->yytos->stateno,
YYERRORSYMBOL)) > YY_MAX_SHIFTREDUCE
){
yy_pop_parser_stack(yypParser);
}
if( yypParser->yytos < yypParser->yystack || yymajor==0 ){
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
yy_parse_failed(yypParser);
#ifndef YYNOERRORRECOVERY
yypParser->yyerrcnt = -1;
#endif
yymajor = YYNOCODE;
}else if( yymx!=YYERRORSYMBOL ){
yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor);
}
}
yypParser->yyerrcnt = 3;
yyerrorhit = 1;
if( yymajor==YYNOCODE ) break;
yyact = yypParser->yytos->stateno;
#elif defined(YYNOERRORRECOVERY)
/* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
** do any kind of error recovery. Instead, simply invoke the syntax
** error routine and continue going as if nothing had happened.
**
** Applications can set this macro (for example inside %include) if
** they intend to abandon the parse upon the first syntax error seen.
*/
yy_syntax_error(yypParser,yymajor, yyminor);
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
break;
#else /* YYERRORSYMBOL is not defined */
/* This is what we do if the grammar does not define ERROR:
**
** * Report an error message, and throw away the input token.
**
** * If the input token is $, then fail the parse.
**
** As before, subsequent error messages are suppressed until
** three input tokens have been successfully shifted.
*/
if( yypParser->yyerrcnt<=0 ){
yy_syntax_error(yypParser,yymajor, yyminor);
}
yypParser->yyerrcnt = 3;
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
if( yyendofinput ){
yy_parse_failed(yypParser);
#ifndef YYNOERRORRECOVERY
yypParser->yyerrcnt = -1;
#endif
}
break;
#endif
}
}while( yypParser->yytos>yypParser->yystack );
#ifndef NDEBUG
if( yyTraceFILE ){
yyStackEntry *i;
char cDiv = '[';
fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt);
for(i=&yypParser->yystack[1]; i<=yypParser->yytos; i++){
fprintf(yyTraceFILE,"%c%s", cDiv, yyTokenName[i->major]);
cDiv = ' ';
}
fprintf(yyTraceFILE,"]\n");
}
#endif
return;
}
/*
** Return the fallback token corresponding to canonical token iToken, or
** 0 if iToken has no fallback.
*/
2022-03-10 07:36:06 +00:00
int ParseFallback(int iToken){
#ifdef YYFALLBACK
if( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) ){
return yyFallback[iToken];
}
#else
(void)iToken;
#endif
return 0;
}