/*
** 2000-05-29
**
** The author disclaims copyright to this source code.  In place of
** a legal notice, here is a blessing:
**
**    May you do good and not evil.
**    May you find forgiveness for yourself and forgive others.
**    May you share freely, never taking more than you give.
**
*************************************************************************
** Driver template for the LEMON parser generator.
**
** The "lemon" program processes an LALR(1) input grammar file, then uses
** this template to construct a parser.  The "lemon" program inserts text
** at each "%%" line.  Also, any "P-a-r-s-e" identifer prefix (without the
** interstitial "-" characters) contained in this template is changed into
** the value of the %name directive from the grammar.  Otherwise, the content
** of this template is copied straight through into the generate parser
** source file.
**
** The following is the concatenation of all %include directives from the
** input grammar file:
*/
#include <stdio.h>
#include <assert.h>
/************ Begin %include sections from the grammar ************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>

#include "functionMgt.h"
#include "nodes.h"
#include "parToken.h"
#include "ttokendef.h"
#include "parAst.h"
/**************** End of %include directives **********************************/
/* These constants specify the various numeric values for terminal symbols
** in a format understandable to "makeheaders".  This section is blank unless
** "lemon" is run with the "-m" command-line option.
***************** Begin makeheaders token definitions *************************/
/**************** End makeheaders token definitions ***************************/

