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

7422 lines
385 KiB
C

/* 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_NK_COMMA 33
#define TK_HOST 34
#define TK_USER 35
#define TK_ENABLE 36
#define TK_NK_INTEGER 37
#define TK_SYSINFO 38
#define TK_ADD 39
#define TK_DROP 40
#define TK_GRANT 41
#define TK_ON 42
#define TK_TO 43
#define TK_REVOKE 44
#define TK_FROM 45
#define TK_SUBSCRIBE 46
#define TK_READ 47
#define TK_WRITE 48
#define TK_NK_DOT 49
#define TK_WITH 50
#define TK_DNODE 51
#define TK_PORT 52
#define TK_DNODES 53
#define TK_RESTORE 54
#define TK_NK_IPTOKEN 55
#define TK_FORCE 56
#define TK_UNSAFE 57
#define TK_CLUSTER 58
#define TK_LOCAL 59
#define TK_QNODE 60
#define TK_BNODE 61
#define TK_SNODE 62
#define TK_MNODE 63
#define TK_VNODE 64
#define TK_DATABASE 65
#define TK_USE 66
#define TK_FLUSH 67
#define TK_TRIM 68
#define TK_COMPACT 69
#define TK_IF 70
#define TK_NOT 71
#define TK_EXISTS 72
#define TK_BUFFER 73
#define TK_CACHEMODEL 74
#define TK_CACHESIZE 75
#define TK_COMP 76
#define TK_DURATION 77
#define TK_NK_VARIABLE 78
#define TK_MAXROWS 79
#define TK_MINROWS 80
#define TK_KEEP 81
#define TK_PAGES 82
#define TK_PAGESIZE 83
#define TK_TSDB_PAGESIZE 84
#define TK_PRECISION 85
#define TK_REPLICA 86
#define TK_VGROUPS 87
#define TK_SINGLE_STABLE 88
#define TK_RETENTIONS 89
#define TK_SCHEMALESS 90
#define TK_WAL_LEVEL 91
#define TK_WAL_FSYNC_PERIOD 92
#define TK_WAL_RETENTION_PERIOD 93
#define TK_WAL_RETENTION_SIZE 94
#define TK_WAL_ROLL_PERIOD 95
#define TK_WAL_SEGMENT_SIZE 96
#define TK_STT_TRIGGER 97
#define TK_TABLE_PREFIX 98
#define TK_TABLE_SUFFIX 99
#define TK_KEEP_TIME_OFFSET 100
#define TK_NK_COLON 101
#define TK_BWLIMIT 102
#define TK_START 103
#define TK_TIMESTAMP 104
#define TK_END 105
#define TK_TABLE 106
#define TK_NK_LP 107
#define TK_NK_RP 108
#define TK_STABLE 109
#define TK_COLUMN 110
#define TK_MODIFY 111
#define TK_RENAME 112
#define TK_TAG 113
#define TK_SET 114
#define TK_NK_EQ 115
#define TK_USING 116
#define TK_TAGS 117
#define TK_PRIMARY 118
#define TK_KEY 119
#define TK_BOOL 120
#define TK_TINYINT 121
#define TK_SMALLINT 122
#define TK_INT 123
#define TK_INTEGER 124
#define TK_BIGINT 125
#define TK_FLOAT 126
#define TK_DOUBLE 127
#define TK_BINARY 128
#define TK_NCHAR 129
#define TK_UNSIGNED 130
#define TK_JSON 131
#define TK_VARCHAR 132
#define TK_MEDIUMBLOB 133
#define TK_BLOB 134
#define TK_VARBINARY 135
#define TK_GEOMETRY 136
#define TK_DECIMAL 137
#define TK_COMMENT 138
#define TK_MAX_DELAY 139
#define TK_WATERMARK 140
#define TK_ROLLUP 141
#define TK_TTL 142
#define TK_SMA 143
#define TK_DELETE_MARK 144
#define TK_FIRST 145
#define TK_LAST 146
#define TK_SHOW 147
#define TK_PRIVILEGES 148
#define TK_DATABASES 149
#define TK_TABLES 150
#define TK_STABLES 151
#define TK_MNODES 152
#define TK_QNODES 153
#define TK_ARBGROUPS 154
#define TK_FUNCTIONS 155
#define TK_INDEXES 156
#define TK_ACCOUNTS 157
#define TK_APPS 158
#define TK_CONNECTIONS 159
#define TK_LICENCES 160
#define TK_GRANTS 161
#define TK_FULL 162
#define TK_LOGS 163
#define TK_MACHINES 164
#define TK_QUERIES 165
#define TK_SCORES 166
#define TK_TOPICS 167
#define TK_VARIABLES 168
#define TK_BNODES 169
#define TK_SNODES 170
#define TK_TRANSACTIONS 171
#define TK_DISTRIBUTED 172
#define TK_CONSUMERS 173
#define TK_SUBSCRIPTIONS 174
#define TK_VNODES 175
#define TK_ALIVE 176
#define TK_VIEWS 177
#define TK_VIEW 178
#define TK_COMPACTS 179
#define TK_NORMAL 180
#define TK_CHILD 181
#define TK_LIKE 182
#define TK_TBNAME 183
#define TK_QTAGS 184
#define TK_AS 185
#define TK_SYSTEM 186
#define TK_INDEX 187
#define TK_FUNCTION 188
#define TK_INTERVAL 189
#define TK_COUNT 190
#define TK_LAST_ROW 191
#define TK_META 192
#define TK_ONLY 193
#define TK_TOPIC 194
#define TK_CONSUMER 195
#define TK_GROUP 196
#define TK_DESC 197
#define TK_DESCRIBE 198
#define TK_RESET 199
#define TK_QUERY 200
#define TK_CACHE 201
#define TK_EXPLAIN 202
#define TK_ANALYZE 203
#define TK_VERBOSE 204
#define TK_NK_BOOL 205
#define TK_RATIO 206
#define TK_NK_FLOAT 207
#define TK_OUTPUTTYPE 208
#define TK_AGGREGATE 209
#define TK_BUFSIZE 210
#define TK_LANGUAGE 211
#define TK_REPLACE 212
#define TK_STREAM 213
#define TK_INTO 214
#define TK_PAUSE 215
#define TK_RESUME 216
#define TK_TRIGGER 217
#define TK_AT_ONCE 218
#define TK_WINDOW_CLOSE 219
#define TK_IGNORE 220
#define TK_EXPIRED 221
#define TK_FILL_HISTORY 222
#define TK_UPDATE 223
#define TK_SUBTABLE 224
#define TK_UNTREATED 225
#define TK_KILL 226
#define TK_CONNECTION 227
#define TK_TRANSACTION 228
#define TK_BALANCE 229
#define TK_VGROUP 230
#define TK_LEADER 231
#define TK_MERGE 232
#define TK_REDISTRIBUTE 233
#define TK_SPLIT 234
#define TK_DELETE 235
#define TK_INSERT 236
#define TK_NK_BIN 237
#define TK_NK_HEX 238
#define TK_NULL 239
#define TK_NK_QUESTION 240
#define TK_NK_ALIAS 241
#define TK_NK_ARROW 242
#define TK_ROWTS 243
#define TK_QSTART 244
#define TK_QEND 245
#define TK_QDURATION 246
#define TK_WSTART 247
#define TK_WEND 248
#define TK_WDURATION 249
#define TK_IROWTS 250
#define TK_ISFILLED 251
#define TK_CAST 252
#define TK_NOW 253
#define TK_TODAY 254
#define TK_TIMEZONE 255
#define TK_CLIENT_VERSION 256
#define TK_SERVER_VERSION 257
#define TK_SERVER_STATUS 258
#define TK_CURRENT_USER 259
#define TK_CASE 260
#define TK_WHEN 261
#define TK_THEN 262
#define TK_ELSE 263
#define TK_BETWEEN 264
#define TK_IS 265
#define TK_NK_LT 266
#define TK_NK_GT 267
#define TK_NK_LE 268
#define TK_NK_GE 269
#define TK_NK_NE 270
#define TK_MATCH 271
#define TK_NMATCH 272
#define TK_CONTAINS 273
#define TK_IN 274
#define TK_JOIN 275
#define TK_INNER 276
#define TK_SELECT 277
#define TK_NK_HINT 278
#define TK_DISTINCT 279
#define TK_WHERE 280
#define TK_PARTITION 281
#define TK_BY 282
#define TK_SESSION 283
#define TK_STATE_WINDOW 284
#define TK_EVENT_WINDOW 285
#define TK_COUNT_WINDOW 286
#define TK_SLIDING 287
#define TK_FILL 288
#define TK_VALUE 289
#define TK_VALUE_F 290
#define TK_NONE 291
#define TK_PREV 292
#define TK_NULL_F 293
#define TK_LINEAR 294
#define TK_NEXT 295
#define TK_HAVING 296
#define TK_RANGE 297
#define TK_EVERY 298
#define TK_ORDER 299
#define TK_SLIMIT 300
#define TK_SOFFSET 301
#define TK_LIMIT 302
#define TK_OFFSET 303
#define TK_ASC 304
#define TK_NULLS 305
#define TK_ABORT 306
#define TK_AFTER 307
#define TK_ATTACH 308
#define TK_BEFORE 309
#define TK_BEGIN 310
#define TK_BITAND 311
#define TK_BITNOT 312
#define TK_BITOR 313
#define TK_BLOCKS 314
#define TK_CHANGE 315
#define TK_COMMA 316
#define TK_CONCAT 317
#define TK_CONFLICT 318
#define TK_COPY 319
#define TK_DEFERRED 320
#define TK_DELIMITERS 321
#define TK_DETACH 322
#define TK_DIVIDE 323
#define TK_DOT 324
#define TK_EACH 325
#define TK_FAIL 326
#define TK_FILE 327
#define TK_FOR 328
#define TK_GLOB 329
#define TK_ID 330
#define TK_IMMEDIATE 331
#define TK_IMPORT 332
#define TK_INITIALLY 333
#define TK_INSTEAD 334
#define TK_ISNULL 335
#define TK_MODULES 336
#define TK_NK_BITNOT 337
#define TK_NK_SEMI 338
#define TK_NOTNULL 339
#define TK_OF 340
#define TK_PLUS 341
#define TK_PRIVILEGE 342
#define TK_RAISE 343
#define TK_RESTRICT 344
#define TK_ROW 345
#define TK_SEMI 346
#define TK_STAR 347
#define TK_STATEMENT 348
#define TK_STRICT 349
#define TK_STRING 350
#define TK_TIMES 351
#define TK_VALUES 352
#define TK_VARIABLE 353
#define TK_WAL 354
#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 520
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SToken
typedef union {
int yyinit;
ParseTOKENTYPE yy0;
int32_t yy20;
SNodeList* yy184;
ENullOrder yy217;
EOperatorType yy220;
SToken yy369;
EFillMode yy374;
bool yy377;
SNode* yy392;
SShowTablesOption yy397;
EOrder yy578;
int8_t yy743;
SAlterOption yy845;
EShowKind yy849;
SDataType yy864;
int64_t yy909;
EJoinType yy932;
STokenPair yy937;
} 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 865
#define YYNRULE 676
#define YYNRULE_WITH_ACTION 676
#define YYNTOKEN 355
#define YY_MAX_SHIFT 864
#define YY_MIN_SHIFTREDUCE 1290
#define YY_MAX_SHIFTREDUCE 1965
#define YY_ERROR_ACTION 1966
#define YY_ACCEPT_ACTION 1967
#define YY_NO_ACTION 1968
#define YY_MIN_REDUCE 1969
#define YY_MAX_REDUCE 2644
/************* 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 (3107)
static const YYACTIONTYPE yy_action[] = {
/* 0 */ 795, 475, 37, 311, 714, 575, 474, 2615, 576, 2012,
/* 10 */ 2299, 429, 47, 45, 1887, 2402, 2148, 186, 427, 166,
/* 20 */ 420, 1970, 1727, 726, 147, 713, 205, 2161, 2297, 751,
/* 30 */ 2616, 715, 2248, 2150, 1752, 1813, 2055, 1725, 580, 391,
/* 40 */ 2299, 2279, 128, 2443, 577, 127, 126, 125, 124, 123,
/* 50 */ 122, 121, 120, 119, 685, 423, 729, 2615, 2296, 751,
/* 60 */ 1753, 1337, 40, 39, 709, 1808, 46, 44, 43, 42,
/* 70 */ 41, 19, 426, 406, 2346, 2621, 205, 708, 1733, 763,
/* 80 */ 2616, 715, 2213, 768, 2461, 1335, 1336, 40, 39, 389,
/* 90 */ 426, 46, 44, 43, 42, 41, 2409, 2211, 746, 583,
/* 100 */ 664, 768, 576, 2012, 861, 2461, 175, 15, 763, 836,
/* 110 */ 835, 834, 833, 438, 2098, 832, 831, 152, 826, 825,
/* 120 */ 824, 823, 822, 821, 820, 151, 814, 813, 812, 437,
/* 130 */ 436, 809, 808, 807, 185, 184, 806, 303, 2542, 725,
/* 140 */ 2442, 139, 724, 2480, 2615, 1815, 1816, 115, 2444, 750,
/* 150 */ 2446, 2447, 745, 174, 768, 2347, 424, 2403, 345, 188,
/* 160 */ 161, 2534, 713, 205, 173, 416, 2530, 2616, 715, 572,
/* 170 */ 707, 714, 2161, 62, 2615, 343, 75, 668, 570, 74,
/* 180 */ 207, 566, 562, 1787, 1797, 1530, 1531, 1931, 2564, 372,
/* 190 */ 1814, 1817, 713, 205, 1330, 50, 518, 2616, 715, 459,
/* 200 */ 517, 238, 557, 555, 552, 1728, 431, 1726, 516, 2206,
/* 210 */ 2208, 40, 39, 1337, 426, 46, 44, 43, 42, 41,
/* 220 */ 176, 669, 1981, 128, 2619, 768, 127, 126, 125, 124,
/* 230 */ 123, 122, 121, 120, 119, 54, 1332, 1335, 1336, 1731,
/* 240 */ 1732, 1784, 62, 1786, 1789, 1790, 1791, 1792, 1793, 1794,
/* 250 */ 1795, 1796, 742, 766, 765, 1807, 1809, 1810, 1811, 1812,
/* 260 */ 2, 47, 45, 1969, 819, 763, 369, 2120, 1750, 420,
/* 270 */ 473, 1727, 472, 240, 381, 525, 482, 578, 545, 2020,
/* 280 */ 764, 2159, 63, 544, 1813, 1784, 1725, 137, 136, 135,
/* 290 */ 134, 133, 132, 131, 130, 129, 585, 2338, 33, 505,
/* 300 */ 210, 546, 471, 591, 40, 39, 370, 507, 46, 44,
/* 310 */ 43, 42, 41, 2620, 1808, 1752, 2615, 485, 1842, 242,
/* 320 */ 19, 542, 540, 578, 371, 2020, 1755, 1733, 219, 2213,
/* 330 */ 463, 2370, 85, 84, 478, 2619, 415, 218, 113, 2616,
/* 340 */ 2618, 40, 39, 307, 2211, 46, 44, 43, 42, 41,
/* 350 */ 470, 468, 50, 861, 392, 150, 15, 465, 461, 1495,
/* 360 */ 1891, 368, 198, 2151, 457, 493, 1752, 454, 450, 446,
/* 370 */ 443, 471, 186, 665, 2200, 1486, 793, 792, 791, 1490,
/* 380 */ 790, 1492, 1493, 789, 786, 1843, 1501, 783, 1503, 1504,
/* 390 */ 780, 777, 774, 1339, 1815, 1816, 2280, 2286, 2265, 1751,
/* 400 */ 533, 532, 531, 530, 529, 524, 523, 522, 521, 375,
/* 410 */ 435, 434, 307, 511, 510, 509, 508, 502, 501, 500,
/* 420 */ 595, 495, 494, 390, 66, 726, 147, 486, 1590, 1591,
/* 430 */ 1920, 96, 1787, 1797, 1609, 1734, 2373, 40, 39, 1814,
/* 440 */ 1817, 46, 44, 43, 42, 41, 315, 316, 393, 1756,
/* 450 */ 1752, 314, 35, 666, 1728, 1753, 1726, 2154, 40, 39,
/* 460 */ 726, 147, 46, 44, 43, 42, 41, 36, 418, 1837,
/* 470 */ 1838, 1839, 1840, 1841, 1845, 1846, 1847, 1848, 1602, 1603,
/* 480 */ 701, 700, 1918, 1919, 1921, 1922, 1923, 448, 1731, 1732,
/* 490 */ 1784, 305, 1786, 1789, 1790, 1791, 1792, 1793, 1794, 1795,
/* 500 */ 1796, 742, 766, 765, 1807, 1809, 1810, 1811, 1812, 2,
/* 510 */ 12, 47, 45, 2443, 275, 1356, 2213, 1355, 274, 420,
/* 520 */ 717, 1727, 307, 425, 62, 2620, 747, 62, 2615, 1788,
/* 530 */ 1962, 2211, 143, 258, 1813, 816, 1725, 62, 644, 204,
/* 540 */ 2542, 2543, 2443, 145, 2547, 764, 2159, 2619, 12, 181,
/* 550 */ 1357, 2616, 2617, 656, 2461, 729, 14, 13, 612, 608,
/* 560 */ 604, 600, 212, 257, 1808, 55, 2409, 1912, 746, 273,
/* 570 */ 19, 51, 704, 728, 203, 2542, 2543, 1733, 145, 2547,
/* 580 */ 1622, 1623, 1913, 2461, 287, 647, 669, 1785, 99, 764,
/* 590 */ 2159, 378, 641, 639, 404, 2409, 657, 746, 2620, 270,
/* 600 */ 818, 1992, 1823, 861, 97, 1737, 15, 255, 1752, 138,
/* 610 */ 2442, 1707, 2549, 2480, 201, 1755, 618, 115, 2444, 750,
/* 620 */ 2446, 2447, 745, 1911, 768, 1621, 1624, 149, 101, 157,
/* 630 */ 2505, 2534, 764, 2159, 154, 416, 2530, 1961, 2546, 2442,
/* 640 */ 71, 2351, 2480, 70, 1815, 1816, 115, 2444, 750, 2446,
/* 650 */ 2447, 745, 138, 768, 2409, 764, 2159, 1706, 188, 623,
/* 660 */ 2534, 671, 2338, 1856, 416, 2530, 710, 705, 698, 694,
/* 670 */ 1757, 764, 2159, 40, 39, 479, 245, 46, 44, 43,
/* 680 */ 42, 41, 1787, 1797, 1991, 254, 247, 2565, 1884, 1814,
/* 690 */ 1817, 480, 252, 589, 307, 655, 277, 307, 29, 1356,
/* 700 */ 1495, 1355, 2135, 1955, 1728, 536, 1726, 307, 592, 1666,
/* 710 */ 653, 244, 651, 272, 271, 805, 1486, 793, 792, 791,
/* 720 */ 1490, 790, 1492, 1493, 789, 786, 1990, 1501, 783, 1503,
/* 730 */ 1504, 780, 777, 774, 1357, 726, 147, 2409, 1731, 1732,
/* 740 */ 1784, 307, 1786, 1789, 1790, 1791, 1792, 1793, 1794, 1795,
/* 750 */ 1796, 742, 766, 765, 1807, 1809, 1810, 1811, 1812, 2,
/* 760 */ 47, 45, 1818, 2443, 593, 2292, 491, 2275, 420, 230,
/* 770 */ 1727, 1788, 805, 1932, 497, 2275, 747, 1989, 2022, 2409,
/* 780 */ 305, 1710, 276, 1813, 2213, 1725, 46, 44, 43, 42,
/* 790 */ 41, 430, 2443, 148, 535, 229, 2505, 764, 2159, 2211,
/* 800 */ 1733, 637, 636, 635, 2461, 747, 2136, 2572, 627, 144,
/* 810 */ 631, 1713, 1716, 1808, 630, 221, 2409, 499, 746, 629,
/* 820 */ 634, 399, 398, 223, 1967, 628, 1733, 1709, 624, 1785,
/* 830 */ 2409, 1727, 2023, 2461, 40, 39, 764, 2159, 46, 44,
/* 840 */ 43, 42, 41, 1844, 622, 2409, 1725, 746, 621, 206,
/* 850 */ 2542, 2543, 861, 145, 2547, 48, 512, 1712, 1715, 1988,
/* 860 */ 2442, 1675, 1676, 2480, 2443, 1987, 1437, 115, 2444, 750,
/* 870 */ 2446, 2447, 745, 2232, 768, 764, 2159, 744, 12, 2635,
/* 880 */ 10, 2534, 764, 2159, 854, 416, 2530, 1733, 664, 2442,
/* 890 */ 2207, 2208, 2480, 1815, 1816, 513, 115, 2444, 750, 2446,
/* 900 */ 2447, 745, 514, 768, 441, 2461, 2382, 1439, 2635, 440,
/* 910 */ 2534, 796, 2409, 861, 416, 2530, 1752, 2409, 2409, 746,
/* 920 */ 764, 2159, 40, 39, 330, 34, 46, 44, 43, 42,
/* 930 */ 41, 1787, 1797, 684, 1903, 1849, 764, 2159, 1814, 1817,
/* 940 */ 594, 2144, 405, 2346, 803, 163, 162, 800, 799, 798,
/* 950 */ 160, 1359, 1360, 1728, 2146, 1726, 2156, 685, 2419, 685,
/* 960 */ 2615, 2442, 2615, 1883, 2480, 43, 42, 41, 361, 2444,
/* 970 */ 750, 2446, 2447, 745, 743, 768, 734, 2499, 2621, 205,
/* 980 */ 2621, 205, 2423, 2616, 715, 2616, 715, 1731, 1732, 1784,
/* 990 */ 107, 1786, 1789, 1790, 1791, 1792, 1793, 1794, 1795, 1796,
/* 1000 */ 742, 766, 765, 1807, 1809, 1810, 1811, 1812, 2, 47,
/* 1010 */ 45, 225, 2443, 2383, 1728, 2152, 1726, 420, 2419, 1727,
/* 1020 */ 1986, 527, 2275, 764, 2159, 747, 2142, 2585, 662, 2425,
/* 1030 */ 2427, 417, 1813, 2134, 1725, 520, 519, 764, 2159, 173,
/* 1040 */ 768, 2443, 2423, 278, 1985, 614, 613, 2162, 1731, 1732,
/* 1050 */ 616, 615, 91, 2461, 747, 90, 696, 286, 764, 2159,
/* 1060 */ 764, 2159, 1808, 764, 2159, 2409, 685, 746, 60, 2615,
/* 1070 */ 228, 764, 2159, 2409, 797, 1733, 682, 2204, 732, 1788,
/* 1080 */ 319, 685, 2461, 761, 2615, 764, 2159, 2621, 205, 2425,
/* 1090 */ 2428, 762, 2616, 715, 2409, 9, 746, 2409, 429, 172,
/* 1100 */ 768, 861, 2621, 205, 48, 326, 173, 2616, 715, 2442,
/* 1110 */ 2549, 1756, 2480, 2443, 2161, 1756, 115, 2444, 750, 2446,
/* 1120 */ 2447, 745, 199, 768, 89, 1449, 747, 1756, 2635, 2213,
/* 1130 */ 2534, 764, 2159, 1984, 416, 2530, 2545, 1785, 2442, 2549,
/* 1140 */ 1448, 2480, 1815, 1816, 733, 115, 2444, 750, 2446, 2447,
/* 1150 */ 745, 433, 768, 670, 2461, 730, 1752, 2635, 735, 2534,
/* 1160 */ 2506, 1983, 432, 416, 2530, 2544, 2409, 737, 746, 2506,
/* 1170 */ 173, 803, 163, 162, 800, 799, 798, 160, 2161, 96,
/* 1180 */ 1787, 1797, 633, 632, 2213, 1453, 2409, 1814, 1817, 397,
/* 1190 */ 396, 3, 803, 163, 162, 800, 799, 798, 160, 759,
/* 1200 */ 1452, 625, 1728, 53, 1726, 2155, 685, 547, 685, 2615,
/* 1210 */ 2442, 2615, 1980, 2480, 2409, 718, 1979, 178, 2444, 750,
/* 1220 */ 2446, 2447, 745, 1736, 768, 1434, 1978, 2621, 205, 2621,
/* 1230 */ 205, 283, 2616, 715, 2616, 715, 1731, 1732, 1784, 100,
/* 1240 */ 1786, 1789, 1790, 1791, 1792, 1793, 1794, 1795, 1796, 742,
/* 1250 */ 766, 765, 1807, 1809, 1810, 1811, 1812, 2, 47, 45,
/* 1260 */ 2443, 395, 394, 1977, 620, 2409, 420, 549, 1727, 2409,
/* 1270 */ 1650, 716, 2636, 747, 1976, 2608, 196, 1975, 2258, 2409,
/* 1280 */ 200, 1813, 1974, 1725, 1973, 1972, 801, 2213, 622, 2204,
/* 1290 */ 2443, 77, 621, 830, 828, 802, 339, 154, 2204, 2190,
/* 1300 */ 140, 2461, 2212, 747, 626, 2553, 1997, 856, 2137, 2554,
/* 1310 */ 1876, 1808, 87, 2409, 263, 746, 2409, 261, 265, 267,
/* 1320 */ 489, 264, 266, 269, 1733, 2042, 268, 2409, 1432, 1876,
/* 1330 */ 2409, 2461, 1757, 2040, 2031, 2409, 1757, 2409, 2409, 2029,
/* 1340 */ 659, 153, 658, 2409, 692, 746, 88, 638, 1757, 49,
/* 1350 */ 861, 49, 189, 15, 741, 640, 642, 2442, 2430, 721,
/* 1360 */ 2480, 645, 1964, 1965, 115, 2444, 750, 2446, 2447, 745,
/* 1370 */ 2099, 768, 1673, 161, 14, 13, 2635, 1785, 2534, 435,
/* 1380 */ 434, 740, 416, 2530, 64, 49, 49, 2442, 1982, 1741,
/* 1390 */ 2480, 1815, 1816, 1739, 115, 2444, 750, 2446, 2447, 745,
/* 1400 */ 1735, 768, 1813, 313, 1734, 76, 2635, 159, 2534, 161,
/* 1410 */ 325, 324, 416, 2530, 112, 2443, 2432, 1392, 2578, 1907,
/* 1420 */ 810, 300, 811, 109, 1917, 702, 1916, 292, 747, 1787,
/* 1430 */ 1797, 294, 1808, 142, 2462, 73, 1814, 1817, 772, 159,
/* 1440 */ 2284, 161, 2096, 141, 1411, 1733, 1409, 2095, 731, 2013,
/* 1450 */ 159, 1728, 2568, 1726, 2058, 699, 2461, 407, 1393, 1850,
/* 1460 */ 1798, 1619, 411, 706, 753, 2285, 439, 2019, 2409, 678,
/* 1470 */ 746, 739, 2201, 2569, 2579, 727, 302, 299, 317, 306,
/* 1480 */ 756, 5, 321, 719, 1479, 1731, 1732, 1784, 2121, 1786,
/* 1490 */ 1789, 1790, 1791, 1792, 1793, 1794, 1795, 1796, 742, 766,
/* 1500 */ 765, 1807, 1809, 1810, 1811, 1812, 2, 374, 373, 442,
/* 1510 */ 338, 447, 2442, 1508, 1512, 2480, 1519, 1717, 1517, 115,
/* 1520 */ 2444, 750, 2446, 2447, 745, 164, 768, 637, 636, 635,
/* 1530 */ 1813, 2509, 1705, 2534, 627, 144, 631, 416, 2530, 2443,
/* 1540 */ 630, 387, 455, 456, 1760, 629, 634, 399, 398, 1834,
/* 1550 */ 466, 628, 747, 467, 624, 214, 213, 469, 216, 1643,
/* 1560 */ 1808, 333, 1750, 2443, 483, 1751, 490, 227, 492, 496,
/* 1570 */ 1738, 498, 1742, 538, 1737, 528, 747, 503, 526, 534,
/* 1580 */ 2461, 515, 2277, 537, 539, 550, 551, 548, 232, 233,
/* 1590 */ 553, 554, 2409, 235, 746, 556, 558, 1758, 573, 2443,
/* 1600 */ 4, 574, 581, 582, 2461, 1753, 1745, 1747, 584, 243,
/* 1610 */ 93, 246, 747, 586, 1759, 587, 2409, 1761, 746, 249,
/* 1620 */ 766, 765, 1807, 1809, 1810, 1811, 1812, 588, 590, 722,
/* 1630 */ 251, 1762, 94, 95, 256, 596, 2442, 617, 117, 2480,
/* 1640 */ 2461, 2293, 661, 115, 2444, 750, 2446, 2447, 745, 619,
/* 1650 */ 768, 2149, 2409, 648, 746, 2507, 260, 2534, 2145, 262,
/* 1660 */ 2442, 416, 2530, 2480, 649, 167, 663, 115, 2444, 750,
/* 1670 */ 2446, 2447, 745, 2360, 768, 168, 2147, 365, 2143, 736,
/* 1680 */ 169, 2534, 170, 2357, 2356, 416, 2530, 98, 1754, 279,
/* 1690 */ 2339, 155, 334, 673, 284, 672, 2442, 677, 680, 2480,
/* 1700 */ 1718, 282, 1708, 116, 2444, 750, 2446, 2447, 745, 689,
/* 1710 */ 768, 679, 703, 674, 754, 2584, 2443, 2534, 289, 2583,
/* 1720 */ 2556, 2533, 2530, 291, 8, 712, 688, 180, 293, 747,
/* 1730 */ 690, 295, 1711, 1714, 1719, 296, 687, 298, 412, 723,
/* 1740 */ 2638, 720, 2614, 297, 1876, 1755, 2443, 2550, 766, 765,
/* 1750 */ 1807, 1809, 1810, 1811, 1812, 146, 1881, 2461, 192, 747,
/* 1760 */ 301, 1879, 308, 208, 1, 61, 156, 2515, 752, 2409,
/* 1770 */ 335, 746, 2307, 2306, 336, 2305, 422, 757, 158, 758,
/* 1780 */ 106, 108, 337, 2160, 770, 340, 2401, 2461, 2400, 2443,
/* 1790 */ 2205, 328, 855, 1314, 858, 364, 344, 352, 860, 2409,
/* 1800 */ 165, 746, 747, 342, 363, 52, 353, 2381, 385, 2380,
/* 1810 */ 2379, 82, 386, 2442, 2374, 444, 2480, 445, 1698, 1699,
/* 1820 */ 116, 2444, 750, 2446, 2447, 745, 211, 768, 449, 2372,
/* 1830 */ 2461, 451, 452, 453, 2534, 1697, 2371, 388, 738, 2530,
/* 1840 */ 2369, 458, 2409, 748, 746, 2368, 2480, 2367, 460, 2443,
/* 1850 */ 116, 2444, 750, 2446, 2447, 745, 462, 768, 2366, 464,
/* 1860 */ 1686, 2343, 747, 215, 2534, 2342, 217, 1646, 380, 2530,
/* 1870 */ 83, 2443, 1645, 2320, 2319, 2318, 476, 477, 2317, 2316,
/* 1880 */ 2267, 481, 1589, 2264, 747, 484, 2442, 2263, 2257, 2480,
/* 1890 */ 2461, 487, 488, 177, 2444, 750, 2446, 2447, 745, 2254,
/* 1900 */ 768, 220, 2409, 2253, 746, 86, 2252, 2251, 2256, 2255,
/* 1910 */ 2250, 222, 2461, 224, 504, 2244, 506, 2242, 2241, 2240,
/* 1920 */ 2239, 2262, 2238, 2237, 2409, 2249, 746, 2247, 2246, 2245,
/* 1930 */ 2236, 2260, 2243, 2235, 2234, 686, 2575, 2233, 2231, 2230,
/* 1940 */ 2229, 2228, 2227, 2226, 226, 2225, 2442, 92, 2224, 2480,
/* 1950 */ 2223, 2443, 2222, 116, 2444, 750, 2446, 2447, 745, 2221,
/* 1960 */ 768, 2261, 2259, 2220, 747, 2219, 1595, 2534, 2442, 2218,
/* 1970 */ 231, 2480, 2531, 541, 2216, 177, 2444, 750, 2446, 2447,
/* 1980 */ 745, 2443, 768, 2217, 2215, 543, 2214, 2061, 1450, 1454,
/* 1990 */ 1446, 234, 2461, 559, 747, 2060, 376, 2059, 2057, 2443,
/* 2000 */ 236, 377, 2054, 2053, 2409, 560, 746, 563, 564, 2046,
/* 2010 */ 561, 568, 747, 565, 237, 567, 2033, 569, 2576, 571,
/* 2020 */ 2008, 239, 2461, 79, 187, 1338, 409, 2007, 2429, 2443,
/* 2030 */ 2341, 2337, 2327, 241, 2409, 2315, 746, 197, 579, 250,
/* 2040 */ 2461, 80, 747, 248, 2314, 253, 2291, 2138, 2442, 1385,
/* 2050 */ 2056, 2480, 2409, 2052, 746, 362, 2444, 750, 2446, 2447,
/* 2060 */ 745, 597, 768, 598, 599, 2050, 601, 603, 602, 2048,
/* 2070 */ 2461, 605, 606, 2045, 410, 607, 609, 610, 2442, 611,
/* 2080 */ 2028, 2480, 2409, 2026, 746, 355, 2444, 750, 2446, 2447,
/* 2090 */ 745, 2027, 768, 2025, 2004, 2140, 2442, 1524, 1523, 2480,
/* 2100 */ 72, 2139, 643, 362, 2444, 750, 2446, 2447, 745, 2443,
/* 2110 */ 768, 1436, 2043, 259, 1435, 1433, 1431, 2041, 1430, 1429,
/* 2120 */ 827, 1428, 744, 1427, 2032, 829, 2442, 1424, 2443, 2480,
/* 2130 */ 1422, 711, 400, 178, 2444, 750, 2446, 2447, 745, 1423,
/* 2140 */ 768, 747, 401, 1421, 402, 2030, 2443, 403, 646, 2003,
/* 2150 */ 2461, 2002, 2001, 650, 2000, 652, 1999, 654, 118, 747,
/* 2160 */ 1684, 28, 2409, 1680, 746, 1682, 1679, 2340, 67, 2461,
/* 2170 */ 1670, 2336, 1654, 665, 1652, 2326, 1656, 56, 2313, 281,
/* 2180 */ 171, 2409, 675, 746, 2312, 2620, 681, 2461, 2637, 57,
/* 2190 */ 676, 20, 1631, 1630, 285, 30, 17, 1934, 691, 2409,
/* 2200 */ 408, 746, 683, 419, 288, 693, 2442, 1908, 667, 2480,
/* 2210 */ 697, 290, 6, 361, 2444, 750, 2446, 2447, 745, 695,
/* 2220 */ 768, 421, 2500, 7, 21, 2442, 864, 22, 2480, 1915,
/* 2230 */ 191, 65, 362, 2444, 750, 2446, 2447, 745, 179, 768,
/* 2240 */ 190, 31, 332, 2442, 1902, 202, 2480, 2430, 2443, 81,
/* 2250 */ 362, 2444, 750, 2446, 2447, 745, 32, 768, 195, 24,
/* 2260 */ 304, 747, 23, 1954, 1949, 1955, 1948, 852, 848, 844,
/* 2270 */ 840, 2443, 329, 413, 1873, 1953, 1952, 414, 1872, 59,
/* 2280 */ 182, 2311, 2290, 102, 747, 103, 25, 13, 1825, 2461,
/* 2290 */ 58, 1824, 1743, 1800, 38, 18, 1835, 1799, 11, 183,
/* 2300 */ 16, 2409, 26, 746, 193, 2443, 1777, 1769, 749, 27,
/* 2310 */ 2289, 312, 2461, 114, 1910, 194, 322, 318, 747, 69,
/* 2320 */ 104, 755, 105, 323, 2409, 109, 746, 320, 2485, 771,
/* 2330 */ 769, 2443, 2484, 428, 775, 778, 781, 784, 1802, 767,
/* 2340 */ 68, 787, 1509, 1506, 747, 660, 2461, 1500, 2480, 773,
/* 2350 */ 760, 2443, 357, 2444, 750, 2446, 2447, 745, 2409, 768,
/* 2360 */ 746, 776, 794, 779, 747, 1505, 1502, 782, 2442, 1496,
/* 2370 */ 785, 2480, 2461, 1494, 788, 347, 2444, 750, 2446, 2447,
/* 2380 */ 745, 1499, 768, 1485, 2409, 327, 746, 110, 1514, 1498,
/* 2390 */ 111, 1518, 2461, 78, 310, 1383, 1497, 804, 1418, 1415,
/* 2400 */ 1414, 309, 2442, 815, 2409, 2480, 746, 1413, 1412, 346,
/* 2410 */ 2444, 750, 2446, 2447, 745, 1410, 768, 1408, 1407, 1406,
/* 2420 */ 280, 1444, 1443, 817, 209, 1404, 1403, 1402, 2442, 1401,
/* 2430 */ 1400, 2480, 1399, 2443, 1398, 348, 2444, 750, 2446, 2447,
/* 2440 */ 745, 1438, 768, 1440, 1389, 1395, 747, 1394, 2442, 1391,
/* 2450 */ 1390, 2480, 1388, 2051, 837, 354, 2444, 750, 2446, 2447,
/* 2460 */ 745, 839, 768, 2443, 2049, 838, 841, 842, 843, 2047,
/* 2470 */ 845, 846, 847, 2044, 2461, 849, 747, 851, 850, 2024,
/* 2480 */ 853, 2443, 1327, 1998, 1315, 857, 2409, 331, 746, 859,
/* 2490 */ 1968, 1968, 1729, 341, 747, 862, 863, 1968, 1968, 1968,
/* 2500 */ 1968, 1968, 1968, 1968, 2461, 1968, 1968, 1968, 1968, 1968,
/* 2510 */ 1968, 1968, 1968, 1968, 1968, 1968, 2409, 1968, 746, 1968,
/* 2520 */ 1968, 1968, 2461, 1968, 1968, 1968, 1968, 1968, 1968, 1968,
/* 2530 */ 2442, 1968, 1968, 2480, 2409, 1968, 746, 358, 2444, 750,
/* 2540 */ 2446, 2447, 745, 1968, 768, 1968, 1968, 1968, 1968, 1968,
/* 2550 */ 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968,
/* 2560 */ 2442, 1968, 2443, 2480, 1968, 1968, 1968, 349, 2444, 750,
/* 2570 */ 2446, 2447, 745, 1968, 768, 747, 1968, 1968, 2442, 1968,
/* 2580 */ 2443, 2480, 1968, 1968, 1968, 359, 2444, 750, 2446, 2447,
/* 2590 */ 745, 1968, 768, 747, 1968, 2443, 1968, 1968, 1968, 1968,
/* 2600 */ 1968, 1968, 1968, 2461, 1968, 1968, 1968, 1968, 747, 1968,
/* 2610 */ 2443, 1968, 1968, 1968, 1968, 2409, 1968, 746, 1968, 1968,
/* 2620 */ 1968, 2461, 1968, 747, 1968, 1968, 1968, 1968, 1968, 1968,
/* 2630 */ 1968, 1968, 1968, 2409, 1968, 746, 2461, 1968, 1968, 1968,
/* 2640 */ 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 2409, 1968,
/* 2650 */ 746, 2461, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 2442,
/* 2660 */ 1968, 1968, 2480, 2409, 1968, 746, 350, 2444, 750, 2446,
/* 2670 */ 2447, 745, 1968, 768, 1968, 1968, 1968, 2442, 1968, 1968,
/* 2680 */ 2480, 1968, 1968, 2443, 360, 2444, 750, 2446, 2447, 745,
/* 2690 */ 1968, 768, 2442, 1968, 1968, 2480, 747, 1968, 1968, 351,
/* 2700 */ 2444, 750, 2446, 2447, 745, 1968, 768, 2442, 1968, 2443,
/* 2710 */ 2480, 1968, 1968, 1968, 366, 2444, 750, 2446, 2447, 745,
/* 2720 */ 1968, 768, 747, 1968, 2461, 1968, 1968, 1968, 1968, 1968,
/* 2730 */ 1968, 2443, 1968, 1968, 1968, 1968, 2409, 1968, 746, 1968,
/* 2740 */ 1968, 1968, 1968, 1968, 747, 1968, 1968, 1968, 1968, 1968,
/* 2750 */ 2461, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968,
/* 2760 */ 1968, 1968, 2409, 1968, 746, 1968, 1968, 1968, 1968, 2443,
/* 2770 */ 1968, 1968, 2461, 1968, 1968, 1968, 1968, 1968, 1968, 1968,
/* 2780 */ 2442, 1968, 747, 2480, 2409, 1968, 746, 367, 2444, 750,
/* 2790 */ 2446, 2447, 745, 1968, 768, 1968, 1968, 1968, 1968, 1968,
/* 2800 */ 1968, 1968, 1968, 1968, 1968, 1968, 2442, 1968, 1968, 2480,
/* 2810 */ 2461, 1968, 1968, 2455, 2444, 750, 2446, 2447, 745, 1968,
/* 2820 */ 768, 1968, 2409, 1968, 746, 1968, 1968, 1968, 2442, 1968,
/* 2830 */ 1968, 2480, 1968, 1968, 1968, 2454, 2444, 750, 2446, 2447,
/* 2840 */ 745, 1968, 768, 1968, 1968, 2443, 1968, 1968, 1968, 1968,
/* 2850 */ 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 747, 1968,
/* 2860 */ 1968, 1968, 1968, 1968, 1968, 1968, 2442, 1968, 1968, 2480,
/* 2870 */ 1968, 1968, 1968, 2453, 2444, 750, 2446, 2447, 745, 1968,
/* 2880 */ 768, 2443, 1968, 1968, 1968, 1968, 2461, 1968, 1968, 1968,
/* 2890 */ 1968, 1968, 1968, 1968, 747, 1968, 1968, 1968, 2409, 1968,
/* 2900 */ 746, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968,
/* 2910 */ 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 2443,
/* 2920 */ 1968, 1968, 2461, 1968, 1968, 1968, 1968, 1968, 1968, 1968,
/* 2930 */ 1968, 1968, 747, 1968, 2409, 1968, 746, 1968, 1968, 1968,
/* 2940 */ 1968, 1968, 2442, 1968, 1968, 2480, 1968, 1968, 1968, 382,
/* 2950 */ 2444, 750, 2446, 2447, 745, 1968, 768, 1968, 1968, 1968,
/* 2960 */ 2461, 1968, 2443, 1968, 1968, 1968, 1968, 1968, 1968, 1968,
/* 2970 */ 1968, 1968, 2409, 1968, 746, 747, 1968, 1968, 2442, 1968,
/* 2980 */ 2443, 2480, 1968, 1968, 1968, 383, 2444, 750, 2446, 2447,
/* 2990 */ 745, 1968, 768, 747, 1968, 2443, 1968, 1968, 1968, 1968,
/* 3000 */ 1968, 1968, 1968, 2461, 1968, 1968, 1968, 1968, 747, 1968,
/* 3010 */ 1968, 1968, 1968, 1968, 1968, 2409, 2442, 746, 1968, 2480,
/* 3020 */ 1968, 2461, 1968, 379, 2444, 750, 2446, 2447, 745, 1968,
/* 3030 */ 768, 1968, 1968, 2409, 1968, 746, 2461, 1968, 1968, 1968,
/* 3040 */ 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 2409, 1968,
/* 3050 */ 746, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 1968, 2442,
/* 3060 */ 1968, 1968, 2480, 1968, 1968, 1968, 384, 2444, 750, 2446,
/* 3070 */ 2447, 745, 1968, 768, 1968, 1968, 1968, 748, 1968, 1968,
/* 3080 */ 2480, 1968, 1968, 1968, 357, 2444, 750, 2446, 2447, 745,
/* 3090 */ 1968, 768, 2442, 1968, 1968, 2480, 1968, 1968, 1968, 356,
/* 3100 */ 2444, 750, 2446, 2447, 745, 1968, 768,
};
static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 400, 435, 477, 478, 488, 365, 440, 491, 368, 369,
/* 10 */ 413, 391, 12, 13, 14, 401, 400, 399, 404, 399,
/* 20 */ 20, 0, 22, 370, 371, 509, 510, 407, 431, 432,
/* 30 */ 514, 515, 0, 401, 20, 35, 0, 37, 14, 421,
/* 40 */ 413, 423, 21, 358, 20, 24, 25, 26, 27, 28,
/* 50 */ 29, 30, 31, 32, 488, 428, 371, 491, 431, 432,
/* 60 */ 20, 23, 8, 9, 20, 65, 12, 13, 14, 15,
/* 70 */ 16, 71, 458, 453, 454, 509, 510, 371, 78, 20,
/* 80 */ 514, 515, 399, 469, 399, 47, 48, 8, 9, 406,
/* 90 */ 458, 12, 13, 14, 15, 16, 411, 414, 413, 365,
/* 100 */ 399, 469, 368, 369, 104, 399, 380, 107, 20, 73,
/* 110 */ 74, 75, 76, 77, 388, 79, 80, 81, 82, 83,
/* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
/* 130 */ 94, 95, 96, 97, 98, 99, 100, 484, 485, 486,
/* 140 */ 455, 488, 489, 458, 491, 145, 146, 462, 463, 464,
/* 150 */ 465, 466, 467, 18, 469, 454, 391, 401, 23, 474,
/* 160 */ 33, 476, 509, 510, 399, 480, 481, 514, 515, 51,
/* 170 */ 464, 488, 407, 107, 491, 40, 41, 20, 60, 44,
/* 180 */ 495, 63, 64, 183, 184, 145, 146, 108, 503, 54,
/* 190 */ 190, 191, 509, 510, 4, 107, 164, 514, 515, 69,
/* 200 */ 168, 66, 67, 68, 69, 205, 409, 207, 176, 412,
/* 210 */ 413, 8, 9, 23, 458, 12, 13, 14, 15, 16,
/* 220 */ 357, 370, 359, 21, 3, 469, 24, 25, 26, 27,
/* 230 */ 28, 29, 30, 31, 32, 108, 46, 47, 48, 239,
/* 240 */ 240, 241, 107, 243, 244, 245, 246, 247, 248, 249,
/* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
/* 260 */ 260, 12, 13, 0, 386, 20, 18, 389, 20, 20,
/* 270 */ 204, 22, 206, 366, 71, 27, 370, 370, 30, 372,
/* 280 */ 370, 371, 147, 35, 35, 241, 37, 24, 25, 26,
/* 290 */ 27, 28, 29, 30, 31, 32, 445, 446, 2, 51,
/* 300 */ 390, 53, 236, 20, 8, 9, 58, 59, 12, 13,
/* 310 */ 14, 15, 16, 488, 65, 20, 491, 69, 115, 366,
/* 320 */ 71, 415, 416, 370, 418, 372, 20, 78, 422, 399,
/* 330 */ 200, 0, 197, 198, 199, 510, 406, 202, 377, 514,
/* 340 */ 515, 8, 9, 277, 414, 12, 13, 14, 15, 16,
/* 350 */ 215, 216, 107, 104, 106, 394, 107, 227, 228, 104,
/* 360 */ 14, 226, 398, 402, 229, 117, 20, 232, 233, 234,
/* 370 */ 235, 236, 399, 118, 410, 120, 121, 122, 123, 124,
/* 380 */ 125, 126, 127, 128, 129, 182, 131, 132, 133, 134,
/* 390 */ 135, 136, 137, 14, 145, 146, 423, 149, 150, 20,
/* 400 */ 152, 153, 154, 155, 156, 157, 158, 159, 160, 161,
/* 410 */ 12, 13, 277, 165, 166, 167, 168, 169, 170, 171,
/* 420 */ 70, 173, 174, 175, 4, 370, 371, 179, 180, 181,
/* 430 */ 239, 379, 183, 184, 186, 37, 0, 8, 9, 190,
/* 440 */ 191, 12, 13, 14, 15, 16, 139, 140, 396, 20,
/* 450 */ 20, 144, 2, 117, 205, 20, 207, 405, 8, 9,
/* 460 */ 370, 371, 12, 13, 14, 15, 16, 264, 265, 266,
/* 470 */ 267, 268, 269, 270, 271, 272, 273, 274, 183, 184,
/* 480 */ 289, 290, 291, 292, 293, 294, 295, 51, 239, 240,
/* 490 */ 241, 185, 243, 244, 245, 246, 247, 248, 249, 250,
/* 500 */ 251, 252, 253, 254, 255, 256, 257, 258, 259, 260,
/* 510 */ 261, 12, 13, 358, 140, 20, 399, 22, 144, 20,
/* 520 */ 299, 22, 277, 406, 107, 488, 371, 107, 491, 183,
/* 530 */ 197, 414, 37, 35, 35, 13, 37, 107, 4, 484,
/* 540 */ 485, 486, 358, 488, 489, 370, 371, 510, 261, 51,
/* 550 */ 55, 514, 515, 19, 399, 371, 1, 2, 60, 61,
/* 560 */ 62, 63, 231, 65, 65, 390, 411, 22, 413, 35,
/* 570 */ 71, 107, 189, 483, 484, 485, 486, 78, 488, 489,
/* 580 */ 145, 146, 37, 399, 65, 51, 370, 241, 214, 370,
/* 590 */ 371, 217, 58, 59, 220, 411, 222, 413, 3, 65,
/* 600 */ 78, 358, 14, 104, 106, 207, 107, 109, 20, 390,
/* 610 */ 455, 37, 461, 458, 185, 20, 397, 462, 463, 464,
/* 620 */ 465, 466, 467, 78, 469, 190, 191, 472, 109, 474,
/* 630 */ 475, 476, 370, 371, 33, 480, 481, 304, 487, 455,
/* 640 */ 106, 395, 458, 109, 145, 146, 462, 463, 464, 465,
/* 650 */ 466, 467, 390, 469, 411, 370, 371, 37, 474, 397,
/* 660 */ 476, 445, 446, 108, 480, 481, 283, 284, 285, 286,
/* 670 */ 241, 370, 371, 8, 9, 390, 178, 12, 13, 14,
/* 680 */ 15, 16, 183, 184, 358, 187, 188, 503, 4, 190,
/* 690 */ 191, 390, 194, 195, 277, 21, 450, 277, 33, 20,
/* 700 */ 104, 22, 0, 108, 205, 87, 207, 277, 370, 108,
/* 710 */ 36, 213, 38, 39, 40, 70, 120, 121, 122, 123,
/* 720 */ 124, 125, 126, 127, 128, 129, 358, 131, 132, 133,
/* 730 */ 134, 135, 136, 137, 55, 370, 371, 411, 239, 240,
/* 740 */ 241, 277, 243, 244, 245, 246, 247, 248, 249, 250,
/* 750 */ 251, 252, 253, 254, 255, 256, 257, 258, 259, 260,
/* 760 */ 12, 13, 14, 358, 426, 427, 370, 371, 20, 151,
/* 770 */ 22, 183, 70, 108, 370, 371, 371, 358, 373, 411,
/* 780 */ 185, 207, 139, 35, 399, 37, 12, 13, 14, 15,
/* 790 */ 16, 406, 358, 472, 176, 177, 475, 370, 371, 414,
/* 800 */ 78, 73, 74, 75, 399, 371, 0, 373, 80, 81,
/* 810 */ 82, 237, 238, 65, 86, 419, 411, 390, 413, 91,
/* 820 */ 92, 93, 94, 419, 355, 97, 78, 207, 100, 241,
/* 830 */ 411, 22, 0, 399, 8, 9, 370, 371, 12, 13,
/* 840 */ 14, 15, 16, 182, 138, 411, 37, 413, 142, 484,
/* 850 */ 485, 486, 104, 488, 489, 107, 390, 237, 238, 358,
/* 860 */ 455, 218, 219, 458, 358, 358, 37, 462, 463, 464,
/* 870 */ 465, 466, 467, 0, 469, 370, 371, 371, 261, 474,
/* 880 */ 263, 476, 370, 371, 52, 480, 481, 78, 399, 455,
/* 890 */ 412, 413, 458, 145, 146, 390, 462, 463, 464, 465,
/* 900 */ 466, 467, 390, 469, 435, 399, 435, 78, 474, 440,
/* 910 */ 476, 117, 411, 104, 480, 481, 20, 411, 411, 413,
/* 920 */ 370, 371, 8, 9, 34, 264, 12, 13, 14, 15,
/* 930 */ 16, 183, 184, 50, 108, 274, 370, 371, 190, 191,
/* 940 */ 390, 400, 453, 454, 138, 139, 140, 141, 142, 143,
/* 950 */ 144, 56, 57, 205, 400, 207, 390, 488, 387, 488,
/* 960 */ 491, 455, 491, 279, 458, 14, 15, 16, 462, 463,
/* 970 */ 464, 465, 466, 467, 468, 469, 470, 471, 509, 510,
/* 980 */ 509, 510, 411, 514, 515, 514, 515, 239, 240, 241,
/* 990 */ 377, 243, 244, 245, 246, 247, 248, 249, 250, 251,
/* 1000 */ 252, 253, 254, 255, 256, 257, 258, 259, 260, 12,
/* 1010 */ 13, 65, 358, 435, 205, 402, 207, 20, 387, 22,
/* 1020 */ 358, 370, 371, 370, 371, 371, 400, 373, 435, 458,
/* 1030 */ 459, 460, 35, 0, 37, 162, 163, 370, 371, 399,
/* 1040 */ 469, 358, 411, 390, 358, 375, 376, 407, 239, 240,
/* 1050 */ 375, 376, 106, 399, 371, 109, 373, 390, 370, 371,
/* 1060 */ 370, 371, 65, 370, 371, 411, 488, 413, 185, 491,
/* 1070 */ 419, 370, 371, 411, 408, 78, 193, 411, 390, 183,
/* 1080 */ 390, 488, 399, 390, 491, 370, 371, 509, 510, 458,
/* 1090 */ 459, 390, 514, 515, 411, 42, 413, 411, 391, 185,
/* 1100 */ 469, 104, 509, 510, 107, 390, 399, 514, 515, 455,
/* 1110 */ 461, 20, 458, 358, 407, 20, 462, 463, 464, 465,
/* 1120 */ 466, 467, 441, 469, 178, 22, 371, 20, 474, 399,
/* 1130 */ 476, 370, 371, 358, 480, 481, 487, 241, 455, 461,
/* 1140 */ 37, 458, 145, 146, 414, 462, 463, 464, 465, 466,
/* 1150 */ 467, 390, 469, 435, 399, 435, 20, 474, 473, 476,
/* 1160 */ 475, 358, 391, 480, 481, 487, 411, 473, 413, 475,
/* 1170 */ 399, 138, 139, 140, 141, 142, 143, 144, 407, 379,
/* 1180 */ 183, 184, 384, 385, 399, 22, 411, 190, 191, 39,
/* 1190 */ 40, 33, 138, 139, 140, 141, 142, 143, 144, 414,
/* 1200 */ 37, 13, 205, 45, 207, 405, 488, 104, 488, 491,
/* 1210 */ 455, 491, 358, 458, 411, 33, 358, 462, 463, 464,
/* 1220 */ 465, 466, 467, 37, 469, 37, 358, 509, 510, 509,
/* 1230 */ 510, 400, 514, 515, 514, 515, 239, 240, 241, 178,
/* 1240 */ 243, 244, 245, 246, 247, 248, 249, 250, 251, 252,
/* 1250 */ 253, 254, 255, 256, 257, 258, 259, 260, 12, 13,
/* 1260 */ 358, 111, 112, 358, 114, 411, 20, 104, 22, 411,
/* 1270 */ 209, 516, 517, 371, 358, 373, 185, 358, 0, 411,
/* 1280 */ 185, 35, 358, 37, 358, 358, 408, 399, 138, 411,
/* 1290 */ 358, 117, 142, 384, 385, 408, 392, 33, 411, 395,
/* 1300 */ 33, 399, 414, 371, 13, 373, 361, 362, 0, 275,
/* 1310 */ 276, 65, 45, 411, 110, 413, 411, 113, 110, 110,
/* 1320 */ 42, 113, 113, 110, 78, 0, 113, 411, 37, 276,
/* 1330 */ 411, 399, 241, 0, 0, 411, 241, 411, 411, 0,
/* 1340 */ 221, 33, 223, 411, 33, 413, 172, 22, 241, 33,
/* 1350 */ 104, 33, 33, 107, 400, 22, 22, 455, 49, 33,
/* 1360 */ 458, 22, 145, 146, 462, 463, 464, 465, 466, 467,
/* 1370 */ 388, 469, 108, 33, 1, 2, 474, 241, 476, 12,
/* 1380 */ 13, 71, 480, 481, 33, 33, 33, 455, 359, 22,
/* 1390 */ 458, 145, 146, 207, 462, 463, 464, 465, 466, 467,
/* 1400 */ 37, 469, 35, 33, 37, 33, 474, 33, 476, 33,
/* 1410 */ 12, 13, 480, 481, 107, 358, 107, 37, 424, 108,
/* 1420 */ 13, 518, 13, 116, 108, 507, 108, 108, 371, 183,
/* 1430 */ 184, 500, 65, 374, 399, 33, 190, 191, 33, 33,
/* 1440 */ 424, 33, 387, 33, 37, 78, 37, 387, 108, 369,
/* 1450 */ 33, 205, 424, 207, 0, 506, 399, 434, 78, 108,
/* 1460 */ 108, 108, 506, 506, 506, 424, 374, 371, 411, 442,
/* 1470 */ 413, 104, 410, 424, 424, 490, 511, 482, 108, 493,
/* 1480 */ 108, 280, 108, 301, 108, 239, 240, 241, 389, 243,
/* 1490 */ 244, 245, 246, 247, 248, 249, 250, 251, 252, 253,
/* 1500 */ 254, 255, 256, 257, 258, 259, 260, 12, 13, 436,
/* 1510 */ 108, 51, 455, 108, 108, 458, 108, 22, 108, 462,
/* 1520 */ 463, 464, 465, 466, 467, 108, 469, 73, 74, 75,
/* 1530 */ 35, 474, 37, 476, 80, 81, 82, 480, 481, 358,
/* 1540 */ 86, 457, 42, 456, 20, 91, 92, 93, 94, 239,
/* 1550 */ 220, 97, 371, 447, 100, 379, 452, 447, 379, 203,
/* 1560 */ 65, 438, 20, 358, 370, 20, 371, 45, 420, 371,
/* 1570 */ 207, 420, 205, 182, 207, 420, 371, 417, 371, 417,
/* 1580 */ 399, 370, 370, 417, 417, 105, 383, 103, 382, 370,
/* 1590 */ 102, 381, 411, 370, 413, 370, 370, 20, 363, 358,
/* 1600 */ 50, 367, 363, 367, 399, 20, 239, 240, 447, 379,
/* 1610 */ 379, 379, 371, 413, 20, 372, 411, 20, 413, 379,
/* 1620 */ 253, 254, 255, 256, 257, 258, 259, 437, 372, 303,
/* 1630 */ 379, 20, 379, 379, 379, 370, 455, 363, 370, 458,
/* 1640 */ 399, 427, 224, 462, 463, 464, 465, 466, 467, 399,
/* 1650 */ 469, 399, 411, 361, 413, 474, 399, 476, 399, 399,
/* 1660 */ 455, 480, 481, 458, 361, 399, 451, 462, 463, 464,
/* 1670 */ 465, 466, 467, 411, 469, 399, 399, 363, 399, 474,
/* 1680 */ 399, 476, 399, 411, 411, 480, 481, 107, 20, 377,
/* 1690 */ 446, 449, 447, 211, 377, 210, 455, 413, 370, 458,
/* 1700 */ 205, 443, 207, 462, 463, 464, 465, 466, 467, 411,
/* 1710 */ 469, 436, 288, 444, 287, 499, 358, 476, 429, 499,
/* 1720 */ 502, 480, 481, 429, 296, 196, 297, 499, 501, 371,
/* 1730 */ 298, 498, 237, 238, 239, 497, 281, 436, 305, 302,
/* 1740 */ 519, 300, 513, 496, 276, 20, 358, 461, 253, 254,
/* 1750 */ 255, 256, 257, 258, 259, 371, 117, 399, 372, 371,
/* 1760 */ 512, 278, 377, 492, 494, 107, 377, 479, 411, 411,
/* 1770 */ 429, 413, 411, 411, 429, 411, 411, 188, 377, 425,
/* 1780 */ 377, 107, 395, 371, 403, 370, 411, 399, 411, 358,
/* 1790 */ 411, 377, 38, 22, 360, 448, 356, 393, 363, 411,
/* 1800 */ 364, 413, 371, 378, 393, 439, 393, 0, 430, 0,
/* 1810 */ 0, 45, 430, 455, 0, 37, 458, 230, 37, 37,
/* 1820 */ 462, 463, 464, 465, 466, 467, 37, 469, 230, 0,
/* 1830 */ 399, 37, 37, 230, 476, 37, 0, 230, 480, 481,
/* 1840 */ 0, 37, 411, 455, 413, 0, 458, 0, 37, 358,
/* 1850 */ 462, 463, 464, 465, 466, 467, 22, 469, 0, 37,
/* 1860 */ 225, 0, 371, 213, 476, 0, 213, 207, 480, 481,
/* 1870 */ 214, 358, 205, 0, 0, 0, 201, 200, 0, 0,
/* 1880 */ 150, 49, 49, 0, 371, 37, 455, 0, 0, 458,
/* 1890 */ 399, 37, 51, 462, 463, 464, 465, 466, 467, 0,
/* 1900 */ 469, 49, 411, 0, 413, 45, 0, 0, 0, 0,
/* 1910 */ 0, 49, 399, 168, 37, 0, 168, 0, 0, 0,
/* 1920 */ 0, 0, 0, 0, 411, 0, 413, 0, 0, 0,
/* 1930 */ 0, 0, 0, 0, 0, 504, 505, 0, 0, 0,
/* 1940 */ 0, 0, 0, 0, 49, 0, 455, 45, 0, 458,
/* 1950 */ 0, 358, 0, 462, 463, 464, 465, 466, 467, 0,
/* 1960 */ 469, 0, 0, 0, 371, 0, 22, 476, 455, 0,
/* 1970 */ 150, 458, 481, 149, 0, 462, 463, 464, 465, 466,
/* 1980 */ 467, 358, 469, 0, 0, 148, 0, 0, 22, 22,
/* 1990 */ 37, 65, 399, 37, 371, 0, 50, 0, 0, 358,
/* 2000 */ 65, 50, 0, 0, 411, 51, 413, 37, 51, 0,
/* 2010 */ 42, 51, 371, 42, 65, 37, 0, 42, 505, 37,
/* 2020 */ 0, 45, 399, 42, 33, 14, 433, 0, 49, 358,
/* 2030 */ 0, 0, 0, 43, 411, 0, 413, 49, 49, 196,
/* 2040 */ 399, 42, 371, 42, 0, 49, 0, 0, 455, 72,
/* 2050 */ 0, 458, 411, 0, 413, 462, 463, 464, 465, 466,
/* 2060 */ 467, 37, 469, 51, 42, 0, 37, 42, 51, 0,
/* 2070 */ 399, 37, 51, 0, 433, 42, 37, 51, 455, 42,
/* 2080 */ 0, 458, 411, 0, 413, 462, 463, 464, 465, 466,
/* 2090 */ 467, 0, 469, 0, 0, 0, 455, 37, 22, 458,
/* 2100 */ 115, 0, 53, 462, 463, 464, 465, 466, 467, 358,
/* 2110 */ 469, 37, 0, 113, 37, 37, 37, 0, 37, 37,
/* 2120 */ 33, 37, 371, 37, 0, 33, 455, 37, 358, 458,
/* 2130 */ 22, 508, 22, 462, 463, 464, 465, 466, 467, 37,
/* 2140 */ 469, 371, 22, 37, 22, 0, 358, 22, 37, 0,
/* 2150 */ 399, 0, 0, 37, 0, 37, 0, 22, 20, 371,
/* 2160 */ 108, 107, 411, 37, 413, 37, 37, 0, 107, 399,
/* 2170 */ 119, 0, 22, 118, 37, 0, 212, 185, 0, 49,
/* 2180 */ 208, 411, 22, 413, 0, 3, 192, 399, 517, 185,
/* 2190 */ 185, 33, 185, 185, 188, 107, 282, 108, 37, 411,
/* 2200 */ 37, 413, 192, 433, 107, 107, 455, 108, 1, 458,
/* 2210 */ 103, 108, 50, 462, 463, 464, 465, 466, 467, 105,
/* 2220 */ 469, 433, 471, 50, 33, 455, 19, 33, 458, 108,
/* 2230 */ 33, 3, 462, 463, 464, 465, 466, 467, 107, 469,
/* 2240 */ 107, 107, 35, 455, 108, 49, 458, 49, 358, 107,
/* 2250 */ 462, 463, 464, 465, 466, 467, 33, 469, 51, 33,
/* 2260 */ 49, 371, 282, 108, 37, 108, 37, 60, 61, 62,
/* 2270 */ 63, 358, 65, 37, 108, 37, 37, 37, 108, 33,
/* 2280 */ 49, 0, 0, 107, 371, 42, 33, 2, 105, 399,
/* 2290 */ 275, 105, 22, 108, 107, 282, 239, 108, 262, 49,
/* 2300 */ 107, 411, 107, 413, 49, 358, 22, 108, 242, 107,
/* 2310 */ 0, 108, 399, 106, 108, 107, 109, 107, 371, 107,
/* 2320 */ 42, 189, 107, 49, 411, 116, 413, 187, 107, 37,
/* 2330 */ 117, 358, 107, 37, 37, 37, 37, 37, 108, 107,
/* 2340 */ 107, 37, 108, 108, 371, 455, 399, 130, 458, 107,
/* 2350 */ 143, 358, 462, 463, 464, 465, 466, 467, 411, 469,
/* 2360 */ 413, 107, 118, 107, 371, 108, 108, 107, 455, 108,
/* 2370 */ 107, 458, 399, 108, 107, 462, 463, 464, 465, 466,
/* 2380 */ 467, 130, 469, 119, 411, 33, 413, 107, 22, 130,
/* 2390 */ 107, 37, 399, 107, 187, 72, 130, 71, 37, 37,
/* 2400 */ 37, 194, 455, 101, 411, 458, 413, 37, 37, 462,
/* 2410 */ 463, 464, 465, 466, 467, 37, 469, 37, 37, 37,
/* 2420 */ 213, 78, 78, 101, 33, 37, 37, 37, 455, 22,
/* 2430 */ 37, 458, 37, 358, 37, 462, 463, 464, 465, 466,
/* 2440 */ 467, 37, 469, 78, 22, 37, 371, 37, 455, 37,
/* 2450 */ 37, 458, 37, 0, 37, 462, 463, 464, 465, 466,
/* 2460 */ 467, 42, 469, 358, 0, 51, 37, 51, 42, 0,
/* 2470 */ 37, 51, 42, 0, 399, 37, 371, 42, 51, 0,
/* 2480 */ 37, 358, 37, 0, 22, 33, 411, 22, 413, 21,
/* 2490 */ 520, 520, 22, 22, 371, 21, 20, 520, 520, 520,
/* 2500 */ 520, 520, 520, 520, 399, 520, 520, 520, 520, 520,
/* 2510 */ 520, 520, 520, 520, 520, 520, 411, 520, 413, 520,
/* 2520 */ 520, 520, 399, 520, 520, 520, 520, 520, 520, 520,
/* 2530 */ 455, 520, 520, 458, 411, 520, 413, 462, 463, 464,
/* 2540 */ 465, 466, 467, 520, 469, 520, 520, 520, 520, 520,
/* 2550 */ 520, 520, 520, 520, 520, 520, 520, 520, 520, 520,
/* 2560 */ 455, 520, 358, 458, 520, 520, 520, 462, 463, 464,
/* 2570 */ 465, 466, 467, 520, 469, 371, 520, 520, 455, 520,
/* 2580 */ 358, 458, 520, 520, 520, 462, 463, 464, 465, 466,
/* 2590 */ 467, 520, 469, 371, 520, 358, 520, 520, 520, 520,
/* 2600 */ 520, 520, 520, 399, 520, 520, 520, 520, 371, 520,
/* 2610 */ 358, 520, 520, 520, 520, 411, 520, 413, 520, 520,
/* 2620 */ 520, 399, 520, 371, 520, 520, 520, 520, 520, 520,
/* 2630 */ 520, 520, 520, 411, 520, 413, 399, 520, 520, 520,
/* 2640 */ 520, 520, 520, 520, 520, 520, 520, 520, 411, 520,
/* 2650 */ 413, 399, 520, 520, 520, 520, 520, 520, 520, 455,
/* 2660 */ 520, 520, 458, 411, 520, 413, 462, 463, 464, 465,
/* 2670 */ 466, 467, 520, 469, 520, 520, 520, 455, 520, 520,
/* 2680 */ 458, 520, 520, 358, 462, 463, 464, 465, 466, 467,
/* 2690 */ 520, 469, 455, 520, 520, 458, 371, 520, 520, 462,
/* 2700 */ 463, 464, 465, 466, 467, 520, 469, 455, 520, 358,
/* 2710 */ 458, 520, 520, 520, 462, 463, 464, 465, 466, 467,
/* 2720 */ 520, 469, 371, 520, 399, 520, 520, 520, 520, 520,
/* 2730 */ 520, 358, 520, 520, 520, 520, 411, 520, 413, 520,
/* 2740 */ 520, 520, 520, 520, 371, 520, 520, 520, 520, 520,
/* 2750 */ 399, 520, 520, 520, 520, 520, 520, 520, 520, 520,
/* 2760 */ 520, 520, 411, 520, 413, 520, 520, 520, 520, 358,
/* 2770 */ 520, 520, 399, 520, 520, 520, 520, 520, 520, 520,
/* 2780 */ 455, 520, 371, 458, 411, 520, 413, 462, 463, 464,
/* 2790 */ 465, 466, 467, 520, 469, 520, 520, 520, 520, 520,
/* 2800 */ 520, 520, 520, 520, 520, 520, 455, 520, 520, 458,
/* 2810 */ 399, 520, 520, 462, 463, 464, 465, 466, 467, 520,
/* 2820 */ 469, 520, 411, 520, 413, 520, 520, 520, 455, 520,
/* 2830 */ 520, 458, 520, 520, 520, 462, 463, 464, 465, 466,
/* 2840 */ 467, 520, 469, 520, 520, 358, 520, 520, 520, 520,
/* 2850 */ 520, 520, 520, 520, 520, 520, 520, 520, 371, 520,
/* 2860 */ 520, 520, 520, 520, 520, 520, 455, 520, 520, 458,
/* 2870 */ 520, 520, 520, 462, 463, 464, 465, 466, 467, 520,
/* 2880 */ 469, 358, 520, 520, 520, 520, 399, 520, 520, 520,
/* 2890 */ 520, 520, 520, 520, 371, 520, 520, 520, 411, 520,
/* 2900 */ 413, 520, 520, 520, 520, 520, 520, 520, 520, 520,
/* 2910 */ 520, 520, 520, 520, 520, 520, 520, 520, 520, 358,
/* 2920 */ 520, 520, 399, 520, 520, 520, 520, 520, 520, 520,
/* 2930 */ 520, 520, 371, 520, 411, 520, 413, 520, 520, 520,
/* 2940 */ 520, 520, 455, 520, 520, 458, 520, 520, 520, 462,
/* 2950 */ 463, 464, 465, 466, 467, 520, 469, 520, 520, 520,
/* 2960 */ 399, 520, 358, 520, 520, 520, 520, 520, 520, 520,
/* 2970 */ 520, 520, 411, 520, 413, 371, 520, 520, 455, 520,
/* 2980 */ 358, 458, 520, 520, 520, 462, 463, 464, 465, 466,
/* 2990 */ 467, 520, 469, 371, 520, 358, 520, 520, 520, 520,
/* 3000 */ 520, 520, 520, 399, 520, 520, 520, 520, 371, 520,
/* 3010 */ 520, 520, 520, 520, 520, 411, 455, 413, 520, 458,
/* 3020 */ 520, 399, 520, 462, 463, 464, 465, 466, 467, 520,
/* 3030 */ 469, 520, 520, 411, 520, 413, 399, 520, 520, 520,
/* 3040 */ 520, 520, 520, 520, 520, 520, 520, 520, 411, 520,
/* 3050 */ 413, 520, 520, 520, 520, 520, 520, 520, 520, 455,
/* 3060 */ 520, 520, 458, 520, 520, 520, 462, 463, 464, 465,
/* 3070 */ 466, 467, 520, 469, 520, 520, 520, 455, 520, 520,
/* 3080 */ 458, 520, 520, 520, 462, 463, 464, 465, 466, 467,
/* 3090 */ 520, 469, 455, 520, 520, 458, 520, 520, 520, 462,
/* 3100 */ 463, 464, 465, 466, 467, 520, 469, 355, 355, 355,
/* 3110 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3120 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3130 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3140 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3150 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3160 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3170 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3180 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3190 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3200 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3210 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3220 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3230 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3240 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3250 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3260 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3270 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3280 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3290 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3300 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3310 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3320 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3330 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3340 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3350 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3360 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3370 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3380 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3390 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3400 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3410 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3420 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3430 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3440 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3450 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355,
/* 3460 */ 355, 355,
};
#define YY_SHIFT_COUNT (864)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (2483)
static const unsigned short int yy_shift_ofst[] = {
/* 0 */ 135, 0, 249, 0, 499, 499, 499, 499, 499, 499,
/* 10 */ 499, 499, 499, 499, 499, 499, 748, 997, 997, 1246,
/* 20 */ 997, 997, 997, 997, 997, 997, 997, 997, 997, 997,
/* 30 */ 997, 997, 997, 997, 997, 997, 997, 997, 997, 997,
/* 40 */ 997, 997, 997, 997, 997, 997, 997, 997, 997, 997,
/* 50 */ 245, 430, 66, 88, 417, 464, 417, 417, 88, 88,
/* 60 */ 417, 1367, 417, 248, 1367, 420, 417, 14, 1495, 435,
/* 70 */ 59, 59, 1495, 1495, 190, 190, 435, 295, 40, 24,
/* 80 */ 24, 44, 59, 59, 59, 59, 59, 59, 59, 59,
/* 90 */ 59, 59, 59, 157, 283, 59, 59, 350, 14, 59,
/* 100 */ 157, 59, 14, 59, 59, 14, 59, 59, 14, 59,
/* 110 */ 14, 14, 14, 59, 645, 203, 203, 728, 202, 809,
/* 120 */ 809, 809, 809, 809, 809, 809, 809, 809, 809, 809,
/* 130 */ 809, 809, 809, 809, 809, 809, 809, 809, 1150, 595,
/* 140 */ 295, 40, 895, 895, 829, 306, 306, 306, 617, 617,
/* 150 */ 702, 522, 829, 350, 14, 336, 14, 287, 14, 14,
/* 160 */ 722, 14, 722, 722, 794, 890, 255, 596, 596, 596,
/* 170 */ 596, 596, 596, 596, 2207, 1454, 21, 429, 333, 191,
/* 180 */ 383, 495, 346, 588, 398, 398, 1091, 38, 1095, 545,
/* 190 */ 545, 545, 883, 896, 545, 679, 1107, 379, 706, 1061,
/* 200 */ 1107, 1107, 1136, 1034, 1053, 221, 1034, 1158, 684, 522,
/* 210 */ 1201, 1460, 1500, 1524, 1330, 350, 1524, 350, 1356, 1542,
/* 220 */ 1545, 1522, 1545, 1522, 1391, 1542, 1545, 1542, 1522, 1391,
/* 230 */ 1391, 1391, 1480, 1484, 1542, 1488, 1542, 1542, 1542, 1577,
/* 240 */ 1550, 1577, 1550, 1524, 350, 350, 1585, 350, 1594, 1597,
/* 250 */ 350, 1594, 350, 1611, 350, 350, 1542, 350, 1577, 14,
/* 260 */ 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
/* 270 */ 1542, 890, 890, 1577, 722, 722, 722, 1418, 1580, 1524,
/* 280 */ 645, 1668, 1482, 1485, 1585, 645, 1201, 1542, 722, 1424,
/* 290 */ 1427, 1424, 1427, 1428, 1529, 1424, 1432, 1429, 1455, 1201,
/* 300 */ 1433, 1437, 1441, 1468, 1545, 1725, 1639, 1483, 1594, 645,
/* 310 */ 645, 1658, 1427, 722, 722, 722, 722, 1427, 722, 1589,
/* 320 */ 645, 794, 645, 1545, 722, 722, 1674, 722, 1542, 645,
/* 330 */ 1771, 1754, 1577, 3107, 3107, 3107, 3107, 3107, 3107, 3107,
/* 340 */ 3107, 3107, 36, 498, 263, 534, 665, 79, 826, 296,
/* 350 */ 450, 914, 806, 1033, 54, 54, 54, 54, 54, 54,
/* 360 */ 54, 54, 54, 1054, 374, 674, 774, 774, 130, 946,
/* 370 */ 32, 618, 118, 574, 620, 873, 1103, 1163, 643, 951,
/* 380 */ 555, 661, 951, 951, 951, 307, 307, 436, 331, 127,
/* 390 */ 1278, 1267, 1174, 1308, 1204, 1208, 1209, 1213, 1188, 1291,
/* 400 */ 1325, 1333, 1334, 1339, 1119, 601, 1264, 519, 1311, 1316,
/* 410 */ 1318, 1319, 1217, 1182, 1326, 1340, 1373, 1351, 1310, 1352,
/* 420 */ 1309, 1353, 1370, 1372, 1374, 1376, 1398, 1402, 1405, 1406,
/* 430 */ 1408, 1410, 1417, 1307, 1186, 1363, 1407, 1409, 1380, 832,
/* 440 */ 1807, 1809, 1810, 1766, 1814, 1778, 1587, 1781, 1782, 1789,
/* 450 */ 1598, 1829, 1794, 1795, 1603, 1798, 1836, 1607, 1840, 1804,
/* 460 */ 1845, 1811, 1847, 1834, 1858, 1822, 1635, 1861, 1650, 1865,
/* 470 */ 1653, 1656, 1660, 1667, 1873, 1874, 1875, 1675, 1677, 1878,
/* 480 */ 1879, 1730, 1832, 1833, 1883, 1848, 1887, 1888, 1854, 1841,
/* 490 */ 1899, 1852, 1903, 1860, 1906, 1907, 1908, 1862, 1909, 1910,
/* 500 */ 1925, 1927, 1928, 1929, 1745, 1877, 1915, 1748, 1917, 1918,
/* 510 */ 1919, 1920, 1921, 1922, 1923, 1930, 1931, 1932, 1933, 1934,
/* 520 */ 1937, 1938, 1939, 1940, 1941, 1942, 1943, 1895, 1945, 1902,
/* 530 */ 1948, 1950, 1952, 1959, 1961, 1962, 1963, 1965, 1944, 1969,
/* 540 */ 1820, 1983, 1824, 1974, 1837, 1984, 1986, 1966, 1946, 1967,
/* 550 */ 1951, 1987, 1926, 1953, 1995, 1935, 1997, 1949, 1998, 2002,
/* 560 */ 1956, 1954, 1968, 2003, 1970, 1957, 1971, 2009, 1978, 1960,
/* 570 */ 1975, 2016, 1982, 2020, 1976, 1981, 1991, 1979, 1988, 2011,
/* 580 */ 1989, 2027, 1990, 1999, 2030, 2031, 2032, 2035, 2001, 1843,
/* 590 */ 2044, 1979, 1996, 2046, 2047, 1977, 2050, 2053, 2024, 2012,
/* 600 */ 2022, 2065, 2029, 2017, 2025, 2069, 2034, 2021, 2033, 2073,
/* 610 */ 2039, 2026, 2037, 2080, 2083, 2091, 2093, 2094, 2095, 1985,
/* 620 */ 2000, 2060, 2076, 2101, 2074, 2077, 2078, 2079, 2081, 2082,
/* 630 */ 2084, 2086, 2087, 2092, 2090, 2102, 2108, 2106, 2112, 2110,
/* 640 */ 2117, 2120, 2124, 2122, 2049, 2145, 2125, 2111, 2149, 2151,
/* 650 */ 2152, 2116, 2154, 2118, 2156, 2135, 2138, 2126, 2128, 2129,
/* 660 */ 2052, 2054, 2167, 1992, 2055, 2051, 2061, 1964, 1979, 2130,
/* 670 */ 2171, 2004, 2137, 2150, 2175, 1972, 2160, 2005, 2006, 2178,
/* 680 */ 2184, 2007, 1994, 2008, 2010, 2182, 2158, 1914, 2088, 2089,
/* 690 */ 2097, 2099, 2161, 2163, 2098, 2162, 2114, 2173, 2107, 2103,
/* 700 */ 2191, 2194, 2121, 2131, 2133, 2134, 2136, 2197, 2196, 2198,
/* 710 */ 2142, 2223, 1980, 2155, 2157, 2228, 2226, 2013, 2227, 2229,
/* 720 */ 2236, 2238, 2239, 2240, 2166, 2170, 2211, 2015, 2246, 2231,
/* 730 */ 2281, 2282, 2176, 2243, 2253, 2183, 2036, 2186, 2285, 2270,
/* 740 */ 2057, 2185, 2187, 2189, 2250, 2193, 2195, 2255, 2199, 2284,
/* 750 */ 2066, 2202, 2203, 2206, 2208, 2210, 2132, 2212, 2310, 2278,
/* 760 */ 2140, 2215, 2209, 1979, 2274, 2221, 2225, 2230, 2232, 2233,
/* 770 */ 2213, 2234, 2292, 2296, 2242, 2235, 2297, 2254, 2257, 2298,
/* 780 */ 2256, 2258, 2299, 2260, 2261, 2300, 2263, 2265, 2304, 2267,
/* 790 */ 2217, 2251, 2259, 2266, 2264, 2244, 2280, 2352, 2283, 2354,
/* 800 */ 2286, 2352, 2352, 2366, 2323, 2326, 2361, 2362, 2363, 2370,
/* 810 */ 2371, 2378, 2380, 2381, 2382, 2343, 2302, 2344, 2322, 2391,
/* 820 */ 2388, 2389, 2390, 2407, 2393, 2395, 2397, 2365, 2087, 2404,
/* 830 */ 2092, 2408, 2410, 2412, 2413, 2422, 2415, 2453, 2417, 2414,
/* 840 */ 2419, 2464, 2429, 2416, 2426, 2469, 2433, 2420, 2430, 2473,
/* 850 */ 2438, 2427, 2435, 2479, 2443, 2445, 2483, 2462, 2452, 2465,
/* 860 */ 2468, 2470, 2471, 2474, 2476,
};
#define YY_REDUCE_COUNT (341)
#define YY_REDUCE_MIN (-484)
#define YY_REDUCE_MAX (2637)
static const short yy_reduce_ofst[] = {
/* 0 */ 469, -315, 155, 184, 405, 434, 654, 683, 902, 932,
/* 10 */ 1057, 1181, 1205, 1241, 1358, 1388, 506, 1431, 755, 1491,
/* 20 */ 1513, 1593, 1641, 1623, 1671, 1751, 1770, 1788, 1890, 1913,
/* 30 */ 1947, 1973, 1993, 2075, 2105, 2123, 2204, 2222, 2237, 2252,
/* 40 */ 2325, 2351, 2373, 2411, 2487, 2523, 2561, 2604, 2622, 2637,
/* 50 */ -347, -317, -434, 90, 471, 578, 593, 718, 55, 365,
/* 60 */ 720, 571, -484, -94, 631, -175, 37, -380, -386, -373,
/* 70 */ 219, 262, -368, -244, -360, -266, -403, -382, -203, -93,
/* 80 */ -47, -294, -90, 175, 285, 301, 396, 404, 427, 466,
/* 90 */ 505, 512, 651, -149, 338, 550, 566, 52, 489, 653,
/* 100 */ 216, 667, -70, 688, 690, -235, 693, 701, 117, 715,
/* 110 */ 707, 385, 771, 761, -39, -475, -475, -274, -137, 243,
/* 120 */ 326, 368, 419, 501, 507, 662, 686, 775, 803, 854,
/* 130 */ 858, 868, 905, 916, 919, 924, 926, 927, -36, 151,
/* 140 */ -27, 478, 670, 675, 798, 151, 649, 678, 685, 694,
/* 150 */ 613, -122, 909, 800, -299, 246, 730, 321, 785, 640,
/* 160 */ 666, 888, 878, 887, 904, 945, -400, -384, 541, 554,
/* 170 */ 626, 831, 954, -400, 681, 982, 1029, 994, 903, 918,
/* 180 */ 931, 1059, 1035, 1035, 1055, 1060, 1016, 1080, 1028, 949,
/* 190 */ 956, 957, 1023, 1035, 958, 1092, 1041, 1096, 1062, 1027,
/* 200 */ 1049, 1050, 1035, 985, 985, 965, 985, 995, 986, 1099,
/* 210 */ 1073, 1084, 1087, 1106, 1104, 1176, 1110, 1179, 1123, 1194,
/* 220 */ 1195, 1148, 1198, 1151, 1160, 1211, 1207, 1212, 1155, 1162,
/* 230 */ 1166, 1167, 1203, 1206, 1219, 1210, 1223, 1225, 1226, 1235,
/* 240 */ 1234, 1239, 1236, 1161, 1230, 1231, 1200, 1232, 1243, 1190,
/* 250 */ 1240, 1256, 1251, 1214, 1253, 1254, 1265, 1255, 1274, 1250,
/* 260 */ 1252, 1257, 1259, 1260, 1266, 1276, 1277, 1279, 1281, 1283,
/* 270 */ 1268, 1292, 1303, 1314, 1262, 1272, 1273, 1215, 1242, 1245,
/* 280 */ 1312, 1244, 1269, 1258, 1284, 1317, 1275, 1328, 1298, 1216,
/* 290 */ 1289, 1220, 1294, 1218, 1227, 1228, 1233, 1238, 1247, 1301,
/* 300 */ 1221, 1229, 1248, 985, 1384, 1286, 1270, 1271, 1386, 1385,
/* 310 */ 1389, 1288, 1341, 1357, 1361, 1362, 1364, 1345, 1365, 1354,
/* 320 */ 1401, 1387, 1403, 1412, 1375, 1377, 1381, 1379, 1415, 1414,
/* 330 */ 1434, 1436, 1435, 1366, 1347, 1378, 1382, 1404, 1411, 1413,
/* 340 */ 1425, 1440,
};
static const YYACTIONTYPE yy_default[] = {
/* 0 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 10 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 20 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 30 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 40 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 50 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 60 */ 2308, 1966, 1966, 2271, 1966, 1966, 1966, 1966, 1966, 1966,
/* 70 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2278, 1966, 1966,
/* 80 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 90 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2065, 1966, 1966,
/* 100 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 110 */ 1966, 1966, 1966, 1966, 2063, 2536, 1966, 1966, 1966, 1966,
/* 120 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 130 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2548,
/* 140 */ 1966, 1966, 2037, 2037, 1966, 2548, 2548, 2548, 2508, 2508,
/* 150 */ 2063, 1966, 1966, 2065, 1966, 2350, 1966, 1966, 1966, 1966,
/* 160 */ 1966, 1966, 1966, 1966, 2189, 1996, 2348, 1966, 1966, 1966,
/* 170 */ 1966, 1966, 1966, 1966, 2334, 1966, 1966, 2577, 2639, 1966,
/* 180 */ 2580, 1966, 1966, 1966, 1966, 1966, 2283, 1966, 2567, 1966,
/* 190 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2141, 2328,
/* 200 */ 1966, 1966, 1966, 2540, 2554, 2623, 2541, 2538, 2561, 1966,
/* 210 */ 2571, 1966, 2375, 1966, 2364, 2065, 1966, 2065, 2321, 2266,
/* 220 */ 1966, 2276, 1966, 2276, 2273, 1966, 1966, 1966, 2276, 2273,
/* 230 */ 2273, 2273, 2130, 2126, 1966, 2124, 1966, 1966, 1966, 1966,
/* 240 */ 2021, 1966, 2021, 1966, 2065, 2065, 1966, 2065, 1966, 1966,
/* 250 */ 2065, 1966, 2065, 1966, 2065, 2065, 1966, 2065, 1966, 1966,
/* 260 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 270 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2362, 2344, 1966,
/* 280 */ 2063, 1966, 2332, 2330, 1966, 2063, 2571, 1966, 1966, 2593,
/* 290 */ 2588, 2593, 2588, 2607, 2603, 2593, 2612, 2609, 2573, 2571,
/* 300 */ 2642, 2629, 2625, 2554, 1966, 1966, 2559, 2557, 1966, 2063,
/* 310 */ 2063, 1966, 2588, 1966, 1966, 1966, 1966, 2588, 1966, 1966,
/* 320 */ 2063, 1966, 2063, 1966, 1966, 1966, 2157, 1966, 1966, 2063,
/* 330 */ 1966, 2005, 1966, 2323, 2353, 2304, 2304, 2192, 2192, 2192,
/* 340 */ 2066, 1971, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 350 */ 1966, 1966, 1966, 1966, 2606, 2605, 2460, 1966, 2512, 2511,
/* 360 */ 2510, 2501, 2459, 2153, 1966, 1966, 2458, 2457, 1966, 1966,
/* 370 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2451,
/* 380 */ 1966, 1966, 2452, 2450, 2449, 2295, 2294, 1966, 1966, 1966,
/* 390 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 400 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 410 */ 1966, 1966, 1966, 2626, 2630, 1966, 2537, 1966, 1966, 1966,
/* 420 */ 2431, 1966, 1966, 1966, 1966, 1966, 2399, 1966, 1966, 1966,
/* 430 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 440 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 450 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 460 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 470 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 480 */ 1966, 2272, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 490 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 500 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 510 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 520 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 530 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 540 */ 1966, 1966, 1966, 1966, 2287, 1966, 1966, 1966, 1966, 1966,
/* 550 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 560 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 570 */ 1966, 1966, 1966, 1966, 1966, 1966, 2010, 2438, 1966, 1966,
/* 580 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 590 */ 1966, 2441, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 600 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 610 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 620 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 630 */ 1966, 1966, 2105, 2104, 1966, 1966, 1966, 1966, 1966, 1966,
/* 640 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 650 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 660 */ 2442, 1966, 1966, 1966, 2348, 1966, 1966, 1966, 2433, 1966,
/* 670 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 680 */ 1966, 1966, 1966, 1966, 1966, 2622, 2574, 1966, 1966, 1966,
/* 690 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 700 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2431,
/* 710 */ 1966, 2604, 1966, 1966, 2620, 1966, 2624, 1966, 1966, 1966,
/* 720 */ 1966, 1966, 1966, 1966, 2547, 2543, 1966, 1966, 2539, 1966,
/* 730 */ 1966, 1966, 1966, 1966, 2498, 1966, 1966, 1966, 2532, 1966,
/* 740 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2442, 1966,
/* 750 */ 2445, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 760 */ 1966, 1966, 1966, 2430, 1966, 2483, 2482, 1966, 1966, 1966,
/* 770 */ 1966, 1966, 1966, 1966, 2186, 1966, 1966, 1966, 1966, 1966,
/* 780 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 790 */ 2170, 2168, 2167, 2166, 1966, 2163, 1966, 2199, 1966, 1966,
/* 800 */ 1966, 2195, 2194, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 810 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2084,
/* 820 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 2076, 1966,
/* 830 */ 2075, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 840 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966,
/* 850 */ 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1966, 1995, 1966,
/* 860 */ 1966, 1966, 1966, 1966, 1966,
};
/********** 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, /* NK_COMMA => nothing */
0, /* HOST => nothing */
0, /* USER => nothing */
0, /* ENABLE => nothing */
0, /* NK_INTEGER => nothing */
0, /* SYSINFO => nothing */
0, /* ADD => nothing */
0, /* DROP => nothing */
0, /* GRANT => nothing */
0, /* ON => nothing */
0, /* TO => nothing */
0, /* REVOKE => nothing */
0, /* FROM => nothing */
0, /* SUBSCRIBE => 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, /* CLUSTER => 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, /* KEEP_TIME_OFFSET => nothing */
0, /* NK_COLON => nothing */
0, /* BWLIMIT => nothing */
0, /* START => nothing */
0, /* TIMESTAMP => nothing */
306, /* END => ABORT */
0, /* TABLE => nothing */
0, /* NK_LP => nothing */
0, /* NK_RP => nothing */
0, /* STABLE => nothing */
0, /* COLUMN => nothing */
0, /* MODIFY => nothing */
0, /* RENAME => nothing */
0, /* TAG => nothing */
0, /* SET => nothing */
0, /* NK_EQ => nothing */
0, /* USING => nothing */
0, /* TAGS => nothing */
0, /* PRIMARY => nothing */
306, /* KEY => ABORT */
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, /* ARBGROUPS => nothing */
0, /* FUNCTIONS => nothing */
0, /* INDEXES => nothing */
0, /* ACCOUNTS => nothing */
0, /* APPS => nothing */
0, /* CONNECTIONS => nothing */
0, /* LICENCES => nothing */
0, /* GRANTS => nothing */
0, /* FULL => nothing */
0, /* LOGS => nothing */
0, /* MACHINES => nothing */
0, /* QUERIES => nothing */
0, /* SCORES => nothing */
0, /* TOPICS => nothing */
0, /* VARIABLES => 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, /* VIEWS => nothing */
306, /* VIEW => ABORT */
0, /* COMPACTS => nothing */
0, /* NORMAL => nothing */
0, /* CHILD => nothing */
0, /* LIKE => nothing */
0, /* TBNAME => nothing */
0, /* QTAGS => nothing */
0, /* AS => nothing */
0, /* SYSTEM => 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, /* NK_BIN => nothing */
0, /* NK_HEX => nothing */
0, /* NULL => nothing */
0, /* NK_QUESTION => nothing */
0, /* NK_ALIAS => 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, /* NK_HINT => 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, /* COUNT_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 */
306, /* AFTER => ABORT */
306, /* ATTACH => ABORT */
306, /* BEFORE => ABORT */
306, /* BEGIN => ABORT */
306, /* BITAND => ABORT */
306, /* BITNOT => ABORT */
306, /* BITOR => ABORT */
306, /* BLOCKS => ABORT */
306, /* CHANGE => ABORT */
306, /* COMMA => ABORT */
306, /* CONCAT => ABORT */
306, /* CONFLICT => ABORT */
306, /* COPY => ABORT */
306, /* DEFERRED => ABORT */
306, /* DELIMITERS => ABORT */
306, /* DETACH => ABORT */
306, /* DIVIDE => ABORT */
306, /* DOT => ABORT */
306, /* EACH => ABORT */
306, /* FAIL => ABORT */
306, /* FILE => ABORT */
306, /* FOR => ABORT */
306, /* GLOB => ABORT */
306, /* ID => ABORT */
306, /* IMMEDIATE => ABORT */
306, /* IMPORT => ABORT */
306, /* INITIALLY => ABORT */
306, /* INSTEAD => ABORT */
306, /* ISNULL => ABORT */
306, /* MODULES => ABORT */
306, /* NK_BITNOT => ABORT */
306, /* NK_SEMI => ABORT */
306, /* NOTNULL => ABORT */
306, /* OF => ABORT */
306, /* PLUS => ABORT */
306, /* PRIVILEGE => ABORT */
306, /* RAISE => ABORT */
306, /* RESTRICT => ABORT */
306, /* ROW => ABORT */
306, /* SEMI => ABORT */
306, /* STAR => ABORT */
306, /* STATEMENT => ABORT */
306, /* STRICT => ABORT */
306, /* STRING => ABORT */
306, /* TIMES => ABORT */
306, /* VALUES => ABORT */
306, /* VARIABLE => ABORT */
306, /* 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;
#include <assert.h>
#ifndef NDEBUG
#include <stdio.h>
static FILE *yyTraceFILE = 0;
static char *yyTracePrompt = 0;
#endif /* NDEBUG */
#ifndef NDEBUG
/*
** Turn parser tracing on by giving a stream to which to write the trace
** and a prompt to preface each trace message. Tracing is turned off
** by making either argument NULL
**
** Inputs:
** <ul>
** <li> A FILE* to which trace output should be written.
** If NULL, then tracing is turned off.
** <li> A prefix string written at the beginning of every
** line of trace output. If NULL, then tracing is
** turned off.
** </ul>
**
** Outputs:
** None.
*/
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
yyTraceFILE = TraceFILE;
yyTracePrompt = zTracePrompt;
if( yyTraceFILE==0 ) yyTracePrompt = 0;
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
}
#endif /* NDEBUG */
#if defined(YYCOVERAGE) || !defined(NDEBUG)
/* For tracing shifts, the names of all terminals and nonterminals
** are required. The following table supplies these names */
static const char *const yyTokenName[] = {
/* 0 */ "$",
/* 1 */ "OR",
/* 2 */ "AND",
/* 3 */ "UNION",
/* 4 */ "ALL",
/* 5 */ "MINUS",
/* 6 */ "EXCEPT",
/* 7 */ "INTERSECT",
/* 8 */ "NK_BITAND",
/* 9 */ "NK_BITOR",
/* 10 */ "NK_LSHIFT",
/* 11 */ "NK_RSHIFT",
/* 12 */ "NK_PLUS",
/* 13 */ "NK_MINUS",
/* 14 */ "NK_STAR",
/* 15 */ "NK_SLASH",
/* 16 */ "NK_REM",
/* 17 */ "NK_CONCAT",
/* 18 */ "CREATE",
/* 19 */ "ACCOUNT",
/* 20 */ "NK_ID",
/* 21 */ "PASS",
/* 22 */ "NK_STRING",
/* 23 */ "ALTER",
/* 24 */ "PPS",
/* 25 */ "TSERIES",
/* 26 */ "STORAGE",
/* 27 */ "STREAMS",
/* 28 */ "QTIME",
/* 29 */ "DBS",
/* 30 */ "USERS",
/* 31 */ "CONNS",
/* 32 */ "STATE",
/* 33 */ "NK_COMMA",
/* 34 */ "HOST",
/* 35 */ "USER",
/* 36 */ "ENABLE",
/* 37 */ "NK_INTEGER",
/* 38 */ "SYSINFO",
/* 39 */ "ADD",
/* 40 */ "DROP",
/* 41 */ "GRANT",
/* 42 */ "ON",
/* 43 */ "TO",
/* 44 */ "REVOKE",
/* 45 */ "FROM",
/* 46 */ "SUBSCRIBE",
/* 47 */ "READ",
/* 48 */ "WRITE",
/* 49 */ "NK_DOT",
/* 50 */ "WITH",
/* 51 */ "DNODE",
/* 52 */ "PORT",
/* 53 */ "DNODES",
/* 54 */ "RESTORE",
/* 55 */ "NK_IPTOKEN",
/* 56 */ "FORCE",
/* 57 */ "UNSAFE",
/* 58 */ "CLUSTER",
/* 59 */ "LOCAL",
/* 60 */ "QNODE",
/* 61 */ "BNODE",
/* 62 */ "SNODE",
/* 63 */ "MNODE",
/* 64 */ "VNODE",
/* 65 */ "DATABASE",
/* 66 */ "USE",
/* 67 */ "FLUSH",
/* 68 */ "TRIM",
/* 69 */ "COMPACT",
/* 70 */ "IF",
/* 71 */ "NOT",
/* 72 */ "EXISTS",
/* 73 */ "BUFFER",
/* 74 */ "CACHEMODEL",
/* 75 */ "CACHESIZE",
/* 76 */ "COMP",
/* 77 */ "DURATION",
/* 78 */ "NK_VARIABLE",
/* 79 */ "MAXROWS",
/* 80 */ "MINROWS",
/* 81 */ "KEEP",
/* 82 */ "PAGES",
/* 83 */ "PAGESIZE",
/* 84 */ "TSDB_PAGESIZE",
/* 85 */ "PRECISION",
/* 86 */ "REPLICA",
/* 87 */ "VGROUPS",
/* 88 */ "SINGLE_STABLE",
/* 89 */ "RETENTIONS",
/* 90 */ "SCHEMALESS",
/* 91 */ "WAL_LEVEL",
/* 92 */ "WAL_FSYNC_PERIOD",
/* 93 */ "WAL_RETENTION_PERIOD",
/* 94 */ "WAL_RETENTION_SIZE",
/* 95 */ "WAL_ROLL_PERIOD",
/* 96 */ "WAL_SEGMENT_SIZE",
/* 97 */ "STT_TRIGGER",
/* 98 */ "TABLE_PREFIX",
/* 99 */ "TABLE_SUFFIX",
/* 100 */ "KEEP_TIME_OFFSET",
/* 101 */ "NK_COLON",
/* 102 */ "BWLIMIT",
/* 103 */ "START",
/* 104 */ "TIMESTAMP",
/* 105 */ "END",
/* 106 */ "TABLE",
/* 107 */ "NK_LP",
/* 108 */ "NK_RP",
/* 109 */ "STABLE",
/* 110 */ "COLUMN",
/* 111 */ "MODIFY",
/* 112 */ "RENAME",
/* 113 */ "TAG",
/* 114 */ "SET",
/* 115 */ "NK_EQ",
/* 116 */ "USING",
/* 117 */ "TAGS",
/* 118 */ "PRIMARY",
/* 119 */ "KEY",
/* 120 */ "BOOL",
/* 121 */ "TINYINT",
/* 122 */ "SMALLINT",
/* 123 */ "INT",
/* 124 */ "INTEGER",
/* 125 */ "BIGINT",
/* 126 */ "FLOAT",
/* 127 */ "DOUBLE",
/* 128 */ "BINARY",
/* 129 */ "NCHAR",
/* 130 */ "UNSIGNED",
/* 131 */ "JSON",
/* 132 */ "VARCHAR",
/* 133 */ "MEDIUMBLOB",
/* 134 */ "BLOB",
/* 135 */ "VARBINARY",
/* 136 */ "GEOMETRY",
/* 137 */ "DECIMAL",
/* 138 */ "COMMENT",
/* 139 */ "MAX_DELAY",
/* 140 */ "WATERMARK",
/* 141 */ "ROLLUP",
/* 142 */ "TTL",
/* 143 */ "SMA",
/* 144 */ "DELETE_MARK",
/* 145 */ "FIRST",
/* 146 */ "LAST",
/* 147 */ "SHOW",
/* 148 */ "PRIVILEGES",
/* 149 */ "DATABASES",
/* 150 */ "TABLES",
/* 151 */ "STABLES",
/* 152 */ "MNODES",
/* 153 */ "QNODES",
/* 154 */ "ARBGROUPS",
/* 155 */ "FUNCTIONS",
/* 156 */ "INDEXES",
/* 157 */ "ACCOUNTS",
/* 158 */ "APPS",
/* 159 */ "CONNECTIONS",
/* 160 */ "LICENCES",
/* 161 */ "GRANTS",
/* 162 */ "FULL",
/* 163 */ "LOGS",
/* 164 */ "MACHINES",
/* 165 */ "QUERIES",
/* 166 */ "SCORES",
/* 167 */ "TOPICS",
/* 168 */ "VARIABLES",
/* 169 */ "BNODES",
/* 170 */ "SNODES",
/* 171 */ "TRANSACTIONS",
/* 172 */ "DISTRIBUTED",
/* 173 */ "CONSUMERS",
/* 174 */ "SUBSCRIPTIONS",
/* 175 */ "VNODES",
/* 176 */ "ALIVE",
/* 177 */ "VIEWS",
/* 178 */ "VIEW",
/* 179 */ "COMPACTS",
/* 180 */ "NORMAL",
/* 181 */ "CHILD",
/* 182 */ "LIKE",
/* 183 */ "TBNAME",
/* 184 */ "QTAGS",
/* 185 */ "AS",
/* 186 */ "SYSTEM",
/* 187 */ "INDEX",
/* 188 */ "FUNCTION",
/* 189 */ "INTERVAL",
/* 190 */ "COUNT",
/* 191 */ "LAST_ROW",
/* 192 */ "META",
/* 193 */ "ONLY",
/* 194 */ "TOPIC",
/* 195 */ "CONSUMER",
/* 196 */ "GROUP",
/* 197 */ "DESC",
/* 198 */ "DESCRIBE",
/* 199 */ "RESET",
/* 200 */ "QUERY",
/* 201 */ "CACHE",
/* 202 */ "EXPLAIN",
/* 203 */ "ANALYZE",
/* 204 */ "VERBOSE",
/* 205 */ "NK_BOOL",
/* 206 */ "RATIO",
/* 207 */ "NK_FLOAT",
/* 208 */ "OUTPUTTYPE",
/* 209 */ "AGGREGATE",
/* 210 */ "BUFSIZE",
/* 211 */ "LANGUAGE",
/* 212 */ "REPLACE",
/* 213 */ "STREAM",
/* 214 */ "INTO",
/* 215 */ "PAUSE",
/* 216 */ "RESUME",
/* 217 */ "TRIGGER",
/* 218 */ "AT_ONCE",
/* 219 */ "WINDOW_CLOSE",
/* 220 */ "IGNORE",
/* 221 */ "EXPIRED",
/* 222 */ "FILL_HISTORY",
/* 223 */ "UPDATE",
/* 224 */ "SUBTABLE",
/* 225 */ "UNTREATED",
/* 226 */ "KILL",
/* 227 */ "CONNECTION",
/* 228 */ "TRANSACTION",
/* 229 */ "BALANCE",
/* 230 */ "VGROUP",
/* 231 */ "LEADER",
/* 232 */ "MERGE",
/* 233 */ "REDISTRIBUTE",
/* 234 */ "SPLIT",
/* 235 */ "DELETE",
/* 236 */ "INSERT",
/* 237 */ "NK_BIN",
/* 238 */ "NK_HEX",
/* 239 */ "NULL",
/* 240 */ "NK_QUESTION",
/* 241 */ "NK_ALIAS",
/* 242 */ "NK_ARROW",
/* 243 */ "ROWTS",
/* 244 */ "QSTART",
/* 245 */ "QEND",
/* 246 */ "QDURATION",
/* 247 */ "WSTART",
/* 248 */ "WEND",
/* 249 */ "WDURATION",
/* 250 */ "IROWTS",
/* 251 */ "ISFILLED",
/* 252 */ "CAST",
/* 253 */ "NOW",
/* 254 */ "TODAY",
/* 255 */ "TIMEZONE",
/* 256 */ "CLIENT_VERSION",
/* 257 */ "SERVER_VERSION",
/* 258 */ "SERVER_STATUS",
/* 259 */ "CURRENT_USER",
/* 260 */ "CASE",
/* 261 */ "WHEN",
/* 262 */ "THEN",
/* 263 */ "ELSE",
/* 264 */ "BETWEEN",
/* 265 */ "IS",
/* 266 */ "NK_LT",
/* 267 */ "NK_GT",
/* 268 */ "NK_LE",
/* 269 */ "NK_GE",
/* 270 */ "NK_NE",
/* 271 */ "MATCH",
/* 272 */ "NMATCH",
/* 273 */ "CONTAINS",
/* 274 */ "IN",
/* 275 */ "JOIN",
/* 276 */ "INNER",
/* 277 */ "SELECT",
/* 278 */ "NK_HINT",
/* 279 */ "DISTINCT",
/* 280 */ "WHERE",
/* 281 */ "PARTITION",
/* 282 */ "BY",
/* 283 */ "SESSION",
/* 284 */ "STATE_WINDOW",
/* 285 */ "EVENT_WINDOW",
/* 286 */ "COUNT_WINDOW",
/* 287 */ "SLIDING",
/* 288 */ "FILL",
/* 289 */ "VALUE",
/* 290 */ "VALUE_F",
/* 291 */ "NONE",
/* 292 */ "PREV",
/* 293 */ "NULL_F",
/* 294 */ "LINEAR",
/* 295 */ "NEXT",
/* 296 */ "HAVING",
/* 297 */ "RANGE",
/* 298 */ "EVERY",
/* 299 */ "ORDER",
/* 300 */ "SLIMIT",
/* 301 */ "SOFFSET",
/* 302 */ "LIMIT",
/* 303 */ "OFFSET",
/* 304 */ "ASC",
/* 305 */ "NULLS",
/* 306 */ "ABORT",
/* 307 */ "AFTER",
/* 308 */ "ATTACH",
/* 309 */ "BEFORE",
/* 310 */ "BEGIN",
/* 311 */ "BITAND",
/* 312 */ "BITNOT",
/* 313 */ "BITOR",
/* 314 */ "BLOCKS",
/* 315 */ "CHANGE",
/* 316 */ "COMMA",
/* 317 */ "CONCAT",
/* 318 */ "CONFLICT",
/* 319 */ "COPY",
/* 320 */ "DEFERRED",
/* 321 */ "DELIMITERS",
/* 322 */ "DETACH",
/* 323 */ "DIVIDE",
/* 324 */ "DOT",
/* 325 */ "EACH",
/* 326 */ "FAIL",
/* 327 */ "FILE",
/* 328 */ "FOR",
/* 329 */ "GLOB",
/* 330 */ "ID",
/* 331 */ "IMMEDIATE",
/* 332 */ "IMPORT",
/* 333 */ "INITIALLY",
/* 334 */ "INSTEAD",
/* 335 */ "ISNULL",
/* 336 */ "MODULES",
/* 337 */ "NK_BITNOT",
/* 338 */ "NK_SEMI",
/* 339 */ "NOTNULL",
/* 340 */ "OF",
/* 341 */ "PLUS",
/* 342 */ "PRIVILEGE",
/* 343 */ "RAISE",
/* 344 */ "RESTRICT",
/* 345 */ "ROW",
/* 346 */ "SEMI",
/* 347 */ "STAR",
/* 348 */ "STATEMENT",
/* 349 */ "STRICT",
/* 350 */ "STRING",
/* 351 */ "TIMES",
/* 352 */ "VALUES",
/* 353 */ "VARIABLE",
/* 354 */ "WAL",
/* 355 */ "cmd",
/* 356 */ "account_options",
/* 357 */ "alter_account_options",
/* 358 */ "literal",
/* 359 */ "alter_account_option",
/* 360 */ "ip_range_list",
/* 361 */ "white_list",
/* 362 */ "white_list_opt",
/* 363 */ "user_name",
/* 364 */ "sysinfo_opt",
/* 365 */ "privileges",
/* 366 */ "priv_level",
/* 367 */ "with_opt",
/* 368 */ "priv_type_list",
/* 369 */ "priv_type",
/* 370 */ "db_name",
/* 371 */ "table_name",
/* 372 */ "topic_name",
/* 373 */ "search_condition",
/* 374 */ "dnode_endpoint",
/* 375 */ "force_opt",
/* 376 */ "unsafe_opt",
/* 377 */ "not_exists_opt",
/* 378 */ "db_options",
/* 379 */ "exists_opt",
/* 380 */ "alter_db_options",
/* 381 */ "speed_opt",
/* 382 */ "start_opt",
/* 383 */ "end_opt",
/* 384 */ "integer_list",
/* 385 */ "variable_list",
/* 386 */ "retention_list",
/* 387 */ "signed",
/* 388 */ "alter_db_option",
/* 389 */ "retention",
/* 390 */ "full_table_name",
/* 391 */ "column_def_list",
/* 392 */ "tags_def_opt",
/* 393 */ "table_options",
/* 394 */ "multi_create_clause",
/* 395 */ "tags_def",
/* 396 */ "multi_drop_clause",
/* 397 */ "alter_table_clause",
/* 398 */ "alter_table_options",
/* 399 */ "column_name",
/* 400 */ "type_name",
/* 401 */ "tags_literal",
/* 402 */ "create_subtable_clause",
/* 403 */ "specific_cols_opt",
/* 404 */ "tags_literal_list",
/* 405 */ "drop_table_clause",
/* 406 */ "col_name_list",
/* 407 */ "column_def",
/* 408 */ "duration_list",
/* 409 */ "rollup_func_list",
/* 410 */ "alter_table_option",
/* 411 */ "duration_literal",
/* 412 */ "rollup_func_name",
/* 413 */ "function_name",
/* 414 */ "col_name",
/* 415 */ "db_kind_opt",
/* 416 */ "table_kind_db_name_cond_opt",
/* 417 */ "like_pattern_opt",
/* 418 */ "db_name_cond_opt",
/* 419 */ "table_name_cond",
/* 420 */ "from_db_opt",
/* 421 */ "tag_list_opt",
/* 422 */ "table_kind",
/* 423 */ "tag_item",
/* 424 */ "column_alias",
/* 425 */ "index_options",
/* 426 */ "full_index_name",
/* 427 */ "index_name",
/* 428 */ "func_list",
/* 429 */ "sliding_opt",
/* 430 */ "sma_stream_opt",
/* 431 */ "func",
/* 432 */ "sma_func_name",
/* 433 */ "expression_list",
/* 434 */ "with_meta",
/* 435 */ "query_or_subquery",
/* 436 */ "where_clause_opt",
/* 437 */ "cgroup_name",
/* 438 */ "analyze_opt",
/* 439 */ "explain_options",
/* 440 */ "insert_query",
/* 441 */ "or_replace_opt",
/* 442 */ "agg_func_opt",
/* 443 */ "bufsize_opt",
/* 444 */ "language_opt",
/* 445 */ "full_view_name",
/* 446 */ "view_name",
/* 447 */ "stream_name",
/* 448 */ "stream_options",
/* 449 */ "col_list_opt",
/* 450 */ "tag_def_or_ref_opt",
/* 451 */ "subtable_opt",
/* 452 */ "ignore_opt",
/* 453 */ "column_stream_def_list",
/* 454 */ "column_stream_def",
/* 455 */ "expression",
/* 456 */ "on_vgroup_id",
/* 457 */ "dnode_list",
/* 458 */ "literal_func",
/* 459 */ "signed_literal",
/* 460 */ "literal_list",
/* 461 */ "table_alias",
/* 462 */ "expr_or_subquery",
/* 463 */ "pseudo_column",
/* 464 */ "column_reference",
/* 465 */ "function_expression",
/* 466 */ "case_when_expression",
/* 467 */ "star_func",
/* 468 */ "star_func_para_list",
/* 469 */ "noarg_func",
/* 470 */ "other_para_list",
/* 471 */ "star_func_para",
/* 472 */ "when_then_list",
/* 473 */ "case_when_else_opt",
/* 474 */ "common_expression",
/* 475 */ "when_then_expr",
/* 476 */ "predicate",
/* 477 */ "compare_op",
/* 478 */ "in_op",
/* 479 */ "in_predicate_value",
/* 480 */ "boolean_value_expression",
/* 481 */ "boolean_primary",
/* 482 */ "from_clause_opt",
/* 483 */ "table_reference_list",
/* 484 */ "table_reference",
/* 485 */ "table_primary",
/* 486 */ "joined_table",
/* 487 */ "alias_opt",
/* 488 */ "subquery",
/* 489 */ "parenthesized_joined_table",
/* 490 */ "join_type",
/* 491 */ "query_specification",
/* 492 */ "hint_list",
/* 493 */ "set_quantifier_opt",
/* 494 */ "tag_mode_opt",
/* 495 */ "select_list",
/* 496 */ "partition_by_clause_opt",
/* 497 */ "range_opt",
/* 498 */ "every_opt",
/* 499 */ "fill_opt",
/* 500 */ "twindow_clause_opt",
/* 501 */ "group_by_clause_opt",
/* 502 */ "having_clause_opt",
/* 503 */ "select_item",
/* 504 */ "partition_list",
/* 505 */ "partition_item",
/* 506 */ "interval_sliding_duration_literal",
/* 507 */ "fill_mode",
/* 508 */ "group_by_list",
/* 509 */ "query_expression",
/* 510 */ "query_simple",
/* 511 */ "order_by_clause_opt",
/* 512 */ "slimit_clause_opt",
/* 513 */ "limit_clause_opt",
/* 514 */ "union_query_expression",
/* 515 */ "query_simple_or_subquery",
/* 516 */ "sort_specification_list",
/* 517 */ "sort_specification",
/* 518 */ "ordering_specification_opt",
/* 519 */ "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 */ "ip_range_list ::= NK_STRING",
/* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING",
/* 26 */ "white_list ::= HOST ip_range_list",
/* 27 */ "white_list_opt ::=",
/* 28 */ "white_list_opt ::= white_list",
/* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt",
/* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
/* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
/* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
/* 33 */ "cmd ::= ALTER USER user_name ADD white_list",
/* 34 */ "cmd ::= ALTER USER user_name DROP white_list",
/* 35 */ "cmd ::= DROP USER user_name",
/* 36 */ "sysinfo_opt ::=",
/* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
/* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
/* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
/* 40 */ "privileges ::= ALL",
/* 41 */ "privileges ::= priv_type_list",
/* 42 */ "privileges ::= SUBSCRIBE",
/* 43 */ "priv_type_list ::= priv_type",
/* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
/* 45 */ "priv_type ::= READ",
/* 46 */ "priv_type ::= WRITE",
/* 47 */ "priv_type ::= ALTER",
/* 48 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
/* 49 */ "priv_level ::= db_name NK_DOT NK_STAR",
/* 50 */ "priv_level ::= db_name NK_DOT table_name",
/* 51 */ "priv_level ::= topic_name",
/* 52 */ "with_opt ::=",
/* 53 */ "with_opt ::= WITH search_condition",
/* 54 */ "cmd ::= CREATE DNODE dnode_endpoint",
/* 55 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
/* 56 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
/* 57 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
/* 58 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
/* 59 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
/* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
/* 61 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
/* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING",
/* 63 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
/* 64 */ "cmd ::= RESTORE DNODE NK_INTEGER",
/* 65 */ "dnode_endpoint ::= NK_STRING",
/* 66 */ "dnode_endpoint ::= NK_ID",
/* 67 */ "dnode_endpoint ::= NK_IPTOKEN",
/* 68 */ "force_opt ::=",
/* 69 */ "force_opt ::= FORCE",
/* 70 */ "unsafe_opt ::= UNSAFE",
/* 71 */ "cmd ::= ALTER CLUSTER NK_STRING",
/* 72 */ "cmd ::= ALTER CLUSTER NK_STRING NK_STRING",
/* 73 */ "cmd ::= ALTER LOCAL NK_STRING",
/* 74 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
/* 75 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
/* 76 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
/* 77 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
/* 78 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
/* 79 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
/* 80 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
/* 81 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
/* 82 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
/* 83 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
/* 84 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
/* 85 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
/* 86 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
/* 87 */ "cmd ::= DROP DATABASE exists_opt db_name",
/* 88 */ "cmd ::= USE db_name",
/* 89 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
/* 90 */ "cmd ::= FLUSH DATABASE db_name",
/* 91 */ "cmd ::= TRIM DATABASE db_name speed_opt",
/* 92 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
/* 93 */ "not_exists_opt ::= IF NOT EXISTS",
/* 94 */ "not_exists_opt ::=",
/* 95 */ "exists_opt ::= IF EXISTS",
/* 96 */ "exists_opt ::=",
/* 97 */ "db_options ::=",
/* 98 */ "db_options ::= db_options BUFFER NK_INTEGER",
/* 99 */ "db_options ::= db_options CACHEMODEL NK_STRING",
/* 100 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
/* 101 */ "db_options ::= db_options COMP NK_INTEGER",
/* 102 */ "db_options ::= db_options DURATION NK_INTEGER",
/* 103 */ "db_options ::= db_options DURATION NK_VARIABLE",
/* 104 */ "db_options ::= db_options MAXROWS NK_INTEGER",
/* 105 */ "db_options ::= db_options MINROWS NK_INTEGER",
/* 106 */ "db_options ::= db_options KEEP integer_list",
/* 107 */ "db_options ::= db_options KEEP variable_list",
/* 108 */ "db_options ::= db_options PAGES NK_INTEGER",
/* 109 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
/* 110 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
/* 111 */ "db_options ::= db_options PRECISION NK_STRING",
/* 112 */ "db_options ::= db_options REPLICA NK_INTEGER",
/* 113 */ "db_options ::= db_options VGROUPS NK_INTEGER",
/* 114 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
/* 115 */ "db_options ::= db_options RETENTIONS retention_list",
/* 116 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
/* 117 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
/* 118 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
/* 119 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
/* 120 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 121 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
/* 122 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 123 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
/* 124 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
/* 125 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
/* 126 */ "db_options ::= db_options TABLE_PREFIX signed",
/* 127 */ "db_options ::= db_options TABLE_SUFFIX signed",
/* 128 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
/* 129 */ "alter_db_options ::= alter_db_option",
/* 130 */ "alter_db_options ::= alter_db_options alter_db_option",
/* 131 */ "alter_db_option ::= BUFFER NK_INTEGER",
/* 132 */ "alter_db_option ::= CACHEMODEL NK_STRING",
/* 133 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
/* 134 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
/* 135 */ "alter_db_option ::= KEEP integer_list",
/* 136 */ "alter_db_option ::= KEEP variable_list",
/* 137 */ "alter_db_option ::= PAGES NK_INTEGER",
/* 138 */ "alter_db_option ::= REPLICA NK_INTEGER",
/* 139 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
/* 140 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
/* 141 */ "alter_db_option ::= MINROWS NK_INTEGER",
/* 142 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
/* 143 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 144 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
/* 145 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 146 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
/* 147 */ "integer_list ::= NK_INTEGER",
/* 148 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
/* 149 */ "variable_list ::= NK_VARIABLE",
/* 150 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
/* 151 */ "retention_list ::= retention",
/* 152 */ "retention_list ::= retention_list NK_COMMA retention",
/* 153 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
/* 154 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
/* 155 */ "speed_opt ::=",
/* 156 */ "speed_opt ::= BWLIMIT NK_INTEGER",
/* 157 */ "start_opt ::=",
/* 158 */ "start_opt ::= START WITH NK_INTEGER",
/* 159 */ "start_opt ::= START WITH NK_STRING",
/* 160 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
/* 161 */ "end_opt ::=",
/* 162 */ "end_opt ::= END WITH NK_INTEGER",
/* 163 */ "end_opt ::= END WITH NK_STRING",
/* 164 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
/* 165 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
/* 166 */ "cmd ::= CREATE TABLE multi_create_clause",
/* 167 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
/* 168 */ "cmd ::= DROP TABLE multi_drop_clause",
/* 169 */ "cmd ::= DROP STABLE exists_opt full_table_name",
/* 170 */ "cmd ::= ALTER TABLE alter_table_clause",
/* 171 */ "cmd ::= ALTER STABLE alter_table_clause",
/* 172 */ "alter_table_clause ::= full_table_name alter_table_options",
/* 173 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
/* 174 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
/* 175 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
/* 176 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
/* 177 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
/* 178 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
/* 179 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
/* 180 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
/* 181 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal",
/* 182 */ "multi_create_clause ::= create_subtable_clause",
/* 183 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
/* 184 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options",
/* 185 */ "multi_drop_clause ::= drop_table_clause",
/* 186 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
/* 187 */ "drop_table_clause ::= exists_opt full_table_name",
/* 188 */ "specific_cols_opt ::=",
/* 189 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
/* 190 */ "full_table_name ::= table_name",
/* 191 */ "full_table_name ::= db_name NK_DOT table_name",
/* 192 */ "column_def_list ::= column_def",
/* 193 */ "column_def_list ::= column_def_list NK_COMMA column_def",
/* 194 */ "column_def ::= column_name type_name",
/* 195 */ "column_def ::= column_name type_name PRIMARY KEY",
/* 196 */ "type_name ::= BOOL",
/* 197 */ "type_name ::= TINYINT",
/* 198 */ "type_name ::= SMALLINT",
/* 199 */ "type_name ::= INT",
/* 200 */ "type_name ::= INTEGER",
/* 201 */ "type_name ::= BIGINT",
/* 202 */ "type_name ::= FLOAT",
/* 203 */ "type_name ::= DOUBLE",
/* 204 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
/* 205 */ "type_name ::= TIMESTAMP",
/* 206 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
/* 207 */ "type_name ::= TINYINT UNSIGNED",
/* 208 */ "type_name ::= SMALLINT UNSIGNED",
/* 209 */ "type_name ::= INT UNSIGNED",
/* 210 */ "type_name ::= BIGINT UNSIGNED",
/* 211 */ "type_name ::= JSON",
/* 212 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
/* 213 */ "type_name ::= MEDIUMBLOB",
/* 214 */ "type_name ::= BLOB",
/* 215 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
/* 216 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
/* 217 */ "type_name ::= DECIMAL",
/* 218 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
/* 219 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 220 */ "tags_def_opt ::=",
/* 221 */ "tags_def_opt ::= tags_def",
/* 222 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
/* 223 */ "table_options ::=",
/* 224 */ "table_options ::= table_options COMMENT NK_STRING",
/* 225 */ "table_options ::= table_options MAX_DELAY duration_list",
/* 226 */ "table_options ::= table_options WATERMARK duration_list",
/* 227 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
/* 228 */ "table_options ::= table_options TTL NK_INTEGER",
/* 229 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
/* 230 */ "table_options ::= table_options DELETE_MARK duration_list",
/* 231 */ "alter_table_options ::= alter_table_option",
/* 232 */ "alter_table_options ::= alter_table_options alter_table_option",
/* 233 */ "alter_table_option ::= COMMENT NK_STRING",
/* 234 */ "alter_table_option ::= TTL NK_INTEGER",
/* 235 */ "duration_list ::= duration_literal",
/* 236 */ "duration_list ::= duration_list NK_COMMA duration_literal",
/* 237 */ "rollup_func_list ::= rollup_func_name",
/* 238 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
/* 239 */ "rollup_func_name ::= function_name",
/* 240 */ "rollup_func_name ::= FIRST",
/* 241 */ "rollup_func_name ::= LAST",
/* 242 */ "col_name_list ::= col_name",
/* 243 */ "col_name_list ::= col_name_list NK_COMMA col_name",
/* 244 */ "col_name ::= column_name",
/* 245 */ "cmd ::= SHOW DNODES",
/* 246 */ "cmd ::= SHOW USERS",
/* 247 */ "cmd ::= SHOW USER PRIVILEGES",
/* 248 */ "cmd ::= SHOW db_kind_opt DATABASES",
/* 249 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
/* 250 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
/* 251 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
/* 252 */ "cmd ::= SHOW MNODES",
/* 253 */ "cmd ::= SHOW QNODES",
/* 254 */ "cmd ::= SHOW ARBGROUPS",
/* 255 */ "cmd ::= SHOW FUNCTIONS",
/* 256 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
/* 257 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
/* 258 */ "cmd ::= SHOW STREAMS",
/* 259 */ "cmd ::= SHOW ACCOUNTS",
/* 260 */ "cmd ::= SHOW APPS",
/* 261 */ "cmd ::= SHOW CONNECTIONS",
/* 262 */ "cmd ::= SHOW LICENCES",
/* 263 */ "cmd ::= SHOW GRANTS",
/* 264 */ "cmd ::= SHOW GRANTS FULL",
/* 265 */ "cmd ::= SHOW GRANTS LOGS",
/* 266 */ "cmd ::= SHOW CLUSTER MACHINES",
/* 267 */ "cmd ::= SHOW CREATE DATABASE db_name",
/* 268 */ "cmd ::= SHOW CREATE TABLE full_table_name",
/* 269 */ "cmd ::= SHOW CREATE STABLE full_table_name",
/* 270 */ "cmd ::= SHOW QUERIES",
/* 271 */ "cmd ::= SHOW SCORES",
/* 272 */ "cmd ::= SHOW TOPICS",
/* 273 */ "cmd ::= SHOW VARIABLES",
/* 274 */ "cmd ::= SHOW CLUSTER VARIABLES",
/* 275 */ "cmd ::= SHOW LOCAL VARIABLES",
/* 276 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
/* 277 */ "cmd ::= SHOW BNODES",
/* 278 */ "cmd ::= SHOW SNODES",
/* 279 */ "cmd ::= SHOW CLUSTER",
/* 280 */ "cmd ::= SHOW TRANSACTIONS",
/* 281 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
/* 282 */ "cmd ::= SHOW CONSUMERS",
/* 283 */ "cmd ::= SHOW SUBSCRIPTIONS",
/* 284 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
/* 285 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
/* 286 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
/* 287 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
/* 288 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
/* 289 */ "cmd ::= SHOW VNODES",
/* 290 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
/* 291 */ "cmd ::= SHOW CLUSTER ALIVE",
/* 292 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt",
/* 293 */ "cmd ::= SHOW CREATE VIEW full_table_name",
/* 294 */ "cmd ::= SHOW COMPACTS",
/* 295 */ "cmd ::= SHOW COMPACT NK_INTEGER",
/* 296 */ "table_kind_db_name_cond_opt ::=",
/* 297 */ "table_kind_db_name_cond_opt ::= table_kind",
/* 298 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
/* 299 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
/* 300 */ "table_kind ::= NORMAL",
/* 301 */ "table_kind ::= CHILD",
/* 302 */ "db_name_cond_opt ::=",
/* 303 */ "db_name_cond_opt ::= db_name NK_DOT",
/* 304 */ "like_pattern_opt ::=",
/* 305 */ "like_pattern_opt ::= LIKE NK_STRING",
/* 306 */ "table_name_cond ::= table_name",
/* 307 */ "from_db_opt ::=",
/* 308 */ "from_db_opt ::= FROM db_name",
/* 309 */ "tag_list_opt ::=",
/* 310 */ "tag_list_opt ::= tag_item",
/* 311 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
/* 312 */ "tag_item ::= TBNAME",
/* 313 */ "tag_item ::= QTAGS",
/* 314 */ "tag_item ::= column_name",
/* 315 */ "tag_item ::= column_name column_alias",
/* 316 */ "tag_item ::= column_name AS column_alias",
/* 317 */ "db_kind_opt ::=",
/* 318 */ "db_kind_opt ::= USER",
/* 319 */ "db_kind_opt ::= SYSTEM",
/* 320 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
/* 321 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
/* 322 */ "cmd ::= DROP INDEX exists_opt full_index_name",
/* 323 */ "full_index_name ::= index_name",
/* 324 */ "full_index_name ::= db_name NK_DOT index_name",
/* 325 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
/* 326 */ "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",
/* 327 */ "func_list ::= func",
/* 328 */ "func_list ::= func_list NK_COMMA func",
/* 329 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
/* 330 */ "sma_func_name ::= function_name",
/* 331 */ "sma_func_name ::= COUNT",
/* 332 */ "sma_func_name ::= FIRST",
/* 333 */ "sma_func_name ::= LAST",
/* 334 */ "sma_func_name ::= LAST_ROW",
/* 335 */ "sma_stream_opt ::=",
/* 336 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
/* 337 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
/* 338 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
/* 339 */ "with_meta ::= AS",
/* 340 */ "with_meta ::= WITH META AS",
/* 341 */ "with_meta ::= ONLY META AS",
/* 342 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
/* 343 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
/* 344 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
/* 345 */ "cmd ::= DROP TOPIC exists_opt topic_name",
/* 346 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
/* 347 */ "cmd ::= DESC full_table_name",
/* 348 */ "cmd ::= DESCRIBE full_table_name",
/* 349 */ "cmd ::= RESET QUERY CACHE",
/* 350 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
/* 351 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
/* 352 */ "analyze_opt ::=",
/* 353 */ "analyze_opt ::= ANALYZE",
/* 354 */ "explain_options ::=",
/* 355 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
/* 356 */ "explain_options ::= explain_options RATIO NK_FLOAT",
/* 357 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
/* 358 */ "cmd ::= DROP FUNCTION exists_opt function_name",
/* 359 */ "agg_func_opt ::=",
/* 360 */ "agg_func_opt ::= AGGREGATE",
/* 361 */ "bufsize_opt ::=",
/* 362 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
/* 363 */ "language_opt ::=",
/* 364 */ "language_opt ::= LANGUAGE NK_STRING",
/* 365 */ "or_replace_opt ::=",
/* 366 */ "or_replace_opt ::= OR REPLACE",
/* 367 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
/* 368 */ "cmd ::= DROP VIEW exists_opt full_view_name",
/* 369 */ "full_view_name ::= view_name",
/* 370 */ "full_view_name ::= db_name NK_DOT view_name",
/* 371 */ "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",
/* 372 */ "cmd ::= DROP STREAM exists_opt stream_name",
/* 373 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
/* 374 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
/* 375 */ "col_list_opt ::=",
/* 376 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP",
/* 377 */ "column_stream_def_list ::= column_stream_def",
/* 378 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def",
/* 379 */ "column_stream_def ::= column_name",
/* 380 */ "column_stream_def ::= column_name PRIMARY KEY",
/* 381 */ "tag_def_or_ref_opt ::=",
/* 382 */ "tag_def_or_ref_opt ::= tags_def",
/* 383 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP",
/* 384 */ "stream_options ::=",
/* 385 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
/* 386 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
/* 387 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
/* 388 */ "stream_options ::= stream_options WATERMARK duration_literal",
/* 389 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
/* 390 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
/* 391 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
/* 392 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
/* 393 */ "subtable_opt ::=",
/* 394 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
/* 395 */ "ignore_opt ::=",
/* 396 */ "ignore_opt ::= IGNORE UNTREATED",
/* 397 */ "cmd ::= KILL CONNECTION NK_INTEGER",
/* 398 */ "cmd ::= KILL QUERY NK_STRING",
/* 399 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
/* 400 */ "cmd ::= KILL COMPACT NK_INTEGER",
/* 401 */ "cmd ::= BALANCE VGROUP",
/* 402 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
/* 403 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
/* 404 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
/* 405 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
/* 406 */ "on_vgroup_id ::=",
/* 407 */ "on_vgroup_id ::= ON NK_INTEGER",
/* 408 */ "dnode_list ::= DNODE NK_INTEGER",
/* 409 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
/* 410 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
/* 411 */ "cmd ::= query_or_subquery",
/* 412 */ "cmd ::= insert_query",
/* 413 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
/* 414 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
/* 415 */ "tags_literal ::= NK_INTEGER",
/* 416 */ "tags_literal ::= NK_PLUS NK_INTEGER",
/* 417 */ "tags_literal ::= NK_MINUS NK_INTEGER",
/* 418 */ "tags_literal ::= NK_FLOAT",
/* 419 */ "tags_literal ::= NK_PLUS NK_FLOAT",
/* 420 */ "tags_literal ::= NK_MINUS NK_FLOAT",
/* 421 */ "tags_literal ::= NK_BIN",
/* 422 */ "tags_literal ::= NK_PLUS NK_BIN",
/* 423 */ "tags_literal ::= NK_MINUS NK_BIN",
/* 424 */ "tags_literal ::= NK_HEX",
/* 425 */ "tags_literal ::= NK_PLUS NK_HEX",
/* 426 */ "tags_literal ::= NK_MINUS NK_HEX",
/* 427 */ "tags_literal ::= NK_STRING",
/* 428 */ "tags_literal ::= NK_BOOL",
/* 429 */ "tags_literal ::= NULL",
/* 430 */ "tags_literal ::= literal_func",
/* 431 */ "tags_literal ::= literal_func NK_PLUS duration_literal",
/* 432 */ "tags_literal ::= literal_func NK_MINUS duration_literal",
/* 433 */ "tags_literal_list ::= tags_literal",
/* 434 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal",
/* 435 */ "literal ::= NK_INTEGER",
/* 436 */ "literal ::= NK_FLOAT",
/* 437 */ "literal ::= NK_STRING",
/* 438 */ "literal ::= NK_BOOL",
/* 439 */ "literal ::= TIMESTAMP NK_STRING",
/* 440 */ "literal ::= duration_literal",
/* 441 */ "literal ::= NULL",
/* 442 */ "literal ::= NK_QUESTION",
/* 443 */ "duration_literal ::= NK_VARIABLE",
/* 444 */ "signed ::= NK_INTEGER",
/* 445 */ "signed ::= NK_PLUS NK_INTEGER",
/* 446 */ "signed ::= NK_MINUS NK_INTEGER",
/* 447 */ "signed ::= NK_FLOAT",
/* 448 */ "signed ::= NK_PLUS NK_FLOAT",
/* 449 */ "signed ::= NK_MINUS NK_FLOAT",
/* 450 */ "signed_literal ::= signed",
/* 451 */ "signed_literal ::= NK_STRING",
/* 452 */ "signed_literal ::= NK_BOOL",
/* 453 */ "signed_literal ::= TIMESTAMP NK_STRING",
/* 454 */ "signed_literal ::= duration_literal",
/* 455 */ "signed_literal ::= NULL",
/* 456 */ "signed_literal ::= literal_func",
/* 457 */ "signed_literal ::= NK_QUESTION",
/* 458 */ "literal_list ::= signed_literal",
/* 459 */ "literal_list ::= literal_list NK_COMMA signed_literal",
/* 460 */ "db_name ::= NK_ID",
/* 461 */ "table_name ::= NK_ID",
/* 462 */ "column_name ::= NK_ID",
/* 463 */ "function_name ::= NK_ID",
/* 464 */ "view_name ::= NK_ID",
/* 465 */ "table_alias ::= NK_ID",
/* 466 */ "column_alias ::= NK_ID",
/* 467 */ "column_alias ::= NK_ALIAS",
/* 468 */ "user_name ::= NK_ID",
/* 469 */ "topic_name ::= NK_ID",
/* 470 */ "stream_name ::= NK_ID",
/* 471 */ "cgroup_name ::= NK_ID",
/* 472 */ "index_name ::= NK_ID",
/* 473 */ "expr_or_subquery ::= expression",
/* 474 */ "expression ::= literal",
/* 475 */ "expression ::= pseudo_column",
/* 476 */ "expression ::= column_reference",
/* 477 */ "expression ::= function_expression",
/* 478 */ "expression ::= case_when_expression",
/* 479 */ "expression ::= NK_LP expression NK_RP",
/* 480 */ "expression ::= NK_PLUS expr_or_subquery",
/* 481 */ "expression ::= NK_MINUS expr_or_subquery",
/* 482 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
/* 483 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
/* 484 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
/* 485 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
/* 486 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
/* 487 */ "expression ::= column_reference NK_ARROW NK_STRING",
/* 488 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
/* 489 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
/* 490 */ "expression_list ::= expr_or_subquery",
/* 491 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
/* 492 */ "column_reference ::= column_name",
/* 493 */ "column_reference ::= table_name NK_DOT column_name",
/* 494 */ "column_reference ::= NK_ALIAS",
/* 495 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
/* 496 */ "pseudo_column ::= ROWTS",
/* 497 */ "pseudo_column ::= TBNAME",
/* 498 */ "pseudo_column ::= table_name NK_DOT TBNAME",
/* 499 */ "pseudo_column ::= QSTART",
/* 500 */ "pseudo_column ::= QEND",
/* 501 */ "pseudo_column ::= QDURATION",
/* 502 */ "pseudo_column ::= WSTART",
/* 503 */ "pseudo_column ::= WEND",
/* 504 */ "pseudo_column ::= WDURATION",
/* 505 */ "pseudo_column ::= IROWTS",
/* 506 */ "pseudo_column ::= ISFILLED",
/* 507 */ "pseudo_column ::= QTAGS",
/* 508 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
/* 509 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
/* 510 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
/* 511 */ "function_expression ::= literal_func",
/* 512 */ "literal_func ::= noarg_func NK_LP NK_RP",
/* 513 */ "literal_func ::= NOW",
/* 514 */ "literal_func ::= TODAY",
/* 515 */ "noarg_func ::= NOW",
/* 516 */ "noarg_func ::= TODAY",
/* 517 */ "noarg_func ::= TIMEZONE",
/* 518 */ "noarg_func ::= DATABASE",
/* 519 */ "noarg_func ::= CLIENT_VERSION",
/* 520 */ "noarg_func ::= SERVER_VERSION",
/* 521 */ "noarg_func ::= SERVER_STATUS",
/* 522 */ "noarg_func ::= CURRENT_USER",
/* 523 */ "noarg_func ::= USER",
/* 524 */ "star_func ::= COUNT",
/* 525 */ "star_func ::= FIRST",
/* 526 */ "star_func ::= LAST",
/* 527 */ "star_func ::= LAST_ROW",
/* 528 */ "star_func_para_list ::= NK_STAR",
/* 529 */ "star_func_para_list ::= other_para_list",
/* 530 */ "other_para_list ::= star_func_para",
/* 531 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
/* 532 */ "star_func_para ::= expr_or_subquery",
/* 533 */ "star_func_para ::= table_name NK_DOT NK_STAR",
/* 534 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
/* 535 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
/* 536 */ "when_then_list ::= when_then_expr",
/* 537 */ "when_then_list ::= when_then_list when_then_expr",
/* 538 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
/* 539 */ "case_when_else_opt ::=",
/* 540 */ "case_when_else_opt ::= ELSE common_expression",
/* 541 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
/* 542 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
/* 543 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
/* 544 */ "predicate ::= expr_or_subquery IS NULL",
/* 545 */ "predicate ::= expr_or_subquery IS NOT NULL",
/* 546 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
/* 547 */ "compare_op ::= NK_LT",
/* 548 */ "compare_op ::= NK_GT",
/* 549 */ "compare_op ::= NK_LE",
/* 550 */ "compare_op ::= NK_GE",
/* 551 */ "compare_op ::= NK_NE",
/* 552 */ "compare_op ::= NK_EQ",
/* 553 */ "compare_op ::= LIKE",
/* 554 */ "compare_op ::= NOT LIKE",
/* 555 */ "compare_op ::= MATCH",
/* 556 */ "compare_op ::= NMATCH",
/* 557 */ "compare_op ::= CONTAINS",
/* 558 */ "in_op ::= IN",
/* 559 */ "in_op ::= NOT IN",
/* 560 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
/* 561 */ "boolean_value_expression ::= boolean_primary",
/* 562 */ "boolean_value_expression ::= NOT boolean_primary",
/* 563 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 564 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 565 */ "boolean_primary ::= predicate",
/* 566 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 567 */ "common_expression ::= expr_or_subquery",
/* 568 */ "common_expression ::= boolean_value_expression",
/* 569 */ "from_clause_opt ::=",
/* 570 */ "from_clause_opt ::= FROM table_reference_list",
/* 571 */ "table_reference_list ::= table_reference",
/* 572 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 573 */ "table_reference ::= table_primary",
/* 574 */ "table_reference ::= joined_table",
/* 575 */ "table_primary ::= table_name alias_opt",
/* 576 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 577 */ "table_primary ::= subquery alias_opt",
/* 578 */ "table_primary ::= parenthesized_joined_table",
/* 579 */ "alias_opt ::=",
/* 580 */ "alias_opt ::= table_alias",
/* 581 */ "alias_opt ::= AS table_alias",
/* 582 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 583 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 584 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
/* 585 */ "join_type ::=",
/* 586 */ "join_type ::= INNER",
/* 587 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
/* 588 */ "hint_list ::=",
/* 589 */ "hint_list ::= NK_HINT",
/* 590 */ "tag_mode_opt ::=",
/* 591 */ "tag_mode_opt ::= TAGS",
/* 592 */ "set_quantifier_opt ::=",
/* 593 */ "set_quantifier_opt ::= DISTINCT",
/* 594 */ "set_quantifier_opt ::= ALL",
/* 595 */ "select_list ::= select_item",
/* 596 */ "select_list ::= select_list NK_COMMA select_item",
/* 597 */ "select_item ::= NK_STAR",
/* 598 */ "select_item ::= common_expression",
/* 599 */ "select_item ::= common_expression column_alias",
/* 600 */ "select_item ::= common_expression AS column_alias",
/* 601 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 602 */ "where_clause_opt ::=",
/* 603 */ "where_clause_opt ::= WHERE search_condition",
/* 604 */ "partition_by_clause_opt ::=",
/* 605 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
/* 606 */ "partition_list ::= partition_item",
/* 607 */ "partition_list ::= partition_list NK_COMMA partition_item",
/* 608 */ "partition_item ::= expr_or_subquery",
/* 609 */ "partition_item ::= expr_or_subquery column_alias",
/* 610 */ "partition_item ::= expr_or_subquery AS column_alias",
/* 611 */ "twindow_clause_opt ::=",
/* 612 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
/* 613 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
/* 614 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 615 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 616 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
/* 617 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP",
/* 618 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 619 */ "sliding_opt ::=",
/* 620 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
/* 621 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
/* 622 */ "interval_sliding_duration_literal ::= NK_STRING",
/* 623 */ "interval_sliding_duration_literal ::= NK_INTEGER",
/* 624 */ "fill_opt ::=",
/* 625 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 626 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
/* 627 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
/* 628 */ "fill_mode ::= NONE",
/* 629 */ "fill_mode ::= PREV",
/* 630 */ "fill_mode ::= NULL",
/* 631 */ "fill_mode ::= NULL_F",
/* 632 */ "fill_mode ::= LINEAR",
/* 633 */ "fill_mode ::= NEXT",
/* 634 */ "group_by_clause_opt ::=",
/* 635 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 636 */ "group_by_list ::= expr_or_subquery",
/* 637 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
/* 638 */ "having_clause_opt ::=",
/* 639 */ "having_clause_opt ::= HAVING search_condition",
/* 640 */ "range_opt ::=",
/* 641 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
/* 642 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
/* 643 */ "every_opt ::=",
/* 644 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
/* 645 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 646 */ "query_simple ::= query_specification",
/* 647 */ "query_simple ::= union_query_expression",
/* 648 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
/* 649 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
/* 650 */ "query_simple_or_subquery ::= query_simple",
/* 651 */ "query_simple_or_subquery ::= subquery",
/* 652 */ "query_or_subquery ::= query_expression",
/* 653 */ "query_or_subquery ::= subquery",
/* 654 */ "order_by_clause_opt ::=",
/* 655 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 656 */ "slimit_clause_opt ::=",
/* 657 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 658 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 659 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 660 */ "limit_clause_opt ::=",
/* 661 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 662 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 663 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 664 */ "subquery ::= NK_LP query_expression NK_RP",
/* 665 */ "subquery ::= NK_LP subquery NK_RP",
/* 666 */ "search_condition ::= common_expression",
/* 667 */ "sort_specification_list ::= sort_specification",
/* 668 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 669 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
/* 670 */ "ordering_specification_opt ::=",
/* 671 */ "ordering_specification_opt ::= ASC",
/* 672 */ "ordering_specification_opt ::= DESC",
/* 673 */ "null_ordering_opt ::=",
/* 674 */ "null_ordering_opt ::= NULLS FIRST",
/* 675 */ "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 355: /* cmd */
case 358: /* literal */
case 367: /* with_opt */
case 373: /* search_condition */
case 378: /* db_options */
case 380: /* alter_db_options */
case 382: /* start_opt */
case 383: /* end_opt */
case 387: /* signed */
case 389: /* retention */
case 390: /* full_table_name */
case 393: /* table_options */
case 397: /* alter_table_clause */
case 398: /* alter_table_options */
case 401: /* tags_literal */
case 402: /* create_subtable_clause */
case 405: /* drop_table_clause */
case 407: /* column_def */
case 411: /* duration_literal */
case 412: /* rollup_func_name */
case 414: /* col_name */
case 417: /* like_pattern_opt */
case 418: /* db_name_cond_opt */
case 419: /* table_name_cond */
case 420: /* from_db_opt */
case 423: /* tag_item */
case 425: /* index_options */
case 426: /* full_index_name */
case 429: /* sliding_opt */
case 430: /* sma_stream_opt */
case 431: /* func */
case 435: /* query_or_subquery */
case 436: /* where_clause_opt */
case 439: /* explain_options */
case 440: /* insert_query */
case 445: /* full_view_name */
case 448: /* stream_options */
case 451: /* subtable_opt */
case 454: /* column_stream_def */
case 455: /* expression */
case 458: /* literal_func */
case 459: /* signed_literal */
case 462: /* expr_or_subquery */
case 463: /* pseudo_column */
case 464: /* column_reference */
case 465: /* function_expression */
case 466: /* case_when_expression */
case 471: /* star_func_para */
case 473: /* case_when_else_opt */
case 474: /* common_expression */
case 475: /* when_then_expr */
case 476: /* predicate */
case 479: /* in_predicate_value */
case 480: /* boolean_value_expression */
case 481: /* boolean_primary */
case 482: /* from_clause_opt */
case 483: /* table_reference_list */
case 484: /* table_reference */
case 485: /* table_primary */
case 486: /* joined_table */
case 488: /* subquery */
case 489: /* parenthesized_joined_table */
case 491: /* query_specification */
case 497: /* range_opt */
case 498: /* every_opt */
case 499: /* fill_opt */
case 500: /* twindow_clause_opt */
case 502: /* having_clause_opt */
case 503: /* select_item */
case 505: /* partition_item */
case 506: /* interval_sliding_duration_literal */
case 509: /* query_expression */
case 510: /* query_simple */
case 512: /* slimit_clause_opt */
case 513: /* limit_clause_opt */
case 514: /* union_query_expression */
case 515: /* query_simple_or_subquery */
case 517: /* sort_specification */
{
nodesDestroyNode((yypminor->yy392));
}
break;
case 356: /* account_options */
case 357: /* alter_account_options */
case 359: /* alter_account_option */
case 381: /* speed_opt */
case 434: /* with_meta */
case 443: /* bufsize_opt */
{
}
break;
case 360: /* ip_range_list */
case 361: /* white_list */
case 362: /* white_list_opt */
case 384: /* integer_list */
case 385: /* variable_list */
case 386: /* retention_list */
case 391: /* column_def_list */
case 392: /* tags_def_opt */
case 394: /* multi_create_clause */
case 395: /* tags_def */
case 396: /* multi_drop_clause */
case 403: /* specific_cols_opt */
case 404: /* tags_literal_list */
case 406: /* col_name_list */
case 408: /* duration_list */
case 409: /* rollup_func_list */
case 421: /* tag_list_opt */
case 428: /* func_list */
case 433: /* expression_list */
case 449: /* col_list_opt */
case 450: /* tag_def_or_ref_opt */
case 453: /* column_stream_def_list */
case 457: /* dnode_list */
case 460: /* literal_list */
case 468: /* star_func_para_list */
case 470: /* other_para_list */
case 472: /* when_then_list */
case 492: /* hint_list */
case 495: /* select_list */
case 496: /* partition_by_clause_opt */
case 501: /* group_by_clause_opt */
case 504: /* partition_list */
case 508: /* group_by_list */
case 511: /* order_by_clause_opt */
case 516: /* sort_specification_list */
{
nodesDestroyList((yypminor->yy184));
}
break;
case 363: /* user_name */
case 370: /* db_name */
case 371: /* table_name */
case 372: /* topic_name */
case 374: /* dnode_endpoint */
case 399: /* column_name */
case 413: /* function_name */
case 424: /* column_alias */
case 427: /* index_name */
case 432: /* sma_func_name */
case 437: /* cgroup_name */
case 444: /* language_opt */
case 446: /* view_name */
case 447: /* stream_name */
case 456: /* on_vgroup_id */
case 461: /* table_alias */
case 467: /* star_func */
case 469: /* noarg_func */
case 487: /* alias_opt */
{
}
break;
case 364: /* sysinfo_opt */
{
}
break;
case 365: /* privileges */
case 368: /* priv_type_list */
case 369: /* priv_type */
{
}
break;
case 366: /* priv_level */
{
}
break;
case 375: /* force_opt */
case 376: /* unsafe_opt */
case 377: /* not_exists_opt */
case 379: /* exists_opt */
case 438: /* analyze_opt */
case 441: /* or_replace_opt */
case 442: /* agg_func_opt */
case 452: /* ignore_opt */
case 493: /* set_quantifier_opt */
case 494: /* tag_mode_opt */
{
}
break;
case 388: /* alter_db_option */
case 410: /* alter_table_option */
{
}
break;
case 400: /* type_name */
{
}
break;
case 415: /* db_kind_opt */
case 422: /* table_kind */
{
}
break;
case 416: /* table_kind_db_name_cond_opt */
{
}
break;
case 477: /* compare_op */
case 478: /* in_op */
{
}
break;
case 490: /* join_type */
{
}
break;
case 507: /* fill_mode */
{
}
break;
case 518: /* ordering_specification_opt */
{
}
break;
case 519: /* 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[] = {
355, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
355, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
356, /* (2) account_options ::= */
356, /* (3) account_options ::= account_options PPS literal */
356, /* (4) account_options ::= account_options TSERIES literal */
356, /* (5) account_options ::= account_options STORAGE literal */
356, /* (6) account_options ::= account_options STREAMS literal */
356, /* (7) account_options ::= account_options QTIME literal */
356, /* (8) account_options ::= account_options DBS literal */
356, /* (9) account_options ::= account_options USERS literal */
356, /* (10) account_options ::= account_options CONNS literal */
356, /* (11) account_options ::= account_options STATE literal */
357, /* (12) alter_account_options ::= alter_account_option */
357, /* (13) alter_account_options ::= alter_account_options alter_account_option */
359, /* (14) alter_account_option ::= PASS literal */
359, /* (15) alter_account_option ::= PPS literal */
359, /* (16) alter_account_option ::= TSERIES literal */
359, /* (17) alter_account_option ::= STORAGE literal */
359, /* (18) alter_account_option ::= STREAMS literal */
359, /* (19) alter_account_option ::= QTIME literal */
359, /* (20) alter_account_option ::= DBS literal */
359, /* (21) alter_account_option ::= USERS literal */
359, /* (22) alter_account_option ::= CONNS literal */
359, /* (23) alter_account_option ::= STATE literal */
360, /* (24) ip_range_list ::= NK_STRING */
360, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
361, /* (26) white_list ::= HOST ip_range_list */
362, /* (27) white_list_opt ::= */
362, /* (28) white_list_opt ::= white_list */
355, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
355, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
355, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
355, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
355, /* (33) cmd ::= ALTER USER user_name ADD white_list */
355, /* (34) cmd ::= ALTER USER user_name DROP white_list */
355, /* (35) cmd ::= DROP USER user_name */
364, /* (36) sysinfo_opt ::= */
364, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
355, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
355, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
365, /* (40) privileges ::= ALL */
365, /* (41) privileges ::= priv_type_list */
365, /* (42) privileges ::= SUBSCRIBE */
368, /* (43) priv_type_list ::= priv_type */
368, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
369, /* (45) priv_type ::= READ */
369, /* (46) priv_type ::= WRITE */
369, /* (47) priv_type ::= ALTER */
366, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
366, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
366, /* (50) priv_level ::= db_name NK_DOT table_name */
366, /* (51) priv_level ::= topic_name */
367, /* (52) with_opt ::= */
367, /* (53) with_opt ::= WITH search_condition */
355, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
355, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
355, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
355, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
355, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
355, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
355, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
355, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
355, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
355, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
355, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
374, /* (65) dnode_endpoint ::= NK_STRING */
374, /* (66) dnode_endpoint ::= NK_ID */
374, /* (67) dnode_endpoint ::= NK_IPTOKEN */
375, /* (68) force_opt ::= */
375, /* (69) force_opt ::= FORCE */
376, /* (70) unsafe_opt ::= UNSAFE */
355, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
355, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
355, /* (73) cmd ::= ALTER LOCAL NK_STRING */
355, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
355, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
355, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
355, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
355, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
355, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
355, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
355, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
355, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
355, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
355, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
355, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
355, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
355, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
355, /* (88) cmd ::= USE db_name */
355, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
355, /* (90) cmd ::= FLUSH DATABASE db_name */
355, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
355, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
377, /* (93) not_exists_opt ::= IF NOT EXISTS */
377, /* (94) not_exists_opt ::= */
379, /* (95) exists_opt ::= IF EXISTS */
379, /* (96) exists_opt ::= */
378, /* (97) db_options ::= */
378, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
378, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
378, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
378, /* (101) db_options ::= db_options COMP NK_INTEGER */
378, /* (102) db_options ::= db_options DURATION NK_INTEGER */
378, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
378, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
378, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
378, /* (106) db_options ::= db_options KEEP integer_list */
378, /* (107) db_options ::= db_options KEEP variable_list */
378, /* (108) db_options ::= db_options PAGES NK_INTEGER */
378, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
378, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
378, /* (111) db_options ::= db_options PRECISION NK_STRING */
378, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
378, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
378, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
378, /* (115) db_options ::= db_options RETENTIONS retention_list */
378, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
378, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
378, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
378, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
378, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
378, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
378, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
378, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
378, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
378, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
378, /* (126) db_options ::= db_options TABLE_PREFIX signed */
378, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
378, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
380, /* (129) alter_db_options ::= alter_db_option */
380, /* (130) alter_db_options ::= alter_db_options alter_db_option */
388, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
388, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
388, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
388, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
388, /* (135) alter_db_option ::= KEEP integer_list */
388, /* (136) alter_db_option ::= KEEP variable_list */
388, /* (137) alter_db_option ::= PAGES NK_INTEGER */
388, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
388, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
388, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
388, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
388, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
388, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
388, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
388, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
388, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
384, /* (147) integer_list ::= NK_INTEGER */
384, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
385, /* (149) variable_list ::= NK_VARIABLE */
385, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
386, /* (151) retention_list ::= retention */
386, /* (152) retention_list ::= retention_list NK_COMMA retention */
389, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
389, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
381, /* (155) speed_opt ::= */
381, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
382, /* (157) start_opt ::= */
382, /* (158) start_opt ::= START WITH NK_INTEGER */
382, /* (159) start_opt ::= START WITH NK_STRING */
382, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
383, /* (161) end_opt ::= */
383, /* (162) end_opt ::= END WITH NK_INTEGER */
383, /* (163) end_opt ::= END WITH NK_STRING */
383, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
355, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
355, /* (166) cmd ::= CREATE TABLE multi_create_clause */
355, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
355, /* (168) cmd ::= DROP TABLE multi_drop_clause */
355, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
355, /* (170) cmd ::= ALTER TABLE alter_table_clause */
355, /* (171) cmd ::= ALTER STABLE alter_table_clause */
397, /* (172) alter_table_clause ::= full_table_name alter_table_options */
397, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
397, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
397, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
397, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
397, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
397, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
397, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
397, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
397, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
394, /* (182) multi_create_clause ::= create_subtable_clause */
394, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
402, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
396, /* (185) multi_drop_clause ::= drop_table_clause */
396, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
405, /* (187) drop_table_clause ::= exists_opt full_table_name */
403, /* (188) specific_cols_opt ::= */
403, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
390, /* (190) full_table_name ::= table_name */
390, /* (191) full_table_name ::= db_name NK_DOT table_name */
391, /* (192) column_def_list ::= column_def */
391, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
407, /* (194) column_def ::= column_name type_name */
407, /* (195) column_def ::= column_name type_name PRIMARY KEY */
400, /* (196) type_name ::= BOOL */
400, /* (197) type_name ::= TINYINT */
400, /* (198) type_name ::= SMALLINT */
400, /* (199) type_name ::= INT */
400, /* (200) type_name ::= INTEGER */
400, /* (201) type_name ::= BIGINT */
400, /* (202) type_name ::= FLOAT */
400, /* (203) type_name ::= DOUBLE */
400, /* (204) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
400, /* (205) type_name ::= TIMESTAMP */
400, /* (206) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
400, /* (207) type_name ::= TINYINT UNSIGNED */
400, /* (208) type_name ::= SMALLINT UNSIGNED */
400, /* (209) type_name ::= INT UNSIGNED */
400, /* (210) type_name ::= BIGINT UNSIGNED */
400, /* (211) type_name ::= JSON */
400, /* (212) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
400, /* (213) type_name ::= MEDIUMBLOB */
400, /* (214) type_name ::= BLOB */
400, /* (215) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
400, /* (216) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
400, /* (217) type_name ::= DECIMAL */
400, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
400, /* (219) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
392, /* (220) tags_def_opt ::= */
392, /* (221) tags_def_opt ::= tags_def */
395, /* (222) tags_def ::= TAGS NK_LP column_def_list NK_RP */
393, /* (223) table_options ::= */
393, /* (224) table_options ::= table_options COMMENT NK_STRING */
393, /* (225) table_options ::= table_options MAX_DELAY duration_list */
393, /* (226) table_options ::= table_options WATERMARK duration_list */
393, /* (227) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
393, /* (228) table_options ::= table_options TTL NK_INTEGER */
393, /* (229) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
393, /* (230) table_options ::= table_options DELETE_MARK duration_list */
398, /* (231) alter_table_options ::= alter_table_option */
398, /* (232) alter_table_options ::= alter_table_options alter_table_option */
410, /* (233) alter_table_option ::= COMMENT NK_STRING */
410, /* (234) alter_table_option ::= TTL NK_INTEGER */
408, /* (235) duration_list ::= duration_literal */
408, /* (236) duration_list ::= duration_list NK_COMMA duration_literal */
409, /* (237) rollup_func_list ::= rollup_func_name */
409, /* (238) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
412, /* (239) rollup_func_name ::= function_name */
412, /* (240) rollup_func_name ::= FIRST */
412, /* (241) rollup_func_name ::= LAST */
406, /* (242) col_name_list ::= col_name */
406, /* (243) col_name_list ::= col_name_list NK_COMMA col_name */
414, /* (244) col_name ::= column_name */
355, /* (245) cmd ::= SHOW DNODES */
355, /* (246) cmd ::= SHOW USERS */
355, /* (247) cmd ::= SHOW USER PRIVILEGES */
355, /* (248) cmd ::= SHOW db_kind_opt DATABASES */
355, /* (249) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
355, /* (250) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
355, /* (251) cmd ::= SHOW db_name_cond_opt VGROUPS */
355, /* (252) cmd ::= SHOW MNODES */
355, /* (253) cmd ::= SHOW QNODES */
355, /* (254) cmd ::= SHOW ARBGROUPS */
355, /* (255) cmd ::= SHOW FUNCTIONS */
355, /* (256) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
355, /* (257) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
355, /* (258) cmd ::= SHOW STREAMS */
355, /* (259) cmd ::= SHOW ACCOUNTS */
355, /* (260) cmd ::= SHOW APPS */
355, /* (261) cmd ::= SHOW CONNECTIONS */
355, /* (262) cmd ::= SHOW LICENCES */
355, /* (263) cmd ::= SHOW GRANTS */
355, /* (264) cmd ::= SHOW GRANTS FULL */
355, /* (265) cmd ::= SHOW GRANTS LOGS */
355, /* (266) cmd ::= SHOW CLUSTER MACHINES */
355, /* (267) cmd ::= SHOW CREATE DATABASE db_name */
355, /* (268) cmd ::= SHOW CREATE TABLE full_table_name */
355, /* (269) cmd ::= SHOW CREATE STABLE full_table_name */
355, /* (270) cmd ::= SHOW QUERIES */
355, /* (271) cmd ::= SHOW SCORES */
355, /* (272) cmd ::= SHOW TOPICS */
355, /* (273) cmd ::= SHOW VARIABLES */
355, /* (274) cmd ::= SHOW CLUSTER VARIABLES */
355, /* (275) cmd ::= SHOW LOCAL VARIABLES */
355, /* (276) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
355, /* (277) cmd ::= SHOW BNODES */
355, /* (278) cmd ::= SHOW SNODES */
355, /* (279) cmd ::= SHOW CLUSTER */
355, /* (280) cmd ::= SHOW TRANSACTIONS */
355, /* (281) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
355, /* (282) cmd ::= SHOW CONSUMERS */
355, /* (283) cmd ::= SHOW SUBSCRIPTIONS */
355, /* (284) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
355, /* (285) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
355, /* (286) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
355, /* (287) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
355, /* (288) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
355, /* (289) cmd ::= SHOW VNODES */
355, /* (290) cmd ::= SHOW db_name_cond_opt ALIVE */
355, /* (291) cmd ::= SHOW CLUSTER ALIVE */
355, /* (292) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
355, /* (293) cmd ::= SHOW CREATE VIEW full_table_name */
355, /* (294) cmd ::= SHOW COMPACTS */
355, /* (295) cmd ::= SHOW COMPACT NK_INTEGER */
416, /* (296) table_kind_db_name_cond_opt ::= */
416, /* (297) table_kind_db_name_cond_opt ::= table_kind */
416, /* (298) table_kind_db_name_cond_opt ::= db_name NK_DOT */
416, /* (299) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
422, /* (300) table_kind ::= NORMAL */
422, /* (301) table_kind ::= CHILD */
418, /* (302) db_name_cond_opt ::= */
418, /* (303) db_name_cond_opt ::= db_name NK_DOT */
417, /* (304) like_pattern_opt ::= */
417, /* (305) like_pattern_opt ::= LIKE NK_STRING */
419, /* (306) table_name_cond ::= table_name */
420, /* (307) from_db_opt ::= */
420, /* (308) from_db_opt ::= FROM db_name */
421, /* (309) tag_list_opt ::= */
421, /* (310) tag_list_opt ::= tag_item */
421, /* (311) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
423, /* (312) tag_item ::= TBNAME */
423, /* (313) tag_item ::= QTAGS */
423, /* (314) tag_item ::= column_name */
423, /* (315) tag_item ::= column_name column_alias */
423, /* (316) tag_item ::= column_name AS column_alias */
415, /* (317) db_kind_opt ::= */
415, /* (318) db_kind_opt ::= USER */
415, /* (319) db_kind_opt ::= SYSTEM */
355, /* (320) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
355, /* (321) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
355, /* (322) cmd ::= DROP INDEX exists_opt full_index_name */
426, /* (323) full_index_name ::= index_name */
426, /* (324) full_index_name ::= db_name NK_DOT index_name */
425, /* (325) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
425, /* (326) 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 */
428, /* (327) func_list ::= func */
428, /* (328) func_list ::= func_list NK_COMMA func */
431, /* (329) func ::= sma_func_name NK_LP expression_list NK_RP */
432, /* (330) sma_func_name ::= function_name */
432, /* (331) sma_func_name ::= COUNT */
432, /* (332) sma_func_name ::= FIRST */
432, /* (333) sma_func_name ::= LAST */
432, /* (334) sma_func_name ::= LAST_ROW */
430, /* (335) sma_stream_opt ::= */
430, /* (336) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
430, /* (337) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
430, /* (338) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
434, /* (339) with_meta ::= AS */
434, /* (340) with_meta ::= WITH META AS */
434, /* (341) with_meta ::= ONLY META AS */
355, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
355, /* (343) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
355, /* (344) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
355, /* (345) cmd ::= DROP TOPIC exists_opt topic_name */
355, /* (346) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
355, /* (347) cmd ::= DESC full_table_name */
355, /* (348) cmd ::= DESCRIBE full_table_name */
355, /* (349) cmd ::= RESET QUERY CACHE */
355, /* (350) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
355, /* (351) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
438, /* (352) analyze_opt ::= */
438, /* (353) analyze_opt ::= ANALYZE */
439, /* (354) explain_options ::= */
439, /* (355) explain_options ::= explain_options VERBOSE NK_BOOL */
439, /* (356) explain_options ::= explain_options RATIO NK_FLOAT */
355, /* (357) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
355, /* (358) cmd ::= DROP FUNCTION exists_opt function_name */
442, /* (359) agg_func_opt ::= */
442, /* (360) agg_func_opt ::= AGGREGATE */
443, /* (361) bufsize_opt ::= */
443, /* (362) bufsize_opt ::= BUFSIZE NK_INTEGER */
444, /* (363) language_opt ::= */
444, /* (364) language_opt ::= LANGUAGE NK_STRING */
441, /* (365) or_replace_opt ::= */
441, /* (366) or_replace_opt ::= OR REPLACE */
355, /* (367) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
355, /* (368) cmd ::= DROP VIEW exists_opt full_view_name */
445, /* (369) full_view_name ::= view_name */
445, /* (370) full_view_name ::= db_name NK_DOT view_name */
355, /* (371) 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 */
355, /* (372) cmd ::= DROP STREAM exists_opt stream_name */
355, /* (373) cmd ::= PAUSE STREAM exists_opt stream_name */
355, /* (374) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
449, /* (375) col_list_opt ::= */
449, /* (376) col_list_opt ::= NK_LP column_stream_def_list NK_RP */
453, /* (377) column_stream_def_list ::= column_stream_def */
453, /* (378) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */
454, /* (379) column_stream_def ::= column_name */
454, /* (380) column_stream_def ::= column_name PRIMARY KEY */
450, /* (381) tag_def_or_ref_opt ::= */
450, /* (382) tag_def_or_ref_opt ::= tags_def */
450, /* (383) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */
448, /* (384) stream_options ::= */
448, /* (385) stream_options ::= stream_options TRIGGER AT_ONCE */
448, /* (386) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
448, /* (387) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
448, /* (388) stream_options ::= stream_options WATERMARK duration_literal */
448, /* (389) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
448, /* (390) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
448, /* (391) stream_options ::= stream_options DELETE_MARK duration_literal */
448, /* (392) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
451, /* (393) subtable_opt ::= */
451, /* (394) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
452, /* (395) ignore_opt ::= */
452, /* (396) ignore_opt ::= IGNORE UNTREATED */
355, /* (397) cmd ::= KILL CONNECTION NK_INTEGER */
355, /* (398) cmd ::= KILL QUERY NK_STRING */
355, /* (399) cmd ::= KILL TRANSACTION NK_INTEGER */
355, /* (400) cmd ::= KILL COMPACT NK_INTEGER */
355, /* (401) cmd ::= BALANCE VGROUP */
355, /* (402) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
355, /* (403) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
355, /* (404) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
355, /* (405) cmd ::= SPLIT VGROUP NK_INTEGER */
456, /* (406) on_vgroup_id ::= */
456, /* (407) on_vgroup_id ::= ON NK_INTEGER */
457, /* (408) dnode_list ::= DNODE NK_INTEGER */
457, /* (409) dnode_list ::= dnode_list DNODE NK_INTEGER */
355, /* (410) cmd ::= DELETE FROM full_table_name where_clause_opt */
355, /* (411) cmd ::= query_or_subquery */
355, /* (412) cmd ::= insert_query */
440, /* (413) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
440, /* (414) insert_query ::= INSERT INTO full_table_name query_or_subquery */
401, /* (415) tags_literal ::= NK_INTEGER */
401, /* (416) tags_literal ::= NK_PLUS NK_INTEGER */
401, /* (417) tags_literal ::= NK_MINUS NK_INTEGER */
401, /* (418) tags_literal ::= NK_FLOAT */
401, /* (419) tags_literal ::= NK_PLUS NK_FLOAT */
401, /* (420) tags_literal ::= NK_MINUS NK_FLOAT */
401, /* (421) tags_literal ::= NK_BIN */
401, /* (422) tags_literal ::= NK_PLUS NK_BIN */
401, /* (423) tags_literal ::= NK_MINUS NK_BIN */
401, /* (424) tags_literal ::= NK_HEX */
401, /* (425) tags_literal ::= NK_PLUS NK_HEX */
401, /* (426) tags_literal ::= NK_MINUS NK_HEX */
401, /* (427) tags_literal ::= NK_STRING */
401, /* (428) tags_literal ::= NK_BOOL */
401, /* (429) tags_literal ::= NULL */
401, /* (430) tags_literal ::= literal_func */
401, /* (431) tags_literal ::= literal_func NK_PLUS duration_literal */
401, /* (432) tags_literal ::= literal_func NK_MINUS duration_literal */
404, /* (433) tags_literal_list ::= tags_literal */
404, /* (434) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
358, /* (435) literal ::= NK_INTEGER */
358, /* (436) literal ::= NK_FLOAT */
358, /* (437) literal ::= NK_STRING */
358, /* (438) literal ::= NK_BOOL */
358, /* (439) literal ::= TIMESTAMP NK_STRING */
358, /* (440) literal ::= duration_literal */
358, /* (441) literal ::= NULL */
358, /* (442) literal ::= NK_QUESTION */
411, /* (443) duration_literal ::= NK_VARIABLE */
387, /* (444) signed ::= NK_INTEGER */
387, /* (445) signed ::= NK_PLUS NK_INTEGER */
387, /* (446) signed ::= NK_MINUS NK_INTEGER */
387, /* (447) signed ::= NK_FLOAT */
387, /* (448) signed ::= NK_PLUS NK_FLOAT */
387, /* (449) signed ::= NK_MINUS NK_FLOAT */
459, /* (450) signed_literal ::= signed */
459, /* (451) signed_literal ::= NK_STRING */
459, /* (452) signed_literal ::= NK_BOOL */
459, /* (453) signed_literal ::= TIMESTAMP NK_STRING */
459, /* (454) signed_literal ::= duration_literal */
459, /* (455) signed_literal ::= NULL */
459, /* (456) signed_literal ::= literal_func */
459, /* (457) signed_literal ::= NK_QUESTION */
460, /* (458) literal_list ::= signed_literal */
460, /* (459) literal_list ::= literal_list NK_COMMA signed_literal */
370, /* (460) db_name ::= NK_ID */
371, /* (461) table_name ::= NK_ID */
399, /* (462) column_name ::= NK_ID */
413, /* (463) function_name ::= NK_ID */
446, /* (464) view_name ::= NK_ID */
461, /* (465) table_alias ::= NK_ID */
424, /* (466) column_alias ::= NK_ID */
424, /* (467) column_alias ::= NK_ALIAS */
363, /* (468) user_name ::= NK_ID */
372, /* (469) topic_name ::= NK_ID */
447, /* (470) stream_name ::= NK_ID */
437, /* (471) cgroup_name ::= NK_ID */
427, /* (472) index_name ::= NK_ID */
462, /* (473) expr_or_subquery ::= expression */
455, /* (474) expression ::= literal */
455, /* (475) expression ::= pseudo_column */
455, /* (476) expression ::= column_reference */
455, /* (477) expression ::= function_expression */
455, /* (478) expression ::= case_when_expression */
455, /* (479) expression ::= NK_LP expression NK_RP */
455, /* (480) expression ::= NK_PLUS expr_or_subquery */
455, /* (481) expression ::= NK_MINUS expr_or_subquery */
455, /* (482) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
455, /* (483) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
455, /* (484) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
455, /* (485) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
455, /* (486) expression ::= expr_or_subquery NK_REM expr_or_subquery */
455, /* (487) expression ::= column_reference NK_ARROW NK_STRING */
455, /* (488) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
455, /* (489) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
433, /* (490) expression_list ::= expr_or_subquery */
433, /* (491) expression_list ::= expression_list NK_COMMA expr_or_subquery */
464, /* (492) column_reference ::= column_name */
464, /* (493) column_reference ::= table_name NK_DOT column_name */
464, /* (494) column_reference ::= NK_ALIAS */
464, /* (495) column_reference ::= table_name NK_DOT NK_ALIAS */
463, /* (496) pseudo_column ::= ROWTS */
463, /* (497) pseudo_column ::= TBNAME */
463, /* (498) pseudo_column ::= table_name NK_DOT TBNAME */
463, /* (499) pseudo_column ::= QSTART */
463, /* (500) pseudo_column ::= QEND */
463, /* (501) pseudo_column ::= QDURATION */
463, /* (502) pseudo_column ::= WSTART */
463, /* (503) pseudo_column ::= WEND */
463, /* (504) pseudo_column ::= WDURATION */
463, /* (505) pseudo_column ::= IROWTS */
463, /* (506) pseudo_column ::= ISFILLED */
463, /* (507) pseudo_column ::= QTAGS */
465, /* (508) function_expression ::= function_name NK_LP expression_list NK_RP */
465, /* (509) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
465, /* (510) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
465, /* (511) function_expression ::= literal_func */
458, /* (512) literal_func ::= noarg_func NK_LP NK_RP */
458, /* (513) literal_func ::= NOW */
458, /* (514) literal_func ::= TODAY */
469, /* (515) noarg_func ::= NOW */
469, /* (516) noarg_func ::= TODAY */
469, /* (517) noarg_func ::= TIMEZONE */
469, /* (518) noarg_func ::= DATABASE */
469, /* (519) noarg_func ::= CLIENT_VERSION */
469, /* (520) noarg_func ::= SERVER_VERSION */
469, /* (521) noarg_func ::= SERVER_STATUS */
469, /* (522) noarg_func ::= CURRENT_USER */
469, /* (523) noarg_func ::= USER */
467, /* (524) star_func ::= COUNT */
467, /* (525) star_func ::= FIRST */
467, /* (526) star_func ::= LAST */
467, /* (527) star_func ::= LAST_ROW */
468, /* (528) star_func_para_list ::= NK_STAR */
468, /* (529) star_func_para_list ::= other_para_list */
470, /* (530) other_para_list ::= star_func_para */
470, /* (531) other_para_list ::= other_para_list NK_COMMA star_func_para */
471, /* (532) star_func_para ::= expr_or_subquery */
471, /* (533) star_func_para ::= table_name NK_DOT NK_STAR */
466, /* (534) case_when_expression ::= CASE when_then_list case_when_else_opt END */
466, /* (535) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
472, /* (536) when_then_list ::= when_then_expr */
472, /* (537) when_then_list ::= when_then_list when_then_expr */
475, /* (538) when_then_expr ::= WHEN common_expression THEN common_expression */
473, /* (539) case_when_else_opt ::= */
473, /* (540) case_when_else_opt ::= ELSE common_expression */
476, /* (541) predicate ::= expr_or_subquery compare_op expr_or_subquery */
476, /* (542) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
476, /* (543) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
476, /* (544) predicate ::= expr_or_subquery IS NULL */
476, /* (545) predicate ::= expr_or_subquery IS NOT NULL */
476, /* (546) predicate ::= expr_or_subquery in_op in_predicate_value */
477, /* (547) compare_op ::= NK_LT */
477, /* (548) compare_op ::= NK_GT */
477, /* (549) compare_op ::= NK_LE */
477, /* (550) compare_op ::= NK_GE */
477, /* (551) compare_op ::= NK_NE */
477, /* (552) compare_op ::= NK_EQ */
477, /* (553) compare_op ::= LIKE */
477, /* (554) compare_op ::= NOT LIKE */
477, /* (555) compare_op ::= MATCH */
477, /* (556) compare_op ::= NMATCH */
477, /* (557) compare_op ::= CONTAINS */
478, /* (558) in_op ::= IN */
478, /* (559) in_op ::= NOT IN */
479, /* (560) in_predicate_value ::= NK_LP literal_list NK_RP */
480, /* (561) boolean_value_expression ::= boolean_primary */
480, /* (562) boolean_value_expression ::= NOT boolean_primary */
480, /* (563) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
480, /* (564) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
481, /* (565) boolean_primary ::= predicate */
481, /* (566) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
474, /* (567) common_expression ::= expr_or_subquery */
474, /* (568) common_expression ::= boolean_value_expression */
482, /* (569) from_clause_opt ::= */
482, /* (570) from_clause_opt ::= FROM table_reference_list */
483, /* (571) table_reference_list ::= table_reference */
483, /* (572) table_reference_list ::= table_reference_list NK_COMMA table_reference */
484, /* (573) table_reference ::= table_primary */
484, /* (574) table_reference ::= joined_table */
485, /* (575) table_primary ::= table_name alias_opt */
485, /* (576) table_primary ::= db_name NK_DOT table_name alias_opt */
485, /* (577) table_primary ::= subquery alias_opt */
485, /* (578) table_primary ::= parenthesized_joined_table */
487, /* (579) alias_opt ::= */
487, /* (580) alias_opt ::= table_alias */
487, /* (581) alias_opt ::= AS table_alias */
489, /* (582) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
489, /* (583) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
486, /* (584) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
490, /* (585) join_type ::= */
490, /* (586) join_type ::= INNER */
491, /* (587) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
492, /* (588) hint_list ::= */
492, /* (589) hint_list ::= NK_HINT */
494, /* (590) tag_mode_opt ::= */
494, /* (591) tag_mode_opt ::= TAGS */
493, /* (592) set_quantifier_opt ::= */
493, /* (593) set_quantifier_opt ::= DISTINCT */
493, /* (594) set_quantifier_opt ::= ALL */
495, /* (595) select_list ::= select_item */
495, /* (596) select_list ::= select_list NK_COMMA select_item */
503, /* (597) select_item ::= NK_STAR */
503, /* (598) select_item ::= common_expression */
503, /* (599) select_item ::= common_expression column_alias */
503, /* (600) select_item ::= common_expression AS column_alias */
503, /* (601) select_item ::= table_name NK_DOT NK_STAR */
436, /* (602) where_clause_opt ::= */
436, /* (603) where_clause_opt ::= WHERE search_condition */
496, /* (604) partition_by_clause_opt ::= */
496, /* (605) partition_by_clause_opt ::= PARTITION BY partition_list */
504, /* (606) partition_list ::= partition_item */
504, /* (607) partition_list ::= partition_list NK_COMMA partition_item */
505, /* (608) partition_item ::= expr_or_subquery */
505, /* (609) partition_item ::= expr_or_subquery column_alias */
505, /* (610) partition_item ::= expr_or_subquery AS column_alias */
500, /* (611) twindow_clause_opt ::= */
500, /* (612) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
500, /* (613) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
500, /* (614) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
500, /* (615) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
500, /* (616) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
500, /* (617) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
500, /* (618) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
429, /* (619) sliding_opt ::= */
429, /* (620) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
506, /* (621) interval_sliding_duration_literal ::= NK_VARIABLE */
506, /* (622) interval_sliding_duration_literal ::= NK_STRING */
506, /* (623) interval_sliding_duration_literal ::= NK_INTEGER */
499, /* (624) fill_opt ::= */
499, /* (625) fill_opt ::= FILL NK_LP fill_mode NK_RP */
499, /* (626) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
499, /* (627) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
507, /* (628) fill_mode ::= NONE */
507, /* (629) fill_mode ::= PREV */
507, /* (630) fill_mode ::= NULL */
507, /* (631) fill_mode ::= NULL_F */
507, /* (632) fill_mode ::= LINEAR */
507, /* (633) fill_mode ::= NEXT */
501, /* (634) group_by_clause_opt ::= */
501, /* (635) group_by_clause_opt ::= GROUP BY group_by_list */
508, /* (636) group_by_list ::= expr_or_subquery */
508, /* (637) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
502, /* (638) having_clause_opt ::= */
502, /* (639) having_clause_opt ::= HAVING search_condition */
497, /* (640) range_opt ::= */
497, /* (641) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
497, /* (642) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
498, /* (643) every_opt ::= */
498, /* (644) every_opt ::= EVERY NK_LP duration_literal NK_RP */
509, /* (645) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
510, /* (646) query_simple ::= query_specification */
510, /* (647) query_simple ::= union_query_expression */
514, /* (648) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
514, /* (649) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
515, /* (650) query_simple_or_subquery ::= query_simple */
515, /* (651) query_simple_or_subquery ::= subquery */
435, /* (652) query_or_subquery ::= query_expression */
435, /* (653) query_or_subquery ::= subquery */
511, /* (654) order_by_clause_opt ::= */
511, /* (655) order_by_clause_opt ::= ORDER BY sort_specification_list */
512, /* (656) slimit_clause_opt ::= */
512, /* (657) slimit_clause_opt ::= SLIMIT NK_INTEGER */
512, /* (658) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
512, /* (659) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
513, /* (660) limit_clause_opt ::= */
513, /* (661) limit_clause_opt ::= LIMIT NK_INTEGER */
513, /* (662) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
513, /* (663) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
488, /* (664) subquery ::= NK_LP query_expression NK_RP */
488, /* (665) subquery ::= NK_LP subquery NK_RP */
373, /* (666) search_condition ::= common_expression */
516, /* (667) sort_specification_list ::= sort_specification */
516, /* (668) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
517, /* (669) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
518, /* (670) ordering_specification_opt ::= */
518, /* (671) ordering_specification_opt ::= ASC */
518, /* (672) ordering_specification_opt ::= DESC */
519, /* (673) null_ordering_opt ::= */
519, /* (674) null_ordering_opt ::= NULLS FIRST */
519, /* (675) 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 */
-1, /* (24) ip_range_list ::= NK_STRING */
-3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
-2, /* (26) white_list ::= HOST ip_range_list */
0, /* (27) white_list_opt ::= */
-1, /* (28) white_list_opt ::= white_list */
-7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
-5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
-5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
-5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
-5, /* (33) cmd ::= ALTER USER user_name ADD white_list */
-5, /* (34) cmd ::= ALTER USER user_name DROP white_list */
-3, /* (35) cmd ::= DROP USER user_name */
0, /* (36) sysinfo_opt ::= */
-2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
-7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
-7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
-1, /* (40) privileges ::= ALL */
-1, /* (41) privileges ::= priv_type_list */
-1, /* (42) privileges ::= SUBSCRIBE */
-1, /* (43) priv_type_list ::= priv_type */
-3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
-1, /* (45) priv_type ::= READ */
-1, /* (46) priv_type ::= WRITE */
-1, /* (47) priv_type ::= ALTER */
-3, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
-3, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
-3, /* (50) priv_level ::= db_name NK_DOT table_name */
-1, /* (51) priv_level ::= topic_name */
0, /* (52) with_opt ::= */
-2, /* (53) with_opt ::= WITH search_condition */
-3, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
-5, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
-4, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
-4, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
-4, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
-4, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
-4, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
-5, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
-4, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
-5, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
-3, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
-1, /* (65) dnode_endpoint ::= NK_STRING */
-1, /* (66) dnode_endpoint ::= NK_ID */
-1, /* (67) dnode_endpoint ::= NK_IPTOKEN */
0, /* (68) force_opt ::= */
-1, /* (69) force_opt ::= FORCE */
-1, /* (70) unsafe_opt ::= UNSAFE */
-3, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
-4, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
-3, /* (73) cmd ::= ALTER LOCAL NK_STRING */
-4, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
-5, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
-5, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
-5, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
-5, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
-5, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
-5, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
-5, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
-5, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
-5, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
-5, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
-5, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
-5, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
-4, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
-2, /* (88) cmd ::= USE db_name */
-4, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
-3, /* (90) cmd ::= FLUSH DATABASE db_name */
-4, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
-5, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
-3, /* (93) not_exists_opt ::= IF NOT EXISTS */
0, /* (94) not_exists_opt ::= */
-2, /* (95) exists_opt ::= IF EXISTS */
0, /* (96) exists_opt ::= */
0, /* (97) db_options ::= */
-3, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
-3, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
-3, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
-3, /* (101) db_options ::= db_options COMP NK_INTEGER */
-3, /* (102) db_options ::= db_options DURATION NK_INTEGER */
-3, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
-3, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
-3, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
-3, /* (106) db_options ::= db_options KEEP integer_list */
-3, /* (107) db_options ::= db_options KEEP variable_list */
-3, /* (108) db_options ::= db_options PAGES NK_INTEGER */
-3, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
-3, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
-3, /* (111) db_options ::= db_options PRECISION NK_STRING */
-3, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
-3, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
-3, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
-3, /* (115) db_options ::= db_options RETENTIONS retention_list */
-3, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
-3, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
-3, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
-3, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
-4, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-3, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
-4, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-3, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
-3, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
-3, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
-3, /* (126) db_options ::= db_options TABLE_PREFIX signed */
-3, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
-3, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (129) alter_db_options ::= alter_db_option */
-2, /* (130) alter_db_options ::= alter_db_options alter_db_option */
-2, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
-2, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
-2, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
-2, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
-2, /* (135) alter_db_option ::= KEEP integer_list */
-2, /* (136) alter_db_option ::= KEEP variable_list */
-2, /* (137) alter_db_option ::= PAGES NK_INTEGER */
-2, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
-2, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
-2, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
-2, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
-2, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
-3, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-2, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
-3, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-2, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (147) integer_list ::= NK_INTEGER */
-3, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
-1, /* (149) variable_list ::= NK_VARIABLE */
-3, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
-1, /* (151) retention_list ::= retention */
-3, /* (152) retention_list ::= retention_list NK_COMMA retention */
-3, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
-3, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
0, /* (155) speed_opt ::= */
-2, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
0, /* (157) start_opt ::= */
-3, /* (158) start_opt ::= START WITH NK_INTEGER */
-3, /* (159) start_opt ::= START WITH NK_STRING */
-4, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
0, /* (161) end_opt ::= */
-3, /* (162) end_opt ::= END WITH NK_INTEGER */
-3, /* (163) end_opt ::= END WITH NK_STRING */
-4, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
-9, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
-3, /* (166) cmd ::= CREATE TABLE multi_create_clause */
-9, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
-3, /* (168) cmd ::= DROP TABLE multi_drop_clause */
-4, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
-3, /* (170) cmd ::= ALTER TABLE alter_table_clause */
-3, /* (171) cmd ::= ALTER STABLE alter_table_clause */
-2, /* (172) alter_table_clause ::= full_table_name alter_table_options */
-5, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
-4, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
-5, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
-5, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-5, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-4, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
-5, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-5, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
-6, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
-1, /* (182) multi_create_clause ::= create_subtable_clause */
-2, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
-10, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
-1, /* (185) multi_drop_clause ::= drop_table_clause */
-3, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
-2, /* (187) drop_table_clause ::= exists_opt full_table_name */
0, /* (188) specific_cols_opt ::= */
-3, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
-1, /* (190) full_table_name ::= table_name */
-3, /* (191) full_table_name ::= db_name NK_DOT table_name */
-1, /* (192) column_def_list ::= column_def */
-3, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
-2, /* (194) column_def ::= column_name type_name */
-4, /* (195) column_def ::= column_name type_name PRIMARY KEY */
-1, /* (196) type_name ::= BOOL */
-1, /* (197) type_name ::= TINYINT */
-1, /* (198) type_name ::= SMALLINT */
-1, /* (199) type_name ::= INT */
-1, /* (200) type_name ::= INTEGER */
-1, /* (201) type_name ::= BIGINT */
-1, /* (202) type_name ::= FLOAT */
-1, /* (203) type_name ::= DOUBLE */
-4, /* (204) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-1, /* (205) type_name ::= TIMESTAMP */
-4, /* (206) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-2, /* (207) type_name ::= TINYINT UNSIGNED */
-2, /* (208) type_name ::= SMALLINT UNSIGNED */
-2, /* (209) type_name ::= INT UNSIGNED */
-2, /* (210) type_name ::= BIGINT UNSIGNED */
-1, /* (211) type_name ::= JSON */
-4, /* (212) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-1, /* (213) type_name ::= MEDIUMBLOB */
-1, /* (214) type_name ::= BLOB */
-4, /* (215) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-4, /* (216) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
-1, /* (217) type_name ::= DECIMAL */
-4, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-6, /* (219) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (220) tags_def_opt ::= */
-1, /* (221) tags_def_opt ::= tags_def */
-4, /* (222) tags_def ::= TAGS NK_LP column_def_list NK_RP */
0, /* (223) table_options ::= */
-3, /* (224) table_options ::= table_options COMMENT NK_STRING */
-3, /* (225) table_options ::= table_options MAX_DELAY duration_list */
-3, /* (226) table_options ::= table_options WATERMARK duration_list */
-5, /* (227) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
-3, /* (228) table_options ::= table_options TTL NK_INTEGER */
-5, /* (229) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-3, /* (230) table_options ::= table_options DELETE_MARK duration_list */
-1, /* (231) alter_table_options ::= alter_table_option */
-2, /* (232) alter_table_options ::= alter_table_options alter_table_option */
-2, /* (233) alter_table_option ::= COMMENT NK_STRING */
-2, /* (234) alter_table_option ::= TTL NK_INTEGER */
-1, /* (235) duration_list ::= duration_literal */
-3, /* (236) duration_list ::= duration_list NK_COMMA duration_literal */
-1, /* (237) rollup_func_list ::= rollup_func_name */
-3, /* (238) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
-1, /* (239) rollup_func_name ::= function_name */
-1, /* (240) rollup_func_name ::= FIRST */
-1, /* (241) rollup_func_name ::= LAST */
-1, /* (242) col_name_list ::= col_name */
-3, /* (243) col_name_list ::= col_name_list NK_COMMA col_name */
-1, /* (244) col_name ::= column_name */
-2, /* (245) cmd ::= SHOW DNODES */
-2, /* (246) cmd ::= SHOW USERS */
-3, /* (247) cmd ::= SHOW USER PRIVILEGES */
-3, /* (248) cmd ::= SHOW db_kind_opt DATABASES */
-4, /* (249) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
-4, /* (250) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-3, /* (251) cmd ::= SHOW db_name_cond_opt VGROUPS */
-2, /* (252) cmd ::= SHOW MNODES */
-2, /* (253) cmd ::= SHOW QNODES */
-2, /* (254) cmd ::= SHOW ARBGROUPS */
-2, /* (255) cmd ::= SHOW FUNCTIONS */
-5, /* (256) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-6, /* (257) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
-2, /* (258) cmd ::= SHOW STREAMS */
-2, /* (259) cmd ::= SHOW ACCOUNTS */
-2, /* (260) cmd ::= SHOW APPS */
-2, /* (261) cmd ::= SHOW CONNECTIONS */
-2, /* (262) cmd ::= SHOW LICENCES */
-2, /* (263) cmd ::= SHOW GRANTS */
-3, /* (264) cmd ::= SHOW GRANTS FULL */
-3, /* (265) cmd ::= SHOW GRANTS LOGS */
-3, /* (266) cmd ::= SHOW CLUSTER MACHINES */
-4, /* (267) cmd ::= SHOW CREATE DATABASE db_name */
-4, /* (268) cmd ::= SHOW CREATE TABLE full_table_name */
-4, /* (269) cmd ::= SHOW CREATE STABLE full_table_name */
-2, /* (270) cmd ::= SHOW QUERIES */
-2, /* (271) cmd ::= SHOW SCORES */
-2, /* (272) cmd ::= SHOW TOPICS */
-2, /* (273) cmd ::= SHOW VARIABLES */
-3, /* (274) cmd ::= SHOW CLUSTER VARIABLES */
-3, /* (275) cmd ::= SHOW LOCAL VARIABLES */
-5, /* (276) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
-2, /* (277) cmd ::= SHOW BNODES */
-2, /* (278) cmd ::= SHOW SNODES */
-2, /* (279) cmd ::= SHOW CLUSTER */
-2, /* (280) cmd ::= SHOW TRANSACTIONS */
-4, /* (281) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
-2, /* (282) cmd ::= SHOW CONSUMERS */
-2, /* (283) cmd ::= SHOW SUBSCRIPTIONS */
-5, /* (284) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
-6, /* (285) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
-7, /* (286) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
-8, /* (287) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
-5, /* (288) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
-2, /* (289) cmd ::= SHOW VNODES */
-3, /* (290) cmd ::= SHOW db_name_cond_opt ALIVE */
-3, /* (291) cmd ::= SHOW CLUSTER ALIVE */
-4, /* (292) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
-4, /* (293) cmd ::= SHOW CREATE VIEW full_table_name */
-2, /* (294) cmd ::= SHOW COMPACTS */
-3, /* (295) cmd ::= SHOW COMPACT NK_INTEGER */
0, /* (296) table_kind_db_name_cond_opt ::= */
-1, /* (297) table_kind_db_name_cond_opt ::= table_kind */
-2, /* (298) table_kind_db_name_cond_opt ::= db_name NK_DOT */
-3, /* (299) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
-1, /* (300) table_kind ::= NORMAL */
-1, /* (301) table_kind ::= CHILD */
0, /* (302) db_name_cond_opt ::= */
-2, /* (303) db_name_cond_opt ::= db_name NK_DOT */
0, /* (304) like_pattern_opt ::= */
-2, /* (305) like_pattern_opt ::= LIKE NK_STRING */
-1, /* (306) table_name_cond ::= table_name */
0, /* (307) from_db_opt ::= */
-2, /* (308) from_db_opt ::= FROM db_name */
0, /* (309) tag_list_opt ::= */
-1, /* (310) tag_list_opt ::= tag_item */
-3, /* (311) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
-1, /* (312) tag_item ::= TBNAME */
-1, /* (313) tag_item ::= QTAGS */
-1, /* (314) tag_item ::= column_name */
-2, /* (315) tag_item ::= column_name column_alias */
-3, /* (316) tag_item ::= column_name AS column_alias */
0, /* (317) db_kind_opt ::= */
-1, /* (318) db_kind_opt ::= USER */
-1, /* (319) db_kind_opt ::= SYSTEM */
-8, /* (320) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
-9, /* (321) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
-4, /* (322) cmd ::= DROP INDEX exists_opt full_index_name */
-1, /* (323) full_index_name ::= index_name */
-3, /* (324) full_index_name ::= db_name NK_DOT index_name */
-10, /* (325) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
-12, /* (326) 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, /* (327) func_list ::= func */
-3, /* (328) func_list ::= func_list NK_COMMA func */
-4, /* (329) func ::= sma_func_name NK_LP expression_list NK_RP */
-1, /* (330) sma_func_name ::= function_name */
-1, /* (331) sma_func_name ::= COUNT */
-1, /* (332) sma_func_name ::= FIRST */
-1, /* (333) sma_func_name ::= LAST */
-1, /* (334) sma_func_name ::= LAST_ROW */
0, /* (335) sma_stream_opt ::= */
-3, /* (336) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
-3, /* (337) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
-3, /* (338) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
-1, /* (339) with_meta ::= AS */
-3, /* (340) with_meta ::= WITH META AS */
-3, /* (341) with_meta ::= ONLY META AS */
-6, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
-7, /* (343) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
-8, /* (344) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
-4, /* (345) cmd ::= DROP TOPIC exists_opt topic_name */
-7, /* (346) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
-2, /* (347) cmd ::= DESC full_table_name */
-2, /* (348) cmd ::= DESCRIBE full_table_name */
-3, /* (349) cmd ::= RESET QUERY CACHE */
-4, /* (350) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
-4, /* (351) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
0, /* (352) analyze_opt ::= */
-1, /* (353) analyze_opt ::= ANALYZE */
0, /* (354) explain_options ::= */
-3, /* (355) explain_options ::= explain_options VERBOSE NK_BOOL */
-3, /* (356) explain_options ::= explain_options RATIO NK_FLOAT */
-12, /* (357) 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, /* (358) cmd ::= DROP FUNCTION exists_opt function_name */
0, /* (359) agg_func_opt ::= */
-1, /* (360) agg_func_opt ::= AGGREGATE */
0, /* (361) bufsize_opt ::= */
-2, /* (362) bufsize_opt ::= BUFSIZE NK_INTEGER */
0, /* (363) language_opt ::= */
-2, /* (364) language_opt ::= LANGUAGE NK_STRING */
0, /* (365) or_replace_opt ::= */
-2, /* (366) or_replace_opt ::= OR REPLACE */
-6, /* (367) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
-4, /* (368) cmd ::= DROP VIEW exists_opt full_view_name */
-1, /* (369) full_view_name ::= view_name */
-3, /* (370) full_view_name ::= db_name NK_DOT view_name */
-12, /* (371) 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, /* (372) cmd ::= DROP STREAM exists_opt stream_name */
-4, /* (373) cmd ::= PAUSE STREAM exists_opt stream_name */
-5, /* (374) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
0, /* (375) col_list_opt ::= */
-3, /* (376) col_list_opt ::= NK_LP column_stream_def_list NK_RP */
-1, /* (377) column_stream_def_list ::= column_stream_def */
-3, /* (378) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */
-1, /* (379) column_stream_def ::= column_name */
-3, /* (380) column_stream_def ::= column_name PRIMARY KEY */
0, /* (381) tag_def_or_ref_opt ::= */
-1, /* (382) tag_def_or_ref_opt ::= tags_def */
-4, /* (383) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */
0, /* (384) stream_options ::= */
-3, /* (385) stream_options ::= stream_options TRIGGER AT_ONCE */
-3, /* (386) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
-4, /* (387) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
-3, /* (388) stream_options ::= stream_options WATERMARK duration_literal */
-4, /* (389) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
-3, /* (390) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
-3, /* (391) stream_options ::= stream_options DELETE_MARK duration_literal */
-4, /* (392) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
0, /* (393) subtable_opt ::= */
-4, /* (394) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
0, /* (395) ignore_opt ::= */
-2, /* (396) ignore_opt ::= IGNORE UNTREATED */
-3, /* (397) cmd ::= KILL CONNECTION NK_INTEGER */
-3, /* (398) cmd ::= KILL QUERY NK_STRING */
-3, /* (399) cmd ::= KILL TRANSACTION NK_INTEGER */
-3, /* (400) cmd ::= KILL COMPACT NK_INTEGER */
-2, /* (401) cmd ::= BALANCE VGROUP */
-4, /* (402) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
-4, /* (403) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
-4, /* (404) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-3, /* (405) cmd ::= SPLIT VGROUP NK_INTEGER */
0, /* (406) on_vgroup_id ::= */
-2, /* (407) on_vgroup_id ::= ON NK_INTEGER */
-2, /* (408) dnode_list ::= DNODE NK_INTEGER */
-3, /* (409) dnode_list ::= dnode_list DNODE NK_INTEGER */
-4, /* (410) cmd ::= DELETE FROM full_table_name where_clause_opt */
-1, /* (411) cmd ::= query_or_subquery */
-1, /* (412) cmd ::= insert_query */
-7, /* (413) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
-4, /* (414) insert_query ::= INSERT INTO full_table_name query_or_subquery */
-1, /* (415) tags_literal ::= NK_INTEGER */
-2, /* (416) tags_literal ::= NK_PLUS NK_INTEGER */
-2, /* (417) tags_literal ::= NK_MINUS NK_INTEGER */
-1, /* (418) tags_literal ::= NK_FLOAT */
-2, /* (419) tags_literal ::= NK_PLUS NK_FLOAT */
-2, /* (420) tags_literal ::= NK_MINUS NK_FLOAT */
-1, /* (421) tags_literal ::= NK_BIN */
-2, /* (422) tags_literal ::= NK_PLUS NK_BIN */
-2, /* (423) tags_literal ::= NK_MINUS NK_BIN */
-1, /* (424) tags_literal ::= NK_HEX */
-2, /* (425) tags_literal ::= NK_PLUS NK_HEX */
-2, /* (426) tags_literal ::= NK_MINUS NK_HEX */
-1, /* (427) tags_literal ::= NK_STRING */
-1, /* (428) tags_literal ::= NK_BOOL */
-1, /* (429) tags_literal ::= NULL */
-1, /* (430) tags_literal ::= literal_func */
-3, /* (431) tags_literal ::= literal_func NK_PLUS duration_literal */
-3, /* (432) tags_literal ::= literal_func NK_MINUS duration_literal */
-1, /* (433) tags_literal_list ::= tags_literal */
-3, /* (434) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
-1, /* (435) literal ::= NK_INTEGER */
-1, /* (436) literal ::= NK_FLOAT */
-1, /* (437) literal ::= NK_STRING */
-1, /* (438) literal ::= NK_BOOL */
-2, /* (439) literal ::= TIMESTAMP NK_STRING */
-1, /* (440) literal ::= duration_literal */
-1, /* (441) literal ::= NULL */
-1, /* (442) literal ::= NK_QUESTION */
-1, /* (443) duration_literal ::= NK_VARIABLE */
-1, /* (444) signed ::= NK_INTEGER */
-2, /* (445) signed ::= NK_PLUS NK_INTEGER */
-2, /* (446) signed ::= NK_MINUS NK_INTEGER */
-1, /* (447) signed ::= NK_FLOAT */
-2, /* (448) signed ::= NK_PLUS NK_FLOAT */
-2, /* (449) signed ::= NK_MINUS NK_FLOAT */
-1, /* (450) signed_literal ::= signed */
-1, /* (451) signed_literal ::= NK_STRING */
-1, /* (452) signed_literal ::= NK_BOOL */
-2, /* (453) signed_literal ::= TIMESTAMP NK_STRING */
-1, /* (454) signed_literal ::= duration_literal */
-1, /* (455) signed_literal ::= NULL */
-1, /* (456) signed_literal ::= literal_func */
-1, /* (457) signed_literal ::= NK_QUESTION */
-1, /* (458) literal_list ::= signed_literal */
-3, /* (459) literal_list ::= literal_list NK_COMMA signed_literal */
-1, /* (460) db_name ::= NK_ID */
-1, /* (461) table_name ::= NK_ID */
-1, /* (462) column_name ::= NK_ID */
-1, /* (463) function_name ::= NK_ID */
-1, /* (464) view_name ::= NK_ID */
-1, /* (465) table_alias ::= NK_ID */
-1, /* (466) column_alias ::= NK_ID */
-1, /* (467) column_alias ::= NK_ALIAS */
-1, /* (468) user_name ::= NK_ID */
-1, /* (469) topic_name ::= NK_ID */
-1, /* (470) stream_name ::= NK_ID */
-1, /* (471) cgroup_name ::= NK_ID */
-1, /* (472) index_name ::= NK_ID */
-1, /* (473) expr_or_subquery ::= expression */
-1, /* (474) expression ::= literal */
-1, /* (475) expression ::= pseudo_column */
-1, /* (476) expression ::= column_reference */
-1, /* (477) expression ::= function_expression */
-1, /* (478) expression ::= case_when_expression */
-3, /* (479) expression ::= NK_LP expression NK_RP */
-2, /* (480) expression ::= NK_PLUS expr_or_subquery */
-2, /* (481) expression ::= NK_MINUS expr_or_subquery */
-3, /* (482) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
-3, /* (483) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
-3, /* (484) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
-3, /* (485) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
-3, /* (486) expression ::= expr_or_subquery NK_REM expr_or_subquery */
-3, /* (487) expression ::= column_reference NK_ARROW NK_STRING */
-3, /* (488) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
-3, /* (489) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
-1, /* (490) expression_list ::= expr_or_subquery */
-3, /* (491) expression_list ::= expression_list NK_COMMA expr_or_subquery */
-1, /* (492) column_reference ::= column_name */
-3, /* (493) column_reference ::= table_name NK_DOT column_name */
-1, /* (494) column_reference ::= NK_ALIAS */
-3, /* (495) column_reference ::= table_name NK_DOT NK_ALIAS */
-1, /* (496) pseudo_column ::= ROWTS */
-1, /* (497) pseudo_column ::= TBNAME */
-3, /* (498) pseudo_column ::= table_name NK_DOT TBNAME */
-1, /* (499) pseudo_column ::= QSTART */
-1, /* (500) pseudo_column ::= QEND */
-1, /* (501) pseudo_column ::= QDURATION */
-1, /* (502) pseudo_column ::= WSTART */
-1, /* (503) pseudo_column ::= WEND */
-1, /* (504) pseudo_column ::= WDURATION */
-1, /* (505) pseudo_column ::= IROWTS */
-1, /* (506) pseudo_column ::= ISFILLED */
-1, /* (507) pseudo_column ::= QTAGS */
-4, /* (508) function_expression ::= function_name NK_LP expression_list NK_RP */
-4, /* (509) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
-6, /* (510) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
-1, /* (511) function_expression ::= literal_func */
-3, /* (512) literal_func ::= noarg_func NK_LP NK_RP */
-1, /* (513) literal_func ::= NOW */
-1, /* (514) literal_func ::= TODAY */
-1, /* (515) noarg_func ::= NOW */
-1, /* (516) noarg_func ::= TODAY */
-1, /* (517) noarg_func ::= TIMEZONE */
-1, /* (518) noarg_func ::= DATABASE */
-1, /* (519) noarg_func ::= CLIENT_VERSION */
-1, /* (520) noarg_func ::= SERVER_VERSION */
-1, /* (521) noarg_func ::= SERVER_STATUS */
-1, /* (522) noarg_func ::= CURRENT_USER */
-1, /* (523) noarg_func ::= USER */
-1, /* (524) star_func ::= COUNT */
-1, /* (525) star_func ::= FIRST */
-1, /* (526) star_func ::= LAST */
-1, /* (527) star_func ::= LAST_ROW */
-1, /* (528) star_func_para_list ::= NK_STAR */
-1, /* (529) star_func_para_list ::= other_para_list */
-1, /* (530) other_para_list ::= star_func_para */
-3, /* (531) other_para_list ::= other_para_list NK_COMMA star_func_para */
-1, /* (532) star_func_para ::= expr_or_subquery */
-3, /* (533) star_func_para ::= table_name NK_DOT NK_STAR */
-4, /* (534) case_when_expression ::= CASE when_then_list case_when_else_opt END */
-5, /* (535) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
-1, /* (536) when_then_list ::= when_then_expr */
-2, /* (537) when_then_list ::= when_then_list when_then_expr */
-4, /* (538) when_then_expr ::= WHEN common_expression THEN common_expression */
0, /* (539) case_when_else_opt ::= */
-2, /* (540) case_when_else_opt ::= ELSE common_expression */
-3, /* (541) predicate ::= expr_or_subquery compare_op expr_or_subquery */
-5, /* (542) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
-6, /* (543) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
-3, /* (544) predicate ::= expr_or_subquery IS NULL */
-4, /* (545) predicate ::= expr_or_subquery IS NOT NULL */
-3, /* (546) predicate ::= expr_or_subquery in_op in_predicate_value */
-1, /* (547) compare_op ::= NK_LT */
-1, /* (548) compare_op ::= NK_GT */
-1, /* (549) compare_op ::= NK_LE */
-1, /* (550) compare_op ::= NK_GE */
-1, /* (551) compare_op ::= NK_NE */
-1, /* (552) compare_op ::= NK_EQ */
-1, /* (553) compare_op ::= LIKE */
-2, /* (554) compare_op ::= NOT LIKE */
-1, /* (555) compare_op ::= MATCH */
-1, /* (556) compare_op ::= NMATCH */
-1, /* (557) compare_op ::= CONTAINS */
-1, /* (558) in_op ::= IN */
-2, /* (559) in_op ::= NOT IN */
-3, /* (560) in_predicate_value ::= NK_LP literal_list NK_RP */
-1, /* (561) boolean_value_expression ::= boolean_primary */
-2, /* (562) boolean_value_expression ::= NOT boolean_primary */
-3, /* (563) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
-3, /* (564) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
-1, /* (565) boolean_primary ::= predicate */
-3, /* (566) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
-1, /* (567) common_expression ::= expr_or_subquery */
-1, /* (568) common_expression ::= boolean_value_expression */
0, /* (569) from_clause_opt ::= */
-2, /* (570) from_clause_opt ::= FROM table_reference_list */
-1, /* (571) table_reference_list ::= table_reference */
-3, /* (572) table_reference_list ::= table_reference_list NK_COMMA table_reference */
-1, /* (573) table_reference ::= table_primary */
-1, /* (574) table_reference ::= joined_table */
-2, /* (575) table_primary ::= table_name alias_opt */
-4, /* (576) table_primary ::= db_name NK_DOT table_name alias_opt */
-2, /* (577) table_primary ::= subquery alias_opt */
-1, /* (578) table_primary ::= parenthesized_joined_table */
0, /* (579) alias_opt ::= */
-1, /* (580) alias_opt ::= table_alias */
-2, /* (581) alias_opt ::= AS table_alias */
-3, /* (582) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
-3, /* (583) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
-6, /* (584) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
0, /* (585) join_type ::= */
-1, /* (586) join_type ::= INNER */
-14, /* (587) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
0, /* (588) hint_list ::= */
-1, /* (589) hint_list ::= NK_HINT */
0, /* (590) tag_mode_opt ::= */
-1, /* (591) tag_mode_opt ::= TAGS */
0, /* (592) set_quantifier_opt ::= */
-1, /* (593) set_quantifier_opt ::= DISTINCT */
-1, /* (594) set_quantifier_opt ::= ALL */
-1, /* (595) select_list ::= select_item */
-3, /* (596) select_list ::= select_list NK_COMMA select_item */
-1, /* (597) select_item ::= NK_STAR */
-1, /* (598) select_item ::= common_expression */
-2, /* (599) select_item ::= common_expression column_alias */
-3, /* (600) select_item ::= common_expression AS column_alias */
-3, /* (601) select_item ::= table_name NK_DOT NK_STAR */
0, /* (602) where_clause_opt ::= */
-2, /* (603) where_clause_opt ::= WHERE search_condition */
0, /* (604) partition_by_clause_opt ::= */
-3, /* (605) partition_by_clause_opt ::= PARTITION BY partition_list */
-1, /* (606) partition_list ::= partition_item */
-3, /* (607) partition_list ::= partition_list NK_COMMA partition_item */
-1, /* (608) partition_item ::= expr_or_subquery */
-2, /* (609) partition_item ::= expr_or_subquery column_alias */
-3, /* (610) partition_item ::= expr_or_subquery AS column_alias */
0, /* (611) twindow_clause_opt ::= */
-6, /* (612) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
-4, /* (613) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
-6, /* (614) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-8, /* (615) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-7, /* (616) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
-4, /* (617) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
-6, /* (618) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (619) sliding_opt ::= */
-4, /* (620) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
-1, /* (621) interval_sliding_duration_literal ::= NK_VARIABLE */
-1, /* (622) interval_sliding_duration_literal ::= NK_STRING */
-1, /* (623) interval_sliding_duration_literal ::= NK_INTEGER */
0, /* (624) fill_opt ::= */
-4, /* (625) fill_opt ::= FILL NK_LP fill_mode NK_RP */
-6, /* (626) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
-6, /* (627) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
-1, /* (628) fill_mode ::= NONE */
-1, /* (629) fill_mode ::= PREV */
-1, /* (630) fill_mode ::= NULL */
-1, /* (631) fill_mode ::= NULL_F */
-1, /* (632) fill_mode ::= LINEAR */
-1, /* (633) fill_mode ::= NEXT */
0, /* (634) group_by_clause_opt ::= */
-3, /* (635) group_by_clause_opt ::= GROUP BY group_by_list */
-1, /* (636) group_by_list ::= expr_or_subquery */
-3, /* (637) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
0, /* (638) having_clause_opt ::= */
-2, /* (639) having_clause_opt ::= HAVING search_condition */
0, /* (640) range_opt ::= */
-6, /* (641) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
-4, /* (642) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
0, /* (643) every_opt ::= */
-4, /* (644) every_opt ::= EVERY NK_LP duration_literal NK_RP */
-4, /* (645) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
-1, /* (646) query_simple ::= query_specification */
-1, /* (647) query_simple ::= union_query_expression */
-4, /* (648) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
-3, /* (649) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
-1, /* (650) query_simple_or_subquery ::= query_simple */
-1, /* (651) query_simple_or_subquery ::= subquery */
-1, /* (652) query_or_subquery ::= query_expression */
-1, /* (653) query_or_subquery ::= subquery */
0, /* (654) order_by_clause_opt ::= */
-3, /* (655) order_by_clause_opt ::= ORDER BY sort_specification_list */
0, /* (656) slimit_clause_opt ::= */
-2, /* (657) slimit_clause_opt ::= SLIMIT NK_INTEGER */
-4, /* (658) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
-4, /* (659) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
0, /* (660) limit_clause_opt ::= */
-2, /* (661) limit_clause_opt ::= LIMIT NK_INTEGER */
-4, /* (662) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
-4, /* (663) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
-3, /* (664) subquery ::= NK_LP query_expression NK_RP */
-3, /* (665) subquery ::= NK_LP subquery NK_RP */
-1, /* (666) search_condition ::= common_expression */
-1, /* (667) sort_specification_list ::= sort_specification */
-3, /* (668) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
-3, /* (669) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
0, /* (670) ordering_specification_opt ::= */
-1, /* (671) ordering_specification_opt ::= ASC */
-1, /* (672) ordering_specification_opt ::= DESC */
0, /* (673) null_ordering_opt ::= */
-2, /* (674) null_ordering_opt ::= NULLS FIRST */
-2, /* (675) 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,356,&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,357,&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,356,&yymsp[-2].minor);
{ }
yy_destructor(yypParser,358,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
{ yy_destructor(yypParser,359,&yymsp[0].minor);
{ }
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
{ yy_destructor(yypParser,357,&yymsp[-1].minor);
{ }
yy_destructor(yypParser,359,&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,358,&yymsp[0].minor);
break;
case 24: /* ip_range_list ::= NK_STRING */
{ yylhsminor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy184 = yylhsminor.yy184;
break;
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy184 = yylhsminor.yy184;
break;
case 26: /* white_list ::= HOST ip_range_list */
{ yymsp[-1].minor.yy184 = yymsp[0].minor.yy184; }
break;
case 27: /* white_list_opt ::= */
case 188: /* specific_cols_opt ::= */ yytestcase(yyruleno==188);
case 220: /* tags_def_opt ::= */ yytestcase(yyruleno==220);
case 309: /* tag_list_opt ::= */ yytestcase(yyruleno==309);
case 375: /* col_list_opt ::= */ yytestcase(yyruleno==375);
case 381: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==381);
case 604: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==604);
case 634: /* group_by_clause_opt ::= */ yytestcase(yyruleno==634);
case 654: /* order_by_clause_opt ::= */ yytestcase(yyruleno==654);
{ yymsp[1].minor.yy184 = NULL; }
break;
case 28: /* white_list_opt ::= white_list */
case 221: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==221);
case 382: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==382);
case 529: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==529);
{ yylhsminor.yy184 = yymsp[0].minor.yy184; }
yymsp[0].minor.yy184 = yylhsminor.yy184;
break;
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
{
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy369, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy743);
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy184);
}
break;
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
break;
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
break;
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
break;
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy184); }
break;
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy184); }
break;
case 35: /* cmd ::= DROP USER user_name */
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy369); }
break;
case 36: /* sysinfo_opt ::= */
{ yymsp[1].minor.yy743 = 1; }
break;
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
{ yymsp[-1].minor.yy743 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
break;
case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy937, &yymsp[0].minor.yy369, yymsp[-2].minor.yy392); }
break;
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy937, &yymsp[0].minor.yy369, yymsp[-2].minor.yy392); }
break;
case 40: /* privileges ::= ALL */
{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALL; }
break;
case 41: /* privileges ::= priv_type_list */
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
{ yylhsminor.yy909 = yymsp[0].minor.yy909; }
yymsp[0].minor.yy909 = yylhsminor.yy909;
break;
case 42: /* privileges ::= SUBSCRIBE */
{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_SUBSCRIBE; }
break;
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
{ yylhsminor.yy909 = yymsp[-2].minor.yy909 | yymsp[0].minor.yy909; }
yymsp[-2].minor.yy909 = yylhsminor.yy909;
break;
case 45: /* priv_type ::= READ */
{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_READ; }
break;
case 46: /* priv_type ::= WRITE */
{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_WRITE; }
break;
case 47: /* priv_type ::= ALTER */
{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALTER; }
break;
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
{ yylhsminor.yy937.first = yymsp[-2].minor.yy0; yylhsminor.yy937.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy937 = yylhsminor.yy937;
break;
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
{ yylhsminor.yy937.first = yymsp[-2].minor.yy369; yylhsminor.yy937.second = yymsp[0].minor.yy0; }
yymsp[-2].minor.yy937 = yylhsminor.yy937;
break;
case 50: /* priv_level ::= db_name NK_DOT table_name */
{ yylhsminor.yy937.first = yymsp[-2].minor.yy369; yylhsminor.yy937.second = yymsp[0].minor.yy369; }
yymsp[-2].minor.yy937 = yylhsminor.yy937;
break;
case 51: /* priv_level ::= topic_name */
{ yylhsminor.yy937.first = yymsp[0].minor.yy369; yylhsminor.yy937.second = nil_token; }
yymsp[0].minor.yy937 = yylhsminor.yy937;
break;
case 52: /* with_opt ::= */
case 157: /* start_opt ::= */ yytestcase(yyruleno==157);
case 161: /* end_opt ::= */ yytestcase(yyruleno==161);
case 304: /* like_pattern_opt ::= */ yytestcase(yyruleno==304);
case 393: /* subtable_opt ::= */ yytestcase(yyruleno==393);
case 539: /* case_when_else_opt ::= */ yytestcase(yyruleno==539);
case 569: /* from_clause_opt ::= */ yytestcase(yyruleno==569);
case 602: /* where_clause_opt ::= */ yytestcase(yyruleno==602);
case 611: /* twindow_clause_opt ::= */ yytestcase(yyruleno==611);
case 619: /* sliding_opt ::= */ yytestcase(yyruleno==619);
case 624: /* fill_opt ::= */ yytestcase(yyruleno==624);
case 638: /* having_clause_opt ::= */ yytestcase(yyruleno==638);
case 640: /* range_opt ::= */ yytestcase(yyruleno==640);
case 643: /* every_opt ::= */ yytestcase(yyruleno==643);
case 656: /* slimit_clause_opt ::= */ yytestcase(yyruleno==656);
case 660: /* limit_clause_opt ::= */ yytestcase(yyruleno==660);
{ yymsp[1].minor.yy392 = NULL; }
break;
case 53: /* with_opt ::= WITH search_condition */
case 570: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==570);
case 603: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==603);
case 639: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==639);
{ yymsp[-1].minor.yy392 = yymsp[0].minor.yy392; }
break;
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy369, NULL); }
break;
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0); }
break;
case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy377, false); }
break;
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy377, false); }
break;
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy377); }
break;
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy369, false, yymsp[0].minor.yy377); }
break;
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
break;
case 61: /* 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 62: /* cmd ::= ALTER ALL DNODES NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
break;
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 65: /* dnode_endpoint ::= NK_STRING */
case 66: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==66);
case 67: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==67);
case 331: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==331);
case 332: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==332);
case 333: /* sma_func_name ::= LAST */ yytestcase(yyruleno==333);
case 334: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==334);
case 460: /* db_name ::= NK_ID */ yytestcase(yyruleno==460);
case 461: /* table_name ::= NK_ID */ yytestcase(yyruleno==461);
case 462: /* column_name ::= NK_ID */ yytestcase(yyruleno==462);
case 463: /* function_name ::= NK_ID */ yytestcase(yyruleno==463);
case 464: /* view_name ::= NK_ID */ yytestcase(yyruleno==464);
case 465: /* table_alias ::= NK_ID */ yytestcase(yyruleno==465);
case 466: /* column_alias ::= NK_ID */ yytestcase(yyruleno==466);
case 467: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==467);
case 468: /* user_name ::= NK_ID */ yytestcase(yyruleno==468);
case 469: /* topic_name ::= NK_ID */ yytestcase(yyruleno==469);
case 470: /* stream_name ::= NK_ID */ yytestcase(yyruleno==470);
case 471: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==471);
case 472: /* index_name ::= NK_ID */ yytestcase(yyruleno==472);
case 515: /* noarg_func ::= NOW */ yytestcase(yyruleno==515);
case 516: /* noarg_func ::= TODAY */ yytestcase(yyruleno==516);
case 517: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==517);
case 518: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==518);
case 519: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==519);
case 520: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==520);
case 521: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==521);
case 522: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==522);
case 523: /* noarg_func ::= USER */ yytestcase(yyruleno==523);
case 524: /* star_func ::= COUNT */ yytestcase(yyruleno==524);
case 525: /* star_func ::= FIRST */ yytestcase(yyruleno==525);
case 526: /* star_func ::= LAST */ yytestcase(yyruleno==526);
case 527: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==527);
{ yylhsminor.yy369 = yymsp[0].minor.yy0; }
yymsp[0].minor.yy369 = yylhsminor.yy369;
break;
case 68: /* force_opt ::= */
case 94: /* not_exists_opt ::= */ yytestcase(yyruleno==94);
case 96: /* exists_opt ::= */ yytestcase(yyruleno==96);
case 352: /* analyze_opt ::= */ yytestcase(yyruleno==352);
case 359: /* agg_func_opt ::= */ yytestcase(yyruleno==359);
case 365: /* or_replace_opt ::= */ yytestcase(yyruleno==365);
case 395: /* ignore_opt ::= */ yytestcase(yyruleno==395);
case 590: /* tag_mode_opt ::= */ yytestcase(yyruleno==590);
case 592: /* set_quantifier_opt ::= */ yytestcase(yyruleno==592);
{ yymsp[1].minor.yy377 = false; }
break;
case 69: /* force_opt ::= FORCE */
case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70);
case 353: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==353);
case 360: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==360);
case 591: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==591);
case 593: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==593);
{ yymsp[0].minor.yy377 = true; }
break;
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
break;
case 86: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy377, &yymsp[-1].minor.yy369, yymsp[0].minor.yy392); }
break;
case 87: /* cmd ::= DROP DATABASE exists_opt db_name */
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); }
break;
case 88: /* cmd ::= USE db_name */
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy369); }
break;
case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy392); }
break;
case 90: /* cmd ::= FLUSH DATABASE db_name */
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy369); }
break;
case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy20); }
break;
case 92: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy369, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); }
break;
case 93: /* not_exists_opt ::= IF NOT EXISTS */
{ yymsp[-2].minor.yy377 = true; }
break;
case 95: /* exists_opt ::= IF EXISTS */
case 366: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==366);
case 396: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==396);
{ yymsp[-1].minor.yy377 = true; }
break;
case 97: /* db_options ::= */
{ yymsp[1].minor.yy392 = createDefaultDatabaseOptions(pCxt); }
break;
case 98: /* db_options ::= db_options BUFFER NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 99: /* db_options ::= db_options CACHEMODEL NK_STRING */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 100: /* db_options ::= db_options CACHESIZE NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 101: /* db_options ::= db_options COMP NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 102: /* db_options ::= db_options DURATION NK_INTEGER */
case 103: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==103);
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 104: /* db_options ::= db_options MAXROWS NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 105: /* db_options ::= db_options MINROWS NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 106: /* db_options ::= db_options KEEP integer_list */
case 107: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==107);
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP, yymsp[0].minor.yy184); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 108: /* db_options ::= db_options PAGES NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 109: /* db_options ::= db_options PAGESIZE NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 110: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 111: /* db_options ::= db_options PRECISION NK_STRING */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 112: /* db_options ::= db_options REPLICA NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 113: /* db_options ::= db_options VGROUPS NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 114: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 115: /* db_options ::= db_options RETENTIONS retention_list */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_RETENTIONS, yymsp[0].minor.yy184); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 116: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 117: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 118: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 119: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 120: /* 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.yy392 = setDatabaseOption(pCxt, yymsp[-3].minor.yy392, DB_OPTION_WAL_RETENTION_PERIOD, &t);
}
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 121: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 122: /* 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.yy392 = setDatabaseOption(pCxt, yymsp[-3].minor.yy392, DB_OPTION_WAL_RETENTION_SIZE, &t);
}
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 123: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 124: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 125: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 126: /* db_options ::= db_options TABLE_PREFIX signed */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy392); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 127: /* db_options ::= db_options TABLE_SUFFIX signed */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy392); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 128: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 129: /* alter_db_options ::= alter_db_option */
{ yylhsminor.yy392 = createAlterDatabaseOptions(pCxt); yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yylhsminor.yy392, &yymsp[0].minor.yy845); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 130: /* alter_db_options ::= alter_db_options alter_db_option */
{ yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy392, &yymsp[0].minor.yy845); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 131: /* alter_db_option ::= BUFFER NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 132: /* alter_db_option ::= CACHEMODEL NK_STRING */
{ yymsp[-1].minor.yy845.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 133: /* alter_db_option ::= CACHESIZE NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 134: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 135: /* alter_db_option ::= KEEP integer_list */
case 136: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==136);
{ yymsp[-1].minor.yy845.type = DB_OPTION_KEEP; yymsp[-1].minor.yy845.pList = yymsp[0].minor.yy184; }
break;
case 137: /* alter_db_option ::= PAGES NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_PAGES; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 138: /* alter_db_option ::= REPLICA NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 139: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 140: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 141: /* alter_db_option ::= MINROWS NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 142: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 143: /* 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.yy845.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy845.val = t;
}
break;
case 144: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 145: /* 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.yy845.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy845.val = t;
}
break;
case 146: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
{ yymsp[-1].minor.yy845.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 147: /* integer_list ::= NK_INTEGER */
{ yylhsminor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy184 = yylhsminor.yy184;
break;
case 148: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
case 409: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==409);
{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy184 = yylhsminor.yy184;
break;
case 149: /* variable_list ::= NK_VARIABLE */
{ yylhsminor.yy184 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy184 = yylhsminor.yy184;
break;
case 150: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy184 = yylhsminor.yy184;
break;
case 151: /* retention_list ::= retention */
case 182: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==182);
case 185: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==185);
case 192: /* column_def_list ::= column_def */ yytestcase(yyruleno==192);
case 237: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==237);
case 242: /* col_name_list ::= col_name */ yytestcase(yyruleno==242);
case 310: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==310);
case 327: /* func_list ::= func */ yytestcase(yyruleno==327);
case 377: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==377);
case 433: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==433);
case 458: /* literal_list ::= signed_literal */ yytestcase(yyruleno==458);
case 530: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==530);
case 536: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==536);
case 595: /* select_list ::= select_item */ yytestcase(yyruleno==595);
case 606: /* partition_list ::= partition_item */ yytestcase(yyruleno==606);
case 667: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==667);
{ yylhsminor.yy184 = createNodeList(pCxt, yymsp[0].minor.yy392); }
yymsp[0].minor.yy184 = yylhsminor.yy184;
break;
case 152: /* retention_list ::= retention_list NK_COMMA retention */
case 186: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==186);
case 193: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==193);
case 238: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==238);
case 243: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==243);
case 311: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==311);
case 328: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==328);
case 378: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==378);
case 434: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==434);
case 459: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==459);
case 531: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==531);
case 596: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==596);
case 607: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==607);
case 668: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==668);
{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); }
yymsp[-2].minor.yy184 = yylhsminor.yy184;
break;
case 153: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
case 154: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==154);
{ yylhsminor.yy392 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 155: /* speed_opt ::= */
case 361: /* bufsize_opt ::= */ yytestcase(yyruleno==361);
{ yymsp[1].minor.yy20 = 0; }
break;
case 156: /* speed_opt ::= BWLIMIT NK_INTEGER */
case 362: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==362);
{ yymsp[-1].minor.yy20 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
break;
case 158: /* start_opt ::= START WITH NK_INTEGER */
case 162: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==162);
{ yymsp[-2].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
break;
case 159: /* start_opt ::= START WITH NK_STRING */
case 163: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==163);
{ yymsp[-2].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 160: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
case 164: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==164);
{ yymsp[-3].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 165: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
case 167: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==167);
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy377, yymsp[-5].minor.yy392, yymsp[-3].minor.yy184, yymsp[-1].minor.yy184, yymsp[0].minor.yy392); }
break;
case 166: /* cmd ::= CREATE TABLE multi_create_clause */
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy184); }
break;
case 168: /* cmd ::= DROP TABLE multi_drop_clause */
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy184); }
break;
case 169: /* cmd ::= DROP STABLE exists_opt full_table_name */
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); }
break;
case 170: /* cmd ::= ALTER TABLE alter_table_clause */
case 411: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==411);
case 412: /* cmd ::= insert_query */ yytestcase(yyruleno==412);
{ pCxt->pRootNode = yymsp[0].minor.yy392; }
break;
case 171: /* cmd ::= ALTER STABLE alter_table_clause */
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy392); }
break;
case 172: /* alter_table_clause ::= full_table_name alter_table_options */
{ yylhsminor.yy392 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 173: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); }
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 174: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy369); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 175: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); }
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 176: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); }
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 177: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); }
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 178: /* alter_table_clause ::= full_table_name DROP TAG column_name */
{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy369); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 179: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); }
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 180: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); }
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 181: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
{ yylhsminor.yy392 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy392, &yymsp[-2].minor.yy369, yymsp[0].minor.yy392); }
yymsp[-5].minor.yy392 = yylhsminor.yy392;
break;
case 183: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
case 537: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==537);
{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-1].minor.yy184, yymsp[0].minor.yy392); }
yymsp[-1].minor.yy184 = yylhsminor.yy184;
break;
case 184: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
{ yylhsminor.yy392 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy377, yymsp[-8].minor.yy392, yymsp[-6].minor.yy392, yymsp[-5].minor.yy184, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); }
yymsp[-9].minor.yy392 = yylhsminor.yy392;
break;
case 187: /* drop_table_clause ::= exists_opt full_table_name */
{ yylhsminor.yy392 = createDropTableClause(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 189: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
case 376: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==376);
{ yymsp[-2].minor.yy184 = yymsp[-1].minor.yy184; }
break;
case 190: /* full_table_name ::= table_name */
{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy369, NULL); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 191: /* full_table_name ::= db_name NK_DOT table_name */
{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369, NULL); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 194: /* column_def ::= column_name type_name */
{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864, NULL, false); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 195: /* column_def ::= column_name type_name PRIMARY KEY */
{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy369, yymsp[-2].minor.yy864, NULL, true); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 196: /* type_name ::= BOOL */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BOOL); }
break;
case 197: /* type_name ::= TINYINT */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_TINYINT); }
break;
case 198: /* type_name ::= SMALLINT */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
break;
case 199: /* type_name ::= INT */
case 200: /* type_name ::= INTEGER */ yytestcase(yyruleno==200);
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_INT); }
break;
case 201: /* type_name ::= BIGINT */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BIGINT); }
break;
case 202: /* type_name ::= FLOAT */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_FLOAT); }
break;
case 203: /* type_name ::= DOUBLE */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
break;
case 204: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
break;
case 205: /* type_name ::= TIMESTAMP */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
break;
case 206: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
break;
case 207: /* type_name ::= TINYINT UNSIGNED */
{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
break;
case 208: /* type_name ::= SMALLINT UNSIGNED */
{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
break;
case 209: /* type_name ::= INT UNSIGNED */
{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UINT); }
break;
case 210: /* type_name ::= BIGINT UNSIGNED */
{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
break;
case 211: /* type_name ::= JSON */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_JSON); }
break;
case 212: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
break;
case 213: /* type_name ::= MEDIUMBLOB */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
break;
case 214: /* type_name ::= BLOB */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BLOB); }
break;
case 215: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
break;
case 216: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
break;
case 217: /* type_name ::= DECIMAL */
{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
case 218: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
case 219: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
break;
case 222: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
case 383: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==383);
{ yymsp[-3].minor.yy184 = yymsp[-1].minor.yy184; }
break;
case 223: /* table_options ::= */
{ yymsp[1].minor.yy392 = createDefaultTableOptions(pCxt); }
break;
case 224: /* table_options ::= table_options COMMENT NK_STRING */
{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 225: /* table_options ::= table_options MAX_DELAY duration_list */
{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy184); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 226: /* table_options ::= table_options WATERMARK duration_list */
{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy184); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 227: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy184); }
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 228: /* table_options ::= table_options TTL NK_INTEGER */
{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 229: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_SMA, yymsp[-1].minor.yy184); }
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 230: /* table_options ::= table_options DELETE_MARK duration_list */
{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy184); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 231: /* alter_table_options ::= alter_table_option */
{ yylhsminor.yy392 = createAlterTableOptions(pCxt); yylhsminor.yy392 = setTableOption(pCxt, yylhsminor.yy392, yymsp[0].minor.yy845.type, &yymsp[0].minor.yy845.val); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 232: /* alter_table_options ::= alter_table_options alter_table_option */
{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy845.type, &yymsp[0].minor.yy845.val); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 233: /* alter_table_option ::= COMMENT NK_STRING */
{ yymsp[-1].minor.yy845.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 234: /* alter_table_option ::= TTL NK_INTEGER */
{ yymsp[-1].minor.yy845.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
break;
case 235: /* duration_list ::= duration_literal */
case 490: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==490);
{ yylhsminor.yy184 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); }
yymsp[0].minor.yy184 = yylhsminor.yy184;
break;
case 236: /* duration_list ::= duration_list NK_COMMA duration_literal */
case 491: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==491);
{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); }
yymsp[-2].minor.yy184 = yylhsminor.yy184;
break;
case 239: /* rollup_func_name ::= function_name */
{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy369, NULL); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 240: /* rollup_func_name ::= FIRST */
case 241: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==241);
case 313: /* tag_item ::= QTAGS */ yytestcase(yyruleno==313);
{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 244: /* col_name ::= column_name */
case 314: /* tag_item ::= column_name */ yytestcase(yyruleno==314);
{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy369); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 245: /* cmd ::= SHOW DNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
break;
case 246: /* cmd ::= SHOW USERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
break;
case 247: /* cmd ::= SHOW USER PRIVILEGES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
break;
case 248: /* cmd ::= SHOW db_kind_opt DATABASES */
{
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy849);
}
break;
case 249: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
{
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy397, yymsp[0].minor.yy392, OP_TYPE_LIKE);
}
break;
case 250: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); }
break;
case 251: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy392, NULL, OP_TYPE_LIKE); }
break;
case 252: /* cmd ::= SHOW MNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
break;
case 253: /* cmd ::= SHOW QNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
break;
case 254: /* cmd ::= SHOW ARBGROUPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); }
break;
case 255: /* cmd ::= SHOW FUNCTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
break;
case 256: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); }
break;
case 257: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy369), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369), OP_TYPE_EQUAL); }
break;
case 258: /* cmd ::= SHOW STREAMS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
break;
case 259: /* cmd ::= SHOW ACCOUNTS */
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
break;
case 260: /* cmd ::= SHOW APPS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
break;
case 261: /* cmd ::= SHOW CONNECTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
break;
case 262: /* cmd ::= SHOW LICENCES */
case 263: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==263);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
break;
case 264: /* cmd ::= SHOW GRANTS FULL */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); }
break;
case 265: /* cmd ::= SHOW GRANTS LOGS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); }
break;
case 266: /* cmd ::= SHOW CLUSTER MACHINES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); }
break;
case 267: /* cmd ::= SHOW CREATE DATABASE db_name */
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy369); }
break;
case 268: /* cmd ::= SHOW CREATE TABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy392); }
break;
case 269: /* cmd ::= SHOW CREATE STABLE full_table_name */
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy392); }
break;
case 270: /* cmd ::= SHOW QUERIES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
break;
case 271: /* cmd ::= SHOW SCORES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
break;
case 272: /* cmd ::= SHOW TOPICS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
break;
case 273: /* cmd ::= SHOW VARIABLES */
case 274: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==274);
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
break;
case 275: /* cmd ::= SHOW LOCAL VARIABLES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
break;
case 276: /* 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.yy392); }
break;
case 277: /* cmd ::= SHOW BNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
break;
case 278: /* cmd ::= SHOW SNODES */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
break;
case 279: /* cmd ::= SHOW CLUSTER */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
break;
case 280: /* cmd ::= SHOW TRANSACTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
break;
case 281: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy392); }
break;
case 282: /* cmd ::= SHOW CONSUMERS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
break;
case 283: /* cmd ::= SHOW SUBSCRIPTIONS */
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
break;
case 284: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); }
break;
case 285: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy369), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369), OP_TYPE_EQUAL); }
break;
case 286: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392, yymsp[-3].minor.yy184); }
break;
case 287: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy369), yymsp[-4].minor.yy184); }
break;
case 288: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
break;
case 289: /* cmd ::= SHOW VNODES */
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
break;
case 290: /* cmd ::= SHOW db_name_cond_opt ALIVE */
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy392, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
break;
case 291: /* cmd ::= SHOW CLUSTER ALIVE */
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
break;
case 292: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); }
break;
case 293: /* cmd ::= SHOW CREATE VIEW full_table_name */
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy392); }
break;
case 294: /* cmd ::= SHOW COMPACTS */
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
break;
case 295: /* cmd ::= SHOW COMPACT NK_INTEGER */
{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
break;
case 296: /* table_kind_db_name_cond_opt ::= */
{ yymsp[1].minor.yy397.kind = SHOW_KIND_ALL; yymsp[1].minor.yy397.dbName = nil_token; }
break;
case 297: /* table_kind_db_name_cond_opt ::= table_kind */
{ yylhsminor.yy397.kind = yymsp[0].minor.yy849; yylhsminor.yy397.dbName = nil_token; }
yymsp[0].minor.yy397 = yylhsminor.yy397;
break;
case 298: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy397.kind = SHOW_KIND_ALL; yylhsminor.yy397.dbName = yymsp[-1].minor.yy369; }
yymsp[-1].minor.yy397 = yylhsminor.yy397;
break;
case 299: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
{ yylhsminor.yy397.kind = yymsp[-2].minor.yy849; yylhsminor.yy397.dbName = yymsp[-1].minor.yy369; }
yymsp[-2].minor.yy397 = yylhsminor.yy397;
break;
case 300: /* table_kind ::= NORMAL */
{ yymsp[0].minor.yy849 = SHOW_KIND_TABLES_NORMAL; }
break;
case 301: /* table_kind ::= CHILD */
{ yymsp[0].minor.yy849 = SHOW_KIND_TABLES_CHILD; }
break;
case 302: /* db_name_cond_opt ::= */
case 307: /* from_db_opt ::= */ yytestcase(yyruleno==307);
{ yymsp[1].minor.yy392 = createDefaultDatabaseCondValue(pCxt); }
break;
case 303: /* db_name_cond_opt ::= db_name NK_DOT */
{ yylhsminor.yy392 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy369); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 305: /* like_pattern_opt ::= LIKE NK_STRING */
{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
break;
case 306: /* table_name_cond ::= table_name */
{ yylhsminor.yy392 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 308: /* from_db_opt ::= FROM db_name */
{ yymsp[-1].minor.yy392 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369); }
break;
case 312: /* tag_item ::= TBNAME */
{ yylhsminor.yy392 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 315: /* tag_item ::= column_name column_alias */
{ yylhsminor.yy392 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy369), &yymsp[0].minor.yy369); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 316: /* tag_item ::= column_name AS column_alias */
{ yylhsminor.yy392 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy369), &yymsp[0].minor.yy369); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 317: /* db_kind_opt ::= */
{ yymsp[1].minor.yy849 = SHOW_KIND_ALL; }
break;
case 318: /* db_kind_opt ::= USER */
{ yymsp[0].minor.yy849 = SHOW_KIND_DATABASES_USER; }
break;
case 319: /* db_kind_opt ::= SYSTEM */
{ yymsp[0].minor.yy849 = SHOW_KIND_DATABASES_SYSTEM; }
break;
case 320: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy377, yymsp[-3].minor.yy392, yymsp[-1].minor.yy392, NULL, yymsp[0].minor.yy392); }
break;
case 321: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy377, yymsp[-5].minor.yy392, yymsp[-3].minor.yy392, yymsp[-1].minor.yy184, NULL); }
break;
case 322: /* cmd ::= DROP INDEX exists_opt full_index_name */
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); }
break;
case 323: /* full_index_name ::= index_name */
{ yylhsminor.yy392 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy369); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 324: /* full_index_name ::= db_name NK_DOT index_name */
{ yylhsminor.yy392 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 325: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
{ yymsp[-9].minor.yy392 = createIndexOption(pCxt, yymsp[-7].minor.yy184, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); }
break;
case 326: /* 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.yy392 = createIndexOption(pCxt, yymsp[-9].minor.yy184, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); }
break;
case 329: /* func ::= sma_func_name NK_LP expression_list NK_RP */
{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[-3].minor.yy369, yymsp[-1].minor.yy184); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 330: /* sma_func_name ::= function_name */
case 580: /* alias_opt ::= table_alias */ yytestcase(yyruleno==580);
{ yylhsminor.yy369 = yymsp[0].minor.yy369; }
yymsp[0].minor.yy369 = yylhsminor.yy369;
break;
case 335: /* sma_stream_opt ::= */
case 384: /* stream_options ::= */ yytestcase(yyruleno==384);
{ yymsp[1].minor.yy392 = createStreamOptions(pCxt); }
break;
case 336: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 337: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 338: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 339: /* with_meta ::= AS */
{ yymsp[0].minor.yy20 = 0; }
break;
case 340: /* with_meta ::= WITH META AS */
{ yymsp[-2].minor.yy20 = 1; }
break;
case 341: /* with_meta ::= ONLY META AS */
{ yymsp[-2].minor.yy20 = 2; }
break;
case 342: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy377, &yymsp[-2].minor.yy369, yymsp[0].minor.yy392); }
break;
case 343: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy377, &yymsp[-3].minor.yy369, &yymsp[0].minor.yy369, yymsp[-2].minor.yy20); }
break;
case 344: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy377, &yymsp[-4].minor.yy369, yymsp[-1].minor.yy392, yymsp[-3].minor.yy20, yymsp[0].minor.yy392); }
break;
case 345: /* cmd ::= DROP TOPIC exists_opt topic_name */
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); }
break;
case 346: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy377, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369); }
break;
case 347: /* cmd ::= DESC full_table_name */
case 348: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==348);
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy392); }
break;
case 349: /* cmd ::= RESET QUERY CACHE */
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
break;
case 350: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
case 351: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==351);
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy377, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); }
break;
case 354: /* explain_options ::= */
{ yymsp[1].minor.yy392 = createDefaultExplainOptions(pCxt); }
break;
case 355: /* explain_options ::= explain_options VERBOSE NK_BOOL */
{ yylhsminor.yy392 = setExplainVerbose(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 356: /* explain_options ::= explain_options RATIO NK_FLOAT */
{ yylhsminor.yy392 = setExplainRatio(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 357: /* 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.yy377, yymsp[-9].minor.yy377, &yymsp[-6].minor.yy369, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy864, yymsp[-1].minor.yy20, &yymsp[0].minor.yy369, yymsp[-10].minor.yy377); }
break;
case 358: /* cmd ::= DROP FUNCTION exists_opt function_name */
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); }
break;
case 363: /* language_opt ::= */
case 406: /* on_vgroup_id ::= */ yytestcase(yyruleno==406);
{ yymsp[1].minor.yy369 = nil_token; }
break;
case 364: /* language_opt ::= LANGUAGE NK_STRING */
case 407: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==407);
{ yymsp[-1].minor.yy369 = yymsp[0].minor.yy0; }
break;
case 367: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy377, yymsp[-2].minor.yy392, &yymsp[-1].minor.yy0, yymsp[0].minor.yy392); }
break;
case 368: /* cmd ::= DROP VIEW exists_opt full_view_name */
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); }
break;
case 369: /* full_view_name ::= view_name */
{ yylhsminor.yy392 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy369); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 370: /* full_view_name ::= db_name NK_DOT view_name */
{ yylhsminor.yy392 = createViewNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 371: /* 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.yy377, &yymsp[-8].minor.yy369, yymsp[-5].minor.yy392, yymsp[-7].minor.yy392, yymsp[-3].minor.yy184, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, yymsp[-4].minor.yy184); }
break;
case 372: /* cmd ::= DROP STREAM exists_opt stream_name */
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); }
break;
case 373: /* cmd ::= PAUSE STREAM exists_opt stream_name */
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); }
break;
case 374: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy377, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); }
break;
case 379: /* column_stream_def ::= column_name */
{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[0].minor.yy369, createDataType(TSDB_DATA_TYPE_NULL), NULL, false); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 380: /* column_stream_def ::= column_name PRIMARY KEY */
{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy369, createDataType(TSDB_DATA_TYPE_NULL), NULL, true); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 385: /* stream_options ::= stream_options TRIGGER AT_ONCE */
case 386: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==386);
{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 387: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-3].minor.yy392, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 388: /* stream_options ::= stream_options WATERMARK duration_literal */
{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 389: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-3].minor.yy392, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 390: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 391: /* stream_options ::= stream_options DELETE_MARK duration_literal */
{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 392: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-3].minor.yy392, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 394: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
case 620: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==620);
case 644: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==644);
{ yymsp[-3].minor.yy392 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy392); }
break;
case 397: /* cmd ::= KILL CONNECTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
break;
case 398: /* cmd ::= KILL QUERY NK_STRING */
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
break;
case 399: /* cmd ::= KILL TRANSACTION NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
break;
case 400: /* cmd ::= KILL COMPACT NK_INTEGER */
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); }
break;
case 401: /* cmd ::= BALANCE VGROUP */
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
break;
case 402: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy369); }
break;
case 403: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 404: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy184); }
break;
case 405: /* cmd ::= SPLIT VGROUP NK_INTEGER */
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
break;
case 408: /* dnode_list ::= DNODE NK_INTEGER */
{ yymsp[-1].minor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
break;
case 410: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); }
break;
case 413: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
{ yymsp[-6].minor.yy392 = createInsertStmt(pCxt, yymsp[-4].minor.yy392, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); }
break;
case 414: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
{ yymsp[-3].minor.yy392 = createInsertStmt(pCxt, yymsp[-1].minor.yy392, NULL, yymsp[0].minor.yy392); }
break;
case 415: /* tags_literal ::= NK_INTEGER */
case 421: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==421);
case 424: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==424);
{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 416: /* tags_literal ::= NK_PLUS NK_INTEGER */
case 417: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==417);
case 422: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==422);
case 423: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==423);
case 425: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==425);
case 426: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==426);
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL);
}
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 418: /* tags_literal ::= NK_FLOAT */
{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 419: /* tags_literal ::= NK_PLUS NK_FLOAT */
case 420: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==420);
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL);
}
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 427: /* tags_literal ::= NK_STRING */
{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 428: /* tags_literal ::= NK_BOOL */
{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 429: /* tags_literal ::= NULL */
{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 430: /* tags_literal ::= literal_func */
{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy392); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 431: /* tags_literal ::= literal_func NK_PLUS duration_literal */
case 432: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==432);
{
SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
l.n = (r.z + r.n) - l.z;
yylhsminor.yy392 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy392, yymsp[0].minor.yy392);
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 435: /* literal ::= NK_INTEGER */
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 436: /* literal ::= NK_FLOAT */
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 437: /* literal ::= NK_STRING */
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 438: /* literal ::= NK_BOOL */
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 439: /* literal ::= TIMESTAMP NK_STRING */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 440: /* literal ::= duration_literal */
case 450: /* signed_literal ::= signed */ yytestcase(yyruleno==450);
case 473: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==473);
case 474: /* expression ::= literal */ yytestcase(yyruleno==474);
case 476: /* expression ::= column_reference */ yytestcase(yyruleno==476);
case 477: /* expression ::= function_expression */ yytestcase(yyruleno==477);
case 478: /* expression ::= case_when_expression */ yytestcase(yyruleno==478);
case 511: /* function_expression ::= literal_func */ yytestcase(yyruleno==511);
case 561: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==561);
case 565: /* boolean_primary ::= predicate */ yytestcase(yyruleno==565);
case 567: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==567);
case 568: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==568);
case 571: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==571);
case 573: /* table_reference ::= table_primary */ yytestcase(yyruleno==573);
case 574: /* table_reference ::= joined_table */ yytestcase(yyruleno==574);
case 578: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==578);
case 646: /* query_simple ::= query_specification */ yytestcase(yyruleno==646);
case 647: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==647);
case 650: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==650);
case 652: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==652);
{ yylhsminor.yy392 = yymsp[0].minor.yy392; }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 441: /* literal ::= NULL */
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 442: /* literal ::= NK_QUESTION */
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 443: /* duration_literal ::= NK_VARIABLE */
case 621: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==621);
case 622: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==622);
case 623: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==623);
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 444: /* signed ::= NK_INTEGER */
{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 445: /* signed ::= NK_PLUS NK_INTEGER */
{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
break;
case 446: /* 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.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
}
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 447: /* signed ::= NK_FLOAT */
{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 448: /* signed ::= NK_PLUS NK_FLOAT */
{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
break;
case 449: /* 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.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
}
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 451: /* signed_literal ::= NK_STRING */
{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 452: /* signed_literal ::= NK_BOOL */
{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 453: /* signed_literal ::= TIMESTAMP NK_STRING */
{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
break;
case 454: /* signed_literal ::= duration_literal */
case 456: /* signed_literal ::= literal_func */ yytestcase(yyruleno==456);
case 532: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==532);
case 598: /* select_item ::= common_expression */ yytestcase(yyruleno==598);
case 608: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==608);
case 651: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==651);
case 653: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==653);
case 666: /* search_condition ::= common_expression */ yytestcase(yyruleno==666);
{ yylhsminor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 455: /* signed_literal ::= NULL */
{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 457: /* signed_literal ::= NK_QUESTION */
{ yylhsminor.yy392 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 475: /* expression ::= pseudo_column */
{ yylhsminor.yy392 = yymsp[0].minor.yy392; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy392, true); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 479: /* expression ::= NK_LP expression NK_RP */
case 566: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==566);
case 665: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==665);
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 480: /* expression ::= NK_PLUS expr_or_subquery */
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy392));
}
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 481: /* expression ::= NK_MINUS expr_or_subquery */
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL));
}
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 482: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 483: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 484: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 485: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 486: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 487: /* expression ::= column_reference NK_ARROW NK_STRING */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 488: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 489: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 492: /* column_reference ::= column_name */
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy369, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy369)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 493: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369, createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369)); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 494: /* column_reference ::= NK_ALIAS */
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 495: /* column_reference ::= table_name NK_DOT NK_ALIAS */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0)); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 496: /* pseudo_column ::= ROWTS */
case 497: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==497);
case 499: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==499);
case 500: /* pseudo_column ::= QEND */ yytestcase(yyruleno==500);
case 501: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==501);
case 502: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==502);
case 503: /* pseudo_column ::= WEND */ yytestcase(yyruleno==503);
case 504: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==504);
case 505: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==505);
case 506: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==506);
case 507: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==507);
case 513: /* literal_func ::= NOW */ yytestcase(yyruleno==513);
case 514: /* literal_func ::= TODAY */ yytestcase(yyruleno==514);
{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 498: /* pseudo_column ::= table_name NK_DOT TBNAME */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy369)))); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 508: /* function_expression ::= function_name NK_LP expression_list NK_RP */
case 509: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==509);
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy369, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy369, yymsp[-1].minor.yy184)); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 510: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy864)); }
yymsp[-5].minor.yy392 = yylhsminor.yy392;
break;
case 512: /* literal_func ::= noarg_func NK_LP NK_RP */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy369, NULL)); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 528: /* star_func_para_list ::= NK_STAR */
{ yylhsminor.yy184 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
yymsp[0].minor.yy184 = yylhsminor.yy184;
break;
case 533: /* star_func_para ::= table_name NK_DOT NK_STAR */
case 601: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==601);
{ yylhsminor.yy392 = createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 534: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy184, yymsp[-1].minor.yy392)); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 535: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-2].minor.yy184, yymsp[-1].minor.yy392)); }
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 538: /* when_then_expr ::= WHEN common_expression THEN common_expression */
{ yymsp[-3].minor.yy392 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); }
break;
case 540: /* case_when_else_opt ::= ELSE common_expression */
{ yymsp[-1].minor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); }
break;
case 541: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
case 546: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==546);
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy220, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 542: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-4].minor.yy392 = yylhsminor.yy392;
break;
case 543: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-5].minor.yy392 = yylhsminor.yy392;
break;
case 544: /* predicate ::= expr_or_subquery IS NULL */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), NULL));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 545: /* predicate ::= expr_or_subquery IS NOT NULL */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL));
}
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 547: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy220 = OP_TYPE_LOWER_THAN; }
break;
case 548: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy220 = OP_TYPE_GREATER_THAN; }
break;
case 549: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy220 = OP_TYPE_LOWER_EQUAL; }
break;
case 550: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy220 = OP_TYPE_GREATER_EQUAL; }
break;
case 551: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy220 = OP_TYPE_NOT_EQUAL; }
break;
case 552: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy220 = OP_TYPE_EQUAL; }
break;
case 553: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy220 = OP_TYPE_LIKE; }
break;
case 554: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy220 = OP_TYPE_NOT_LIKE; }
break;
case 555: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy220 = OP_TYPE_MATCH; }
break;
case 556: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy220 = OP_TYPE_NMATCH; }
break;
case 557: /* compare_op ::= CONTAINS */
{ yymsp[0].minor.yy220 = OP_TYPE_JSON_CONTAINS; }
break;
case 558: /* in_op ::= IN */
{ yymsp[0].minor.yy220 = OP_TYPE_IN; }
break;
case 559: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy220 = OP_TYPE_NOT_IN; }
break;
case 560: /* in_predicate_value ::= NK_LP literal_list NK_RP */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy184)); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 562: /* boolean_value_expression ::= NOT boolean_primary */
{
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL));
}
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 563: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 564: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392);
yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)));
}
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 572: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy392 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, NULL); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 575: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 576: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-3].minor.yy369, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 577: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy392 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy369); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 579: /* alias_opt ::= */
{ yymsp[1].minor.yy369 = nil_token; }
break;
case 581: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy369 = yymsp[0].minor.yy369; }
break;
case 582: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 583: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==583);
{ yymsp[-2].minor.yy392 = yymsp[-1].minor.yy392; }
break;
case 584: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ yylhsminor.yy392 = createJoinTableNode(pCxt, yymsp[-4].minor.yy932, yymsp[-5].minor.yy392, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); }
yymsp[-5].minor.yy392 = yylhsminor.yy392;
break;
case 585: /* join_type ::= */
{ yymsp[1].minor.yy932 = JOIN_TYPE_INNER; }
break;
case 586: /* join_type ::= INNER */
{ yymsp[0].minor.yy932 = JOIN_TYPE_INNER; }
break;
case 587: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
{
yymsp[-13].minor.yy392 = createSelectStmt(pCxt, yymsp[-11].minor.yy377, yymsp[-9].minor.yy184, yymsp[-8].minor.yy392, yymsp[-12].minor.yy184);
yymsp[-13].minor.yy392 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy392, yymsp[-10].minor.yy377);
yymsp[-13].minor.yy392 = addWhereClause(pCxt, yymsp[-13].minor.yy392, yymsp[-7].minor.yy392);
yymsp[-13].minor.yy392 = addPartitionByClause(pCxt, yymsp[-13].minor.yy392, yymsp[-6].minor.yy184);
yymsp[-13].minor.yy392 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy392, yymsp[-2].minor.yy392);
yymsp[-13].minor.yy392 = addGroupByClause(pCxt, yymsp[-13].minor.yy392, yymsp[-1].minor.yy184);
yymsp[-13].minor.yy392 = addHavingClause(pCxt, yymsp[-13].minor.yy392, yymsp[0].minor.yy392);
yymsp[-13].minor.yy392 = addRangeClause(pCxt, yymsp[-13].minor.yy392, yymsp[-5].minor.yy392);
yymsp[-13].minor.yy392 = addEveryClause(pCxt, yymsp[-13].minor.yy392, yymsp[-4].minor.yy392);
yymsp[-13].minor.yy392 = addFillClause(pCxt, yymsp[-13].minor.yy392, yymsp[-3].minor.yy392);
}
break;
case 588: /* hint_list ::= */
{ yymsp[1].minor.yy184 = createHintNodeList(pCxt, NULL); }
break;
case 589: /* hint_list ::= NK_HINT */
{ yylhsminor.yy184 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy184 = yylhsminor.yy184;
break;
case 594: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy377 = false; }
break;
case 597: /* select_item ::= NK_STAR */
{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
yymsp[0].minor.yy392 = yylhsminor.yy392;
break;
case 599: /* select_item ::= common_expression column_alias */
case 609: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==609);
{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy369); }
yymsp[-1].minor.yy392 = yylhsminor.yy392;
break;
case 600: /* select_item ::= common_expression AS column_alias */
case 610: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==610);
{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), &yymsp[0].minor.yy369); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 605: /* partition_by_clause_opt ::= PARTITION BY partition_list */
case 635: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==635);
case 655: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==655);
{ yymsp[-2].minor.yy184 = yymsp[0].minor.yy184; }
break;
case 612: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
{ yymsp[-5].minor.yy392 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); }
break;
case 613: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy392 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); }
break;
case 614: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); }
break;
case 615: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-7].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); }
break;
case 616: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
{ yymsp[-6].minor.yy392 = createEventWindowNode(pCxt, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); }
break;
case 617: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
{ yymsp[-3].minor.yy392 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); }
break;
case 618: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
{ yymsp[-5].minor.yy392 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); }
break;
case 625: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy392 = createFillNode(pCxt, yymsp[-1].minor.yy374, NULL); }
break;
case 626: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy184)); }
break;
case 627: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy184)); }
break;
case 628: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy374 = FILL_MODE_NONE; }
break;
case 629: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy374 = FILL_MODE_PREV; }
break;
case 630: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy374 = FILL_MODE_NULL; }
break;
case 631: /* fill_mode ::= NULL_F */
{ yymsp[0].minor.yy374 = FILL_MODE_NULL_F; }
break;
case 632: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy374 = FILL_MODE_LINEAR; }
break;
case 633: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy374 = FILL_MODE_NEXT; }
break;
case 636: /* group_by_list ::= expr_or_subquery */
{ yylhsminor.yy184 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); }
yymsp[0].minor.yy184 = yylhsminor.yy184;
break;
case 637: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); }
yymsp[-2].minor.yy184 = yylhsminor.yy184;
break;
case 641: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
{ yymsp[-5].minor.yy392 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); }
break;
case 642: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy392 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); }
break;
case 645: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
{
yylhsminor.yy392 = addOrderByClause(pCxt, yymsp[-3].minor.yy392, yymsp[-2].minor.yy184);
yylhsminor.yy392 = addSlimitClause(pCxt, yylhsminor.yy392, yymsp[-1].minor.yy392);
yylhsminor.yy392 = addLimitClause(pCxt, yylhsminor.yy392, yymsp[0].minor.yy392);
}
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 648: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); }
yymsp[-3].minor.yy392 = yylhsminor.yy392;
break;
case 649: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 657: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
case 661: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==661);
{ yymsp[-1].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
break;
case 658: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 662: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==662);
{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
break;
case 659: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 663: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==663);
{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
break;
case 664: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy392); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 669: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy392 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[-1].minor.yy578, yymsp[0].minor.yy217); }
yymsp[-2].minor.yy392 = yylhsminor.yy392;
break;
case 670: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy578 = ORDER_ASC; }
break;
case 671: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy578 = ORDER_ASC; }
break;
case 672: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy578 = ORDER_DESC; }
break;
case 673: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy217 = NULL_ORDER_DEFAULT; }
break;
case 674: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy217 = NULL_ORDER_FIRST; }
break;
case 675: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy217 = 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 */
#ifndef NDEBUG
assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) );
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
}