/* This file is automatically generated by Lemon from input grammar
** source file "sql.y". */
/*
** 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:
*/
/************ Begin %include sections from the grammar ************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>

#define ALLOW_FORBID_FUNC

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

#define YYSTACKDEPTH 0
/**************** End of %include directives **********************************/
/* These constants specify the various numeric values for terminal symbols.
***************** Begin token definitions *************************************/
#ifndef TK_OR
#define TK_OR                              1
#define TK_AND                             2
#define TK_UNION                           3
#define TK_ALL                             4
#define TK_MINUS                           5
#define TK_EXCEPT                          6
#define TK_INTERSECT                       7
#define TK_NK_BITAND                       8
#define TK_NK_BITOR                        9
#define TK_NK_LSHIFT                      10
#define TK_NK_RSHIFT                      11
#define TK_NK_PLUS                        12
#define TK_NK_MINUS                       13
#define TK_NK_STAR                        14
#define TK_NK_SLASH                       15
#define TK_NK_REM                         16
#define TK_NK_CONCAT                      17
#define TK_CREATE                         18
#define TK_ACCOUNT                        19
#define TK_NK_ID                          20
#define TK_PASS                           21
#define TK_NK_STRING                      22
#define TK_ALTER                          23
#define TK_PPS                            24
#define TK_TSERIES                        25
#define TK_STORAGE                        26
#define TK_STREAMS                        27
#define TK_QTIME                          28
#define TK_DBS                            29
#define TK_USERS                          30
#define TK_CONNS                          31
#define TK_STATE                          32
#define TK_USER                           33
#define TK_ENABLE                         34
#define TK_NK_INTEGER                     35
#define TK_SYSINFO                        36
#define TK_DROP                           37
#define TK_GRANT                          38
#define TK_ON                             39
#define TK_TO                             40
#define TK_REVOKE                         41
#define TK_FROM                           42
#define TK_SUBSCRIBE                      43
#define TK_NK_COMMA                       44
#define TK_READ                           45
#define TK_WRITE                          46
#define TK_NK_DOT                         47
#define TK_WITH                           48
#define TK_DNODE                          49
#define TK_PORT                           50
#define TK_DNODES                         51
#define TK_RESTORE                        52
#define TK_NK_IPTOKEN                     53
#define TK_FORCE                          54
#define TK_UNSAFE                         55
#define TK_LOCAL                          56
#define TK_QNODE                          57
#define TK_BNODE                          58
#define TK_SNODE                          59
#define TK_MNODE                          60
#define TK_VNODE                          61
#define TK_DATABASE                       62
#define TK_USE                            63
#define TK_FLUSH                          64
#define TK_TRIM                           65
#define TK_COMPACT                        66
#define TK_IF                             67
#define TK_NOT                            68
#define TK_EXISTS                         69
#define TK_BUFFER                         70
#define TK_CACHEMODEL                     71
#define TK_CACHESIZE                      72
#define TK_COMP                           73
#define TK_DURATION                       74
#define TK_NK_VARIABLE                    75
#define TK_MAXROWS                        76
#define TK_MINROWS                        77
#define TK_KEEP                           78
#define TK_PAGES                          79
#define TK_PAGESIZE                       80
#define TK_TSDB_PAGESIZE                  81
#define TK_PRECISION                      82
#define TK_REPLICA                        83
#define TK_VGROUPS                        84
#define TK_SINGLE_STABLE                  85
#define TK_RETENTIONS                     86
#define TK_SCHEMALESS                     87
#define TK_WAL_LEVEL                      88
#define TK_WAL_FSYNC_PERIOD               89
#define TK_WAL_RETENTION_PERIOD           90
#define TK_WAL_RETENTION_SIZE             91
#define TK_WAL_ROLL_PERIOD                92
#define TK_WAL_SEGMENT_SIZE               93
#define TK_STT_TRIGGER                    94
#define TK_TABLE_PREFIX                   95
#define TK_TABLE_SUFFIX                   96
#define TK_NK_COLON                       97
#define TK_MAX_SPEED                      98
#define TK_START                          99
#define TK_TIMESTAMP                      100
#define TK_END                            101
#define TK_TABLE                          102
#define TK_NK_LP                          103
#define TK_NK_RP                          104
#define TK_STABLE                         105
#define TK_ADD                            106
#define TK_COLUMN                         107
#define TK_MODIFY                         108
#define TK_RENAME                         109
#define TK_TAG                            110
#define TK_SET                            111
#define TK_NK_EQ                          112
#define TK_USING                          113
#define TK_TAGS                           114
#define TK_BOOL                           115
#define TK_TINYINT                        116
#define TK_SMALLINT                       117
#define TK_INT                            118
#define TK_INTEGER                        119
#define TK_BIGINT                         120
#define TK_FLOAT                          121
#define TK_DOUBLE                         122
#define TK_BINARY                         123
#define TK_NCHAR                          124
#define TK_UNSIGNED                       125
#define TK_JSON                           126
#define TK_VARCHAR                        127
#define TK_MEDIUMBLOB                     128
#define TK_BLOB                           129
#define TK_VARBINARY                      130
#define TK_GEOMETRY                       131
#define TK_DECIMAL                        132
#define TK_COMMENT                        133
#define TK_MAX_DELAY                      134
#define TK_WATERMARK                      135
#define TK_ROLLUP                         136
#define TK_TTL                            137
#define TK_SMA                            138
#define TK_DELETE_MARK                    139
#define TK_FIRST                          140
#define TK_LAST                           141
#define TK_SHOW                           142
#define TK_PRIVILEGES                     143
#define TK_DATABASES                      144
#define TK_TABLES                         145
#define TK_STABLES                        146
#define TK_MNODES                         147
#define TK_QNODES                         148
#define TK_FUNCTIONS                      149
#define TK_INDEXES                        150
#define TK_ACCOUNTS                       151
#define TK_APPS                           152
#define TK_CONNECTIONS                    153
#define TK_LICENCES                       154
#define TK_GRANTS                         155
#define TK_QUERIES                        156
#define TK_SCORES                         157
#define TK_TOPICS                         158
#define TK_VARIABLES                      159
#define TK_CLUSTER                        160
#define TK_BNODES                         161
#define TK_SNODES                         162
#define TK_TRANSACTIONS                   163
#define TK_DISTRIBUTED                    164
#define TK_CONSUMERS                      165
#define TK_SUBSCRIPTIONS                  166
#define TK_VNODES                         167
#define TK_ALIVE                          168
#define TK_LIKE                           169
#define TK_TBNAME                         170
#define TK_QTAGS                          171
#define TK_AS                             172
#define TK_INDEX                          173
#define TK_FUNCTION                       174
#define TK_INTERVAL                       175
#define TK_COUNT                          176
#define TK_LAST_ROW                       177
#define TK_META                           178
#define TK_ONLY                           179
#define TK_TOPIC                          180
#define TK_CONSUMER                       181
#define TK_GROUP                          182
#define TK_DESC                           183
#define TK_DESCRIBE                       184
#define TK_RESET                          185
#define TK_QUERY                          186
#define TK_CACHE                          187
#define TK_EXPLAIN                        188
#define TK_ANALYZE                        189
#define TK_VERBOSE                        190
#define TK_NK_BOOL                        191
#define TK_RATIO                          192
#define TK_NK_FLOAT                       193
#define TK_OUTPUTTYPE                     194
#define TK_AGGREGATE                      195
#define TK_BUFSIZE                        196
#define TK_LANGUAGE                       197
#define TK_REPLACE                        198
#define TK_STREAM                         199
#define TK_INTO                           200
#define TK_PAUSE                          201
#define TK_RESUME                         202
#define TK_TRIGGER                        203
#define TK_AT_ONCE                        204
#define TK_WINDOW_CLOSE                   205
#define TK_IGNORE                         206
#define TK_EXPIRED                        207
#define TK_FILL_HISTORY                   208
#define TK_UPDATE                         209
#define TK_SUBTABLE                       210
#define TK_UNTREATED                      211
#define TK_KILL                           212
#define TK_CONNECTION                     213
#define TK_TRANSACTION                    214
#define TK_BALANCE                        215
#define TK_VGROUP                         216
#define TK_LEADER                         217
#define TK_MERGE                          218
#define TK_REDISTRIBUTE                   219
#define TK_SPLIT                          220
#define TK_DELETE                         221
#define TK_INSERT                         222
#define TK_NULL                           223
#define TK_NK_QUESTION                    224
#define TK_NK_ARROW                       225
#define TK_ROWTS                          226
#define TK_QSTART                         227
#define TK_QEND                           228
#define TK_QDURATION                      229
#define TK_WSTART                         230
#define TK_WEND                           231
#define TK_WDURATION                      232
#define TK_IROWTS                         233
#define TK_ISFILLED                       234
#define TK_CAST                           235
#define TK_NOW                            236
#define TK_TODAY                          237
#define TK_TIMEZONE                       238
#define TK_CLIENT_VERSION                 239
#define TK_SERVER_VERSION                 240
#define TK_SERVER_STATUS                  241
#define TK_CURRENT_USER                   242
#define TK_CASE                           243
#define TK_WHEN                           244
#define TK_THEN                           245
#define TK_ELSE                           246
#define TK_BETWEEN                        247
#define TK_IS                             248
#define TK_NK_LT                          249
#define TK_NK_GT                          250
#define TK_NK_LE                          251
#define TK_NK_GE                          252
#define TK_NK_NE                          253
#define TK_MATCH                          254
#define TK_NMATCH                         255
#define TK_CONTAINS                       256
#define TK_IN                             257
#define TK_JOIN                           258
#define TK_INNER                          259
#define TK_SELECT                         260
#define TK_DISTINCT                       261
#define TK_WHERE                          262
#define TK_PARTITION                      263
#define TK_BY                             264
#define TK_SESSION                        265
#define TK_STATE_WINDOW                   266
#define TK_EVENT_WINDOW                   267
#define TK_SLIDING                        268
#define TK_FILL                           269
#define TK_VALUE                          270
#define TK_VALUE_F                        271
#define TK_NONE                           272
#define TK_PREV                           273
#define TK_NULL_F                         274
#define TK_LINEAR                         275
#define TK_NEXT                           276
#define TK_HAVING                         277
#define TK_RANGE                          278
#define TK_EVERY                          279
#define TK_ORDER                          280
#define TK_SLIMIT                         281
#define TK_SOFFSET                        282
#define TK_LIMIT                          283
#define TK_OFFSET                         284
#define TK_ASC                            285
#define TK_NULLS                          286
#define TK_ABORT                          287
#define TK_AFTER                          288
#define TK_ATTACH                         289
#define TK_BEFORE                         290
#define TK_BEGIN                          291
#define TK_BITAND                         292
#define TK_BITNOT                         293
#define TK_BITOR                          294
#define TK_BLOCKS                         295
#define TK_CHANGE                         296
#define TK_COMMA                          297
#define TK_CONCAT                         298
#define TK_CONFLICT                       299
#define TK_COPY                           300
#define TK_DEFERRED                       301
#define TK_DELIMITERS                     302
#define TK_DETACH                         303
#define TK_DIVIDE                         304
#define TK_DOT                            305
#define TK_EACH                           306
#define TK_FAIL                           307
#define TK_FILE                           308
#define TK_FOR                            309
#define TK_GLOB                           310
#define TK_ID                             311
#define TK_IMMEDIATE                      312
#define TK_IMPORT                         313
#define TK_INITIALLY                      314
#define TK_INSTEAD                        315
#define TK_ISNULL                         316
#define TK_KEY                            317
#define TK_MODULES                        318
#define TK_NK_BITNOT                      319
#define TK_NK_SEMI                        320
#define TK_NOTNULL                        321
#define TK_OF                             322
#define TK_PLUS                           323
#define TK_PRIVILEGE                      324
#define TK_RAISE                          325
#define TK_RESTRICT                       326
#define TK_ROW                            327
#define TK_SEMI                           328
#define TK_STAR                           329
#define TK_STATEMENT                      330
#define TK_STRICT                         331
#define TK_STRING                         332
#define TK_TIMES                          333
#define TK_VALUES                         334
#define TK_VARIABLE                       335
#define TK_VIEW                           336
#define TK_WAL                            337
#endif
/**************** End 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 487
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE  SToken 
typedef union {
  int yyinit;
  ParseTOKENTYPE yy0;
  EJoinType yy140;
  SDataType yy310;
  STokenPair yy347;
  EOperatorType yy354;
  SAlterOption yy365;
  SToken yy371;
  ENullOrder yy399;
  int32_t yy416;
  SNode* yy452;
  int8_t yy475;
  bool yy667;
  EOrder yy690;
  int64_t yy729;
  SNodeList* yy812;
  EFillMode yy844;
} 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             791
#define YYNRULE              597
#define YYNRULE_WITH_ACTION  597
#define YYNTOKEN             338
#define YY_MAX_SHIFT         790
#define YY_MIN_SHIFTREDUCE   1171
#define YY_MAX_SHIFTREDUCE   1767
#define YY_ERROR_ACTION      1768
#define YY_ACCEPT_ACTION     1769
#define YY_NO_ACTION         1770
#define YY_MIN_REDUCE        1771
#define YY_MAX_REDUCE        2367
/************* 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 (2858)
static const YYACTIONTYPE yy_action[] = {
 /*     0 */  2111, 2178, 2156, 2067,  218,  681, 1948, 2139,  528, 1937,
 /*    10 */  1814,  661,   48,   46, 1694,  391, 2164, 1204, 2064,  668,
 /*    20 */   398, 2343, 1543,   41,   40,  132, 2160,   47,   45,   44,
 /*    30 */    43,   42,  565, 1624,  450, 1541, 2156,  530, 1570, 2196,
 /*    40 */    41,   40, 1769,  527,   47,   45,   44,   43,   42,  251,
 /*    50 */  1939, 2146, 1933,  697,  621,  522, 1206, 2338, 1209, 1210,
 /*    60 */  2160,  181, 1619,  520, 2162,  395,  516,  512,   19, 1229,
 /*    70 */    66, 1228, 2344,  188,  691, 1549,   30, 2339,  647,  345,
 /*    80 */   680,  366, 2050,  358,  137,  681, 1948, 2177, 1568, 2213,
 /*    90 */   658,  141,  109, 2179,  701, 2181, 2182,  696, 2162,  691,
 /*   100 */   787,  168, 1230,   15,  185,  132, 2266,  100,  691, 1889,
 /*   110 */   394, 2262,  570,  488, 2067,  413,   48,   46,  681, 1948,
 /*   120 */   412,  680, 1757,  190,  398,  261, 1543, 1653, 1362, 2065,
 /*   130 */   668, 2292, 1941, 1568,   38,  303, 1734, 1624,  193, 1541,
 /*   140 */  1626, 1627, 1794, 1353,  726,  725,  724, 1357,  723, 1359,
 /*   150 */  1360,  722,  719, 1793, 1368,  716, 1370, 1371,  713,  710,
 /*   160 */   707,  184,  621,   51,  646, 2338, 1619, 2338,   91,   62,
 /*   170 */  1599, 1609,   19, 1988,  209,  208, 1625, 1628, 2129, 1549,
 /*   180 */  2344,  188,  645,  188, 1654, 2339,  647, 2339,  647, 2281,
 /*   190 */   285, 1544, 2146, 1542,  283, 2274,  657,  487,  133,  656,
 /*   200 */   169, 2338, 1783, 2146,  787,   41,   40,   15, 2178,   47,
 /*   210 */    45,   44,   43,   42,   62, 2278,  645,  188,  698, 1306,
 /*   220 */   432, 2339,  647, 1547, 1548, 1771, 1598, 1601, 1602, 1603,
 /*   230 */  1604, 1605, 1606, 1607, 1608,  693,  689, 1617, 1618, 1620,
 /*   240 */  1621, 1622, 1623,    2, 1626, 1627, 2196,  434,  430,  131,
 /*   250 */   130,  129,  128,  127,  126,  125,  124,  123, 2146, 1308,
 /*   260 */   697, 1772,   37,  396, 1648, 1649, 1650, 1651, 1652, 1656,
 /*   270 */  1657, 1658, 1659,  525, 1599, 1609,  526, 1807,  666, 1568,
 /*   280 */  1625, 1628,  122, 1452, 1453,  121,  120,  119,  118,  117,
 /*   290 */   116,  115,  114,  113, 2177, 1544, 2213, 1542,  636,  109,
 /*   300 */  2179,  701, 2181, 2182,  696, 2046,  691, 2031,  392,  144,
 /*   310 */  1568,  151, 2237, 2266, 1569, 2178,  166,  394, 2262, 1229,
 /*   320 */   191, 1228,  658,  141, 1950,  661,  191, 1547, 1548, 1691,
 /*   330 */  1598, 1601, 1602, 1603, 1604, 1605, 1606, 1607, 1608,  693,
 /*   340 */   689, 1617, 1618, 1620, 1621, 1622, 1623,    2,   12,   48,
 /*   350 */    46,  201, 1230, 2196, 2001,  407,  406,  398,  542, 1543,
 /*   360 */  2343,  364,   62, 2338,  181, 2146, 1570,  697, 2046, 1999,
 /*   370 */  1624,  191, 1541,  583,  582,  581,  681, 1948, 1550, 2342,
 /*   380 */   573,  138,  577, 2339, 2341, 2051,  576,  640,  642,  637,
 /*   390 */   630,  575,  580,  374,  373,  427,   56,  574, 2046, 1619,
 /*   400 */   249, 2177,  620, 2213,  248,   19,  109, 2179,  701, 2181,
 /*   410 */  2182,  696, 1549,  691,  203, 2196,  294,  295,  185,  533,
 /*   420 */  2266,  293,  526, 1807,  394, 2262,  187, 2274, 2275, 2178,
 /*   430 */   139, 2279, 1212,  646, 1397, 1398, 2338,  787, 1567,  698,
 /*   440 */    15, 1816,   41,   40,  207, 2293,   47,   45,   44,   43,
 /*   450 */    42,  645,  188,   48,   46, 1629, 2339,  647,  220, 2178,
 /*   460 */  1600,  398,  528, 1543, 1814,   90,  468, 2196,  353,  698,
 /*   470 */   639,  378,  166,  599, 1624,  467, 1541, 1626, 1627, 2146,
 /*   480 */  1951,  697, 2343,  122,  641, 2338,  121,  120,  119,  118,
 /*   490 */   117,  116,  115,  114,  113, 2001,   62, 2196, 1792,  658,
 /*   500 */   141, 2342,  379, 1619, 1571, 2339, 2340, 1599, 1609, 2146,
 /*   510 */  1999,  697,  106, 1625, 1628, 2177, 1549, 2213,  285,  191,
 /*   520 */   109, 2179,  701, 2181, 2182,  696,   60,  691, 1544,  142,
 /*   530 */  1542,  569, 2358,  618, 2266,  568, 1553, 1940,  394, 2262,
 /*   540 */  1698,  787,  681, 1948,   49, 2177, 1568, 2213, 2146, 2178,
 /*   550 */   170, 2179,  701, 2181, 2182,  696,   12,  691,   10,  698,
 /*   560 */  1547, 1548,  448, 1598, 1601, 1602, 1603, 1604, 1605, 1606,
 /*   570 */  1607, 1608,  693,  689, 1617, 1618, 1620, 1621, 1622, 1623,
 /*   580 */     2, 1626, 1627,  442, 1317,  441, 1690, 2196,   41,   40,
 /*   590 */   622, 2303,   47,   45,   44,   43,   42, 1316, 1791, 2146,
 /*   600 */  1571,  697,  660,  186, 2274, 2275,  165,  139, 2279,  680,
 /*   610 */  1790, 1599, 1609,  681, 1948,  440,  403, 1625, 1628, 1994,
 /*   620 */  1996,   41,   40,  401, 1924,   47,   45,   44,   43,   42,
 /*   630 */    52,  163, 1544,  449, 1542, 2177,  667, 2213,  380, 1950,
 /*   640 */   109, 2179,  701, 2181, 2182,  696, 1999,  691, 2146, 2167,
 /*   650 */   444, 2178, 2241,  191, 2266,  443,  202, 2140,  394, 2262,
 /*   660 */  2146,  698,  497, 2300, 1547, 1548,  736, 1598, 1601, 1602,
 /*   670 */  1603, 1604, 1605, 1606, 1607, 1608,  693,  689, 1617, 1618,
 /*   680 */  1620, 1621, 1622, 1623,    2,   48,   46, 1925,  540, 2196,
 /*   690 */  2060,  736,   51,  398, 1567, 1543, 1600,  621,  658,  141,
 /*   700 */  2338, 2146, 2001,  697,  621, 2169, 1624, 2338, 1541,  388,
 /*   710 */    47,   45,   44,   43,   42, 2344,  188, 1999,  681, 1948,
 /*   720 */  2339,  647, 2344,  188,   44,   43,   42, 2339,  647,   14,
 /*   730 */    13, 1722,  606,  681, 1948, 1619,   12, 2177,  458, 2213,
 /*   740 */   588,  667,  109, 2179,  701, 2181, 2182,  696, 1549,  691,
 /*   750 */   681, 1948,  263,  473, 2358,  598, 2266, 1850,   41,   40,
 /*   760 */   394, 2262,   47,   45,   44,   43,   42, 2178, 1789,  247,
 /*   770 */   474, 1995, 1996,  787,  681, 1948,   49,  695,  633,  632,
 /*   780 */  1720, 1721, 1723, 1724, 1725,  591,  250,  191, 1549,   48,
 /*   790 */    46, 1923,  585,  665,  541, 2060, 1764,  398,  246, 1543,
 /*   800 */  2001, 1569,  189, 2274, 2275, 2196,  139, 2279, 1232, 1233,
 /*   810 */  1624, 2281, 1541, 1626, 1627, 2000,   87, 2146, 2146,  697,
 /*   820 */   734,  156,  155,  731,  730,  729,  153,  583,  582,  581,
 /*   830 */   561,  560, 1667,  368,  573,  138,  577, 2277,   70, 1619,
 /*   840 */   576,   69, 1943, 1599, 1609,  575,  580,  374,  373, 1625,
 /*   850 */  1628,  574, 1549, 2177, 1733, 2213, 1514, 1515,  339, 2179,
 /*   860 */   701, 2181, 2182,  696, 1544,  691, 1542, 2232,   41,   40,
 /*   870 */  1788, 1935,   47,   45,   44,   43,   42,  787,  563,  562,
 /*   880 */    15, 2178,  734,  156,  155,  731,  730,  729,  153, 1787,
 /*   890 */   604,  698,  205, 2313, 1786,  746, 1547, 1548, 1763, 1598,
 /*   900 */  1601, 1602, 1603, 1604, 1605, 1606, 1607, 1608,  693,  689,
 /*   910 */  1617, 1618, 1620, 1621, 1622, 1623,    2, 1626, 1627, 2196,
 /*   920 */  2146, 1469, 1470,  597,  734,  156,  155,  731,  730,  729,
 /*   930 */   153, 2146,   84,  697, 2001,   83,  595,  621,  593, 2146,
 /*   940 */  2338,  393,  681, 1948, 2146,  681, 1948, 1599, 1609, 1999,
 /*   950 */  1931,  681, 1948, 1625, 1628, 2344,  188, 1468, 1471, 1952,
 /*   960 */  2339,  647, 1945,  143, 1710,  252, 2237, 2177, 1544, 2213,
 /*   970 */  1542,  260,  109, 2179,  701, 2181, 2182,  696,    9,  691,
 /*   980 */   579,  578,   34, 1785, 2358, 1321, 2266,  667,   41,   40,
 /*   990 */   394, 2262,   47,   45,   44,   43,   42, 1782, 1320, 2342,
 /*  1000 */  1547, 1548, 1847, 1598, 1601, 1602, 1603, 1604, 1605, 1606,
 /*  1010 */  1607, 1608,  693,  689, 1617, 1618, 1620, 1621, 1622, 1623,
 /*  1020 */     2, 1634,  349,  167, 1566,  681, 1948, 1568,  324,  681,
 /*  1030 */  1948,  481,  728, 2146,  495, 1992,  571,  494, 2156,  676,
 /*  1040 */   401, 2060,  321,   73, 2001,  664,   72, 2146,  166,  298,
 /*  1050 */  1571,  402, 2165,  464,  662,  496, 1950,  346, 1304, 1999,
 /*  1060 */   466, 1781, 2160,  499, 1780,  758,  756, 1779,  216,  507,
 /*  1070 */   505,  502,  764,  763,  762,  761,  410,  572,  760,  759,
 /*  1080 */   145,  754,  753,  752,  751,  750,  749,  748,  158,  744,
 /*  1090 */   743,  742,  409,  408,  739,  738,  737,  176,  175, 1302,
 /*  1100 */  2162,  621,  681, 1948, 2338,  404,  367,  234,   62,  371,
 /*  1110 */   691, 2146, 2281,  166, 2146,  681, 1948, 2146,  454, 2344,
 /*  1120 */   188, 1950,  678,  173, 2339,  647,  681, 1948,  650,  681,
 /*  1130 */  1948,  559,  555,  551,  547,  679,  233, 1778, 2276,  683,
 /*  1140 */  1655, 2238,   87, 2132, 1777, 1776,  304,  108,  492,  405,
 /*  1150 */   154,  486,  485,  484,  483,  480,  479,  478,  477,  476,
 /*  1160 */   472,  471,  470,  469,  348,  461,  460,  459, 1944,  456,
 /*  1170 */   455,  365,  685,   54, 2238,    3,   88, 1600,  372,  231,
 /*  1180 */   370,  369,  147,  567,  134, 1775, 1774, 2146,   81,   80,
 /*  1190 */   447, 2178,  420,  200, 2146, 2146,  732,  733, 1687, 1992,
 /*  1200 */  1992,  698,  262,  628,  653,  569,  439,  437,  317,  568,
 /*  1210 */    55, 1978,  747, 1209, 1210, 1910,   74,  347,   35, 1926,
 /*  1220 */   428, 1552, 2178,  426,  422,  418,  415,  440, 1660, 2196,
 /*  1230 */  2286, 1687,  698,  451, 2331, 2146, 2146,  239,  154,  241,
 /*  1240 */   237, 2146,  240,  697,  688,  154,  452,  230,  224, 1834,
 /*  1250 */  1766, 1767, 2178,  243,  229,  538,  242, 1551,  245, 1825,
 /*  1260 */  2196,  244,  698,  149, 2285,  191,   82,  601,   50,  600,
 /*  1270 */    50,  584, 2146,  222,  697, 1823,  649, 2177,  105, 2213,
 /*  1280 */   727,  586,  109, 2179,  701, 2181, 2182,  696,  102,  691,
 /*  1290 */  2196,  267,   14,   13, 2358, 1263, 2266,  589, 1509,  154,
 /*  1300 */   394, 2262, 2146,  256,  697, 1512, 1817,   50, 2177,  692,
 /*  1310 */  2213,  740,  741,  109, 2179,  701, 2181, 2182,  696, 1890,
 /*  1320 */   691,  291,   71,  259, 1543, 2358,  152, 2266, 1719,  154,
 /*  1330 */  1718,  394, 2262, 1282, 1280, 1264,   64, 1541, 2177, 1784,
 /*  1340 */  2213, 2306, 2178,  109, 2179,  701, 2181, 2182,  696,   50,
 /*  1350 */   691,  269,  698,  407,  406, 2358,  782, 2266,   36,  663,
 /*  1360 */   280,  394, 2262, 1557,   41,   40,  651, 1466,   47,   45,
 /*  1370 */    44,   43,   42, 2178, 1624,  634, 1550, 1549,  136, 1555,
 /*  1380 */  2196,  296,  673,  698,  274, 1888,  300, 1887, 2197, 1347,
 /*  1390 */   411,  381, 2146,   50,  697,  705, 1661,  152,  154, 1645,
 /*  1400 */  2055, 1808,  787, 1619, 1813, 1989,  659, 2296,  282, 1610,
 /*  1410 */  2178, 2196,  135,  152,  279, 1554, 1549,    1,    5,  419,
 /*  1420 */   698,  362,  414, 2146, 1574,  697,  435,  196, 2177,  436,
 /*  1430 */  2213, 1490,  438,  109, 2179,  701, 2181, 2182,  696,  195,
 /*  1440 */   691,  687,  198,  311,  654, 2239,  453, 2266, 2196,  206,
 /*  1450 */  1571,  394, 2262,  316,  457, 1375, 2056, 1379, 1386, 2177,
 /*  1460 */  2146, 2213,  697,  490,  109, 2179,  701, 2181, 2182,  696,
 /*  1470 */  1566,  691, 1384,  157,  462,  475,  684, 2048, 2266,  482,
 /*  1480 */   500,  489,  394, 2262,  491,  501,  498,  211,  210,  503,
 /*  1490 */   504,  213,  506, 1544,  508, 1542, 2177, 1572, 2213, 2178,
 /*  1500 */   523,  110, 2179,  701, 2181, 2182,  696,    4,  691,  698,
 /*  1510 */   524,  532,  531,  534,  221, 2266, 1569,  535,  223, 2265,
 /*  1520 */  2262, 1573,  536, 1575,  537, 1547, 1548,  564,  543,  539,
 /*  1530 */   226,  228, 1558,   85, 1553,  111,  352, 2196,   86,  232,
 /*  1540 */   566, 1938,  603, 2120,  236, 2117, 1934,   89, 2178, 2146,
 /*  1550 */  1497,  697,  238,  605,  609,  312,  150,  253,  698,  610,
 /*  1560 */   159,  160, 1936,  608, 1561, 1563, 1932,  161,  162,  255,
 /*  1570 */   257,  614,  635,  616, 2178, 2312,  671,  689, 1617, 1618,
 /*  1580 */  1620, 1621, 1622, 1623,  695, 2177, 2196, 2213, 2116,  613,
 /*  1590 */   110, 2179,  701, 2181, 2182,  696, 2297,  691, 2146, 2307,
 /*  1600 */   697,  625,  615,  631, 2266,  265,  384,  638,  686, 2262,
 /*  1610 */   268,    8, 2196,  644, 2311, 2288,  174,  273,  626,  385,
 /*  1620 */   624,  623, 2361,  655, 2146, 2178,  697,  140,  652, 1570,
 /*  1630 */   278, 1687,  178, 1576,  699,  698, 2213, 2282, 2178,  110,
 /*  1640 */  2179,  701, 2181, 2182,  696,  286,  691,   95,  698, 2061,
 /*  1650 */   313, 1949,  669, 2266,  314,  670,  276,  357, 2262, 2075,
 /*  1660 */  2177, 2074, 2213, 2196, 2073,  339, 2179,  701, 2181, 2182,
 /*  1670 */   696,  694,  691,  682, 2231, 2146, 2196,  697,  390,  674,
 /*  1680 */   275,  277, 2337,   97,  281,  315,  675, 2178, 2146,   61,
 /*  1690 */   697,  101,   99, 1911,  703, 2247,  783,  698, 1993,  322,
 /*  1700 */   318,  307,  354,  784, 2178,  786,  320, 2138,   53,  327,
 /*  1710 */   341, 2177,   78, 2213,  698, 2137,  171, 2179,  701, 2181,
 /*  1720 */  2182,  696,  355,  691, 2177, 2196, 2213, 2136, 2133,  110,
 /*  1730 */  2179,  701, 2181, 2182,  696,  342,  691, 2146,  331,  697,
 /*  1740 */   416,  417, 2196, 2266, 1534, 1535,  194,  382, 2263,  421,
 /*  1750 */  2131,  423,  424, 2178, 2146,  425,  697, 2130,  363, 2128,
 /*  1760 */   429, 2127,  431,  698, 2126,  433, 1525,  648, 2359, 2107,
 /*  1770 */   197, 2106,  199, 2177,   79, 2213, 1493, 2178,  170, 2179,
 /*  1780 */   701, 2181, 2182,  696, 1492,  691, 2088,  698, 2087, 2086,
 /*  1790 */  2177, 2196, 2213,  445,  446,  340, 2179,  701, 2181, 2182,
 /*  1800 */   696, 2085,  691, 2146, 2178,  697, 2084, 1443, 2039, 2038,
 /*  1810 */  2036, 2035,  146, 2034,  698, 2196, 2037, 2033, 2032, 2304,
 /*  1820 */   383, 2030, 2029, 2028, 2178,  204,  463, 2146, 2027,  697,
 /*  1830 */   465, 2041, 2026, 2025,  698, 2024, 2023, 2022, 2021, 2177,
 /*  1840 */   148, 2213, 2196, 2020,  333, 2179,  701, 2181, 2182,  696,
 /*  1850 */  2019,  691, 2018, 2017, 2146, 2016,  697, 2015, 2014, 2013,
 /*  1860 */  2012, 2011, 2196, 2177, 2010, 2213, 2009,  389,  340, 2179,
 /*  1870 */   701, 2181, 2182,  696, 2146,  691,  697,  493, 1445, 2006,
 /*  1880 */  2005, 2004, 2003, 2002, 1318, 1322, 1853,  643, 2040, 2008,
 /*  1890 */  2177, 2178, 2213, 2007,  350,  171, 2179,  701, 2181, 2182,
 /*  1900 */   696,  698,  691,  212, 1314, 1852,  214, 1851, 1849,  215,
 /*  1910 */  2177, 1846, 2213,  351,  511,  340, 2179,  701, 2181, 2182,
 /*  1920 */   696, 2178,  691,  510, 1845,  509,  513,  514, 1838, 2196,
 /*  1930 */   517,  698, 1827,  515,  397,  519,  518, 1803,  521,  217,
 /*  1940 */    76, 2146,  182,  697, 1211, 1802, 2166, 2360, 2105,  219,
 /*  1950 */  2095,  183,   77,  529, 2083,  225,  227, 2082, 2059, 2196,
 /*  1960 */  1927, 1256, 1848, 1844,  399,  546,  544,  545, 1842,  548,
 /*  1970 */   549, 2146,  550,  697,  552,  554,  553, 2177, 1840, 2213,
 /*  1980 */  2178, 1837,  340, 2179,  701, 2181, 2182,  696,  607,  691,
 /*  1990 */   698,  556,  557, 1822,  558, 1820, 1821, 1819, 1799, 1929,
 /*  2000 */  1391, 1390, 1928,  755, 1305, 1303,  790, 2177, 1301, 2213,
 /*  2010 */   235, 1300,  340, 2179,  701, 2181, 2182,  696, 2196,  691,
 /*  2020 */   310, 1299,   63, 1298,  757, 1297, 1294, 1293, 1292, 1291,
 /*  2030 */  2146, 1835,  697,  375, 1826,  376,  180, 1824,  377,  590,
 /*  2040 */  1798, 1797, 1796,  592,  780,  776,  772,  768,  596,  308,
 /*  2050 */   594,  587,  112, 2178, 1519, 1521, 1518, 1523, 2104, 1499,
 /*  2060 */  1501, 2094,  164,  698,   29, 1503,  602,   67, 2213,  611,
 /*  2070 */  2081,  335, 2179,  701, 2181, 2182,  696, 2080,  691,   20,
 /*  2080 */    31, 2343,  629,   17, 2178,  264,   57,  612, 1736,  107,
 /*  2090 */   617, 2196,  301,  258,  698, 1478,    6, 1477,  619,    7,
 /*  2100 */    21,   22,  627, 2146,  271,  697,  272,  266,   33, 1717,
 /*  2110 */  2167,   65,  172,  270, 1751,   32,   24, 1750, 1709, 2178,
 /*  2120 */    92,  386, 2196, 1755, 1754,  677, 1756, 1757,  387,  698,
 /*  2130 */   284, 1684, 1683, 2079, 2146,   23,  697,   18,   59, 2177,
 /*  2140 */  2058, 2213,   58,  177,  325, 2179,  701, 2181, 2182,  696,
 /*  2150 */    94,  691,   93,  289,  290,   25, 2178, 2196, 2057, 1715,
 /*  2160 */   288,   96,  302,   26,   13,  292,  698,  287,  297, 2146,
 /*  2170 */  2177,  697, 2213, 1559,   68,  323, 2179,  701, 2181, 2182,
 /*  2180 */   696, 2178,  691,   98, 2216, 1636,  254,  102, 1635,   11,
 /*  2190 */  1646,  698,  179,  672, 2196, 1614, 1612,  192,  299, 1611,
 /*  2200 */   690,   39,   16,   27,   28, 2177, 2146, 2213,  697, 1583,
 /*  2210 */   326, 2179,  701, 2181, 2182,  696, 1591,  691, 2178, 2196,
 /*  2220 */  1376,  702,  704,  400,  706,  708,  711,  709,  698, 1373,
 /*  2230 */  1372, 2146,  712,  697, 1369,  714, 1363,  715,  717,  718,
 /*  2240 */   720, 1361, 2177, 2178, 2213,  721,  103,  332, 2179,  701,
 /*  2250 */  2181, 2182,  696,  698,  691,  700, 2196,  305,  104, 1385,
 /*  2260 */  1367, 1381,   75, 1366, 1365, 1254, 1364, 2177, 2146, 2213,
 /*  2270 */   697, 1286,  336, 2179,  701, 2181, 2182,  696,  735,  691,
 /*  2280 */  1285, 2196, 1284, 1283, 1281, 1279, 1278, 1277, 1272, 1312,
 /*  2290 */   745, 1275, 1274, 2146, 1273,  697, 1271,  306, 1270, 1269,
 /*  2300 */  1309, 1260, 1307, 1266, 2177, 1265, 2213, 1262, 1261,  328,
 /*  2310 */  2179,  701, 2181, 2182,  696, 2178,  691, 1259, 1843,  765,
 /*  2320 */   766, 1841,  767,  769,  770,  698,  771, 1839,  773, 2177,
 /*  2330 */  2178, 2213, 1836,  777,  337, 2179,  701, 2181, 2182,  696,
 /*  2340 */   698,  691,  775,  774,  778,  779, 1818,  781, 2178, 1201,
 /*  2350 */  1795,  309, 1545, 2196,  785,  789,  319,  788,  698, 1770,
 /*  2360 */  1770, 1770, 1770, 1770, 1770, 2146, 1770,  697, 2196, 1770,
 /*  2370 */  1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2380 */  2146, 1770,  697, 1770, 1770, 1770, 2196, 1770, 1770, 1770,
 /*  2390 */  1770, 1770, 1770, 1770, 1770, 2178, 1770, 1770, 2146, 1770,
 /*  2400 */   697, 2177, 1770, 2213, 1770,  698,  329, 2179,  701, 2181,
 /*  2410 */  2182,  696, 1770,  691, 1770, 1770, 2177, 2178, 2213, 1770,
 /*  2420 */  1770,  338, 2179,  701, 2181, 2182,  696,  698,  691, 1770,
 /*  2430 */  1770, 1770, 1770, 2196, 2177, 1770, 2213, 1770, 1770,  330,
 /*  2440 */  2179,  701, 2181, 2182,  696, 2146,  691,  697, 1770, 1770,
 /*  2450 */  1770, 1770, 1770, 1770, 1770, 2196, 1770, 1770, 1770, 1770,
 /*  2460 */  1770, 1770, 1770, 1770, 2178, 1770, 1770, 2146, 1770,  697,
 /*  2470 */  1770, 1770, 1770, 1770,  698, 1770, 1770, 1770, 1770, 1770,
 /*  2480 */  1770, 2177, 1770, 2213, 1770, 1770,  343, 2179,  701, 2181,
 /*  2490 */  2182,  696, 1770,  691, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2500 */  1770, 1770, 2196, 2177, 1770, 2213, 1770, 1770,  344, 2179,
 /*  2510 */   701, 2181, 2182,  696, 2146,  691,  697, 1770, 1770, 1770,
 /*  2520 */  1770, 1770, 1770, 2178, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2530 */  1770, 1770, 1770,  698, 1770, 1770, 2178, 1770, 1770, 1770,
 /*  2540 */  1770, 1770, 1770, 1770, 1770, 1770,  698, 1770, 1770, 1770,
 /*  2550 */  2177, 1770, 2213, 2178, 1770, 2190, 2179,  701, 2181, 2182,
 /*  2560 */   696, 2196,  691,  698, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2570 */  1770, 1770, 1770, 2146, 2196,  697, 1770, 1770, 1770, 1770,
 /*  2580 */  1770, 1770, 1770, 1770, 1770, 2178, 2146, 1770,  697, 1770,
 /*  2590 */  1770, 2196, 1770, 1770, 1770,  698, 1770, 1770, 1770, 1770,
 /*  2600 */  1770, 1770, 1770, 2146, 1770,  697, 1770, 1770, 1770, 2177,
 /*  2610 */  1770, 2213, 1770, 1770, 2189, 2179,  701, 2181, 2182,  696,
 /*  2620 */  1770,  691, 2177, 2196, 2213, 1770, 1770, 2188, 2179,  701,
 /*  2630 */  2181, 2182,  696, 1770,  691, 2146, 1770,  697, 1770, 2177,
 /*  2640 */  1770, 2213, 1770, 1770,  359, 2179,  701, 2181, 2182,  696,
 /*  2650 */  1770,  691, 2178, 1770, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2660 */  1770, 1770,  698, 1770, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2670 */  1770, 2177, 2178, 2213, 1770, 1770,  360, 2179,  701, 2181,
 /*  2680 */  2182,  696,  698,  691, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2690 */  2196, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2700 */  1770, 1770, 2146, 1770,  697, 1770, 1770, 1770, 1770, 1770,
 /*  2710 */  2196, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2720 */  1770, 1770, 2146, 1770,  697, 1770, 1770, 1770, 1770, 1770,
 /*  2730 */  1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 2177, 1770,
 /*  2740 */  2213, 1770, 2178,  356, 2179,  701, 2181, 2182,  696, 1770,
 /*  2750 */   691, 1770,  698, 1770, 1770, 1770, 1770, 1770, 2177, 2178,
 /*  2760 */  2213, 1770, 1770,  361, 2179,  701, 2181, 2182,  696,  698,
 /*  2770 */   691, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2780 */  2196, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2790 */  1770, 1770, 2146, 1770,  697, 1770, 1770, 2196, 1770, 1770,
 /*  2800 */  1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 2146,
 /*  2810 */  1770,  697, 1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770,
 /*  2820 */  1770, 1770, 1770, 1770, 1770, 1770, 1770, 1770,  699, 1770,
 /*  2830 */  2213, 1770, 1770,  335, 2179,  701, 2181, 2182,  696, 1770,
 /*  2840 */   691, 1770, 1770, 1770, 1770, 2177, 1770, 2213, 1770, 1770,
 /*  2850 */   334, 2179,  701, 2181, 2182,  696, 1770,  691,
};
static const YYCODETYPE yy_lookahead[] = {
 /*     0 */   375,  341,  367,  393,  346,  350,  351,  411,  350,  380,
 /*    10 */   352,  351,   12,   13,   14,  405,  381,    4,  408,  409,
 /*    20 */    20,    3,   22,    8,    9,  370,  391,   12,   13,   14,
 /*    30 */    15,   16,  377,   33,  350,   35,  367,   14,   20,  379,
 /*    40 */     8,    9,  338,   20,   12,   13,   14,   15,   16,  424,
 /*    50 */   381,  391,  380,  393,  458,   49,   43,  461,   45,   46,
 /*    60 */   391,  379,   62,   57,  429,  430,   60,   61,   68,   20,
 /*    70 */     4,   22,  476,  477,  439,   75,   44,  481,  482,  395,
 /*    80 */    20,  399,  400,   68,   35,  350,  351,  427,   20,  429,
 /*    90 */   350,  351,  432,  433,  434,  435,  436,  437,  429,  439,
 /*   100 */   100,  360,   53,  103,  444,  370,  446,  357,  439,  368,
 /*   110 */   450,  451,  377,   84,  393,  411,   12,   13,  350,  351,
 /*   120 */   416,   20,  104,  463,   20,   62,   22,  112,  100,  408,
 /*   130 */   409,  471,  382,   20,  447,  448,  104,   33,  370,   35,
 /*   140 */   140,  141,  341,  115,  116,  117,  118,  119,  120,  121,
 /*   150 */   122,  123,  124,  341,  126,  127,  128,  129,  130,  131,
 /*   160 */   132,  378,  458,  103,  458,  461,   62,  461,  105,  103,
 /*   170 */   170,  171,   68,  390,  145,  146,  176,  177,    0,   75,
 /*   180 */   476,  477,  476,  477,  169,  481,  482,  481,  482,  431,
 /*   190 */   172,  191,  391,  193,  454,  455,  456,  168,  458,  459,
 /*   200 */   340,  461,  342,  391,  100,    8,    9,  103,  341,   12,
 /*   210 */    13,   14,   15,   16,  103,  457,  476,  477,  351,   35,
 /*   220 */   186,  481,  482,  223,  224,    0,  226,  227,  228,  229,
 /*   230 */   230,  231,  232,  233,  234,  235,  236,  237,  238,  239,
 /*   240 */   240,  241,  242,  243,  140,  141,  379,  213,  214,   24,
 /*   250 */    25,   26,   27,   28,   29,   30,   31,   32,  391,   75,
 /*   260 */   393,    0,  247,  248,  249,  250,  251,  252,  253,  254,
 /*   270 */   255,  256,  257,  345,  170,  171,  348,  349,   20,   20,
 /*   280 */   176,  177,   21,  170,  171,   24,   25,   26,   27,   28,
 /*   290 */    29,   30,   31,   32,  427,  191,  429,  193,  175,  432,
 /*   300 */   433,  434,  435,  436,  437,  351,  439,    0,  371,  442,
 /*   310 */    20,  444,  445,  446,   20,  341,  379,  450,  451,   20,
 /*   320 */   260,   22,  350,  351,  387,  351,  260,  223,  224,    4,
 /*   330 */   226,  227,  228,  229,  230,  231,  232,  233,  234,  235,
 /*   340 */   236,  237,  238,  239,  240,  241,  242,  243,  244,   12,
 /*   350 */    13,  397,   53,  379,  379,   12,   13,   20,   67,   22,
 /*   360 */   458,  386,  103,  461,  379,  391,   20,  393,  351,  394,
 /*   370 */    33,  260,   35,   70,   71,   72,  350,  351,   35,  477,
 /*   380 */    77,   78,   79,  481,  482,  400,   83,  351,  265,  266,
 /*   390 */   267,   88,   89,   90,   91,  217,  370,   94,  351,   62,
 /*   400 */   135,  427,   48,  429,  139,   68,  432,  433,  434,  435,
 /*   410 */   436,  437,   75,  439,  397,  379,  134,  135,  444,  345,
 /*   420 */   446,  139,  348,  349,  450,  451,  454,  455,  456,  341,
 /*   430 */   458,  459,   14,  458,  140,  141,  461,  100,   20,  351,
 /*   440 */   103,  353,    8,    9,  397,  471,   12,   13,   14,   15,
 /*   450 */    16,  476,  477,   12,   13,   14,  481,  482,  346,  341,
 /*   460 */   170,   20,  350,   22,  352,  200,  159,  379,  203,  351,
 /*   470 */   434,  206,  379,  208,   33,  168,   35,  140,  141,  391,
 /*   480 */   387,  393,  458,   21,   20,  461,   24,   25,   26,   27,
 /*   490 */    28,   29,   30,   31,   32,  379,  103,  379,  341,  350,
 /*   500 */   351,  477,  386,   62,   20,  481,  482,  170,  171,  391,
 /*   510 */   394,  393,  357,  176,  177,  427,   75,  429,  172,  260,
 /*   520 */   432,  433,  434,  435,  436,  437,  172,  439,  191,  374,
 /*   530 */   193,  133,  444,  179,  446,  137,  193,  382,  450,  451,
 /*   540 */    14,  100,  350,  351,  103,  427,   20,  429,  391,  341,
 /*   550 */   432,  433,  434,  435,  436,  437,  244,  439,  246,  351,
 /*   560 */   223,  224,  370,  226,  227,  228,  229,  230,  231,  232,
 /*   570 */   233,  234,  235,  236,  237,  238,  239,  240,  241,  242,
 /*   580 */   243,  140,  141,  190,   22,  192,  261,  379,    8,    9,
 /*   590 */   472,  473,   12,   13,   14,   15,   16,   35,  341,  391,
 /*   600 */    20,  393,  453,  454,  455,  456,  172,  458,  459,   20,
 /*   610 */   341,  170,  171,  350,  351,  222,  389,  176,  177,  392,
 /*   620 */   393,    8,    9,  371,    0,   12,   13,   14,   15,   16,
 /*   630 */   103,  379,  191,  370,  193,  427,  350,  429,  386,  387,
 /*   640 */   432,  433,  434,  435,  436,  437,  394,  439,  391,   47,
 /*   650 */   411,  341,  444,  260,  446,  416,  172,  411,  450,  451,
 /*   660 */   391,  351,  100,  353,  223,  224,   67,  226,  227,  228,
 /*   670 */   229,  230,  231,  232,  233,  234,  235,  236,  237,  238,
 /*   680 */   239,  240,  241,  242,  243,   12,   13,    0,  402,  379,
 /*   690 */   404,   67,  103,   20,   20,   22,  170,  458,  350,  351,
 /*   700 */   461,  391,  379,  393,  458,  103,   33,  461,   35,  386,
 /*   710 */    12,   13,   14,   15,   16,  476,  477,  394,  350,  351,
 /*   720 */   481,  482,  476,  477,   14,   15,   16,  481,  482,    1,
 /*   730 */     2,  223,  114,  350,  351,   62,  244,  427,  370,  429,
 /*   740 */     4,  350,  432,  433,  434,  435,  436,  437,   75,  439,
 /*   750 */   350,  351,  172,  370,  444,   19,  446,    0,    8,    9,
 /*   760 */   450,  451,   12,   13,   14,   15,   16,  341,  341,   33,
 /*   770 */   370,  392,  393,  100,  350,  351,  103,  351,  270,  271,
 /*   780 */   272,  273,  274,  275,  276,   49,  134,  260,   75,   12,
 /*   790 */    13,    0,   56,  402,  370,  404,  183,   20,   62,   22,
 /*   800 */   379,   20,  454,  455,  456,  379,  458,  459,   54,   55,
 /*   810 */    33,  431,   35,  140,  141,  394,  359,  391,  391,  393,
 /*   820 */   133,  134,  135,  136,  137,  138,  139,   70,   71,   72,
 /*   830 */   355,  356,  104,  376,   77,   78,   79,  457,  102,   62,
 /*   840 */    83,  105,  385,  170,  171,   88,   89,   90,   91,  176,
 /*   850 */   177,   94,   75,  427,  104,  429,  204,  205,  432,  433,
 /*   860 */   434,  435,  436,  437,  191,  439,  193,  441,    8,    9,
 /*   870 */   341,  380,   12,   13,   14,   15,   16,  100,  355,  356,
 /*   880 */   103,  341,  133,  134,  135,  136,  137,  138,  139,  341,
 /*   890 */   411,  351,   62,  353,  341,   75,  223,  224,  285,  226,
 /*   900 */   227,  228,  229,  230,  231,  232,  233,  234,  235,  236,
 /*   910 */   237,  238,  239,  240,  241,  242,  243,  140,  141,  379,
 /*   920 */   391,  140,  141,   21,  133,  134,  135,  136,  137,  138,
 /*   930 */   139,  391,  102,  393,  379,  105,   34,  458,   36,  391,
 /*   940 */   461,  386,  350,  351,  391,  350,  351,  170,  171,  394,
 /*   950 */   380,  350,  351,  176,  177,  476,  477,  176,  177,  380,
 /*   960 */   481,  482,  370,  442,  104,  370,  445,  427,  191,  429,
 /*   970 */   193,  370,  432,  433,  434,  435,  436,  437,   39,  439,
 /*   980 */   364,  365,    2,  341,  444,   22,  446,  350,    8,    9,
 /*   990 */   450,  451,   12,   13,   14,   15,   16,  341,   35,    3,
 /*  1000 */   223,  224,    0,  226,  227,  228,  229,  230,  231,  232,
 /*  1010 */   233,  234,  235,  236,  237,  238,  239,  240,  241,  242,
 /*  1020 */   243,   14,   18,   18,   20,  350,  351,   20,   23,  350,
 /*  1030 */   351,   27,  388,  391,   30,  391,   13,   33,  367,  402,
 /*  1040 */   371,  404,   37,   38,  379,  370,   41,  391,  379,  370,
 /*  1050 */    20,  386,  381,   49,  411,   51,  387,   52,   35,  394,
 /*  1060 */    56,  341,  391,  100,  341,  364,  365,  341,   63,   64,
 /*  1070 */    65,   66,   70,   71,   72,   73,   74,   13,   76,   77,
 /*  1080 */    78,   79,   80,   81,   82,   83,   84,   85,   86,   87,
 /*  1090 */    88,   89,   90,   91,   92,   93,   94,   95,   96,   35,
 /*  1100 */   429,  458,  350,  351,  461,  371,  102,   33,  103,   37,
 /*  1110 */   439,  391,  431,  379,  391,  350,  351,  391,  114,  476,
 /*  1120 */   477,  387,  370,   49,  481,  482,  350,  351,   44,  350,
 /*  1130 */   351,   57,   58,   59,   60,  370,   62,  341,  457,  443,
 /*  1140 */   169,  445,  359,    0,  341,  341,  370,  142,  144,  370,
 /*  1150 */    44,  147,  148,  149,  150,  151,  152,  153,  154,  155,
 /*  1160 */   156,  157,  158,  159,  160,  161,  162,  163,  385,  165,
 /*  1170 */   166,  167,  443,   42,  445,   44,  102,  170,  106,  105,
 /*  1180 */   108,  109,   42,  111,   44,  341,  341,  391,  183,  184,
 /*  1190 */   185,  341,   49,  188,  391,  391,  388,  388,  259,  391,
 /*  1200 */   391,  351,  172,  353,   44,  133,  201,  202,  372,  137,
 /*  1210 */   104,  375,  366,   45,   46,  369,  114,  212,  247,    0,
 /*  1220 */   215,   35,  341,  218,  219,  220,  221,  222,  257,  379,
 /*  1230 */   258,  259,  351,   22,  353,  391,  391,  107,   44,  107,
 /*  1240 */   110,  391,  110,  393,   68,   44,   35,  173,  174,    0,
 /*  1250 */   140,  141,  341,  107,  180,  181,  110,   35,  107,    0,
 /*  1260 */   379,  110,  351,   44,  353,  260,  164,  207,   44,  209,
 /*  1270 */    44,   22,  391,  199,  393,    0,  280,  427,  103,  429,
 /*  1280 */   114,   22,  432,  433,  434,  435,  436,  437,  113,  439,
 /*  1290 */   379,   44,    1,    2,  444,   35,  446,   22,  104,   44,
 /*  1300 */   450,  451,  391,  380,  393,  104,    0,   44,  427,  380,
 /*  1310 */   429,   13,   13,  432,  433,  434,  435,  436,  437,  368,
 /*  1320 */   439,   44,   44,  417,   22,  444,   44,  446,  104,   44,
 /*  1330 */   104,  450,  451,   35,   35,   75,   44,   35,  427,  342,
 /*  1340 */   429,  401,  341,  432,  433,  434,  435,  436,  437,   44,
 /*  1350 */   439,  104,  351,   12,   13,  444,   50,  446,    2,  104,
 /*  1360 */   485,  450,  451,   22,    8,    9,  282,  104,   12,   13,
 /*  1370 */    14,   15,   16,  341,   33,  474,   35,   75,  354,  193,
 /*  1380 */   379,  104,  104,  351,  468,  367,  104,  367,  379,  104,
 /*  1390 */   354,  410,  391,   44,  393,   44,  104,   44,   44,  223,
 /*  1400 */   401,  349,  100,   62,  351,  390,  460,  401,  478,  104,
 /*  1410 */   341,  379,   44,   44,  452,  193,   75,  462,  262,   49,
 /*  1420 */   351,  428,  412,  391,   20,  393,  206,  359,  427,  421,
 /*  1430 */   429,  189,  421,  432,  433,  434,  435,  436,  437,  426,
 /*  1440 */   439,  100,  359,  414,  284,  444,  398,  446,  379,   42,
 /*  1450 */    20,  450,  451,  104,  398,  104,  401,  104,  104,  427,
 /*  1460 */   391,  429,  393,  169,  432,  433,  434,  435,  436,  437,
 /*  1470 */    20,  439,  104,  104,  396,  350,  444,  350,  446,  398,
 /*  1480 */   101,  396,  450,  451,  396,  363,   99,  350,  362,   98,
 /*  1490 */   361,  350,  350,  191,  350,  193,  427,   20,  429,  341,
 /*  1500 */   343,  432,  433,  434,  435,  436,  437,   48,  439,  351,
 /*  1510 */   347,  347,  343,  421,  359,  446,   20,  393,  359,  450,
 /*  1520 */   451,   20,  352,   20,  413,  223,  224,  343,  350,  352,
 /*  1530 */   359,  359,  191,  359,  193,  350,  343,  379,  359,  359,
 /*  1540 */   379,  379,  210,  391,  379,  391,  379,  103,  341,  391,
 /*  1550 */   195,  393,  379,  425,  197,  421,  423,  357,  351,  420,
 /*  1560 */   379,  379,  379,  196,  223,  224,  379,  379,  379,  419,
 /*  1570 */   357,  418,  269,  350,  341,  467,  268,  236,  237,  238,
 /*  1580 */   239,  240,  241,  242,  351,  427,  379,  429,  391,  393,
 /*  1590 */   432,  433,  434,  435,  436,  437,  401,  439,  391,  401,
 /*  1600 */   393,  391,  412,  391,  446,  406,  391,  391,  450,  451,
 /*  1610 */   406,  277,  379,  182,  467,  470,  467,  469,  279,  286,
 /*  1620 */   278,  263,  486,  283,  391,  341,  393,  351,  281,   20,
 /*  1630 */   412,  259,  352,   20,  427,  351,  429,  431,  341,  432,
 /*  1640 */   433,  434,  435,  436,  437,  357,  439,  357,  351,  404,
 /*  1650 */   406,  351,  391,  446,  406,  391,  465,  450,  451,  391,
 /*  1660 */   427,  391,  429,  379,  391,  432,  433,  434,  435,  436,
 /*  1670 */   437,  438,  439,  440,  441,  391,  379,  393,  391,  174,
 /*  1680 */   466,  464,  480,  357,  479,  375,  403,  341,  391,  103,
 /*  1690 */   393,  103,  357,  369,  383,  449,   36,  351,  391,  339,
 /*  1700 */   350,  357,  407,  344,  341,  343,  358,    0,  415,  373,
 /*  1710 */   373,  427,   42,  429,  351,    0,  432,  433,  434,  435,
 /*  1720 */   436,  437,  407,  439,  427,  379,  429,    0,    0,  432,
 /*  1730 */   433,  434,  435,  436,  437,  422,  439,  391,  373,  393,
 /*  1740 */    35,  216,  379,  446,   35,   35,   35,  384,  451,  216,
 /*  1750 */     0,   35,   35,  341,  391,  216,  393,    0,  216,    0,
 /*  1760 */    35,    0,   22,  351,    0,   35,  211,  483,  484,    0,
 /*  1770 */   199,    0,  199,  427,  200,  429,  193,  341,  432,  433,
 /*  1780 */   434,  435,  436,  437,  191,  439,    0,  351,    0,    0,
 /*  1790 */   427,  379,  429,  187,  186,  432,  433,  434,  435,  436,
 /*  1800 */   437,    0,  439,  391,  341,  393,    0,   47,    0,    0,
 /*  1810 */     0,    0,   42,    0,  351,  379,    0,    0,    0,  473,
 /*  1820 */   384,    0,    0,    0,  341,  159,   35,  391,    0,  393,
 /*  1830 */   159,    0,    0,    0,  351,    0,    0,    0,    0,  427,
 /*  1840 */    42,  429,  379,    0,  432,  433,  434,  435,  436,  437,
 /*  1850 */     0,  439,    0,    0,  391,    0,  393,    0,    0,    0,
 /*  1860 */     0,    0,  379,  427,    0,  429,    0,  384,  432,  433,
 /*  1870 */   434,  435,  436,  437,  391,  439,  393,  143,   22,    0,
 /*  1880 */     0,    0,    0,    0,   22,   22,    0,  475,    0,    0,
 /*  1890 */   427,  341,  429,    0,   48,  432,  433,  434,  435,  436,
 /*  1900 */   437,  351,  439,   62,   35,    0,   62,    0,    0,   62,
 /*  1910 */   427,    0,  429,   48,   39,  432,  433,  434,  435,  436,
 /*  1920 */   437,  341,  439,   49,    0,   35,   35,   49,    0,  379,
 /*  1930 */    35,  351,    0,   39,  384,   39,   49,    0,   35,   42,
 /*  1940 */    39,  391,   44,  393,   14,    0,   47,  484,    0,   40,
 /*  1950 */     0,   47,   39,   47,    0,   39,  182,    0,    0,  379,
 /*  1960 */     0,   69,    0,    0,  384,   39,   35,   49,    0,   35,
 /*  1970 */    49,  391,   39,  393,   35,   39,   49,  427,    0,  429,
 /*  1980 */   341,    0,  432,  433,  434,  435,  436,  437,    1,  439,
 /*  1990 */   351,   35,   49,    0,   39,    0,    0,    0,    0,    0,
 /*  2000 */    35,   22,    0,   44,   35,   35,   19,  427,   35,  429,
 /*  2010 */   110,   35,  432,  433,  434,  435,  436,  437,  379,  439,
 /*  2020 */    33,   35,  112,   35,   44,   35,   35,   35,   22,   35,
 /*  2030 */   391,    0,  393,   22,    0,   22,   49,    0,   22,   35,
 /*  2040 */     0,    0,    0,   35,   57,   58,   59,   60,   22,   62,
 /*  2050 */    35,   51,   20,  341,   35,   35,   35,  104,    0,   35,
 /*  2060 */    22,    0,  194,  351,  103,  198,  427,  103,  429,   22,
 /*  2070 */     0,  432,  433,  434,  435,  436,  437,    0,  439,   44,
 /*  2080 */   103,    3,   99,  264,  341,  103,  172,  172,  104,  102,
 /*  2090 */   178,  379,  105,  174,  351,  172,   48,  172,  178,   48,
 /*  2100 */    44,   44,  101,  391,   44,  393,   47,  104,   44,  104,
 /*  2110 */    47,    3,  103,  103,   35,  103,   44,   35,  104,  341,
 /*  2120 */   103,   35,  379,   35,   35,  138,  104,  104,   35,  351,
 /*  2130 */    47,  104,  104,    0,  391,  264,  393,  264,   44,  427,
 /*  2140 */     0,  429,  258,   47,  432,  433,  434,  435,  436,  437,
 /*  2150 */    39,  439,  103,   47,  104,  103,  341,  379,    0,  104,
 /*  2160 */   173,   39,   47,   44,    2,  103,  351,  180,  103,  391,
 /*  2170 */   427,  393,  429,   22,  103,  432,  433,  434,  435,  436,
 /*  2180 */   437,  341,  439,  103,  103,  101,  199,  113,  101,  245,
 /*  2190 */   223,  351,   47,  175,  379,  104,  104,   47,  173,  104,
 /*  2200 */   103,  103,  103,  103,  103,  427,  391,  429,  393,  104,
 /*  2210 */   432,  433,  434,  435,  436,  437,   22,  439,  341,  379,
 /*  2220 */   104,  114,   35,   35,  103,   35,   35,  103,  351,  104,
 /*  2230 */   104,  391,  103,  393,  104,   35,  104,  103,   35,  103,
 /*  2240 */    35,  104,  427,  341,  429,  103,  103,  432,  433,  434,
 /*  2250 */   435,  436,  437,  351,  439,  225,  379,   44,  103,   35,
 /*  2260 */   125,   22,  103,  125,  125,   69,  125,  427,  391,  429,
 /*  2270 */   393,   35,  432,  433,  434,  435,  436,  437,   68,  439,
 /*  2280 */    35,  379,   35,   35,   35,   35,   35,   35,   22,   75,
 /*  2290 */    97,   35,   35,  391,   35,  393,   35,   44,   35,   35,
 /*  2300 */    75,   22,   35,   35,  427,   35,  429,   35,   35,  432,
 /*  2310 */   433,  434,  435,  436,  437,  341,  439,   35,    0,   35,
 /*  2320 */    49,    0,   39,   35,   49,  351,   39,    0,   35,  427,
 /*  2330 */   341,  429,    0,   35,  432,  433,  434,  435,  436,  437,
 /*  2340 */   351,  439,   39,   49,   49,   39,    0,   35,  341,   35,
 /*  2350 */     0,   22,   22,  379,   21,   20,   22,   21,  351,  487,
 /*  2360 */   487,  487,  487,  487,  487,  391,  487,  393,  379,  487,
 /*  2370 */   487,  487,  487,  487,  487,  487,  487,  487,  487,  487,
 /*  2380 */   391,  487,  393,  487,  487,  487,  379,  487,  487,  487,
 /*  2390 */   487,  487,  487,  487,  487,  341,  487,  487,  391,  487,
 /*  2400 */   393,  427,  487,  429,  487,  351,  432,  433,  434,  435,
 /*  2410 */   436,  437,  487,  439,  487,  487,  427,  341,  429,  487,
 /*  2420 */   487,  432,  433,  434,  435,  436,  437,  351,  439,  487,
 /*  2430 */   487,  487,  487,  379,  427,  487,  429,  487,  487,  432,
 /*  2440 */   433,  434,  435,  436,  437,  391,  439,  393,  487,  487,
 /*  2450 */   487,  487,  487,  487,  487,  379,  487,  487,  487,  487,
 /*  2460 */   487,  487,  487,  487,  341,  487,  487,  391,  487,  393,
 /*  2470 */   487,  487,  487,  487,  351,  487,  487,  487,  487,  487,
 /*  2480 */   487,  427,  487,  429,  487,  487,  432,  433,  434,  435,
 /*  2490 */   436,  437,  487,  439,  487,  487,  487,  487,  487,  487,
 /*  2500 */   487,  487,  379,  427,  487,  429,  487,  487,  432,  433,
 /*  2510 */   434,  435,  436,  437,  391,  439,  393,  487,  487,  487,
 /*  2520 */   487,  487,  487,  341,  487,  487,  487,  487,  487,  487,
 /*  2530 */   487,  487,  487,  351,  487,  487,  341,  487,  487,  487,
 /*  2540 */   487,  487,  487,  487,  487,  487,  351,  487,  487,  487,
 /*  2550 */   427,  487,  429,  341,  487,  432,  433,  434,  435,  436,
 /*  2560 */   437,  379,  439,  351,  487,  487,  487,  487,  487,  487,
 /*  2570 */   487,  487,  487,  391,  379,  393,  487,  487,  487,  487,
 /*  2580 */   487,  487,  487,  487,  487,  341,  391,  487,  393,  487,
 /*  2590 */   487,  379,  487,  487,  487,  351,  487,  487,  487,  487,
 /*  2600 */   487,  487,  487,  391,  487,  393,  487,  487,  487,  427,
 /*  2610 */   487,  429,  487,  487,  432,  433,  434,  435,  436,  437,
 /*  2620 */   487,  439,  427,  379,  429,  487,  487,  432,  433,  434,
 /*  2630 */   435,  436,  437,  487,  439,  391,  487,  393,  487,  427,
 /*  2640 */   487,  429,  487,  487,  432,  433,  434,  435,  436,  437,
 /*  2650 */   487,  439,  341,  487,  487,  487,  487,  487,  487,  487,
 /*  2660 */   487,  487,  351,  487,  487,  487,  487,  487,  487,  487,
 /*  2670 */   487,  427,  341,  429,  487,  487,  432,  433,  434,  435,
 /*  2680 */   436,  437,  351,  439,  487,  487,  487,  487,  487,  487,
 /*  2690 */   379,  487,  487,  487,  487,  487,  487,  487,  487,  487,
 /*  2700 */   487,  487,  391,  487,  393,  487,  487,  487,  487,  487,
 /*  2710 */   379,  487,  487,  487,  487,  487,  487,  487,  487,  487,
 /*  2720 */   487,  487,  391,  487,  393,  487,  487,  487,  487,  487,
 /*  2730 */   487,  487,  487,  487,  487,  487,  487,  487,  427,  487,
 /*  2740 */   429,  487,  341,  432,  433,  434,  435,  436,  437,  487,
 /*  2750 */   439,  487,  351,  487,  487,  487,  487,  487,  427,  341,
 /*  2760 */   429,  487,  487,  432,  433,  434,  435,  436,  437,  351,
 /*  2770 */   439,  487,  487,  487,  487,  487,  487,  487,  487,  487,
 /*  2780 */   379,  487,  487,  487,  487,  487,  487,  487,  487,  487,
 /*  2790 */   487,  487,  391,  487,  393,  487,  487,  379,  487,  487,
 /*  2800 */   487,  487,  487,  487,  487,  487,  487,  487,  487,  391,
 /*  2810 */   487,  393,  487,  487,  487,  487,  487,  487,  487,  487,
 /*  2820 */   487,  487,  487,  487,  487,  487,  487,  487,  427,  487,
 /*  2830 */   429,  487,  487,  432,  433,  434,  435,  436,  437,  487,
 /*  2840 */   439,  487,  487,  487,  487,  427,  487,  429,  487,  487,
 /*  2850 */   432,  433,  434,  435,  436,  437,  487,  439,  338,  338,
 /*  2860 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2870 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2880 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2890 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2900 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2910 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2920 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2930 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2940 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2950 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2960 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2970 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2980 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2990 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3000 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3010 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3020 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3030 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3040 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3050 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3060 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3070 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3080 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3090 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3100 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3110 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3120 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3130 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3140 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3150 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3160 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3170 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3180 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3190 */   338,  338,  338,  338,  338,  338,
};
#define YY_SHIFT_COUNT    (790)
#define YY_SHIFT_MIN      (0)
#define YY_SHIFT_MAX      (2350)
static const unsigned short int yy_shift_ofst[] = {
 /*     0 */  1005,    0,  104,    0,  337,  337,  337,  337,  337,  337,
 /*    10 */   337,  337,  337,  337,  337,  337,  441,  673,  673,  777,
 /*    20 */   673,  673,  673,  673,  673,  673,  673,  673,  673,  673,
 /*    30 */   673,  673,  673,  673,  673,  673,  673,  673,  673,  673,
 /*    40 */   673,  673,  673,  673,  673,  673,  673,  673,  673,  673,
 /*    50 */   673,   60,  259,  393,  589,  111,  527,  111,  589,  589,
 /*    60 */   111, 1341,  111, 1341, 1341,   66,  111,   68,  781,  101,
 /*    70 */   101,  781,   13,   13,  113,  294,   23,   23,  101,  101,
 /*    80 */   101,  101,  101,  101,  101,  258,  101,  101,  291,   68,
 /*    90 */   101,  101,  464,   68,  101,  258,  101,  258,   68,  101,
 /*   100 */   101,   68,  101,   68,   68,   68,  101,  599, 1004,   15,
 /*   110 */    15,  303,  462, 1302, 1302, 1302, 1302, 1302, 1302, 1302,
 /*   120 */  1302, 1302, 1302, 1302, 1302, 1302, 1302, 1302, 1302, 1302,
 /*   130 */  1302, 1302, 1072,   18,  113,  294,  754,  754,  184,  346,
 /*   140 */   346,  346,  624,  312,  312,  184,  674,  674,  674,  291,
 /*   150 */   618,  492,   68,  713,   68,  713,  713, 1166,  820,   28,
 /*   160 */    28,   28,   28,   28,   28,   28,   28, 1987,  757,  261,
 /*   170 */   580,  613,  508,   49,  123,  343,  343,  526,  354, 1007,
 /*   180 */   299,  484, 1168,  418,  398, 1030,  972,  939,  996,  972,
 /*   190 */  1131,  325,  290, 1156, 1370, 1404, 1220,  291, 1404,  291,
 /*   200 */  1242, 1407, 1430, 1407, 1294, 1450, 1450, 1407, 1294, 1294,
 /*   210 */  1379, 1387, 1450, 1391, 1450, 1450, 1450, 1477, 1459, 1477,
 /*   220 */  1459, 1404,  291, 1496,  291, 1501, 1503,  291, 1501,  291,
 /*   230 */   291,  291, 1450,  291, 1477,   68,   68,   68,   68,   68,
 /*   240 */    68,   68,   68,   68,   68,   68, 1450, 1477,  713,  713,
 /*   250 */   713, 1332, 1444, 1404,  599, 1357, 1367, 1496,  599, 1355,
 /*   260 */  1156, 1450, 1430, 1430,  713, 1303, 1308,  713, 1303, 1308,
 /*   270 */   713,  713,   68, 1334, 1431, 1303, 1339, 1342, 1358, 1156,
 /*   280 */  1333, 1340, 1347, 1372,  674, 1609, 1501,  599,  599, 1613,
 /*   290 */  1308,  713,  713,  713,  713,  713, 1308,  713, 1505,  599,
 /*   300 */  1166,  599,  674, 1586, 1588,  713,  820, 1450,  599, 1660,
 /*   310 */  1477, 2858, 2858, 2858, 2858, 2858, 2858, 2858, 2858, 2858,
 /*   320 */  1002, 1074,  225,   32,  736,  750,  860,  687,  980, 1356,
 /*   330 */   434,  791,  197,  197,  197,  197,  197,  197,  197,  197,
 /*   340 */   197,  749,  265,  698,  698,   29,    6,   34,  307,  830,
 /*   350 */   562,  963,  902,  652,  282,  282,  710,  728,  971,  710,
 /*   360 */   710,  710, 1143,  178, 1106, 1211, 1140, 1102, 1219, 1130,
 /*   370 */  1132, 1146, 1151, 1023, 1064, 1249, 1259, 1275, 1060, 1194,
 /*   380 */  1201,   63, 1224, 1226, 1247, 1110, 1084, 1160, 1255, 1263,
 /*   390 */  1277, 1278, 1282, 1285, 1291, 1292, 1176, 1305,  602, 1349,
 /*   400 */  1351, 1353, 1354, 1368, 1369, 1175, 1186, 1222, 1298, 1299,
 /*   410 */  1260, 1306, 1707, 1715, 1727, 1670, 1728, 1705, 1525, 1709,
 /*   420 */  1710, 1711, 1533, 1750, 1716, 1717, 1539, 1757, 1542, 1759,
 /*   430 */  1725, 1761, 1740, 1764, 1730, 1555, 1769, 1571, 1771, 1573,
 /*   440 */  1574, 1583, 1593, 1786, 1788, 1789, 1606, 1608, 1801, 1806,
 /*   450 */  1760, 1808, 1809, 1810, 1770, 1811, 1813, 1816, 1817, 1818,
 /*   460 */  1821, 1822, 1823, 1666, 1791, 1828, 1671, 1831, 1832, 1833,
 /*   470 */  1835, 1836, 1837, 1838, 1843, 1850, 1852, 1853, 1855, 1857,
 /*   480 */  1858, 1859, 1860, 1798, 1861, 1864, 1866, 1888, 1889, 1893,
 /*   490 */  1856, 1879, 1880, 1881, 1734, 1882, 1883, 1862, 1846, 1863,
 /*   500 */  1865, 1886, 1841, 1869, 1905, 1844, 1907, 1847, 1908, 1911,
 /*   510 */  1890, 1874, 1875, 1924, 1891, 1878, 1894, 1928, 1895, 1887,
 /*   520 */  1896, 1932, 1903, 1937, 1897, 1901, 1898, 1899, 1904, 1930,
 /*   530 */  1906, 1945, 1909, 1913, 1948, 1950, 1954, 1916, 1774, 1957,
 /*   540 */  1958, 1960, 1892, 1962, 1963, 1931, 1918, 1926, 1968, 1934,
 /*   550 */  1921, 1933, 1978, 1939, 1927, 1936, 1981, 1956, 1943, 1955,
 /*   560 */  1993, 1995, 1996, 1997, 1998, 1999, 1910, 1900, 1965, 1979,
 /*   570 */  2002, 1969, 1970, 1973, 1976, 1986, 1988, 1990, 1959, 1980,
 /*   580 */  1991, 1992, 2006, 1994, 2031, 2011, 2034, 2013, 2000, 2037,
 /*   590 */  2016, 2004, 2040, 2008, 2041, 2015, 2042, 2026, 2032, 2019,
 /*   600 */  2020, 2021, 1953, 1961, 2058, 1914, 1964, 1867, 2024, 2038,
 /*   610 */  2061, 1868, 2047, 1915, 1919, 2070, 2077, 1923, 1912, 1925,
 /*   620 */  1920, 2078, 2035, 1819, 1977, 1984, 1982, 2048, 2001, 2051,
 /*   630 */  1983, 2003, 2056, 2057, 2005, 2009, 2010, 2012, 2014, 2060,
 /*   640 */  2059, 2063, 2017, 2064, 1871, 2022, 2023, 2108, 2072, 1873,
 /*   650 */  2079, 2082, 2086, 2088, 2089, 2093, 2027, 2028, 2083, 1884,
 /*   660 */  2094, 2096, 2133, 2140, 2049, 2111, 1899, 2106, 2052, 2050,
 /*   670 */  2055, 2062, 2065, 2018, 2071, 2158, 2122, 2025, 2080, 2074,
 /*   680 */  1899, 2115, 2119, 2084, 1944, 2087, 2162, 2151, 1967, 2081,
 /*   690 */  2091, 2097, 2092, 2098, 2095, 2145, 2099, 2100, 2150, 2105,
 /*   700 */  2194, 2030, 2101, 2107, 2116, 2187, 2188, 2121, 2125, 2190,
 /*   710 */  2124, 2126, 2191, 2129, 2130, 2200, 2134, 2132, 2203, 2136,
 /*   720 */  2137, 2205, 2142, 2135, 2138, 2139, 2141, 2143, 2213, 2155,
 /*   730 */  2224, 2159, 2213, 2213, 2239, 2196, 2210, 2236, 2245, 2247,
 /*   740 */  2248, 2249, 2250, 2251, 2252, 2214, 2193, 2253, 2256, 2257,
 /*   750 */  2259, 2266, 2261, 2263, 2264, 2225, 1959, 2267, 1980, 2268,
 /*   760 */  2270, 2272, 2273, 2279, 2282, 2318, 2284, 2271, 2283, 2321,
 /*   770 */  2288, 2275, 2287, 2327, 2293, 2294, 2303, 2332, 2298, 2295,
 /*   780 */  2306, 2346, 2312, 2314, 2350, 2329, 2333, 2330, 2334, 2336,
 /*   790 */  2335,
};
#define YY_REDUCE_COUNT (319)
#define YY_REDUCE_MIN   (-404)
#define YY_REDUCE_MAX   (2418)
static const short yy_reduce_ofst[] = {
 /*     0 */  -296, -340, -133,  -26,   88,  310,  540,  850,  881,  911,
 /*    10 */   208, 1001, 1032, 1069, 1158, 1207, 1233,  118, 1284, 1297,
 /*    20 */  1346, 1363, 1436, 1412, 1463, 1483,  426, 1550, 1580, 1639,
 /*    30 */  1712, 1743, 1778, 1815, 1840, 1877, 1902, 1974, 1989, 2007,
 /*    40 */  2054, 2076, 2123, 2182, 2195, 2212, 2244, 2311, 2331, 2401,
 /*    50 */  2418, -260,  -25,  239,  149, -404,  246,  479,  -28,  348,
 /*    60 */   643, -365, -294, -331,  671,  -98,   24,  252, -390, -345,
 /*    70 */  -265, -279,  -72,   74, -318,  227, -342,  112, -232,   26,
 /*    80 */   192,  263,  368,  383,  400,  286,  424,  592,  457,  116,
 /*    90 */   595,  601,   36,  323,  675,  391,  679,  637,  -63,  752,
 /*   100 */   765,  555,  776,  669,  665,  734,  779,  155, -316, -313,
 /*   110 */  -313, -259, -140, -199, -188,  157,  257,  269,  427,  529,
 /*   120 */   548,  553,  642,  656,  720,  723,  726,  796,  803,  804,
 /*   130 */   844,  845, -217, -242,  -15,  379,  475,  523,  616, -242,
 /*   140 */   380,  681, -250,  696,  729,  701,  -46,   17,   47,  783,
 /*   150 */  -375,  521,   93,  644,  421,  808,  809,  836,  846, -371,
 /*   160 */  -328,  491,  570,  579,  923,  929,  579,  906,  951,  997,
 /*   170 */   940,  875,  901, 1024,  916, 1018, 1020, 1009,  981, 1009,
 /*   180 */  1036,  999, 1052, 1053, 1015, 1006,  946,  946,  930,  946,
 /*   190 */   962,  955, 1009, 1010,  993, 1008, 1013, 1068, 1011, 1083,
 /*   200 */  1029, 1048, 1055, 1056, 1078, 1125, 1127, 1081, 1085, 1088,
 /*   210 */  1122, 1126, 1137, 1129, 1141, 1142, 1144, 1157, 1163, 1169,
 /*   220 */  1164, 1092, 1155, 1124, 1159, 1170, 1111, 1171, 1177, 1172,
 /*   230 */  1174, 1179, 1178, 1180, 1184, 1161, 1162, 1165, 1167, 1173,
 /*   240 */  1181, 1182, 1183, 1187, 1188, 1189, 1185, 1193, 1152, 1154,
 /*   250 */  1197, 1128, 1133, 1134, 1200, 1139, 1150, 1196, 1213, 1153,
 /*   260 */  1190, 1223, 1195, 1198, 1210, 1108, 1199, 1212, 1147, 1204,
 /*   270 */  1215, 1216, 1009, 1145, 1148, 1149, 1214, 1191, 1217, 1218,
 /*   280 */  1136, 1202, 1205,  946, 1276, 1206, 1280, 1288, 1290, 1245,
 /*   290 */  1244, 1261, 1264, 1268, 1270, 1273, 1248, 1287, 1283, 1326,
 /*   300 */  1310, 1335, 1300, 1246, 1311, 1307, 1324, 1350, 1344, 1359,
 /*   310 */  1362, 1293, 1313, 1295, 1315, 1336, 1337, 1365, 1348, 1360,
};
static const YYACTIONTYPE yy_default[] = {
 /*     0 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*    10 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*    20 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*    30 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*    40 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*    50 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*    60 */  2076, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*    70 */  1768, 1768, 1768, 1768, 2049, 1768, 1768, 1768, 1768, 1768,
 /*    80 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1857, 1768,
 /*    90 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   100 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1855, 2042, 2268,
 /*   110 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   120 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   130 */  1768, 1768, 1768, 2280, 1768, 1768, 1831, 1831, 1768, 2280,
 /*   140 */  2280, 2280, 1855, 2240, 2240, 1768, 1768, 1768, 1768, 1857,
 /*   150 */  2110, 1768, 1768, 1768, 1768, 1768, 1768, 1977, 1768, 1768,
 /*   160 */  1768, 1768, 1768, 2001, 1768, 1768, 1768, 2102, 1768, 1768,
 /*   170 */  2305, 2362, 1768, 1768, 2308, 1768, 1768, 1768, 1768, 1768,
 /*   180 */  1768, 2054, 1768, 1768, 1930, 2295, 2272, 2286, 2346, 2273,
 /*   190 */  2270, 2289, 1768, 2299, 1768, 1768, 2124, 1857, 1768, 1857,
 /*   200 */  2089, 2047, 1768, 2047, 2044, 1768, 1768, 2047, 2044, 2044,
 /*   210 */  1919, 1915, 1768, 1913, 1768, 1768, 1768, 1768, 1815, 1768,
 /*   220 */  1815, 1768, 1857, 1768, 1857, 1768, 1768, 1857, 1768, 1857,
 /*   230 */  1857, 1857, 1768, 1857, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   240 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   250 */  1768, 2122, 2108, 1768, 1855, 2100, 2098, 1768, 1855, 2096,
 /*   260 */  2299, 1768, 1768, 1768, 1768, 2316, 2314, 1768, 2316, 2314,
 /*   270 */  1768, 1768, 1768, 2330, 2326, 2316, 2335, 2332, 2301, 2299,
 /*   280 */  2365, 2352, 2348, 2286, 1768, 1768, 1768, 1855, 1855, 1768,
 /*   290 */  2314, 1768, 1768, 1768, 1768, 1768, 2314, 1768, 1768, 1855,
 /*   300 */  1768, 1855, 1768, 1768, 1946, 1768, 1768, 1768, 1855, 1800,
 /*   310 */  1768, 2091, 2113, 2072, 2072, 1980, 1980, 1980, 1858, 1773,
 /*   320 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   330 */  1768, 1768, 2329, 2328, 2195, 1768, 2244, 2243, 2242, 2233,
 /*   340 */  2194, 1942, 1768, 2193, 2192, 1768, 1768, 1768, 1768, 1768,
 /*   350 */  1768, 1768, 1768, 1768, 2063, 2062, 2186, 1768, 1768, 2187,
 /*   360 */  2185, 2184, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   370 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   380 */  1768, 1768, 1768, 1768, 1768, 1768, 2349, 2353, 1768, 1768,
 /*   390 */  1768, 1768, 1768, 1768, 2269, 1768, 1768, 1768, 2168, 1768,
 /*   400 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   410 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   420 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   430 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   440 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   450 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   460 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   470 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   480 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   490 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   500 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   510 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   520 */  1768, 1768, 1768, 1768, 1768, 1768, 1805, 2173, 1768, 1768,
 /*   530 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   540 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   550 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   560 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   570 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1896, 1895,
 /*   580 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   590 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   600 */  1768, 1768, 2177, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   610 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   620 */  1768, 2345, 2302, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   630 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   640 */  1768, 2168, 1768, 2327, 1768, 1768, 2343, 1768, 2347, 1768,
 /*   650 */  1768, 1768, 1768, 1768, 1768, 1768, 2279, 2275, 1768, 1768,
 /*   660 */  2271, 1768, 1768, 1768, 1768, 1768, 2176, 1768, 1768, 1768,
 /*   670 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   680 */  2167, 1768, 2230, 1768, 1768, 1768, 2264, 1768, 1768, 2215,
 /*   690 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 2177,
 /*   700 */  1768, 2180, 1768, 1768, 1768, 1768, 1768, 1974, 1768, 1768,
 /*   710 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   720 */  1768, 1768, 1768, 1958, 1956, 1955, 1954, 1768, 1987, 1768,
 /*   730 */  1768, 1768, 1983, 1982, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   740 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1876, 1768, 1768,
 /*   750 */  1768, 1768, 1768, 1768, 1768, 1768, 1868, 1768, 1867, 1768,
 /*   760 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   770 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   780 */  1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768, 1768,
 /*   790 */  1768,
};
/********** End of lemon-generated parsing tables *****************************/