/* The next sections is a series of control #defines.
** various aspects of the generated parser.
**    YYCODETYPE         is the data type used to store the integer codes
**                       that represent terminal and non-terminal symbols.
**                       "unsigned char" is used if there are fewer than
**                       256 symbols.  Larger types otherwise.
**    YYNOCODE           is a number of type YYCODETYPE that is not used for
**                       any terminal or nonterminal symbol.
**    YYFALLBACK         If defined, this indicates that one or more tokens
**                       (also known as: "terminal symbols") have fall-back
**                       values which should be used if the original symbol
**                       would not parse.  This permits keywords to sometimes
**                       be used as identifiers, for example.
**    YYACTIONTYPE       is the data type used for "action codes" - numbers
**                       that indicate what to do in response to the next
**                       token.
**    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 358
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE  SToken 
typedef union {
  int yyinit;
  ParseTOKENTYPE yy0;
  EOrder yy14;
  ENullOrder yy17;
  SNodeList* yy60;
  SToken yy105;
  int32_t yy140;
  SNode* yy172;
  EFillMode yy202;
  SDataType yy248;
  EOperatorType yy572;
  int64_t yy593;
  SAlterOption yy609;
  bool yy617;
  EJoinType yy636;
} 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             591
#define YYNRULE              450
#define YYNTOKEN             238
#define YY_MAX_SHIFT         590
#define YY_MIN_SHIFTREDUCE   877
#define YY_MAX_SHIFTREDUCE   1326
#define YY_ERROR_ACTION      1327
#define YY_ACCEPT_ACTION     1328
#define YY_NO_ACTION         1329
#define YY_MIN_REDUCE        1330
#define YY_MAX_REDUCE        1779
/************* 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 (2104)
static const YYACTIONTYPE yy_action[] = {
 /*     0 */   372,   72,  373, 1362,  380,  505,  373, 1362, 1613,   26,
 /*    10 */   211, 1449,   33,   31,  109, 1445,  332,  336, 1628, 1758,
 /*    20 */   290, 1452, 1143, 1609, 1617, 1615,   34,   32,   30,   29,
 /*    30 */    28, 1710, 1757, 1460,   90,  508, 1755,   89,   88,   87,
 /*    40 */    86,   85,   84,   83,   82,   81, 1644, 1141, 1505,  281,
 /*    50 */    30,   29,   28,  489,  280, 1707, 1758,  467,   12, 1503,
 /*    60 */    33,   31, 1268,  488, 1149,  504, 1613, 1599,  290,  140,
 /*    70 */  1143, 1451,  263, 1755,  504,   34,   32,   30,   29,   28,
 /*    80 */     1, 1609, 1616, 1615, 1656,  108,   22,  128, 1629,  491,
 /*    90 */  1631, 1632,  487,  508,  508, 1141,   34,   32,   30,   29,
 /*   100 */    28,   56,  587, 1230, 1644,  471,   12,  505,   33,   31,
 /*   110 */  1353,  489, 1149, 1142,  104,  504,  290, 1758, 1143,  100,
 /*   120 */  1599,  263, 1455,  106,  338,   36,  408,  126,    1, 1342,
 /*   130 */  1756,  472, 1771,  127, 1755, 1460,  505, 1417,  204, 1703,
 /*   140 */   466, 1330,  465, 1141, 1180, 1758,  371,  460,  100,  375,
 /*   150 */   587, 1165, 1230, 1231,   12,  413, 1144,  260,  140, 1599,
 /*   160 */  1149, 1142, 1755,  556, 1460,   99,   98,   97,   96,   95,
 /*   170 */    94,   93,   92,   91, 1236,   36,    1,  540, 1147, 1148,
 /*   180 */   457, 1193, 1194, 1195, 1196, 1197, 1198, 1199,  484,  506,
 /*   190 */  1207, 1208, 1209, 1210, 1211, 1212,  539,  538,  587,  537,
 /*   200 */   536,  535, 1231,  326, 1144,  331, 1292,  330,  141, 1142,
 /*   210 */    25,  288, 1225, 1226, 1227, 1228, 1229, 1233, 1234, 1235,
 /*   220 */   583,  582,  492, 1236, 1352,  293, 1147, 1148, 1550, 1193,
 /*   230 */  1194, 1195, 1196, 1197, 1198, 1199,  484,  506, 1207, 1208,
 /*   240 */  1209, 1210, 1211, 1212, 1389,  454, 1290, 1291, 1293, 1294,
 /*   250 */   462,  458, 1144,   34,   32,   30,   29,   28,  141,   25,
 /*   260 */   288, 1225, 1226, 1227, 1228, 1229, 1233, 1234, 1235,    9,
 /*   270 */     8,  467, 1438, 1599, 1147, 1148, 1328, 1193, 1194, 1195,
 /*   280 */  1196, 1197, 1198, 1199,  484,  506, 1207, 1208, 1209, 1210,
 /*   290 */  1211, 1212,   33,   31,   34,   32,   30,   29,   28,  108,
 /*   300 */   290, 1436, 1143,  141,  563,  562,  561,  305,  907,  560,
 /*   310 */   559,  558,  110,  553,  552,  551,  550,  549,  548,  547,
 /*   320 */   546,  117, 1282, 1351, 1505,  302,  924, 1141,  923,  387,
 /*   330 */   295, 1628, 1541, 1543,  306, 1503, 1538,  106,  141,  141,
 /*   340 */    33,   31, 1213,  149, 1149,   61,  911,  912,  290, 1244,
 /*   350 */  1143,  469,  136, 1703, 1704,  925, 1708,   24,  542, 1644,
 /*   360 */     7,   34,   32,   30,   29,   28,  489,   34,   32,   30,
 /*   370 */    29,   28, 1599, 1505, 1758, 1141,  488, 1392,  294,  301,
 /*   380 */  1599,   50,  587,  451, 1503, 1167,  124,  140,   33,   31,
 /*   390 */   323, 1755, 1149, 1142, 1462, 1350,  290, 1656, 1143,  461,
 /*   400 */   257, 1629,  491, 1631, 1632,  487,  379,  508,    7,  375,
 /*   410 */   325,  321, 1013,  531,  530,  529, 1017,  528, 1019, 1020,
 /*   420 */   527, 1022,  524, 1141, 1028,  521, 1030, 1031,  518,  515,
 /*   430 */   587,   34,   32,   30,   29,   28, 1144,  422,  421,  300,
 /*   440 */  1149, 1142,  420, 1168, 1599,  105,  417,  124,  505,  416,
 /*   450 */   415,  414,  387,   58,  278, 1462,    7,  181, 1147, 1148,
 /*   460 */   337, 1193, 1194, 1195, 1196, 1197, 1198, 1199,  484,  506,
 /*   470 */  1207, 1208, 1209, 1210, 1211, 1212, 1460, 1104,  587,  419,
 /*   480 */   418, 1232,  422,  421, 1144, 1106, 1349,  420,  141, 1142,
 /*   490 */   105,  417,  362,  436,  416,  415,  414, 1323,  377, 1588,
 /*   500 */  1180, 1143, 1237,  542, 1165,  444, 1147, 1148,  298, 1193,
 /*   510 */  1194, 1195, 1196, 1197, 1198, 1199,  484,  506, 1207, 1208,
 /*   520 */  1209, 1210, 1211, 1212,  147, 1613, 1141,   34,   32,   30,
 /*   530 */    29,   28, 1144, 1758,  434, 1599,  151,  150,   23, 1348,
 /*   540 */  1609, 1616, 1615, 1149,  313, 1105,  140,  432,   54,  141,
 /*   550 */  1755,   53,  508,  445, 1147, 1148, 1628, 1193, 1194, 1195,
 /*   560 */  1196, 1197, 1198, 1199,  484,  506, 1207, 1208, 1209, 1210,
 /*   570 */  1211, 1212,   33,   31,  259,   71, 1165,  975, 1322,  303,
 /*   580 */   290,  587, 1143,  355, 1644,   67,  367,  124, 1599,  134,
 /*   590 */  1169,  489, 1142, 1758,  977, 1462,  167, 1347, 1346, 1345,
 /*   600 */  1499,  488,  473, 1344,  368, 1599,  140, 1141,  133,  505,
 /*   610 */  1755,  471, 1341,   56,  404,  400,  396,  392,  166,  272,
 /*   620 */  1710,  347, 1656, 1267, 1149,  248, 1629,  491, 1631, 1632,
 /*   630 */   487,  505,  508,  124, 1456, 1144,   65, 1460,  467, 1710,
 /*   640 */     1, 1463,   57,  348, 1706,  164, 1599, 1599, 1599,  557,
 /*   650 */   555, 1758, 1599, 1340, 1542, 1543, 1453, 1147, 1148, 1460,
 /*   660 */   123, 1599,  587, 1705,  140, 1339,  108,  273, 1755,  271,
 /*   670 */   270,  923,  410, 1142,  366, 1338,  412,  361,  360,  359,
 /*   680 */   358,  357,  354,  353,  352,  351,  350,  346,  345,  344,
 /*   690 */   343,  342,  341,  340,  339,  492,  406,  505,  505,  411,
 /*   700 */   505, 1551, 1599,  163,  106,  158, 1170,  160,  467,  386,
 /*   710 */  1457, 1505, 1579, 1337, 1599,  206, 1144, 1336, 1335,  137,
 /*   720 */  1703, 1704, 1504, 1708, 1599, 1460, 1460,  156, 1460, 1334,
 /*   730 */  1628, 1333,  235,  911,  912, 1490,  108, 1437, 1147, 1148,
 /*   740 */   412, 1193, 1194, 1195, 1196, 1197, 1198, 1199,  484,  506,
 /*   750 */  1207, 1208, 1209, 1210, 1211, 1212,  505,    6, 1644,  505,
 /*   760 */   505, 1166, 1599,  411,  505,  489, 1599, 1599,  502, 1128,
 /*   770 */  1129,  503,  225,  477,  106,  488,  304,  474, 1599, 1599,
 /*   780 */  1599,  545,  544, 1432, 1460,  471, 1379, 1460, 1460,  138,
 /*   790 */  1703, 1704, 1460, 1708, 1715, 1263, 1656,   43,  261,   75,
 /*   800 */  1629,  491, 1631, 1632,  487, 1628,  508,  114,  423, 1696,
 /*   810 */  1275, 1218,  172,  262, 1692,  170, 1167, 1167,  125,  174,
 /*   820 */     9,    8,  173,  241, 1374, 1758,  481,  176, 1266,  540,
 /*   830 */   175,  192,   42, 1644, 1331,  239,   49, 1152,  140,   48,
 /*   840 */   470,  178, 1755,  195,  177, 1372,  425,  446,  539,  538,
 /*   850 */   488,  537,  536,  535, 1599,   90,  152, 1619,   89,   88,
 /*   860 */    87,   86,   85,   84,   83,   82,   81,  428,  534, 1628,
 /*   870 */  1151, 1656, 1289,   35,   76, 1629,  491, 1631, 1632,  487,
 /*   880 */    35,  508,  948,  197, 1696, 1325, 1326, 1447,  283, 1692,
 /*   890 */   135, 1443,  184, 1621,   35,  483,  590, 1644,  443,  949,
 /*   900 */   533, 1343,  207, 1155,  489, 1418,  208,  214,  450, 1723,
 /*   910 */   229,  437,   42, 1238,  488,  112, 1628,   74, 1599,  455,
 /*   920 */  1200,  201,  101,  113, 1363,  405,  114, 1263,  579,  575,
 /*   930 */   571,  567,  228, 1500, 1099, 1656, 1154,  468,  128, 1629,
 /*   940 */   491, 1631, 1632,  487, 1644,  508, 1222,  216,   52,   51,
 /*   950 */   335,  470,  234,  146,  513,  497,   73,  113,  329,  223,
 /*   960 */   478,  488,  475,  222,  114, 1599, 1006, 1726, 1645,    2,
 /*   970 */   258,  115,  113,  319,  210,  315,  311,  143, 1165,  308,
 /*   980 */   312, 1628, 1656, 1772,  268,   76, 1629,  491, 1631, 1632,
 /*   990 */   487,  975,  508,  501, 1034, 1696, 1112, 1038,  230,  283,
 /*  1000 */  1692,  135,  269,  349, 1045,  148, 1540,  356,  141, 1644,
 /*  1010 */   369, 1043,  116, 1171,  364,  363,  489,  370,  449,  378,
 /*  1020 */  1724,  188, 1174,  381,  365,  155,  488, 1173,  157,  384,
 /*  1030 */  1599,  382,  383,  159, 1172,  385,  162,   55,  165, 1120,
 /*  1040 */   388,  183, 1628, 1435,  427, 1149,  407, 1656,  409,  277,
 /*  1050 */    76, 1629,  491, 1631, 1632,  487, 1450,  508,  169,  435,
 /*  1060 */  1696, 1583, 1446,  171,  283, 1692, 1770,  118,  119,   80,
 /*  1070 */  1644,  231,  232,  180, 1448, 1730, 1444,  489,  120,  121,
 /*  1080 */   182,  438,  439, 1170,  185,  430,  456,  488,  187,  190,
 /*  1090 */   424, 1599,  447,  495,  442,  179, 1628, 1727,  448,    5,
 /*  1100 */  1737,  464, 1736,  193,  453,  200,  196,  282, 1656,  452,
 /*  1110 */   459,   76, 1629,  491, 1631, 1632,  487,    4,  508,   46,
 /*  1120 */   202, 1696,   45,  107, 1644,  283, 1692, 1770, 1263, 1169,
 /*  1130 */  1711,  489,   37,  284,   16,  540, 1753,  479, 1717,  476,
 /*  1140 */  1549,  488,  493,  498,  131, 1599,  494,  500, 1548,  292,
 /*  1150 */  1628, 1677,  203,  499,  539,  538,  218,  537,  536,  535,
 /*  1160 */   233,   66, 1656,  220, 1461,   76, 1629,  491, 1631, 1632,
 /*  1170 */   487,   64,  508,  511, 1433, 1696,  236,  227, 1644,  283,
 /*  1180 */  1692, 1770, 1628, 1773,   44,  489,  586,  279, 1754,  130,
 /*  1190 */  1714,  209,  242,  240,  238,  488,  249,  243, 1593, 1599,
 /*  1200 */  1628, 1592,  307, 1589,  309,  310, 1137, 1138,  144,  314,
 /*  1210 */  1644, 1587,  316,  317, 1586,  318, 1656,  489,  320,   77,
 /*  1220 */  1629,  491, 1631, 1632,  487, 1585,  508,  488, 1644, 1696,
 /*  1230 */   322, 1599, 1628, 1695, 1692,  489, 1584,  324, 1569,  327,
 /*  1240 */  1115,  328,  145, 1114, 1563,  488, 1562,  333, 1656, 1599,
 /*  1250 */  1628,  244, 1629,  491, 1631, 1632,  487,  334,  508, 1561,
 /*  1260 */  1644, 1560, 1082, 1533, 1532, 1531, 1656,  486, 1530,   77,
 /*  1270 */  1629,  491, 1631, 1632,  487, 1529,  508,  488, 1644, 1696,
 /*  1280 */  1528, 1599, 1527,  480, 1692,  489, 1526, 1525, 1524, 1523,
 /*  1290 */  1522, 1521, 1520, 1519, 1518,  488, 1517, 1628, 1656, 1599,
 /*  1300 */  1516,  256, 1629,  491, 1631, 1632,  487,  485,  508,  482,
 /*  1310 */  1668,  111, 1628, 1515, 1514, 1513, 1656, 1512, 1511,   77,
 /*  1320 */  1629,  491, 1631, 1632,  487, 1644,  508, 1510, 1084, 1696,
 /*  1330 */  1509, 1508,  489, 1507, 1693, 1506, 1391, 1359,  153,  102,
 /*  1340 */  1644,  374,  488,  914,  132,  376, 1599,  489,  913, 1358,
 /*  1350 */   154, 1577, 1571,  103, 1555, 1546,  161,  488, 1439, 1390,
 /*  1360 */  1388, 1599, 1386, 1656,  287,  391,  252, 1629,  491, 1631,
 /*  1370 */  1632,  487,  389,  508, 1384,  395,  399,  390, 1656,  942,
 /*  1380 */  1382,  257, 1629,  491, 1631, 1632,  487, 1628,  508,  393,
 /*  1390 */   394,  397,  398,  401,  403,  402, 1371, 1370, 1357, 1441,
 /*  1400 */    79, 1048, 1440, 1049,  463, 1380,  274, 1375,  168,  554,
 /*  1410 */   974,  973,  972,  971,  556, 1644,  968, 1628,  426,  967,
 /*  1420 */  1373, 1356,  486,  966,  429,  275,  276, 1355,  431,   78,
 /*  1430 */   433, 1576,  488, 1122, 1570,  122, 1599,  440, 1554, 1553,
 /*  1440 */    47, 1545,    3,   13,  441, 1644,  186,   59,  189,   14,
 /*  1450 */   191,   35,  489, 1656,   40,  129,  256, 1629,  491, 1631,
 /*  1460 */  1632,  487,  488,  508, 1628, 1669, 1599,  199,  194,  289,
 /*  1470 */  1288,  198,   20, 1628, 1281,   60, 1619,   21,   38,  205,
 /*  1480 */     8, 1260,   11, 1656,   39,   15,  257, 1629,  491, 1631,
 /*  1490 */  1632,  487, 1644,  508,  139, 1259, 1311, 1316, 1310,  489,
 /*  1500 */   285, 1644, 1315, 1314,  286,   17, 1202,  142,  489,  488,
 /*  1510 */    27,  212, 1188, 1599, 1544, 1159,  291,   10,  488,  219,
 /*  1520 */  1628, 1223, 1599, 1201,  496,   18,   19,  215,  490,  213,
 /*  1530 */  1656, 1618,  217,  257, 1629,  491, 1631, 1632,  487, 1656,
 /*  1540 */   508, 1286,  251, 1629,  491, 1631, 1632,  487, 1644,  508,
 /*  1550 */  1628,   62,  221,   63,  224,  489,   67, 1659,  512,  510,
 /*  1560 */  1204,  507,  299,   41,  514,  488, 1035, 1032,  516, 1599,
 /*  1570 */  1029,  517,  519, 1023,  520,  522,  523,  525, 1644, 1021,
 /*  1580 */   526, 1012, 1628,   68, 1027,  489, 1656,  532,   69,  253,
 /*  1590 */  1629,  491, 1631, 1632,  487,  488,  508, 1044,   70, 1599,
 /*  1600 */  1041, 1026, 1040, 1025,  940, 1024,  541,  981,  226,  543,
 /*  1610 */  1644,  962, 1628,  961,  957, 1042, 1656,  489,  960,  245,
 /*  1620 */  1629,  491, 1631, 1632,  487,  959,  508,  488,  958,  956,
 /*  1630 */   955, 1599,  978,  976,  952,  951,  950,  947,  946, 1387,
 /*  1640 */  1644,  566,  945,  564,  565, 1385,  569,  489, 1656,  568,
 /*  1650 */   570,  254, 1629,  491, 1631, 1632,  487,  488,  508, 1628,
 /*  1660 */  1383, 1599,  572,  573,  574, 1381,  576,  577,  578, 1369,
 /*  1670 */   580,  581, 1368, 1354, 1628,  584,  585,  588, 1656, 1145,
 /*  1680 */   237,  246, 1629,  491, 1631, 1632,  487, 1644,  508, 1329,
 /*  1690 */   589, 1329, 1329, 1329,  489, 1329, 1329, 1329, 1329, 1329,
 /*  1700 */  1329, 1329, 1644, 1329,  488, 1329, 1628, 1329, 1599,  489,
 /*  1710 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,  488,
 /*  1720 */  1329, 1329, 1329, 1599, 1329, 1656, 1329, 1329,  255, 1629,
 /*  1730 */   491, 1631, 1632,  487, 1644,  508, 1329, 1329, 1329, 1329,
 /*  1740 */  1656,  489, 1329,  247, 1629,  491, 1631, 1632,  487, 1329,
 /*  1750 */   508,  488, 1329, 1329, 1329, 1599, 1329, 1329, 1628, 1329,
 /*  1760 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  1770 */  1329, 1329, 1656, 1329, 1329, 1640, 1629,  491, 1631, 1632,
 /*  1780 */   487, 1329,  508, 1329, 1329, 1329, 1644, 1329, 1628, 1329,
 /*  1790 */  1329, 1329, 1329,  489, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  1800 */  1329, 1329, 1329,  488, 1329, 1329, 1329, 1599, 1329, 1329,
 /*  1810 */  1329, 1329, 1329, 1329, 1329, 1329, 1644, 1329, 1329, 1329,
 /*  1820 */  1628, 1329, 1329,  489, 1656, 1329, 1329, 1639, 1629,  491,
 /*  1830 */  1631, 1632,  487,  488,  508, 1628, 1329, 1599, 1329, 1329,
 /*  1840 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1644, 1329,
 /*  1850 */  1329, 1329, 1329, 1329, 1656,  489, 1329, 1638, 1629,  491,
 /*  1860 */  1631, 1632,  487, 1644,  508,  488, 1329, 1329, 1329, 1599,
 /*  1870 */   489, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  1880 */   488, 1329, 1628, 1329, 1599, 1329, 1656, 1329, 1329,  266,
 /*  1890 */  1629,  491, 1631, 1632,  487, 1628,  508, 1329, 1329, 1329,
 /*  1900 */  1329, 1656, 1329, 1329,  265, 1629,  491, 1631, 1632,  487,
 /*  1910 */  1644,  508, 1329, 1329, 1329, 1329, 1329,  489, 1329, 1329,
 /*  1920 */  1329, 1329, 1329, 1644,  297,  296, 1329,  488, 1329, 1329,
 /*  1930 */   489, 1599, 1329, 1329, 1157, 1329, 1329, 1329, 1329, 1329,
 /*  1940 */   488, 1329, 1329, 1329, 1599, 1329, 1628, 1329, 1656, 1329,
 /*  1950 */  1329,  267, 1629,  491, 1631, 1632,  487, 1329,  508, 1150,
 /*  1960 */  1329, 1656, 1329, 1329,  264, 1629,  491, 1631, 1632,  487,
 /*  1970 */  1329,  508, 1329, 1329, 1644, 1329, 1149, 1329, 1329, 1329,
 /*  1980 */  1329,  489, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  1990 */  1329,  488, 1329, 1329, 1329, 1599, 1329, 1329, 1329, 1329,
 /*  2000 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  2010 */  1329, 1329, 1656, 1329,  509,  250, 1629,  491, 1631, 1632,
 /*  2020 */   487, 1329,  508, 1329, 1329, 1153, 1329, 1329, 1329, 1329,
 /*  2030 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  2040 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  2050 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  2060 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1158, 1329,
 /*  2070 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  2080 */  1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  2090 */  1161, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329,
 /*  2100 */  1329,  506, 1207, 1208,
};
static const YYCODETYPE yy_lookahead[] = {
 /*     0 */   244,  251,  246,  247,  244,  248,  246,  247,  290,  321,
 /*    10 */   322,  270,   12,   13,  264,  270,  296,  260,  241,  336,
 /*    20 */    20,  271,   22,  305,  306,  307,   12,   13,   14,   15,
 /*    30 */    16,  308,  349,  276,   21,  317,  353,   24,   25,   26,
 /*    40 */    27,   28,   29,   30,   31,   32,  269,   47,  269,  273,
 /*    50 */    14,   15,   16,  276,  275,  332,  336,  248,   58,  280,
 /*    60 */    12,   13,   14,  286,   64,   20,  290,  290,   20,  349,
 /*    70 */    22,  241,   58,  353,   20,   12,   13,   14,   15,   16,
 /*    80 */    80,  305,  306,  307,  307,  276,    2,  310,  311,  312,
 /*    90 */   313,  314,  315,  317,  317,   47,   12,   13,   14,   15,
 /*   100 */    16,  253,  102,   89,  269,  296,   58,  248,   12,   13,
 /*   110 */   241,  276,   64,  113,  266,   20,   20,  336,   22,  260,
 /*   120 */   290,   58,  274,  314,  248,   80,  267,  240,   80,  242,
 /*   130 */   349,  354,  355,  254,  353,  276,  248,  258,  329,  330,
 /*   140 */   331,    0,  333,   47,   81,  336,  245,  312,  260,  248,
 /*   150 */   102,   20,   89,  139,   58,  267,  156,  281,  349,  290,
 /*   160 */    64,  113,  353,   41,  276,   24,   25,   26,   27,   28,
 /*   170 */    29,   30,   31,   32,  160,   80,   80,   92,  178,  179,
 /*   180 */   143,  181,  182,  183,  184,  185,  186,  187,  188,  189,
 /*   190 */   190,  191,  192,  193,  194,  195,  111,  112,  102,  114,
 /*   200 */   115,  116,  139,   81,  156,  155,  178,  157,  208,  113,
 /*   210 */   196,  197,  198,  199,  200,  201,  202,  203,  204,  205,
 /*   220 */   249,  250,  286,  160,  241,  289,  178,  179,  292,  181,
 /*   230 */   182,  183,  184,  185,  186,  187,  188,  189,  190,  191,
 /*   240 */   192,  193,  194,  195,    0,  217,  218,  219,  220,  221,
 /*   250 */   213,  214,  156,   12,   13,   14,   15,   16,  208,  196,
 /*   260 */   197,  198,  199,  200,  201,  202,  203,  204,  205,    1,
 /*   270 */     2,  248,    0,  290,  178,  179,  238,  181,  182,  183,
 /*   280 */   184,  185,  186,  187,  188,  189,  190,  191,  192,  193,
 /*   290 */   194,  195,   12,   13,   12,   13,   14,   15,   16,  276,
 /*   300 */    20,    0,   22,  208,   60,   61,   62,   63,    4,   65,
 /*   310 */    66,   67,   68,   69,   70,   71,   72,   73,   74,   75,
 /*   320 */    76,   77,   81,  241,  269,  278,   20,   47,   22,   57,
 /*   330 */   275,  241,  285,  286,  296,  280,  276,  314,  208,  208,
 /*   340 */    12,   13,   14,  283,   64,    4,   42,   43,   20,   81,
 /*   350 */    22,  328,  329,  330,  331,   49,  333,    2,   57,  269,
 /*   360 */    80,   12,   13,   14,   15,   16,  276,   12,   13,   14,
 /*   370 */    15,   16,  290,  269,  336,   47,  286,    0,  261,  275,
 /*   380 */   290,    3,  102,  293,  280,   20,  269,  349,   12,   13,
 /*   390 */   151,  353,   64,  113,  277,  241,   20,  307,   22,   20,
 /*   400 */   310,  311,  312,  313,  314,  315,  245,  317,   80,  248,
 /*   410 */   171,  172,   93,   94,   95,   96,   97,   98,   99,  100,
 /*   420 */   101,  102,  103,   47,  105,  106,  107,  108,  109,  110,
 /*   430 */   102,   12,   13,   14,   15,   16,  156,   60,   61,  261,
 /*   440 */    64,  113,   65,   20,  290,   68,   69,  269,  248,   72,
 /*   450 */    73,   74,   57,  165,  166,  277,   80,  169,  178,  179,
 /*   460 */   260,  181,  182,  183,  184,  185,  186,  187,  188,  189,
 /*   470 */   190,  191,  192,  193,  194,  195,  276,   79,  102,  255,
 /*   480 */   256,  139,   60,   61,  156,   87,  241,   65,  208,  113,
 /*   490 */    68,   69,   75,  296,   72,   73,   74,  148,   14,    0,
 /*   500 */    81,   22,  160,   57,   20,  248,  178,  179,  273,  181,
 /*   510 */   182,  183,  184,  185,  186,  187,  188,  189,  190,  191,
 /*   520 */   192,  193,  194,  195,   55,  290,   47,   12,   13,   14,
 /*   530 */    15,   16,  156,  336,   21,  290,  119,  120,  196,  241,
 /*   540 */   305,  306,  307,   64,   45,  147,  349,   34,   79,  208,
 /*   550 */   353,   82,  317,  296,  178,  179,  241,  181,  182,  183,
 /*   560 */   184,  185,  186,  187,  188,  189,  190,  191,  192,  193,
 /*   570 */   194,  195,   12,   13,   18,   80,   20,   47,  229,  261,
 /*   580 */    20,  102,   22,   27,  269,   90,   30,  269,  290,  268,
 /*   590 */    20,  276,  113,  336,   64,  277,   33,  241,  241,  241,
 /*   600 */   279,  286,  224,  241,   48,  290,  349,   47,   45,  248,
 /*   610 */   353,  296,  241,  253,   51,   52,   53,   54,   55,   35,
 /*   620 */   308,  260,  307,    4,   64,  310,  311,  312,  313,  314,
 /*   630 */   315,  248,  317,  269,  274,  156,  251,  276,  248,  308,
 /*   640 */    80,  277,   79,  260,  332,   82,  290,  290,  290,  255,
 /*   650 */   256,  336,  290,  241,  285,  286,  271,  178,  179,  276,
 /*   660 */   145,  290,  102,  332,  349,  241,  276,   83,  353,   85,
 /*   670 */    86,   22,   88,  113,  118,  241,   92,  121,  122,  123,
 /*   680 */   124,  125,  126,  127,  128,  129,  130,  131,  132,  133,
 /*   690 */   134,  135,  136,  137,  138,  286,   47,  248,  248,  115,
 /*   700 */   248,  292,  290,  140,  314,  142,   20,  144,  248,  260,
 /*   710 */   260,  269,  260,  241,  290,  145,  156,  241,  241,  329,
 /*   720 */   330,  331,  280,  333,  290,  276,  276,  164,  276,  241,
 /*   730 */   241,  241,  262,   42,   43,  265,  276,    0,  178,  179,
 /*   740 */    92,  181,  182,  183,  184,  185,  186,  187,  188,  189,
 /*   750 */   190,  191,  192,  193,  194,  195,  248,   37,  269,  248,
 /*   760 */   248,   20,  290,  115,  248,  276,  290,  290,  260,  167,
 /*   770 */   168,  260,  260,   41,  314,  286,  260,   41,  290,  290,
 /*   780 */   290,  257,   64,  259,  276,  296,    0,  276,  276,  329,
 /*   790 */   330,  331,  276,  333,  206,  207,  307,  145,  146,  310,
 /*   800 */   311,  312,  313,  314,  315,  241,  317,   41,   22,  320,
 /*   810 */    14,   14,   84,  324,  325,   87,   20,   20,   18,   84,
 /*   820 */     1,    2,   87,   23,    0,  336,   58,   84,  209,   92,
 /*   830 */    87,  145,   41,  269,    0,   35,   36,   47,  349,   39,
 /*   840 */   276,   84,  353,   41,   87,    0,   22,   81,  111,  112,
 /*   850 */   286,  114,  115,  116,  290,   21,   56,   44,   24,   25,
 /*   860 */    26,   27,   28,   29,   30,   31,   32,   22,   91,  241,
 /*   870 */    47,  307,   81,   41,  310,  311,  312,  313,  314,  315,
 /*   880 */    41,  317,   47,   81,  320,  193,  194,  270,  324,  325,
 /*   890 */   326,  270,  270,   80,   41,  270,   19,  269,  299,   64,
 /*   900 */   270,  242,  338,  113,  276,  258,  356,   41,  344,  345,
 /*   910 */    33,  303,   41,   81,  286,   41,  241,  117,  290,  347,
 /*   920 */    81,  341,   45,   41,  247,  249,   41,  207,   51,   52,
 /*   930 */    53,   54,   55,  279,   81,  307,  113,  334,  310,  311,
 /*   940 */   312,  313,  314,  315,  269,  317,  178,   81,  148,  149,
 /*   950 */   150,  276,   81,  153,   41,   81,   79,   41,  158,   82,
 /*   960 */   228,  286,  226,   81,   41,  290,   81,  309,  269,  337,
 /*   970 */   170,   41,   41,  173,  350,  175,  176,  177,   20,  248,
 /*   980 */    45,  241,  307,  355,  304,  310,  311,  312,  313,  314,
 /*   990 */   315,   47,  317,  116,   81,  320,  154,   81,  297,  324,
 /*  1000 */   325,  326,  255,  248,   81,   40,  248,  284,  208,  269,
 /*  1010 */   248,   81,   81,   20,  139,  282,  276,  243,  141,  243,
 /*  1020 */   345,  144,   20,  301,  282,  253,  286,   20,  253,  276,
 /*  1030 */   290,  286,  294,  253,   20,  287,  253,  253,  253,  162,
 /*  1040 */   248,  164,  241,    0,    4,   64,  243,  307,  269,  243,
 /*  1050 */   310,  311,  312,  313,  314,  315,  269,  317,  269,   19,
 /*  1060 */   320,  290,  269,  269,  324,  325,  326,  269,  269,  248,
 /*  1070 */   269,  301,  294,   33,  269,  335,  269,  276,  269,  269,
 /*  1080 */   251,  163,  300,   20,  251,   45,  216,  286,  251,  251,
 /*  1090 */    50,  290,  276,  215,  286,   55,  241,  309,  287,  223,
 /*  1100 */   346,  222,  346,  291,  290,  342,  291,  290,  307,  211,
 /*  1110 */   290,  310,  311,  312,  313,  314,  315,  210,  317,   79,
 /*  1120 */   339,  320,   82,  276,  269,  324,  325,  326,  207,   20,
 /*  1130 */   308,  276,   40,  230,   80,   92,  335,  227,  343,  225,
 /*  1140 */   291,  286,  290,  142,  340,  290,  290,  287,  291,  290,
 /*  1150 */   241,  323,  327,  288,  111,  112,  276,  114,  115,  116,
 /*  1160 */   265,   80,  307,  251,  276,  310,  311,  312,  313,  314,
 /*  1170 */   315,  251,  317,  272,  259,  320,  248,  251,  269,  324,
 /*  1180 */   325,  326,  241,  357,  298,  276,  243,  295,  352,  302,
 /*  1190 */   335,  351,  263,  239,  252,  286,  263,  263,    0,  290,
 /*  1200 */   241,    0,   72,    0,   47,  174,   47,   47,   47,  174,
 /*  1210 */   269,    0,   47,   47,    0,  174,  307,  276,   47,  310,
 /*  1220 */   311,  312,  313,  314,  315,    0,  317,  286,  269,  320,
 /*  1230 */    47,  290,  241,  324,  325,  276,    0,   47,    0,  160,
 /*  1240 */   113,  159,   80,  156,    0,  286,    0,  152,  307,  290,
 /*  1250 */   241,  310,  311,  312,  313,  314,  315,  151,  317,    0,
 /*  1260 */   269,    0,   44,    0,    0,    0,  307,  276,    0,  310,
 /*  1270 */   311,  312,  313,  314,  315,    0,  317,  286,  269,  320,
 /*  1280 */     0,  290,    0,  324,  325,  276,    0,    0,    0,    0,
 /*  1290 */     0,    0,    0,    0,    0,  286,    0,  241,  307,  290,
 /*  1300 */     0,  310,  311,  312,  313,  314,  315,  316,  317,  318,
 /*  1310 */   319,   40,  241,    0,    0,    0,  307,    0,    0,  310,
 /*  1320 */   311,  312,  313,  314,  315,  269,  317,    0,   22,  320,
 /*  1330 */     0,    0,  276,    0,  325,    0,    0,    0,   40,   37,
 /*  1340 */   269,   44,  286,   14,   41,   44,  290,  276,   14,    0,
 /*  1350 */    38,    0,    0,   37,    0,    0,   37,  286,    0,    0,
 /*  1360 */     0,  290,    0,  307,  293,   37,  310,  311,  312,  313,
 /*  1370 */   314,  315,   47,  317,    0,   37,   37,   45,  307,   59,
 /*  1380 */     0,  310,  311,  312,  313,  314,  315,  241,  317,   47,
 /*  1390 */    45,   47,   45,   47,   37,   45,    0,    0,    0,    0,
 /*  1400 */    89,   22,    0,   47,  348,    0,   22,    0,   87,   41,
 /*  1410 */    47,   47,   47,   47,   41,  269,   47,  241,   48,   47,
 /*  1420 */     0,    0,  276,   47,   47,   22,   22,    0,   22,   20,
 /*  1430 */    22,    0,  286,   47,    0,  161,  290,   22,    0,    0,
 /*  1440 */   145,    0,   41,  212,  145,  269,  142,   80,   37,  212,
 /*  1450 */   140,   41,  276,  307,   41,   80,  310,  311,  312,  313,
 /*  1460 */   314,  315,  286,  317,  241,  319,  290,   41,   81,  293,
 /*  1470 */    81,   80,   80,  241,   81,   80,   44,   41,  206,   44,
 /*  1480 */     2,   81,  212,  307,   41,   41,  310,  311,  312,  313,
 /*  1490 */   314,  315,  269,  317,   44,   81,   47,   81,   47,  276,
 /*  1500 */    47,  269,   47,   47,   47,   41,   81,   44,  276,  286,
 /*  1510 */    80,   44,   22,  290,    0,   22,  293,   80,  286,   37,
 /*  1520 */   241,  178,  290,   81,  143,   80,   80,   80,  180,   81,
 /*  1530 */   307,   44,   80,  310,  311,  312,  313,  314,  315,  307,
 /*  1540 */   317,   81,  310,  311,  312,  313,  314,  315,  269,  317,
 /*  1550 */   241,   80,  140,   80,   44,  276,   90,   80,   47,   91,
 /*  1560 */    81,   80,   47,   80,   80,  286,   81,   81,   47,  290,
 /*  1570 */    81,   80,   47,   81,   80,   47,   80,   47,  269,   81,
 /*  1580 */    80,   22,  241,   80,  104,  276,  307,   92,   80,  310,
 /*  1590 */   311,  312,  313,  314,  315,  286,  317,   47,   80,  290,
 /*  1600 */    47,  104,   22,  104,   59,  104,   58,   64,   41,   78,
 /*  1610 */   269,   47,  241,   47,   22,  113,  307,  276,   47,  310,
 /*  1620 */   311,  312,  313,  314,  315,   47,  317,  286,   47,   47,
 /*  1630 */    47,  290,   64,   47,   47,   47,   47,   47,   47,    0,
 /*  1640 */   269,   37,   47,   47,   45,    0,   45,  276,  307,   47,
 /*  1650 */    37,  310,  311,  312,  313,  314,  315,  286,  317,  241,
 /*  1660 */     0,  290,   47,   45,   37,    0,   47,   45,   37,    0,
 /*  1670 */    47,   46,    0,    0,  241,   22,   21,   21,  307,   22,
 /*  1680 */    22,  310,  311,  312,  313,  314,  315,  269,  317,  358,
 /*  1690 */    20,  358,  358,  358,  276,  358,  358,  358,  358,  358,
 /*  1700 */   358,  358,  269,  358,  286,  358,  241,  358,  290,  276,
 /*  1710 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  286,
 /*  1720 */   358,  358,  358,  290,  358,  307,  358,  358,  310,  311,
 /*  1730 */   312,  313,  314,  315,  269,  317,  358,  358,  358,  358,
 /*  1740 */   307,  276,  358,  310,  311,  312,  313,  314,  315,  358,
 /*  1750 */   317,  286,  358,  358,  358,  290,  358,  358,  241,  358,
 /*  1760 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  1770 */   358,  358,  307,  358,  358,  310,  311,  312,  313,  314,
 /*  1780 */   315,  358,  317,  358,  358,  358,  269,  358,  241,  358,
 /*  1790 */   358,  358,  358,  276,  358,  358,  358,  358,  358,  358,
 /*  1800 */   358,  358,  358,  286,  358,  358,  358,  290,  358,  358,
 /*  1810 */   358,  358,  358,  358,  358,  358,  269,  358,  358,  358,
 /*  1820 */   241,  358,  358,  276,  307,  358,  358,  310,  311,  312,
 /*  1830 */   313,  314,  315,  286,  317,  241,  358,  290,  358,  358,
 /*  1840 */   358,  358,  358,  358,  358,  358,  358,  358,  269,  358,
 /*  1850 */   358,  358,  358,  358,  307,  276,  358,  310,  311,  312,
 /*  1860 */   313,  314,  315,  269,  317,  286,  358,  358,  358,  290,
 /*  1870 */   276,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  1880 */   286,  358,  241,  358,  290,  358,  307,  358,  358,  310,
 /*  1890 */   311,  312,  313,  314,  315,  241,  317,  358,  358,  358,
 /*  1900 */   358,  307,  358,  358,  310,  311,  312,  313,  314,  315,
 /*  1910 */   269,  317,  358,  358,  358,  358,  358,  276,  358,  358,
 /*  1920 */   358,  358,  358,  269,   12,   13,  358,  286,  358,  358,
 /*  1930 */   276,  290,  358,  358,   22,  358,  358,  358,  358,  358,
 /*  1940 */   286,  358,  358,  358,  290,  358,  241,  358,  307,  358,
 /*  1950 */   358,  310,  311,  312,  313,  314,  315,  358,  317,   47,
 /*  1960 */   358,  307,  358,  358,  310,  311,  312,  313,  314,  315,
 /*  1970 */   358,  317,  358,  358,  269,  358,   64,  358,  358,  358,
 /*  1980 */   358,  276,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  1990 */   358,  286,  358,  358,  358,  290,  358,  358,  358,  358,
 /*  2000 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2010 */   358,  358,  307,  358,  102,  310,  311,  312,  313,  314,
 /*  2020 */   315,  358,  317,  358,  358,  113,  358,  358,  358,  358,
 /*  2030 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2040 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2050 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2060 */   358,  358,  358,  358,  358,  358,  358,  358,  156,  358,
 /*  2070 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2080 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2090 */   178,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2100 */   358,  189,  190,  191,  358,  358,  358,  358,  358,  358,
 /*  2110 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2120 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2130 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2140 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2150 */   358,  358,  358,  358,  358,  358,  358,  358,  358,  358,
 /*  2160 */   358,  358,  358,
};
#define YY_SHIFT_COUNT    (590)
#define YY_SHIFT_MIN      (0)
#define YY_SHIFT_MAX      (1912)
static const unsigned short int yy_shift_ofst[] = {
 /*     0 */   800,    0,   48,   96,   96,   96,   96,  280,   96,   96,
 /*    10 */   328,  376,  560,  376,  376,  376,  376,  376,  376,  376,
 /*    20 */   376,  376,  376,  376,  376,  376,  376,  376,  376,  376,
 /*    30 */   376,  376,  376,  376,  376,  376,   95,   45,   45,   45,
 /*    40 */  1912, 1912, 1912,  131,   50,   54,   54,  130,  304,  304,
 /*    50 */   341,   54,   54,   54,   54,   54,   54,  395,   54,  365,
 /*    60 */   379,  130,  423,  365,   54,   54,  365,   54,  365,  365,
 /*    70 */   423,  365,   54,  446,  556,   63,   14,   14,   13,  479,
 /*    80 */   422,  479,  479,  479,  479,  479,  479,  479,  479,  479,
 /*    90 */   479,  479,  479,  479,  479,  479,  479,  479,  479,  479,
 /*   100 */   584,  306,  484,  484,  272,  530,  570,  570,  570,  301,
 /*   110 */   530,  741,  423,  365,  365,  423,  777,  718,  319,  319,
 /*   120 */   319,  319,  319,  319,  319,  877,  834,  377,  349,   28,
 /*   130 */   288,   37,  691,  649,  648,  686,  588,  720,  588,  796,
 /*   140 */   378,  619,  797,  958,  935,  944,  842,  958,  958,  965,
 /*   150 */   875,  875,  958,  993,  993, 1002,  395,  423,  395, 1007,
 /*   160 */   395,  741, 1014,  395,  395,  958,  395,  993,  365,  365,
 /*   170 */   365,  365,  365,  365,  365,  365,  365,  365,  365,  958,
 /*   180 */   993,  981, 1002,  446,  918,  423,  446, 1007,  446,  741,
 /*   190 */  1014,  446, 1063,  870,  878,  981,  870,  878,  981,  981,
 /*   200 */   876,  879,  898,  907,  921,  741, 1109, 1092,  903,  910,
 /*   210 */   914, 1054,  365,  878,  981,  981,  878,  981, 1001,  741,
 /*   220 */  1014,  446,  777,  446,  741, 1081,  718,  958,  446,  993,
 /*   230 */  2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104,  244,  563,
 /*   240 */   141, 1040,  737, 1043,  241,   84,  355,  515,  419,   85,
 /*   250 */   282,  282,  282,  282,  282,  282,  282,  282,  239,  469,
 /*   260 */   417,  398,  268,  342,   36,   36,   36,   36,  499,  122,
 /*   270 */   728,  735,  743,  757,  786,  824,  845,  513,  602,  652,
 /*   280 */   766,  791,  802,  819,  692,  736,  732,  832,  768,  839,
 /*   290 */   813,  853,  866,  874,  882,  885,  790,  823,  871,  913,
 /*   300 */   916,  923,  930,  931,  495,  835, 1198, 1201, 1130, 1203,
 /*   310 */  1157, 1031, 1159, 1160, 1161, 1035, 1211, 1165, 1166, 1041,
 /*   320 */  1214, 1171, 1225, 1183, 1236, 1190, 1238, 1162, 1079, 1082,
 /*   330 */  1127, 1087, 1244, 1246, 1095, 1106, 1259, 1261, 1218, 1263,
 /*   340 */  1264, 1265, 1268, 1275, 1280, 1282, 1286, 1287, 1288, 1289,
 /*   350 */  1290, 1291, 1292, 1293, 1294, 1296, 1300, 1271, 1313, 1314,
 /*   360 */  1315, 1317, 1318, 1327, 1306, 1330, 1331, 1333, 1335, 1336,
 /*   370 */  1337, 1298, 1302, 1303, 1329, 1297, 1334, 1301, 1349, 1312,
 /*   380 */  1316, 1351, 1352, 1354, 1355, 1319, 1358, 1320, 1359, 1360,
 /*   390 */  1325, 1332, 1328, 1362, 1342, 1345, 1338, 1374, 1344, 1347,
 /*   400 */  1339, 1380, 1346, 1350, 1357, 1396, 1397, 1398, 1399, 1311,
 /*   410 */  1321, 1356, 1379, 1402, 1363, 1364, 1365, 1366, 1368, 1373,
 /*   420 */  1369, 1372, 1376, 1405, 1384, 1407, 1403, 1370, 1420, 1404,
 /*   430 */  1377, 1421, 1406, 1427, 1408, 1409, 1431, 1295, 1386, 1434,
 /*   440 */  1274, 1415, 1299, 1304, 1438, 1439, 1441, 1367, 1411, 1310,
 /*   450 */  1401, 1410, 1231, 1387, 1413, 1389, 1375, 1391, 1392, 1393,
 /*   460 */  1426, 1432, 1395, 1436, 1237, 1400, 1414, 1435, 1272, 1443,
 /*   470 */  1450, 1416, 1444, 1270, 1449, 1451, 1453, 1455, 1456, 1457,
 /*   480 */  1478, 1343, 1464, 1425, 1430, 1442, 1463, 1437, 1445, 1467,
 /*   490 */  1490, 1348, 1446, 1448, 1460, 1447, 1452, 1381, 1471, 1514,
 /*   500 */  1482, 1412, 1473, 1466, 1487, 1510, 1477, 1479, 1481, 1493,
 /*   510 */  1483, 1468, 1485, 1511, 1515, 1484, 1486, 1521, 1491, 1489,
 /*   520 */  1525, 1494, 1492, 1528, 1496, 1498, 1530, 1500, 1480, 1497,
 /*   530 */  1499, 1501, 1559, 1495, 1503, 1508, 1550, 1518, 1502, 1553,
 /*   540 */  1580, 1545, 1548, 1543, 1531, 1567, 1564, 1566, 1571, 1578,
 /*   550 */  1581, 1592, 1582, 1583, 1568, 1368, 1586, 1373, 1587, 1588,
 /*   560 */  1589, 1590, 1591, 1595, 1639, 1596, 1599, 1604, 1645, 1602,
 /*   570 */  1601, 1613, 1660, 1615, 1618, 1627, 1665, 1619, 1622, 1631,
 /*   580 */  1669, 1623, 1625, 1672, 1673, 1653, 1655, 1657, 1658, 1656,
 /*   590 */  1670,
};
#define YY_REDUCE_COUNT (237)
#define YY_REDUCE_MIN   (-317)
#define YY_REDUCE_MAX   (1705)
static const short yy_reduce_ofst[] = {
 /*     0 */    38,  489,  564,  675,  740,  801,  855,  315,  909,  959,
 /*    10 */   991, -223, 1009,   90, 1056,  628, 1071, 1146, 1176, 1223,
 /*    20 */   941, 1232, 1279, 1309, 1341, 1371, 1418, 1433, 1465, 1517,
 /*    30 */  1547, 1579, 1594, 1641, 1654, 1705, -191,   23,  390,  460,
 /*    40 */  -224,  235, -282,  257, -280, -141, -112,  197, -244, -240,
 /*    50 */  -317, -243,  200,  361,  383,  449,  450, -152,  452, -221,
 /*    60 */  -165, -219,  -64,  117,  508,  511,   55,  512,  178,  104,
 /*    70 */    47,  318,  516, -250, -124, -312, -312, -312, -113, -170,
 /*    80 */  -121, -131,  -17,   82,  154,  245,  298,  356,  357,  358,
 /*    90 */   362,  371,  412,  424,  434,  472,  476,  477,  488,  490,
 /*   100 */   321,  -29,  -99,  161,  360,  224, -277,  312,  331,  385,
 /*   110 */   394,   60,  409,  364,  442,  369,  470,  524, -259, -255,
 /*   120 */   617,  621,  622,  625,  630,  599,  659,  647,  550,  572,
 /*   130 */   608,  580,  677,  676,  654,  658,  603,  603,  603,  699,
 /*   140 */   624,  632,  699,  731,  680,  747,  701,  755,  758,  723,
 /*   150 */   733,  742,  762,  774,  776,  722,  772,  745,  775,  738,
 /*   160 */   780,  753,  748,  783,  784,  792,  785,  803,  779,  787,
 /*   170 */   789,  793,  794,  798,  799,  805,  807,  809,  810,  821,
 /*   180 */   806,  771,  770,  829,  782,  808,  833,  778,  837,  816,
 /*   190 */   811,  838,  788,  754,  812,  814,  756,  815,  817,  820,
 /*   200 */   795,  763,  804,  781,  603,  847,  822,  825,  826,  836,
 /*   210 */   840,  828,  699,  849,  852,  856,  857,  859,  865,  880,
 /*   220 */   860,  912,  895,  920,  888,  901,  915,  928,  926,  943,
 /*   230 */   886,  887,  892,  929,  933,  934,  942,  954,
};
static const YYACTIONTYPE yy_default[] = {
 /*     0 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*    10 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*    20 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*    30 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*    40 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*    50 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1396, 1327, 1327,
 /*    60 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*    70 */  1327, 1327, 1327, 1394, 1534, 1327, 1698, 1327, 1327, 1327,
 /*    80 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*    90 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   100 */  1327, 1327, 1327, 1327, 1396, 1327, 1709, 1709, 1709, 1394,
 /*   110 */  1327, 1327, 1327, 1327, 1327, 1327, 1489, 1327, 1327, 1327,
 /*   120 */  1327, 1327, 1327, 1327, 1327, 1572, 1327, 1327, 1774, 1327,
 /*   130 */  1578, 1733, 1327, 1327, 1442, 1725, 1701, 1715, 1702, 1327,
 /*   140 */  1759, 1718, 1327, 1327, 1327, 1327, 1564, 1327, 1327, 1539,
 /*   150 */  1536, 1536, 1327, 1327, 1327, 1327, 1396, 1327, 1396, 1327,
 /*   160 */  1396, 1327, 1327, 1396, 1396, 1327, 1396, 1327, 1327, 1327,
 /*   170 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   180 */  1327, 1327, 1327, 1394, 1574, 1327, 1394, 1327, 1394, 1327,
 /*   190 */  1327, 1394, 1327, 1740, 1738, 1327, 1740, 1738, 1327, 1327,
 /*   200 */  1752, 1748, 1731, 1729, 1715, 1327, 1327, 1327, 1777, 1765,
 /*   210 */  1761, 1327, 1327, 1738, 1327, 1327, 1738, 1327, 1547, 1327,
 /*   220 */  1327, 1394, 1327, 1394, 1327, 1458, 1327, 1327, 1394, 1327,
 /*   230 */  1566, 1580, 1556, 1492, 1492, 1492, 1397, 1332, 1327, 1327,
 /*   240 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1454,
 /*   250 */  1643, 1751, 1750, 1674, 1673, 1672, 1670, 1642, 1327, 1327,
 /*   260 */  1327, 1327, 1327, 1327, 1636, 1637, 1635, 1634, 1327, 1327,
 /*   270 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   280 */  1327, 1327, 1327, 1699, 1327, 1762, 1766, 1327, 1327, 1327,
 /*   290 */  1620, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   300 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   310 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   320 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   330 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   340 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   350 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   360 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   370 */  1327, 1327, 1327, 1361, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   380 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   390 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   400 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   410 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1423, 1422,
 /*   420 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   430 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   440 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   450 */  1722, 1732, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   460 */  1327, 1620, 1327, 1749, 1327, 1708, 1704, 1327, 1327, 1700,
 /*   470 */  1327, 1327, 1760, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   480 */  1694, 1327, 1667, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   490 */  1327, 1630, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   500 */  1327, 1327, 1327, 1327, 1619, 1327, 1658, 1327, 1327, 1327,
 /*   510 */  1327, 1327, 1327, 1327, 1327, 1486, 1327, 1327, 1327, 1327,
 /*   520 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1471, 1469,
 /*   530 */  1468, 1467, 1327, 1464, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   540 */  1327, 1327, 1327, 1327, 1327, 1416, 1327, 1327, 1327, 1327,
 /*   550 */  1327, 1327, 1327, 1327, 1327, 1407, 1327, 1406, 1327, 1327,
 /*   560 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   570 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   580 */  1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
 /*   590 */  1327,
};
/********** 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,  /*  PRIVILEGE => nothing */
    0,  /*       DROP => nothing */
    0,  /*      GRANT => nothing */
    0,  /*         ON => nothing */
    0,  /*         TO => nothing */
    0,  /*     REVOKE => nothing */
    0,  /*       FROM => nothing */
    0,  /*   NK_COMMA => nothing */
    0,  /*       READ => nothing */
    0,  /*      WRITE => nothing */
    0,  /*     NK_DOT => nothing */
    0,  /*      DNODE => nothing */
    0,  /*       PORT => nothing */
    0,  /* NK_INTEGER => nothing */
    0,  /*     DNODES => nothing */
    0,  /* NK_IPTOKEN => nothing */
    0,  /*      LOCAL => nothing */
    0,  /*      QNODE => nothing */
    0,  /*      BNODE => nothing */
    0,  /*      SNODE => nothing */
    0,  /*      MNODE => nothing */
    0,  /*   DATABASE => nothing */
    0,  /*        USE => nothing */
    0,  /*         IF => nothing */
    0,  /*        NOT => nothing */
    0,  /*     EXISTS => nothing */
    0,  /*     BUFFER => nothing */
    0,  /*  CACHELAST => nothing */
    0,  /*       COMP => nothing */
    0,  /*       DAYS => nothing */
    0,  /* NK_VARIABLE => nothing */
    0,  /*      FSYNC => nothing */
    0,  /*    MAXROWS => nothing */
    0,  /*    MINROWS => nothing */
    0,  /*       KEEP => nothing */
    0,  /*      PAGES => nothing */
    0,  /*   PAGESIZE => nothing */
    0,  /*  PRECISION => nothing */
    0,  /*    REPLICA => nothing */
    0,  /*     STRICT => nothing */
    0,  /*        WAL => nothing */
    0,  /*    VGROUPS => nothing */
    0,  /* SINGLE_STABLE => nothing */
    0,  /* RETENTIONS => nothing */
    0,  /*   NK_COLON => nothing */
    0,  /*      TABLE => nothing */
    0,  /*      NK_LP => nothing */
    0,  /*      NK_RP => nothing */
    0,  /*     STABLE => nothing */
    0,  /*        ADD => nothing */
    0,  /*     COLUMN => nothing */
    0,  /*     MODIFY => nothing */
    0,  /*     RENAME => nothing */
    0,  /*        TAG => nothing */
    0,  /*        SET => nothing */
    0,  /*      NK_EQ => nothing */
    0,  /*      USING => nothing */
    0,  /*       TAGS => nothing */
    0,  /*    COMMENT => nothing */
    0,  /*       BOOL => nothing */
    0,  /*    TINYINT => nothing */
    0,  /*   SMALLINT => nothing */
    0,  /*        INT => nothing */
    0,  /*    INTEGER => nothing */
    0,  /*     BIGINT => nothing */
    0,  /*      FLOAT => nothing */
    0,  /*     DOUBLE => nothing */
    0,  /*     BINARY => nothing */
    0,  /*  TIMESTAMP => nothing */
    0,  /*      NCHAR => nothing */
    0,  /*   UNSIGNED => nothing */
    0,  /*       JSON => nothing */
    0,  /*    VARCHAR => nothing */
    0,  /* MEDIUMBLOB => nothing */
    0,  /*       BLOB => nothing */
    0,  /*  VARBINARY => nothing */
    0,  /*    DECIMAL => nothing */
    0,  /*      DELAY => nothing */
    0,  /* FILE_FACTOR => nothing */
    0,  /*   NK_FLOAT => nothing */
    0,  /*     ROLLUP => nothing */
    0,  /*        TTL => nothing */
    0,  /*        SMA => nothing */
    0,  /*       SHOW => nothing */
    0,  /*  DATABASES => nothing */
    0,  /*     TABLES => nothing */
    0,  /*    STABLES => nothing */
    0,  /*     MNODES => nothing */
    0,  /*    MODULES => nothing */
    0,  /*     QNODES => nothing */
    0,  /*  FUNCTIONS => nothing */
    0,  /*    INDEXES => nothing */
    0,  /*   ACCOUNTS => nothing */
    0,  /*       APPS => nothing */
    0,  /* CONNECTIONS => nothing */
    0,  /*    LICENCE => nothing */
    0,  /*     GRANTS => nothing */
    0,  /*    QUERIES => nothing */
    0,  /*     SCORES => nothing */
    0,  /*     TOPICS => nothing */
    0,  /*  VARIABLES => nothing */
    0,  /*     BNODES => nothing */
    0,  /*     SNODES => nothing */
    0,  /*    CLUSTER => nothing */
    0,  /* TRANSACTIONS => nothing */
    0,  /*       LIKE => nothing */
    0,  /*      INDEX => nothing */
    0,  /*   FULLTEXT => nothing */
    0,  /*   FUNCTION => nothing */
    0,  /*   INTERVAL => nothing */
    0,  /*      TOPIC => nothing */
    0,  /*         AS => nothing */
    0,  /*       WITH => nothing */
    0,  /*     SCHEMA => 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,  /*    COMPACT => nothing */
    0,  /*     VNODES => nothing */
    0,  /*         IN => nothing */
    0,  /* OUTPUTTYPE => nothing */
    0,  /*  AGGREGATE => nothing */
    0,  /*    BUFSIZE => nothing */
    0,  /*     STREAM => nothing */
    0,  /*       INTO => nothing */
    0,  /*    TRIGGER => nothing */
    0,  /*    AT_ONCE => nothing */
    0,  /* WINDOW_CLOSE => nothing */
    0,  /*  WATERMARK => nothing */
    0,  /*       KILL => nothing */
    0,  /* CONNECTION => nothing */
    0,  /* TRANSACTION => nothing */
    0,  /*      MERGE => nothing */
    0,  /*     VGROUP => nothing */
    0,  /* REDISTRIBUTE => nothing */
    0,  /*      SPLIT => nothing */
    0,  /*     SYNCDB => nothing */
    0,  /*       NULL => nothing */
    0,  /* NK_QUESTION => nothing */
    0,  /*   NK_ARROW => nothing */
    0,  /*      ROWTS => nothing */
    0,  /*     TBNAME => nothing */
    0,  /*   QSTARTTS => nothing */
    0,  /*     QENDTS => nothing */
    0,  /*   WSTARTTS => nothing */
    0,  /*     WENDTS => nothing */
    0,  /*  WDURATION => nothing */
    0,  /*       CAST => nothing */
    0,  /*        NOW => nothing */
    0,  /*      TODAY => nothing */
    0,  /*   TIMEZONE => nothing */
    0,  /*      COUNT => nothing */
    0,  /*      FIRST => nothing */
    0,  /*       LAST => nothing */
    0,  /*   LAST_ROW => nothing */
    0,  /*    BETWEEN => nothing */
    0,  /*         IS => nothing */
    0,  /*      NK_LT => nothing */
    0,  /*      NK_GT => nothing */
    0,  /*      NK_LE => nothing */
    0,  /*      NK_GE => nothing */
    0,  /*      NK_NE => nothing */
    0,  /*      MATCH => nothing */
    0,  /*     NMATCH => nothing */
    0,  /*   CONTAINS => nothing */
    0,  /*       JOIN => nothing */
    0,  /*      INNER => nothing */
    0,  /*     SELECT => nothing */
    0,  /*   DISTINCT => nothing */
    0,  /*      WHERE => nothing */
    0,  /*  PARTITION => nothing */
    0,  /*         BY => nothing */
    0,  /*    SESSION => nothing */
    0,  /* STATE_WINDOW => nothing */
    0,  /*    SLIDING => nothing */
    0,  /*       FILL => nothing */
    0,  /*      VALUE => nothing */
    0,  /*       NONE => nothing */
    0,  /*       PREV => nothing */
    0,  /*     LINEAR => nothing */
    0,  /*       NEXT => nothing */
    0,  /*      GROUP => nothing */
    0,  /*     HAVING => nothing */
    0,  /*      ORDER => nothing */
    0,  /*     SLIMIT => nothing */
    0,  /*    SOFFSET => nothing */
    0,  /*      LIMIT => nothing */
    0,  /*     OFFSET => nothing */
    0,  /*        ASC => nothing */
    0,  /*      NULLS => nothing */
    0,  /*         ID => nothing */
  231,  /*  NK_BITNOT => ID */
  231,  /*     INSERT => ID */
  231,  /*     VALUES => ID */
  231,  /*     IMPORT => ID */
  231,  /*    NK_SEMI => ID */
  231,  /*       FILE => ID */
};
#endif /* YYFALLBACK */

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

