/*
** 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>

#define ALLOW_FORBID_FUNC

#include "functionMgt.h"
#include "nodes.h"
#include "parToken.h"
#include "ttokendef.h"
#include "parAst.h"

#define YYSTACKDEPTH 0
/**************** 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.
**    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
**                       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
**                       zero the stack is dynamically sized using realloc()
**    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 *****************************************/
#define YYCODETYPE unsigned short int
#define YYNOCODE 460
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE  SToken 
typedef union {
  int yyinit;
  ParseTOKENTYPE yy0;
  SAlterOption yy5;
  bool yy57;
  EFillMode yy214;
  EJoinType yy332;
  int32_t yy340;
  int8_t yy383;
  SDataType yy384;
  SNodeList* yy424;
  EOrder yy538;
  EOperatorType yy620;
  SNode* yy752;
  ENullOrder yy777;
  SToken yy849;
  int64_t yy869;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
#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
#define YYFALLBACK 1
#define YYNSTATE             715
#define YYNRULE              541
#define YYNRULE_WITH_ACTION  541
#define YYNTOKEN             325
#define YY_MAX_SHIFT         714
#define YY_MIN_SHIFTREDUCE   1058
#define YY_MAX_SHIFTREDUCE   1598
#define YY_ERROR_ACTION      1599
#define YY_ACCEPT_ACTION     1600
#define YY_NO_ACTION         1601
#define YY_MIN_REDUCE        1602
#define YY_MAX_REDUCE        2142
/************* 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 (2983)
static const YYACTIONTYPE yy_action[] = {
 /*     0 */  1956,  460, 1745,  461, 1638,  571,  590,   35,  276, 2113,
 /*    10 */   160, 1809,   45,   43, 1528, 1710,  353, 2118,  331, 1867,
 /*    20 */   362, 2113, 1378, 1602,  570,  175,  603, 1807,  354, 2114,
 /*    30 */   572, 1974,  466, 1458,  602, 1376,  157, 2117,  462,  586,
 /*    40 */    54, 2114, 2116,  401, 1925, 1758,  619,  124,  123,  122,
 /*    50 */   121,  120,  119,  118,  117,  116, 1403, 1756, 1453,  171,
 /*    60 */    38,   37,  566,   18,   44,   42,   41,   40,   39, 1955,
 /*    70 */  1384, 2059, 1796, 1991,  602, 1403,  102, 1957,  623, 1959,
 /*    80 */  1960,  618,  571,  613, 1809,  547, 2113,  478,  172, 2113,
 /*    90 */  2044,  355, 1747, 1404,  356, 2040,   14, 2056,  589, 1956,
 /*   100 */  1807,  570,  175, 1939, 2119,  175, 2114,  572,  177, 2114,
 /*   110 */   572,   44,   42,   41,   40,   39, 2070,  115,  711,  657,
 /*   120 */   114,  113,  112,  111,  110,  109,  108,  107,  106,  602,
 /*   130 */  1974, 1935, 1941, 1460, 1461,   41,   40,   39,  620,  159,
 /*   140 */   547, 1614,  613, 1925, 2113,  619,   45,   43,   82, 1565,
 /*   150 */    48,   60,  169, 1912,  362,  469, 1378,  461, 1638, 2119,
 /*   160 */   175, 1091, 1433, 1443, 2114,  572, 2118, 1458, 1955, 1376,
 /*   170 */  2113, 1752, 1991,  334, 1856,  102, 1957,  623, 1959, 1960,
 /*   180 */   618, 1379,  613, 1377, 1403,  136, 2117,  143, 2015, 2044,
 /*   190 */  2114, 2115, 1453,  356, 2040, 1404, 1178,   18, 1314, 1315,
 /*   200 */  1093,  384, 1096, 1097, 1384,   48, 1382, 1383, 1603, 1432,
 /*   210 */  1435, 1436, 1437, 1438, 1439, 1440, 1441, 1442,  615,  611,
 /*   220 */  1451, 1452, 1454, 1455, 1456, 1457, 1459, 1462,    2,  115,
 /*   230 */    14, 1180,  114,  113,  112,  111,  110,  109,  108,  107,
 /*   240 */   106,  514,  513,  512,  319, 1671, 1401,  260, 1809,  130,
 /*   250 */   508, 1852,  711,  437,  507,  366,  450,  603,   60,  449,
 /*   260 */   506,  511,  183,  603, 1807,  648,  505, 1460, 1461,  367,
 /*   270 */  1809,  125, 1802, 1804,  421,  365,  451,  125,  499,  423,
 /*   280 */  1734,   45,   43,  157,  504,   60, 1808,   87, 1756,  362,
 /*   290 */  2059, 1378, 1758,  603, 1756,  459, 1433, 1443,  464, 1644,
 /*   300 */   178,  178, 1458, 1110, 1376, 1109,   64,  180, 1261, 1262,
 /*   310 */   514,  513,  512,   49,   82, 1379, 2055, 1377,  130,  508,
 /*   320 */    60,  335,  468,  507, 1756,  464, 1644, 1453,  129,  506,
 /*   330 */   511, 1402,   18,  411, 1111,  505,   11, 1751,    9, 1384,
 /*   340 */  1382, 1383,  478, 1432, 1435, 1436, 1437, 1438, 1439, 1440,
 /*   350 */  1441, 1442,  615,  611, 1451, 1452, 1454, 1455, 1456, 1457,
 /*   360 */  1459, 1462,    2,  447,   11,   14,  442,  441,  440,  439,
 /*   370 */   436,  435,  434,  433,  432,  428,  427,  426,  425,  336,
 /*   380 */   418,  417,  416, 1384,  413,  412,  333,  711,   38,   37,
 /*   390 */  1625,  228,   44,   42,   41,   40,   39,  213,   60, 1110,
 /*   400 */  1406, 1109, 1460, 1461,  400,  227,  399,  169,  178, 1600,
 /*   410 */   610,  528,  164,  407,  212,   45,   43, 1463,  495,  491,
 /*   420 */   487,  483,  210,  362,  526, 1378,  524,  510,  509, 1857,
 /*   430 */  1111, 1433, 1443,  583, 1925,  178, 1458,  603, 1376,  229,
 /*   440 */    38,   37, 1786,  603,   44,   42,   41,   40,   39, 1555,
 /*   450 */  1379,  277, 1377,  320, 1355, 1356,  561,  405,  443,   83,
 /*   460 */  1733, 1453,  208,  178,  133,   84,  322, 1405, 1756,  532,
 /*   470 */   178,  530,  377, 1384, 1756, 1382, 1383,   11, 1432, 1435,
 /*   480 */  1436, 1437, 1438, 1439, 1440, 1441, 1442,  615,  611, 1451,
 /*   490 */  1452, 1454, 1455, 1456, 1457, 1459, 1462,    2,  396,   46,
 /*   500 */   558, 1553, 1554, 1556, 1557,   38,   37,  669, 1624,   44,
 /*   510 */    42,   41,   40,   39,  547, 1852,  191,  190, 2113,  398,
 /*   520 */   394,  711,  585,  173, 2052, 2053,  185,  131, 2057,  207,
 /*   530 */   201,  603,  206, 2119,  175,  474, 1460, 1461, 2114,  572,
 /*   540 */   567,  562,  556, 1741,  237,  406,  583, 1974,  178,   45,
 /*   550 */    43,  199, 1925, 1479,  519,  565,  368,  362, 1731, 1378,
 /*   560 */   327,  605, 1756, 2016,  157, 1433, 1443, 1489,  655,  529,
 /*   570 */  1458,   99, 1376, 1758,   38,   37, 1525,  133,   44,   42,
 /*   580 */    41,   40,   39,  226, 1379,  134, 1377,  148,  147,  652,
 /*   590 */   651,  650,  145, 1748,  564, 1453,  267,  268,  522,   13,
 /*   600 */    12,  266, 1487,  516, 1743, 1595, 2059, 1384,  225, 1382,
 /*   610 */  1383,  259, 1432, 1435, 1436, 1437, 1438, 1439, 1440, 1441,
 /*   620 */  1442,  615,  611, 1451, 1452, 1454, 1455, 1456, 1457, 1459,
 /*   630 */  1462,    2, 2054,   46, 1623, 1622,  257, 2052,  582,   32,
 /*   640 */   126,  581,  682,  680, 2113,   66,   38,   37,   65, 1494,
 /*   650 */    44,   42,   41,   40,   39,  711, 1096, 1097, 1488,  570,
 /*   660 */   175, 1739,   31, 1544, 2114,  572,  655,  603,   38,   37,
 /*   670 */  1460, 1461,   44,   42,   41,   40,   39, 1621, 1925, 1925,
 /*   680 */  1620,  415,   27,   45,   43,  148,  147,  652,  651,  650,
 /*   690 */   145,  362, 1406, 1378, 2118, 1501, 1803, 1804, 1756, 1433,
 /*   700 */  1443, 1532, 1594,   33, 1458,  187, 1376, 1403, 1852,   38,
 /*   710 */    37, 1405,  542,   44,   42,   41,   40,   39, 1379,  189,
 /*   720 */  1377, 1925, 1468,  135, 1925, 1732, 2015,  232, 1403, 1453,
 /*   730 */    34,  360, 1482, 1483, 1484, 1485, 1486, 1490, 1491, 1492,
 /*   740 */  1493, 1384,   79, 1382, 1383,   78, 1432, 1435, 1436, 1437,
 /*   750 */  1438, 1439, 1440, 1441, 1442,  615,  611, 1451, 1452, 1454,
 /*   760 */  1455, 1456, 1457, 1459, 1462,    2, 1619,   14, 1218,  645,
 /*   770 */   644,  643, 1222,  642, 1224, 1225,  641, 1227,  638, 1378,
 /*   780 */  1233,  635, 1235, 1236,  632,  629,  339,  657, 1588,  711,
 /*   790 */    38,   37, 1376,  714,   44,   42,   41,   40,   39,  590,
 /*   800 */  1618,  375,   93,  503, 1460, 1461, 1944,  283, 1406,  607,
 /*   810 */  1925, 2016, 1868, 2117, 1617, 1616, 1613, 1939,  655, 1524,
 /*   820 */  1612, 1611,  168,  649, 1749,  502, 1800, 1384,  704,  700,
 /*   830 */   696,  692,  281, 1433, 1443, 1668,  184,  148,  147,  652,
 /*   840 */   651,  650,  145,  547, 1925, 1935, 1941, 2113,  340, 1434,
 /*   850 */   338,  337, 1379,  501, 1377,  259,  613,  503, 1925, 1925,
 /*   860 */  1925, 1403, 2119,  175, 1925, 1925,    8, 2114,  572,  100,
 /*   870 */  1434,  653,  274,  654, 1800,  711, 1800, 1382, 1383,  502,
 /*   880 */  1432, 1435, 1436, 1437, 1438, 1439, 1440, 1441, 1442,  615,
 /*   890 */   611, 1451, 1452, 1454, 1455, 1456, 1457, 1459, 1462,    2,
 /*   900 */   688,  687,  686,  685,  372,  599,  684,  683,  137,  678,
 /*   910 */   677,  676,  675,  674,  673,  672,  671,  150,  667,  666,
 /*   920 */   665,  371,  370,  662,  661,  660,  659,  658,  158, 1610,
 /*   930 */  1609,  614,  157,  296, 1608, 1839, 1956, 1607, 1379,  146,
 /*   940 */  1377, 1759,  262,  670, 1943, 1726,  156,  294,   68, 1943,
 /*   950 */  1658,   67,  236, 2064, 1521, 1939, 1956, 1597, 1598, 1349,
 /*   960 */  1939,  231,  603, 1382, 1383,  583,   50, 1974,    3,  195,
 /*   970 */   456,  454,  515, 1925, 1925,  586,  429,  603, 1925, 1606,
 /*   980 */  1925, 1925,  619, 1935, 1941,  345, 1615, 1974, 1935, 1941,
 /*   990 */   357,  430,   53, 1756,  613,  620,  133,  603, 1605,  613,
 /*  1000 */  1925,  290,  619, 1434, 1786, 1955,   60,  374, 1756, 1991,
 /*  1010 */   583,  476,  102, 1957,  623, 1959, 1960,  618,  218,  613,
 /*  1020 */   139,  216,  127, 1925,  172, 1955, 2044,   69, 1756, 1991,
 /*  1030 */   356, 2040,  102, 1957,  623, 1959, 1960,  618,  578,  613,
 /*  1040 */   603,  133, 1925, 1651, 2133,  101, 2044, 1956,  603,  547,
 /*  1050 */   356, 2040, 2071, 2113,  477,  174, 2052, 2053,  575,  131,
 /*  1060 */  2057, 2078, 1753,  408, 1711,  517,  603,  603, 2119,  175,
 /*  1070 */  2084, 1756, 1521, 2114,  572,  574,  409,   77, 1974, 1756,
 /*  1080 */   141,  543,  235,   76,   75,  404,  620,  424,  182,  220,
 /*  1090 */  1956, 1925,  219,  619,   13,   12,  222, 1756, 1756,  221,
 /*  1100 */   176, 2052, 2053,  647,  131, 2057,  318,  224,   62,  392,
 /*  1110 */   223,  390,  386,  382,  379,  376, 1955,  603, 1387, 1386,
 /*  1120 */  1991, 1974,   85,  102, 1957,  623, 1959, 1960,  618,  620,
 /*  1130 */   613,  587, 1649, 1956, 1925, 2133,  619, 2044,  241,   38,
 /*  1140 */    37,  356, 2040,   44,   42,   41,   40,   39, 1756, 1946,
 /*  1150 */    52,  254, 2091,  559,  520,  546,  178,  211,  248, 1955,
 /*  1160 */  1975, 1552, 1861, 1991, 1974,   98,  102, 1957,  623, 1959,
 /*  1170 */  1960,  618,  620,  613,  603,   95, 2074, 1925, 2133,  619,
 /*  1180 */  2044,   47,  264,  373,  356, 2040,  142,  603,  271, 1639,
 /*  1190 */   535,  243,  144,  603,  603,  554, 1797,  146, 1948,  584,
 /*  1200 */    62,  598, 1955,  256,    1, 1756, 1991,  600,  601,  102,
 /*  1210 */  1957,  623, 1959, 1960,  618, 1956,  613,  603, 1756,  359,
 /*  1220 */   358, 2133,   47, 2044, 1756, 1756,   47,  356, 2040, 1392,
 /*  1230 */   627,  369,  547,  144, 1325,  269, 2113,  146, 2107,  595,
 /*  1240 */  1458, 1139, 1385,    4,  253,  273, 1974,  128, 1756,  663,
 /*  1250 */  1211, 2119,  175, 1495,  620,  144, 2114,  572, 1645, 1925,
 /*  1260 */   664,  619,  378,  579,  383, 1453, 1390, 1389,  332, 1342,
 /*  1270 */   284, 1159,  188,  410, 1406, 1444, 1140, 1384, 1862,  289,
 /*  1280 */  1956,  576, 1157, 1239, 1955,  414, 1243,  445, 1991,  419,
 /*  1290 */  1250,  102, 1957,  623, 1959, 1960,  618, 1401,  613,  431,
 /*  1300 */  1248, 1854,  438, 2133, 1956, 2044,  444,  706,  149,  356,
 /*  1310 */  2040, 1974,  452,  446,  453,  192,  455,  457, 1407,  620,
 /*  1320 */  2063,  458,  467, 1409, 1925,  609,  619,  470,  471,  198,
 /*  1330 */   200, 1408, 1410,  473,  472, 1974,  475,  479, 1113,  498,
 /*  1340 */   203,  500,  205,  620,   80,   81,  209,  496, 1925, 1955,
 /*  1350 */   619,  497, 1746, 1991,  105,  321,  102, 1957,  623, 1959,
 /*  1360 */  1960,  618, 1902,  613, 1956,  215,  534,  536, 2019, 1742,
 /*  1370 */  2044,  285,  217, 1955,  356, 2040,  151, 1991,  152, 1744,
 /*  1380 */   102, 1957,  623, 1959, 1960,  618, 1740,  613, 1393,  153,
 /*  1390 */  1388,  154, 2017, 1901, 2044, 1974,  230,  541,  356, 2040,
 /*  1400 */   537,  233,  544,  620,  538,  560,  551, 1956, 1925, 2090,
 /*  1410 */   619, 2075,  593, 1396, 1398, 2085,  239,  557,  346,  563,
 /*  1420 */   242,    7,  569, 2089,  165,  552,  611, 1451, 1452, 1454,
 /*  1430 */  1455, 1456, 1457, 1955,  549, 1956,  550, 1991, 1974,  252,
 /*  1440 */   102, 1957,  623, 1959, 1960,  618,  620,  613, 2066,  580,
 /*  1450 */   347, 1925,  606,  619, 2044,  249,  577,  247,  356, 2040,
 /*  1460 */   250, 1405,  132,  251, 1521, 2060, 1974,  350,  261,  588,
 /*  1470 */   286,  591,  592, 1873,  620, 1872, 1955, 1871,  352, 1925,
 /*  1480 */  1991,  619,  287,  103, 1957,  623, 1959, 1960,  618,  596,
 /*  1490 */   613, 2112, 1956,  597,  255,   90, 2136, 2044,  288,   59,
 /*  1500 */    92, 2043, 2040, 1757, 1955,   94, 1801, 2025, 1991,  625,
 /*  1510 */   291,  103, 1957,  623, 1959, 1960,  618, 1727,  613,  707,
 /*  1520 */   280,  295,  708, 1974,  710, 2044,   51,  323,  300,  608,
 /*  1530 */  2040,  620,   73,  324,  315, 1919, 1925,  314,  619,  293,
 /*  1540 */   304, 1918, 1917, 1916,   74, 1956, 1913,  380,  381, 1370,
 /*  1550 */  1371,  181,  385, 1911,  387,  388,  389, 1910,  391, 1909,
 /*  1560 */   393,  621, 1908, 1907,  397, 1991,  395, 1956,  103, 1957,
 /*  1570 */   623, 1959, 1960,  618, 1345,  613, 1974, 1344, 1884, 1883,
 /*  1580 */  1882,  403, 2044,  402,  617, 1881,  326, 2040, 1847, 1925,
 /*  1590 */  1846,  619, 1305, 1844,  138, 1843, 1842, 1845, 1974, 1841,
 /*  1600 */  1840, 1838, 1837, 1836,  186,  420,  620,  422, 1834, 1833,
 /*  1610 */  1832, 1925, 1835,  619, 1955, 1831, 1830, 1829, 1991, 1828,
 /*  1620 */  1956,  312, 1957,  623, 1959, 1960,  618,  616,  613,  604,
 /*  1630 */  2009, 1827, 1826, 1825, 1824, 1823, 1955, 1822, 1821, 1820,
 /*  1640 */  1991, 1819, 1818,  161, 1957,  623, 1959, 1960,  618, 1817,
 /*  1650 */   613, 1974, 1816,  140, 1815, 1814, 1813, 1812, 1307,  620,
 /*  1660 */   448, 1811, 1810, 1186, 1925,  196,  619, 1673, 1672, 1670,
 /*  1670 */  1634,  193,  194,  170, 1945, 1633, 1897, 1956, 1099,   71,
 /*  1680 */  1098, 1891, 1880,  204,  548, 2081,  197,   72, 1879, 1955,
 /*  1690 */   463,  465,  202, 1991, 1864, 1735,  162, 1957,  623, 1959,
 /*  1700 */  1960,  618, 1669,  613, 1667, 1665,  480,  481, 1974, 1132,
 /*  1710 */  1663,  482,  484, 1661,  488, 1648,  620,  486,  492, 1647,
 /*  1720 */  1630, 1925,  485,  619,  490, 1737,  494,   61,  489,  214,
 /*  1730 */  1254, 1255, 1956, 1736,  493, 1177, 1176,  679, 1175, 1169,
 /*  1740 */  1659, 1174,  681,  341, 1171, 1652, 1955, 1170,  573, 2134,
 /*  1750 */  1991, 1168,  342,  103, 1957,  623, 1959, 1960,  618, 1650,
 /*  1760 */   613,  518,  521, 1974,  343, 1629,  523, 2044, 1628,  525,
 /*  1770 */  1627,  620, 2041,  527,  104, 1956, 1925,  531,  619, 1360,
 /*  1780 */    26, 1359, 1896, 1351,   55, 1890, 1362,  234,  155,  539,
 /*  1790 */  1878, 1876, 2118,   19,  540, 1956, 1567,   16,  553,   58,
 /*  1800 */   245, 1955,  555,   28,  246, 1991, 1974, 1946,  161, 1957,
 /*  1810 */   623, 1959, 1960,  618,  620,  613,   30,  545,   20, 1925,
 /*  1820 */   238,  619,  344,  240,   63, 1551, 1974,   21,  163,    5,
 /*  1830 */  1582,  244,    6,   29,  620, 1543, 1587,   86, 1581, 1925,
 /*  1840 */  1588,  619,   17,  348, 1955, 1586, 1585,  349, 1991, 1518,
 /*  1850 */  2082,  306, 1957,  623, 1959, 1960,  618,   57,  613, 1517,
 /*  1860 */  1956,  258,   56,  166, 1955, 1877, 1875, 1874, 1991,   22,
 /*  1870 */   265,  162, 1957,  623, 1959, 1960,  618,  263,  613, 1863,
 /*  1880 */    89, 1549,  270,   88,   91,  594,  275,   95,  272,   23,
 /*  1890 */    12, 1974, 1394, 1994,  612,  568,  351, 1448, 1480,  620,
 /*  1900 */   167, 1446, 1470,   36, 1925,   15,  619,  179, 1425,  624,
 /*  1910 */   626, 1956, 1445,   24, 1232, 1417,   25,  364,  630, 1240,
 /*  1920 */  1469,   10,  622,  628, 2135, 1237,  631,  633, 1234, 1955,
 /*  1930 */   634,  636,  637, 1991, 1228, 1956,  313, 1957,  623, 1959,
 /*  1940 */  1960,  618, 1974,  613, 1226,  639,  640,  278, 1217, 1231,
 /*  1950 */   617,  646, 1230, 1229,   96, 1925, 1249,  619,   97,   70,
 /*  1960 */  1245, 1130,  656, 1165, 1164, 1163, 1974, 1162, 1161, 1160,
 /*  1970 */  1158,  361, 1156,  668,  620, 1155, 1154, 1184, 1152, 1925,
 /*  1980 */  1955,  619, 1151,  279, 1991, 1150, 1149,  312, 1957,  623,
 /*  1990 */  1959, 1960,  618, 1956,  613, 1148, 2010, 1147, 1136, 1146,
 /*  2000 */  1145, 1181, 1179, 1142, 1955, 1141, 1138, 1137, 1991, 1135,
 /*  2010 */  1666,  313, 1957,  623, 1959, 1960,  618,  689,  613, 1664,
 /*  2020 */   691,  693,  695,  690, 1974,  694, 1662,  697,  699,  363,
 /*  2030 */  1660,  701,  620,  698,  703,  702, 1646, 1925,  705,  619,
 /*  2040 */  1088, 1626,  282,  709, 1601, 1380,  292, 1601,  712,  713,
 /*  2050 */  1956, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2060 */  1601, 1601, 1955, 1601, 1601, 1601, 1991, 1601, 1601,  313,
 /*  2070 */  1957,  623, 1959, 1960,  618, 1601,  613, 1601, 1956, 1601,
 /*  2080 */  1601, 1974, 1601, 1601, 1601, 1601, 1601, 1601, 1601,  620,
 /*  2090 */  1601, 1601, 1601, 1601, 1925, 1601,  619, 1601, 1601, 1601,
 /*  2100 */  1601, 1601, 1601, 1601, 1956, 1601, 1601, 1601, 1601, 1974,
 /*  2110 */  1601, 1601, 1601, 1601, 1601, 1601, 1601,  620, 1601,  533,
 /*  2120 */  1601, 1601, 1925, 1991,  619, 1601,  308, 1957,  623, 1959,
 /*  2130 */  1960,  618, 1601,  613, 1601, 1974, 1601, 1601, 1601, 1601,
 /*  2140 */  1601, 1601, 1601,  620, 1601, 1601, 1601, 1955, 1925, 1601,
 /*  2150 */   619, 1991, 1601, 1601,  297, 1957,  623, 1959, 1960,  618,
 /*  2160 */  1601,  613, 1601, 1956, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2170 */  1601, 1601, 1601, 1955, 1601, 1601, 1601, 1991, 1601, 1956,
 /*  2180 */   298, 1957,  623, 1959, 1960,  618, 1601,  613, 1601, 1601,
 /*  2190 */  1601, 1601, 1601, 1601, 1974, 1601, 1601, 1601, 1601, 1601,
 /*  2200 */  1601, 1601,  620, 1601, 1601, 1601, 1601, 1925, 1601,  619,
 /*  2210 */  1974, 1601, 1601, 1601, 1601, 1601, 1601, 1601,  620, 1601,
 /*  2220 */  1601, 1601, 1601, 1925, 1601,  619, 1601, 1601, 1601, 1601,
 /*  2230 */  1601, 1601, 1955, 1956, 1601, 1601, 1991, 1601, 1601,  299,
 /*  2240 */  1957,  623, 1959, 1960,  618, 1601,  613, 1601, 1955, 1601,
 /*  2250 */  1601, 1601, 1991, 1956, 1601,  305, 1957,  623, 1959, 1960,
 /*  2260 */   618, 1601,  613, 1601, 1974, 1601, 1601, 1601, 1601, 1601,
 /*  2270 */  1601, 1601,  620, 1601, 1601, 1601, 1601, 1925, 1601,  619,
 /*  2280 */  1601, 1601, 1601, 1601, 1974, 1601, 1601, 1601, 1601, 1601,
 /*  2290 */  1601, 1601,  620, 1601, 1601, 1601, 1601, 1925, 1601,  619,
 /*  2300 */  1601, 1601, 1955, 1601, 1601, 1601, 1991, 1601, 1956,  309,
 /*  2310 */  1957,  623, 1959, 1960,  618, 1601,  613, 1601, 1601, 1601,
 /*  2320 */  1601, 1601, 1955, 1601, 1601, 1956, 1991, 1601, 1601,  301,
 /*  2330 */  1957,  623, 1959, 1960,  618, 1601,  613, 1601, 1601, 1974,
 /*  2340 */  1601, 1601, 1601, 1601, 1601, 1601, 1601,  620, 1601, 1601,
 /*  2350 */  1601, 1601, 1925, 1601,  619, 1601, 1974, 1601, 1601, 1601,
 /*  2360 */  1601, 1601, 1601, 1601,  620, 1601, 1601, 1601, 1956, 1925,
 /*  2370 */  1601,  619, 1601, 1601, 1601, 1601, 1601, 1955, 1601, 1601,
 /*  2380 */  1601, 1991, 1601, 1601,  310, 1957,  623, 1959, 1960,  618,
 /*  2390 */  1601,  613, 1601, 1601, 1955, 1601, 1601, 1601, 1991, 1974,
 /*  2400 */  1601,  302, 1957,  623, 1959, 1960,  618,  620,  613, 1601,
 /*  2410 */  1601, 1601, 1925, 1601,  619, 1601, 1601, 1601, 1601, 1601,
 /*  2420 */  1601, 1601, 1601, 1956, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2430 */  1601, 1601, 1601, 1601, 1601, 1601, 1601, 1955, 1601, 1601,
 /*  2440 */  1601, 1991, 1601, 1601,  311, 1957,  623, 1959, 1960,  618,
 /*  2450 */  1601,  613, 1601, 1601, 1974, 1601, 1601, 1601, 1601, 1601,
 /*  2460 */  1601, 1601,  620, 1601, 1601, 1601, 1601, 1925, 1601,  619,
 /*  2470 */  1601, 1601, 1601, 1601, 1601, 1601, 1956, 1601, 1601, 1601,
 /*  2480 */  1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2490 */  1601, 1601, 1955, 1601, 1601, 1601, 1991, 1601, 1601,  303,
 /*  2500 */  1957,  623, 1959, 1960,  618, 1601,  613, 1974, 1601, 1601,
 /*  2510 */  1601, 1601, 1601, 1601, 1601,  620, 1601, 1601, 1601, 1601,
 /*  2520 */  1925, 1601,  619, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2530 */  1601, 1956, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2540 */  1601, 1601, 1601, 1601, 1601, 1955, 1601, 1956, 1601, 1991,
 /*  2550 */  1601, 1601,  316, 1957,  623, 1959, 1960,  618, 1601,  613,
 /*  2560 */  1601, 1601, 1974, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2570 */   620, 1601, 1601, 1601, 1601, 1925, 1601,  619, 1974, 1601,
 /*  2580 */  1601, 1601, 1601, 1601, 1601, 1601,  620, 1601, 1601, 1601,
 /*  2590 */  1601, 1925, 1601,  619, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2600 */  1955, 1956, 1601, 1601, 1991, 1601, 1601,  317, 1957,  623,
 /*  2610 */  1959, 1960,  618, 1601,  613, 1601, 1955, 1601, 1601, 1601,
 /*  2620 */  1991, 1956, 1601, 1968, 1957,  623, 1959, 1960,  618, 1601,
 /*  2630 */   613, 1601, 1974, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2640 */   620, 1601, 1601, 1601, 1601, 1925, 1601,  619, 1601, 1601,
 /*  2650 */  1601, 1601, 1974, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2660 */   620, 1601, 1601, 1601, 1601, 1925, 1601,  619, 1601, 1601,
 /*  2670 */  1955, 1601, 1601, 1601, 1991, 1601, 1956, 1967, 1957,  623,
 /*  2680 */  1959, 1960,  618, 1601,  613, 1601, 1601, 1601, 1601, 1601,
 /*  2690 */  1955, 1601, 1601, 1956, 1991, 1601, 1601, 1966, 1957,  623,
 /*  2700 */  1959, 1960,  618, 1601,  613, 1601, 1601, 1974, 1601, 1601,
 /*  2710 */  1601, 1601, 1601, 1601, 1601,  620, 1601, 1601, 1601, 1601,
 /*  2720 */  1925, 1601,  619, 1601, 1974, 1601, 1601, 1601, 1601, 1601,
 /*  2730 */  1601, 1601,  620, 1601, 1601, 1601, 1956, 1925, 1601,  619,
 /*  2740 */  1601, 1601, 1601, 1601, 1601, 1955, 1601, 1601, 1601, 1991,
 /*  2750 */  1601, 1601,  328, 1957,  623, 1959, 1960,  618, 1601,  613,
 /*  2760 */  1601, 1601, 1955, 1601, 1601, 1601, 1991, 1974, 1601,  329,
 /*  2770 */  1957,  623, 1959, 1960,  618,  620,  613, 1601, 1601, 1601,
 /*  2780 */  1925, 1601,  619, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2790 */  1601, 1956, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2800 */  1601, 1601, 1601, 1601, 1601, 1955, 1601, 1601, 1601, 1991,
 /*  2810 */  1601, 1601,  325, 1957,  623, 1959, 1960,  618, 1601,  613,
 /*  2820 */  1601, 1601, 1974, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2830 */   620, 1601, 1601, 1601, 1601, 1925, 1601,  619, 1601, 1601,
 /*  2840 */  1601, 1601, 1601, 1601, 1956, 1601, 1601, 1601, 1601, 1601,
 /*  2850 */  1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2860 */  1955, 1601, 1601, 1601, 1991, 1601, 1601,  330, 1957,  623,
 /*  2870 */  1959, 1960,  618, 1601,  613, 1974, 1601, 1601, 1601, 1601,
 /*  2880 */  1601, 1601, 1601,  620, 1601, 1601, 1601, 1601, 1925, 1601,
 /*  2890 */   619, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1956,
 /*  2900 */  1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2910 */  1601, 1601, 1601,  621, 1601, 1601, 1601, 1991, 1601, 1601,
 /*  2920 */   308, 1957,  623, 1959, 1960,  618, 1601,  613, 1601, 1601,
 /*  2930 */  1974, 1601, 1601, 1601, 1601, 1601, 1601, 1601,  620, 1601,
 /*  2940 */  1601, 1601, 1601, 1925, 1601,  619, 1601, 1601, 1601, 1601,
 /*  2950 */  1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601,
 /*  2960 */  1601, 1601, 1601, 1601, 1601, 1601, 1601, 1601, 1955, 1601,
 /*  2970 */  1601, 1601, 1991, 1601, 1601,  307, 1957,  623, 1959, 1960,
 /*  2980 */   618, 1601,  613,
};
static const YYCODETYPE yy_lookahead[] = {
 /*     0 */   328,  332,  360,  334,  335,  430,  374,  419,  420,  434,
 /*    10 */   343,  359,   12,   13,   14,  348,  384,  430,  366,  387,
 /*    20 */    20,  434,   22,    0,  449,  450,  336,  375,  351,  454,
 /*    30 */   455,  359,   14,   33,   20,   35,  359,  450,   20,  367,
 /*    40 */   350,  454,  455,  388,  372,  368,  374,   24,   25,   26,
 /*    50 */    27,   28,   29,   30,   31,   32,   20,  367,   58,  358,
 /*    60 */     8,    9,   20,   63,   12,   13,   14,   15,   16,  397,
 /*    70 */    70,  403,  371,  401,   20,   20,  404,  405,  406,  407,
 /*    80 */   408,  409,  430,  411,  359,  430,  434,   62,  416,  434,
 /*    90 */   418,  366,  361,   20,  422,  423,   96,  429,  388,  328,
 /*   100 */   375,  449,  450,  372,  449,  450,  454,  455,  436,  454,
 /*   110 */   455,   12,   13,   14,   15,   16,  444,   21,  118,   62,
 /*   120 */    24,   25,   26,   27,   28,   29,   30,   31,   32,   20,
 /*   130 */   359,  400,  401,  133,  134,   14,   15,   16,  367,  327,
 /*   140 */   430,  329,  411,  372,  434,  374,   12,   13,  342,   97,
 /*   150 */    96,   96,  359,    0,   20,  332,   22,  334,  335,  449,
 /*   160 */   450,    4,  162,  163,  454,  455,  430,   33,  397,   35,
 /*   170 */   434,  365,  401,  380,  381,  404,  405,  406,  407,  408,
 /*   180 */   409,  181,  411,  183,   20,  414,  450,  416,  417,  418,
 /*   190 */   454,  455,   58,  422,  423,   20,   35,   63,  162,  163,
 /*   200 */    43,   48,   45,   46,   70,   96,  206,  207,    0,  209,
 /*   210 */   210,  211,  212,  213,  214,  215,  216,  217,  218,  219,
 /*   220 */   220,  221,  222,  223,  224,  225,  226,  227,  228,   21,
 /*   230 */    96,   70,   24,   25,   26,   27,   28,   29,   30,   31,
 /*   240 */    32,   65,   66,   67,   18,    0,   20,   58,  359,   73,
 /*   250 */    74,  367,  118,   27,   78,  366,   30,  336,   96,   33,
 /*   260 */    84,   85,  378,  336,  375,  107,   90,  133,  134,  370,
 /*   270 */   359,  350,  373,  374,   48,  351,   50,  350,  357,   53,
 /*   280 */     0,   12,   13,  359,  357,   96,  375,   98,  367,   20,
 /*   290 */   403,   22,  368,  336,  367,  333,  162,  163,  336,  337,
 /*   300 */   246,  246,   33,   20,   35,   22,    4,  350,  133,  134,
 /*   310 */    65,   66,   67,   96,  342,  181,  429,  183,   73,   74,
 /*   320 */    96,   95,  333,   78,  367,  336,  337,   58,  356,   84,
 /*   330 */    85,   20,   63,  107,   51,   90,  230,  365,  232,   70,
 /*   340 */   206,  207,   62,  209,  210,  211,  212,  213,  214,  215,
 /*   350 */   216,  217,  218,  219,  220,  221,  222,  223,  224,  225,
 /*   360 */   226,  227,  228,  137,  230,   96,  140,  141,  142,  143,
 /*   370 */   144,  145,  146,  147,  148,  149,  150,  151,  152,  153,
 /*   380 */   154,  155,  156,   70,  158,  159,  160,  118,    8,    9,
 /*   390 */   328,  127,   12,   13,   14,   15,   16,   33,   96,   20,
 /*   400 */    20,   22,  133,  134,  180,  128,  182,  359,  246,  325,
 /*   410 */    63,   21,   48,  336,   35,   12,   13,   14,   54,   55,
 /*   420 */    56,   57,   58,   20,   34,   22,   36,  345,  346,  381,
 /*   430 */    51,  162,  163,  336,  372,  246,   33,  336,   35,  352,
 /*   440 */     8,    9,  355,  336,   12,   13,   14,   15,   16,  206,
 /*   450 */   181,  350,  183,  376,  190,  191,  167,  350,   80,   95,
 /*   460 */     0,   58,   98,  246,  367,  188,  189,   20,  367,  192,
 /*   470 */   246,  194,  388,   70,  367,  206,  207,  230,  209,  210,
 /*   480 */   211,  212,  213,  214,  215,  216,  217,  218,  219,  220,
 /*   490 */   221,  222,  223,  224,  225,  226,  227,  228,  176,   96,
 /*   500 */   257,  258,  259,  260,  261,    8,    9,   70,  328,   12,
 /*   510 */    13,   14,   15,   16,  430,  367,  138,  139,  434,  197,
 /*   520 */   198,  118,  425,  426,  427,  428,  378,  430,  431,  165,
 /*   530 */   166,  336,  168,  449,  450,  171,  133,  134,  454,  455,
 /*   540 */   251,  252,  253,  360,  164,  350,  336,  359,  246,   12,
 /*   550 */    13,  187,  372,  206,    4,  367,  351,   20,    0,   22,
 /*   560 */    63,  415,  367,  417,  359,  162,  163,  161,  108,   19,
 /*   570 */    33,  340,   35,  368,    8,    9,    4,  367,   12,   13,
 /*   580 */    14,   15,   16,   33,  181,  354,  183,  127,  128,  129,
 /*   590 */   130,  131,  132,  362,  406,   58,  127,  128,   48,    1,
 /*   600 */     2,  132,  105,   53,  360,  173,  403,   70,   58,  206,
 /*   610 */   207,  164,  209,  210,  211,  212,  213,  214,  215,  216,
 /*   620 */   217,  218,  219,  220,  221,  222,  223,  224,  225,  226,
 /*   630 */   227,  228,  429,   96,  328,  328,  426,  427,  428,  233,
 /*   640 */   430,  431,  345,  346,  434,   95,    8,    9,   98,  243,
 /*   650 */    12,   13,   14,   15,   16,  118,   45,   46,  161,  449,
 /*   660 */   450,  360,    2,   97,  454,  455,  108,  336,    8,    9,
 /*   670 */   133,  134,   12,   13,   14,   15,   16,  328,  372,  372,
 /*   680 */   328,  350,   44,   12,   13,  127,  128,  129,  130,  131,
 /*   690 */   132,   20,   20,   22,    3,   97,  373,  374,  367,  162,
 /*   700 */   163,   14,  270,    2,   33,   58,   35,   20,  367,    8,
 /*   710 */     9,   20,  392,   12,   13,   14,   15,   16,  181,  378,
 /*   720 */   183,  372,   14,  414,  372,    0,  417,  360,   20,   58,
 /*   730 */   233,  234,  235,  236,  237,  238,  239,  240,  241,  242,
 /*   740 */   243,   70,   95,  206,  207,   98,  209,  210,  211,  212,
 /*   750 */   213,  214,  215,  216,  217,  218,  219,  220,  221,  222,
 /*   760 */   223,  224,  225,  226,  227,  228,  328,   96,  109,  110,
 /*   770 */   111,  112,  113,  114,  115,  116,  117,  118,  119,   22,
 /*   780 */   121,  122,  123,  124,  125,  126,   37,   62,   97,  118,
 /*   790 */     8,    9,   35,   19,   12,   13,   14,   15,   16,  374,
 /*   800 */   328,  388,  340,  108,  133,  134,  361,   33,   20,  415,
 /*   810 */   372,  417,  387,    3,  328,  328,  328,  372,  108,  247,
 /*   820 */   328,  328,   48,  369,  362,  130,  372,   70,   54,   55,
 /*   830 */    56,   57,   58,  162,  163,    0,  164,  127,  128,  129,
 /*   840 */   130,  131,  132,  430,  372,  400,  401,  434,   99,  162,
 /*   850 */   101,  102,  181,  104,  183,  164,  411,  108,  372,  372,
 /*   860 */   372,   20,  449,  450,  372,  372,   39,  454,  455,   95,
 /*   870 */   162,  369,   98,  369,  372,  118,  372,  206,  207,  130,
 /*   880 */   209,  210,  211,  212,  213,  214,  215,  216,  217,  218,
 /*   890 */   219,  220,  221,  222,  223,  224,  225,  226,  227,  228,
 /*   900 */    65,   66,   67,   68,   69,  131,   71,   72,   73,   74,
 /*   910 */    75,   76,   77,   78,   79,   80,   81,   82,   83,   84,
 /*   920 */    85,   86,   87,   88,   89,   90,   91,   92,   18,  328,
 /*   930 */   328,  360,  359,   23,  328,    0,  328,  328,  181,   44,
 /*   940 */   183,  368,  168,  347,  361,  349,  164,   37,   38,  361,
 /*   950 */     0,   41,  164,  244,  245,  372,  328,  133,  134,  185,
 /*   960 */   372,  187,  336,  206,  207,  336,   42,  359,   44,   59,
 /*   970 */    60,   61,   22,  372,  372,  367,  350,  336,  372,  328,
 /*   980 */   372,  372,  374,  400,  401,  402,  329,  359,  400,  401,
 /*   990 */   402,  350,   97,  367,  411,  367,  367,  336,  328,  411,
 /*  1000 */   372,  352,  374,  162,  355,  397,   96,  388,  367,  401,
 /*  1010 */   336,  350,  404,  405,  406,  407,  408,  409,  100,  411,
 /*  1020 */    42,  103,   44,  372,  416,  397,  418,  107,  367,  401,
 /*  1030 */   422,  423,  404,  405,  406,  407,  408,  409,   44,  411,
 /*  1040 */   336,  367,  372,    0,  416,  135,  418,  328,  336,  430,
 /*  1050 */   422,  423,  444,  434,  350,  426,  427,  428,   44,  430,
 /*  1060 */   431,  433,  350,   22,  348,   22,  336,  336,  449,  450,
 /*  1070 */   382,  367,  245,  454,  455,  265,   35,  157,  359,  367,
 /*  1080 */   350,  350,   58,  173,  174,  175,  367,  152,  178,  100,
 /*  1090 */   328,  372,  103,  374,    1,    2,  100,  367,  367,  103,
 /*  1100 */   426,  427,  428,  360,  430,  431,  196,  100,   44,  199,
 /*  1110 */   103,  201,  202,  203,  204,  205,  397,  336,   35,   35,
 /*  1120 */   401,  359,   98,  404,  405,  406,  407,  408,  409,  367,
 /*  1130 */   411,  350,    0,  328,  372,  416,  374,  418,   44,    8,
 /*  1140 */     9,  422,  423,   12,   13,   14,   15,   16,  367,   47,
 /*  1150 */   164,  458,  433,  447,   22,  169,  246,  338,  441,  397,
 /*  1160 */   359,   97,  382,  401,  359,   96,  404,  405,  406,  407,
 /*  1170 */   408,  409,  367,  411,  336,  106,  382,  372,  416,  374,
 /*  1180 */   418,   44,   44,  338,  422,  423,   44,  336,  350,  335,
 /*  1190 */   388,   97,   44,  336,  336,  433,  371,   44,   96,  432,
 /*  1200 */    44,  350,  397,  451,  435,  367,  401,  350,  350,  404,
 /*  1210 */   405,  406,  407,  408,  409,  328,  411,  336,  367,   12,
 /*  1220 */    13,  416,   44,  418,  367,  367,   44,  422,  423,   22,
 /*  1230 */    44,  350,  430,   44,   97,   97,  434,   44,  433,   97,
 /*  1240 */    33,   35,   35,  248,  424,   97,  359,   44,  367,   13,
 /*  1250 */    97,  449,  450,   97,  367,   44,  454,  455,    0,  372,
 /*  1260 */    13,  374,  399,  269,   48,   58,  183,  183,  398,  179,
 /*  1270 */   390,   35,   42,  379,   20,   97,   70,   70,  382,   97,
 /*  1280 */   328,  267,   35,   97,  397,  379,   97,  161,  401,  377,
 /*  1290 */    97,  404,  405,  406,  407,  408,  409,   20,  411,  336,
 /*  1300 */    97,  336,  379,  416,  328,  418,  377,   49,   97,  422,
 /*  1310 */   423,  359,   94,  377,  344,  336,  336,  336,   20,  367,
 /*  1320 */   433,  330,  330,   20,  372,  118,  374,  394,  374,  342,
 /*  1330 */   342,   20,   20,  389,  337,  359,  337,  336,   52,  330,
 /*  1340 */   342,  359,  342,  367,  342,  342,  342,  339,  372,  397,
 /*  1350 */   374,  339,  359,  401,  336,  330,  404,  405,  406,  407,
 /*  1360 */   408,  409,  372,  411,  328,  359,  195,  396,  416,  359,
 /*  1370 */   418,  394,  359,  397,  422,  423,  359,  401,  359,  359,
 /*  1380 */   404,  405,  406,  407,  408,  409,  359,  411,  181,  359,
 /*  1390 */   183,  359,  416,  372,  418,  359,  340,  374,  422,  423,
 /*  1400 */   186,  340,  336,  367,  393,  256,  372,  328,  372,  440,
 /*  1410 */   374,  382,  255,  206,  207,  382,  385,  372,  372,  372,
 /*  1420 */   385,  262,  172,  440,  440,  264,  219,  220,  221,  222,
 /*  1430 */   223,  224,  225,  397,  249,  328,  263,  401,  359,  399,
 /*  1440 */   404,  405,  406,  407,  408,  409,  367,  411,  443,  268,
 /*  1450 */   271,  372,  416,  374,  418,  439,  266,  442,  422,  423,
 /*  1460 */   438,   20,  367,  437,  245,  403,  359,  337,  340,  336,
 /*  1470 */   385,  372,  372,  372,  367,  372,  397,  372,  372,  372,
 /*  1480 */   401,  374,  385,  404,  405,  406,  407,  408,  409,  166,
 /*  1490 */   411,  453,  328,  383,  452,  340,  459,  418,  355,   96,
 /*  1500 */   340,  422,  423,  367,  397,   96,  372,  421,  401,  363,
 /*  1510 */   336,  404,  405,  406,  407,  408,  409,  349,  411,   36,
 /*  1520 */   340,  326,  331,  359,  330,  418,  391,  386,  353,  422,
 /*  1530 */   423,  367,  188,  386,  395,    0,  372,  353,  374,  341,
 /*  1540 */   353,    0,    0,    0,   42,  328,    0,   35,  200,   35,
 /*  1550 */    35,   35,  200,    0,   35,   35,  200,    0,  200,    0,
 /*  1560 */    35,  397,    0,    0,   35,  401,   22,  328,  404,  405,
 /*  1570 */   406,  407,  408,  409,  183,  411,  359,  181,    0,    0,
 /*  1580 */     0,  176,  418,  177,  367,    0,  422,  423,    0,  372,
 /*  1590 */     0,  374,   47,    0,   42,    0,    0,    0,  359,    0,
 /*  1600 */     0,    0,    0,    0,  152,   35,  367,  152,    0,    0,
 /*  1610 */     0,  372,    0,  374,  397,    0,    0,    0,  401,    0,
 /*  1620 */   328,  404,  405,  406,  407,  408,  409,  410,  411,  412,
 /*  1630 */   413,    0,    0,    0,    0,    0,  397,    0,    0,    0,
 /*  1640 */   401,    0,    0,  404,  405,  406,  407,  408,  409,    0,
 /*  1650 */   411,  359,    0,   42,    0,    0,    0,    0,   22,  367,
 /*  1660 */   136,    0,    0,   35,  372,   42,  374,    0,    0,    0,
 /*  1670 */     0,   58,   58,   44,   47,    0,    0,  328,   14,   39,
 /*  1680 */    14,    0,    0,  172,  445,  446,   40,   39,    0,  397,
 /*  1690 */    47,   47,   39,  401,    0,    0,  404,  405,  406,  407,
 /*  1700 */   408,  409,    0,  411,    0,    0,   35,   48,  359,   64,
 /*  1710 */     0,   39,   35,    0,   35,    0,  367,   39,   35,    0,
 /*  1720 */     0,  372,   48,  374,   39,    0,   39,  105,   48,  103,
 /*  1730 */    22,   35,  328,    0,   48,   35,   35,   44,   35,   22,
 /*  1740 */     0,   35,   44,   22,   35,    0,  397,   35,  456,  457,
 /*  1750 */   401,   35,   22,  404,  405,  406,  407,  408,  409,    0,
 /*  1760 */   411,   50,   35,  359,   22,    0,   35,  418,    0,   35,
 /*  1770 */     0,  367,  423,   22,   20,  328,  372,  193,  374,   35,
 /*  1780 */    96,   35,    0,   35,  164,    0,   97,  166,  184,   22,
 /*  1790 */     0,    0,    3,   44,  164,  328,   97,  250,  229,   44,
 /*  1800 */    44,  397,  254,   96,   47,  401,  359,   47,  404,  405,
 /*  1810 */   406,  407,  408,  409,  367,  411,   44,  170,  250,  372,
 /*  1820 */    96,  374,  164,   97,    3,   97,  359,   44,   96,  169,
 /*  1830 */    35,   96,  169,   96,  367,   97,   97,   96,   35,  372,
 /*  1840 */    97,  374,  250,   35,  397,   35,   35,   35,  401,   97,
 /*  1850 */   446,  404,  405,  406,  407,  408,  409,   44,  411,   97,
 /*  1860 */   328,   47,  244,   47,  397,    0,    0,    0,  401,   96,
 /*  1870 */    96,  404,  405,  406,  407,  408,  409,   97,  411,    0,
 /*  1880 */    39,   97,   96,   96,   96,  167,   47,  106,  165,   44,
 /*  1890 */     2,  359,   22,   96,   96,  448,  364,   97,  206,  367,
 /*  1900 */    47,   97,  229,   96,  372,   96,  374,   47,   22,  107,
 /*  1910 */    35,  328,   97,   96,  120,   97,   96,   35,   35,   97,
 /*  1920 */   229,  231,  208,   96,  457,   97,   96,   35,   97,  397,
 /*  1930 */    96,   35,   96,  401,   97,  328,  404,  405,  406,  407,
 /*  1940 */   408,  409,  359,  411,   97,   35,   96,   44,   22,  120,
 /*  1950 */   367,  108,  120,  120,   96,  372,   35,  374,   96,   96,
 /*  1960 */    22,   64,   63,   35,   35,   35,  359,   35,   35,   35,
 /*  1970 */    35,  364,   35,   93,  367,   35,   35,   70,   35,  372,
 /*  1980 */   397,  374,   35,   44,  401,   22,   35,  404,  405,  406,
 /*  1990 */   407,  408,  409,  328,  411,   22,  413,   35,   22,   35,
 /*  2000 */    35,   70,   35,   35,  397,   35,   35,   35,  401,   35,
 /*  2010 */     0,  404,  405,  406,  407,  408,  409,   35,  411,    0,
 /*  2020 */    39,   35,   39,   48,  359,   48,    0,   35,   39,  364,
 /*  2030 */     0,   35,  367,   48,   39,   48,    0,  372,   35,  374,
 /*  2040 */    35,    0,   22,   21,  460,   22,   22,  460,   21,   20,
 /*  2050 */   328,  460,  460,  460,  460,  460,  460,  460,  460,  460,
 /*  2060 */   460,  460,  397,  460,  460,  460,  401,  460,  460,  404,
 /*  2070 */   405,  406,  407,  408,  409,  460,  411,  460,  328,  460,
 /*  2080 */   460,  359,  460,  460,  460,  460,  460,  460,  460,  367,
 /*  2090 */   460,  460,  460,  460,  372,  460,  374,  460,  460,  460,
 /*  2100 */   460,  460,  460,  460,  328,  460,  460,  460,  460,  359,
 /*  2110 */   460,  460,  460,  460,  460,  460,  460,  367,  460,  397,
 /*  2120 */   460,  460,  372,  401,  374,  460,  404,  405,  406,  407,
 /*  2130 */   408,  409,  460,  411,  460,  359,  460,  460,  460,  460,
 /*  2140 */   460,  460,  460,  367,  460,  460,  460,  397,  372,  460,
 /*  2150 */   374,  401,  460,  460,  404,  405,  406,  407,  408,  409,
 /*  2160 */   460,  411,  460,  328,  460,  460,  460,  460,  460,  460,
 /*  2170 */   460,  460,  460,  397,  460,  460,  460,  401,  460,  328,
 /*  2180 */   404,  405,  406,  407,  408,  409,  460,  411,  460,  460,
 /*  2190 */   460,  460,  460,  460,  359,  460,  460,  460,  460,  460,
 /*  2200 */   460,  460,  367,  460,  460,  460,  460,  372,  460,  374,
 /*  2210 */   359,  460,  460,  460,  460,  460,  460,  460,  367,  460,
 /*  2220 */   460,  460,  460,  372,  460,  374,  460,  460,  460,  460,
 /*  2230 */   460,  460,  397,  328,  460,  460,  401,  460,  460,  404,
 /*  2240 */   405,  406,  407,  408,  409,  460,  411,  460,  397,  460,
 /*  2250 */   460,  460,  401,  328,  460,  404,  405,  406,  407,  408,
 /*  2260 */   409,  460,  411,  460,  359,  460,  460,  460,  460,  460,
 /*  2270 */   460,  460,  367,  460,  460,  460,  460,  372,  460,  374,
 /*  2280 */   460,  460,  460,  460,  359,  460,  460,  460,  460,  460,
 /*  2290 */   460,  460,  367,  460,  460,  460,  460,  372,  460,  374,
 /*  2300 */   460,  460,  397,  460,  460,  460,  401,  460,  328,  404,
 /*  2310 */   405,  406,  407,  408,  409,  460,  411,  460,  460,  460,
 /*  2320 */   460,  460,  397,  460,  460,  328,  401,  460,  460,  404,
 /*  2330 */   405,  406,  407,  408,  409,  460,  411,  460,  460,  359,
 /*  2340 */   460,  460,  460,  460,  460,  460,  460,  367,  460,  460,
 /*  2350 */   460,  460,  372,  460,  374,  460,  359,  460,  460,  460,
 /*  2360 */   460,  460,  460,  460,  367,  460,  460,  460,  328,  372,
 /*  2370 */   460,  374,  460,  460,  460,  460,  460,  397,  460,  460,
 /*  2380 */   460,  401,  460,  460,  404,  405,  406,  407,  408,  409,
 /*  2390 */   460,  411,  460,  460,  397,  460,  460,  460,  401,  359,
 /*  2400 */   460,  404,  405,  406,  407,  408,  409,  367,  411,  460,
 /*  2410 */   460,  460,  372,  460,  374,  460,  460,  460,  460,  460,
 /*  2420 */   460,  460,  460,  328,  460,  460,  460,  460,  460,  460,
 /*  2430 */   460,  460,  460,  460,  460,  460,  460,  397,  460,  460,
 /*  2440 */   460,  401,  460,  460,  404,  405,  406,  407,  408,  409,
 /*  2450 */   460,  411,  460,  460,  359,  460,  460,  460,  460,  460,
 /*  2460 */   460,  460,  367,  460,  460,  460,  460,  372,  460,  374,
 /*  2470 */   460,  460,  460,  460,  460,  460,  328,  460,  460,  460,
 /*  2480 */   460,  460,  460,  460,  460,  460,  460,  460,  460,  460,
 /*  2490 */   460,  460,  397,  460,  460,  460,  401,  460,  460,  404,
 /*  2500 */   405,  406,  407,  408,  409,  460,  411,  359,  460,  460,
 /*  2510 */   460,  460,  460,  460,  460,  367,  460,  460,  460,  460,
 /*  2520 */   372,  460,  374,  460,  460,  460,  460,  460,  460,  460,
 /*  2530 */   460,  328,  460,  460,  460,  460,  460,  460,  460,  460,
 /*  2540 */   460,  460,  460,  460,  460,  397,  460,  328,  460,  401,
 /*  2550 */   460,  460,  404,  405,  406,  407,  408,  409,  460,  411,
 /*  2560 */   460,  460,  359,  460,  460,  460,  460,  460,  460,  460,
 /*  2570 */   367,  460,  460,  460,  460,  372,  460,  374,  359,  460,
 /*  2580 */   460,  460,  460,  460,  460,  460,  367,  460,  460,  460,
 /*  2590 */   460,  372,  460,  374,  460,  460,  460,  460,  460,  460,
 /*  2600 */   397,  328,  460,  460,  401,  460,  460,  404,  405,  406,
 /*  2610 */   407,  408,  409,  460,  411,  460,  397,  460,  460,  460,
 /*  2620 */   401,  328,  460,  404,  405,  406,  407,  408,  409,  460,
 /*  2630 */   411,  460,  359,  460,  460,  460,  460,  460,  460,  460,
 /*  2640 */   367,  460,  460,  460,  460,  372,  460,  374,  460,  460,
 /*  2650 */   460,  460,  359,  460,  460,  460,  460,  460,  460,  460,
 /*  2660 */   367,  460,  460,  460,  460,  372,  460,  374,  460,  460,
 /*  2670 */   397,  460,  460,  460,  401,  460,  328,  404,  405,  406,
 /*  2680 */   407,  408,  409,  460,  411,  460,  460,  460,  460,  460,
 /*  2690 */   397,  460,  460,  328,  401,  460,  460,  404,  405,  406,
 /*  2700 */   407,  408,  409,  460,  411,  460,  460,  359,  460,  460,
 /*  2710 */   460,  460,  460,  460,  460,  367,  460,  460,  460,  460,
 /*  2720 */   372,  460,  374,  460,  359,  460,  460,  460,  460,  460,
 /*  2730 */   460,  460,  367,  460,  460,  460,  328,  372,  460,  374,
 /*  2740 */   460,  460,  460,  460,  460,  397,  460,  460,  460,  401,
 /*  2750 */   460,  460,  404,  405,  406,  407,  408,  409,  460,  411,
 /*  2760 */   460,  460,  397,  460,  460,  460,  401,  359,  460,  404,
 /*  2770 */   405,  406,  407,  408,  409,  367,  411,  460,  460,  460,
 /*  2780 */   372,  460,  374,  460,  460,  460,  460,  460,  460,  460,
 /*  2790 */   460,  328,  460,  460,  460,  460,  460,  460,  460,  460,
 /*  2800 */   460,  460,  460,  460,  460,  397,  460,  460,  460,  401,
 /*  2810 */   460,  460,  404,  405,  406,  407,  408,  409,  460,  411,
 /*  2820 */   460,  460,  359,  460,  460,  460,  460,  460,  460,  460,
 /*  2830 */   367,  460,  460,  460,  460,  372,  460,  374,  460,  460,
 /*  2840 */   460,  460,  460,  460,  328,  460,  460,  460,  460,  460,
 /*  2850 */   460,  460,  460,  460,  460,  460,  460,  460,  460,  460,
 /*  2860 */   397,  460,  460,  460,  401,  460,  460,  404,  405,  406,
 /*  2870 */   407,  408,  409,  460,  411,  359,  460,  460,  460,  460,
 /*  2880 */   460,  460,  460,  367,  460,  460,  460,  460,  372,  460,
 /*  2890 */   374,  460,  460,  460,  460,  460,  460,  460,  460,  328,
 /*  2900 */   460,  460,  460,  460,  460,  460,  460,  460,  460,  460,
 /*  2910 */   460,  460,  460,  397,  460,  460,  460,  401,  460,  460,
 /*  2920 */   404,  405,  406,  407,  408,  409,  460,  411,  460,  460,
 /*  2930 */   359,  460,  460,  460,  460,  460,  460,  460,  367,  460,
 /*  2940 */   460,  460,  460,  372,  460,  374,  460,  460,  460,  460,
 /*  2950 */   460,  460,  460,  460,  460,  460,  460,  460,  460,  460,
 /*  2960 */   460,  460,  460,  460,  460,  460,  460,  460,  397,  460,
 /*  2970 */   460,  460,  401,  460,  460,  404,  405,  406,  407,  408,
 /*  2980 */   409,  460,  411,  325,  325,  325,  325,  325,  325,  325,
 /*  2990 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3000 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3010 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3020 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3030 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3040 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3050 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3060 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3070 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3080 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3090 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3100 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3110 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3120 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3130 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3140 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3150 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3160 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3170 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3180 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3190 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3200 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3210 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3220 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3230 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3240 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3250 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3260 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3270 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3280 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3290 */   325,  325,  325,  325,  325,  325,  325,  325,  325,  325,
 /*  3300 */   325,  325,  325,  325,  325,  325,  325,  325,
};
#define YY_SHIFT_COUNT    (714)
#define YY_SHIFT_MIN      (0)
#define YY_SHIFT_MAX      (2041)
static const unsigned short int yy_shift_ofst[] = {
 /*     0 */   910,    0,  134,    0,  269,  269,  269,  269,  269,  269,
 /*    10 */   269,  269,  269,  269,  269,  403,  537,  537,  671,  537,
 /*    20 */   537,  537,  537,  537,  537,  537,  537,  537,  537,  537,
 /*    30 */   537,  537,  537,  537,  537,  537,  537,  537,  537,  537,
 /*    40 */   537,  537,  537,  537,  537,  537,  537,  537,   54,   55,
 /*    50 */   109,  224,  189,  162,  217,  162,  109,  109, 1207, 1207,
 /*    60 */   162, 1207, 1207,  302,  162,   14,   14,  157,  157,   36,
 /*    70 */   175,   18,   18,   14,   14,   14,   14,   14,   14,   14,
 /*    80 */    14,   14,   14,   25,   14,   14,   42,   14,   73,   14,
 /*    90 */    14,  164,   14,   14,  164,   14,  164,  164,  164,   14,
 /*   100 */    57,  226,  497,  497,   96,  176,  757,  757,  757,  757,
 /*   110 */   757,  757,  757,  757,  757,  757,  757,  757,  757,  757,
 /*   120 */   757,  757,  757,  757,  757,  749,  691,   36,  175,  280,
 /*   130 */   161,  447,  447,  447,  725,  106,  106,  161,  311,  311,
 /*   140 */   311,  158,   73,  247,  164,  313,  164,  313,  313,  158,
 /*   150 */   437,  659,  659,  659,  659,  659,  659,  659,  774,  208,
 /*   160 */   245,  380,  432,  243,  379,  289,  687,  708,  283,  672,
 /*   170 */   611,  695,  788,  709,  827,  810,  709,  924,  572,  841,
 /*   180 */   995, 1216, 1090, 1230, 1254, 1230, 1126, 1277, 1277, 1230,
 /*   190 */  1126, 1126, 1218, 1277, 1277, 1277, 1298, 1298, 1303,   25,
 /*   200 */    73,   25, 1311, 1312,   25, 1311,   25,   25,   25, 1277,
 /*   210 */    25, 1286, 1286, 1298,  164,  164,  164,  164,  164,  164,
 /*   220 */   164,  164,  164,  164,  164, 1277, 1298,  313,  313, 1171,
 /*   230 */  1303,   57, 1214,   73,   57, 1277, 1254, 1254,  313, 1149,
 /*   240 */  1157,  313, 1149, 1157,  313,  313,  164, 1159, 1250, 1149,
 /*   250 */  1161, 1173, 1185,  995, 1179, 1181, 1190, 1219,  311, 1441,
 /*   260 */  1277, 1311,   57, 1157,  313,  313,  313,  313,  313, 1157,
 /*   270 */   313, 1323,   57,  158,   57,  311, 1403, 1409,  313,  437,
 /*   280 */  1277,   57, 1483, 1298, 2983, 2983, 2983, 2983, 2983, 2983,
 /*   290 */  2983, 2983, 2983,  835,  364,   23,  550,   52,  638,  566,
 /*   300 */   460,  660,  701,  782,  558, 1131, 1131, 1131, 1131, 1131,
 /*   310 */  1131, 1131, 1131, 1131,  710,  277,   99,   99,  322,  647,
 /*   320 */   378,  390,  264,  469,  469,  121,  598,  406,  121,  121,
 /*   330 */   121,  895,  153, 1041,  978,  920,  935,  918,  989,  996,
 /*   340 */  1007,  950, 1043, 1132, 1024, 1064, 1094,  824, 1014,  994,
 /*   350 */   986, 1137, 1138, 1142, 1148, 1153, 1093, 1156, 1083, 1084,
 /*   360 */   347, 1178, 1102, 1182, 1186, 1189, 1193, 1203, 1211, 1069,
 /*   370 */  1236, 1247, 1206, 1258, 1535, 1541, 1344, 1542, 1543, 1502,
 /*   380 */  1546, 1512, 1348, 1514, 1515, 1516, 1352, 1553, 1519, 1520,
 /*   390 */  1356, 1557, 1358, 1559, 1525, 1562, 1544, 1563, 1529, 1391,
 /*   400 */  1396, 1578, 1579, 1406, 1405, 1580, 1585, 1545, 1588, 1590,
 /*   410 */  1593, 1552, 1595, 1596, 1597, 1599, 1600, 1601, 1602, 1603,
 /*   420 */  1452, 1570, 1612, 1455, 1608, 1609, 1610, 1615, 1616, 1617,
 /*   430 */  1619, 1631, 1632, 1633, 1634, 1635, 1637, 1638, 1639, 1611,
 /*   440 */  1641, 1642, 1649, 1652, 1654, 1636, 1655, 1656, 1657, 1524,
 /*   450 */  1661, 1662, 1628, 1667, 1613, 1668, 1614, 1669, 1670, 1623,
 /*   460 */  1640, 1629, 1627, 1664, 1643, 1666, 1644, 1675, 1646, 1648,
 /*   470 */  1676, 1681, 1682, 1653, 1511, 1688, 1694, 1695, 1645, 1702,
 /*   480 */  1704, 1671, 1659, 1672, 1705, 1677, 1674, 1678, 1710, 1679,
 /*   490 */  1680, 1685, 1713, 1683, 1686, 1687, 1715, 1719, 1720, 1725,
 /*   500 */  1622, 1626, 1696, 1708, 1733, 1700, 1701, 1703, 1706, 1693,
 /*   510 */  1698, 1709, 1712, 1717, 1716, 1740, 1721, 1745, 1730, 1711,
 /*   520 */  1759, 1742, 1727, 1765, 1731, 1768, 1734, 1770, 1751, 1754,
 /*   530 */  1744, 1746, 1584, 1689, 1684, 1782, 1620, 1748, 1785, 1604,
 /*   540 */  1767, 1630, 1621, 1790, 1791, 1658, 1647, 1789, 1749, 1547,
 /*   550 */  1707, 1699, 1724, 1660, 1569, 1663, 1548, 1726, 1755, 1728,
 /*   560 */  1732, 1735, 1737, 1738, 1756, 1757, 1760, 1741, 1772, 1568,
 /*   570 */  1739, 1743, 1821, 1783, 1592, 1795, 1803, 1808, 1810, 1811,
 /*   580 */  1812, 1752, 1762, 1814, 1618, 1813, 1816, 1865, 1866, 1867,
 /*   590 */  1773, 1780, 1784, 1774, 1786, 1718, 1787, 1879, 1841, 1723,
 /*   600 */  1788, 1781, 1627, 1839, 1845, 1673, 1690, 1691, 1888, 1870,
 /*   610 */  1692, 1797, 1800, 1798, 1804, 1807, 1815, 1853, 1809, 1817,
 /*   620 */  1860, 1818, 1886, 1714, 1820, 1802, 1822, 1875, 1882, 1827,
 /*   630 */  1828, 1883, 1830, 1831, 1892, 1834, 1837, 1896, 1836, 1847,
 /*   640 */  1910, 1850, 1794, 1829, 1832, 1833, 1926, 1843, 1858, 1903,
 /*   650 */  1862, 1921, 1863, 1903, 1903, 1938, 1897, 1899, 1928, 1929,
 /*   660 */  1930, 1932, 1933, 1934, 1935, 1937, 1940, 1941, 1907, 1880,
 /*   670 */  1939, 1943, 1947, 1963, 1951, 1973, 1962, 1964, 1965, 1931,
 /*   680 */  1693, 1967, 1698, 1968, 1970, 1971, 1972, 1976, 1974, 2010,
 /*   690 */  1982, 1975, 1981, 2019, 1986, 1977, 1983, 2026, 1992, 1985,
 /*   700 */  1989, 2030, 1996, 1987, 1995, 2036, 2003, 2005, 2041, 2020,
 /*   710 */  2022, 2023, 2024, 2027, 2029,
};
#define YY_REDUCE_COUNT (292)
#define YY_REDUCE_MIN   (-425)
#define YY_REDUCE_MAX   (2571)
static const short yy_reduce_ofst[] = {
 /*     0 */    84, -328, -229,  608,  628,  719,  762,  805,  887,  952,
 /*    10 */   976, 1036, 1079, 1107, 1164, 1217, 1239, 1292, 1349, 1404,
 /*    20 */  1447, 1467, 1532, 1583, 1607, 1665, 1722, 1750, 1776, 1835,
 /*    30 */  1851, 1905, 1925, 1980, 1997, 2040, 2095, 2148, 2203, 2219,
 /*    40 */  2273, 2293, 2348, 2365, 2408, 2463, 2516, 2571,  210, -348,
 /*    50 */    97, -345, -290,  413,  619,  802,  629,  674,  583,  588,
 /*    60 */  -425, -269,  445, -413, -264,  -79,  -73, -331, -177, -207,
 /*    70 */  -101,  -38,  -11, -310,  -43,  107,  195,  331,  626,  641,
 /*    80 */   661,  704,  712,  -28,  730,  731,  188,  781, -368,  838,
 /*    90 */   851, -323,  857,  858, -275,  101,  -76, -111,  205,  881,
 /*   100 */   231,   77, -412, -412, -188, -333,   62,  180,  306,  307,
 /*   110 */   349,  352,  438,  472,  486,  487,  488,  492,  493,  601,
 /*   120 */   602,  606,  609,  651,  670, -299, -332,   48,  323, -194,
 /*   130 */    82, -332, -113,  203,  462,  146,  394,  297, -116,  148,
 /*   140 */   341,   87,  425,  309,  573,  454,  -89,  502,  504,  649,
 /*   150 */   596, -358,  183,  244,  301,  367,  571,  743,  320,  657,
 /*   160 */   716,  688,  693,  706,  819,  717,  801,  801,  845,  780,
 /*   170 */   854,  825,  794,  767,  767,  752,  767,  820,  769,  801,
 /*   180 */   863,  870,  880,  894,  896,  906,  912,  963,  965,  923,
 /*   190 */   929,  936,  970,  979,  980,  981,  991,  992,  933,  987,
 /*   200 */   954,  988,  997,  944,  998,  999, 1000, 1002, 1003, 1001,
 /*   210 */  1004, 1008, 1012, 1009,  982,  993, 1006, 1010, 1013, 1017,
 /*   220 */  1019, 1020, 1027, 1030, 1032, 1018, 1025,  990, 1021,  971,
 /*   230 */   977, 1056, 1011, 1023, 1061, 1066, 1029, 1033, 1034,  969,
 /*   240 */  1031, 1045,  983, 1035, 1046, 1047,  801, 1005, 1015,  984,
 /*   250 */  1016, 1022, 1026, 1040, 1037, 1038, 1042,  767, 1095, 1062,
 /*   260 */  1133, 1130, 1128, 1085, 1099, 1100, 1101, 1103, 1105, 1097,
 /*   270 */  1106, 1110, 1155, 1143, 1160, 1136, 1086, 1146, 1134, 1168,
 /*   280 */  1174, 1180, 1191, 1194, 1135, 1139, 1141, 1147, 1175, 1184,
 /*   290 */  1187, 1198, 1195,
};
static const YYACTIONTYPE yy_default[] = {
 /*     0 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*    10 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*    20 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*    30 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*    40 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*    50 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*    60 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1855,
 /*    70 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*    80 */  1599, 1599, 1599, 1677, 1599, 1599, 1599, 1599, 1599, 1599,
 /*    90 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   100 */  1675, 1848, 2046, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   110 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   120 */  1599, 1599, 1599, 1599, 1599, 1599, 2058, 1599, 1599, 1677,
 /*   130 */  1599, 2058, 2058, 2058, 1675, 2018, 2018, 1599, 1599, 1599,
 /*   140 */  1599, 1785, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1785,
 /*   150 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1892, 1599,
 /*   160 */  1599, 2083, 2137, 1599, 1599, 2086, 1599, 1599, 1599, 1860,
 /*   170 */  1599, 1738, 2073, 2050, 2064, 2121, 2051, 2048, 2067, 1599,
 /*   180 */  2077, 1599, 1885, 1853, 1599, 1853, 1850, 1599, 1599, 1853,
 /*   190 */  1850, 1850, 1729, 1599, 1599, 1599, 1599, 1599, 1599, 1677,
 /*   200 */  1599, 1677, 1599, 1599, 1677, 1599, 1677, 1677, 1677, 1599,
 /*   210 */  1677, 1656, 1656, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   220 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1905,
 /*   230 */  1599, 1675, 1894, 1599, 1675, 1599, 1599, 1599, 1599, 2094,
 /*   240 */  2092, 1599, 2094, 2092, 1599, 1599, 1599, 2106, 2102, 2094,
 /*   250 */  2110, 2108, 2079, 2077, 2140, 2127, 2123, 2064, 1599, 1599,
 /*   260 */  1599, 1599, 1675, 2092, 1599, 1599, 1599, 1599, 1599, 2092,
 /*   270 */  1599, 1599, 1675, 1599, 1675, 1599, 1599, 1754, 1599, 1599,
 /*   280 */  1599, 1675, 1631, 1599, 1887, 1898, 1870, 1870, 1788, 1788,
 /*   290 */  1788, 1678, 1604, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   300 */  1599, 1599, 1599, 1599, 1599, 2105, 2104, 1973, 1599, 2022,
 /*   310 */  2021, 2020, 2011, 1972, 1750, 1599, 1971, 1970, 1599, 1599,
 /*   320 */  1599, 1599, 1599, 1866, 1865, 1964, 1599, 1599, 1965, 1963,
 /*   330 */  1962, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   340 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 2124, 2128,
 /*   350 */  1599, 1599, 1599, 1599, 1599, 1599, 2047, 1599, 1599, 1599,
 /*   360 */  1599, 1599, 1947, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   370 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   380 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   390 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   400 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   410 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   420 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   430 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   440 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   450 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   460 */  1599, 1636, 1952, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   470 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   480 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   490 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   500 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1717,
 /*   510 */  1716, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   520 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   530 */  1599, 1599, 1599, 1955, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   540 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 2120, 2080, 1599,
 /*   550 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   560 */  1599, 1599, 1599, 1599, 1599, 1599, 1947, 1599, 2103, 1599,
 /*   570 */  1599, 2118, 1599, 2122, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   580 */  1599, 2057, 2053, 1599, 1599, 2049, 1599, 1599, 1599, 1599,
 /*   590 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   600 */  1599, 1599, 1946, 1599, 2008, 1599, 1599, 1599, 2042, 1599,
 /*   610 */  1599, 1993, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   620 */  1599, 1955, 1599, 1958, 1599, 1599, 1599, 1599, 1599, 1782,
 /*   630 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   640 */  1599, 1599, 1767, 1765, 1764, 1763, 1599, 1760, 1599, 1795,
 /*   650 */  1599, 1599, 1599, 1791, 1790, 1599, 1599, 1599, 1599, 1599,
 /*   660 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   670 */  1697, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   680 */  1688, 1599, 1687, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   690 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   700 */  1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599, 1599,
 /*   710 */  1599, 1599, 1599, 1599, 1599,
};
/********** 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[] = {
    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,  /*     ENABLE => nothing */
    0,  /* NK_INTEGER => nothing */
    0,  /*    SYSINFO => nothing */
    0,  /*       DROP => nothing */
    0,  /*      GRANT => nothing */
    0,  /*         ON => nothing */
    0,  /*         TO => nothing */
    0,  /*     REVOKE => nothing */
    0,  /*       FROM => nothing */
    0,  /*  SUBSCRIBE => nothing */
    0,  /*   NK_COMMA => nothing */
    0,  /*       READ => nothing */
    0,  /*      WRITE => nothing */
    0,  /*     NK_DOT => nothing */
    0,  /*      DNODE => nothing */
    0,  /*       PORT => nothing */
    0,  /*     DNODES => nothing */
    0,  /* NK_IPTOKEN => nothing */
    0,  /*      FORCE => nothing */
    0,  /*      LOCAL => nothing */
    0,  /*      QNODE => nothing */
    0,  /*      BNODE => nothing */
    0,  /*      SNODE => nothing */
    0,  /*      MNODE => nothing */
    0,  /*   DATABASE => nothing */
    0,  /*        USE => nothing */
    0,  /*      FLUSH => nothing */
    0,  /*       TRIM => nothing */
    0,  /*         IF => nothing */
    0,  /*        NOT => nothing */
    0,  /*     EXISTS => nothing */
    0,  /*     BUFFER => nothing */
    0,  /* CACHEMODEL => nothing */
    0,  /*  CACHESIZE => nothing */
    0,  /*       COMP => nothing */
    0,  /*   DURATION => nothing */
    0,  /* NK_VARIABLE => nothing */
    0,  /*    MAXROWS => nothing */
    0,  /*    MINROWS => nothing */
    0,  /*       KEEP => nothing */
    0,  /*      PAGES => nothing */
    0,  /*   PAGESIZE => nothing */
    0,  /* TSDB_PAGESIZE => nothing */
    0,  /*  PRECISION => nothing */
    0,  /*    REPLICA => nothing */
    0,  /*     STRICT => nothing */
    0,  /*    VGROUPS => nothing */
    0,  /* SINGLE_STABLE => nothing */
    0,  /* RETENTIONS => nothing */
    0,  /* SCHEMALESS => nothing */
    0,  /*  WAL_LEVEL => nothing */
    0,  /* WAL_FSYNC_PERIOD => nothing */
    0,  /* WAL_RETENTION_PERIOD => nothing */
    0,  /* WAL_RETENTION_SIZE => nothing */
    0,  /* WAL_ROLL_PERIOD => nothing */
    0,  /* WAL_SEGMENT_SIZE => nothing */
    0,  /* STT_TRIGGER => nothing */
    0,  /* TABLE_PREFIX => nothing */
    0,  /* TABLE_SUFFIX => nothing */
    0,  /*   NK_COLON => nothing */
    0,  /*  MAX_SPEED => 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 */
    0,  /*  MAX_DELAY => nothing */
    0,  /*  WATERMARK => nothing */
    0,  /*     ROLLUP => nothing */
    0,  /*        TTL => nothing */
    0,  /*        SMA => nothing */
    0,  /* DELETE_MARK => nothing */
    0,  /*      FIRST => nothing */
    0,  /*       LAST => nothing */
    0,  /*       SHOW => nothing */
    0,  /* PRIVILEGES => nothing */
    0,  /*  DATABASES => nothing */
    0,  /*     TABLES => nothing */
    0,  /*    STABLES => nothing */
    0,  /*     MNODES => nothing */
    0,  /*     QNODES => nothing */
    0,  /*  FUNCTIONS => nothing */
    0,  /*    INDEXES => nothing */
    0,  /*   ACCOUNTS => nothing */
    0,  /*       APPS => nothing */
    0,  /* CONNECTIONS => nothing */
    0,  /*   LICENCES => nothing */
    0,  /*     GRANTS => nothing */
    0,  /*    QUERIES => nothing */
    0,  /*     SCORES => nothing */
    0,  /*     TOPICS => nothing */
    0,  /*  VARIABLES => nothing */
    0,  /*    CLUSTER => nothing */
    0,  /*     BNODES => nothing */
    0,  /*     SNODES => nothing */
    0,  /* TRANSACTIONS => nothing */
    0,  /* DISTRIBUTED => nothing */
    0,  /*  CONSUMERS => nothing */
    0,  /* SUBSCRIPTIONS => nothing */
    0,  /*     VNODES => nothing */
    0,  /*       LIKE => nothing */
    0,  /*     TBNAME => nothing */
    0,  /*      QTAGS => nothing */
    0,  /*         AS => nothing */
    0,  /*      INDEX => nothing */
    0,  /*   FUNCTION => nothing */
    0,  /*   INTERVAL => nothing */
    0,  /*      TOPIC => nothing */
    0,  /*       WITH => nothing */
    0,  /*       META => nothing */
    0,  /*   CONSUMER => nothing */
    0,  /*      GROUP => nothing */
    0,  /*       DESC => nothing */
    0,  /*   DESCRIBE => nothing */
    0,  /*      RESET => nothing */
    0,  /*      QUERY => nothing */
    0,  /*      CACHE => nothing */
    0,  /*    EXPLAIN => nothing */
    0,  /*    ANALYZE => nothing */
    0,  /*    VERBOSE => nothing */
    0,  /*    NK_BOOL => nothing */
    0,  /*      RATIO => nothing */
    0,  /*   NK_FLOAT => 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,  /*     IGNORE => nothing */
    0,  /*    EXPIRED => nothing */
    0,  /* FILL_HISTORY => nothing */
    0,  /*   SUBTABLE => nothing */
    0,  /*       KILL => nothing */
    0,  /* CONNECTION => nothing */
    0,  /* TRANSACTION => nothing */
    0,  /*    BALANCE => nothing */
    0,  /*     VGROUP => nothing */
    0,  /*      MERGE => nothing */
    0,  /* REDISTRIBUTE => nothing */
    0,  /*      SPLIT => nothing */
    0,  /*     DELETE => nothing */
    0,  /*     INSERT => nothing */
    0,  /*       NULL => nothing */
    0,  /* NK_QUESTION => nothing */
    0,  /*   NK_ARROW => nothing */
    0,  /*      ROWTS => nothing */
    0,  /*     QSTART => nothing */
    0,  /*       QEND => nothing */
    0,  /*  QDURATION => nothing */
    0,  /*     WSTART => nothing */
    0,  /*       WEND => nothing */
    0,  /*  WDURATION => nothing */
    0,  /*     IROWTS => nothing */
    0,  /*   ISFILLED => nothing */
    0,  /*       CAST => nothing */
    0,  /*        NOW => nothing */
    0,  /*      TODAY => nothing */
    0,  /*   TIMEZONE => nothing */
    0,  /* CLIENT_VERSION => nothing */
    0,  /* SERVER_VERSION => nothing */
    0,  /* SERVER_STATUS => nothing */
    0,  /* CURRENT_USER => nothing */
    0,  /*      COUNT => nothing */
    0,  /*   LAST_ROW => nothing */
    0,  /*       CASE => nothing */
  272,  /*        END => ABORT */
    0,  /*       WHEN => nothing */
    0,  /*       THEN => nothing */
    0,  /*       ELSE => 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,  /*         IN => 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,  /* EVENT_WINDOW => nothing */
    0,  /*      START => 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,  /*      RANGE => nothing */
    0,  /*      EVERY => nothing */
    0,  /*      ORDER => nothing */
    0,  /*     SLIMIT => nothing */
    0,  /*    SOFFSET => nothing */
    0,  /*      LIMIT => nothing */
    0,  /*     OFFSET => nothing */
    0,  /*        ASC => nothing */
    0,  /*      NULLS => nothing */
    0,  /*      ABORT => nothing */
  272,  /*      AFTER => ABORT */
  272,  /*     ATTACH => ABORT */
  272,  /*     BEFORE => ABORT */
  272,  /*      BEGIN => ABORT */
  272,  /*     BITAND => ABORT */
  272,  /*     BITNOT => ABORT */
  272,  /*      BITOR => ABORT */
  272,  /*     BLOCKS => ABORT */
  272,  /*     CHANGE => ABORT */
  272,  /*      COMMA => ABORT */
  272,  /*    COMPACT => ABORT */
  272,  /*     CONCAT => ABORT */
  272,  /*   CONFLICT => ABORT */
  272,  /*       COPY => ABORT */
  272,  /*   DEFERRED => ABORT */
  272,  /* DELIMITERS => ABORT */
  272,  /*     DETACH => ABORT */
  272,  /*     DIVIDE => ABORT */
  272,  /*        DOT => ABORT */
  272,  /*       EACH => ABORT */
  272,  /*       FAIL => ABORT */
  272,  /*       FILE => ABORT */
  272,  /*        FOR => ABORT */
  272,  /*       GLOB => ABORT */
  272,  /*         ID => ABORT */
  272,  /*  IMMEDIATE => ABORT */
  272,  /*     IMPORT => ABORT */
  272,  /*  INITIALLY => ABORT */
  272,  /*    INSTEAD => ABORT */
  272,  /*     ISNULL => ABORT */
  272,  /*        KEY => ABORT */
  272,  /*    MODULES => ABORT */
  272,  /*  NK_BITNOT => ABORT */
  272,  /*    NK_SEMI => ABORT */
  272,  /*    NOTNULL => ABORT */
  272,  /*         OF => ABORT */
  272,  /*       PLUS => ABORT */
  272,  /*  PRIVILEGE => ABORT */
  272,  /*      RAISE => ABORT */
  272,  /*    REPLACE => ABORT */
  272,  /*   RESTRICT => ABORT */
  272,  /*        ROW => ABORT */
  272,  /*       SEMI => ABORT */
  272,  /*       STAR => ABORT */
  272,  /*  STATEMENT => ABORT */
  272,  /*     STRING => ABORT */
  272,  /*      TIMES => ABORT */
  272,  /*     UPDATE => ABORT */
  272,  /*     VALUES => ABORT */
  272,  /*   VARIABLE => ABORT */
  272,  /*       VIEW => ABORT */
  272,  /*        WAL => ABORT */
};
#endif /* YYFALLBACK */