/* The next table maps tokens (terminal symbols) into fallback tokens.  
** If a construct like the following:
** 
**      %fallback ID X Y Z.
**
** appears in the grammar, then ID becomes a fallback token for X, Y,
** and Z.  Whenever one of the tokens X, Y, or Z is input to the parser
** but it does not parse, the type of the token is changed to ID and
** the parse is retried before an error is thrown.
**
** This feature can be used, for example, to cause some keywords in a language
** to revert to identifiers if they keyword does not apply in the context where
** it appears.
*/
#ifdef YYFALLBACK
static const YYCODETYPE yyFallback[] = {
    0,  /*          $ => nothing */
    0,  /*         OR => nothing */
    0,  /*        AND => nothing */
    0,  /*      UNION => nothing */
    0,  /*        ALL => nothing */
    0,  /*      MINUS => nothing */
    0,  /*     EXCEPT => nothing */
    0,  /*  INTERSECT => nothing */
    0,  /*  NK_BITAND => nothing */
    0,  /*   NK_BITOR => nothing */
    0,  /*  NK_LSHIFT => nothing */
    0,  /*  NK_RSHIFT => nothing */
    0,  /*    NK_PLUS => nothing */
    0,  /*   NK_MINUS => nothing */
    0,  /*    NK_STAR => nothing */
    0,  /*   NK_SLASH => nothing */
    0,  /*     NK_REM => nothing */
    0,  /*  NK_CONCAT => nothing */
    0,  /*     CREATE => nothing */
    0,  /*    ACCOUNT => nothing */
    0,  /*      NK_ID => nothing */
    0,  /*       PASS => nothing */
    0,  /*  NK_STRING => nothing */
    0,  /*      ALTER => nothing */
    0,  /*        PPS => nothing */
    0,  /*    TSERIES => nothing */
    0,  /*    STORAGE => nothing */
    0,  /*    STREAMS => nothing */
    0,  /*      QTIME => nothing */
    0,  /*        DBS => nothing */
    0,  /*      USERS => nothing */
    0,  /*      CONNS => nothing */
    0,  /*      STATE => nothing */
    0,  /*       USER => nothing */
    0,  /*     ENABLE => nothing */
    0,  /* NK_INTEGER => nothing */
    0,  /*    SYSINFO => nothing */
    0,  /*       DROP => nothing */
    0,  /*      GRANT => nothing */
    0,  /*         ON => nothing */
    0,  /*         TO => nothing */
    0,  /*     REVOKE => nothing */
    0,  /*       FROM => nothing */
    0,  /*  SUBSCRIBE => nothing */
    0,  /*   NK_COMMA => nothing */
    0,  /*       READ => nothing */
    0,  /*      WRITE => nothing */
    0,  /*     NK_DOT => nothing */
    0,  /*       WITH => nothing */
    0,  /*      DNODE => nothing */
    0,  /*       PORT => nothing */
    0,  /*     DNODES => nothing */
    0,  /*    RESTORE => nothing */
    0,  /* NK_IPTOKEN => nothing */
    0,  /*      FORCE => nothing */
    0,  /*     UNSAFE => nothing */
    0,  /*      LOCAL => nothing */
    0,  /*      QNODE => nothing */
    0,  /*      BNODE => nothing */
    0,  /*      SNODE => nothing */
    0,  /*      MNODE => nothing */
    0,  /*      VNODE => nothing */
    0,  /*   DATABASE => nothing */
    0,  /*        USE => nothing */
    0,  /*      FLUSH => nothing */
    0,  /*       TRIM => nothing */
    0,  /*    COMPACT => nothing */
    0,  /*         IF => nothing */
    0,  /*        NOT => nothing */
    0,  /*     EXISTS => nothing */
    0,  /*     BUFFER => nothing */
    0,  /* CACHEMODEL => nothing */
    0,  /*  CACHESIZE => nothing */
    0,  /*       COMP => nothing */
    0,  /*   DURATION => nothing */
    0,  /* NK_VARIABLE => nothing */
    0,  /*    MAXROWS => nothing */
    0,  /*    MINROWS => nothing */
    0,  /*       KEEP => nothing */
    0,  /*      PAGES => nothing */
    0,  /*   PAGESIZE => nothing */
    0,  /* TSDB_PAGESIZE => nothing */
    0,  /*  PRECISION => nothing */
    0,  /*    REPLICA => nothing */
    0,  /*    VGROUPS => nothing */
    0,  /* SINGLE_STABLE => nothing */
    0,  /* RETENTIONS => nothing */
    0,  /* SCHEMALESS => nothing */
    0,  /*  WAL_LEVEL => nothing */
    0,  /* WAL_FSYNC_PERIOD => nothing */
    0,  /* WAL_RETENTION_PERIOD => nothing */
    0,  /* WAL_RETENTION_SIZE => nothing */
    0,  /* WAL_ROLL_PERIOD => nothing */
    0,  /* WAL_SEGMENT_SIZE => nothing */
    0,  /* STT_TRIGGER => nothing */
    0,  /* TABLE_PREFIX => nothing */
    0,  /* TABLE_SUFFIX => nothing */
    0,  /*   NK_COLON => nothing */
    0,  /*  MAX_SPEED => nothing */
    0,  /*      START => nothing */
    0,  /*  TIMESTAMP => nothing */
  287,  /*        END => ABORT */
    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,  /*       BOOL => nothing */
    0,  /*    TINYINT => nothing */
    0,  /*   SMALLINT => nothing */
    0,  /*        INT => nothing */
    0,  /*    INTEGER => nothing */
    0,  /*     BIGINT => nothing */
    0,  /*      FLOAT => nothing */
    0,  /*     DOUBLE => nothing */
    0,  /*     BINARY => nothing */
    0,  /*      NCHAR => nothing */
    0,  /*   UNSIGNED => nothing */
    0,  /*       JSON => nothing */
    0,  /*    VARCHAR => nothing */
    0,  /* MEDIUMBLOB => nothing */
    0,  /*       BLOB => nothing */
    0,  /*  VARBINARY => nothing */
    0,  /*   GEOMETRY => nothing */
    0,  /*    DECIMAL => nothing */
    0,  /*    COMMENT => nothing */
    0,  /*  MAX_DELAY => nothing */
    0,  /*  WATERMARK => nothing */
    0,  /*     ROLLUP => nothing */
    0,  /*        TTL => nothing */
    0,  /*        SMA => nothing */
    0,  /* DELETE_MARK => nothing */
    0,  /*      FIRST => nothing */
    0,  /*       LAST => nothing */
    0,  /*       SHOW => nothing */
    0,  /* PRIVILEGES => nothing */
    0,  /*  DATABASES => nothing */
    0,  /*     TABLES => nothing */
    0,  /*    STABLES => nothing */
    0,  /*     MNODES => nothing */
    0,  /*     QNODES => nothing */
    0,  /*  FUNCTIONS => nothing */
    0,  /*    INDEXES => nothing */
    0,  /*   ACCOUNTS => nothing */
    0,  /*       APPS => nothing */
    0,  /* CONNECTIONS => nothing */
    0,  /*   LICENCES => nothing */
    0,  /*     GRANTS => nothing */
    0,  /*    QUERIES => nothing */
    0,  /*     SCORES => nothing */
    0,  /*     TOPICS => nothing */
    0,  /*  VARIABLES => nothing */
    0,  /*    CLUSTER => nothing */
    0,  /*     BNODES => nothing */
    0,  /*     SNODES => nothing */
    0,  /* TRANSACTIONS => nothing */
    0,  /* DISTRIBUTED => nothing */
    0,  /*  CONSUMERS => nothing */
    0,  /* SUBSCRIPTIONS => nothing */
    0,  /*     VNODES => nothing */
    0,  /*      ALIVE => nothing */
    0,  /*       LIKE => nothing */
    0,  /*     TBNAME => nothing */
    0,  /*      QTAGS => nothing */
    0,  /*         AS => nothing */
    0,  /*      INDEX => nothing */
    0,  /*   FUNCTION => nothing */
    0,  /*   INTERVAL => nothing */
    0,  /*      COUNT => nothing */
    0,  /*   LAST_ROW => nothing */
    0,  /*       META => nothing */
    0,  /*       ONLY => nothing */
    0,  /*      TOPIC => nothing */
    0,  /*   CONSUMER => nothing */
    0,  /*      GROUP => nothing */
    0,  /*       DESC => nothing */
    0,  /*   DESCRIBE => nothing */
    0,  /*      RESET => nothing */
    0,  /*      QUERY => nothing */
    0,  /*      CACHE => nothing */
    0,  /*    EXPLAIN => nothing */
    0,  /*    ANALYZE => nothing */
    0,  /*    VERBOSE => nothing */
    0,  /*    NK_BOOL => nothing */
    0,  /*      RATIO => nothing */
    0,  /*   NK_FLOAT => nothing */
    0,  /* OUTPUTTYPE => nothing */
    0,  /*  AGGREGATE => nothing */
    0,  /*    BUFSIZE => nothing */
    0,  /*   LANGUAGE => nothing */
    0,  /*    REPLACE => nothing */
    0,  /*     STREAM => nothing */
    0,  /*       INTO => nothing */
    0,  /*      PAUSE => nothing */
    0,  /*     RESUME => nothing */
    0,  /*    TRIGGER => nothing */
    0,  /*    AT_ONCE => nothing */
    0,  /* WINDOW_CLOSE => nothing */
    0,  /*     IGNORE => nothing */
    0,  /*    EXPIRED => nothing */
    0,  /* FILL_HISTORY => nothing */
    0,  /*     UPDATE => nothing */
    0,  /*   SUBTABLE => nothing */
    0,  /*  UNTREATED => nothing */
    0,  /*       KILL => nothing */
    0,  /* CONNECTION => nothing */
    0,  /* TRANSACTION => nothing */
    0,  /*    BALANCE => nothing */
    0,  /*     VGROUP => nothing */
    0,  /*     LEADER => nothing */
    0,  /*      MERGE => nothing */
    0,  /* REDISTRIBUTE => nothing */
    0,  /*      SPLIT => nothing */
    0,  /*     DELETE => nothing */
    0,  /*     INSERT => nothing */
    0,  /*       NULL => nothing */
    0,  /* NK_QUESTION => nothing */
    0,  /*   NK_ARROW => nothing */
    0,  /*      ROWTS => nothing */
    0,  /*     QSTART => nothing */
    0,  /*       QEND => nothing */
    0,  /*  QDURATION => nothing */
    0,  /*     WSTART => nothing */
    0,  /*       WEND => nothing */
    0,  /*  WDURATION => nothing */
    0,  /*     IROWTS => nothing */
    0,  /*   ISFILLED => nothing */
    0,  /*       CAST => nothing */
    0,  /*        NOW => nothing */
    0,  /*      TODAY => nothing */
    0,  /*   TIMEZONE => nothing */
    0,  /* CLIENT_VERSION => nothing */
    0,  /* SERVER_VERSION => nothing */
    0,  /* SERVER_STATUS => nothing */
    0,  /* CURRENT_USER => nothing */
    0,  /*       CASE => nothing */
    0,  /*       WHEN => nothing */
    0,  /*       THEN => nothing */
    0,  /*       ELSE => nothing */
    0,  /*    BETWEEN => nothing */
    0,  /*         IS => nothing */
    0,  /*      NK_LT => nothing */
    0,  /*      NK_GT => nothing */
    0,  /*      NK_LE => nothing */
    0,  /*      NK_GE => nothing */
    0,  /*      NK_NE => nothing */
    0,  /*      MATCH => nothing */
    0,  /*     NMATCH => nothing */
    0,  /*   CONTAINS => nothing */
    0,  /*         IN => nothing */
    0,  /*       JOIN => nothing */
    0,  /*      INNER => nothing */
    0,  /*     SELECT => nothing */
    0,  /*   DISTINCT => nothing */
    0,  /*      WHERE => nothing */
    0,  /*  PARTITION => nothing */
    0,  /*         BY => nothing */
    0,  /*    SESSION => nothing */
    0,  /* STATE_WINDOW => nothing */
    0,  /* EVENT_WINDOW => nothing */
    0,  /*    SLIDING => nothing */
    0,  /*       FILL => nothing */
    0,  /*      VALUE => nothing */
    0,  /*    VALUE_F => nothing */
    0,  /*       NONE => nothing */
    0,  /*       PREV => nothing */
    0,  /*     NULL_F => nothing */
    0,  /*     LINEAR => nothing */
    0,  /*       NEXT => nothing */
    0,  /*     HAVING => nothing */
    0,  /*      RANGE => nothing */
    0,  /*      EVERY => nothing */
    0,  /*      ORDER => nothing */
    0,  /*     SLIMIT => nothing */
    0,  /*    SOFFSET => nothing */
    0,  /*      LIMIT => nothing */
    0,  /*     OFFSET => nothing */
    0,  /*        ASC => nothing */
    0,  /*      NULLS => nothing */
    0,  /*      ABORT => nothing */
  287,  /*      AFTER => ABORT */
  287,  /*     ATTACH => ABORT */
  287,  /*     BEFORE => ABORT */
  287,  /*      BEGIN => ABORT */
  287,  /*     BITAND => ABORT */
  287,  /*     BITNOT => ABORT */
  287,  /*      BITOR => ABORT */
  287,  /*     BLOCKS => ABORT */
  287,  /*     CHANGE => ABORT */
  287,  /*      COMMA => ABORT */
  287,  /*     CONCAT => ABORT */
  287,  /*   CONFLICT => ABORT */
  287,  /*       COPY => ABORT */
  287,  /*   DEFERRED => ABORT */
  287,  /* DELIMITERS => ABORT */
  287,  /*     DETACH => ABORT */
  287,  /*     DIVIDE => ABORT */
  287,  /*        DOT => ABORT */
  287,  /*       EACH => ABORT */
  287,  /*       FAIL => ABORT */
  287,  /*       FILE => ABORT */
  287,  /*        FOR => ABORT */
  287,  /*       GLOB => ABORT */
  287,  /*         ID => ABORT */
  287,  /*  IMMEDIATE => ABORT */
  287,  /*     IMPORT => ABORT */
  287,  /*  INITIALLY => ABORT */
  287,  /*    INSTEAD => ABORT */
  287,  /*     ISNULL => ABORT */
  287,  /*        KEY => ABORT */
  287,  /*    MODULES => ABORT */
  287,  /*  NK_BITNOT => ABORT */
  287,  /*    NK_SEMI => ABORT */
  287,  /*    NOTNULL => ABORT */
  287,  /*         OF => ABORT */
  287,  /*       PLUS => ABORT */
  287,  /*  PRIVILEGE => ABORT */
  287,  /*      RAISE => ABORT */
  287,  /*   RESTRICT => ABORT */
  287,  /*        ROW => ABORT */
  287,  /*       SEMI => ABORT */
  287,  /*       STAR => ABORT */
  287,  /*  STATEMENT => ABORT */
  287,  /*     STRICT => ABORT */
  287,  /*     STRING => ABORT */
  287,  /*      TIMES => ABORT */
  287,  /*     VALUES => ABORT */
  287,  /*   VARIABLE => ABORT */
  287,  /*       VIEW => ABORT */
  287,  /*        WAL => ABORT */
};
#endif /* YYFALLBACK */

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

