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

7744 lines
369 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_LOCAL 58
#define TK_QNODE 59
#define TK_BNODE 60
#define TK_SNODE 61
#define TK_MNODE 62
#define TK_VNODE 63
#define TK_DATABASE 64
#define TK_USE 65
#define TK_FLUSH 66
#define TK_TRIM 67
#define TK_COMPACT 68
#define TK_IF 69
#define TK_NOT 70
#define TK_EXISTS 71
#define TK_BUFFER 72
#define TK_CACHEMODEL 73
#define TK_CACHESIZE 74
#define TK_COMP 75
#define TK_DURATION 76
#define TK_NK_VARIABLE 77
#define TK_MAXROWS 78
#define TK_MINROWS 79
#define TK_KEEP 80
#define TK_PAGES 81
#define TK_PAGESIZE 82
#define TK_TSDB_PAGESIZE 83
#define TK_PRECISION 84
#define TK_REPLICA 85
#define TK_VGROUPS 86
#define TK_SINGLE_STABLE 87
#define TK_RETENTIONS 88
#define TK_SCHEMALESS 89
#define TK_WAL_LEVEL 90
#define TK_WAL_FSYNC_PERIOD 91
#define TK_WAL_RETENTION_PERIOD 92
#define TK_WAL_RETENTION_SIZE 93
#define TK_WAL_ROLL_PERIOD 94
#define TK_WAL_SEGMENT_SIZE 95
#define TK_STT_TRIGGER 96
#define TK_TABLE_PREFIX 97
#define TK_TABLE_SUFFIX 98
#define TK_NK_COLON 99
#define TK_BWLIMIT 100
#define TK_START 101
#define TK_TIMESTAMP 102
#define TK_END 103
#define TK_TABLE 104
#define TK_NK_LP 105
#define TK_NK_RP 106
#define TK_STABLE 107
#define TK_COLUMN 108
#define TK_MODIFY 109
#define TK_RENAME 110
#define TK_TAG 111
#define TK_SET 112
#define TK_NK_EQ 113
#define TK_USING 114
#define TK_TAGS 115
#define TK_BOOL 116
#define TK_TINYINT 117
#define TK_SMALLINT 118
#define TK_INT 119
#define TK_INTEGER 120
#define TK_BIGINT 121
#define TK_FLOAT 122
#define TK_DOUBLE 123
#define TK_BINARY 124
#define TK_NCHAR 125
#define TK_UNSIGNED 126
#define TK_JSON 127
#define TK_VARCHAR 128
#define TK_MEDIUMBLOB 129
#define TK_BLOB 130
#define TK_VARBINARY 131
#define TK_GEOMETRY 132
#define TK_DECIMAL 133
#define TK_COMMENT 134
#define TK_MAX_DELAY 135
#define TK_WATERMARK 136
#define TK_ROLLUP 137
#define TK_TTL 138
#define TK_SMA 139
#define TK_DELETE_MARK 140
#define TK_FIRST 141
#define TK_LAST 142
#define TK_SHOW 143
#define TK_PRIVILEGES 144
#define TK_DATABASES 145
#define TK_TABLES 146
#define TK_STABLES 147
#define TK_MNODES 148
#define TK_QNODES 149
#define TK_FUNCTIONS 150
#define TK_INDEXES 151
#define TK_ACCOUNTS 152
#define TK_APPS 153
#define TK_CONNECTIONS 154
#define TK_LICENCES 155
#define TK_GRANTS 156
#define TK_QUERIES 157
#define TK_SCORES 158
#define TK_TOPICS 159
#define TK_VARIABLES 160
#define TK_CLUSTER 161
#define TK_BNODES 162
#define TK_SNODES 163
#define TK_TRANSACTIONS 164
#define TK_DISTRIBUTED 165
#define TK_CONSUMERS 166
#define TK_SUBSCRIPTIONS 167
#define TK_VNODES 168
#define TK_ALIVE 169
#define TK_LIKE 170
#define TK_TBNAME 171
#define TK_QTAGS 172
#define TK_AS 173
#define TK_INDEX 174
#define TK_FUNCTION 175
#define TK_INTERVAL 176
#define TK_COUNT 177
#define TK_LAST_ROW 178
#define TK_META 179
#define TK_ONLY 180
#define TK_TOPIC 181
#define TK_CONSUMER 182
#define TK_GROUP 183
#define TK_DESC 184
#define TK_DESCRIBE 185
#define TK_RESET 186
#define TK_QUERY 187
#define TK_CACHE 188
#define TK_EXPLAIN 189
#define TK_ANALYZE 190
#define TK_VERBOSE 191
#define TK_NK_BOOL 192
#define TK_RATIO 193
#define TK_NK_FLOAT 194
#define TK_OUTPUTTYPE 195
#define TK_AGGREGATE 196
#define TK_BUFSIZE 197
#define TK_LANGUAGE 198
#define TK_REPLACE 199
#define TK_STREAM 200
#define TK_INTO 201
#define TK_PAUSE 202
#define TK_RESUME 203
#define TK_TRIGGER 204
#define TK_AT_ONCE 205
#define TK_WINDOW_CLOSE 206
#define TK_IGNORE 207
#define TK_EXPIRED 208
#define TK_FILL_HISTORY 209
#define TK_UPDATE 210
#define TK_SUBTABLE 211
#define TK_UNTREATED 212
#define TK_KILL 213
#define TK_CONNECTION 214
#define TK_TRANSACTION 215
#define TK_BALANCE 216
#define TK_VGROUP 217
#define TK_LEADER 218
#define TK_MERGE 219
#define TK_REDISTRIBUTE 220
#define TK_SPLIT 221
#define TK_DELETE 222
#define TK_INSERT 223
#define TK_NULL 224
#define TK_NK_QUESTION 225
#define TK_NK_ARROW 226
#define TK_ROWTS 227
#define TK_QSTART 228
#define TK_QEND 229
#define TK_QDURATION 230
#define TK_WSTART 231
#define TK_WEND 232
#define TK_WDURATION 233
#define TK_IROWTS 234
#define TK_ISFILLED 235
#define TK_CAST 236
#define TK_NOW 237
#define TK_TODAY 238
#define TK_TIMEZONE 239
#define TK_CLIENT_VERSION 240
#define TK_SERVER_VERSION 241
#define TK_SERVER_STATUS 242
#define TK_CURRENT_USER 243
#define TK_CASE 244
#define TK_WHEN 245
#define TK_THEN 246
#define TK_ELSE 247
#define TK_BETWEEN 248
#define TK_IS 249
#define TK_NK_LT 250
#define TK_NK_GT 251
#define TK_NK_LE 252
#define TK_NK_GE 253
#define TK_NK_NE 254
#define TK_MATCH 255
#define TK_NMATCH 256
#define TK_CONTAINS 257
#define TK_IN 258
#define TK_JOIN 259
#define TK_INNER 260
#define TK_SELECT 261
#define TK_NK_HINT 262
#define TK_DISTINCT 263
#define TK_WHERE 264
#define TK_PARTITION 265
#define TK_BY 266
#define TK_SESSION 267
#define TK_STATE_WINDOW 268
#define TK_EVENT_WINDOW 269
#define TK_SLIDING 270
#define TK_FILL 271
#define TK_VALUE 272
#define TK_VALUE_F 273
#define TK_NONE 274
#define TK_PREV 275
#define TK_NULL_F 276
#define TK_LINEAR 277
#define TK_NEXT 278
#define TK_HAVING 279
#define TK_RANGE 280
#define TK_EVERY 281
#define TK_ORDER 282
#define TK_SLIMIT 283
#define TK_SOFFSET 284
#define TK_LIMIT 285
#define TK_OFFSET 286
#define TK_ASC 287
#define TK_NULLS 288
#define TK_ABORT 289
#define TK_AFTER 290
#define TK_ATTACH 291
#define TK_BEFORE 292
#define TK_BEGIN 293
#define TK_BITAND 294
#define TK_BITNOT 295
#define TK_BITOR 296
#define TK_BLOCKS 297
#define TK_CHANGE 298
#define TK_COMMA 299
#define TK_CONCAT 300
#define TK_CONFLICT 301
#define TK_COPY 302
#define TK_DEFERRED 303
#define TK_DELIMITERS 304
#define TK_DETACH 305
#define TK_DIVIDE 306
#define TK_DOT 307
#define TK_EACH 308
#define TK_FAIL 309
#define TK_FILE 310
#define TK_FOR 311
#define TK_GLOB 312
#define TK_ID 313
#define TK_IMMEDIATE 314
#define TK_IMPORT 315
#define TK_INITIALLY 316
#define TK_INSTEAD 317
#define TK_ISNULL 318
#define TK_KEY 319
#define TK_MODULES 320
#define TK_NK_BITNOT 321
#define TK_NK_SEMI 322
#define TK_NOTNULL 323
#define TK_OF 324
#define TK_PLUS 325
#define TK_PRIVILEGE 326
#define TK_RAISE 327
#define TK_RESTRICT 328
#define TK_ROW 329
#define TK_SEMI 330
#define TK_STAR 331
#define TK_STATEMENT 332
#define TK_STRICT 333
#define TK_STRING 334
#define TK_TIMES 335
#define TK_VALUES 336
#define TK_VARIABLE 337
#define TK_VIEW 338
#define TK_WAL 339
#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 494
#define YYACTIONTYPE unsigned short int
#define ParseTOKENTYPE SToken
typedef union {
int yyinit;
ParseTOKENTYPE yy0;
SNode* yy28;
SDataType yy32;
EJoinType yy152;
SNodeList* yy236;
EFillMode yy322;
SAlterOption yy481;
int64_t yy701;
EOrder yy734;
bool yy793;
STokenPair yy833;
int8_t yy847;
SToken yy889;
EOperatorType yy896;
ENullOrder yy945;
int32_t yy956;
} 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 811
#define YYNRULE 611
#define YYNRULE_WITH_ACTION 611
#define YYNTOKEN 340
#define YY_MAX_SHIFT 810
#define YY_MIN_SHIFTREDUCE 1196
#define YY_MAX_SHIFTREDUCE 1806
#define YY_ERROR_ACTION 1807
#define YY_ACCEPT_ACTION 1808
#define YY_NO_ACTION 1809
#define YY_MIN_REDUCE 1810
#define YY_MAX_REDUCE 2420
/************* 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 (2798)
static const YYACTIONTYPE yy_action[] = {
/* 0 */ 38, 311, 2227, 410, 541, 699, 1994, 542, 1853, 2041,
/* 10 */ 2042, 164, 48, 46, 1733, 716, 416, 415, 389, 1996,
/* 20 */ 407, 1811, 1578, 41, 40, 133, 2045, 47, 45, 44,
/* 30 */ 43, 42, 583, 579, 578, 1659, 1893, 1576, 1603, 678,
/* 40 */ 142, 1585, 123, 2245, 2078, 122, 121, 120, 119, 118,
/* 50 */ 117, 116, 115, 114, 107, 2195, 9, 715, 699, 1994,
/* 60 */ 666, 41, 40, 2391, 1654, 47, 45, 44, 43, 42,
/* 70 */ 19, 143, 2116, 1606, 2116, 678, 142, 1584, 194, 1986,
/* 80 */ 665, 189, 678, 142, 400, 2392, 667, 2113, 686, 2114,
/* 90 */ 686, 2226, 170, 2262, 1822, 185, 172, 2228, 719, 2230,
/* 100 */ 2231, 714, 807, 709, 706, 15, 459, 2034, 782, 781,
/* 110 */ 780, 779, 419, 504, 778, 777, 146, 772, 771, 770,
/* 120 */ 769, 768, 767, 766, 158, 762, 761, 760, 418, 417,
/* 130 */ 757, 756, 755, 177, 176, 1604, 1833, 1603, 1808, 1394,
/* 140 */ 546, 1661, 1662, 188, 2323, 2324, 543, 140, 2328, 668,
/* 150 */ 2412, 355, 2181, 1385, 744, 743, 742, 1389, 741, 1391,
/* 160 */ 1392, 740, 737, 698, 1400, 734, 1402, 1403, 731, 728,
/* 170 */ 725, 1634, 1644, 213, 212, 699, 1994, 1660, 1663, 190,
/* 180 */ 2323, 2324, 560, 140, 2328, 1970, 290, 2323, 677, 2195,
/* 190 */ 134, 676, 1579, 2391, 1577, 56, 503, 2396, 1588, 1803,
/* 200 */ 2391, 41, 40, 429, 482, 47, 45, 44, 43, 42,
/* 210 */ 665, 189, 1604, 481, 422, 2392, 667, 549, 2395, 421,
/* 220 */ 542, 1853, 2392, 2394, 1582, 1583, 270, 1633, 1636, 1637,
/* 230 */ 1638, 1639, 1640, 1641, 1642, 1643, 711, 707, 1652, 1653,
/* 240 */ 1655, 1656, 1657, 1658, 2, 48, 46, 698, 640, 1261,
/* 250 */ 359, 1260, 1601, 407, 754, 1578, 1504, 1505, 1680, 495,
/* 260 */ 2227, 641, 511, 367, 2391, 1236, 138, 510, 1659, 556,
/* 270 */ 1576, 41, 40, 716, 1722, 47, 45, 44, 43, 42,
/* 280 */ 1603, 2397, 189, 478, 1262, 512, 2392, 667, 1487, 1488,
/* 290 */ 480, 1761, 1503, 1506, 698, 2396, 30, 1654, 2391, 557,
/* 300 */ 62, 2245, 1802, 19, 1264, 1265, 1688, 1238, 1241, 1242,
/* 310 */ 1584, 678, 142, 2195, 412, 715, 2395, 2040, 2042, 123,
/* 320 */ 2392, 2393, 122, 121, 120, 119, 118, 117, 116, 115,
/* 330 */ 114, 656, 51, 1429, 1430, 807, 376, 101, 15, 653,
/* 340 */ 652, 1759, 1760, 1762, 1763, 1764, 2205, 466, 2160, 2226,
/* 350 */ 1832, 2262, 558, 2109, 110, 2228, 719, 2230, 2231, 714,
/* 360 */ 2213, 709, 1987, 1689, 145, 62, 151, 2286, 2315, 1773,
/* 370 */ 2209, 60, 403, 2311, 1661, 1662, 52, 508, 638, 51,
/* 380 */ 502, 501, 500, 499, 494, 493, 492, 491, 490, 486,
/* 390 */ 485, 484, 483, 358, 475, 474, 473, 258, 468, 467,
/* 400 */ 374, 699, 1994, 2195, 1634, 1644, 1810, 1880, 2211, 404,
/* 410 */ 1660, 1663, 661, 66, 680, 187, 2323, 2324, 709, 140,
/* 420 */ 2328, 133, 662, 657, 650, 1579, 660, 1577, 588, 602,
/* 430 */ 132, 131, 130, 129, 128, 127, 126, 125, 124, 699,
/* 440 */ 1994, 37, 405, 1683, 1684, 1685, 1686, 1687, 1691, 1692,
/* 450 */ 1693, 1694, 581, 580, 2245, 441, 294, 1582, 1583, 457,
/* 460 */ 1633, 1636, 1637, 1638, 1639, 1640, 1641, 1642, 1643, 711,
/* 470 */ 707, 1652, 1653, 1655, 1656, 1657, 1658, 2, 12, 48,
/* 480 */ 46, 2330, 443, 439, 1261, 2227, 1260, 407, 294, 1578,
/* 490 */ 752, 156, 155, 749, 748, 747, 153, 222, 681, 62,
/* 500 */ 538, 544, 1659, 1860, 1576, 2227, 2205, 2327, 536, 659,
/* 510 */ 606, 532, 528, 626, 62, 601, 600, 599, 716, 1262,
/* 520 */ 1985, 294, 591, 139, 595, 618, 2245, 754, 594, 182,
/* 530 */ 2209, 1654, 294, 593, 598, 383, 382, 19, 2195, 592,
/* 540 */ 715, 254, 464, 2095, 1584, 401, 2245, 2047, 617, 375,
/* 550 */ 2099, 256, 182, 167, 373, 255, 144, 609, 2195, 2286,
/* 560 */ 715, 1996, 2045, 615, 603, 613, 253, 252, 2211, 807,
/* 570 */ 251, 1338, 15, 2100, 2226, 12, 2262, 2227, 709, 110,
/* 580 */ 2228, 719, 2230, 2231, 714, 451, 709, 450, 90, 203,
/* 590 */ 716, 186, 1862, 2315, 2226, 1831, 2262, 403, 2311, 171,
/* 600 */ 2228, 719, 2230, 2231, 714, 377, 709, 169, 1661, 1662,
/* 610 */ 70, 1340, 191, 69, 1989, 1935, 93, 449, 2245, 362,
/* 620 */ 2345, 1584, 387, 2396, 619, 1737, 666, 597, 596, 2391,
/* 630 */ 2195, 1603, 715, 47, 45, 44, 43, 42, 1634, 1644,
/* 640 */ 1605, 642, 2356, 745, 1660, 1663, 665, 189, 2195, 410,
/* 650 */ 224, 2392, 667, 589, 544, 294, 1860, 167, 2178, 1579,
/* 660 */ 1896, 1577, 699, 1994, 1578, 1996, 2226, 2330, 2262, 1349,
/* 670 */ 294, 110, 2228, 719, 2230, 2231, 714, 1336, 709, 1576,
/* 680 */ 470, 2095, 458, 2411, 1348, 2315, 44, 43, 42, 403,
/* 690 */ 2311, 1582, 1583, 2326, 1633, 1636, 1637, 1638, 1639, 1640,
/* 700 */ 1641, 1642, 1643, 711, 707, 1652, 1653, 1655, 1656, 1657,
/* 710 */ 1658, 2, 48, 46, 1664, 1863, 1830, 2227, 453, 1584,
/* 720 */ 407, 2047, 1578, 452, 302, 303, 1796, 206, 2188, 301,
/* 730 */ 681, 2047, 601, 600, 599, 1659, 685, 1576, 388, 591,
/* 740 */ 139, 595, 699, 1994, 807, 594, 2045, 2205, 2047, 513,
/* 750 */ 593, 598, 383, 382, 699, 1994, 592, 12, 2245, 10,
/* 760 */ 2189, 2214, 472, 694, 1654, 641, 2047, 800, 2391, 2195,
/* 770 */ 2195, 2209, 715, 397, 487, 641, 1871, 1584, 2391, 699,
/* 780 */ 1994, 2045, 1635, 699, 1994, 2397, 189, 764, 497, 2095,
/* 790 */ 2392, 667, 257, 292, 746, 2397, 189, 2038, 604, 488,
/* 800 */ 2392, 667, 807, 559, 2227, 49, 2226, 641, 2262, 2211,
/* 810 */ 2391, 110, 2228, 719, 2230, 2231, 714, 716, 709, 709,
/* 820 */ 699, 1994, 317, 186, 2047, 2315, 1605, 2397, 189, 403,
/* 830 */ 2311, 402, 2392, 667, 1579, 211, 1577, 1971, 1983, 2045,
/* 840 */ 1991, 1661, 1662, 41, 40, 2245, 1353, 47, 45, 44,
/* 850 */ 43, 42, 2346, 699, 1994, 699, 1994, 2195, 1829, 715,
/* 860 */ 168, 1352, 1549, 1550, 1669, 333, 1582, 1583, 699, 1994,
/* 870 */ 1603, 1634, 1644, 259, 2047, 267, 436, 1660, 1663, 1969,
/* 880 */ 2330, 411, 330, 73, 699, 1994, 72, 1979, 684, 2045,
/* 890 */ 14, 13, 1579, 2226, 1577, 2262, 356, 90, 111, 2228,
/* 900 */ 719, 2230, 2231, 714, 306, 709, 2325, 220, 523, 521,
/* 910 */ 518, 2195, 2315, 1828, 41, 40, 2314, 2311, 47, 45,
/* 920 */ 44, 43, 42, 1990, 1582, 1583, 515, 1633, 1636, 1637,
/* 930 */ 1638, 1639, 1640, 1641, 1642, 1643, 711, 707, 1652, 1653,
/* 940 */ 1655, 1656, 1657, 1658, 2, 48, 46, 62, 1603, 699,
/* 950 */ 1994, 1827, 1826, 407, 1690, 1578, 41, 40, 699, 1994,
/* 960 */ 47, 45, 44, 43, 42, 1606, 2195, 239, 1659, 696,
/* 970 */ 1576, 752, 156, 155, 749, 748, 747, 153, 697, 292,
/* 980 */ 699, 1994, 413, 174, 1825, 109, 699, 1994, 2227, 1606,
/* 990 */ 167, 577, 573, 569, 565, 1702, 238, 1654, 1996, 624,
/* 1000 */ 312, 716, 1730, 2353, 2195, 2195, 414, 208, 166, 701,
/* 1010 */ 1584, 2287, 1772, 752, 156, 155, 749, 748, 747, 153,
/* 1020 */ 1824, 1635, 703, 1821, 2287, 1820, 81, 80, 456, 2245,
/* 1030 */ 2359, 201, 35, 776, 774, 807, 91, 2195, 49, 236,
/* 1040 */ 2227, 2195, 1695, 715, 448, 446, 641, 86, 587, 2391,
/* 1050 */ 85, 167, 586, 716, 1749, 357, 2395, 765, 437, 1997,
/* 1060 */ 1956, 435, 431, 427, 424, 449, 2397, 189, 1838, 802,
/* 1070 */ 2088, 2392, 667, 2195, 1661, 1662, 2195, 2226, 2195, 2262,
/* 1080 */ 3, 2245, 110, 2228, 719, 2230, 2231, 714, 670, 709,
/* 1090 */ 1819, 1818, 54, 2195, 2411, 715, 2315, 1817, 1816, 1635,
/* 1100 */ 403, 2311, 2047, 294, 1634, 1644, 235, 228, 1587, 34,
/* 1110 */ 1660, 1663, 462, 233, 554, 41, 40, 2046, 204, 47,
/* 1120 */ 45, 44, 43, 42, 106, 1579, 154, 1577, 1815, 2226,
/* 1130 */ 1814, 2262, 226, 103, 110, 2228, 719, 2230, 2231, 714,
/* 1140 */ 682, 709, 269, 2195, 2195, 1813, 2290, 1972, 2315, 154,
/* 1150 */ 2195, 2195, 403, 2311, 381, 380, 750, 1582, 1583, 2038,
/* 1160 */ 1633, 1636, 1637, 1638, 1639, 1640, 1641, 1642, 1643, 711,
/* 1170 */ 707, 1652, 1653, 1655, 1656, 1657, 1658, 2, 48, 46,
/* 1180 */ 147, 2195, 751, 2195, 673, 2038, 407, 641, 1578, 326,
/* 1190 */ 2391, 1244, 2024, 1241, 1242, 2335, 1722, 1602, 2195, 55,
/* 1200 */ 74, 1659, 135, 1576, 2227, 268, 244, 2397, 189, 242,
/* 1210 */ 1869, 590, 2392, 667, 83, 154, 50, 716, 246, 2366,
/* 1220 */ 248, 245, 1544, 247, 379, 378, 250, 585, 1981, 249,
/* 1230 */ 1654, 1977, 607, 41, 40, 1334, 50, 47, 45, 44,
/* 1240 */ 43, 42, 621, 1584, 620, 2245, 758, 274, 94, 587,
/* 1250 */ 84, 2227, 154, 586, 1805, 1806, 50, 2195, 1998, 715,
/* 1260 */ 263, 1729, 2216, 299, 716, 1590, 648, 710, 807, 36,
/* 1270 */ 1314, 15, 1586, 759, 266, 41, 40, 1936, 2227, 47,
/* 1280 */ 45, 44, 43, 42, 14, 13, 1295, 287, 1547, 1758,
/* 1290 */ 1823, 713, 2245, 2226, 654, 2262, 137, 1312, 110, 2228,
/* 1300 */ 719, 2230, 2231, 714, 2195, 709, 715, 1661, 1662, 1757,
/* 1310 */ 2411, 281, 2315, 1934, 71, 152, 403, 2311, 2218, 2245,
/* 1320 */ 276, 1933, 2246, 420, 390, 683, 1296, 2104, 1854, 1501,
/* 1330 */ 2349, 2195, 1859, 715, 2035, 669, 304, 1634, 1644, 671,
/* 1340 */ 2226, 154, 2262, 1660, 1663, 110, 2228, 719, 2230, 2231,
/* 1350 */ 714, 64, 709, 679, 50, 289, 286, 2411, 1579, 2315,
/* 1360 */ 1577, 416, 415, 403, 2311, 50, 293, 2226, 5, 2262,
/* 1370 */ 2227, 1592, 348, 2228, 719, 2230, 2231, 714, 712, 709,
/* 1380 */ 700, 2280, 423, 716, 1659, 2384, 1585, 691, 308, 428,
/* 1390 */ 1582, 1583, 371, 1633, 1636, 1637, 1638, 1639, 1640, 1641,
/* 1400 */ 1642, 1643, 711, 707, 1652, 1653, 1655, 1656, 1657, 1658,
/* 1410 */ 2, 2245, 723, 1654, 1379, 152, 1609, 154, 136, 2227,
/* 1420 */ 152, 445, 444, 2195, 1696, 715, 1584, 1645, 196, 1589,
/* 1430 */ 197, 447, 716, 199, 2334, 1525, 320, 674, 325, 2227,
/* 1440 */ 1602, 465, 463, 210, 1606, 2105, 469, 471, 506, 476,
/* 1450 */ 1601, 705, 716, 496, 489, 2097, 516, 498, 505, 2226,
/* 1460 */ 2245, 2262, 507, 517, 110, 2228, 719, 2230, 2231, 714,
/* 1470 */ 514, 709, 2195, 214, 715, 215, 2411, 519, 2315, 217,
/* 1480 */ 2245, 522, 403, 2311, 524, 1407, 1607, 520, 1411, 4,
/* 1490 */ 1418, 1416, 2195, 157, 715, 540, 539, 547, 550, 225,
/* 1500 */ 1604, 551, 548, 227, 1608, 1610, 553, 1611, 2226, 552,
/* 1510 */ 2262, 555, 582, 110, 2228, 719, 2230, 2231, 714, 230,
/* 1520 */ 709, 232, 88, 2110, 89, 2411, 561, 2315, 2226, 237,
/* 1530 */ 2262, 403, 2311, 110, 2228, 719, 2230, 2231, 714, 610,
/* 1540 */ 709, 1593, 112, 1588, 352, 2288, 584, 2315, 611, 2169,
/* 1550 */ 623, 403, 2311, 625, 1984, 2166, 241, 1980, 243, 160,
/* 1560 */ 161, 92, 1982, 2227, 1978, 162, 148, 260, 163, 629,
/* 1570 */ 321, 628, 1532, 1596, 1598, 2165, 716, 636, 264, 2365,
/* 1580 */ 635, 630, 655, 633, 689, 262, 707, 1652, 1653, 1655,
/* 1590 */ 1656, 1657, 1658, 645, 2350, 2227, 2360, 651, 8, 2364,
/* 1600 */ 272, 664, 275, 393, 2245, 658, 175, 2337, 716, 634,
/* 1610 */ 280, 646, 643, 282, 644, 2227, 2195, 283, 715, 394,
/* 1620 */ 2414, 285, 675, 2390, 672, 1722, 141, 1605, 716, 1725,
/* 1630 */ 2331, 1727, 179, 295, 687, 149, 2245, 1, 284, 322,
/* 1640 */ 688, 150, 2227, 2124, 2123, 323, 2122, 399, 2195, 692,
/* 1650 */ 715, 100, 2226, 693, 2262, 716, 2245, 110, 2228, 719,
/* 1660 */ 2230, 2231, 714, 1995, 709, 324, 192, 61, 2195, 702,
/* 1670 */ 715, 2315, 2296, 102, 721, 403, 2311, 1957, 288, 327,
/* 1680 */ 2039, 1220, 315, 2245, 2226, 804, 2262, 801, 53, 111,
/* 1690 */ 2228, 719, 2230, 2231, 714, 2195, 709, 715, 329, 159,
/* 1700 */ 806, 351, 363, 2315, 717, 2227, 2262, 704, 2311, 111,
/* 1710 */ 2228, 719, 2230, 2231, 714, 2187, 709, 364, 716, 78,
/* 1720 */ 336, 2227, 350, 2315, 340, 2186, 2185, 366, 2311, 331,
/* 1730 */ 2182, 2226, 425, 2262, 716, 426, 111, 2228, 719, 2230,
/* 1740 */ 2231, 714, 1569, 709, 1570, 195, 2245, 430, 2180, 432,
/* 1750 */ 2315, 433, 2227, 434, 2179, 2312, 372, 2177, 2195, 438,
/* 1760 */ 715, 2176, 2245, 440, 2175, 716, 442, 391, 1560, 2156,
/* 1770 */ 2227, 198, 2155, 200, 2195, 79, 715, 1528, 1527, 2137,
/* 1780 */ 2136, 2135, 454, 716, 455, 2134, 2133, 1478, 2087, 460,
/* 1790 */ 461, 2084, 202, 2245, 2226, 2083, 2262, 2082, 392, 171,
/* 1800 */ 2228, 719, 2230, 2231, 714, 2195, 709, 715, 82, 2081,
/* 1810 */ 2226, 2245, 2262, 2086, 205, 349, 2228, 719, 2230, 2231,
/* 1820 */ 714, 2085, 709, 2195, 2080, 715, 2079, 2077, 2076, 2075,
/* 1830 */ 207, 477, 2074, 479, 2090, 2073, 2072, 2071, 2070, 2069,
/* 1840 */ 2068, 2226, 2357, 2262, 2067, 2066, 349, 2228, 719, 2230,
/* 1850 */ 2231, 714, 2065, 709, 2064, 2063, 2062, 2227, 360, 2226,
/* 1860 */ 2061, 2262, 2060, 2059, 342, 2228, 719, 2230, 2231, 714,
/* 1870 */ 716, 709, 2227, 2058, 209, 87, 2057, 2056, 2055, 2089,
/* 1880 */ 2054, 2053, 2052, 1480, 2051, 716, 2050, 2227, 509, 2049,
/* 1890 */ 2048, 1350, 1354, 361, 1899, 216, 1346, 1898, 2245, 1897,
/* 1900 */ 713, 1895, 1892, 525, 526, 218, 527, 1891, 529, 663,
/* 1910 */ 2195, 219, 715, 2245, 531, 1884, 530, 535, 398, 534,
/* 1920 */ 533, 1873, 537, 1849, 183, 2195, 1243, 715, 2245, 231,
/* 1930 */ 76, 1848, 221, 2154, 2227, 2144, 223, 2132, 2131, 2108,
/* 1940 */ 2195, 2215, 715, 1973, 184, 545, 2226, 716, 2262, 234,
/* 1950 */ 77, 172, 2228, 719, 2230, 2231, 714, 1894, 709, 2227,
/* 1960 */ 229, 2226, 562, 2262, 1890, 563, 349, 2228, 719, 2230,
/* 1970 */ 2231, 714, 716, 709, 1288, 2245, 2226, 1888, 2262, 566,
/* 1980 */ 406, 348, 2228, 719, 2230, 2231, 714, 2195, 709, 715,
/* 1990 */ 2281, 564, 567, 568, 1886, 570, 2227, 571, 572, 1883,
/* 2000 */ 2245, 575, 574, 576, 1868, 2413, 1866, 1867, 1865, 716,
/* 2010 */ 1845, 1975, 2195, 1423, 715, 1422, 240, 63, 1974, 1337,
/* 2020 */ 1335, 1333, 1332, 2226, 1331, 2262, 1330, 1329, 349, 2228,
/* 2030 */ 719, 2230, 2231, 714, 773, 709, 775, 2245, 1324, 1326,
/* 2040 */ 1881, 384, 408, 1872, 385, 605, 1325, 1870, 622, 2195,
/* 2050 */ 2262, 715, 1323, 344, 2228, 719, 2230, 2231, 714, 386,
/* 2060 */ 709, 608, 2227, 1844, 1843, 1842, 612, 1841, 614, 1840,
/* 2070 */ 616, 113, 1554, 1556, 1558, 716, 1553, 29, 2153, 57,
/* 2080 */ 67, 1534, 1536, 2227, 631, 2226, 2143, 2262, 265, 627,
/* 2090 */ 349, 2228, 719, 2230, 2231, 714, 716, 709, 2130, 632,
/* 2100 */ 2129, 1513, 2396, 2245, 20, 1512, 165, 810, 1538, 637,
/* 2110 */ 31, 6, 17, 639, 2227, 2195, 647, 715, 1775, 271,
/* 2120 */ 7, 649, 21, 319, 2245, 22, 173, 716, 278, 273,
/* 2130 */ 279, 1756, 277, 32, 2216, 95, 2195, 33, 715, 181,
/* 2140 */ 1748, 65, 24, 1790, 1795, 1789, 291, 798, 794, 790,
/* 2150 */ 786, 2226, 316, 2262, 395, 2245, 334, 2228, 719, 2230,
/* 2160 */ 2231, 714, 1796, 709, 23, 1794, 1793, 2195, 396, 715,
/* 2170 */ 59, 178, 2226, 2128, 2262, 58, 2107, 332, 2228, 719,
/* 2180 */ 2230, 2231, 714, 18, 709, 2227, 1719, 97, 1718, 298,
/* 2190 */ 2106, 307, 108, 1754, 98, 309, 96, 310, 716, 25,
/* 2200 */ 26, 2227, 690, 2226, 103, 2262, 300, 305, 335, 2228,
/* 2210 */ 719, 2230, 2231, 714, 716, 709, 68, 99, 1671, 11,
/* 2220 */ 13, 1670, 1594, 180, 1681, 2265, 2245, 695, 193, 1649,
/* 2230 */ 708, 1626, 1647, 1646, 720, 39, 722, 16, 2195, 27,
/* 2240 */ 715, 1618, 2245, 409, 28, 726, 1408, 724, 1413, 1405,
/* 2250 */ 1404, 727, 729, 2227, 2195, 730, 715, 1401, 732, 718,
/* 2260 */ 733, 735, 297, 1395, 736, 738, 716, 1393, 739, 296,
/* 2270 */ 313, 104, 2227, 1399, 2226, 105, 2262, 1417, 1286, 341,
/* 2280 */ 2228, 719, 2230, 2231, 714, 716, 709, 75, 261, 753,
/* 2290 */ 2226, 1398, 2262, 1318, 2245, 345, 2228, 719, 2230, 2231,
/* 2300 */ 714, 1397, 709, 1396, 1317, 2227, 2195, 1316, 715, 1315,
/* 2310 */ 1344, 1313, 1311, 2245, 1310, 1309, 763, 314, 716, 1307,
/* 2320 */ 1306, 1304, 1305, 1303, 2227, 2195, 1302, 715, 1341, 1301,
/* 2330 */ 1339, 1298, 1297, 1294, 1293, 1292, 1889, 716, 1291, 783,
/* 2340 */ 2227, 784, 2226, 1887, 2262, 785, 2245, 337, 2228, 719,
/* 2350 */ 2230, 2231, 714, 716, 709, 787, 788, 789, 2195, 1885,
/* 2360 */ 715, 2226, 791, 2262, 793, 2245, 346, 2228, 719, 2230,
/* 2370 */ 2231, 714, 792, 709, 1882, 2227, 795, 2195, 796, 715,
/* 2380 */ 1864, 2245, 797, 799, 1233, 1839, 1221, 803, 716, 318,
/* 2390 */ 805, 808, 2227, 2195, 2226, 715, 2262, 1580, 328, 338,
/* 2400 */ 2228, 719, 2230, 2231, 714, 716, 709, 809, 1809, 1809,
/* 2410 */ 1809, 1809, 1809, 2226, 1809, 2262, 2245, 1809, 347, 2228,
/* 2420 */ 719, 2230, 2231, 714, 1809, 709, 1809, 2227, 2195, 2226,
/* 2430 */ 715, 2262, 1809, 2245, 339, 2228, 719, 2230, 2231, 714,
/* 2440 */ 716, 709, 1809, 1809, 1809, 2195, 1809, 715, 1809, 1809,
/* 2450 */ 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809,
/* 2460 */ 1809, 1809, 1809, 1809, 2226, 1809, 2262, 1809, 2245, 353,
/* 2470 */ 2228, 719, 2230, 2231, 714, 1809, 709, 1809, 1809, 1809,
/* 2480 */ 2195, 2226, 715, 2262, 1809, 1809, 354, 2228, 719, 2230,
/* 2490 */ 2231, 714, 2227, 709, 1809, 1809, 1809, 1809, 1809, 1809,
/* 2500 */ 1809, 1809, 1809, 1809, 1809, 716, 1809, 2227, 1809, 1809,
/* 2510 */ 1809, 1809, 1809, 1809, 1809, 1809, 2226, 1809, 2262, 1809,
/* 2520 */ 716, 2239, 2228, 719, 2230, 2231, 714, 1809, 709, 2227,
/* 2530 */ 1809, 1809, 1809, 2245, 1809, 1809, 1809, 1809, 1809, 1809,
/* 2540 */ 1809, 1809, 716, 1809, 1809, 2195, 1809, 715, 2245, 1809,
/* 2550 */ 1809, 1809, 1809, 1809, 2227, 1809, 1809, 1809, 1809, 1809,
/* 2560 */ 2195, 1809, 715, 1809, 1809, 1809, 1809, 716, 1809, 1809,
/* 2570 */ 2245, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809,
/* 2580 */ 1809, 2226, 2195, 2262, 715, 1809, 2238, 2228, 719, 2230,
/* 2590 */ 2231, 714, 1809, 709, 1809, 2245, 2226, 1809, 2262, 1809,
/* 2600 */ 1809, 2237, 2228, 719, 2230, 2231, 714, 2195, 709, 715,
/* 2610 */ 1809, 1809, 1809, 1809, 1809, 1809, 2227, 1809, 2226, 1809,
/* 2620 */ 2262, 1809, 1809, 368, 2228, 719, 2230, 2231, 714, 716,
/* 2630 */ 709, 1809, 1809, 1809, 2227, 1809, 1809, 1809, 1809, 1809,
/* 2640 */ 1809, 1809, 1809, 2226, 1809, 2262, 1809, 716, 369, 2228,
/* 2650 */ 719, 2230, 2231, 714, 1809, 709, 1809, 2245, 1809, 1809,
/* 2660 */ 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 2195,
/* 2670 */ 1809, 715, 1809, 1809, 1809, 2245, 1809, 1809, 1809, 1809,
/* 2680 */ 1809, 2227, 1809, 1809, 1809, 1809, 1809, 2195, 1809, 715,
/* 2690 */ 1809, 1809, 1809, 1809, 716, 1809, 2227, 1809, 1809, 1809,
/* 2700 */ 1809, 1809, 1809, 1809, 1809, 2226, 1809, 2262, 1809, 716,
/* 2710 */ 365, 2228, 719, 2230, 2231, 714, 1809, 709, 1809, 1809,
/* 2720 */ 1809, 1809, 2245, 2226, 1809, 2262, 1809, 1809, 370, 2228,
/* 2730 */ 719, 2230, 2231, 714, 2195, 709, 715, 2245, 1809, 1809,
/* 2740 */ 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 2195,
/* 2750 */ 1809, 715, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809,
/* 2760 */ 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809,
/* 2770 */ 717, 1809, 2262, 1809, 1809, 344, 2228, 719, 2230, 2231,
/* 2780 */ 714, 1809, 709, 1809, 1809, 2226, 1809, 2262, 1809, 1809,
/* 2790 */ 343, 2228, 719, 2230, 2231, 714, 1809, 709,
};
static const YYCODETYPE yy_lookahead[] = {
/* 0 */ 452, 453, 343, 376, 350, 355, 356, 353, 354, 397,
/* 10 */ 398, 384, 12, 13, 14, 356, 12, 13, 391, 392,
/* 20 */ 20, 0, 22, 8, 9, 375, 399, 12, 13, 14,
/* 30 */ 15, 16, 382, 360, 361, 35, 0, 37, 20, 355,
/* 40 */ 356, 37, 21, 384, 0, 24, 25, 26, 27, 28,
/* 50 */ 29, 30, 31, 32, 362, 396, 42, 398, 355, 356,
/* 60 */ 463, 8, 9, 466, 64, 12, 13, 14, 15, 16,
/* 70 */ 70, 379, 398, 20, 398, 355, 356, 77, 375, 387,
/* 80 */ 483, 484, 355, 356, 410, 488, 489, 413, 414, 413,
/* 90 */ 414, 432, 342, 434, 344, 383, 437, 438, 439, 440,
/* 100 */ 441, 442, 102, 444, 70, 105, 355, 395, 72, 73,
/* 110 */ 74, 75, 76, 86, 78, 79, 80, 81, 82, 83,
/* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
/* 130 */ 94, 95, 96, 97, 98, 20, 343, 20, 340, 102,
/* 140 */ 14, 141, 142, 459, 460, 461, 20, 463, 464, 490,
/* 150 */ 491, 400, 0, 116, 117, 118, 119, 120, 121, 122,
/* 160 */ 123, 124, 125, 20, 127, 128, 129, 130, 131, 132,
/* 170 */ 133, 171, 172, 146, 147, 355, 356, 177, 178, 459,
/* 180 */ 460, 461, 69, 463, 464, 0, 459, 460, 461, 396,
/* 190 */ 463, 464, 192, 466, 194, 375, 169, 463, 194, 184,
/* 200 */ 466, 8, 9, 51, 160, 12, 13, 14, 15, 16,
/* 210 */ 483, 484, 20, 169, 416, 488, 489, 350, 484, 421,
/* 220 */ 353, 354, 488, 489, 224, 225, 173, 227, 228, 229,
/* 230 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
/* 240 */ 240, 241, 242, 243, 244, 12, 13, 20, 50, 20,
/* 250 */ 18, 22, 20, 20, 69, 22, 141, 142, 224, 27,
/* 260 */ 343, 463, 30, 70, 466, 4, 37, 35, 35, 20,
/* 270 */ 37, 8, 9, 356, 260, 12, 13, 14, 15, 16,
/* 280 */ 20, 483, 484, 51, 55, 53, 488, 489, 171, 172,
/* 290 */ 58, 224, 177, 178, 20, 463, 33, 64, 466, 355,
/* 300 */ 105, 384, 287, 70, 56, 57, 113, 46, 47, 48,
/* 310 */ 77, 355, 356, 396, 394, 398, 484, 397, 398, 21,
/* 320 */ 488, 489, 24, 25, 26, 27, 28, 29, 30, 31,
/* 330 */ 32, 176, 105, 141, 142, 102, 104, 362, 105, 272,
/* 340 */ 273, 274, 275, 276, 277, 278, 372, 115, 380, 432,
/* 350 */ 343, 434, 408, 409, 437, 438, 439, 440, 441, 442,
/* 360 */ 386, 444, 387, 170, 447, 105, 449, 450, 451, 106,
/* 370 */ 396, 173, 455, 456, 141, 142, 105, 145, 180, 105,
/* 380 */ 148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
/* 390 */ 158, 159, 160, 161, 162, 163, 164, 429, 166, 167,
/* 400 */ 168, 355, 356, 396, 171, 172, 0, 0, 434, 435,
/* 410 */ 177, 178, 20, 4, 458, 459, 460, 461, 444, 463,
/* 420 */ 464, 375, 267, 268, 269, 192, 356, 194, 382, 22,
/* 430 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 355,
/* 440 */ 356, 248, 249, 250, 251, 252, 253, 254, 255, 256,
/* 450 */ 257, 258, 360, 361, 384, 187, 261, 224, 225, 375,
/* 460 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
/* 470 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 12,
/* 480 */ 13, 436, 214, 215, 20, 343, 22, 20, 261, 22,
/* 490 */ 134, 135, 136, 137, 138, 139, 140, 351, 356, 105,
/* 500 */ 51, 355, 35, 357, 37, 343, 372, 462, 59, 439,
/* 510 */ 4, 62, 63, 115, 105, 72, 73, 74, 356, 55,
/* 520 */ 386, 261, 79, 80, 81, 19, 384, 69, 85, 384,
/* 530 */ 396, 64, 261, 90, 91, 92, 93, 70, 396, 96,
/* 540 */ 398, 35, 355, 356, 77, 376, 384, 384, 21, 404,
/* 550 */ 405, 136, 384, 384, 391, 140, 447, 51, 396, 450,
/* 560 */ 398, 392, 399, 36, 58, 38, 39, 40, 434, 102,
/* 570 */ 64, 37, 105, 405, 432, 245, 434, 343, 444, 437,
/* 580 */ 438, 439, 440, 441, 442, 191, 444, 193, 364, 402,
/* 590 */ 356, 449, 358, 451, 432, 343, 434, 455, 456, 437,
/* 600 */ 438, 439, 440, 441, 442, 381, 444, 365, 141, 142,
/* 610 */ 104, 77, 470, 107, 390, 373, 201, 223, 384, 204,
/* 620 */ 478, 77, 207, 3, 209, 14, 463, 369, 370, 466,
/* 630 */ 396, 20, 398, 12, 13, 14, 15, 16, 171, 172,
/* 640 */ 20, 479, 480, 115, 177, 178, 483, 484, 396, 376,
/* 650 */ 351, 488, 489, 13, 355, 261, 357, 384, 0, 192,
/* 660 */ 0, 194, 355, 356, 22, 392, 432, 436, 434, 22,
/* 670 */ 261, 437, 438, 439, 440, 441, 442, 37, 444, 37,
/* 680 */ 355, 356, 375, 449, 37, 451, 14, 15, 16, 455,
/* 690 */ 456, 224, 225, 462, 227, 228, 229, 230, 231, 232,
/* 700 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
/* 710 */ 243, 244, 12, 13, 14, 0, 343, 343, 416, 77,
/* 720 */ 20, 384, 22, 421, 135, 136, 106, 402, 416, 140,
/* 730 */ 356, 384, 72, 73, 74, 35, 399, 37, 391, 79,
/* 740 */ 80, 81, 355, 356, 102, 85, 399, 372, 384, 102,
/* 750 */ 90, 91, 92, 93, 355, 356, 96, 245, 384, 247,
/* 760 */ 416, 386, 375, 399, 64, 463, 384, 52, 466, 396,
/* 770 */ 396, 396, 398, 391, 375, 463, 0, 77, 466, 355,
/* 780 */ 356, 399, 171, 355, 356, 483, 484, 77, 355, 356,
/* 790 */ 488, 489, 135, 173, 393, 483, 484, 396, 22, 375,
/* 800 */ 488, 489, 102, 375, 343, 105, 432, 463, 434, 434,
/* 810 */ 466, 437, 438, 439, 440, 441, 442, 356, 444, 444,
/* 820 */ 355, 356, 34, 449, 384, 451, 20, 483, 484, 455,
/* 830 */ 456, 391, 488, 489, 192, 402, 194, 0, 385, 399,
/* 840 */ 375, 141, 142, 8, 9, 384, 22, 12, 13, 14,
/* 850 */ 15, 16, 478, 355, 356, 355, 356, 396, 343, 398,
/* 860 */ 18, 37, 205, 206, 14, 23, 224, 225, 355, 356,
/* 870 */ 20, 171, 172, 375, 384, 375, 218, 177, 178, 0,
/* 880 */ 436, 391, 40, 41, 355, 356, 44, 385, 375, 399,
/* 890 */ 1, 2, 192, 432, 194, 434, 54, 364, 437, 438,
/* 900 */ 439, 440, 441, 442, 375, 444, 462, 65, 66, 67,
/* 910 */ 68, 396, 451, 343, 8, 9, 455, 456, 12, 13,
/* 920 */ 14, 15, 16, 390, 224, 225, 102, 227, 228, 229,
/* 930 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
/* 940 */ 240, 241, 242, 243, 244, 12, 13, 105, 20, 355,
/* 950 */ 356, 343, 343, 20, 170, 22, 8, 9, 355, 356,
/* 960 */ 12, 13, 14, 15, 16, 20, 396, 35, 35, 375,
/* 970 */ 37, 134, 135, 136, 137, 138, 139, 140, 375, 173,
/* 980 */ 355, 356, 376, 51, 343, 143, 355, 356, 343, 20,
/* 990 */ 384, 59, 60, 61, 62, 106, 64, 64, 392, 416,
/* 1000 */ 375, 356, 4, 358, 396, 396, 375, 64, 173, 448,
/* 1010 */ 77, 450, 106, 134, 135, 136, 137, 138, 139, 140,
/* 1020 */ 343, 171, 448, 343, 450, 343, 184, 185, 186, 384,
/* 1030 */ 406, 189, 248, 369, 370, 102, 104, 396, 105, 107,
/* 1040 */ 343, 396, 258, 398, 202, 203, 463, 104, 134, 466,
/* 1050 */ 107, 384, 138, 356, 106, 213, 3, 371, 216, 392,
/* 1060 */ 374, 219, 220, 221, 222, 223, 483, 484, 346, 347,
/* 1070 */ 0, 488, 489, 396, 141, 142, 396, 432, 396, 434,
/* 1080 */ 33, 384, 437, 438, 439, 440, 441, 442, 33, 444,
/* 1090 */ 343, 343, 45, 396, 449, 398, 451, 343, 343, 171,
/* 1100 */ 455, 456, 384, 261, 171, 172, 174, 175, 37, 2,
/* 1110 */ 177, 178, 42, 181, 182, 8, 9, 399, 173, 12,
/* 1120 */ 13, 14, 15, 16, 105, 192, 33, 194, 343, 432,
/* 1130 */ 343, 434, 200, 114, 437, 438, 439, 440, 441, 442,
/* 1140 */ 416, 444, 173, 396, 396, 343, 449, 0, 451, 33,
/* 1150 */ 396, 396, 455, 456, 39, 40, 393, 224, 225, 396,
/* 1160 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
/* 1170 */ 237, 238, 239, 240, 241, 242, 243, 244, 12, 13,
/* 1180 */ 33, 396, 393, 396, 33, 396, 20, 463, 22, 377,
/* 1190 */ 466, 14, 380, 47, 48, 259, 260, 20, 396, 106,
/* 1200 */ 115, 35, 33, 37, 343, 64, 108, 483, 484, 111,
/* 1210 */ 0, 13, 488, 489, 45, 33, 33, 356, 108, 358,
/* 1220 */ 108, 111, 106, 111, 109, 110, 108, 112, 385, 111,
/* 1230 */ 64, 385, 22, 8, 9, 37, 33, 12, 13, 14,
/* 1240 */ 15, 16, 208, 77, 210, 384, 13, 33, 107, 134,
/* 1250 */ 165, 343, 33, 138, 141, 142, 33, 396, 385, 398,
/* 1260 */ 385, 263, 49, 33, 356, 194, 358, 385, 102, 2,
/* 1270 */ 37, 105, 37, 13, 422, 8, 9, 373, 343, 12,
/* 1280 */ 13, 14, 15, 16, 1, 2, 37, 492, 106, 106,
/* 1290 */ 344, 356, 384, 432, 481, 434, 359, 37, 437, 438,
/* 1300 */ 439, 440, 441, 442, 396, 444, 398, 141, 142, 106,
/* 1310 */ 449, 475, 451, 372, 33, 33, 455, 456, 105, 384,
/* 1320 */ 106, 372, 384, 359, 415, 106, 77, 406, 354, 106,
/* 1330 */ 406, 396, 356, 398, 395, 282, 106, 171, 172, 284,
/* 1340 */ 432, 33, 434, 177, 178, 437, 438, 439, 440, 441,
/* 1350 */ 442, 33, 444, 465, 33, 485, 457, 449, 192, 451,
/* 1360 */ 194, 12, 13, 455, 456, 33, 468, 432, 264, 434,
/* 1370 */ 343, 22, 437, 438, 439, 440, 441, 442, 443, 444,
/* 1380 */ 445, 446, 417, 356, 35, 358, 37, 106, 106, 51,
/* 1390 */ 224, 225, 433, 227, 228, 229, 230, 231, 232, 233,
/* 1400 */ 234, 235, 236, 237, 238, 239, 240, 241, 242, 243,
/* 1410 */ 244, 384, 33, 64, 106, 33, 20, 33, 33, 343,
/* 1420 */ 33, 426, 207, 396, 106, 398, 77, 106, 431, 194,
/* 1430 */ 364, 426, 356, 364, 358, 190, 419, 286, 106, 343,
/* 1440 */ 20, 403, 356, 45, 20, 406, 356, 403, 170, 401,
/* 1450 */ 20, 102, 356, 356, 355, 355, 103, 403, 401, 432,
/* 1460 */ 384, 434, 401, 368, 437, 438, 439, 440, 441, 442,
/* 1470 */ 101, 444, 396, 367, 398, 355, 449, 100, 451, 355,
/* 1480 */ 384, 355, 455, 456, 355, 106, 20, 366, 106, 50,
/* 1490 */ 106, 106, 396, 106, 398, 352, 348, 348, 426, 364,
/* 1500 */ 20, 398, 352, 364, 20, 20, 418, 20, 432, 357,
/* 1510 */ 434, 357, 348, 437, 438, 439, 440, 441, 442, 364,
/* 1520 */ 444, 364, 364, 409, 364, 449, 355, 451, 432, 364,
/* 1530 */ 434, 455, 456, 437, 438, 439, 440, 441, 442, 346,
/* 1540 */ 444, 192, 355, 194, 348, 449, 384, 451, 346, 396,
/* 1550 */ 211, 455, 456, 430, 384, 396, 384, 384, 384, 384,
/* 1560 */ 384, 105, 384, 343, 384, 384, 428, 362, 384, 198,
/* 1570 */ 426, 197, 196, 224, 225, 396, 356, 355, 362, 474,
/* 1580 */ 417, 425, 271, 398, 270, 424, 237, 238, 239, 240,
/* 1590 */ 241, 242, 243, 396, 406, 343, 406, 396, 279, 474,
/* 1600 */ 411, 183, 411, 396, 384, 396, 474, 477, 356, 423,
/* 1610 */ 476, 281, 265, 473, 280, 343, 396, 472, 398, 288,
/* 1620 */ 493, 417, 285, 487, 283, 260, 356, 20, 356, 262,
/* 1630 */ 436, 115, 357, 362, 396, 362, 384, 469, 471, 411,
/* 1640 */ 396, 362, 343, 396, 396, 411, 396, 396, 396, 175,
/* 1650 */ 398, 362, 432, 407, 434, 356, 384, 437, 438, 439,
/* 1660 */ 440, 441, 442, 356, 444, 380, 467, 105, 396, 449,
/* 1670 */ 398, 451, 454, 105, 388, 455, 456, 374, 486, 355,
/* 1680 */ 396, 22, 362, 384, 432, 345, 434, 38, 420, 437,
/* 1690 */ 438, 439, 440, 441, 442, 396, 444, 398, 363, 349,
/* 1700 */ 348, 427, 412, 451, 432, 343, 434, 455, 456, 437,
/* 1710 */ 438, 439, 440, 441, 442, 0, 444, 412, 356, 45,
/* 1720 */ 378, 343, 378, 451, 378, 0, 0, 455, 456, 341,
/* 1730 */ 0, 432, 37, 434, 356, 217, 437, 438, 439, 440,
/* 1740 */ 441, 442, 37, 444, 37, 37, 384, 217, 0, 37,
/* 1750 */ 451, 37, 343, 217, 0, 456, 217, 0, 396, 37,
/* 1760 */ 398, 0, 384, 22, 0, 356, 37, 389, 212, 0,
/* 1770 */ 343, 200, 0, 200, 396, 201, 398, 194, 192, 0,
/* 1780 */ 0, 0, 188, 356, 187, 0, 0, 49, 0, 37,
/* 1790 */ 51, 0, 49, 384, 432, 0, 434, 0, 389, 437,
/* 1800 */ 438, 439, 440, 441, 442, 396, 444, 398, 45, 0,
/* 1810 */ 432, 384, 434, 0, 49, 437, 438, 439, 440, 441,
/* 1820 */ 442, 0, 444, 396, 0, 398, 0, 0, 0, 0,
/* 1830 */ 160, 37, 0, 160, 0, 0, 0, 0, 0, 0,
/* 1840 */ 0, 432, 480, 434, 0, 0, 437, 438, 439, 440,
/* 1850 */ 441, 442, 0, 444, 0, 0, 0, 343, 50, 432,
/* 1860 */ 0, 434, 0, 0, 437, 438, 439, 440, 441, 442,
/* 1870 */ 356, 444, 343, 0, 49, 45, 0, 0, 0, 0,
/* 1880 */ 0, 0, 0, 22, 0, 356, 0, 343, 144, 0,
/* 1890 */ 0, 22, 22, 50, 0, 64, 37, 0, 384, 0,
/* 1900 */ 356, 0, 0, 37, 51, 64, 42, 0, 37, 482,
/* 1910 */ 396, 64, 398, 384, 42, 0, 51, 42, 389, 51,
/* 1920 */ 37, 0, 37, 0, 33, 396, 14, 398, 384, 183,
/* 1930 */ 42, 0, 45, 0, 343, 0, 43, 0, 0, 0,
/* 1940 */ 396, 49, 398, 0, 49, 49, 432, 356, 434, 49,
/* 1950 */ 42, 437, 438, 439, 440, 441, 442, 0, 444, 343,
/* 1960 */ 42, 432, 37, 434, 0, 51, 437, 438, 439, 440,
/* 1970 */ 441, 442, 356, 444, 71, 384, 432, 0, 434, 37,
/* 1980 */ 389, 437, 438, 439, 440, 441, 442, 396, 444, 398,
/* 1990 */ 446, 42, 51, 42, 0, 37, 343, 51, 42, 0,
/* 2000 */ 384, 51, 37, 42, 0, 491, 0, 0, 0, 356,
/* 2010 */ 0, 0, 396, 37, 398, 22, 111, 113, 0, 37,
/* 2020 */ 37, 37, 37, 432, 37, 434, 37, 37, 437, 438,
/* 2030 */ 439, 440, 441, 442, 33, 444, 33, 384, 22, 37,
/* 2040 */ 0, 22, 389, 0, 22, 53, 37, 0, 432, 396,
/* 2050 */ 434, 398, 37, 437, 438, 439, 440, 441, 442, 22,
/* 2060 */ 444, 37, 343, 0, 0, 0, 37, 0, 37, 0,
/* 2070 */ 22, 20, 37, 37, 106, 356, 37, 105, 0, 173,
/* 2080 */ 105, 37, 22, 343, 22, 432, 0, 434, 175, 1,
/* 2090 */ 437, 438, 439, 440, 441, 442, 356, 444, 0, 173,
/* 2100 */ 0, 173, 3, 384, 33, 173, 195, 19, 199, 179,
/* 2110 */ 105, 50, 266, 179, 343, 396, 103, 398, 106, 105,
/* 2120 */ 50, 101, 33, 35, 384, 33, 105, 356, 33, 106,
/* 2130 */ 49, 106, 105, 105, 49, 105, 396, 33, 398, 51,
/* 2140 */ 106, 3, 33, 37, 106, 37, 49, 59, 60, 61,
/* 2150 */ 62, 432, 64, 434, 37, 384, 437, 438, 439, 440,
/* 2160 */ 441, 442, 106, 444, 266, 37, 37, 396, 37, 398,
/* 2170 */ 33, 49, 432, 0, 434, 259, 0, 437, 438, 439,
/* 2180 */ 440, 441, 442, 266, 444, 343, 106, 42, 106, 106,
/* 2190 */ 0, 174, 104, 106, 42, 107, 105, 49, 356, 105,
/* 2200 */ 33, 343, 176, 432, 114, 434, 105, 105, 437, 438,
/* 2210 */ 439, 440, 441, 442, 356, 444, 105, 105, 103, 246,
/* 2220 */ 2, 103, 22, 49, 224, 105, 384, 139, 49, 106,
/* 2230 */ 105, 22, 106, 106, 115, 105, 37, 105, 396, 105,
/* 2240 */ 398, 106, 384, 37, 105, 37, 106, 105, 22, 106,
/* 2250 */ 106, 105, 37, 343, 396, 105, 398, 106, 37, 226,
/* 2260 */ 105, 37, 174, 106, 105, 37, 356, 106, 105, 181,
/* 2270 */ 33, 105, 343, 126, 432, 105, 434, 37, 71, 437,
/* 2280 */ 438, 439, 440, 441, 442, 356, 444, 105, 200, 70,
/* 2290 */ 432, 126, 434, 37, 384, 437, 438, 439, 440, 441,
/* 2300 */ 442, 126, 444, 126, 37, 343, 396, 37, 398, 37,
/* 2310 */ 77, 37, 37, 384, 37, 37, 99, 33, 356, 37,
/* 2320 */ 37, 22, 37, 37, 343, 396, 37, 398, 77, 37,
/* 2330 */ 37, 37, 37, 37, 37, 22, 0, 356, 37, 37,
/* 2340 */ 343, 51, 432, 0, 434, 42, 384, 437, 438, 439,
/* 2350 */ 440, 441, 442, 356, 444, 37, 51, 42, 396, 0,
/* 2360 */ 398, 432, 37, 434, 42, 384, 437, 438, 439, 440,
/* 2370 */ 441, 442, 51, 444, 0, 343, 37, 396, 51, 398,
/* 2380 */ 0, 384, 42, 37, 37, 0, 22, 33, 356, 22,
/* 2390 */ 21, 21, 343, 396, 432, 398, 434, 22, 22, 437,
/* 2400 */ 438, 439, 440, 441, 442, 356, 444, 20, 494, 494,
/* 2410 */ 494, 494, 494, 432, 494, 434, 384, 494, 437, 438,
/* 2420 */ 439, 440, 441, 442, 494, 444, 494, 343, 396, 432,
/* 2430 */ 398, 434, 494, 384, 437, 438, 439, 440, 441, 442,
/* 2440 */ 356, 444, 494, 494, 494, 396, 494, 398, 494, 494,
/* 2450 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494,
/* 2460 */ 494, 494, 494, 494, 432, 494, 434, 494, 384, 437,
/* 2470 */ 438, 439, 440, 441, 442, 494, 444, 494, 494, 494,
/* 2480 */ 396, 432, 398, 434, 494, 494, 437, 438, 439, 440,
/* 2490 */ 441, 442, 343, 444, 494, 494, 494, 494, 494, 494,
/* 2500 */ 494, 494, 494, 494, 494, 356, 494, 343, 494, 494,
/* 2510 */ 494, 494, 494, 494, 494, 494, 432, 494, 434, 494,
/* 2520 */ 356, 437, 438, 439, 440, 441, 442, 494, 444, 343,
/* 2530 */ 494, 494, 494, 384, 494, 494, 494, 494, 494, 494,
/* 2540 */ 494, 494, 356, 494, 494, 396, 494, 398, 384, 494,
/* 2550 */ 494, 494, 494, 494, 343, 494, 494, 494, 494, 494,
/* 2560 */ 396, 494, 398, 494, 494, 494, 494, 356, 494, 494,
/* 2570 */ 384, 494, 494, 494, 494, 494, 494, 494, 494, 494,
/* 2580 */ 494, 432, 396, 434, 398, 494, 437, 438, 439, 440,
/* 2590 */ 441, 442, 494, 444, 494, 384, 432, 494, 434, 494,
/* 2600 */ 494, 437, 438, 439, 440, 441, 442, 396, 444, 398,
/* 2610 */ 494, 494, 494, 494, 494, 494, 343, 494, 432, 494,
/* 2620 */ 434, 494, 494, 437, 438, 439, 440, 441, 442, 356,
/* 2630 */ 444, 494, 494, 494, 343, 494, 494, 494, 494, 494,
/* 2640 */ 494, 494, 494, 432, 494, 434, 494, 356, 437, 438,
/* 2650 */ 439, 440, 441, 442, 494, 444, 494, 384, 494, 494,
/* 2660 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 396,
/* 2670 */ 494, 398, 494, 494, 494, 384, 494, 494, 494, 494,
/* 2680 */ 494, 343, 494, 494, 494, 494, 494, 396, 494, 398,
/* 2690 */ 494, 494, 494, 494, 356, 494, 343, 494, 494, 494,
/* 2700 */ 494, 494, 494, 494, 494, 432, 494, 434, 494, 356,
/* 2710 */ 437, 438, 439, 440, 441, 442, 494, 444, 494, 494,
/* 2720 */ 494, 494, 384, 432, 494, 434, 494, 494, 437, 438,
/* 2730 */ 439, 440, 441, 442, 396, 444, 398, 384, 494, 494,
/* 2740 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 396,
/* 2750 */ 494, 398, 494, 494, 494, 494, 494, 494, 494, 494,
/* 2760 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494,
/* 2770 */ 432, 494, 434, 494, 494, 437, 438, 439, 440, 441,
/* 2780 */ 442, 494, 444, 494, 494, 432, 494, 434, 494, 494,
/* 2790 */ 437, 438, 439, 440, 441, 442, 494, 444, 340, 340,
/* 2800 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2810 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2820 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2830 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2840 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2850 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2860 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2870 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2880 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2890 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2900 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2910 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2920 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2930 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2940 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2950 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2960 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2970 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2980 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 2990 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3000 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3010 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3020 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3030 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3040 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3050 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3060 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3070 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3080 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3090 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3100 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3110 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3120 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
/* 3130 */ 340, 340, 340, 340, 340, 340, 340, 340,
};
#define YY_SHIFT_COUNT (810)
#define YY_SHIFT_MIN (0)
#define YY_SHIFT_MAX (2387)
static const unsigned short int yy_shift_ofst[] = {
/* 0 */ 842, 0, 233, 0, 467, 467, 467, 467, 467, 467,
/* 10 */ 467, 467, 467, 467, 467, 467, 700, 933, 933, 1166,
/* 20 */ 933, 933, 933, 933, 933, 933, 933, 933, 933, 933,
/* 30 */ 933, 933, 933, 933, 933, 933, 933, 933, 933, 933,
/* 40 */ 933, 933, 933, 933, 933, 933, 933, 933, 933, 933,
/* 50 */ 933, 227, 260, 394, 274, 195, 271, 195, 274, 274,
/* 60 */ 195, 1349, 195, 1349, 1349, 409, 195, 18, 115, 143,
/* 70 */ 143, 115, 261, 261, 117, 192, 126, 126, 143, 143,
/* 80 */ 143, 143, 143, 143, 143, 143, 143, 143, 249, 143,
/* 90 */ 143, 113, 18, 143, 143, 392, 18, 143, 143, 18,
/* 100 */ 143, 143, 18, 143, 18, 18, 18, 143, 458, 232,
/* 110 */ 193, 193, 443, 298, 642, 642, 642, 642, 642, 642,
/* 120 */ 642, 642, 642, 642, 642, 642, 642, 642, 642, 642,
/* 130 */ 642, 642, 642, 1115, 620, 117, 192, 248, 248, 534,
/* 140 */ 806, 806, 806, 185, 512, 512, 534, 113, 398, 18,
/* 150 */ 18, 330, 18, 544, 18, 544, 544, 528, 710, 788,
/* 160 */ 37, 37, 37, 37, 37, 37, 37, 37, 2088, 660,
/* 170 */ 21, 53, 15, 67, 229, 155, 4, 4, 611, 198,
/* 180 */ 850, 464, 945, 1146, 1177, 914, 969, 936, 14, 1053,
/* 190 */ 936, 1047, 998, 928, 1104, 1338, 1396, 1215, 113, 1396,
/* 200 */ 113, 1245, 1420, 1398, 1424, 1420, 1398, 1278, 1430, 1420,
/* 210 */ 1430, 1398, 1278, 1278, 1353, 1369, 1430, 1377, 1430, 1430,
/* 220 */ 1430, 1466, 1439, 1466, 1439, 1396, 113, 1480, 113, 1484,
/* 230 */ 1485, 113, 1484, 113, 1487, 113, 113, 1430, 113, 1466,
/* 240 */ 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
/* 250 */ 18, 1430, 788, 788, 1466, 544, 544, 544, 1339, 1456,
/* 260 */ 1396, 458, 1371, 1374, 1480, 458, 1376, 1104, 1430, 1424,
/* 270 */ 1424, 544, 1311, 1314, 544, 1311, 1314, 544, 544, 18,
/* 280 */ 1319, 1418, 1311, 1330, 1334, 1347, 1104, 1331, 1337, 1341,
/* 290 */ 1365, 1420, 1607, 1516, 1367, 1484, 458, 458, 1314, 544,
/* 300 */ 544, 544, 544, 544, 1314, 544, 1474, 458, 528, 458,
/* 310 */ 1420, 1562, 1568, 544, 710, 1430, 458, 1659, 1649, 1466,
/* 320 */ 2798, 2798, 2798, 2798, 2798, 2798, 2798, 2798, 2798, 36,
/* 330 */ 932, 406, 263, 506, 906, 948, 837, 1107, 1267, 835,
/* 340 */ 879, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225,
/* 350 */ 356, 415, 527, 621, 621, 27, 449, 268, 44, 943,
/* 360 */ 647, 824, 657, 589, 589, 672, 889, 784, 672, 672,
/* 370 */ 672, 152, 658, 1093, 1070, 1169, 1085, 1147, 1098, 1110,
/* 380 */ 1112, 1118, 640, 1198, 407, 776, 1210, 1034, 1116, 1182,
/* 390 */ 1141, 1183, 1203, 1214, 1113, 1055, 1151, 1219, 1223, 1230,
/* 400 */ 1281, 1282, 1308, 1283, 1318, 34, 1321, 1213, 1332, 1379,
/* 410 */ 1382, 1384, 1385, 1387, 1019, 1071, 1235, 1233, 1260, 1249,
/* 420 */ 715, 1715, 1725, 1726, 1674, 1730, 1695, 1518, 1705, 1707,
/* 430 */ 1708, 1530, 1748, 1712, 1714, 1536, 1754, 1539, 1757, 1722,
/* 440 */ 1761, 1741, 1764, 1729, 1556, 1769, 1571, 1772, 1573, 1574,
/* 450 */ 1583, 1586, 1779, 1780, 1781, 1594, 1597, 1785, 1786, 1738,
/* 460 */ 1788, 1752, 1739, 1791, 1743, 1795, 1763, 1797, 1809, 1813,
/* 470 */ 1765, 1821, 1824, 1826, 1827, 1828, 1829, 1670, 1794, 1832,
/* 480 */ 1673, 1834, 1835, 1836, 1837, 1838, 1839, 1840, 1844, 1845,
/* 490 */ 1852, 1854, 1855, 1856, 1860, 1862, 1863, 1825, 1873, 1830,
/* 500 */ 1876, 1877, 1878, 1879, 1880, 1881, 1861, 1882, 1884, 1886,
/* 510 */ 1744, 1889, 1890, 1869, 1808, 1870, 1843, 1894, 1831, 1859,
/* 520 */ 1897, 1841, 1899, 1847, 1901, 1902, 1866, 1853, 1864, 1907,
/* 530 */ 1871, 1865, 1872, 1915, 1883, 1868, 1875, 1921, 1885, 1923,
/* 540 */ 1887, 1888, 1891, 1892, 1895, 1912, 1896, 1931, 1893, 1908,
/* 550 */ 1933, 1935, 1937, 1918, 1746, 1938, 1892, 1900, 1939, 1943,
/* 560 */ 1903, 1957, 1964, 1925, 1914, 1949, 1977, 1942, 1941, 1951,
/* 570 */ 1994, 1958, 1946, 1956, 1999, 1965, 1950, 1961, 2004, 2006,
/* 580 */ 2007, 2008, 2010, 2011, 1904, 1905, 1976, 1993, 2018, 1982,
/* 590 */ 1983, 1984, 1985, 1987, 1989, 1990, 2001, 2003, 2002, 2009,
/* 600 */ 2016, 2015, 2040, 2019, 2043, 2022, 1992, 2047, 2037, 2024,
/* 610 */ 2063, 2064, 2065, 2029, 2067, 2031, 2069, 2048, 2051, 2035,
/* 620 */ 2036, 2039, 1968, 1972, 2078, 1906, 1975, 1909, 2044, 2060,
/* 630 */ 2086, 1911, 2062, 1926, 1913, 2098, 2100, 1928, 1930, 1932,
/* 640 */ 1934, 2099, 2071, 1846, 2005, 2012, 2014, 2061, 2013, 2070,
/* 650 */ 2020, 2023, 2089, 2092, 2025, 2021, 2027, 2028, 2034, 2095,
/* 660 */ 2081, 2085, 2030, 2104, 1898, 2038, 2056, 2138, 2109, 1917,
/* 670 */ 2106, 2108, 2117, 2128, 2129, 2131, 2080, 2082, 2097, 1916,
/* 680 */ 2137, 2122, 2173, 2176, 2091, 2145, 2094, 2083, 2087, 2101,
/* 690 */ 2102, 2026, 2111, 2190, 2152, 2017, 2112, 2090, 1892, 2148,
/* 700 */ 2167, 2115, 1973, 2118, 2218, 2200, 2000, 2120, 2123, 2125,
/* 710 */ 2126, 2130, 2127, 2174, 2132, 2134, 2179, 2135, 2209, 2033,
/* 720 */ 2139, 2119, 2140, 2199, 2206, 2142, 2143, 2208, 2146, 2144,
/* 730 */ 2215, 2150, 2151, 2221, 2155, 2157, 2224, 2159, 2161, 2228,
/* 740 */ 2163, 2147, 2165, 2175, 2177, 2166, 2237, 2170, 2240, 2182,
/* 750 */ 2237, 2237, 2226, 2207, 2219, 2256, 2267, 2270, 2272, 2274,
/* 760 */ 2275, 2277, 2278, 2233, 2217, 2284, 2282, 2283, 2285, 2299,
/* 770 */ 2286, 2289, 2292, 2251, 2001, 2293, 2003, 2294, 2295, 2296,
/* 780 */ 2297, 2313, 2301, 2336, 2302, 2290, 2303, 2343, 2318, 2305,
/* 790 */ 2315, 2359, 2325, 2321, 2322, 2374, 2339, 2327, 2340, 2380,
/* 800 */ 2346, 2347, 2385, 2364, 2354, 2367, 2369, 2375, 2376, 2370,
/* 810 */ 2387,
};
#define YY_REDUCE_COUNT (328)
#define YY_REDUCE_MIN (-452)
#define YY_REDUCE_MAX (2353)
static const short yy_reduce_ofst[] = {
/* 0 */ -202, 142, -83, 374, 234, 645, 861, 908, 1027, 1076,
/* 10 */ 697, 1096, 1220, 461, 1252, 1272, 935, 162, -341, 1299,
/* 20 */ 1362, 1378, 1409, 1427, 1514, 1529, 1544, 1591, 1653, 1616,
/* 30 */ 1719, 1740, 1771, 1842, 1858, 1910, 1929, 1962, 1981, 1997,
/* 40 */ 2032, 2049, 2084, 2149, 2164, 2186, 2211, 2273, 2291, 2338,
/* 50 */ 2353, -273, 163, 302, -44, 312, 344, 583, -316, -280,
/* 60 */ 724, -26, -403, 134, 375, -266, -168, -373, -326, -350,
/* 70 */ 46, -324, -346, -133, 145, -80, 146, 299, -297, -180,
/* 80 */ 84, 307, 187, 325, 387, 399, 424, 433, -56, 428,
/* 90 */ 465, 224, 347, 498, 500, 70, 382, 513, 529, 169,
/* 100 */ 594, 603, 440, 625, 273, 490, 606, 631, -308, -249,
/* 110 */ -452, -452, 242, -250, -207, 7, 252, 373, 515, 570,
/* 120 */ 608, 609, 641, 677, 680, 682, 747, 748, 754, 755,
/* 130 */ 785, 787, 802, -288, 45, 168, -388, -327, 92, 258,
/* 140 */ 45, 231, 444, -25, 561, 574, 664, 533, -32, 337,
/* 150 */ 364, 109, 667, 401, 718, 763, 789, 812, 686, 722,
/* 160 */ 453, 502, 843, 846, 873, 875, 882, 873, 852, 904,
/* 170 */ 946, 624, 795, 813, 937, 836, 941, 949, 938, 909,
/* 180 */ 938, 964, 921, 974, 976, 939, 924, 888, 888, 870,
/* 190 */ 888, 899, 898, 938, 965, 959, 995, 997, 1066, 1005,
/* 200 */ 1069, 1017, 1086, 1038, 1039, 1090, 1044, 1048, 1099, 1097,
/* 210 */ 1100, 1054, 1057, 1061, 1095, 1106, 1120, 1121, 1124, 1126,
/* 220 */ 1129, 1148, 1143, 1149, 1150, 1072, 1135, 1103, 1139, 1152,
/* 230 */ 1088, 1155, 1154, 1157, 1114, 1158, 1160, 1171, 1165, 1164,
/* 240 */ 1162, 1170, 1172, 1173, 1174, 1175, 1176, 1178, 1180, 1181,
/* 250 */ 1184, 1187, 1193, 1202, 1196, 1153, 1159, 1179, 1123, 1138,
/* 260 */ 1144, 1205, 1156, 1161, 1185, 1216, 1186, 1163, 1222, 1188,
/* 270 */ 1190, 1197, 1105, 1189, 1201, 1125, 1191, 1207, 1209, 938,
/* 280 */ 1130, 1134, 1132, 1140, 1145, 1167, 1204, 1127, 1136, 1192,
/* 290 */ 888, 1270, 1194, 1168, 1199, 1275, 1271, 1273, 1228, 1238,
/* 300 */ 1244, 1247, 1248, 1250, 1234, 1251, 1246, 1279, 1285, 1289,
/* 310 */ 1307, 1218, 1286, 1284, 1303, 1324, 1320, 1340, 1350, 1352,
/* 320 */ 1268, 1274, 1290, 1305, 1342, 1344, 1346, 1335, 1388,
};
static const YYACTIONTYPE yy_default[] = {
/* 0 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 10 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 20 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 30 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 40 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 50 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 60 */ 2125, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 70 */ 1807, 1807, 1807, 1807, 2098, 1807, 1807, 1807, 1807, 1807,
/* 80 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 90 */ 1807, 1903, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 100 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1901, 2091,
/* 110 */ 2317, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 120 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 130 */ 1807, 1807, 1807, 1807, 2329, 1807, 1807, 1877, 1877, 1807,
/* 140 */ 2329, 2329, 2329, 1901, 2289, 2289, 1807, 1903, 2159, 1807,
/* 150 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 2023, 1807, 1837,
/* 160 */ 1807, 1807, 1807, 1807, 2047, 1807, 1807, 1807, 2151, 1807,
/* 170 */ 1807, 2358, 2415, 1807, 1807, 2361, 1807, 1807, 1807, 1807,
/* 180 */ 1807, 1807, 2103, 1807, 1807, 1976, 2348, 2321, 2335, 2399,
/* 190 */ 2322, 2319, 2342, 1807, 2352, 1807, 1807, 2173, 1903, 1807,
/* 200 */ 1903, 2138, 1807, 2096, 1807, 1807, 2096, 2093, 1807, 1807,
/* 210 */ 1807, 2096, 2093, 2093, 1965, 1961, 1807, 1959, 1807, 1807,
/* 220 */ 1807, 1807, 1861, 1807, 1861, 1807, 1903, 1807, 1903, 1807,
/* 230 */ 1807, 1903, 1807, 1903, 1807, 1903, 1903, 1807, 1903, 1807,
/* 240 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 250 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 2171, 2157,
/* 260 */ 1807, 1901, 2149, 2147, 1807, 1901, 2145, 2352, 1807, 1807,
/* 270 */ 1807, 1807, 2369, 2367, 1807, 2369, 2367, 1807, 1807, 1807,
/* 280 */ 2383, 2379, 2369, 2388, 2385, 2354, 2352, 2418, 2405, 2401,
/* 290 */ 2335, 1807, 1807, 2340, 2338, 1807, 1901, 1901, 2367, 1807,
/* 300 */ 1807, 1807, 1807, 1807, 2367, 1807, 1807, 1901, 1807, 1901,
/* 310 */ 1807, 1807, 1992, 1807, 1807, 1807, 1901, 1807, 1846, 1807,
/* 320 */ 2140, 2162, 2121, 2121, 2026, 2026, 2026, 1904, 1812, 1807,
/* 330 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 340 */ 1807, 2382, 2381, 2244, 1807, 2293, 2292, 2291, 2282, 2243,
/* 350 */ 1988, 1807, 1807, 2242, 2241, 1807, 1807, 1807, 1807, 1807,
/* 360 */ 1807, 1807, 1807, 2112, 2111, 2235, 1807, 1807, 2236, 2234,
/* 370 */ 2233, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 380 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 390 */ 1807, 1807, 1807, 1807, 1807, 2402, 2406, 1807, 1807, 1807,
/* 400 */ 1807, 1807, 1807, 2318, 1807, 1807, 1807, 2217, 1807, 1807,
/* 410 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 420 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 430 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 440 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 450 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 460 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 470 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 480 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 490 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 500 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 510 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 520 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 530 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 540 */ 1807, 1807, 1851, 2222, 1807, 1807, 1807, 1807, 1807, 1807,
/* 550 */ 1807, 1807, 1807, 1807, 1807, 1807, 2225, 1807, 1807, 1807,
/* 560 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 570 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 580 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 590 */ 1807, 1807, 1807, 1807, 1807, 1807, 1942, 1941, 1807, 1807,
/* 600 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 610 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 620 */ 1807, 1807, 2226, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 630 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 640 */ 1807, 2398, 2355, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 650 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 660 */ 1807, 2217, 1807, 2380, 1807, 1807, 2396, 1807, 2400, 1807,
/* 670 */ 1807, 1807, 1807, 1807, 1807, 1807, 2328, 2324, 1807, 1807,
/* 680 */ 2320, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 690 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 2216, 1807,
/* 700 */ 2279, 1807, 1807, 1807, 2313, 1807, 1807, 2264, 1807, 1807,
/* 710 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 2226, 1807, 2229,
/* 720 */ 1807, 1807, 1807, 1807, 1807, 2020, 1807, 1807, 1807, 1807,
/* 730 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 740 */ 1807, 2004, 2002, 2001, 2000, 1807, 2033, 1807, 1807, 1807,
/* 750 */ 2029, 2028, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 760 */ 1807, 1807, 1807, 1807, 1807, 1922, 1807, 1807, 1807, 1807,
/* 770 */ 1807, 1807, 1807, 1807, 1914, 1807, 1913, 1807, 1807, 1807,
/* 780 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 790 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807,
/* 800 */ 1807, 1807, 1807, 1807, 1836, 1807, 1807, 1807, 1807, 1807,
/* 810 */ 1807,
};
/********** 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, /* LOCAL => nothing */
0, /* QNODE => nothing */
0, /* BNODE => nothing */
0, /* SNODE => nothing */
0, /* MNODE => nothing */
0, /* VNODE => nothing */
0, /* DATABASE => nothing */
0, /* USE => nothing */
0, /* FLUSH => nothing */
0, /* TRIM => nothing */
0, /* COMPACT => nothing */
0, /* IF => nothing */
0, /* NOT => nothing */
0, /* EXISTS => nothing */
0, /* BUFFER => nothing */
0, /* CACHEMODEL => nothing */
0, /* CACHESIZE => nothing */
0, /* COMP => nothing */
0, /* DURATION => nothing */
0, /* NK_VARIABLE => nothing */
0, /* MAXROWS => nothing */
0, /* MINROWS => nothing */
0, /* KEEP => nothing */
0, /* PAGES => nothing */
0, /* PAGESIZE => nothing */
0, /* TSDB_PAGESIZE => nothing */
0, /* PRECISION => nothing */
0, /* REPLICA => nothing */
0, /* VGROUPS => nothing */
0, /* SINGLE_STABLE => nothing */
0, /* RETENTIONS => nothing */
0, /* SCHEMALESS => nothing */
0, /* WAL_LEVEL => nothing */
0, /* WAL_FSYNC_PERIOD => nothing */
0, /* WAL_RETENTION_PERIOD => nothing */
0, /* WAL_RETENTION_SIZE => nothing */
0, /* WAL_ROLL_PERIOD => nothing */
0, /* WAL_SEGMENT_SIZE => nothing */
0, /* STT_TRIGGER => nothing */
0, /* TABLE_PREFIX => nothing */
0, /* TABLE_SUFFIX => nothing */
0, /* NK_COLON => nothing */
0, /* BWLIMIT => nothing */
0, /* START => nothing */
0, /* TIMESTAMP => nothing */
289, /* 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, /* FUNCTIONS => nothing */
0, /* INDEXES => nothing */
0, /* ACCOUNTS => nothing */
0, /* APPS => nothing */
0, /* CONNECTIONS => nothing */
0, /* LICENCES => nothing */
0, /* GRANTS => nothing */
0, /* QUERIES => nothing */
0, /* SCORES => nothing */
0, /* TOPICS => nothing */
0, /* VARIABLES => nothing */
0, /* CLUSTER => nothing */
0, /* BNODES => nothing */
0, /* SNODES => nothing */
0, /* TRANSACTIONS => nothing */
0, /* DISTRIBUTED => nothing */
0, /* CONSUMERS => nothing */
0, /* SUBSCRIPTIONS => nothing */
0, /* VNODES => nothing */
0, /* ALIVE => nothing */
0, /* LIKE => nothing */
0, /* TBNAME => nothing */
0, /* QTAGS => nothing */
0, /* AS => nothing */
0, /* INDEX => nothing */
0, /* FUNCTION => nothing */
0, /* INTERVAL => nothing */
0, /* COUNT => nothing */
0, /* LAST_ROW => nothing */
0, /* META => nothing */
0, /* ONLY => nothing */
0, /* TOPIC => nothing */
0, /* CONSUMER => nothing */
0, /* GROUP => nothing */
0, /* DESC => nothing */
0, /* DESCRIBE => nothing */
0, /* RESET => nothing */
0, /* QUERY => nothing */
0, /* CACHE => nothing */
0, /* EXPLAIN => nothing */
0, /* ANALYZE => nothing */
0, /* VERBOSE => nothing */
0, /* NK_BOOL => nothing */
0, /* RATIO => nothing */
0, /* NK_FLOAT => nothing */
0, /* OUTPUTTYPE => nothing */
0, /* AGGREGATE => nothing */
0, /* BUFSIZE => nothing */
0, /* LANGUAGE => nothing */
0, /* REPLACE => nothing */
0, /* STREAM => nothing */
0, /* INTO => nothing */
0, /* PAUSE => nothing */
0, /* RESUME => nothing */
0, /* TRIGGER => nothing */
0, /* AT_ONCE => nothing */
0, /* WINDOW_CLOSE => nothing */
0, /* IGNORE => nothing */
0, /* EXPIRED => nothing */
0, /* FILL_HISTORY => nothing */
0, /* UPDATE => nothing */
0, /* SUBTABLE => nothing */
0, /* UNTREATED => nothing */
0, /* KILL => nothing */
0, /* CONNECTION => nothing */
0, /* TRANSACTION => nothing */
0, /* BALANCE => nothing */
0, /* VGROUP => nothing */
0, /* LEADER => nothing */
0, /* MERGE => nothing */
0, /* REDISTRIBUTE => nothing */
0, /* SPLIT => nothing */
0, /* DELETE => nothing */
0, /* INSERT => nothing */
0, /* NULL => nothing */
0, /* NK_QUESTION => nothing */
0, /* NK_ARROW => nothing */
0, /* ROWTS => nothing */
0, /* QSTART => nothing */
0, /* QEND => nothing */
0, /* QDURATION => nothing */
0, /* WSTART => nothing */
0, /* WEND => nothing */
0, /* WDURATION => nothing */
0, /* IROWTS => nothing */
0, /* ISFILLED => nothing */
0, /* CAST => nothing */
0, /* NOW => nothing */
0, /* TODAY => nothing */
0, /* TIMEZONE => nothing */
0, /* CLIENT_VERSION => nothing */
0, /* SERVER_VERSION => nothing */
0, /* SERVER_STATUS => nothing */
0, /* CURRENT_USER => nothing */
0, /* CASE => nothing */
0, /* WHEN => nothing */
0, /* THEN => nothing */
0, /* ELSE => nothing */
0, /* BETWEEN => nothing */
0, /* IS => nothing */
0, /* NK_LT => nothing */
0, /* NK_GT => nothing */
0, /* NK_LE => nothing */
0, /* NK_GE => nothing */
0, /* NK_NE => nothing */
0, /* MATCH => nothing */
0, /* NMATCH => nothing */
0, /* CONTAINS => nothing */
0, /* IN => nothing */
0, /* JOIN => nothing */
0, /* INNER => nothing */
0, /* SELECT => nothing */
0, /* 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, /* 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 */
289, /* AFTER => ABORT */
289, /* ATTACH => ABORT */
289, /* BEFORE => ABORT */
289, /* BEGIN => ABORT */
289, /* BITAND => ABORT */
289, /* BITNOT => ABORT */
289, /* BITOR => ABORT */
289, /* BLOCKS => ABORT */
289, /* CHANGE => ABORT */
289, /* COMMA => ABORT */
289, /* CONCAT => ABORT */
289, /* CONFLICT => ABORT */
289, /* COPY => ABORT */
289, /* DEFERRED => ABORT */
289, /* DELIMITERS => ABORT */
289, /* DETACH => ABORT */
289, /* DIVIDE => ABORT */
289, /* DOT => ABORT */
289, /* EACH => ABORT */
289, /* FAIL => ABORT */
289, /* FILE => ABORT */
289, /* FOR => ABORT */
289, /* GLOB => ABORT */
289, /* ID => ABORT */
289, /* IMMEDIATE => ABORT */
289, /* IMPORT => ABORT */
289, /* INITIALLY => ABORT */
289, /* INSTEAD => ABORT */
289, /* ISNULL => ABORT */
289, /* KEY => ABORT */
289, /* MODULES => ABORT */
289, /* NK_BITNOT => ABORT */
289, /* NK_SEMI => ABORT */
289, /* NOTNULL => ABORT */
289, /* OF => ABORT */
289, /* PLUS => ABORT */
289, /* PRIVILEGE => ABORT */
289, /* RAISE => ABORT */
289, /* RESTRICT => ABORT */
289, /* ROW => ABORT */
289, /* SEMI => ABORT */
289, /* STAR => ABORT */
289, /* STATEMENT => ABORT */
289, /* STRICT => ABORT */
289, /* STRING => ABORT */
289, /* TIMES => ABORT */
289, /* VALUES => ABORT */
289, /* VARIABLE => ABORT */
289, /* VIEW => ABORT */
289, /* WAL => ABORT */
};
#endif /* YYFALLBACK */
/* The following structure represents a single element of the
** parser's stack. Information stored includes:
**
** + The state number for the parser at this level of the stack.
**
** + The value of the token stored at this level of the stack.
** (In other words, the "major" token.)
**
** + The semantic value stored at this level of the stack. This is
** the information used by the action routines in the grammar.
** It is sometimes called the "minor" token.
**
** After the "shift" half of a SHIFTREDUCE action, the stateno field
** actually contains the reduce action for the second half of the
** SHIFTREDUCE.
*/
struct yyStackEntry {
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
YYCODETYPE major; /* The major token value. This is the code
** number for the token at this stack level */
YYMINORTYPE minor; /* The user-supplied minor token value. This
** is the value of the token */
};
typedef struct yyStackEntry yyStackEntry;
/* The state of the parser is completely contained in an instance of
** the following structure */
struct yyParser {
yyStackEntry *yytos; /* Pointer to top element of the stack */
#ifdef YYTRACKMAXSTACKDEPTH
int yyhwm; /* High-water mark of the stack */
#endif
#ifndef YYNOERRORRECOVERY
int yyerrcnt; /* Shifts left before out of the error */
#endif
ParseARG_SDECL /* A place to hold %extra_argument */
ParseCTX_SDECL /* A place to hold %extra_context */
#if YYSTACKDEPTH<=0
int yystksz; /* Current side of the stack */
yyStackEntry *yystack; /* The parser's stack */
yyStackEntry yystk0; /* First stack entry */
#else
yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
yyStackEntry *yystackEnd; /* Last entry in the stack */
#endif
};
typedef struct yyParser yyParser;
#include <assert.h>
#ifndef NDEBUG
#include <stdio.h>
static FILE *yyTraceFILE = 0;
static char *yyTracePrompt = 0;
#endif /* NDEBUG */
#ifndef NDEBUG
/*
** Turn parser tracing on by giving a stream to which to write the trace
** and a prompt to preface each trace message. Tracing is turned off
** by making either argument NULL
**
** Inputs:
** <ul>
** <li> A FILE* to which trace output should be written.
** If NULL, then tracing is turned off.
** <li> A prefix string written at the beginning of every
** line of trace output. If NULL, then tracing is
** turned off.
** </ul>
**
** Outputs:
** None.
*/
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
yyTraceFILE = TraceFILE;
yyTracePrompt = zTracePrompt;
if( yyTraceFILE==0 ) yyTracePrompt = 0;
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
}
#endif /* NDEBUG */
#if defined(YYCOVERAGE) || !defined(NDEBUG)
/* For tracing shifts, the names of all terminals and nonterminals
** are required. The following table supplies these names */
static const char *const yyTokenName[] = {
/* 0 */ "$",
/* 1 */ "OR",
/* 2 */ "AND",
/* 3 */ "UNION",
/* 4 */ "ALL",
/* 5 */ "MINUS",
/* 6 */ "EXCEPT",
/* 7 */ "INTERSECT",
/* 8 */ "NK_BITAND",
/* 9 */ "NK_BITOR",
/* 10 */ "NK_LSHIFT",
/* 11 */ "NK_RSHIFT",
/* 12 */ "NK_PLUS",
/* 13 */ "NK_MINUS",
/* 14 */ "NK_STAR",
/* 15 */ "NK_SLASH",
/* 16 */ "NK_REM",
/* 17 */ "NK_CONCAT",
/* 18 */ "CREATE",
/* 19 */ "ACCOUNT",
/* 20 */ "NK_ID",
/* 21 */ "PASS",
/* 22 */ "NK_STRING",
/* 23 */ "ALTER",
/* 24 */ "PPS",
/* 25 */ "TSERIES",
/* 26 */ "STORAGE",
/* 27 */ "STREAMS",
/* 28 */ "QTIME",
/* 29 */ "DBS",
/* 30 */ "USERS",
/* 31 */ "CONNS",
/* 32 */ "STATE",
/* 33 */ "NK_COMMA",
/* 34 */ "HOST",
/* 35 */ "USER",
/* 36 */ "ENABLE",
/* 37 */ "NK_INTEGER",
/* 38 */ "SYSINFO",
/* 39 */ "ADD",
/* 40 */ "DROP",
/* 41 */ "GRANT",
/* 42 */ "ON",
/* 43 */ "TO",
/* 44 */ "REVOKE",
/* 45 */ "FROM",
/* 46 */ "SUBSCRIBE",
/* 47 */ "READ",
/* 48 */ "WRITE",
/* 49 */ "NK_DOT",
/* 50 */ "WITH",
/* 51 */ "DNODE",
/* 52 */ "PORT",
/* 53 */ "DNODES",
/* 54 */ "RESTORE",
/* 55 */ "NK_IPTOKEN",
/* 56 */ "FORCE",
/* 57 */ "UNSAFE",
/* 58 */ "LOCAL",
/* 59 */ "QNODE",
/* 60 */ "BNODE",
/* 61 */ "SNODE",
/* 62 */ "MNODE",
/* 63 */ "VNODE",
/* 64 */ "DATABASE",
/* 65 */ "USE",
/* 66 */ "FLUSH",
/* 67 */ "TRIM",
/* 68 */ "COMPACT",
/* 69 */ "IF",
/* 70 */ "NOT",
/* 71 */ "EXISTS",
/* 72 */ "BUFFER",
/* 73 */ "CACHEMODEL",
/* 74 */ "CACHESIZE",
/* 75 */ "COMP",
/* 76 */ "DURATION",
/* 77 */ "NK_VARIABLE",
/* 78 */ "MAXROWS",
/* 79 */ "MINROWS",
/* 80 */ "KEEP",
/* 81 */ "PAGES",
/* 82 */ "PAGESIZE",
/* 83 */ "TSDB_PAGESIZE",
/* 84 */ "PRECISION",
/* 85 */ "REPLICA",
/* 86 */ "VGROUPS",
/* 87 */ "SINGLE_STABLE",
/* 88 */ "RETENTIONS",
/* 89 */ "SCHEMALESS",
/* 90 */ "WAL_LEVEL",
/* 91 */ "WAL_FSYNC_PERIOD",
/* 92 */ "WAL_RETENTION_PERIOD",
/* 93 */ "WAL_RETENTION_SIZE",
/* 94 */ "WAL_ROLL_PERIOD",
/* 95 */ "WAL_SEGMENT_SIZE",
/* 96 */ "STT_TRIGGER",
/* 97 */ "TABLE_PREFIX",
/* 98 */ "TABLE_SUFFIX",
/* 99 */ "NK_COLON",
/* 100 */ "BWLIMIT",
/* 101 */ "START",
/* 102 */ "TIMESTAMP",
/* 103 */ "END",
/* 104 */ "TABLE",
/* 105 */ "NK_LP",
/* 106 */ "NK_RP",
/* 107 */ "STABLE",
/* 108 */ "COLUMN",
/* 109 */ "MODIFY",
/* 110 */ "RENAME",
/* 111 */ "TAG",
/* 112 */ "SET",
/* 113 */ "NK_EQ",
/* 114 */ "USING",
/* 115 */ "TAGS",
/* 116 */ "BOOL",
/* 117 */ "TINYINT",
/* 118 */ "SMALLINT",
/* 119 */ "INT",
/* 120 */ "INTEGER",
/* 121 */ "BIGINT",
/* 122 */ "FLOAT",
/* 123 */ "DOUBLE",
/* 124 */ "BINARY",
/* 125 */ "NCHAR",
/* 126 */ "UNSIGNED",
/* 127 */ "JSON",
/* 128 */ "VARCHAR",
/* 129 */ "MEDIUMBLOB",
/* 130 */ "BLOB",
/* 131 */ "VARBINARY",
/* 132 */ "GEOMETRY",
/* 133 */ "DECIMAL",
/* 134 */ "COMMENT",
/* 135 */ "MAX_DELAY",
/* 136 */ "WATERMARK",
/* 137 */ "ROLLUP",
/* 138 */ "TTL",
/* 139 */ "SMA",
/* 140 */ "DELETE_MARK",
/* 141 */ "FIRST",
/* 142 */ "LAST",
/* 143 */ "SHOW",
/* 144 */ "PRIVILEGES",
/* 145 */ "DATABASES",
/* 146 */ "TABLES",
/* 147 */ "STABLES",
/* 148 */ "MNODES",
/* 149 */ "QNODES",
/* 150 */ "FUNCTIONS",
/* 151 */ "INDEXES",
/* 152 */ "ACCOUNTS",
/* 153 */ "APPS",
/* 154 */ "CONNECTIONS",
/* 155 */ "LICENCES",
/* 156 */ "GRANTS",
/* 157 */ "QUERIES",
/* 158 */ "SCORES",
/* 159 */ "TOPICS",
/* 160 */ "VARIABLES",
/* 161 */ "CLUSTER",
/* 162 */ "BNODES",
/* 163 */ "SNODES",
/* 164 */ "TRANSACTIONS",
/* 165 */ "DISTRIBUTED",
/* 166 */ "CONSUMERS",
/* 167 */ "SUBSCRIPTIONS",
/* 168 */ "VNODES",
/* 169 */ "ALIVE",
/* 170 */ "LIKE",
/* 171 */ "TBNAME",
/* 172 */ "QTAGS",
/* 173 */ "AS",
/* 174 */ "INDEX",
/* 175 */ "FUNCTION",
/* 176 */ "INTERVAL",
/* 177 */ "COUNT",
/* 178 */ "LAST_ROW",
/* 179 */ "META",
/* 180 */ "ONLY",
/* 181 */ "TOPIC",
/* 182 */ "CONSUMER",
/* 183 */ "GROUP",
/* 184 */ "DESC",
/* 185 */ "DESCRIBE",
/* 186 */ "RESET",
/* 187 */ "QUERY",
/* 188 */ "CACHE",
/* 189 */ "EXPLAIN",
/* 190 */ "ANALYZE",
/* 191 */ "VERBOSE",
/* 192 */ "NK_BOOL",
/* 193 */ "RATIO",
/* 194 */ "NK_FLOAT",
/* 195 */ "OUTPUTTYPE",
/* 196 */ "AGGREGATE",
/* 197 */ "BUFSIZE",
/* 198 */ "LANGUAGE",
/* 199 */ "REPLACE",
/* 200 */ "STREAM",
/* 201 */ "INTO",
/* 202 */ "PAUSE",
/* 203 */ "RESUME",
/* 204 */ "TRIGGER",
/* 205 */ "AT_ONCE",
/* 206 */ "WINDOW_CLOSE",
/* 207 */ "IGNORE",
/* 208 */ "EXPIRED",
/* 209 */ "FILL_HISTORY",
/* 210 */ "UPDATE",
/* 211 */ "SUBTABLE",
/* 212 */ "UNTREATED",
/* 213 */ "KILL",
/* 214 */ "CONNECTION",
/* 215 */ "TRANSACTION",
/* 216 */ "BALANCE",
/* 217 */ "VGROUP",
/* 218 */ "LEADER",
/* 219 */ "MERGE",
/* 220 */ "REDISTRIBUTE",
/* 221 */ "SPLIT",
/* 222 */ "DELETE",
/* 223 */ "INSERT",
/* 224 */ "NULL",
/* 225 */ "NK_QUESTION",
/* 226 */ "NK_ARROW",
/* 227 */ "ROWTS",
/* 228 */ "QSTART",
/* 229 */ "QEND",
/* 230 */ "QDURATION",
/* 231 */ "WSTART",
/* 232 */ "WEND",
/* 233 */ "WDURATION",
/* 234 */ "IROWTS",
/* 235 */ "ISFILLED",
/* 236 */ "CAST",
/* 237 */ "NOW",
/* 238 */ "TODAY",
/* 239 */ "TIMEZONE",
/* 240 */ "CLIENT_VERSION",
/* 241 */ "SERVER_VERSION",
/* 242 */ "SERVER_STATUS",
/* 243 */ "CURRENT_USER",
/* 244 */ "CASE",
/* 245 */ "WHEN",
/* 246 */ "THEN",
/* 247 */ "ELSE",
/* 248 */ "BETWEEN",
/* 249 */ "IS",
/* 250 */ "NK_LT",
/* 251 */ "NK_GT",
/* 252 */ "NK_LE",
/* 253 */ "NK_GE",
/* 254 */ "NK_NE",
/* 255 */ "MATCH",
/* 256 */ "NMATCH",
/* 257 */ "CONTAINS",
/* 258 */ "IN",
/* 259 */ "JOIN",
/* 260 */ "INNER",
/* 261 */ "SELECT",
/* 262 */ "NK_HINT",
/* 263 */ "DISTINCT",
/* 264 */ "WHERE",
/* 265 */ "PARTITION",
/* 266 */ "BY",
/* 267 */ "SESSION",
/* 268 */ "STATE_WINDOW",
/* 269 */ "EVENT_WINDOW",
/* 270 */ "SLIDING",
/* 271 */ "FILL",
/* 272 */ "VALUE",
/* 273 */ "VALUE_F",
/* 274 */ "NONE",
/* 275 */ "PREV",
/* 276 */ "NULL_F",
/* 277 */ "LINEAR",
/* 278 */ "NEXT",
/* 279 */ "HAVING",
/* 280 */ "RANGE",
/* 281 */ "EVERY",
/* 282 */ "ORDER",
/* 283 */ "SLIMIT",
/* 284 */ "SOFFSET",
/* 285 */ "LIMIT",
/* 286 */ "OFFSET",
/* 287 */ "ASC",
/* 288 */ "NULLS",
/* 289 */ "ABORT",
/* 290 */ "AFTER",
/* 291 */ "ATTACH",
/* 292 */ "BEFORE",
/* 293 */ "BEGIN",
/* 294 */ "BITAND",
/* 295 */ "BITNOT",
/* 296 */ "BITOR",
/* 297 */ "BLOCKS",
/* 298 */ "CHANGE",
/* 299 */ "COMMA",
/* 300 */ "CONCAT",
/* 301 */ "CONFLICT",
/* 302 */ "COPY",
/* 303 */ "DEFERRED",
/* 304 */ "DELIMITERS",
/* 305 */ "DETACH",
/* 306 */ "DIVIDE",
/* 307 */ "DOT",
/* 308 */ "EACH",
/* 309 */ "FAIL",
/* 310 */ "FILE",
/* 311 */ "FOR",
/* 312 */ "GLOB",
/* 313 */ "ID",
/* 314 */ "IMMEDIATE",
/* 315 */ "IMPORT",
/* 316 */ "INITIALLY",
/* 317 */ "INSTEAD",
/* 318 */ "ISNULL",
/* 319 */ "KEY",
/* 320 */ "MODULES",
/* 321 */ "NK_BITNOT",
/* 322 */ "NK_SEMI",
/* 323 */ "NOTNULL",
/* 324 */ "OF",
/* 325 */ "PLUS",
/* 326 */ "PRIVILEGE",
/* 327 */ "RAISE",
/* 328 */ "RESTRICT",
/* 329 */ "ROW",
/* 330 */ "SEMI",
/* 331 */ "STAR",
/* 332 */ "STATEMENT",
/* 333 */ "STRICT",
/* 334 */ "STRING",
/* 335 */ "TIMES",
/* 336 */ "VALUES",
/* 337 */ "VARIABLE",
/* 338 */ "VIEW",
/* 339 */ "WAL",
/* 340 */ "cmd",
/* 341 */ "account_options",
/* 342 */ "alter_account_options",
/* 343 */ "literal",
/* 344 */ "alter_account_option",
/* 345 */ "ip_range_list",
/* 346 */ "white_list",
/* 347 */ "white_list_opt",
/* 348 */ "user_name",
/* 349 */ "sysinfo_opt",
/* 350 */ "privileges",
/* 351 */ "priv_level",
/* 352 */ "with_opt",
/* 353 */ "priv_type_list",
/* 354 */ "priv_type",
/* 355 */ "db_name",
/* 356 */ "table_name",
/* 357 */ "topic_name",
/* 358 */ "search_condition",
/* 359 */ "dnode_endpoint",
/* 360 */ "force_opt",
/* 361 */ "unsafe_opt",
/* 362 */ "not_exists_opt",
/* 363 */ "db_options",
/* 364 */ "exists_opt",
/* 365 */ "alter_db_options",
/* 366 */ "speed_opt",
/* 367 */ "start_opt",
/* 368 */ "end_opt",
/* 369 */ "integer_list",
/* 370 */ "variable_list",
/* 371 */ "retention_list",
/* 372 */ "signed",
/* 373 */ "alter_db_option",
/* 374 */ "retention",
/* 375 */ "full_table_name",
/* 376 */ "column_def_list",
/* 377 */ "tags_def_opt",
/* 378 */ "table_options",
/* 379 */ "multi_create_clause",
/* 380 */ "tags_def",
/* 381 */ "multi_drop_clause",
/* 382 */ "alter_table_clause",
/* 383 */ "alter_table_options",
/* 384 */ "column_name",
/* 385 */ "type_name",
/* 386 */ "signed_literal",
/* 387 */ "create_subtable_clause",
/* 388 */ "specific_cols_opt",
/* 389 */ "expression_list",
/* 390 */ "drop_table_clause",
/* 391 */ "col_name_list",
/* 392 */ "column_def",
/* 393 */ "duration_list",
/* 394 */ "rollup_func_list",
/* 395 */ "alter_table_option",
/* 396 */ "duration_literal",
/* 397 */ "rollup_func_name",
/* 398 */ "function_name",
/* 399 */ "col_name",
/* 400 */ "db_name_cond_opt",
/* 401 */ "like_pattern_opt",
/* 402 */ "table_name_cond",
/* 403 */ "from_db_opt",
/* 404 */ "tag_list_opt",
/* 405 */ "tag_item",
/* 406 */ "column_alias",
/* 407 */ "index_options",
/* 408 */ "full_index_name",
/* 409 */ "index_name",
/* 410 */ "func_list",
/* 411 */ "sliding_opt",
/* 412 */ "sma_stream_opt",
/* 413 */ "func",
/* 414 */ "sma_func_name",
/* 415 */ "with_meta",
/* 416 */ "query_or_subquery",
/* 417 */ "where_clause_opt",
/* 418 */ "cgroup_name",
/* 419 */ "analyze_opt",
/* 420 */ "explain_options",
/* 421 */ "insert_query",
/* 422 */ "or_replace_opt",
/* 423 */ "agg_func_opt",
/* 424 */ "bufsize_opt",
/* 425 */ "language_opt",
/* 426 */ "stream_name",
/* 427 */ "stream_options",
/* 428 */ "col_list_opt",
/* 429 */ "tag_def_or_ref_opt",
/* 430 */ "subtable_opt",
/* 431 */ "ignore_opt",
/* 432 */ "expression",
/* 433 */ "dnode_list",
/* 434 */ "literal_func",
/* 435 */ "literal_list",
/* 436 */ "table_alias",
/* 437 */ "expr_or_subquery",
/* 438 */ "pseudo_column",
/* 439 */ "column_reference",
/* 440 */ "function_expression",
/* 441 */ "case_when_expression",
/* 442 */ "star_func",
/* 443 */ "star_func_para_list",
/* 444 */ "noarg_func",
/* 445 */ "other_para_list",
/* 446 */ "star_func_para",
/* 447 */ "when_then_list",
/* 448 */ "case_when_else_opt",
/* 449 */ "common_expression",
/* 450 */ "when_then_expr",
/* 451 */ "predicate",
/* 452 */ "compare_op",
/* 453 */ "in_op",
/* 454 */ "in_predicate_value",
/* 455 */ "boolean_value_expression",
/* 456 */ "boolean_primary",
/* 457 */ "from_clause_opt",
/* 458 */ "table_reference_list",
/* 459 */ "table_reference",
/* 460 */ "table_primary",
/* 461 */ "joined_table",
/* 462 */ "alias_opt",
/* 463 */ "subquery",
/* 464 */ "parenthesized_joined_table",
/* 465 */ "join_type",
/* 466 */ "query_specification",
/* 467 */ "hint_list",
/* 468 */ "set_quantifier_opt",
/* 469 */ "tag_mode_opt",
/* 470 */ "select_list",
/* 471 */ "partition_by_clause_opt",
/* 472 */ "range_opt",
/* 473 */ "every_opt",
/* 474 */ "fill_opt",
/* 475 */ "twindow_clause_opt",
/* 476 */ "group_by_clause_opt",
/* 477 */ "having_clause_opt",
/* 478 */ "select_item",
/* 479 */ "partition_list",
/* 480 */ "partition_item",
/* 481 */ "fill_mode",
/* 482 */ "group_by_list",
/* 483 */ "query_expression",
/* 484 */ "query_simple",
/* 485 */ "order_by_clause_opt",
/* 486 */ "slimit_clause_opt",
/* 487 */ "limit_clause_opt",
/* 488 */ "union_query_expression",
/* 489 */ "query_simple_or_subquery",
/* 490 */ "sort_specification_list",
/* 491 */ "sort_specification",
/* 492 */ "ordering_specification_opt",
/* 493 */ "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_level ::= NK_STAR NK_DOT NK_STAR",
/* 48 */ "priv_level ::= db_name NK_DOT NK_STAR",
/* 49 */ "priv_level ::= db_name NK_DOT table_name",
/* 50 */ "priv_level ::= topic_name",
/* 51 */ "with_opt ::=",
/* 52 */ "with_opt ::= WITH search_condition",
/* 53 */ "cmd ::= CREATE DNODE dnode_endpoint",
/* 54 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
/* 55 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
/* 56 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
/* 57 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
/* 58 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
/* 59 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
/* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
/* 61 */ "cmd ::= ALTER ALL DNODES NK_STRING",
/* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
/* 63 */ "cmd ::= RESTORE DNODE NK_INTEGER",
/* 64 */ "dnode_endpoint ::= NK_STRING",
/* 65 */ "dnode_endpoint ::= NK_ID",
/* 66 */ "dnode_endpoint ::= NK_IPTOKEN",
/* 67 */ "force_opt ::=",
/* 68 */ "force_opt ::= FORCE",
/* 69 */ "unsafe_opt ::= UNSAFE",
/* 70 */ "cmd ::= ALTER LOCAL NK_STRING",
/* 71 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
/* 72 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
/* 73 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
/* 74 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
/* 75 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
/* 76 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
/* 77 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
/* 78 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
/* 79 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
/* 80 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
/* 81 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
/* 82 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
/* 83 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
/* 84 */ "cmd ::= DROP DATABASE exists_opt db_name",
/* 85 */ "cmd ::= USE db_name",
/* 86 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
/* 87 */ "cmd ::= FLUSH DATABASE db_name",
/* 88 */ "cmd ::= TRIM DATABASE db_name speed_opt",
/* 89 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
/* 90 */ "not_exists_opt ::= IF NOT EXISTS",
/* 91 */ "not_exists_opt ::=",
/* 92 */ "exists_opt ::= IF EXISTS",
/* 93 */ "exists_opt ::=",
/* 94 */ "db_options ::=",
/* 95 */ "db_options ::= db_options BUFFER NK_INTEGER",
/* 96 */ "db_options ::= db_options CACHEMODEL NK_STRING",
/* 97 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
/* 98 */ "db_options ::= db_options COMP NK_INTEGER",
/* 99 */ "db_options ::= db_options DURATION NK_INTEGER",
/* 100 */ "db_options ::= db_options DURATION NK_VARIABLE",
/* 101 */ "db_options ::= db_options MAXROWS NK_INTEGER",
/* 102 */ "db_options ::= db_options MINROWS NK_INTEGER",
/* 103 */ "db_options ::= db_options KEEP integer_list",
/* 104 */ "db_options ::= db_options KEEP variable_list",
/* 105 */ "db_options ::= db_options PAGES NK_INTEGER",
/* 106 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
/* 107 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
/* 108 */ "db_options ::= db_options PRECISION NK_STRING",
/* 109 */ "db_options ::= db_options REPLICA NK_INTEGER",
/* 110 */ "db_options ::= db_options VGROUPS NK_INTEGER",
/* 111 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
/* 112 */ "db_options ::= db_options RETENTIONS retention_list",
/* 113 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
/* 114 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
/* 115 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
/* 116 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
/* 117 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 118 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
/* 119 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 120 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
/* 121 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
/* 122 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
/* 123 */ "db_options ::= db_options TABLE_PREFIX signed",
/* 124 */ "db_options ::= db_options TABLE_SUFFIX signed",
/* 125 */ "alter_db_options ::= alter_db_option",
/* 126 */ "alter_db_options ::= alter_db_options alter_db_option",
/* 127 */ "alter_db_option ::= BUFFER NK_INTEGER",
/* 128 */ "alter_db_option ::= CACHEMODEL NK_STRING",
/* 129 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
/* 130 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
/* 131 */ "alter_db_option ::= KEEP integer_list",
/* 132 */ "alter_db_option ::= KEEP variable_list",
/* 133 */ "alter_db_option ::= PAGES NK_INTEGER",
/* 134 */ "alter_db_option ::= REPLICA NK_INTEGER",
/* 135 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
/* 136 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
/* 137 */ "alter_db_option ::= MINROWS NK_INTEGER",
/* 138 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
/* 139 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 140 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
/* 141 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 142 */ "integer_list ::= NK_INTEGER",
/* 143 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
/* 144 */ "variable_list ::= NK_VARIABLE",
/* 145 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
/* 146 */ "retention_list ::= retention",
/* 147 */ "retention_list ::= retention_list NK_COMMA retention",
/* 148 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
/* 149 */ "speed_opt ::=",
/* 150 */ "speed_opt ::= BWLIMIT NK_INTEGER",
/* 151 */ "start_opt ::=",
/* 152 */ "start_opt ::= START WITH NK_INTEGER",
/* 153 */ "start_opt ::= START WITH NK_STRING",
/* 154 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
/* 155 */ "end_opt ::=",
/* 156 */ "end_opt ::= END WITH NK_INTEGER",
/* 157 */ "end_opt ::= END WITH NK_STRING",
/* 158 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
/* 159 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
/* 160 */ "cmd ::= CREATE TABLE multi_create_clause",
/* 161 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
/* 162 */ "cmd ::= DROP TABLE multi_drop_clause",
/* 163 */ "cmd ::= DROP STABLE exists_opt full_table_name",
/* 164 */ "cmd ::= ALTER TABLE alter_table_clause",
/* 165 */ "cmd ::= ALTER STABLE alter_table_clause",
/* 166 */ "alter_table_clause ::= full_table_name alter_table_options",
/* 167 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
/* 168 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
/* 169 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
/* 170 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
/* 171 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
/* 172 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
/* 173 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
/* 174 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
/* 175 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
/* 176 */ "multi_create_clause ::= create_subtable_clause",
/* 177 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
/* 178 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options",
/* 179 */ "multi_drop_clause ::= drop_table_clause",
/* 180 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
/* 181 */ "drop_table_clause ::= exists_opt full_table_name",
/* 182 */ "specific_cols_opt ::=",
/* 183 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
/* 184 */ "full_table_name ::= table_name",
/* 185 */ "full_table_name ::= db_name NK_DOT table_name",
/* 186 */ "column_def_list ::= column_def",
/* 187 */ "column_def_list ::= column_def_list NK_COMMA column_def",
/* 188 */ "column_def ::= column_name type_name",
/* 189 */ "type_name ::= BOOL",
/* 190 */ "type_name ::= TINYINT",
/* 191 */ "type_name ::= SMALLINT",
/* 192 */ "type_name ::= INT",
/* 193 */ "type_name ::= INTEGER",
/* 194 */ "type_name ::= BIGINT",
/* 195 */ "type_name ::= FLOAT",
/* 196 */ "type_name ::= DOUBLE",
/* 197 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
/* 198 */ "type_name ::= TIMESTAMP",
/* 199 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
/* 200 */ "type_name ::= TINYINT UNSIGNED",
/* 201 */ "type_name ::= SMALLINT UNSIGNED",
/* 202 */ "type_name ::= INT UNSIGNED",
/* 203 */ "type_name ::= BIGINT UNSIGNED",
/* 204 */ "type_name ::= JSON",
/* 205 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
/* 206 */ "type_name ::= MEDIUMBLOB",
/* 207 */ "type_name ::= BLOB",
/* 208 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
/* 209 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
/* 210 */ "type_name ::= DECIMAL",
/* 211 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
/* 212 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 213 */ "tags_def_opt ::=",
/* 214 */ "tags_def_opt ::= tags_def",
/* 215 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
/* 216 */ "table_options ::=",
/* 217 */ "table_options ::= table_options COMMENT NK_STRING",
/* 218 */ "table_options ::= table_options MAX_DELAY duration_list",
/* 219 */ "table_options ::= table_options WATERMARK duration_list",
/* 220 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
/* 221 */ "table_options ::= table_options TTL NK_INTEGER",
/* 222 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
/* 223 */ "table_options ::= table_options DELETE_MARK duration_list",
/* 224 */ "alter_table_options ::= alter_table_option",
/* 225 */ "alter_table_options ::= alter_table_options alter_table_option",
/* 226 */ "alter_table_option ::= COMMENT NK_STRING",
/* 227 */ "alter_table_option ::= TTL NK_INTEGER",
/* 228 */ "duration_list ::= duration_literal",
/* 229 */ "duration_list ::= duration_list NK_COMMA duration_literal",
/* 230 */ "rollup_func_list ::= rollup_func_name",
/* 231 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
/* 232 */ "rollup_func_name ::= function_name",
/* 233 */ "rollup_func_name ::= FIRST",
/* 234 */ "rollup_func_name ::= LAST",
/* 235 */ "col_name_list ::= col_name",
/* 236 */ "col_name_list ::= col_name_list NK_COMMA col_name",
/* 237 */ "col_name ::= column_name",
/* 238 */ "cmd ::= SHOW DNODES",
/* 239 */ "cmd ::= SHOW USERS",
/* 240 */ "cmd ::= SHOW USER PRIVILEGES",
/* 241 */ "cmd ::= SHOW DATABASES",
/* 242 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt",
/* 243 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
/* 244 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
/* 245 */ "cmd ::= SHOW MNODES",
/* 246 */ "cmd ::= SHOW QNODES",
/* 247 */ "cmd ::= SHOW FUNCTIONS",
/* 248 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
/* 249 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
/* 250 */ "cmd ::= SHOW STREAMS",
/* 251 */ "cmd ::= SHOW ACCOUNTS",
/* 252 */ "cmd ::= SHOW APPS",
/* 253 */ "cmd ::= SHOW CONNECTIONS",
/* 254 */ "cmd ::= SHOW LICENCES",
/* 255 */ "cmd ::= SHOW GRANTS",
/* 256 */ "cmd ::= SHOW CREATE DATABASE db_name",
/* 257 */ "cmd ::= SHOW CREATE TABLE full_table_name",
/* 258 */ "cmd ::= SHOW CREATE STABLE full_table_name",
/* 259 */ "cmd ::= SHOW QUERIES",
/* 260 */ "cmd ::= SHOW SCORES",
/* 261 */ "cmd ::= SHOW TOPICS",
/* 262 */ "cmd ::= SHOW VARIABLES",
/* 263 */ "cmd ::= SHOW CLUSTER VARIABLES",
/* 264 */ "cmd ::= SHOW LOCAL VARIABLES",
/* 265 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
/* 266 */ "cmd ::= SHOW BNODES",
/* 267 */ "cmd ::= SHOW SNODES",
/* 268 */ "cmd ::= SHOW CLUSTER",
/* 269 */ "cmd ::= SHOW TRANSACTIONS",
/* 270 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
/* 271 */ "cmd ::= SHOW CONSUMERS",
/* 272 */ "cmd ::= SHOW SUBSCRIPTIONS",
/* 273 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
/* 274 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
/* 275 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
/* 276 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
/* 277 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
/* 278 */ "cmd ::= SHOW VNODES",
/* 279 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
/* 280 */ "cmd ::= SHOW CLUSTER ALIVE",
/* 281 */ "db_name_cond_opt ::=",
/* 282 */ "db_name_cond_opt ::= db_name NK_DOT",
/* 283 */ "like_pattern_opt ::=",
/* 284 */ "like_pattern_opt ::= LIKE NK_STRING",
/* 285 */ "table_name_cond ::= table_name",
/* 286 */ "from_db_opt ::=",
/* 287 */ "from_db_opt ::= FROM db_name",
/* 288 */ "tag_list_opt ::=",
/* 289 */ "tag_list_opt ::= tag_item",
/* 290 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
/* 291 */ "tag_item ::= TBNAME",
/* 292 */ "tag_item ::= QTAGS",
/* 293 */ "tag_item ::= column_name",
/* 294 */ "tag_item ::= column_name column_alias",
/* 295 */ "tag_item ::= column_name AS column_alias",
/* 296 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
/* 297 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
/* 298 */ "cmd ::= DROP INDEX exists_opt full_index_name",
/* 299 */ "full_index_name ::= index_name",
/* 300 */ "full_index_name ::= db_name NK_DOT index_name",
/* 301 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
/* 302 */ "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",
/* 303 */ "func_list ::= func",
/* 304 */ "func_list ::= func_list NK_COMMA func",
/* 305 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
/* 306 */ "sma_func_name ::= function_name",
/* 307 */ "sma_func_name ::= COUNT",
/* 308 */ "sma_func_name ::= FIRST",
/* 309 */ "sma_func_name ::= LAST",
/* 310 */ "sma_func_name ::= LAST_ROW",
/* 311 */ "sma_stream_opt ::=",
/* 312 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
/* 313 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
/* 314 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
/* 315 */ "with_meta ::= AS",
/* 316 */ "with_meta ::= WITH META AS",
/* 317 */ "with_meta ::= ONLY META AS",
/* 318 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
/* 319 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
/* 320 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
/* 321 */ "cmd ::= DROP TOPIC exists_opt topic_name",
/* 322 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
/* 323 */ "cmd ::= DESC full_table_name",
/* 324 */ "cmd ::= DESCRIBE full_table_name",
/* 325 */ "cmd ::= RESET QUERY CACHE",
/* 326 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
/* 327 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
/* 328 */ "analyze_opt ::=",
/* 329 */ "analyze_opt ::= ANALYZE",
/* 330 */ "explain_options ::=",
/* 331 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
/* 332 */ "explain_options ::= explain_options RATIO NK_FLOAT",
/* 333 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
/* 334 */ "cmd ::= DROP FUNCTION exists_opt function_name",
/* 335 */ "agg_func_opt ::=",
/* 336 */ "agg_func_opt ::= AGGREGATE",
/* 337 */ "bufsize_opt ::=",
/* 338 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
/* 339 */ "language_opt ::=",
/* 340 */ "language_opt ::= LANGUAGE NK_STRING",
/* 341 */ "or_replace_opt ::=",
/* 342 */ "or_replace_opt ::= OR REPLACE",
/* 343 */ "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",
/* 344 */ "cmd ::= DROP STREAM exists_opt stream_name",
/* 345 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
/* 346 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
/* 347 */ "col_list_opt ::=",
/* 348 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
/* 349 */ "tag_def_or_ref_opt ::=",
/* 350 */ "tag_def_or_ref_opt ::= tags_def",
/* 351 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
/* 352 */ "stream_options ::=",
/* 353 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
/* 354 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
/* 355 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
/* 356 */ "stream_options ::= stream_options WATERMARK duration_literal",
/* 357 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
/* 358 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
/* 359 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
/* 360 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
/* 361 */ "subtable_opt ::=",
/* 362 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
/* 363 */ "ignore_opt ::=",
/* 364 */ "ignore_opt ::= IGNORE UNTREATED",
/* 365 */ "cmd ::= KILL CONNECTION NK_INTEGER",
/* 366 */ "cmd ::= KILL QUERY NK_STRING",
/* 367 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
/* 368 */ "cmd ::= BALANCE VGROUP",
/* 369 */ "cmd ::= BALANCE VGROUP LEADER",
/* 370 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
/* 371 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
/* 372 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
/* 373 */ "dnode_list ::= DNODE NK_INTEGER",
/* 374 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
/* 375 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
/* 376 */ "cmd ::= query_or_subquery",
/* 377 */ "cmd ::= insert_query",
/* 378 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
/* 379 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
/* 380 */ "literal ::= NK_INTEGER",
/* 381 */ "literal ::= NK_FLOAT",
/* 382 */ "literal ::= NK_STRING",
/* 383 */ "literal ::= NK_BOOL",
/* 384 */ "literal ::= TIMESTAMP NK_STRING",
/* 385 */ "literal ::= duration_literal",
/* 386 */ "literal ::= NULL",
/* 387 */ "literal ::= NK_QUESTION",
/* 388 */ "duration_literal ::= NK_VARIABLE",
/* 389 */ "signed ::= NK_INTEGER",
/* 390 */ "signed ::= NK_PLUS NK_INTEGER",
/* 391 */ "signed ::= NK_MINUS NK_INTEGER",
/* 392 */ "signed ::= NK_FLOAT",
/* 393 */ "signed ::= NK_PLUS NK_FLOAT",
/* 394 */ "signed ::= NK_MINUS NK_FLOAT",
/* 395 */ "signed_literal ::= signed",
/* 396 */ "signed_literal ::= NK_STRING",
/* 397 */ "signed_literal ::= NK_BOOL",
/* 398 */ "signed_literal ::= TIMESTAMP NK_STRING",
/* 399 */ "signed_literal ::= duration_literal",
/* 400 */ "signed_literal ::= NULL",
/* 401 */ "signed_literal ::= literal_func",
/* 402 */ "signed_literal ::= NK_QUESTION",
/* 403 */ "literal_list ::= signed_literal",
/* 404 */ "literal_list ::= literal_list NK_COMMA signed_literal",
/* 405 */ "db_name ::= NK_ID",
/* 406 */ "table_name ::= NK_ID",
/* 407 */ "column_name ::= NK_ID",
/* 408 */ "function_name ::= NK_ID",
/* 409 */ "table_alias ::= NK_ID",
/* 410 */ "column_alias ::= NK_ID",
/* 411 */ "user_name ::= NK_ID",
/* 412 */ "topic_name ::= NK_ID",
/* 413 */ "stream_name ::= NK_ID",
/* 414 */ "cgroup_name ::= NK_ID",
/* 415 */ "index_name ::= NK_ID",
/* 416 */ "expr_or_subquery ::= expression",
/* 417 */ "expression ::= literal",
/* 418 */ "expression ::= pseudo_column",
/* 419 */ "expression ::= column_reference",
/* 420 */ "expression ::= function_expression",
/* 421 */ "expression ::= case_when_expression",
/* 422 */ "expression ::= NK_LP expression NK_RP",
/* 423 */ "expression ::= NK_PLUS expr_or_subquery",
/* 424 */ "expression ::= NK_MINUS expr_or_subquery",
/* 425 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
/* 426 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
/* 427 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
/* 428 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
/* 429 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
/* 430 */ "expression ::= column_reference NK_ARROW NK_STRING",
/* 431 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
/* 432 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
/* 433 */ "expression_list ::= expr_or_subquery",
/* 434 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
/* 435 */ "column_reference ::= column_name",
/* 436 */ "column_reference ::= table_name NK_DOT column_name",
/* 437 */ "pseudo_column ::= ROWTS",
/* 438 */ "pseudo_column ::= TBNAME",
/* 439 */ "pseudo_column ::= table_name NK_DOT TBNAME",
/* 440 */ "pseudo_column ::= QSTART",
/* 441 */ "pseudo_column ::= QEND",
/* 442 */ "pseudo_column ::= QDURATION",
/* 443 */ "pseudo_column ::= WSTART",
/* 444 */ "pseudo_column ::= WEND",
/* 445 */ "pseudo_column ::= WDURATION",
/* 446 */ "pseudo_column ::= IROWTS",
/* 447 */ "pseudo_column ::= ISFILLED",
/* 448 */ "pseudo_column ::= QTAGS",
/* 449 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
/* 450 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
/* 451 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
/* 452 */ "function_expression ::= literal_func",
/* 453 */ "literal_func ::= noarg_func NK_LP NK_RP",
/* 454 */ "literal_func ::= NOW",
/* 455 */ "noarg_func ::= NOW",
/* 456 */ "noarg_func ::= TODAY",
/* 457 */ "noarg_func ::= TIMEZONE",
/* 458 */ "noarg_func ::= DATABASE",
/* 459 */ "noarg_func ::= CLIENT_VERSION",
/* 460 */ "noarg_func ::= SERVER_VERSION",
/* 461 */ "noarg_func ::= SERVER_STATUS",
/* 462 */ "noarg_func ::= CURRENT_USER",
/* 463 */ "noarg_func ::= USER",
/* 464 */ "star_func ::= COUNT",
/* 465 */ "star_func ::= FIRST",
/* 466 */ "star_func ::= LAST",
/* 467 */ "star_func ::= LAST_ROW",
/* 468 */ "star_func_para_list ::= NK_STAR",
/* 469 */ "star_func_para_list ::= other_para_list",
/* 470 */ "other_para_list ::= star_func_para",
/* 471 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
/* 472 */ "star_func_para ::= expr_or_subquery",
/* 473 */ "star_func_para ::= table_name NK_DOT NK_STAR",
/* 474 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
/* 475 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
/* 476 */ "when_then_list ::= when_then_expr",
/* 477 */ "when_then_list ::= when_then_list when_then_expr",
/* 478 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
/* 479 */ "case_when_else_opt ::=",
/* 480 */ "case_when_else_opt ::= ELSE common_expression",
/* 481 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
/* 482 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
/* 483 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
/* 484 */ "predicate ::= expr_or_subquery IS NULL",
/* 485 */ "predicate ::= expr_or_subquery IS NOT NULL",
/* 486 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
/* 487 */ "compare_op ::= NK_LT",
/* 488 */ "compare_op ::= NK_GT",
/* 489 */ "compare_op ::= NK_LE",
/* 490 */ "compare_op ::= NK_GE",
/* 491 */ "compare_op ::= NK_NE",
/* 492 */ "compare_op ::= NK_EQ",
/* 493 */ "compare_op ::= LIKE",
/* 494 */ "compare_op ::= NOT LIKE",
/* 495 */ "compare_op ::= MATCH",
/* 496 */ "compare_op ::= NMATCH",
/* 497 */ "compare_op ::= CONTAINS",
/* 498 */ "in_op ::= IN",
/* 499 */ "in_op ::= NOT IN",
/* 500 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
/* 501 */ "boolean_value_expression ::= boolean_primary",
/* 502 */ "boolean_value_expression ::= NOT boolean_primary",
/* 503 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 504 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 505 */ "boolean_primary ::= predicate",
/* 506 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 507 */ "common_expression ::= expr_or_subquery",
/* 508 */ "common_expression ::= boolean_value_expression",
/* 509 */ "from_clause_opt ::=",
/* 510 */ "from_clause_opt ::= FROM table_reference_list",
/* 511 */ "table_reference_list ::= table_reference",
/* 512 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 513 */ "table_reference ::= table_primary",
/* 514 */ "table_reference ::= joined_table",
/* 515 */ "table_primary ::= table_name alias_opt",
/* 516 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 517 */ "table_primary ::= subquery alias_opt",
/* 518 */ "table_primary ::= parenthesized_joined_table",
/* 519 */ "alias_opt ::=",
/* 520 */ "alias_opt ::= table_alias",
/* 521 */ "alias_opt ::= AS table_alias",
/* 522 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 523 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 524 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
/* 525 */ "join_type ::=",
/* 526 */ "join_type ::= INNER",
/* 527 */ "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",
/* 528 */ "hint_list ::=",
/* 529 */ "hint_list ::= NK_HINT",
/* 530 */ "tag_mode_opt ::=",
/* 531 */ "tag_mode_opt ::= TAGS",
/* 532 */ "set_quantifier_opt ::=",
/* 533 */ "set_quantifier_opt ::= DISTINCT",
/* 534 */ "set_quantifier_opt ::= ALL",
/* 535 */ "select_list ::= select_item",
/* 536 */ "select_list ::= select_list NK_COMMA select_item",
/* 537 */ "select_item ::= NK_STAR",
/* 538 */ "select_item ::= common_expression",
/* 539 */ "select_item ::= common_expression column_alias",
/* 540 */ "select_item ::= common_expression AS column_alias",
/* 541 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 542 */ "where_clause_opt ::=",
/* 543 */ "where_clause_opt ::= WHERE search_condition",
/* 544 */ "partition_by_clause_opt ::=",
/* 545 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
/* 546 */ "partition_list ::= partition_item",
/* 547 */ "partition_list ::= partition_list NK_COMMA partition_item",
/* 548 */ "partition_item ::= expr_or_subquery",
/* 549 */ "partition_item ::= expr_or_subquery column_alias",
/* 550 */ "partition_item ::= expr_or_subquery AS column_alias",
/* 551 */ "twindow_clause_opt ::=",
/* 552 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
/* 553 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
/* 554 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
/* 555 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
/* 556 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
/* 557 */ "sliding_opt ::=",
/* 558 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
/* 559 */ "fill_opt ::=",
/* 560 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 561 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
/* 562 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
/* 563 */ "fill_mode ::= NONE",
/* 564 */ "fill_mode ::= PREV",
/* 565 */ "fill_mode ::= NULL",
/* 566 */ "fill_mode ::= NULL_F",
/* 567 */ "fill_mode ::= LINEAR",
/* 568 */ "fill_mode ::= NEXT",
/* 569 */ "group_by_clause_opt ::=",
/* 570 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 571 */ "group_by_list ::= expr_or_subquery",
/* 572 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
/* 573 */ "having_clause_opt ::=",
/* 574 */ "having_clause_opt ::= HAVING search_condition",
/* 575 */ "range_opt ::=",
/* 576 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
/* 577 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
/* 578 */ "every_opt ::=",
/* 579 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
/* 580 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 581 */ "query_simple ::= query_specification",
/* 582 */ "query_simple ::= union_query_expression",
/* 583 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
/* 584 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
/* 585 */ "query_simple_or_subquery ::= query_simple",
/* 586 */ "query_simple_or_subquery ::= subquery",
/* 587 */ "query_or_subquery ::= query_expression",
/* 588 */ "query_or_subquery ::= subquery",
/* 589 */ "order_by_clause_opt ::=",
/* 590 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 591 */ "slimit_clause_opt ::=",
/* 592 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 593 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 594 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 595 */ "limit_clause_opt ::=",
/* 596 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 597 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 598 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 599 */ "subquery ::= NK_LP query_expression NK_RP",
/* 600 */ "subquery ::= NK_LP subquery NK_RP",
/* 601 */ "search_condition ::= common_expression",
/* 602 */ "sort_specification_list ::= sort_specification",
/* 603 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 604 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
/* 605 */ "ordering_specification_opt ::=",
/* 606 */ "ordering_specification_opt ::= ASC",
/* 607 */ "ordering_specification_opt ::= DESC",
/* 608 */ "null_ordering_opt ::=",
/* 609 */ "null_ordering_opt ::= NULLS FIRST",
/* 610 */ "null_ordering_opt ::= NULLS LAST",
};
#endif /* NDEBUG */
#if YYSTACKDEPTH<=0
/*
** Try to increase the size of the parser stack. Return the number
** of errors. Return 0 on success.
*/
static int yyGrowStack(yyParser *p){
int newSize;
int idx;
yyStackEntry *pNew;
newSize = p->yystksz*2 + 100;
idx = p->yytos ? (int)(p->yytos - p->yystack) : 0;
if( p->yystack==&p->yystk0 ){
pNew = malloc(newSize*sizeof(pNew[0]));
if( pNew ) pNew[0] = p->yystk0;
}else{
pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
}
if( pNew ){
p->yystack = pNew;
p->yytos = &p->yystack[idx];
#ifndef NDEBUG
if( yyTraceFILE ){
fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n",
yyTracePrompt, p->yystksz, newSize);
}
#endif
p->yystksz = newSize;
}
return pNew==0;
}
#endif
/* Datatype of the argument to the memory allocated passed as the
** second argument to ParseAlloc() below. This can be changed by
** putting an appropriate #define in the %include section of the input
** grammar.
*/
#ifndef YYMALLOCARGTYPE
# define YYMALLOCARGTYPE size_t
#endif
/* Initialize a new parser that has already been allocated.
*/
void ParseInit(void *yypRawParser ParseCTX_PDECL){
yyParser *yypParser = (yyParser*)yypRawParser;
ParseCTX_STORE
#ifdef YYTRACKMAXSTACKDEPTH
yypParser->yyhwm = 0;
#endif
#if YYSTACKDEPTH<=0
yypParser->yytos = NULL;
yypParser->yystack = NULL;
yypParser->yystksz = 0;
if( yyGrowStack(yypParser) ){
yypParser->yystack = &yypParser->yystk0;
yypParser->yystksz = 1;
}
#endif
#ifndef YYNOERRORRECOVERY
yypParser->yyerrcnt = -1;
#endif
yypParser->yytos = yypParser->yystack;
yypParser->yystack[0].stateno = 0;
yypParser->yystack[0].major = 0;
#if YYSTACKDEPTH>0
yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1];
#endif
}
#ifndef Parse_ENGINEALWAYSONSTACK
/*
** This function allocates a new parser.
** The only argument is a pointer to a function which works like
** malloc.
**
** Inputs:
** A pointer to the function used to allocate memory.
**
** Outputs:
** A pointer to a parser. This pointer is used in subsequent calls
** to Parse and ParseFree.
*/
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
yyParser *yypParser;
yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
if( yypParser ){
ParseCTX_STORE
ParseInit(yypParser ParseCTX_PARAM);
}
return (void*)yypParser;
}
#endif /* Parse_ENGINEALWAYSONSTACK */
/* The following function deletes the "minor type" or semantic value
** associated with a symbol. The symbol can be either a terminal
** or nonterminal. "yymajor" is the symbol code, and "yypminor" is
** a pointer to the value to be deleted. The code used to do the
** deletions is derived from the %destructor and/or %token_destructor
** directives of the input grammar.
*/
static void yy_destructor(
yyParser *yypParser, /* The parser */
YYCODETYPE yymajor, /* Type code for object to destroy */
YYMINORTYPE *yypminor /* The object to be destroyed */
){
ParseARG_FETCH
ParseCTX_FETCH
switch( yymajor ){
/* Here is inserted the actions which take place when a
** terminal or non-terminal is destroyed. This can happen
** when the symbol is popped from the stack during a
** reduce or during error processing or when a parser is
** being destroyed before it is finished parsing.
**
** Note: during a reduce, the only symbols destroyed are those
** which appear on the RHS of the rule, but which are *not* used
** inside the C code.
*/
/********* Begin destructor definitions ***************************************/
/* Default NON-TERMINAL Destructor */
case 340: /* cmd */
case 343: /* literal */
case 352: /* with_opt */
case 358: /* search_condition */
case 363: /* db_options */
case 365: /* alter_db_options */
case 367: /* start_opt */
case 368: /* end_opt */
case 372: /* signed */
case 374: /* retention */
case 375: /* full_table_name */
case 378: /* table_options */
case 382: /* alter_table_clause */
case 383: /* alter_table_options */
case 386: /* signed_literal */
case 387: /* create_subtable_clause */
case 390: /* drop_table_clause */
case 392: /* column_def */
case 396: /* duration_literal */
case 397: /* rollup_func_name */
case 399: /* col_name */
case 400: /* db_name_cond_opt */
case 401: /* like_pattern_opt */
case 402: /* table_name_cond */
case 403: /* from_db_opt */
case 405: /* tag_item */
case 407: /* index_options */
case 408: /* full_index_name */
case 411: /* sliding_opt */
case 412: /* sma_stream_opt */
case 413: /* func */
case 416: /* query_or_subquery */
case 417: /* where_clause_opt */
case 420: /* explain_options */
case 421: /* insert_query */
case 427: /* stream_options */
case 430: /* subtable_opt */
case 432: /* expression */
case 434: /* literal_func */
case 437: /* expr_or_subquery */
case 438: /* pseudo_column */
case 439: /* column_reference */
case 440: /* function_expression */
case 441: /* case_when_expression */
case 446: /* star_func_para */
case 448: /* case_when_else_opt */
case 449: /* common_expression */
case 450: /* when_then_expr */
case 451: /* predicate */
case 454: /* in_predicate_value */
case 455: /* boolean_value_expression */
case 456: /* boolean_primary */
case 457: /* from_clause_opt */
case 458: /* table_reference_list */
case 459: /* table_reference */
case 460: /* table_primary */
case 461: /* joined_table */
case 463: /* subquery */
case 464: /* parenthesized_joined_table */
case 466: /* query_specification */
case 472: /* range_opt */
case 473: /* every_opt */
case 474: /* fill_opt */
case 475: /* twindow_clause_opt */
case 477: /* having_clause_opt */
case 478: /* select_item */
case 480: /* partition_item */
case 483: /* query_expression */
case 484: /* query_simple */
case 486: /* slimit_clause_opt */
case 487: /* limit_clause_opt */
case 488: /* union_query_expression */
case 489: /* query_simple_or_subquery */
case 491: /* sort_specification */
{
#line 7 "sql.y"
nodesDestroyNode((yypminor->yy28));
#line 3131 "sql.c"
}
break;
case 341: /* account_options */
case 342: /* alter_account_options */
case 344: /* alter_account_option */
case 366: /* speed_opt */
case 415: /* with_meta */
case 424: /* bufsize_opt */
{
#line 54 "sql.y"
#line 3143 "sql.c"
}
break;
case 345: /* ip_range_list */
case 346: /* white_list */
case 347: /* white_list_opt */
case 369: /* integer_list */
case 370: /* variable_list */
case 371: /* retention_list */
case 376: /* column_def_list */
case 377: /* tags_def_opt */
case 379: /* multi_create_clause */
case 380: /* tags_def */
case 381: /* multi_drop_clause */
case 388: /* specific_cols_opt */
case 389: /* expression_list */
case 391: /* col_name_list */
case 393: /* duration_list */
case 394: /* rollup_func_list */
case 404: /* tag_list_opt */
case 410: /* func_list */
case 428: /* col_list_opt */
case 429: /* tag_def_or_ref_opt */
case 433: /* dnode_list */
case 435: /* literal_list */
case 443: /* star_func_para_list */
case 445: /* other_para_list */
case 447: /* when_then_list */
case 467: /* hint_list */
case 470: /* select_list */
case 471: /* partition_by_clause_opt */
case 476: /* group_by_clause_opt */
case 479: /* partition_list */
case 482: /* group_by_list */
case 485: /* order_by_clause_opt */
case 490: /* sort_specification_list */
{
#line 85 "sql.y"
nodesDestroyList((yypminor->yy236));
#line 3182 "sql.c"
}
break;
case 348: /* user_name */
case 355: /* db_name */
case 356: /* table_name */
case 357: /* topic_name */
case 359: /* dnode_endpoint */
case 384: /* column_name */
case 398: /* function_name */
case 406: /* column_alias */
case 409: /* index_name */
case 414: /* sma_func_name */
case 418: /* cgroup_name */
case 425: /* language_opt */
case 426: /* stream_name */
case 436: /* table_alias */
case 442: /* star_func */
case 444: /* noarg_func */
case 462: /* alias_opt */
{
#line 762 "sql.y"
#line 3205 "sql.c"
}
break;
case 349: /* sysinfo_opt */
{
#line 112 "sql.y"
#line 3212 "sql.c"
}
break;
case 350: /* privileges */
case 353: /* priv_type_list */
case 354: /* priv_type */
{
#line 121 "sql.y"
#line 3221 "sql.c"
}
break;
case 351: /* priv_level */
{
#line 137 "sql.y"
#line 3228 "sql.c"
}
break;
case 360: /* force_opt */
case 361: /* unsafe_opt */
case 362: /* not_exists_opt */
case 364: /* exists_opt */
case 419: /* analyze_opt */
case 422: /* or_replace_opt */
case 423: /* agg_func_opt */
case 431: /* ignore_opt */
case 468: /* set_quantifier_opt */
case 469: /* tag_mode_opt */
{
#line 166 "sql.y"
#line 3244 "sql.c"
}
break;
case 373: /* alter_db_option */
case 395: /* alter_table_option */
{
#line 263 "sql.y"
#line 3252 "sql.c"
}
break;
case 385: /* type_name */
{
#line 384 "sql.y"
#line 3259 "sql.c"
}
break;
case 452: /* compare_op */
case 453: /* in_op */
{
#line 950 "sql.y"
#line 3267 "sql.c"
}
break;
case 465: /* join_type */
{
#line 1026 "sql.y"
#line 3274 "sql.c"
}
break;
case 481: /* fill_mode */
{
#line 1112 "sql.y"
#line 3281 "sql.c"
}
break;
case 492: /* ordering_specification_opt */
{
#line 1197 "sql.y"
#line 3288 "sql.c"
}
break;
case 493: /* null_ordering_opt */
{
#line 1203 "sql.y"
#line 3295 "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[] = {
340, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
340, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
341, /* (2) account_options ::= */
341, /* (3) account_options ::= account_options PPS literal */
341, /* (4) account_options ::= account_options TSERIES literal */
341, /* (5) account_options ::= account_options STORAGE literal */
341, /* (6) account_options ::= account_options STREAMS literal */
341, /* (7) account_options ::= account_options QTIME literal */
341, /* (8) account_options ::= account_options DBS literal */
341, /* (9) account_options ::= account_options USERS literal */
341, /* (10) account_options ::= account_options CONNS literal */
341, /* (11) account_options ::= account_options STATE literal */
342, /* (12) alter_account_options ::= alter_account_option */
342, /* (13) alter_account_options ::= alter_account_options alter_account_option */
344, /* (14) alter_account_option ::= PASS literal */
344, /* (15) alter_account_option ::= PPS literal */
344, /* (16) alter_account_option ::= TSERIES literal */
344, /* (17) alter_account_option ::= STORAGE literal */
344, /* (18) alter_account_option ::= STREAMS literal */
344, /* (19) alter_account_option ::= QTIME literal */
344, /* (20) alter_account_option ::= DBS literal */
344, /* (21) alter_account_option ::= USERS literal */
344, /* (22) alter_account_option ::= CONNS literal */
344, /* (23) alter_account_option ::= STATE literal */
345, /* (24) ip_range_list ::= NK_STRING */
345, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
346, /* (26) white_list ::= HOST ip_range_list */
347, /* (27) white_list_opt ::= */
347, /* (28) white_list_opt ::= white_list */
340, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
340, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
340, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
340, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
340, /* (33) cmd ::= ALTER USER user_name ADD white_list */
340, /* (34) cmd ::= ALTER USER user_name DROP white_list */
340, /* (35) cmd ::= DROP USER user_name */
349, /* (36) sysinfo_opt ::= */
349, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
340, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
340, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
350, /* (40) privileges ::= ALL */
350, /* (41) privileges ::= priv_type_list */
350, /* (42) privileges ::= SUBSCRIBE */
353, /* (43) priv_type_list ::= priv_type */
353, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
354, /* (45) priv_type ::= READ */
354, /* (46) priv_type ::= WRITE */
351, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */
351, /* (48) priv_level ::= db_name NK_DOT NK_STAR */
351, /* (49) priv_level ::= db_name NK_DOT table_name */
351, /* (50) priv_level ::= topic_name */
352, /* (51) with_opt ::= */
352, /* (52) with_opt ::= WITH search_condition */
340, /* (53) cmd ::= CREATE DNODE dnode_endpoint */
340, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
340, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */
340, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */
340, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
340, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
340, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
340, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
340, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */
340, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
340, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */
359, /* (64) dnode_endpoint ::= NK_STRING */
359, /* (65) dnode_endpoint ::= NK_ID */
359, /* (66) dnode_endpoint ::= NK_IPTOKEN */
360, /* (67) force_opt ::= */
360, /* (68) force_opt ::= FORCE */
361, /* (69) unsafe_opt ::= UNSAFE */
340, /* (70) cmd ::= ALTER LOCAL NK_STRING */
340, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
340, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
340, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
340, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
340, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
340, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
340, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
340, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
340, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
340, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
340, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
340, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
340, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
340, /* (84) cmd ::= DROP DATABASE exists_opt db_name */
340, /* (85) cmd ::= USE db_name */
340, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */
340, /* (87) cmd ::= FLUSH DATABASE db_name */
340, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */
340, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
362, /* (90) not_exists_opt ::= IF NOT EXISTS */
362, /* (91) not_exists_opt ::= */
364, /* (92) exists_opt ::= IF EXISTS */
364, /* (93) exists_opt ::= */
363, /* (94) db_options ::= */
363, /* (95) db_options ::= db_options BUFFER NK_INTEGER */
363, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */
363, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */
363, /* (98) db_options ::= db_options COMP NK_INTEGER */
363, /* (99) db_options ::= db_options DURATION NK_INTEGER */
363, /* (100) db_options ::= db_options DURATION NK_VARIABLE */
363, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */
363, /* (102) db_options ::= db_options MINROWS NK_INTEGER */
363, /* (103) db_options ::= db_options KEEP integer_list */
363, /* (104) db_options ::= db_options KEEP variable_list */
363, /* (105) db_options ::= db_options PAGES NK_INTEGER */
363, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */
363, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
363, /* (108) db_options ::= db_options PRECISION NK_STRING */
363, /* (109) db_options ::= db_options REPLICA NK_INTEGER */
363, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */
363, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
363, /* (112) db_options ::= db_options RETENTIONS retention_list */
363, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */
363, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */
363, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
363, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
363, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
363, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
363, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
363, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
363, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
363, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */
363, /* (123) db_options ::= db_options TABLE_PREFIX signed */
363, /* (124) db_options ::= db_options TABLE_SUFFIX signed */
365, /* (125) alter_db_options ::= alter_db_option */
365, /* (126) alter_db_options ::= alter_db_options alter_db_option */
373, /* (127) alter_db_option ::= BUFFER NK_INTEGER */
373, /* (128) alter_db_option ::= CACHEMODEL NK_STRING */
373, /* (129) alter_db_option ::= CACHESIZE NK_INTEGER */
373, /* (130) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
373, /* (131) alter_db_option ::= KEEP integer_list */
373, /* (132) alter_db_option ::= KEEP variable_list */
373, /* (133) alter_db_option ::= PAGES NK_INTEGER */
373, /* (134) alter_db_option ::= REPLICA NK_INTEGER */
373, /* (135) alter_db_option ::= WAL_LEVEL NK_INTEGER */
373, /* (136) alter_db_option ::= STT_TRIGGER NK_INTEGER */
373, /* (137) alter_db_option ::= MINROWS NK_INTEGER */
373, /* (138) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
373, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
373, /* (140) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
373, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
369, /* (142) integer_list ::= NK_INTEGER */
369, /* (143) integer_list ::= integer_list NK_COMMA NK_INTEGER */
370, /* (144) variable_list ::= NK_VARIABLE */
370, /* (145) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
371, /* (146) retention_list ::= retention */
371, /* (147) retention_list ::= retention_list NK_COMMA retention */
374, /* (148) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
366, /* (149) speed_opt ::= */
366, /* (150) speed_opt ::= BWLIMIT NK_INTEGER */
367, /* (151) start_opt ::= */
367, /* (152) start_opt ::= START WITH NK_INTEGER */
367, /* (153) start_opt ::= START WITH NK_STRING */
367, /* (154) start_opt ::= START WITH TIMESTAMP NK_STRING */
368, /* (155) end_opt ::= */
368, /* (156) end_opt ::= END WITH NK_INTEGER */
368, /* (157) end_opt ::= END WITH NK_STRING */
368, /* (158) end_opt ::= END WITH TIMESTAMP NK_STRING */
340, /* (159) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
340, /* (160) cmd ::= CREATE TABLE multi_create_clause */
340, /* (161) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
340, /* (162) cmd ::= DROP TABLE multi_drop_clause */
340, /* (163) cmd ::= DROP STABLE exists_opt full_table_name */
340, /* (164) cmd ::= ALTER TABLE alter_table_clause */
340, /* (165) cmd ::= ALTER STABLE alter_table_clause */
382, /* (166) alter_table_clause ::= full_table_name alter_table_options */
382, /* (167) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
382, /* (168) alter_table_clause ::= full_table_name DROP COLUMN column_name */
382, /* (169) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
382, /* (170) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
382, /* (171) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
382, /* (172) alter_table_clause ::= full_table_name DROP TAG column_name */
382, /* (173) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
382, /* (174) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
382, /* (175) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
379, /* (176) multi_create_clause ::= create_subtable_clause */
379, /* (177) multi_create_clause ::= multi_create_clause create_subtable_clause */
387, /* (178) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
381, /* (179) multi_drop_clause ::= drop_table_clause */
381, /* (180) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
390, /* (181) drop_table_clause ::= exists_opt full_table_name */
388, /* (182) specific_cols_opt ::= */
388, /* (183) specific_cols_opt ::= NK_LP col_name_list NK_RP */
375, /* (184) full_table_name ::= table_name */
375, /* (185) full_table_name ::= db_name NK_DOT table_name */
376, /* (186) column_def_list ::= column_def */
376, /* (187) column_def_list ::= column_def_list NK_COMMA column_def */
392, /* (188) column_def ::= column_name type_name */
385, /* (189) type_name ::= BOOL */
385, /* (190) type_name ::= TINYINT */
385, /* (191) type_name ::= SMALLINT */
385, /* (192) type_name ::= INT */
385, /* (193) type_name ::= INTEGER */
385, /* (194) type_name ::= BIGINT */
385, /* (195) type_name ::= FLOAT */
385, /* (196) type_name ::= DOUBLE */
385, /* (197) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
385, /* (198) type_name ::= TIMESTAMP */
385, /* (199) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
385, /* (200) type_name ::= TINYINT UNSIGNED */
385, /* (201) type_name ::= SMALLINT UNSIGNED */
385, /* (202) type_name ::= INT UNSIGNED */
385, /* (203) type_name ::= BIGINT UNSIGNED */
385, /* (204) type_name ::= JSON */
385, /* (205) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
385, /* (206) type_name ::= MEDIUMBLOB */
385, /* (207) type_name ::= BLOB */
385, /* (208) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
385, /* (209) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
385, /* (210) type_name ::= DECIMAL */
385, /* (211) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
385, /* (212) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
377, /* (213) tags_def_opt ::= */
377, /* (214) tags_def_opt ::= tags_def */
380, /* (215) tags_def ::= TAGS NK_LP column_def_list NK_RP */
378, /* (216) table_options ::= */
378, /* (217) table_options ::= table_options COMMENT NK_STRING */
378, /* (218) table_options ::= table_options MAX_DELAY duration_list */
378, /* (219) table_options ::= table_options WATERMARK duration_list */
378, /* (220) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
378, /* (221) table_options ::= table_options TTL NK_INTEGER */
378, /* (222) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
378, /* (223) table_options ::= table_options DELETE_MARK duration_list */
383, /* (224) alter_table_options ::= alter_table_option */
383, /* (225) alter_table_options ::= alter_table_options alter_table_option */
395, /* (226) alter_table_option ::= COMMENT NK_STRING */
395, /* (227) alter_table_option ::= TTL NK_INTEGER */
393, /* (228) duration_list ::= duration_literal */
393, /* (229) duration_list ::= duration_list NK_COMMA duration_literal */
394, /* (230) rollup_func_list ::= rollup_func_name */
394, /* (231) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
397, /* (232) rollup_func_name ::= function_name */
397, /* (233) rollup_func_name ::= FIRST */
397, /* (234) rollup_func_name ::= LAST */
391, /* (235) col_name_list ::= col_name */
391, /* (236) col_name_list ::= col_name_list NK_COMMA col_name */
399, /* (237) col_name ::= column_name */
340, /* (238) cmd ::= SHOW DNODES */
340, /* (239) cmd ::= SHOW USERS */
340, /* (240) cmd ::= SHOW USER PRIVILEGES */
340, /* (241) cmd ::= SHOW DATABASES */
340, /* (242) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
340, /* (243) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
340, /* (244) cmd ::= SHOW db_name_cond_opt VGROUPS */
340, /* (245) cmd ::= SHOW MNODES */
340, /* (246) cmd ::= SHOW QNODES */
340, /* (247) cmd ::= SHOW FUNCTIONS */
340, /* (248) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
340, /* (249) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
340, /* (250) cmd ::= SHOW STREAMS */
340, /* (251) cmd ::= SHOW ACCOUNTS */
340, /* (252) cmd ::= SHOW APPS */
340, /* (253) cmd ::= SHOW CONNECTIONS */
340, /* (254) cmd ::= SHOW LICENCES */
340, /* (255) cmd ::= SHOW GRANTS */
340, /* (256) cmd ::= SHOW CREATE DATABASE db_name */
340, /* (257) cmd ::= SHOW CREATE TABLE full_table_name */
340, /* (258) cmd ::= SHOW CREATE STABLE full_table_name */
340, /* (259) cmd ::= SHOW QUERIES */
340, /* (260) cmd ::= SHOW SCORES */
340, /* (261) cmd ::= SHOW TOPICS */
340, /* (262) cmd ::= SHOW VARIABLES */
340, /* (263) cmd ::= SHOW CLUSTER VARIABLES */
340, /* (264) cmd ::= SHOW LOCAL VARIABLES */
340, /* (265) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
340, /* (266) cmd ::= SHOW BNODES */
340, /* (267) cmd ::= SHOW SNODES */
340, /* (268) cmd ::= SHOW CLUSTER */
340, /* (269) cmd ::= SHOW TRANSACTIONS */
340, /* (270) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
340, /* (271) cmd ::= SHOW CONSUMERS */
340, /* (272) cmd ::= SHOW SUBSCRIPTIONS */
340, /* (273) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
340, /* (274) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
340, /* (275) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
340, /* (276) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
340, /* (277) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
340, /* (278) cmd ::= SHOW VNODES */
340, /* (279) cmd ::= SHOW db_name_cond_opt ALIVE */
340, /* (280) cmd ::= SHOW CLUSTER ALIVE */
400, /* (281) db_name_cond_opt ::= */
400, /* (282) db_name_cond_opt ::= db_name NK_DOT */
401, /* (283) like_pattern_opt ::= */
401, /* (284) like_pattern_opt ::= LIKE NK_STRING */
402, /* (285) table_name_cond ::= table_name */
403, /* (286) from_db_opt ::= */
403, /* (287) from_db_opt ::= FROM db_name */
404, /* (288) tag_list_opt ::= */
404, /* (289) tag_list_opt ::= tag_item */
404, /* (290) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
405, /* (291) tag_item ::= TBNAME */
405, /* (292) tag_item ::= QTAGS */
405, /* (293) tag_item ::= column_name */
405, /* (294) tag_item ::= column_name column_alias */
405, /* (295) tag_item ::= column_name AS column_alias */
340, /* (296) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
340, /* (297) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
340, /* (298) cmd ::= DROP INDEX exists_opt full_index_name */
408, /* (299) full_index_name ::= index_name */
408, /* (300) full_index_name ::= db_name NK_DOT index_name */
407, /* (301) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
407, /* (302) 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 */
410, /* (303) func_list ::= func */
410, /* (304) func_list ::= func_list NK_COMMA func */
413, /* (305) func ::= sma_func_name NK_LP expression_list NK_RP */
414, /* (306) sma_func_name ::= function_name */
414, /* (307) sma_func_name ::= COUNT */
414, /* (308) sma_func_name ::= FIRST */
414, /* (309) sma_func_name ::= LAST */
414, /* (310) sma_func_name ::= LAST_ROW */
412, /* (311) sma_stream_opt ::= */
412, /* (312) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
412, /* (313) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
412, /* (314) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
415, /* (315) with_meta ::= AS */
415, /* (316) with_meta ::= WITH META AS */
415, /* (317) with_meta ::= ONLY META AS */
340, /* (318) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
340, /* (319) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
340, /* (320) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
340, /* (321) cmd ::= DROP TOPIC exists_opt topic_name */
340, /* (322) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
340, /* (323) cmd ::= DESC full_table_name */
340, /* (324) cmd ::= DESCRIBE full_table_name */
340, /* (325) cmd ::= RESET QUERY CACHE */
340, /* (326) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
340, /* (327) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
419, /* (328) analyze_opt ::= */
419, /* (329) analyze_opt ::= ANALYZE */
420, /* (330) explain_options ::= */
420, /* (331) explain_options ::= explain_options VERBOSE NK_BOOL */
420, /* (332) explain_options ::= explain_options RATIO NK_FLOAT */
340, /* (333) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
340, /* (334) cmd ::= DROP FUNCTION exists_opt function_name */
423, /* (335) agg_func_opt ::= */
423, /* (336) agg_func_opt ::= AGGREGATE */
424, /* (337) bufsize_opt ::= */
424, /* (338) bufsize_opt ::= BUFSIZE NK_INTEGER */
425, /* (339) language_opt ::= */
425, /* (340) language_opt ::= LANGUAGE NK_STRING */
422, /* (341) or_replace_opt ::= */
422, /* (342) or_replace_opt ::= OR REPLACE */
340, /* (343) 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 */
340, /* (344) cmd ::= DROP STREAM exists_opt stream_name */
340, /* (345) cmd ::= PAUSE STREAM exists_opt stream_name */
340, /* (346) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
428, /* (347) col_list_opt ::= */
428, /* (348) col_list_opt ::= NK_LP col_name_list NK_RP */
429, /* (349) tag_def_or_ref_opt ::= */
429, /* (350) tag_def_or_ref_opt ::= tags_def */
429, /* (351) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
427, /* (352) stream_options ::= */
427, /* (353) stream_options ::= stream_options TRIGGER AT_ONCE */
427, /* (354) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
427, /* (355) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
427, /* (356) stream_options ::= stream_options WATERMARK duration_literal */
427, /* (357) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
427, /* (358) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
427, /* (359) stream_options ::= stream_options DELETE_MARK duration_literal */
427, /* (360) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
430, /* (361) subtable_opt ::= */
430, /* (362) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
431, /* (363) ignore_opt ::= */
431, /* (364) ignore_opt ::= IGNORE UNTREATED */
340, /* (365) cmd ::= KILL CONNECTION NK_INTEGER */
340, /* (366) cmd ::= KILL QUERY NK_STRING */
340, /* (367) cmd ::= KILL TRANSACTION NK_INTEGER */
340, /* (368) cmd ::= BALANCE VGROUP */
340, /* (369) cmd ::= BALANCE VGROUP LEADER */
340, /* (370) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
340, /* (371) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
340, /* (372) cmd ::= SPLIT VGROUP NK_INTEGER */
433, /* (373) dnode_list ::= DNODE NK_INTEGER */
433, /* (374) dnode_list ::= dnode_list DNODE NK_INTEGER */
340, /* (375) cmd ::= DELETE FROM full_table_name where_clause_opt */
340, /* (376) cmd ::= query_or_subquery */
340, /* (377) cmd ::= insert_query */
421, /* (378) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
421, /* (379) insert_query ::= INSERT INTO full_table_name query_or_subquery */
343, /* (380) literal ::= NK_INTEGER */
343, /* (381) literal ::= NK_FLOAT */
343, /* (382) literal ::= NK_STRING */
343, /* (383) literal ::= NK_BOOL */
343, /* (384) literal ::= TIMESTAMP NK_STRING */
343, /* (385) literal ::= duration_literal */
343, /* (386) literal ::= NULL */
343, /* (387) literal ::= NK_QUESTION */
396, /* (388) duration_literal ::= NK_VARIABLE */
372, /* (389) signed ::= NK_INTEGER */
372, /* (390) signed ::= NK_PLUS NK_INTEGER */
372, /* (391) signed ::= NK_MINUS NK_INTEGER */
372, /* (392) signed ::= NK_FLOAT */
372, /* (393) signed ::= NK_PLUS NK_FLOAT */
372, /* (394) signed ::= NK_MINUS NK_FLOAT */
386, /* (395) signed_literal ::= signed */
386, /* (396) signed_literal ::= NK_STRING */
386, /* (397) signed_literal ::= NK_BOOL */
386, /* (398) signed_literal ::= TIMESTAMP NK_STRING */
386, /* (399) signed_literal ::= duration_literal */
386, /* (400) signed_literal ::= NULL */
386, /* (401) signed_literal ::= literal_func */
386, /* (402) signed_literal ::= NK_QUESTION */
435, /* (403) literal_list ::= signed_literal */
435, /* (404) literal_list ::= literal_list NK_COMMA signed_literal */
355, /* (405) db_name ::= NK_ID */
356, /* (406) table_name ::= NK_ID */
384, /* (407) column_name ::= NK_ID */
398, /* (408) function_name ::= NK_ID */
436, /* (409) table_alias ::= NK_ID */
406, /* (410) column_alias ::= NK_ID */
348, /* (411) user_name ::= NK_ID */
357, /* (412) topic_name ::= NK_ID */
426, /* (413) stream_name ::= NK_ID */
418, /* (414) cgroup_name ::= NK_ID */
409, /* (415) index_name ::= NK_ID */
437, /* (416) expr_or_subquery ::= expression */
432, /* (417) expression ::= literal */
432, /* (418) expression ::= pseudo_column */
432, /* (419) expression ::= column_reference */
432, /* (420) expression ::= function_expression */
432, /* (421) expression ::= case_when_expression */
432, /* (422) expression ::= NK_LP expression NK_RP */
432, /* (423) expression ::= NK_PLUS expr_or_subquery */
432, /* (424) expression ::= NK_MINUS expr_or_subquery */
432, /* (425) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
432, /* (426) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
432, /* (427) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
432, /* (428) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
432, /* (429) expression ::= expr_or_subquery NK_REM expr_or_subquery */
432, /* (430) expression ::= column_reference NK_ARROW NK_STRING */
432, /* (431) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
432, /* (432) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
389, /* (433) expression_list ::= expr_or_subquery */
389, /* (434) expression_list ::= expression_list NK_COMMA expr_or_subquery */
439, /* (435) column_reference ::= column_name */
439, /* (436) column_reference ::= table_name NK_DOT column_name */
438, /* (437) pseudo_column ::= ROWTS */
438, /* (438) pseudo_column ::= TBNAME */
438, /* (439) pseudo_column ::= table_name NK_DOT TBNAME */
438, /* (440) pseudo_column ::= QSTART */
438, /* (441) pseudo_column ::= QEND */
438, /* (442) pseudo_column ::= QDURATION */
438, /* (443) pseudo_column ::= WSTART */
438, /* (444) pseudo_column ::= WEND */
438, /* (445) pseudo_column ::= WDURATION */
438, /* (446) pseudo_column ::= IROWTS */
438, /* (447) pseudo_column ::= ISFILLED */
438, /* (448) pseudo_column ::= QTAGS */
440, /* (449) function_expression ::= function_name NK_LP expression_list NK_RP */
440, /* (450) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
440, /* (451) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
440, /* (452) function_expression ::= literal_func */
434, /* (453) literal_func ::= noarg_func NK_LP NK_RP */
434, /* (454) literal_func ::= NOW */
444, /* (455) noarg_func ::= NOW */
444, /* (456) noarg_func ::= TODAY */
444, /* (457) noarg_func ::= TIMEZONE */
444, /* (458) noarg_func ::= DATABASE */
444, /* (459) noarg_func ::= CLIENT_VERSION */
444, /* (460) noarg_func ::= SERVER_VERSION */
444, /* (461) noarg_func ::= SERVER_STATUS */
444, /* (462) noarg_func ::= CURRENT_USER */
444, /* (463) noarg_func ::= USER */
442, /* (464) star_func ::= COUNT */
442, /* (465) star_func ::= FIRST */
442, /* (466) star_func ::= LAST */
442, /* (467) star_func ::= LAST_ROW */
443, /* (468) star_func_para_list ::= NK_STAR */
443, /* (469) star_func_para_list ::= other_para_list */
445, /* (470) other_para_list ::= star_func_para */
445, /* (471) other_para_list ::= other_para_list NK_COMMA star_func_para */
446, /* (472) star_func_para ::= expr_or_subquery */
446, /* (473) star_func_para ::= table_name NK_DOT NK_STAR */
441, /* (474) case_when_expression ::= CASE when_then_list case_when_else_opt END */
441, /* (475) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
447, /* (476) when_then_list ::= when_then_expr */
447, /* (477) when_then_list ::= when_then_list when_then_expr */
450, /* (478) when_then_expr ::= WHEN common_expression THEN common_expression */
448, /* (479) case_when_else_opt ::= */
448, /* (480) case_when_else_opt ::= ELSE common_expression */
451, /* (481) predicate ::= expr_or_subquery compare_op expr_or_subquery */
451, /* (482) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
451, /* (483) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
451, /* (484) predicate ::= expr_or_subquery IS NULL */
451, /* (485) predicate ::= expr_or_subquery IS NOT NULL */
451, /* (486) predicate ::= expr_or_subquery in_op in_predicate_value */
452, /* (487) compare_op ::= NK_LT */
452, /* (488) compare_op ::= NK_GT */
452, /* (489) compare_op ::= NK_LE */
452, /* (490) compare_op ::= NK_GE */
452, /* (491) compare_op ::= NK_NE */
452, /* (492) compare_op ::= NK_EQ */
452, /* (493) compare_op ::= LIKE */
452, /* (494) compare_op ::= NOT LIKE */
452, /* (495) compare_op ::= MATCH */
452, /* (496) compare_op ::= NMATCH */
452, /* (497) compare_op ::= CONTAINS */
453, /* (498) in_op ::= IN */
453, /* (499) in_op ::= NOT IN */
454, /* (500) in_predicate_value ::= NK_LP literal_list NK_RP */
455, /* (501) boolean_value_expression ::= boolean_primary */
455, /* (502) boolean_value_expression ::= NOT boolean_primary */
455, /* (503) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
455, /* (504) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
456, /* (505) boolean_primary ::= predicate */
456, /* (506) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
449, /* (507) common_expression ::= expr_or_subquery */
449, /* (508) common_expression ::= boolean_value_expression */
457, /* (509) from_clause_opt ::= */
457, /* (510) from_clause_opt ::= FROM table_reference_list */
458, /* (511) table_reference_list ::= table_reference */
458, /* (512) table_reference_list ::= table_reference_list NK_COMMA table_reference */
459, /* (513) table_reference ::= table_primary */
459, /* (514) table_reference ::= joined_table */
460, /* (515) table_primary ::= table_name alias_opt */
460, /* (516) table_primary ::= db_name NK_DOT table_name alias_opt */
460, /* (517) table_primary ::= subquery alias_opt */
460, /* (518) table_primary ::= parenthesized_joined_table */
462, /* (519) alias_opt ::= */
462, /* (520) alias_opt ::= table_alias */
462, /* (521) alias_opt ::= AS table_alias */
464, /* (522) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
464, /* (523) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
461, /* (524) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
465, /* (525) join_type ::= */
465, /* (526) join_type ::= INNER */
466, /* (527) 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 */
467, /* (528) hint_list ::= */
467, /* (529) hint_list ::= NK_HINT */
469, /* (530) tag_mode_opt ::= */
469, /* (531) tag_mode_opt ::= TAGS */
468, /* (532) set_quantifier_opt ::= */
468, /* (533) set_quantifier_opt ::= DISTINCT */
468, /* (534) set_quantifier_opt ::= ALL */
470, /* (535) select_list ::= select_item */
470, /* (536) select_list ::= select_list NK_COMMA select_item */
478, /* (537) select_item ::= NK_STAR */
478, /* (538) select_item ::= common_expression */
478, /* (539) select_item ::= common_expression column_alias */
478, /* (540) select_item ::= common_expression AS column_alias */
478, /* (541) select_item ::= table_name NK_DOT NK_STAR */
417, /* (542) where_clause_opt ::= */
417, /* (543) where_clause_opt ::= WHERE search_condition */
471, /* (544) partition_by_clause_opt ::= */
471, /* (545) partition_by_clause_opt ::= PARTITION BY partition_list */
479, /* (546) partition_list ::= partition_item */
479, /* (547) partition_list ::= partition_list NK_COMMA partition_item */
480, /* (548) partition_item ::= expr_or_subquery */
480, /* (549) partition_item ::= expr_or_subquery column_alias */
480, /* (550) partition_item ::= expr_or_subquery AS column_alias */
475, /* (551) twindow_clause_opt ::= */
475, /* (552) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
475, /* (553) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
475, /* (554) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
475, /* (555) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
475, /* (556) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
411, /* (557) sliding_opt ::= */
411, /* (558) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
474, /* (559) fill_opt ::= */
474, /* (560) fill_opt ::= FILL NK_LP fill_mode NK_RP */
474, /* (561) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
474, /* (562) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
481, /* (563) fill_mode ::= NONE */
481, /* (564) fill_mode ::= PREV */
481, /* (565) fill_mode ::= NULL */
481, /* (566) fill_mode ::= NULL_F */
481, /* (567) fill_mode ::= LINEAR */
481, /* (568) fill_mode ::= NEXT */
476, /* (569) group_by_clause_opt ::= */
476, /* (570) group_by_clause_opt ::= GROUP BY group_by_list */
482, /* (571) group_by_list ::= expr_or_subquery */
482, /* (572) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
477, /* (573) having_clause_opt ::= */
477, /* (574) having_clause_opt ::= HAVING search_condition */
472, /* (575) range_opt ::= */
472, /* (576) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
472, /* (577) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
473, /* (578) every_opt ::= */
473, /* (579) every_opt ::= EVERY NK_LP duration_literal NK_RP */
483, /* (580) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
484, /* (581) query_simple ::= query_specification */
484, /* (582) query_simple ::= union_query_expression */
488, /* (583) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
488, /* (584) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
489, /* (585) query_simple_or_subquery ::= query_simple */
489, /* (586) query_simple_or_subquery ::= subquery */
416, /* (587) query_or_subquery ::= query_expression */
416, /* (588) query_or_subquery ::= subquery */
485, /* (589) order_by_clause_opt ::= */
485, /* (590) order_by_clause_opt ::= ORDER BY sort_specification_list */
486, /* (591) slimit_clause_opt ::= */
486, /* (592) slimit_clause_opt ::= SLIMIT NK_INTEGER */
486, /* (593) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
486, /* (594) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
487, /* (595) limit_clause_opt ::= */
487, /* (596) limit_clause_opt ::= LIMIT NK_INTEGER */
487, /* (597) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
487, /* (598) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
463, /* (599) subquery ::= NK_LP query_expression NK_RP */
463, /* (600) subquery ::= NK_LP subquery NK_RP */
358, /* (601) search_condition ::= common_expression */
490, /* (602) sort_specification_list ::= sort_specification */
490, /* (603) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
491, /* (604) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
492, /* (605) ordering_specification_opt ::= */
492, /* (606) ordering_specification_opt ::= ASC */
492, /* (607) ordering_specification_opt ::= DESC */
493, /* (608) null_ordering_opt ::= */
493, /* (609) null_ordering_opt ::= NULLS FIRST */
493, /* (610) null_ordering_opt ::= NULLS LAST */
};
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static const signed char yyRuleInfoNRhs[] = {
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
0, /* (2) account_options ::= */
-3, /* (3) account_options ::= account_options PPS literal */
-3, /* (4) account_options ::= account_options TSERIES literal */
-3, /* (5) account_options ::= account_options STORAGE literal */
-3, /* (6) account_options ::= account_options STREAMS literal */
-3, /* (7) account_options ::= account_options QTIME literal */
-3, /* (8) account_options ::= account_options DBS literal */
-3, /* (9) account_options ::= account_options USERS literal */
-3, /* (10) account_options ::= account_options CONNS literal */
-3, /* (11) account_options ::= account_options STATE literal */
-1, /* (12) alter_account_options ::= alter_account_option */
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
-2, /* (14) alter_account_option ::= PASS literal */
-2, /* (15) alter_account_option ::= PPS literal */
-2, /* (16) alter_account_option ::= TSERIES literal */
-2, /* (17) alter_account_option ::= STORAGE literal */
-2, /* (18) alter_account_option ::= STREAMS literal */
-2, /* (19) alter_account_option ::= QTIME literal */
-2, /* (20) alter_account_option ::= DBS literal */
-2, /* (21) alter_account_option ::= USERS literal */
-2, /* (22) alter_account_option ::= CONNS literal */
-2, /* (23) alter_account_option ::= STATE literal */
-1, /* (24) ip_range_list ::= NK_STRING */
-3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
-2, /* (26) white_list ::= HOST ip_range_list */
0, /* (27) white_list_opt ::= */
-1, /* (28) white_list_opt ::= white_list */
-7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
-5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
-5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
-5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
-5, /* (33) cmd ::= ALTER USER user_name ADD white_list */
-5, /* (34) cmd ::= ALTER USER user_name DROP white_list */
-3, /* (35) cmd ::= DROP USER user_name */
0, /* (36) sysinfo_opt ::= */
-2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
-7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
-7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
-1, /* (40) privileges ::= ALL */
-1, /* (41) privileges ::= priv_type_list */
-1, /* (42) privileges ::= SUBSCRIBE */
-1, /* (43) priv_type_list ::= priv_type */
-3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
-1, /* (45) priv_type ::= READ */
-1, /* (46) priv_type ::= WRITE */
-3, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */
-3, /* (48) priv_level ::= db_name NK_DOT NK_STAR */
-3, /* (49) priv_level ::= db_name NK_DOT table_name */
-1, /* (50) priv_level ::= topic_name */
0, /* (51) with_opt ::= */
-2, /* (52) with_opt ::= WITH search_condition */
-3, /* (53) cmd ::= CREATE DNODE dnode_endpoint */
-5, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
-4, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */
-4, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */
-4, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
-4, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
-4, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
-5, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
-4, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */
-5, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
-3, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */
-1, /* (64) dnode_endpoint ::= NK_STRING */
-1, /* (65) dnode_endpoint ::= NK_ID */
-1, /* (66) dnode_endpoint ::= NK_IPTOKEN */
0, /* (67) force_opt ::= */
-1, /* (68) force_opt ::= FORCE */
-1, /* (69) unsafe_opt ::= UNSAFE */
-3, /* (70) cmd ::= ALTER LOCAL NK_STRING */
-4, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
-5, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
-5, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
-5, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
-5, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
-5, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
-5, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
-5, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
-5, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
-5, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
-5, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
-5, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
-5, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
-4, /* (84) cmd ::= DROP DATABASE exists_opt db_name */
-2, /* (85) cmd ::= USE db_name */
-4, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */
-3, /* (87) cmd ::= FLUSH DATABASE db_name */
-4, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */
-5, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
-3, /* (90) not_exists_opt ::= IF NOT EXISTS */
0, /* (91) not_exists_opt ::= */
-2, /* (92) exists_opt ::= IF EXISTS */
0, /* (93) exists_opt ::= */
0, /* (94) db_options ::= */
-3, /* (95) db_options ::= db_options BUFFER NK_INTEGER */
-3, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */
-3, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */
-3, /* (98) db_options ::= db_options COMP NK_INTEGER */
-3, /* (99) db_options ::= db_options DURATION NK_INTEGER */
-3, /* (100) db_options ::= db_options DURATION NK_VARIABLE */
-3, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */
-3, /* (102) db_options ::= db_options MINROWS NK_INTEGER */
-3, /* (103) db_options ::= db_options KEEP integer_list */
-3, /* (104) db_options ::= db_options KEEP variable_list */
-3, /* (105) db_options ::= db_options PAGES NK_INTEGER */
-3, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */
-3, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
-3, /* (108) db_options ::= db_options PRECISION NK_STRING */
-3, /* (109) db_options ::= db_options REPLICA NK_INTEGER */
-3, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */
-3, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
-3, /* (112) db_options ::= db_options RETENTIONS retention_list */
-3, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */
-3, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */
-3, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
-3, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
-4, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-3, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
-4, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-3, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
-3, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
-3, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */
-3, /* (123) db_options ::= db_options TABLE_PREFIX signed */
-3, /* (124) db_options ::= db_options TABLE_SUFFIX signed */
-1, /* (125) alter_db_options ::= alter_db_option */
-2, /* (126) alter_db_options ::= alter_db_options alter_db_option */
-2, /* (127) alter_db_option ::= BUFFER NK_INTEGER */
-2, /* (128) alter_db_option ::= CACHEMODEL NK_STRING */
-2, /* (129) alter_db_option ::= CACHESIZE NK_INTEGER */
-2, /* (130) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
-2, /* (131) alter_db_option ::= KEEP integer_list */
-2, /* (132) alter_db_option ::= KEEP variable_list */
-2, /* (133) alter_db_option ::= PAGES NK_INTEGER */
-2, /* (134) alter_db_option ::= REPLICA NK_INTEGER */
-2, /* (135) alter_db_option ::= WAL_LEVEL NK_INTEGER */
-2, /* (136) alter_db_option ::= STT_TRIGGER NK_INTEGER */
-2, /* (137) alter_db_option ::= MINROWS NK_INTEGER */
-2, /* (138) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
-3, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-2, /* (140) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
-3, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-1, /* (142) integer_list ::= NK_INTEGER */
-3, /* (143) integer_list ::= integer_list NK_COMMA NK_INTEGER */
-1, /* (144) variable_list ::= NK_VARIABLE */
-3, /* (145) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
-1, /* (146) retention_list ::= retention */
-3, /* (147) retention_list ::= retention_list NK_COMMA retention */
-3, /* (148) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
0, /* (149) speed_opt ::= */
-2, /* (150) speed_opt ::= BWLIMIT NK_INTEGER */
0, /* (151) start_opt ::= */
-3, /* (152) start_opt ::= START WITH NK_INTEGER */
-3, /* (153) start_opt ::= START WITH NK_STRING */
-4, /* (154) start_opt ::= START WITH TIMESTAMP NK_STRING */
0, /* (155) end_opt ::= */
-3, /* (156) end_opt ::= END WITH NK_INTEGER */
-3, /* (157) end_opt ::= END WITH NK_STRING */
-4, /* (158) end_opt ::= END WITH TIMESTAMP NK_STRING */
-9, /* (159) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
-3, /* (160) cmd ::= CREATE TABLE multi_create_clause */
-9, /* (161) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
-3, /* (162) cmd ::= DROP TABLE multi_drop_clause */
-4, /* (163) cmd ::= DROP STABLE exists_opt full_table_name */
-3, /* (164) cmd ::= ALTER TABLE alter_table_clause */
-3, /* (165) cmd ::= ALTER STABLE alter_table_clause */
-2, /* (166) alter_table_clause ::= full_table_name alter_table_options */
-5, /* (167) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
-4, /* (168) alter_table_clause ::= full_table_name DROP COLUMN column_name */
-5, /* (169) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
-5, /* (170) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-5, /* (171) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-4, /* (172) alter_table_clause ::= full_table_name DROP TAG column_name */
-5, /* (173) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-5, /* (174) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
-6, /* (175) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
-1, /* (176) multi_create_clause ::= create_subtable_clause */
-2, /* (177) multi_create_clause ::= multi_create_clause create_subtable_clause */
-10, /* (178) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
-1, /* (179) multi_drop_clause ::= drop_table_clause */
-3, /* (180) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
-2, /* (181) drop_table_clause ::= exists_opt full_table_name */
0, /* (182) specific_cols_opt ::= */
-3, /* (183) specific_cols_opt ::= NK_LP col_name_list NK_RP */
-1, /* (184) full_table_name ::= table_name */
-3, /* (185) full_table_name ::= db_name NK_DOT table_name */
-1, /* (186) column_def_list ::= column_def */
-3, /* (187) column_def_list ::= column_def_list NK_COMMA column_def */
-2, /* (188) column_def ::= column_name type_name */
-1, /* (189) type_name ::= BOOL */
-1, /* (190) type_name ::= TINYINT */
-1, /* (191) type_name ::= SMALLINT */
-1, /* (192) type_name ::= INT */
-1, /* (193) type_name ::= INTEGER */
-1, /* (194) type_name ::= BIGINT */
-1, /* (195) type_name ::= FLOAT */
-1, /* (196) type_name ::= DOUBLE */
-4, /* (197) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-1, /* (198) type_name ::= TIMESTAMP */
-4, /* (199) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-2, /* (200) type_name ::= TINYINT UNSIGNED */
-2, /* (201) type_name ::= SMALLINT UNSIGNED */
-2, /* (202) type_name ::= INT UNSIGNED */
-2, /* (203) type_name ::= BIGINT UNSIGNED */
-1, /* (204) type_name ::= JSON */
-4, /* (205) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-1, /* (206) type_name ::= MEDIUMBLOB */
-1, /* (207) type_name ::= BLOB */
-4, /* (208) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-4, /* (209) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
-1, /* (210) type_name ::= DECIMAL */
-4, /* (211) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-6, /* (212) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (213) tags_def_opt ::= */
-1, /* (214) tags_def_opt ::= tags_def */
-4, /* (215) tags_def ::= TAGS NK_LP column_def_list NK_RP */
0, /* (216) table_options ::= */
-3, /* (217) table_options ::= table_options COMMENT NK_STRING */
-3, /* (218) table_options ::= table_options MAX_DELAY duration_list */
-3, /* (219) table_options ::= table_options WATERMARK duration_list */
-5, /* (220) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
-3, /* (221) table_options ::= table_options TTL NK_INTEGER */
-5, /* (222) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-3, /* (223) table_options ::= table_options DELETE_MARK duration_list */
-1, /* (224) alter_table_options ::= alter_table_option */
-2, /* (225) alter_table_options ::= alter_table_options alter_table_option */
-2, /* (226) alter_table_option ::= COMMENT NK_STRING */
-2, /* (227) alter_table_option ::= TTL NK_INTEGER */
-1, /* (228) duration_list ::= duration_literal */
-3, /* (229) duration_list ::= duration_list NK_COMMA duration_literal */
-1, /* (230) rollup_func_list ::= rollup_func_name */
-3, /* (231) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
-1, /* (232) rollup_func_name ::= function_name */
-1, /* (233) rollup_func_name ::= FIRST */
-1, /* (234) rollup_func_name ::= LAST */
-1, /* (235) col_name_list ::= col_name */
-3, /* (236) col_name_list ::= col_name_list NK_COMMA col_name */
-1, /* (237) col_name ::= column_name */
-2, /* (238) cmd ::= SHOW DNODES */
-2, /* (239) cmd ::= SHOW USERS */
-3, /* (240) cmd ::= SHOW USER PRIVILEGES */
-2, /* (241) cmd ::= SHOW DATABASES */
-4, /* (242) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
-4, /* (243) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-3, /* (244) cmd ::= SHOW db_name_cond_opt VGROUPS */
-2, /* (245) cmd ::= SHOW MNODES */
-2, /* (246) cmd ::= SHOW QNODES */
-2, /* (247) cmd ::= SHOW FUNCTIONS */
-5, /* (248) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-6, /* (249) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
-2, /* (250) cmd ::= SHOW STREAMS */
-2, /* (251) cmd ::= SHOW ACCOUNTS */
-2, /* (252) cmd ::= SHOW APPS */
-2, /* (253) cmd ::= SHOW CONNECTIONS */
-2, /* (254) cmd ::= SHOW LICENCES */
-2, /* (255) cmd ::= SHOW GRANTS */
-4, /* (256) cmd ::= SHOW CREATE DATABASE db_name */
-4, /* (257) cmd ::= SHOW CREATE TABLE full_table_name */
-4, /* (258) cmd ::= SHOW CREATE STABLE full_table_name */
-2, /* (259) cmd ::= SHOW QUERIES */
-2, /* (260) cmd ::= SHOW SCORES */
-2, /* (261) cmd ::= SHOW TOPICS */
-2, /* (262) cmd ::= SHOW VARIABLES */
-3, /* (263) cmd ::= SHOW CLUSTER VARIABLES */
-3, /* (264) cmd ::= SHOW LOCAL VARIABLES */
-5, /* (265) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
-2, /* (266) cmd ::= SHOW BNODES */
-2, /* (267) cmd ::= SHOW SNODES */
-2, /* (268) cmd ::= SHOW CLUSTER */
-2, /* (269) cmd ::= SHOW TRANSACTIONS */
-4, /* (270) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
-2, /* (271) cmd ::= SHOW CONSUMERS */
-2, /* (272) cmd ::= SHOW SUBSCRIPTIONS */
-5, /* (273) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
-6, /* (274) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
-7, /* (275) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
-8, /* (276) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
-5, /* (277) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
-2, /* (278) cmd ::= SHOW VNODES */
-3, /* (279) cmd ::= SHOW db_name_cond_opt ALIVE */
-3, /* (280) cmd ::= SHOW CLUSTER ALIVE */
0, /* (281) db_name_cond_opt ::= */
-2, /* (282) db_name_cond_opt ::= db_name NK_DOT */
0, /* (283) like_pattern_opt ::= */
-2, /* (284) like_pattern_opt ::= LIKE NK_STRING */
-1, /* (285) table_name_cond ::= table_name */
0, /* (286) from_db_opt ::= */
-2, /* (287) from_db_opt ::= FROM db_name */
0, /* (288) tag_list_opt ::= */
-1, /* (289) tag_list_opt ::= tag_item */
-3, /* (290) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
-1, /* (291) tag_item ::= TBNAME */
-1, /* (292) tag_item ::= QTAGS */
-1, /* (293) tag_item ::= column_name */
-2, /* (294) tag_item ::= column_name column_alias */
-3, /* (295) tag_item ::= column_name AS column_alias */
-8, /* (296) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
-9, /* (297) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
-4, /* (298) cmd ::= DROP INDEX exists_opt full_index_name */
-1, /* (299) full_index_name ::= index_name */
-3, /* (300) full_index_name ::= db_name NK_DOT index_name */
-10, /* (301) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
-12, /* (302) 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, /* (303) func_list ::= func */
-3, /* (304) func_list ::= func_list NK_COMMA func */
-4, /* (305) func ::= sma_func_name NK_LP expression_list NK_RP */
-1, /* (306) sma_func_name ::= function_name */
-1, /* (307) sma_func_name ::= COUNT */
-1, /* (308) sma_func_name ::= FIRST */
-1, /* (309) sma_func_name ::= LAST */
-1, /* (310) sma_func_name ::= LAST_ROW */
0, /* (311) sma_stream_opt ::= */
-3, /* (312) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
-3, /* (313) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
-3, /* (314) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
-1, /* (315) with_meta ::= AS */
-3, /* (316) with_meta ::= WITH META AS */
-3, /* (317) with_meta ::= ONLY META AS */
-6, /* (318) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
-7, /* (319) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
-8, /* (320) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
-4, /* (321) cmd ::= DROP TOPIC exists_opt topic_name */
-7, /* (322) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
-2, /* (323) cmd ::= DESC full_table_name */
-2, /* (324) cmd ::= DESCRIBE full_table_name */
-3, /* (325) cmd ::= RESET QUERY CACHE */
-4, /* (326) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
-4, /* (327) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
0, /* (328) analyze_opt ::= */
-1, /* (329) analyze_opt ::= ANALYZE */
0, /* (330) explain_options ::= */
-3, /* (331) explain_options ::= explain_options VERBOSE NK_BOOL */
-3, /* (332) explain_options ::= explain_options RATIO NK_FLOAT */
-12, /* (333) 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, /* (334) cmd ::= DROP FUNCTION exists_opt function_name */
0, /* (335) agg_func_opt ::= */
-1, /* (336) agg_func_opt ::= AGGREGATE */
0, /* (337) bufsize_opt ::= */
-2, /* (338) bufsize_opt ::= BUFSIZE NK_INTEGER */
0, /* (339) language_opt ::= */
-2, /* (340) language_opt ::= LANGUAGE NK_STRING */
0, /* (341) or_replace_opt ::= */
-2, /* (342) or_replace_opt ::= OR REPLACE */
-12, /* (343) 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, /* (344) cmd ::= DROP STREAM exists_opt stream_name */
-4, /* (345) cmd ::= PAUSE STREAM exists_opt stream_name */
-5, /* (346) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
0, /* (347) col_list_opt ::= */
-3, /* (348) col_list_opt ::= NK_LP col_name_list NK_RP */
0, /* (349) tag_def_or_ref_opt ::= */
-1, /* (350) tag_def_or_ref_opt ::= tags_def */
-4, /* (351) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
0, /* (352) stream_options ::= */
-3, /* (353) stream_options ::= stream_options TRIGGER AT_ONCE */
-3, /* (354) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
-4, /* (355) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
-3, /* (356) stream_options ::= stream_options WATERMARK duration_literal */
-4, /* (357) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
-3, /* (358) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
-3, /* (359) stream_options ::= stream_options DELETE_MARK duration_literal */
-4, /* (360) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
0, /* (361) subtable_opt ::= */
-4, /* (362) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
0, /* (363) ignore_opt ::= */
-2, /* (364) ignore_opt ::= IGNORE UNTREATED */
-3, /* (365) cmd ::= KILL CONNECTION NK_INTEGER */
-3, /* (366) cmd ::= KILL QUERY NK_STRING */
-3, /* (367) cmd ::= KILL TRANSACTION NK_INTEGER */
-2, /* (368) cmd ::= BALANCE VGROUP */
-3, /* (369) cmd ::= BALANCE VGROUP LEADER */
-4, /* (370) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
-4, /* (371) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-3, /* (372) cmd ::= SPLIT VGROUP NK_INTEGER */
-2, /* (373) dnode_list ::= DNODE NK_INTEGER */
-3, /* (374) dnode_list ::= dnode_list DNODE NK_INTEGER */
-4, /* (375) cmd ::= DELETE FROM full_table_name where_clause_opt */
-1, /* (376) cmd ::= query_or_subquery */
-1, /* (377) cmd ::= insert_query */
-7, /* (378) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
-4, /* (379) insert_query ::= INSERT INTO full_table_name query_or_subquery */
-1, /* (380) literal ::= NK_INTEGER */
-1, /* (381) literal ::= NK_FLOAT */
-1, /* (382) literal ::= NK_STRING */
-1, /* (383) literal ::= NK_BOOL */
-2, /* (384) literal ::= TIMESTAMP NK_STRING */
-1, /* (385) literal ::= duration_literal */
-1, /* (386) literal ::= NULL */
-1, /* (387) literal ::= NK_QUESTION */
-1, /* (388) duration_literal ::= NK_VARIABLE */
-1, /* (389) signed ::= NK_INTEGER */
-2, /* (390) signed ::= NK_PLUS NK_INTEGER */
-2, /* (391) signed ::= NK_MINUS NK_INTEGER */
-1, /* (392) signed ::= NK_FLOAT */
-2, /* (393) signed ::= NK_PLUS NK_FLOAT */
-2, /* (394) signed ::= NK_MINUS NK_FLOAT */
-1, /* (395) signed_literal ::= signed */
-1, /* (396) signed_literal ::= NK_STRING */
-1, /* (397) signed_literal ::= NK_BOOL */
-2, /* (398) signed_literal ::= TIMESTAMP NK_STRING */
-1, /* (399) signed_literal ::= duration_literal */
-1, /* (400) signed_literal ::= NULL */
-1, /* (401) signed_literal ::= literal_func */
-1, /* (402) signed_literal ::= NK_QUESTION */
-1, /* (403) literal_list ::= signed_literal */
-3, /* (404) literal_list ::= literal_list NK_COMMA signed_literal */
-1, /* (405) db_name ::= NK_ID */
-1, /* (406) table_name ::= NK_ID */
-1, /* (407) column_name ::= NK_ID */
-1, /* (408) function_name ::= NK_ID */
-1, /* (409) table_alias ::= NK_ID */
-1, /* (410) column_alias ::= NK_ID */
-1, /* (411) user_name ::= NK_ID */
-1, /* (412) topic_name ::= NK_ID */
-1, /* (413) stream_name ::= NK_ID */
-1, /* (414) cgroup_name ::= NK_ID */
-1, /* (415) index_name ::= NK_ID */
-1, /* (416) expr_or_subquery ::= expression */
-1, /* (417) expression ::= literal */
-1, /* (418) expression ::= pseudo_column */
-1, /* (419) expression ::= column_reference */
-1, /* (420) expression ::= function_expression */
-1, /* (421) expression ::= case_when_expression */
-3, /* (422) expression ::= NK_LP expression NK_RP */
-2, /* (423) expression ::= NK_PLUS expr_or_subquery */
-2, /* (424) expression ::= NK_MINUS expr_or_subquery */
-3, /* (425) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
-3, /* (426) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
-3, /* (427) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
-3, /* (428) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
-3, /* (429) expression ::= expr_or_subquery NK_REM expr_or_subquery */
-3, /* (430) expression ::= column_reference NK_ARROW NK_STRING */
-3, /* (431) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
-3, /* (432) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
-1, /* (433) expression_list ::= expr_or_subquery */
-3, /* (434) expression_list ::= expression_list NK_COMMA expr_or_subquery */
-1, /* (435) column_reference ::= column_name */
-3, /* (436) column_reference ::= table_name NK_DOT column_name */
-1, /* (437) pseudo_column ::= ROWTS */
-1, /* (438) pseudo_column ::= TBNAME */
-3, /* (439) pseudo_column ::= table_name NK_DOT TBNAME */
-1, /* (440) pseudo_column ::= QSTART */
-1, /* (441) pseudo_column ::= QEND */
-1, /* (442) pseudo_column ::= QDURATION */
-1, /* (443) pseudo_column ::= WSTART */
-1, /* (444) pseudo_column ::= WEND */
-1, /* (445) pseudo_column ::= WDURATION */
-1, /* (446) pseudo_column ::= IROWTS */
-1, /* (447) pseudo_column ::= ISFILLED */
-1, /* (448) pseudo_column ::= QTAGS */
-4, /* (449) function_expression ::= function_name NK_LP expression_list NK_RP */
-4, /* (450) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
-6, /* (451) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
-1, /* (452) function_expression ::= literal_func */
-3, /* (453) literal_func ::= noarg_func NK_LP NK_RP */
-1, /* (454) literal_func ::= NOW */
-1, /* (455) noarg_func ::= NOW */
-1, /* (456) noarg_func ::= TODAY */
-1, /* (457) noarg_func ::= TIMEZONE */
-1, /* (458) noarg_func ::= DATABASE */
-1, /* (459) noarg_func ::= CLIENT_VERSION */
-1, /* (460) noarg_func ::= SERVER_VERSION */
-1, /* (461) noarg_func ::= SERVER_STATUS */
-1, /* (462) noarg_func ::= CURRENT_USER */
-1, /* (463) noarg_func ::= USER */
-1, /* (464) star_func ::= COUNT */
-1, /* (465) star_func ::= FIRST */
-1, /* (466) star_func ::= LAST */
-1, /* (467) star_func ::= LAST_ROW */
-1, /* (468) star_func_para_list ::= NK_STAR */
-1, /* (469) star_func_para_list ::= other_para_list */
-1, /* (470) other_para_list ::= star_func_para */
-3, /* (471) other_para_list ::= other_para_list NK_COMMA star_func_para */
-1, /* (472) star_func_para ::= expr_or_subquery */
-3, /* (473) star_func_para ::= table_name NK_DOT NK_STAR */
-4, /* (474) case_when_expression ::= CASE when_then_list case_when_else_opt END */
-5, /* (475) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
-1, /* (476) when_then_list ::= when_then_expr */
-2, /* (477) when_then_list ::= when_then_list when_then_expr */
-4, /* (478) when_then_expr ::= WHEN common_expression THEN common_expression */
0, /* (479) case_when_else_opt ::= */
-2, /* (480) case_when_else_opt ::= ELSE common_expression */
-3, /* (481) predicate ::= expr_or_subquery compare_op expr_or_subquery */
-5, /* (482) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
-6, /* (483) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
-3, /* (484) predicate ::= expr_or_subquery IS NULL */
-4, /* (485) predicate ::= expr_or_subquery IS NOT NULL */
-3, /* (486) predicate ::= expr_or_subquery in_op in_predicate_value */
-1, /* (487) compare_op ::= NK_LT */
-1, /* (488) compare_op ::= NK_GT */
-1, /* (489) compare_op ::= NK_LE */
-1, /* (490) compare_op ::= NK_GE */
-1, /* (491) compare_op ::= NK_NE */
-1, /* (492) compare_op ::= NK_EQ */
-1, /* (493) compare_op ::= LIKE */
-2, /* (494) compare_op ::= NOT LIKE */
-1, /* (495) compare_op ::= MATCH */
-1, /* (496) compare_op ::= NMATCH */
-1, /* (497) compare_op ::= CONTAINS */
-1, /* (498) in_op ::= IN */
-2, /* (499) in_op ::= NOT IN */
-3, /* (500) in_predicate_value ::= NK_LP literal_list NK_RP */
-1, /* (501) boolean_value_expression ::= boolean_primary */
-2, /* (502) boolean_value_expression ::= NOT boolean_primary */
-3, /* (503) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
-3, /* (504) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
-1, /* (505) boolean_primary ::= predicate */
-3, /* (506) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
-1, /* (507) common_expression ::= expr_or_subquery */
-1, /* (508) common_expression ::= boolean_value_expression */
0, /* (509) from_clause_opt ::= */
-2, /* (510) from_clause_opt ::= FROM table_reference_list */
-1, /* (511) table_reference_list ::= table_reference */
-3, /* (512) table_reference_list ::= table_reference_list NK_COMMA table_reference */
-1, /* (513) table_reference ::= table_primary */
-1, /* (514) table_reference ::= joined_table */
-2, /* (515) table_primary ::= table_name alias_opt */
-4, /* (516) table_primary ::= db_name NK_DOT table_name alias_opt */
-2, /* (517) table_primary ::= subquery alias_opt */
-1, /* (518) table_primary ::= parenthesized_joined_table */
0, /* (519) alias_opt ::= */
-1, /* (520) alias_opt ::= table_alias */
-2, /* (521) alias_opt ::= AS table_alias */
-3, /* (522) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
-3, /* (523) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
-6, /* (524) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
0, /* (525) join_type ::= */
-1, /* (526) join_type ::= INNER */
-14, /* (527) 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, /* (528) hint_list ::= */
-1, /* (529) hint_list ::= NK_HINT */
0, /* (530) tag_mode_opt ::= */
-1, /* (531) tag_mode_opt ::= TAGS */
0, /* (532) set_quantifier_opt ::= */
-1, /* (533) set_quantifier_opt ::= DISTINCT */
-1, /* (534) set_quantifier_opt ::= ALL */
-1, /* (535) select_list ::= select_item */
-3, /* (536) select_list ::= select_list NK_COMMA select_item */
-1, /* (537) select_item ::= NK_STAR */
-1, /* (538) select_item ::= common_expression */
-2, /* (539) select_item ::= common_expression column_alias */
-3, /* (540) select_item ::= common_expression AS column_alias */
-3, /* (541) select_item ::= table_name NK_DOT NK_STAR */
0, /* (542) where_clause_opt ::= */
-2, /* (543) where_clause_opt ::= WHERE search_condition */
0, /* (544) partition_by_clause_opt ::= */
-3, /* (545) partition_by_clause_opt ::= PARTITION BY partition_list */
-1, /* (546) partition_list ::= partition_item */
-3, /* (547) partition_list ::= partition_list NK_COMMA partition_item */
-1, /* (548) partition_item ::= expr_or_subquery */
-2, /* (549) partition_item ::= expr_or_subquery column_alias */
-3, /* (550) partition_item ::= expr_or_subquery AS column_alias */
0, /* (551) twindow_clause_opt ::= */
-6, /* (552) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
-4, /* (553) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
-6, /* (554) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
-8, /* (555) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
-7, /* (556) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
0, /* (557) sliding_opt ::= */
-4, /* (558) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
0, /* (559) fill_opt ::= */
-4, /* (560) fill_opt ::= FILL NK_LP fill_mode NK_RP */
-6, /* (561) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
-6, /* (562) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
-1, /* (563) fill_mode ::= NONE */
-1, /* (564) fill_mode ::= PREV */
-1, /* (565) fill_mode ::= NULL */
-1, /* (566) fill_mode ::= NULL_F */
-1, /* (567) fill_mode ::= LINEAR */
-1, /* (568) fill_mode ::= NEXT */
0, /* (569) group_by_clause_opt ::= */
-3, /* (570) group_by_clause_opt ::= GROUP BY group_by_list */
-1, /* (571) group_by_list ::= expr_or_subquery */
-3, /* (572) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
0, /* (573) having_clause_opt ::= */
-2, /* (574) having_clause_opt ::= HAVING search_condition */
0, /* (575) range_opt ::= */
-6, /* (576) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
-4, /* (577) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
0, /* (578) every_opt ::= */
-4, /* (579) every_opt ::= EVERY NK_LP duration_literal NK_RP */
-4, /* (580) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
-1, /* (581) query_simple ::= query_specification */
-1, /* (582) query_simple ::= union_query_expression */
-4, /* (583) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
-3, /* (584) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
-1, /* (585) query_simple_or_subquery ::= query_simple */
-1, /* (586) query_simple_or_subquery ::= subquery */
-1, /* (587) query_or_subquery ::= query_expression */
-1, /* (588) query_or_subquery ::= subquery */
0, /* (589) order_by_clause_opt ::= */
-3, /* (590) order_by_clause_opt ::= ORDER BY sort_specification_list */
0, /* (591) slimit_clause_opt ::= */
-2, /* (592) slimit_clause_opt ::= SLIMIT NK_INTEGER */
-4, /* (593) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
-4, /* (594) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
0, /* (595) limit_clause_opt ::= */
-2, /* (596) limit_clause_opt ::= LIMIT NK_INTEGER */
-4, /* (597) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
-4, /* (598) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
-3, /* (599) subquery ::= NK_LP query_expression NK_RP */
-3, /* (600) subquery ::= NK_LP subquery NK_RP */
-1, /* (601) search_condition ::= common_expression */
-1, /* (602) sort_specification_list ::= sort_specification */
-3, /* (603) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
-3, /* (604) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
0, /* (605) ordering_specification_opt ::= */
-1, /* (606) ordering_specification_opt ::= ASC */
-1, /* (607) ordering_specification_opt ::= DESC */
0, /* (608) null_ordering_opt ::= */
-2, /* (609) null_ordering_opt ::= NULLS FIRST */
-2, /* (610) null_ordering_opt ::= NULLS LAST */
};
static void yy_accept(yyParser*); /* Forward Declaration */
/*
** Perform a reduce action and the shift that must immediately
** follow the reduce.
**
** The yyLookahead and yyLookaheadToken parameters provide reduce actions
** access to the lookahead token (if any). The yyLookahead will be YYNOCODE
** if the lookahead token has already been consumed. As this procedure is
** only called from one place, optimizing compilers will in-line it, which
** means that the extra parameters have no performance impact.
*/
static YYACTIONTYPE yy_reduce(
yyParser *yypParser, /* The parser */
unsigned int yyruleno, /* Number of the rule by which to reduce */
int yyLookahead, /* Lookahead token, or YYNOCODE if none */
ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */
ParseCTX_PDECL /* %extra_context */
){
int yygoto; /* The next state */
YYACTIONTYPE yyact; /* The next action */
yyStackEntry *yymsp; /* The top of the parser's stack */
int yysize; /* Amount to pop the stack */
ParseARG_FETCH
(void)yyLookahead;
(void)yyLookaheadToken;
yymsp = yypParser->yytos;
switch( yyruleno ){
/* Beginning here are the reduction cases. A typical example
** follows:
** case 0:
** #line <lineno> <grammarfile>
** { ... } // User supplied code
** #line <lineno> <thisfile>
** break;
*/
/********** Begin reduce actions **********************************************/
YYMINORTYPE yylhsminor;
case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
#line 50 "sql.y"
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
#line 4855 "sql.c"
yy_destructor(yypParser,341,&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 4861 "sql.c"
yy_destructor(yypParser,342,&yymsp[0].minor);
break;
case 2: /* account_options ::= */
#line 55 "sql.y"
{ }
#line 4867 "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,341,&yymsp[-2].minor);
#line 56 "sql.y"
{ }
#line 4881 "sql.c"
yy_destructor(yypParser,343,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
{ yy_destructor(yypParser,344,&yymsp[0].minor);
#line 68 "sql.y"
{ }
#line 4889 "sql.c"
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
{ yy_destructor(yypParser,342,&yymsp[-1].minor);
#line 69 "sql.y"
{ }
#line 4896 "sql.c"
yy_destructor(yypParser,344,&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 4912 "sql.c"
yy_destructor(yypParser,343,&yymsp[0].minor);
break;
case 24: /* ip_range_list ::= NK_STRING */
#line 86 "sql.y"
{ yylhsminor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
#line 4918 "sql.c"
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
#line 87 "sql.y"
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
#line 4924 "sql.c"
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 26: /* white_list ::= HOST ip_range_list */
#line 91 "sql.y"
{ yymsp[-1].minor.yy236 = yymsp[0].minor.yy236; }
#line 4930 "sql.c"
break;
case 27: /* white_list_opt ::= */
case 182: /* specific_cols_opt ::= */ yytestcase(yyruleno==182);
case 213: /* tags_def_opt ::= */ yytestcase(yyruleno==213);
case 288: /* tag_list_opt ::= */ yytestcase(yyruleno==288);
case 347: /* col_list_opt ::= */ yytestcase(yyruleno==347);
case 349: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==349);
case 544: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==544);
case 569: /* group_by_clause_opt ::= */ yytestcase(yyruleno==569);
case 589: /* order_by_clause_opt ::= */ yytestcase(yyruleno==589);
#line 95 "sql.y"
{ yymsp[1].minor.yy236 = NULL; }
#line 4943 "sql.c"
break;
case 28: /* white_list_opt ::= white_list */
case 214: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==214);
case 350: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==350);
case 469: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==469);
#line 96 "sql.y"
{ yylhsminor.yy236 = yymsp[0].minor.yy236; }
#line 4951 "sql.c"
yymsp[0].minor.yy236 = yylhsminor.yy236;
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.yy889, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy847);
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy236);
}
#line 4960 "sql.c"
break;
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
#line 104 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
#line 4965 "sql.c"
break;
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
#line 105 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
#line 4970 "sql.c"
break;
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
#line 106 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
#line 4975 "sql.c"
break;
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
#line 107 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy236); }
#line 4980 "sql.c"
break;
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
#line 108 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy236); }
#line 4985 "sql.c"
break;
case 35: /* cmd ::= DROP USER user_name */
#line 109 "sql.y"
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy889); }
#line 4990 "sql.c"
break;
case 36: /* sysinfo_opt ::= */
#line 113 "sql.y"
{ yymsp[1].minor.yy847 = 1; }
#line 4995 "sql.c"
break;
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
#line 114 "sql.y"
{ yymsp[-1].minor.yy847 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
#line 5000 "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.yy701, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy889, yymsp[-2].minor.yy28); }
#line 5005 "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.yy701, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy889, yymsp[-2].minor.yy28); }
#line 5010 "sql.c"
break;
case 40: /* privileges ::= ALL */
#line 122 "sql.y"
{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_ALL; }
#line 5015 "sql.c"
break;
case 41: /* privileges ::= priv_type_list */
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
#line 123 "sql.y"
{ yylhsminor.yy701 = yymsp[0].minor.yy701; }
#line 5021 "sql.c"
yymsp[0].minor.yy701 = yylhsminor.yy701;
break;
case 42: /* privileges ::= SUBSCRIBE */
#line 124 "sql.y"
{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_SUBSCRIBE; }
#line 5027 "sql.c"
break;
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
#line 129 "sql.y"
{ yylhsminor.yy701 = yymsp[-2].minor.yy701 | yymsp[0].minor.yy701; }
#line 5032 "sql.c"
yymsp[-2].minor.yy701 = yylhsminor.yy701;
break;
case 45: /* priv_type ::= READ */
#line 133 "sql.y"
{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_READ; }
#line 5038 "sql.c"
break;
case 46: /* priv_type ::= WRITE */
#line 134 "sql.y"
{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_WRITE; }
#line 5043 "sql.c"
break;
case 47: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
#line 138 "sql.y"
{ yylhsminor.yy833.first = yymsp[-2].minor.yy0; yylhsminor.yy833.second = yymsp[0].minor.yy0; }
#line 5048 "sql.c"
yymsp[-2].minor.yy833 = yylhsminor.yy833;
break;
case 48: /* priv_level ::= db_name NK_DOT NK_STAR */
#line 139 "sql.y"
{ yylhsminor.yy833.first = yymsp[-2].minor.yy889; yylhsminor.yy833.second = yymsp[0].minor.yy0; }
#line 5054 "sql.c"
yymsp[-2].minor.yy833 = yylhsminor.yy833;
break;
case 49: /* priv_level ::= db_name NK_DOT table_name */
#line 140 "sql.y"
{ yylhsminor.yy833.first = yymsp[-2].minor.yy889; yylhsminor.yy833.second = yymsp[0].minor.yy889; }
#line 5060 "sql.c"
yymsp[-2].minor.yy833 = yylhsminor.yy833;
break;
case 50: /* priv_level ::= topic_name */
#line 141 "sql.y"
{ yylhsminor.yy833.first = yymsp[0].minor.yy889; yylhsminor.yy833.second = nil_token; }
#line 5066 "sql.c"
yymsp[0].minor.yy833 = yylhsminor.yy833;
break;
case 51: /* with_opt ::= */
case 151: /* start_opt ::= */ yytestcase(yyruleno==151);
case 155: /* end_opt ::= */ yytestcase(yyruleno==155);
case 283: /* like_pattern_opt ::= */ yytestcase(yyruleno==283);
case 361: /* subtable_opt ::= */ yytestcase(yyruleno==361);
case 479: /* case_when_else_opt ::= */ yytestcase(yyruleno==479);
case 509: /* from_clause_opt ::= */ yytestcase(yyruleno==509);
case 542: /* where_clause_opt ::= */ yytestcase(yyruleno==542);
case 551: /* twindow_clause_opt ::= */ yytestcase(yyruleno==551);
case 557: /* sliding_opt ::= */ yytestcase(yyruleno==557);
case 559: /* fill_opt ::= */ yytestcase(yyruleno==559);
case 573: /* having_clause_opt ::= */ yytestcase(yyruleno==573);
case 575: /* range_opt ::= */ yytestcase(yyruleno==575);
case 578: /* every_opt ::= */ yytestcase(yyruleno==578);
case 591: /* slimit_clause_opt ::= */ yytestcase(yyruleno==591);
case 595: /* limit_clause_opt ::= */ yytestcase(yyruleno==595);
#line 143 "sql.y"
{ yymsp[1].minor.yy28 = NULL; }
#line 5087 "sql.c"
break;
case 52: /* with_opt ::= WITH search_condition */
case 510: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==510);
case 543: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==543);
case 574: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==574);
#line 144 "sql.y"
{ yymsp[-1].minor.yy28 = yymsp[0].minor.yy28; }
#line 5095 "sql.c"
break;
case 53: /* cmd ::= CREATE DNODE dnode_endpoint */
#line 147 "sql.y"
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy889, NULL); }
#line 5100 "sql.c"
break;
case 54: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
#line 148 "sql.y"
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0); }
#line 5105 "sql.c"
break;
case 55: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
#line 149 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy793, false); }
#line 5110 "sql.c"
break;
case 56: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
#line 150 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy793, false); }
#line 5115 "sql.c"
break;
case 57: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
#line 151 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy793); }
#line 5120 "sql.c"
break;
case 58: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
#line 152 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy889, false, yymsp[0].minor.yy793); }
#line 5125 "sql.c"
break;
case 59: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
#line 153 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
#line 5130 "sql.c"
break;
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
#line 154 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
#line 5135 "sql.c"
break;
case 61: /* cmd ::= ALTER ALL DNODES NK_STRING */
#line 155 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
#line 5140 "sql.c"
break;
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
#line 156 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
#line 5145 "sql.c"
break;
case 63: /* cmd ::= RESTORE DNODE NK_INTEGER */
#line 157 "sql.y"
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
#line 5150 "sql.c"
break;
case 64: /* dnode_endpoint ::= NK_STRING */
case 65: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==65);
case 66: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==66);
case 307: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==307);
case 308: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==308);
case 309: /* sma_func_name ::= LAST */ yytestcase(yyruleno==309);
case 310: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==310);
case 405: /* db_name ::= NK_ID */ yytestcase(yyruleno==405);
case 406: /* table_name ::= NK_ID */ yytestcase(yyruleno==406);
case 407: /* column_name ::= NK_ID */ yytestcase(yyruleno==407);
case 408: /* function_name ::= NK_ID */ yytestcase(yyruleno==408);
case 409: /* table_alias ::= NK_ID */ yytestcase(yyruleno==409);
case 410: /* column_alias ::= NK_ID */ yytestcase(yyruleno==410);
case 411: /* user_name ::= NK_ID */ yytestcase(yyruleno==411);
case 412: /* topic_name ::= NK_ID */ yytestcase(yyruleno==412);
case 413: /* stream_name ::= NK_ID */ yytestcase(yyruleno==413);
case 414: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==414);
case 415: /* index_name ::= NK_ID */ yytestcase(yyruleno==415);
case 455: /* noarg_func ::= NOW */ yytestcase(yyruleno==455);
case 456: /* noarg_func ::= TODAY */ yytestcase(yyruleno==456);
case 457: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==457);
case 458: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==458);
case 459: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==459);
case 460: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==460);
case 461: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==461);
case 462: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==462);
case 463: /* noarg_func ::= USER */ yytestcase(yyruleno==463);
case 464: /* star_func ::= COUNT */ yytestcase(yyruleno==464);
case 465: /* star_func ::= FIRST */ yytestcase(yyruleno==465);
case 466: /* star_func ::= LAST */ yytestcase(yyruleno==466);
case 467: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==467);
#line 161 "sql.y"
{ yylhsminor.yy889 = yymsp[0].minor.yy0; }
#line 5185 "sql.c"
yymsp[0].minor.yy889 = yylhsminor.yy889;
break;
case 67: /* force_opt ::= */
case 91: /* not_exists_opt ::= */ yytestcase(yyruleno==91);
case 93: /* exists_opt ::= */ yytestcase(yyruleno==93);
case 328: /* analyze_opt ::= */ yytestcase(yyruleno==328);
case 335: /* agg_func_opt ::= */ yytestcase(yyruleno==335);
case 341: /* or_replace_opt ::= */ yytestcase(yyruleno==341);
case 363: /* ignore_opt ::= */ yytestcase(yyruleno==363);
case 530: /* tag_mode_opt ::= */ yytestcase(yyruleno==530);
case 532: /* set_quantifier_opt ::= */ yytestcase(yyruleno==532);
#line 167 "sql.y"
{ yymsp[1].minor.yy793 = false; }
#line 5199 "sql.c"
break;
case 68: /* force_opt ::= FORCE */
case 69: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==69);
case 329: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==329);
case 336: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==336);
case 531: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==531);
case 533: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==533);
#line 168 "sql.y"
{ yymsp[0].minor.yy793 = true; }
#line 5209 "sql.c"
break;
case 70: /* cmd ::= ALTER LOCAL NK_STRING */
#line 175 "sql.y"
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
#line 5214 "sql.c"
break;
case 71: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
#line 176 "sql.y"
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
#line 5219 "sql.c"
break;
case 72: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
#line 179 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
#line 5224 "sql.c"
break;
case 73: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
#line 180 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
#line 5229 "sql.c"
break;
case 74: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
#line 181 "sql.y"
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
#line 5234 "sql.c"
break;
case 75: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
#line 184 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
#line 5239 "sql.c"
break;
case 76: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
#line 185 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
#line 5244 "sql.c"
break;
case 77: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
#line 188 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
#line 5249 "sql.c"
break;
case 78: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
#line 189 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
#line 5254 "sql.c"
break;
case 79: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
#line 192 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
#line 5259 "sql.c"
break;
case 80: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
#line 193 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
#line 5264 "sql.c"
break;
case 81: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
#line 194 "sql.y"
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
#line 5269 "sql.c"
break;
case 82: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
#line 197 "sql.y"
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
#line 5274 "sql.c"
break;
case 83: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
#line 200 "sql.y"
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy793, &yymsp[-1].minor.yy889, yymsp[0].minor.yy28); }
#line 5279 "sql.c"
break;
case 84: /* cmd ::= DROP DATABASE exists_opt db_name */
#line 201 "sql.y"
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); }
#line 5284 "sql.c"
break;
case 85: /* cmd ::= USE db_name */
#line 202 "sql.y"
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy889); }
#line 5289 "sql.c"
break;
case 86: /* cmd ::= ALTER DATABASE db_name alter_db_options */
#line 203 "sql.y"
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy28); }
#line 5294 "sql.c"
break;
case 87: /* cmd ::= FLUSH DATABASE db_name */
#line 204 "sql.y"
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy889); }
#line 5299 "sql.c"
break;
case 88: /* cmd ::= TRIM DATABASE db_name speed_opt */
#line 205 "sql.y"
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy956); }
#line 5304 "sql.c"
break;
case 89: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
#line 206 "sql.y"
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy889, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); }
#line 5309 "sql.c"
break;
case 90: /* not_exists_opt ::= IF NOT EXISTS */
#line 210 "sql.y"
{ yymsp[-2].minor.yy793 = true; }
#line 5314 "sql.c"
break;
case 92: /* exists_opt ::= IF EXISTS */
case 342: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==342);
case 364: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==364);
#line 215 "sql.y"
{ yymsp[-1].minor.yy793 = true; }
#line 5321 "sql.c"
break;
case 94: /* db_options ::= */
#line 218 "sql.y"
{ yymsp[1].minor.yy28 = createDefaultDatabaseOptions(pCxt); }
#line 5326 "sql.c"
break;
case 95: /* db_options ::= db_options BUFFER NK_INTEGER */
#line 219 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
#line 5331 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 96: /* db_options ::= db_options CACHEMODEL NK_STRING */
#line 220 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
#line 5337 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 97: /* db_options ::= db_options CACHESIZE NK_INTEGER */
#line 221 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
#line 5343 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 98: /* db_options ::= db_options COMP NK_INTEGER */
#line 222 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
#line 5349 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 99: /* db_options ::= db_options DURATION NK_INTEGER */
case 100: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==100);
#line 223 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
#line 5356 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 101: /* db_options ::= db_options MAXROWS NK_INTEGER */
#line 225 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
#line 5362 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 102: /* db_options ::= db_options MINROWS NK_INTEGER */
#line 226 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
#line 5368 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 103: /* db_options ::= db_options KEEP integer_list */
case 104: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==104);
#line 227 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_KEEP, yymsp[0].minor.yy236); }
#line 5375 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 105: /* db_options ::= db_options PAGES NK_INTEGER */
#line 229 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
#line 5381 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 106: /* db_options ::= db_options PAGESIZE NK_INTEGER */
#line 230 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
#line 5387 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 107: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
#line 231 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
#line 5393 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 108: /* db_options ::= db_options PRECISION NK_STRING */
#line 232 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
#line 5399 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 109: /* db_options ::= db_options REPLICA NK_INTEGER */
#line 233 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
#line 5405 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 110: /* db_options ::= db_options VGROUPS NK_INTEGER */
#line 235 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
#line 5411 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 111: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
#line 236 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
#line 5417 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 112: /* db_options ::= db_options RETENTIONS retention_list */
#line 237 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_RETENTIONS, yymsp[0].minor.yy236); }
#line 5423 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 113: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
#line 238 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
#line 5429 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 114: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
#line 239 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
#line 5435 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 115: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
#line 240 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
#line 5441 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 116: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
#line 241 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
#line 5447 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 117: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
#line 242 "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.yy28 = setDatabaseOption(pCxt, yymsp[-3].minor.yy28, DB_OPTION_WAL_RETENTION_PERIOD, &t);
}
#line 5457 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 118: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
#line 247 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
#line 5463 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 119: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
#line 248 "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.yy28 = setDatabaseOption(pCxt, yymsp[-3].minor.yy28, DB_OPTION_WAL_RETENTION_SIZE, &t);
}
#line 5473 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 120: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
#line 253 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
#line 5479 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 121: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
#line 254 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
#line 5485 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 122: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
#line 255 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
#line 5491 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 123: /* db_options ::= db_options TABLE_PREFIX signed */
#line 256 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy28); }
#line 5497 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 124: /* db_options ::= db_options TABLE_SUFFIX signed */
#line 257 "sql.y"
{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy28); }
#line 5503 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 125: /* alter_db_options ::= alter_db_option */
#line 259 "sql.y"
{ yylhsminor.yy28 = createAlterDatabaseOptions(pCxt); yylhsminor.yy28 = setAlterDatabaseOption(pCxt, yylhsminor.yy28, &yymsp[0].minor.yy481); }
#line 5509 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 126: /* alter_db_options ::= alter_db_options alter_db_option */
#line 260 "sql.y"
{ yylhsminor.yy28 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy28, &yymsp[0].minor.yy481); }
#line 5515 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 127: /* alter_db_option ::= BUFFER NK_INTEGER */
#line 264 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5521 "sql.c"
break;
case 128: /* alter_db_option ::= CACHEMODEL NK_STRING */
#line 265 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5526 "sql.c"
break;
case 129: /* alter_db_option ::= CACHESIZE NK_INTEGER */
#line 266 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5531 "sql.c"
break;
case 130: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
#line 267 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5536 "sql.c"
break;
case 131: /* alter_db_option ::= KEEP integer_list */
case 132: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==132);
#line 268 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_KEEP; yymsp[-1].minor.yy481.pList = yymsp[0].minor.yy236; }
#line 5542 "sql.c"
break;
case 133: /* alter_db_option ::= PAGES NK_INTEGER */
#line 270 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_PAGES; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5547 "sql.c"
break;
case 134: /* alter_db_option ::= REPLICA NK_INTEGER */
#line 271 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5552 "sql.c"
break;
case 135: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
#line 273 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_WAL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5557 "sql.c"
break;
case 136: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
#line 274 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5562 "sql.c"
break;
case 137: /* alter_db_option ::= MINROWS NK_INTEGER */
#line 275 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5567 "sql.c"
break;
case 138: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
#line 276 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5572 "sql.c"
break;
case 139: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
#line 277 "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.yy481.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy481.val = t;
}
#line 5581 "sql.c"
break;
case 140: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
#line 282 "sql.y"
{ yymsp[-1].minor.yy481.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 5586 "sql.c"
break;
case 141: /* alter_db_option ::= WAL_RETENTION_SIZE 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.yy481.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy481.val = t;
}
#line 5595 "sql.c"
break;
case 142: /* integer_list ::= NK_INTEGER */
#line 291 "sql.y"
{ yylhsminor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 5600 "sql.c"
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 143: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
case 374: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==374);
#line 292 "sql.y"
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 5607 "sql.c"
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 144: /* variable_list ::= NK_VARIABLE */
#line 296 "sql.y"
{ yylhsminor.yy236 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 5613 "sql.c"
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 145: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
#line 297 "sql.y"
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 5619 "sql.c"
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 146: /* retention_list ::= retention */
case 176: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==176);
case 179: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==179);
case 186: /* column_def_list ::= column_def */ yytestcase(yyruleno==186);
case 230: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==230);
case 235: /* col_name_list ::= col_name */ yytestcase(yyruleno==235);
case 289: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==289);
case 303: /* func_list ::= func */ yytestcase(yyruleno==303);
case 403: /* literal_list ::= signed_literal */ yytestcase(yyruleno==403);
case 470: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==470);
case 476: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==476);
case 535: /* select_list ::= select_item */ yytestcase(yyruleno==535);
case 546: /* partition_list ::= partition_item */ yytestcase(yyruleno==546);
case 602: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==602);
#line 301 "sql.y"
{ yylhsminor.yy236 = createNodeList(pCxt, yymsp[0].minor.yy28); }
#line 5638 "sql.c"
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 147: /* retention_list ::= retention_list NK_COMMA retention */
case 180: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==180);
case 187: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==187);
case 231: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==231);
case 236: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==236);
case 290: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==290);
case 304: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==304);
case 404: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==404);
case 471: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==471);
case 536: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==536);
case 547: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==547);
case 603: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==603);
#line 302 "sql.y"
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); }
#line 5655 "sql.c"
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 148: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
#line 304 "sql.y"
{ yylhsminor.yy28 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 5661 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 149: /* speed_opt ::= */
case 337: /* bufsize_opt ::= */ yytestcase(yyruleno==337);
#line 308 "sql.y"
{ yymsp[1].minor.yy956 = 0; }
#line 5668 "sql.c"
break;
case 150: /* speed_opt ::= BWLIMIT NK_INTEGER */
case 338: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==338);
#line 309 "sql.y"
{ yymsp[-1].minor.yy956 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
#line 5674 "sql.c"
break;
case 152: /* start_opt ::= START WITH NK_INTEGER */
case 156: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==156);
#line 312 "sql.y"
{ yymsp[-2].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
#line 5680 "sql.c"
break;
case 153: /* start_opt ::= START WITH NK_STRING */
case 157: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==157);
#line 313 "sql.y"
{ yymsp[-2].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
#line 5686 "sql.c"
break;
case 154: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
case 158: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==158);
#line 314 "sql.y"
{ yymsp[-3].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
#line 5692 "sql.c"
break;
case 159: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
case 161: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==161);
#line 323 "sql.y"
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy793, yymsp[-5].minor.yy28, yymsp[-3].minor.yy236, yymsp[-1].minor.yy236, yymsp[0].minor.yy28); }
#line 5698 "sql.c"
break;
case 160: /* cmd ::= CREATE TABLE multi_create_clause */
#line 324 "sql.y"
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy236); }
#line 5703 "sql.c"
break;
case 162: /* cmd ::= DROP TABLE multi_drop_clause */
#line 327 "sql.y"
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy236); }
#line 5708 "sql.c"
break;
case 163: /* cmd ::= DROP STABLE exists_opt full_table_name */
#line 328 "sql.y"
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); }
#line 5713 "sql.c"
break;
case 164: /* cmd ::= ALTER TABLE alter_table_clause */
case 376: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==376);
case 377: /* cmd ::= insert_query */ yytestcase(yyruleno==377);
#line 330 "sql.y"
{ pCxt->pRootNode = yymsp[0].minor.yy28; }
#line 5720 "sql.c"
break;
case 165: /* cmd ::= ALTER STABLE alter_table_clause */
#line 331 "sql.y"
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy28); }
#line 5725 "sql.c"
break;
case 166: /* alter_table_clause ::= full_table_name alter_table_options */
#line 333 "sql.y"
{ yylhsminor.yy28 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); }
#line 5730 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 167: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
#line 335 "sql.y"
{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); }
#line 5736 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 168: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
#line 336 "sql.y"
{ yylhsminor.yy28 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy28, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy889); }
#line 5742 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 169: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
#line 338 "sql.y"
{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); }
#line 5748 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 170: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
#line 340 "sql.y"
{ yylhsminor.yy28 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); }
#line 5754 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 171: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
#line 342 "sql.y"
{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); }
#line 5760 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 172: /* alter_table_clause ::= full_table_name DROP TAG column_name */
#line 343 "sql.y"
{ yylhsminor.yy28 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy28, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy889); }
#line 5766 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 173: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
#line 345 "sql.y"
{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); }
#line 5772 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 174: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
#line 347 "sql.y"
{ yylhsminor.yy28 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); }
#line 5778 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 175: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
#line 349 "sql.y"
{ yylhsminor.yy28 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy28, &yymsp[-2].minor.yy889, yymsp[0].minor.yy28); }
#line 5784 "sql.c"
yymsp[-5].minor.yy28 = yylhsminor.yy28;
break;
case 177: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
case 477: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==477);
#line 354 "sql.y"
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-1].minor.yy236, yymsp[0].minor.yy28); }
#line 5791 "sql.c"
yymsp[-1].minor.yy236 = yylhsminor.yy236;
break;
case 178: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
#line 358 "sql.y"
{ yylhsminor.yy28 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy793, yymsp[-8].minor.yy28, yymsp[-6].minor.yy28, yymsp[-5].minor.yy236, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); }
#line 5797 "sql.c"
yymsp[-9].minor.yy28 = yylhsminor.yy28;
break;
case 181: /* drop_table_clause ::= exists_opt full_table_name */
#line 365 "sql.y"
{ yylhsminor.yy28 = createDropTableClause(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); }
#line 5803 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 183: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
case 348: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==348);
#line 370 "sql.y"
{ yymsp[-2].minor.yy236 = yymsp[-1].minor.yy236; }
#line 5810 "sql.c"
break;
case 184: /* full_table_name ::= table_name */
#line 372 "sql.y"
{ yylhsminor.yy28 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy889, NULL); }
#line 5815 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 185: /* full_table_name ::= db_name NK_DOT table_name */
#line 373 "sql.y"
{ yylhsminor.yy28 = createRealTableNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889, NULL); }
#line 5821 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 188: /* column_def ::= column_name type_name */
#line 380 "sql.y"
{ yylhsminor.yy28 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32, NULL); }
#line 5827 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 189: /* type_name ::= BOOL */
#line 385 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BOOL); }
#line 5833 "sql.c"
break;
case 190: /* type_name ::= TINYINT */
#line 386 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_TINYINT); }
#line 5838 "sql.c"
break;
case 191: /* type_name ::= SMALLINT */
#line 387 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
#line 5843 "sql.c"
break;
case 192: /* type_name ::= INT */
case 193: /* type_name ::= INTEGER */ yytestcase(yyruleno==193);
#line 388 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_INT); }
#line 5849 "sql.c"
break;
case 194: /* type_name ::= BIGINT */
#line 390 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BIGINT); }
#line 5854 "sql.c"
break;
case 195: /* type_name ::= FLOAT */
#line 391 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_FLOAT); }
#line 5859 "sql.c"
break;
case 196: /* type_name ::= DOUBLE */
#line 392 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
#line 5864 "sql.c"
break;
case 197: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
#line 393 "sql.y"
{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
#line 5869 "sql.c"
break;
case 198: /* type_name ::= TIMESTAMP */
#line 394 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
#line 5874 "sql.c"
break;
case 199: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
#line 395 "sql.y"
{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
#line 5879 "sql.c"
break;
case 200: /* type_name ::= TINYINT UNSIGNED */
#line 396 "sql.y"
{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
#line 5884 "sql.c"
break;
case 201: /* type_name ::= SMALLINT UNSIGNED */
#line 397 "sql.y"
{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
#line 5889 "sql.c"
break;
case 202: /* type_name ::= INT UNSIGNED */
#line 398 "sql.y"
{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UINT); }
#line 5894 "sql.c"
break;
case 203: /* type_name ::= BIGINT UNSIGNED */
#line 399 "sql.y"
{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
#line 5899 "sql.c"
break;
case 204: /* type_name ::= JSON */
#line 400 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_JSON); }
#line 5904 "sql.c"
break;
case 205: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
#line 401 "sql.y"
{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
#line 5909 "sql.c"
break;
case 206: /* type_name ::= MEDIUMBLOB */
#line 402 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
#line 5914 "sql.c"
break;
case 207: /* type_name ::= BLOB */
#line 403 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BLOB); }
#line 5919 "sql.c"
break;
case 208: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
#line 404 "sql.y"
{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
#line 5924 "sql.c"
break;
case 209: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
#line 405 "sql.y"
{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
#line 5929 "sql.c"
break;
case 210: /* type_name ::= DECIMAL */
#line 406 "sql.y"
{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
#line 5934 "sql.c"
break;
case 211: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
#line 407 "sql.y"
{ yymsp[-3].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
#line 5939 "sql.c"
break;
case 212: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
#line 408 "sql.y"
{ yymsp[-5].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
#line 5944 "sql.c"
break;
case 215: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
case 351: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==351);
#line 417 "sql.y"
{ yymsp[-3].minor.yy236 = yymsp[-1].minor.yy236; }
#line 5950 "sql.c"
break;
case 216: /* table_options ::= */
#line 419 "sql.y"
{ yymsp[1].minor.yy28 = createDefaultTableOptions(pCxt); }
#line 5955 "sql.c"
break;
case 217: /* table_options ::= table_options COMMENT NK_STRING */
#line 420 "sql.y"
{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
#line 5960 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 218: /* table_options ::= table_options MAX_DELAY duration_list */
#line 421 "sql.y"
{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy236); }
#line 5966 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 219: /* table_options ::= table_options WATERMARK duration_list */
#line 422 "sql.y"
{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy236); }
#line 5972 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 220: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
#line 423 "sql.y"
{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-4].minor.yy28, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy236); }
#line 5978 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 221: /* table_options ::= table_options TTL NK_INTEGER */
#line 424 "sql.y"
{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
#line 5984 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 222: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
#line 425 "sql.y"
{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-4].minor.yy28, TABLE_OPTION_SMA, yymsp[-1].minor.yy236); }
#line 5990 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 223: /* table_options ::= table_options DELETE_MARK duration_list */
#line 426 "sql.y"
{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy236); }
#line 5996 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 224: /* alter_table_options ::= alter_table_option */
#line 428 "sql.y"
{ yylhsminor.yy28 = createAlterTableOptions(pCxt); yylhsminor.yy28 = setTableOption(pCxt, yylhsminor.yy28, yymsp[0].minor.yy481.type, &yymsp[0].minor.yy481.val); }
#line 6002 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 225: /* alter_table_options ::= alter_table_options alter_table_option */
#line 429 "sql.y"
{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy481.type, &yymsp[0].minor.yy481.val); }
#line 6008 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 226: /* alter_table_option ::= COMMENT NK_STRING */
#line 433 "sql.y"
{ yymsp[-1].minor.yy481.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 6014 "sql.c"
break;
case 227: /* alter_table_option ::= TTL NK_INTEGER */
#line 434 "sql.y"
{ yymsp[-1].minor.yy481.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; }
#line 6019 "sql.c"
break;
case 228: /* duration_list ::= duration_literal */
case 433: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==433);
#line 438 "sql.y"
{ yylhsminor.yy236 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); }
#line 6025 "sql.c"
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 229: /* duration_list ::= duration_list NK_COMMA duration_literal */
case 434: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==434);
#line 439 "sql.y"
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); }
#line 6032 "sql.c"
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 232: /* rollup_func_name ::= function_name */
#line 446 "sql.y"
{ yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[0].minor.yy889, NULL); }
#line 6038 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 233: /* rollup_func_name ::= FIRST */
case 234: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==234);
case 292: /* tag_item ::= QTAGS */ yytestcase(yyruleno==292);
#line 447 "sql.y"
{ yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
#line 6046 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 237: /* col_name ::= column_name */
case 293: /* tag_item ::= column_name */ yytestcase(yyruleno==293);
#line 455 "sql.y"
{ yylhsminor.yy28 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy889); }
#line 6053 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 238: /* cmd ::= SHOW DNODES */
#line 458 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
#line 6059 "sql.c"
break;
case 239: /* cmd ::= SHOW USERS */
#line 459 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
#line 6064 "sql.c"
break;
case 240: /* cmd ::= SHOW USER PRIVILEGES */
#line 460 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
#line 6069 "sql.c"
break;
case 241: /* cmd ::= SHOW DATABASES */
#line 461 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); }
#line 6074 "sql.c"
break;
case 242: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
#line 462 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, OP_TYPE_LIKE); }
#line 6079 "sql.c"
break;
case 243: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
#line 463 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, OP_TYPE_LIKE); }
#line 6084 "sql.c"
break;
case 244: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
#line 464 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy28, NULL, OP_TYPE_LIKE); }
#line 6089 "sql.c"
break;
case 245: /* cmd ::= SHOW MNODES */
#line 465 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
#line 6094 "sql.c"
break;
case 246: /* cmd ::= SHOW QNODES */
#line 467 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
#line 6099 "sql.c"
break;
case 247: /* cmd ::= SHOW FUNCTIONS */
#line 468 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
#line 6104 "sql.c"
break;
case 248: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
#line 469 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy28, yymsp[-1].minor.yy28, OP_TYPE_EQUAL); }
#line 6109 "sql.c"
break;
case 249: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
#line 470 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), OP_TYPE_EQUAL); }
#line 6114 "sql.c"
break;
case 250: /* cmd ::= SHOW STREAMS */
#line 471 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
#line 6119 "sql.c"
break;
case 251: /* cmd ::= SHOW ACCOUNTS */
#line 472 "sql.y"
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
#line 6124 "sql.c"
break;
case 252: /* cmd ::= SHOW APPS */
#line 473 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
#line 6129 "sql.c"
break;
case 253: /* cmd ::= SHOW CONNECTIONS */
#line 474 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
#line 6134 "sql.c"
break;
case 254: /* cmd ::= SHOW LICENCES */
case 255: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==255);
#line 475 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
#line 6140 "sql.c"
break;
case 256: /* cmd ::= SHOW CREATE DATABASE db_name */
#line 477 "sql.y"
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy889); }
#line 6145 "sql.c"
break;
case 257: /* cmd ::= SHOW CREATE TABLE full_table_name */
#line 478 "sql.y"
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy28); }
#line 6150 "sql.c"
break;
case 258: /* cmd ::= SHOW CREATE STABLE full_table_name */
#line 479 "sql.y"
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy28); }
#line 6155 "sql.c"
break;
case 259: /* cmd ::= SHOW QUERIES */
#line 480 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
#line 6160 "sql.c"
break;
case 260: /* cmd ::= SHOW SCORES */
#line 481 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
#line 6165 "sql.c"
break;
case 261: /* cmd ::= SHOW TOPICS */
#line 482 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
#line 6170 "sql.c"
break;
case 262: /* cmd ::= SHOW VARIABLES */
case 263: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==263);
#line 483 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
#line 6176 "sql.c"
break;
case 264: /* cmd ::= SHOW LOCAL VARIABLES */
#line 485 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
#line 6181 "sql.c"
break;
case 265: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
#line 486 "sql.y"
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy28); }
#line 6186 "sql.c"
break;
case 266: /* cmd ::= SHOW BNODES */
#line 487 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
#line 6191 "sql.c"
break;
case 267: /* cmd ::= SHOW SNODES */
#line 488 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
#line 6196 "sql.c"
break;
case 268: /* cmd ::= SHOW CLUSTER */
#line 489 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
#line 6201 "sql.c"
break;
case 269: /* cmd ::= SHOW TRANSACTIONS */
#line 490 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
#line 6206 "sql.c"
break;
case 270: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
#line 491 "sql.y"
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy28); }
#line 6211 "sql.c"
break;
case 271: /* cmd ::= SHOW CONSUMERS */
#line 492 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
#line 6216 "sql.c"
break;
case 272: /* cmd ::= SHOW SUBSCRIPTIONS */
#line 493 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
#line 6221 "sql.c"
break;
case 273: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
#line 494 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy28, yymsp[-1].minor.yy28, OP_TYPE_EQUAL); }
#line 6226 "sql.c"
break;
case 274: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
#line 495 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), OP_TYPE_EQUAL); }
#line 6231 "sql.c"
break;
case 275: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
#line 496 "sql.y"
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28, yymsp[-3].minor.yy236); }
#line 6236 "sql.c"
break;
case 276: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
#line 497 "sql.y"
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), yymsp[-4].minor.yy236); }
#line 6241 "sql.c"
break;
case 277: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
#line 498 "sql.y"
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
#line 6246 "sql.c"
break;
case 278: /* cmd ::= SHOW VNODES */
#line 499 "sql.y"
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
#line 6251 "sql.c"
break;
case 279: /* cmd ::= SHOW db_name_cond_opt ALIVE */
#line 501 "sql.y"
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy28, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
#line 6256 "sql.c"
break;
case 280: /* cmd ::= SHOW CLUSTER ALIVE */
#line 502 "sql.y"
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
#line 6261 "sql.c"
break;
case 281: /* db_name_cond_opt ::= */
case 286: /* from_db_opt ::= */ yytestcase(yyruleno==286);
#line 504 "sql.y"
{ yymsp[1].minor.yy28 = createDefaultDatabaseCondValue(pCxt); }
#line 6267 "sql.c"
break;
case 282: /* db_name_cond_opt ::= db_name NK_DOT */
#line 505 "sql.y"
{ yylhsminor.yy28 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy889); }
#line 6272 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 284: /* like_pattern_opt ::= LIKE NK_STRING */
#line 508 "sql.y"
{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
#line 6278 "sql.c"
break;
case 285: /* table_name_cond ::= table_name */
#line 510 "sql.y"
{ yylhsminor.yy28 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889); }
#line 6283 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 287: /* from_db_opt ::= FROM db_name */
#line 513 "sql.y"
{ yymsp[-1].minor.yy28 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889); }
#line 6289 "sql.c"
break;
case 291: /* tag_item ::= TBNAME */
#line 521 "sql.y"
{ yylhsminor.yy28 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
#line 6294 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 294: /* tag_item ::= column_name column_alias */
#line 524 "sql.y"
{ yylhsminor.yy28 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy889), &yymsp[0].minor.yy889); }
#line 6300 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 295: /* tag_item ::= column_name AS column_alias */
#line 525 "sql.y"
{ yylhsminor.yy28 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy889), &yymsp[0].minor.yy889); }
#line 6306 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 296: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
#line 529 "sql.y"
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy793, yymsp[-3].minor.yy28, yymsp[-1].minor.yy28, NULL, yymsp[0].minor.yy28); }
#line 6312 "sql.c"
break;
case 297: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
#line 531 "sql.y"
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy793, yymsp[-5].minor.yy28, yymsp[-3].minor.yy28, yymsp[-1].minor.yy236, NULL); }
#line 6317 "sql.c"
break;
case 298: /* cmd ::= DROP INDEX exists_opt full_index_name */
#line 532 "sql.y"
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); }
#line 6322 "sql.c"
break;
case 299: /* full_index_name ::= index_name */
#line 534 "sql.y"
{ yylhsminor.yy28 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy889); }
#line 6327 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 300: /* full_index_name ::= db_name NK_DOT index_name */
#line 535 "sql.y"
{ yylhsminor.yy28 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889); }
#line 6333 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 301: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
#line 538 "sql.y"
{ yymsp[-9].minor.yy28 = createIndexOption(pCxt, yymsp[-7].minor.yy236, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); }
#line 6339 "sql.c"
break;
case 302: /* 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 541 "sql.y"
{ yymsp[-11].minor.yy28 = createIndexOption(pCxt, yymsp[-9].minor.yy236, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy28, yymsp[0].minor.yy28); }
#line 6344 "sql.c"
break;
case 305: /* func ::= sma_func_name NK_LP expression_list NK_RP */
#line 548 "sql.y"
{ yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[-3].minor.yy889, yymsp[-1].minor.yy236); }
#line 6349 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 306: /* sma_func_name ::= function_name */
case 520: /* alias_opt ::= table_alias */ yytestcase(yyruleno==520);
#line 552 "sql.y"
{ yylhsminor.yy889 = yymsp[0].minor.yy889; }
#line 6356 "sql.c"
yymsp[0].minor.yy889 = yylhsminor.yy889;
break;
case 311: /* sma_stream_opt ::= */
case 352: /* stream_options ::= */ yytestcase(yyruleno==352);
#line 558 "sql.y"
{ yymsp[1].minor.yy28 = createStreamOptions(pCxt); }
#line 6363 "sql.c"
break;
case 312: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
#line 559 "sql.y"
{ ((SStreamOptions*)yymsp[-2].minor.yy28)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; }
#line 6368 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 313: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
#line 560 "sql.y"
{ ((SStreamOptions*)yymsp[-2].minor.yy28)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; }
#line 6374 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 314: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
#line 561 "sql.y"
{ ((SStreamOptions*)yymsp[-2].minor.yy28)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; }
#line 6380 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 315: /* with_meta ::= AS */
#line 566 "sql.y"
{ yymsp[0].minor.yy956 = 0; }
#line 6386 "sql.c"
break;
case 316: /* with_meta ::= WITH META AS */
#line 567 "sql.y"
{ yymsp[-2].minor.yy956 = 1; }
#line 6391 "sql.c"
break;
case 317: /* with_meta ::= ONLY META AS */
#line 568 "sql.y"
{ yymsp[-2].minor.yy956 = 2; }
#line 6396 "sql.c"
break;
case 318: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
#line 570 "sql.y"
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy793, &yymsp[-2].minor.yy889, yymsp[0].minor.yy28); }
#line 6401 "sql.c"
break;
case 319: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
#line 572 "sql.y"
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy793, &yymsp[-3].minor.yy889, &yymsp[0].minor.yy889, yymsp[-2].minor.yy956); }
#line 6406 "sql.c"
break;
case 320: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
#line 574 "sql.y"
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy793, &yymsp[-4].minor.yy889, yymsp[-1].minor.yy28, yymsp[-3].minor.yy956, yymsp[0].minor.yy28); }
#line 6411 "sql.c"
break;
case 321: /* cmd ::= DROP TOPIC exists_opt topic_name */
#line 576 "sql.y"
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); }
#line 6416 "sql.c"
break;
case 322: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
#line 577 "sql.y"
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy793, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889); }
#line 6421 "sql.c"
break;
case 323: /* cmd ::= DESC full_table_name */
case 324: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==324);
#line 580 "sql.y"
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy28); }
#line 6427 "sql.c"
break;
case 325: /* cmd ::= RESET QUERY CACHE */
#line 584 "sql.y"
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
#line 6432 "sql.c"
break;
case 326: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
case 327: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==327);
#line 587 "sql.y"
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy793, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); }
#line 6438 "sql.c"
break;
case 330: /* explain_options ::= */
#line 595 "sql.y"
{ yymsp[1].minor.yy28 = createDefaultExplainOptions(pCxt); }
#line 6443 "sql.c"
break;
case 331: /* explain_options ::= explain_options VERBOSE NK_BOOL */
#line 596 "sql.y"
{ yylhsminor.yy28 = setExplainVerbose(pCxt, yymsp[-2].minor.yy28, &yymsp[0].minor.yy0); }
#line 6448 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 332: /* explain_options ::= explain_options RATIO NK_FLOAT */
#line 597 "sql.y"
{ yylhsminor.yy28 = setExplainRatio(pCxt, yymsp[-2].minor.yy28, &yymsp[0].minor.yy0); }
#line 6454 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 333: /* 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 602 "sql.y"
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy793, yymsp[-9].minor.yy793, &yymsp[-6].minor.yy889, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy32, yymsp[-1].minor.yy956, &yymsp[0].minor.yy889, yymsp[-10].minor.yy793); }
#line 6460 "sql.c"
break;
case 334: /* cmd ::= DROP FUNCTION exists_opt function_name */
#line 603 "sql.y"
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); }
#line 6465 "sql.c"
break;
case 339: /* language_opt ::= */
#line 617 "sql.y"
{ yymsp[1].minor.yy889 = nil_token; }
#line 6470 "sql.c"
break;
case 340: /* language_opt ::= LANGUAGE NK_STRING */
#line 618 "sql.y"
{ yymsp[-1].minor.yy889 = yymsp[0].minor.yy0; }
#line 6475 "sql.c"
break;
case 343: /* 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 628 "sql.y"
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy793, &yymsp[-8].minor.yy889, yymsp[-5].minor.yy28, yymsp[-7].minor.yy28, yymsp[-3].minor.yy236, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, yymsp[-4].minor.yy236); }
#line 6480 "sql.c"
break;
case 344: /* cmd ::= DROP STREAM exists_opt stream_name */
#line 629 "sql.y"
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); }
#line 6485 "sql.c"
break;
case 345: /* cmd ::= PAUSE STREAM exists_opt stream_name */
#line 630 "sql.y"
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); }
#line 6490 "sql.c"
break;
case 346: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
#line 631 "sql.y"
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy793, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); }
#line 6495 "sql.c"
break;
case 353: /* stream_options ::= stream_options TRIGGER AT_ONCE */
case 354: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==354);
#line 645 "sql.y"
{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
#line 6501 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 355: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
#line 647 "sql.y"
{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); }
#line 6507 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 356: /* stream_options ::= stream_options WATERMARK duration_literal */
#line 648 "sql.y"
{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); }
#line 6513 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 357: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
#line 649 "sql.y"
{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
#line 6519 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 358: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
#line 650 "sql.y"
{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
#line 6525 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 359: /* stream_options ::= stream_options DELETE_MARK duration_literal */
#line 651 "sql.y"
{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); }
#line 6531 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 360: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
#line 652 "sql.y"
{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
#line 6537 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 362: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
case 558: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==558);
case 579: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==579);
#line 655 "sql.y"
{ yymsp[-3].minor.yy28 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy28); }
#line 6545 "sql.c"
break;
case 365: /* cmd ::= KILL CONNECTION NK_INTEGER */
#line 663 "sql.y"
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
#line 6550 "sql.c"
break;
case 366: /* cmd ::= KILL QUERY NK_STRING */
#line 664 "sql.y"
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
#line 6555 "sql.c"
break;
case 367: /* cmd ::= KILL TRANSACTION NK_INTEGER */
#line 665 "sql.y"
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
#line 6560 "sql.c"
break;
case 368: /* cmd ::= BALANCE VGROUP */
#line 668 "sql.y"
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
#line 6565 "sql.c"
break;
case 369: /* cmd ::= BALANCE VGROUP LEADER */
#line 669 "sql.y"
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); }
#line 6570 "sql.c"
break;
case 370: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
#line 670 "sql.y"
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
#line 6575 "sql.c"
break;
case 371: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
#line 671 "sql.y"
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy236); }
#line 6580 "sql.c"
break;
case 372: /* cmd ::= SPLIT VGROUP NK_INTEGER */
#line 672 "sql.y"
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
#line 6585 "sql.c"
break;
case 373: /* dnode_list ::= DNODE NK_INTEGER */
#line 676 "sql.y"
{ yymsp[-1].minor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 6590 "sql.c"
break;
case 375: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
#line 683 "sql.y"
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); }
#line 6595 "sql.c"
break;
case 378: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
#line 692 "sql.y"
{ yymsp[-6].minor.yy28 = createInsertStmt(pCxt, yymsp[-4].minor.yy28, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); }
#line 6600 "sql.c"
break;
case 379: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
#line 693 "sql.y"
{ yymsp[-3].minor.yy28 = createInsertStmt(pCxt, yymsp[-1].minor.yy28, NULL, yymsp[0].minor.yy28); }
#line 6605 "sql.c"
break;
case 380: /* literal ::= NK_INTEGER */
#line 696 "sql.y"
{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
#line 6610 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 381: /* literal ::= NK_FLOAT */
#line 697 "sql.y"
{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
#line 6616 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 382: /* literal ::= NK_STRING */
#line 698 "sql.y"
{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
#line 6622 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 383: /* literal ::= NK_BOOL */
#line 699 "sql.y"
{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
#line 6628 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 384: /* literal ::= TIMESTAMP NK_STRING */
#line 700 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
#line 6634 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 385: /* literal ::= duration_literal */
case 395: /* signed_literal ::= signed */ yytestcase(yyruleno==395);
case 416: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==416);
case 417: /* expression ::= literal */ yytestcase(yyruleno==417);
case 418: /* expression ::= pseudo_column */ yytestcase(yyruleno==418);
case 419: /* expression ::= column_reference */ yytestcase(yyruleno==419);
case 420: /* expression ::= function_expression */ yytestcase(yyruleno==420);
case 421: /* expression ::= case_when_expression */ yytestcase(yyruleno==421);
case 452: /* function_expression ::= literal_func */ yytestcase(yyruleno==452);
case 501: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==501);
case 505: /* boolean_primary ::= predicate */ yytestcase(yyruleno==505);
case 507: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==507);
case 508: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==508);
case 511: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==511);
case 513: /* table_reference ::= table_primary */ yytestcase(yyruleno==513);
case 514: /* table_reference ::= joined_table */ yytestcase(yyruleno==514);
case 518: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==518);
case 581: /* query_simple ::= query_specification */ yytestcase(yyruleno==581);
case 582: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==582);
case 585: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==585);
case 587: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==587);
#line 701 "sql.y"
{ yylhsminor.yy28 = yymsp[0].minor.yy28; }
#line 6660 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 386: /* literal ::= NULL */
#line 702 "sql.y"
{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
#line 6666 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 387: /* literal ::= NK_QUESTION */
#line 703 "sql.y"
{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 6672 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 388: /* duration_literal ::= NK_VARIABLE */
#line 705 "sql.y"
{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 6678 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 389: /* signed ::= NK_INTEGER */
#line 707 "sql.y"
{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
#line 6684 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 390: /* signed ::= NK_PLUS NK_INTEGER */
#line 708 "sql.y"
{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
#line 6690 "sql.c"
break;
case 391: /* signed ::= NK_MINUS NK_INTEGER */
#line 709 "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.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
}
#line 6699 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 392: /* signed ::= NK_FLOAT */
#line 714 "sql.y"
{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
#line 6705 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 393: /* signed ::= NK_PLUS NK_FLOAT */
#line 715 "sql.y"
{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
#line 6711 "sql.c"
break;
case 394: /* signed ::= NK_MINUS NK_FLOAT */
#line 716 "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.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
}
#line 6720 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 396: /* signed_literal ::= NK_STRING */
#line 723 "sql.y"
{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
#line 6726 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 397: /* signed_literal ::= NK_BOOL */
#line 724 "sql.y"
{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
#line 6732 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 398: /* signed_literal ::= TIMESTAMP NK_STRING */
#line 725 "sql.y"
{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
#line 6738 "sql.c"
break;
case 399: /* signed_literal ::= duration_literal */
case 401: /* signed_literal ::= literal_func */ yytestcase(yyruleno==401);
case 472: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==472);
case 538: /* select_item ::= common_expression */ yytestcase(yyruleno==538);
case 548: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==548);
case 586: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==586);
case 588: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==588);
case 601: /* search_condition ::= common_expression */ yytestcase(yyruleno==601);
#line 726 "sql.y"
{ yylhsminor.yy28 = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); }
#line 6750 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 400: /* signed_literal ::= NULL */
#line 727 "sql.y"
{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
#line 6756 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 402: /* signed_literal ::= NK_QUESTION */
#line 729 "sql.y"
{ yylhsminor.yy28 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
#line 6762 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 422: /* expression ::= NK_LP expression NK_RP */
case 506: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==506);
case 600: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==600);
#line 790 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); }
#line 6770 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 423: /* expression ::= NK_PLUS expr_or_subquery */
#line 791 "sql.y"
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy28));
}
#line 6779 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 424: /* expression ::= NK_MINUS expr_or_subquery */
#line 795 "sql.y"
{
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy28), NULL));
}
#line 6788 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 425: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
#line 799 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6798 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 426: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
#line 804 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6808 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 427: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
#line 809 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6818 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 428: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
#line 814 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6828 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 429: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
#line 819 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6838 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 430: /* expression ::= column_reference NK_ARROW NK_STRING */
#line 824 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
#line 6847 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 431: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
#line 828 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6857 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 432: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
#line 833 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6867 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 435: /* column_reference ::= column_name */
#line 844 "sql.y"
{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy889, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy889)); }
#line 6873 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 436: /* column_reference ::= table_name NK_DOT column_name */
#line 845 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889, createColumnNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889)); }
#line 6879 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 437: /* pseudo_column ::= ROWTS */
case 438: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==438);
case 440: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==440);
case 441: /* pseudo_column ::= QEND */ yytestcase(yyruleno==441);
case 442: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==442);
case 443: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==443);
case 444: /* pseudo_column ::= WEND */ yytestcase(yyruleno==444);
case 445: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==445);
case 446: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==446);
case 447: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==447);
case 448: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==448);
case 454: /* literal_func ::= NOW */ yytestcase(yyruleno==454);
#line 847 "sql.y"
{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
#line 6896 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 439: /* pseudo_column ::= table_name NK_DOT TBNAME */
#line 849 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy889)))); }
#line 6902 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 449: /* function_expression ::= function_name NK_LP expression_list NK_RP */
case 450: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==450);
#line 860 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy889, yymsp[-1].minor.yy236)); }
#line 6909 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 451: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
#line 863 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy32)); }
#line 6915 "sql.c"
yymsp[-5].minor.yy28 = yylhsminor.yy28;
break;
case 453: /* literal_func ::= noarg_func NK_LP NK_RP */
#line 866 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy889, NULL)); }
#line 6921 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 468: /* star_func_para_list ::= NK_STAR */
#line 890 "sql.y"
{ yylhsminor.yy236 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
#line 6927 "sql.c"
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 473: /* star_func_para ::= table_name NK_DOT NK_STAR */
case 541: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==541);
#line 899 "sql.y"
{ yylhsminor.yy28 = createColumnNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0); }
#line 6934 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 474: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
#line 902 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy236, yymsp[-1].minor.yy28)); }
#line 6940 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 475: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
#line 904 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-2].minor.yy236, yymsp[-1].minor.yy28)); }
#line 6946 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 478: /* when_then_expr ::= WHEN common_expression THEN common_expression */
#line 911 "sql.y"
{ yymsp[-3].minor.yy28 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); }
#line 6952 "sql.c"
break;
case 480: /* case_when_else_opt ::= ELSE common_expression */
#line 914 "sql.y"
{ yymsp[-1].minor.yy28 = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); }
#line 6957 "sql.c"
break;
case 481: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
case 486: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==486);
#line 917 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy896, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6967 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 482: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
#line 924 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy28), releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6977 "sql.c"
yymsp[-4].minor.yy28 = yylhsminor.yy28;
break;
case 483: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
#line 930 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 6987 "sql.c"
yymsp[-5].minor.yy28 = yylhsminor.yy28;
break;
case 484: /* predicate ::= expr_or_subquery IS NULL */
#line 935 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), NULL));
}
#line 6996 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 485: /* predicate ::= expr_or_subquery IS NOT NULL */
#line 939 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL));
}
#line 7005 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 487: /* compare_op ::= NK_LT */
#line 951 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_LOWER_THAN; }
#line 7011 "sql.c"
break;
case 488: /* compare_op ::= NK_GT */
#line 952 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_GREATER_THAN; }
#line 7016 "sql.c"
break;
case 489: /* compare_op ::= NK_LE */
#line 953 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_LOWER_EQUAL; }
#line 7021 "sql.c"
break;
case 490: /* compare_op ::= NK_GE */
#line 954 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_GREATER_EQUAL; }
#line 7026 "sql.c"
break;
case 491: /* compare_op ::= NK_NE */
#line 955 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_NOT_EQUAL; }
#line 7031 "sql.c"
break;
case 492: /* compare_op ::= NK_EQ */
#line 956 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_EQUAL; }
#line 7036 "sql.c"
break;
case 493: /* compare_op ::= LIKE */
#line 957 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_LIKE; }
#line 7041 "sql.c"
break;
case 494: /* compare_op ::= NOT LIKE */
#line 958 "sql.y"
{ yymsp[-1].minor.yy896 = OP_TYPE_NOT_LIKE; }
#line 7046 "sql.c"
break;
case 495: /* compare_op ::= MATCH */
#line 959 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_MATCH; }
#line 7051 "sql.c"
break;
case 496: /* compare_op ::= NMATCH */
#line 960 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_NMATCH; }
#line 7056 "sql.c"
break;
case 497: /* compare_op ::= CONTAINS */
#line 961 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_JSON_CONTAINS; }
#line 7061 "sql.c"
break;
case 498: /* in_op ::= IN */
#line 965 "sql.y"
{ yymsp[0].minor.yy896 = OP_TYPE_IN; }
#line 7066 "sql.c"
break;
case 499: /* in_op ::= NOT IN */
#line 966 "sql.y"
{ yymsp[-1].minor.yy896 = OP_TYPE_NOT_IN; }
#line 7071 "sql.c"
break;
case 500: /* in_predicate_value ::= NK_LP literal_list NK_RP */
#line 968 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); }
#line 7076 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 502: /* boolean_value_expression ::= NOT boolean_primary */
#line 972 "sql.y"
{
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy28), NULL));
}
#line 7085 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 503: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
#line 977 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 7095 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 504: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
#line 983 "sql.y"
{
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28);
yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)));
}
#line 7105 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 512: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
#line 1001 "sql.y"
{ yylhsminor.yy28 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, NULL); }
#line 7111 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 515: /* table_primary ::= table_name alias_opt */
#line 1007 "sql.y"
{ yylhsminor.yy28 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); }
#line 7117 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 516: /* table_primary ::= db_name NK_DOT table_name alias_opt */
#line 1008 "sql.y"
{ yylhsminor.yy28 = createRealTableNode(pCxt, &yymsp[-3].minor.yy889, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); }
#line 7123 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 517: /* table_primary ::= subquery alias_opt */
#line 1009 "sql.y"
{ yylhsminor.yy28 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28), &yymsp[0].minor.yy889); }
#line 7129 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 519: /* alias_opt ::= */
#line 1014 "sql.y"
{ yymsp[1].minor.yy889 = nil_token; }
#line 7135 "sql.c"
break;
case 521: /* alias_opt ::= AS table_alias */
#line 1016 "sql.y"
{ yymsp[-1].minor.yy889 = yymsp[0].minor.yy889; }
#line 7140 "sql.c"
break;
case 522: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 523: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==523);
#line 1018 "sql.y"
{ yymsp[-2].minor.yy28 = yymsp[-1].minor.yy28; }
#line 7146 "sql.c"
break;
case 524: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
#line 1023 "sql.y"
{ yylhsminor.yy28 = createJoinTableNode(pCxt, yymsp[-4].minor.yy152, yymsp[-5].minor.yy28, yymsp[-2].minor.yy28, yymsp[0].minor.yy28); }
#line 7151 "sql.c"
yymsp[-5].minor.yy28 = yylhsminor.yy28;
break;
case 525: /* join_type ::= */
#line 1027 "sql.y"
{ yymsp[1].minor.yy152 = JOIN_TYPE_INNER; }
#line 7157 "sql.c"
break;
case 526: /* join_type ::= INNER */
#line 1028 "sql.y"
{ yymsp[0].minor.yy152 = JOIN_TYPE_INNER; }
#line 7162 "sql.c"
break;
case 527: /* 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 1034 "sql.y"
{
yymsp[-13].minor.yy28 = createSelectStmt(pCxt, yymsp[-11].minor.yy793, yymsp[-9].minor.yy236, yymsp[-8].minor.yy28, yymsp[-12].minor.yy236);
yymsp[-13].minor.yy28 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy28, yymsp[-10].minor.yy793);
yymsp[-13].minor.yy28 = addWhereClause(pCxt, yymsp[-13].minor.yy28, yymsp[-7].minor.yy28);
yymsp[-13].minor.yy28 = addPartitionByClause(pCxt, yymsp[-13].minor.yy28, yymsp[-6].minor.yy236);
yymsp[-13].minor.yy28 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy28, yymsp[-2].minor.yy28);
yymsp[-13].minor.yy28 = addGroupByClause(pCxt, yymsp[-13].minor.yy28, yymsp[-1].minor.yy236);
yymsp[-13].minor.yy28 = addHavingClause(pCxt, yymsp[-13].minor.yy28, yymsp[0].minor.yy28);
yymsp[-13].minor.yy28 = addRangeClause(pCxt, yymsp[-13].minor.yy28, yymsp[-5].minor.yy28);
yymsp[-13].minor.yy28 = addEveryClause(pCxt, yymsp[-13].minor.yy28, yymsp[-4].minor.yy28);
yymsp[-13].minor.yy28 = addFillClause(pCxt, yymsp[-13].minor.yy28, yymsp[-3].minor.yy28);
}
#line 7178 "sql.c"
break;
case 528: /* hint_list ::= */
#line 1049 "sql.y"
{ yymsp[1].minor.yy236 = createHintNodeList(pCxt, NULL); }
#line 7183 "sql.c"
break;
case 529: /* hint_list ::= NK_HINT */
#line 1050 "sql.y"
{ yylhsminor.yy236 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
#line 7188 "sql.c"
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 534: /* set_quantifier_opt ::= ALL */
#line 1061 "sql.y"
{ yymsp[0].minor.yy793 = false; }
#line 7194 "sql.c"
break;
case 537: /* select_item ::= NK_STAR */
#line 1068 "sql.y"
{ yylhsminor.yy28 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
#line 7199 "sql.c"
yymsp[0].minor.yy28 = yylhsminor.yy28;
break;
case 539: /* select_item ::= common_expression column_alias */
case 549: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==549);
#line 1070 "sql.y"
{ yylhsminor.yy28 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28), &yymsp[0].minor.yy889); }
#line 7206 "sql.c"
yymsp[-1].minor.yy28 = yylhsminor.yy28;
break;
case 540: /* select_item ::= common_expression AS column_alias */
case 550: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==550);
#line 1071 "sql.y"
{ yylhsminor.yy28 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), &yymsp[0].minor.yy889); }
#line 7213 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 545: /* partition_by_clause_opt ::= PARTITION BY partition_list */
case 570: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==570);
case 590: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==590);
#line 1080 "sql.y"
{ yymsp[-2].minor.yy236 = yymsp[0].minor.yy236; }
#line 7221 "sql.c"
break;
case 552: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
#line 1093 "sql.y"
{ yymsp[-5].minor.yy28 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); }
#line 7226 "sql.c"
break;
case 553: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
#line 1094 "sql.y"
{ yymsp[-3].minor.yy28 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); }
#line 7231 "sql.c"
break;
case 554: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
#line 1096 "sql.y"
{ yymsp[-5].minor.yy28 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); }
#line 7236 "sql.c"
break;
case 555: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
#line 1099 "sql.y"
{ yymsp[-7].minor.yy28 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy28, yymsp[0].minor.yy28); }
#line 7241 "sql.c"
break;
case 556: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
#line 1101 "sql.y"
{ yymsp[-6].minor.yy28 = createEventWindowNode(pCxt, yymsp[-3].minor.yy28, yymsp[0].minor.yy28); }
#line 7246 "sql.c"
break;
case 560: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
#line 1107 "sql.y"
{ yymsp[-3].minor.yy28 = createFillNode(pCxt, yymsp[-1].minor.yy322, NULL); }
#line 7251 "sql.c"
break;
case 561: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
#line 1108 "sql.y"
{ yymsp[-5].minor.yy28 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); }
#line 7256 "sql.c"
break;
case 562: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
#line 1109 "sql.y"
{ yymsp[-5].minor.yy28 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); }
#line 7261 "sql.c"
break;
case 563: /* fill_mode ::= NONE */
#line 1113 "sql.y"
{ yymsp[0].minor.yy322 = FILL_MODE_NONE; }
#line 7266 "sql.c"
break;
case 564: /* fill_mode ::= PREV */
#line 1114 "sql.y"
{ yymsp[0].minor.yy322 = FILL_MODE_PREV; }
#line 7271 "sql.c"
break;
case 565: /* fill_mode ::= NULL */
#line 1115 "sql.y"
{ yymsp[0].minor.yy322 = FILL_MODE_NULL; }
#line 7276 "sql.c"
break;
case 566: /* fill_mode ::= NULL_F */
#line 1116 "sql.y"
{ yymsp[0].minor.yy322 = FILL_MODE_NULL_F; }
#line 7281 "sql.c"
break;
case 567: /* fill_mode ::= LINEAR */
#line 1117 "sql.y"
{ yymsp[0].minor.yy322 = FILL_MODE_LINEAR; }
#line 7286 "sql.c"
break;
case 568: /* fill_mode ::= NEXT */
#line 1118 "sql.y"
{ yymsp[0].minor.yy322 = FILL_MODE_NEXT; }
#line 7291 "sql.c"
break;
case 571: /* group_by_list ::= expr_or_subquery */
#line 1127 "sql.y"
{ yylhsminor.yy236 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); }
#line 7296 "sql.c"
yymsp[0].minor.yy236 = yylhsminor.yy236;
break;
case 572: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
#line 1128 "sql.y"
{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); }
#line 7302 "sql.c"
yymsp[-2].minor.yy236 = yylhsminor.yy236;
break;
case 576: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
#line 1135 "sql.y"
{ yymsp[-5].minor.yy28 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); }
#line 7308 "sql.c"
break;
case 577: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
#line 1137 "sql.y"
{ yymsp[-3].minor.yy28 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); }
#line 7313 "sql.c"
break;
case 580: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
#line 1144 "sql.y"
{
yylhsminor.yy28 = addOrderByClause(pCxt, yymsp[-3].minor.yy28, yymsp[-2].minor.yy236);
yylhsminor.yy28 = addSlimitClause(pCxt, yylhsminor.yy28, yymsp[-1].minor.yy28);
yylhsminor.yy28 = addLimitClause(pCxt, yylhsminor.yy28, yymsp[0].minor.yy28);
}
#line 7322 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 583: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
#line 1154 "sql.y"
{ yylhsminor.yy28 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy28, yymsp[0].minor.yy28); }
#line 7328 "sql.c"
yymsp[-3].minor.yy28 = yylhsminor.yy28;
break;
case 584: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
#line 1156 "sql.y"
{ yylhsminor.yy28 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy28, yymsp[0].minor.yy28); }
#line 7334 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 592: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
case 596: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==596);
#line 1170 "sql.y"
{ yymsp[-1].minor.yy28 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
#line 7341 "sql.c"
break;
case 593: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 597: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==597);
#line 1171 "sql.y"
{ yymsp[-3].minor.yy28 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
#line 7347 "sql.c"
break;
case 594: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 598: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==598);
#line 1172 "sql.y"
{ yymsp[-3].minor.yy28 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
#line 7353 "sql.c"
break;
case 599: /* subquery ::= NK_LP query_expression NK_RP */
#line 1180 "sql.y"
{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy28); }
#line 7358 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 604: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
#line 1194 "sql.y"
{ yylhsminor.yy28 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), yymsp[-1].minor.yy734, yymsp[0].minor.yy945); }
#line 7364 "sql.c"
yymsp[-2].minor.yy28 = yylhsminor.yy28;
break;
case 605: /* ordering_specification_opt ::= */
#line 1198 "sql.y"
{ yymsp[1].minor.yy734 = ORDER_ASC; }
#line 7370 "sql.c"
break;
case 606: /* ordering_specification_opt ::= ASC */
#line 1199 "sql.y"
{ yymsp[0].minor.yy734 = ORDER_ASC; }
#line 7375 "sql.c"
break;
case 607: /* ordering_specification_opt ::= DESC */
#line 1200 "sql.y"
{ yymsp[0].minor.yy734 = ORDER_DESC; }
#line 7380 "sql.c"
break;
case 608: /* null_ordering_opt ::= */
#line 1204 "sql.y"
{ yymsp[1].minor.yy945 = NULL_ORDER_DEFAULT; }
#line 7385 "sql.c"
break;
case 609: /* null_ordering_opt ::= NULLS FIRST */
#line 1205 "sql.y"
{ yymsp[-1].minor.yy945 = NULL_ORDER_FIRST; }
#line 7390 "sql.c"
break;
case 610: /* null_ordering_opt ::= NULLS LAST */
#line 1206 "sql.y"
{ yymsp[-1].minor.yy945 = NULL_ORDER_LAST; }
#line 7395 "sql.c"
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 7468 "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
}