/* The following structure represents a single element of the
** parser's stack.  Information stored includes:
**
**   +  The state number for the parser at this level of the stack.
**
**   +  The value of the token stored at this level of the stack.
**      (In other words, the "major" token.)
**
**   +  The semantic value stored at this level of the stack.  This is
**      the information used by the action routines in the grammar.
**      It is sometimes called the "minor" token.
**
** After the "shift" half of a SHIFTREDUCE action, the stateno field
** actually contains the reduce action for the second half of the
** SHIFTREDUCE.
*/
struct yyStackEntry {
  YYACTIONTYPE stateno;  /* The state-number, or reduce action in SHIFTREDUCE */
  YYCODETYPE major;      /* The major token value.  This is the code
                         ** number for the token at this stack level */
  YYMINORTYPE minor;     /* The user-supplied minor token value.  This
                         ** is the value of the token  */
};
typedef struct yyStackEntry yyStackEntry;

/* The state of the parser is completely contained in an instance of
** the following structure */
struct yyParser {
  yyStackEntry *yytos;          /* Pointer to top element of the stack */
#ifdef YYTRACKMAXSTACKDEPTH
  int yyhwm;                    /* High-water mark of the stack */
#endif
#ifndef YYNOERRORRECOVERY
  int yyerrcnt;                 /* Shifts left before out of the error */
#endif
  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.
*/
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 */ "ENABLE",
  /*   35 */ "NK_INTEGER",
  /*   36 */ "SYSINFO",
  /*   37 */ "DROP",
  /*   38 */ "GRANT",
  /*   39 */ "ON",
  /*   40 */ "TO",
  /*   41 */ "REVOKE",
  /*   42 */ "FROM",
  /*   43 */ "SUBSCRIBE",
  /*   44 */ "NK_COMMA",
  /*   45 */ "READ",
  /*   46 */ "WRITE",
  /*   47 */ "NK_DOT",
  /*   48 */ "DNODE",
  /*   49 */ "PORT",
  /*   50 */ "DNODES",
  /*   51 */ "NK_IPTOKEN",
  /*   52 */ "FORCE",
  /*   53 */ "LOCAL",
  /*   54 */ "QNODE",
  /*   55 */ "BNODE",
  /*   56 */ "SNODE",
  /*   57 */ "MNODE",
  /*   58 */ "DATABASE",
  /*   59 */ "USE",
  /*   60 */ "FLUSH",
  /*   61 */ "TRIM",
  /*   62 */ "IF",
  /*   63 */ "NOT",
  /*   64 */ "EXISTS",
  /*   65 */ "BUFFER",
  /*   66 */ "CACHEMODEL",
  /*   67 */ "CACHESIZE",
  /*   68 */ "COMP",
  /*   69 */ "DURATION",
  /*   70 */ "NK_VARIABLE",
  /*   71 */ "MAXROWS",
  /*   72 */ "MINROWS",
  /*   73 */ "KEEP",
  /*   74 */ "PAGES",
  /*   75 */ "PAGESIZE",
  /*   76 */ "TSDB_PAGESIZE",
  /*   77 */ "PRECISION",
  /*   78 */ "REPLICA",
  /*   79 */ "STRICT",
  /*   80 */ "VGROUPS",
  /*   81 */ "SINGLE_STABLE",
  /*   82 */ "RETENTIONS",
  /*   83 */ "SCHEMALESS",
  /*   84 */ "WAL_LEVEL",
  /*   85 */ "WAL_FSYNC_PERIOD",
  /*   86 */ "WAL_RETENTION_PERIOD",
  /*   87 */ "WAL_RETENTION_SIZE",
  /*   88 */ "WAL_ROLL_PERIOD",
  /*   89 */ "WAL_SEGMENT_SIZE",
  /*   90 */ "STT_TRIGGER",
  /*   91 */ "TABLE_PREFIX",
  /*   92 */ "TABLE_SUFFIX",
  /*   93 */ "NK_COLON",
  /*   94 */ "MAX_SPEED",
  /*   95 */ "TABLE",
  /*   96 */ "NK_LP",
  /*   97 */ "NK_RP",
  /*   98 */ "STABLE",
  /*   99 */ "ADD",
  /*  100 */ "COLUMN",
  /*  101 */ "MODIFY",
  /*  102 */ "RENAME",
  /*  103 */ "TAG",
  /*  104 */ "SET",
  /*  105 */ "NK_EQ",
  /*  106 */ "USING",
  /*  107 */ "TAGS",
  /*  108 */ "COMMENT",
  /*  109 */ "BOOL",
  /*  110 */ "TINYINT",
  /*  111 */ "SMALLINT",
  /*  112 */ "INT",
  /*  113 */ "INTEGER",
  /*  114 */ "BIGINT",
  /*  115 */ "FLOAT",
  /*  116 */ "DOUBLE",
  /*  117 */ "BINARY",
  /*  118 */ "TIMESTAMP",
  /*  119 */ "NCHAR",
  /*  120 */ "UNSIGNED",
  /*  121 */ "JSON",
  /*  122 */ "VARCHAR",
  /*  123 */ "MEDIUMBLOB",
  /*  124 */ "BLOB",
  /*  125 */ "VARBINARY",
  /*  126 */ "DECIMAL",
  /*  127 */ "MAX_DELAY",
  /*  128 */ "WATERMARK",
  /*  129 */ "ROLLUP",
  /*  130 */ "TTL",
  /*  131 */ "SMA",
  /*  132 */ "DELETE_MARK",
  /*  133 */ "FIRST",
  /*  134 */ "LAST",
  /*  135 */ "SHOW",
  /*  136 */ "PRIVILEGES",
  /*  137 */ "DATABASES",
  /*  138 */ "TABLES",
  /*  139 */ "STABLES",
  /*  140 */ "MNODES",
  /*  141 */ "QNODES",
  /*  142 */ "FUNCTIONS",
  /*  143 */ "INDEXES",
  /*  144 */ "ACCOUNTS",
  /*  145 */ "APPS",
  /*  146 */ "CONNECTIONS",
  /*  147 */ "LICENCES",
  /*  148 */ "GRANTS",
  /*  149 */ "QUERIES",
  /*  150 */ "SCORES",
  /*  151 */ "TOPICS",
  /*  152 */ "VARIABLES",
  /*  153 */ "CLUSTER",
  /*  154 */ "BNODES",
  /*  155 */ "SNODES",
  /*  156 */ "TRANSACTIONS",
  /*  157 */ "DISTRIBUTED",
  /*  158 */ "CONSUMERS",
  /*  159 */ "SUBSCRIPTIONS",
  /*  160 */ "VNODES",
  /*  161 */ "LIKE",
  /*  162 */ "TBNAME",
  /*  163 */ "QTAGS",
  /*  164 */ "AS",
  /*  165 */ "INDEX",
  /*  166 */ "FUNCTION",
  /*  167 */ "INTERVAL",
  /*  168 */ "TOPIC",
  /*  169 */ "WITH",
  /*  170 */ "META",
  /*  171 */ "CONSUMER",
  /*  172 */ "GROUP",
  /*  173 */ "DESC",
  /*  174 */ "DESCRIBE",
  /*  175 */ "RESET",
  /*  176 */ "QUERY",
  /*  177 */ "CACHE",
  /*  178 */ "EXPLAIN",
  /*  179 */ "ANALYZE",
  /*  180 */ "VERBOSE",
  /*  181 */ "NK_BOOL",
  /*  182 */ "RATIO",
  /*  183 */ "NK_FLOAT",
  /*  184 */ "OUTPUTTYPE",
  /*  185 */ "AGGREGATE",
  /*  186 */ "BUFSIZE",
  /*  187 */ "STREAM",
  /*  188 */ "INTO",
  /*  189 */ "TRIGGER",
  /*  190 */ "AT_ONCE",
  /*  191 */ "WINDOW_CLOSE",
  /*  192 */ "IGNORE",
  /*  193 */ "EXPIRED",
  /*  194 */ "FILL_HISTORY",
  /*  195 */ "SUBTABLE",
  /*  196 */ "KILL",
  /*  197 */ "CONNECTION",
  /*  198 */ "TRANSACTION",
  /*  199 */ "BALANCE",
  /*  200 */ "VGROUP",
  /*  201 */ "MERGE",
  /*  202 */ "REDISTRIBUTE",
  /*  203 */ "SPLIT",
  /*  204 */ "DELETE",
  /*  205 */ "INSERT",
  /*  206 */ "NULL",
  /*  207 */ "NK_QUESTION",
  /*  208 */ "NK_ARROW",
  /*  209 */ "ROWTS",
  /*  210 */ "QSTART",
  /*  211 */ "QEND",
  /*  212 */ "QDURATION",
  /*  213 */ "WSTART",
  /*  214 */ "WEND",
  /*  215 */ "WDURATION",
  /*  216 */ "IROWTS",
  /*  217 */ "ISFILLED",
  /*  218 */ "CAST",
  /*  219 */ "NOW",
  /*  220 */ "TODAY",
  /*  221 */ "TIMEZONE",
  /*  222 */ "CLIENT_VERSION",
  /*  223 */ "SERVER_VERSION",
  /*  224 */ "SERVER_STATUS",
  /*  225 */ "CURRENT_USER",
  /*  226 */ "COUNT",
  /*  227 */ "LAST_ROW",
  /*  228 */ "CASE",
  /*  229 */ "END",
  /*  230 */ "WHEN",
  /*  231 */ "THEN",
  /*  232 */ "ELSE",
  /*  233 */ "BETWEEN",
  /*  234 */ "IS",
  /*  235 */ "NK_LT",
  /*  236 */ "NK_GT",
  /*  237 */ "NK_LE",
  /*  238 */ "NK_GE",
  /*  239 */ "NK_NE",
  /*  240 */ "MATCH",
  /*  241 */ "NMATCH",
  /*  242 */ "CONTAINS",
  /*  243 */ "IN",
  /*  244 */ "JOIN",
  /*  245 */ "INNER",
  /*  246 */ "SELECT",
  /*  247 */ "DISTINCT",
  /*  248 */ "WHERE",
  /*  249 */ "PARTITION",
  /*  250 */ "BY",
  /*  251 */ "SESSION",
  /*  252 */ "STATE_WINDOW",
  /*  253 */ "EVENT_WINDOW",
  /*  254 */ "START",
  /*  255 */ "SLIDING",
  /*  256 */ "FILL",
  /*  257 */ "VALUE",
  /*  258 */ "NONE",
  /*  259 */ "PREV",
  /*  260 */ "LINEAR",
  /*  261 */ "NEXT",
  /*  262 */ "HAVING",
  /*  263 */ "RANGE",
  /*  264 */ "EVERY",
  /*  265 */ "ORDER",
  /*  266 */ "SLIMIT",
  /*  267 */ "SOFFSET",
  /*  268 */ "LIMIT",
  /*  269 */ "OFFSET",
  /*  270 */ "ASC",
  /*  271 */ "NULLS",
  /*  272 */ "ABORT",
  /*  273 */ "AFTER",
  /*  274 */ "ATTACH",
  /*  275 */ "BEFORE",
  /*  276 */ "BEGIN",
  /*  277 */ "BITAND",
  /*  278 */ "BITNOT",
  /*  279 */ "BITOR",
  /*  280 */ "BLOCKS",
  /*  281 */ "CHANGE",
  /*  282 */ "COMMA",
  /*  283 */ "COMPACT",
  /*  284 */ "CONCAT",
  /*  285 */ "CONFLICT",
  /*  286 */ "COPY",
  /*  287 */ "DEFERRED",
  /*  288 */ "DELIMITERS",
  /*  289 */ "DETACH",
  /*  290 */ "DIVIDE",
  /*  291 */ "DOT",
  /*  292 */ "EACH",
  /*  293 */ "FAIL",
  /*  294 */ "FILE",
  /*  295 */ "FOR",
  /*  296 */ "GLOB",
  /*  297 */ "ID",
  /*  298 */ "IMMEDIATE",
  /*  299 */ "IMPORT",
  /*  300 */ "INITIALLY",
  /*  301 */ "INSTEAD",
  /*  302 */ "ISNULL",
  /*  303 */ "KEY",
  /*  304 */ "MODULES",
  /*  305 */ "NK_BITNOT",
  /*  306 */ "NK_SEMI",
  /*  307 */ "NOTNULL",
  /*  308 */ "OF",
  /*  309 */ "PLUS",
  /*  310 */ "PRIVILEGE",
  /*  311 */ "RAISE",
  /*  312 */ "REPLACE",
  /*  313 */ "RESTRICT",
  /*  314 */ "ROW",
  /*  315 */ "SEMI",
  /*  316 */ "STAR",
  /*  317 */ "STATEMENT",
  /*  318 */ "STRING",
  /*  319 */ "TIMES",
  /*  320 */ "UPDATE",
  /*  321 */ "VALUES",
  /*  322 */ "VARIABLE",
  /*  323 */ "VIEW",
  /*  324 */ "WAL",
  /*  325 */ "cmd",
  /*  326 */ "account_options",
  /*  327 */ "alter_account_options",
  /*  328 */ "literal",
  /*  329 */ "alter_account_option",
  /*  330 */ "user_name",
  /*  331 */ "sysinfo_opt",
  /*  332 */ "privileges",
  /*  333 */ "priv_level",
  /*  334 */ "priv_type_list",
  /*  335 */ "priv_type",
  /*  336 */ "db_name",
  /*  337 */ "topic_name",
  /*  338 */ "dnode_endpoint",
  /*  339 */ "force_opt",
  /*  340 */ "not_exists_opt",
  /*  341 */ "db_options",
  /*  342 */ "exists_opt",
  /*  343 */ "alter_db_options",
  /*  344 */ "speed_opt",
  /*  345 */ "integer_list",
  /*  346 */ "variable_list",
  /*  347 */ "retention_list",
  /*  348 */ "alter_db_option",
  /*  349 */ "retention",
  /*  350 */ "full_table_name",
  /*  351 */ "column_def_list",
  /*  352 */ "tags_def_opt",
  /*  353 */ "table_options",
  /*  354 */ "multi_create_clause",
  /*  355 */ "tags_def",
  /*  356 */ "multi_drop_clause",
  /*  357 */ "alter_table_clause",
  /*  358 */ "alter_table_options",
  /*  359 */ "column_name",
  /*  360 */ "type_name",
  /*  361 */ "signed_literal",
  /*  362 */ "create_subtable_clause",
  /*  363 */ "specific_cols_opt",
  /*  364 */ "expression_list",
  /*  365 */ "drop_table_clause",
  /*  366 */ "col_name_list",
  /*  367 */ "table_name",
  /*  368 */ "column_def",
  /*  369 */ "duration_list",
  /*  370 */ "rollup_func_list",
  /*  371 */ "alter_table_option",
  /*  372 */ "duration_literal",
  /*  373 */ "rollup_func_name",
  /*  374 */ "function_name",
  /*  375 */ "col_name",
  /*  376 */ "db_name_cond_opt",
  /*  377 */ "like_pattern_opt",
  /*  378 */ "table_name_cond",
  /*  379 */ "from_db_opt",
  /*  380 */ "tag_list_opt",
  /*  381 */ "tag_item",
  /*  382 */ "column_alias",
  /*  383 */ "index_options",
  /*  384 */ "func_list",
  /*  385 */ "sliding_opt",
  /*  386 */ "sma_stream_opt",
  /*  387 */ "func",
  /*  388 */ "query_or_subquery",
  /*  389 */ "cgroup_name",
  /*  390 */ "analyze_opt",
  /*  391 */ "explain_options",
  /*  392 */ "agg_func_opt",
  /*  393 */ "bufsize_opt",
  /*  394 */ "stream_name",
  /*  395 */ "stream_options",
  /*  396 */ "subtable_opt",
  /*  397 */ "expression",
  /*  398 */ "dnode_list",
  /*  399 */ "where_clause_opt",
  /*  400 */ "signed",
  /*  401 */ "literal_func",
  /*  402 */ "literal_list",
  /*  403 */ "table_alias",
  /*  404 */ "expr_or_subquery",
  /*  405 */ "pseudo_column",
  /*  406 */ "column_reference",
  /*  407 */ "function_expression",
  /*  408 */ "case_when_expression",
  /*  409 */ "star_func",
  /*  410 */ "star_func_para_list",
  /*  411 */ "noarg_func",
  /*  412 */ "other_para_list",
  /*  413 */ "star_func_para",
  /*  414 */ "when_then_list",
  /*  415 */ "case_when_else_opt",
  /*  416 */ "common_expression",
  /*  417 */ "when_then_expr",
  /*  418 */ "predicate",
  /*  419 */ "compare_op",
  /*  420 */ "in_op",
  /*  421 */ "in_predicate_value",
  /*  422 */ "boolean_value_expression",
  /*  423 */ "boolean_primary",
  /*  424 */ "from_clause_opt",
  /*  425 */ "table_reference_list",
  /*  426 */ "table_reference",
  /*  427 */ "table_primary",
  /*  428 */ "joined_table",
  /*  429 */ "alias_opt",
  /*  430 */ "subquery",
  /*  431 */ "parenthesized_joined_table",
  /*  432 */ "join_type",
  /*  433 */ "search_condition",
  /*  434 */ "query_specification",
  /*  435 */ "set_quantifier_opt",
  /*  436 */ "select_list",
  /*  437 */ "partition_by_clause_opt",
  /*  438 */ "range_opt",
  /*  439 */ "every_opt",
  /*  440 */ "fill_opt",
  /*  441 */ "twindow_clause_opt",
  /*  442 */ "group_by_clause_opt",
  /*  443 */ "having_clause_opt",
  /*  444 */ "select_item",
  /*  445 */ "partition_list",
  /*  446 */ "partition_item",
  /*  447 */ "fill_mode",
  /*  448 */ "group_by_list",
  /*  449 */ "query_expression",
  /*  450 */ "query_simple",
  /*  451 */ "order_by_clause_opt",
  /*  452 */ "slimit_clause_opt",
  /*  453 */ "limit_clause_opt",
  /*  454 */ "union_query_expression",
  /*  455 */ "query_simple_or_subquery",
  /*  456 */ "sort_specification_list",
  /*  457 */ "sort_specification",
  /*  458 */ "ordering_specification_opt",
  /*  459 */ "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 sysinfo_opt",
 /*  25 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
 /*  26 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
 /*  27 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
 /*  28 */ "cmd ::= DROP USER user_name",
 /*  29 */ "sysinfo_opt ::=",
 /*  30 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
 /*  31 */ "cmd ::= GRANT privileges ON priv_level TO user_name",
 /*  32 */ "cmd ::= REVOKE privileges ON priv_level FROM user_name",
 /*  33 */ "privileges ::= ALL",
 /*  34 */ "privileges ::= priv_type_list",
 /*  35 */ "privileges ::= SUBSCRIBE",
 /*  36 */ "priv_type_list ::= priv_type",
 /*  37 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
 /*  38 */ "priv_type ::= READ",
 /*  39 */ "priv_type ::= WRITE",
 /*  40 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
 /*  41 */ "priv_level ::= db_name NK_DOT NK_STAR",
 /*  42 */ "priv_level ::= topic_name",
 /*  43 */ "cmd ::= CREATE DNODE dnode_endpoint",
 /*  44 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
 /*  45 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
 /*  46 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
 /*  47 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
 /*  48 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
 /*  49 */ "cmd ::= ALTER ALL DNODES NK_STRING",
 /*  50 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
 /*  51 */ "dnode_endpoint ::= NK_STRING",
 /*  52 */ "dnode_endpoint ::= NK_ID",
 /*  53 */ "dnode_endpoint ::= NK_IPTOKEN",
 /*  54 */ "force_opt ::=",
 /*  55 */ "force_opt ::= FORCE",
 /*  56 */ "cmd ::= ALTER LOCAL NK_STRING",
 /*  57 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
 /*  58 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
 /*  59 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
 /*  60 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
 /*  61 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
 /*  62 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
 /*  63 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
 /*  64 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
 /*  65 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
 /*  66 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
 /*  67 */ "cmd ::= DROP DATABASE exists_opt db_name",
 /*  68 */ "cmd ::= USE db_name",
 /*  69 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
 /*  70 */ "cmd ::= FLUSH DATABASE db_name",
 /*  71 */ "cmd ::= TRIM DATABASE db_name speed_opt",
 /*  72 */ "not_exists_opt ::= IF NOT EXISTS",
 /*  73 */ "not_exists_opt ::=",
 /*  74 */ "exists_opt ::= IF EXISTS",
 /*  75 */ "exists_opt ::=",
 /*  76 */ "db_options ::=",
 /*  77 */ "db_options ::= db_options BUFFER NK_INTEGER",
 /*  78 */ "db_options ::= db_options CACHEMODEL NK_STRING",
 /*  79 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
 /*  80 */ "db_options ::= db_options COMP NK_INTEGER",
 /*  81 */ "db_options ::= db_options DURATION NK_INTEGER",
 /*  82 */ "db_options ::= db_options DURATION NK_VARIABLE",
 /*  83 */ "db_options ::= db_options MAXROWS NK_INTEGER",
 /*  84 */ "db_options ::= db_options MINROWS NK_INTEGER",
 /*  85 */ "db_options ::= db_options KEEP integer_list",
 /*  86 */ "db_options ::= db_options KEEP variable_list",
 /*  87 */ "db_options ::= db_options PAGES NK_INTEGER",
 /*  88 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
 /*  89 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
 /*  90 */ "db_options ::= db_options PRECISION NK_STRING",
 /*  91 */ "db_options ::= db_options REPLICA NK_INTEGER",
 /*  92 */ "db_options ::= db_options STRICT NK_STRING",
 /*  93 */ "db_options ::= db_options VGROUPS NK_INTEGER",
 /*  94 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
 /*  95 */ "db_options ::= db_options RETENTIONS retention_list",
 /*  96 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
 /*  97 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
 /*  98 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
 /*  99 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
 /* 100 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
 /* 101 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
 /* 102 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
 /* 103 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
 /* 104 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
 /* 105 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
 /* 106 */ "db_options ::= db_options TABLE_PREFIX NK_INTEGER",
 /* 107 */ "db_options ::= db_options TABLE_SUFFIX NK_INTEGER",
 /* 108 */ "alter_db_options ::= alter_db_option",
 /* 109 */ "alter_db_options ::= alter_db_options alter_db_option",
 /* 110 */ "alter_db_option ::= BUFFER NK_INTEGER",
 /* 111 */ "alter_db_option ::= CACHEMODEL NK_STRING",
 /* 112 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
 /* 113 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
 /* 114 */ "alter_db_option ::= KEEP integer_list",
 /* 115 */ "alter_db_option ::= KEEP variable_list",
 /* 116 */ "alter_db_option ::= PAGES NK_INTEGER",
 /* 117 */ "alter_db_option ::= REPLICA NK_INTEGER",
 /* 118 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
 /* 119 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
 /* 120 */ "integer_list ::= NK_INTEGER",
 /* 121 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
 /* 122 */ "variable_list ::= NK_VARIABLE",
 /* 123 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
 /* 124 */ "retention_list ::= retention",
 /* 125 */ "retention_list ::= retention_list NK_COMMA retention",
 /* 126 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
 /* 127 */ "speed_opt ::=",
 /* 128 */ "speed_opt ::= MAX_SPEED NK_INTEGER",
 /* 129 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
 /* 130 */ "cmd ::= CREATE TABLE multi_create_clause",
 /* 131 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
 /* 132 */ "cmd ::= DROP TABLE multi_drop_clause",
 /* 133 */ "cmd ::= DROP STABLE exists_opt full_table_name",
 /* 134 */ "cmd ::= ALTER TABLE alter_table_clause",
 /* 135 */ "cmd ::= ALTER STABLE alter_table_clause",
 /* 136 */ "alter_table_clause ::= full_table_name alter_table_options",
 /* 137 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
 /* 138 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
 /* 139 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
 /* 140 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
 /* 141 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
 /* 142 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
 /* 143 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
 /* 144 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
 /* 145 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
 /* 146 */ "multi_create_clause ::= create_subtable_clause",
 /* 147 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
 /* 148 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options",
 /* 149 */ "multi_drop_clause ::= drop_table_clause",
 /* 150 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause",
 /* 151 */ "drop_table_clause ::= exists_opt full_table_name",
 /* 152 */ "specific_cols_opt ::=",
 /* 153 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
 /* 154 */ "full_table_name ::= table_name",
 /* 155 */ "full_table_name ::= db_name NK_DOT table_name",
 /* 156 */ "column_def_list ::= column_def",
 /* 157 */ "column_def_list ::= column_def_list NK_COMMA column_def",
 /* 158 */ "column_def ::= column_name type_name",
 /* 159 */ "column_def ::= column_name type_name COMMENT NK_STRING",
 /* 160 */ "type_name ::= BOOL",
 /* 161 */ "type_name ::= TINYINT",
 /* 162 */ "type_name ::= SMALLINT",
 /* 163 */ "type_name ::= INT",
 /* 164 */ "type_name ::= INTEGER",
 /* 165 */ "type_name ::= BIGINT",
 /* 166 */ "type_name ::= FLOAT",
 /* 167 */ "type_name ::= DOUBLE",
 /* 168 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
 /* 169 */ "type_name ::= TIMESTAMP",
 /* 170 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
 /* 171 */ "type_name ::= TINYINT UNSIGNED",
 /* 172 */ "type_name ::= SMALLINT UNSIGNED",
 /* 173 */ "type_name ::= INT UNSIGNED",
 /* 174 */ "type_name ::= BIGINT UNSIGNED",
 /* 175 */ "type_name ::= JSON",
 /* 176 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
 /* 177 */ "type_name ::= MEDIUMBLOB",
 /* 178 */ "type_name ::= BLOB",
 /* 179 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
 /* 180 */ "type_name ::= DECIMAL",
 /* 181 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
 /* 182 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
 /* 183 */ "tags_def_opt ::=",
 /* 184 */ "tags_def_opt ::= tags_def",
 /* 185 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
 /* 186 */ "table_options ::=",
 /* 187 */ "table_options ::= table_options COMMENT NK_STRING",
 /* 188 */ "table_options ::= table_options MAX_DELAY duration_list",
 /* 189 */ "table_options ::= table_options WATERMARK duration_list",
 /* 190 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
 /* 191 */ "table_options ::= table_options TTL NK_INTEGER",
 /* 192 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
 /* 193 */ "table_options ::= table_options DELETE_MARK duration_list",
 /* 194 */ "alter_table_options ::= alter_table_option",
 /* 195 */ "alter_table_options ::= alter_table_options alter_table_option",
 /* 196 */ "alter_table_option ::= COMMENT NK_STRING",
 /* 197 */ "alter_table_option ::= TTL NK_INTEGER",
 /* 198 */ "duration_list ::= duration_literal",
 /* 199 */ "duration_list ::= duration_list NK_COMMA duration_literal",
 /* 200 */ "rollup_func_list ::= rollup_func_name",
 /* 201 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
 /* 202 */ "rollup_func_name ::= function_name",
 /* 203 */ "rollup_func_name ::= FIRST",
 /* 204 */ "rollup_func_name ::= LAST",
 /* 205 */ "col_name_list ::= col_name",
 /* 206 */ "col_name_list ::= col_name_list NK_COMMA col_name",
 /* 207 */ "col_name ::= column_name",
 /* 208 */ "cmd ::= SHOW DNODES",
 /* 209 */ "cmd ::= SHOW USERS",
 /* 210 */ "cmd ::= SHOW USER PRIVILEGES",
 /* 211 */ "cmd ::= SHOW DATABASES",
 /* 212 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt",
 /* 213 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
 /* 214 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
 /* 215 */ "cmd ::= SHOW MNODES",
 /* 216 */ "cmd ::= SHOW QNODES",
 /* 217 */ "cmd ::= SHOW FUNCTIONS",
 /* 218 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
 /* 219 */ "cmd ::= SHOW STREAMS",
 /* 220 */ "cmd ::= SHOW ACCOUNTS",
 /* 221 */ "cmd ::= SHOW APPS",
 /* 222 */ "cmd ::= SHOW CONNECTIONS",
 /* 223 */ "cmd ::= SHOW LICENCES",
 /* 224 */ "cmd ::= SHOW GRANTS",
 /* 225 */ "cmd ::= SHOW CREATE DATABASE db_name",
 /* 226 */ "cmd ::= SHOW CREATE TABLE full_table_name",
 /* 227 */ "cmd ::= SHOW CREATE STABLE full_table_name",
 /* 228 */ "cmd ::= SHOW QUERIES",
 /* 229 */ "cmd ::= SHOW SCORES",
 /* 230 */ "cmd ::= SHOW TOPICS",
 /* 231 */ "cmd ::= SHOW VARIABLES",
 /* 232 */ "cmd ::= SHOW CLUSTER VARIABLES",
 /* 233 */ "cmd ::= SHOW LOCAL VARIABLES",
 /* 234 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
 /* 235 */ "cmd ::= SHOW BNODES",
 /* 236 */ "cmd ::= SHOW SNODES",
 /* 237 */ "cmd ::= SHOW CLUSTER",
 /* 238 */ "cmd ::= SHOW TRANSACTIONS",
 /* 239 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
 /* 240 */ "cmd ::= SHOW CONSUMERS",
 /* 241 */ "cmd ::= SHOW SUBSCRIPTIONS",
 /* 242 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
 /* 243 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
 /* 244 */ "cmd ::= SHOW VNODES NK_INTEGER",
 /* 245 */ "cmd ::= SHOW VNODES NK_STRING",
 /* 246 */ "db_name_cond_opt ::=",
 /* 247 */ "db_name_cond_opt ::= db_name NK_DOT",
 /* 248 */ "like_pattern_opt ::=",
 /* 249 */ "like_pattern_opt ::= LIKE NK_STRING",
 /* 250 */ "table_name_cond ::= table_name",
 /* 251 */ "from_db_opt ::=",
 /* 252 */ "from_db_opt ::= FROM db_name",
 /* 253 */ "tag_list_opt ::=",
 /* 254 */ "tag_list_opt ::= tag_item",
 /* 255 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
 /* 256 */ "tag_item ::= TBNAME",
 /* 257 */ "tag_item ::= QTAGS",
 /* 258 */ "tag_item ::= column_name",
 /* 259 */ "tag_item ::= column_name column_alias",
 /* 260 */ "tag_item ::= column_name AS column_alias",
 /* 261 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options",
 /* 262 */ "cmd ::= DROP INDEX exists_opt full_table_name",
 /* 263 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
 /* 264 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt",
 /* 265 */ "func_list ::= func",
 /* 266 */ "func_list ::= func_list NK_COMMA func",
 /* 267 */ "func ::= function_name NK_LP expression_list NK_RP",
 /* 268 */ "sma_stream_opt ::=",
 /* 269 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
 /* 270 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
 /* 271 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
 /* 272 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
 /* 273 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name",
 /* 274 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name",
 /* 275 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name",
 /* 276 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name",
 /* 277 */ "cmd ::= DROP TOPIC exists_opt topic_name",
 /* 278 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
 /* 279 */ "cmd ::= DESC full_table_name",
 /* 280 */ "cmd ::= DESCRIBE full_table_name",
 /* 281 */ "cmd ::= RESET QUERY CACHE",
 /* 282 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
 /* 283 */ "analyze_opt ::=",
 /* 284 */ "analyze_opt ::= ANALYZE",
 /* 285 */ "explain_options ::=",
 /* 286 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
 /* 287 */ "explain_options ::= explain_options RATIO NK_FLOAT",
 /* 288 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt",
 /* 289 */ "cmd ::= DROP FUNCTION exists_opt function_name",
 /* 290 */ "agg_func_opt ::=",
 /* 291 */ "agg_func_opt ::= AGGREGATE",
 /* 292 */ "bufsize_opt ::=",
 /* 293 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
 /* 294 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery",
 /* 295 */ "cmd ::= DROP STREAM exists_opt stream_name",
 /* 296 */ "stream_options ::=",
 /* 297 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
 /* 298 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
 /* 299 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
 /* 300 */ "stream_options ::= stream_options WATERMARK duration_literal",
 /* 301 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
 /* 302 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
 /* 303 */ "subtable_opt ::=",
 /* 304 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
 /* 305 */ "cmd ::= KILL CONNECTION NK_INTEGER",
 /* 306 */ "cmd ::= KILL QUERY NK_STRING",
 /* 307 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
 /* 308 */ "cmd ::= BALANCE VGROUP",
 /* 309 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
 /* 310 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
 /* 311 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
 /* 312 */ "dnode_list ::= DNODE NK_INTEGER",
 /* 313 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
 /* 314 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
 /* 315 */ "cmd ::= query_or_subquery",
 /* 316 */ "cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
 /* 317 */ "cmd ::= INSERT INTO full_table_name query_or_subquery",
 /* 318 */ "literal ::= NK_INTEGER",
 /* 319 */ "literal ::= NK_FLOAT",
 /* 320 */ "literal ::= NK_STRING",
 /* 321 */ "literal ::= NK_BOOL",
 /* 322 */ "literal ::= TIMESTAMP NK_STRING",
 /* 323 */ "literal ::= duration_literal",
 /* 324 */ "literal ::= NULL",
 /* 325 */ "literal ::= NK_QUESTION",
 /* 326 */ "duration_literal ::= NK_VARIABLE",
 /* 327 */ "signed ::= NK_INTEGER",
 /* 328 */ "signed ::= NK_PLUS NK_INTEGER",
 /* 329 */ "signed ::= NK_MINUS NK_INTEGER",
 /* 330 */ "signed ::= NK_FLOAT",
 /* 331 */ "signed ::= NK_PLUS NK_FLOAT",
 /* 332 */ "signed ::= NK_MINUS NK_FLOAT",
 /* 333 */ "signed_literal ::= signed",
 /* 334 */ "signed_literal ::= NK_STRING",
 /* 335 */ "signed_literal ::= NK_BOOL",
 /* 336 */ "signed_literal ::= TIMESTAMP NK_STRING",
 /* 337 */ "signed_literal ::= duration_literal",
 /* 338 */ "signed_literal ::= NULL",
 /* 339 */ "signed_literal ::= literal_func",
 /* 340 */ "signed_literal ::= NK_QUESTION",
 /* 341 */ "literal_list ::= signed_literal",
 /* 342 */ "literal_list ::= literal_list NK_COMMA signed_literal",
 /* 343 */ "db_name ::= NK_ID",
 /* 344 */ "table_name ::= NK_ID",
 /* 345 */ "column_name ::= NK_ID",
 /* 346 */ "function_name ::= NK_ID",
 /* 347 */ "table_alias ::= NK_ID",
 /* 348 */ "column_alias ::= NK_ID",
 /* 349 */ "user_name ::= NK_ID",
 /* 350 */ "topic_name ::= NK_ID",
 /* 351 */ "stream_name ::= NK_ID",
 /* 352 */ "cgroup_name ::= NK_ID",
 /* 353 */ "expr_or_subquery ::= expression",
 /* 354 */ "expression ::= literal",
 /* 355 */ "expression ::= pseudo_column",
 /* 356 */ "expression ::= column_reference",
 /* 357 */ "expression ::= function_expression",
 /* 358 */ "expression ::= case_when_expression",
 /* 359 */ "expression ::= NK_LP expression NK_RP",
 /* 360 */ "expression ::= NK_PLUS expr_or_subquery",
 /* 361 */ "expression ::= NK_MINUS expr_or_subquery",
 /* 362 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
 /* 363 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
 /* 364 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
 /* 365 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
 /* 366 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
 /* 367 */ "expression ::= column_reference NK_ARROW NK_STRING",
 /* 368 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
 /* 369 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
 /* 370 */ "expression_list ::= expr_or_subquery",
 /* 371 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
 /* 372 */ "column_reference ::= column_name",
 /* 373 */ "column_reference ::= table_name NK_DOT column_name",
 /* 374 */ "pseudo_column ::= ROWTS",
 /* 375 */ "pseudo_column ::= TBNAME",
 /* 376 */ "pseudo_column ::= table_name NK_DOT TBNAME",
 /* 377 */ "pseudo_column ::= QSTART",
 /* 378 */ "pseudo_column ::= QEND",
 /* 379 */ "pseudo_column ::= QDURATION",
 /* 380 */ "pseudo_column ::= WSTART",
 /* 381 */ "pseudo_column ::= WEND",
 /* 382 */ "pseudo_column ::= WDURATION",
 /* 383 */ "pseudo_column ::= IROWTS",
 /* 384 */ "pseudo_column ::= ISFILLED",
 /* 385 */ "pseudo_column ::= QTAGS",
 /* 386 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
 /* 387 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
 /* 388 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
 /* 389 */ "function_expression ::= literal_func",
 /* 390 */ "literal_func ::= noarg_func NK_LP NK_RP",
 /* 391 */ "literal_func ::= NOW",
 /* 392 */ "noarg_func ::= NOW",
 /* 393 */ "noarg_func ::= TODAY",
 /* 394 */ "noarg_func ::= TIMEZONE",
 /* 395 */ "noarg_func ::= DATABASE",
 /* 396 */ "noarg_func ::= CLIENT_VERSION",
 /* 397 */ "noarg_func ::= SERVER_VERSION",
 /* 398 */ "noarg_func ::= SERVER_STATUS",
 /* 399 */ "noarg_func ::= CURRENT_USER",
 /* 400 */ "noarg_func ::= USER",
 /* 401 */ "star_func ::= COUNT",
 /* 402 */ "star_func ::= FIRST",
 /* 403 */ "star_func ::= LAST",
 /* 404 */ "star_func ::= LAST_ROW",
 /* 405 */ "star_func_para_list ::= NK_STAR",
 /* 406 */ "star_func_para_list ::= other_para_list",
 /* 407 */ "other_para_list ::= star_func_para",
 /* 408 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
 /* 409 */ "star_func_para ::= expr_or_subquery",
 /* 410 */ "star_func_para ::= table_name NK_DOT NK_STAR",
 /* 411 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
 /* 412 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
 /* 413 */ "when_then_list ::= when_then_expr",
 /* 414 */ "when_then_list ::= when_then_list when_then_expr",
 /* 415 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
 /* 416 */ "case_when_else_opt ::=",
 /* 417 */ "case_when_else_opt ::= ELSE common_expression",
 /* 418 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
 /* 419 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
 /* 420 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
 /* 421 */ "predicate ::= expr_or_subquery IS NULL",
 /* 422 */ "predicate ::= expr_or_subquery IS NOT NULL",
 /* 423 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
 /* 424 */ "compare_op ::= NK_LT",
 /* 425 */ "compare_op ::= NK_GT",
 /* 426 */ "compare_op ::= NK_LE",
 /* 427 */ "compare_op ::= NK_GE",
 /* 428 */ "compare_op ::= NK_NE",
 /* 429 */ "compare_op ::= NK_EQ",
 /* 430 */ "compare_op ::= LIKE",
 /* 431 */ "compare_op ::= NOT LIKE",
 /* 432 */ "compare_op ::= MATCH",
 /* 433 */ "compare_op ::= NMATCH",
 /* 434 */ "compare_op ::= CONTAINS",
 /* 435 */ "in_op ::= IN",
 /* 436 */ "in_op ::= NOT IN",
 /* 437 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
 /* 438 */ "boolean_value_expression ::= boolean_primary",
 /* 439 */ "boolean_value_expression ::= NOT boolean_primary",
 /* 440 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
 /* 441 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
 /* 442 */ "boolean_primary ::= predicate",
 /* 443 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
 /* 444 */ "common_expression ::= expr_or_subquery",
 /* 445 */ "common_expression ::= boolean_value_expression",
 /* 446 */ "from_clause_opt ::=",
 /* 447 */ "from_clause_opt ::= FROM table_reference_list",
 /* 448 */ "table_reference_list ::= table_reference",
 /* 449 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
 /* 450 */ "table_reference ::= table_primary",
 /* 451 */ "table_reference ::= joined_table",
 /* 452 */ "table_primary ::= table_name alias_opt",
 /* 453 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
 /* 454 */ "table_primary ::= subquery alias_opt",
 /* 455 */ "table_primary ::= parenthesized_joined_table",
 /* 456 */ "alias_opt ::=",
 /* 457 */ "alias_opt ::= table_alias",
 /* 458 */ "alias_opt ::= AS table_alias",
 /* 459 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
 /* 460 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
 /* 461 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
 /* 462 */ "join_type ::=",
 /* 463 */ "join_type ::= INNER",
 /* 464 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
 /* 465 */ "set_quantifier_opt ::=",
 /* 466 */ "set_quantifier_opt ::= DISTINCT",
 /* 467 */ "set_quantifier_opt ::= ALL",
 /* 468 */ "select_list ::= select_item",
 /* 469 */ "select_list ::= select_list NK_COMMA select_item",
 /* 470 */ "select_item ::= NK_STAR",
 /* 471 */ "select_item ::= common_expression",
 /* 472 */ "select_item ::= common_expression column_alias",
 /* 473 */ "select_item ::= common_expression AS column_alias",
 /* 474 */ "select_item ::= table_name NK_DOT NK_STAR",
 /* 475 */ "where_clause_opt ::=",
 /* 476 */ "where_clause_opt ::= WHERE search_condition",
 /* 477 */ "partition_by_clause_opt ::=",
 /* 478 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
 /* 479 */ "partition_list ::= partition_item",
 /* 480 */ "partition_list ::= partition_list NK_COMMA partition_item",
 /* 481 */ "partition_item ::= expr_or_subquery",
 /* 482 */ "partition_item ::= expr_or_subquery column_alias",
 /* 483 */ "partition_item ::= expr_or_subquery AS column_alias",
 /* 484 */ "twindow_clause_opt ::=",
 /* 485 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
 /* 486 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
 /* 487 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
 /* 488 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
 /* 489 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
 /* 490 */ "sliding_opt ::=",
 /* 491 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
 /* 492 */ "fill_opt ::=",
 /* 493 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
 /* 494 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP",
 /* 495 */ "fill_mode ::= NONE",
 /* 496 */ "fill_mode ::= PREV",
 /* 497 */ "fill_mode ::= NULL",
 /* 498 */ "fill_mode ::= LINEAR",
 /* 499 */ "fill_mode ::= NEXT",
 /* 500 */ "group_by_clause_opt ::=",
 /* 501 */ "group_by_clause_opt ::= GROUP BY group_by_list",
 /* 502 */ "group_by_list ::= expr_or_subquery",
 /* 503 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
 /* 504 */ "having_clause_opt ::=",
 /* 505 */ "having_clause_opt ::= HAVING search_condition",
 /* 506 */ "range_opt ::=",
 /* 507 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
 /* 508 */ "every_opt ::=",
 /* 509 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
 /* 510 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
 /* 511 */ "query_simple ::= query_specification",
 /* 512 */ "query_simple ::= union_query_expression",
 /* 513 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
 /* 514 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
 /* 515 */ "query_simple_or_subquery ::= query_simple",
 /* 516 */ "query_simple_or_subquery ::= subquery",
 /* 517 */ "query_or_subquery ::= query_expression",
 /* 518 */ "query_or_subquery ::= subquery",
 /* 519 */ "order_by_clause_opt ::=",
 /* 520 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
 /* 521 */ "slimit_clause_opt ::=",
 /* 522 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
 /* 523 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
 /* 524 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
 /* 525 */ "limit_clause_opt ::=",
 /* 526 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
 /* 527 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
 /* 528 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
 /* 529 */ "subquery ::= NK_LP query_expression NK_RP",
 /* 530 */ "subquery ::= NK_LP subquery NK_RP",
 /* 531 */ "search_condition ::= common_expression",
 /* 532 */ "sort_specification_list ::= sort_specification",
 /* 533 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
 /* 534 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
 /* 535 */ "ordering_specification_opt ::=",
 /* 536 */ "ordering_specification_opt ::= ASC",
 /* 537 */ "ordering_specification_opt ::= DESC",
 /* 538 */ "null_ordering_opt ::=",
 /* 539 */ "null_ordering_opt ::= NULLS FIRST",
 /* 540 */ "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 ){
    pNew = malloc(newSize*sizeof(pNew[0]));
    if( pNew ) pNew[0] = p->yystk0;
  }else{
    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
** 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.
*/
void ParseInit(void *yypRawParser ParseCTX_PDECL){
  yyParser *yypParser = (yyParser*)yypRawParser;
  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
}

#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
** to Parse and ParseFree.
*/
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
  yyParser *yypParser;
  yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
  if( yypParser ){
    ParseCTX_STORE
    ParseInit(yypParser ParseCTX_PARAM);
  }
  return (void*)yypParser;
}
#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 */
){
  ParseARG_FETCH
  ParseCTX_FETCH
  switch( yymajor ){
    /* Here is inserted the actions which take place when a
    ** terminal or non-terminal is destroyed.  This can happen
    ** when the symbol is popped from the stack during a
    ** reduce or during error processing or when a parser is 
    ** being destroyed before it is finished parsing.
    **
    ** Note: during a reduce, the only symbols destroyed are those
    ** which appear on the RHS of the rule, but which are *not* used
    ** inside the C code.
    */
/********* Begin destructor definitions ***************************************/
      /* Default NON-TERMINAL Destructor */
    case 325: /* cmd */
    case 328: /* literal */
    case 341: /* db_options */
    case 343: /* alter_db_options */
    case 349: /* retention */
    case 350: /* full_table_name */
    case 353: /* table_options */
    case 357: /* alter_table_clause */
    case 358: /* alter_table_options */
    case 361: /* signed_literal */
    case 362: /* create_subtable_clause */
    case 365: /* drop_table_clause */
    case 368: /* column_def */
    case 372: /* duration_literal */
    case 373: /* rollup_func_name */
    case 375: /* col_name */
    case 376: /* db_name_cond_opt */
    case 377: /* like_pattern_opt */
    case 378: /* table_name_cond */
    case 379: /* from_db_opt */
    case 381: /* tag_item */
    case 383: /* index_options */
    case 385: /* sliding_opt */
    case 386: /* sma_stream_opt */
    case 387: /* func */
    case 388: /* query_or_subquery */
    case 391: /* explain_options */
    case 395: /* stream_options */
    case 396: /* subtable_opt */
    case 397: /* expression */
    case 399: /* where_clause_opt */
    case 400: /* signed */
    case 401: /* literal_func */
    case 404: /* expr_or_subquery */
    case 405: /* pseudo_column */
    case 406: /* column_reference */
    case 407: /* function_expression */
    case 408: /* case_when_expression */
    case 413: /* star_func_para */
    case 415: /* case_when_else_opt */
    case 416: /* common_expression */
    case 417: /* when_then_expr */
    case 418: /* predicate */
    case 421: /* in_predicate_value */
    case 422: /* boolean_value_expression */
    case 423: /* boolean_primary */
    case 424: /* from_clause_opt */
    case 425: /* table_reference_list */
    case 426: /* table_reference */
    case 427: /* table_primary */
    case 428: /* joined_table */
    case 430: /* subquery */
    case 431: /* parenthesized_joined_table */
    case 433: /* search_condition */
    case 434: /* query_specification */
    case 438: /* range_opt */
    case 439: /* every_opt */
    case 440: /* fill_opt */
    case 441: /* twindow_clause_opt */
    case 443: /* having_clause_opt */
    case 444: /* select_item */
    case 446: /* partition_item */
    case 449: /* query_expression */
    case 450: /* query_simple */
    case 452: /* slimit_clause_opt */
    case 453: /* limit_clause_opt */
    case 454: /* union_query_expression */
    case 455: /* query_simple_or_subquery */
    case 457: /* sort_specification */
{
 nodesDestroyNode((yypminor->yy752)); 
}
      break;
    case 326: /* account_options */
    case 327: /* alter_account_options */
    case 329: /* alter_account_option */
    case 344: /* speed_opt */
    case 393: /* bufsize_opt */
{
 
}
      break;
    case 330: /* user_name */
    case 333: /* priv_level */
    case 336: /* db_name */
    case 337: /* topic_name */
    case 338: /* dnode_endpoint */
    case 359: /* column_name */
    case 367: /* table_name */
    case 374: /* function_name */
    case 382: /* column_alias */
    case 389: /* cgroup_name */
    case 394: /* stream_name */
    case 403: /* table_alias */
    case 409: /* star_func */
    case 411: /* noarg_func */
    case 429: /* alias_opt */
{
 
}
      break;
    case 331: /* sysinfo_opt */
{
 
}
      break;
    case 332: /* privileges */
    case 334: /* priv_type_list */
    case 335: /* priv_type */
{
 
}
      break;
    case 339: /* force_opt */
    case 340: /* not_exists_opt */
    case 342: /* exists_opt */
    case 390: /* analyze_opt */
    case 392: /* agg_func_opt */
    case 435: /* set_quantifier_opt */
{
 
}
      break;
    case 345: /* integer_list */
    case 346: /* variable_list */
    case 347: /* retention_list */
    case 351: /* column_def_list */
    case 352: /* tags_def_opt */
    case 354: /* multi_create_clause */
    case 355: /* tags_def */
    case 356: /* multi_drop_clause */
    case 363: /* specific_cols_opt */
    case 364: /* expression_list */
    case 366: /* col_name_list */
    case 369: /* duration_list */
    case 370: /* rollup_func_list */
    case 380: /* tag_list_opt */
    case 384: /* func_list */
    case 398: /* dnode_list */
    case 402: /* literal_list */
    case 410: /* star_func_para_list */
    case 412: /* other_para_list */
    case 414: /* when_then_list */
    case 436: /* select_list */
    case 437: /* partition_by_clause_opt */
    case 442: /* group_by_clause_opt */
    case 445: /* partition_list */
    case 448: /* group_by_list */
    case 451: /* order_by_clause_opt */
    case 456: /* sort_specification_list */
{
 nodesDestroyList((yypminor->yy424)); 
}
      break;
    case 348: /* alter_db_option */
    case 371: /* alter_table_option */
{
 
}
      break;
    case 360: /* type_name */
{
 
}
      break;
    case 419: /* compare_op */
    case 420: /* in_op */
{
 
}
      break;
    case 432: /* join_type */
{
 
}
      break;
    case 447: /* fill_mode */
{
 
}
      break;
    case 458: /* ordering_specification_opt */
{
 
}
      break;
    case 459: /* null_ordering_opt */
{
 
}
      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
*/
void ParseFinalize(void *p){
  yyParser *pParser = (yyParser*)p;
  while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
#if YYSTACKDEPTH<=0
  if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
#endif
}

#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.
*/
void ParseFree(
  void *p,                    /* The parser to be deleted */
  void (*freeProc)(void*)     /* Function used to reclaim memory */
){
#ifndef YYPARSEFREENEVERNULL
  if( p==0 ) return;
#endif
  ParseFinalize(p);
  (*freeProc)(p);
}
#endif /* Parse_ENGINEALWAYSONSTACK */

/*
** Return the peak depth of the stack for a parser.
*/
#ifdef YYTRACKMAXSTACKDEPTH
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)
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<=YY_ACTTAB_COUNT );
    assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD );
    assert( iLookAhead!=YYNOCODE );
    assert( iLookAhead < YYNTOKEN );
    i += iLookAhead;
    assert( i<(int)YY_NLOOKAHEAD );
    if( yy_lookahead[i]!=iLookAhead ){
#ifdef YYFALLBACK
      YYCODETYPE iFallback;            /* Fallback token */
      assert( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) );
      iFallback = yyFallback[iLookAhead];
      if( iFallback!=0 ){
#ifndef NDEBUG
        if( yyTraceFILE ){
          fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
             yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
        }
#endif
        assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
        iLookAhead = iFallback;
        continue;
      }