/* The state of the parser is completely contained in an instance of
** the following structure */
struct yyParser {
  yyStackEntry *yytos;          /* Pointer to top element of the stack */
#ifdef YYTRACKMAXSTACKDEPTH
  int yyhwm;                    /* High-water mark of the stack */
#endif
#ifndef YYNOERRORRECOVERY
  int yyerrcnt;                 /* Shifts left before out of the error */
#endif
  ParseARG_SDECL                /* A place to hold %extra_argument */
  ParseCTX_SDECL                /* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
  int yystksz;                  /* Current side of the stack */
  yyStackEntry *yystack;        /* The parser's stack */
  yyStackEntry yystk0;          /* First stack entry */
#else
  yyStackEntry yystack[YYSTACKDEPTH];  /* The parser's stack */
  yyStackEntry *yystackEnd;            /* Last entry in the stack */
#endif
};
typedef struct yyParser yyParser;

#ifndef NDEBUG
#include <stdio.h>
#include <assert.h>
static FILE *yyTraceFILE = 0;
static char *yyTracePrompt = 0;
#endif /* NDEBUG */

#ifndef NDEBUG
/* 
** Turn parser tracing on by giving a stream to which to write the trace
** and a prompt to preface each trace message.  Tracing is turned off
** by making either argument NULL 
**
** Inputs:
** <ul>
** <li> A FILE* to which trace output should be written.
**      If NULL, then tracing is turned off.
** <li> A prefix string written at the beginning of every
**      line of trace output.  If NULL, then tracing is
**      turned off.
** </ul>
**
** Outputs:
** None.
*/
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
  yyTraceFILE = TraceFILE;
  yyTracePrompt = zTracePrompt;
  if( yyTraceFILE==0 ) yyTracePrompt = 0;
  else if( yyTracePrompt==0 ) yyTraceFILE = 0;
}
#endif /* NDEBUG */

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

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

