homework-jianmu/source/libs/parser/src/sql.c

8535 lines
414 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 ************************/
#line 11 "sql.y"
#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
#line 46 "sql.c"
/**************** 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_BOOL 118
#define TK_TINYINT 119
#define TK_SMALLINT 120
#define TK_INT 121
#define TK_INTEGER 122
#define TK_BIGINT 123
#define TK_FLOAT 124
#define TK_DOUBLE 125
#define TK_BINARY 126
#define TK_NCHAR 127
#define TK_UNSIGNED 128
#define TK_JSON 129
#define TK_VARCHAR 130
#define TK_MEDIUMBLOB 131
#define TK_BLOB 132
#define TK_VARBINARY 133
#define TK_GEOMETRY 134
#define TK_DECIMAL 135
#define TK_COMMENT 136
#define TK_MAX_DELAY 137
#define TK_WATERMARK 138
#define TK_ROLLUP 139
#define TK_TTL 140
#define TK_SMA 141
#define TK_DELETE_MARK 142
#define TK_FIRST 143
#define TK_LAST 144
#define TK_SHOW 145
#define TK_PRIVILEGES 146
#define TK_DATABASES 147
#define TK_TABLES 148
#define TK_STABLES 149
#define TK_MNODES 150
#define TK_QNODES 151
#define TK_ARBGROUPS 152
#define TK_FUNCTIONS 153
#define TK_INDEXES 154
#define TK_ACCOUNTS 155
#define TK_APPS 156
#define TK_CONNECTIONS 157
#define TK_LICENCES 158
#define TK_GRANTS 159
#define TK_FULL 160
#define TK_LOGS 161
#define TK_MACHINES 162
#define TK_QUERIES 163
#define TK_SCORES 164
#define TK_TOPICS 165
#define TK_VARIABLES 166
#define TK_BNODES 167
#define TK_SNODES 168
#define TK_TRANSACTIONS 169
#define TK_DISTRIBUTED 170
#define TK_CONSUMERS 171
#define TK_SUBSCRIPTIONS 172
#define TK_VNODES 173
#define TK_ALIVE 174
#define TK_VIEWS 175
#define TK_VIEW 176
#define TK_COMPACTS 177
#define TK_NORMAL 178
#define TK_CHILD 179
#define TK_LIKE 180
#define TK_TBNAME 181
#define TK_QTAGS 182
#define TK_AS 183
#define TK_SYSTEM 184
#define TK_INDEX 185
#define TK_FUNCTION 186
#define TK_INTERVAL 187
#define TK_COUNT 188
#define TK_LAST_ROW 189
#define TK_META 190
#define TK_ONLY 191
#define TK_TOPIC 192
#define TK_CONSUMER 193
#define TK_GROUP 194
#define TK_DESC 195
#define TK_DESCRIBE 196
#define TK_RESET 197
#define TK_QUERY 198
#define TK_CACHE 199
#define TK_EXPLAIN 200
#define TK_ANALYZE 201
#define TK_VERBOSE 202
#define TK_NK_BOOL 203
#define TK_RATIO 204
#define TK_NK_FLOAT 205
#define TK_OUTPUTTYPE 206
#define TK_AGGREGATE 207
#define TK_BUFSIZE 208
#define TK_LANGUAGE 209
#define TK_REPLACE 210
#define TK_STREAM 211
#define TK_INTO 212
#define TK_PAUSE 213
#define TK_RESUME 214
#define TK_TRIGGER 215
#define TK_AT_ONCE 216
#define TK_WINDOW_CLOSE 217
#define TK_IGNORE 218
#define TK_EXPIRED 219
#define TK_FILL_HISTORY 220
#define TK_UPDATE 221
#define TK_SUBTABLE 222
#define TK_UNTREATED 223
#define TK_KILL 224
#define TK_CONNECTION 225
#define TK_TRANSACTION 226
#define TK_BALANCE 227
#define TK_VGROUP 228
#define TK_LEADER 229
#define TK_MERGE 230
#define TK_REDISTRIBUTE 231
#define TK_SPLIT 232
#define TK_DELETE 233
#define TK_INSERT 234
#define TK_NK_BIN 235
#define TK_NK_HEX 236
#define TK_NULL 237
#define TK_NK_QUESTION 238
#define TK_NK_ALIAS 239
#define TK_NK_ARROW 240
#define TK_ROWTS 241
#define TK_QSTART 242
#define TK_QEND 243
#define TK_QDURATION 244
#define TK_WSTART 245
#define TK_WEND 246
#define TK_WDURATION 247
#define TK_IROWTS 248
#define TK_ISFILLED 249
#define TK_CAST 250
#define TK_NOW 251
#define TK_TODAY 252
#define TK_TIMEZONE 253
#define TK_CLIENT_VERSION 254
#define TK_SERVER_VERSION 255
#define TK_SERVER_STATUS 256
#define TK_CURRENT_USER 257
#define TK_CASE 258
#define TK_WHEN 259
#define TK_THEN 260
#define TK_ELSE 261
#define TK_BETWEEN 262
#define TK_IS 263
#define TK_NK_LT 264
#define TK_NK_GT 265
#define TK_NK_LE 266
#define TK_NK_GE 267
#define TK_NK_NE 268
#define TK_MATCH 269
#define TK_NMATCH 270
#define TK_CONTAINS 271
#define TK_IN 272
#define TK_JOIN 273
#define TK_INNER 274
#define TK_SELECT 275
#define TK_NK_HINT 276
#define TK_DISTINCT 277
#define TK_WHERE 278
#define TK_PARTITION 279
#define TK_BY 280
#define TK_SESSION 281
#define TK_STATE_WINDOW 282
#define TK_EVENT_WINDOW 283
#define TK_COUNT_WINDOW 284
#define TK_SLIDING 285
#define TK_FILL 286
#define TK_VALUE 287
#define TK_VALUE_F 288
#define TK_NONE 289
#define TK_PREV 290
#define TK_NULL_F 291
#define TK_LINEAR 292
#define TK_NEXT 293
#define TK_HAVING 294
#define TK_RANGE 295
#define TK_EVERY 296
#define TK_ORDER 297
#define TK_SLIMIT 298
#define TK_SOFFSET 299
#define TK_LIMIT 300
#define TK_OFFSET 301
#define TK_ASC 302
#define TK_NULLS 303
#define TK_ABORT 304
#define TK_AFTER 305
#define TK_ATTACH 306
#define TK_BEFORE 307
#define TK_BEGIN 308
#define TK_BITAND 309
#define TK_BITNOT 310
#define TK_BITOR 311
#define TK_BLOCKS 312
#define TK_CHANGE 313
#define TK_COMMA 314
#define TK_CONCAT 315
#define TK_CONFLICT 316
#define TK_COPY 317
#define TK_DEFERRED 318
#define TK_DELIMITERS 319
#define TK_DETACH 320
#define TK_DIVIDE 321
#define TK_DOT 322
#define TK_EACH 323
#define TK_FAIL 324
#define TK_FILE 325
#define TK_FOR 326
#define TK_GLOB 327
#define TK_ID 328
#define TK_IMMEDIATE 329
#define TK_IMPORT 330
#define TK_INITIALLY 331
#define TK_INSTEAD 332
#define TK_ISNULL 333
#define TK_KEY 334
#define TK_MODULES 335
#define TK_NK_BITNOT 336
#define TK_NK_SEMI 337
#define TK_NOTNULL 338
#define TK_OF 339
#define TK_PLUS 340
#define TK_PRIVILEGE 341
#define TK_RAISE 342
#define TK_RESTRICT 343
#define TK_ROW 344
#define TK_SEMI 345
#define TK_STAR 346
#define TK_STATEMENT 347
#define TK_STRICT 348
#define TK_STRING 349
#define TK_TIMES 350
#define TK_VALUES 351
#define TK_VARIABLE 352
#define TK_WAL 353
#define TK_PRIMARY 354
#define TK_ENCODE 355
#define TK_COMPRESS 356
#define TK_LEVEL 357
#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 524
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SToken
typedef union {
int yyinit;
ParseTOKENTYPE yy0;
SDataType yy56;
SNodeList* yy72;
EOrder yy130;
SToken yy305;
EOperatorType yy324;
int8_t yy359;
STokenPair yy361;
int32_t yy444;
SShowTablesOption yy517;
ENullOrder yy681;
EShowKind yy761;
EJoinType yy828;
EFillMode yy926;
SAlterOption yy941;
bool yy985;
SNode* yy1000;
int64_t yy1005;
} 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 899
#define YYNRULE 700
#define YYNRULE_WITH_ACTION 700
#define YYNTOKEN 358
#define YY_MAX_SHIFT 898
#define YY_MIN_SHIFTREDUCE 1337
#define YY_MAX_SHIFTREDUCE 2036
#define YY_ERROR_ACTION 2037
#define YY_ACCEPT_ACTION 2038
#define YY_NO_ACTION 2039
#define YY_MIN_REDUCE 2040
#define YY_MAX_REDUCE 2739
/************* 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 (3132)
static const YYACTIONTYPE yy_action[] = {
/* 0 */ 609, 2287, 465, 610, 2083, 2280, 2282, 516, 170, 429,
/* 10 */ 509, 174, 47, 45, 1953, 508, 430, 463, 2233, 2285,
/* 20 */ 444, 2234, 1793, 40, 39, 1818, 2285, 46, 44, 43,
/* 30 */ 42, 41, 33, 37, 312, 1879, 2126, 1791, 40, 39,
/* 40 */ 2533, 795, 46, 44, 43, 42, 41, 796, 2231, 1377,
/* 50 */ 758, 148, 795, 761, 199, 576, 574, 2443, 393, 796,
/* 60 */ 2231, 717, 220, 746, 2705, 1874, 2705, 139, 1384, 2274,
/* 70 */ 2038, 19, 1802, 2710, 652, 177, 2705, 2052, 1799, 139,
/* 80 */ 700, 2551, 2711, 206, 745, 206, 657, 2706, 747, 2706,
/* 90 */ 747, 1379, 1382, 1383, 2492, 2709, 2499, 461, 778, 2706,
/* 100 */ 2708, 421, 420, 2222, 895, 2215, 395, 15, 482, 870,
/* 110 */ 869, 868, 867, 472, 1818, 866, 865, 153, 860, 859,
/* 120 */ 858, 857, 856, 855, 854, 152, 848, 847, 846, 471,
/* 130 */ 470, 843, 842, 841, 186, 185, 840, 2373, 2532, 50,
/* 140 */ 767, 2570, 2596, 1881, 1882, 115, 2534, 782, 2536, 2537,
/* 150 */ 777, 450, 800, 475, 62, 2371, 783, 189, 474, 2624,
/* 160 */ 450, 2639, 800, 440, 2620, 304, 2632, 757, 66, 140,
/* 170 */ 756, 800, 2705, 419, 418, 2287, 654, 853, 208, 493,
/* 180 */ 2191, 1853, 1863, 413, 525, 2349, 2654, 2636, 1880, 1883,
/* 190 */ 745, 206, 448, 2285, 625, 2706, 747, 1403, 656, 1402,
/* 200 */ 173, 62, 655, 1794, 717, 1792, 1793, 2705, 629, 2373,
/* 210 */ 2028, 2236, 40, 39, 144, 2493, 46, 44, 43, 42,
/* 220 */ 41, 1791, 2533, 2452, 447, 2711, 206, 2370, 783, 276,
/* 230 */ 2706, 747, 1404, 275, 277, 779, 222, 1797, 1798, 1850,
/* 240 */ 1805, 1852, 1855, 1856, 1857, 1858, 1859, 1860, 1861, 1862,
/* 250 */ 774, 798, 797, 1873, 1875, 1876, 1877, 1878, 2, 47,
/* 260 */ 45, 839, 1799, 2551, 391, 746, 1816, 444, 2705, 1793,
/* 270 */ 2453, 62, 450, 559, 717, 405, 579, 2705, 2499, 850,
/* 280 */ 778, 578, 1879, 800, 1791, 2129, 745, 206, 895, 2509,
/* 290 */ 617, 2706, 747, 610, 2083, 2711, 206, 539, 740, 580,
/* 300 */ 2706, 747, 1818, 99, 392, 541, 402, 308, 497, 428,
/* 310 */ 1819, 691, 1874, 1721, 1722, 519, 2513, 2027, 19, 1908,
/* 320 */ 2532, 717, 308, 2570, 2705, 1799, 2551, 115, 2534, 782,
/* 330 */ 2536, 2537, 777, 2710, 800, 499, 495, 150, 689, 157,
/* 340 */ 2595, 2624, 2711, 206, 852, 440, 2620, 2706, 747, 1822,
/* 350 */ 1821, 895, 416, 687, 15, 685, 273, 272, 671, 670,
/* 360 */ 669, 2515, 2518, 527, 241, 661, 145, 665, 612, 308,
/* 370 */ 2091, 664, 800, 698, 531, 2349, 663, 668, 423, 422,
/* 380 */ 14, 13, 662, 2206, 1909, 658, 769, 1794, 2596, 1792,
/* 390 */ 1881, 1882, 739, 2360, 2339, 173, 567, 566, 565, 564,
/* 400 */ 563, 558, 557, 556, 555, 399, 2237, 469, 468, 545,
/* 410 */ 544, 543, 542, 536, 535, 534, 2041, 529, 528, 414,
/* 420 */ 2709, 1797, 1798, 520, 1640, 1641, 224, 1986, 1853, 1863,
/* 430 */ 1659, 736, 1800, 1580, 1581, 1880, 1883, 129, 2021, 308,
/* 440 */ 128, 127, 126, 125, 124, 123, 122, 121, 120, 1799,
/* 450 */ 1794, 129, 1792, 839, 128, 127, 126, 125, 124, 123,
/* 460 */ 122, 121, 120, 1652, 1653, 701, 36, 442, 1903, 1904,
/* 470 */ 1905, 1906, 1907, 1911, 1912, 1913, 1914, 733, 732, 1984,
/* 480 */ 1985, 1987, 1988, 1989, 1797, 1798, 1850, 1922, 1852, 1855,
/* 490 */ 1856, 1857, 1858, 1859, 1860, 1861, 1862, 774, 798, 797,
/* 500 */ 1873, 1875, 1876, 1877, 1878, 2, 12, 47, 45, 561,
/* 510 */ 2349, 2533, 197, 306, 175, 444, 243, 1793, 12, 367,
/* 520 */ 612, 699, 2091, 830, 761, 742, 737, 730, 726, 187,
/* 530 */ 1879, 2710, 1791, 2421, 2705, 35, 365, 75, 351, 898,
/* 540 */ 74, 40, 39, 619, 2412, 46, 44, 43, 42, 41,
/* 550 */ 394, 2322, 2551, 2709, 415, 353, 2353, 2706, 2707, 696,
/* 560 */ 1874, 229, 239, 591, 589, 586, 19, 2499, 1823, 778,
/* 570 */ 2094, 196, 1403, 1799, 1402, 46, 44, 43, 42, 41,
/* 580 */ 886, 882, 878, 874, 2220, 350, 2063, 758, 148, 40,
/* 590 */ 39, 278, 606, 46, 44, 43, 42, 41, 176, 895,
/* 600 */ 1803, 604, 15, 62, 600, 596, 2169, 1404, 702, 2532,
/* 610 */ 717, 2062, 2570, 2705, 29, 1821, 115, 2534, 782, 2536,
/* 620 */ 2537, 777, 888, 800, 796, 2231, 114, 614, 189, 323,
/* 630 */ 2624, 2711, 206, 611, 440, 2620, 2706, 747, 1881, 1882,
/* 640 */ 1822, 63, 2499, 701, 211, 671, 670, 669, 796, 2231,
/* 650 */ 758, 148, 661, 145, 665, 316, 317, 2655, 664, 717,
/* 660 */ 315, 792, 2705, 663, 668, 423, 422, 2499, 55, 662,
/* 670 */ 796, 2231, 658, 570, 226, 51, 1853, 1863, 174, 2170,
/* 680 */ 2711, 206, 1819, 1880, 1883, 2706, 747, 463, 2233, 1998,
/* 690 */ 513, 85, 84, 512, 758, 148, 219, 795, 1794, 716,
/* 700 */ 1792, 760, 204, 2632, 2633, 311, 146, 2637, 149, 504,
/* 710 */ 502, 2595, 310, 552, 749, 91, 626, 551, 90, 2218,
/* 720 */ 390, 703, 2412, 491, 288, 550, 488, 484, 480, 477,
/* 730 */ 505, 281, 1797, 1798, 1850, 231, 1852, 1855, 1856, 1857,
/* 740 */ 1858, 1859, 1860, 1861, 1862, 774, 798, 797, 1873, 1875,
/* 750 */ 1876, 1877, 1878, 2, 47, 45, 1884, 2281, 2282, 2533,
/* 760 */ 569, 230, 444, 2040, 1793, 205, 2632, 2633, 101, 146,
/* 770 */ 2637, 308, 779, 2213, 2093, 627, 2366, 1879, 306, 1791,
/* 780 */ 806, 805, 804, 803, 50, 89, 2533, 138, 137, 136,
/* 790 */ 135, 134, 133, 132, 131, 130, 796, 2231, 1818, 779,
/* 800 */ 2551, 2662, 762, 201, 96, 1672, 1673, 1874, 2306, 207,
/* 810 */ 2632, 2633, 2235, 146, 2637, 2499, 514, 778, 40, 39,
/* 820 */ 1799, 417, 46, 44, 43, 42, 41, 2551, 200, 40,
/* 830 */ 39, 2226, 60, 46, 44, 43, 42, 41, 741, 1957,
/* 840 */ 714, 1822, 2499, 308, 778, 1818, 895, 62, 2533, 48,
/* 850 */ 1671, 1674, 1889, 717, 2287, 2639, 2705, 2532, 1818, 1823,
/* 860 */ 2570, 779, 439, 2675, 115, 2534, 782, 2536, 2537, 777,
/* 870 */ 831, 800, 2285, 2278, 2711, 206, 2725, 1384, 2624, 2706,
/* 880 */ 747, 2635, 440, 2620, 2532, 1881, 1882, 2570, 12, 2551,
/* 890 */ 10, 115, 2534, 782, 2536, 2537, 777, 2207, 800, 796,
/* 900 */ 2231, 1382, 1383, 2725, 2499, 2624, 778, 40, 39, 440,
/* 910 */ 2620, 46, 44, 43, 42, 41, 284, 113, 456, 533,
/* 920 */ 1978, 40, 39, 1853, 1863, 46, 44, 43, 42, 41,
/* 930 */ 1880, 1883, 40, 39, 151, 1979, 46, 44, 43, 42,
/* 940 */ 41, 112, 507, 2223, 506, 1794, 2532, 1792, 1910, 2570,
/* 950 */ 109, 459, 2061, 115, 2534, 782, 2536, 2537, 777, 1854,
/* 960 */ 800, 773, 796, 2231, 2533, 2725, 656, 2624, 554, 553,
/* 970 */ 655, 440, 2620, 1484, 505, 835, 1977, 779, 2278, 1797,
/* 980 */ 1798, 1850, 546, 1852, 1855, 1856, 1857, 1858, 1859, 1860,
/* 990 */ 1861, 1862, 774, 798, 797, 1873, 1875, 1876, 1877, 1878,
/* 1000 */ 2, 47, 45, 2533, 202, 2551, 1854, 1997, 2499, 444,
/* 1010 */ 1496, 1793, 796, 2231, 1486, 308, 779, 1851, 728, 1854,
/* 1020 */ 2499, 1969, 778, 2287, 1879, 1495, 1791, 43, 42, 41,
/* 1030 */ 34, 449, 547, 837, 164, 163, 834, 833, 832, 161,
/* 1040 */ 1915, 2285, 2053, 1500, 2551, 2205, 837, 164, 163, 834,
/* 1050 */ 833, 832, 161, 187, 1874, 796, 2231, 1850, 1499, 2499,
/* 1060 */ 1823, 778, 2532, 2639, 1851, 2570, 100, 1799, 2509, 115,
/* 1070 */ 2534, 782, 2536, 2537, 777, 548, 800, 1851, 796, 2231,
/* 1080 */ 2354, 2599, 659, 2624, 1406, 1407, 1762, 440, 2620, 2634,
/* 1090 */ 2533, 361, 581, 895, 2264, 2513, 48, 1700, 628, 2060,
/* 1100 */ 2287, 2532, 360, 779, 2570, 2698, 1481, 172, 115, 2534,
/* 1110 */ 782, 2536, 2537, 777, 678, 800, 455, 454, 765, 1761,
/* 1120 */ 2725, 2668, 2624, 796, 2231, 583, 440, 2620, 466, 690,
/* 1130 */ 1950, 2551, 1881, 1882, 796, 2231, 173, 259, 796, 2231,
/* 1140 */ 2515, 2517, 441, 2228, 750, 274, 2499, 2236, 778, 458,
/* 1150 */ 457, 800, 2440, 182, 279, 2499, 796, 2231, 287, 796,
/* 1160 */ 2231, 681, 646, 642, 638, 634, 2059, 258, 675, 673,
/* 1170 */ 1853, 1863, 2287, 796, 2231, 271, 764, 1880, 1883, 320,
/* 1180 */ 464, 837, 164, 163, 834, 833, 832, 161, 2532, 107,
/* 1190 */ 2285, 2570, 1794, 793, 1792, 115, 2534, 782, 2536, 2537,
/* 1200 */ 777, 2058, 800, 2057, 796, 2231, 9, 2725, 97, 2624,
/* 1210 */ 2533, 256, 1822, 440, 2620, 2224, 71, 1818, 2056, 70,
/* 1220 */ 2055, 2054, 2499, 779, 794, 2643, 1797, 1798, 1850, 2051,
/* 1230 */ 1852, 1855, 1856, 1857, 1858, 1859, 1860, 1861, 1862, 774,
/* 1240 */ 798, 797, 1873, 1875, 1876, 1877, 1878, 2, 47, 45,
/* 1250 */ 1439, 2551, 796, 2231, 2050, 772, 444, 2499, 1793, 2499,
/* 1260 */ 660, 796, 2231, 648, 647, 2049, 2499, 2048, 778, 2047,
/* 1270 */ 2046, 1879, 347, 1791, 2499, 753, 2499, 2499, 246, 469,
/* 1280 */ 468, 467, 2045, 2044, 1479, 2499, 2332, 255, 248, 1807,
/* 1290 */ 2043, 1440, 667, 666, 253, 623, 650, 649, 864, 862,
/* 1300 */ 836, 1874, 1879, 2278, 1800, 2068, 890, 77, 2532, 96,
/* 1310 */ 2499, 2570, 3, 245, 1799, 115, 2534, 782, 2536, 2537,
/* 1320 */ 777, 2499, 800, 2499, 53, 2499, 2499, 2725, 523, 2624,
/* 1330 */ 2287, 1386, 1874, 440, 2620, 2287, 2227, 1817, 2499, 2499,
/* 1340 */ 895, 162, 2533, 15, 162, 1799, 2499, 1545, 791, 2644,
/* 1350 */ 1942, 264, 734, 2286, 262, 779, 2208, 693, 162, 692,
/* 1360 */ 88, 1536, 829, 828, 827, 1540, 826, 1542, 1543, 825,
/* 1370 */ 822, 771, 1551, 819, 1553, 1554, 816, 813, 810, 1881,
/* 1380 */ 1882, 213, 2113, 2551, 397, 396, 2111, 141, 266, 154,
/* 1390 */ 268, 265, 270, 267, 451, 269, 724, 301, 2499, 87,
/* 1400 */ 778, 2102, 1801, 1949, 672, 2100, 2520, 1879, 674, 460,
/* 1410 */ 751, 2030, 2031, 14, 13, 143, 1716, 1853, 1863, 54,
/* 1420 */ 49, 1900, 49, 676, 1880, 1883, 190, 679, 162, 326,
/* 1430 */ 325, 1823, 64, 1719, 295, 49, 1851, 1874, 1942, 1794,
/* 1440 */ 2532, 1792, 49, 2570, 328, 327, 2552, 115, 2534, 782,
/* 1450 */ 2536, 2537, 777, 314, 800, 2533, 76, 2167, 159, 2597,
/* 1460 */ 162, 2624, 330, 329, 2522, 440, 2620, 2166, 779, 73,
/* 1470 */ 1808, 1973, 1803, 1797, 1798, 1850, 808, 1852, 1855, 1856,
/* 1480 */ 1857, 1858, 1859, 1860, 1861, 1862, 774, 798, 797, 1873,
/* 1490 */ 1875, 1876, 1877, 1878, 2, 1983, 2551, 1982, 332, 331,
/* 1500 */ 2358, 293, 2084, 763, 1811, 1813, 160, 1916, 334, 333,
/* 1510 */ 1864, 2499, 2658, 778, 336, 335, 162, 1669, 798, 797,
/* 1520 */ 1873, 1875, 1876, 1877, 1878, 142, 338, 337, 318, 731,
/* 1530 */ 844, 788, 2533, 322, 845, 1527, 340, 339, 159, 342,
/* 1540 */ 341, 344, 343, 754, 359, 779, 346, 345, 431, 435,
/* 1550 */ 738, 1558, 785, 2532, 1458, 473, 2570, 2359, 1456, 2090,
/* 1560 */ 115, 2534, 782, 2536, 2537, 777, 2275, 800, 710, 2659,
/* 1570 */ 1804, 2669, 768, 2551, 2624, 1784, 2533, 1760, 440, 2620,
/* 1580 */ 759, 1562, 300, 303, 307, 2192, 476, 5, 2499, 779,
/* 1590 */ 778, 1569, 481, 411, 489, 490, 1826, 500, 501, 215,
/* 1600 */ 1567, 214, 503, 217, 1693, 2533, 354, 453, 452, 1785,
/* 1610 */ 1816, 517, 1817, 165, 524, 228, 584, 2551, 779, 530,
/* 1620 */ 526, 532, 572, 798, 797, 1873, 1875, 1876, 1877, 1878,
/* 1630 */ 2532, 537, 2499, 2570, 778, 2533, 549, 116, 2534, 782,
/* 1640 */ 2536, 2537, 777, 560, 800, 2351, 2551, 568, 776, 562,
/* 1650 */ 571, 2624, 573, 582, 234, 2623, 2620, 585, 233, 587,
/* 1660 */ 588, 2499, 236, 778, 590, 592, 1824, 607, 4, 608,
/* 1670 */ 615, 618, 616, 1819, 2532, 244, 2551, 2570, 93, 2533,
/* 1680 */ 620, 116, 2534, 782, 2536, 2537, 777, 247, 800, 1825,
/* 1690 */ 621, 2499, 779, 778, 1827, 2624, 622, 624, 250, 770,
/* 1700 */ 2620, 252, 1828, 780, 630, 94, 2570, 651, 2367, 2533,
/* 1710 */ 116, 2534, 782, 2536, 2537, 777, 95, 800, 257, 118,
/* 1720 */ 2551, 387, 779, 653, 2624, 682, 2221, 2430, 404, 2620,
/* 1730 */ 261, 2217, 263, 2532, 167, 2499, 2570, 778, 2533, 117,
/* 1740 */ 383, 2534, 782, 2536, 2537, 777, 775, 800, 766, 2589,
/* 1750 */ 2551, 779, 2219, 2214, 168, 169, 683, 2427, 695, 2426,
/* 1760 */ 697, 98, 155, 280, 1820, 2499, 355, 778, 705, 704,
/* 1770 */ 285, 712, 2413, 735, 786, 721, 706, 2532, 709, 2551,
/* 1780 */ 2570, 711, 283, 2646, 178, 2534, 782, 2536, 2537, 777,
/* 1790 */ 2674, 800, 8, 2673, 2499, 290, 778, 292, 744, 294,
/* 1800 */ 181, 297, 722, 720, 719, 752, 299, 2532, 296, 755,
/* 1810 */ 2570, 2728, 298, 436, 179, 2534, 782, 2536, 2537, 777,
/* 1820 */ 1942, 800, 147, 1821, 1947, 1, 718, 2665, 193, 1945,
/* 1830 */ 61, 2704, 2640, 784, 209, 309, 2532, 156, 2381, 2570,
/* 1840 */ 2533, 356, 357, 116, 2534, 782, 2536, 2537, 777, 2605,
/* 1850 */ 800, 302, 2380, 779, 2379, 446, 789, 2624, 2533, 790,
/* 1860 */ 158, 358, 2621, 2491, 106, 2232, 2490, 108, 748, 2726,
/* 1870 */ 1361, 779, 362, 2486, 802, 2485, 2477, 2476, 2468, 2467,
/* 1880 */ 349, 2551, 2483, 2482, 2533, 2474, 2473, 2462, 2461, 2480,
/* 1890 */ 889, 2479, 2471, 2470, 2459, 2458, 2499, 779, 778, 2551,
/* 1900 */ 892, 894, 2456, 364, 366, 2455, 166, 2279, 386, 52,
/* 1910 */ 2451, 374, 385, 2450, 2499, 375, 778, 409, 410, 2449,
/* 1920 */ 82, 2444, 398, 478, 479, 2551, 1744, 1745, 212, 2442,
/* 1930 */ 483, 485, 486, 487, 1743, 2441, 433, 412, 2532, 2439,
/* 1940 */ 2499, 2570, 778, 492, 2438, 178, 2534, 782, 2536, 2537,
/* 1950 */ 777, 494, 800, 496, 2436, 498, 2532, 2437, 1732, 2570,
/* 1960 */ 2417, 216, 434, 384, 2534, 782, 2536, 2537, 777, 2416,
/* 1970 */ 800, 2533, 218, 1696, 83, 1695, 2394, 2393, 2392, 510,
/* 1980 */ 511, 2391, 2532, 2390, 779, 2570, 2341, 2533, 2666, 384,
/* 1990 */ 2534, 782, 2536, 2537, 777, 515, 800, 1639, 2338, 518,
/* 2000 */ 779, 2337, 2331, 2533, 521, 2328, 522, 221, 2327, 86,
/* 2010 */ 2326, 2325, 2551, 2330, 223, 2329, 776, 2324, 2323, 2321,
/* 2020 */ 2320, 2319, 225, 538, 2318, 540, 2316, 2499, 2551, 778,
/* 2030 */ 2315, 2314, 2313, 2336, 2312, 2311, 2310, 2334, 2317, 2309,
/* 2040 */ 2308, 2307, 2305, 2499, 2551, 778, 2304, 2303, 2302, 2301,
/* 2050 */ 2300, 2299, 227, 2298, 92, 2297, 2296, 2295, 2335, 2499,
/* 2060 */ 2333, 778, 2533, 2294, 2293, 1645, 2292, 2291, 232, 2532,
/* 2070 */ 575, 2290, 2570, 577, 2289, 779, 377, 2534, 782, 2536,
/* 2080 */ 2537, 777, 2288, 800, 1497, 2532, 2132, 1501, 2570, 240,
/* 2090 */ 235, 1493, 179, 2534, 782, 2536, 2537, 777, 2131, 800,
/* 2100 */ 2130, 2532, 400, 2551, 2570, 593, 2124, 2117, 383, 2534,
/* 2110 */ 782, 2536, 2537, 777, 2128, 800, 2125, 2590, 2499, 401,
/* 2120 */ 778, 594, 743, 595, 237, 597, 238, 598, 601, 599,
/* 2130 */ 602, 2104, 605, 2079, 603, 79, 188, 1385, 2078, 2533,
/* 2140 */ 443, 2415, 242, 2519, 80, 198, 613, 2727, 2411, 2401,
/* 2150 */ 2389, 249, 779, 251, 2388, 2365, 2209, 254, 2127, 2123,
/* 2160 */ 2532, 631, 1432, 2570, 632, 2121, 635, 384, 2534, 782,
/* 2170 */ 2536, 2537, 777, 636, 800, 2119, 633, 2533, 637, 639,
/* 2180 */ 2551, 640, 641, 2116, 643, 645, 644, 2099, 2097, 2098,
/* 2190 */ 779, 260, 72, 1573, 1574, 2499, 2096, 778, 2533, 2075,
/* 2200 */ 2211, 2210, 1469, 1483, 1482, 1480, 1478, 1477, 2114, 1476,
/* 2210 */ 1475, 779, 861, 1474, 863, 1471, 424, 445, 2551, 1470,
/* 2220 */ 2112, 1468, 2103, 2101, 425, 426, 427, 677, 2074, 680,
/* 2230 */ 2073, 2072, 684, 2499, 2071, 778, 2070, 2532, 688, 2551,
/* 2240 */ 2570, 119, 686, 1726, 384, 2534, 782, 2536, 2537, 777,
/* 2250 */ 1728, 800, 1725, 1730, 2499, 2414, 778, 2410, 28, 2533,
/* 2260 */ 67, 282, 1702, 56, 1704, 2400, 707, 57, 708, 2387,
/* 2270 */ 2386, 2710, 779, 20, 17, 694, 723, 6, 2570, 7,
/* 2280 */ 432, 171, 379, 2534, 782, 2536, 2537, 777, 65, 800,
/* 2290 */ 286, 713, 30, 1706, 1681, 1680, 2532, 289, 2533, 2570,
/* 2300 */ 2551, 2000, 727, 369, 2534, 782, 2536, 2537, 777, 715,
/* 2310 */ 800, 779, 21, 22, 2533, 2499, 725, 778, 1974, 291,
/* 2320 */ 729, 192, 1981, 203, 2520, 180, 191, 779, 32, 24,
/* 2330 */ 2015, 31, 2533, 305, 1968, 2014, 437, 2019, 2018, 2551,
/* 2340 */ 81, 438, 59, 2020, 2385, 779, 2021, 2364, 103, 1939,
/* 2350 */ 25, 183, 23, 1938, 2499, 2551, 778, 2532, 102, 1891,
/* 2360 */ 2570, 1890, 13, 1809, 368, 2534, 782, 2536, 2537, 777,
/* 2370 */ 2499, 800, 778, 2551, 1901, 1866, 184, 11, 38, 194,
/* 2380 */ 1865, 1835, 2363, 58, 16, 26, 1843, 104, 2499, 27,
/* 2390 */ 778, 313, 781, 801, 1976, 18, 2532, 195, 319, 2570,
/* 2400 */ 324, 69, 2036, 370, 2534, 782, 2536, 2537, 777, 2035,
/* 2410 */ 800, 1868, 2532, 109, 105, 2570, 2034, 321, 2575, 376,
/* 2420 */ 2534, 782, 2536, 2537, 777, 2574, 800, 799, 68, 807,
/* 2430 */ 2532, 1559, 462, 2570, 2533, 787, 809, 380, 2534, 782,
/* 2440 */ 2536, 2537, 777, 1556, 800, 811, 812, 779, 1555, 814,
/* 2450 */ 2533, 1552, 2033, 815, 817, 818, 820, 1546, 1544, 821,
/* 2460 */ 823, 824, 1550, 779, 1549, 1548, 2533, 348, 110, 111,
/* 2470 */ 1547, 1564, 1568, 1430, 78, 2551, 1465, 838, 1462, 779,
/* 2480 */ 1461, 1460, 1459, 1457, 1455, 1454, 849, 1453, 1491, 1490,
/* 2490 */ 2499, 2551, 778, 210, 851, 1451, 1450, 1448, 1449, 1447,
/* 2500 */ 1446, 1445, 1487, 1485, 1442, 1441, 2499, 2551, 778, 1438,
/* 2510 */ 1437, 1436, 2122, 1435, 871, 2120, 872, 2118, 875, 879,
/* 2520 */ 873, 876, 2499, 2115, 778, 2533, 877, 881, 883, 885,
/* 2530 */ 880, 2095, 2532, 887, 884, 2570, 1374, 2069, 779, 371,
/* 2540 */ 2534, 782, 2536, 2537, 777, 893, 800, 1362, 2532, 891,
/* 2550 */ 352, 2570, 2533, 897, 1795, 381, 2534, 782, 2536, 2537,
/* 2560 */ 777, 363, 800, 2039, 2532, 779, 2551, 2570, 896, 2039,
/* 2570 */ 2039, 372, 2534, 782, 2536, 2537, 777, 2039, 800, 2039,
/* 2580 */ 2039, 2499, 2039, 778, 2039, 2039, 2039, 2039, 2039, 2039,
/* 2590 */ 2039, 2039, 2039, 2551, 2039, 2039, 2039, 2039, 2039, 2039,
/* 2600 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2533, 2499, 2039,
/* 2610 */ 778, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 2620 */ 779, 2039, 2039, 2532, 2039, 2039, 2570, 2039, 2039, 2039,
/* 2630 */ 382, 2534, 782, 2536, 2537, 777, 2039, 800, 2039, 2039,
/* 2640 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2551, 2039,
/* 2650 */ 2532, 2039, 2039, 2570, 2039, 2039, 2039, 373, 2534, 782,
/* 2660 */ 2536, 2537, 777, 2499, 800, 778, 2533, 2039, 2039, 2039,
/* 2670 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 779,
/* 2680 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2533,
/* 2690 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 2700 */ 2039, 2039, 779, 2039, 2039, 2532, 2039, 2551, 2570, 2039,
/* 2710 */ 2039, 2039, 388, 2534, 782, 2536, 2537, 777, 2039, 800,
/* 2720 */ 2039, 2039, 2499, 2039, 778, 2039, 2039, 2533, 2039, 2039,
/* 2730 */ 2551, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 2740 */ 779, 2039, 2039, 2039, 2039, 2499, 2039, 778, 2039, 2039,
/* 2750 */ 2533, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 2760 */ 2039, 2039, 2039, 779, 2532, 2039, 2533, 2570, 2551, 2039,
/* 2770 */ 2039, 389, 2534, 782, 2536, 2537, 777, 2039, 800, 779,
/* 2780 */ 2039, 2039, 2039, 2499, 2039, 778, 2039, 2532, 2039, 2039,
/* 2790 */ 2570, 2551, 2039, 2039, 2545, 2534, 782, 2536, 2537, 777,
/* 2800 */ 2039, 800, 2039, 2039, 2039, 2039, 2499, 2551, 778, 2039,
/* 2810 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 2820 */ 2039, 2039, 2499, 2039, 778, 2532, 2039, 2039, 2570, 2039,
/* 2830 */ 2039, 2039, 2544, 2534, 782, 2536, 2537, 777, 2039, 800,
/* 2840 */ 2039, 2533, 2039, 2039, 2039, 2039, 2039, 2039, 2532, 2039,
/* 2850 */ 2039, 2570, 2039, 2039, 779, 2543, 2534, 782, 2536, 2537,
/* 2860 */ 777, 2039, 800, 2039, 2532, 2039, 2039, 2570, 2533, 2039,
/* 2870 */ 2039, 406, 2534, 782, 2536, 2537, 777, 2039, 800, 2039,
/* 2880 */ 2039, 779, 2551, 2039, 2039, 2039, 2039, 2533, 2039, 2039,
/* 2890 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2499, 2039, 778,
/* 2900 */ 779, 2039, 2039, 2533, 2039, 2039, 2039, 2039, 2039, 2551,
/* 2910 */ 2039, 2039, 2039, 2039, 2039, 2039, 779, 2039, 2039, 2039,
/* 2920 */ 2039, 2039, 2039, 2039, 2499, 2039, 778, 2039, 2551, 2039,
/* 2930 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2532,
/* 2940 */ 2039, 2039, 2570, 2499, 2551, 778, 407, 2534, 782, 2536,
/* 2950 */ 2537, 777, 2039, 800, 2039, 2039, 2039, 2039, 2039, 2499,
/* 2960 */ 2039, 778, 2039, 2039, 2039, 2039, 2532, 2039, 2039, 2570,
/* 2970 */ 2039, 2039, 2039, 403, 2534, 782, 2536, 2537, 777, 2039,
/* 2980 */ 800, 2039, 2039, 2039, 2039, 2532, 2039, 2039, 2570, 2039,
/* 2990 */ 2039, 2039, 408, 2534, 782, 2536, 2537, 777, 2039, 800,
/* 3000 */ 2039, 780, 2039, 2039, 2570, 2039, 2039, 2039, 379, 2534,
/* 3010 */ 782, 2536, 2537, 777, 2039, 800, 2039, 2039, 2039, 2533,
/* 3020 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 3030 */ 2039, 2039, 779, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 3040 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 3050 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 3060 */ 2551, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 3070 */ 2039, 2039, 2039, 2039, 2039, 2499, 2039, 778, 2039, 2039,
/* 3080 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 3090 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 3100 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039,
/* 3110 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2532, 2039, 2039,
/* 3120 */ 2570, 2039, 2039, 2039, 378, 2534, 782, 2536, 2537, 777,
/* 3130 */ 2039, 800,
};
static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 368, 402, 415, 371, 372, 418, 419, 373, 402, 410,
/* 10 */ 441, 402, 12, 13, 14, 446, 410, 411, 412, 420,
/* 20 */ 20, 412, 22, 8, 9, 20, 420, 12, 13, 14,
/* 30 */ 15, 16, 2, 481, 482, 35, 0, 37, 8, 9,
/* 40 */ 361, 20, 12, 13, 14, 15, 16, 373, 374, 4,
/* 50 */ 373, 374, 20, 374, 401, 421, 422, 0, 424, 373,
/* 60 */ 374, 492, 428, 492, 495, 65, 495, 393, 23, 416,
/* 70 */ 358, 71, 37, 492, 400, 360, 495, 362, 78, 393,
/* 80 */ 20, 402, 513, 514, 513, 514, 400, 518, 519, 518,
/* 90 */ 519, 46, 47, 48, 405, 514, 417, 408, 419, 518,
/* 100 */ 519, 39, 40, 405, 104, 403, 404, 107, 51, 73,
/* 110 */ 74, 75, 76, 77, 20, 79, 80, 81, 82, 83,
/* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
/* 130 */ 94, 95, 96, 97, 98, 99, 100, 419, 459, 107,
/* 140 */ 477, 462, 479, 143, 144, 466, 467, 468, 469, 470,
/* 150 */ 471, 462, 473, 441, 107, 437, 438, 478, 446, 480,
/* 160 */ 462, 465, 473, 484, 485, 488, 489, 490, 4, 492,
/* 170 */ 493, 473, 495, 111, 112, 402, 114, 389, 499, 69,
/* 180 */ 392, 181, 182, 410, 373, 374, 507, 491, 188, 189,
/* 190 */ 513, 514, 394, 420, 20, 518, 519, 20, 136, 22,
/* 200 */ 402, 107, 140, 203, 492, 205, 22, 495, 70, 419,
/* 210 */ 195, 413, 8, 9, 37, 405, 12, 13, 14, 15,
/* 220 */ 16, 37, 361, 441, 434, 513, 514, 437, 438, 138,
/* 230 */ 518, 519, 55, 142, 137, 374, 425, 237, 238, 239,
/* 240 */ 205, 241, 242, 243, 244, 245, 246, 247, 248, 249,
/* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 12,
/* 260 */ 13, 70, 78, 402, 18, 492, 20, 20, 495, 22,
/* 270 */ 441, 107, 462, 27, 492, 71, 30, 495, 417, 13,
/* 280 */ 419, 35, 35, 473, 37, 0, 513, 514, 104, 390,
/* 290 */ 368, 518, 519, 371, 372, 513, 514, 51, 374, 53,
/* 300 */ 518, 519, 20, 212, 58, 59, 215, 275, 198, 218,
/* 310 */ 20, 220, 65, 216, 217, 69, 417, 302, 71, 115,
/* 320 */ 459, 492, 275, 462, 495, 78, 402, 466, 467, 468,
/* 330 */ 469, 470, 471, 3, 473, 225, 226, 476, 21, 478,
/* 340 */ 479, 480, 513, 514, 78, 484, 485, 518, 519, 20,
/* 350 */ 20, 104, 106, 36, 107, 38, 39, 40, 73, 74,
/* 360 */ 75, 462, 463, 117, 369, 80, 81, 82, 373, 275,
/* 370 */ 375, 86, 473, 117, 373, 374, 91, 92, 93, 94,
/* 380 */ 1, 2, 97, 0, 180, 100, 477, 203, 479, 205,
/* 390 */ 143, 144, 468, 147, 148, 402, 150, 151, 152, 153,
/* 400 */ 154, 155, 156, 157, 158, 159, 413, 12, 13, 163,
/* 410 */ 164, 165, 166, 167, 168, 169, 0, 171, 172, 173,
/* 420 */ 3, 237, 238, 177, 178, 179, 425, 237, 181, 182,
/* 430 */ 184, 187, 37, 143, 144, 188, 189, 21, 108, 275,
/* 440 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 78,
/* 450 */ 203, 21, 205, 70, 24, 25, 26, 27, 28, 29,
/* 460 */ 30, 31, 32, 181, 182, 373, 262, 263, 264, 265,
/* 470 */ 266, 267, 268, 269, 270, 271, 272, 287, 288, 289,
/* 480 */ 290, 291, 292, 293, 237, 238, 239, 108, 241, 242,
/* 490 */ 243, 244, 245, 246, 247, 248, 249, 250, 251, 252,
/* 500 */ 253, 254, 255, 256, 257, 258, 259, 12, 13, 373,
/* 510 */ 374, 361, 183, 183, 18, 20, 369, 22, 259, 23,
/* 520 */ 373, 1, 375, 117, 374, 281, 282, 283, 284, 402,
/* 530 */ 35, 492, 37, 398, 495, 2, 40, 41, 34, 19,
/* 540 */ 44, 8, 9, 451, 452, 12, 13, 14, 15, 16,
/* 550 */ 54, 0, 402, 514, 427, 35, 429, 518, 519, 441,
/* 560 */ 65, 425, 66, 67, 68, 69, 71, 417, 239, 419,
/* 570 */ 0, 51, 20, 78, 22, 12, 13, 14, 15, 16,
/* 580 */ 60, 61, 62, 63, 403, 65, 361, 373, 374, 8,
/* 590 */ 9, 456, 51, 12, 13, 14, 15, 16, 383, 104,
/* 600 */ 205, 60, 107, 107, 63, 64, 391, 55, 441, 459,
/* 610 */ 492, 361, 462, 495, 33, 20, 466, 467, 468, 469,
/* 620 */ 470, 471, 52, 473, 373, 374, 106, 14, 478, 109,
/* 630 */ 480, 513, 514, 20, 484, 485, 518, 519, 143, 144,
/* 640 */ 20, 145, 417, 373, 393, 73, 74, 75, 373, 374,
/* 650 */ 373, 374, 80, 81, 82, 137, 138, 507, 86, 492,
/* 660 */ 142, 141, 495, 91, 92, 93, 94, 417, 393, 97,
/* 670 */ 373, 374, 100, 87, 65, 107, 181, 182, 402, 391,
/* 680 */ 513, 514, 20, 188, 189, 518, 519, 411, 412, 108,
/* 690 */ 393, 195, 196, 197, 373, 374, 200, 20, 203, 50,
/* 700 */ 205, 487, 488, 489, 490, 185, 492, 493, 476, 213,
/* 710 */ 214, 479, 192, 162, 297, 106, 373, 166, 109, 403,
/* 720 */ 224, 451, 452, 227, 65, 174, 230, 231, 232, 233,
/* 730 */ 234, 211, 237, 238, 239, 149, 241, 242, 243, 244,
/* 740 */ 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
/* 750 */ 255, 256, 257, 258, 12, 13, 14, 418, 419, 361,
/* 760 */ 174, 175, 20, 0, 22, 488, 489, 490, 109, 492,
/* 770 */ 493, 275, 374, 403, 376, 432, 433, 35, 183, 37,
/* 780 */ 354, 355, 356, 357, 107, 176, 361, 24, 25, 26,
/* 790 */ 27, 28, 29, 30, 31, 32, 373, 374, 20, 374,
/* 800 */ 402, 376, 441, 183, 382, 143, 144, 65, 0, 488,
/* 810 */ 489, 490, 403, 492, 493, 417, 393, 419, 8, 9,
/* 820 */ 78, 399, 12, 13, 14, 15, 16, 402, 447, 8,
/* 830 */ 9, 409, 183, 12, 13, 14, 15, 16, 20, 14,
/* 840 */ 191, 20, 417, 275, 419, 20, 104, 107, 361, 107,
/* 850 */ 188, 189, 14, 492, 402, 465, 495, 459, 20, 239,
/* 860 */ 462, 374, 410, 376, 466, 467, 468, 469, 470, 471,
/* 870 */ 414, 473, 420, 417, 513, 514, 478, 23, 480, 518,
/* 880 */ 519, 491, 484, 485, 459, 143, 144, 462, 259, 402,
/* 890 */ 261, 466, 467, 468, 469, 470, 471, 0, 473, 373,
/* 900 */ 374, 47, 48, 478, 417, 480, 419, 8, 9, 484,
/* 910 */ 485, 12, 13, 14, 15, 16, 403, 380, 37, 393,
/* 920 */ 22, 8, 9, 181, 182, 12, 13, 14, 15, 16,
/* 930 */ 188, 189, 8, 9, 397, 37, 12, 13, 14, 15,
/* 940 */ 16, 107, 202, 406, 204, 203, 459, 205, 180, 462,
/* 950 */ 116, 37, 361, 466, 467, 468, 469, 470, 471, 181,
/* 960 */ 473, 403, 373, 374, 361, 478, 136, 480, 160, 161,
/* 970 */ 140, 484, 485, 37, 234, 414, 78, 374, 417, 237,
/* 980 */ 238, 239, 393, 241, 242, 243, 244, 245, 246, 247,
/* 990 */ 248, 249, 250, 251, 252, 253, 254, 255, 256, 257,
/* 1000 */ 258, 12, 13, 361, 183, 402, 181, 108, 417, 20,
/* 1010 */ 22, 22, 373, 374, 78, 275, 374, 239, 376, 181,
/* 1020 */ 417, 108, 419, 402, 35, 37, 37, 14, 15, 16,
/* 1030 */ 262, 410, 393, 136, 137, 138, 139, 140, 141, 142,
/* 1040 */ 272, 420, 362, 22, 402, 0, 136, 137, 138, 139,
/* 1050 */ 140, 141, 142, 402, 65, 373, 374, 239, 37, 417,
/* 1060 */ 239, 419, 459, 465, 239, 462, 176, 78, 390, 466,
/* 1070 */ 467, 468, 469, 470, 471, 393, 473, 239, 373, 374,
/* 1080 */ 429, 478, 13, 480, 56, 57, 205, 484, 485, 491,
/* 1090 */ 361, 395, 104, 104, 398, 417, 107, 207, 393, 361,
/* 1100 */ 402, 459, 403, 374, 462, 376, 37, 183, 466, 467,
/* 1110 */ 468, 469, 470, 471, 4, 473, 235, 236, 420, 205,
/* 1120 */ 478, 430, 480, 373, 374, 104, 484, 485, 394, 19,
/* 1130 */ 4, 402, 143, 144, 373, 374, 402, 35, 373, 374,
/* 1140 */ 462, 463, 464, 393, 33, 35, 417, 413, 419, 235,
/* 1150 */ 236, 473, 0, 51, 393, 417, 373, 374, 393, 373,
/* 1160 */ 374, 51, 60, 61, 62, 63, 361, 65, 58, 59,
/* 1170 */ 181, 182, 402, 373, 374, 65, 393, 188, 189, 393,
/* 1180 */ 410, 136, 137, 138, 139, 140, 141, 142, 459, 380,
/* 1190 */ 420, 462, 203, 393, 205, 466, 467, 468, 469, 470,
/* 1200 */ 471, 361, 473, 361, 373, 374, 42, 478, 106, 480,
/* 1210 */ 361, 109, 20, 484, 485, 406, 106, 20, 361, 109,
/* 1220 */ 361, 361, 417, 374, 393, 376, 237, 238, 239, 361,
/* 1230 */ 241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
/* 1240 */ 251, 252, 253, 254, 255, 256, 257, 258, 12, 13,
/* 1250 */ 37, 402, 373, 374, 361, 71, 20, 417, 22, 417,
/* 1260 */ 13, 373, 374, 378, 379, 361, 417, 361, 419, 361,
/* 1270 */ 361, 35, 393, 37, 417, 33, 417, 417, 176, 12,
/* 1280 */ 13, 393, 361, 361, 37, 417, 0, 185, 186, 22,
/* 1290 */ 361, 78, 387, 388, 192, 193, 378, 379, 387, 388,
/* 1300 */ 414, 65, 35, 417, 37, 364, 365, 117, 459, 382,
/* 1310 */ 417, 462, 33, 211, 78, 466, 467, 468, 469, 470,
/* 1320 */ 471, 417, 473, 417, 45, 417, 417, 478, 42, 480,
/* 1330 */ 402, 14, 65, 484, 485, 402, 409, 20, 417, 417,
/* 1340 */ 104, 33, 361, 107, 33, 78, 417, 104, 420, 273,
/* 1350 */ 274, 110, 511, 420, 113, 374, 0, 219, 33, 221,
/* 1360 */ 170, 118, 119, 120, 121, 122, 123, 124, 125, 126,
/* 1370 */ 127, 104, 129, 130, 131, 132, 133, 134, 135, 143,
/* 1380 */ 144, 229, 0, 402, 12, 13, 0, 33, 110, 33,
/* 1390 */ 110, 113, 110, 113, 22, 113, 33, 522, 417, 45,
/* 1400 */ 419, 0, 37, 277, 22, 0, 49, 35, 22, 37,
/* 1410 */ 299, 143, 144, 1, 2, 377, 108, 181, 182, 108,
/* 1420 */ 33, 237, 33, 22, 188, 189, 33, 22, 33, 12,
/* 1430 */ 13, 239, 33, 108, 504, 33, 239, 65, 274, 203,
/* 1440 */ 459, 205, 33, 462, 12, 13, 402, 466, 467, 468,
/* 1450 */ 469, 470, 471, 33, 473, 361, 33, 390, 33, 478,
/* 1460 */ 33, 480, 12, 13, 107, 484, 485, 390, 374, 33,
/* 1470 */ 203, 108, 205, 237, 238, 239, 33, 241, 242, 243,
/* 1480 */ 244, 245, 246, 247, 248, 249, 250, 251, 252, 253,
/* 1490 */ 254, 255, 256, 257, 258, 108, 402, 108, 12, 13,
/* 1500 */ 430, 108, 372, 108, 237, 238, 33, 108, 12, 13,
/* 1510 */ 108, 417, 430, 419, 12, 13, 33, 108, 251, 252,
/* 1520 */ 253, 254, 255, 256, 257, 33, 12, 13, 108, 510,
/* 1530 */ 13, 108, 361, 108, 13, 108, 12, 13, 33, 12,
/* 1540 */ 13, 12, 13, 301, 108, 374, 12, 13, 440, 510,
/* 1550 */ 510, 108, 510, 459, 37, 377, 462, 430, 37, 374,
/* 1560 */ 466, 467, 468, 469, 470, 471, 416, 473, 448, 430,
/* 1570 */ 205, 430, 478, 402, 480, 203, 361, 205, 484, 485,
/* 1580 */ 494, 108, 486, 515, 497, 392, 442, 278, 417, 374,
/* 1590 */ 419, 108, 51, 461, 42, 460, 20, 218, 453, 382,
/* 1600 */ 108, 458, 453, 382, 201, 361, 444, 235, 236, 237,
/* 1610 */ 20, 373, 20, 108, 374, 45, 105, 402, 374, 374,
/* 1620 */ 426, 426, 180, 251, 252, 253, 254, 255, 256, 257,
/* 1630 */ 459, 423, 417, 462, 419, 361, 373, 466, 467, 468,
/* 1640 */ 469, 470, 471, 374, 473, 373, 402, 423, 374, 426,
/* 1650 */ 423, 480, 423, 103, 373, 484, 485, 386, 385, 102,
/* 1660 */ 384, 417, 373, 419, 373, 373, 20, 366, 50, 370,
/* 1670 */ 366, 453, 370, 20, 459, 382, 402, 462, 382, 361,
/* 1680 */ 419, 466, 467, 468, 469, 470, 471, 382, 473, 20,
/* 1690 */ 375, 417, 374, 419, 20, 480, 443, 375, 382, 484,
/* 1700 */ 485, 382, 20, 459, 373, 382, 462, 366, 433, 361,
/* 1710 */ 466, 467, 468, 469, 470, 471, 382, 473, 382, 373,
/* 1720 */ 402, 366, 374, 402, 480, 364, 402, 417, 484, 485,
/* 1730 */ 402, 402, 402, 459, 402, 417, 462, 419, 361, 402,
/* 1740 */ 466, 467, 468, 469, 470, 471, 472, 473, 474, 475,
/* 1750 */ 402, 374, 402, 402, 402, 402, 364, 417, 222, 417,
/* 1760 */ 457, 107, 455, 380, 20, 417, 453, 419, 209, 208,
/* 1770 */ 380, 373, 452, 286, 285, 417, 450, 459, 419, 402,
/* 1780 */ 462, 442, 449, 506, 466, 467, 468, 469, 470, 471,
/* 1790 */ 503, 473, 294, 503, 417, 435, 419, 435, 194, 505,
/* 1800 */ 503, 501, 296, 295, 279, 298, 442, 459, 502, 300,
/* 1810 */ 462, 523, 500, 303, 466, 467, 468, 469, 470, 471,
/* 1820 */ 274, 473, 374, 20, 117, 498, 508, 509, 375, 276,
/* 1830 */ 107, 517, 465, 417, 496, 380, 459, 380, 417, 462,
/* 1840 */ 361, 435, 435, 466, 467, 468, 469, 470, 471, 483,
/* 1850 */ 473, 516, 417, 374, 417, 417, 186, 480, 361, 431,
/* 1860 */ 380, 398, 485, 417, 380, 374, 417, 107, 520, 521,
/* 1870 */ 22, 374, 373, 417, 407, 417, 417, 417, 417, 417,
/* 1880 */ 380, 402, 417, 417, 361, 417, 417, 417, 417, 417,
/* 1890 */ 38, 417, 417, 417, 417, 417, 417, 374, 419, 402,
/* 1900 */ 363, 366, 417, 381, 359, 417, 367, 417, 454, 445,
/* 1910 */ 0, 396, 396, 0, 417, 396, 419, 436, 436, 0,
/* 1920 */ 45, 0, 404, 37, 228, 402, 37, 37, 37, 0,
/* 1930 */ 228, 37, 37, 228, 37, 0, 439, 228, 459, 0,
/* 1940 */ 417, 462, 419, 37, 0, 466, 467, 468, 469, 470,
/* 1950 */ 471, 37, 473, 22, 0, 37, 459, 0, 223, 462,
/* 1960 */ 0, 211, 439, 466, 467, 468, 469, 470, 471, 0,
/* 1970 */ 473, 361, 211, 205, 212, 203, 0, 0, 0, 199,
/* 1980 */ 198, 0, 459, 0, 374, 462, 148, 361, 509, 466,
/* 1990 */ 467, 468, 469, 470, 471, 49, 473, 49, 0, 37,
/* 2000 */ 374, 0, 0, 361, 37, 0, 51, 49, 0, 45,
/* 2010 */ 0, 0, 402, 0, 49, 0, 374, 0, 0, 0,
/* 2020 */ 0, 0, 166, 37, 0, 166, 0, 417, 402, 419,
/* 2030 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 2040 */ 0, 0, 0, 417, 402, 419, 0, 0, 0, 0,
/* 2050 */ 0, 0, 49, 0, 45, 0, 0, 0, 0, 417,
/* 2060 */ 0, 419, 361, 0, 0, 22, 0, 0, 148, 459,
/* 2070 */ 147, 0, 462, 146, 0, 374, 466, 467, 468, 469,
/* 2080 */ 470, 471, 0, 473, 22, 459, 0, 22, 462, 45,
/* 2090 */ 65, 37, 466, 467, 468, 469, 470, 471, 0, 473,
/* 2100 */ 0, 459, 50, 402, 462, 37, 0, 0, 466, 467,
/* 2110 */ 468, 469, 470, 471, 0, 473, 0, 475, 417, 50,
/* 2120 */ 419, 51, 512, 42, 65, 37, 65, 51, 37, 42,
/* 2130 */ 51, 0, 37, 0, 42, 42, 33, 14, 0, 361,
/* 2140 */ 439, 0, 43, 49, 42, 49, 49, 521, 0, 0,
/* 2150 */ 0, 42, 374, 194, 0, 0, 0, 49, 0, 0,
/* 2160 */ 459, 37, 72, 462, 51, 0, 37, 466, 467, 468,
/* 2170 */ 469, 470, 471, 51, 473, 0, 42, 361, 42, 37,
/* 2180 */ 402, 51, 42, 0, 37, 42, 51, 0, 0, 0,
/* 2190 */ 374, 113, 115, 22, 37, 417, 0, 419, 361, 0,
/* 2200 */ 0, 0, 22, 37, 37, 37, 37, 37, 0, 37,
/* 2210 */ 37, 374, 33, 37, 33, 37, 22, 439, 402, 37,
/* 2220 */ 0, 37, 0, 0, 22, 22, 22, 53, 0, 37,
/* 2230 */ 0, 0, 37, 417, 0, 419, 0, 459, 22, 402,
/* 2240 */ 462, 20, 37, 37, 466, 467, 468, 469, 470, 471,
/* 2250 */ 37, 473, 37, 108, 417, 0, 419, 0, 107, 361,
/* 2260 */ 107, 49, 37, 183, 22, 0, 22, 183, 183, 0,
/* 2270 */ 0, 3, 374, 33, 280, 459, 37, 50, 462, 50,
/* 2280 */ 37, 206, 466, 467, 468, 469, 470, 471, 3, 473,
/* 2290 */ 186, 190, 107, 210, 183, 183, 459, 107, 361, 462,
/* 2300 */ 402, 108, 105, 466, 467, 468, 469, 470, 471, 190,
/* 2310 */ 473, 374, 33, 33, 361, 417, 107, 419, 108, 108,
/* 2320 */ 103, 33, 108, 49, 49, 107, 107, 374, 33, 33,
/* 2330 */ 37, 107, 361, 49, 108, 37, 37, 37, 37, 402,
/* 2340 */ 107, 37, 33, 108, 0, 374, 108, 0, 42, 108,
/* 2350 */ 33, 49, 280, 108, 417, 402, 419, 459, 107, 105,
/* 2360 */ 462, 105, 2, 22, 466, 467, 468, 469, 470, 471,
/* 2370 */ 417, 473, 419, 402, 237, 108, 49, 260, 107, 49,
/* 2380 */ 108, 108, 0, 273, 107, 107, 22, 42, 417, 107,
/* 2390 */ 419, 108, 240, 117, 108, 280, 459, 107, 107, 462,
/* 2400 */ 49, 107, 22, 466, 467, 468, 469, 470, 471, 22,
/* 2410 */ 473, 108, 459, 116, 107, 462, 22, 185, 107, 466,
/* 2420 */ 467, 468, 469, 470, 471, 107, 473, 107, 107, 37,
/* 2430 */ 459, 108, 37, 462, 361, 187, 107, 466, 467, 468,
/* 2440 */ 469, 470, 471, 108, 473, 37, 107, 374, 108, 37,
/* 2450 */ 361, 108, 334, 107, 37, 107, 37, 108, 108, 107,
/* 2460 */ 37, 107, 128, 374, 128, 128, 361, 33, 107, 107,
/* 2470 */ 128, 22, 37, 72, 107, 402, 37, 71, 37, 374,
/* 2480 */ 37, 37, 37, 37, 37, 37, 101, 37, 78, 78,
/* 2490 */ 417, 402, 419, 33, 101, 37, 37, 22, 37, 37,
/* 2500 */ 37, 37, 78, 37, 37, 37, 417, 402, 419, 37,
/* 2510 */ 37, 22, 0, 37, 37, 0, 51, 0, 37, 37,
/* 2520 */ 42, 51, 417, 0, 419, 361, 42, 42, 37, 42,
/* 2530 */ 51, 0, 459, 37, 51, 462, 37, 0, 374, 466,
/* 2540 */ 467, 468, 469, 470, 471, 21, 473, 22, 459, 33,
/* 2550 */ 22, 462, 361, 20, 22, 466, 467, 468, 469, 470,
/* 2560 */ 471, 22, 473, 524, 459, 374, 402, 462, 21, 524,
/* 2570 */ 524, 466, 467, 468, 469, 470, 471, 524, 473, 524,
/* 2580 */ 524, 417, 524, 419, 524, 524, 524, 524, 524, 524,
/* 2590 */ 524, 524, 524, 402, 524, 524, 524, 524, 524, 524,
/* 2600 */ 524, 524, 524, 524, 524, 524, 524, 361, 417, 524,
/* 2610 */ 419, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 2620 */ 374, 524, 524, 459, 524, 524, 462, 524, 524, 524,
/* 2630 */ 466, 467, 468, 469, 470, 471, 524, 473, 524, 524,
/* 2640 */ 524, 524, 524, 524, 524, 524, 524, 524, 402, 524,
/* 2650 */ 459, 524, 524, 462, 524, 524, 524, 466, 467, 468,
/* 2660 */ 469, 470, 471, 417, 473, 419, 361, 524, 524, 524,
/* 2670 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 374,
/* 2680 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 361,
/* 2690 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 2700 */ 524, 524, 374, 524, 524, 459, 524, 402, 462, 524,
/* 2710 */ 524, 524, 466, 467, 468, 469, 470, 471, 524, 473,
/* 2720 */ 524, 524, 417, 524, 419, 524, 524, 361, 524, 524,
/* 2730 */ 402, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 2740 */ 374, 524, 524, 524, 524, 417, 524, 419, 524, 524,
/* 2750 */ 361, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 2760 */ 524, 524, 524, 374, 459, 524, 361, 462, 402, 524,
/* 2770 */ 524, 466, 467, 468, 469, 470, 471, 524, 473, 374,
/* 2780 */ 524, 524, 524, 417, 524, 419, 524, 459, 524, 524,
/* 2790 */ 462, 402, 524, 524, 466, 467, 468, 469, 470, 471,
/* 2800 */ 524, 473, 524, 524, 524, 524, 417, 402, 419, 524,
/* 2810 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 2820 */ 524, 524, 417, 524, 419, 459, 524, 524, 462, 524,
/* 2830 */ 524, 524, 466, 467, 468, 469, 470, 471, 524, 473,
/* 2840 */ 524, 361, 524, 524, 524, 524, 524, 524, 459, 524,
/* 2850 */ 524, 462, 524, 524, 374, 466, 467, 468, 469, 470,
/* 2860 */ 471, 524, 473, 524, 459, 524, 524, 462, 361, 524,
/* 2870 */ 524, 466, 467, 468, 469, 470, 471, 524, 473, 524,
/* 2880 */ 524, 374, 402, 524, 524, 524, 524, 361, 524, 524,
/* 2890 */ 524, 524, 524, 524, 524, 524, 524, 417, 524, 419,
/* 2900 */ 374, 524, 524, 361, 524, 524, 524, 524, 524, 402,
/* 2910 */ 524, 524, 524, 524, 524, 524, 374, 524, 524, 524,
/* 2920 */ 524, 524, 524, 524, 417, 524, 419, 524, 402, 524,
/* 2930 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 459,
/* 2940 */ 524, 524, 462, 417, 402, 419, 466, 467, 468, 469,
/* 2950 */ 470, 471, 524, 473, 524, 524, 524, 524, 524, 417,
/* 2960 */ 524, 419, 524, 524, 524, 524, 459, 524, 524, 462,
/* 2970 */ 524, 524, 524, 466, 467, 468, 469, 470, 471, 524,
/* 2980 */ 473, 524, 524, 524, 524, 459, 524, 524, 462, 524,
/* 2990 */ 524, 524, 466, 467, 468, 469, 470, 471, 524, 473,
/* 3000 */ 524, 459, 524, 524, 462, 524, 524, 524, 466, 467,
/* 3010 */ 468, 469, 470, 471, 524, 473, 524, 524, 524, 361,
/* 3020 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 3030 */ 524, 524, 374, 524, 524, 524, 524, 524, 524, 524,
/* 3040 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 3050 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 3060 */ 402, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 3070 */ 524, 524, 524, 524, 524, 417, 524, 419, 524, 524,
/* 3080 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 3090 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 3100 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 524,
/* 3110 */ 524, 524, 524, 524, 524, 524, 524, 459, 524, 524,
/* 3120 */ 462, 524, 524, 524, 466, 467, 468, 469, 470, 471,
/* 3130 */ 524, 473, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3140 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3150 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3160 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3170 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3180 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3190 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3200 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3210 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3220 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3230 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3240 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3250 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3260 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3270 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3280 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3290 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3300 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3310 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3320 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3330 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3340 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3350 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3360 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3370 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3380 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3390 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3400 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3410 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3420 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3430 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3440 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3450 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3460 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3470 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
/* 3480 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358,
};
#define YY_SHIFT_COUNT (898)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (2547)
static const unsigned short int yy_shift_ofst[] = {
/* 0 */ 496, 0, 247, 0, 495, 495, 495, 495, 495, 495,
/* 10 */ 495, 495, 495, 495, 495, 495, 742, 989, 989, 1236,
/* 20 */ 989, 989, 989, 989, 989, 989, 989, 989, 989, 989,
/* 30 */ 989, 989, 989, 989, 989, 989, 989, 989, 989, 989,
/* 40 */ 989, 989, 989, 989, 989, 989, 989, 989, 989, 989,
/* 50 */ 32, 94, 740, 677, 47, 568, 47, 47, 677, 677,
/* 60 */ 47, 1267, 47, 246, 1267, 164, 47, 5, 1372, 662,
/* 70 */ 21, 21, 1372, 1372, 45, 45, 662, 282, 290, 613,
/* 80 */ 613, 818, 21, 21, 21, 21, 21, 21, 21, 21,
/* 90 */ 21, 21, 21, 60, 174, 21, 21, 138, 5, 21,
/* 100 */ 60, 21, 5, 21, 21, 5, 21, 21, 5, 21,
/* 110 */ 5, 5, 5, 21, 191, 204, 204, 1243, 572, 430,
/* 120 */ 184, 184, 184, 184, 184, 184, 184, 184, 184, 184,
/* 130 */ 184, 184, 184, 184, 184, 184, 184, 184, 184, 62,
/* 140 */ 330, 282, 290, 1028, 1028, 936, 595, 595, 595, 629,
/* 150 */ 629, 383, 266, 936, 138, 256, 5, 259, 5, 5,
/* 160 */ 5, 371, 5, 371, 371, 406, 504, 1243, 1243, 1243,
/* 170 */ 1243, 1243, 1243, 1243, 1243, 520, 285, 416, 821, 15,
/* 180 */ 190, 244, 177, 825, 838, 395, 395, 329, 854, 620,
/* 190 */ 898, 898, 898, 649, 778, 898, 552, 1192, 1317, 830,
/* 200 */ 890, 1192, 1192, 1197, 1076, 1164, 417, 1076, 1279, 1126,
/* 210 */ 266, 1309, 1541, 1552, 1576, 1379, 138, 1576, 138, 1403,
/* 220 */ 1590, 1592, 1570, 1592, 1570, 1442, 1590, 1592, 1590, 1570,
/* 230 */ 1442, 1442, 1442, 1511, 1550, 1590, 1557, 1590, 1590, 1590,
/* 240 */ 1646, 1618, 1646, 1618, 1576, 138, 138, 1653, 138, 1669,
/* 250 */ 1674, 138, 1669, 138, 1682, 138, 138, 1590, 138, 1646,
/* 260 */ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
/* 270 */ 5, 1590, 504, 504, 1646, 371, 371, 371, 1536, 1654,
/* 280 */ 1576, 191, 1744, 1559, 1561, 1653, 191, 1309, 1590, 371,
/* 290 */ 1487, 1489, 1487, 1489, 1498, 1604, 1487, 1506, 1508, 1525,
/* 300 */ 1309, 1510, 1509, 1507, 1546, 1592, 1803, 1707, 1553, 1669,
/* 310 */ 191, 191, 1723, 1489, 371, 371, 371, 371, 1489, 371,
/* 320 */ 1670, 191, 406, 191, 1592, 371, 371, 371, 371, 371,
/* 330 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
/* 340 */ 371, 371, 371, 371, 371, 371, 371, 1760, 371, 1590,
/* 350 */ 191, 1848, 1852, 1646, 3132, 3132, 3132, 3132, 3132, 3132,
/* 360 */ 3132, 3132, 3132, 3132, 36, 1102, 763, 1110, 581, 899,
/* 370 */ 913, 30, 533, 924, 897, 1045, 810, 810, 810, 810,
/* 380 */ 810, 810, 810, 810, 810, 910, 91, 317, 563, 563,
/* 390 */ 110, 609, 551, 586, 541, 426, 881, 914, 426, 808,
/* 400 */ 988, 1021, 97, 1013, 379, 768, 1013, 1013, 1013, 518,
/* 410 */ 518, 57, 1152, 1311, 1286, 1354, 1190, 1356, 1241, 1278,
/* 420 */ 1280, 1282, 1069, 1247, 1382, 1386, 1401, 1405, 1138, 1308,
/* 430 */ 1325, 659, 1363, 1387, 1389, 1393, 1268, 1111, 1242, 1395,
/* 440 */ 1412, 1399, 1184, 1402, 1357, 1409, 1420, 1423, 1425, 1427,
/* 450 */ 1417, 1432, 1450, 1486, 1496, 1502, 1514, 1524, 1527, 1529,
/* 460 */ 1534, 1436, 1443, 1473, 1483, 1492, 1505, 834, 35, 1365,
/* 470 */ 1517, 1521, 1213, 570, 1910, 1913, 1919, 1875, 1921, 1886,
/* 480 */ 1696, 1889, 1890, 1891, 1702, 1929, 1894, 1895, 1705, 1897,
/* 490 */ 1935, 1709, 1939, 1906, 1944, 1914, 1957, 1931, 1954, 1918,
/* 500 */ 1735, 1960, 1750, 1969, 1761, 1762, 1768, 1772, 1976, 1977,
/* 510 */ 1978, 1780, 1782, 1981, 1983, 1838, 1946, 1948, 1998, 1962,
/* 520 */ 2001, 2002, 1967, 1955, 2005, 1958, 2008, 1964, 2010, 2011,
/* 530 */ 2013, 1965, 2015, 2017, 2018, 2019, 2020, 2021, 1856, 1986,
/* 540 */ 2024, 1859, 2026, 2030, 2031, 2032, 2033, 2034, 2035, 2036,
/* 550 */ 2037, 2038, 2039, 2040, 2041, 2042, 2046, 2047, 2048, 2049,
/* 560 */ 2050, 2003, 2051, 2009, 2053, 2055, 2056, 2057, 2058, 2060,
/* 570 */ 2063, 2064, 2043, 2066, 1920, 2067, 1923, 2071, 1927, 2074,
/* 580 */ 2082, 2062, 2052, 2065, 2069, 2086, 2025, 2054, 2098, 2059,
/* 590 */ 2100, 2061, 2114, 2116, 2068, 2070, 2081, 2106, 2088, 2076,
/* 600 */ 2087, 2107, 2091, 2079, 2092, 2131, 2095, 2133, 2044, 2093,
/* 610 */ 2103, 2094, 2096, 2123, 2097, 2138, 2099, 2102, 2141, 2148,
/* 620 */ 2149, 2150, 2109, 1959, 2154, 2094, 2108, 2155, 2156, 2090,
/* 630 */ 2158, 2159, 2124, 2113, 2134, 2165, 2129, 2122, 2136, 2175,
/* 640 */ 2142, 2130, 2140, 2183, 2147, 2135, 2143, 2187, 2188, 2189,
/* 650 */ 2196, 2199, 2200, 2077, 2078, 2157, 2171, 2201, 2166, 2167,
/* 660 */ 2168, 2169, 2170, 2172, 2173, 2176, 2179, 2181, 2178, 2182,
/* 670 */ 2180, 2184, 2208, 2194, 2220, 2202, 2222, 2203, 2174, 2223,
/* 680 */ 2204, 2192, 2228, 2230, 2231, 2195, 2234, 2205, 2236, 2216,
/* 690 */ 2221, 2206, 2213, 2215, 2145, 2151, 2255, 2080, 2153, 2083,
/* 700 */ 2094, 2212, 2257, 2084, 2225, 2242, 2265, 2075, 2244, 2085,
/* 710 */ 2104, 2269, 2270, 2111, 2101, 2112, 2119, 2268, 2240, 1994,
/* 720 */ 2185, 2193, 2190, 2210, 2239, 2243, 2209, 2227, 2197, 2229,
/* 730 */ 2217, 2211, 2279, 2280, 2214, 2218, 2219, 2224, 2226, 2288,
/* 740 */ 2274, 2275, 2233, 2295, 2072, 2235, 2238, 2285, 2296, 2115,
/* 750 */ 2293, 2298, 2299, 2300, 2301, 2304, 2241, 2245, 2284, 2110,
/* 760 */ 2309, 2302, 2344, 2347, 2251, 2306, 2317, 2254, 2117, 2256,
/* 770 */ 2360, 2341, 2137, 2267, 2271, 2272, 2327, 2277, 2278, 2330,
/* 780 */ 2273, 2364, 2152, 2282, 2283, 2286, 2290, 2291, 2248, 2294,
/* 790 */ 2382, 2345, 2232, 2307, 2297, 2094, 2351, 2311, 2318, 2303,
/* 800 */ 2320, 2321, 2276, 2380, 2387, 2394, 2118, 2323, 2392, 2395,
/* 810 */ 2329, 2335, 2408, 2339, 2340, 2412, 2346, 2343, 2417, 2348,
/* 820 */ 2349, 2419, 2352, 2350, 2423, 2354, 2334, 2336, 2337, 2342,
/* 830 */ 2361, 2434, 2362, 2435, 2367, 2434, 2434, 2449, 2401, 2406,
/* 840 */ 2439, 2441, 2443, 2444, 2445, 2446, 2447, 2448, 2450, 2410,
/* 850 */ 2385, 2411, 2393, 2460, 2458, 2459, 2461, 2475, 2462, 2463,
/* 860 */ 2464, 2424, 2179, 2466, 2181, 2467, 2468, 2472, 2473, 2489,
/* 870 */ 2476, 2512, 2477, 2465, 2478, 2515, 2481, 2470, 2484, 2517,
/* 880 */ 2482, 2479, 2485, 2523, 2491, 2483, 2487, 2531, 2496, 2499,
/* 890 */ 2537, 2525, 2516, 2528, 2524, 2532, 2539, 2547, 2533,
};
#define YY_REDUCE_COUNT (363)
#define YY_REDUCE_MIN (-448)
#define YY_REDUCE_MAX (2658)
static const short yy_reduce_ofst[] = {
/* 0 */ -288, -321, -139, 150, 398, 425, 487, 642, 729, 849,
/* 10 */ 603, 981, 1094, 1171, 1215, 1244, 1274, 1318, 1348, 1377,
/* 20 */ 1479, 1497, 1523, 1610, 1626, 1642, 1701, 1778, 1816, 1837,
/* 30 */ 1898, 1937, 1953, 1971, 2073, 2089, 2105, 2164, 2191, 2246,
/* 40 */ 2305, 2328, 2366, 2389, 2405, 2480, 2507, 2526, 2542, 2658,
/* 50 */ -323, -227, -431, 214, -218, -171, 118, 167, 277, 321,
/* 60 */ 361, 678, -429, -366, -101, -419, 39, -394, -311, -210,
/* 70 */ -326, -314, -302, -190, -368, -78, -282, 127, -413, -5,
/* 80 */ 147, -76, 251, 275, 297, 423, -189, 1, 526, 589,
/* 90 */ 639, 682, 136, 92, 343, 705, 750, 422, -401, 761,
/* 100 */ 270, 765, 452, 783, 786, -202, 800, 831, 621, 879,
/* 110 */ 276, 770, 734, 888, 537, -448, -448, -298, 215, -285,
/* 120 */ 225, 250, 591, 738, 805, 840, 842, 857, 859, 860,
/* 130 */ 868, 893, 904, 906, 908, 909, 921, 922, 929, -347,
/* 140 */ -304, 651, 339, 885, 918, 905, -304, 390, 598, -337,
/* 150 */ -91, 809, -212, 911, 927, 135, 698, 232, 928, -7,
/* 160 */ -391, 456, 933, 561, 886, 696, 941, 181, 316, 370,
/* 170 */ 409, 513, 558, 699, 409, 381, 288, 680, 691, 875,
/* 180 */ 841, 930, 1038, 1044, 1044, 1067, 1077, 1070, 1130, 1082,
/* 190 */ 1019, 1039, 1040, 1108, 1044, 1042, 1178, 1127, 1185, 1150,
/* 200 */ 1120, 1139, 1141, 1044, 1086, 1086, 1068, 1086, 1096, 1087,
/* 210 */ 1193, 1144, 1132, 1135, 1145, 1143, 1217, 1149, 1221, 1162,
/* 220 */ 1238, 1240, 1194, 1245, 1195, 1208, 1263, 1269, 1272, 1223,
/* 230 */ 1224, 1227, 1229, 1271, 1273, 1281, 1276, 1289, 1291, 1292,
/* 240 */ 1301, 1299, 1304, 1302, 1218, 1293, 1296, 1261, 1305, 1315,
/* 250 */ 1253, 1316, 1322, 1319, 1275, 1323, 1334, 1331, 1336, 1341,
/* 260 */ 1321, 1324, 1328, 1329, 1330, 1332, 1337, 1350, 1351, 1352,
/* 270 */ 1353, 1346, 1361, 1392, 1355, 1310, 1340, 1342, 1303, 1307,
/* 280 */ 1313, 1383, 1320, 1326, 1333, 1359, 1390, 1339, 1398, 1358,
/* 290 */ 1287, 1360, 1290, 1362, 1277, 1294, 1297, 1306, 1300, 1312,
/* 300 */ 1364, 1288, 1314, 1335, 1086, 1448, 1367, 1327, 1338, 1453,
/* 310 */ 1455, 1457, 1366, 1406, 1416, 1421, 1435, 1437, 1407, 1438,
/* 320 */ 1428, 1480, 1463, 1484, 1491, 1446, 1449, 1456, 1458, 1459,
/* 330 */ 1460, 1461, 1462, 1465, 1466, 1468, 1469, 1470, 1471, 1472,
/* 340 */ 1474, 1475, 1476, 1477, 1478, 1485, 1488, 1467, 1490, 1499,
/* 350 */ 1500, 1537, 1539, 1535, 1464, 1454, 1481, 1482, 1515, 1516,
/* 360 */ 1518, 1519, 1522, 1545,
};
static const YYACTIONTYPE yy_default[] = {
/* 0 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 10 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 20 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 30 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 40 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 50 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 60 */ 2382, 2037, 2037, 2345, 2037, 2037, 2037, 2037, 2037, 2037,
/* 70 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2352, 2037, 2037,
/* 80 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 90 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2136, 2037, 2037,
/* 100 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 110 */ 2037, 2037, 2037, 2037, 2134, 2626, 2037, 2735, 2037, 2037,
/* 120 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 130 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 140 */ 2638, 2037, 2037, 2108, 2108, 2037, 2638, 2638, 2638, 2598,
/* 150 */ 2598, 2134, 2037, 2037, 2136, 2420, 2037, 2037, 2037, 2037,
/* 160 */ 2037, 2037, 2037, 2037, 2037, 2263, 2067, 2037, 2037, 2037,
/* 170 */ 2287, 2037, 2037, 2037, 2037, 2408, 2037, 2037, 2667, 2729,
/* 180 */ 2037, 2670, 2037, 2037, 2037, 2037, 2037, 2357, 2037, 2657,
/* 190 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2212,
/* 200 */ 2402, 2037, 2037, 2037, 2630, 2644, 2713, 2631, 2628, 2651,
/* 210 */ 2037, 2661, 2037, 2445, 2037, 2434, 2136, 2037, 2136, 2395,
/* 220 */ 2340, 2037, 2350, 2037, 2350, 2347, 2037, 2037, 2037, 2350,
/* 230 */ 2347, 2347, 2347, 2201, 2197, 2037, 2195, 2037, 2037, 2037,
/* 240 */ 2037, 2092, 2037, 2092, 2037, 2136, 2136, 2037, 2136, 2037,
/* 250 */ 2037, 2136, 2037, 2136, 2037, 2136, 2136, 2037, 2136, 2037,
/* 260 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 270 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2432, 2418,
/* 280 */ 2037, 2134, 2037, 2406, 2404, 2037, 2134, 2661, 2037, 2037,
/* 290 */ 2683, 2678, 2683, 2678, 2697, 2693, 2683, 2702, 2699, 2663,
/* 300 */ 2661, 2732, 2719, 2715, 2644, 2037, 2037, 2649, 2647, 2037,
/* 310 */ 2134, 2134, 2037, 2678, 2037, 2037, 2037, 2037, 2678, 2037,
/* 320 */ 2037, 2134, 2037, 2134, 2037, 2037, 2037, 2037, 2037, 2037,
/* 330 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 340 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2229, 2037, 2037,
/* 350 */ 2134, 2037, 2076, 2037, 2397, 2423, 2378, 2378, 2266, 2266,
/* 360 */ 2735, 2266, 2137, 2042, 2037, 2037, 2037, 2037, 2037, 2037,
/* 370 */ 2037, 2037, 2037, 2037, 2037, 2037, 2696, 2695, 2550, 2037,
/* 380 */ 2602, 2601, 2600, 2591, 2549, 2225, 2037, 2037, 2548, 2547,
/* 390 */ 2037, 2037, 2037, 2037, 2037, 2216, 2037, 2037, 2238, 2037,
/* 400 */ 2037, 2037, 2037, 2541, 2037, 2037, 2542, 2540, 2539, 2369,
/* 410 */ 2368, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 420 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 430 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2716, 2720, 2037,
/* 440 */ 2627, 2037, 2037, 2037, 2521, 2037, 2037, 2037, 2037, 2037,
/* 450 */ 2489, 2484, 2475, 2466, 2481, 2472, 2460, 2478, 2469, 2457,
/* 460 */ 2454, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 470 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 480 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 490 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 500 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 510 */ 2037, 2037, 2037, 2037, 2037, 2346, 2037, 2037, 2037, 2037,
/* 520 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 530 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 540 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 550 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 560 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 570 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2361, 2037,
/* 580 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 590 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 600 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 610 */ 2081, 2528, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 620 */ 2037, 2037, 2037, 2037, 2037, 2531, 2037, 2037, 2037, 2037,
/* 630 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 640 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 650 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 660 */ 2037, 2037, 2037, 2037, 2037, 2037, 2176, 2175, 2037, 2037,
/* 670 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 680 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 690 */ 2037, 2037, 2037, 2037, 2532, 2037, 2037, 2037, 2037, 2037,
/* 700 */ 2523, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 710 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2712, 2664, 2037,
/* 720 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 730 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 740 */ 2037, 2521, 2037, 2694, 2037, 2037, 2710, 2037, 2714, 2037,
/* 750 */ 2037, 2037, 2037, 2037, 2037, 2037, 2637, 2633, 2037, 2037,
/* 760 */ 2629, 2037, 2037, 2037, 2037, 2037, 2588, 2037, 2037, 2037,
/* 770 */ 2622, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 780 */ 2532, 2037, 2535, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 790 */ 2037, 2037, 2037, 2037, 2037, 2520, 2037, 2573, 2572, 2037,
/* 800 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 810 */ 2260, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 820 */ 2037, 2037, 2037, 2037, 2037, 2037, 2244, 2242, 2241, 2240,
/* 830 */ 2037, 2273, 2037, 2037, 2037, 2269, 2268, 2037, 2037, 2037,
/* 840 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 850 */ 2037, 2037, 2037, 2155, 2037, 2037, 2037, 2037, 2037, 2037,
/* 860 */ 2037, 2037, 2147, 2037, 2146, 2037, 2037, 2037, 2037, 2037,
/* 870 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 880 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037,
/* 890 */ 2037, 2037, 2066, 2037, 2037, 2037, 2037, 2037, 2037,
};
/********** 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 */
304, /* 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, /* 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 */
304, /* 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 */
304, /* AFTER => ABORT */
304, /* ATTACH => ABORT */
304, /* BEFORE => ABORT */
304, /* BEGIN => ABORT */
304, /* BITAND => ABORT */
304, /* BITNOT => ABORT */
304, /* BITOR => ABORT */
304, /* BLOCKS => ABORT */
304, /* CHANGE => ABORT */
304, /* COMMA => ABORT */
304, /* CONCAT => ABORT */
304, /* CONFLICT => ABORT */
304, /* COPY => ABORT */
304, /* DEFERRED => ABORT */
304, /* DELIMITERS => ABORT */
304, /* DETACH => ABORT */
304, /* DIVIDE => ABORT */
304, /* DOT => ABORT */
304, /* EACH => ABORT */
304, /* FAIL => ABORT */
304, /* FILE => ABORT */
304, /* FOR => ABORT */
304, /* GLOB => ABORT */
304, /* ID => ABORT */
304, /* IMMEDIATE => ABORT */
304, /* IMPORT => ABORT */
304, /* INITIALLY => ABORT */
304, /* INSTEAD => ABORT */
304, /* ISNULL => ABORT */
304, /* KEY => ABORT */
304, /* MODULES => ABORT */
304, /* NK_BITNOT => ABORT */
304, /* NK_SEMI => ABORT */
304, /* NOTNULL => ABORT */
304, /* OF => ABORT */
304, /* PLUS => ABORT */
304, /* PRIVILEGE => ABORT */
304, /* RAISE => ABORT */
304, /* RESTRICT => ABORT */
304, /* ROW => ABORT */
304, /* SEMI => ABORT */
304, /* STAR => ABORT */
304, /* STATEMENT => ABORT */
304, /* STRICT => ABORT */
304, /* STRING => ABORT */
304, /* TIMES => ABORT */
304, /* VALUES => ABORT */
304, /* VARIABLE => ABORT */
304, /* WAL => ABORT */
0, /* PRIMARY => nothing */
0, /* ENCODE => nothing */
0, /* COMPRESS => nothing */
0, /* LEVEL => nothing */
};
#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 */ "BOOL",
/* 119 */ "TINYINT",
/* 120 */ "SMALLINT",
/* 121 */ "INT",
/* 122 */ "INTEGER",
/* 123 */ "BIGINT",
/* 124 */ "FLOAT",
/* 125 */ "DOUBLE",
/* 126 */ "BINARY",
/* 127 */ "NCHAR",
/* 128 */ "UNSIGNED",
/* 129 */ "JSON",
/* 130 */ "VARCHAR",
/* 131 */ "MEDIUMBLOB",
/* 132 */ "BLOB",
/* 133 */ "VARBINARY",
/* 134 */ "GEOMETRY",
/* 135 */ "DECIMAL",
/* 136 */ "COMMENT",
/* 137 */ "MAX_DELAY",
/* 138 */ "WATERMARK",
/* 139 */ "ROLLUP",
/* 140 */ "TTL",
/* 141 */ "SMA",
/* 142 */ "DELETE_MARK",
/* 143 */ "FIRST",
/* 144 */ "LAST",
/* 145 */ "SHOW",
/* 146 */ "PRIVILEGES",
/* 147 */ "DATABASES",
/* 148 */ "TABLES",
/* 149 */ "STABLES",
/* 150 */ "MNODES",
/* 151 */ "QNODES",
/* 152 */ "ARBGROUPS",
/* 153 */ "FUNCTIONS",
/* 154 */ "INDEXES",
/* 155 */ "ACCOUNTS",
/* 156 */ "APPS",
/* 157 */ "CONNECTIONS",
/* 158 */ "LICENCES",
/* 159 */ "GRANTS",
/* 160 */ "FULL",
/* 161 */ "LOGS",
/* 162 */ "MACHINES",
/* 163 */ "QUERIES",
/* 164 */ "SCORES",
/* 165 */ "TOPICS",
/* 166 */ "VARIABLES",
/* 167 */ "BNODES",
/* 168 */ "SNODES",
/* 169 */ "TRANSACTIONS",
/* 170 */ "DISTRIBUTED",
/* 171 */ "CONSUMERS",
/* 172 */ "SUBSCRIPTIONS",
/* 173 */ "VNODES",
/* 174 */ "ALIVE",
/* 175 */ "VIEWS",
/* 176 */ "VIEW",
/* 177 */ "COMPACTS",
/* 178 */ "NORMAL",
/* 179 */ "CHILD",
/* 180 */ "LIKE",
/* 181 */ "TBNAME",
/* 182 */ "QTAGS",
/* 183 */ "AS",
/* 184 */ "SYSTEM",
/* 185 */ "INDEX",
/* 186 */ "FUNCTION",
/* 187 */ "INTERVAL",
/* 188 */ "COUNT",
/* 189 */ "LAST_ROW",
/* 190 */ "META",
/* 191 */ "ONLY",
/* 192 */ "TOPIC",
/* 193 */ "CONSUMER",
/* 194 */ "GROUP",
/* 195 */ "DESC",
/* 196 */ "DESCRIBE",
/* 197 */ "RESET",
/* 198 */ "QUERY",
/* 199 */ "CACHE",
/* 200 */ "EXPLAIN",
/* 201 */ "ANALYZE",
/* 202 */ "VERBOSE",
/* 203 */ "NK_BOOL",
/* 204 */ "RATIO",
/* 205 */ "NK_FLOAT",
/* 206 */ "OUTPUTTYPE",
/* 207 */ "AGGREGATE",
/* 208 */ "BUFSIZE",
/* 209 */ "LANGUAGE",
/* 210 */ "REPLACE",
/* 211 */ "STREAM",
/* 212 */ "INTO",
/* 213 */ "PAUSE",
/* 214 */ "RESUME",
/* 215 */ "TRIGGER",
/* 216 */ "AT_ONCE",
/* 217 */ "WINDOW_CLOSE",
/* 218 */ "IGNORE",
/* 219 */ "EXPIRED",
/* 220 */ "FILL_HISTORY",
/* 221 */ "UPDATE",
/* 222 */ "SUBTABLE",
/* 223 */ "UNTREATED",
/* 224 */ "KILL",
/* 225 */ "CONNECTION",
/* 226 */ "TRANSACTION",
/* 227 */ "BALANCE",
/* 228 */ "VGROUP",
/* 229 */ "LEADER",
/* 230 */ "MERGE",
/* 231 */ "REDISTRIBUTE",
/* 232 */ "SPLIT",
/* 233 */ "DELETE",
/* 234 */ "INSERT",
/* 235 */ "NK_BIN",
/* 236 */ "NK_HEX",
/* 237 */ "NULL",
/* 238 */ "NK_QUESTION",
/* 239 */ "NK_ALIAS",
/* 240 */ "NK_ARROW",
/* 241 */ "ROWTS",
/* 242 */ "QSTART",
/* 243 */ "QEND",
/* 244 */ "QDURATION",
/* 245 */ "WSTART",
/* 246 */ "WEND",
/* 247 */ "WDURATION",
/* 248 */ "IROWTS",
/* 249 */ "ISFILLED",
/* 250 */ "CAST",
/* 251 */ "NOW",
/* 252 */ "TODAY",
/* 253 */ "TIMEZONE",
/* 254 */ "CLIENT_VERSION",
/* 255 */ "SERVER_VERSION",
/* 256 */ "SERVER_STATUS",
/* 257 */ "CURRENT_USER",
/* 258 */ "CASE",
/* 259 */ "WHEN",
/* 260 */ "THEN",
/* 261 */ "ELSE",
/* 262 */ "BETWEEN",
/* 263 */ "IS",
/* 264 */ "NK_LT",
/* 265 */ "NK_GT",
/* 266 */ "NK_LE",
/* 267 */ "NK_GE",
/* 268 */ "NK_NE",
/* 269 */ "MATCH",
/* 270 */ "NMATCH",
/* 271 */ "CONTAINS",
/* 272 */ "IN",
/* 273 */ "JOIN",
/* 274 */ "INNER",
/* 275 */ "SELECT",
/* 276 */ "NK_HINT",
/* 277 */ "DISTINCT",
/* 278 */ "WHERE",
/* 279 */ "PARTITION",
/* 280 */ "BY",
/* 281 */ "SESSION",
/* 282 */ "STATE_WINDOW",
/* 283 */ "EVENT_WINDOW",
/* 284 */ "COUNT_WINDOW",
/* 285 */ "SLIDING",
/* 286 */ "FILL",
/* 287 */ "VALUE",
/* 288 */ "VALUE_F",
/* 289 */ "NONE",
/* 290 */ "PREV",
/* 291 */ "NULL_F",
/* 292 */ "LINEAR",
/* 293 */ "NEXT",
/* 294 */ "HAVING",
/* 295 */ "RANGE",
/* 296 */ "EVERY",
/* 297 */ "ORDER",
/* 298 */ "SLIMIT",
/* 299 */ "SOFFSET",
/* 300 */ "LIMIT",
/* 301 */ "OFFSET",
/* 302 */ "ASC",
/* 303 */ "NULLS",
/* 304 */ "ABORT",
/* 305 */ "AFTER",
/* 306 */ "ATTACH",
/* 307 */ "BEFORE",
/* 308 */ "BEGIN",
/* 309 */ "BITAND",
/* 310 */ "BITNOT",
/* 311 */ "BITOR",
/* 312 */ "BLOCKS",
/* 313 */ "CHANGE",
/* 314 */ "COMMA",
/* 315 */ "CONCAT",
/* 316 */ "CONFLICT",
/* 317 */ "COPY",
/* 318 */ "DEFERRED",
/* 319 */ "DELIMITERS",
/* 320 */ "DETACH",
/* 321 */ "DIVIDE",
/* 322 */ "DOT",
/* 323 */ "EACH",
/* 324 */ "FAIL",
/* 325 */ "FILE",
/* 326 */ "FOR",
/* 327 */ "GLOB",
/* 328 */ "ID",
/* 329 */ "IMMEDIATE",
/* 330 */ "IMPORT",
/* 331 */ "INITIALLY",
/* 332 */ "INSTEAD",
/* 333 */ "ISNULL",
/* 334 */ "KEY",
/* 335 */ "MODULES",
/* 336 */ "NK_BITNOT",
/* 337 */ "NK_SEMI",
/* 338 */ "NOTNULL",
/* 339 */ "OF",
/* 340 */ "PLUS",
/* 341 */ "PRIVILEGE",
/* 342 */ "RAISE",
/* 343 */ "RESTRICT",
/* 344 */ "ROW",
/* 345 */ "SEMI",
/* 346 */ "STAR",
/* 347 */ "STATEMENT",
/* 348 */ "STRICT",
/* 349 */ "STRING",
/* 350 */ "TIMES",
/* 351 */ "VALUES",
/* 352 */ "VARIABLE",
/* 353 */ "WAL",
/* 354 */ "PRIMARY",
/* 355 */ "ENCODE",
/* 356 */ "COMPRESS",
/* 357 */ "LEVEL",
/* 358 */ "cmd",
/* 359 */ "account_options",
/* 360 */ "alter_account_options",
/* 361 */ "literal",
/* 362 */ "alter_account_option",
/* 363 */ "ip_range_list",
/* 364 */ "white_list",
/* 365 */ "white_list_opt",
/* 366 */ "user_name",
/* 367 */ "sysinfo_opt",
/* 368 */ "privileges",
/* 369 */ "priv_level",
/* 370 */ "with_opt",
/* 371 */ "priv_type_list",
/* 372 */ "priv_type",
/* 373 */ "db_name",
/* 374 */ "table_name",
/* 375 */ "topic_name",
/* 376 */ "search_condition",
/* 377 */ "dnode_endpoint",
/* 378 */ "force_opt",
/* 379 */ "unsafe_opt",
/* 380 */ "not_exists_opt",
/* 381 */ "db_options",
/* 382 */ "exists_opt",
/* 383 */ "alter_db_options",
/* 384 */ "speed_opt",
/* 385 */ "start_opt",
/* 386 */ "end_opt",
/* 387 */ "integer_list",
/* 388 */ "variable_list",
/* 389 */ "retention_list",
/* 390 */ "signed",
/* 391 */ "alter_db_option",
/* 392 */ "retention",
/* 393 */ "full_table_name",
/* 394 */ "column_def_list",
/* 395 */ "tags_def_opt",
/* 396 */ "table_options",
/* 397 */ "multi_create_clause",
/* 398 */ "tags_def",
/* 399 */ "multi_drop_clause",
/* 400 */ "alter_table_clause",
/* 401 */ "alter_table_options",
/* 402 */ "column_name",
/* 403 */ "type_name",
/* 404 */ "column_options",
/* 405 */ "tags_literal",
/* 406 */ "create_subtable_clause",
/* 407 */ "specific_cols_opt",
/* 408 */ "tags_literal_list",
/* 409 */ "drop_table_clause",
/* 410 */ "col_name_list",
/* 411 */ "tag_def_list",
/* 412 */ "tag_def",
/* 413 */ "column_def",
/* 414 */ "duration_list",
/* 415 */ "rollup_func_list",
/* 416 */ "alter_table_option",
/* 417 */ "duration_literal",
/* 418 */ "rollup_func_name",
/* 419 */ "function_name",
/* 420 */ "col_name",
/* 421 */ "db_kind_opt",
/* 422 */ "table_kind_db_name_cond_opt",
/* 423 */ "like_pattern_opt",
/* 424 */ "db_name_cond_opt",
/* 425 */ "table_name_cond",
/* 426 */ "from_db_opt",
/* 427 */ "tag_list_opt",
/* 428 */ "table_kind",
/* 429 */ "tag_item",
/* 430 */ "column_alias",
/* 431 */ "index_options",
/* 432 */ "full_index_name",
/* 433 */ "index_name",
/* 434 */ "func_list",
/* 435 */ "sliding_opt",
/* 436 */ "sma_stream_opt",
/* 437 */ "func",
/* 438 */ "sma_func_name",
/* 439 */ "expression_list",
/* 440 */ "with_meta",
/* 441 */ "query_or_subquery",
/* 442 */ "where_clause_opt",
/* 443 */ "cgroup_name",
/* 444 */ "analyze_opt",
/* 445 */ "explain_options",
/* 446 */ "insert_query",
/* 447 */ "or_replace_opt",
/* 448 */ "agg_func_opt",
/* 449 */ "bufsize_opt",
/* 450 */ "language_opt",
/* 451 */ "full_view_name",
/* 452 */ "view_name",
/* 453 */ "stream_name",
/* 454 */ "stream_options",
/* 455 */ "col_list_opt",
/* 456 */ "tag_def_or_ref_opt",
/* 457 */ "subtable_opt",
/* 458 */ "ignore_opt",
/* 459 */ "expression",
/* 460 */ "on_vgroup_id",
/* 461 */ "dnode_list",
/* 462 */ "literal_func",
/* 463 */ "signed_literal",
/* 464 */ "literal_list",
/* 465 */ "table_alias",
/* 466 */ "expr_or_subquery",
/* 467 */ "pseudo_column",
/* 468 */ "column_reference",
/* 469 */ "function_expression",
/* 470 */ "case_when_expression",
/* 471 */ "star_func",
/* 472 */ "star_func_para_list",
/* 473 */ "noarg_func",
/* 474 */ "other_para_list",
/* 475 */ "star_func_para",
/* 476 */ "when_then_list",
/* 477 */ "case_when_else_opt",
/* 478 */ "common_expression",
/* 479 */ "when_then_expr",
/* 480 */ "predicate",
/* 481 */ "compare_op",
/* 482 */ "in_op",
/* 483 */ "in_predicate_value",
/* 484 */ "boolean_value_expression",
/* 485 */ "boolean_primary",
/* 486 */ "from_clause_opt",
/* 487 */ "table_reference_list",
/* 488 */ "table_reference",
/* 489 */ "table_primary",
/* 490 */ "joined_table",
/* 491 */ "alias_opt",
/* 492 */ "subquery",
/* 493 */ "parenthesized_joined_table",
/* 494 */ "join_type",
/* 495 */ "query_specification",
/* 496 */ "hint_list",
/* 497 */ "set_quantifier_opt",
/* 498 */ "tag_mode_opt",
/* 499 */ "select_list",
/* 500 */ "partition_by_clause_opt",
/* 501 */ "range_opt",
/* 502 */ "every_opt",
/* 503 */ "fill_opt",
/* 504 */ "twindow_clause_opt",
/* 505 */ "group_by_clause_opt",
/* 506 */ "having_clause_opt",
/* 507 */ "select_item",
/* 508 */ "partition_list",
/* 509 */ "partition_item",
/* 510 */ "interval_sliding_duration_literal",
/* 511 */ "fill_mode",
/* 512 */ "group_by_list",
/* 513 */ "query_expression",
/* 514 */ "query_simple",
/* 515 */ "order_by_clause_opt",
/* 516 */ "slimit_clause_opt",
/* 517 */ "limit_clause_opt",
/* 518 */ "union_query_expression",
/* 519 */ "query_simple_or_subquery",
/* 520 */ "sort_specification_list",
/* 521 */ "sort_specification",
/* 522 */ "ordering_specification_opt",
/* 523 */ "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 MODIFY COLUMN column_name column_options",
/* 177 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
/* 178 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
/* 179 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
/* 180 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
/* 181 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
/* 182 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal",
/* 183 */ "multi_create_clause ::= create_subtable_clause",
/* 184 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
/* 185 */ "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",
/* 186 */ "multi_drop_clause ::= drop_table_clause",
/* 187 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
/* 188 */ "drop_table_clause ::= exists_opt full_table_name",
/* 189 */ "specific_cols_opt ::=",
/* 190 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
/* 191 */ "full_table_name ::= table_name",
/* 192 */ "full_table_name ::= db_name NK_DOT table_name",
/* 193 */ "tag_def_list ::= tag_def",
/* 194 */ "tag_def_list ::= tag_def_list NK_COMMA tag_def",
/* 195 */ "tag_def ::= column_name type_name",
/* 196 */ "column_def_list ::= column_def",
/* 197 */ "column_def_list ::= column_def_list NK_COMMA column_def",
/* 198 */ "column_def ::= column_name type_name column_options",
/* 199 */ "type_name ::= BOOL",
/* 200 */ "type_name ::= TINYINT",
/* 201 */ "type_name ::= SMALLINT",
/* 202 */ "type_name ::= INT",
/* 203 */ "type_name ::= INTEGER",
/* 204 */ "type_name ::= BIGINT",
/* 205 */ "type_name ::= FLOAT",
/* 206 */ "type_name ::= DOUBLE",
/* 207 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
/* 208 */ "type_name ::= TIMESTAMP",
/* 209 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
/* 210 */ "type_name ::= TINYINT UNSIGNED",
/* 211 */ "type_name ::= SMALLINT UNSIGNED",
/* 212 */ "type_name ::= INT UNSIGNED",
/* 213 */ "type_name ::= BIGINT UNSIGNED",
/* 214 */ "type_name ::= JSON",
/* 215 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
/* 216 */ "type_name ::= MEDIUMBLOB",
/* 217 */ "type_name ::= BLOB",
/* 218 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
/* 219 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
/* 220 */ "type_name ::= DECIMAL",
/* 221 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
/* 222 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 223 */ "tags_def_opt ::=",
/* 224 */ "tags_def_opt ::= tags_def",
/* 225 */ "tags_def ::= TAGS NK_LP tag_def_list NK_RP",
/* 226 */ "table_options ::=",
/* 227 */ "table_options ::= table_options COMMENT NK_STRING",
/* 228 */ "table_options ::= table_options MAX_DELAY duration_list",
/* 229 */ "table_options ::= table_options WATERMARK duration_list",
/* 230 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
/* 231 */ "table_options ::= table_options TTL NK_INTEGER",
/* 232 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
/* 233 */ "table_options ::= table_options DELETE_MARK duration_list",
/* 234 */ "alter_table_options ::= alter_table_option",
/* 235 */ "alter_table_options ::= alter_table_options alter_table_option",
/* 236 */ "alter_table_option ::= COMMENT NK_STRING",
/* 237 */ "alter_table_option ::= TTL NK_INTEGER",
/* 238 */ "duration_list ::= duration_literal",
/* 239 */ "duration_list ::= duration_list NK_COMMA duration_literal",
/* 240 */ "rollup_func_list ::= rollup_func_name",
/* 241 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
/* 242 */ "rollup_func_name ::= function_name",
/* 243 */ "rollup_func_name ::= FIRST",
/* 244 */ "rollup_func_name ::= LAST",
/* 245 */ "col_name_list ::= col_name",
/* 246 */ "col_name_list ::= col_name_list NK_COMMA col_name",
/* 247 */ "col_name ::= column_name",
/* 248 */ "cmd ::= SHOW DNODES",
/* 249 */ "cmd ::= SHOW USERS",
/* 250 */ "cmd ::= SHOW USER PRIVILEGES",
/* 251 */ "cmd ::= SHOW db_kind_opt DATABASES",
/* 252 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
/* 253 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
/* 254 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
/* 255 */ "cmd ::= SHOW MNODES",
/* 256 */ "cmd ::= SHOW QNODES",
/* 257 */ "cmd ::= SHOW ARBGROUPS",
/* 258 */ "cmd ::= SHOW FUNCTIONS",
/* 259 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
/* 260 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
/* 261 */ "cmd ::= SHOW STREAMS",
/* 262 */ "cmd ::= SHOW ACCOUNTS",
/* 263 */ "cmd ::= SHOW APPS",
/* 264 */ "cmd ::= SHOW CONNECTIONS",
/* 265 */ "cmd ::= SHOW LICENCES",
/* 266 */ "cmd ::= SHOW GRANTS",
/* 267 */ "cmd ::= SHOW GRANTS FULL",
/* 268 */ "cmd ::= SHOW GRANTS LOGS",
/* 269 */ "cmd ::= SHOW CLUSTER MACHINES",
/* 270 */ "cmd ::= SHOW CREATE DATABASE db_name",
/* 271 */ "cmd ::= SHOW CREATE TABLE full_table_name",
/* 272 */ "cmd ::= SHOW CREATE STABLE full_table_name",
/* 273 */ "cmd ::= SHOW QUERIES",
/* 274 */ "cmd ::= SHOW SCORES",
/* 275 */ "cmd ::= SHOW TOPICS",
/* 276 */ "cmd ::= SHOW VARIABLES",
/* 277 */ "cmd ::= SHOW CLUSTER VARIABLES",
/* 278 */ "cmd ::= SHOW LOCAL VARIABLES",
/* 279 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
/* 280 */ "cmd ::= SHOW BNODES",
/* 281 */ "cmd ::= SHOW SNODES",
/* 282 */ "cmd ::= SHOW CLUSTER",
/* 283 */ "cmd ::= SHOW TRANSACTIONS",
/* 284 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
/* 285 */ "cmd ::= SHOW CONSUMERS",
/* 286 */ "cmd ::= SHOW SUBSCRIPTIONS",
/* 287 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
/* 288 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
/* 289 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
/* 290 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
/* 291 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
/* 292 */ "cmd ::= SHOW VNODES",
/* 293 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
/* 294 */ "cmd ::= SHOW CLUSTER ALIVE",
/* 295 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt",
/* 296 */ "cmd ::= SHOW CREATE VIEW full_table_name",
/* 297 */ "cmd ::= SHOW COMPACTS",
/* 298 */ "cmd ::= SHOW COMPACT NK_INTEGER",
/* 299 */ "table_kind_db_name_cond_opt ::=",
/* 300 */ "table_kind_db_name_cond_opt ::= table_kind",
/* 301 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
/* 302 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
/* 303 */ "table_kind ::= NORMAL",
/* 304 */ "table_kind ::= CHILD",
/* 305 */ "db_name_cond_opt ::=",
/* 306 */ "db_name_cond_opt ::= db_name NK_DOT",
/* 307 */ "like_pattern_opt ::=",
/* 308 */ "like_pattern_opt ::= LIKE NK_STRING",
/* 309 */ "table_name_cond ::= table_name",
/* 310 */ "from_db_opt ::=",
/* 311 */ "from_db_opt ::= FROM db_name",
/* 312 */ "tag_list_opt ::=",
/* 313 */ "tag_list_opt ::= tag_item",
/* 314 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
/* 315 */ "tag_item ::= TBNAME",
/* 316 */ "tag_item ::= QTAGS",
/* 317 */ "tag_item ::= column_name",
/* 318 */ "tag_item ::= column_name column_alias",
/* 319 */ "tag_item ::= column_name AS column_alias",
/* 320 */ "db_kind_opt ::=",
/* 321 */ "db_kind_opt ::= USER",
/* 322 */ "db_kind_opt ::= SYSTEM",
/* 323 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
/* 324 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
/* 325 */ "cmd ::= DROP INDEX exists_opt full_index_name",
/* 326 */ "full_index_name ::= index_name",
/* 327 */ "full_index_name ::= db_name NK_DOT index_name",
/* 328 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
/* 329 */ "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",
/* 330 */ "func_list ::= func",
/* 331 */ "func_list ::= func_list NK_COMMA func",
/* 332 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
/* 333 */ "sma_func_name ::= function_name",
/* 334 */ "sma_func_name ::= COUNT",
/* 335 */ "sma_func_name ::= FIRST",
/* 336 */ "sma_func_name ::= LAST",
/* 337 */ "sma_func_name ::= LAST_ROW",
/* 338 */ "sma_stream_opt ::=",
/* 339 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
/* 340 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
/* 341 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
/* 342 */ "with_meta ::= AS",
/* 343 */ "with_meta ::= WITH META AS",
/* 344 */ "with_meta ::= ONLY META AS",
/* 345 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
/* 346 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
/* 347 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
/* 348 */ "cmd ::= DROP TOPIC exists_opt topic_name",
/* 349 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
/* 350 */ "cmd ::= DESC full_table_name",
/* 351 */ "cmd ::= DESCRIBE full_table_name",
/* 352 */ "cmd ::= RESET QUERY CACHE",
/* 353 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
/* 354 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
/* 355 */ "analyze_opt ::=",
/* 356 */ "analyze_opt ::= ANALYZE",
/* 357 */ "explain_options ::=",
/* 358 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
/* 359 */ "explain_options ::= explain_options RATIO NK_FLOAT",
/* 360 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
/* 361 */ "cmd ::= DROP FUNCTION exists_opt function_name",
/* 362 */ "agg_func_opt ::=",
/* 363 */ "agg_func_opt ::= AGGREGATE",
/* 364 */ "bufsize_opt ::=",
/* 365 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
/* 366 */ "language_opt ::=",
/* 367 */ "language_opt ::= LANGUAGE NK_STRING",
/* 368 */ "or_replace_opt ::=",
/* 369 */ "or_replace_opt ::= OR REPLACE",
/* 370 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
/* 371 */ "cmd ::= DROP VIEW exists_opt full_view_name",
/* 372 */ "full_view_name ::= view_name",
/* 373 */ "full_view_name ::= db_name NK_DOT view_name",
/* 374 */ "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",
/* 375 */ "cmd ::= DROP STREAM exists_opt stream_name",
/* 376 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
/* 377 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
/* 378 */ "col_list_opt ::=",
/* 379 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
/* 380 */ "tag_def_or_ref_opt ::=",
/* 381 */ "tag_def_or_ref_opt ::= tags_def",
/* 382 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
/* 383 */ "stream_options ::=",
/* 384 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
/* 385 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
/* 386 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
/* 387 */ "stream_options ::= stream_options WATERMARK duration_literal",
/* 388 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
/* 389 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
/* 390 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
/* 391 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
/* 392 */ "subtable_opt ::=",
/* 393 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
/* 394 */ "ignore_opt ::=",
/* 395 */ "ignore_opt ::= IGNORE UNTREATED",
/* 396 */ "cmd ::= KILL CONNECTION NK_INTEGER",
/* 397 */ "cmd ::= KILL QUERY NK_STRING",
/* 398 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
/* 399 */ "cmd ::= KILL COMPACT NK_INTEGER",
/* 400 */ "cmd ::= BALANCE VGROUP",
/* 401 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
/* 402 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
/* 403 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
/* 404 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
/* 405 */ "on_vgroup_id ::=",
/* 406 */ "on_vgroup_id ::= ON NK_INTEGER",
/* 407 */ "dnode_list ::= DNODE NK_INTEGER",
/* 408 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
/* 409 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
/* 410 */ "cmd ::= query_or_subquery",
/* 411 */ "cmd ::= insert_query",
/* 412 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
/* 413 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
/* 414 */ "tags_literal ::= NK_INTEGER",
/* 415 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal",
/* 416 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal",
/* 417 */ "tags_literal ::= NK_PLUS NK_INTEGER",
/* 418 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal",
/* 419 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal",
/* 420 */ "tags_literal ::= NK_MINUS NK_INTEGER",
/* 421 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal",
/* 422 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal",
/* 423 */ "tags_literal ::= NK_FLOAT",
/* 424 */ "tags_literal ::= NK_PLUS NK_FLOAT",
/* 425 */ "tags_literal ::= NK_MINUS NK_FLOAT",
/* 426 */ "tags_literal ::= NK_BIN",
/* 427 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal",
/* 428 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal",
/* 429 */ "tags_literal ::= NK_PLUS NK_BIN",
/* 430 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal",
/* 431 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal",
/* 432 */ "tags_literal ::= NK_MINUS NK_BIN",
/* 433 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal",
/* 434 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal",
/* 435 */ "tags_literal ::= NK_HEX",
/* 436 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal",
/* 437 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal",
/* 438 */ "tags_literal ::= NK_PLUS NK_HEX",
/* 439 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal",
/* 440 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal",
/* 441 */ "tags_literal ::= NK_MINUS NK_HEX",
/* 442 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal",
/* 443 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal",
/* 444 */ "tags_literal ::= NK_STRING",
/* 445 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal",
/* 446 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal",
/* 447 */ "tags_literal ::= NK_BOOL",
/* 448 */ "tags_literal ::= NULL",
/* 449 */ "tags_literal ::= literal_func",
/* 450 */ "tags_literal ::= literal_func NK_PLUS duration_literal",
/* 451 */ "tags_literal ::= literal_func NK_MINUS duration_literal",
/* 452 */ "tags_literal_list ::= tags_literal",
/* 453 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal",
/* 454 */ "literal ::= NK_INTEGER",
/* 455 */ "literal ::= NK_FLOAT",
/* 456 */ "literal ::= NK_STRING",
/* 457 */ "literal ::= NK_BOOL",
/* 458 */ "literal ::= TIMESTAMP NK_STRING",
/* 459 */ "literal ::= duration_literal",
/* 460 */ "literal ::= NULL",
/* 461 */ "literal ::= NK_QUESTION",
/* 462 */ "duration_literal ::= NK_VARIABLE",
/* 463 */ "signed ::= NK_INTEGER",
/* 464 */ "signed ::= NK_PLUS NK_INTEGER",
/* 465 */ "signed ::= NK_MINUS NK_INTEGER",
/* 466 */ "signed ::= NK_FLOAT",
/* 467 */ "signed ::= NK_PLUS NK_FLOAT",
/* 468 */ "signed ::= NK_MINUS NK_FLOAT",
/* 469 */ "signed_literal ::= signed",
/* 470 */ "signed_literal ::= NK_STRING",
/* 471 */ "signed_literal ::= NK_BOOL",
/* 472 */ "signed_literal ::= TIMESTAMP NK_STRING",
/* 473 */ "signed_literal ::= duration_literal",
/* 474 */ "signed_literal ::= NULL",
/* 475 */ "signed_literal ::= literal_func",
/* 476 */ "signed_literal ::= NK_QUESTION",
/* 477 */ "literal_list ::= signed_literal",
/* 478 */ "literal_list ::= literal_list NK_COMMA signed_literal",
/* 479 */ "db_name ::= NK_ID",
/* 480 */ "table_name ::= NK_ID",
/* 481 */ "column_name ::= NK_ID",
/* 482 */ "function_name ::= NK_ID",
/* 483 */ "view_name ::= NK_ID",
/* 484 */ "table_alias ::= NK_ID",
/* 485 */ "column_alias ::= NK_ID",
/* 486 */ "column_alias ::= NK_ALIAS",
/* 487 */ "user_name ::= NK_ID",
/* 488 */ "topic_name ::= NK_ID",
/* 489 */ "stream_name ::= NK_ID",
/* 490 */ "cgroup_name ::= NK_ID",
/* 491 */ "index_name ::= NK_ID",
/* 492 */ "expr_or_subquery ::= expression",
/* 493 */ "expression ::= literal",
/* 494 */ "expression ::= pseudo_column",
/* 495 */ "expression ::= column_reference",
/* 496 */ "expression ::= function_expression",
/* 497 */ "expression ::= case_when_expression",
/* 498 */ "expression ::= NK_LP expression NK_RP",
/* 499 */ "expression ::= NK_PLUS expr_or_subquery",
/* 500 */ "expression ::= NK_MINUS expr_or_subquery",
/* 501 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
/* 502 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
/* 503 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
/* 504 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
/* 505 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
/* 506 */ "expression ::= column_reference NK_ARROW NK_STRING",
/* 507 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
/* 508 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
/* 509 */ "expression_list ::= expr_or_subquery",
/* 510 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
/* 511 */ "column_reference ::= column_name",
/* 512 */ "column_reference ::= table_name NK_DOT column_name",
/* 513 */ "column_reference ::= NK_ALIAS",
/* 514 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
/* 515 */ "pseudo_column ::= ROWTS",
/* 516 */ "pseudo_column ::= TBNAME",
/* 517 */ "pseudo_column ::= table_name NK_DOT TBNAME",
/* 518 */ "pseudo_column ::= QSTART",
/* 519 */ "pseudo_column ::= QEND",
/* 520 */ "pseudo_column ::= QDURATION",
/* 521 */ "pseudo_column ::= WSTART",
/* 522 */ "pseudo_column ::= WEND",
/* 523 */ "pseudo_column ::= WDURATION",
/* 524 */ "pseudo_column ::= IROWTS",
/* 525 */ "pseudo_column ::= ISFILLED",
/* 526 */ "pseudo_column ::= QTAGS",
/* 527 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
/* 528 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
/* 529 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
/* 530 */ "function_expression ::= literal_func",
/* 531 */ "literal_func ::= noarg_func NK_LP NK_RP",
/* 532 */ "literal_func ::= NOW",
/* 533 */ "literal_func ::= TODAY",
/* 534 */ "noarg_func ::= NOW",
/* 535 */ "noarg_func ::= TODAY",
/* 536 */ "noarg_func ::= TIMEZONE",
/* 537 */ "noarg_func ::= DATABASE",
/* 538 */ "noarg_func ::= CLIENT_VERSION",
/* 539 */ "noarg_func ::= SERVER_VERSION",
/* 540 */ "noarg_func ::= SERVER_STATUS",
/* 541 */ "noarg_func ::= CURRENT_USER",
/* 542 */ "noarg_func ::= USER",
/* 543 */ "star_func ::= COUNT",
/* 544 */ "star_func ::= FIRST",
/* 545 */ "star_func ::= LAST",
/* 546 */ "star_func ::= LAST_ROW",
/* 547 */ "star_func_para_list ::= NK_STAR",
/* 548 */ "star_func_para_list ::= other_para_list",
/* 549 */ "other_para_list ::= star_func_para",
/* 550 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
/* 551 */ "star_func_para ::= expr_or_subquery",
/* 552 */ "star_func_para ::= table_name NK_DOT NK_STAR",
/* 553 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
/* 554 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
/* 555 */ "when_then_list ::= when_then_expr",
/* 556 */ "when_then_list ::= when_then_list when_then_expr",
/* 557 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
/* 558 */ "case_when_else_opt ::=",
/* 559 */ "case_when_else_opt ::= ELSE common_expression",
/* 560 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
/* 561 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
/* 562 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
/* 563 */ "predicate ::= expr_or_subquery IS NULL",
/* 564 */ "predicate ::= expr_or_subquery IS NOT NULL",
/* 565 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
/* 566 */ "compare_op ::= NK_LT",
/* 567 */ "compare_op ::= NK_GT",
/* 568 */ "compare_op ::= NK_LE",
/* 569 */ "compare_op ::= NK_GE",
/* 570 */ "compare_op ::= NK_NE",
/* 571 */ "compare_op ::= NK_EQ",
/* 572 */ "compare_op ::= LIKE",
/* 573 */ "compare_op ::= NOT LIKE",
/* 574 */ "compare_op ::= MATCH",
/* 575 */ "compare_op ::= NMATCH",
/* 576 */ "compare_op ::= CONTAINS",
/* 577 */ "in_op ::= IN",
/* 578 */ "in_op ::= NOT IN",
/* 579 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
/* 580 */ "boolean_value_expression ::= boolean_primary",
/* 581 */ "boolean_value_expression ::= NOT boolean_primary",
/* 582 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 583 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 584 */ "boolean_primary ::= predicate",
/* 585 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 586 */ "common_expression ::= expr_or_subquery",
/* 587 */ "common_expression ::= boolean_value_expression",
/* 588 */ "from_clause_opt ::=",
/* 589 */ "from_clause_opt ::= FROM table_reference_list",
/* 590 */ "table_reference_list ::= table_reference",
/* 591 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 592 */ "table_reference ::= table_primary",
/* 593 */ "table_reference ::= joined_table",
/* 594 */ "table_primary ::= table_name alias_opt",
/* 595 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 596 */ "table_primary ::= subquery alias_opt",
/* 597 */ "table_primary ::= parenthesized_joined_table",
/* 598 */ "alias_opt ::=",
/* 599 */ "alias_opt ::= table_alias",
/* 600 */ "alias_opt ::= AS table_alias",
/* 601 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 602 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 603 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
/* 604 */ "join_type ::=",
/* 605 */ "join_type ::= INNER",
/* 606 */ "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",
/* 607 */ "hint_list ::=",
/* 608 */ "hint_list ::= NK_HINT",
/* 609 */ "tag_mode_opt ::=",
/* 610 */ "tag_mode_opt ::= TAGS",
/* 611 */ "set_quantifier_opt ::=",
/* 612 */ "set_quantifier_opt ::= DISTINCT",
/* 613 */ "set_quantifier_opt ::= ALL",
/* 614 */ "select_list ::= select_item",
/* 615 */ "select_list ::= select_list NK_COMMA select_item",
/* 616 */ "select_item ::= NK_STAR",
/* 617 */ "select_item ::= common_expression",
/* 618 */ "select_item ::= common_expression column_alias",
/* 619 */ "select_item ::= common_expression AS column_alias",
/* 620 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 621 */ "where_clause_opt ::=",
/* 622 */ "where_clause_opt ::= WHERE search_condition",
/* 623 */ "partition_by_clause_opt ::=",
/* 624 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
/* 625 */ "partition_list ::= partition_item",
/* 626 */ "partition_list ::= partition_list NK_COMMA partition_item",
/* 627 */ "partition_item ::= expr_or_subquery",
/* 628 */ "partition_item ::= expr_or_subquery column_alias",
/* 629 */ "partition_item ::= expr_or_subquery AS column_alias",
/* 630 */ "twindow_clause_opt ::=",
/* 631 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
/* 632 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
/* 633 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 634 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 635 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
/* 636 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP",
/* 637 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 638 */ "sliding_opt ::=",
/* 639 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
/* 640 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
/* 641 */ "interval_sliding_duration_literal ::= NK_STRING",
/* 642 */ "interval_sliding_duration_literal ::= NK_INTEGER",
/* 643 */ "fill_opt ::=",
/* 644 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 645 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
/* 646 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
/* 647 */ "fill_mode ::= NONE",
/* 648 */ "fill_mode ::= PREV",
/* 649 */ "fill_mode ::= NULL",
/* 650 */ "fill_mode ::= NULL_F",
/* 651 */ "fill_mode ::= LINEAR",
/* 652 */ "fill_mode ::= NEXT",
/* 653 */ "group_by_clause_opt ::=",
/* 654 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 655 */ "group_by_list ::= expr_or_subquery",
/* 656 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
/* 657 */ "having_clause_opt ::=",
/* 658 */ "having_clause_opt ::= HAVING search_condition",
/* 659 */ "range_opt ::=",
/* 660 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
/* 661 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
/* 662 */ "every_opt ::=",
/* 663 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
/* 664 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 665 */ "query_simple ::= query_specification",
/* 666 */ "query_simple ::= union_query_expression",
/* 667 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
/* 668 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
/* 669 */ "query_simple_or_subquery ::= query_simple",
/* 670 */ "query_simple_or_subquery ::= subquery",
/* 671 */ "query_or_subquery ::= query_expression",
/* 672 */ "query_or_subquery ::= subquery",
/* 673 */ "order_by_clause_opt ::=",
/* 674 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 675 */ "slimit_clause_opt ::=",
/* 676 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 677 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 678 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 679 */ "limit_clause_opt ::=",
/* 680 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 681 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 682 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 683 */ "subquery ::= NK_LP query_expression NK_RP",
/* 684 */ "subquery ::= NK_LP subquery NK_RP",
/* 685 */ "search_condition ::= common_expression",
/* 686 */ "sort_specification_list ::= sort_specification",
/* 687 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 688 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
/* 689 */ "ordering_specification_opt ::=",
/* 690 */ "ordering_specification_opt ::= ASC",
/* 691 */ "ordering_specification_opt ::= DESC",
/* 692 */ "null_ordering_opt ::=",
/* 693 */ "null_ordering_opt ::= NULLS FIRST",
/* 694 */ "null_ordering_opt ::= NULLS LAST",
/* 695 */ "column_options ::=",
/* 696 */ "column_options ::= column_options PRIMARY KEY",
/* 697 */ "column_options ::= column_options ENCODE NK_STRING",
/* 698 */ "column_options ::= column_options COMPRESS NK_STRING",
/* 699 */ "column_options ::= column_options LEVEL NK_STRING",
};
#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 358: /* cmd */
case 361: /* literal */
case 370: /* with_opt */
case 376: /* search_condition */
case 381: /* db_options */
case 383: /* alter_db_options */
case 385: /* start_opt */
case 386: /* end_opt */
case 390: /* signed */
case 392: /* retention */
case 393: /* full_table_name */
case 396: /* table_options */
case 400: /* alter_table_clause */
case 401: /* alter_table_options */
case 404: /* column_options */
case 405: /* tags_literal */
case 406: /* create_subtable_clause */
case 409: /* drop_table_clause */
case 412: /* tag_def */
case 413: /* column_def */
case 417: /* duration_literal */
case 418: /* rollup_func_name */
case 420: /* col_name */
case 423: /* like_pattern_opt */
case 424: /* db_name_cond_opt */
case 425: /* table_name_cond */
case 426: /* from_db_opt */
case 429: /* tag_item */
case 431: /* index_options */
case 432: /* full_index_name */
case 435: /* sliding_opt */
case 436: /* sma_stream_opt */
case 437: /* func */
case 441: /* query_or_subquery */
case 442: /* where_clause_opt */
case 445: /* explain_options */
case 446: /* insert_query */
case 451: /* full_view_name */
case 454: /* stream_options */
case 457: /* subtable_opt */
case 459: /* expression */
case 462: /* literal_func */
case 463: /* signed_literal */
case 466: /* expr_or_subquery */
case 467: /* pseudo_column */
case 468: /* column_reference */
case 469: /* function_expression */
case 470: /* case_when_expression */
case 475: /* star_func_para */
case 477: /* case_when_else_opt */
case 478: /* common_expression */
case 479: /* when_then_expr */
case 480: /* predicate */
case 483: /* in_predicate_value */
case 484: /* boolean_value_expression */
case 485: /* boolean_primary */
case 486: /* from_clause_opt */
case 487: /* table_reference_list */
case 488: /* table_reference */
case 489: /* table_primary */
case 490: /* joined_table */
case 492: /* subquery */
case 493: /* parenthesized_joined_table */
case 495: /* query_specification */
case 501: /* range_opt */
case 502: /* every_opt */
case 503: /* fill_opt */
case 504: /* twindow_clause_opt */
case 506: /* having_clause_opt */
case 507: /* select_item */
case 509: /* partition_item */
case 510: /* interval_sliding_duration_literal */
case 513: /* query_expression */
case 514: /* query_simple */
case 516: /* slimit_clause_opt */
case 517: /* limit_clause_opt */
case 518: /* union_query_expression */
case 519: /* query_simple_or_subquery */
case 521: /* sort_specification */
{
#line 7 "sql.y"
nodesDestroyNode((yypminor->yy1000));
#line 3382 "sql.c"
}
break;
case 359: /* account_options */
case 360: /* alter_account_options */
case 362: /* alter_account_option */
case 384: /* speed_opt */
case 440: /* with_meta */
case 449: /* bufsize_opt */
{
#line 54 "sql.y"
#line 3394 "sql.c"
}
break;
case 363: /* ip_range_list */
case 364: /* white_list */
case 365: /* white_list_opt */
case 387: /* integer_list */
case 388: /* variable_list */
case 389: /* retention_list */
case 394: /* column_def_list */
case 395: /* tags_def_opt */
case 397: /* multi_create_clause */
case 398: /* tags_def */
case 399: /* multi_drop_clause */
case 407: /* specific_cols_opt */
case 408: /* tags_literal_list */
case 410: /* col_name_list */
case 411: /* tag_def_list */
case 414: /* duration_list */
case 415: /* rollup_func_list */
case 427: /* tag_list_opt */
case 434: /* func_list */
case 439: /* expression_list */
case 455: /* col_list_opt */
case 456: /* tag_def_or_ref_opt */
case 461: /* dnode_list */
case 464: /* literal_list */
case 472: /* star_func_para_list */
case 474: /* other_para_list */
case 476: /* when_then_list */
case 496: /* hint_list */
case 499: /* select_list */
case 500: /* partition_by_clause_opt */
case 505: /* group_by_clause_opt */
case 508: /* partition_list */
case 512: /* group_by_list */
case 515: /* order_by_clause_opt */
case 520: /* sort_specification_list */
{
#line 85 "sql.y"
nodesDestroyList((yypminor->yy72));
#line 3435 "sql.c"
}
break;
case 366: /* user_name */
case 373: /* db_name */
case 374: /* table_name */
case 375: /* topic_name */
case 377: /* dnode_endpoint */
case 402: /* column_name */
case 419: /* function_name */
case 430: /* column_alias */
case 433: /* index_name */
case 438: /* sma_func_name */
case 443: /* cgroup_name */
case 450: /* language_opt */
case 452: /* view_name */
case 453: /* stream_name */
case 460: /* on_vgroup_id */
case 465: /* table_alias */
case 471: /* star_func */
case 473: /* noarg_func */
case 491: /* alias_opt */
{
#line 1018 "sql.y"
#line 3460 "sql.c"
}
break;
case 367: /* sysinfo_opt */
{
#line 112 "sql.y"
#line 3467 "sql.c"
}
break;
case 368: /* privileges */
case 371: /* priv_type_list */
case 372: /* priv_type */
{
#line 121 "sql.y"
#line 3476 "sql.c"
}
break;
case 369: /* priv_level */
{
#line 138 "sql.y"
#line 3483 "sql.c"
}
break;
case 378: /* force_opt */
case 379: /* unsafe_opt */
case 380: /* not_exists_opt */
case 382: /* exists_opt */
case 444: /* analyze_opt */
case 447: /* or_replace_opt */
case 448: /* agg_func_opt */
case 458: /* ignore_opt */
case 497: /* set_quantifier_opt */
case 498: /* tag_mode_opt */
{
#line 167 "sql.y"
#line 3499 "sql.c"
}
break;
case 391: /* alter_db_option */
case 416: /* alter_table_option */
{
#line 269 "sql.y"
#line 3507 "sql.c"
}
break;
case 403: /* type_name */
{
#line 400 "sql.y"
#line 3514 "sql.c"
}
break;
case 421: /* db_kind_opt */
case 428: /* table_kind */
{
#line 569 "sql.y"
#line 3522 "sql.c"
}
break;
case 422: /* table_kind_db_name_cond_opt */
{
#line 534 "sql.y"
#line 3529 "sql.c"
}
break;
case 481: /* compare_op */
case 482: /* in_op */
{
#line 1209 "sql.y"
#line 3537 "sql.c"
}
break;
case 494: /* join_type */
{
#line 1285 "sql.y"
#line 3544 "sql.c"
}
break;
case 511: /* fill_mode */
{
#line 1380 "sql.y"
#line 3551 "sql.c"
}
break;
case 522: /* ordering_specification_opt */
{
#line 1465 "sql.y"
#line 3558 "sql.c"
}
break;
case 523: /* null_ordering_opt */
{
#line 1471 "sql.y"
#line 3565 "sql.c"
}
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[] = {
358, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
358, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
359, /* (2) account_options ::= */
359, /* (3) account_options ::= account_options PPS literal */
359, /* (4) account_options ::= account_options TSERIES literal */
359, /* (5) account_options ::= account_options STORAGE literal */
359, /* (6) account_options ::= account_options STREAMS literal */
359, /* (7) account_options ::= account_options QTIME literal */
359, /* (8) account_options ::= account_options DBS literal */
359, /* (9) account_options ::= account_options USERS literal */
359, /* (10) account_options ::= account_options CONNS literal */
359, /* (11) account_options ::= account_options STATE literal */
360, /* (12) alter_account_options ::= alter_account_option */
360, /* (13) alter_account_options ::= alter_account_options alter_account_option */
362, /* (14) alter_account_option ::= PASS literal */
362, /* (15) alter_account_option ::= PPS literal */
362, /* (16) alter_account_option ::= TSERIES literal */
362, /* (17) alter_account_option ::= STORAGE literal */
362, /* (18) alter_account_option ::= STREAMS literal */
362, /* (19) alter_account_option ::= QTIME literal */
362, /* (20) alter_account_option ::= DBS literal */
362, /* (21) alter_account_option ::= USERS literal */
362, /* (22) alter_account_option ::= CONNS literal */
362, /* (23) alter_account_option ::= STATE literal */
363, /* (24) ip_range_list ::= NK_STRING */
363, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
364, /* (26) white_list ::= HOST ip_range_list */
365, /* (27) white_list_opt ::= */
365, /* (28) white_list_opt ::= white_list */
358, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
358, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
358, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
358, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
358, /* (33) cmd ::= ALTER USER user_name ADD white_list */
358, /* (34) cmd ::= ALTER USER user_name DROP white_list */
358, /* (35) cmd ::= DROP USER user_name */
367, /* (36) sysinfo_opt ::= */
367, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
358, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
358, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
368, /* (40) privileges ::= ALL */
368, /* (41) privileges ::= priv_type_list */
368, /* (42) privileges ::= SUBSCRIBE */
371, /* (43) priv_type_list ::= priv_type */
371, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
372, /* (45) priv_type ::= READ */
372, /* (46) priv_type ::= WRITE */
372, /* (47) priv_type ::= ALTER */
369, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
369, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
369, /* (50) priv_level ::= db_name NK_DOT table_name */
369, /* (51) priv_level ::= topic_name */
370, /* (52) with_opt ::= */
370, /* (53) with_opt ::= WITH search_condition */
358, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
358, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
358, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
358, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
358, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
358, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
358, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
358, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
358, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
358, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
358, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
377, /* (65) dnode_endpoint ::= NK_STRING */
377, /* (66) dnode_endpoint ::= NK_ID */
377, /* (67) dnode_endpoint ::= NK_IPTOKEN */
378, /* (68) force_opt ::= */
378, /* (69) force_opt ::= FORCE */
379, /* (70) unsafe_opt ::= UNSAFE */
358, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
358, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
358, /* (73) cmd ::= ALTER LOCAL NK_STRING */
358, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
358, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
358, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
358, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
358, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
358, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
358, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
358, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
358, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
358, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
358, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
358, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
358, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
358, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
358, /* (88) cmd ::= USE db_name */
358, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
358, /* (90) cmd ::= FLUSH DATABASE db_name */
358, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
358, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
380, /* (93) not_exists_opt ::= IF NOT EXISTS */
380, /* (94) not_exists_opt ::= */
382, /* (95) exists_opt ::= IF EXISTS */
382, /* (96) exists_opt ::= */
381, /* (97) db_options ::= */
381, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
381, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
381, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
381, /* (101) db_options ::= db_options COMP NK_INTEGER */
381, /* (102) db_options ::= db_options DURATION NK_INTEGER */
381, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
381, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
381, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
381, /* (106) db_options ::= db_options KEEP integer_list */
381, /* (107) db_options ::= db_options KEEP variable_list */
381, /* (108) db_options ::= db_options PAGES NK_INTEGER */
381, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
381, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
381, /* (111) db_options ::= db_options PRECISION NK_STRING */
381, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
381, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
381, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
381, /* (115) db_options ::= db_options RETENTIONS retention_list */
381, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
381, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
381, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
381, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
381, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
381, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
381, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
381, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
381, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
381, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
381, /* (126) db_options ::= db_options TABLE_PREFIX signed */
381, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
381, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
383, /* (129) alter_db_options ::= alter_db_option */
383, /* (130) alter_db_options ::= alter_db_options alter_db_option */
391, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
391, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
391, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
391, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
391, /* (135) alter_db_option ::= KEEP integer_list */
391, /* (136) alter_db_option ::= KEEP variable_list */
391, /* (137) alter_db_option ::= PAGES NK_INTEGER */
391, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
391, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
391, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
391, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
391, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
391, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
391, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
391, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
391, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
387, /* (147) integer_list ::= NK_INTEGER */
387, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
388, /* (149) variable_list ::= NK_VARIABLE */
388, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
389, /* (151) retention_list ::= retention */
389, /* (152) retention_list ::= retention_list NK_COMMA retention */
392, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
392, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
384, /* (155) speed_opt ::= */
384, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
385, /* (157) start_opt ::= */
385, /* (158) start_opt ::= START WITH NK_INTEGER */
385, /* (159) start_opt ::= START WITH NK_STRING */
385, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
386, /* (161) end_opt ::= */
386, /* (162) end_opt ::= END WITH NK_INTEGER */
386, /* (163) end_opt ::= END WITH NK_STRING */
386, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
358, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
358, /* (166) cmd ::= CREATE TABLE multi_create_clause */
358, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
358, /* (168) cmd ::= DROP TABLE multi_drop_clause */
358, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
358, /* (170) cmd ::= ALTER TABLE alter_table_clause */
358, /* (171) cmd ::= ALTER STABLE alter_table_clause */
400, /* (172) alter_table_clause ::= full_table_name alter_table_options */
400, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
400, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
400, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
400, /* (176) alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */
400, /* (177) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
400, /* (178) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
400, /* (179) alter_table_clause ::= full_table_name DROP TAG column_name */
400, /* (180) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
400, /* (181) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
400, /* (182) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
397, /* (183) multi_create_clause ::= create_subtable_clause */
397, /* (184) multi_create_clause ::= multi_create_clause create_subtable_clause */
406, /* (185) 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 */
399, /* (186) multi_drop_clause ::= drop_table_clause */
399, /* (187) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
409, /* (188) drop_table_clause ::= exists_opt full_table_name */
407, /* (189) specific_cols_opt ::= */
407, /* (190) specific_cols_opt ::= NK_LP col_name_list NK_RP */
393, /* (191) full_table_name ::= table_name */
393, /* (192) full_table_name ::= db_name NK_DOT table_name */
411, /* (193) tag_def_list ::= tag_def */
411, /* (194) tag_def_list ::= tag_def_list NK_COMMA tag_def */
412, /* (195) tag_def ::= column_name type_name */
394, /* (196) column_def_list ::= column_def */
394, /* (197) column_def_list ::= column_def_list NK_COMMA column_def */
413, /* (198) column_def ::= column_name type_name column_options */
403, /* (199) type_name ::= BOOL */
403, /* (200) type_name ::= TINYINT */
403, /* (201) type_name ::= SMALLINT */
403, /* (202) type_name ::= INT */
403, /* (203) type_name ::= INTEGER */
403, /* (204) type_name ::= BIGINT */
403, /* (205) type_name ::= FLOAT */
403, /* (206) type_name ::= DOUBLE */
403, /* (207) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
403, /* (208) type_name ::= TIMESTAMP */
403, /* (209) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
403, /* (210) type_name ::= TINYINT UNSIGNED */
403, /* (211) type_name ::= SMALLINT UNSIGNED */
403, /* (212) type_name ::= INT UNSIGNED */
403, /* (213) type_name ::= BIGINT UNSIGNED */
403, /* (214) type_name ::= JSON */
403, /* (215) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
403, /* (216) type_name ::= MEDIUMBLOB */
403, /* (217) type_name ::= BLOB */
403, /* (218) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
403, /* (219) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
403, /* (220) type_name ::= DECIMAL */
403, /* (221) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
403, /* (222) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
395, /* (223) tags_def_opt ::= */
395, /* (224) tags_def_opt ::= tags_def */
398, /* (225) tags_def ::= TAGS NK_LP tag_def_list NK_RP */
396, /* (226) table_options ::= */
396, /* (227) table_options ::= table_options COMMENT NK_STRING */
396, /* (228) table_options ::= table_options MAX_DELAY duration_list */
396, /* (229) table_options ::= table_options WATERMARK duration_list */
396, /* (230) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
396, /* (231) table_options ::= table_options TTL NK_INTEGER */
396, /* (232) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
396, /* (233) table_options ::= table_options DELETE_MARK duration_list */
401, /* (234) alter_table_options ::= alter_table_option */
401, /* (235) alter_table_options ::= alter_table_options alter_table_option */
416, /* (236) alter_table_option ::= COMMENT NK_STRING */
416, /* (237) alter_table_option ::= TTL NK_INTEGER */
414, /* (238) duration_list ::= duration_literal */
414, /* (239) duration_list ::= duration_list NK_COMMA duration_literal */
415, /* (240) rollup_func_list ::= rollup_func_name */
415, /* (241) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
418, /* (242) rollup_func_name ::= function_name */
418, /* (243) rollup_func_name ::= FIRST */
418, /* (244) rollup_func_name ::= LAST */
410, /* (245) col_name_list ::= col_name */
410, /* (246) col_name_list ::= col_name_list NK_COMMA col_name */
420, /* (247) col_name ::= column_name */
358, /* (248) cmd ::= SHOW DNODES */
358, /* (249) cmd ::= SHOW USERS */
358, /* (250) cmd ::= SHOW USER PRIVILEGES */
358, /* (251) cmd ::= SHOW db_kind_opt DATABASES */
358, /* (252) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
358, /* (253) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
358, /* (254) cmd ::= SHOW db_name_cond_opt VGROUPS */
358, /* (255) cmd ::= SHOW MNODES */
358, /* (256) cmd ::= SHOW QNODES */
358, /* (257) cmd ::= SHOW ARBGROUPS */
358, /* (258) cmd ::= SHOW FUNCTIONS */
358, /* (259) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
358, /* (260) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
358, /* (261) cmd ::= SHOW STREAMS */
358, /* (262) cmd ::= SHOW ACCOUNTS */
358, /* (263) cmd ::= SHOW APPS */
358, /* (264) cmd ::= SHOW CONNECTIONS */
358, /* (265) cmd ::= SHOW LICENCES */
358, /* (266) cmd ::= SHOW GRANTS */
358, /* (267) cmd ::= SHOW GRANTS FULL */
358, /* (268) cmd ::= SHOW GRANTS LOGS */
358, /* (269) cmd ::= SHOW CLUSTER MACHINES */
358, /* (270) cmd ::= SHOW CREATE DATABASE db_name */
358, /* (271) cmd ::= SHOW CREATE TABLE full_table_name */
358, /* (272) cmd ::= SHOW CREATE STABLE full_table_name */
358, /* (273) cmd ::= SHOW QUERIES */
358, /* (274) cmd ::= SHOW SCORES */
358, /* (275) cmd ::= SHOW TOPICS */
358, /* (276) cmd ::= SHOW VARIABLES */
358, /* (277) cmd ::= SHOW CLUSTER VARIABLES */
358, /* (278) cmd ::= SHOW LOCAL VARIABLES */
358, /* (279) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
358, /* (280) cmd ::= SHOW BNODES */
358, /* (281) cmd ::= SHOW SNODES */
358, /* (282) cmd ::= SHOW CLUSTER */
358, /* (283) cmd ::= SHOW TRANSACTIONS */
358, /* (284) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
358, /* (285) cmd ::= SHOW CONSUMERS */
358, /* (286) cmd ::= SHOW SUBSCRIPTIONS */
358, /* (287) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
358, /* (288) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
358, /* (289) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
358, /* (290) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
358, /* (291) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
358, /* (292) cmd ::= SHOW VNODES */
358, /* (293) cmd ::= SHOW db_name_cond_opt ALIVE */
358, /* (294) cmd ::= SHOW CLUSTER ALIVE */
358, /* (295) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
358, /* (296) cmd ::= SHOW CREATE VIEW full_table_name */
358, /* (297) cmd ::= SHOW COMPACTS */
358, /* (298) cmd ::= SHOW COMPACT NK_INTEGER */
422, /* (299) table_kind_db_name_cond_opt ::= */
422, /* (300) table_kind_db_name_cond_opt ::= table_kind */
422, /* (301) table_kind_db_name_cond_opt ::= db_name NK_DOT */
422, /* (302) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
428, /* (303) table_kind ::= NORMAL */
428, /* (304) table_kind ::= CHILD */
424, /* (305) db_name_cond_opt ::= */
424, /* (306) db_name_cond_opt ::= db_name NK_DOT */
423, /* (307) like_pattern_opt ::= */
423, /* (308) like_pattern_opt ::= LIKE NK_STRING */
425, /* (309) table_name_cond ::= table_name */
426, /* (310) from_db_opt ::= */
426, /* (311) from_db_opt ::= FROM db_name */
427, /* (312) tag_list_opt ::= */
427, /* (313) tag_list_opt ::= tag_item */
427, /* (314) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
429, /* (315) tag_item ::= TBNAME */
429, /* (316) tag_item ::= QTAGS */
429, /* (317) tag_item ::= column_name */
429, /* (318) tag_item ::= column_name column_alias */
429, /* (319) tag_item ::= column_name AS column_alias */
421, /* (320) db_kind_opt ::= */
421, /* (321) db_kind_opt ::= USER */
421, /* (322) db_kind_opt ::= SYSTEM */
358, /* (323) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
358, /* (324) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
358, /* (325) cmd ::= DROP INDEX exists_opt full_index_name */
432, /* (326) full_index_name ::= index_name */
432, /* (327) full_index_name ::= db_name NK_DOT index_name */
431, /* (328) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
431, /* (329) 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 */
434, /* (330) func_list ::= func */
434, /* (331) func_list ::= func_list NK_COMMA func */
437, /* (332) func ::= sma_func_name NK_LP expression_list NK_RP */
438, /* (333) sma_func_name ::= function_name */
438, /* (334) sma_func_name ::= COUNT */
438, /* (335) sma_func_name ::= FIRST */
438, /* (336) sma_func_name ::= LAST */
438, /* (337) sma_func_name ::= LAST_ROW */
436, /* (338) sma_stream_opt ::= */
436, /* (339) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
436, /* (340) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
436, /* (341) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
440, /* (342) with_meta ::= AS */
440, /* (343) with_meta ::= WITH META AS */
440, /* (344) with_meta ::= ONLY META AS */
358, /* (345) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
358, /* (346) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
358, /* (347) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
358, /* (348) cmd ::= DROP TOPIC exists_opt topic_name */
358, /* (349) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
358, /* (350) cmd ::= DESC full_table_name */
358, /* (351) cmd ::= DESCRIBE full_table_name */
358, /* (352) cmd ::= RESET QUERY CACHE */
358, /* (353) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
358, /* (354) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
444, /* (355) analyze_opt ::= */
444, /* (356) analyze_opt ::= ANALYZE */
445, /* (357) explain_options ::= */
445, /* (358) explain_options ::= explain_options VERBOSE NK_BOOL */
445, /* (359) explain_options ::= explain_options RATIO NK_FLOAT */
358, /* (360) 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, /* (361) cmd ::= DROP FUNCTION exists_opt function_name */
448, /* (362) agg_func_opt ::= */
448, /* (363) agg_func_opt ::= AGGREGATE */
449, /* (364) bufsize_opt ::= */
449, /* (365) bufsize_opt ::= BUFSIZE NK_INTEGER */
450, /* (366) language_opt ::= */
450, /* (367) language_opt ::= LANGUAGE NK_STRING */
447, /* (368) or_replace_opt ::= */
447, /* (369) or_replace_opt ::= OR REPLACE */
358, /* (370) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
358, /* (371) cmd ::= DROP VIEW exists_opt full_view_name */
451, /* (372) full_view_name ::= view_name */
451, /* (373) full_view_name ::= db_name NK_DOT view_name */
358, /* (374) 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 */
358, /* (375) cmd ::= DROP STREAM exists_opt stream_name */
358, /* (376) cmd ::= PAUSE STREAM exists_opt stream_name */
358, /* (377) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
455, /* (378) col_list_opt ::= */
455, /* (379) col_list_opt ::= NK_LP col_name_list NK_RP */
456, /* (380) tag_def_or_ref_opt ::= */
456, /* (381) tag_def_or_ref_opt ::= tags_def */
456, /* (382) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
454, /* (383) stream_options ::= */
454, /* (384) stream_options ::= stream_options TRIGGER AT_ONCE */
454, /* (385) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
454, /* (386) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
454, /* (387) stream_options ::= stream_options WATERMARK duration_literal */
454, /* (388) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
454, /* (389) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
454, /* (390) stream_options ::= stream_options DELETE_MARK duration_literal */
454, /* (391) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
457, /* (392) subtable_opt ::= */
457, /* (393) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
458, /* (394) ignore_opt ::= */
458, /* (395) ignore_opt ::= IGNORE UNTREATED */
358, /* (396) cmd ::= KILL CONNECTION NK_INTEGER */
358, /* (397) cmd ::= KILL QUERY NK_STRING */
358, /* (398) cmd ::= KILL TRANSACTION NK_INTEGER */
358, /* (399) cmd ::= KILL COMPACT NK_INTEGER */
358, /* (400) cmd ::= BALANCE VGROUP */
358, /* (401) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
358, /* (402) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
358, /* (403) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
358, /* (404) cmd ::= SPLIT VGROUP NK_INTEGER */
460, /* (405) on_vgroup_id ::= */
460, /* (406) on_vgroup_id ::= ON NK_INTEGER */
461, /* (407) dnode_list ::= DNODE NK_INTEGER */
461, /* (408) dnode_list ::= dnode_list DNODE NK_INTEGER */
358, /* (409) cmd ::= DELETE FROM full_table_name where_clause_opt */
358, /* (410) cmd ::= query_or_subquery */
358, /* (411) cmd ::= insert_query */
446, /* (412) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
446, /* (413) insert_query ::= INSERT INTO full_table_name query_or_subquery */
405, /* (414) tags_literal ::= NK_INTEGER */
405, /* (415) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
405, /* (416) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */
405, /* (417) tags_literal ::= NK_PLUS NK_INTEGER */
405, /* (418) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
405, /* (419) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */
405, /* (420) tags_literal ::= NK_MINUS NK_INTEGER */
405, /* (421) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */
405, /* (422) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */
405, /* (423) tags_literal ::= NK_FLOAT */
405, /* (424) tags_literal ::= NK_PLUS NK_FLOAT */
405, /* (425) tags_literal ::= NK_MINUS NK_FLOAT */
405, /* (426) tags_literal ::= NK_BIN */
405, /* (427) tags_literal ::= NK_BIN NK_PLUS duration_literal */
405, /* (428) tags_literal ::= NK_BIN NK_MINUS duration_literal */
405, /* (429) tags_literal ::= NK_PLUS NK_BIN */
405, /* (430) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */
405, /* (431) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */
405, /* (432) tags_literal ::= NK_MINUS NK_BIN */
405, /* (433) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */
405, /* (434) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */
405, /* (435) tags_literal ::= NK_HEX */
405, /* (436) tags_literal ::= NK_HEX NK_PLUS duration_literal */
405, /* (437) tags_literal ::= NK_HEX NK_MINUS duration_literal */
405, /* (438) tags_literal ::= NK_PLUS NK_HEX */
405, /* (439) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */
405, /* (440) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */
405, /* (441) tags_literal ::= NK_MINUS NK_HEX */
405, /* (442) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */
405, /* (443) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */
405, /* (444) tags_literal ::= NK_STRING */
405, /* (445) tags_literal ::= NK_STRING NK_PLUS duration_literal */
405, /* (446) tags_literal ::= NK_STRING NK_MINUS duration_literal */
405, /* (447) tags_literal ::= NK_BOOL */
405, /* (448) tags_literal ::= NULL */
405, /* (449) tags_literal ::= literal_func */
405, /* (450) tags_literal ::= literal_func NK_PLUS duration_literal */
405, /* (451) tags_literal ::= literal_func NK_MINUS duration_literal */
408, /* (452) tags_literal_list ::= tags_literal */
408, /* (453) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
361, /* (454) literal ::= NK_INTEGER */
361, /* (455) literal ::= NK_FLOAT */
361, /* (456) literal ::= NK_STRING */
361, /* (457) literal ::= NK_BOOL */
361, /* (458) literal ::= TIMESTAMP NK_STRING */
361, /* (459) literal ::= duration_literal */
361, /* (460) literal ::= NULL */
361, /* (461) literal ::= NK_QUESTION */
417, /* (462) duration_literal ::= NK_VARIABLE */
390, /* (463) signed ::= NK_INTEGER */
390, /* (464) signed ::= NK_PLUS NK_INTEGER */
390, /* (465) signed ::= NK_MINUS NK_INTEGER */
390, /* (466) signed ::= NK_FLOAT */
390, /* (467) signed ::= NK_PLUS NK_FLOAT */
390, /* (468) signed ::= NK_MINUS NK_FLOAT */
463, /* (469) signed_literal ::= signed */
463, /* (470) signed_literal ::= NK_STRING */
463, /* (471) signed_literal ::= NK_BOOL */
463, /* (472) signed_literal ::= TIMESTAMP NK_STRING */
463, /* (473) signed_literal ::= duration_literal */
463, /* (474) signed_literal ::= NULL */
463, /* (475) signed_literal ::= literal_func */
463, /* (476) signed_literal ::= NK_QUESTION */
464, /* (477) literal_list ::= signed_literal */
464, /* (478) literal_list ::= literal_list NK_COMMA signed_literal */
373, /* (479) db_name ::= NK_ID */
374, /* (480) table_name ::= NK_ID */
402, /* (481) column_name ::= NK_ID */
419, /* (482) function_name ::= NK_ID */
452, /* (483) view_name ::= NK_ID */
465, /* (484) table_alias ::= NK_ID */
430, /* (485) column_alias ::= NK_ID */
430, /* (486) column_alias ::= NK_ALIAS */
366, /* (487) user_name ::= NK_ID */
375, /* (488) topic_name ::= NK_ID */
453, /* (489) stream_name ::= NK_ID */
443, /* (490) cgroup_name ::= NK_ID */
433, /* (491) index_name ::= NK_ID */
466, /* (492) expr_or_subquery ::= expression */
459, /* (493) expression ::= literal */
459, /* (494) expression ::= pseudo_column */
459, /* (495) expression ::= column_reference */
459, /* (496) expression ::= function_expression */
459, /* (497) expression ::= case_when_expression */
459, /* (498) expression ::= NK_LP expression NK_RP */
459, /* (499) expression ::= NK_PLUS expr_or_subquery */
459, /* (500) expression ::= NK_MINUS expr_or_subquery */
459, /* (501) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
459, /* (502) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
459, /* (503) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
459, /* (504) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
459, /* (505) expression ::= expr_or_subquery NK_REM expr_or_subquery */
459, /* (506) expression ::= column_reference NK_ARROW NK_STRING */
459, /* (507) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
459, /* (508) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
439, /* (509) expression_list ::= expr_or_subquery */
439, /* (510) expression_list ::= expression_list NK_COMMA expr_or_subquery */
468, /* (511) column_reference ::= column_name */
468, /* (512) column_reference ::= table_name NK_DOT column_name */
468, /* (513) column_reference ::= NK_ALIAS */
468, /* (514) column_reference ::= table_name NK_DOT NK_ALIAS */
467, /* (515) pseudo_column ::= ROWTS */
467, /* (516) pseudo_column ::= TBNAME */
467, /* (517) pseudo_column ::= table_name NK_DOT TBNAME */
467, /* (518) pseudo_column ::= QSTART */
467, /* (519) pseudo_column ::= QEND */
467, /* (520) pseudo_column ::= QDURATION */
467, /* (521) pseudo_column ::= WSTART */
467, /* (522) pseudo_column ::= WEND */
467, /* (523) pseudo_column ::= WDURATION */
467, /* (524) pseudo_column ::= IROWTS */
467, /* (525) pseudo_column ::= ISFILLED */
467, /* (526) pseudo_column ::= QTAGS */
469, /* (527) function_expression ::= function_name NK_LP expression_list NK_RP */
469, /* (528) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
469, /* (529) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
469, /* (530) function_expression ::= literal_func */
462, /* (531) literal_func ::= noarg_func NK_LP NK_RP */
462, /* (532) literal_func ::= NOW */
462, /* (533) literal_func ::= TODAY */
473, /* (534) noarg_func ::= NOW */
473, /* (535) noarg_func ::= TODAY */
473, /* (536) noarg_func ::= TIMEZONE */
473, /* (537) noarg_func ::= DATABASE */
473, /* (538) noarg_func ::= CLIENT_VERSION */
473, /* (539) noarg_func ::= SERVER_VERSION */
473, /* (540) noarg_func ::= SERVER_STATUS */
473, /* (541) noarg_func ::= CURRENT_USER */
473, /* (542) noarg_func ::= USER */
471, /* (543) star_func ::= COUNT */
471, /* (544) star_func ::= FIRST */
471, /* (545) star_func ::= LAST */
471, /* (546) star_func ::= LAST_ROW */
472, /* (547) star_func_para_list ::= NK_STAR */
472, /* (548) star_func_para_list ::= other_para_list */
474, /* (549) other_para_list ::= star_func_para */
474, /* (550) other_para_list ::= other_para_list NK_COMMA star_func_para */
475, /* (551) star_func_para ::= expr_or_subquery */
475, /* (552) star_func_para ::= table_name NK_DOT NK_STAR */
470, /* (553) case_when_expression ::= CASE when_then_list case_when_else_opt END */
470, /* (554) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
476, /* (555) when_then_list ::= when_then_expr */
476, /* (556) when_then_list ::= when_then_list when_then_expr */
479, /* (557) when_then_expr ::= WHEN common_expression THEN common_expression */
477, /* (558) case_when_else_opt ::= */
477, /* (559) case_when_else_opt ::= ELSE common_expression */
480, /* (560) predicate ::= expr_or_subquery compare_op expr_or_subquery */
480, /* (561) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
480, /* (562) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
480, /* (563) predicate ::= expr_or_subquery IS NULL */
480, /* (564) predicate ::= expr_or_subquery IS NOT NULL */
480, /* (565) predicate ::= expr_or_subquery in_op in_predicate_value */
481, /* (566) compare_op ::= NK_LT */
481, /* (567) compare_op ::= NK_GT */
481, /* (568) compare_op ::= NK_LE */
481, /* (569) compare_op ::= NK_GE */
481, /* (570) compare_op ::= NK_NE */
481, /* (571) compare_op ::= NK_EQ */
481, /* (572) compare_op ::= LIKE */
481, /* (573) compare_op ::= NOT LIKE */
481, /* (574) compare_op ::= MATCH */
481, /* (575) compare_op ::= NMATCH */
481, /* (576) compare_op ::= CONTAINS */
482, /* (577) in_op ::= IN */
482, /* (578) in_op ::= NOT IN */
483, /* (579) in_predicate_value ::= NK_LP literal_list NK_RP */
484, /* (580) boolean_value_expression ::= boolean_primary */
484, /* (581) boolean_value_expression ::= NOT boolean_primary */
484, /* (582) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
484, /* (583) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
485, /* (584) boolean_primary ::= predicate */
485, /* (585) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
478, /* (586) common_expression ::= expr_or_subquery */
478, /* (587) common_expression ::= boolean_value_expression */
486, /* (588) from_clause_opt ::= */
486, /* (589) from_clause_opt ::= FROM table_reference_list */
487, /* (590) table_reference_list ::= table_reference */
487, /* (591) table_reference_list ::= table_reference_list NK_COMMA table_reference */
488, /* (592) table_reference ::= table_primary */
488, /* (593) table_reference ::= joined_table */
489, /* (594) table_primary ::= table_name alias_opt */
489, /* (595) table_primary ::= db_name NK_DOT table_name alias_opt */
489, /* (596) table_primary ::= subquery alias_opt */
489, /* (597) table_primary ::= parenthesized_joined_table */
491, /* (598) alias_opt ::= */
491, /* (599) alias_opt ::= table_alias */
491, /* (600) alias_opt ::= AS table_alias */
493, /* (601) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
493, /* (602) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
490, /* (603) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
494, /* (604) join_type ::= */
494, /* (605) join_type ::= INNER */
495, /* (606) 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 */
496, /* (607) hint_list ::= */
496, /* (608) hint_list ::= NK_HINT */
498, /* (609) tag_mode_opt ::= */
498, /* (610) tag_mode_opt ::= TAGS */
497, /* (611) set_quantifier_opt ::= */
497, /* (612) set_quantifier_opt ::= DISTINCT */
497, /* (613) set_quantifier_opt ::= ALL */
499, /* (614) select_list ::= select_item */
499, /* (615) select_list ::= select_list NK_COMMA select_item */
507, /* (616) select_item ::= NK_STAR */
507, /* (617) select_item ::= common_expression */
507, /* (618) select_item ::= common_expression column_alias */
507, /* (619) select_item ::= common_expression AS column_alias */
507, /* (620) select_item ::= table_name NK_DOT NK_STAR */
442, /* (621) where_clause_opt ::= */
442, /* (622) where_clause_opt ::= WHERE search_condition */
500, /* (623) partition_by_clause_opt ::= */
500, /* (624) partition_by_clause_opt ::= PARTITION BY partition_list */
508, /* (625) partition_list ::= partition_item */
508, /* (626) partition_list ::= partition_list NK_COMMA partition_item */
509, /* (627) partition_item ::= expr_or_subquery */
509, /* (628) partition_item ::= expr_or_subquery column_alias */
509, /* (629) partition_item ::= expr_or_subquery AS column_alias */
504, /* (630) twindow_clause_opt ::= */
504, /* (631) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
504, /* (632) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
504, /* (633) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
504, /* (634) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
504, /* (635) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
504, /* (636) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
504, /* (637) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
435, /* (638) sliding_opt ::= */
435, /* (639) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
510, /* (640) interval_sliding_duration_literal ::= NK_VARIABLE */
510, /* (641) interval_sliding_duration_literal ::= NK_STRING */
510, /* (642) interval_sliding_duration_literal ::= NK_INTEGER */
503, /* (643) fill_opt ::= */
503, /* (644) fill_opt ::= FILL NK_LP fill_mode NK_RP */
503, /* (645) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
503, /* (646) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
511, /* (647) fill_mode ::= NONE */
511, /* (648) fill_mode ::= PREV */
511, /* (649) fill_mode ::= NULL */
511, /* (650) fill_mode ::= NULL_F */
511, /* (651) fill_mode ::= LINEAR */
511, /* (652) fill_mode ::= NEXT */
505, /* (653) group_by_clause_opt ::= */
505, /* (654) group_by_clause_opt ::= GROUP BY group_by_list */
512, /* (655) group_by_list ::= expr_or_subquery */
512, /* (656) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
506, /* (657) having_clause_opt ::= */
506, /* (658) having_clause_opt ::= HAVING search_condition */
501, /* (659) range_opt ::= */
501, /* (660) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
501, /* (661) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
502, /* (662) every_opt ::= */
502, /* (663) every_opt ::= EVERY NK_LP duration_literal NK_RP */
513, /* (664) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
514, /* (665) query_simple ::= query_specification */
514, /* (666) query_simple ::= union_query_expression */
518, /* (667) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
518, /* (668) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
519, /* (669) query_simple_or_subquery ::= query_simple */
519, /* (670) query_simple_or_subquery ::= subquery */
441, /* (671) query_or_subquery ::= query_expression */
441, /* (672) query_or_subquery ::= subquery */
515, /* (673) order_by_clause_opt ::= */
515, /* (674) order_by_clause_opt ::= ORDER BY sort_specification_list */
516, /* (675) slimit_clause_opt ::= */
516, /* (676) slimit_clause_opt ::= SLIMIT NK_INTEGER */
516, /* (677) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
516, /* (678) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
517, /* (679) limit_clause_opt ::= */
517, /* (680) limit_clause_opt ::= LIMIT NK_INTEGER */
517, /* (681) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
517, /* (682) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
492, /* (683) subquery ::= NK_LP query_expression NK_RP */
492, /* (684) subquery ::= NK_LP subquery NK_RP */
376, /* (685) search_condition ::= common_expression */
520, /* (686) sort_specification_list ::= sort_specification */
520, /* (687) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
521, /* (688) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
522, /* (689) ordering_specification_opt ::= */
522, /* (690) ordering_specification_opt ::= ASC */
522, /* (691) ordering_specification_opt ::= DESC */
523, /* (692) null_ordering_opt ::= */
523, /* (693) null_ordering_opt ::= NULLS FIRST */
523, /* (694) null_ordering_opt ::= NULLS LAST */
404, /* (695) column_options ::= */
404, /* (696) column_options ::= column_options PRIMARY KEY */
404, /* (697) column_options ::= column_options ENCODE NK_STRING */
404, /* (698) column_options ::= column_options COMPRESS NK_STRING */
404, /* (699) column_options ::= column_options LEVEL NK_STRING */
};
/* 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 MODIFY COLUMN column_name column_options */
-5, /* (177) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-5, /* (178) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-4, /* (179) alter_table_clause ::= full_table_name DROP TAG column_name */
-5, /* (180) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-5, /* (181) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
-6, /* (182) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
-1, /* (183) multi_create_clause ::= create_subtable_clause */
-2, /* (184) multi_create_clause ::= multi_create_clause create_subtable_clause */
-10, /* (185) 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, /* (186) multi_drop_clause ::= drop_table_clause */
-3, /* (187) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
-2, /* (188) drop_table_clause ::= exists_opt full_table_name */
0, /* (189) specific_cols_opt ::= */
-3, /* (190) specific_cols_opt ::= NK_LP col_name_list NK_RP */
-1, /* (191) full_table_name ::= table_name */
-3, /* (192) full_table_name ::= db_name NK_DOT table_name */
-1, /* (193) tag_def_list ::= tag_def */
-3, /* (194) tag_def_list ::= tag_def_list NK_COMMA tag_def */
-2, /* (195) tag_def ::= column_name type_name */
-1, /* (196) column_def_list ::= column_def */
-3, /* (197) column_def_list ::= column_def_list NK_COMMA column_def */
-3, /* (198) column_def ::= column_name type_name column_options */
-1, /* (199) type_name ::= BOOL */
-1, /* (200) type_name ::= TINYINT */
-1, /* (201) type_name ::= SMALLINT */
-1, /* (202) type_name ::= INT */
-1, /* (203) type_name ::= INTEGER */
-1, /* (204) type_name ::= BIGINT */
-1, /* (205) type_name ::= FLOAT */
-1, /* (206) type_name ::= DOUBLE */
-4, /* (207) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-1, /* (208) type_name ::= TIMESTAMP */
-4, /* (209) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-2, /* (210) type_name ::= TINYINT UNSIGNED */
-2, /* (211) type_name ::= SMALLINT UNSIGNED */
-2, /* (212) type_name ::= INT UNSIGNED */
-2, /* (213) type_name ::= BIGINT UNSIGNED */
-1, /* (214) type_name ::= JSON */
-4, /* (215) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-1, /* (216) type_name ::= MEDIUMBLOB */
-1, /* (217) type_name ::= BLOB */
-4, /* (218) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-4, /* (219) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
-1, /* (220) type_name ::= DECIMAL */
-4, /* (221) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-6, /* (222) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (223) tags_def_opt ::= */
-1, /* (224) tags_def_opt ::= tags_def */
-4, /* (225) tags_def ::= TAGS NK_LP tag_def_list NK_RP */
0, /* (226) table_options ::= */
-3, /* (227) table_options ::= table_options COMMENT NK_STRING */
-3, /* (228) table_options ::= table_options MAX_DELAY duration_list */
-3, /* (229) table_options ::= table_options WATERMARK duration_list */
-5, /* (230) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
-3, /* (231) table_options ::= table_options TTL NK_INTEGER */
-5, /* (232) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-3, /* (233) table_options ::= table_options DELETE_MARK duration_list */
-1, /* (234) alter_table_options ::= alter_table_option */
-2, /* (235) alter_table_options ::= alter_table_options alter_table_option */
-2, /* (236) alter_table_option ::= COMMENT NK_STRING */
-2, /* (237) alter_table_option ::= TTL NK_INTEGER */
-1, /* (238) duration_list ::= duration_literal */
-3, /* (239) duration_list ::= duration_list NK_COMMA duration_literal */
-1, /* (240) rollup_func_list ::= rollup_func_name */
-3, /* (241) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
-1, /* (242) rollup_func_name ::= function_name */
-1, /* (243) rollup_func_name ::= FIRST */
-1, /* (244) rollup_func_name ::= LAST */
-1, /* (245) col_name_list ::= col_name */
-3, /* (246) col_name_list ::= col_name_list NK_COMMA col_name */
-1, /* (247) col_name ::= column_name */
-2, /* (248) cmd ::= SHOW DNODES */
-2, /* (249) cmd ::= SHOW USERS */
-3, /* (250) cmd ::= SHOW USER PRIVILEGES */
-3, /* (251) cmd ::= SHOW db_kind_opt DATABASES */
-4, /* (252) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
-4, /* (253) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-3, /* (254) cmd ::= SHOW db_name_cond_opt VGROUPS */
-2, /* (255) cmd ::= SHOW MNODES */
-2, /* (256) cmd ::= SHOW QNODES */
-2, /* (257) cmd ::= SHOW ARBGROUPS */
-2, /* (258) cmd ::= SHOW FUNCTIONS */
-5, /* (259) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-6, /* (260) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
-2, /* (261) cmd ::= SHOW STREAMS */
-2, /* (262) cmd ::= SHOW ACCOUNTS */
-2, /* (263) cmd ::= SHOW APPS */
-2, /* (264) cmd ::= SHOW CONNECTIONS */
-2, /* (265) cmd ::= SHOW LICENCES */
-2, /* (266) cmd ::= SHOW GRANTS */
-3, /* (267) cmd ::= SHOW GRANTS FULL */
-3, /* (268) cmd ::= SHOW GRANTS LOGS */
-3, /* (269) cmd ::= SHOW CLUSTER MACHINES */
-4, /* (270) cmd ::= SHOW CREATE DATABASE db_name */
-4, /* (271) cmd ::= SHOW CREATE TABLE full_table_name */
-4, /* (272) cmd ::= SHOW CREATE STABLE full_table_name */
-2, /* (273) cmd ::= SHOW QUERIES */
-2, /* (274) cmd ::= SHOW SCORES */
-2, /* (275) cmd ::= SHOW TOPICS */
-2, /* (276) cmd ::= SHOW VARIABLES */
-3, /* (277) cmd ::= SHOW CLUSTER VARIABLES */
-3, /* (278) cmd ::= SHOW LOCAL VARIABLES */
-5, /* (279) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
-2, /* (280) cmd ::= SHOW BNODES */
-2, /* (281) cmd ::= SHOW SNODES */
-2, /* (282) cmd ::= SHOW CLUSTER */
-2, /* (283) cmd ::= SHOW TRANSACTIONS */
-4, /* (284) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
-2, /* (285) cmd ::= SHOW CONSUMERS */
-2, /* (286) cmd ::= SHOW SUBSCRIPTIONS */
-5, /* (287) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
-6, /* (288) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
-7, /* (289) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
-8, /* (290) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
-5, /* (291) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
-2, /* (292) cmd ::= SHOW VNODES */
-3, /* (293) cmd ::= SHOW db_name_cond_opt ALIVE */
-3, /* (294) cmd ::= SHOW CLUSTER ALIVE */
-4, /* (295) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
-4, /* (296) cmd ::= SHOW CREATE VIEW full_table_name */
-2, /* (297) cmd ::= SHOW COMPACTS */
-3, /* (298) cmd ::= SHOW COMPACT NK_INTEGER */
0, /* (299) table_kind_db_name_cond_opt ::= */
-1, /* (300) table_kind_db_name_cond_opt ::= table_kind */
-2, /* (301) table_kind_db_name_cond_opt ::= db_name NK_DOT */
-3, /* (302) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
-1, /* (303) table_kind ::= NORMAL */
-1, /* (304) table_kind ::= CHILD */
0, /* (305) db_name_cond_opt ::= */
-2, /* (306) db_name_cond_opt ::= db_name NK_DOT */
0, /* (307) like_pattern_opt ::= */
-2, /* (308) like_pattern_opt ::= LIKE NK_STRING */
-1, /* (309) table_name_cond ::= table_name */
0, /* (310) from_db_opt ::= */
-2, /* (311) from_db_opt ::= FROM db_name */
0, /* (312) tag_list_opt ::= */
-1, /* (313) tag_list_opt ::= tag_item */
-3, /* (314) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
-1, /* (315) tag_item ::= TBNAME */
-1, /* (316) tag_item ::= QTAGS */
-1, /* (317) tag_item ::= column_name */
-2, /* (318) tag_item ::= column_name column_alias */
-3, /* (319) tag_item ::= column_name AS column_alias */
0, /* (320) db_kind_opt ::= */
-1, /* (321) db_kind_opt ::= USER */
-1, /* (322) db_kind_opt ::= SYSTEM */
-8, /* (323) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
-9, /* (324) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
-4, /* (325) cmd ::= DROP INDEX exists_opt full_index_name */
-1, /* (326) full_index_name ::= index_name */
-3, /* (327) full_index_name ::= db_name NK_DOT index_name */
-10, /* (328) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
-12, /* (329) 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, /* (330) func_list ::= func */
-3, /* (331) func_list ::= func_list NK_COMMA func */
-4, /* (332) func ::= sma_func_name NK_LP expression_list NK_RP */
-1, /* (333) sma_func_name ::= function_name */
-1, /* (334) sma_func_name ::= COUNT */
-1, /* (335) sma_func_name ::= FIRST */
-1, /* (336) sma_func_name ::= LAST */
-1, /* (337) sma_func_name ::= LAST_ROW */
0, /* (338) sma_stream_opt ::= */
-3, /* (339) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
-3, /* (340) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
-3, /* (341) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
-1, /* (342) with_meta ::= AS */
-3, /* (343) with_meta ::= WITH META AS */
-3, /* (344) with_meta ::= ONLY META AS */
-6, /* (345) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
-7, /* (346) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
-8, /* (347) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
-4, /* (348) cmd ::= DROP TOPIC exists_opt topic_name */
-7, /* (349) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
-2, /* (350) cmd ::= DESC full_table_name */
-2, /* (351) cmd ::= DESCRIBE full_table_name */
-3, /* (352) cmd ::= RESET QUERY CACHE */
-4, /* (353) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
-4, /* (354) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
0, /* (355) analyze_opt ::= */
-1, /* (356) analyze_opt ::= ANALYZE */
0, /* (357) explain_options ::= */
-3, /* (358) explain_options ::= explain_options VERBOSE NK_BOOL */
-3, /* (359) explain_options ::= explain_options RATIO NK_FLOAT */
-12, /* (360) 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, /* (361) cmd ::= DROP FUNCTION exists_opt function_name */
0, /* (362) agg_func_opt ::= */
-1, /* (363) agg_func_opt ::= AGGREGATE */
0, /* (364) bufsize_opt ::= */
-2, /* (365) bufsize_opt ::= BUFSIZE NK_INTEGER */
0, /* (366) language_opt ::= */
-2, /* (367) language_opt ::= LANGUAGE NK_STRING */
0, /* (368) or_replace_opt ::= */
-2, /* (369) or_replace_opt ::= OR REPLACE */
-6, /* (370) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
-4, /* (371) cmd ::= DROP VIEW exists_opt full_view_name */
-1, /* (372) full_view_name ::= view_name */
-3, /* (373) full_view_name ::= db_name NK_DOT view_name */
-12, /* (374) 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, /* (375) cmd ::= DROP STREAM exists_opt stream_name */
-4, /* (376) cmd ::= PAUSE STREAM exists_opt stream_name */
-5, /* (377) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
0, /* (378) col_list_opt ::= */
-3, /* (379) col_list_opt ::= NK_LP col_name_list NK_RP */
0, /* (380) tag_def_or_ref_opt ::= */
-1, /* (381) tag_def_or_ref_opt ::= tags_def */
-4, /* (382) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
0, /* (383) stream_options ::= */
-3, /* (384) stream_options ::= stream_options TRIGGER AT_ONCE */
-3, /* (385) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
-4, /* (386) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
-3, /* (387) stream_options ::= stream_options WATERMARK duration_literal */
-4, /* (388) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
-3, /* (389) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
-3, /* (390) stream_options ::= stream_options DELETE_MARK duration_literal */
-4, /* (391) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
0, /* (392) subtable_opt ::= */
-4, /* (393) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
0, /* (394) ignore_opt ::= */
-2, /* (395) ignore_opt ::= IGNORE UNTREATED */
-3, /* (396) cmd ::= KILL CONNECTION NK_INTEGER */
-3, /* (397) cmd ::= KILL QUERY NK_STRING */
-3, /* (398) cmd ::= KILL TRANSACTION NK_INTEGER */
-3, /* (399) cmd ::= KILL COMPACT NK_INTEGER */
-2, /* (400) cmd ::= BALANCE VGROUP */
-4, /* (401) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
-4, /* (402) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
-4, /* (403) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-3, /* (404) cmd ::= SPLIT VGROUP NK_INTEGER */
0, /* (405) on_vgroup_id ::= */
-2, /* (406) on_vgroup_id ::= ON NK_INTEGER */
-2, /* (407) dnode_list ::= DNODE NK_INTEGER */
-3, /* (408) dnode_list ::= dnode_list DNODE NK_INTEGER */
-4, /* (409) cmd ::= DELETE FROM full_table_name where_clause_opt */
-1, /* (410) cmd ::= query_or_subquery */
-1, /* (411) cmd ::= insert_query */
-7, /* (412) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
-4, /* (413) insert_query ::= INSERT INTO full_table_name query_or_subquery */
-1, /* (414) tags_literal ::= NK_INTEGER */
-3, /* (415) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
-3, /* (416) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */
-2, /* (417) tags_literal ::= NK_PLUS NK_INTEGER */
-4, /* (418) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
-4, /* (419) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */
-2, /* (420) tags_literal ::= NK_MINUS NK_INTEGER */
-4, /* (421) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */
-4, /* (422) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */
-1, /* (423) tags_literal ::= NK_FLOAT */
-2, /* (424) tags_literal ::= NK_PLUS NK_FLOAT */
-2, /* (425) tags_literal ::= NK_MINUS NK_FLOAT */
-1, /* (426) tags_literal ::= NK_BIN */
-3, /* (427) tags_literal ::= NK_BIN NK_PLUS duration_literal */
-3, /* (428) tags_literal ::= NK_BIN NK_MINUS duration_literal */
-2, /* (429) tags_literal ::= NK_PLUS NK_BIN */
-4, /* (430) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */
-4, /* (431) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */
-2, /* (432) tags_literal ::= NK_MINUS NK_BIN */
-4, /* (433) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */
-4, /* (434) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */
-1, /* (435) tags_literal ::= NK_HEX */
-3, /* (436) tags_literal ::= NK_HEX NK_PLUS duration_literal */
-3, /* (437) tags_literal ::= NK_HEX NK_MINUS duration_literal */
-2, /* (438) tags_literal ::= NK_PLUS NK_HEX */
-4, /* (439) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */
-4, /* (440) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */
-2, /* (441) tags_literal ::= NK_MINUS NK_HEX */
-4, /* (442) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */
-4, /* (443) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */
-1, /* (444) tags_literal ::= NK_STRING */
-3, /* (445) tags_literal ::= NK_STRING NK_PLUS duration_literal */
-3, /* (446) tags_literal ::= NK_STRING NK_MINUS duration_literal */
-1, /* (447) tags_literal ::= NK_BOOL */
-1, /* (448) tags_literal ::= NULL */
-1, /* (449) tags_literal ::= literal_func */
-3, /* (450) tags_literal ::= literal_func NK_PLUS duration_literal */
-3, /* (451) tags_literal ::= literal_func NK_MINUS duration_literal */
-1, /* (452) tags_literal_list ::= tags_literal */
-3, /* (453) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
-1, /* (454) literal ::= NK_INTEGER */
-1, /* (455) literal ::= NK_FLOAT */
-1, /* (456) literal ::= NK_STRING */
-1, /* (457) literal ::= NK_BOOL */
-2, /* (458) literal ::= TIMESTAMP NK_STRING */
-1, /* (459) literal ::= duration_literal */
-1, /* (460) literal ::= NULL */
-1, /* (461) literal ::= NK_QUESTION */
-1, /* (462) duration_literal ::= NK_VARIABLE */
-1, /* (463) signed ::= NK_INTEGER */
-2, /* (464) signed ::= NK_PLUS NK_INTEGER */
-2, /* (465) signed ::= NK_MINUS NK_INTEGER */
-1, /* (466) signed ::= NK_FLOAT */
-2, /* (467) signed ::= NK_PLUS NK_FLOAT */
-2, /* (468) signed ::= NK_MINUS NK_FLOAT */
-1, /* (469) signed_literal ::= signed */
-1, /* (470) signed_literal ::= NK_STRING */
-1, /* (471) signed_literal ::= NK_BOOL */
-2, /* (472) signed_literal ::= TIMESTAMP NK_STRING */
-1, /* (473) signed_literal ::= duration_literal */
-1, /* (474) signed_literal ::= NULL */
-1, /* (475) signed_literal ::= literal_func */
-1, /* (476) signed_literal ::= NK_QUESTION */
-1, /* (477) literal_list ::= signed_literal */
-3, /* (478) literal_list ::= literal_list NK_COMMA signed_literal */
-1, /* (479) db_name ::= NK_ID */
-1, /* (480) table_name ::= NK_ID */
-1, /* (481) column_name ::= NK_ID */
-1, /* (482) function_name ::= NK_ID */
-1, /* (483) view_name ::= NK_ID */
-1, /* (484) table_alias ::= NK_ID */
-1, /* (485) column_alias ::= NK_ID */
-1, /* (486) column_alias ::= NK_ALIAS */
-1, /* (487) user_name ::= NK_ID */
-1, /* (488) topic_name ::= NK_ID */
-1, /* (489) stream_name ::= NK_ID */
-1, /* (490) cgroup_name ::= NK_ID */
-1, /* (491) index_name ::= NK_ID */
-1, /* (492) expr_or_subquery ::= expression */
-1, /* (493) expression ::= literal */
-1, /* (494) expression ::= pseudo_column */
-1, /* (495) expression ::= column_reference */
-1, /* (496) expression ::= function_expression */
-1, /* (497) expression ::= case_when_expression */
-3, /* (498) expression ::= NK_LP expression NK_RP */
-2, /* (499) expression ::= NK_PLUS expr_or_subquery */
-2, /* (500) expression ::= NK_MINUS expr_or_subquery */
-3, /* (501) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
-3, /* (502) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
-3, /* (503) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
-3, /* (504) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
-3, /* (505) expression ::= expr_or_subquery NK_REM expr_or_subquery */
-3, /* (506) expression ::= column_reference NK_ARROW NK_STRING */
-3, /* (507) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
-3, /* (508) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
-1, /* (509) expression_list ::= expr_or_subquery */
-3, /* (510) expression_list ::= expression_list NK_COMMA expr_or_subquery */
-1, /* (511) column_reference ::= column_name */
-3, /* (512) column_reference ::= table_name NK_DOT column_name */
-1, /* (513) column_reference ::= NK_ALIAS */
-3, /* (514) column_reference ::= table_name NK_DOT NK_ALIAS */
-1, /* (515) pseudo_column ::= ROWTS */
-1, /* (516) pseudo_column ::= TBNAME */
-3, /* (517) pseudo_column ::= table_name NK_DOT TBNAME */
-1, /* (518) pseudo_column ::= QSTART */
-1, /* (519) pseudo_column ::= QEND */
-1, /* (520) pseudo_column ::= QDURATION */
-1, /* (521) pseudo_column ::= WSTART */
-1, /* (522) pseudo_column ::= WEND */
-1, /* (523) pseudo_column ::= WDURATION */
-1, /* (524) pseudo_column ::= IROWTS */
-1, /* (525) pseudo_column ::= ISFILLED */
-1, /* (526) pseudo_column ::= QTAGS */
-4, /* (527) function_expression ::= function_name NK_LP expression_list NK_RP */
-4, /* (528) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
-6, /* (529) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
-1, /* (530) function_expression ::= literal_func */
-3, /* (531) literal_func ::= noarg_func NK_LP NK_RP */
-1, /* (532) literal_func ::= NOW */
-1, /* (533) literal_func ::= TODAY */
-1, /* (534) noarg_func ::= NOW */
-1, /* (535) noarg_func ::= TODAY */
-1, /* (536) noarg_func ::= TIMEZONE */
-1, /* (537) noarg_func ::= DATABASE */
-1, /* (538) noarg_func ::= CLIENT_VERSION */
-1, /* (539) noarg_func ::= SERVER_VERSION */
-1, /* (540) noarg_func ::= SERVER_STATUS */
-1, /* (541) noarg_func ::= CURRENT_USER */
-1, /* (542) noarg_func ::= USER */
-1, /* (543) star_func ::= COUNT */
-1, /* (544) star_func ::= FIRST */
-1, /* (545) star_func ::= LAST */
-1, /* (546) star_func ::= LAST_ROW */
-1, /* (547) star_func_para_list ::= NK_STAR */
-1, /* (548) star_func_para_list ::= other_para_list */
-1, /* (549) other_para_list ::= star_func_para */
-3, /* (550) other_para_list ::= other_para_list NK_COMMA star_func_para */
-1, /* (551) star_func_para ::= expr_or_subquery */
-3, /* (552) star_func_para ::= table_name NK_DOT NK_STAR */
-4, /* (553) case_when_expression ::= CASE when_then_list case_when_else_opt END */
-5, /* (554) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
-1, /* (555) when_then_list ::= when_then_expr */
-2, /* (556) when_then_list ::= when_then_list when_then_expr */
-4, /* (557) when_then_expr ::= WHEN common_expression THEN common_expression */
0, /* (558) case_when_else_opt ::= */
-2, /* (559) case_when_else_opt ::= ELSE common_expression */
-3, /* (560) predicate ::= expr_or_subquery compare_op expr_or_subquery */
-5, /* (561) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
-6, /* (562) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
-3, /* (563) predicate ::= expr_or_subquery IS NULL */
-4, /* (564) predicate ::= expr_or_subquery IS NOT NULL */
-3, /* (565) predicate ::= expr_or_subquery in_op in_predicate_value */
-1, /* (566) compare_op ::= NK_LT */
-1, /* (567) compare_op ::= NK_GT */
-1, /* (568) compare_op ::= NK_LE */
-1, /* (569) compare_op ::= NK_GE */
-1, /* (570) compare_op ::= NK_NE */
-1, /* (571) compare_op ::= NK_EQ */
-1, /* (572) compare_op ::= LIKE */
-2, /* (573) compare_op ::= NOT LIKE */
-1, /* (574) compare_op ::= MATCH */
-1, /* (575) compare_op ::= NMATCH */
-1, /* (576) compare_op ::= CONTAINS */
-1, /* (577) in_op ::= IN */
-2, /* (578) in_op ::= NOT IN */
-3, /* (579) in_predicate_value ::= NK_LP literal_list NK_RP */
-1, /* (580) boolean_value_expression ::= boolean_primary */
-2, /* (581) boolean_value_expression ::= NOT boolean_primary */
-3, /* (582) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
-3, /* (583) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
-1, /* (584) boolean_primary ::= predicate */
-3, /* (585) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
-1, /* (586) common_expression ::= expr_or_subquery */
-1, /* (587) common_expression ::= boolean_value_expression */
0, /* (588) from_clause_opt ::= */
-2, /* (589) from_clause_opt ::= FROM table_reference_list */
-1, /* (590) table_reference_list ::= table_reference */
-3, /* (591) table_reference_list ::= table_reference_list NK_COMMA table_reference */
-1, /* (592) table_reference ::= table_primary */
-1, /* (593) table_reference ::= joined_table */
-2, /* (594) table_primary ::= table_name alias_opt */
-4, /* (595) table_primary ::= db_name NK_DOT table_name alias_opt */
-2, /* (596) table_primary ::= subquery alias_opt */
-1, /* (597) table_primary ::= parenthesized_joined_table */
0, /* (598) alias_opt ::= */
-1, /* (599) alias_opt ::= table_alias */
-2, /* (600) alias_opt ::= AS table_alias */
-3, /* (601) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
-3, /* (602) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
-6, /* (603) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
0, /* (604) join_type ::= */
-1, /* (605) join_type ::= INNER */
-14, /* (606) 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, /* (607) hint_list ::= */
-1, /* (608) hint_list ::= NK_HINT */
0, /* (609) tag_mode_opt ::= */
-1, /* (610) tag_mode_opt ::= TAGS */
0, /* (611) set_quantifier_opt ::= */
-1, /* (612) set_quantifier_opt ::= DISTINCT */
-1, /* (613) set_quantifier_opt ::= ALL */
-1, /* (614) select_list ::= select_item */
-3, /* (615) select_list ::= select_list NK_COMMA select_item */
-1, /* (616) select_item ::= NK_STAR */
-1, /* (617) select_item ::= common_expression */
-2, /* (618) select_item ::= common_expression column_alias */
-3, /* (619) select_item ::= common_expression AS column_alias */
-3, /* (620) select_item ::= table_name NK_DOT NK_STAR */
0, /* (621) where_clause_opt ::= */
-2, /* (622) where_clause_opt ::= WHERE search_condition */
0, /* (623) partition_by_clause_opt ::= */
-3, /* (624) partition_by_clause_opt ::= PARTITION BY partition_list */
-1, /* (625) partition_list ::= partition_item */
-3, /* (626) partition_list ::= partition_list NK_COMMA partition_item */
-1, /* (627) partition_item ::= expr_or_subquery */
-2, /* (628) partition_item ::= expr_or_subquery column_alias */
-3, /* (629) partition_item ::= expr_or_subquery AS column_alias */
0, /* (630) twindow_clause_opt ::= */
-6, /* (631) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
-4, /* (632) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
-6, /* (633) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-8, /* (634) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-7, /* (635) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
-4, /* (636) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
-6, /* (637) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (638) sliding_opt ::= */
-4, /* (639) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
-1, /* (640) interval_sliding_duration_literal ::= NK_VARIABLE */
-1, /* (641) interval_sliding_duration_literal ::= NK_STRING */
-1, /* (642) interval_sliding_duration_literal ::= NK_INTEGER */
0, /* (643) fill_opt ::= */
-4, /* (644) fill_opt ::= FILL NK_LP fill_mode NK_RP */
-6, /* (645) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
-6, /* (646) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
-1, /* (647) fill_mode ::= NONE */
-1, /* (648) fill_mode ::= PREV */
-1, /* (649) fill_mode ::= NULL */
-1, /* (650) fill_mode ::= NULL_F */
-1, /* (651) fill_mode ::= LINEAR */
-1, /* (652) fill_mode ::= NEXT */
0, /* (653) group_by_clause_opt ::= */
-3, /* (654) group_by_clause_opt ::= GROUP BY group_by_list */
-1, /* (655) group_by_list ::= expr_or_subquery */
-3, /* (656) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
0, /* (657) having_clause_opt ::= */
-2, /* (658) having_clause_opt ::= HAVING search_condition */
0, /* (659) range_opt ::= */
-6, /* (660) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
-4, /* (661) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
0, /* (662) every_opt ::= */
-4, /* (663) every_opt ::= EVERY NK_LP duration_literal NK_RP */
-4, /* (664) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
-1, /* (665) query_simple ::= query_specification */
-1, /* (666) query_simple ::= union_query_expression */
-4, /* (667) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
-3, /* (668) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
-1, /* (669) query_simple_or_subquery ::= query_simple */
-1, /* (670) query_simple_or_subquery ::= subquery */
-1, /* (671) query_or_subquery ::= query_expression */
-1, /* (672) query_or_subquery ::= subquery */
0, /* (673) order_by_clause_opt ::= */
-3, /* (674) order_by_clause_opt ::= ORDER BY sort_specification_list */
0, /* (675) slimit_clause_opt ::= */
-2, /* (676) slimit_clause_opt ::= SLIMIT NK_INTEGER */
-4, /* (677) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
-4, /* (678) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
0, /* (679) limit_clause_opt ::= */
-2, /* (680) limit_clause_opt ::= LIMIT NK_INTEGER */
-4, /* (681) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
-4, /* (682) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
-3, /* (683) subquery ::= NK_LP query_expression NK_RP */
-3, /* (684) subquery ::= NK_LP subquery NK_RP */
-1, /* (685) search_condition ::= common_expression */
-1, /* (686) sort_specification_list ::= sort_specification */
-3, /* (687) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
-3, /* (688) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
0, /* (689) ordering_specification_opt ::= */
-1, /* (690) ordering_specification_opt ::= ASC */
-1, /* (691) ordering_specification_opt ::= DESC */
0, /* (692) null_ordering_opt ::= */
-2, /* (693) null_ordering_opt ::= NULLS FIRST */
-2, /* (694) null_ordering_opt ::= NULLS LAST */
0, /* (695) column_options ::= */
-3, /* (696) column_options ::= column_options PRIMARY KEY */
-3, /* (697) column_options ::= column_options ENCODE NK_STRING */
-3, /* (698) column_options ::= column_options COMPRESS NK_STRING */
-3, /* (699) column_options ::= column_options LEVEL NK_STRING */
};
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 */
#line 50 "sql.y"
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
#line 5303 "sql.c"
yy_destructor(yypParser,359,&yymsp[0].minor);
break;
case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
#line 51 "sql.y"
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
#line 5309 "sql.c"
yy_destructor(yypParser,360,&yymsp[0].minor);
break;
case 2: /* account_options ::= */
#line 55 "sql.y"
{ }
#line 5315 "sql.c"
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,359,&yymsp[-2].minor);
#line 56 "sql.y"
{ }
#line 5329 "sql.c"
yy_destructor(yypParser,361,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
{ yy_destructor(yypParser,362,&yymsp[0].minor);
#line 68 "sql.y"
{ }
#line 5337 "sql.c"
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
{ yy_destructor(yypParser,360,&yymsp[-1].minor);
#line 69 "sql.y"
{ }
#line 5344 "sql.c"
yy_destructor(yypParser,362,&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);
#line 73 "sql.y"
{ }
#line 5360 "sql.c"
yy_destructor(yypParser,361,&yymsp[0].minor);
break;
case 24: /* ip_range_list ::= NK_STRING */
#line 86 "sql.y"
{ yylhsminor.yy72 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
#line 5366 "sql.c"
yymsp[0].minor.yy72 = yylhsminor.yy72;
break;
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
#line 87 "sql.y"
{ yylhsminor.yy72 = addNodeToList(pCxt, yymsp[-2].minor.yy72, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
#line 5372 "sql.c"
yymsp[-2].minor.yy72 = yylhsminor.yy72;
break;
case 26: /* white_list ::= HOST ip_range_list */
#line 91 "sql.y"
{ yymsp[-1].minor.yy72 = yymsp[0].minor.yy72; }
#line 5378 "sql.c"
break;
case 27: /* white_list_opt ::= */
case 189: /* specific_cols_opt ::= */ yytestcase(yyruleno==189);
case 223: /* tags_def_opt ::= */ yytestcase(yyruleno==223);
case 312: /* tag_list_opt ::= */ yytestcase(yyruleno==312);
case 378: /* col_list_opt ::= */ yytestcase(yyruleno==378);
case 380: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==380);
case 623: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==623);
case 653: /* group_by_clause_opt ::= */ yytestcase(yyruleno==653);
case 673: /* order_by_clause_opt ::= */ yytestcase(yyruleno==673);
#line 95 "sql.y"
{ yymsp[1].minor.yy72 = NULL; }
#line 5391 "sql.c"
break;
case 28: /* white_list_opt ::= white_list */
case 224: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==224);
case 381: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==381);
case 548: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==548);
#line 96 "sql.y"
{ yylhsminor.yy72 = yymsp[0].minor.yy72; }
#line 5399 "sql.c"
yymsp[0].minor.yy72 = yylhsminor.yy72;
break;
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
#line 100 "sql.y"
{
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy305, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy359);
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy72);
}
#line 5408 "sql.c"
break;
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
#line 104 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy305, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
#line 5413 "sql.c"
break;
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
#line 105 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy305, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
#line 5418 "sql.c"
break;
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
#line 106 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy305, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
#line 5423 "sql.c"
break;
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
#line 107 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy305, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy72); }
#line 5428 "sql.c"
break;
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
#line 108 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy305, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy72); }
#line 5433 "sql.c"
break;
case 35: /* cmd ::= DROP USER user_name */
#line 109 "sql.y"
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy305); }
#line 5438 "sql.c"
break;
case 36: /* sysinfo_opt ::= */
#line 113 "sql.y"
{ yymsp[1].minor.yy359 = 1; }
#line 5443 "sql.c"
break;
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
#line 114 "sql.y"
{ yymsp[-1].minor.yy359 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
#line 5448 "sql.c"
break;
case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
#line 117 "sql.y"
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy1005, &yymsp[-3].minor.yy361, &yymsp[0].minor.yy305, yymsp[-2].minor.yy1000); }
#line 5453 "sql.c"
break;
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
#line 118 "sql.y"
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy1005, &yymsp[-3].minor.yy361, &yymsp[0].minor.yy305, yymsp[-2].minor.yy1000); }
#line 5458 "sql.c"
break;
case 40: /* privileges ::= ALL */
#line 122 "sql.y"
{ yymsp[0].minor.yy1005 = PRIVILEGE_TYPE_ALL; }
#line 5463 "sql.c"
break;
case 41: /* privileges ::= priv_type_list */
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
#line 123 "sql.y"
{ yylhsminor.yy1005 = yymsp[0].minor.yy1005; }
#line 5469 "sql.c"
yymsp[0].minor.yy1005 = yylhsminor.yy1005;
break;
case 42: /* privileges ::= SUBSCRIBE */
#line 124 "sql.y"
{ yymsp[0].minor.yy1005 = PRIVILEGE_TYPE_SUBSCRIBE; }
#line 5475 "sql.c"
break;
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
#line 129 "sql.y"
{ yylhsminor.yy1005 = yymsp[-2].minor.yy1005 | yymsp[0].minor.yy1005; }
#line 5480 "sql.c"
yymsp[-2].minor.yy1005 = yylhsminor.yy1005;
break;
case 45: /* priv_type ::= READ */
#line 133 "sql.y"
{ yymsp[0].minor.yy1005 = PRIVILEGE_TYPE_READ; }
#line 5486 "sql.c"
break;
case 46: /* priv_type ::= WRITE */
#line 134 "sql.y"
{ yymsp[0].minor.yy1005 = PRIVILEGE_TYPE_WRITE; }
#line 5491 "sql.c"
break;
case 47: /* priv_type ::= ALTER */
#line 135 "sql.y"
{ yymsp[0].minor.yy1005 = PRIVILEGE_TYPE_ALTER; }
#line 5496 "sql.c"
break;
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
#line 139 "sql.y"
{ yylhsminor.yy361.first = yymsp[-2].minor.yy0; yylhsminor.yy361.second = yymsp[0].minor.yy0; }
#line 5501 "sql.c"
yymsp[-2].minor.yy361 = yylhsminor.yy361;
break;
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
#line 140 "sql.y"
{ yylhsminor.yy361.first = yymsp[-2].minor.yy305; yylhsminor.yy361.second = yymsp[0].minor.yy0; }
#line 5507 "sql.c"
yymsp[-2].minor.yy361 = yylhsminor.yy361;
break;
case 50: /* priv_level ::= db_name NK_DOT table_name */
#line 141 "sql.y"
{ yylhsminor.yy361.first = yymsp[-2].minor.yy305; yylhsminor.yy361.second = yymsp[0].minor.yy305; }
#line 5513 "sql.c"
yymsp[-2].minor.yy361 = yylhsminor.yy361;
break;
case 51: /* priv_level ::= topic_name */
#line 142 "sql.y"
{ yylhsminor.yy361.first = yymsp[0].minor.yy305; yylhsminor.yy361.second = nil_token; }
#line 5519 "sql.c"
yymsp[0].minor.yy361 = yylhsminor.yy361;
break;
case 52: /* with_opt ::= */
case 157: /* start_opt ::= */ yytestcase(yyruleno==157);
case 161: /* end_opt ::= */ yytestcase(yyruleno==161);
case 307: /* like_pattern_opt ::= */ yytestcase(yyruleno==307);
case 392: /* subtable_opt ::= */ yytestcase(yyruleno==392);
case 558: /* case_when_else_opt ::= */ yytestcase(yyruleno==558);
case 588: /* from_clause_opt ::= */ yytestcase(yyruleno==588);
case 621: /* where_clause_opt ::= */ yytestcase(yyruleno==621);
case 630: /* twindow_clause_opt ::= */ yytestcase(yyruleno==630);
case 638: /* sliding_opt ::= */ yytestcase(yyruleno==638);
case 643: /* fill_opt ::= */ yytestcase(yyruleno==643);
case 657: /* having_clause_opt ::= */ yytestcase(yyruleno==657);
case 659: /* range_opt ::= */ yytestcase(yyruleno==659);
case 662: /* every_opt ::= */ yytestcase(yyruleno==662);
case 675: /* slimit_clause_opt ::= */ yytestcase(yyruleno==675);
case 679: /* limit_clause_opt ::= */ yytestcase(yyruleno==679);
#line 144 "sql.y"
{ yymsp[1].minor.yy1000 = NULL; }
#line 5540 "sql.c"
break;
case 53: /* with_opt ::= WITH search_condition */
case 589: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==589);
case 622: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==622);
case 658: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==658);
#line 145 "sql.y"
{ yymsp[-1].minor.yy1000 = yymsp[0].minor.yy1000; }
#line 5548 "sql.c"
break;
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
#line 148 "sql.y"
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy305, NULL); }
#line 5553 "sql.c"
break;
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
#line 149 "sql.y"
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy0); }
#line 5558 "sql.c"
break;
case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
#line 150 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy985, false); }
#line 5563 "sql.c"
break;
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
#line 151 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy305, yymsp[0].minor.yy985, false); }
#line 5568 "sql.c"
break;
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
#line 152 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy985); }
#line 5573 "sql.c"
break;
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
#line 153 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy305, false, yymsp[0].minor.yy985); }
#line 5578 "sql.c"
break;
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
#line 154 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
#line 5583 "sql.c"
break;
case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
#line 155 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
#line 5588 "sql.c"
break;
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */
#line 156 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
#line 5593 "sql.c"
break;
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
#line 157 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
#line 5598 "sql.c"
break;
case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */
#line 158 "sql.y"
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
#line 5603 "sql.c"
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 334: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==334);
case 335: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==335);
case 336: /* sma_func_name ::= LAST */ yytestcase(yyruleno==336);
case 337: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==337);
case 479: /* db_name ::= NK_ID */ yytestcase(yyruleno==479);
case 480: /* table_name ::= NK_ID */ yytestcase(yyruleno==480);
case 481: /* column_name ::= NK_ID */ yytestcase(yyruleno==481);
case 482: /* function_name ::= NK_ID */ yytestcase(yyruleno==482);
case 483: /* view_name ::= NK_ID */ yytestcase(yyruleno==483);
case 484: /* table_alias ::= NK_ID */ yytestcase(yyruleno==484);
case 485: /* column_alias ::= NK_ID */ yytestcase(yyruleno==485);
case 486: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==486);
case 487: /* user_name ::= NK_ID */ yytestcase(yyruleno==487);
case 488: /* topic_name ::= NK_ID */ yytestcase(yyruleno==488);
case 489: /* stream_name ::= NK_ID */ yytestcase(yyruleno==489);
case 490: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==490);
case 491: /* index_name ::= NK_ID */ yytestcase(yyruleno==491);
case 534: /* noarg_func ::= NOW */ yytestcase(yyruleno==534);
case 535: /* noarg_func ::= TODAY */ yytestcase(yyruleno==535);
case 536: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==536);
case 537: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==537);
case 538: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==538);
case 539: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==539);
case 540: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==540);
case 541: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==541);
case 542: /* noarg_func ::= USER */ yytestcase(yyruleno==542);
case 543: /* star_func ::= COUNT */ yytestcase(yyruleno==543);
case 544: /* star_func ::= FIRST */ yytestcase(yyruleno==544);
case 545: /* star_func ::= LAST */ yytestcase(yyruleno==545);
case 546: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==546);
#line 162 "sql.y"
{ yylhsminor.yy305 = yymsp[0].minor.yy0; }
#line 5640 "sql.c"
yymsp[0].minor.yy305 = yylhsminor.yy305;
break;
case 68: /* force_opt ::= */
case 94: /* not_exists_opt ::= */ yytestcase(yyruleno==94);
case 96: /* exists_opt ::= */ yytestcase(yyruleno==96);
case 355: /* analyze_opt ::= */ yytestcase(yyruleno==355);
case 362: /* agg_func_opt ::= */ yytestcase(yyruleno==362);
case 368: /* or_replace_opt ::= */ yytestcase(yyruleno==368);
case 394: /* ignore_opt ::= */ yytestcase(yyruleno==394);
case 609: /* tag_mode_opt ::= */ yytestcase(yyruleno==609);
case 611: /* set_quantifier_opt ::= */ yytestcase(yyruleno==611);
#line 168 "sql.y"
{ yymsp[1].minor.yy985 = false; }
#line 5654 "sql.c"
break;
case 69: /* force_opt ::= FORCE */
case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70);
case 356: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==356);
case 363: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==363);
case 610: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==610);
case 612: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==612);
#line 169 "sql.y"
{ yymsp[0].minor.yy985 = true; }
#line 5664 "sql.c"
break;
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
#line 176 "sql.y"
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
#line 5669 "sql.c"
break;
case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
#line 177 "sql.y"
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
#line 5674 "sql.c"
break;
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
#line 180 "sql.y"
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
#line 5679 "sql.c"
break;
case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
#line 181 "sql.y"
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
#line 5684 "sql.c"
break;
case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
#line 184 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
#line 5689 "sql.c"
break;
case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
#line 185 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
#line 5694 "sql.c"
break;
case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
#line 186 "sql.y"
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
#line 5699 "sql.c"
break;
case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
#line 189 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
#line 5704 "sql.c"
break;
case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
#line 190 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
#line 5709 "sql.c"
break;
case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
#line 193 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
#line 5714 "sql.c"
break;
case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
#line 194 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
#line 5719 "sql.c"
break;
case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
#line 197 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
#line 5724 "sql.c"
break;
case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
#line 198 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
#line 5729 "sql.c"
break;
case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
#line 199 "sql.y"
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
#line 5734 "sql.c"
break;
case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
#line 202 "sql.y"
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
#line 5739 "sql.c"
break;
case 86: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
#line 205 "sql.y"
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy985, &yymsp[-1].minor.yy305, yymsp[0].minor.yy1000); }
#line 5744 "sql.c"
break;
case 87: /* cmd ::= DROP DATABASE exists_opt db_name */
#line 206 "sql.y"
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy305); }
#line 5749 "sql.c"
break;
case 88: /* cmd ::= USE db_name */
#line 207 "sql.y"
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy305); }
#line 5754 "sql.c"
break;
case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */
#line 208 "sql.y"
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy305, yymsp[0].minor.yy1000); }
#line 5759 "sql.c"
break;
case 90: /* cmd ::= FLUSH DATABASE db_name */
#line 209 "sql.y"
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy305); }
#line 5764 "sql.c"
break;
case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */
#line 210 "sql.y"
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy305, yymsp[0].minor.yy444); }
#line 5769 "sql.c"
break;
case 92: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
#line 211 "sql.y"
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy305, yymsp[-1].minor.yy1000, yymsp[0].minor.yy1000); }
#line 5774 "sql.c"
break;
case 93: /* not_exists_opt ::= IF NOT EXISTS */
#line 215 "sql.y"
{ yymsp[-2].minor.yy985 = true; }
#line 5779 "sql.c"
break;
case 95: /* exists_opt ::= IF EXISTS */
case 369: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==369);
case 395: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==395);
#line 220 "sql.y"
{ yymsp[-1].minor.yy985 = true; }
#line 5786 "sql.c"
break;
case 97: /* db_options ::= */
#line 223 "sql.y"
{ yymsp[1].minor.yy1000 = createDefaultDatabaseOptions(pCxt); }
#line 5791 "sql.c"
break;
case 98: /* db_options ::= db_options BUFFER NK_INTEGER */
#line 224 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
#line 5796 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 99: /* db_options ::= db_options CACHEMODEL NK_STRING */
#line 225 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
#line 5802 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 100: /* db_options ::= db_options CACHESIZE NK_INTEGER */
#line 226 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
#line 5808 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 101: /* db_options ::= db_options COMP NK_INTEGER */
#line 227 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
#line 5814 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 102: /* db_options ::= db_options DURATION NK_INTEGER */
case 103: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==103);
#line 228 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
#line 5821 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 104: /* db_options ::= db_options MAXROWS NK_INTEGER */
#line 230 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
#line 5827 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 105: /* db_options ::= db_options MINROWS NK_INTEGER */
#line 231 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
#line 5833 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 106: /* db_options ::= db_options KEEP integer_list */
case 107: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==107);
#line 232 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_KEEP, yymsp[0].minor.yy72); }
#line 5840 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 108: /* db_options ::= db_options PAGES NK_INTEGER */
#line 234 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
#line 5846 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 109: /* db_options ::= db_options PAGESIZE NK_INTEGER */
#line 235 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
#line 5852 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 110: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
#line 236 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
#line 5858 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 111: /* db_options ::= db_options PRECISION NK_STRING */
#line 237 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
#line 5864 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 112: /* db_options ::= db_options REPLICA NK_INTEGER */
#line 238 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
#line 5870 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 113: /* db_options ::= db_options VGROUPS NK_INTEGER */
#line 240 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
#line 5876 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 114: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
#line 241 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
#line 5882 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 115: /* db_options ::= db_options RETENTIONS retention_list */
#line 242 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_RETENTIONS, yymsp[0].minor.yy72); }
#line 5888 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 116: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
#line 243 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
#line 5894 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 117: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
#line 244 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
#line 5900 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 118: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
#line 245 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
#line 5906 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 119: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
#line 246 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
#line 5912 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 120: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
#line 247 "sql.y"
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-3].minor.yy1000, DB_OPTION_WAL_RETENTION_PERIOD, &t);
}
#line 5922 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 121: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
#line 252 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
#line 5928 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 122: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
#line 253 "sql.y"
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-3].minor.yy1000, DB_OPTION_WAL_RETENTION_SIZE, &t);
}
#line 5938 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 123: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
#line 258 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
#line 5944 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 124: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
#line 259 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
#line 5950 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 125: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
#line 260 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
#line 5956 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 126: /* db_options ::= db_options TABLE_PREFIX signed */
#line 261 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy1000); }
#line 5962 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 127: /* db_options ::= db_options TABLE_SUFFIX signed */
#line 262 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy1000); }
#line 5968 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 128: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
#line 263 "sql.y"
{ yylhsminor.yy1000 = setDatabaseOption(pCxt, yymsp[-2].minor.yy1000, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
#line 5974 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 129: /* alter_db_options ::= alter_db_option */
#line 265 "sql.y"
{ yylhsminor.yy1000 = createAlterDatabaseOptions(pCxt); yylhsminor.yy1000 = setAlterDatabaseOption(pCxt, yylhsminor.yy1000, &yymsp[0].minor.yy941); }
#line 5980 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 130: /* alter_db_options ::= alter_db_options alter_db_option */
#line 266 "sql.y"
{ yylhsminor.yy1000 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy1000, &yymsp[0].minor.yy941); }
#line 5986 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 131: /* alter_db_option ::= BUFFER NK_INTEGER */
#line 270 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 5992 "sql.c"
break;
case 132: /* alter_db_option ::= CACHEMODEL NK_STRING */
#line 271 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 5997 "sql.c"
break;
case 133: /* alter_db_option ::= CACHESIZE NK_INTEGER */
#line 272 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6002 "sql.c"
break;
case 134: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
#line 273 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6007 "sql.c"
break;
case 135: /* alter_db_option ::= KEEP integer_list */
case 136: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==136);
#line 274 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_KEEP; yymsp[-1].minor.yy941.pList = yymsp[0].minor.yy72; }
#line 6013 "sql.c"
break;
case 137: /* alter_db_option ::= PAGES NK_INTEGER */
#line 276 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_PAGES; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6018 "sql.c"
break;
case 138: /* alter_db_option ::= REPLICA NK_INTEGER */
#line 277 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6023 "sql.c"
break;
case 139: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
#line 279 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_WAL; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6028 "sql.c"
break;
case 140: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
#line 280 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6033 "sql.c"
break;
case 141: /* alter_db_option ::= MINROWS NK_INTEGER */
#line 281 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6038 "sql.c"
break;
case 142: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
#line 282 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6043 "sql.c"
break;
case 143: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
#line 283 "sql.y"
{
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.yy941.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy941.val = t;
}
#line 6052 "sql.c"
break;
case 144: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
#line 288 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6057 "sql.c"
break;
case 145: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
#line 289 "sql.y"
{
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.yy941.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy941.val = t;
}
#line 6066 "sql.c"
break;
case 146: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
#line 294 "sql.y"
{ yymsp[-1].minor.yy941.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6071 "sql.c"
break;
case 147: /* integer_list ::= NK_INTEGER */
#line 298 "sql.y"
{ yylhsminor.yy72 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 6076 "sql.c"
yymsp[0].minor.yy72 = yylhsminor.yy72;
break;
case 148: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
case 408: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==408);
#line 299 "sql.y"
{ yylhsminor.yy72 = addNodeToList(pCxt, yymsp[-2].minor.yy72, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 6083 "sql.c"
yymsp[-2].minor.yy72 = yylhsminor.yy72;
break;
case 149: /* variable_list ::= NK_VARIABLE */
#line 303 "sql.y"
{ yylhsminor.yy72 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 6089 "sql.c"
yymsp[0].minor.yy72 = yylhsminor.yy72;
break;
case 150: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
#line 304 "sql.y"
{ yylhsminor.yy72 = addNodeToList(pCxt, yymsp[-2].minor.yy72, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 6095 "sql.c"
yymsp[-2].minor.yy72 = yylhsminor.yy72;
break;
case 151: /* retention_list ::= retention */
case 183: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==183);
case 186: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==186);
case 193: /* tag_def_list ::= tag_def */ yytestcase(yyruleno==193);
case 196: /* column_def_list ::= column_def */ yytestcase(yyruleno==196);
case 240: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==240);
case 245: /* col_name_list ::= col_name */ yytestcase(yyruleno==245);
case 313: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==313);
case 330: /* func_list ::= func */ yytestcase(yyruleno==330);
case 452: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==452);
case 477: /* literal_list ::= signed_literal */ yytestcase(yyruleno==477);
case 549: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==549);
case 555: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==555);
case 614: /* select_list ::= select_item */ yytestcase(yyruleno==614);
case 625: /* partition_list ::= partition_item */ yytestcase(yyruleno==625);
case 686: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==686);
#line 308 "sql.y"
{ yylhsminor.yy72 = createNodeList(pCxt, yymsp[0].minor.yy1000); }
#line 6116 "sql.c"
yymsp[0].minor.yy72 = yylhsminor.yy72;
break;
case 152: /* retention_list ::= retention_list NK_COMMA retention */
case 187: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==187);
case 194: /* tag_def_list ::= tag_def_list NK_COMMA tag_def */ yytestcase(yyruleno==194);
case 197: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==197);
case 241: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==241);
case 246: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==246);
case 314: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==314);
case 331: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==331);
case 453: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==453);
case 478: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==478);
case 550: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==550);
case 615: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==615);
case 626: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==626);
case 687: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==687);
#line 309 "sql.y"
{ yylhsminor.yy72 = addNodeToList(pCxt, yymsp[-2].minor.yy72, yymsp[0].minor.yy1000); }
#line 6135 "sql.c"
yymsp[-2].minor.yy72 = yylhsminor.yy72;
break;
case 153: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
case 154: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==154);
#line 311 "sql.y"
{ yylhsminor.yy1000 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 6142 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 155: /* speed_opt ::= */
case 364: /* bufsize_opt ::= */ yytestcase(yyruleno==364);
#line 316 "sql.y"
{ yymsp[1].minor.yy444 = 0; }
#line 6149 "sql.c"
break;
case 156: /* speed_opt ::= BWLIMIT NK_INTEGER */
case 365: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==365);
#line 317 "sql.y"
{ yymsp[-1].minor.yy444 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
#line 6155 "sql.c"
break;
case 158: /* start_opt ::= START WITH NK_INTEGER */
case 162: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==162);
#line 320 "sql.y"
{ yymsp[-2].minor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
#line 6161 "sql.c"
break;
case 159: /* start_opt ::= START WITH NK_STRING */
case 163: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==163);
#line 321 "sql.y"
{ yymsp[-2].minor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
#line 6167 "sql.c"
break;
case 160: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
case 164: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==164);
#line 322 "sql.y"
{ yymsp[-3].minor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
#line 6173 "sql.c"
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);
#line 331 "sql.y"
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy985, yymsp[-5].minor.yy1000, yymsp[-3].minor.yy72, yymsp[-1].minor.yy72, yymsp[0].minor.yy1000); }
#line 6179 "sql.c"
break;
case 166: /* cmd ::= CREATE TABLE multi_create_clause */
#line 332 "sql.y"
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy72); }
#line 6184 "sql.c"
break;
case 168: /* cmd ::= DROP TABLE multi_drop_clause */
#line 335 "sql.y"
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy72); }
#line 6189 "sql.c"
break;
case 169: /* cmd ::= DROP STABLE exists_opt full_table_name */
#line 336 "sql.y"
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy985, yymsp[0].minor.yy1000); }
#line 6194 "sql.c"
break;
case 170: /* cmd ::= ALTER TABLE alter_table_clause */
case 410: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==410);
case 411: /* cmd ::= insert_query */ yytestcase(yyruleno==411);
#line 338 "sql.y"
{ pCxt->pRootNode = yymsp[0].minor.yy1000; }
#line 6201 "sql.c"
break;
case 171: /* cmd ::= ALTER STABLE alter_table_clause */
#line 339 "sql.y"
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy1000); }
#line 6206 "sql.c"
break;
case 172: /* alter_table_clause ::= full_table_name alter_table_options */
#line 341 "sql.y"
{ yylhsminor.yy1000 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy1000, yymsp[0].minor.yy1000); }
#line 6211 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 173: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
#line 343 "sql.y"
{ yylhsminor.yy1000 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy1000, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy305, yymsp[0].minor.yy56); }
#line 6217 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 174: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
#line 344 "sql.y"
{ yylhsminor.yy1000 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy1000, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy305); }
#line 6223 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 175: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
#line 346 "sql.y"
{ yylhsminor.yy1000 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy1000, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy305, yymsp[0].minor.yy56); }
#line 6229 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 176: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */
#line 348 "sql.y"
{ yylhsminor.yy1000 = createAlterTableAddModifyColOptions(pCxt, yymsp[-4].minor.yy1000, TSDB_ALTER_TABLE_UPDATE_COLUMN_COMPRESS, &yymsp[-1].minor.yy305, yymsp[0].minor.yy1000); }
#line 6235 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 177: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
#line 350 "sql.y"
{ yylhsminor.yy1000 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy1000, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy305, &yymsp[0].minor.yy305); }
#line 6241 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 178: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
#line 352 "sql.y"
{ yylhsminor.yy1000 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy1000, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy305, yymsp[0].minor.yy56); }
#line 6247 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 179: /* alter_table_clause ::= full_table_name DROP TAG column_name */
#line 353 "sql.y"
{ yylhsminor.yy1000 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy1000, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy305); }
#line 6253 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 180: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
#line 355 "sql.y"
{ yylhsminor.yy1000 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy1000, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy305, yymsp[0].minor.yy56); }
#line 6259 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 181: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
#line 357 "sql.y"
{ yylhsminor.yy1000 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy1000, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy305, &yymsp[0].minor.yy305); }
#line 6265 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 182: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
#line 359 "sql.y"
{ yylhsminor.yy1000 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy1000, &yymsp[-2].minor.yy305, yymsp[0].minor.yy1000); }
#line 6271 "sql.c"
yymsp[-5].minor.yy1000 = yylhsminor.yy1000;
break;
case 184: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
case 556: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==556);
#line 364 "sql.y"
{ yylhsminor.yy72 = addNodeToList(pCxt, yymsp[-1].minor.yy72, yymsp[0].minor.yy1000); }
#line 6278 "sql.c"
yymsp[-1].minor.yy72 = yylhsminor.yy72;
break;
case 185: /* 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 */
#line 368 "sql.y"
{ yylhsminor.yy1000 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy985, yymsp[-8].minor.yy1000, yymsp[-6].minor.yy1000, yymsp[-5].minor.yy72, yymsp[-2].minor.yy72, yymsp[0].minor.yy1000); }
#line 6284 "sql.c"
yymsp[-9].minor.yy1000 = yylhsminor.yy1000;
break;
case 188: /* drop_table_clause ::= exists_opt full_table_name */
#line 375 "sql.y"
{ yylhsminor.yy1000 = createDropTableClause(pCxt, yymsp[-1].minor.yy985, yymsp[0].minor.yy1000); }
#line 6290 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 190: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
case 379: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==379);
#line 380 "sql.y"
{ yymsp[-2].minor.yy72 = yymsp[-1].minor.yy72; }
#line 6297 "sql.c"
break;
case 191: /* full_table_name ::= table_name */
#line 382 "sql.y"
{ yylhsminor.yy1000 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy305, NULL); }
#line 6302 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 192: /* full_table_name ::= db_name NK_DOT table_name */
#line 383 "sql.y"
{ yylhsminor.yy1000 = createRealTableNode(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy305, NULL); }
#line 6308 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 195: /* tag_def ::= column_name type_name */
#line 389 "sql.y"
{ yylhsminor.yy1000 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy305, yymsp[0].minor.yy56, NULL); }
#line 6314 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 198: /* column_def ::= column_name type_name column_options */
#line 397 "sql.y"
{ yylhsminor.yy1000 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy305, yymsp[-1].minor.yy56, yymsp[0].minor.yy1000); }
#line 6320 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 199: /* type_name ::= BOOL */
#line 401 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_BOOL); }
#line 6326 "sql.c"
break;
case 200: /* type_name ::= TINYINT */
#line 402 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_TINYINT); }
#line 6331 "sql.c"
break;
case 201: /* type_name ::= SMALLINT */
#line 403 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
#line 6336 "sql.c"
break;
case 202: /* type_name ::= INT */
case 203: /* type_name ::= INTEGER */ yytestcase(yyruleno==203);
#line 404 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_INT); }
#line 6342 "sql.c"
break;
case 204: /* type_name ::= BIGINT */
#line 406 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_BIGINT); }
#line 6347 "sql.c"
break;
case 205: /* type_name ::= FLOAT */
#line 407 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_FLOAT); }
#line 6352 "sql.c"
break;
case 206: /* type_name ::= DOUBLE */
#line 408 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
#line 6357 "sql.c"
break;
case 207: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
#line 409 "sql.y"
{ yymsp[-3].minor.yy56 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
#line 6362 "sql.c"
break;
case 208: /* type_name ::= TIMESTAMP */
#line 410 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
#line 6367 "sql.c"
break;
case 209: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
#line 411 "sql.y"
{ yymsp[-3].minor.yy56 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
#line 6372 "sql.c"
break;
case 210: /* type_name ::= TINYINT UNSIGNED */
#line 412 "sql.y"
{ yymsp[-1].minor.yy56 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
#line 6377 "sql.c"
break;
case 211: /* type_name ::= SMALLINT UNSIGNED */
#line 413 "sql.y"
{ yymsp[-1].minor.yy56 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
#line 6382 "sql.c"
break;
case 212: /* type_name ::= INT UNSIGNED */
#line 414 "sql.y"
{ yymsp[-1].minor.yy56 = createDataType(TSDB_DATA_TYPE_UINT); }
#line 6387 "sql.c"
break;
case 213: /* type_name ::= BIGINT UNSIGNED */
#line 415 "sql.y"
{ yymsp[-1].minor.yy56 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
#line 6392 "sql.c"
break;
case 214: /* type_name ::= JSON */
#line 416 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_JSON); }
#line 6397 "sql.c"
break;
case 215: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
#line 417 "sql.y"
{ yymsp[-3].minor.yy56 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
#line 6402 "sql.c"
break;
case 216: /* type_name ::= MEDIUMBLOB */
#line 418 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
#line 6407 "sql.c"
break;
case 217: /* type_name ::= BLOB */
#line 419 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_BLOB); }
#line 6412 "sql.c"
break;
case 218: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
#line 420 "sql.y"
{ yymsp[-3].minor.yy56 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
#line 6417 "sql.c"
break;
case 219: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
#line 421 "sql.y"
{ yymsp[-3].minor.yy56 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
#line 6422 "sql.c"
break;
case 220: /* type_name ::= DECIMAL */
#line 422 "sql.y"
{ yymsp[0].minor.yy56 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
#line 6427 "sql.c"
break;
case 221: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
#line 423 "sql.y"
{ yymsp[-3].minor.yy56 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
#line 6432 "sql.c"
break;
case 222: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
#line 424 "sql.y"
{ yymsp[-5].minor.yy56 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
#line 6437 "sql.c"
break;
case 225: /* tags_def ::= TAGS NK_LP tag_def_list NK_RP */
case 382: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==382);
#line 433 "sql.y"
{ yymsp[-3].minor.yy72 = yymsp[-1].minor.yy72; }
#line 6443 "sql.c"
break;
case 226: /* table_options ::= */
#line 435 "sql.y"
{ yymsp[1].minor.yy1000 = createDefaultTableOptions(pCxt); }
#line 6448 "sql.c"
break;
case 227: /* table_options ::= table_options COMMENT NK_STRING */
#line 436 "sql.y"
{ yylhsminor.yy1000 = setTableOption(pCxt, yymsp[-2].minor.yy1000, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
#line 6453 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 228: /* table_options ::= table_options MAX_DELAY duration_list */
#line 437 "sql.y"
{ yylhsminor.yy1000 = setTableOption(pCxt, yymsp[-2].minor.yy1000, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy72); }
#line 6459 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 229: /* table_options ::= table_options WATERMARK duration_list */
#line 438 "sql.y"
{ yylhsminor.yy1000 = setTableOption(pCxt, yymsp[-2].minor.yy1000, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy72); }
#line 6465 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 230: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
#line 439 "sql.y"
{ yylhsminor.yy1000 = setTableOption(pCxt, yymsp[-4].minor.yy1000, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy72); }
#line 6471 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 231: /* table_options ::= table_options TTL NK_INTEGER */
#line 440 "sql.y"
{ yylhsminor.yy1000 = setTableOption(pCxt, yymsp[-2].minor.yy1000, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
#line 6477 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 232: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
#line 441 "sql.y"
{ yylhsminor.yy1000 = setTableOption(pCxt, yymsp[-4].minor.yy1000, TABLE_OPTION_SMA, yymsp[-1].minor.yy72); }
#line 6483 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 233: /* table_options ::= table_options DELETE_MARK duration_list */
#line 442 "sql.y"
{ yylhsminor.yy1000 = setTableOption(pCxt, yymsp[-2].minor.yy1000, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy72); }
#line 6489 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 234: /* alter_table_options ::= alter_table_option */
#line 444 "sql.y"
{ yylhsminor.yy1000 = createAlterTableOptions(pCxt); yylhsminor.yy1000 = setTableOption(pCxt, yylhsminor.yy1000, yymsp[0].minor.yy941.type, &yymsp[0].minor.yy941.val); }
#line 6495 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 235: /* alter_table_options ::= alter_table_options alter_table_option */
#line 445 "sql.y"
{ yylhsminor.yy1000 = setTableOption(pCxt, yymsp[-1].minor.yy1000, yymsp[0].minor.yy941.type, &yymsp[0].minor.yy941.val); }
#line 6501 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 236: /* alter_table_option ::= COMMENT NK_STRING */
#line 449 "sql.y"
{ yymsp[-1].minor.yy941.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6507 "sql.c"
break;
case 237: /* alter_table_option ::= TTL NK_INTEGER */
#line 450 "sql.y"
{ yymsp[-1].minor.yy941.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy941.val = yymsp[0].minor.yy0; }
#line 6512 "sql.c"
break;
case 238: /* duration_list ::= duration_literal */
case 509: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==509);
#line 454 "sql.y"
{ yylhsminor.yy72 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)); }
#line 6518 "sql.c"
yymsp[0].minor.yy72 = yylhsminor.yy72;
break;
case 239: /* duration_list ::= duration_list NK_COMMA duration_literal */
case 510: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==510);
#line 455 "sql.y"
{ yylhsminor.yy72 = addNodeToList(pCxt, yymsp[-2].minor.yy72, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)); }
#line 6525 "sql.c"
yymsp[-2].minor.yy72 = yylhsminor.yy72;
break;
case 242: /* rollup_func_name ::= function_name */
#line 462 "sql.y"
{ yylhsminor.yy1000 = createFunctionNode(pCxt, &yymsp[0].minor.yy305, NULL); }
#line 6531 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 243: /* rollup_func_name ::= FIRST */
case 244: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==244);
case 316: /* tag_item ::= QTAGS */ yytestcase(yyruleno==316);
#line 463 "sql.y"
{ yylhsminor.yy1000 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
#line 6539 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 247: /* col_name ::= column_name */
case 317: /* tag_item ::= column_name */ yytestcase(yyruleno==317);
#line 471 "sql.y"
{ yylhsminor.yy1000 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy305); }
#line 6546 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 248: /* cmd ::= SHOW DNODES */
#line 474 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
#line 6552 "sql.c"
break;
case 249: /* cmd ::= SHOW USERS */
#line 475 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
#line 6557 "sql.c"
break;
case 250: /* cmd ::= SHOW USER PRIVILEGES */
#line 476 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
#line 6562 "sql.c"
break;
case 251: /* cmd ::= SHOW db_kind_opt DATABASES */
#line 477 "sql.y"
{
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy761);
}
#line 6570 "sql.c"
break;
case 252: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
#line 481 "sql.y"
{
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy517, yymsp[0].minor.yy1000, OP_TYPE_LIKE);
}
#line 6577 "sql.c"
break;
case 253: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
#line 484 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy1000, yymsp[0].minor.yy1000, OP_TYPE_LIKE); }
#line 6582 "sql.c"
break;
case 254: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
#line 485 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy1000, NULL, OP_TYPE_LIKE); }
#line 6587 "sql.c"
break;
case 255: /* cmd ::= SHOW MNODES */
#line 486 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
#line 6592 "sql.c"
break;
case 256: /* cmd ::= SHOW QNODES */
#line 488 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
#line 6597 "sql.c"
break;
case 257: /* cmd ::= SHOW ARBGROUPS */
#line 489 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); }
#line 6602 "sql.c"
break;
case 258: /* cmd ::= SHOW FUNCTIONS */
#line 490 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
#line 6607 "sql.c"
break;
case 259: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
#line 491 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy1000, yymsp[-1].minor.yy1000, OP_TYPE_EQUAL); }
#line 6612 "sql.c"
break;
case 260: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
#line 492 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy305), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy305), OP_TYPE_EQUAL); }
#line 6617 "sql.c"
break;
case 261: /* cmd ::= SHOW STREAMS */
#line 493 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
#line 6622 "sql.c"
break;
case 262: /* cmd ::= SHOW ACCOUNTS */
#line 494 "sql.y"
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
#line 6627 "sql.c"
break;
case 263: /* cmd ::= SHOW APPS */
#line 495 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
#line 6632 "sql.c"
break;
case 264: /* cmd ::= SHOW CONNECTIONS */
#line 496 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
#line 6637 "sql.c"
break;
case 265: /* cmd ::= SHOW LICENCES */
case 266: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==266);
#line 497 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
#line 6643 "sql.c"
break;
case 267: /* cmd ::= SHOW GRANTS FULL */
#line 499 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); }
#line 6648 "sql.c"
break;
case 268: /* cmd ::= SHOW GRANTS LOGS */
#line 500 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); }
#line 6653 "sql.c"
break;
case 269: /* cmd ::= SHOW CLUSTER MACHINES */
#line 501 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); }
#line 6658 "sql.c"
break;
case 270: /* cmd ::= SHOW CREATE DATABASE db_name */
#line 502 "sql.y"
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy305); }
#line 6663 "sql.c"
break;
case 271: /* cmd ::= SHOW CREATE TABLE full_table_name */
#line 503 "sql.y"
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy1000); }
#line 6668 "sql.c"
break;
case 272: /* cmd ::= SHOW CREATE STABLE full_table_name */
#line 504 "sql.y"
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy1000); }
#line 6673 "sql.c"
break;
case 273: /* cmd ::= SHOW QUERIES */
#line 505 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
#line 6678 "sql.c"
break;
case 274: /* cmd ::= SHOW SCORES */
#line 506 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
#line 6683 "sql.c"
break;
case 275: /* cmd ::= SHOW TOPICS */
#line 507 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
#line 6688 "sql.c"
break;
case 276: /* cmd ::= SHOW VARIABLES */
case 277: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==277);
#line 508 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
#line 6694 "sql.c"
break;
case 278: /* cmd ::= SHOW LOCAL VARIABLES */
#line 510 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
#line 6699 "sql.c"
break;
case 279: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
#line 511 "sql.y"
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy1000); }
#line 6704 "sql.c"
break;
case 280: /* cmd ::= SHOW BNODES */
#line 512 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
#line 6709 "sql.c"
break;
case 281: /* cmd ::= SHOW SNODES */
#line 513 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
#line 6714 "sql.c"
break;
case 282: /* cmd ::= SHOW CLUSTER */
#line 514 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
#line 6719 "sql.c"
break;
case 283: /* cmd ::= SHOW TRANSACTIONS */
#line 515 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
#line 6724 "sql.c"
break;
case 284: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
#line 516 "sql.y"
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy1000); }
#line 6729 "sql.c"
break;
case 285: /* cmd ::= SHOW CONSUMERS */
#line 517 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
#line 6734 "sql.c"
break;
case 286: /* cmd ::= SHOW SUBSCRIPTIONS */
#line 518 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
#line 6739 "sql.c"
break;
case 287: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
#line 519 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy1000, yymsp[-1].minor.yy1000, OP_TYPE_EQUAL); }
#line 6744 "sql.c"
break;
case 288: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
#line 520 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy305), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy305), OP_TYPE_EQUAL); }
#line 6749 "sql.c"
break;
case 289: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
#line 521 "sql.y"
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy1000, yymsp[0].minor.yy1000, yymsp[-3].minor.yy72); }
#line 6754 "sql.c"
break;
case 290: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
#line 522 "sql.y"
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy305), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy305), yymsp[-4].minor.yy72); }
#line 6759 "sql.c"
break;
case 291: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
#line 523 "sql.y"
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
#line 6764 "sql.c"
break;
case 292: /* cmd ::= SHOW VNODES */
#line 524 "sql.y"
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
#line 6769 "sql.c"
break;
case 293: /* cmd ::= SHOW db_name_cond_opt ALIVE */
#line 526 "sql.y"
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy1000, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
#line 6774 "sql.c"
break;
case 294: /* cmd ::= SHOW CLUSTER ALIVE */
#line 527 "sql.y"
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
#line 6779 "sql.c"
break;
case 295: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
#line 528 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy1000, yymsp[0].minor.yy1000, OP_TYPE_LIKE); }
#line 6784 "sql.c"
break;
case 296: /* cmd ::= SHOW CREATE VIEW full_table_name */
#line 529 "sql.y"
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy1000); }
#line 6789 "sql.c"
break;
case 297: /* cmd ::= SHOW COMPACTS */
#line 530 "sql.y"
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
#line 6794 "sql.c"
break;
case 298: /* cmd ::= SHOW COMPACT NK_INTEGER */
#line 531 "sql.y"
{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 6799 "sql.c"
break;
case 299: /* table_kind_db_name_cond_opt ::= */
#line 535 "sql.y"
{ yymsp[1].minor.yy517.kind = SHOW_KIND_ALL; yymsp[1].minor.yy517.dbName = nil_token; }
#line 6804 "sql.c"
break;
case 300: /* table_kind_db_name_cond_opt ::= table_kind */
#line 536 "sql.y"
{ yylhsminor.yy517.kind = yymsp[0].minor.yy761; yylhsminor.yy517.dbName = nil_token; }
#line 6809 "sql.c"
yymsp[0].minor.yy517 = yylhsminor.yy517;
break;
case 301: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
#line 537 "sql.y"
{ yylhsminor.yy517.kind = SHOW_KIND_ALL; yylhsminor.yy517.dbName = yymsp[-1].minor.yy305; }
#line 6815 "sql.c"
yymsp[-1].minor.yy517 = yylhsminor.yy517;
break;
case 302: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
#line 538 "sql.y"
{ yylhsminor.yy517.kind = yymsp[-2].minor.yy761; yylhsminor.yy517.dbName = yymsp[-1].minor.yy305; }
#line 6821 "sql.c"
yymsp[-2].minor.yy517 = yylhsminor.yy517;
break;
case 303: /* table_kind ::= NORMAL */
#line 542 "sql.y"
{ yymsp[0].minor.yy761 = SHOW_KIND_TABLES_NORMAL; }
#line 6827 "sql.c"
break;
case 304: /* table_kind ::= CHILD */
#line 543 "sql.y"
{ yymsp[0].minor.yy761 = SHOW_KIND_TABLES_CHILD; }
#line 6832 "sql.c"
break;
case 305: /* db_name_cond_opt ::= */
case 310: /* from_db_opt ::= */ yytestcase(yyruleno==310);
#line 545 "sql.y"
{ yymsp[1].minor.yy1000 = createDefaultDatabaseCondValue(pCxt); }
#line 6838 "sql.c"
break;
case 306: /* db_name_cond_opt ::= db_name NK_DOT */
#line 546 "sql.y"
{ yylhsminor.yy1000 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy305); }
#line 6843 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 308: /* like_pattern_opt ::= LIKE NK_STRING */
#line 549 "sql.y"
{ yymsp[-1].minor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
#line 6849 "sql.c"
break;
case 309: /* table_name_cond ::= table_name */
#line 551 "sql.y"
{ yylhsminor.yy1000 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy305); }
#line 6854 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 311: /* from_db_opt ::= FROM db_name */
#line 554 "sql.y"
{ yymsp[-1].minor.yy1000 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy305); }
#line 6860 "sql.c"
break;
case 315: /* tag_item ::= TBNAME */
#line 562 "sql.y"
{ yylhsminor.yy1000 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
#line 6865 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 318: /* tag_item ::= column_name column_alias */
#line 565 "sql.y"
{ yylhsminor.yy1000 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy305), &yymsp[0].minor.yy305); }
#line 6871 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 319: /* tag_item ::= column_name AS column_alias */
#line 566 "sql.y"
{ yylhsminor.yy1000 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy305), &yymsp[0].minor.yy305); }
#line 6877 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 320: /* db_kind_opt ::= */
#line 570 "sql.y"
{ yymsp[1].minor.yy761 = SHOW_KIND_ALL; }
#line 6883 "sql.c"
break;
case 321: /* db_kind_opt ::= USER */
#line 571 "sql.y"
{ yymsp[0].minor.yy761 = SHOW_KIND_DATABASES_USER; }
#line 6888 "sql.c"
break;
case 322: /* db_kind_opt ::= SYSTEM */
#line 572 "sql.y"
{ yymsp[0].minor.yy761 = SHOW_KIND_DATABASES_SYSTEM; }
#line 6893 "sql.c"
break;
case 323: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
#line 576 "sql.y"
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy985, yymsp[-3].minor.yy1000, yymsp[-1].minor.yy1000, NULL, yymsp[0].minor.yy1000); }
#line 6898 "sql.c"
break;
case 324: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
#line 578 "sql.y"
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy985, yymsp[-5].minor.yy1000, yymsp[-3].minor.yy1000, yymsp[-1].minor.yy72, NULL); }
#line 6903 "sql.c"
break;
case 325: /* cmd ::= DROP INDEX exists_opt full_index_name */
#line 579 "sql.y"
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy985, yymsp[0].minor.yy1000); }
#line 6908 "sql.c"
break;
case 326: /* full_index_name ::= index_name */
#line 581 "sql.y"
{ yylhsminor.yy1000 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy305); }
#line 6913 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 327: /* full_index_name ::= db_name NK_DOT index_name */
#line 582 "sql.y"
{ yylhsminor.yy1000 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy305); }
#line 6919 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 328: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
#line 585 "sql.y"
{ yymsp[-9].minor.yy1000 = createIndexOption(pCxt, yymsp[-7].minor.yy72, releaseRawExprNode(pCxt, yymsp[-3].minor.yy1000), NULL, yymsp[-1].minor.yy1000, yymsp[0].minor.yy1000); }
#line 6925 "sql.c"
break;
case 329: /* 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 */
#line 588 "sql.y"
{ yymsp[-11].minor.yy1000 = createIndexOption(pCxt, yymsp[-9].minor.yy72, releaseRawExprNode(pCxt, yymsp[-5].minor.yy1000), releaseRawExprNode(pCxt, yymsp[-3].minor.yy1000), yymsp[-1].minor.yy1000, yymsp[0].minor.yy1000); }
#line 6930 "sql.c"
break;
case 332: /* func ::= sma_func_name NK_LP expression_list NK_RP */
#line 595 "sql.y"
{ yylhsminor.yy1000 = createFunctionNode(pCxt, &yymsp[-3].minor.yy305, yymsp[-1].minor.yy72); }
#line 6935 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 333: /* sma_func_name ::= function_name */
case 599: /* alias_opt ::= table_alias */ yytestcase(yyruleno==599);
#line 599 "sql.y"
{ yylhsminor.yy305 = yymsp[0].minor.yy305; }
#line 6942 "sql.c"
yymsp[0].minor.yy305 = yylhsminor.yy305;
break;
case 338: /* sma_stream_opt ::= */
case 383: /* stream_options ::= */ yytestcase(yyruleno==383);
#line 605 "sql.y"
{ yymsp[1].minor.yy1000 = createStreamOptions(pCxt); }
#line 6949 "sql.c"
break;
case 339: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
#line 606 "sql.y"
{ ((SStreamOptions*)yymsp[-2].minor.yy1000)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy1000); yylhsminor.yy1000 = yymsp[-2].minor.yy1000; }
#line 6954 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 340: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
#line 607 "sql.y"
{ ((SStreamOptions*)yymsp[-2].minor.yy1000)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy1000); yylhsminor.yy1000 = yymsp[-2].minor.yy1000; }
#line 6960 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 341: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
#line 608 "sql.y"
{ ((SStreamOptions*)yymsp[-2].minor.yy1000)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy1000); yylhsminor.yy1000 = yymsp[-2].minor.yy1000; }
#line 6966 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 342: /* with_meta ::= AS */
#line 613 "sql.y"
{ yymsp[0].minor.yy444 = 0; }
#line 6972 "sql.c"
break;
case 343: /* with_meta ::= WITH META AS */
#line 614 "sql.y"
{ yymsp[-2].minor.yy444 = 1; }
#line 6977 "sql.c"
break;
case 344: /* with_meta ::= ONLY META AS */
#line 615 "sql.y"
{ yymsp[-2].minor.yy444 = 2; }
#line 6982 "sql.c"
break;
case 345: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
#line 617 "sql.y"
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy985, &yymsp[-2].minor.yy305, yymsp[0].minor.yy1000); }
#line 6987 "sql.c"
break;
case 346: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
#line 619 "sql.y"
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy985, &yymsp[-3].minor.yy305, &yymsp[0].minor.yy305, yymsp[-2].minor.yy444); }
#line 6992 "sql.c"
break;
case 347: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
#line 621 "sql.y"
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy985, &yymsp[-4].minor.yy305, yymsp[-1].minor.yy1000, yymsp[-3].minor.yy444, yymsp[0].minor.yy1000); }
#line 6997 "sql.c"
break;
case 348: /* cmd ::= DROP TOPIC exists_opt topic_name */
#line 623 "sql.y"
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy305); }
#line 7002 "sql.c"
break;
case 349: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
#line 624 "sql.y"
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy985, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy305); }
#line 7007 "sql.c"
break;
case 350: /* cmd ::= DESC full_table_name */
case 351: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==351);
#line 627 "sql.y"
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy1000); }
#line 7013 "sql.c"
break;
case 352: /* cmd ::= RESET QUERY CACHE */
#line 631 "sql.y"
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
#line 7018 "sql.c"
break;
case 353: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
case 354: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==354);
#line 634 "sql.y"
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy985, yymsp[-1].minor.yy1000, yymsp[0].minor.yy1000); }
#line 7024 "sql.c"
break;
case 357: /* explain_options ::= */
#line 642 "sql.y"
{ yymsp[1].minor.yy1000 = createDefaultExplainOptions(pCxt); }
#line 7029 "sql.c"
break;
case 358: /* explain_options ::= explain_options VERBOSE NK_BOOL */
#line 643 "sql.y"
{ yylhsminor.yy1000 = setExplainVerbose(pCxt, yymsp[-2].minor.yy1000, &yymsp[0].minor.yy0); }
#line 7034 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 359: /* explain_options ::= explain_options RATIO NK_FLOAT */
#line 644 "sql.y"
{ yylhsminor.yy1000 = setExplainRatio(pCxt, yymsp[-2].minor.yy1000, &yymsp[0].minor.yy0); }
#line 7040 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 360: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
#line 649 "sql.y"
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy985, yymsp[-9].minor.yy985, &yymsp[-6].minor.yy305, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy56, yymsp[-1].minor.yy444, &yymsp[0].minor.yy305, yymsp[-10].minor.yy985); }
#line 7046 "sql.c"
break;
case 361: /* cmd ::= DROP FUNCTION exists_opt function_name */
#line 650 "sql.y"
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy305); }
#line 7051 "sql.c"
break;
case 366: /* language_opt ::= */
case 405: /* on_vgroup_id ::= */ yytestcase(yyruleno==405);
#line 664 "sql.y"
{ yymsp[1].minor.yy305 = nil_token; }
#line 7057 "sql.c"
break;
case 367: /* language_opt ::= LANGUAGE NK_STRING */
case 406: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==406);
#line 665 "sql.y"
{ yymsp[-1].minor.yy305 = yymsp[0].minor.yy0; }
#line 7063 "sql.c"
break;
case 370: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
#line 674 "sql.y"
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy985, yymsp[-2].minor.yy1000, &yymsp[-1].minor.yy0, yymsp[0].minor.yy1000); }
#line 7068 "sql.c"
break;
case 371: /* cmd ::= DROP VIEW exists_opt full_view_name */
#line 675 "sql.y"
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy985, yymsp[0].minor.yy1000); }
#line 7073 "sql.c"
break;
case 372: /* full_view_name ::= view_name */
#line 677 "sql.y"
{ yylhsminor.yy1000 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy305); }
#line 7078 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 373: /* full_view_name ::= db_name NK_DOT view_name */
#line 678 "sql.y"
{ yylhsminor.yy1000 = createViewNode(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy305); }
#line 7084 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 374: /* 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 */
#line 683 "sql.y"
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy985, &yymsp[-8].minor.yy305, yymsp[-5].minor.yy1000, yymsp[-7].minor.yy1000, yymsp[-3].minor.yy72, yymsp[-2].minor.yy1000, yymsp[0].minor.yy1000, yymsp[-4].minor.yy72); }
#line 7090 "sql.c"
break;
case 375: /* cmd ::= DROP STREAM exists_opt stream_name */
#line 684 "sql.y"
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy305); }
#line 7095 "sql.c"
break;
case 376: /* cmd ::= PAUSE STREAM exists_opt stream_name */
#line 685 "sql.y"
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy985, &yymsp[0].minor.yy305); }
#line 7100 "sql.c"
break;
case 377: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
#line 686 "sql.y"
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy985, yymsp[-1].minor.yy985, &yymsp[0].minor.yy305); }
#line 7105 "sql.c"
break;
case 384: /* stream_options ::= stream_options TRIGGER AT_ONCE */
case 385: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==385);
#line 700 "sql.y"
{ yylhsminor.yy1000 = setStreamOptions(pCxt, yymsp[-2].minor.yy1000, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
#line 7111 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 386: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
#line 702 "sql.y"
{ yylhsminor.yy1000 = setStreamOptions(pCxt, yymsp[-3].minor.yy1000, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)); }
#line 7117 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 387: /* stream_options ::= stream_options WATERMARK duration_literal */
#line 703 "sql.y"
{ yylhsminor.yy1000 = setStreamOptions(pCxt, yymsp[-2].minor.yy1000, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)); }
#line 7123 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 388: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
#line 704 "sql.y"
{ yylhsminor.yy1000 = setStreamOptions(pCxt, yymsp[-3].minor.yy1000, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
#line 7129 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 389: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
#line 705 "sql.y"
{ yylhsminor.yy1000 = setStreamOptions(pCxt, yymsp[-2].minor.yy1000, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
#line 7135 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 390: /* stream_options ::= stream_options DELETE_MARK duration_literal */
#line 706 "sql.y"
{ yylhsminor.yy1000 = setStreamOptions(pCxt, yymsp[-2].minor.yy1000, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)); }
#line 7141 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 391: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
#line 707 "sql.y"
{ yylhsminor.yy1000 = setStreamOptions(pCxt, yymsp[-3].minor.yy1000, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
#line 7147 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 393: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
case 639: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==639);
case 663: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==663);
#line 710 "sql.y"
{ yymsp[-3].minor.yy1000 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy1000); }
#line 7155 "sql.c"
break;
case 396: /* cmd ::= KILL CONNECTION NK_INTEGER */
#line 718 "sql.y"
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
#line 7160 "sql.c"
break;
case 397: /* cmd ::= KILL QUERY NK_STRING */
#line 719 "sql.y"
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
#line 7165 "sql.c"
break;
case 398: /* cmd ::= KILL TRANSACTION NK_INTEGER */
#line 720 "sql.y"
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
#line 7170 "sql.c"
break;
case 399: /* cmd ::= KILL COMPACT NK_INTEGER */
#line 721 "sql.y"
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); }
#line 7175 "sql.c"
break;
case 400: /* cmd ::= BALANCE VGROUP */
#line 724 "sql.y"
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
#line 7180 "sql.c"
break;
case 401: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
#line 725 "sql.y"
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy305); }
#line 7185 "sql.c"
break;
case 402: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
#line 726 "sql.y"
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
#line 7190 "sql.c"
break;
case 403: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
#line 727 "sql.y"
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy72); }
#line 7195 "sql.c"
break;
case 404: /* cmd ::= SPLIT VGROUP NK_INTEGER */
#line 728 "sql.y"
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
#line 7200 "sql.c"
break;
case 407: /* dnode_list ::= DNODE NK_INTEGER */
#line 737 "sql.y"
{ yymsp[-1].minor.yy72 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 7205 "sql.c"
break;
case 409: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
#line 744 "sql.y"
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy1000, yymsp[0].minor.yy1000); }
#line 7210 "sql.c"
break;
case 412: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
#line 753 "sql.y"
{ yymsp[-6].minor.yy1000 = createInsertStmt(pCxt, yymsp[-4].minor.yy1000, yymsp[-2].minor.yy72, yymsp[0].minor.yy1000); }
#line 7215 "sql.c"
break;
case 413: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
#line 754 "sql.y"
{ yymsp[-3].minor.yy1000 = createInsertStmt(pCxt, yymsp[-1].minor.yy1000, NULL, yymsp[0].minor.yy1000); }
#line 7220 "sql.c"
break;
case 414: /* tags_literal ::= NK_INTEGER */
case 426: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==426);
case 435: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==435);
#line 757 "sql.y"
{ yylhsminor.yy1000 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); }
#line 7227 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 415: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
case 416: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==416);
case 427: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==427);
case 428: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==428);
case 436: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==436);
case 437: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==437);
case 445: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==445);
case 446: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==446);
#line 758 "sql.y"
{
SToken l = yymsp[-2].minor.yy0;
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
l.n = (r.z + r.n) - l.z;
yylhsminor.yy1000 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy1000);
}
#line 7245 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 417: /* tags_literal ::= NK_PLUS NK_INTEGER */
case 420: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==420);
case 429: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==429);
case 432: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==432);
case 438: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==438);
case 441: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==441);
#line 770 "sql.y"
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy1000 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL);
}
#line 7260 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 418: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
case 419: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==419);
case 421: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==421);
case 422: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==422);
case 430: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==430);
case 431: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==431);
case 433: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==433);
case 434: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==434);
case 439: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==439);
case 440: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==440);
case 442: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==442);
case 443: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==443);
#line 775 "sql.y"
{
SToken l = yymsp[-3].minor.yy0;
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
l.n = (r.z + r.n) - l.z;
yylhsminor.yy1000 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy1000);
}
#line 7282 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 423: /* tags_literal ::= NK_FLOAT */
#line 804 "sql.y"
{ yylhsminor.yy1000 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); }
#line 7288 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 424: /* tags_literal ::= NK_PLUS NK_FLOAT */
case 425: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==425);
#line 805 "sql.y"
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy1000 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL);
}
#line 7299 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 444: /* tags_literal ::= NK_STRING */
#line 911 "sql.y"
{ yylhsminor.yy1000 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); }
#line 7305 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 447: /* tags_literal ::= NK_BOOL */
#line 924 "sql.y"
{ yylhsminor.yy1000 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); }
#line 7311 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 448: /* tags_literal ::= NULL */
#line 925 "sql.y"
{ yylhsminor.yy1000 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); }
#line 7317 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 449: /* tags_literal ::= literal_func */
#line 927 "sql.y"
{ yylhsminor.yy1000 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy1000); }
#line 7323 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 450: /* tags_literal ::= literal_func NK_PLUS duration_literal */
case 451: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==451);
#line 928 "sql.y"
{
SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
l.n = (r.z + r.n) - l.z;
yylhsminor.yy1000 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy1000, yymsp[0].minor.yy1000);
}
#line 7335 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 454: /* literal ::= NK_INTEGER */
#line 947 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
#line 7341 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 455: /* literal ::= NK_FLOAT */
#line 948 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
#line 7347 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 456: /* literal ::= NK_STRING */
#line 949 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
#line 7353 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 457: /* literal ::= NK_BOOL */
#line 950 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
#line 7359 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 458: /* literal ::= TIMESTAMP NK_STRING */
#line 951 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
#line 7365 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 459: /* literal ::= duration_literal */
case 469: /* signed_literal ::= signed */ yytestcase(yyruleno==469);
case 492: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==492);
case 493: /* expression ::= literal */ yytestcase(yyruleno==493);
case 495: /* expression ::= column_reference */ yytestcase(yyruleno==495);
case 496: /* expression ::= function_expression */ yytestcase(yyruleno==496);
case 497: /* expression ::= case_when_expression */ yytestcase(yyruleno==497);
case 530: /* function_expression ::= literal_func */ yytestcase(yyruleno==530);
case 580: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==580);
case 584: /* boolean_primary ::= predicate */ yytestcase(yyruleno==584);
case 586: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==586);
case 587: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==587);
case 590: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==590);
case 592: /* table_reference ::= table_primary */ yytestcase(yyruleno==592);
case 593: /* table_reference ::= joined_table */ yytestcase(yyruleno==593);
case 597: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==597);
case 665: /* query_simple ::= query_specification */ yytestcase(yyruleno==665);
case 666: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==666);
case 669: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==669);
case 671: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==671);
#line 952 "sql.y"
{ yylhsminor.yy1000 = yymsp[0].minor.yy1000; }
#line 7390 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 460: /* literal ::= NULL */
#line 953 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
#line 7396 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 461: /* literal ::= NK_QUESTION */
#line 954 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 7402 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 462: /* duration_literal ::= NK_VARIABLE */
case 640: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==640);
case 641: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==641);
case 642: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==642);
#line 956 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 7411 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 463: /* signed ::= NK_INTEGER */
#line 958 "sql.y"
{ yylhsminor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
#line 7417 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 464: /* signed ::= NK_PLUS NK_INTEGER */
#line 959 "sql.y"
{ yymsp[-1].minor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
#line 7423 "sql.c"
break;
case 465: /* signed ::= NK_MINUS NK_INTEGER */
#line 960 "sql.y"
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
}
#line 7432 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 466: /* signed ::= NK_FLOAT */
#line 965 "sql.y"
{ yylhsminor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
#line 7438 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 467: /* signed ::= NK_PLUS NK_FLOAT */
#line 966 "sql.y"
{ yymsp[-1].minor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
#line 7444 "sql.c"
break;
case 468: /* signed ::= NK_MINUS NK_FLOAT */
#line 967 "sql.y"
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
yylhsminor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
}
#line 7453 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 470: /* signed_literal ::= NK_STRING */
#line 974 "sql.y"
{ yylhsminor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
#line 7459 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 471: /* signed_literal ::= NK_BOOL */
#line 975 "sql.y"
{ yylhsminor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
#line 7465 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 472: /* signed_literal ::= TIMESTAMP NK_STRING */
#line 976 "sql.y"
{ yymsp[-1].minor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
#line 7471 "sql.c"
break;
case 473: /* signed_literal ::= duration_literal */
case 475: /* signed_literal ::= literal_func */ yytestcase(yyruleno==475);
case 551: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==551);
case 617: /* select_item ::= common_expression */ yytestcase(yyruleno==617);
case 627: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==627);
case 670: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==670);
case 672: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==672);
case 685: /* search_condition ::= common_expression */ yytestcase(yyruleno==685);
#line 977 "sql.y"
{ yylhsminor.yy1000 = releaseRawExprNode(pCxt, yymsp[0].minor.yy1000); }
#line 7483 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 474: /* signed_literal ::= NULL */
#line 978 "sql.y"
{ yylhsminor.yy1000 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
#line 7489 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 476: /* signed_literal ::= NK_QUESTION */
#line 980 "sql.y"
{ yylhsminor.yy1000 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
#line 7495 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 494: /* expression ::= pseudo_column */
#line 1042 "sql.y"
{ yylhsminor.yy1000 = yymsp[0].minor.yy1000; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy1000, true); }
#line 7501 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 498: /* expression ::= NK_LP expression NK_RP */
case 585: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==585);
case 684: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==684);
#line 1046 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy1000)); }
#line 7509 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 499: /* expression ::= NK_PLUS expr_or_subquery */
#line 1047 "sql.y"
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000));
}
#line 7518 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 500: /* expression ::= NK_MINUS expr_or_subquery */
#line 1051 "sql.y"
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000), NULL));
}
#line 7527 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 501: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
#line 1055 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7537 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 502: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
#line 1060 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7547 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 503: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
#line 1065 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7557 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 504: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
#line 1070 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7567 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 505: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
#line 1075 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7577 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 506: /* expression ::= column_reference NK_ARROW NK_STRING */
#line 1080 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
#line 7586 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 507: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
#line 1084 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7596 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 508: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
#line 1089 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7606 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 511: /* column_reference ::= column_name */
#line 1100 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy305, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy305)); }
#line 7612 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 512: /* column_reference ::= table_name NK_DOT column_name */
#line 1101 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy305, createColumnNode(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy305)); }
#line 7618 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 513: /* column_reference ::= NK_ALIAS */
#line 1102 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
#line 7624 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 514: /* column_reference ::= table_name NK_DOT NK_ALIAS */
#line 1103 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy0)); }
#line 7630 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 515: /* pseudo_column ::= ROWTS */
case 516: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==516);
case 518: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==518);
case 519: /* pseudo_column ::= QEND */ yytestcase(yyruleno==519);
case 520: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==520);
case 521: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==521);
case 522: /* pseudo_column ::= WEND */ yytestcase(yyruleno==522);
case 523: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==523);
case 524: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==524);
case 525: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==525);
case 526: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==526);
case 532: /* literal_func ::= NOW */ yytestcase(yyruleno==532);
case 533: /* literal_func ::= TODAY */ yytestcase(yyruleno==533);
#line 1105 "sql.y"
{ yylhsminor.yy1000 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
#line 7648 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 517: /* pseudo_column ::= table_name NK_DOT TBNAME */
#line 1107 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy305)))); }
#line 7654 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 527: /* function_expression ::= function_name NK_LP expression_list NK_RP */
case 528: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==528);
#line 1118 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy305, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy305, yymsp[-1].minor.yy72)); }
#line 7661 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 529: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
#line 1121 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy1000), yymsp[-1].minor.yy56)); }
#line 7667 "sql.c"
yymsp[-5].minor.yy1000 = yylhsminor.yy1000;
break;
case 531: /* literal_func ::= noarg_func NK_LP NK_RP */
#line 1124 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy305, NULL)); }
#line 7673 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 547: /* star_func_para_list ::= NK_STAR */
#line 1149 "sql.y"
{ yylhsminor.yy72 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
#line 7679 "sql.c"
yymsp[0].minor.yy72 = yylhsminor.yy72;
break;
case 552: /* star_func_para ::= table_name NK_DOT NK_STAR */
case 620: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==620);
#line 1158 "sql.y"
{ yylhsminor.yy1000 = createColumnNode(pCxt, &yymsp[-2].minor.yy305, &yymsp[0].minor.yy0); }
#line 7686 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 553: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
#line 1161 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy72, yymsp[-1].minor.yy1000)); }
#line 7692 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 554: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
#line 1163 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy1000), yymsp[-2].minor.yy72, yymsp[-1].minor.yy1000)); }
#line 7698 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 557: /* when_then_expr ::= WHEN common_expression THEN common_expression */
#line 1170 "sql.y"
{ yymsp[-3].minor.yy1000 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)); }
#line 7704 "sql.c"
break;
case 559: /* case_when_else_opt ::= ELSE common_expression */
#line 1173 "sql.y"
{ yymsp[-1].minor.yy1000 = releaseRawExprNode(pCxt, yymsp[0].minor.yy1000); }
#line 7709 "sql.c"
break;
case 560: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
case 565: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==565);
#line 1176 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy324, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7719 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 561: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
#line 1183 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy1000), releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7729 "sql.c"
yymsp[-4].minor.yy1000 = yylhsminor.yy1000;
break;
case 562: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
#line 1189 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy1000), releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7739 "sql.c"
yymsp[-5].minor.yy1000 = yylhsminor.yy1000;
break;
case 563: /* predicate ::= expr_or_subquery IS NULL */
#line 1194 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), NULL));
}
#line 7748 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 564: /* predicate ::= expr_or_subquery IS NOT NULL */
#line 1198 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy1000), NULL));
}
#line 7757 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 566: /* compare_op ::= NK_LT */
#line 1210 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_LOWER_THAN; }
#line 7763 "sql.c"
break;
case 567: /* compare_op ::= NK_GT */
#line 1211 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_GREATER_THAN; }
#line 7768 "sql.c"
break;
case 568: /* compare_op ::= NK_LE */
#line 1212 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_LOWER_EQUAL; }
#line 7773 "sql.c"
break;
case 569: /* compare_op ::= NK_GE */
#line 1213 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_GREATER_EQUAL; }
#line 7778 "sql.c"
break;
case 570: /* compare_op ::= NK_NE */
#line 1214 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_NOT_EQUAL; }
#line 7783 "sql.c"
break;
case 571: /* compare_op ::= NK_EQ */
#line 1215 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_EQUAL; }
#line 7788 "sql.c"
break;
case 572: /* compare_op ::= LIKE */
#line 1216 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_LIKE; }
#line 7793 "sql.c"
break;
case 573: /* compare_op ::= NOT LIKE */
#line 1217 "sql.y"
{ yymsp[-1].minor.yy324 = OP_TYPE_NOT_LIKE; }
#line 7798 "sql.c"
break;
case 574: /* compare_op ::= MATCH */
#line 1218 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_MATCH; }
#line 7803 "sql.c"
break;
case 575: /* compare_op ::= NMATCH */
#line 1219 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_NMATCH; }
#line 7808 "sql.c"
break;
case 576: /* compare_op ::= CONTAINS */
#line 1220 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_JSON_CONTAINS; }
#line 7813 "sql.c"
break;
case 577: /* in_op ::= IN */
#line 1224 "sql.y"
{ yymsp[0].minor.yy324 = OP_TYPE_IN; }
#line 7818 "sql.c"
break;
case 578: /* in_op ::= NOT IN */
#line 1225 "sql.y"
{ yymsp[-1].minor.yy324 = OP_TYPE_NOT_IN; }
#line 7823 "sql.c"
break;
case 579: /* in_predicate_value ::= NK_LP literal_list NK_RP */
#line 1227 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy72)); }
#line 7828 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 581: /* boolean_value_expression ::= NOT boolean_primary */
#line 1231 "sql.y"
{
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000), NULL));
}
#line 7837 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 582: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
#line 1236 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7847 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 583: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
#line 1242 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy1000);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy1000);
yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), releaseRawExprNode(pCxt, yymsp[0].minor.yy1000)));
}
#line 7857 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 591: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
#line 1260 "sql.y"
{ yylhsminor.yy1000 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy1000, yymsp[0].minor.yy1000, NULL); }
#line 7863 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 594: /* table_primary ::= table_name alias_opt */
#line 1266 "sql.y"
{ yylhsminor.yy1000 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy305, &yymsp[0].minor.yy305); }
#line 7869 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 595: /* table_primary ::= db_name NK_DOT table_name alias_opt */
#line 1267 "sql.y"
{ yylhsminor.yy1000 = createRealTableNode(pCxt, &yymsp[-3].minor.yy305, &yymsp[-1].minor.yy305, &yymsp[0].minor.yy305); }
#line 7875 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 596: /* table_primary ::= subquery alias_opt */
#line 1268 "sql.y"
{ yylhsminor.yy1000 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy1000), &yymsp[0].minor.yy305); }
#line 7881 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 598: /* alias_opt ::= */
#line 1273 "sql.y"
{ yymsp[1].minor.yy305 = nil_token; }
#line 7887 "sql.c"
break;
case 600: /* alias_opt ::= AS table_alias */
#line 1275 "sql.y"
{ yymsp[-1].minor.yy305 = yymsp[0].minor.yy305; }
#line 7892 "sql.c"
break;
case 601: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 602: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==602);
#line 1277 "sql.y"
{ yymsp[-2].minor.yy1000 = yymsp[-1].minor.yy1000; }
#line 7898 "sql.c"
break;
case 603: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
#line 1282 "sql.y"
{ yylhsminor.yy1000 = createJoinTableNode(pCxt, yymsp[-4].minor.yy828, yymsp[-5].minor.yy1000, yymsp[-2].minor.yy1000, yymsp[0].minor.yy1000); }
#line 7903 "sql.c"
yymsp[-5].minor.yy1000 = yylhsminor.yy1000;
break;
case 604: /* join_type ::= */
#line 1286 "sql.y"
{ yymsp[1].minor.yy828 = JOIN_TYPE_INNER; }
#line 7909 "sql.c"
break;
case 605: /* join_type ::= INNER */
#line 1287 "sql.y"
{ yymsp[0].minor.yy828 = JOIN_TYPE_INNER; }
#line 7914 "sql.c"
break;
case 606: /* 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 */
#line 1293 "sql.y"
{
yymsp[-13].minor.yy1000 = createSelectStmt(pCxt, yymsp[-11].minor.yy985, yymsp[-9].minor.yy72, yymsp[-8].minor.yy1000, yymsp[-12].minor.yy72);
yymsp[-13].minor.yy1000 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy1000, yymsp[-10].minor.yy985);
yymsp[-13].minor.yy1000 = addWhereClause(pCxt, yymsp[-13].minor.yy1000, yymsp[-7].minor.yy1000);
yymsp[-13].minor.yy1000 = addPartitionByClause(pCxt, yymsp[-13].minor.yy1000, yymsp[-6].minor.yy72);
yymsp[-13].minor.yy1000 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy1000, yymsp[-2].minor.yy1000);
yymsp[-13].minor.yy1000 = addGroupByClause(pCxt, yymsp[-13].minor.yy1000, yymsp[-1].minor.yy72);
yymsp[-13].minor.yy1000 = addHavingClause(pCxt, yymsp[-13].minor.yy1000, yymsp[0].minor.yy1000);
yymsp[-13].minor.yy1000 = addRangeClause(pCxt, yymsp[-13].minor.yy1000, yymsp[-5].minor.yy1000);
yymsp[-13].minor.yy1000 = addEveryClause(pCxt, yymsp[-13].minor.yy1000, yymsp[-4].minor.yy1000);
yymsp[-13].minor.yy1000 = addFillClause(pCxt, yymsp[-13].minor.yy1000, yymsp[-3].minor.yy1000);
}
#line 7930 "sql.c"
break;
case 607: /* hint_list ::= */
#line 1308 "sql.y"
{ yymsp[1].minor.yy72 = createHintNodeList(pCxt, NULL); }
#line 7935 "sql.c"
break;
case 608: /* hint_list ::= NK_HINT */
#line 1309 "sql.y"
{ yylhsminor.yy72 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
#line 7940 "sql.c"
yymsp[0].minor.yy72 = yylhsminor.yy72;
break;
case 613: /* set_quantifier_opt ::= ALL */
#line 1320 "sql.y"
{ yymsp[0].minor.yy985 = false; }
#line 7946 "sql.c"
break;
case 616: /* select_item ::= NK_STAR */
#line 1327 "sql.y"
{ yylhsminor.yy1000 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
#line 7951 "sql.c"
yymsp[0].minor.yy1000 = yylhsminor.yy1000;
break;
case 618: /* select_item ::= common_expression column_alias */
case 628: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==628);
#line 1329 "sql.y"
{ yylhsminor.yy1000 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy1000), &yymsp[0].minor.yy305); }
#line 7958 "sql.c"
yymsp[-1].minor.yy1000 = yylhsminor.yy1000;
break;
case 619: /* select_item ::= common_expression AS column_alias */
case 629: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==629);
#line 1330 "sql.y"
{ yylhsminor.yy1000 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), &yymsp[0].minor.yy305); }
#line 7965 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 624: /* partition_by_clause_opt ::= PARTITION BY partition_list */
case 654: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==654);
case 674: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==674);
#line 1339 "sql.y"
{ yymsp[-2].minor.yy72 = yymsp[0].minor.yy72; }
#line 7973 "sql.c"
break;
case 631: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
#line 1352 "sql.y"
{ yymsp[-5].minor.yy1000 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy1000), releaseRawExprNode(pCxt, yymsp[-1].minor.yy1000)); }
#line 7978 "sql.c"
break;
case 632: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
#line 1353 "sql.y"
{ yymsp[-3].minor.yy1000 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy1000)); }
#line 7983 "sql.c"
break;
case 633: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
#line 1355 "sql.y"
{ yymsp[-5].minor.yy1000 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy1000), NULL, yymsp[-1].minor.yy1000, yymsp[0].minor.yy1000); }
#line 7988 "sql.c"
break;
case 634: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
#line 1359 "sql.y"
{ yymsp[-7].minor.yy1000 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy1000), releaseRawExprNode(pCxt, yymsp[-3].minor.yy1000), yymsp[-1].minor.yy1000, yymsp[0].minor.yy1000); }
#line 7993 "sql.c"
break;
case 635: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
#line 1361 "sql.y"
{ yymsp[-6].minor.yy1000 = createEventWindowNode(pCxt, yymsp[-3].minor.yy1000, yymsp[0].minor.yy1000); }
#line 7998 "sql.c"
break;
case 636: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
#line 1363 "sql.y"
{ yymsp[-3].minor.yy1000 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); }
#line 8003 "sql.c"
break;
case 637: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
#line 1365 "sql.y"
{ yymsp[-5].minor.yy1000 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); }
#line 8008 "sql.c"
break;
case 644: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
#line 1375 "sql.y"
{ yymsp[-3].minor.yy1000 = createFillNode(pCxt, yymsp[-1].minor.yy926, NULL); }
#line 8013 "sql.c"
break;
case 645: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
#line 1376 "sql.y"
{ yymsp[-5].minor.yy1000 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy72)); }
#line 8018 "sql.c"
break;
case 646: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
#line 1377 "sql.y"
{ yymsp[-5].minor.yy1000 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy72)); }
#line 8023 "sql.c"
break;
case 647: /* fill_mode ::= NONE */
#line 1381 "sql.y"
{ yymsp[0].minor.yy926 = FILL_MODE_NONE; }
#line 8028 "sql.c"
break;
case 648: /* fill_mode ::= PREV */
#line 1382 "sql.y"
{ yymsp[0].minor.yy926 = FILL_MODE_PREV; }
#line 8033 "sql.c"
break;
case 649: /* fill_mode ::= NULL */
#line 1383 "sql.y"
{ yymsp[0].minor.yy926 = FILL_MODE_NULL; }
#line 8038 "sql.c"
break;
case 650: /* fill_mode ::= NULL_F */
#line 1384 "sql.y"
{ yymsp[0].minor.yy926 = FILL_MODE_NULL_F; }
#line 8043 "sql.c"
break;
case 651: /* fill_mode ::= LINEAR */
#line 1385 "sql.y"
{ yymsp[0].minor.yy926 = FILL_MODE_LINEAR; }
#line 8048 "sql.c"
break;
case 652: /* fill_mode ::= NEXT */
#line 1386 "sql.y"
{ yymsp[0].minor.yy926 = FILL_MODE_NEXT; }
#line 8053 "sql.c"
break;
case 655: /* group_by_list ::= expr_or_subquery */
#line 1395 "sql.y"
{ yylhsminor.yy72 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000))); }
#line 8058 "sql.c"
yymsp[0].minor.yy72 = yylhsminor.yy72;
break;
case 656: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
#line 1396 "sql.y"
{ yylhsminor.yy72 = addNodeToList(pCxt, yymsp[-2].minor.yy72, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy1000))); }
#line 8064 "sql.c"
yymsp[-2].minor.yy72 = yylhsminor.yy72;
break;
case 660: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
#line 1403 "sql.y"
{ yymsp[-5].minor.yy1000 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy1000), releaseRawExprNode(pCxt, yymsp[-1].minor.yy1000)); }
#line 8070 "sql.c"
break;
case 661: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
#line 1405 "sql.y"
{ yymsp[-3].minor.yy1000 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy1000)); }
#line 8075 "sql.c"
break;
case 664: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
#line 1412 "sql.y"
{
yylhsminor.yy1000 = addOrderByClause(pCxt, yymsp[-3].minor.yy1000, yymsp[-2].minor.yy72);
yylhsminor.yy1000 = addSlimitClause(pCxt, yylhsminor.yy1000, yymsp[-1].minor.yy1000);
yylhsminor.yy1000 = addLimitClause(pCxt, yylhsminor.yy1000, yymsp[0].minor.yy1000);
}
#line 8084 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 667: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
#line 1422 "sql.y"
{ yylhsminor.yy1000 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy1000, yymsp[0].minor.yy1000); }
#line 8090 "sql.c"
yymsp[-3].minor.yy1000 = yylhsminor.yy1000;
break;
case 668: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
#line 1424 "sql.y"
{ yylhsminor.yy1000 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy1000, yymsp[0].minor.yy1000); }
#line 8096 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 676: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
case 680: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==680);
#line 1438 "sql.y"
{ yymsp[-1].minor.yy1000 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
#line 8103 "sql.c"
break;
case 677: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 681: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==681);
#line 1439 "sql.y"
{ yymsp[-3].minor.yy1000 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
#line 8109 "sql.c"
break;
case 678: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 682: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==682);
#line 1440 "sql.y"
{ yymsp[-3].minor.yy1000 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
#line 8115 "sql.c"
break;
case 683: /* subquery ::= NK_LP query_expression NK_RP */
#line 1448 "sql.y"
{ yylhsminor.yy1000 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy1000); }
#line 8120 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 688: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
#line 1462 "sql.y"
{ yylhsminor.yy1000 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy1000), yymsp[-1].minor.yy130, yymsp[0].minor.yy681); }
#line 8126 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 689: /* ordering_specification_opt ::= */
#line 1466 "sql.y"
{ yymsp[1].minor.yy130 = ORDER_ASC; }
#line 8132 "sql.c"
break;
case 690: /* ordering_specification_opt ::= ASC */
#line 1467 "sql.y"
{ yymsp[0].minor.yy130 = ORDER_ASC; }
#line 8137 "sql.c"
break;
case 691: /* ordering_specification_opt ::= DESC */
#line 1468 "sql.y"
{ yymsp[0].minor.yy130 = ORDER_DESC; }
#line 8142 "sql.c"
break;
case 692: /* null_ordering_opt ::= */
#line 1472 "sql.y"
{ yymsp[1].minor.yy681 = NULL_ORDER_DEFAULT; }
#line 8147 "sql.c"
break;
case 693: /* null_ordering_opt ::= NULLS FIRST */
#line 1473 "sql.y"
{ yymsp[-1].minor.yy681 = NULL_ORDER_FIRST; }
#line 8152 "sql.c"
break;
case 694: /* null_ordering_opt ::= NULLS LAST */
#line 1474 "sql.y"
{ yymsp[-1].minor.yy681 = NULL_ORDER_LAST; }
#line 8157 "sql.c"
break;
case 695: /* column_options ::= */
#line 1480 "sql.y"
{ yymsp[1].minor.yy1000 = createDefaultColumnOptions(pCxt); }
#line 8162 "sql.c"
break;
case 696: /* column_options ::= column_options PRIMARY KEY */
#line 1481 "sql.y"
{ yylhsminor.yy1000 = setColumnOptions(pCxt, yymsp[-2].minor.yy1000, COLUMN_OPTION_PRIMARYKEY, NULL); }
#line 8167 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 697: /* column_options ::= column_options ENCODE NK_STRING */
#line 1482 "sql.y"
{ yylhsminor.yy1000 = setColumnOptions(pCxt, yymsp[-2].minor.yy1000, COLUMN_OPTION_ENCODE, &yymsp[0].minor.yy0); }
#line 8173 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 698: /* column_options ::= column_options COMPRESS NK_STRING */
#line 1483 "sql.y"
{ yylhsminor.yy1000 = setColumnOptions(pCxt, yymsp[-2].minor.yy1000, COLUMN_OPTION_COMPRESS, &yymsp[0].minor.yy0); }
#line 8179 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
break;
case 699: /* column_options ::= column_options LEVEL NK_STRING */
#line 1484 "sql.y"
{ yylhsminor.yy1000 = setColumnOptions(pCxt, yymsp[-2].minor.yy1000, COLUMN_OPTION_LEVEL, &yymsp[0].minor.yy0); }
#line 8185 "sql.c"
yymsp[-2].minor.yy1000 = yylhsminor.yy1000;
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 ****************************************/
#line 29 "sql.y"
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);
}
#line 8259 "sql.c"
/************ 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
}