#endif
#ifdef YYWILDCARD
      {
        int j = i - iLookAhead + YYWILDCARD;
        assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) );
        if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){
#ifndef NDEBUG
          if( yyTraceFILE ){
            fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
               yyTracePrompt, yyTokenName[iLookAhead],
               yyTokenName[YYWILDCARD]);
          }
#endif /* NDEBUG */
          return yy_action[j];
        }
      }
#endif /* YYWILDCARD */
      return yy_default[stateno];
    }else{
      assert( i>=0 && i<sizeof(yy_action)/sizeof(yy_action[0]) );
      return yy_action[i];
    }
  }while(1);
}

/*
** Find the appropriate action for a parser given the non-terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_reduce_action(
  YYACTIONTYPE stateno,     /* Current state number */
  YYCODETYPE iLookAhead     /* The look-ahead token */
){
  int i;
#ifdef YYERRORSYMBOL
  if( stateno>YY_REDUCE_COUNT ){
    return yy_default[stateno];
  }
#else
  assert( stateno<=YY_REDUCE_COUNT );
#endif
  i = yy_reduce_ofst[stateno];
  assert( iLookAhead!=YYNOCODE );
  i += iLookAhead;
#ifdef YYERRORSYMBOL
  if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){
    return yy_default[stateno];
  }