/*
** Pop the parser's stack once.
**
** If there is a destructor routine associated with the token which
** is popped from the stack, then call it.
*/
static void yy_pop_parser_stack(yyParser *pParser){
  yyStackEntry *yytos;
  assert( pParser->yytos!=0 );
  assert( pParser->yytos > pParser->yystack );
  yytos = pParser->yytos--;
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sPopping %s\n",
      yyTracePrompt,
      yyTokenName[yytos->major]);
  }
#endif
  yy_destructor(pParser, yytos->major, &yytos->minor);
}

/*
** Clear all secondary memory allocations from the parser
*/
void ParseFinalize(void *p){
  yyParser *pParser = (yyParser*)p;
  while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
#if YYSTACKDEPTH<=0
  if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
#endif
}

#ifndef Parse_ENGINEALWAYSONSTACK
/* 
** Deallocate and destroy a parser.  Destructors are called for
** all stack elements before shutting the parser down.
**
** If the YYPARSEFREENEVERNULL macro exists (for example because it
** is defined in a %include section of the input grammar) then it is
** assumed that the input pointer is never NULL.
*/
void ParseFree(
  void *p,                    /* The parser to be deleted */
  void (*freeProc)(void*)     /* Function used to reclaim memory */
){
#ifndef YYPARSEFREENEVERNULL
  if( p==0 ) return;
#endif
  ParseFinalize(p);
  (*freeProc)(p);
}
#endif /* Parse_ENGINEALWAYSONSTACK */