/* The state of the parser is completely contained in an instance of
** the following structure */
struct yyParser {
  yyStackEntry *yytos;          /* Pointer to top element of the stack */
#ifdef YYTRACKMAXSTACKDEPTH
  int yyhwm;                    /* High-water mark of the stack */
#endif
#ifndef YYNOERRORRECOVERY
  int yyerrcnt;                 /* Shifts left before out of the error */
#endif
  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 */ "PRIVILEGE",
  /*   35 */ "DROP",
  /*   36 */ "GRANT",
  /*   37 */ "ON",
  /*   38 */ "TO",
  /*   39 */ "REVOKE",
  /*   40 */ "FROM",
  /*   41 */ "NK_COMMA",
  /*   42 */ "READ",
  /*   43 */ "WRITE",
  /*   44 */ "NK_DOT",
  /*   45 */ "DNODE",
  /*   46 */ "PORT",
  /*   47 */ "NK_INTEGER",
  /*   48 */ "DNODES",
  /*   49 */ "NK_IPTOKEN",
  /*   50 */ "LOCAL",
  /*   51 */ "QNODE",
  /*   52 */ "BNODE",
  /*   53 */ "SNODE",
  /*   54 */ "MNODE",
  /*   55 */ "DATABASE",
  /*   56 */ "USE",
  /*   57 */ "IF",
  /*   58 */ "NOT",
  /*   59 */ "EXISTS",
  /*   60 */ "BUFFER",
  /*   61 */ "CACHELAST",
  /*   62 */ "COMP",
  /*   63 */ "DAYS",
  /*   64 */ "NK_VARIABLE",
  /*   65 */ "FSYNC",
  /*   66 */ "MAXROWS",
  /*   67 */ "MINROWS",
  /*   68 */ "KEEP",
  /*   69 */ "PAGES",
  /*   70 */ "PAGESIZE",
  /*   71 */ "PRECISION",
  /*   72 */ "REPLICA",
  /*   73 */ "STRICT",
  /*   74 */ "WAL",
  /*   75 */ "VGROUPS",
  /*   76 */ "SINGLE_STABLE",
  /*   77 */ "RETENTIONS",
  /*   78 */ "NK_COLON",
  /*   79 */ "TABLE",
  /*   80 */ "NK_LP",
  /*   81 */ "NK_RP",
  /*   82 */ "STABLE",
  /*   83 */ "ADD",
  /*   84 */ "COLUMN",
  /*   85 */ "MODIFY",
  /*   86 */ "RENAME",
  /*   87 */ "TAG",
  /*   88 */ "SET",
  /*   89 */ "NK_EQ",
  /*   90 */ "USING",
  /*   91 */ "TAGS",
  /*   92 */ "COMMENT",
  /*   93 */ "BOOL",
  /*   94 */ "TINYINT",
  /*   95 */ "SMALLINT",
  /*   96 */ "INT",
  /*   97 */ "INTEGER",
  /*   98 */ "BIGINT",
  /*   99 */ "FLOAT",
  /*  100 */ "DOUBLE",
  /*  101 */ "BINARY",
  /*  102 */ "TIMESTAMP",
  /*  103 */ "NCHAR",
  /*  104 */ "UNSIGNED",
  /*  105 */ "JSON",
  /*  106 */ "VARCHAR",
  /*  107 */ "MEDIUMBLOB",
  /*  108 */ "BLOB",
  /*  109 */ "VARBINARY",
  /*  110 */ "DECIMAL",
  /*  111 */ "DELAY",
  /*  112 */ "FILE_FACTOR",
  /*  113 */ "NK_FLOAT",
  /*  114 */ "ROLLUP",
  /*  115 */ "TTL",
  /*  116 */ "SMA",
  /*  117 */ "SHOW",
  /*  118 */ "DATABASES",
  /*  119 */ "TABLES",
  /*  120 */ "STABLES",
  /*  121 */ "MNODES",
  /*  122 */ "MODULES",
  /*  123 */ "QNODES",
  /*  124 */ "FUNCTIONS",
  /*  125 */ "INDEXES",
  /*  126 */ "ACCOUNTS",
  /*  127 */ "APPS",
  /*  128 */ "CONNECTIONS",
  /*  129 */ "LICENCE",
  /*  130 */ "GRANTS",
  /*  131 */ "QUERIES",
  /*  132 */ "SCORES",
  /*  133 */ "TOPICS",
  /*  134 */ "VARIABLES",
  /*  135 */ "BNODES",
  /*  136 */ "SNODES",
  /*  137 */ "CLUSTER",
  /*  138 */ "TRANSACTIONS",
  /*  139 */ "LIKE",
  /*  140 */ "INDEX",
  /*  141 */ "FULLTEXT",
  /*  142 */ "FUNCTION",
  /*  143 */ "INTERVAL",
  /*  144 */ "TOPIC",
  /*  145 */ "AS",
  /*  146 */ "WITH",
  /*  147 */ "SCHEMA",
  /*  148 */ "DESC",
  /*  149 */ "DESCRIBE",
  /*  150 */ "RESET",
  /*  151 */ "QUERY",
  /*  152 */ "CACHE",
  /*  153 */ "EXPLAIN",
  /*  154 */ "ANALYZE",
  /*  155 */ "VERBOSE",
  /*  156 */ "NK_BOOL",
  /*  157 */ "RATIO",
  /*  158 */ "COMPACT",
  /*  159 */ "VNODES",
  /*  160 */ "IN",
  /*  161 */ "OUTPUTTYPE",
  /*  162 */ "AGGREGATE",
  /*  163 */ "BUFSIZE",
  /*  164 */ "STREAM",
  /*  165 */ "INTO",
  /*  166 */ "TRIGGER",
  /*  167 */ "AT_ONCE",
  /*  168 */ "WINDOW_CLOSE",
  /*  169 */ "WATERMARK",
  /*  170 */ "KILL",
  /*  171 */ "CONNECTION",
  /*  172 */ "TRANSACTION",
  /*  173 */ "MERGE",
  /*  174 */ "VGROUP",
  /*  175 */ "REDISTRIBUTE",
  /*  176 */ "SPLIT",
  /*  177 */ "SYNCDB",
  /*  178 */ "NULL",
  /*  179 */ "NK_QUESTION",
  /*  180 */ "NK_ARROW",
  /*  181 */ "ROWTS",
  /*  182 */ "TBNAME",
  /*  183 */ "QSTARTTS",
  /*  184 */ "QENDTS",
  /*  185 */ "WSTARTTS",
  /*  186 */ "WENDTS",
  /*  187 */ "WDURATION",
  /*  188 */ "CAST",
  /*  189 */ "NOW",
  /*  190 */ "TODAY",
  /*  191 */ "TIMEZONE",
  /*  192 */ "COUNT",
  /*  193 */ "FIRST",
  /*  194 */ "LAST",
  /*  195 */ "LAST_ROW",
  /*  196 */ "BETWEEN",
  /*  197 */ "IS",
  /*  198 */ "NK_LT",
  /*  199 */ "NK_GT",
  /*  200 */ "NK_LE",
  /*  201 */ "NK_GE",
  /*  202 */ "NK_NE",
  /*  203 */ "MATCH",
  /*  204 */ "NMATCH",
  /*  205 */ "CONTAINS",
  /*  206 */ "JOIN",
  /*  207 */ "INNER",
  /*  208 */ "SELECT",
  /*  209 */ "DISTINCT",
  /*  210 */ "WHERE",
  /*  211 */ "PARTITION",
  /*  212 */ "BY",
  /*  213 */ "SESSION",
  /*  214 */ "STATE_WINDOW",
  /*  215 */ "SLIDING",
  /*  216 */ "FILL",
  /*  217 */ "VALUE",
  /*  218 */ "NONE",
  /*  219 */ "PREV",
  /*  220 */ "LINEAR",
  /*  221 */ "NEXT",
  /*  222 */ "GROUP",
  /*  223 */ "HAVING",
  /*  224 */ "ORDER",
  /*  225 */ "SLIMIT",
  /*  226 */ "SOFFSET",
  /*  227 */ "LIMIT",
  /*  228 */ "OFFSET",
  /*  229 */ "ASC",
  /*  230 */ "NULLS",
  /*  231 */ "ID",
  /*  232 */ "NK_BITNOT",
  /*  233 */ "INSERT",
  /*  234 */ "VALUES",
  /*  235 */ "IMPORT",
  /*  236 */ "NK_SEMI",
  /*  237 */ "FILE",
  /*  238 */ "cmd",
  /*  239 */ "account_options",
  /*  240 */ "alter_account_options",
  /*  241 */ "literal",
  /*  242 */ "alter_account_option",
  /*  243 */ "user_name",
  /*  244 */ "privileges",
  /*  245 */ "priv_level",
  /*  246 */ "priv_type_list",
  /*  247 */ "priv_type",
  /*  248 */ "db_name",
  /*  249 */ "dnode_endpoint",
  /*  250 */ "dnode_host_name",
  /*  251 */ "not_exists_opt",
  /*  252 */ "db_options",
  /*  253 */ "exists_opt",
  /*  254 */ "alter_db_options",
  /*  255 */ "integer_list",
  /*  256 */ "variable_list",
  /*  257 */ "retention_list",
  /*  258 */ "alter_db_option",
  /*  259 */ "retention",
  /*  260 */ "full_table_name",
  /*  261 */ "column_def_list",
  /*  262 */ "tags_def_opt",
  /*  263 */ "table_options",
  /*  264 */ "multi_create_clause",
  /*  265 */ "tags_def",
  /*  266 */ "multi_drop_clause",
  /*  267 */ "alter_table_clause",
  /*  268 */ "alter_table_options",
  /*  269 */ "column_name",
  /*  270 */ "type_name",
  /*  271 */ "create_subtable_clause",
  /*  272 */ "specific_tags_opt",
  /*  273 */ "literal_list",
  /*  274 */ "drop_table_clause",
  /*  275 */ "col_name_list",
  /*  276 */ "table_name",
  /*  277 */ "column_def",
  /*  278 */ "func_name_list",
  /*  279 */ "alter_table_option",
  /*  280 */ "col_name",
  /*  281 */ "db_name_cond_opt",
  /*  282 */ "like_pattern_opt",
  /*  283 */ "table_name_cond",
  /*  284 */ "from_db_opt",
  /*  285 */ "func_name",
  /*  286 */ "function_name",
  /*  287 */ "index_name",
  /*  288 */ "index_options",
  /*  289 */ "func_list",
  /*  290 */ "duration_literal",
  /*  291 */ "sliding_opt",
  /*  292 */ "func",
  /*  293 */ "expression_list",
  /*  294 */ "topic_name",
  /*  295 */ "topic_options",
  /*  296 */ "query_expression",
  /*  297 */ "analyze_opt",
  /*  298 */ "explain_options",
  /*  299 */ "agg_func_opt",
  /*  300 */ "bufsize_opt",
  /*  301 */ "stream_name",
  /*  302 */ "stream_options",
  /*  303 */ "into_opt",
  /*  304 */ "dnode_list",
  /*  305 */ "signed",
  /*  306 */ "signed_literal",
  /*  307 */ "literal_func",
  /*  308 */ "table_alias",
  /*  309 */ "column_alias",
  /*  310 */ "expression",
  /*  311 */ "pseudo_column",
  /*  312 */ "column_reference",
  /*  313 */ "function_expression",
  /*  314 */ "subquery",
  /*  315 */ "star_func",
  /*  316 */ "star_func_para_list",
  /*  317 */ "noarg_func",
  /*  318 */ "other_para_list",
  /*  319 */ "star_func_para",
  /*  320 */ "predicate",
  /*  321 */ "compare_op",
  /*  322 */ "in_op",
  /*  323 */ "in_predicate_value",
  /*  324 */ "boolean_value_expression",
  /*  325 */ "boolean_primary",
  /*  326 */ "common_expression",
  /*  327 */ "from_clause",
  /*  328 */ "table_reference_list",
  /*  329 */ "table_reference",
  /*  330 */ "table_primary",
  /*  331 */ "joined_table",
  /*  332 */ "alias_opt",
  /*  333 */ "parenthesized_joined_table",
  /*  334 */ "join_type",
  /*  335 */ "search_condition",
  /*  336 */ "query_specification",
  /*  337 */ "set_quantifier_opt",
  /*  338 */ "select_list",
  /*  339 */ "where_clause_opt",
  /*  340 */ "partition_by_clause_opt",
  /*  341 */ "twindow_clause_opt",
  /*  342 */ "group_by_clause_opt",
  /*  343 */ "having_clause_opt",
  /*  344 */ "select_sublist",
  /*  345 */ "select_item",
  /*  346 */ "fill_opt",
  /*  347 */ "fill_mode",
  /*  348 */ "group_by_list",
  /*  349 */ "query_expression_body",
  /*  350 */ "order_by_clause_opt",
  /*  351 */ "slimit_clause_opt",
  /*  352 */ "limit_clause_opt",
  /*  353 */ "query_primary",
  /*  354 */ "sort_specification_list",
  /*  355 */ "sort_specification",
  /*  356 */ "ordering_specification_opt",
  /*  357 */ "null_ordering_opt",
};
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */

#ifndef NDEBUG
/* For tracing reduce actions, the names of all rules are required.
*/
static const char *const yyRuleName[] = {
 /*   0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
 /*   1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
 /*   2 */ "account_options ::=",
 /*   3 */ "account_options ::= account_options PPS literal",
 /*   4 */ "account_options ::= account_options TSERIES literal",
 /*   5 */ "account_options ::= account_options STORAGE literal",
 /*   6 */ "account_options ::= account_options STREAMS literal",
 /*   7 */ "account_options ::= account_options QTIME literal",
 /*   8 */ "account_options ::= account_options DBS literal",
 /*   9 */ "account_options ::= account_options USERS literal",
 /*  10 */ "account_options ::= account_options CONNS literal",
 /*  11 */ "account_options ::= account_options STATE literal",
 /*  12 */ "alter_account_options ::= alter_account_option",
 /*  13 */ "alter_account_options ::= alter_account_options alter_account_option",
 /*  14 */ "alter_account_option ::= PASS literal",
 /*  15 */ "alter_account_option ::= PPS literal",
 /*  16 */ "alter_account_option ::= TSERIES literal",
 /*  17 */ "alter_account_option ::= STORAGE literal",
 /*  18 */ "alter_account_option ::= STREAMS literal",
 /*  19 */ "alter_account_option ::= QTIME literal",
 /*  20 */ "alter_account_option ::= DBS literal",
 /*  21 */ "alter_account_option ::= USERS literal",
 /*  22 */ "alter_account_option ::= CONNS literal",
 /*  23 */ "alter_account_option ::= STATE literal",
 /*  24 */ "cmd ::= CREATE USER user_name PASS NK_STRING",
 /*  25 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
 /*  26 */ "cmd ::= ALTER USER user_name PRIVILEGE NK_STRING",
 /*  27 */ "cmd ::= DROP USER user_name",
 /*  28 */ "cmd ::= GRANT privileges ON priv_level TO user_name",
 /*  29 */ "cmd ::= REVOKE privileges ON priv_level FROM user_name",
 /*  30 */ "privileges ::= ALL",
 /*  31 */ "privileges ::= priv_type_list",
 /*  32 */ "priv_type_list ::= priv_type",
 /*  33 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
 /*  34 */ "priv_type ::= READ",
 /*  35 */ "priv_type ::= WRITE",
 /*  36 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
 /*  37 */ "priv_level ::= db_name NK_DOT NK_STAR",
 /*  38 */ "cmd ::= CREATE DNODE dnode_endpoint",
 /*  39 */ "cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER",
 /*  40 */ "cmd ::= DROP DNODE NK_INTEGER",
 /*  41 */ "cmd ::= DROP DNODE dnode_endpoint",
 /*  42 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
 /*  43 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
 /*  44 */ "cmd ::= ALTER ALL DNODES NK_STRING",
 /*  45 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
 /*  46 */ "dnode_endpoint ::= NK_STRING",
 /*  47 */ "dnode_host_name ::= NK_ID",
 /*  48 */ "dnode_host_name ::= NK_IPTOKEN",
 /*  49 */ "cmd ::= ALTER LOCAL NK_STRING",
 /*  50 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
 /*  51 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
 /*  52 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
 /*  53 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
 /*  54 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
 /*  55 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
 /*  56 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
 /*  57 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
 /*  58 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
 /*  59 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
 /*  60 */ "cmd ::= DROP DATABASE exists_opt db_name",
 /*  61 */ "cmd ::= USE db_name",
 /*  62 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
 /*  63 */ "not_exists_opt ::= IF NOT EXISTS",
 /*  64 */ "not_exists_opt ::=",
 /*  65 */ "exists_opt ::= IF EXISTS",
 /*  66 */ "exists_opt ::=",
 /*  67 */ "db_options ::=",
 /*  68 */ "db_options ::= db_options BUFFER NK_INTEGER",
 /*  69 */ "db_options ::= db_options CACHELAST NK_INTEGER",
 /*  70 */ "db_options ::= db_options COMP NK_INTEGER",
 /*  71 */ "db_options ::= db_options DAYS NK_INTEGER",
 /*  72 */ "db_options ::= db_options DAYS NK_VARIABLE",
 /*  73 */ "db_options ::= db_options FSYNC NK_INTEGER",
 /*  74 */ "db_options ::= db_options MAXROWS NK_INTEGER",
 /*  75 */ "db_options ::= db_options MINROWS NK_INTEGER",
 /*  76 */ "db_options ::= db_options KEEP integer_list",
 /*  77 */ "db_options ::= db_options KEEP variable_list",
 /*  78 */ "db_options ::= db_options PAGES NK_INTEGER",
 /*  79 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
 /*  80 */ "db_options ::= db_options PRECISION NK_STRING",
 /*  81 */ "db_options ::= db_options REPLICA NK_INTEGER",
 /*  82 */ "db_options ::= db_options STRICT NK_INTEGER",
 /*  83 */ "db_options ::= db_options WAL NK_INTEGER",
 /*  84 */ "db_options ::= db_options VGROUPS NK_INTEGER",
 /*  85 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
 /*  86 */ "db_options ::= db_options RETENTIONS retention_list",
 /*  87 */ "alter_db_options ::= alter_db_option",
 /*  88 */ "alter_db_options ::= alter_db_options alter_db_option",
 /*  89 */ "alter_db_option ::= BUFFER NK_INTEGER",
 /*  90 */ "alter_db_option ::= CACHELAST NK_INTEGER",
 /*  91 */ "alter_db_option ::= FSYNC NK_INTEGER",
 /*  92 */ "alter_db_option ::= KEEP integer_list",
 /*  93 */ "alter_db_option ::= KEEP variable_list",
 /*  94 */ "alter_db_option ::= PAGES NK_INTEGER",
 /*  95 */ "alter_db_option ::= REPLICA NK_INTEGER",
 /*  96 */ "alter_db_option ::= STRICT NK_INTEGER",
 /*  97 */ "alter_db_option ::= WAL NK_INTEGER",
 /*  98 */ "integer_list ::= NK_INTEGER",
 /*  99 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
 /* 100 */ "variable_list ::= NK_VARIABLE",
 /* 101 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
 /* 102 */ "retention_list ::= retention",
 /* 103 */ "retention_list ::= retention_list NK_COMMA retention",
 /* 104 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
 /* 105 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
 /* 106 */ "cmd ::= CREATE TABLE multi_create_clause",
 /* 107 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
 /* 108 */ "cmd ::= DROP TABLE multi_drop_clause",
 /* 109 */ "cmd ::= DROP STABLE exists_opt full_table_name",
 /* 110 */ "cmd ::= ALTER TABLE alter_table_clause",
 /* 111 */ "cmd ::= ALTER STABLE alter_table_clause",
 /* 112 */ "alter_table_clause ::= full_table_name alter_table_options",
 /* 113 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
 /* 114 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
 /* 115 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
 /* 116 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
 /* 117 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
 /* 118 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
 /* 119 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
 /* 120 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
 /* 121 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal",
 /* 122 */ "multi_create_clause ::= create_subtable_clause",
 /* 123 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
 /* 124 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options",
 /* 125 */ "multi_drop_clause ::= drop_table_clause",
 /* 126 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause",
 /* 127 */ "drop_table_clause ::= exists_opt full_table_name",
 /* 128 */ "specific_tags_opt ::=",
 /* 129 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP",
 /* 130 */ "full_table_name ::= table_name",
 /* 131 */ "full_table_name ::= db_name NK_DOT table_name",
 /* 132 */ "column_def_list ::= column_def",
 /* 133 */ "column_def_list ::= column_def_list NK_COMMA column_def",
 /* 134 */ "column_def ::= column_name type_name",
 /* 135 */ "column_def ::= column_name type_name COMMENT NK_STRING",
 /* 136 */ "type_name ::= BOOL",
 /* 137 */ "type_name ::= TINYINT",
 /* 138 */ "type_name ::= SMALLINT",
 /* 139 */ "type_name ::= INT",
 /* 140 */ "type_name ::= INTEGER",
 /* 141 */ "type_name ::= BIGINT",
 /* 142 */ "type_name ::= FLOAT",
 /* 143 */ "type_name ::= DOUBLE",
 /* 144 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
 /* 145 */ "type_name ::= TIMESTAMP",
 /* 146 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
 /* 147 */ "type_name ::= TINYINT UNSIGNED",
 /* 148 */ "type_name ::= SMALLINT UNSIGNED",
 /* 149 */ "type_name ::= INT UNSIGNED",
 /* 150 */ "type_name ::= BIGINT UNSIGNED",
 /* 151 */ "type_name ::= JSON",
 /* 152 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
 /* 153 */ "type_name ::= MEDIUMBLOB",
 /* 154 */ "type_name ::= BLOB",
 /* 155 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
 /* 156 */ "type_name ::= DECIMAL",
 /* 157 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
 /* 158 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
 /* 159 */ "tags_def_opt ::=",
 /* 160 */ "tags_def_opt ::= tags_def",
 /* 161 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
 /* 162 */ "table_options ::=",
 /* 163 */ "table_options ::= table_options COMMENT NK_STRING",
 /* 164 */ "table_options ::= table_options DELAY NK_INTEGER",
 /* 165 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT",
 /* 166 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP",
 /* 167 */ "table_options ::= table_options TTL NK_INTEGER",
 /* 168 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
 /* 169 */ "alter_table_options ::= alter_table_option",
 /* 170 */ "alter_table_options ::= alter_table_options alter_table_option",
 /* 171 */ "alter_table_option ::= COMMENT NK_STRING",
 /* 172 */ "alter_table_option ::= TTL NK_INTEGER",
 /* 173 */ "col_name_list ::= col_name",
 /* 174 */ "col_name_list ::= col_name_list NK_COMMA col_name",
 /* 175 */ "col_name ::= column_name",
 /* 176 */ "cmd ::= SHOW DNODES",
 /* 177 */ "cmd ::= SHOW USERS",
 /* 178 */ "cmd ::= SHOW DATABASES",
 /* 179 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt",
 /* 180 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
 /* 181 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
 /* 182 */ "cmd ::= SHOW MNODES",
 /* 183 */ "cmd ::= SHOW MODULES",
 /* 184 */ "cmd ::= SHOW QNODES",
 /* 185 */ "cmd ::= SHOW FUNCTIONS",
 /* 186 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
 /* 187 */ "cmd ::= SHOW STREAMS",
 /* 188 */ "cmd ::= SHOW ACCOUNTS",
 /* 189 */ "cmd ::= SHOW APPS",
 /* 190 */ "cmd ::= SHOW CONNECTIONS",
 /* 191 */ "cmd ::= SHOW LICENCE",
 /* 192 */ "cmd ::= SHOW GRANTS",
 /* 193 */ "cmd ::= SHOW CREATE DATABASE db_name",
 /* 194 */ "cmd ::= SHOW CREATE TABLE full_table_name",
 /* 195 */ "cmd ::= SHOW CREATE STABLE full_table_name",
 /* 196 */ "cmd ::= SHOW QUERIES",
 /* 197 */ "cmd ::= SHOW SCORES",
 /* 198 */ "cmd ::= SHOW TOPICS",
 /* 199 */ "cmd ::= SHOW VARIABLES",
 /* 200 */ "cmd ::= SHOW BNODES",
 /* 201 */ "cmd ::= SHOW SNODES",
 /* 202 */ "cmd ::= SHOW CLUSTER",
 /* 203 */ "cmd ::= SHOW TRANSACTIONS",
 /* 204 */ "db_name_cond_opt ::=",
 /* 205 */ "db_name_cond_opt ::= db_name NK_DOT",
 /* 206 */ "like_pattern_opt ::=",
 /* 207 */ "like_pattern_opt ::= LIKE NK_STRING",
 /* 208 */ "table_name_cond ::= table_name",
 /* 209 */ "from_db_opt ::=",
 /* 210 */ "from_db_opt ::= FROM db_name",
 /* 211 */ "func_name_list ::= func_name",
 /* 212 */ "func_name_list ::= func_name_list NK_COMMA func_name",
 /* 213 */ "func_name ::= function_name",
 /* 214 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options",
 /* 215 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP",
 /* 216 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name",
 /* 217 */ "index_options ::=",
 /* 218 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt",
 /* 219 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt",
 /* 220 */ "func_list ::= func",
 /* 221 */ "func_list ::= func_list NK_COMMA func",
 /* 222 */ "func ::= function_name NK_LP expression_list NK_RP",
 /* 223 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression",
 /* 224 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name",
 /* 225 */ "cmd ::= DROP TOPIC exists_opt topic_name",
 /* 226 */ "topic_options ::=",
 /* 227 */ "topic_options ::= topic_options WITH TABLE",
 /* 228 */ "topic_options ::= topic_options WITH SCHEMA",
 /* 229 */ "topic_options ::= topic_options WITH TAG",
 /* 230 */ "cmd ::= DESC full_table_name",
 /* 231 */ "cmd ::= DESCRIBE full_table_name",
 /* 232 */ "cmd ::= RESET QUERY CACHE",
 /* 233 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression",
 /* 234 */ "analyze_opt ::=",
 /* 235 */ "analyze_opt ::= ANALYZE",
 /* 236 */ "explain_options ::=",
 /* 237 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
 /* 238 */ "explain_options ::= explain_options RATIO NK_FLOAT",
 /* 239 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP",
 /* 240 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt",
 /* 241 */ "cmd ::= DROP FUNCTION exists_opt function_name",
 /* 242 */ "agg_func_opt ::=",
 /* 243 */ "agg_func_opt ::= AGGREGATE",
 /* 244 */ "bufsize_opt ::=",
 /* 245 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
 /* 246 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression",
 /* 247 */ "cmd ::= DROP STREAM exists_opt stream_name",
 /* 248 */ "into_opt ::=",
 /* 249 */ "into_opt ::= INTO full_table_name",
 /* 250 */ "stream_options ::=",
 /* 251 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
 /* 252 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
 /* 253 */ "stream_options ::= stream_options WATERMARK duration_literal",
 /* 254 */ "cmd ::= KILL CONNECTION NK_INTEGER",
 /* 255 */ "cmd ::= KILL QUERY NK_INTEGER",
 /* 256 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
 /* 257 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
 /* 258 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
 /* 259 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
 /* 260 */ "dnode_list ::= DNODE NK_INTEGER",
 /* 261 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
 /* 262 */ "cmd ::= SYNCDB db_name REPLICA",
 /* 263 */ "cmd ::= query_expression",
 /* 264 */ "literal ::= NK_INTEGER",
 /* 265 */ "literal ::= NK_FLOAT",
 /* 266 */ "literal ::= NK_STRING",
 /* 267 */ "literal ::= NK_BOOL",
 /* 268 */ "literal ::= TIMESTAMP NK_STRING",
 /* 269 */ "literal ::= duration_literal",
 /* 270 */ "literal ::= NULL",
 /* 271 */ "literal ::= NK_QUESTION",
 /* 272 */ "duration_literal ::= NK_VARIABLE",
 /* 273 */ "signed ::= NK_INTEGER",
 /* 274 */ "signed ::= NK_PLUS NK_INTEGER",
 /* 275 */ "signed ::= NK_MINUS NK_INTEGER",
 /* 276 */ "signed ::= NK_FLOAT",
 /* 277 */ "signed ::= NK_PLUS NK_FLOAT",
 /* 278 */ "signed ::= NK_MINUS NK_FLOAT",
 /* 279 */ "signed_literal ::= signed",
 /* 280 */ "signed_literal ::= NK_STRING",
 /* 281 */ "signed_literal ::= NK_BOOL",
 /* 282 */ "signed_literal ::= TIMESTAMP NK_STRING",
 /* 283 */ "signed_literal ::= duration_literal",
 /* 284 */ "signed_literal ::= NULL",
 /* 285 */ "signed_literal ::= literal_func",
 /* 286 */ "literal_list ::= signed_literal",
 /* 287 */ "literal_list ::= literal_list NK_COMMA signed_literal",
 /* 288 */ "db_name ::= NK_ID",
 /* 289 */ "table_name ::= NK_ID",
 /* 290 */ "column_name ::= NK_ID",
 /* 291 */ "function_name ::= NK_ID",
 /* 292 */ "table_alias ::= NK_ID",
 /* 293 */ "column_alias ::= NK_ID",
 /* 294 */ "user_name ::= NK_ID",
 /* 295 */ "index_name ::= NK_ID",
 /* 296 */ "topic_name ::= NK_ID",
 /* 297 */ "stream_name ::= NK_ID",
 /* 298 */ "expression ::= literal",
 /* 299 */ "expression ::= pseudo_column",
 /* 300 */ "expression ::= column_reference",
 /* 301 */ "expression ::= function_expression",
 /* 302 */ "expression ::= subquery",
 /* 303 */ "expression ::= NK_LP expression NK_RP",
 /* 304 */ "expression ::= NK_PLUS expression",
 /* 305 */ "expression ::= NK_MINUS expression",
 /* 306 */ "expression ::= expression NK_PLUS expression",
 /* 307 */ "expression ::= expression NK_MINUS expression",
 /* 308 */ "expression ::= expression NK_STAR expression",
 /* 309 */ "expression ::= expression NK_SLASH expression",
 /* 310 */ "expression ::= expression NK_REM expression",
 /* 311 */ "expression ::= column_reference NK_ARROW NK_STRING",
 /* 312 */ "expression_list ::= expression",
 /* 313 */ "expression_list ::= expression_list NK_COMMA expression",
 /* 314 */ "column_reference ::= column_name",
 /* 315 */ "column_reference ::= table_name NK_DOT column_name",
 /* 316 */ "pseudo_column ::= ROWTS",
 /* 317 */ "pseudo_column ::= TBNAME",
 /* 318 */ "pseudo_column ::= QSTARTTS",
 /* 319 */ "pseudo_column ::= QENDTS",
 /* 320 */ "pseudo_column ::= WSTARTTS",
 /* 321 */ "pseudo_column ::= WENDTS",
 /* 322 */ "pseudo_column ::= WDURATION",
 /* 323 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
 /* 324 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
 /* 325 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP",
 /* 326 */ "function_expression ::= literal_func",
 /* 327 */ "literal_func ::= noarg_func NK_LP NK_RP",
 /* 328 */ "literal_func ::= NOW",
 /* 329 */ "noarg_func ::= NOW",
 /* 330 */ "noarg_func ::= TODAY",
 /* 331 */ "noarg_func ::= TIMEZONE",
 /* 332 */ "star_func ::= COUNT",
 /* 333 */ "star_func ::= FIRST",
 /* 334 */ "star_func ::= LAST",
 /* 335 */ "star_func ::= LAST_ROW",
 /* 336 */ "star_func_para_list ::= NK_STAR",
 /* 337 */ "star_func_para_list ::= other_para_list",
 /* 338 */ "other_para_list ::= star_func_para",
 /* 339 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
 /* 340 */ "star_func_para ::= expression",
 /* 341 */ "star_func_para ::= table_name NK_DOT NK_STAR",
 /* 342 */ "predicate ::= expression compare_op expression",
 /* 343 */ "predicate ::= expression BETWEEN expression AND expression",
 /* 344 */ "predicate ::= expression NOT BETWEEN expression AND expression",
 /* 345 */ "predicate ::= expression IS NULL",
 /* 346 */ "predicate ::= expression IS NOT NULL",
 /* 347 */ "predicate ::= expression in_op in_predicate_value",
 /* 348 */ "compare_op ::= NK_LT",
 /* 349 */ "compare_op ::= NK_GT",
 /* 350 */ "compare_op ::= NK_LE",
 /* 351 */ "compare_op ::= NK_GE",
 /* 352 */ "compare_op ::= NK_NE",
 /* 353 */ "compare_op ::= NK_EQ",
 /* 354 */ "compare_op ::= LIKE",
 /* 355 */ "compare_op ::= NOT LIKE",
 /* 356 */ "compare_op ::= MATCH",
 /* 357 */ "compare_op ::= NMATCH",
 /* 358 */ "compare_op ::= CONTAINS",
 /* 359 */ "in_op ::= IN",
 /* 360 */ "in_op ::= NOT IN",
 /* 361 */ "in_predicate_value ::= NK_LP expression_list NK_RP",
 /* 362 */ "boolean_value_expression ::= boolean_primary",
 /* 363 */ "boolean_value_expression ::= NOT boolean_primary",
 /* 364 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
 /* 365 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
 /* 366 */ "boolean_primary ::= predicate",
 /* 367 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
 /* 368 */ "common_expression ::= expression",
 /* 369 */ "common_expression ::= boolean_value_expression",
 /* 370 */ "from_clause ::= FROM table_reference_list",
 /* 371 */ "table_reference_list ::= table_reference",
 /* 372 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
 /* 373 */ "table_reference ::= table_primary",
 /* 374 */ "table_reference ::= joined_table",
 /* 375 */ "table_primary ::= table_name alias_opt",
 /* 376 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
 /* 377 */ "table_primary ::= subquery alias_opt",
 /* 378 */ "table_primary ::= parenthesized_joined_table",
 /* 379 */ "alias_opt ::=",
 /* 380 */ "alias_opt ::= table_alias",
 /* 381 */ "alias_opt ::= AS table_alias",
 /* 382 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
 /* 383 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
 /* 384 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
 /* 385 */ "join_type ::=",
 /* 386 */ "join_type ::= INNER",
 /* 387 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
 /* 388 */ "set_quantifier_opt ::=",
 /* 389 */ "set_quantifier_opt ::= DISTINCT",
 /* 390 */ "set_quantifier_opt ::= ALL",
 /* 391 */ "select_list ::= NK_STAR",
 /* 392 */ "select_list ::= select_sublist",
 /* 393 */ "select_sublist ::= select_item",
 /* 394 */ "select_sublist ::= select_sublist NK_COMMA select_item",
 /* 395 */ "select_item ::= common_expression",
 /* 396 */ "select_item ::= common_expression column_alias",
 /* 397 */ "select_item ::= common_expression AS column_alias",
 /* 398 */ "select_item ::= table_name NK_DOT NK_STAR",
 /* 399 */ "where_clause_opt ::=",
 /* 400 */ "where_clause_opt ::= WHERE search_condition",
 /* 401 */ "partition_by_clause_opt ::=",
 /* 402 */ "partition_by_clause_opt ::= PARTITION BY expression_list",
 /* 403 */ "twindow_clause_opt ::=",
 /* 404 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
 /* 405 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP",
 /* 406 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
 /* 407 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
 /* 408 */ "sliding_opt ::=",
 /* 409 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
 /* 410 */ "fill_opt ::=",
 /* 411 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
 /* 412 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP",
 /* 413 */ "fill_mode ::= NONE",
 /* 414 */ "fill_mode ::= PREV",
 /* 415 */ "fill_mode ::= NULL",
 /* 416 */ "fill_mode ::= LINEAR",
 /* 417 */ "fill_mode ::= NEXT",
 /* 418 */ "group_by_clause_opt ::=",
 /* 419 */ "group_by_clause_opt ::= GROUP BY group_by_list",
 /* 420 */ "group_by_list ::= expression",
 /* 421 */ "group_by_list ::= group_by_list NK_COMMA expression",
 /* 422 */ "having_clause_opt ::=",
 /* 423 */ "having_clause_opt ::= HAVING search_condition",
 /* 424 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt",
 /* 425 */ "query_expression_body ::= query_primary",
 /* 426 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body",
 /* 427 */ "query_expression_body ::= query_expression_body UNION query_expression_body",
 /* 428 */ "query_primary ::= query_specification",
 /* 429 */ "order_by_clause_opt ::=",
 /* 430 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
 /* 431 */ "slimit_clause_opt ::=",
 /* 432 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
 /* 433 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
 /* 434 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
 /* 435 */ "limit_clause_opt ::=",
 /* 436 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
 /* 437 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
 /* 438 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
 /* 439 */ "subquery ::= NK_LP query_expression NK_RP",
 /* 440 */ "search_condition ::= common_expression",
 /* 441 */ "sort_specification_list ::= sort_specification",
 /* 442 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
 /* 443 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt",
 /* 444 */ "ordering_specification_opt ::=",
 /* 445 */ "ordering_specification_opt ::= ASC",
 /* 446 */ "ordering_specification_opt ::= DESC",
 /* 447 */ "null_ordering_opt ::=",
 /* 448 */ "null_ordering_opt ::= NULLS FIRST",
 /* 449 */ "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 238: /* cmd */
    case 241: /* literal */
    case 252: /* db_options */
    case 254: /* alter_db_options */
    case 259: /* retention */
    case 260: /* full_table_name */
    case 263: /* table_options */
    case 267: /* alter_table_clause */
    case 268: /* alter_table_options */
    case 271: /* create_subtable_clause */
    case 274: /* drop_table_clause */
    case 277: /* column_def */
    case 280: /* col_name */
    case 281: /* db_name_cond_opt */
    case 282: /* like_pattern_opt */
    case 283: /* table_name_cond */
    case 284: /* from_db_opt */
    case 285: /* func_name */
    case 288: /* index_options */
    case 290: /* duration_literal */
    case 291: /* sliding_opt */
    case 292: /* func */
    case 295: /* topic_options */
    case 296: /* query_expression */
    case 298: /* explain_options */
    case 302: /* stream_options */
    case 303: /* into_opt */
    case 305: /* signed */
    case 306: /* signed_literal */
    case 307: /* literal_func */
    case 310: /* expression */
    case 311: /* pseudo_column */
    case 312: /* column_reference */
    case 313: /* function_expression */
    case 314: /* subquery */
    case 319: /* star_func_para */
    case 320: /* predicate */
    case 323: /* in_predicate_value */
    case 324: /* boolean_value_expression */
    case 325: /* boolean_primary */
    case 326: /* common_expression */
    case 327: /* from_clause */
    case 328: /* table_reference_list */
    case 329: /* table_reference */
    case 330: /* table_primary */
    case 331: /* joined_table */
    case 333: /* parenthesized_joined_table */
    case 335: /* search_condition */
    case 336: /* query_specification */
    case 339: /* where_clause_opt */
    case 341: /* twindow_clause_opt */
    case 343: /* having_clause_opt */
    case 345: /* select_item */
    case 346: /* fill_opt */
    case 349: /* query_expression_body */
    case 351: /* slimit_clause_opt */
    case 352: /* limit_clause_opt */
    case 353: /* query_primary */
    case 355: /* sort_specification */
{
 nodesDestroyNode((yypminor->yy172)); 
}
      break;
    case 239: /* account_options */
    case 240: /* alter_account_options */
    case 242: /* alter_account_option */
    case 300: /* bufsize_opt */
{
 
}
      break;
    case 243: /* user_name */
    case 245: /* priv_level */
    case 248: /* db_name */
    case 249: /* dnode_endpoint */
    case 250: /* dnode_host_name */
    case 269: /* column_name */
    case 276: /* table_name */
    case 286: /* function_name */
    case 287: /* index_name */
    case 294: /* topic_name */
    case 301: /* stream_name */
    case 308: /* table_alias */
    case 309: /* column_alias */
    case 315: /* star_func */
    case 317: /* noarg_func */
    case 332: /* alias_opt */
{
 
}
      break;
    case 244: /* privileges */
    case 246: /* priv_type_list */
    case 247: /* priv_type */
{
 
}
      break;
    case 251: /* not_exists_opt */
    case 253: /* exists_opt */
    case 297: /* analyze_opt */
    case 299: /* agg_func_opt */
    case 337: /* set_quantifier_opt */
{
 
}
      break;
    case 255: /* integer_list */
    case 256: /* variable_list */
    case 257: /* retention_list */
    case 261: /* column_def_list */
    case 262: /* tags_def_opt */
    case 264: /* multi_create_clause */
    case 265: /* tags_def */
    case 266: /* multi_drop_clause */
    case 272: /* specific_tags_opt */
    case 273: /* literal_list */
    case 275: /* col_name_list */
    case 278: /* func_name_list */
    case 289: /* func_list */
    case 293: /* expression_list */
    case 304: /* dnode_list */
    case 316: /* star_func_para_list */
    case 318: /* other_para_list */
    case 338: /* select_list */
    case 340: /* partition_by_clause_opt */
    case 342: /* group_by_clause_opt */
    case 344: /* select_sublist */
    case 348: /* group_by_list */
    case 350: /* order_by_clause_opt */
    case 354: /* sort_specification_list */
{
 nodesDestroyList((yypminor->yy60)); 
}
      break;
    case 258: /* alter_db_option */
    case 279: /* alter_table_option */
{
 
}
      break;
    case 270: /* type_name */
{
 
}
      break;
    case 321: /* compare_op */
    case 322: /* in_op */
{
 
}
      break;
    case 334: /* join_type */
{
 
}
      break;
    case 347: /* fill_mode */
{
 
}
      break;
    case 356: /* ordering_specification_opt */
{
 
}
      break;
    case 357: /* 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+YYNTOKEN<=(int)YY_NLOOKAHEAD ); */
    assert( iLookAhead!=YYNOCODE );
    assert( iLookAhead < YYNTOKEN );
    i += iLookAhead;
    if( i>=YY_NLOOKAHEAD || yy_lookahead[i]!=iLookAhead ){
#ifdef YYFALLBACK
      YYCODETYPE iFallback;            /* Fallback token */
      if( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0])
             && (iFallback = yyFallback[iLookAhead])!=0 ){
#ifndef NDEBUG
        if( yyTraceFILE ){
          fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
             yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
        }
#endif
        assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
        iLookAhead = iFallback;
        continue;
      }