#else
  assert( i>=0 && i<YY_ACTTAB_COUNT );
  assert( yy_lookahead[i]==iLookAhead );
#endif
  return yy_action[i];
}

/*
** The following routine is called if the stack overflows.
*/
static void yyStackOverflow(yyParser *yypParser){
   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 ********************************************/
   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 */
  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");
}

/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static const YYCODETYPE yyRuleInfoLhs[] = {
   325,  /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
   325,  /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
   326,  /* (2) account_options ::= */
   326,  /* (3) account_options ::= account_options PPS literal */
   326,  /* (4) account_options ::= account_options TSERIES literal */
   326,  /* (5) account_options ::= account_options STORAGE literal */
   326,  /* (6) account_options ::= account_options STREAMS literal */
   326,  /* (7) account_options ::= account_options QTIME literal */
   326,  /* (8) account_options ::= account_options DBS literal */
   326,  /* (9) account_options ::= account_options USERS literal */
   326,  /* (10) account_options ::= account_options CONNS literal */
   326,  /* (11) account_options ::= account_options STATE literal */
   327,  /* (12) alter_account_options ::= alter_account_option */
   327,  /* (13) alter_account_options ::= alter_account_options alter_account_option */
   329,  /* (14) alter_account_option ::= PASS literal */
   329,  /* (15) alter_account_option ::= PPS literal */
   329,  /* (16) alter_account_option ::= TSERIES literal */
   329,  /* (17) alter_account_option ::= STORAGE literal */
   329,  /* (18) alter_account_option ::= STREAMS literal */
   329,  /* (19) alter_account_option ::= QTIME literal */
   329,  /* (20) alter_account_option ::= DBS literal */
   329,  /* (21) alter_account_option ::= USERS literal */
   329,  /* (22) alter_account_option ::= CONNS literal */
   329,  /* (23) alter_account_option ::= STATE literal */
   325,  /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
   325,  /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
   325,  /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
   325,  /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
   325,  /* (28) cmd ::= DROP USER user_name */
   331,  /* (29) sysinfo_opt ::= */
   331,  /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */
   325,  /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */
   325,  /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */
   332,  /* (33) privileges ::= ALL */
   332,  /* (34) privileges ::= priv_type_list */
   332,  /* (35) privileges ::= SUBSCRIBE */
   334,  /* (36) priv_type_list ::= priv_type */
   334,  /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */
   335,  /* (38) priv_type ::= READ */
   335,  /* (39) priv_type ::= WRITE */
   333,  /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */
   333,  /* (41) priv_level ::= db_name NK_DOT NK_STAR */
   333,  /* (42) priv_level ::= topic_name */
   325,  /* (43) cmd ::= CREATE DNODE dnode_endpoint */
   325,  /* (44) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
   325,  /* (45) cmd ::= DROP DNODE NK_INTEGER force_opt */
   325,  /* (46) cmd ::= DROP DNODE dnode_endpoint force_opt */
   325,  /* (47) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
   325,  /* (48) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
   325,  /* (49) cmd ::= ALTER ALL DNODES NK_STRING */
   325,  /* (50) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
   338,  /* (51) dnode_endpoint ::= NK_STRING */
   338,  /* (52) dnode_endpoint ::= NK_ID */
   338,  /* (53) dnode_endpoint ::= NK_IPTOKEN */
   339,  /* (54) force_opt ::= */
   339,  /* (55) force_opt ::= FORCE */
   325,  /* (56) cmd ::= ALTER LOCAL NK_STRING */
   325,  /* (57) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
   325,  /* (58) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
   325,  /* (59) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
   325,  /* (60) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
   325,  /* (61) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
   325,  /* (62) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
   325,  /* (63) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
   325,  /* (64) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
   325,  /* (65) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
   325,  /* (66) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
   325,  /* (67) cmd ::= DROP DATABASE exists_opt db_name */
   325,  /* (68) cmd ::= USE db_name */
   325,  /* (69) cmd ::= ALTER DATABASE db_name alter_db_options */
   325,  /* (70) cmd ::= FLUSH DATABASE db_name */
   325,  /* (71) cmd ::= TRIM DATABASE db_name speed_opt */
   340,  /* (72) not_exists_opt ::= IF NOT EXISTS */
   340,  /* (73) not_exists_opt ::= */
   342,  /* (74) exists_opt ::= IF EXISTS */
   342,  /* (75) exists_opt ::= */
   341,  /* (76) db_options ::= */
   341,  /* (77) db_options ::= db_options BUFFER NK_INTEGER */
   341,  /* (78) db_options ::= db_options CACHEMODEL NK_STRING */
   341,  /* (79) db_options ::= db_options CACHESIZE NK_INTEGER */
   341,  /* (80) db_options ::= db_options COMP NK_INTEGER */
   341,  /* (81) db_options ::= db_options DURATION NK_INTEGER */
   341,  /* (82) db_options ::= db_options DURATION NK_VARIABLE */
   341,  /* (83) db_options ::= db_options MAXROWS NK_INTEGER */
   341,  /* (84) db_options ::= db_options MINROWS NK_INTEGER */
   341,  /* (85) db_options ::= db_options KEEP integer_list */
   341,  /* (86) db_options ::= db_options KEEP variable_list */
   341,  /* (87) db_options ::= db_options PAGES NK_INTEGER */
   341,  /* (88) db_options ::= db_options PAGESIZE NK_INTEGER */
   341,  /* (89) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
   341,  /* (90) db_options ::= db_options PRECISION NK_STRING */
   341,  /* (91) db_options ::= db_options REPLICA NK_INTEGER */
   341,  /* (92) db_options ::= db_options STRICT NK_STRING */
   341,  /* (93) db_options ::= db_options VGROUPS NK_INTEGER */
   341,  /* (94) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
   341,  /* (95) db_options ::= db_options RETENTIONS retention_list */
   341,  /* (96) db_options ::= db_options SCHEMALESS NK_INTEGER */
   341,  /* (97) db_options ::= db_options WAL_LEVEL NK_INTEGER */
   341,  /* (98) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
   341,  /* (99) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
   341,  /* (100) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
   341,  /* (101) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
   341,  /* (102) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
   341,  /* (103) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
   341,  /* (104) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
   341,  /* (105) db_options ::= db_options STT_TRIGGER NK_INTEGER */
   341,  /* (106) db_options ::= db_options TABLE_PREFIX NK_INTEGER */
   341,  /* (107) db_options ::= db_options TABLE_SUFFIX NK_INTEGER */
   343,  /* (108) alter_db_options ::= alter_db_option */
   343,  /* (109) alter_db_options ::= alter_db_options alter_db_option */
   348,  /* (110) alter_db_option ::= BUFFER NK_INTEGER */
   348,  /* (111) alter_db_option ::= CACHEMODEL NK_STRING */
   348,  /* (112) alter_db_option ::= CACHESIZE NK_INTEGER */
   348,  /* (113) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
   348,  /* (114) alter_db_option ::= KEEP integer_list */
   348,  /* (115) alter_db_option ::= KEEP variable_list */
   348,  /* (116) alter_db_option ::= PAGES NK_INTEGER */
   348,  /* (117) alter_db_option ::= REPLICA NK_INTEGER */
   348,  /* (118) alter_db_option ::= WAL_LEVEL NK_INTEGER */
   348,  /* (119) alter_db_option ::= STT_TRIGGER NK_INTEGER */
   345,  /* (120) integer_list ::= NK_INTEGER */
   345,  /* (121) integer_list ::= integer_list NK_COMMA NK_INTEGER */
   346,  /* (122) variable_list ::= NK_VARIABLE */
   346,  /* (123) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
   347,  /* (124) retention_list ::= retention */
   347,  /* (125) retention_list ::= retention_list NK_COMMA retention */
   349,  /* (126) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
   344,  /* (127) speed_opt ::= */
   344,  /* (128) speed_opt ::= MAX_SPEED NK_INTEGER */
   325,  /* (129) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
   325,  /* (130) cmd ::= CREATE TABLE multi_create_clause */
   325,  /* (131) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
   325,  /* (132) cmd ::= DROP TABLE multi_drop_clause */
   325,  /* (133) cmd ::= DROP STABLE exists_opt full_table_name */
   325,  /* (134) cmd ::= ALTER TABLE alter_table_clause */
   325,  /* (135) cmd ::= ALTER STABLE alter_table_clause */
   357,  /* (136) alter_table_clause ::= full_table_name alter_table_options */
   357,  /* (137) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
   357,  /* (138) alter_table_clause ::= full_table_name DROP COLUMN column_name */
   357,  /* (139) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
   357,  /* (140) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
   357,  /* (141) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
   357,  /* (142) alter_table_clause ::= full_table_name DROP TAG column_name */
   357,  /* (143) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
   357,  /* (144) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
   357,  /* (145) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
   354,  /* (146) multi_create_clause ::= create_subtable_clause */
   354,  /* (147) multi_create_clause ::= multi_create_clause create_subtable_clause */
   362,  /* (148) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
   356,  /* (149) multi_drop_clause ::= drop_table_clause */
   356,  /* (150) multi_drop_clause ::= multi_drop_clause drop_table_clause */
   365,  /* (151) drop_table_clause ::= exists_opt full_table_name */
   363,  /* (152) specific_cols_opt ::= */
   363,  /* (153) specific_cols_opt ::= NK_LP col_name_list NK_RP */
   350,  /* (154) full_table_name ::= table_name */
   350,  /* (155) full_table_name ::= db_name NK_DOT table_name */
   351,  /* (156) column_def_list ::= column_def */
   351,  /* (157) column_def_list ::= column_def_list NK_COMMA column_def */
   368,  /* (158) column_def ::= column_name type_name */
   368,  /* (159) column_def ::= column_name type_name COMMENT NK_STRING */
   360,  /* (160) type_name ::= BOOL */
   360,  /* (161) type_name ::= TINYINT */
   360,  /* (162) type_name ::= SMALLINT */
   360,  /* (163) type_name ::= INT */
   360,  /* (164) type_name ::= INTEGER */
   360,  /* (165) type_name ::= BIGINT */
   360,  /* (166) type_name ::= FLOAT */
   360,  /* (167) type_name ::= DOUBLE */
   360,  /* (168) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
   360,  /* (169) type_name ::= TIMESTAMP */
   360,  /* (170) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
   360,  /* (171) type_name ::= TINYINT UNSIGNED */
   360,  /* (172) type_name ::= SMALLINT UNSIGNED */
   360,  /* (173) type_name ::= INT UNSIGNED */
   360,  /* (174) type_name ::= BIGINT UNSIGNED */
   360,  /* (175) type_name ::= JSON */
   360,  /* (176) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
   360,  /* (177) type_name ::= MEDIUMBLOB */
   360,  /* (178) type_name ::= BLOB */
   360,  /* (179) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
   360,  /* (180) type_name ::= DECIMAL */
   360,  /* (181) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
   360,  /* (182) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
   352,  /* (183) tags_def_opt ::= */
   352,  /* (184) tags_def_opt ::= tags_def */
   355,  /* (185) tags_def ::= TAGS NK_LP column_def_list NK_RP */
   353,  /* (186) table_options ::= */
   353,  /* (187) table_options ::= table_options COMMENT NK_STRING */
   353,  /* (188) table_options ::= table_options MAX_DELAY duration_list */
   353,  /* (189) table_options ::= table_options WATERMARK duration_list */
   353,  /* (190) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
   353,  /* (191) table_options ::= table_options TTL NK_INTEGER */
   353,  /* (192) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
   353,  /* (193) table_options ::= table_options DELETE_MARK duration_list */
   358,  /* (194) alter_table_options ::= alter_table_option */
   358,  /* (195) alter_table_options ::= alter_table_options alter_table_option */
   371,  /* (196) alter_table_option ::= COMMENT NK_STRING */
   371,  /* (197) alter_table_option ::= TTL NK_INTEGER */
   369,  /* (198) duration_list ::= duration_literal */
   369,  /* (199) duration_list ::= duration_list NK_COMMA duration_literal */
   370,  /* (200) rollup_func_list ::= rollup_func_name */
   370,  /* (201) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
   373,  /* (202) rollup_func_name ::= function_name */
   373,  /* (203) rollup_func_name ::= FIRST */
   373,  /* (204) rollup_func_name ::= LAST */
   366,  /* (205) col_name_list ::= col_name */
   366,  /* (206) col_name_list ::= col_name_list NK_COMMA col_name */
   375,  /* (207) col_name ::= column_name */
   325,  /* (208) cmd ::= SHOW DNODES */
   325,  /* (209) cmd ::= SHOW USERS */
   325,  /* (210) cmd ::= SHOW USER PRIVILEGES */
   325,  /* (211) cmd ::= SHOW DATABASES */
   325,  /* (212) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
   325,  /* (213) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
   325,  /* (214) cmd ::= SHOW db_name_cond_opt VGROUPS */
   325,  /* (215) cmd ::= SHOW MNODES */
   325,  /* (216) cmd ::= SHOW QNODES */
   325,  /* (217) cmd ::= SHOW FUNCTIONS */
   325,  /* (218) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
   325,  /* (219) cmd ::= SHOW STREAMS */
   325,  /* (220) cmd ::= SHOW ACCOUNTS */
   325,  /* (221) cmd ::= SHOW APPS */
   325,  /* (222) cmd ::= SHOW CONNECTIONS */
   325,  /* (223) cmd ::= SHOW LICENCES */
   325,  /* (224) cmd ::= SHOW GRANTS */
   325,  /* (225) cmd ::= SHOW CREATE DATABASE db_name */
   325,  /* (226) cmd ::= SHOW CREATE TABLE full_table_name */
   325,  /* (227) cmd ::= SHOW CREATE STABLE full_table_name */
   325,  /* (228) cmd ::= SHOW QUERIES */
   325,  /* (229) cmd ::= SHOW SCORES */
   325,  /* (230) cmd ::= SHOW TOPICS */
   325,  /* (231) cmd ::= SHOW VARIABLES */
   325,  /* (232) cmd ::= SHOW CLUSTER VARIABLES */
   325,  /* (233) cmd ::= SHOW LOCAL VARIABLES */
   325,  /* (234) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
   325,  /* (235) cmd ::= SHOW BNODES */
   325,  /* (236) cmd ::= SHOW SNODES */
   325,  /* (237) cmd ::= SHOW CLUSTER */
   325,  /* (238) cmd ::= SHOW TRANSACTIONS */
   325,  /* (239) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
   325,  /* (240) cmd ::= SHOW CONSUMERS */
   325,  /* (241) cmd ::= SHOW SUBSCRIPTIONS */
   325,  /* (242) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
   325,  /* (243) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
   325,  /* (244) cmd ::= SHOW VNODES NK_INTEGER */
   325,  /* (245) cmd ::= SHOW VNODES NK_STRING */
   376,  /* (246) db_name_cond_opt ::= */
   376,  /* (247) db_name_cond_opt ::= db_name NK_DOT */
   377,  /* (248) like_pattern_opt ::= */
   377,  /* (249) like_pattern_opt ::= LIKE NK_STRING */
   378,  /* (250) table_name_cond ::= table_name */
   379,  /* (251) from_db_opt ::= */
   379,  /* (252) from_db_opt ::= FROM db_name */
   380,  /* (253) tag_list_opt ::= */
   380,  /* (254) tag_list_opt ::= tag_item */
   380,  /* (255) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
   381,  /* (256) tag_item ::= TBNAME */
   381,  /* (257) tag_item ::= QTAGS */
   381,  /* (258) tag_item ::= column_name */
   381,  /* (259) tag_item ::= column_name column_alias */
   381,  /* (260) tag_item ::= column_name AS column_alias */
   325,  /* (261) cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options */
   325,  /* (262) cmd ::= DROP INDEX exists_opt full_table_name */
   383,  /* (263) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
   383,  /* (264) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
   384,  /* (265) func_list ::= func */
   384,  /* (266) func_list ::= func_list NK_COMMA func */
   387,  /* (267) func ::= function_name NK_LP expression_list NK_RP */
   386,  /* (268) sma_stream_opt ::= */
   386,  /* (269) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
   386,  /* (270) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
   386,  /* (271) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
   325,  /* (272) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
   325,  /* (273) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */
   325,  /* (274) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */
   325,  /* (275) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */
   325,  /* (276) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */
   325,  /* (277) cmd ::= DROP TOPIC exists_opt topic_name */
   325,  /* (278) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
   325,  /* (279) cmd ::= DESC full_table_name */
   325,  /* (280) cmd ::= DESCRIBE full_table_name */
   325,  /* (281) cmd ::= RESET QUERY CACHE */
   325,  /* (282) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
   390,  /* (283) analyze_opt ::= */
   390,  /* (284) analyze_opt ::= ANALYZE */
   391,  /* (285) explain_options ::= */
   391,  /* (286) explain_options ::= explain_options VERBOSE NK_BOOL */
   391,  /* (287) explain_options ::= explain_options RATIO NK_FLOAT */
   325,  /* (288) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
   325,  /* (289) cmd ::= DROP FUNCTION exists_opt function_name */
   392,  /* (290) agg_func_opt ::= */
   392,  /* (291) agg_func_opt ::= AGGREGATE */
   393,  /* (292) bufsize_opt ::= */
   393,  /* (293) bufsize_opt ::= BUFSIZE NK_INTEGER */
   325,  /* (294) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */
   325,  /* (295) cmd ::= DROP STREAM exists_opt stream_name */
   395,  /* (296) stream_options ::= */
   395,  /* (297) stream_options ::= stream_options TRIGGER AT_ONCE */
   395,  /* (298) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
   395,  /* (299) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
   395,  /* (300) stream_options ::= stream_options WATERMARK duration_literal */
   395,  /* (301) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
   395,  /* (302) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
   396,  /* (303) subtable_opt ::= */
   396,  /* (304) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
   325,  /* (305) cmd ::= KILL CONNECTION NK_INTEGER */
   325,  /* (306) cmd ::= KILL QUERY NK_STRING */
   325,  /* (307) cmd ::= KILL TRANSACTION NK_INTEGER */
   325,  /* (308) cmd ::= BALANCE VGROUP */
   325,  /* (309) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
   325,  /* (310) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
   325,  /* (311) cmd ::= SPLIT VGROUP NK_INTEGER */
   398,  /* (312) dnode_list ::= DNODE NK_INTEGER */
   398,  /* (313) dnode_list ::= dnode_list DNODE NK_INTEGER */
   325,  /* (314) cmd ::= DELETE FROM full_table_name where_clause_opt */
   325,  /* (315) cmd ::= query_or_subquery */
   325,  /* (316) cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
   325,  /* (317) cmd ::= INSERT INTO full_table_name query_or_subquery */
   328,  /* (318) literal ::= NK_INTEGER */
   328,  /* (319) literal ::= NK_FLOAT */
   328,  /* (320) literal ::= NK_STRING */
   328,  /* (321) literal ::= NK_BOOL */
   328,  /* (322) literal ::= TIMESTAMP NK_STRING */
   328,  /* (323) literal ::= duration_literal */
   328,  /* (324) literal ::= NULL */
   328,  /* (325) literal ::= NK_QUESTION */
   372,  /* (326) duration_literal ::= NK_VARIABLE */
   400,  /* (327) signed ::= NK_INTEGER */
   400,  /* (328) signed ::= NK_PLUS NK_INTEGER */
   400,  /* (329) signed ::= NK_MINUS NK_INTEGER */
   400,  /* (330) signed ::= NK_FLOAT */
   400,  /* (331) signed ::= NK_PLUS NK_FLOAT */
   400,  /* (332) signed ::= NK_MINUS NK_FLOAT */
   361,  /* (333) signed_literal ::= signed */
   361,  /* (334) signed_literal ::= NK_STRING */
   361,  /* (335) signed_literal ::= NK_BOOL */
   361,  /* (336) signed_literal ::= TIMESTAMP NK_STRING */
   361,  /* (337) signed_literal ::= duration_literal */
   361,  /* (338) signed_literal ::= NULL */
   361,  /* (339) signed_literal ::= literal_func */
   361,  /* (340) signed_literal ::= NK_QUESTION */
   402,  /* (341) literal_list ::= signed_literal */
   402,  /* (342) literal_list ::= literal_list NK_COMMA signed_literal */
   336,  /* (343) db_name ::= NK_ID */
   367,  /* (344) table_name ::= NK_ID */
   359,  /* (345) column_name ::= NK_ID */
   374,  /* (346) function_name ::= NK_ID */
   403,  /* (347) table_alias ::= NK_ID */
   382,  /* (348) column_alias ::= NK_ID */
   330,  /* (349) user_name ::= NK_ID */
   337,  /* (350) topic_name ::= NK_ID */
   394,  /* (351) stream_name ::= NK_ID */
   389,  /* (352) cgroup_name ::= NK_ID */
   404,  /* (353) expr_or_subquery ::= expression */
   397,  /* (354) expression ::= literal */
   397,  /* (355) expression ::= pseudo_column */
   397,  /* (356) expression ::= column_reference */
   397,  /* (357) expression ::= function_expression */
   397,  /* (358) expression ::= case_when_expression */
   397,  /* (359) expression ::= NK_LP expression NK_RP */
   397,  /* (360) expression ::= NK_PLUS expr_or_subquery */
   397,  /* (361) expression ::= NK_MINUS expr_or_subquery */
   397,  /* (362) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
   397,  /* (363) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
   397,  /* (364) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
   397,  /* (365) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
   397,  /* (366) expression ::= expr_or_subquery NK_REM expr_or_subquery */
   397,  /* (367) expression ::= column_reference NK_ARROW NK_STRING */
   397,  /* (368) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
   397,  /* (369) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
   364,  /* (370) expression_list ::= expr_or_subquery */
   364,  /* (371) expression_list ::= expression_list NK_COMMA expr_or_subquery */
   406,  /* (372) column_reference ::= column_name */
   406,  /* (373) column_reference ::= table_name NK_DOT column_name */
   405,  /* (374) pseudo_column ::= ROWTS */
   405,  /* (375) pseudo_column ::= TBNAME */
   405,  /* (376) pseudo_column ::= table_name NK_DOT TBNAME */
   405,  /* (377) pseudo_column ::= QSTART */
   405,  /* (378) pseudo_column ::= QEND */
   405,  /* (379) pseudo_column ::= QDURATION */
   405,  /* (380) pseudo_column ::= WSTART */
   405,  /* (381) pseudo_column ::= WEND */
   405,  /* (382) pseudo_column ::= WDURATION */
   405,  /* (383) pseudo_column ::= IROWTS */
   405,  /* (384) pseudo_column ::= ISFILLED */
   405,  /* (385) pseudo_column ::= QTAGS */
   407,  /* (386) function_expression ::= function_name NK_LP expression_list NK_RP */
   407,  /* (387) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
   407,  /* (388) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
   407,  /* (389) function_expression ::= literal_func */
   401,  /* (390) literal_func ::= noarg_func NK_LP NK_RP */
   401,  /* (391) literal_func ::= NOW */
   411,  /* (392) noarg_func ::= NOW */
   411,  /* (393) noarg_func ::= TODAY */
   411,  /* (394) noarg_func ::= TIMEZONE */
   411,  /* (395) noarg_func ::= DATABASE */
   411,  /* (396) noarg_func ::= CLIENT_VERSION */
   411,  /* (397) noarg_func ::= SERVER_VERSION */
   411,  /* (398) noarg_func ::= SERVER_STATUS */
   411,  /* (399) noarg_func ::= CURRENT_USER */
   411,  /* (400) noarg_func ::= USER */
   409,  /* (401) star_func ::= COUNT */
   409,  /* (402) star_func ::= FIRST */
   409,  /* (403) star_func ::= LAST */
   409,  /* (404) star_func ::= LAST_ROW */
   410,  /* (405) star_func_para_list ::= NK_STAR */
   410,  /* (406) star_func_para_list ::= other_para_list */
   412,  /* (407) other_para_list ::= star_func_para */
   412,  /* (408) other_para_list ::= other_para_list NK_COMMA star_func_para */
   413,  /* (409) star_func_para ::= expr_or_subquery */
   413,  /* (410) star_func_para ::= table_name NK_DOT NK_STAR */
   408,  /* (411) case_when_expression ::= CASE when_then_list case_when_else_opt END */
   408,  /* (412) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
   414,  /* (413) when_then_list ::= when_then_expr */
   414,  /* (414) when_then_list ::= when_then_list when_then_expr */
   417,  /* (415) when_then_expr ::= WHEN common_expression THEN common_expression */
   415,  /* (416) case_when_else_opt ::= */
   415,  /* (417) case_when_else_opt ::= ELSE common_expression */
   418,  /* (418) predicate ::= expr_or_subquery compare_op expr_or_subquery */
   418,  /* (419) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
   418,  /* (420) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
   418,  /* (421) predicate ::= expr_or_subquery IS NULL */
   418,  /* (422) predicate ::= expr_or_subquery IS NOT NULL */
   418,  /* (423) predicate ::= expr_or_subquery in_op in_predicate_value */
   419,  /* (424) compare_op ::= NK_LT */
   419,  /* (425) compare_op ::= NK_GT */
   419,  /* (426) compare_op ::= NK_LE */
   419,  /* (427) compare_op ::= NK_GE */
   419,  /* (428) compare_op ::= NK_NE */
   419,  /* (429) compare_op ::= NK_EQ */
   419,  /* (430) compare_op ::= LIKE */
   419,  /* (431) compare_op ::= NOT LIKE */
   419,  /* (432) compare_op ::= MATCH */
   419,  /* (433) compare_op ::= NMATCH */
   419,  /* (434) compare_op ::= CONTAINS */
   420,  /* (435) in_op ::= IN */
   420,  /* (436) in_op ::= NOT IN */
   421,  /* (437) in_predicate_value ::= NK_LP literal_list NK_RP */
   422,  /* (438) boolean_value_expression ::= boolean_primary */
   422,  /* (439) boolean_value_expression ::= NOT boolean_primary */
   422,  /* (440) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
   422,  /* (441) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
   423,  /* (442) boolean_primary ::= predicate */
   423,  /* (443) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
   416,  /* (444) common_expression ::= expr_or_subquery */
   416,  /* (445) common_expression ::= boolean_value_expression */
   424,  /* (446) from_clause_opt ::= */
   424,  /* (447) from_clause_opt ::= FROM table_reference_list */
   425,  /* (448) table_reference_list ::= table_reference */
   425,  /* (449) table_reference_list ::= table_reference_list NK_COMMA table_reference */
   426,  /* (450) table_reference ::= table_primary */
   426,  /* (451) table_reference ::= joined_table */
   427,  /* (452) table_primary ::= table_name alias_opt */
   427,  /* (453) table_primary ::= db_name NK_DOT table_name alias_opt */
   427,  /* (454) table_primary ::= subquery alias_opt */
   427,  /* (455) table_primary ::= parenthesized_joined_table */
   429,  /* (456) alias_opt ::= */
   429,  /* (457) alias_opt ::= table_alias */
   429,  /* (458) alias_opt ::= AS table_alias */
   431,  /* (459) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
   431,  /* (460) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
   428,  /* (461) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
   432,  /* (462) join_type ::= */
   432,  /* (463) join_type ::= INNER */
   434,  /* (464) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
   435,  /* (465) set_quantifier_opt ::= */
   435,  /* (466) set_quantifier_opt ::= DISTINCT */
   435,  /* (467) set_quantifier_opt ::= ALL */
   436,  /* (468) select_list ::= select_item */
   436,  /* (469) select_list ::= select_list NK_COMMA select_item */
   444,  /* (470) select_item ::= NK_STAR */
   444,  /* (471) select_item ::= common_expression */
   444,  /* (472) select_item ::= common_expression column_alias */
   444,  /* (473) select_item ::= common_expression AS column_alias */
   444,  /* (474) select_item ::= table_name NK_DOT NK_STAR */
   399,  /* (475) where_clause_opt ::= */
   399,  /* (476) where_clause_opt ::= WHERE search_condition */
   437,  /* (477) partition_by_clause_opt ::= */
   437,  /* (478) partition_by_clause_opt ::= PARTITION BY partition_list */
   445,  /* (479) partition_list ::= partition_item */
   445,  /* (480) partition_list ::= partition_list NK_COMMA partition_item */
   446,  /* (481) partition_item ::= expr_or_subquery */
   446,  /* (482) partition_item ::= expr_or_subquery column_alias */
   446,  /* (483) partition_item ::= expr_or_subquery AS column_alias */
   441,  /* (484) twindow_clause_opt ::= */
   441,  /* (485) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
   441,  /* (486) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
   441,  /* (487) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
   441,  /* (488) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
   441,  /* (489) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
   385,  /* (490) sliding_opt ::= */
   385,  /* (491) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
   440,  /* (492) fill_opt ::= */
   440,  /* (493) fill_opt ::= FILL NK_LP fill_mode NK_RP */
   440,  /* (494) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
   447,  /* (495) fill_mode ::= NONE */
   447,  /* (496) fill_mode ::= PREV */
   447,  /* (497) fill_mode ::= NULL */
   447,  /* (498) fill_mode ::= LINEAR */
   447,  /* (499) fill_mode ::= NEXT */
   442,  /* (500) group_by_clause_opt ::= */
   442,  /* (501) group_by_clause_opt ::= GROUP BY group_by_list */
   448,  /* (502) group_by_list ::= expr_or_subquery */
   448,  /* (503) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
   443,  /* (504) having_clause_opt ::= */
   443,  /* (505) having_clause_opt ::= HAVING search_condition */
   438,  /* (506) range_opt ::= */
   438,  /* (507) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
   439,  /* (508) every_opt ::= */
   439,  /* (509) every_opt ::= EVERY NK_LP duration_literal NK_RP */
   449,  /* (510) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
   450,  /* (511) query_simple ::= query_specification */
   450,  /* (512) query_simple ::= union_query_expression */
   454,  /* (513) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
   454,  /* (514) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
   455,  /* (515) query_simple_or_subquery ::= query_simple */
   455,  /* (516) query_simple_or_subquery ::= subquery */
   388,  /* (517) query_or_subquery ::= query_expression */
   388,  /* (518) query_or_subquery ::= subquery */
   451,  /* (519) order_by_clause_opt ::= */
   451,  /* (520) order_by_clause_opt ::= ORDER BY sort_specification_list */
   452,  /* (521) slimit_clause_opt ::= */
   452,  /* (522) slimit_clause_opt ::= SLIMIT NK_INTEGER */
   452,  /* (523) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
   452,  /* (524) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
   453,  /* (525) limit_clause_opt ::= */
   453,  /* (526) limit_clause_opt ::= LIMIT NK_INTEGER */
   453,  /* (527) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
   453,  /* (528) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
   430,  /* (529) subquery ::= NK_LP query_expression NK_RP */
   430,  /* (530) subquery ::= NK_LP subquery NK_RP */
   433,  /* (531) search_condition ::= common_expression */
   456,  /* (532) sort_specification_list ::= sort_specification */
   456,  /* (533) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
   457,  /* (534) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
   458,  /* (535) ordering_specification_opt ::= */
   458,  /* (536) ordering_specification_opt ::= ASC */
   458,  /* (537) ordering_specification_opt ::= DESC */
   459,  /* (538) null_ordering_opt ::= */
   459,  /* (539) null_ordering_opt ::= NULLS FIRST */
   459,  /* (540) null_ordering_opt ::= NULLS LAST */
};