/*
** Return the peak depth of the stack for a parser.
*/
#ifdef YYTRACKMAXSTACKDEPTH
int ParseStackPeak(void *p){
  yyParser *pParser = (yyParser*)p;
  return pParser->yyhwm;
}
#endif

/* This array of booleans keeps track of the parser statement
** coverage.  The element yycoverage[X][Y] is set when the parser
** is in state X and has a lookahead token Y.  In a well-tested
** systems, every element of this matrix should end up being set.
*/
#if defined(YYCOVERAGE)
static unsigned char yycoverage[YYNSTATE][YYNTOKEN];
#endif

/*
** Write into out a description of every state/lookahead combination that
**
**   (1)  has not been used by the parser, and
**   (2)  is not a syntax error.
**
** Return the number of missed state/lookahead combinations.
*/
#if defined(YYCOVERAGE)
int ParseCoverage(FILE *out){
  int stateno, iLookAhead, i;
  int nMissed = 0;
  for(stateno=0; stateno<YYNSTATE; stateno++){
    i = yy_shift_ofst[stateno];
    for(iLookAhead=0; iLookAhead<YYNTOKEN; iLookAhead++){
      if( yy_lookahead[i+iLookAhead]!=iLookAhead ) continue;
      if( yycoverage[stateno][iLookAhead]==0 ) nMissed++;
      if( out ){
        fprintf(out,"State %d lookahead %s %s\n", stateno,
                yyTokenName[iLookAhead],
                yycoverage[stateno][iLookAhead] ? "ok" : "missed");
      }
    }
  }
  return nMissed;
}
#endif