#endif
#ifdef YYWILDCARD
      {
        int j = i - iLookAhead + YYWILDCARD;
        if( 
#if YY_SHIFT_MIN+YYWILDCARD<0
          j>=0 &&
#endif
#if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT
          j<YY_ACTTAB_COUNT &&
#endif
          j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) &&
          yy_lookahead[j]==YYWILDCARD && iLookAhead>0
        ){
#ifndef NDEBUG
          if( yyTraceFILE ){
            fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
               yyTracePrompt, yyTokenName[iLookAhead],
               yyTokenName[YYWILDCARD]);
          }
#endif /* NDEBUG */
          return yy_action[j];
        }
      }
#endif /* YYWILDCARD */
      return yy_default[stateno];
    }else{
      return yy_action[i];
    }
  }while(1);
}

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

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

/* The following table contains information about every rule that
** is used during the reduce.
*/
static const struct {
  YYCODETYPE lhs;       /* Symbol on the left-hand side of the rule */
  signed char nrhs;     /* Negative of the number of RHS symbols in the rule */
} yyRuleInfo[] = {
  {  238,   -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
  {  238,   -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
  {  239,    0 }, /* (2) account_options ::= */
  {  239,   -3 }, /* (3) account_options ::= account_options PPS literal */
  {  239,   -3 }, /* (4) account_options ::= account_options TSERIES literal */
  {  239,   -3 }, /* (5) account_options ::= account_options STORAGE literal */
  {  239,   -3 }, /* (6) account_options ::= account_options STREAMS literal */
  {  239,   -3 }, /* (7) account_options ::= account_options QTIME literal */
  {  239,   -3 }, /* (8) account_options ::= account_options DBS literal */
  {  239,   -3 }, /* (9) account_options ::= account_options USERS literal */
  {  239,   -3 }, /* (10) account_options ::= account_options CONNS literal */
  {  239,   -3 }, /* (11) account_options ::= account_options STATE literal */
  {  240,   -1 }, /* (12) alter_account_options ::= alter_account_option */
  {  240,   -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */
  {  242,   -2 }, /* (14) alter_account_option ::= PASS literal */
  {  242,   -2 }, /* (15) alter_account_option ::= PPS literal */
  {  242,   -2 }, /* (16) alter_account_option ::= TSERIES literal */
  {  242,   -2 }, /* (17) alter_account_option ::= STORAGE literal */
  {  242,   -2 }, /* (18) alter_account_option ::= STREAMS literal */
  {  242,   -2 }, /* (19) alter_account_option ::= QTIME literal */
  {  242,   -2 }, /* (20) alter_account_option ::= DBS literal */
  {  242,   -2 }, /* (21) alter_account_option ::= USERS literal */
  {  242,   -2 }, /* (22) alter_account_option ::= CONNS literal */
  {  242,   -2 }, /* (23) alter_account_option ::= STATE literal */
  {  238,   -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */
  {  238,   -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
  {  238,   -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */
  {  238,   -3 }, /* (27) cmd ::= DROP USER user_name */
  {  238,   -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */
  {  238,   -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */
  {  244,   -1 }, /* (30) privileges ::= ALL */
  {  244,   -1 }, /* (31) privileges ::= priv_type_list */
  {  246,   -1 }, /* (32) priv_type_list ::= priv_type */
  {  246,   -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */
  {  247,   -1 }, /* (34) priv_type ::= READ */
  {  247,   -1 }, /* (35) priv_type ::= WRITE */
  {  245,   -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */
  {  245,   -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */
  {  238,   -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */
  {  238,   -5 }, /* (39) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */
  {  238,   -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */
  {  238,   -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */
  {  238,   -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
  {  238,   -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
  {  238,   -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */
  {  238,   -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
  {  249,   -1 }, /* (46) dnode_endpoint ::= NK_STRING */
  {  250,   -1 }, /* (47) dnode_host_name ::= NK_ID */
  {  250,   -1 }, /* (48) dnode_host_name ::= NK_IPTOKEN */
  {  238,   -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */
  {  238,   -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
  {  238,   -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
  {  238,   -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
  {  238,   -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
  {  238,   -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
  {  238,   -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
  {  238,   -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
  {  238,   -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
  {  238,   -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
  {  238,   -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
  {  238,   -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */
  {  238,   -2 }, /* (61) cmd ::= USE db_name */
  {  238,   -4 }, /* (62) cmd ::= ALTER DATABASE db_name alter_db_options */
  {  251,   -3 }, /* (63) not_exists_opt ::= IF NOT EXISTS */
  {  251,    0 }, /* (64) not_exists_opt ::= */
  {  253,   -2 }, /* (65) exists_opt ::= IF EXISTS */
  {  253,    0 }, /* (66) exists_opt ::= */
  {  252,    0 }, /* (67) db_options ::= */
  {  252,   -3 }, /* (68) db_options ::= db_options BUFFER NK_INTEGER */
  {  252,   -3 }, /* (69) db_options ::= db_options CACHELAST NK_INTEGER */
  {  252,   -3 }, /* (70) db_options ::= db_options COMP NK_INTEGER */
  {  252,   -3 }, /* (71) db_options ::= db_options DAYS NK_INTEGER */
  {  252,   -3 }, /* (72) db_options ::= db_options DAYS NK_VARIABLE */
  {  252,   -3 }, /* (73) db_options ::= db_options FSYNC NK_INTEGER */
  {  252,   -3 }, /* (74) db_options ::= db_options MAXROWS NK_INTEGER */
  {  252,   -3 }, /* (75) db_options ::= db_options MINROWS NK_INTEGER */
  {  252,   -3 }, /* (76) db_options ::= db_options KEEP integer_list */
  {  252,   -3 }, /* (77) db_options ::= db_options KEEP variable_list */
  {  252,   -3 }, /* (78) db_options ::= db_options PAGES NK_INTEGER */
  {  252,   -3 }, /* (79) db_options ::= db_options PAGESIZE NK_INTEGER */
  {  252,   -3 }, /* (80) db_options ::= db_options PRECISION NK_STRING */
  {  252,   -3 }, /* (81) db_options ::= db_options REPLICA NK_INTEGER */
  {  252,   -3 }, /* (82) db_options ::= db_options STRICT NK_INTEGER */
  {  252,   -3 }, /* (83) db_options ::= db_options WAL NK_INTEGER */
  {  252,   -3 }, /* (84) db_options ::= db_options VGROUPS NK_INTEGER */
  {  252,   -3 }, /* (85) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
  {  252,   -3 }, /* (86) db_options ::= db_options RETENTIONS retention_list */
  {  254,   -1 }, /* (87) alter_db_options ::= alter_db_option */
  {  254,   -2 }, /* (88) alter_db_options ::= alter_db_options alter_db_option */
  {  258,   -2 }, /* (89) alter_db_option ::= BUFFER NK_INTEGER */
  {  258,   -2 }, /* (90) alter_db_option ::= CACHELAST NK_INTEGER */
  {  258,   -2 }, /* (91) alter_db_option ::= FSYNC NK_INTEGER */
  {  258,   -2 }, /* (92) alter_db_option ::= KEEP integer_list */
  {  258,   -2 }, /* (93) alter_db_option ::= KEEP variable_list */
  {  258,   -2 }, /* (94) alter_db_option ::= PAGES NK_INTEGER */
  {  258,   -2 }, /* (95) alter_db_option ::= REPLICA NK_INTEGER */
  {  258,   -2 }, /* (96) alter_db_option ::= STRICT NK_INTEGER */
  {  258,   -2 }, /* (97) alter_db_option ::= WAL NK_INTEGER */
  {  255,   -1 }, /* (98) integer_list ::= NK_INTEGER */
  {  255,   -3 }, /* (99) integer_list ::= integer_list NK_COMMA NK_INTEGER */
  {  256,   -1 }, /* (100) variable_list ::= NK_VARIABLE */
  {  256,   -3 }, /* (101) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
  {  257,   -1 }, /* (102) retention_list ::= retention */
  {  257,   -3 }, /* (103) retention_list ::= retention_list NK_COMMA retention */
  {  259,   -3 }, /* (104) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
  {  238,   -9 }, /* (105) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
  {  238,   -3 }, /* (106) cmd ::= CREATE TABLE multi_create_clause */
  {  238,   -9 }, /* (107) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
  {  238,   -3 }, /* (108) cmd ::= DROP TABLE multi_drop_clause */
  {  238,   -4 }, /* (109) cmd ::= DROP STABLE exists_opt full_table_name */
  {  238,   -3 }, /* (110) cmd ::= ALTER TABLE alter_table_clause */
  {  238,   -3 }, /* (111) cmd ::= ALTER STABLE alter_table_clause */
  {  267,   -2 }, /* (112) alter_table_clause ::= full_table_name alter_table_options */
  {  267,   -5 }, /* (113) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
  {  267,   -4 }, /* (114) alter_table_clause ::= full_table_name DROP COLUMN column_name */
  {  267,   -5 }, /* (115) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
  {  267,   -5 }, /* (116) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
  {  267,   -5 }, /* (117) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
  {  267,   -4 }, /* (118) alter_table_clause ::= full_table_name DROP TAG column_name */
  {  267,   -5 }, /* (119) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
  {  267,   -5 }, /* (120) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
  {  267,   -6 }, /* (121) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */
  {  264,   -1 }, /* (122) multi_create_clause ::= create_subtable_clause */
  {  264,   -2 }, /* (123) multi_create_clause ::= multi_create_clause create_subtable_clause */
  {  271,  -10 }, /* (124) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */
  {  266,   -1 }, /* (125) multi_drop_clause ::= drop_table_clause */
  {  266,   -2 }, /* (126) multi_drop_clause ::= multi_drop_clause drop_table_clause */
  {  274,   -2 }, /* (127) drop_table_clause ::= exists_opt full_table_name */
  {  272,    0 }, /* (128) specific_tags_opt ::= */
  {  272,   -3 }, /* (129) specific_tags_opt ::= NK_LP col_name_list NK_RP */
  {  260,   -1 }, /* (130) full_table_name ::= table_name */
  {  260,   -3 }, /* (131) full_table_name ::= db_name NK_DOT table_name */
  {  261,   -1 }, /* (132) column_def_list ::= column_def */
  {  261,   -3 }, /* (133) column_def_list ::= column_def_list NK_COMMA column_def */
  {  277,   -2 }, /* (134) column_def ::= column_name type_name */
  {  277,   -4 }, /* (135) column_def ::= column_name type_name COMMENT NK_STRING */
  {  270,   -1 }, /* (136) type_name ::= BOOL */
  {  270,   -1 }, /* (137) type_name ::= TINYINT */
  {  270,   -1 }, /* (138) type_name ::= SMALLINT */
  {  270,   -1 }, /* (139) type_name ::= INT */
  {  270,   -1 }, /* (140) type_name ::= INTEGER */
  {  270,   -1 }, /* (141) type_name ::= BIGINT */
  {  270,   -1 }, /* (142) type_name ::= FLOAT */
  {  270,   -1 }, /* (143) type_name ::= DOUBLE */
  {  270,   -4 }, /* (144) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
  {  270,   -1 }, /* (145) type_name ::= TIMESTAMP */
  {  270,   -4 }, /* (146) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
  {  270,   -2 }, /* (147) type_name ::= TINYINT UNSIGNED */
  {  270,   -2 }, /* (148) type_name ::= SMALLINT UNSIGNED */
  {  270,   -2 }, /* (149) type_name ::= INT UNSIGNED */
  {  270,   -2 }, /* (150) type_name ::= BIGINT UNSIGNED */
  {  270,   -1 }, /* (151) type_name ::= JSON */
  {  270,   -4 }, /* (152) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
  {  270,   -1 }, /* (153) type_name ::= MEDIUMBLOB */
  {  270,   -1 }, /* (154) type_name ::= BLOB */
  {  270,   -4 }, /* (155) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
  {  270,   -1 }, /* (156) type_name ::= DECIMAL */
  {  270,   -4 }, /* (157) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
  {  270,   -6 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
  {  262,    0 }, /* (159) tags_def_opt ::= */
  {  262,   -1 }, /* (160) tags_def_opt ::= tags_def */
  {  265,   -4 }, /* (161) tags_def ::= TAGS NK_LP column_def_list NK_RP */
  {  263,    0 }, /* (162) table_options ::= */
  {  263,   -3 }, /* (163) table_options ::= table_options COMMENT NK_STRING */
  {  263,   -3 }, /* (164) table_options ::= table_options DELAY NK_INTEGER */
  {  263,   -3 }, /* (165) table_options ::= table_options FILE_FACTOR NK_FLOAT */
  {  263,   -5 }, /* (166) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */
  {  263,   -3 }, /* (167) table_options ::= table_options TTL NK_INTEGER */
  {  263,   -5 }, /* (168) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
  {  268,   -1 }, /* (169) alter_table_options ::= alter_table_option */
  {  268,   -2 }, /* (170) alter_table_options ::= alter_table_options alter_table_option */
  {  279,   -2 }, /* (171) alter_table_option ::= COMMENT NK_STRING */
  {  279,   -2 }, /* (172) alter_table_option ::= TTL NK_INTEGER */
  {  275,   -1 }, /* (173) col_name_list ::= col_name */
  {  275,   -3 }, /* (174) col_name_list ::= col_name_list NK_COMMA col_name */
  {  280,   -1 }, /* (175) col_name ::= column_name */
  {  238,   -2 }, /* (176) cmd ::= SHOW DNODES */
  {  238,   -2 }, /* (177) cmd ::= SHOW USERS */
  {  238,   -2 }, /* (178) cmd ::= SHOW DATABASES */
  {  238,   -4 }, /* (179) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
  {  238,   -4 }, /* (180) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
  {  238,   -3 }, /* (181) cmd ::= SHOW db_name_cond_opt VGROUPS */
  {  238,   -2 }, /* (182) cmd ::= SHOW MNODES */
  {  238,   -2 }, /* (183) cmd ::= SHOW MODULES */
  {  238,   -2 }, /* (184) cmd ::= SHOW QNODES */
  {  238,   -2 }, /* (185) cmd ::= SHOW FUNCTIONS */
  {  238,   -5 }, /* (186) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
  {  238,   -2 }, /* (187) cmd ::= SHOW STREAMS */
  {  238,   -2 }, /* (188) cmd ::= SHOW ACCOUNTS */
  {  238,   -2 }, /* (189) cmd ::= SHOW APPS */
  {  238,   -2 }, /* (190) cmd ::= SHOW CONNECTIONS */
  {  238,   -2 }, /* (191) cmd ::= SHOW LICENCE */
  {  238,   -2 }, /* (192) cmd ::= SHOW GRANTS */
  {  238,   -4 }, /* (193) cmd ::= SHOW CREATE DATABASE db_name */
  {  238,   -4 }, /* (194) cmd ::= SHOW CREATE TABLE full_table_name */
  {  238,   -4 }, /* (195) cmd ::= SHOW CREATE STABLE full_table_name */
  {  238,   -2 }, /* (196) cmd ::= SHOW QUERIES */
  {  238,   -2 }, /* (197) cmd ::= SHOW SCORES */
  {  238,   -2 }, /* (198) cmd ::= SHOW TOPICS */
  {  238,   -2 }, /* (199) cmd ::= SHOW VARIABLES */
  {  238,   -2 }, /* (200) cmd ::= SHOW BNODES */
  {  238,   -2 }, /* (201) cmd ::= SHOW SNODES */
  {  238,   -2 }, /* (202) cmd ::= SHOW CLUSTER */
  {  238,   -2 }, /* (203) cmd ::= SHOW TRANSACTIONS */
  {  281,    0 }, /* (204) db_name_cond_opt ::= */
  {  281,   -2 }, /* (205) db_name_cond_opt ::= db_name NK_DOT */
  {  282,    0 }, /* (206) like_pattern_opt ::= */
  {  282,   -2 }, /* (207) like_pattern_opt ::= LIKE NK_STRING */
  {  283,   -1 }, /* (208) table_name_cond ::= table_name */
  {  284,    0 }, /* (209) from_db_opt ::= */
  {  284,   -2 }, /* (210) from_db_opt ::= FROM db_name */
  {  278,   -1 }, /* (211) func_name_list ::= func_name */
  {  278,   -3 }, /* (212) func_name_list ::= func_name_list NK_COMMA func_name */
  {  285,   -1 }, /* (213) func_name ::= function_name */
  {  238,   -8 }, /* (214) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */
  {  238,  -10 }, /* (215) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */
  {  238,   -6 }, /* (216) cmd ::= DROP INDEX exists_opt index_name ON table_name */
  {  288,    0 }, /* (217) index_options ::= */
  {  288,   -9 }, /* (218) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */
  {  288,  -11 }, /* (219) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */
  {  289,   -1 }, /* (220) func_list ::= func */
  {  289,   -3 }, /* (221) func_list ::= func_list NK_COMMA func */
  {  292,   -4 }, /* (222) func ::= function_name NK_LP expression_list NK_RP */
  {  238,   -7 }, /* (223) cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression */
  {  238,   -7 }, /* (224) cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name */
  {  238,   -4 }, /* (225) cmd ::= DROP TOPIC exists_opt topic_name */
  {  295,    0 }, /* (226) topic_options ::= */
  {  295,   -3 }, /* (227) topic_options ::= topic_options WITH TABLE */
  {  295,   -3 }, /* (228) topic_options ::= topic_options WITH SCHEMA */
  {  295,   -3 }, /* (229) topic_options ::= topic_options WITH TAG */
  {  238,   -2 }, /* (230) cmd ::= DESC full_table_name */
  {  238,   -2 }, /* (231) cmd ::= DESCRIBE full_table_name */
  {  238,   -3 }, /* (232) cmd ::= RESET QUERY CACHE */
  {  238,   -4 }, /* (233) cmd ::= EXPLAIN analyze_opt explain_options query_expression */
  {  297,    0 }, /* (234) analyze_opt ::= */
  {  297,   -1 }, /* (235) analyze_opt ::= ANALYZE */
  {  298,    0 }, /* (236) explain_options ::= */
  {  298,   -3 }, /* (237) explain_options ::= explain_options VERBOSE NK_BOOL */
  {  298,   -3 }, /* (238) explain_options ::= explain_options RATIO NK_FLOAT */
  {  238,   -6 }, /* (239) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */
  {  238,  -10 }, /* (240) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */
  {  238,   -4 }, /* (241) cmd ::= DROP FUNCTION exists_opt function_name */
  {  299,    0 }, /* (242) agg_func_opt ::= */
  {  299,   -1 }, /* (243) agg_func_opt ::= AGGREGATE */
  {  300,    0 }, /* (244) bufsize_opt ::= */
  {  300,   -2 }, /* (245) bufsize_opt ::= BUFSIZE NK_INTEGER */
  {  238,   -8 }, /* (246) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */
  {  238,   -4 }, /* (247) cmd ::= DROP STREAM exists_opt stream_name */
  {  303,    0 }, /* (248) into_opt ::= */
  {  303,   -2 }, /* (249) into_opt ::= INTO full_table_name */
  {  302,    0 }, /* (250) stream_options ::= */
  {  302,   -3 }, /* (251) stream_options ::= stream_options TRIGGER AT_ONCE */
  {  302,   -3 }, /* (252) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
  {  302,   -3 }, /* (253) stream_options ::= stream_options WATERMARK duration_literal */
  {  238,   -3 }, /* (254) cmd ::= KILL CONNECTION NK_INTEGER */
  {  238,   -3 }, /* (255) cmd ::= KILL QUERY NK_INTEGER */
  {  238,   -3 }, /* (256) cmd ::= KILL TRANSACTION NK_INTEGER */
  {  238,   -4 }, /* (257) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
  {  238,   -4 }, /* (258) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
  {  238,   -3 }, /* (259) cmd ::= SPLIT VGROUP NK_INTEGER */
  {  304,   -2 }, /* (260) dnode_list ::= DNODE NK_INTEGER */
  {  304,   -3 }, /* (261) dnode_list ::= dnode_list DNODE NK_INTEGER */
  {  238,   -3 }, /* (262) cmd ::= SYNCDB db_name REPLICA */
  {  238,   -1 }, /* (263) cmd ::= query_expression */
  {  241,   -1 }, /* (264) literal ::= NK_INTEGER */
  {  241,   -1 }, /* (265) literal ::= NK_FLOAT */
  {  241,   -1 }, /* (266) literal ::= NK_STRING */
  {  241,   -1 }, /* (267) literal ::= NK_BOOL */
  {  241,   -2 }, /* (268) literal ::= TIMESTAMP NK_STRING */
  {  241,   -1 }, /* (269) literal ::= duration_literal */
  {  241,   -1 }, /* (270) literal ::= NULL */
  {  241,   -1 }, /* (271) literal ::= NK_QUESTION */
  {  290,   -1 }, /* (272) duration_literal ::= NK_VARIABLE */
  {  305,   -1 }, /* (273) signed ::= NK_INTEGER */
  {  305,   -2 }, /* (274) signed ::= NK_PLUS NK_INTEGER */
  {  305,   -2 }, /* (275) signed ::= NK_MINUS NK_INTEGER */
  {  305,   -1 }, /* (276) signed ::= NK_FLOAT */
  {  305,   -2 }, /* (277) signed ::= NK_PLUS NK_FLOAT */
  {  305,   -2 }, /* (278) signed ::= NK_MINUS NK_FLOAT */
  {  306,   -1 }, /* (279) signed_literal ::= signed */
  {  306,   -1 }, /* (280) signed_literal ::= NK_STRING */
  {  306,   -1 }, /* (281) signed_literal ::= NK_BOOL */
  {  306,   -2 }, /* (282) signed_literal ::= TIMESTAMP NK_STRING */
  {  306,   -1 }, /* (283) signed_literal ::= duration_literal */
  {  306,   -1 }, /* (284) signed_literal ::= NULL */
  {  306,   -1 }, /* (285) signed_literal ::= literal_func */
  {  273,   -1 }, /* (286) literal_list ::= signed_literal */
  {  273,   -3 }, /* (287) literal_list ::= literal_list NK_COMMA signed_literal */
  {  248,   -1 }, /* (288) db_name ::= NK_ID */
  {  276,   -1 }, /* (289) table_name ::= NK_ID */
  {  269,   -1 }, /* (290) column_name ::= NK_ID */
  {  286,   -1 }, /* (291) function_name ::= NK_ID */
  {  308,   -1 }, /* (292) table_alias ::= NK_ID */
  {  309,   -1 }, /* (293) column_alias ::= NK_ID */
  {  243,   -1 }, /* (294) user_name ::= NK_ID */
  {  287,   -1 }, /* (295) index_name ::= NK_ID */
  {  294,   -1 }, /* (296) topic_name ::= NK_ID */
  {  301,   -1 }, /* (297) stream_name ::= NK_ID */
  {  310,   -1 }, /* (298) expression ::= literal */
  {  310,   -1 }, /* (299) expression ::= pseudo_column */
  {  310,   -1 }, /* (300) expression ::= column_reference */
  {  310,   -1 }, /* (301) expression ::= function_expression */
  {  310,   -1 }, /* (302) expression ::= subquery */
  {  310,   -3 }, /* (303) expression ::= NK_LP expression NK_RP */
  {  310,   -2 }, /* (304) expression ::= NK_PLUS expression */
  {  310,   -2 }, /* (305) expression ::= NK_MINUS expression */
  {  310,   -3 }, /* (306) expression ::= expression NK_PLUS expression */
  {  310,   -3 }, /* (307) expression ::= expression NK_MINUS expression */
  {  310,   -3 }, /* (308) expression ::= expression NK_STAR expression */
  {  310,   -3 }, /* (309) expression ::= expression NK_SLASH expression */
  {  310,   -3 }, /* (310) expression ::= expression NK_REM expression */
  {  310,   -3 }, /* (311) expression ::= column_reference NK_ARROW NK_STRING */
  {  293,   -1 }, /* (312) expression_list ::= expression */
  {  293,   -3 }, /* (313) expression_list ::= expression_list NK_COMMA expression */
  {  312,   -1 }, /* (314) column_reference ::= column_name */
  {  312,   -3 }, /* (315) column_reference ::= table_name NK_DOT column_name */
  {  311,   -1 }, /* (316) pseudo_column ::= ROWTS */
  {  311,   -1 }, /* (317) pseudo_column ::= TBNAME */
  {  311,   -1 }, /* (318) pseudo_column ::= QSTARTTS */
  {  311,   -1 }, /* (319) pseudo_column ::= QENDTS */
  {  311,   -1 }, /* (320) pseudo_column ::= WSTARTTS */
  {  311,   -1 }, /* (321) pseudo_column ::= WENDTS */
  {  311,   -1 }, /* (322) pseudo_column ::= WDURATION */
  {  313,   -4 }, /* (323) function_expression ::= function_name NK_LP expression_list NK_RP */
  {  313,   -4 }, /* (324) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
  {  313,   -6 }, /* (325) function_expression ::= CAST NK_LP expression AS type_name NK_RP */
  {  313,   -1 }, /* (326) function_expression ::= literal_func */
  {  307,   -3 }, /* (327) literal_func ::= noarg_func NK_LP NK_RP */
  {  307,   -1 }, /* (328) literal_func ::= NOW */
  {  317,   -1 }, /* (329) noarg_func ::= NOW */
  {  317,   -1 }, /* (330) noarg_func ::= TODAY */
  {  317,   -1 }, /* (331) noarg_func ::= TIMEZONE */
  {  315,   -1 }, /* (332) star_func ::= COUNT */
  {  315,   -1 }, /* (333) star_func ::= FIRST */
  {  315,   -1 }, /* (334) star_func ::= LAST */
  {  315,   -1 }, /* (335) star_func ::= LAST_ROW */
  {  316,   -1 }, /* (336) star_func_para_list ::= NK_STAR */
  {  316,   -1 }, /* (337) star_func_para_list ::= other_para_list */
  {  318,   -1 }, /* (338) other_para_list ::= star_func_para */
  {  318,   -3 }, /* (339) other_para_list ::= other_para_list NK_COMMA star_func_para */
  {  319,   -1 }, /* (340) star_func_para ::= expression */
  {  319,   -3 }, /* (341) star_func_para ::= table_name NK_DOT NK_STAR */
  {  320,   -3 }, /* (342) predicate ::= expression compare_op expression */
  {  320,   -5 }, /* (343) predicate ::= expression BETWEEN expression AND expression */
  {  320,   -6 }, /* (344) predicate ::= expression NOT BETWEEN expression AND expression */
  {  320,   -3 }, /* (345) predicate ::= expression IS NULL */
  {  320,   -4 }, /* (346) predicate ::= expression IS NOT NULL */
  {  320,   -3 }, /* (347) predicate ::= expression in_op in_predicate_value */
  {  321,   -1 }, /* (348) compare_op ::= NK_LT */
  {  321,   -1 }, /* (349) compare_op ::= NK_GT */
  {  321,   -1 }, /* (350) compare_op ::= NK_LE */
  {  321,   -1 }, /* (351) compare_op ::= NK_GE */
  {  321,   -1 }, /* (352) compare_op ::= NK_NE */
  {  321,   -1 }, /* (353) compare_op ::= NK_EQ */
  {  321,   -1 }, /* (354) compare_op ::= LIKE */
  {  321,   -2 }, /* (355) compare_op ::= NOT LIKE */
  {  321,   -1 }, /* (356) compare_op ::= MATCH */
  {  321,   -1 }, /* (357) compare_op ::= NMATCH */
  {  321,   -1 }, /* (358) compare_op ::= CONTAINS */
  {  322,   -1 }, /* (359) in_op ::= IN */
  {  322,   -2 }, /* (360) in_op ::= NOT IN */
  {  323,   -3 }, /* (361) in_predicate_value ::= NK_LP expression_list NK_RP */
  {  324,   -1 }, /* (362) boolean_value_expression ::= boolean_primary */
  {  324,   -2 }, /* (363) boolean_value_expression ::= NOT boolean_primary */
  {  324,   -3 }, /* (364) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
  {  324,   -3 }, /* (365) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
  {  325,   -1 }, /* (366) boolean_primary ::= predicate */
  {  325,   -3 }, /* (367) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
  {  326,   -1 }, /* (368) common_expression ::= expression */
  {  326,   -1 }, /* (369) common_expression ::= boolean_value_expression */
  {  327,   -2 }, /* (370) from_clause ::= FROM table_reference_list */
  {  328,   -1 }, /* (371) table_reference_list ::= table_reference */
  {  328,   -3 }, /* (372) table_reference_list ::= table_reference_list NK_COMMA table_reference */
  {  329,   -1 }, /* (373) table_reference ::= table_primary */
  {  329,   -1 }, /* (374) table_reference ::= joined_table */
  {  330,   -2 }, /* (375) table_primary ::= table_name alias_opt */
  {  330,   -4 }, /* (376) table_primary ::= db_name NK_DOT table_name alias_opt */
  {  330,   -2 }, /* (377) table_primary ::= subquery alias_opt */
  {  330,   -1 }, /* (378) table_primary ::= parenthesized_joined_table */
  {  332,    0 }, /* (379) alias_opt ::= */
  {  332,   -1 }, /* (380) alias_opt ::= table_alias */
  {  332,   -2 }, /* (381) alias_opt ::= AS table_alias */
  {  333,   -3 }, /* (382) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
  {  333,   -3 }, /* (383) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
  {  331,   -6 }, /* (384) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
  {  334,    0 }, /* (385) join_type ::= */
  {  334,   -1 }, /* (386) join_type ::= INNER */
  {  336,   -9 }, /* (387) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
  {  337,    0 }, /* (388) set_quantifier_opt ::= */
  {  337,   -1 }, /* (389) set_quantifier_opt ::= DISTINCT */
  {  337,   -1 }, /* (390) set_quantifier_opt ::= ALL */
  {  338,   -1 }, /* (391) select_list ::= NK_STAR */
  {  338,   -1 }, /* (392) select_list ::= select_sublist */
  {  344,   -1 }, /* (393) select_sublist ::= select_item */
  {  344,   -3 }, /* (394) select_sublist ::= select_sublist NK_COMMA select_item */
  {  345,   -1 }, /* (395) select_item ::= common_expression */
  {  345,   -2 }, /* (396) select_item ::= common_expression column_alias */
  {  345,   -3 }, /* (397) select_item ::= common_expression AS column_alias */
  {  345,   -3 }, /* (398) select_item ::= table_name NK_DOT NK_STAR */
  {  339,    0 }, /* (399) where_clause_opt ::= */
  {  339,   -2 }, /* (400) where_clause_opt ::= WHERE search_condition */
  {  340,    0 }, /* (401) partition_by_clause_opt ::= */
  {  340,   -3 }, /* (402) partition_by_clause_opt ::= PARTITION BY expression_list */
  {  341,    0 }, /* (403) twindow_clause_opt ::= */
  {  341,   -6 }, /* (404) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
  {  341,   -4 }, /* (405) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */
  {  341,   -6 }, /* (406) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
  {  341,   -8 }, /* (407) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
  {  291,    0 }, /* (408) sliding_opt ::= */
  {  291,   -4 }, /* (409) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
  {  346,    0 }, /* (410) fill_opt ::= */
  {  346,   -4 }, /* (411) fill_opt ::= FILL NK_LP fill_mode NK_RP */
  {  346,   -6 }, /* (412) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
  {  347,   -1 }, /* (413) fill_mode ::= NONE */
  {  347,   -1 }, /* (414) fill_mode ::= PREV */
  {  347,   -1 }, /* (415) fill_mode ::= NULL */
  {  347,   -1 }, /* (416) fill_mode ::= LINEAR */
  {  347,   -1 }, /* (417) fill_mode ::= NEXT */
  {  342,    0 }, /* (418) group_by_clause_opt ::= */
  {  342,   -3 }, /* (419) group_by_clause_opt ::= GROUP BY group_by_list */
  {  348,   -1 }, /* (420) group_by_list ::= expression */
  {  348,   -3 }, /* (421) group_by_list ::= group_by_list NK_COMMA expression */
  {  343,    0 }, /* (422) having_clause_opt ::= */
  {  343,   -2 }, /* (423) having_clause_opt ::= HAVING search_condition */
  {  296,   -4 }, /* (424) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */
  {  349,   -1 }, /* (425) query_expression_body ::= query_primary */
  {  349,   -4 }, /* (426) query_expression_body ::= query_expression_body UNION ALL query_expression_body */
  {  349,   -3 }, /* (427) query_expression_body ::= query_expression_body UNION query_expression_body */
  {  353,   -1 }, /* (428) query_primary ::= query_specification */
  {  350,    0 }, /* (429) order_by_clause_opt ::= */
  {  350,   -3 }, /* (430) order_by_clause_opt ::= ORDER BY sort_specification_list */
  {  351,    0 }, /* (431) slimit_clause_opt ::= */
  {  351,   -2 }, /* (432) slimit_clause_opt ::= SLIMIT NK_INTEGER */
  {  351,   -4 }, /* (433) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
  {  351,   -4 }, /* (434) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
  {  352,    0 }, /* (435) limit_clause_opt ::= */
  {  352,   -2 }, /* (436) limit_clause_opt ::= LIMIT NK_INTEGER */
  {  352,   -4 }, /* (437) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
  {  352,   -4 }, /* (438) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
  {  314,   -3 }, /* (439) subquery ::= NK_LP query_expression NK_RP */
  {  335,   -1 }, /* (440) search_condition ::= common_expression */
  {  354,   -1 }, /* (441) sort_specification_list ::= sort_specification */
  {  354,   -3 }, /* (442) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
  {  355,   -3 }, /* (443) sort_specification ::= expression ordering_specification_opt null_ordering_opt */
  {  356,    0 }, /* (444) ordering_specification_opt ::= */
  {  356,   -1 }, /* (445) ordering_specification_opt ::= ASC */
  {  356,   -1 }, /* (446) ordering_specification_opt ::= DESC */
  {  357,    0 }, /* (447) null_ordering_opt ::= */
  {  357,   -2 }, /* (448) null_ordering_opt ::= NULLS FIRST */
  {  357,   -2 }, /* (449) 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 = yyRuleInfo[yyruleno].nrhs;
    if( yysize ){
      fprintf(yyTraceFILE, "%sReduce %d [%s], go to state %d.\n",
        yyTracePrompt,
        yyruleno, yyRuleName[yyruleno], yymsp[yysize].stateno);
    }else{
      fprintf(yyTraceFILE, "%sReduce %d [%s].\n",
        yyTracePrompt, yyruleno, yyRuleName[yyruleno]);
    }
  }
#endif /* NDEBUG */

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

  switch( yyruleno ){
  /* Beginning here are the reduction cases.  A typical example
  ** follows:
  **   case 0:
  **  #line <lineno> <grammarfile>
  **     { ... }           // User supplied code
  **  #line <lineno> <thisfile>
  **     break;
  */
/********** Begin reduce actions **********************************************/
        YYMINORTYPE yylhsminor;
      case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
  yy_destructor(yypParser,239,&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,240,&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,239,&yymsp[-2].minor);
{ }
  yy_destructor(yypParser,241,&yymsp[0].minor);
}
        break;
      case 12: /* alter_account_options ::= alter_account_option */
{  yy_destructor(yypParser,242,&yymsp[0].minor);
{ }
}
        break;
      case 13: /* alter_account_options ::= alter_account_options alter_account_option */
{  yy_destructor(yypParser,240,&yymsp[-1].minor);
{ }
  yy_destructor(yypParser,242,&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,241,&yymsp[0].minor);
        break;
      case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */
{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy0); }
        break;
      case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy105, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
        break;
      case 26: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy105, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); }
        break;
      case 27: /* cmd ::= DROP USER user_name */
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy105); }
        break;
      case 28: /* cmd ::= GRANT privileges ON priv_level TO user_name */
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy593, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105); }
        break;
      case 29: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy593, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105); }
        break;
      case 30: /* privileges ::= ALL */
{ yymsp[0].minor.yy593 = PRIVILEGE_TYPE_ALL; }
        break;
      case 31: /* privileges ::= priv_type_list */
      case 32: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==32);
{ yylhsminor.yy593 = yymsp[0].minor.yy593; }
  yymsp[0].minor.yy593 = yylhsminor.yy593;
        break;
      case 33: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
{ yylhsminor.yy593 = yymsp[-2].minor.yy593 | yymsp[0].minor.yy593; }
  yymsp[-2].minor.yy593 = yylhsminor.yy593;
        break;
      case 34: /* priv_type ::= READ */
{ yymsp[0].minor.yy593 = PRIVILEGE_TYPE_READ; }
        break;
      case 35: /* priv_type ::= WRITE */
{ yymsp[0].minor.yy593 = PRIVILEGE_TYPE_WRITE; }
        break;
      case 36: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
{ yylhsminor.yy105 = yymsp[-2].minor.yy0; }
  yymsp[-2].minor.yy105 = yylhsminor.yy105;
        break;
      case 37: /* priv_level ::= db_name NK_DOT NK_STAR */
{ yylhsminor.yy105 = yymsp[-2].minor.yy105; }
  yymsp[-2].minor.yy105 = yylhsminor.yy105;
        break;
      case 38: /* cmd ::= CREATE DNODE dnode_endpoint */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy105, NULL); }
        break;
      case 39: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy0); }
        break;
      case 40: /* cmd ::= DROP DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); }
        break;
      case 41: /* cmd ::= DROP DNODE dnode_endpoint */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy105); }
        break;
      case 42: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
        break;
      case 43: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
      case 44: /* cmd ::= ALTER ALL DNODES NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
        break;
      case 45: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
      case 46: /* dnode_endpoint ::= NK_STRING */
      case 47: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==47);
      case 48: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==48);
      case 288: /* db_name ::= NK_ID */ yytestcase(yyruleno==288);
      case 289: /* table_name ::= NK_ID */ yytestcase(yyruleno==289);
      case 290: /* column_name ::= NK_ID */ yytestcase(yyruleno==290);
      case 291: /* function_name ::= NK_ID */ yytestcase(yyruleno==291);
      case 292: /* table_alias ::= NK_ID */ yytestcase(yyruleno==292);
      case 293: /* column_alias ::= NK_ID */ yytestcase(yyruleno==293);
      case 294: /* user_name ::= NK_ID */ yytestcase(yyruleno==294);
      case 295: /* index_name ::= NK_ID */ yytestcase(yyruleno==295);
      case 296: /* topic_name ::= NK_ID */ yytestcase(yyruleno==296);
      case 297: /* stream_name ::= NK_ID */ yytestcase(yyruleno==297);
      case 329: /* noarg_func ::= NOW */ yytestcase(yyruleno==329);
      case 330: /* noarg_func ::= TODAY */ yytestcase(yyruleno==330);
      case 331: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==331);
      case 332: /* star_func ::= COUNT */ yytestcase(yyruleno==332);
      case 333: /* star_func ::= FIRST */ yytestcase(yyruleno==333);
      case 334: /* star_func ::= LAST */ yytestcase(yyruleno==334);
      case 335: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==335);
{ yylhsminor.yy105 = yymsp[0].minor.yy0; }
  yymsp[0].minor.yy105 = yylhsminor.yy105;
        break;
      case 49: /* cmd ::= ALTER LOCAL NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
        break;
      case 50: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
      case 51: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 52: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 53: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 54: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 55: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 56: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 57: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 58: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
        break;
      case 59: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy617, &yymsp[-1].minor.yy105, yymsp[0].minor.yy172); }
        break;
      case 60: /* cmd ::= DROP DATABASE exists_opt db_name */
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy105); }
        break;
      case 61: /* cmd ::= USE db_name */
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy105); }
        break;
      case 62: /* cmd ::= ALTER DATABASE db_name alter_db_options */
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy105, yymsp[0].minor.yy172); }
        break;
      case 63: /* not_exists_opt ::= IF NOT EXISTS */
{ yymsp[-2].minor.yy617 = true; }
        break;
      case 64: /* not_exists_opt ::= */
      case 66: /* exists_opt ::= */ yytestcase(yyruleno==66);
      case 234: /* analyze_opt ::= */ yytestcase(yyruleno==234);
      case 242: /* agg_func_opt ::= */ yytestcase(yyruleno==242);
      case 388: /* set_quantifier_opt ::= */ yytestcase(yyruleno==388);
{ yymsp[1].minor.yy617 = false; }
        break;
      case 65: /* exists_opt ::= IF EXISTS */
{ yymsp[-1].minor.yy617 = true; }
        break;
      case 67: /* db_options ::= */
{ yymsp[1].minor.yy172 = createDefaultDatabaseOptions(pCxt); }
        break;
      case 68: /* db_options ::= db_options BUFFER NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 69: /* db_options ::= db_options CACHELAST NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 70: /* db_options ::= db_options COMP NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 71: /* db_options ::= db_options DAYS NK_INTEGER */
      case 72: /* db_options ::= db_options DAYS NK_VARIABLE */ yytestcase(yyruleno==72);
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 73: /* db_options ::= db_options FSYNC NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 74: /* db_options ::= db_options MAXROWS NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 75: /* db_options ::= db_options MINROWS NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 76: /* db_options ::= db_options KEEP integer_list */
      case 77: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==77);
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_KEEP, yymsp[0].minor.yy60); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 78: /* db_options ::= db_options PAGES NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 79: /* db_options ::= db_options PAGESIZE NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 80: /* db_options ::= db_options PRECISION NK_STRING */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 81: /* db_options ::= db_options REPLICA NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 82: /* db_options ::= db_options STRICT NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_STRICT, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 83: /* db_options ::= db_options WAL NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 84: /* db_options ::= db_options VGROUPS NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 85: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 86: /* db_options ::= db_options RETENTIONS retention_list */
{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_RETENTIONS, yymsp[0].minor.yy60); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 87: /* alter_db_options ::= alter_db_option */
{ yylhsminor.yy172 = createAlterDatabaseOptions(pCxt); yylhsminor.yy172 = setAlterDatabaseOption(pCxt, yylhsminor.yy172, &yymsp[0].minor.yy609); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 88: /* alter_db_options ::= alter_db_options alter_db_option */
{ yylhsminor.yy172 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy172, &yymsp[0].minor.yy609); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 89: /* alter_db_option ::= BUFFER NK_INTEGER */
{ yymsp[-1].minor.yy609.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; }
        break;
      case 90: /* alter_db_option ::= CACHELAST NK_INTEGER */
{ yymsp[-1].minor.yy609.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; }
        break;
      case 91: /* alter_db_option ::= FSYNC NK_INTEGER */
{ yymsp[-1].minor.yy609.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; }
        break;
      case 92: /* alter_db_option ::= KEEP integer_list */
      case 93: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==93);
{ yymsp[-1].minor.yy609.type = DB_OPTION_KEEP; yymsp[-1].minor.yy609.pList = yymsp[0].minor.yy60; }
        break;
      case 94: /* alter_db_option ::= PAGES NK_INTEGER */
{ yymsp[-1].minor.yy609.type = DB_OPTION_PAGES; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; }
        break;
      case 95: /* alter_db_option ::= REPLICA NK_INTEGER */
{ yymsp[-1].minor.yy609.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; }
        break;
      case 96: /* alter_db_option ::= STRICT NK_INTEGER */
{ yymsp[-1].minor.yy609.type = DB_OPTION_STRICT; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; }
        break;
      case 97: /* alter_db_option ::= WAL NK_INTEGER */
{ yymsp[-1].minor.yy609.type = DB_OPTION_WAL; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; }
        break;
      case 98: /* integer_list ::= NK_INTEGER */
{ yylhsminor.yy60 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy60 = yylhsminor.yy60;
        break;
      case 99: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
      case 261: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==261);
{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
  yymsp[-2].minor.yy60 = yylhsminor.yy60;
        break;
      case 100: /* variable_list ::= NK_VARIABLE */
{ yylhsminor.yy60 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy60 = yylhsminor.yy60;
        break;
      case 101: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[-2].minor.yy60 = yylhsminor.yy60;
        break;
      case 102: /* retention_list ::= retention */
      case 122: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==122);
      case 125: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==125);
      case 132: /* column_def_list ::= column_def */ yytestcase(yyruleno==132);
      case 173: /* col_name_list ::= col_name */ yytestcase(yyruleno==173);
      case 211: /* func_name_list ::= func_name */ yytestcase(yyruleno==211);
      case 220: /* func_list ::= func */ yytestcase(yyruleno==220);
      case 286: /* literal_list ::= signed_literal */ yytestcase(yyruleno==286);
      case 338: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==338);
      case 393: /* select_sublist ::= select_item */ yytestcase(yyruleno==393);
      case 441: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==441);
{ yylhsminor.yy60 = createNodeList(pCxt, yymsp[0].minor.yy172); }
  yymsp[0].minor.yy60 = yylhsminor.yy60;
        break;
      case 103: /* retention_list ::= retention_list NK_COMMA retention */
      case 133: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==133);
      case 174: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==174);
      case 212: /* func_name_list ::= func_name_list NK_COMMA func_name */ yytestcase(yyruleno==212);
      case 221: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==221);
      case 287: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==287);
      case 339: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==339);
      case 394: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==394);
      case 442: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==442);
{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, yymsp[0].minor.yy172); }
  yymsp[-2].minor.yy60 = yylhsminor.yy60;
        break;
      case 104: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
{ yylhsminor.yy172 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 105: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
      case 107: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==107);
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy617, yymsp[-5].minor.yy172, yymsp[-3].minor.yy60, yymsp[-1].minor.yy60, yymsp[0].minor.yy172); }
        break;
      case 106: /* cmd ::= CREATE TABLE multi_create_clause */
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy60); }
        break;
      case 108: /* cmd ::= DROP TABLE multi_drop_clause */
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy60); }
        break;
      case 109: /* cmd ::= DROP STABLE exists_opt full_table_name */
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy617, yymsp[0].minor.yy172); }
        break;
      case 110: /* cmd ::= ALTER TABLE alter_table_clause */
      case 111: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==111);
      case 263: /* cmd ::= query_expression */ yytestcase(yyruleno==263);
{ pCxt->pRootNode = yymsp[0].minor.yy172; }
        break;
      case 112: /* alter_table_clause ::= full_table_name alter_table_options */
{ yylhsminor.yy172 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy172, yymsp[0].minor.yy172); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 113: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
{ yylhsminor.yy172 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248); }
  yymsp[-4].minor.yy172 = yylhsminor.yy172;
        break;
      case 114: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
{ yylhsminor.yy172 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy172, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy105); }
  yymsp[-3].minor.yy172 = yylhsminor.yy172;
        break;
      case 115: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
{ yylhsminor.yy172 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248); }
  yymsp[-4].minor.yy172 = yylhsminor.yy172;
        break;
      case 116: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
{ yylhsminor.yy172 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy105, &yymsp[0].minor.yy105); }
  yymsp[-4].minor.yy172 = yylhsminor.yy172;
        break;
      case 117: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
{ yylhsminor.yy172 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248); }
  yymsp[-4].minor.yy172 = yylhsminor.yy172;
        break;
      case 118: /* alter_table_clause ::= full_table_name DROP TAG column_name */
{ yylhsminor.yy172 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy172, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy105); }
  yymsp[-3].minor.yy172 = yylhsminor.yy172;
        break;
      case 119: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
{ yylhsminor.yy172 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248); }
  yymsp[-4].minor.yy172 = yylhsminor.yy172;
        break;
      case 120: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
{ yylhsminor.yy172 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy105, &yymsp[0].minor.yy105); }
  yymsp[-4].minor.yy172 = yylhsminor.yy172;
        break;
      case 121: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */
{ yylhsminor.yy172 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy172, &yymsp[-2].minor.yy105, yymsp[0].minor.yy172); }
  yymsp[-5].minor.yy172 = yylhsminor.yy172;
        break;
      case 123: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
      case 126: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==126);
{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-1].minor.yy60, yymsp[0].minor.yy172); }
  yymsp[-1].minor.yy60 = yylhsminor.yy60;
        break;
      case 124: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */
{ yylhsminor.yy172 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy617, yymsp[-8].minor.yy172, yymsp[-6].minor.yy172, yymsp[-5].minor.yy60, yymsp[-2].minor.yy60, yymsp[0].minor.yy172); }
  yymsp[-9].minor.yy172 = yylhsminor.yy172;
        break;
      case 127: /* drop_table_clause ::= exists_opt full_table_name */
{ yylhsminor.yy172 = createDropTableClause(pCxt, yymsp[-1].minor.yy617, yymsp[0].minor.yy172); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 128: /* specific_tags_opt ::= */
      case 159: /* tags_def_opt ::= */ yytestcase(yyruleno==159);
      case 401: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==401);
      case 418: /* group_by_clause_opt ::= */ yytestcase(yyruleno==418);
      case 429: /* order_by_clause_opt ::= */ yytestcase(yyruleno==429);
{ yymsp[1].minor.yy60 = NULL; }
        break;
      case 129: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */
{ yymsp[-2].minor.yy60 = yymsp[-1].minor.yy60; }
        break;
      case 130: /* full_table_name ::= table_name */
{ yylhsminor.yy172 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy105, NULL); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 131: /* full_table_name ::= db_name NK_DOT table_name */
{ yylhsminor.yy172 = createRealTableNode(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105, NULL); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 134: /* column_def ::= column_name type_name */
{ yylhsminor.yy172 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248, NULL); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 135: /* column_def ::= column_name type_name COMMENT NK_STRING */
{ yylhsminor.yy172 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy105, yymsp[-2].minor.yy248, &yymsp[0].minor.yy0); }
  yymsp[-3].minor.yy172 = yylhsminor.yy172;
        break;
      case 136: /* type_name ::= BOOL */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_BOOL); }
        break;
      case 137: /* type_name ::= TINYINT */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_TINYINT); }
        break;
      case 138: /* type_name ::= SMALLINT */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
        break;
      case 139: /* type_name ::= INT */
      case 140: /* type_name ::= INTEGER */ yytestcase(yyruleno==140);
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_INT); }
        break;
      case 141: /* type_name ::= BIGINT */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_BIGINT); }
        break;
      case 142: /* type_name ::= FLOAT */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_FLOAT); }
        break;
      case 143: /* type_name ::= DOUBLE */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
        break;
      case 144: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy248 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
        break;
      case 145: /* type_name ::= TIMESTAMP */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
        break;
      case 146: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy248 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
        break;
      case 147: /* type_name ::= TINYINT UNSIGNED */
{ yymsp[-1].minor.yy248 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
        break;
      case 148: /* type_name ::= SMALLINT UNSIGNED */
{ yymsp[-1].minor.yy248 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
        break;
      case 149: /* type_name ::= INT UNSIGNED */
{ yymsp[-1].minor.yy248 = createDataType(TSDB_DATA_TYPE_UINT); }
        break;
      case 150: /* type_name ::= BIGINT UNSIGNED */
{ yymsp[-1].minor.yy248 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
        break;
      case 151: /* type_name ::= JSON */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_JSON); }
        break;
      case 152: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy248 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
        break;
      case 153: /* type_name ::= MEDIUMBLOB */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
        break;
      case 154: /* type_name ::= BLOB */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_BLOB); }
        break;
      case 155: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy248 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
        break;
      case 156: /* type_name ::= DECIMAL */
{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
        break;
      case 157: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy248 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
        break;
      case 158: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy248 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
        break;
      case 160: /* tags_def_opt ::= tags_def */
      case 337: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==337);
      case 392: /* select_list ::= select_sublist */ yytestcase(yyruleno==392);
{ yylhsminor.yy60 = yymsp[0].minor.yy60; }
  yymsp[0].minor.yy60 = yylhsminor.yy60;
        break;
      case 161: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
{ yymsp[-3].minor.yy60 = yymsp[-1].minor.yy60; }
        break;
      case 162: /* table_options ::= */
{ yymsp[1].minor.yy172 = createDefaultTableOptions(pCxt); }
        break;
      case 163: /* table_options ::= table_options COMMENT NK_STRING */
{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-2].minor.yy172, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 164: /* table_options ::= table_options DELAY NK_INTEGER */
{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-2].minor.yy172, TABLE_OPTION_DELAY, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 165: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */
{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-2].minor.yy172, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 166: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */
{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-4].minor.yy172, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy60); }
  yymsp[-4].minor.yy172 = yylhsminor.yy172;
        break;
      case 167: /* table_options ::= table_options TTL NK_INTEGER */
{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-2].minor.yy172, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 168: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-4].minor.yy172, TABLE_OPTION_SMA, yymsp[-1].minor.yy60); }
  yymsp[-4].minor.yy172 = yylhsminor.yy172;
        break;
      case 169: /* alter_table_options ::= alter_table_option */
{ yylhsminor.yy172 = createAlterTableOptions(pCxt); yylhsminor.yy172 = setTableOption(pCxt, yylhsminor.yy172, yymsp[0].minor.yy609.type, &yymsp[0].minor.yy609.val); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 170: /* alter_table_options ::= alter_table_options alter_table_option */
{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-1].minor.yy172, yymsp[0].minor.yy609.type, &yymsp[0].minor.yy609.val); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 171: /* alter_table_option ::= COMMENT NK_STRING */
{ yymsp[-1].minor.yy609.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; }
        break;
      case 172: /* alter_table_option ::= TTL NK_INTEGER */
{ yymsp[-1].minor.yy609.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; }
        break;
      case 175: /* col_name ::= column_name */
{ yylhsminor.yy172 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy105); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 176: /* cmd ::= SHOW DNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); }
        break;
      case 177: /* cmd ::= SHOW USERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); }
        break;
      case 178: /* cmd ::= SHOW DATABASES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); }
        break;
      case 179: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy172, yymsp[0].minor.yy172); }
        break;
      case 180: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy172, yymsp[0].minor.yy172); }
        break;
      case 181: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy172, NULL); }
        break;
      case 182: /* cmd ::= SHOW MNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); }
        break;
      case 183: /* cmd ::= SHOW MODULES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); }
        break;
      case 184: /* cmd ::= SHOW QNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); }
        break;
      case 185: /* cmd ::= SHOW FUNCTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); }
        break;
      case 186: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy172, yymsp[0].minor.yy172); }
        break;
      case 187: /* cmd ::= SHOW STREAMS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); }
        break;
      case 188: /* cmd ::= SHOW ACCOUNTS */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
        break;
      case 189: /* cmd ::= SHOW APPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT, NULL, NULL); }
        break;
      case 190: /* cmd ::= SHOW CONNECTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT, NULL, NULL); }
        break;
      case 191: /* cmd ::= SHOW LICENCE */
      case 192: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==192);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT, NULL, NULL); }
        break;
      case 193: /* cmd ::= SHOW CREATE DATABASE db_name */
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy105); }
        break;
      case 194: /* cmd ::= SHOW CREATE TABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy172); }
        break;
      case 195: /* cmd ::= SHOW CREATE STABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy172); }
        break;
      case 196: /* cmd ::= SHOW QUERIES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); }
        break;
      case 197: /* cmd ::= SHOW SCORES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT, NULL, NULL); }
        break;
      case 198: /* cmd ::= SHOW TOPICS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT, NULL, NULL); }
        break;
      case 199: /* cmd ::= SHOW VARIABLES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); }
        break;
      case 200: /* cmd ::= SHOW BNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); }
        break;
      case 201: /* cmd ::= SHOW SNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); }
        break;
      case 202: /* cmd ::= SHOW CLUSTER */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT, NULL, NULL); }
        break;
      case 203: /* cmd ::= SHOW TRANSACTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT, NULL, NULL); }
        break;
      case 204: /* db_name_cond_opt ::= */
      case 209: /* from_db_opt ::= */ yytestcase(yyruleno==209);
{ yymsp[1].minor.yy172 = createDefaultDatabaseCondValue(pCxt); }
        break;
      case 205: /* db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy105); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 206: /* like_pattern_opt ::= */
      case 217: /* index_options ::= */ yytestcase(yyruleno==217);
      case 248: /* into_opt ::= */ yytestcase(yyruleno==248);
      case 399: /* where_clause_opt ::= */ yytestcase(yyruleno==399);
      case 403: /* twindow_clause_opt ::= */ yytestcase(yyruleno==403);
      case 408: /* sliding_opt ::= */ yytestcase(yyruleno==408);
      case 410: /* fill_opt ::= */ yytestcase(yyruleno==410);
      case 422: /* having_clause_opt ::= */ yytestcase(yyruleno==422);
      case 431: /* slimit_clause_opt ::= */ yytestcase(yyruleno==431);
      case 435: /* limit_clause_opt ::= */ yytestcase(yyruleno==435);
{ yymsp[1].minor.yy172 = NULL; }
        break;
      case 207: /* like_pattern_opt ::= LIKE NK_STRING */
{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
        break;
      case 208: /* table_name_cond ::= table_name */
{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy105); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 210: /* from_db_opt ::= FROM db_name */
{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy105); }
        break;
      case 213: /* func_name ::= function_name */
{ yylhsminor.yy172 = createFunctionNode(pCxt, &yymsp[0].minor.yy105, NULL); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 214: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy617, &yymsp[-3].minor.yy105, &yymsp[-1].minor.yy105, NULL, yymsp[0].minor.yy172); }
        break;
      case 215: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy617, &yymsp[-5].minor.yy105, &yymsp[-3].minor.yy105, yymsp[-1].minor.yy60, NULL); }
        break;
      case 216: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy617, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105); }
        break;
      case 218: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */
{ yymsp[-8].minor.yy172 = createIndexOption(pCxt, yymsp[-6].minor.yy60, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), NULL, yymsp[0].minor.yy172); }
        break;
      case 219: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */
{ yymsp[-10].minor.yy172 = createIndexOption(pCxt, yymsp[-8].minor.yy60, releaseRawExprNode(pCxt, yymsp[-4].minor.yy172), releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), yymsp[0].minor.yy172); }
        break;
      case 222: /* func ::= function_name NK_LP expression_list NK_RP */
{ yylhsminor.yy172 = createFunctionNode(pCxt, &yymsp[-3].minor.yy105, yymsp[-1].minor.yy60); }
  yymsp[-3].minor.yy172 = yylhsminor.yy172;
        break;
      case 223: /* cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression */
{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy617, &yymsp[-3].minor.yy105, yymsp[0].minor.yy172, NULL, yymsp[-2].minor.yy172); }
        break;
      case 224: /* cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name */
{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy617, &yymsp[-3].minor.yy105, NULL, &yymsp[0].minor.yy105, yymsp[-2].minor.yy172); }
        break;
      case 225: /* cmd ::= DROP TOPIC exists_opt topic_name */
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy105); }
        break;
      case 226: /* topic_options ::= */
{ yymsp[1].minor.yy172 = createTopicOptions(pCxt); }
        break;
      case 227: /* topic_options ::= topic_options WITH TABLE */
{ ((STopicOptions*)yymsp[-2].minor.yy172)->withTable = true; yylhsminor.yy172 = yymsp[-2].minor.yy172; }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 228: /* topic_options ::= topic_options WITH SCHEMA */
{ ((STopicOptions*)yymsp[-2].minor.yy172)->withSchema = true; yylhsminor.yy172 = yymsp[-2].minor.yy172; }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 229: /* topic_options ::= topic_options WITH TAG */
{ ((STopicOptions*)yymsp[-2].minor.yy172)->withTag = true; yylhsminor.yy172 = yymsp[-2].minor.yy172; }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 230: /* cmd ::= DESC full_table_name */
      case 231: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==231);
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy172); }
        break;
      case 232: /* cmd ::= RESET QUERY CACHE */
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
        break;
      case 233: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy617, yymsp[-1].minor.yy172, yymsp[0].minor.yy172); }
        break;
      case 235: /* analyze_opt ::= ANALYZE */
      case 243: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==243);
      case 389: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==389);
{ yymsp[0].minor.yy617 = true; }
        break;
      case 236: /* explain_options ::= */
{ yymsp[1].minor.yy172 = createDefaultExplainOptions(pCxt); }
        break;
      case 237: /* explain_options ::= explain_options VERBOSE NK_BOOL */
{ yylhsminor.yy172 = setExplainVerbose(pCxt, yymsp[-2].minor.yy172, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 238: /* explain_options ::= explain_options RATIO NK_FLOAT */
{ yylhsminor.yy172 = setExplainRatio(pCxt, yymsp[-2].minor.yy172, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 239: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */
{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy60); }
        break;
      case 240: /* 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.yy617, yymsp[-8].minor.yy617, &yymsp[-5].minor.yy105, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy248, yymsp[0].minor.yy140); }
        break;
      case 241: /* cmd ::= DROP FUNCTION exists_opt function_name */
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy105); }
        break;
      case 244: /* bufsize_opt ::= */
{ yymsp[1].minor.yy140 = 0; }
        break;
      case 245: /* bufsize_opt ::= BUFSIZE NK_INTEGER */
{ yymsp[-1].minor.yy140 = strtol(yymsp[0].minor.yy0.z, NULL, 10); }
        break;
      case 246: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy617, &yymsp[-4].minor.yy105, yymsp[-2].minor.yy172, yymsp[-3].minor.yy172, yymsp[0].minor.yy172); }
        break;
      case 247: /* cmd ::= DROP STREAM exists_opt stream_name */
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy105); }
        break;
      case 249: /* into_opt ::= INTO full_table_name */
      case 370: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==370);
      case 400: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==400);
      case 423: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==423);
{ yymsp[-1].minor.yy172 = yymsp[0].minor.yy172; }
        break;
      case 250: /* stream_options ::= */
{ yymsp[1].minor.yy172 = createStreamOptions(pCxt); }
        break;
      case 251: /* stream_options ::= stream_options TRIGGER AT_ONCE */
{ ((SStreamOptions*)yymsp[-2].minor.yy172)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy172 = yymsp[-2].minor.yy172; }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 252: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
{ ((SStreamOptions*)yymsp[-2].minor.yy172)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy172 = yymsp[-2].minor.yy172; }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 253: /* stream_options ::= stream_options WATERMARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy172)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy172); yylhsminor.yy172 = yymsp[-2].minor.yy172; }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 254: /* cmd ::= KILL CONNECTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
        break;
      case 255: /* cmd ::= KILL QUERY NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_QUERY_STMT, &yymsp[0].minor.yy0); }
        break;
      case 256: /* cmd ::= KILL TRANSACTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
        break;
      case 257: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
      case 258: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy60); }
        break;
      case 259: /* cmd ::= SPLIT VGROUP NK_INTEGER */
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
        break;
      case 260: /* dnode_list ::= DNODE NK_INTEGER */
{ yymsp[-1].minor.yy60 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
        break;
      case 262: /* cmd ::= SYNCDB db_name REPLICA */
{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy105); }
        break;
      case 264: /* literal ::= NK_INTEGER */
{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 265: /* literal ::= NK_FLOAT */
{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 266: /* literal ::= NK_STRING */
{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 267: /* literal ::= NK_BOOL */
{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 268: /* literal ::= TIMESTAMP NK_STRING */
{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 269: /* literal ::= duration_literal */
      case 279: /* signed_literal ::= signed */ yytestcase(yyruleno==279);
      case 298: /* expression ::= literal */ yytestcase(yyruleno==298);
      case 299: /* expression ::= pseudo_column */ yytestcase(yyruleno==299);
      case 300: /* expression ::= column_reference */ yytestcase(yyruleno==300);
      case 301: /* expression ::= function_expression */ yytestcase(yyruleno==301);
      case 302: /* expression ::= subquery */ yytestcase(yyruleno==302);
      case 326: /* function_expression ::= literal_func */ yytestcase(yyruleno==326);
      case 362: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==362);
      case 366: /* boolean_primary ::= predicate */ yytestcase(yyruleno==366);
      case 368: /* common_expression ::= expression */ yytestcase(yyruleno==368);
      case 369: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==369);
      case 371: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==371);
      case 373: /* table_reference ::= table_primary */ yytestcase(yyruleno==373);
      case 374: /* table_reference ::= joined_table */ yytestcase(yyruleno==374);
      case 378: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==378);
      case 425: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==425);
      case 428: /* query_primary ::= query_specification */ yytestcase(yyruleno==428);
{ yylhsminor.yy172 = yymsp[0].minor.yy172; }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 270: /* literal ::= NULL */
{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 271: /* literal ::= NK_QUESTION */
{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 272: /* duration_literal ::= NK_VARIABLE */
{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 273: /* signed ::= NK_INTEGER */
{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 274: /* signed ::= NK_PLUS NK_INTEGER */
{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
        break;
      case 275: /* 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.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
                                                                                  }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 276: /* signed ::= NK_FLOAT */
{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 277: /* signed ::= NK_PLUS NK_FLOAT */
{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
        break;
      case 278: /* 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.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
                                                                                  }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 280: /* signed_literal ::= NK_STRING */
{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 281: /* signed_literal ::= NK_BOOL */
{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 282: /* signed_literal ::= TIMESTAMP NK_STRING */
{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
        break;
      case 283: /* signed_literal ::= duration_literal */
      case 285: /* signed_literal ::= literal_func */ yytestcase(yyruleno==285);
      case 340: /* star_func_para ::= expression */ yytestcase(yyruleno==340);
      case 395: /* select_item ::= common_expression */ yytestcase(yyruleno==395);
      case 440: /* search_condition ::= common_expression */ yytestcase(yyruleno==440);
{ yylhsminor.yy172 = releaseRawExprNode(pCxt, yymsp[0].minor.yy172); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 284: /* signed_literal ::= NULL */
{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 303: /* expression ::= NK_LP expression NK_RP */
      case 367: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==367);
{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy172)); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 304: /* expression ::= NK_PLUS expression */
{
                                                                                    SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy172));
                                                                                  }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 305: /* expression ::= NK_MINUS expression */
{
                                                                                    SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy172), NULL));
                                                                                  }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 306: /* expression ::= expression NK_PLUS expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); 
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 307: /* expression ::= expression NK_MINUS expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); 
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 308: /* expression ::= expression NK_STAR expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); 
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 309: /* expression ::= expression NK_SLASH expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); 
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 310: /* expression ::= expression NK_REM expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); 
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 311: /* expression ::= column_reference NK_ARROW NK_STRING */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); 
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 312: /* expression_list ::= expression */
{ yylhsminor.yy60 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy172)); }
  yymsp[0].minor.yy60 = yylhsminor.yy60;
        break;
      case 313: /* expression_list ::= expression_list NK_COMMA expression */
{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, releaseRawExprNode(pCxt, yymsp[0].minor.yy172)); }
  yymsp[-2].minor.yy60 = yylhsminor.yy60;
        break;
      case 314: /* column_reference ::= column_name */
{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy105, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy105)); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 315: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105, createColumnNode(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105)); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 316: /* pseudo_column ::= ROWTS */
      case 317: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==317);
      case 318: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==318);
      case 319: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==319);
      case 320: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==320);
      case 321: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==321);
      case 322: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==322);
      case 328: /* literal_func ::= NOW */ yytestcase(yyruleno==328);
{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
  yymsp[0].minor.yy172 = yylhsminor.yy172;
        break;
      case 323: /* function_expression ::= function_name NK_LP expression_list NK_RP */
      case 324: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==324);
{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy105, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy105, yymsp[-1].minor.yy60)); }
  yymsp[-3].minor.yy172 = yylhsminor.yy172;
        break;
      case 325: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */
{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), yymsp[-1].minor.yy248)); }
  yymsp[-5].minor.yy172 = yylhsminor.yy172;
        break;
      case 327: /* literal_func ::= noarg_func NK_LP NK_RP */
{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy105, NULL)); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 336: /* star_func_para_list ::= NK_STAR */
{ yylhsminor.yy60 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy60 = yylhsminor.yy60;
        break;
      case 341: /* star_func_para ::= table_name NK_DOT NK_STAR */
      case 398: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==398);
{ yylhsminor.yy172 = createColumnNode(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 342: /* predicate ::= expression compare_op expression */
      case 347: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==347);
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy572, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172)));
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 343: /* predicate ::= expression BETWEEN expression AND expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy172), releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172)));
                                                                                  }
  yymsp[-4].minor.yy172 = yylhsminor.yy172;
        break;
      case 344: /* predicate ::= expression NOT BETWEEN expression AND expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy172), releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172)));
                                                                                  }
  yymsp[-5].minor.yy172 = yylhsminor.yy172;
        break;
      case 345: /* predicate ::= expression IS NULL */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), NULL));
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 346: /* predicate ::= expression IS NOT NULL */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), NULL));
                                                                                  }
  yymsp[-3].minor.yy172 = yylhsminor.yy172;
        break;
      case 348: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy572 = OP_TYPE_LOWER_THAN; }
        break;
      case 349: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy572 = OP_TYPE_GREATER_THAN; }
        break;
      case 350: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy572 = OP_TYPE_LOWER_EQUAL; }
        break;
      case 351: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy572 = OP_TYPE_GREATER_EQUAL; }
        break;
      case 352: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy572 = OP_TYPE_NOT_EQUAL; }
        break;
      case 353: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy572 = OP_TYPE_EQUAL; }
        break;
      case 354: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy572 = OP_TYPE_LIKE; }
        break;
      case 355: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy572 = OP_TYPE_NOT_LIKE; }
        break;
      case 356: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy572 = OP_TYPE_MATCH; }
        break;
      case 357: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy572 = OP_TYPE_NMATCH; }
        break;
      case 358: /* compare_op ::= CONTAINS */
{ yymsp[0].minor.yy572 = OP_TYPE_JSON_CONTAINS; }
        break;
      case 359: /* in_op ::= IN */
{ yymsp[0].minor.yy572 = OP_TYPE_IN; }
        break;
      case 360: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy572 = OP_TYPE_NOT_IN; }
        break;
      case 361: /* in_predicate_value ::= NK_LP expression_list NK_RP */
{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy60)); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 363: /* boolean_value_expression ::= NOT boolean_primary */
{
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy172), NULL));
                                                                                  }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 364: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172)));
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 365: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172);
                                                                                    yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172)));
                                                                                  }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 372: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy172 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy172, yymsp[0].minor.yy172, NULL); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 375: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy172 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy105, &yymsp[0].minor.yy105); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 376: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy172 = createRealTableNode(pCxt, &yymsp[-3].minor.yy105, &yymsp[-1].minor.yy105, &yymsp[0].minor.yy105); }
  yymsp[-3].minor.yy172 = yylhsminor.yy172;
        break;
      case 377: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy172 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy172), &yymsp[0].minor.yy105); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 379: /* alias_opt ::= */
{ yymsp[1].minor.yy105 = nil_token;  }
        break;
      case 380: /* alias_opt ::= table_alias */
{ yylhsminor.yy105 = yymsp[0].minor.yy105; }
  yymsp[0].minor.yy105 = yylhsminor.yy105;
        break;
      case 381: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy105 = yymsp[0].minor.yy105; }
        break;
      case 382: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
      case 383: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==383);
{ yymsp[-2].minor.yy172 = yymsp[-1].minor.yy172; }
        break;
      case 384: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ yylhsminor.yy172 = createJoinTableNode(pCxt, yymsp[-4].minor.yy636, yymsp[-5].minor.yy172, yymsp[-2].minor.yy172, yymsp[0].minor.yy172); }
  yymsp[-5].minor.yy172 = yylhsminor.yy172;
        break;
      case 385: /* join_type ::= */
{ yymsp[1].minor.yy636 = JOIN_TYPE_INNER; }
        break;
      case 386: /* join_type ::= INNER */
{ yymsp[0].minor.yy636 = JOIN_TYPE_INNER; }
        break;
      case 387: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
{ 
                                                                                    yymsp[-8].minor.yy172 = createSelectStmt(pCxt, yymsp[-7].minor.yy617, yymsp[-6].minor.yy60, yymsp[-5].minor.yy172);
                                                                                    yymsp[-8].minor.yy172 = addWhereClause(pCxt, yymsp[-8].minor.yy172, yymsp[-4].minor.yy172);
                                                                                    yymsp[-8].minor.yy172 = addPartitionByClause(pCxt, yymsp[-8].minor.yy172, yymsp[-3].minor.yy60);
                                                                                    yymsp[-8].minor.yy172 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy172, yymsp[-2].minor.yy172);
                                                                                    yymsp[-8].minor.yy172 = addGroupByClause(pCxt, yymsp[-8].minor.yy172, yymsp[-1].minor.yy60);
                                                                                    yymsp[-8].minor.yy172 = addHavingClause(pCxt, yymsp[-8].minor.yy172, yymsp[0].minor.yy172);
                                                                                  }
        break;
      case 390: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy617 = false; }
        break;
      case 391: /* select_list ::= NK_STAR */
{ yymsp[0].minor.yy60 = NULL; }
        break;
      case 396: /* select_item ::= common_expression column_alias */
{ yylhsminor.yy172 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy172), &yymsp[0].minor.yy105); }
  yymsp[-1].minor.yy172 = yylhsminor.yy172;
        break;
      case 397: /* select_item ::= common_expression AS column_alias */
{ yylhsminor.yy172 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), &yymsp[0].minor.yy105); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 402: /* partition_by_clause_opt ::= PARTITION BY expression_list */
      case 419: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==419);
      case 430: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==430);
{ yymsp[-2].minor.yy60 = yymsp[0].minor.yy60; }
        break;
      case 404: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
{ yymsp[-5].minor.yy172 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), releaseRawExprNode(pCxt, yymsp[-1].minor.yy172)); }
        break;
      case 405: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */
{ yymsp[-3].minor.yy172 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy172)); }
        break;
      case 406: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy172 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), NULL, yymsp[-1].minor.yy172, yymsp[0].minor.yy172); }
        break;
      case 407: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-7].minor.yy172 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy172), releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), yymsp[-1].minor.yy172, yymsp[0].minor.yy172); }
        break;
      case 409: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
{ yymsp[-3].minor.yy172 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy172); }
        break;
      case 411: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy172 = createFillNode(pCxt, yymsp[-1].minor.yy202, NULL); }
        break;
      case 412: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */
{ yymsp[-5].minor.yy172 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy60)); }
        break;
      case 413: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy202 = FILL_MODE_NONE; }
        break;
      case 414: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy202 = FILL_MODE_PREV; }
        break;
      case 415: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy202 = FILL_MODE_NULL; }
        break;
      case 416: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy202 = FILL_MODE_LINEAR; }
        break;
      case 417: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy202 = FILL_MODE_NEXT; }
        break;
      case 420: /* group_by_list ::= expression */
{ yylhsminor.yy60 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); }
  yymsp[0].minor.yy60 = yylhsminor.yy60;
        break;
      case 421: /* group_by_list ::= group_by_list NK_COMMA expression */
{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); }
  yymsp[-2].minor.yy60 = yylhsminor.yy60;
        break;
      case 424: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */
{ 
                                                                                    yylhsminor.yy172 = addOrderByClause(pCxt, yymsp[-3].minor.yy172, yymsp[-2].minor.yy60);
                                                                                    yylhsminor.yy172 = addSlimitClause(pCxt, yylhsminor.yy172, yymsp[-1].minor.yy172);
                                                                                    yylhsminor.yy172 = addLimitClause(pCxt, yylhsminor.yy172, yymsp[0].minor.yy172);
                                                                                  }
  yymsp[-3].minor.yy172 = yylhsminor.yy172;
        break;
      case 426: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */
{ yylhsminor.yy172 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy172, yymsp[0].minor.yy172); }
  yymsp[-3].minor.yy172 = yylhsminor.yy172;
        break;
      case 427: /* query_expression_body ::= query_expression_body UNION query_expression_body */
{ yylhsminor.yy172 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy172, yymsp[0].minor.yy172); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 432: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
      case 436: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==436);
{ yymsp[-1].minor.yy172 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
        break;
      case 433: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
      case 437: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==437);
{ yymsp[-3].minor.yy172 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
        break;
      case 434: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
      case 438: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==438);
{ yymsp[-3].minor.yy172 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
        break;
      case 439: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy172); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 443: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy172 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), yymsp[-1].minor.yy14, yymsp[0].minor.yy17); }
  yymsp[-2].minor.yy172 = yylhsminor.yy172;
        break;
      case 444: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy14 = ORDER_ASC; }
        break;
      case 445: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy14 = ORDER_ASC; }
        break;
      case 446: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy14 = ORDER_DESC; }
        break;
      case 447: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy17 = NULL_ORDER_DEFAULT; }
        break;
      case 448: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy17 = NULL_ORDER_FIRST; }
        break;
      case 449: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy17 = NULL_ORDER_LAST; }
        break;
      default:
        break;
/********** End reduce actions ************************************************/
  };
  assert( yyruleno<sizeof(yyRuleInfo)/sizeof(yyRuleInfo[0]) );
  yygoto = yyRuleInfo[yyruleno].lhs;
  yysize = yyRuleInfo[yyruleno].nrhs;
  yyact = yy_find_reduce_action(yymsp[yysize].stateno,(YYCODETYPE)yygoto);

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

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

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

/*
** The following code executes when the parse fails
*/
#ifndef YYNOERRORRECOVERY
static void yy_parse_failed(
  yyParser *yypParser           /* The parser */
){
  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);
    }
  }
/************ 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
  if( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) ){
    return yyFallback[iToken];
  }
#else
  (void)iToken;
#endif
  return 0;
}