/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static const signed char yyRuleInfoNRhs[] = {
   -6,  /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
   -4,  /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
    0,  /* (2) account_options ::= */
   -3,  /* (3) account_options ::= account_options PPS literal */
   -3,  /* (4) account_options ::= account_options TSERIES literal */
   -3,  /* (5) account_options ::= account_options STORAGE literal */
   -3,  /* (6) account_options ::= account_options STREAMS literal */
   -3,  /* (7) account_options ::= account_options QTIME literal */
   -3,  /* (8) account_options ::= account_options DBS literal */
   -3,  /* (9) account_options ::= account_options USERS literal */
   -3,  /* (10) account_options ::= account_options CONNS literal */
   -3,  /* (11) account_options ::= account_options STATE literal */
   -1,  /* (12) alter_account_options ::= alter_account_option */
   -2,  /* (13) alter_account_options ::= alter_account_options alter_account_option */
   -2,  /* (14) alter_account_option ::= PASS literal */
   -2,  /* (15) alter_account_option ::= PPS literal */
   -2,  /* (16) alter_account_option ::= TSERIES literal */
   -2,  /* (17) alter_account_option ::= STORAGE literal */
   -2,  /* (18) alter_account_option ::= STREAMS literal */
   -2,  /* (19) alter_account_option ::= QTIME literal */
   -2,  /* (20) alter_account_option ::= DBS literal */
   -2,  /* (21) alter_account_option ::= USERS literal */
   -2,  /* (22) alter_account_option ::= CONNS literal */
   -2,  /* (23) alter_account_option ::= STATE literal */
   -6,  /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
   -5,  /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
   -5,  /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
   -5,  /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
   -3,  /* (28) cmd ::= DROP USER user_name */
    0,  /* (29) sysinfo_opt ::= */
   -2,  /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */
   -6,  /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */
   -6,  /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */
   -1,  /* (33) privileges ::= ALL */
   -1,  /* (34) privileges ::= priv_type_list */
   -1,  /* (35) privileges ::= SUBSCRIBE */
   -1,  /* (36) priv_type_list ::= priv_type */
   -3,  /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */
   -1,  /* (38) priv_type ::= READ */
   -1,  /* (39) priv_type ::= WRITE */
   -3,  /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */
   -3,  /* (41) priv_level ::= db_name NK_DOT NK_STAR */
   -1,  /* (42) priv_level ::= topic_name */
   -3,  /* (43) cmd ::= CREATE DNODE dnode_endpoint */
   -5,  /* (44) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
   -4,  /* (45) cmd ::= DROP DNODE NK_INTEGER force_opt */
   -4,  /* (46) cmd ::= DROP DNODE dnode_endpoint force_opt */
   -4,  /* (47) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
   -5,  /* (48) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
   -4,  /* (49) cmd ::= ALTER ALL DNODES NK_STRING */
   -5,  /* (50) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
   -1,  /* (51) dnode_endpoint ::= NK_STRING */
   -1,  /* (52) dnode_endpoint ::= NK_ID */
   -1,  /* (53) dnode_endpoint ::= NK_IPTOKEN */
    0,  /* (54) force_opt ::= */
   -1,  /* (55) force_opt ::= FORCE */
   -3,  /* (56) cmd ::= ALTER LOCAL NK_STRING */
   -4,  /* (57) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
   -5,  /* (58) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
   -5,  /* (59) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
   -5,  /* (60) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
   -5,  /* (61) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
   -5,  /* (62) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
   -5,  /* (63) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
   -5,  /* (64) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
   -5,  /* (65) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
   -5,  /* (66) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
   -4,  /* (67) cmd ::= DROP DATABASE exists_opt db_name */
   -2,  /* (68) cmd ::= USE db_name */
   -4,  /* (69) cmd ::= ALTER DATABASE db_name alter_db_options */
   -3,  /* (70) cmd ::= FLUSH DATABASE db_name */
   -4,  /* (71) cmd ::= TRIM DATABASE db_name speed_opt */
   -3,  /* (72) not_exists_opt ::= IF NOT EXISTS */
    0,  /* (73) not_exists_opt ::= */
   -2,  /* (74) exists_opt ::= IF EXISTS */
    0,  /* (75) exists_opt ::= */
    0,  /* (76) db_options ::= */
   -3,  /* (77) db_options ::= db_options BUFFER NK_INTEGER */
   -3,  /* (78) db_options ::= db_options CACHEMODEL NK_STRING */
   -3,  /* (79) db_options ::= db_options CACHESIZE NK_INTEGER */
   -3,  /* (80) db_options ::= db_options COMP NK_INTEGER */
   -3,  /* (81) db_options ::= db_options DURATION NK_INTEGER */
   -3,  /* (82) db_options ::= db_options DURATION NK_VARIABLE */
   -3,  /* (83) db_options ::= db_options MAXROWS NK_INTEGER */
   -3,  /* (84) db_options ::= db_options MINROWS NK_INTEGER */
   -3,  /* (85) db_options ::= db_options KEEP integer_list */
   -3,  /* (86) db_options ::= db_options KEEP variable_list */
   -3,  /* (87) db_options ::= db_options PAGES NK_INTEGER */
   -3,  /* (88) db_options ::= db_options PAGESIZE NK_INTEGER */
   -3,  /* (89) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
   -3,  /* (90) db_options ::= db_options PRECISION NK_STRING */
   -3,  /* (91) db_options ::= db_options REPLICA NK_INTEGER */
   -3,  /* (92) db_options ::= db_options STRICT NK_STRING */
   -3,  /* (93) db_options ::= db_options VGROUPS NK_INTEGER */
   -3,  /* (94) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
   -3,  /* (95) db_options ::= db_options RETENTIONS retention_list */
   -3,  /* (96) db_options ::= db_options SCHEMALESS NK_INTEGER */
   -3,  /* (97) db_options ::= db_options WAL_LEVEL NK_INTEGER */
   -3,  /* (98) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
   -3,  /* (99) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
   -4,  /* (100) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
   -3,  /* (101) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
   -4,  /* (102) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
   -3,  /* (103) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
   -3,  /* (104) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
   -3,  /* (105) db_options ::= db_options STT_TRIGGER NK_INTEGER */
   -3,  /* (106) db_options ::= db_options TABLE_PREFIX NK_INTEGER */
   -3,  /* (107) db_options ::= db_options TABLE_SUFFIX NK_INTEGER */
   -1,  /* (108) alter_db_options ::= alter_db_option */
   -2,  /* (109) alter_db_options ::= alter_db_options alter_db_option */
   -2,  /* (110) alter_db_option ::= BUFFER NK_INTEGER */
   -2,  /* (111) alter_db_option ::= CACHEMODEL NK_STRING */
   -2,  /* (112) alter_db_option ::= CACHESIZE NK_INTEGER */
   -2,  /* (113) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
   -2,  /* (114) alter_db_option ::= KEEP integer_list */
   -2,  /* (115) alter_db_option ::= KEEP variable_list */
   -2,  /* (116) alter_db_option ::= PAGES NK_INTEGER */
   -2,  /* (117) alter_db_option ::= REPLICA NK_INTEGER */
   -2,  /* (118) alter_db_option ::= WAL_LEVEL NK_INTEGER */
   -2,  /* (119) alter_db_option ::= STT_TRIGGER NK_INTEGER */
   -1,  /* (120) integer_list ::= NK_INTEGER */
   -3,  /* (121) integer_list ::= integer_list NK_COMMA NK_INTEGER */
   -1,  /* (122) variable_list ::= NK_VARIABLE */
   -3,  /* (123) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
   -1,  /* (124) retention_list ::= retention */
   -3,  /* (125) retention_list ::= retention_list NK_COMMA retention */
   -3,  /* (126) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
    0,  /* (127) speed_opt ::= */
   -2,  /* (128) speed_opt ::= MAX_SPEED NK_INTEGER */
   -9,  /* (129) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
   -3,  /* (130) cmd ::= CREATE TABLE multi_create_clause */
   -9,  /* (131) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
   -3,  /* (132) cmd ::= DROP TABLE multi_drop_clause */
   -4,  /* (133) cmd ::= DROP STABLE exists_opt full_table_name */
   -3,  /* (134) cmd ::= ALTER TABLE alter_table_clause */
   -3,  /* (135) cmd ::= ALTER STABLE alter_table_clause */
   -2,  /* (136) alter_table_clause ::= full_table_name alter_table_options */
   -5,  /* (137) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
   -4,  /* (138) alter_table_clause ::= full_table_name DROP COLUMN column_name */
   -5,  /* (139) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
   -5,  /* (140) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
   -5,  /* (141) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
   -4,  /* (142) alter_table_clause ::= full_table_name DROP TAG column_name */
   -5,  /* (143) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
   -5,  /* (144) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
   -6,  /* (145) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
   -1,  /* (146) multi_create_clause ::= create_subtable_clause */
   -2,  /* (147) multi_create_clause ::= multi_create_clause create_subtable_clause */
  -10,  /* (148) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
   -1,  /* (149) multi_drop_clause ::= drop_table_clause */
   -2,  /* (150) multi_drop_clause ::= multi_drop_clause drop_table_clause */
   -2,  /* (151) drop_table_clause ::= exists_opt full_table_name */
    0,  /* (152) specific_cols_opt ::= */
   -3,  /* (153) specific_cols_opt ::= NK_LP col_name_list NK_RP */
   -1,  /* (154) full_table_name ::= table_name */
   -3,  /* (155) full_table_name ::= db_name NK_DOT table_name */
   -1,  /* (156) column_def_list ::= column_def */
   -3,  /* (157) column_def_list ::= column_def_list NK_COMMA column_def */
   -2,  /* (158) column_def ::= column_name type_name */
   -4,  /* (159) column_def ::= column_name type_name COMMENT NK_STRING */
   -1,  /* (160) type_name ::= BOOL */
   -1,  /* (161) type_name ::= TINYINT */
   -1,  /* (162) type_name ::= SMALLINT */
   -1,  /* (163) type_name ::= INT */
   -1,  /* (164) type_name ::= INTEGER */
   -1,  /* (165) type_name ::= BIGINT */
   -1,  /* (166) type_name ::= FLOAT */
   -1,  /* (167) type_name ::= DOUBLE */
   -4,  /* (168) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
   -1,  /* (169) type_name ::= TIMESTAMP */
   -4,  /* (170) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
   -2,  /* (171) type_name ::= TINYINT UNSIGNED */
   -2,  /* (172) type_name ::= SMALLINT UNSIGNED */
   -2,  /* (173) type_name ::= INT UNSIGNED */
   -2,  /* (174) type_name ::= BIGINT UNSIGNED */
   -1,  /* (175) type_name ::= JSON */
   -4,  /* (176) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
   -1,  /* (177) type_name ::= MEDIUMBLOB */
   -1,  /* (178) type_name ::= BLOB */
   -4,  /* (179) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
   -1,  /* (180) type_name ::= DECIMAL */
   -4,  /* (181) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
   -6,  /* (182) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
    0,  /* (183) tags_def_opt ::= */
   -1,  /* (184) tags_def_opt ::= tags_def */
   -4,  /* (185) tags_def ::= TAGS NK_LP column_def_list NK_RP */
    0,  /* (186) table_options ::= */
   -3,  /* (187) table_options ::= table_options COMMENT NK_STRING */
   -3,  /* (188) table_options ::= table_options MAX_DELAY duration_list */
   -3,  /* (189) table_options ::= table_options WATERMARK duration_list */
   -5,  /* (190) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
   -3,  /* (191) table_options ::= table_options TTL NK_INTEGER */
   -5,  /* (192) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
   -3,  /* (193) table_options ::= table_options DELETE_MARK duration_list */
   -1,  /* (194) alter_table_options ::= alter_table_option */
   -2,  /* (195) alter_table_options ::= alter_table_options alter_table_option */
   -2,  /* (196) alter_table_option ::= COMMENT NK_STRING */
   -2,  /* (197) alter_table_option ::= TTL NK_INTEGER */
   -1,  /* (198) duration_list ::= duration_literal */
   -3,  /* (199) duration_list ::= duration_list NK_COMMA duration_literal */
   -1,  /* (200) rollup_func_list ::= rollup_func_name */
   -3,  /* (201) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
   -1,  /* (202) rollup_func_name ::= function_name */
   -1,  /* (203) rollup_func_name ::= FIRST */
   -1,  /* (204) rollup_func_name ::= LAST */
   -1,  /* (205) col_name_list ::= col_name */
   -3,  /* (206) col_name_list ::= col_name_list NK_COMMA col_name */
   -1,  /* (207) col_name ::= column_name */
   -2,  /* (208) cmd ::= SHOW DNODES */
   -2,  /* (209) cmd ::= SHOW USERS */
   -3,  /* (210) cmd ::= SHOW USER PRIVILEGES */
   -2,  /* (211) cmd ::= SHOW DATABASES */
   -4,  /* (212) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
   -4,  /* (213) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
   -3,  /* (214) cmd ::= SHOW db_name_cond_opt VGROUPS */
   -2,  /* (215) cmd ::= SHOW MNODES */
   -2,  /* (216) cmd ::= SHOW QNODES */
   -2,  /* (217) cmd ::= SHOW FUNCTIONS */
   -5,  /* (218) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
   -2,  /* (219) cmd ::= SHOW STREAMS */
   -2,  /* (220) cmd ::= SHOW ACCOUNTS */
   -2,  /* (221) cmd ::= SHOW APPS */
   -2,  /* (222) cmd ::= SHOW CONNECTIONS */
   -2,  /* (223) cmd ::= SHOW LICENCES */
   -2,  /* (224) cmd ::= SHOW GRANTS */
   -4,  /* (225) cmd ::= SHOW CREATE DATABASE db_name */
   -4,  /* (226) cmd ::= SHOW CREATE TABLE full_table_name */
   -4,  /* (227) cmd ::= SHOW CREATE STABLE full_table_name */
   -2,  /* (228) cmd ::= SHOW QUERIES */
   -2,  /* (229) cmd ::= SHOW SCORES */
   -2,  /* (230) cmd ::= SHOW TOPICS */
   -2,  /* (231) cmd ::= SHOW VARIABLES */
   -3,  /* (232) cmd ::= SHOW CLUSTER VARIABLES */
   -3,  /* (233) cmd ::= SHOW LOCAL VARIABLES */
   -5,  /* (234) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
   -2,  /* (235) cmd ::= SHOW BNODES */
   -2,  /* (236) cmd ::= SHOW SNODES */
   -2,  /* (237) cmd ::= SHOW CLUSTER */
   -2,  /* (238) cmd ::= SHOW TRANSACTIONS */
   -4,  /* (239) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
   -2,  /* (240) cmd ::= SHOW CONSUMERS */
   -2,  /* (241) cmd ::= SHOW SUBSCRIPTIONS */
   -5,  /* (242) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
   -7,  /* (243) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
   -3,  /* (244) cmd ::= SHOW VNODES NK_INTEGER */
   -3,  /* (245) cmd ::= SHOW VNODES NK_STRING */
    0,  /* (246) db_name_cond_opt ::= */
   -2,  /* (247) db_name_cond_opt ::= db_name NK_DOT */
    0,  /* (248) like_pattern_opt ::= */
   -2,  /* (249) like_pattern_opt ::= LIKE NK_STRING */
   -1,  /* (250) table_name_cond ::= table_name */
    0,  /* (251) from_db_opt ::= */
   -2,  /* (252) from_db_opt ::= FROM db_name */
    0,  /* (253) tag_list_opt ::= */
   -1,  /* (254) tag_list_opt ::= tag_item */
   -3,  /* (255) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
   -1,  /* (256) tag_item ::= TBNAME */
   -1,  /* (257) tag_item ::= QTAGS */
   -1,  /* (258) tag_item ::= column_name */
   -2,  /* (259) tag_item ::= column_name column_alias */
   -3,  /* (260) tag_item ::= column_name AS column_alias */
   -8,  /* (261) cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options */
   -4,  /* (262) cmd ::= DROP INDEX exists_opt full_table_name */
  -10,  /* (263) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
  -12,  /* (264) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
   -1,  /* (265) func_list ::= func */
   -3,  /* (266) func_list ::= func_list NK_COMMA func */
   -4,  /* (267) func ::= function_name NK_LP expression_list NK_RP */
    0,  /* (268) sma_stream_opt ::= */
   -3,  /* (269) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
   -3,  /* (270) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
   -3,  /* (271) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
   -6,  /* (272) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
   -7,  /* (273) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */
   -9,  /* (274) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */
   -7,  /* (275) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */
   -9,  /* (276) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */
   -4,  /* (277) cmd ::= DROP TOPIC exists_opt topic_name */
   -7,  /* (278) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
   -2,  /* (279) cmd ::= DESC full_table_name */
   -2,  /* (280) cmd ::= DESCRIBE full_table_name */
   -3,  /* (281) cmd ::= RESET QUERY CACHE */
   -4,  /* (282) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
    0,  /* (283) analyze_opt ::= */
   -1,  /* (284) analyze_opt ::= ANALYZE */
    0,  /* (285) explain_options ::= */
   -3,  /* (286) explain_options ::= explain_options VERBOSE NK_BOOL */
   -3,  /* (287) explain_options ::= explain_options RATIO NK_FLOAT */
  -10,  /* (288) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
   -4,  /* (289) cmd ::= DROP FUNCTION exists_opt function_name */
    0,  /* (290) agg_func_opt ::= */
   -1,  /* (291) agg_func_opt ::= AGGREGATE */
    0,  /* (292) bufsize_opt ::= */
   -2,  /* (293) bufsize_opt ::= BUFSIZE NK_INTEGER */
  -11,  /* (294) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */
   -4,  /* (295) cmd ::= DROP STREAM exists_opt stream_name */
    0,  /* (296) stream_options ::= */
   -3,  /* (297) stream_options ::= stream_options TRIGGER AT_ONCE */
   -3,  /* (298) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
   -4,  /* (299) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
   -3,  /* (300) stream_options ::= stream_options WATERMARK duration_literal */
   -4,  /* (301) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
   -3,  /* (302) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
    0,  /* (303) subtable_opt ::= */
   -4,  /* (304) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
   -3,  /* (305) cmd ::= KILL CONNECTION NK_INTEGER */
   -3,  /* (306) cmd ::= KILL QUERY NK_STRING */
   -3,  /* (307) cmd ::= KILL TRANSACTION NK_INTEGER */
   -2,  /* (308) cmd ::= BALANCE VGROUP */
   -4,  /* (309) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
   -4,  /* (310) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
   -3,  /* (311) cmd ::= SPLIT VGROUP NK_INTEGER */
   -2,  /* (312) dnode_list ::= DNODE NK_INTEGER */
   -3,  /* (313) dnode_list ::= dnode_list DNODE NK_INTEGER */
   -4,  /* (314) cmd ::= DELETE FROM full_table_name where_clause_opt */
   -1,  /* (315) cmd ::= query_or_subquery */
   -7,  /* (316) cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
   -4,  /* (317) cmd ::= INSERT INTO full_table_name query_or_subquery */
   -1,  /* (318) literal ::= NK_INTEGER */
   -1,  /* (319) literal ::= NK_FLOAT */
   -1,  /* (320) literal ::= NK_STRING */
   -1,  /* (321) literal ::= NK_BOOL */
   -2,  /* (322) literal ::= TIMESTAMP NK_STRING */
   -1,  /* (323) literal ::= duration_literal */
   -1,  /* (324) literal ::= NULL */
   -1,  /* (325) literal ::= NK_QUESTION */
   -1,  /* (326) duration_literal ::= NK_VARIABLE */
   -1,  /* (327) signed ::= NK_INTEGER */
   -2,  /* (328) signed ::= NK_PLUS NK_INTEGER */
   -2,  /* (329) signed ::= NK_MINUS NK_INTEGER */
   -1,  /* (330) signed ::= NK_FLOAT */
   -2,  /* (331) signed ::= NK_PLUS NK_FLOAT */
   -2,  /* (332) signed ::= NK_MINUS NK_FLOAT */
   -1,  /* (333) signed_literal ::= signed */
   -1,  /* (334) signed_literal ::= NK_STRING */
   -1,  /* (335) signed_literal ::= NK_BOOL */
   -2,  /* (336) signed_literal ::= TIMESTAMP NK_STRING */
   -1,  /* (337) signed_literal ::= duration_literal */
   -1,  /* (338) signed_literal ::= NULL */
   -1,  /* (339) signed_literal ::= literal_func */
   -1,  /* (340) signed_literal ::= NK_QUESTION */
   -1,  /* (341) literal_list ::= signed_literal */
   -3,  /* (342) literal_list ::= literal_list NK_COMMA signed_literal */
   -1,  /* (343) db_name ::= NK_ID */
   -1,  /* (344) table_name ::= NK_ID */
   -1,  /* (345) column_name ::= NK_ID */
   -1,  /* (346) function_name ::= NK_ID */
   -1,  /* (347) table_alias ::= NK_ID */
   -1,  /* (348) column_alias ::= NK_ID */
   -1,  /* (349) user_name ::= NK_ID */
   -1,  /* (350) topic_name ::= NK_ID */
   -1,  /* (351) stream_name ::= NK_ID */
   -1,  /* (352) cgroup_name ::= NK_ID */
   -1,  /* (353) expr_or_subquery ::= expression */
   -1,  /* (354) expression ::= literal */
   -1,  /* (355) expression ::= pseudo_column */
   -1,  /* (356) expression ::= column_reference */
   -1,  /* (357) expression ::= function_expression */
   -1,  /* (358) expression ::= case_when_expression */
   -3,  /* (359) expression ::= NK_LP expression NK_RP */
   -2,  /* (360) expression ::= NK_PLUS expr_or_subquery */
   -2,  /* (361) expression ::= NK_MINUS expr_or_subquery */
   -3,  /* (362) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
   -3,  /* (363) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
   -3,  /* (364) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
   -3,  /* (365) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
   -3,  /* (366) expression ::= expr_or_subquery NK_REM expr_or_subquery */
   -3,  /* (367) expression ::= column_reference NK_ARROW NK_STRING */
   -3,  /* (368) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
   -3,  /* (369) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
   -1,  /* (370) expression_list ::= expr_or_subquery */
   -3,  /* (371) expression_list ::= expression_list NK_COMMA expr_or_subquery */
   -1,  /* (372) column_reference ::= column_name */
   -3,  /* (373) column_reference ::= table_name NK_DOT column_name */
   -1,  /* (374) pseudo_column ::= ROWTS */
   -1,  /* (375) pseudo_column ::= TBNAME */
   -3,  /* (376) pseudo_column ::= table_name NK_DOT TBNAME */
   -1,  /* (377) pseudo_column ::= QSTART */
   -1,  /* (378) pseudo_column ::= QEND */
   -1,  /* (379) pseudo_column ::= QDURATION */
   -1,  /* (380) pseudo_column ::= WSTART */
   -1,  /* (381) pseudo_column ::= WEND */
   -1,  /* (382) pseudo_column ::= WDURATION */
   -1,  /* (383) pseudo_column ::= IROWTS */
   -1,  /* (384) pseudo_column ::= ISFILLED */
   -1,  /* (385) pseudo_column ::= QTAGS */
   -4,  /* (386) function_expression ::= function_name NK_LP expression_list NK_RP */
   -4,  /* (387) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
   -6,  /* (388) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
   -1,  /* (389) function_expression ::= literal_func */
   -3,  /* (390) literal_func ::= noarg_func NK_LP NK_RP */
   -1,  /* (391) literal_func ::= NOW */
   -1,  /* (392) noarg_func ::= NOW */
   -1,  /* (393) noarg_func ::= TODAY */
   -1,  /* (394) noarg_func ::= TIMEZONE */
   -1,  /* (395) noarg_func ::= DATABASE */
   -1,  /* (396) noarg_func ::= CLIENT_VERSION */
   -1,  /* (397) noarg_func ::= SERVER_VERSION */
   -1,  /* (398) noarg_func ::= SERVER_STATUS */
   -1,  /* (399) noarg_func ::= CURRENT_USER */
   -1,  /* (400) noarg_func ::= USER */
   -1,  /* (401) star_func ::= COUNT */
   -1,  /* (402) star_func ::= FIRST */
   -1,  /* (403) star_func ::= LAST */
   -1,  /* (404) star_func ::= LAST_ROW */
   -1,  /* (405) star_func_para_list ::= NK_STAR */
   -1,  /* (406) star_func_para_list ::= other_para_list */
   -1,  /* (407) other_para_list ::= star_func_para */
   -3,  /* (408) other_para_list ::= other_para_list NK_COMMA star_func_para */
   -1,  /* (409) star_func_para ::= expr_or_subquery */
   -3,  /* (410) star_func_para ::= table_name NK_DOT NK_STAR */
   -4,  /* (411) case_when_expression ::= CASE when_then_list case_when_else_opt END */
   -5,  /* (412) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
   -1,  /* (413) when_then_list ::= when_then_expr */
   -2,  /* (414) when_then_list ::= when_then_list when_then_expr */
   -4,  /* (415) when_then_expr ::= WHEN common_expression THEN common_expression */
    0,  /* (416) case_when_else_opt ::= */
   -2,  /* (417) case_when_else_opt ::= ELSE common_expression */
   -3,  /* (418) predicate ::= expr_or_subquery compare_op expr_or_subquery */
   -5,  /* (419) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
   -6,  /* (420) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
   -3,  /* (421) predicate ::= expr_or_subquery IS NULL */
   -4,  /* (422) predicate ::= expr_or_subquery IS NOT NULL */
   -3,  /* (423) predicate ::= expr_or_subquery in_op in_predicate_value */
   -1,  /* (424) compare_op ::= NK_LT */
   -1,  /* (425) compare_op ::= NK_GT */
   -1,  /* (426) compare_op ::= NK_LE */
   -1,  /* (427) compare_op ::= NK_GE */
   -1,  /* (428) compare_op ::= NK_NE */
   -1,  /* (429) compare_op ::= NK_EQ */
   -1,  /* (430) compare_op ::= LIKE */
   -2,  /* (431) compare_op ::= NOT LIKE */
   -1,  /* (432) compare_op ::= MATCH */
   -1,  /* (433) compare_op ::= NMATCH */
   -1,  /* (434) compare_op ::= CONTAINS */
   -1,  /* (435) in_op ::= IN */
   -2,  /* (436) in_op ::= NOT IN */
   -3,  /* (437) in_predicate_value ::= NK_LP literal_list NK_RP */
   -1,  /* (438) boolean_value_expression ::= boolean_primary */
   -2,  /* (439) boolean_value_expression ::= NOT boolean_primary */
   -3,  /* (440) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
   -3,  /* (441) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
   -1,  /* (442) boolean_primary ::= predicate */
   -3,  /* (443) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
   -1,  /* (444) common_expression ::= expr_or_subquery */
   -1,  /* (445) common_expression ::= boolean_value_expression */
    0,  /* (446) from_clause_opt ::= */
   -2,  /* (447) from_clause_opt ::= FROM table_reference_list */
   -1,  /* (448) table_reference_list ::= table_reference */
   -3,  /* (449) table_reference_list ::= table_reference_list NK_COMMA table_reference */
   -1,  /* (450) table_reference ::= table_primary */
   -1,  /* (451) table_reference ::= joined_table */
   -2,  /* (452) table_primary ::= table_name alias_opt */
   -4,  /* (453) table_primary ::= db_name NK_DOT table_name alias_opt */
   -2,  /* (454) table_primary ::= subquery alias_opt */
   -1,  /* (455) table_primary ::= parenthesized_joined_table */
    0,  /* (456) alias_opt ::= */
   -1,  /* (457) alias_opt ::= table_alias */
   -2,  /* (458) alias_opt ::= AS table_alias */
   -3,  /* (459) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
   -3,  /* (460) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
   -6,  /* (461) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
    0,  /* (462) join_type ::= */
   -1,  /* (463) join_type ::= INNER */
  -12,  /* (464) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
    0,  /* (465) set_quantifier_opt ::= */
   -1,  /* (466) set_quantifier_opt ::= DISTINCT */
   -1,  /* (467) set_quantifier_opt ::= ALL */
   -1,  /* (468) select_list ::= select_item */
   -3,  /* (469) select_list ::= select_list NK_COMMA select_item */
   -1,  /* (470) select_item ::= NK_STAR */
   -1,  /* (471) select_item ::= common_expression */
   -2,  /* (472) select_item ::= common_expression column_alias */
   -3,  /* (473) select_item ::= common_expression AS column_alias */
   -3,  /* (474) select_item ::= table_name NK_DOT NK_STAR */
    0,  /* (475) where_clause_opt ::= */
   -2,  /* (476) where_clause_opt ::= WHERE search_condition */
    0,  /* (477) partition_by_clause_opt ::= */
   -3,  /* (478) partition_by_clause_opt ::= PARTITION BY partition_list */
   -1,  /* (479) partition_list ::= partition_item */
   -3,  /* (480) partition_list ::= partition_list NK_COMMA partition_item */
   -1,  /* (481) partition_item ::= expr_or_subquery */
   -2,  /* (482) partition_item ::= expr_or_subquery column_alias */
   -3,  /* (483) partition_item ::= expr_or_subquery AS column_alias */
    0,  /* (484) twindow_clause_opt ::= */
   -6,  /* (485) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
   -4,  /* (486) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
   -6,  /* (487) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
   -8,  /* (488) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
   -7,  /* (489) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
    0,  /* (490) sliding_opt ::= */
   -4,  /* (491) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
    0,  /* (492) fill_opt ::= */
   -4,  /* (493) fill_opt ::= FILL NK_LP fill_mode NK_RP */
   -6,  /* (494) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
   -1,  /* (495) fill_mode ::= NONE */
   -1,  /* (496) fill_mode ::= PREV */
   -1,  /* (497) fill_mode ::= NULL */
   -1,  /* (498) fill_mode ::= LINEAR */
   -1,  /* (499) fill_mode ::= NEXT */
    0,  /* (500) group_by_clause_opt ::= */
   -3,  /* (501) group_by_clause_opt ::= GROUP BY group_by_list */
   -1,  /* (502) group_by_list ::= expr_or_subquery */
   -3,  /* (503) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
    0,  /* (504) having_clause_opt ::= */
   -2,  /* (505) having_clause_opt ::= HAVING search_condition */
    0,  /* (506) range_opt ::= */
   -6,  /* (507) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
    0,  /* (508) every_opt ::= */
   -4,  /* (509) every_opt ::= EVERY NK_LP duration_literal NK_RP */
   -4,  /* (510) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
   -1,  /* (511) query_simple ::= query_specification */
   -1,  /* (512) query_simple ::= union_query_expression */
   -4,  /* (513) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
   -3,  /* (514) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
   -1,  /* (515) query_simple_or_subquery ::= query_simple */
   -1,  /* (516) query_simple_or_subquery ::= subquery */
   -1,  /* (517) query_or_subquery ::= query_expression */
   -1,  /* (518) query_or_subquery ::= subquery */
    0,  /* (519) order_by_clause_opt ::= */
   -3,  /* (520) order_by_clause_opt ::= ORDER BY sort_specification_list */
    0,  /* (521) slimit_clause_opt ::= */
   -2,  /* (522) slimit_clause_opt ::= SLIMIT NK_INTEGER */
   -4,  /* (523) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
   -4,  /* (524) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
    0,  /* (525) limit_clause_opt ::= */
   -2,  /* (526) limit_clause_opt ::= LIMIT NK_INTEGER */
   -4,  /* (527) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
   -4,  /* (528) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
   -3,  /* (529) subquery ::= NK_LP query_expression NK_RP */
   -3,  /* (530) subquery ::= NK_LP subquery NK_RP */
   -1,  /* (531) search_condition ::= common_expression */
   -1,  /* (532) sort_specification_list ::= sort_specification */
   -3,  /* (533) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
   -3,  /* (534) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
    0,  /* (535) ordering_specification_opt ::= */
   -1,  /* (536) ordering_specification_opt ::= ASC */
   -1,  /* (537) ordering_specification_opt ::= DESC */
    0,  /* (538) null_ordering_opt ::= */
   -2,  /* (539) null_ordering_opt ::= NULLS FIRST */
   -2,  /* (540) 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 */
  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 */
  ParseARG_FETCH
  (void)yyLookahead;
  (void)yyLookaheadToken;
  yymsp = yypParser->yytos;
#ifndef NDEBUG
  if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){
    yysize = yyRuleInfoNRhs[yyruleno];
    if( yysize ){
      fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
        yyTracePrompt,
        yyruleno, yyRuleName[yyruleno],
        yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
        yymsp[yysize].stateno);
    }else{
      fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
        yyTracePrompt, yyruleno, yyRuleName[yyruleno],
        yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
    }
  }