/*
** Find the appropriate action for a parser given the terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_shift_action(
  YYCODETYPE iLookAhead,    /* The look-ahead token */
  YYACTIONTYPE stateno      /* Current state number */
){
  int i;

  if( stateno>YY_MAX_SHIFT ) return stateno;
  assert( stateno <= YY_SHIFT_COUNT );
#if defined(YYCOVERAGE)
  yycoverage[stateno][iLookAhead] = 1;
#endif
  do{
    i = yy_shift_ofst[stateno];
    assert( i>=0 );
    assert( i<=YY_ACTTAB_COUNT );
    assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD );
    assert( iLookAhead!=YYNOCODE );
    assert( iLookAhead < YYNTOKEN );
    i += iLookAhead;
    assert( i<(int)YY_NLOOKAHEAD );
    if( yy_lookahead[i]!=iLookAhead ){
#ifdef YYFALLBACK
      YYCODETYPE iFallback;            /* Fallback token */
      assert( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) );
      iFallback = yyFallback[iLookAhead];
      if( iFallback!=0 ){
#ifndef NDEBUG
        if( yyTraceFILE ){
          fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
             yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
        }
#endif
        assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
        iLookAhead = iFallback;
        continue;
      }
#endif
#ifdef YYWILDCARD
      {
        int j = i - iLookAhead + YYWILDCARD;
        assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) );
        if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){
#ifndef NDEBUG
          if( yyTraceFILE ){
            fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
               yyTracePrompt, yyTokenName[iLookAhead],
               yyTokenName[YYWILDCARD]);
          }