#endif /* NDEBUG */

  /* Check that the stack is large enough to grow by a single entry
  ** if the RHS of the rule is empty.  This ensures that there is room
  ** enough on the stack to push the LHS value */
  if( yyRuleInfoNRhs[yyruleno]==0 ){
#ifdef YYTRACKMAXSTACKDEPTH
    if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
      yypParser->yyhwm++;
      assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack));
    }
#endif
#if YYSTACKDEPTH>0 
    if( yypParser->yytos>=yypParser->yystackEnd ){
      yyStackOverflow(yypParser);
      /* The call to yyStackOverflow() above pops the stack until it is
      ** empty, causing the main parser loop to exit.  So the return value
      ** is never used and does not matter. */
      return 0;
    }
#else
    if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
      if( yyGrowStack(yypParser) ){
        yyStackOverflow(yypParser);
        /* The call to yyStackOverflow() above pops the stack until it is
        ** empty, causing the main parser loop to exit.  So the return value
        ** is never used and does not matter. */
        return 0;
      }
      yymsp = yypParser->yytos;
    }
#endif
  }

  switch( yyruleno ){
  /* Beginning here are the reduction cases.  A typical example
  ** follows:
  **   case 0:
  **  #line <lineno> <grammarfile>
  **     { ... }           // User supplied code
  **  #line <lineno> <thisfile>
  **     break;
  */
/********** Begin reduce actions **********************************************/
        YYMINORTYPE yylhsminor;
      case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
  yy_destructor(yypParser,326,&yymsp[0].minor);
        break;
      case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
  yy_destructor(yypParser,327,&yymsp[0].minor);
        break;
      case 2: /* account_options ::= */
{ }
        break;
      case 3: /* account_options ::= account_options PPS literal */
      case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4);
      case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5);
      case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6);
      case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7);
      case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8);
      case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9);
      case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10);
      case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11);
{  yy_destructor(yypParser,326,&yymsp[-2].minor);
{ }
  yy_destructor(yypParser,328,&yymsp[0].minor);
}
        break;
      case 12: /* alter_account_options ::= alter_account_option */
{  yy_destructor(yypParser,329,&yymsp[0].minor);
{ }
}
        break;
      case 13: /* alter_account_options ::= alter_account_options alter_account_option */
{  yy_destructor(yypParser,327,&yymsp[-1].minor);
{ }
  yy_destructor(yypParser,329,&yymsp[0].minor);
}
        break;
      case 14: /* alter_account_option ::= PASS literal */
      case 15: /* alter_account_option ::= PPS literal */ yytestcase(yyruleno==15);
      case 16: /* alter_account_option ::= TSERIES literal */ yytestcase(yyruleno==16);
      case 17: /* alter_account_option ::= STORAGE literal */ yytestcase(yyruleno==17);
      case 18: /* alter_account_option ::= STREAMS literal */ yytestcase(yyruleno==18);
      case 19: /* alter_account_option ::= QTIME literal */ yytestcase(yyruleno==19);
      case 20: /* alter_account_option ::= DBS literal */ yytestcase(yyruleno==20);
      case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21);
      case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22);
      case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23);
{ }
  yy_destructor(yypParser,328,&yymsp[0].minor);
        break;
      case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy849, &yymsp[-1].minor.yy0, yymsp[0].minor.yy383); }
        break;
      case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy849, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
        break;
      case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy849, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
        break;
      case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy849, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
        break;
      case 28: /* cmd ::= DROP USER user_name */
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy849); }
        break;
      case 29: /* sysinfo_opt ::= */
{ yymsp[1].minor.yy383 = 1; }
        break;
      case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
{ yymsp[-1].minor.yy383 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
        break;
      case 31: /* cmd ::= GRANT privileges ON priv_level TO user_name */
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy869, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy849); }
        break;
      case 32: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy869, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy849); }
        break;
      case 33: /* privileges ::= ALL */
{ yymsp[0].minor.yy869 = PRIVILEGE_TYPE_ALL; }
        break;
      case 34: /* privileges ::= priv_type_list */
      case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36);
{ yylhsminor.yy869 = yymsp[0].minor.yy869; }
  yymsp[0].minor.yy869 = yylhsminor.yy869;
        break;
      case 35: /* privileges ::= SUBSCRIBE */
{ yymsp[0].minor.yy869 = PRIVILEGE_TYPE_SUBSCRIBE; }
        break;
      case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
{ yylhsminor.yy869 = yymsp[-2].minor.yy869 | yymsp[0].minor.yy869; }
  yymsp[-2].minor.yy869 = yylhsminor.yy869;
        break;
      case 38: /* priv_type ::= READ */
{ yymsp[0].minor.yy869 = PRIVILEGE_TYPE_READ; }
        break;
      case 39: /* priv_type ::= WRITE */
{ yymsp[0].minor.yy869 = PRIVILEGE_TYPE_WRITE; }
        break;
      case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
{ yylhsminor.yy849 = yymsp[-2].minor.yy0; }
  yymsp[-2].minor.yy849 = yylhsminor.yy849;
        break;
      case 41: /* priv_level ::= db_name NK_DOT NK_STAR */
{ yylhsminor.yy849 = yymsp[-2].minor.yy849; }
  yymsp[-2].minor.yy849 = yylhsminor.yy849;
        break;
      case 42: /* priv_level ::= topic_name */
      case 457: /* alias_opt ::= table_alias */ yytestcase(yyruleno==457);
{ yylhsminor.yy849 = yymsp[0].minor.yy849; }
  yymsp[0].minor.yy849 = yylhsminor.yy849;
        break;
      case 43: /* cmd ::= CREATE DNODE dnode_endpoint */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy849, NULL); }
        break;
      case 44: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy0); }
        break;
      case 45: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy57); }
        break;
      case 46: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy849, yymsp[0].minor.yy57); }
        break;
      case 47: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
        break;
      case 48: /* 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 49: /* cmd ::= ALTER ALL DNODES NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
        break;
      case 50: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
      case 51: /* dnode_endpoint ::= NK_STRING */
      case 52: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==52);
      case 53: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==53);
      case 343: /* db_name ::= NK_ID */ yytestcase(yyruleno==343);
      case 344: /* table_name ::= NK_ID */ yytestcase(yyruleno==344);
      case 345: /* column_name ::= NK_ID */ yytestcase(yyruleno==345);
      case 346: /* function_name ::= NK_ID */ yytestcase(yyruleno==346);
      case 347: /* table_alias ::= NK_ID */ yytestcase(yyruleno==347);
      case 348: /* column_alias ::= NK_ID */ yytestcase(yyruleno==348);
      case 349: /* user_name ::= NK_ID */ yytestcase(yyruleno==349);
      case 350: /* topic_name ::= NK_ID */ yytestcase(yyruleno==350);
      case 351: /* stream_name ::= NK_ID */ yytestcase(yyruleno==351);
      case 352: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==352);
      case 392: /* noarg_func ::= NOW */ yytestcase(yyruleno==392);
      case 393: /* noarg_func ::= TODAY */ yytestcase(yyruleno==393);
      case 394: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==394);
      case 395: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==395);
      case 396: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==396);
      case 397: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==397);
      case 398: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==398);
      case 399: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==399);
      case 400: /* noarg_func ::= USER */ yytestcase(yyruleno==400);
      case 401: /* star_func ::= COUNT */ yytestcase(yyruleno==401);
      case 402: /* star_func ::= FIRST */ yytestcase(yyruleno==402);
      case 403: /* star_func ::= LAST */ yytestcase(yyruleno==403);
      case 404: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==404);
{ yylhsminor.yy849 = yymsp[0].minor.yy0; }
  yymsp[0].minor.yy849 = yylhsminor.yy849;
        break;
      case 54: /* force_opt ::= */
      case 73: /* not_exists_opt ::= */ yytestcase(yyruleno==73);
      case 75: /* exists_opt ::= */ yytestcase(yyruleno==75);
      case 283: /* analyze_opt ::= */ yytestcase(yyruleno==283);
      case 290: /* agg_func_opt ::= */ yytestcase(yyruleno==290);
      case 465: /* set_quantifier_opt ::= */ yytestcase(yyruleno==465);
{ yymsp[1].minor.yy57 = false; }
        break;
      case 55: /* force_opt ::= FORCE */
      case 284: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==284);
      case 291: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==291);
      case 466: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==466);
{ yymsp[0].minor.yy57 = true; }
        break;
      case 56: /* cmd ::= ALTER LOCAL NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
        break;
      case 57: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
      case 58: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 59: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 60: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 61: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 62: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 63: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 64: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 65: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 66: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy57, &yymsp[-1].minor.yy849, yymsp[0].minor.yy752); }
        break;
      case 67: /* cmd ::= DROP DATABASE exists_opt db_name */
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy57, &yymsp[0].minor.yy849); }
        break;
      case 68: /* cmd ::= USE db_name */
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy849); }
        break;
      case 69: /* cmd ::= ALTER DATABASE db_name alter_db_options */
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy849, yymsp[0].minor.yy752); }
        break;
      case 70: /* cmd ::= FLUSH DATABASE db_name */
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy849); }
        break;
      case 71: /* cmd ::= TRIM DATABASE db_name speed_opt */
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy849, yymsp[0].minor.yy340); }
        break;
      case 72: /* not_exists_opt ::= IF NOT EXISTS */
{ yymsp[-2].minor.yy57 = true; }
        break;
      case 74: /* exists_opt ::= IF EXISTS */
{ yymsp[-1].minor.yy57 = true; }
        break;
      case 76: /* db_options ::= */
{ yymsp[1].minor.yy752 = createDefaultDatabaseOptions(pCxt); }
        break;
      case 77: /* db_options ::= db_options BUFFER NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 78: /* db_options ::= db_options CACHEMODEL NK_STRING */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 79: /* db_options ::= db_options CACHESIZE NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 80: /* db_options ::= db_options COMP NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 81: /* db_options ::= db_options DURATION NK_INTEGER */
      case 82: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==82);
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 83: /* db_options ::= db_options MAXROWS NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 84: /* db_options ::= db_options MINROWS NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 85: /* db_options ::= db_options KEEP integer_list */
      case 86: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==86);
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_KEEP, yymsp[0].minor.yy424); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 87: /* db_options ::= db_options PAGES NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 88: /* db_options ::= db_options PAGESIZE NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 89: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 90: /* db_options ::= db_options PRECISION NK_STRING */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 91: /* db_options ::= db_options REPLICA NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 92: /* db_options ::= db_options STRICT NK_STRING */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_STRICT, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 93: /* db_options ::= db_options VGROUPS NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 94: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 95: /* db_options ::= db_options RETENTIONS retention_list */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_RETENTIONS, yymsp[0].minor.yy424); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 96: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 97: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 98: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 99: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 100: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
                                                                                    yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-3].minor.yy752, DB_OPTION_WAL_RETENTION_PERIOD, &t);
                                                                                  }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 101: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 102: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
                                                                                    yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-3].minor.yy752, DB_OPTION_WAL_RETENTION_SIZE, &t);
                                                                                  }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 103: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 104: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 105: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 106: /* db_options ::= db_options TABLE_PREFIX NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_TABLE_PREFIX, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 107: /* db_options ::= db_options TABLE_SUFFIX NK_INTEGER */
{ yylhsminor.yy752 = setDatabaseOption(pCxt, yymsp[-2].minor.yy752, DB_OPTION_TABLE_SUFFIX, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 108: /* alter_db_options ::= alter_db_option */
{ yylhsminor.yy752 = createAlterDatabaseOptions(pCxt); yylhsminor.yy752 = setAlterDatabaseOption(pCxt, yylhsminor.yy752, &yymsp[0].minor.yy5); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 109: /* alter_db_options ::= alter_db_options alter_db_option */
{ yylhsminor.yy752 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy752, &yymsp[0].minor.yy5); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 110: /* alter_db_option ::= BUFFER NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 111: /* alter_db_option ::= CACHEMODEL NK_STRING */
{ yymsp[-1].minor.yy5.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 112: /* alter_db_option ::= CACHESIZE NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 113: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 114: /* alter_db_option ::= KEEP integer_list */
      case 115: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==115);
{ yymsp[-1].minor.yy5.type = DB_OPTION_KEEP; yymsp[-1].minor.yy5.pList = yymsp[0].minor.yy424; }
        break;
      case 116: /* alter_db_option ::= PAGES NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_PAGES; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 117: /* alter_db_option ::= REPLICA NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 118: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_WAL; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 119: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
{ yymsp[-1].minor.yy5.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 120: /* integer_list ::= NK_INTEGER */
{ yylhsminor.yy424 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy424 = yylhsminor.yy424;
        break;
      case 121: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
      case 313: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==313);
{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
  yymsp[-2].minor.yy424 = yylhsminor.yy424;
        break;
      case 122: /* variable_list ::= NK_VARIABLE */
{ yylhsminor.yy424 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy424 = yylhsminor.yy424;
        break;
      case 123: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[-2].minor.yy424 = yylhsminor.yy424;
        break;
      case 124: /* retention_list ::= retention */
      case 146: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==146);
      case 149: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==149);
      case 156: /* column_def_list ::= column_def */ yytestcase(yyruleno==156);
      case 200: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==200);
      case 205: /* col_name_list ::= col_name */ yytestcase(yyruleno==205);
      case 254: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==254);
      case 265: /* func_list ::= func */ yytestcase(yyruleno==265);
      case 341: /* literal_list ::= signed_literal */ yytestcase(yyruleno==341);
      case 407: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==407);
      case 413: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==413);
      case 468: /* select_list ::= select_item */ yytestcase(yyruleno==468);
      case 479: /* partition_list ::= partition_item */ yytestcase(yyruleno==479);
      case 532: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==532);
{ yylhsminor.yy424 = createNodeList(pCxt, yymsp[0].minor.yy752); }
  yymsp[0].minor.yy424 = yylhsminor.yy424;
        break;
      case 125: /* retention_list ::= retention_list NK_COMMA retention */
      case 157: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==157);
      case 201: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==201);
      case 206: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==206);
      case 255: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==255);
      case 266: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==266);
      case 342: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==342);
      case 408: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==408);
      case 469: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==469);
      case 480: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==480);
      case 533: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==533);
{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, yymsp[0].minor.yy752); }
  yymsp[-2].minor.yy424 = yylhsminor.yy424;
        break;
      case 126: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
{ yylhsminor.yy752 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 127: /* speed_opt ::= */
      case 292: /* bufsize_opt ::= */ yytestcase(yyruleno==292);
{ yymsp[1].minor.yy340 = 0; }
        break;
      case 128: /* speed_opt ::= MAX_SPEED NK_INTEGER */
      case 293: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==293);
{ yymsp[-1].minor.yy340 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
        break;
      case 129: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
      case 131: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==131);
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy57, yymsp[-5].minor.yy752, yymsp[-3].minor.yy424, yymsp[-1].minor.yy424, yymsp[0].minor.yy752); }
        break;
      case 130: /* cmd ::= CREATE TABLE multi_create_clause */
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy424); }
        break;
      case 132: /* cmd ::= DROP TABLE multi_drop_clause */
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy424); }
        break;
      case 133: /* cmd ::= DROP STABLE exists_opt full_table_name */
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy57, yymsp[0].minor.yy752); }
        break;
      case 134: /* cmd ::= ALTER TABLE alter_table_clause */
      case 315: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==315);
{ pCxt->pRootNode = yymsp[0].minor.yy752; }
        break;
      case 135: /* cmd ::= ALTER STABLE alter_table_clause */
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy752); }
        break;
      case 136: /* alter_table_clause ::= full_table_name alter_table_options */
{ yylhsminor.yy752 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy752, yymsp[0].minor.yy752); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 137: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
{ yylhsminor.yy752 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy752, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy849, yymsp[0].minor.yy384); }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 138: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
{ yylhsminor.yy752 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy752, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy849); }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 139: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
{ yylhsminor.yy752 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy752, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy849, yymsp[0].minor.yy384); }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 140: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
{ yylhsminor.yy752 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy752, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy849, &yymsp[0].minor.yy849); }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 141: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
{ yylhsminor.yy752 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy752, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy849, yymsp[0].minor.yy384); }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 142: /* alter_table_clause ::= full_table_name DROP TAG column_name */
{ yylhsminor.yy752 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy752, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy849); }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 143: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
{ yylhsminor.yy752 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy752, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy849, yymsp[0].minor.yy384); }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 144: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
{ yylhsminor.yy752 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy752, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy849, &yymsp[0].minor.yy849); }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 145: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
{ yylhsminor.yy752 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy752, &yymsp[-2].minor.yy849, yymsp[0].minor.yy752); }
  yymsp[-5].minor.yy752 = yylhsminor.yy752;
        break;
      case 147: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
      case 150: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==150);
      case 414: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==414);
{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-1].minor.yy424, yymsp[0].minor.yy752); }
  yymsp[-1].minor.yy424 = yylhsminor.yy424;
        break;
      case 148: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
{ yylhsminor.yy752 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy57, yymsp[-8].minor.yy752, yymsp[-6].minor.yy752, yymsp[-5].minor.yy424, yymsp[-2].minor.yy424, yymsp[0].minor.yy752); }
  yymsp[-9].minor.yy752 = yylhsminor.yy752;
        break;
      case 151: /* drop_table_clause ::= exists_opt full_table_name */
{ yylhsminor.yy752 = createDropTableClause(pCxt, yymsp[-1].minor.yy57, yymsp[0].minor.yy752); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 152: /* specific_cols_opt ::= */
      case 183: /* tags_def_opt ::= */ yytestcase(yyruleno==183);
      case 253: /* tag_list_opt ::= */ yytestcase(yyruleno==253);
      case 477: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==477);
      case 500: /* group_by_clause_opt ::= */ yytestcase(yyruleno==500);
      case 519: /* order_by_clause_opt ::= */ yytestcase(yyruleno==519);
{ yymsp[1].minor.yy424 = NULL; }
        break;
      case 153: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
{ yymsp[-2].minor.yy424 = yymsp[-1].minor.yy424; }
        break;
      case 154: /* full_table_name ::= table_name */
{ yylhsminor.yy752 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy849, NULL); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 155: /* full_table_name ::= db_name NK_DOT table_name */
{ yylhsminor.yy752 = createRealTableNode(pCxt, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy849, NULL); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 158: /* column_def ::= column_name type_name */
{ yylhsminor.yy752 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy849, yymsp[0].minor.yy384, NULL); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 159: /* column_def ::= column_name type_name COMMENT NK_STRING */
{ yylhsminor.yy752 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy849, yymsp[-2].minor.yy384, &yymsp[0].minor.yy0); }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 160: /* type_name ::= BOOL */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_BOOL); }
        break;
      case 161: /* type_name ::= TINYINT */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_TINYINT); }
        break;
      case 162: /* type_name ::= SMALLINT */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
        break;
      case 163: /* type_name ::= INT */
      case 164: /* type_name ::= INTEGER */ yytestcase(yyruleno==164);
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_INT); }
        break;
      case 165: /* type_name ::= BIGINT */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_BIGINT); }
        break;
      case 166: /* type_name ::= FLOAT */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_FLOAT); }
        break;
      case 167: /* type_name ::= DOUBLE */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
        break;
      case 168: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy384 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
        break;
      case 169: /* type_name ::= TIMESTAMP */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
        break;
      case 170: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy384 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
        break;
      case 171: /* type_name ::= TINYINT UNSIGNED */
{ yymsp[-1].minor.yy384 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
        break;
      case 172: /* type_name ::= SMALLINT UNSIGNED */
{ yymsp[-1].minor.yy384 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
        break;
      case 173: /* type_name ::= INT UNSIGNED */
{ yymsp[-1].minor.yy384 = createDataType(TSDB_DATA_TYPE_UINT); }
        break;
      case 174: /* type_name ::= BIGINT UNSIGNED */
{ yymsp[-1].minor.yy384 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
        break;
      case 175: /* type_name ::= JSON */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_JSON); }
        break;
      case 176: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy384 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
        break;
      case 177: /* type_name ::= MEDIUMBLOB */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
        break;
      case 178: /* type_name ::= BLOB */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_BLOB); }
        break;
      case 179: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy384 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
        break;
      case 180: /* type_name ::= DECIMAL */
{ yymsp[0].minor.yy384 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
        break;
      case 181: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy384 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
        break;
      case 182: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy384 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
        break;
      case 184: /* tags_def_opt ::= tags_def */
      case 406: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==406);
{ yylhsminor.yy424 = yymsp[0].minor.yy424; }
  yymsp[0].minor.yy424 = yylhsminor.yy424;
        break;
      case 185: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
{ yymsp[-3].minor.yy424 = yymsp[-1].minor.yy424; }
        break;
      case 186: /* table_options ::= */
{ yymsp[1].minor.yy752 = createDefaultTableOptions(pCxt); }
        break;
      case 187: /* table_options ::= table_options COMMENT NK_STRING */
{ yylhsminor.yy752 = setTableOption(pCxt, yymsp[-2].minor.yy752, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 188: /* table_options ::= table_options MAX_DELAY duration_list */
{ yylhsminor.yy752 = setTableOption(pCxt, yymsp[-2].minor.yy752, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy424); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 189: /* table_options ::= table_options WATERMARK duration_list */
{ yylhsminor.yy752 = setTableOption(pCxt, yymsp[-2].minor.yy752, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy424); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 190: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
{ yylhsminor.yy752 = setTableOption(pCxt, yymsp[-4].minor.yy752, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy424); }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 191: /* table_options ::= table_options TTL NK_INTEGER */
{ yylhsminor.yy752 = setTableOption(pCxt, yymsp[-2].minor.yy752, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 192: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
{ yylhsminor.yy752 = setTableOption(pCxt, yymsp[-4].minor.yy752, TABLE_OPTION_SMA, yymsp[-1].minor.yy424); }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 193: /* table_options ::= table_options DELETE_MARK duration_list */
{ yylhsminor.yy752 = setTableOption(pCxt, yymsp[-2].minor.yy752, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy424); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 194: /* alter_table_options ::= alter_table_option */
{ yylhsminor.yy752 = createAlterTableOptions(pCxt); yylhsminor.yy752 = setTableOption(pCxt, yylhsminor.yy752, yymsp[0].minor.yy5.type, &yymsp[0].minor.yy5.val); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 195: /* alter_table_options ::= alter_table_options alter_table_option */
{ yylhsminor.yy752 = setTableOption(pCxt, yymsp[-1].minor.yy752, yymsp[0].minor.yy5.type, &yymsp[0].minor.yy5.val); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 196: /* alter_table_option ::= COMMENT NK_STRING */
{ yymsp[-1].minor.yy5.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 197: /* alter_table_option ::= TTL NK_INTEGER */
{ yymsp[-1].minor.yy5.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy5.val = yymsp[0].minor.yy0; }
        break;
      case 198: /* duration_list ::= duration_literal */
      case 370: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==370);
{ yylhsminor.yy424 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy752)); }
  yymsp[0].minor.yy424 = yylhsminor.yy424;
        break;
      case 199: /* duration_list ::= duration_list NK_COMMA duration_literal */
      case 371: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==371);
{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, releaseRawExprNode(pCxt, yymsp[0].minor.yy752)); }
  yymsp[-2].minor.yy424 = yylhsminor.yy424;
        break;
      case 202: /* rollup_func_name ::= function_name */
{ yylhsminor.yy752 = createFunctionNode(pCxt, &yymsp[0].minor.yy849, NULL); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 203: /* rollup_func_name ::= FIRST */
      case 204: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==204);
      case 257: /* tag_item ::= QTAGS */ yytestcase(yyruleno==257);
{ yylhsminor.yy752 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 207: /* col_name ::= column_name */
      case 258: /* tag_item ::= column_name */ yytestcase(yyruleno==258);
{ yylhsminor.yy752 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy849); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 208: /* cmd ::= SHOW DNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
        break;
      case 209: /* cmd ::= SHOW USERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
        break;
      case 210: /* cmd ::= SHOW USER PRIVILEGES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
        break;
      case 211: /* cmd ::= SHOW DATABASES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); }
        break;
      case 212: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy752, yymsp[0].minor.yy752, OP_TYPE_LIKE); }
        break;
      case 213: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy752, yymsp[0].minor.yy752, OP_TYPE_LIKE); }
        break;
      case 214: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy752, NULL, OP_TYPE_LIKE); }
        break;
      case 215: /* cmd ::= SHOW MNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
        break;
      case 216: /* cmd ::= SHOW QNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
        break;
      case 217: /* cmd ::= SHOW FUNCTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
        break;
      case 218: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy752, yymsp[-1].minor.yy752, OP_TYPE_EQUAL); }
        break;
      case 219: /* cmd ::= SHOW STREAMS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
        break;
      case 220: /* cmd ::= SHOW ACCOUNTS */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
        break;
      case 221: /* cmd ::= SHOW APPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
        break;
      case 222: /* cmd ::= SHOW CONNECTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
        break;
      case 223: /* cmd ::= SHOW LICENCES */
      case 224: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==224);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
        break;
      case 225: /* cmd ::= SHOW CREATE DATABASE db_name */
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy849); }
        break;
      case 226: /* cmd ::= SHOW CREATE TABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy752); }
        break;
      case 227: /* cmd ::= SHOW CREATE STABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy752); }
        break;
      case 228: /* cmd ::= SHOW QUERIES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
        break;
      case 229: /* cmd ::= SHOW SCORES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
        break;
      case 230: /* cmd ::= SHOW TOPICS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
        break;
      case 231: /* cmd ::= SHOW VARIABLES */
      case 232: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==232);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
        break;
      case 233: /* cmd ::= SHOW LOCAL VARIABLES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
        break;
      case 234: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy752); }
        break;
      case 235: /* cmd ::= SHOW BNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
        break;
      case 236: /* cmd ::= SHOW SNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
        break;
      case 237: /* cmd ::= SHOW CLUSTER */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
        break;
      case 238: /* cmd ::= SHOW TRANSACTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
        break;
      case 239: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy752); }
        break;
      case 240: /* cmd ::= SHOW CONSUMERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
        break;
      case 241: /* cmd ::= SHOW SUBSCRIPTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
        break;
      case 242: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy752, yymsp[-1].minor.yy752, OP_TYPE_EQUAL); }
        break;
      case 243: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy752, yymsp[0].minor.yy752, yymsp[-3].minor.yy424); }
        break;
      case 244: /* cmd ::= SHOW VNODES NK_INTEGER */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
        break;
      case 245: /* cmd ::= SHOW VNODES NK_STRING */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, createValueNode(pCxt, TSDB_DATA_TYPE_VARCHAR, &yymsp[0].minor.yy0)); }
        break;
      case 246: /* db_name_cond_opt ::= */
      case 251: /* from_db_opt ::= */ yytestcase(yyruleno==251);
{ yymsp[1].minor.yy752 = createDefaultDatabaseCondValue(pCxt); }
        break;
      case 247: /* db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy752 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy849); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 248: /* like_pattern_opt ::= */
      case 303: /* subtable_opt ::= */ yytestcase(yyruleno==303);
      case 416: /* case_when_else_opt ::= */ yytestcase(yyruleno==416);
      case 446: /* from_clause_opt ::= */ yytestcase(yyruleno==446);
      case 475: /* where_clause_opt ::= */ yytestcase(yyruleno==475);
      case 484: /* twindow_clause_opt ::= */ yytestcase(yyruleno==484);
      case 490: /* sliding_opt ::= */ yytestcase(yyruleno==490);
      case 492: /* fill_opt ::= */ yytestcase(yyruleno==492);
      case 504: /* having_clause_opt ::= */ yytestcase(yyruleno==504);
      case 506: /* range_opt ::= */ yytestcase(yyruleno==506);
      case 508: /* every_opt ::= */ yytestcase(yyruleno==508);
      case 521: /* slimit_clause_opt ::= */ yytestcase(yyruleno==521);
      case 525: /* limit_clause_opt ::= */ yytestcase(yyruleno==525);
{ yymsp[1].minor.yy752 = NULL; }
        break;
      case 249: /* like_pattern_opt ::= LIKE NK_STRING */
{ yymsp[-1].minor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
        break;
      case 250: /* table_name_cond ::= table_name */
{ yylhsminor.yy752 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy849); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 252: /* from_db_opt ::= FROM db_name */
{ yymsp[-1].minor.yy752 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy849); }
        break;
      case 256: /* tag_item ::= TBNAME */
{ yylhsminor.yy752 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 259: /* tag_item ::= column_name column_alias */
{ yylhsminor.yy752 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy849), &yymsp[0].minor.yy849); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 260: /* tag_item ::= column_name AS column_alias */
{ yylhsminor.yy752 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy849), &yymsp[0].minor.yy849); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 261: /* cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options */
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy57, yymsp[-3].minor.yy752, yymsp[-1].minor.yy752, NULL, yymsp[0].minor.yy752); }
        break;
      case 262: /* cmd ::= DROP INDEX exists_opt full_table_name */
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy57, yymsp[0].minor.yy752); }
        break;
      case 263: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
{ yymsp[-9].minor.yy752 = createIndexOption(pCxt, yymsp[-7].minor.yy424, releaseRawExprNode(pCxt, yymsp[-3].minor.yy752), NULL, yymsp[-1].minor.yy752, yymsp[0].minor.yy752); }
        break;
      case 264: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
{ yymsp[-11].minor.yy752 = createIndexOption(pCxt, yymsp[-9].minor.yy424, releaseRawExprNode(pCxt, yymsp[-5].minor.yy752), releaseRawExprNode(pCxt, yymsp[-3].minor.yy752), yymsp[-1].minor.yy752, yymsp[0].minor.yy752); }
        break;
      case 267: /* func ::= function_name NK_LP expression_list NK_RP */
{ yylhsminor.yy752 = createFunctionNode(pCxt, &yymsp[-3].minor.yy849, yymsp[-1].minor.yy424); }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 268: /* sma_stream_opt ::= */
      case 296: /* stream_options ::= */ yytestcase(yyruleno==296);
{ yymsp[1].minor.yy752 = createStreamOptions(pCxt); }
        break;
      case 269: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
      case 300: /* stream_options ::= stream_options WATERMARK duration_literal */ yytestcase(yyruleno==300);
{ ((SStreamOptions*)yymsp[-2].minor.yy752)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy752); yylhsminor.yy752 = yymsp[-2].minor.yy752; }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 270: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy752)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy752); yylhsminor.yy752 = yymsp[-2].minor.yy752; }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 271: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy752)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy752); yylhsminor.yy752 = yymsp[-2].minor.yy752; }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 272: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy57, &yymsp[-2].minor.yy849, yymsp[0].minor.yy752); }
        break;
      case 273: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy57, &yymsp[-3].minor.yy849, &yymsp[0].minor.yy849, false); }
        break;
      case 274: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy57, &yymsp[-5].minor.yy849, &yymsp[0].minor.yy849, true); }
        break;
      case 275: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy57, &yymsp[-3].minor.yy849, yymsp[0].minor.yy752, false); }
        break;
      case 276: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy57, &yymsp[-5].minor.yy849, yymsp[0].minor.yy752, true); }
        break;
      case 277: /* cmd ::= DROP TOPIC exists_opt topic_name */
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy57, &yymsp[0].minor.yy849); }
        break;
      case 278: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy57, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy849); }
        break;
      case 279: /* cmd ::= DESC full_table_name */
      case 280: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==280);
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy752); }
        break;
      case 281: /* cmd ::= RESET QUERY CACHE */
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
        break;
      case 282: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy57, yymsp[-1].minor.yy752, yymsp[0].minor.yy752); }
        break;
      case 285: /* explain_options ::= */
{ yymsp[1].minor.yy752 = createDefaultExplainOptions(pCxt); }
        break;
      case 286: /* explain_options ::= explain_options VERBOSE NK_BOOL */
{ yylhsminor.yy752 = setExplainVerbose(pCxt, yymsp[-2].minor.yy752, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 287: /* explain_options ::= explain_options RATIO NK_FLOAT */
{ yylhsminor.yy752 = setExplainRatio(pCxt, yymsp[-2].minor.yy752, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 288: /* 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.yy57, yymsp[-8].minor.yy57, &yymsp[-5].minor.yy849, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy384, yymsp[0].minor.yy340); }
        break;
      case 289: /* cmd ::= DROP FUNCTION exists_opt function_name */
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy57, &yymsp[0].minor.yy849); }
        break;
      case 294: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-8].minor.yy57, &yymsp[-7].minor.yy849, yymsp[-4].minor.yy752, yymsp[-6].minor.yy752, yymsp[-3].minor.yy424, yymsp[-2].minor.yy752, yymsp[0].minor.yy752); }
        break;
      case 295: /* cmd ::= DROP STREAM exists_opt stream_name */
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy57, &yymsp[0].minor.yy849); }
        break;
      case 297: /* stream_options ::= stream_options TRIGGER AT_ONCE */
{ ((SStreamOptions*)yymsp[-2].minor.yy752)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy752 = yymsp[-2].minor.yy752; }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 298: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
{ ((SStreamOptions*)yymsp[-2].minor.yy752)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy752 = yymsp[-2].minor.yy752; }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 299: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
{ ((SStreamOptions*)yymsp[-3].minor.yy752)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy752)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy752); yylhsminor.yy752 = yymsp[-3].minor.yy752; }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 301: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
{ ((SStreamOptions*)yymsp[-3].minor.yy752)->ignoreExpired = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy752 = yymsp[-3].minor.yy752; }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 302: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
{ ((SStreamOptions*)yymsp[-2].minor.yy752)->fillHistory = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy752 = yymsp[-2].minor.yy752; }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 304: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
      case 491: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==491);
      case 509: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==509);
{ yymsp[-3].minor.yy752 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy752); }
        break;
      case 305: /* cmd ::= KILL CONNECTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
        break;
      case 306: /* cmd ::= KILL QUERY NK_STRING */
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
        break;
      case 307: /* cmd ::= KILL TRANSACTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
        break;
      case 308: /* cmd ::= BALANCE VGROUP */
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
        break;
      case 309: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
      case 310: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy424); }
        break;
      case 311: /* cmd ::= SPLIT VGROUP NK_INTEGER */
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
        break;
      case 312: /* dnode_list ::= DNODE NK_INTEGER */
{ yymsp[-1].minor.yy424 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
        break;
      case 314: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy752, yymsp[0].minor.yy752); }
        break;
      case 316: /* cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-4].minor.yy752, yymsp[-2].minor.yy424, yymsp[0].minor.yy752); }
        break;
      case 317: /* cmd ::= INSERT INTO full_table_name query_or_subquery */
{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-1].minor.yy752, NULL, yymsp[0].minor.yy752); }
        break;
      case 318: /* literal ::= NK_INTEGER */
{ yylhsminor.yy752 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 319: /* literal ::= NK_FLOAT */
{ yylhsminor.yy752 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 320: /* literal ::= NK_STRING */
{ yylhsminor.yy752 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 321: /* literal ::= NK_BOOL */
{ yylhsminor.yy752 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 322: /* literal ::= TIMESTAMP NK_STRING */
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 323: /* literal ::= duration_literal */
      case 333: /* signed_literal ::= signed */ yytestcase(yyruleno==333);
      case 353: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==353);
      case 354: /* expression ::= literal */ yytestcase(yyruleno==354);
      case 355: /* expression ::= pseudo_column */ yytestcase(yyruleno==355);
      case 356: /* expression ::= column_reference */ yytestcase(yyruleno==356);
      case 357: /* expression ::= function_expression */ yytestcase(yyruleno==357);
      case 358: /* expression ::= case_when_expression */ yytestcase(yyruleno==358);
      case 389: /* function_expression ::= literal_func */ yytestcase(yyruleno==389);
      case 438: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==438);
      case 442: /* boolean_primary ::= predicate */ yytestcase(yyruleno==442);
      case 444: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==444);
      case 445: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==445);
      case 448: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==448);
      case 450: /* table_reference ::= table_primary */ yytestcase(yyruleno==450);
      case 451: /* table_reference ::= joined_table */ yytestcase(yyruleno==451);
      case 455: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==455);
      case 511: /* query_simple ::= query_specification */ yytestcase(yyruleno==511);
      case 512: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==512);
      case 515: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==515);
      case 517: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==517);
{ yylhsminor.yy752 = yymsp[0].minor.yy752; }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 324: /* literal ::= NULL */
{ yylhsminor.yy752 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 325: /* literal ::= NK_QUESTION */
{ yylhsminor.yy752 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 326: /* duration_literal ::= NK_VARIABLE */
{ yylhsminor.yy752 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 327: /* signed ::= NK_INTEGER */
{ yylhsminor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 328: /* signed ::= NK_PLUS NK_INTEGER */
{ yymsp[-1].minor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
        break;
      case 329: /* signed ::= NK_MINUS NK_INTEGER */
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
                                                                                    yylhsminor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
                                                                                  }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 330: /* signed ::= NK_FLOAT */
{ yylhsminor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 331: /* signed ::= NK_PLUS NK_FLOAT */
{ yymsp[-1].minor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
        break;
      case 332: /* signed ::= NK_MINUS NK_FLOAT */
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
                                                                                    yylhsminor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
                                                                                  }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 334: /* signed_literal ::= NK_STRING */
{ yylhsminor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 335: /* signed_literal ::= NK_BOOL */
{ yylhsminor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 336: /* signed_literal ::= TIMESTAMP NK_STRING */
{ yymsp[-1].minor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
        break;
      case 337: /* signed_literal ::= duration_literal */
      case 339: /* signed_literal ::= literal_func */ yytestcase(yyruleno==339);
      case 409: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==409);
      case 471: /* select_item ::= common_expression */ yytestcase(yyruleno==471);
      case 481: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==481);
      case 516: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==516);
      case 518: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==518);
      case 531: /* search_condition ::= common_expression */ yytestcase(yyruleno==531);
{ yylhsminor.yy752 = releaseRawExprNode(pCxt, yymsp[0].minor.yy752); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 338: /* signed_literal ::= NULL */
{ yylhsminor.yy752 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 340: /* signed_literal ::= NK_QUESTION */
{ yylhsminor.yy752 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 359: /* expression ::= NK_LP expression NK_RP */
      case 443: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==443);
      case 530: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==530);
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy752)); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 360: /* expression ::= NK_PLUS expr_or_subquery */
{
                                                                                    SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy752));
                                                                                  }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 361: /* expression ::= NK_MINUS expr_or_subquery */
{
                                                                                    SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy752), NULL));
                                                                                  }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 362: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752))); 
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 363: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752))); 
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 364: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752))); 
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 365: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752))); 
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 366: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752)));
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 367: /* expression ::= column_reference NK_ARROW NK_STRING */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); 
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 368: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752)));
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 369: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752)));
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 372: /* column_reference ::= column_name */
{ yylhsminor.yy752 = createRawExprNode(pCxt, &yymsp[0].minor.yy849, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy849)); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 373: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy849, createColumnNode(pCxt, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy849)); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 374: /* pseudo_column ::= ROWTS */
      case 375: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==375);
      case 377: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==377);
      case 378: /* pseudo_column ::= QEND */ yytestcase(yyruleno==378);
      case 379: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==379);
      case 380: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==380);
      case 381: /* pseudo_column ::= WEND */ yytestcase(yyruleno==381);
      case 382: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==382);
      case 383: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==383);
      case 384: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==384);
      case 385: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==385);
      case 391: /* literal_func ::= NOW */ yytestcase(yyruleno==391);
{ yylhsminor.yy752 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 376: /* pseudo_column ::= table_name NK_DOT TBNAME */
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy849)))); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 386: /* function_expression ::= function_name NK_LP expression_list NK_RP */
      case 387: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==387);
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy849, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy849, yymsp[-1].minor.yy424)); }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 388: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy752), yymsp[-1].minor.yy384)); }
  yymsp[-5].minor.yy752 = yylhsminor.yy752;
        break;
      case 390: /* literal_func ::= noarg_func NK_LP NK_RP */
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy849, NULL)); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 405: /* star_func_para_list ::= NK_STAR */
{ yylhsminor.yy424 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy424 = yylhsminor.yy424;
        break;
      case 410: /* star_func_para ::= table_name NK_DOT NK_STAR */
      case 474: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==474);
{ yylhsminor.yy752 = createColumnNode(pCxt, &yymsp[-2].minor.yy849, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 411: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy424, yymsp[-1].minor.yy752)); }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 412: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy752), yymsp[-2].minor.yy424, yymsp[-1].minor.yy752)); }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 415: /* when_then_expr ::= WHEN common_expression THEN common_expression */
{ yymsp[-3].minor.yy752 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752)); }
        break;
      case 417: /* case_when_else_opt ::= ELSE common_expression */
{ yymsp[-1].minor.yy752 = releaseRawExprNode(pCxt, yymsp[0].minor.yy752); }
        break;
      case 418: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
      case 423: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==423);
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy620, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752)));
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 419: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy752), releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752)));
                                                                                  }
  yymsp[-4].minor.yy752 = yylhsminor.yy752;
        break;
      case 420: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy752), releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752)));
                                                                                  }
  yymsp[-5].minor.yy752 = yylhsminor.yy752;
        break;
      case 421: /* predicate ::= expr_or_subquery IS NULL */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), NULL));
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 422: /* predicate ::= expr_or_subquery IS NOT NULL */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy752), NULL));
                                                                                  }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 424: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy620 = OP_TYPE_LOWER_THAN; }
        break;
      case 425: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy620 = OP_TYPE_GREATER_THAN; }
        break;
      case 426: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy620 = OP_TYPE_LOWER_EQUAL; }
        break;
      case 427: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy620 = OP_TYPE_GREATER_EQUAL; }
        break;
      case 428: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy620 = OP_TYPE_NOT_EQUAL; }
        break;
      case 429: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy620 = OP_TYPE_EQUAL; }
        break;
      case 430: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy620 = OP_TYPE_LIKE; }
        break;
      case 431: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy620 = OP_TYPE_NOT_LIKE; }
        break;
      case 432: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy620 = OP_TYPE_MATCH; }
        break;
      case 433: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy620 = OP_TYPE_NMATCH; }
        break;
      case 434: /* compare_op ::= CONTAINS */
{ yymsp[0].minor.yy620 = OP_TYPE_JSON_CONTAINS; }
        break;
      case 435: /* in_op ::= IN */
{ yymsp[0].minor.yy620 = OP_TYPE_IN; }
        break;
      case 436: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy620 = OP_TYPE_NOT_IN; }
        break;
      case 437: /* in_predicate_value ::= NK_LP literal_list NK_RP */
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 439: /* boolean_value_expression ::= NOT boolean_primary */
{
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy752), NULL));
                                                                                  }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 440: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752)));
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 441: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy752);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy752);
                                                                                    yylhsminor.yy752 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), releaseRawExprNode(pCxt, yymsp[0].minor.yy752)));
                                                                                  }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 447: /* from_clause_opt ::= FROM table_reference_list */
      case 476: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==476);
      case 505: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==505);
{ yymsp[-1].minor.yy752 = yymsp[0].minor.yy752; }
        break;
      case 449: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy752 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy752, yymsp[0].minor.yy752, NULL); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 452: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy752 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy849, &yymsp[0].minor.yy849); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 453: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy752 = createRealTableNode(pCxt, &yymsp[-3].minor.yy849, &yymsp[-1].minor.yy849, &yymsp[0].minor.yy849); }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 454: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy752 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy752), &yymsp[0].minor.yy849); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 456: /* alias_opt ::= */
{ yymsp[1].minor.yy849 = nil_token;  }
        break;
      case 458: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy849 = yymsp[0].minor.yy849; }
        break;
      case 459: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
      case 460: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==460);
{ yymsp[-2].minor.yy752 = yymsp[-1].minor.yy752; }
        break;
      case 461: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ yylhsminor.yy752 = createJoinTableNode(pCxt, yymsp[-4].minor.yy332, yymsp[-5].minor.yy752, yymsp[-2].minor.yy752, yymsp[0].minor.yy752); }
  yymsp[-5].minor.yy752 = yylhsminor.yy752;
        break;
      case 462: /* join_type ::= */
{ yymsp[1].minor.yy332 = JOIN_TYPE_INNER; }
        break;
      case 463: /* join_type ::= INNER */
{ yymsp[0].minor.yy332 = JOIN_TYPE_INNER; }
        break;
      case 464: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
{ 
                                                                                    yymsp[-11].minor.yy752 = createSelectStmt(pCxt, yymsp[-10].minor.yy57, yymsp[-9].minor.yy424, yymsp[-8].minor.yy752);
                                                                                    yymsp[-11].minor.yy752 = addWhereClause(pCxt, yymsp[-11].minor.yy752, yymsp[-7].minor.yy752);
                                                                                    yymsp[-11].minor.yy752 = addPartitionByClause(pCxt, yymsp[-11].minor.yy752, yymsp[-6].minor.yy424);
                                                                                    yymsp[-11].minor.yy752 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy752, yymsp[-2].minor.yy752);
                                                                                    yymsp[-11].minor.yy752 = addGroupByClause(pCxt, yymsp[-11].minor.yy752, yymsp[-1].minor.yy424);
                                                                                    yymsp[-11].minor.yy752 = addHavingClause(pCxt, yymsp[-11].minor.yy752, yymsp[0].minor.yy752);
                                                                                    yymsp[-11].minor.yy752 = addRangeClause(pCxt, yymsp[-11].minor.yy752, yymsp[-5].minor.yy752);
                                                                                    yymsp[-11].minor.yy752 = addEveryClause(pCxt, yymsp[-11].minor.yy752, yymsp[-4].minor.yy752);
                                                                                    yymsp[-11].minor.yy752 = addFillClause(pCxt, yymsp[-11].minor.yy752, yymsp[-3].minor.yy752);
                                                                                  }
        break;
      case 467: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy57 = false; }
        break;
      case 470: /* select_item ::= NK_STAR */
{ yylhsminor.yy752 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy752 = yylhsminor.yy752;
        break;
      case 472: /* select_item ::= common_expression column_alias */
      case 482: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==482);
{ yylhsminor.yy752 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy752), &yymsp[0].minor.yy849); }
  yymsp[-1].minor.yy752 = yylhsminor.yy752;
        break;
      case 473: /* select_item ::= common_expression AS column_alias */
      case 483: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==483);
{ yylhsminor.yy752 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), &yymsp[0].minor.yy849); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 478: /* partition_by_clause_opt ::= PARTITION BY partition_list */
      case 501: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==501);
      case 520: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==520);
{ yymsp[-2].minor.yy424 = yymsp[0].minor.yy424; }
        break;
      case 485: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
{ yymsp[-5].minor.yy752 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy752), releaseRawExprNode(pCxt, yymsp[-1].minor.yy752)); }
        break;
      case 486: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy752 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy752)); }
        break;
      case 487: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy752 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy752), NULL, yymsp[-1].minor.yy752, yymsp[0].minor.yy752); }
        break;
      case 488: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-7].minor.yy752 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy752), releaseRawExprNode(pCxt, yymsp[-3].minor.yy752), yymsp[-1].minor.yy752, yymsp[0].minor.yy752); }
        break;
      case 489: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
{ yymsp[-6].minor.yy752 = createEventWindowNode(pCxt, yymsp[-3].minor.yy752, yymsp[0].minor.yy752); }
        break;
      case 493: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy752 = createFillNode(pCxt, yymsp[-1].minor.yy214, NULL); }
        break;
      case 494: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
{ yymsp[-5].minor.yy752 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); }
        break;
      case 495: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy214 = FILL_MODE_NONE; }
        break;
      case 496: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy214 = FILL_MODE_PREV; }
        break;
      case 497: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy214 = FILL_MODE_NULL; }
        break;
      case 498: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy214 = FILL_MODE_LINEAR; }
        break;
      case 499: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy214 = FILL_MODE_NEXT; }
        break;
      case 502: /* group_by_list ::= expr_or_subquery */
{ yylhsminor.yy424 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy752))); }
  yymsp[0].minor.yy424 = yylhsminor.yy424;
        break;
      case 503: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy752))); }
  yymsp[-2].minor.yy424 = yylhsminor.yy424;
        break;
      case 507: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
{ yymsp[-5].minor.yy752 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy752), releaseRawExprNode(pCxt, yymsp[-1].minor.yy752)); }
        break;
      case 510: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
{
                                                                                    yylhsminor.yy752 = addOrderByClause(pCxt, yymsp[-3].minor.yy752, yymsp[-2].minor.yy424);
                                                                                    yylhsminor.yy752 = addSlimitClause(pCxt, yylhsminor.yy752, yymsp[-1].minor.yy752);
                                                                                    yylhsminor.yy752 = addLimitClause(pCxt, yylhsminor.yy752, yymsp[0].minor.yy752);
                                                                                  }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 513: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
{ yylhsminor.yy752 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy752, yymsp[0].minor.yy752); }
  yymsp[-3].minor.yy752 = yylhsminor.yy752;
        break;
      case 514: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
{ yylhsminor.yy752 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy752, yymsp[0].minor.yy752); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 522: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
      case 526: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==526);
{ yymsp[-1].minor.yy752 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
        break;
      case 523: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
      case 527: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==527);
{ yymsp[-3].minor.yy752 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
        break;
      case 524: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
      case 528: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==528);
{ yymsp[-3].minor.yy752 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
        break;
      case 529: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy752 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy752); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 534: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy752 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy752), yymsp[-1].minor.yy538, yymsp[0].minor.yy777); }
  yymsp[-2].minor.yy752 = yylhsminor.yy752;
        break;
      case 535: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy538 = ORDER_ASC; }
        break;
      case 536: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy538 = ORDER_ASC; }
        break;
      case 537: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy538 = ORDER_DESC; }
        break;
      case 538: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy777 = NULL_ORDER_DEFAULT; }
        break;
      case 539: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy777 = NULL_ORDER_FIRST; }
        break;
      case 540: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy777 = NULL_ORDER_LAST; }
        break;
      default:
        break;
/********** End reduce actions ************************************************/
  };
  assert( yyruleno<sizeof(yyRuleInfoLhs)/sizeof(yyRuleInfoLhs[0]) );
  yygoto = yyRuleInfoLhs[yyruleno];
  yysize = yyRuleInfoNRhs[yyruleno];
  yyact = yy_find_reduce_action(yymsp[yysize].stateno,(YYCODETYPE)yygoto);

  /* There are no SHIFTREDUCE actions on nonterminals because the table
  ** generator has simplified them to pure REDUCE actions. */
  assert( !(yyact>YY_MAX_SHIFT && yyact<=YY_MAX_SHIFTREDUCE) );

  /* It is not possible for a REDUCE to be followed by an error */
  assert( yyact!=YY_ERROR_ACTION );

  yymsp += yysize+1;
  yypParser->yytos = yymsp;
  yymsp->stateno = (YYACTIONTYPE)yyact;
  yymsp->major = (YYCODETYPE)yygoto;
  yyTraceShift(yypParser, yyact, "... then shift");
  return yyact;
}

/*
** The following code executes when the parse fails
*/
#ifndef YYNOERRORRECOVERY
static void yy_parse_failed(
  yyParser *yypParser           /* The parser */
){
  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 *****************************************/
  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 */
  ParseTOKENTYPE yyminor         /* The minor type of the error token */
){
  ParseARG_FETCH
  ParseCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/

  if (TSDB_CODE_SUCCESS == pCxt->errCode) {
    if(TOKEN.z) {
      pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
    } else {
      pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL);
    }
  } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) {
    pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
  }
/************ End %syntax_error code ******************************************/
  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 */
){
  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 *******************************************/
  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
** "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.
*/
void Parse(
  void *yyp,                   /* The parser */
  int yymajor,                 /* The major token code number */
  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 */
  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,
                        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.
*/
int ParseFallback(int iToken){
#ifdef YYFALLBACK
  assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
  return yyFallback[iToken];
#else
  (void)iToken;
  return 0;
#endif
}