#endif /* NDEBUG */
          return yy_action[j];
        }
      }
#endif /* YYWILDCARD */
      return yy_default[stateno];
    }else{
      assert( i>=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) );
      return yy_action[i];
    }
  }while(1);
}

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

/*
** The following routine is called if the stack overflows.
*/
static void yyStackOverflow(yyParser *yypParser){
   ParseARG_FETCH
   ParseCTX_FETCH
#ifndef NDEBUG
   if( yyTraceFILE ){
     fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
   }
#endif
   while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
   /* Here code is inserted which will execute if the parser
   ** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
/******** End %stack_overflow code ********************************************/
   ParseARG_STORE /* Suppress warning about unused %extra_argument var */
   ParseCTX_STORE
}

/*
** Print tracing information for a SHIFT action
*/
#ifndef NDEBUG
static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
  if( yyTraceFILE ){
    if( yyNewState<YYNSTATE ){
      fprintf(yyTraceFILE,"%s%s '%s', go to state %d\n",
         yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
         yyNewState);
    }else{
      fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n",
         yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
         yyNewState - YY_MIN_REDUCE);
    }
  }
}
#else
# define yyTraceShift(X,Y,Z)
#endif

/*
** Perform a shift action.
*/
static void yy_shift(
  yyParser *yypParser,          /* The parser to be shifted */
  YYACTIONTYPE yyNewState,      /* The new state to shift in */
  YYCODETYPE yyMajor,           /* The major token to shift in */
  ParseTOKENTYPE yyMinor        /* The minor token to shift in */
){
  yyStackEntry *yytos;
  yypParser->yytos++;
#ifdef YYTRACKMAXSTACKDEPTH
  if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
    yypParser->yyhwm++;
    assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) );
  }
#endif
#if YYSTACKDEPTH>0 
  if( yypParser->yytos>yypParser->yystackEnd ){
    yypParser->yytos--;
    yyStackOverflow(yypParser);
    return;
  }
#else
  if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
    if( yyGrowStack(yypParser) ){
      yypParser->yytos--;
      yyStackOverflow(yypParser);
      return;
    }
  }
#endif
  if( yyNewState > YY_MAX_SHIFT ){
    yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE;
  }
  yytos = yypParser->yytos;
  yytos->stateno = yyNewState;
  yytos->major = yyMajor;
  yytos->minor.yy0 = yyMinor;
  yyTraceShift(yypParser, yyNewState, "Shift");
}

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

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

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

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

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

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

/*
** The following code executes when the parse fails
*/
#ifndef YYNOERRORRECOVERY
static void yy_parse_failed(
  yyParser *yypParser           /* The parser */
){
  ParseARG_FETCH
  ParseCTX_FETCH
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt);
  }
#endif
  while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
  /* Here code is inserted which will be executed whenever the
  ** parser fails */
/************ Begin %parse_failure code ***************************************/
/************ End %parse_failure code *****************************************/
  ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
  ParseCTX_STORE
}
#endif /* YYNOERRORRECOVERY */

/*
** The following code executes when a syntax error first occurs.
*/
static void yy_syntax_error(
  yyParser *yypParser,           /* The parser */
  int yymajor,                   /* The major type of the error token */
  ParseTOKENTYPE yyminor         /* The minor type of the error token */
){
  ParseARG_FETCH
  ParseCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/

  if (TSDB_CODE_SUCCESS == pCxt->errCode) {
    if(TOKEN.z) {
      pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
    } else {
      pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL);
    }
  } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) {
    pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
  }
/************ End %syntax_error code ******************************************/
  ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
  ParseCTX_STORE
}

/*
** The following is executed when the parser accepts
*/
static void yy_accept(
  yyParser *yypParser           /* The parser */
){
  ParseARG_FETCH
  ParseCTX_FETCH
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt);
  }
#endif
#ifndef YYNOERRORRECOVERY
  yypParser->yyerrcnt = -1;
#endif
  assert( yypParser->yytos==yypParser->yystack );
  /* Here code is inserted which will be executed whenever the
  ** parser accepts */
/*********** Begin %parse_accept code *****************************************/
/*********** End %parse_accept code *******************************************/
  ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
  ParseCTX_STORE
}

/* The main parser program.
** The first argument is a pointer to a structure obtained from
** "ParseAlloc" which describes the current state of the parser.
** The second argument is the major token number.  The third is
** the minor token.  The fourth optional argument is whatever the
** user wants (and specified in the grammar) and is available for
** use by the action routines.
**
** Inputs:
** <ul>
** <li> A pointer to the parser (an opaque structure.)
** <li> The major token number.
** <li> The minor token number.
** <li> An option argument of a grammar-specified type.
** </ul>
**
** Outputs:
** None.
*/
void Parse(
  void *yyp,                   /* The parser */
  int yymajor,                 /* The major token code number */
  ParseTOKENTYPE yyminor       /* The value for the token */
  ParseARG_PDECL               /* Optional %extra_argument parameter */
){
  YYMINORTYPE yyminorunion;
  YYACTIONTYPE yyact;   /* The parser action. */
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
  int yyendofinput;     /* True if we are at the end of input */
#endif
#ifdef YYERRORSYMBOL
  int yyerrorhit = 0;   /* True if yymajor has invoked an error */
#endif
  yyParser *yypParser = (yyParser*)yyp;  /* The parser */
  ParseCTX_FETCH
  ParseARG_STORE

  assert( yypParser->yytos!=0 );
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
  yyendofinput = (yymajor==0);
#endif

  yyact = yypParser->yytos->stateno;
#ifndef NDEBUG
  if( yyTraceFILE ){
    if( yyact < YY_MIN_REDUCE ){
      fprintf(yyTraceFILE,"%sInput '%s' in state %d\n",
              yyTracePrompt,yyTokenName[yymajor],yyact);
    }else{
      fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n",
              yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE);
    }
  }
#endif

  while(1){ /* Exit by "break" */
    assert( yypParser->yytos>=yypParser->yystack );
    assert( yyact==yypParser->yytos->stateno );
    yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
    if( yyact >= YY_MIN_REDUCE ){
      unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */
      assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) );
#ifndef NDEBUG
      if( yyTraceFILE ){
        int yysize = yyRuleInfoNRhs[yyruleno];
        if( yysize ){
          fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
            yyTracePrompt,
            yyruleno, yyRuleName[yyruleno],
            yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
            yypParser->yytos[yysize].stateno);
        }else{
          fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
            yyTracePrompt, yyruleno, yyRuleName[yyruleno],
            yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
        }
      }
#endif /* NDEBUG */

      /* Check that the stack is large enough to grow by a single entry
      ** if the RHS of the rule is empty.  This ensures that there is room
      ** enough on the stack to push the LHS value */
      if( yyRuleInfoNRhs[yyruleno]==0 ){
#ifdef YYTRACKMAXSTACKDEPTH
        if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
          yypParser->yyhwm++;
          assert( yypParser->yyhwm ==
                  (int)(yypParser->yytos - yypParser->yystack));
        }
#endif
#if YYSTACKDEPTH>0 
        if( yypParser->yytos>=yypParser->yystackEnd ){
          yyStackOverflow(yypParser);
          break;
        }
#else
        if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
          if( yyGrowStack(yypParser) ){
            yyStackOverflow(yypParser);
            break;
          }
        }
#endif
      }
      yyact = yy_reduce(yypParser,yyruleno,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);
          if( yyact<=YY_MAX_SHIFTREDUCE ) break;
          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
    }
  }
#ifndef NDEBUG
  if( yyTraceFILE ){
    yyStackEntry *i;
    char cDiv = '[';
    fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt);
    for(i=&yypParser->yystack[1]; i<=yypParser->yytos; i++){
      fprintf(yyTraceFILE,"%c%s", cDiv, yyTokenName[i->major]);
      cDiv = ' ';
    }
    fprintf(yyTraceFILE,"]\n");
  }
#endif
  return;
}

/*
** Return the fallback token corresponding to canonical token iToken, or
** 0 if iToken has no fallback.
*/
int ParseFallback(int iToken){
#ifdef YYFALLBACK
  assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
  return yyFallback[iToken];
#else
  (void)iToken;
  return 0;
#endif
}
