sql.c 350.9 KB
Newer Older
wmmhello's avatar
wmmhello 已提交
1 2
/* This file is automatically generated by Lemon from input grammar
** source file "sql.y". */
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
/*
** 2000-05-29
**
** The author disclaims copyright to this source code.  In place of
** a legal notice, here is a blessing:
**
**    May you do good and not evil.
**    May you find forgiveness for yourself and forgive others.
**    May you share freely, never taking more than you give.
**
*************************************************************************
** Driver template for the LEMON parser generator.
**
** The "lemon" program processes an LALR(1) input grammar file, then uses
** this template to construct a parser.  The "lemon" program inserts text
** at each "%%" line.  Also, any "P-a-r-s-e" identifer prefix (without the
** interstitial "-" characters) contained in this template is changed into
** the value of the %name directive from the grammar.  Otherwise, the content
** of this template is copied straight through into the generate parser
** source file.
**
** The following is the concatenation of all %include directives from the
** input grammar file:
*/
/************ Begin %include sections from the grammar ************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>

D
dapan1121 已提交
34 35
#define ALLOW_FORBID_FUNC

36
#include "functionMgt.h"
37
#include "nodes.h"
X
Xiaoyu Wang 已提交
38
#include "parToken.h"
39
#include "ttokendef.h"
X
Xiaoyu Wang 已提交
40
#include "parAst.h"
D
dapan1121 已提交
41 42

#define YYSTACKDEPTH 0
43
/**************** End of %include directives **********************************/
wmmhello's avatar
wmmhello 已提交
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385
/* These constants specify the various numeric values for terminal symbols.
***************** Begin token definitions *************************************/
#ifndef TK_OR
#define TK_OR                              1
#define TK_AND                             2
#define TK_UNION                           3
#define TK_ALL                             4
#define TK_MINUS                           5
#define TK_EXCEPT                          6
#define TK_INTERSECT                       7
#define TK_NK_BITAND                       8
#define TK_NK_BITOR                        9
#define TK_NK_LSHIFT                      10
#define TK_NK_RSHIFT                      11
#define TK_NK_PLUS                        12
#define TK_NK_MINUS                       13
#define TK_NK_STAR                        14
#define TK_NK_SLASH                       15
#define TK_NK_REM                         16
#define TK_NK_CONCAT                      17
#define TK_CREATE                         18
#define TK_ACCOUNT                        19
#define TK_NK_ID                          20
#define TK_PASS                           21
#define TK_NK_STRING                      22
#define TK_ALTER                          23
#define TK_PPS                            24
#define TK_TSERIES                        25
#define TK_STORAGE                        26
#define TK_STREAMS                        27
#define TK_QTIME                          28
#define TK_DBS                            29
#define TK_USERS                          30
#define TK_CONNS                          31
#define TK_STATE                          32
#define TK_USER                           33
#define TK_ENABLE                         34
#define TK_NK_INTEGER                     35
#define TK_SYSINFO                        36
#define TK_DROP                           37
#define TK_GRANT                          38
#define TK_ON                             39
#define TK_TO                             40
#define TK_REVOKE                         41
#define TK_FROM                           42
#define TK_SUBSCRIBE                      43
#define TK_NK_COMMA                       44
#define TK_READ                           45
#define TK_WRITE                          46
#define TK_NK_DOT                         47
#define TK_WITH                           48
#define TK_DNODE                          49
#define TK_PORT                           50
#define TK_DNODES                         51
#define TK_RESTORE                        52
#define TK_NK_IPTOKEN                     53
#define TK_FORCE                          54
#define TK_UNSAFE                         55
#define TK_LOCAL                          56
#define TK_QNODE                          57
#define TK_BNODE                          58
#define TK_SNODE                          59
#define TK_MNODE                          60
#define TK_VNODE                          61
#define TK_DATABASE                       62
#define TK_USE                            63
#define TK_FLUSH                          64
#define TK_TRIM                           65
#define TK_COMPACT                        66
#define TK_IF                             67
#define TK_NOT                            68
#define TK_EXISTS                         69
#define TK_BUFFER                         70
#define TK_CACHEMODEL                     71
#define TK_CACHESIZE                      72
#define TK_COMP                           73
#define TK_DURATION                       74
#define TK_NK_VARIABLE                    75
#define TK_MAXROWS                        76
#define TK_MINROWS                        77
#define TK_KEEP                           78
#define TK_PAGES                          79
#define TK_PAGESIZE                       80
#define TK_TSDB_PAGESIZE                  81
#define TK_PRECISION                      82
#define TK_REPLICA                        83
#define TK_VGROUPS                        84
#define TK_SINGLE_STABLE                  85
#define TK_RETENTIONS                     86
#define TK_SCHEMALESS                     87
#define TK_WAL_LEVEL                      88
#define TK_WAL_FSYNC_PERIOD               89
#define TK_WAL_RETENTION_PERIOD           90
#define TK_WAL_RETENTION_SIZE             91
#define TK_WAL_ROLL_PERIOD                92
#define TK_WAL_SEGMENT_SIZE               93
#define TK_STT_TRIGGER                    94
#define TK_TABLE_PREFIX                   95
#define TK_TABLE_SUFFIX                   96
#define TK_NK_COLON                       97
#define TK_MAX_SPEED                      98
#define TK_START                          99
#define TK_TIMESTAMP                      100
#define TK_END                            101
#define TK_TABLE                          102
#define TK_NK_LP                          103
#define TK_NK_RP                          104
#define TK_STABLE                         105
#define TK_ADD                            106
#define TK_COLUMN                         107
#define TK_MODIFY                         108
#define TK_RENAME                         109
#define TK_TAG                            110
#define TK_SET                            111
#define TK_NK_EQ                          112
#define TK_USING                          113
#define TK_TAGS                           114
#define TK_BOOL                           115
#define TK_TINYINT                        116
#define TK_SMALLINT                       117
#define TK_INT                            118
#define TK_INTEGER                        119
#define TK_BIGINT                         120
#define TK_FLOAT                          121
#define TK_DOUBLE                         122
#define TK_BINARY                         123
#define TK_NCHAR                          124
#define TK_UNSIGNED                       125
#define TK_JSON                           126
#define TK_VARCHAR                        127
#define TK_MEDIUMBLOB                     128
#define TK_BLOB                           129
#define TK_VARBINARY                      130
#define TK_GEOMETRY                       131
#define TK_DECIMAL                        132
#define TK_COMMENT                        133
#define TK_MAX_DELAY                      134
#define TK_WATERMARK                      135
#define TK_ROLLUP                         136
#define TK_TTL                            137
#define TK_SMA                            138
#define TK_DELETE_MARK                    139
#define TK_FIRST                          140
#define TK_LAST                           141
#define TK_SHOW                           142
#define TK_PRIVILEGES                     143
#define TK_DATABASES                      144
#define TK_TABLES                         145
#define TK_STABLES                        146
#define TK_MNODES                         147
#define TK_QNODES                         148
#define TK_FUNCTIONS                      149
#define TK_INDEXES                        150
#define TK_ACCOUNTS                       151
#define TK_APPS                           152
#define TK_CONNECTIONS                    153
#define TK_LICENCES                       154
#define TK_GRANTS                         155
#define TK_QUERIES                        156
#define TK_SCORES                         157
#define TK_TOPICS                         158
#define TK_VARIABLES                      159
#define TK_CLUSTER                        160
#define TK_BNODES                         161
#define TK_SNODES                         162
#define TK_TRANSACTIONS                   163
#define TK_DISTRIBUTED                    164
#define TK_CONSUMERS                      165
#define TK_SUBSCRIPTIONS                  166
#define TK_VNODES                         167
#define TK_ALIVE                          168
#define TK_LIKE                           169
#define TK_TBNAME                         170
#define TK_QTAGS                          171
#define TK_AS                             172
#define TK_INDEX                          173
#define TK_FUNCTION                       174
#define TK_INTERVAL                       175
#define TK_COUNT                          176
#define TK_LAST_ROW                       177
#define TK_TOPIC                          178
#define TK_META                           179
#define TK_ONLY                           180
#define TK_CONSUMER                       181
#define TK_GROUP                          182
#define TK_DESC                           183
#define TK_DESCRIBE                       184
#define TK_RESET                          185
#define TK_QUERY                          186
#define TK_CACHE                          187
#define TK_EXPLAIN                        188
#define TK_ANALYZE                        189
#define TK_VERBOSE                        190
#define TK_NK_BOOL                        191
#define TK_RATIO                          192
#define TK_NK_FLOAT                       193
#define TK_OUTPUTTYPE                     194
#define TK_AGGREGATE                      195
#define TK_BUFSIZE                        196
#define TK_LANGUAGE                       197
#define TK_REPLACE                        198
#define TK_STREAM                         199
#define TK_INTO                           200
#define TK_PAUSE                          201
#define TK_RESUME                         202
#define TK_TRIGGER                        203
#define TK_AT_ONCE                        204
#define TK_WINDOW_CLOSE                   205
#define TK_IGNORE                         206
#define TK_EXPIRED                        207
#define TK_FILL_HISTORY                   208
#define TK_UPDATE                         209
#define TK_SUBTABLE                       210
#define TK_UNTREATED                      211
#define TK_KILL                           212
#define TK_CONNECTION                     213
#define TK_TRANSACTION                    214
#define TK_BALANCE                        215
#define TK_VGROUP                         216
#define TK_LEADER                         217
#define TK_MERGE                          218
#define TK_REDISTRIBUTE                   219
#define TK_SPLIT                          220
#define TK_DELETE                         221
#define TK_INSERT                         222
#define TK_NULL                           223
#define TK_NK_QUESTION                    224
#define TK_NK_ARROW                       225
#define TK_ROWTS                          226
#define TK_QSTART                         227
#define TK_QEND                           228
#define TK_QDURATION                      229
#define TK_WSTART                         230
#define TK_WEND                           231
#define TK_WDURATION                      232
#define TK_IROWTS                         233
#define TK_ISFILLED                       234
#define TK_CAST                           235
#define TK_NOW                            236
#define TK_TODAY                          237
#define TK_TIMEZONE                       238
#define TK_CLIENT_VERSION                 239
#define TK_SERVER_VERSION                 240
#define TK_SERVER_STATUS                  241
#define TK_CURRENT_USER                   242
#define TK_CASE                           243
#define TK_WHEN                           244
#define TK_THEN                           245
#define TK_ELSE                           246
#define TK_BETWEEN                        247
#define TK_IS                             248
#define TK_NK_LT                          249
#define TK_NK_GT                          250
#define TK_NK_LE                          251
#define TK_NK_GE                          252
#define TK_NK_NE                          253
#define TK_MATCH                          254
#define TK_NMATCH                         255
#define TK_CONTAINS                       256
#define TK_IN                             257
#define TK_JOIN                           258
#define TK_INNER                          259
#define TK_SELECT                         260
#define TK_DISTINCT                       261
#define TK_WHERE                          262
#define TK_PARTITION                      263
#define TK_BY                             264
#define TK_SESSION                        265
#define TK_STATE_WINDOW                   266
#define TK_EVENT_WINDOW                   267
#define TK_SLIDING                        268
#define TK_FILL                           269
#define TK_VALUE                          270
#define TK_VALUE_F                        271
#define TK_NONE                           272
#define TK_PREV                           273
#define TK_NULL_F                         274
#define TK_LINEAR                         275
#define TK_NEXT                           276
#define TK_HAVING                         277
#define TK_RANGE                          278
#define TK_EVERY                          279
#define TK_ORDER                          280
#define TK_SLIMIT                         281
#define TK_SOFFSET                        282
#define TK_LIMIT                          283
#define TK_OFFSET                         284
#define TK_ASC                            285
#define TK_NULLS                          286
#define TK_ABORT                          287
#define TK_AFTER                          288
#define TK_ATTACH                         289
#define TK_BEFORE                         290
#define TK_BEGIN                          291
#define TK_BITAND                         292
#define TK_BITNOT                         293
#define TK_BITOR                          294
#define TK_BLOCKS                         295
#define TK_CHANGE                         296
#define TK_COMMA                          297
#define TK_CONCAT                         298
#define TK_CONFLICT                       299
#define TK_COPY                           300
#define TK_DEFERRED                       301
#define TK_DELIMITERS                     302
#define TK_DETACH                         303
#define TK_DIVIDE                         304
#define TK_DOT                            305
#define TK_EACH                           306
#define TK_FAIL                           307
#define TK_FILE                           308
#define TK_FOR                            309
#define TK_GLOB                           310
#define TK_ID                             311
#define TK_IMMEDIATE                      312
#define TK_IMPORT                         313
#define TK_INITIALLY                      314
#define TK_INSTEAD                        315
#define TK_ISNULL                         316
#define TK_KEY                            317
#define TK_MODULES                        318
#define TK_NK_BITNOT                      319
#define TK_NK_SEMI                        320
#define TK_NOTNULL                        321
#define TK_OF                             322
#define TK_PLUS                           323
#define TK_PRIVILEGE                      324
#define TK_RAISE                          325
#define TK_RESTRICT                       326
#define TK_ROW                            327
#define TK_SEMI                           328
#define TK_STAR                           329
#define TK_STATEMENT                      330
#define TK_STRICT                         331
#define TK_STRING                         332
#define TK_TIMES                          333
#define TK_VALUES                         334
#define TK_VARIABLE                       335
#define TK_VIEW                           336
#define TK_WAL                            337
#endif
/**************** End token definitions ***************************************/
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402

/* 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.
X
Xiaoyu Wang 已提交
403
**    ParseTOKENTYPE     is the data type used for minor type for terminal
404 405 406 407 408 409 410 411 412 413
**                       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
X
Xiaoyu Wang 已提交
414
**                       which is ParseTOKENTYPE.  The entry in the union
415 416
**                       for terminal symbols is called "yy0".
**    YYSTACKDEPTH       is the maximum depth of the parser's stack.  If
X
Xiaoyu Wang 已提交
417
**                       zero the stack is dynamically sized using realloc()
X
Xiaoyu Wang 已提交
418 419 420 421 422 423
**    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
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
**    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 *****************************************/
X
Xiaoyu Wang 已提交
442
#define YYCODETYPE unsigned short int
wmmhello's avatar
wmmhello 已提交
443
#define YYNOCODE 486
444
#define YYACTIONTYPE unsigned short int
X
Xiaoyu Wang 已提交
445
#define ParseTOKENTYPE  SToken 
446 447
typedef union {
  int yyinit;
X
Xiaoyu Wang 已提交
448
  ParseTOKENTYPE yy0;
wmmhello's avatar
wmmhello 已提交
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
  EOrder yy2;
  EFillMode yy18;
  ENullOrder yy109;
  bool yy173;
  int64_t yy261;
  EOperatorType yy344;
  EJoinType yy360;
  SNodeList* yy496;
  SToken yy533;
  SNode* yy560;
  SAlterOption yy713;
  int8_t yy719;
  STokenPair yy885;
  SDataType yy952;
  int32_t yy964;
464 465 466 467
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
X
Xiaoyu Wang 已提交
468 469 470 471 472 473 474 475 476 477
#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
X
Xiaoyu Wang 已提交
478
#define YYFALLBACK 1
wmmhello's avatar
wmmhello 已提交
479 480 481 482 483 484 485 486 487 488 489 490
#define YYNSTATE             802
#define YYNRULE              598
#define YYNRULE_WITH_ACTION  598
#define YYNTOKEN             338
#define YY_MAX_SHIFT         801
#define YY_MIN_SHIFTREDUCE   1180
#define YY_MAX_SHIFTREDUCE   1777
#define YY_ERROR_ACTION      1778
#define YY_ACCEPT_ACTION     1779
#define YY_NO_ACTION         1780
#define YY_MIN_REDUCE        1781
#define YY_MAX_REDUCE        2378
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556
/************* 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 **********************************************/
wmmhello's avatar
wmmhello 已提交
557
#define YY_ACTTAB_COUNT (2859)
558
static const YYACTIONTYPE yy_action[] = {
wmmhello's avatar
wmmhello 已提交
559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844
 /*     0 */  2189, 2077,  171,  219, 1793,  182,  451,  535,  673, 1824,
 /*    10 */   670,  450,   48,   46, 1704, 1947, 2075,  679,  655,  260,
 /*    20 */   405, 2349, 1553,   41,   40,  372, 2060,   47,   45,   44,
 /*    30 */    43,   42,  694, 1634, 2249, 1551,  654,  189, 2207,   41,
 /*    40 */    40, 2350,  656,   47,   45,   44,   43,   42, 1315, 2150,
 /*    50 */  2157, 1581,  708,  630, 2011,  630, 2349, 1804, 2349, 1580,
 /*    60 */  2189,  385, 1629,   47,   45,   44,   43,   42,   19, 2009,
 /*    70 */   709, 2355,  189, 2355,  189, 1559, 2350,  656, 2350,  656,
 /*    80 */   221,  692, 1958,  364,  535, 2188, 1824, 2224, 1317,  457,
 /*    90 */   111, 2190,  712, 2192, 2193,  707,  630,  702, 2207, 2349,
 /*   100 */   798,  194,  186,   15, 2277,  692, 1958, 2157,  401, 2273,
 /*   110 */  2157, 1860,  708,   66, 2355,  189,   48,   46,  156, 2350,
 /*   120 */   656,  191, 1578, 2189,  405,  134, 1553, 1663,  399, 2303,
 /*   130 */  1579, 2011,  572,  709,  350, 2167,  168, 1634,  395, 1551,
 /*   140 */  1636, 1637, 1708,  604, 1960, 2188, 2009, 2224, 1578, 2175,
 /*   150 */   111, 2190,  712, 2192, 2193,  707,  602,  702,  600, 2171,
 /*   160 */   146, 2207,  153, 2248, 2277, 1238, 1629, 1237,  401, 2273,
 /*   170 */  1609, 1619,   19, 2157,  691,  708, 1635, 1638,   56, 1559,
 /*   180 */  2011,  590,  589,  588, 1664,  667,  143,  400,  580,  140,
 /*   190 */   584, 1554,  691, 1552,  583, 2009, 2173,  402, 1239,  582,
 /*   200 */   587,  380,  379,  266,  798,  581,  702,   15, 2188, 2189,
 /*   210 */  2224,  288,   62,  172, 2190,  712, 2192, 2193,  707,  709,
 /*   220 */   702, 1826,  677, 1557, 1558, 1578, 1608, 1611, 1612, 1613,
 /*   230 */  1614, 1615, 1616, 1617, 1618,  704,  700, 1627, 1628, 1630,
 /*   240 */  1631, 1632, 1633,    2, 1636, 1637, 1581, 2207,  667,  143,
 /*   250 */  1406, 1407,  532,  631, 2314,  533, 1817,   51, 1238, 2157,
 /*   260 */  1237,  708,   37,  403, 1658, 1659, 1660, 1661, 1662, 1666,
 /*   270 */  1667, 1668, 1669,  139, 1609, 1619,  650,   62,   41,   40,
 /*   280 */  1635, 1638,   47,   45,   44,   43,   42,  669,  187, 2285,
 /*   290 */  2286, 1239,  141, 2290, 2188, 1554, 2224, 1552, 1610,  111,
 /*   300 */  2190,  712, 2192, 2193,  707,  645,  702, 2041,   62,  692,
 /*   310 */  1958, 2369, 2143, 2277,   30,  629, 2189,  401, 2273,  745,
 /*   320 */   158,  157,  742,  741,  740,  155,  670, 1557, 1558,   57,
 /*   330 */  1608, 1611, 1612, 1613, 1614, 1615, 1616, 1617, 1618,  704,
 /*   340 */   700, 1627, 1628, 1630, 1631, 1632, 1633,    2,   12,   48,
 /*   350 */    46,  188, 2285, 2286, 2207,  141, 2290,  405, 2011, 1553,
 /*   360 */  1371,  427,  414,  413,  377,  409, 2157,  678,  708,  192,
 /*   370 */  1634, 1936, 1551, 2009, 1744, 1362,  737,  736,  735, 1366,
 /*   380 */   734, 1368, 1369,  733,  730, 1560, 1377,  727, 1379, 1380,
 /*   390 */   724,  721,  718,   62, 2189,  651,  646,  639,  203, 1629,
 /*   400 */   290, 2188,   52, 2224,  706,   19,  111, 2190,  712, 2192,
 /*   410 */  2193,  707, 1559,  702,  192,  151,   34,  102,  186,  547,
 /*   420 */  2277, 2070,   41,   40,  401, 2273,   47,   45,   44,   43,
 /*   430 */    42,  182, 2207,  378,  192,  376,  375,  798,  574,   55,
 /*   440 */    15,   62, 1951,   94, 2157, 2304,  708,  625,  691,  590,
 /*   450 */   589,  588, 2061,   48,   46, 1639,  580,  140,  584, 1213,
 /*   460 */   576,  405,  583, 1553,  575,  192,  475,  582,  587,  380,
 /*   470 */   379,   38,  308,  581, 1634,  474, 1551, 1636, 1637, 2188,
 /*   480 */   449, 2224,  448,  549,  344, 2190,  712, 2192, 2193,  707,
 /*   490 */   705,  702,  693, 2242, 1782,   44,   43,   42, 1215, 2189,
 /*   500 */  1218, 1219,  170, 1629, 1935, 1732,  649, 1609, 1619,  709,
 /*   510 */  1899, 2324,  447, 1635, 1638,  124, 1559, 2077,  123,  122,
 /*   520 */   121,  120,  119,  118,  117,  116,  115,  529, 1554,  398,
 /*   530 */  1552,   51, 2074,  679, 2207,  527, 2292, 2207,  523,  519,
 /*   540 */  1578,  798,  540, 1563,   49,  533, 1817, 1241, 1242, 2157,
 /*   550 */   192,  708,  642,  641, 1730, 1731, 1733, 1734, 1735,  192,
 /*   560 */  1557, 1558, 2289, 1608, 1611, 1612, 1613, 1614, 1615, 1616,
 /*   570 */  1617, 1618,  704,  700, 1627, 1628, 1630, 1631, 1632, 1633,
 /*   580 */     2, 1636, 1637,   87, 2188,  107, 2224,  185,  648,  111,
 /*   590 */  2190,  712, 2192, 2193,  707,  104,  702, 1781,  192, 1998,
 /*   600 */   374, 2369,  410, 2277,  537, 2004, 2006,  401, 2273, 1953,
 /*   610 */   534, 1609, 1619,  692, 1958,  692, 1958, 1635, 1638, 1933,
 /*   620 */   235,  133,  132,  131,  130,  129,  128,  127,  126,  125,
 /*   630 */   692, 1958, 1554,  455, 1552,  456,  175,  745,  158,  157,
 /*   640 */   742,  741,  740,  155,  566,  562,  558,  554, 2011,  234,
 /*   650 */   465, 2122,   41,   40, 1665,  370,   47,   45,   44,   43,
 /*   660 */    42,  299,  300, 2009, 1557, 1558,  298, 1608, 1611, 1612,
 /*   670 */  1613, 1614, 1615, 1616, 1617, 1618,  704,  700, 1627, 1628,
 /*   680 */  1630, 1631, 1632, 1633,    2,   48,   46, 2189, 1553,   88,
 /*   690 */  1461, 1462,  232,  405, 2011, 1553, 1803,  709, 1644,  252,
 /*   700 */  2354, 1551, 1934, 2349, 1578, 2056, 1634,  124, 1551, 2010,
 /*   710 */   123,  122,  121,  120,  119,  118,  117,  116,  115, 2353,
 /*   720 */   692, 1958,  747, 2350, 2352, 2207,  655,  692, 1958, 2349,
 /*   730 */   667,  143,   35, 2189, 1701, 1629, 2292, 2157, 1802,  708,
 /*   740 */   480, 1559, 1670,  709,  654,  189, 2157,  481, 1559, 2350,
 /*   750 */   656,  202,  745,  158,  157,  742,  741,  740,  155,  408,
 /*   760 */   231,  225, 2288,  678, 1562,  230,  798,  168,  545,  747,
 /*   770 */  2354, 2207, 2188,  798, 2224, 1960,   49,  112, 2190,  712,
 /*   780 */  2192, 2193,  707, 2157,  702,  708,  223, 1580, 2157,   48,
 /*   790 */    46, 2277, 2005, 2006,  678, 2276, 2273,  405, 1577, 1553,
 /*   800 */    41,   40,  692, 1958,   47,   45,   44,   43,   42,  613,
 /*   810 */  1634,  495, 1551, 1636, 1637,  676,  167, 2070, 2188,   12,
 /*   820 */  2224, 1579,  134,  173, 2190,  712, 2192, 2193,  707,  577,
 /*   830 */   702, 1581, 1801,  286, 2285,  666, 1559,  135,  665, 1629,
 /*   840 */  2349, 2189,  439, 1609, 1619, 1326,  687, 1779, 2070, 1635,
 /*   850 */  1638,  709, 1559,  637, 1610,  654,  189, 1554, 1325, 1552,
 /*   860 */  2350,  656, 2354,  738, 1554, 2349, 1552,  692, 1958,  441,
 /*   870 */   437, 1767,  210,  209,  657, 2370,  411,  798,  757, 2207,
 /*   880 */    15, 2353, 2157, 1943,  168, 2350, 2351,  548, 1221, 1557,
 /*   890 */  1558, 2157, 1960,  708, 1577,  494, 1557, 1558, 1945, 1608,
 /*   900 */  1611, 1612, 1613, 1614, 1615, 1616, 1617, 1618,  704,  700,
 /*   910 */  1627, 1628, 1630, 1631, 1632, 1633,    2, 1636, 1637,  420,
 /*   920 */   692, 1958, 1565,  504,  419,   12, 2188,   10, 2224,  595,
 /*   930 */  1800,  111, 2190,  712, 2192, 2193,  707, 1941,  702,  288,
 /*   940 */  1955, 1478, 1479, 2369,  605, 2277, 1962, 1609, 1619,  401,
 /*   950 */  2273,  692, 1958, 1635, 1638,  206,   41,   40,  248,  168,
 /*   960 */    47,   45,   44,   43,   42,  251,  630, 1961, 1554, 2349,
 /*   970 */  1552,  253,  692, 1958,  598, 1774, 2353, 1477, 1480, 2151,
 /*   980 */  2157,  592, 1799,  265, 2355,  189,  696,  247, 2249, 2350,
 /*   990 */   656, 1700,  261,  568,  567,   84,  667,  143,   83, 1900,
 /*  1000 */  1557, 1558, 1857, 1608, 1611, 1612, 1613, 1614, 1615, 1616,
 /*  1010 */  1617, 1618,  704,  700, 1627, 1628, 1630, 1631, 1632, 1633,
 /*  1020 */     2, 2292,  354,  169, 1576,  408,  630,   70,  329, 2349,
 /*  1030 */    69,  488, 2157,  165,  502, 1524, 1525,  501,   14,   13,
 /*  1040 */   386, 1960,  326,   73, 2355,  189,   72, 2287, 2009, 2350,
 /*  1050 */   656,  145, 1743,  471, 2248,  503, 2056,  351,   41,   40,
 /*  1060 */   473, 1798,   47,   45,   44,   43,   42, 1797,  217,  514,
 /*  1070 */   512,  509,  775,  774,  773,  772,  417, 1773,  771,  770,
 /*  1080 */   147,  765,  764,  763,  762,  761,  760,  759,  160,  755,
 /*  1090 */   754,  753,  416,  415,  750,  749,  748,  178,  177,  190,
 /*  1100 */  2285, 2286,  204,  141, 2290,  576,  373,   87,   62,  575,
 /*  1110 */   250, 2157,  692, 1958,  249,   41,   40, 2157,  461,   47,
 /*  1120 */    45,   44,   43,   42,   36, 2167, 2167, 1796,  138,  611,
 /*  1130 */    41,   40,  263, 1954,   47,   45,   44,   43,   42, 1949,
 /*  1140 */  2176, 1677,  570,  569,  586,  585, 2140,  110,  499, 2171,
 /*  1150 */  2171,  493,  492,  491,  490,  487,  486,  485,  484,  483,
 /*  1160 */   479,  478,  477,  476,  353,  468,  467,  466, 2056,  463,
 /*  1170 */   462,  371,  692, 1958,    8,   90,  630, 2157,  358, 2349,
 /*  1180 */    54,  384,    3,  606,  692, 1958, 2173, 2173,   81,   80,
 /*  1190 */   454, 2189,  289,  201, 2355,  189,  702,  702, 1795, 2350,
 /*  1200 */   656,  709, 1578, 2342,  675,  108,  446,  444,  692, 1958,
 /*  1210 */  1792, 1720,  692, 1958,  208,  692, 1958,  352,  692, 1958,
 /*  1220 */   435, 2189,  144,  433,  429,  425,  422,  447,  303, 2207,
 /*  1230 */  1950,  709,  689, 2296,  149,  690,  136, 1791,  309, 1330,
 /*  1240 */    74, 2157, 1790,  708,  692, 1958,  414,  413, 2157,  769,
 /*  1250 */   767, 2189, 1329,  658, 1789, 1788, 1567, 1787,  659, 2207,
 /*  1260 */  2157,  709,  458, 2311,  412,  192,  608, 1634,  607, 1560,
 /*  1270 */  1786, 2157, 1785,  708, 1784,  459, 2188,  322, 2224,  156,
 /*  1280 */  1988,  111, 2190,  712, 2192, 2193,  707, 2157,  702, 2207,
 /*  1290 */    82,  739, 2157, 2369, 2002, 2277, 1629, 1218, 1219,  401,
 /*  1300 */  2273, 2157,  662,  708, 2157, 2157, 2188, 2157, 2224, 1559,
 /*  1310 */   699,  111, 2190,  712, 2192, 2193,  707,  506,  702,  156,
 /*  1320 */  2157,   50, 2157, 2369, 2157, 2277, 2297, 1697,  743,  401,
 /*  1330 */  2273, 2002,  744,  262,  698, 2002, 2188,  758, 2224, 1519,
 /*  1340 */  1920,  111, 2190,  712, 2192, 2193,  707, 2189,  702,  578,
 /*  1350 */   579,  240, 1610, 2369,  238, 2277, 1844,  709,  242,  401,
 /*  1360 */  2273,  241,  244,  434, 1835,  243, 1833,  246,  264,   50,
 /*  1370 */   245, 1313, 1311, 1776, 1777,  270,   91, 1561,  591, 1522,
 /*  1380 */  2178, 1729, 1794,  156, 2317, 2207,  593,  257,  596,  703,
 /*  1390 */    14,   13,   50,  296, 1697, 2189, 1827, 2157, 1898,  708,
 /*  1400 */   751,   71,  154,  156,   64,  709,   50,   50,  752,  716,
 /*  1410 */   283,   92,  643,  277, 1272, 1897,  418,  154,  156,  137,
 /*  1420 */  2208,  154, 1291, 2065, 1818, 1568, 1999, 1563, 1823, 1728,
 /*  1430 */  1289, 2307, 2188, 2207, 2224,  272, 2180,  111, 2190,  712,
 /*  1440 */  2192, 2193,  707,  674,  702, 2157,  793,  708,  668, 2252,
 /*  1450 */   282, 2277, 1475,  301, 1273,  401, 2273, 1571, 1573,  285,
 /*  1460 */     9,  684,  305, 1356, 1671, 1655, 1620,  321,  421, 1384,
 /*  1470 */   700, 1627, 1628, 1630, 1631, 1632, 1633, 1388, 1395, 1393,
 /*  1480 */  2188,  159, 2224,  426,    1,  111, 2190,  712, 2192, 2193,
 /*  1490 */   707,  368,  702, 1584,  443, 2189,  660, 2250,  442, 2277,
 /*  1500 */   197,  196,  445,  401, 2273,  709,  199, 1500,  316,  207,
 /*  1510 */   460, 1581, 2066,  464,  497,  469, 1576,  482, 2058,  489,
 /*  1520 */   496,  498,  507,  508,  505,  211,  212,  510,  214,  513,
 /*  1530 */   511, 2189, 1582, 2207,  515, 1564,  530,    4,  531,  538,
 /*  1540 */   541,  709,  663, 1579,  539, 2157,  222,  708,  542, 1583,
 /*  1550 */  1585,  543,  544,  224,  227,  546,  550,  113,  571,  229,
 /*  1560 */    85,   86, 2189,  233,  573, 1948, 2131,  237, 1944, 2207,
 /*  1570 */   152,  357,  709,  612, 2128,   89,  317,  610,  616,  615,
 /*  1580 */  2188, 2157, 2224,  708,  239,  111, 2190,  712, 2192, 2193,
 /*  1590 */   707,  161,  702,  254,  258,  162,  617,  695, 2189, 2277,
 /*  1600 */  2207, 1946, 1942,  401, 2273,  163,  164, 1507,  709, 2127,
 /*  1610 */   634,  623, 2157,  620,  708,  627, 2188, 2323, 2224,  622,
 /*  1620 */   626,  112, 2190,  712, 2192, 2193,  707, 2189,  702,  256,
 /*  1630 */   621, 2308, 2318, 2299,  640, 2277, 2207,  709,  644,  697,
 /*  1640 */  2273,  391,  653,  632,  682,  268, 2322,  710, 2157, 2224,
 /*  1650 */   708,  271,  112, 2190,  712, 2192, 2193,  707, 2189,  702,
 /*  1660 */   647,    7, 1697,  661,  635, 2207, 2277,  281,  709,  633,
 /*  1670 */   363, 2273,  392,  664,  142, 1580,  672, 2157,  276,  708,
 /*  1680 */   359,  671, 1586, 2188, 2293, 2224,  291, 2189,  112, 2190,
 /*  1690 */   712, 2192, 2193,  707,  278,  702, 2207,  709,  176, 2071,
 /*  1700 */    97,  389, 2277, 2348,  318,  279,  680, 2274, 2157,  280,
 /*  1710 */   708,  681, 2188, 2085, 2224, 2084,  319,  172, 2190,  712,
 /*  1720 */  2192, 2193,  707, 2372,  702, 2207,  284,  685,   99, 2083,
 /*  1730 */   390,  397,   61,  686,  103,  101,  320, 2157, 2258,  708,
 /*  1740 */   794, 2003,  795, 2188, 1959, 2224,   53, 2189,  345, 2190,
 /*  1750 */   712, 2192, 2193,  707,  323,  702,  312,  709, 2315,  797,
 /*  1760 */   360, 1921,  347,  325, 2149,  327, 2148,  332, 2147,   78,
 /*  1770 */   346,  714, 2188,  336, 2224,  361, 2189,  345, 2190,  712,
 /*  1780 */  2192, 2193,  707, 2144,  702, 2207,  709,  423,  424, 1544,
 /*  1790 */  1545,  195,  428, 2142,  430,  431,  432, 2157, 2141,  708,
 /*  1800 */   369, 2139,  436, 2138,  438, 2137,  440, 1535, 2118,  198,
 /*  1810 */  2117,  200, 2189,   79, 2207, 1503, 1502, 2099, 2098, 2097,
 /*  1820 */   452,  453,  709, 2096, 2095, 1452, 2157, 2049,  708, 2048,
 /*  1830 */  2046,  148, 2188, 2045, 2224, 2044, 2047,  338, 2190,  712,
 /*  1840 */  2192, 2193,  707, 2043,  702, 2042, 2189,  205,  470, 2037,
 /*  1850 */  2207, 2040, 2039, 2038,  472,  396,  706, 2051, 2036, 2035,
 /*  1860 */  2034, 2188, 2157, 2224,  708, 2033,  173, 2190,  712, 2192,
 /*  1870 */  2193,  707, 2032,  702, 2031, 2030, 2029, 2028, 2027, 2026,
 /*  1880 */   652,  150, 2021, 2020, 2207, 2025, 2024, 2023, 2022, 2019,
 /*  1890 */  2050, 2018, 2017, 1454, 2016, 2015, 2157, 2188,  708, 2224,
 /*  1900 */  2014,  500,  345, 2190,  712, 2192, 2193,  707, 2013,  702,
 /*  1910 */  2012, 2189,  355, 1863,  356, 1327,  213, 1862, 2371, 1331,
 /*  1920 */  1861,  709, 2189,  215, 1859,  216, 1856, 1855, 1848,  517,
 /*  1930 */  1837, 2188,  709, 2224,  614,  518,  344, 2190,  712, 2192,
 /*  1940 */  2193,  707, 1323,  702,  516, 2243,  520, 1813,  521, 2207,
 /*  1950 */   524,  522,  801,  525,  404,  526,  528,   76,  183, 1220,
 /*  1960 */  2207, 2157, 1812,  708,  218,  406,  315,  228, 2093, 2069,
 /*  1970 */  2177,   77, 2157, 2116,  708,  220,  184, 2106,  536, 2094,
 /*  1980 */   226, 1937,  181, 1858, 1854,  551,  552,  553, 1265, 2189,
 /*  1990 */   791,  787,  783,  779,  555,  313, 2188, 1852, 2224,  709,
 /*  2000 */   556,  345, 2190,  712, 2192, 2193,  707, 2188,  702, 2224,
 /*  2010 */  2189,  557,  345, 2190,  712, 2192, 2193,  707, 1850,  702,
 /*  2020 */   709,  559, 1847,  560,  561,  563,  565, 2207, 1400,  564,
 /*  2030 */  1832, 1830, 1831, 1829, 1809,  109, 1939,   63,  306, 2157,
 /*  2040 */  1938,  708, 1399, 1314,  236, 1312, 1310, 1309, 2207, 1308,
 /*  2050 */  1307, 1306, 1845,  766, 1303, 1836, 1302, 1301, 1300,  381,
 /*  2060 */  2157,  768,  708,  382, 1834,  383, 1808, 1807, 1806,  603,
 /*  2070 */  1533,  688, 2115,  597,  609,  594, 2224,  599,  114,  340,
 /*  2080 */  2190,  712, 2192, 2193,  707,  601,  702, 1511, 1529, 2189,
 /*  2090 */  2105, 1531, 1528,  618,   29, 2188, 1509, 2224,   67,  709,
 /*  2100 */   330, 2190,  712, 2192, 2193,  707,  293,  702,   58, 2092,
 /*  2110 */  2089,  292,  619, 2091, 2189,  387,  259, 2088,  388, 2354,
 /*  2120 */    20,    5,    6,  624,  709,   21,  636, 2207,  628,   31,
 /*  2130 */   267,   17,  255,  166,  275,   22, 1513,  274,   33, 2157,
 /*  2140 */    65,  708, 2178, 1746,  638,  287,   24, 1761,  269, 1760,
 /*  2150 */  1727,  174, 2207, 1719,  273,  393, 1765,   32, 1764,  394,
 /*  2160 */    59, 2090,   93,   60, 2157,   23,  708, 1766, 2087,   18,
 /*  2170 */  2086, 2068,  179, 1767, 2188,   96, 2224,  294,   95,  328,
 /*  2180 */  2190,  712, 2192, 2193,  707,   25,  702, 1694, 2189, 1693,
 /*  2190 */   295, 2067, 1725,   98,  307,  297,   26,  104,  709, 2188,
 /*  2200 */   302, 2224,   68, 2189,  331, 2190,  712, 2192, 2193,  707,
 /*  2210 */   100,  702, 1646,  709,   13,   11, 1645, 1569, 1601, 1656,
 /*  2220 */   180, 2227, 2189,  193,  711,  701, 2207,  715,  407,  719,
 /*  2230 */  1624, 1622,  709, 1621,   39,  683,   16,   27, 2157, 2189,
 /*  2240 */   708, 2207, 1593,  304,   28,  717,  713, 1385, 1382,  709,
 /*  2250 */  1381,  720,  722, 2157,  723,  708,  725, 1378,  726,  728,
 /*  2260 */  2207, 1372,  729,  731, 1370,  732,  105,  310,  106, 1394,
 /*  2270 */  1376, 1390, 2157, 2188,  708, 2224, 1263, 2207,  337, 2190,
 /*  2280 */   712, 2192, 2193,  707,   75,  702,  746, 1295, 2188, 2157,
 /*  2290 */  2224,  708, 1375,  341, 2190,  712, 2192, 2193,  707, 1374,
 /*  2300 */   702, 1294, 1373, 1293, 1292, 1290, 1288, 2188, 2189, 2224,
 /*  2310 */  1287, 1286,  333, 2190,  712, 2192, 2193,  707,  709,  702,
 /*  2320 */  1321,  311,  756, 1284, 2188, 1283, 2224, 1282, 1281,  342,
 /*  2330 */  2190,  712, 2192, 2193,  707, 2189,  702, 1280, 1279, 1278,
 /*  2340 */  1318, 1269, 1316, 1275, 1853,  709, 2207, 1274, 1271, 1270,
 /*  2350 */  1268,  776, 1851,  780, 2189, 1849,  778, 1846, 2157,  777,
 /*  2360 */   708,  782,  784,  786,  709,  788, 1828,  790,  792, 2189,
 /*  2370 */   781, 1210,  785, 2207,  789, 1805,  314,  796, 1780,  709,
 /*  2380 */  1555,  324,  799,  800, 1780, 2157, 1780,  708, 1780, 1780,
 /*  2390 */  1780, 1780, 2207, 2188, 1780, 2224, 1780, 1780,  334, 2190,
 /*  2400 */   712, 2192, 2193,  707, 2157,  702,  708, 2207, 1780, 1780,
 /*  2410 */  1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 2157,
 /*  2420 */  2188,  708, 2224, 1780, 1780,  343, 2190,  712, 2192, 2193,
 /*  2430 */   707, 1780,  702, 1780, 1780, 1780, 1780, 1780, 1780, 2188,
 /*  2440 */  1780, 2224, 2189, 1780,  335, 2190,  712, 2192, 2193,  707,
 /*  2450 */  1780,  702,  709, 1780, 2188, 1780, 2224, 1780, 1780,  348,
 /*  2460 */  2190,  712, 2192, 2193,  707, 1780,  702, 1780, 1780, 2189,
 /*  2470 */  1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780,  709,
 /*  2480 */  2207, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2490 */  1780, 1780, 2157, 1780,  708, 1780, 1780, 1780, 1780, 1780,
 /*  2500 */  1780, 1780, 1780, 1780, 1780, 1780, 1780, 2207, 1780, 1780,
 /*  2510 */  1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 2157,
 /*  2520 */  1780,  708, 1780, 1780, 1780, 1780, 1780, 2188, 1780, 2224,
 /*  2530 */  2189, 1780,  349, 2190,  712, 2192, 2193,  707, 1780,  702,
 /*  2540 */   709, 2189, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2550 */  1780,  709, 1780, 1780, 2188, 1780, 2224, 1780, 1780, 2201,
 /*  2560 */  2190,  712, 2192, 2193,  707, 1780,  702, 1780, 2207, 1780,
 /*  2570 */  1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 2207,
 /*  2580 */  2157, 1780,  708, 1780, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2590 */  1780, 2157, 1780,  708, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2600 */  1780, 1780, 2189, 1780, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2610 */  1780, 1780,  709, 1780, 1780, 2188, 1780, 2224, 1780, 2189,
 /*  2620 */  2200, 2190,  712, 2192, 2193,  707, 2188,  702, 2224,  709,
 /*  2630 */  1780, 2199, 2190,  712, 2192, 2193,  707, 1780,  702, 1780,
 /*  2640 */  2207, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2650 */  2189, 1780, 2157, 1780,  708, 1780, 1780, 2207, 1780, 1780,
 /*  2660 */   709, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 2157,
 /*  2670 */  1780,  708, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2680 */  1780, 1780, 1780, 1780, 1780, 1780, 1780, 2188, 2207, 2224,
 /*  2690 */  1780, 1780,  365, 2190,  712, 2192, 2193,  707, 1780,  702,
 /*  2700 */  2157, 1780,  708, 1780, 2188, 1780, 2224, 1780, 1780,  366,
 /*  2710 */  2190,  712, 2192, 2193,  707, 2189,  702, 1780, 1780, 1780,
 /*  2720 */  1780, 1780, 1780, 1780, 1780,  709, 1780, 1780, 1780, 1780,
 /*  2730 */  1780, 1780, 1780, 1780, 1780, 2188, 1780, 2224, 1780, 1780,
 /*  2740 */   362, 2190,  712, 2192, 2193,  707, 2189,  702, 1780, 1780,
 /*  2750 */  1780, 1780, 1780, 2207, 1780, 1780,  709, 1780, 1780, 1780,
 /*  2760 */  1780, 2189, 1780, 1780, 1780, 2157, 1780,  708, 1780, 1780,
 /*  2770 */  1780,  709, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2780 */  1780, 1780, 1780, 1780, 2207, 1780, 1780, 1780, 1780, 1780,
 /*  2790 */  1780, 1780, 1780, 1780, 1780, 1780, 2157, 1780,  708, 2207,
 /*  2800 */  2188, 1780, 2224, 1780, 1780,  367, 2190,  712, 2192, 2193,
 /*  2810 */   707, 2157,  702,  708, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2820 */  1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780, 1780,
 /*  2830 */  1780,  710, 1780, 2224, 1780, 1780,  340, 2190,  712, 2192,
 /*  2840 */  2193,  707, 1780,  702, 1780, 1780, 2188, 1780, 2224, 1780,
 /*  2850 */  1780,  339, 2190,  712, 2192, 2193,  707, 1780,  702,
845 846
};
static const YYCODETYPE yy_lookahead[] = {
wmmhello's avatar
wmmhello 已提交
847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869
 /*     0 */   341,  393,  340,  346,  342,  379,  410,  350,  410,  352,
 /*    10 */   351,  415,   12,   13,   14,  380,  408,  409,  457,  416,
 /*    20 */    20,  460,   22,    8,    9,  399,  400,   12,   13,   14,
 /*    30 */    15,   16,  442,   33,  444,   35,  475,  476,  379,    8,
 /*    40 */     9,  480,  481,   12,   13,   14,   15,   16,   35,  410,
 /*    50 */   391,   20,  393,  457,  379,  457,  460,  341,  460,   20,
 /*    60 */   341,  386,   62,   12,   13,   14,   15,   16,   68,  394,
 /*    70 */   351,  475,  476,  475,  476,   75,  480,  481,  480,  481,
 /*    80 */   346,  350,  351,   68,  350,  426,  352,  428,   75,  350,
 /*    90 */   431,  432,  433,  434,  435,  436,  457,  438,  379,  460,
 /*   100 */   100,  370,  443,  103,  445,  350,  351,  391,  449,  450,
 /*   110 */   391,    0,  393,    4,  475,  476,   12,   13,   44,  480,
 /*   120 */   481,  462,   20,  341,   20,  370,   22,  112,  371,  470,
 /*   130 */    20,  379,  377,  351,  395,  367,  379,   33,  386,   35,
 /*   140 */   140,  141,   14,   21,  387,  426,  394,  428,   20,  381,
 /*   150 */   431,  432,  433,  434,  435,  436,   34,  438,   36,  391,
 /*   160 */   441,  379,  443,  444,  445,   20,   62,   22,  449,  450,
 /*   170 */   170,  171,   68,  391,   20,  393,  176,  177,  104,   75,
 /*   180 */   379,   70,   71,   72,  169,  350,  351,  386,   77,   78,
 /*   190 */    79,  191,   20,  193,   83,  394,  428,  429,   53,   88,
 /*   200 */    89,   90,   91,  172,  100,   94,  438,  103,  426,  341,
 /*   210 */   428,  172,  103,  431,  432,  433,  434,  435,  436,  351,
 /*   220 */   438,  353,   20,  223,  224,   20,  226,  227,  228,  229,
H
Haojun Liao 已提交
870
 /*   230 */   230,  231,  232,  233,  234,  235,  236,  237,  238,  239,
wmmhello's avatar
wmmhello 已提交
871 872 873 874 875 876 877 878 879
 /*   240 */   240,  241,  242,  243,  140,  141,   20,  379,  350,  351,
 /*   250 */   140,  141,  345,  471,  472,  348,  349,  103,   20,  391,
 /*   260 */    22,  393,  247,  248,  249,  250,  251,  252,  253,  254,
 /*   270 */   255,  256,  257,   35,  170,  171,   20,  103,    8,    9,
 /*   280 */   176,  177,   12,   13,   14,   15,   16,  452,  453,  454,
 /*   290 */   455,   53,  457,  458,  426,  191,  428,  193,  170,  431,
 /*   300 */   432,  433,  434,  435,  436,  175,  438,    0,  103,  350,
 /*   310 */   351,  443,    0,  445,   44,   48,  341,  449,  450,  133,
 /*   320 */   134,  135,  136,  137,  138,  139,  351,  223,  224,  370,
D
Dingle Zhang 已提交
880
 /*   330 */   226,  227,  228,  229,  230,  231,  232,  233,  234,  235,
wmmhello's avatar
wmmhello 已提交
881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166
 /*   340 */   236,  237,  238,  239,  240,  241,  242,  243,  244,   12,
 /*   350 */    13,  453,  454,  455,  379,  457,  458,   20,  379,   22,
 /*   360 */   100,   49,   12,   13,   37,  386,  391,  350,  393,  260,
 /*   370 */    33,    0,   35,  394,  104,  115,  116,  117,  118,  119,
 /*   380 */   120,  121,  122,  123,  124,   35,  126,  127,  128,  129,
 /*   390 */   130,  131,  132,  103,  341,  265,  266,  267,  172,   62,
 /*   400 */    62,  426,  103,  428,  351,   68,  431,  432,  433,  434,
 /*   410 */   435,  436,   75,  438,  260,   44,    2,  357,  443,  402,
 /*   420 */   445,  404,    8,    9,  449,  450,   12,   13,   14,   15,
 /*   430 */    16,  379,  379,  106,  260,  108,  109,  100,  111,  172,
 /*   440 */   103,  103,  382,  105,  391,  470,  393,  180,   20,   70,
 /*   450 */    71,   72,  400,   12,   13,   14,   77,   78,   79,    4,
 /*   460 */   133,   20,   83,   22,  137,  260,  159,   88,   89,   90,
 /*   470 */    91,  446,  447,   94,   33,  168,   35,  140,  141,  426,
 /*   480 */   190,  428,  192,   67,  431,  432,  433,  434,  435,  436,
 /*   490 */   437,  438,  439,  440,    0,   14,   15,   16,   43,  341,
 /*   500 */    45,   46,  360,   62,    0,  223,  351,  170,  171,  351,
 /*   510 */   368,  353,  222,  176,  177,   21,   75,  393,   24,   25,
 /*   520 */    26,   27,   28,   29,   30,   31,   32,   49,  191,  405,
 /*   530 */   193,  103,  408,  409,  379,   57,  430,  379,   60,   61,
 /*   540 */    20,  100,  345,  193,  103,  348,  349,   54,   55,  391,
 /*   550 */   260,  393,  270,  271,  272,  273,  274,  275,  276,  260,
 /*   560 */   223,  224,  456,  226,  227,  228,  229,  230,  231,  232,
 /*   570 */   233,  234,  235,  236,  237,  238,  239,  240,  241,  242,
 /*   580 */   243,  140,  141,  359,  426,  103,  428,  378,  433,  431,
 /*   590 */   432,  433,  434,  435,  436,  113,  438,    0,  260,  390,
 /*   600 */   376,  443,  389,  445,   14,  392,  393,  449,  450,  385,
 /*   610 */    20,  170,  171,  350,  351,  350,  351,  176,  177,    0,
 /*   620 */    33,   24,   25,   26,   27,   28,   29,   30,   31,   32,
 /*   630 */   350,  351,  191,  370,  193,  370,   49,  133,  134,  135,
 /*   640 */   136,  137,  138,  139,   57,   58,   59,   60,  379,   62,
 /*   650 */   370,  375,    8,    9,  169,  386,   12,   13,   14,   15,
 /*   660 */    16,  134,  135,  394,  223,  224,  139,  226,  227,  228,
 /*   670 */   229,  230,  231,  232,  233,  234,  235,  236,  237,  238,
 /*   680 */   239,  240,  241,  242,  243,   12,   13,  341,   22,  102,
 /*   690 */   170,  171,  105,   20,  379,   22,  341,  351,   14,  423,
 /*   700 */   457,   35,    0,  460,   20,  351,   33,   21,   35,  394,
 /*   710 */    24,   25,   26,   27,   28,   29,   30,   31,   32,  476,
 /*   720 */   350,  351,   67,  480,  481,  379,  457,  350,  351,  460,
 /*   730 */   350,  351,  247,  341,    4,   62,  430,  391,  341,  393,
 /*   740 */   370,   75,  257,  351,  475,  476,  391,  370,   75,  480,
 /*   750 */   481,  397,  133,  134,  135,  136,  137,  138,  139,  371,
 /*   760 */   173,  174,  456,  350,   35,  178,  100,  379,  181,   67,
 /*   770 */     3,  379,  426,  100,  428,  387,  103,  431,  432,  433,
 /*   780 */   434,  435,  436,  391,  438,  393,  199,   20,  391,   12,
 /*   790 */    13,  445,  392,  393,  350,  449,  450,   20,   20,   22,
 /*   800 */     8,    9,  350,  351,   12,   13,   14,   15,   16,  114,
 /*   810 */    33,   84,   35,  140,  141,  402,  172,  404,  426,  244,
 /*   820 */   428,   20,  370,  431,  432,  433,  434,  435,  436,  377,
 /*   830 */   438,   20,  341,  453,  454,  455,   75,  457,  458,   62,
 /*   840 */   460,  341,  186,  170,  171,   22,  402,  338,  404,  176,
 /*   850 */   177,  351,   75,  353,  170,  475,  476,  191,   35,  193,
 /*   860 */   480,  481,  457,  114,  191,  460,  193,  350,  351,  213,
 /*   870 */   214,  104,  145,  146,  482,  483,  371,  100,   75,  379,
 /*   880 */   103,  476,  391,  380,  379,  480,  481,  370,   14,  223,
 /*   890 */   224,  391,  387,  393,   20,  168,  223,  224,  380,  226,
 /*   900 */   227,  228,  229,  230,  231,  232,  233,  234,  235,  236,
 /*   910 */   237,  238,  239,  240,  241,  242,  243,  140,  141,  410,
 /*   920 */   350,  351,  193,  100,  415,  244,  426,  246,  428,    4,
 /*   930 */   341,  431,  432,  433,  434,  435,  436,  380,  438,  172,
 /*   940 */   370,  140,  141,  443,   19,  445,  380,  170,  171,  449,
 /*   950 */   450,  350,  351,  176,  177,   62,    8,    9,   33,  379,
 /*   960 */    12,   13,   14,   15,   16,  134,  457,  387,  191,  460,
 /*   970 */   193,  370,  350,  351,   49,  183,    3,  176,  177,  410,
 /*   980 */   391,   56,  341,  172,  475,  476,  442,   62,  444,  480,
 /*   990 */   481,  261,  370,  355,  356,  102,  350,  351,  105,  368,
 /*  1000 */   223,  224,    0,  226,  227,  228,  229,  230,  231,  232,
 /*  1010 */   233,  234,  235,  236,  237,  238,  239,  240,  241,  242,
 /*  1020 */   243,  430,   18,   18,   20,  371,  457,  102,   23,  460,
 /*  1030 */   105,   27,  391,  379,   30,  204,  205,   33,    1,    2,
 /*  1040 */   386,  387,   37,   38,  475,  476,   41,  456,  394,  480,
 /*  1050 */   481,  441,  104,   49,  444,   51,  351,   52,    8,    9,
 /*  1060 */    56,  341,   12,   13,   14,   15,   16,  341,   63,   64,
 /*  1070 */    65,   66,   70,   71,   72,   73,   74,  285,   76,   77,
 /*  1080 */    78,   79,   80,   81,   82,   83,   84,   85,   86,   87,
 /*  1090 */    88,   89,   90,   91,   92,   93,   94,   95,   96,  453,
 /*  1100 */   454,  455,  397,  457,  458,  133,  102,  359,  103,  137,
 /*  1110 */   135,  391,  350,  351,  139,    8,    9,  391,  114,   12,
 /*  1120 */    13,   14,   15,   16,    2,  367,  367,  341,  354,  410,
 /*  1130 */     8,    9,  370,  385,   12,   13,   14,   15,   16,  381,
 /*  1140 */   381,  104,  355,  356,  364,  365,    0,  142,  144,  391,
 /*  1150 */   391,  147,  148,  149,  150,  151,  152,  153,  154,  155,
 /*  1160 */   156,  157,  158,  159,  160,  161,  162,  163,  351,  165,
 /*  1170 */   166,  167,  350,  351,   39,  200,  457,  391,  203,  460,
 /*  1180 */    42,  206,   44,  208,  350,  351,  428,  428,  183,  184,
 /*  1190 */   185,  341,  370,  188,  475,  476,  438,  438,  341,  480,
 /*  1200 */   481,  351,   20,  353,  370,  357,  201,  202,  350,  351,
 /*  1210 */   341,  104,  350,  351,  397,  350,  351,  212,  350,  351,
 /*  1220 */   215,  341,  374,  218,  219,  220,  221,  222,  370,  379,
 /*  1230 */   382,  351,  370,  353,   42,  370,   44,  341,  370,   22,
 /*  1240 */   114,  391,  341,  393,  350,  351,   12,   13,  391,  364,
 /*  1250 */   365,  341,   35,  280,  341,  341,   22,  341,   44,  379,
 /*  1260 */   391,  351,   22,  353,  370,  260,  207,   33,  209,   35,
 /*  1270 */   341,  391,  341,  393,  341,   35,  426,  372,  428,   44,
 /*  1280 */   375,  431,  432,  433,  434,  435,  436,  391,  438,  379,
 /*  1290 */   164,  388,  391,  443,  391,  445,   62,   45,   46,  449,
 /*  1300 */   450,  391,   44,  393,  391,  391,  426,  391,  428,   75,
 /*  1310 */    68,  431,  432,  433,  434,  435,  436,  100,  438,   44,
 /*  1320 */   391,   44,  391,  443,  391,  445,  258,  259,  388,  449,
 /*  1330 */   450,  391,  388,   62,  100,  391,  426,  366,  428,  104,
 /*  1340 */   369,  431,  432,  433,  434,  435,  436,  341,  438,   13,
 /*  1350 */    13,  107,  170,  443,  110,  445,    0,  351,  107,  449,
 /*  1360 */   450,  110,  107,  217,    0,  110,    0,  107,   62,   44,
 /*  1370 */   110,   35,   35,  140,  141,   44,  105,   35,   22,  104,
 /*  1380 */    47,  104,  342,   44,  401,  379,   22,  380,   22,  380,
 /*  1390 */     1,    2,   44,   44,  259,  341,    0,  391,  367,  393,
 /*  1400 */    13,   44,   44,   44,   44,  351,   44,   44,   13,   44,
 /*  1410 */   484,  105,  473,  467,   35,  367,  354,   44,   44,   44,
 /*  1420 */   379,   44,   35,  401,  349,  191,  390,  193,  351,  104,
 /*  1430 */    35,  401,  426,  379,  428,  104,  103,  431,  432,  433,
 /*  1440 */   434,  435,  436,  104,  438,  391,   50,  393,  459,  443,
 /*  1450 */   451,  445,  104,  104,   75,  449,  450,  223,  224,  477,
 /*  1460 */   262,  104,  104,  104,  104,  223,  104,  104,  411,  104,
 /*  1470 */   236,  237,  238,  239,  240,  241,  242,  104,  104,  104,
 /*  1480 */   426,  104,  428,   49,  461,  431,  432,  433,  434,  435,
 /*  1490 */   436,  427,  438,   20,  420,  341,  282,  443,  206,  445,
 /*  1500 */   359,  425,  420,  449,  450,  351,  359,  189,  413,   42,
 /*  1510 */   398,   20,  401,  398,  169,  396,   20,  350,  350,  398,
 /*  1520 */   396,  396,  101,  363,   99,  362,  350,   98,  350,  350,
 /*  1530 */   361,  341,   20,  379,  350,  193,  343,   48,  347,  343,
 /*  1540 */   420,  351,  284,   20,  347,  391,  359,  393,  393,   20,
 /*  1550 */    20,  352,  412,  359,  359,  352,  350,  350,  343,  359,
 /*  1560 */   359,  359,  341,  359,  379,  379,  391,  379,  379,  379,
 /*  1570 */   422,  343,  351,  424,  391,  103,  420,  210,  197,  196,
 /*  1580 */   426,  391,  428,  393,  379,  431,  432,  433,  434,  435,
 /*  1590 */   436,  379,  438,  357,  357,  379,  419,  443,  341,  445,
 /*  1600 */   379,  379,  379,  449,  450,  379,  379,  195,  351,  391,
 /*  1610 */   391,  350,  391,  393,  393,  350,  426,  466,  428,  411,
 /*  1620 */   411,  431,  432,  433,  434,  435,  436,  341,  438,  418,
 /*  1630 */   417,  401,  401,  469,  391,  445,  379,  351,  269,  449,
 /*  1640 */   450,  391,  182,  263,  268,  406,  466,  426,  391,  428,
 /*  1650 */   393,  406,  431,  432,  433,  434,  435,  436,  341,  438,
 /*  1660 */   391,  277,  259,  281,  279,  379,  445,  411,  351,  278,
 /*  1670 */   449,  450,  286,  283,  351,   20,  350,  391,  468,  393,
 /*  1680 */   352,  411,   20,  426,  430,  428,  357,  341,  431,  432,
 /*  1690 */   433,  434,  435,  436,  465,  438,  379,  351,  466,  404,
 /*  1700 */   357,  384,  445,  479,  406,  464,  391,  450,  391,  463,
 /*  1710 */   393,  391,  426,  391,  428,  391,  406,  431,  432,  433,
 /*  1720 */   434,  435,  436,  485,  438,  379,  478,  174,  357,  391,
 /*  1730 */   384,  391,  103,  403,  103,  357,  375,  391,  448,  393,
 /*  1740 */    36,  391,  344,  426,  351,  428,  414,  341,  431,  432,
 /*  1750 */   433,  434,  435,  436,  350,  438,  357,  351,  472,  343,
 /*  1760 */   407,  369,  421,  358,    0,  339,    0,  373,    0,   42,
 /*  1770 */   373,  383,  426,  373,  428,  407,  341,  431,  432,  433,
 /*  1780 */   434,  435,  436,    0,  438,  379,  351,   35,  216,   35,
 /*  1790 */    35,   35,  216,    0,   35,   35,  216,  391,    0,  393,
 /*  1800 */   216,    0,   35,    0,   22,    0,   35,  211,    0,  199,
 /*  1810 */     0,  199,  341,  200,  379,  193,  191,    0,    0,    0,
 /*  1820 */   187,  186,  351,    0,    0,   47,  391,    0,  393,    0,
 /*  1830 */     0,   42,  426,    0,  428,    0,    0,  431,  432,  433,
 /*  1840 */   434,  435,  436,    0,  438,    0,  341,  159,   35,    0,
 /*  1850 */   379,    0,    0,    0,  159,  384,  351,    0,    0,    0,
 /*  1860 */     0,  426,  391,  428,  393,    0,  431,  432,  433,  434,
 /*  1870 */   435,  436,    0,  438,    0,    0,    0,    0,    0,    0,
 /*  1880 */   474,   42,    0,    0,  379,    0,    0,    0,    0,    0,
 /*  1890 */     0,    0,    0,   22,    0,    0,  391,  426,  393,  428,
 /*  1900 */     0,  143,  431,  432,  433,  434,  435,  436,    0,  438,
 /*  1910 */     0,  341,   48,    0,   48,   22,   62,    0,  483,   22,
 /*  1920 */     0,  351,  341,   62,    0,   62,    0,    0,    0,   49,
 /*  1930 */     0,  426,  351,  428,    1,   39,  431,  432,  433,  434,
 /*  1940 */   435,  436,   35,  438,   35,  440,   35,    0,   49,  379,
 /*  1950 */    35,   39,   19,   49,  384,   39,   35,   39,   44,   14,
 /*  1960 */   379,  391,    0,  393,   42,  384,   33,  182,    0,    0,
 /*  1970 */    47,   39,  391,    0,  393,   40,   47,    0,   47,    0,
 /*  1980 */    39,    0,   49,    0,    0,   35,   49,   39,   69,  341,
 /*  1990 */    57,   58,   59,   60,   35,   62,  426,    0,  428,  351,
 /*  2000 */    49,  431,  432,  433,  434,  435,  436,  426,  438,  428,
 /*  2010 */   341,   39,  431,  432,  433,  434,  435,  436,    0,  438,
 /*  2020 */   351,   35,    0,   49,   39,   35,   39,  379,   35,   49,
 /*  2030 */     0,    0,    0,    0,    0,  102,    0,  112,  105,  391,
 /*  2040 */     0,  393,   22,   35,  110,   35,   35,   35,  379,   35,
 /*  2050 */    35,   35,    0,   44,   35,    0,   35,   22,   35,   22,
 /*  2060 */   391,   44,  393,   22,    0,   22,    0,    0,    0,   22,
 /*  2070 */   104,  138,    0,   35,  426,   51,  428,   35,   20,  431,
 /*  2080 */   432,  433,  434,  435,  436,   35,  438,   22,   35,  341,
 /*  2090 */     0,   35,   35,   22,  103,  426,   35,  428,  103,  351,
 /*  2100 */   431,  432,  433,  434,  435,  436,  173,  438,  172,    0,
 /*  2110 */     0,  178,  172,    0,  341,  172,  174,    0,  172,    3,
 /*  2120 */    44,   48,   48,  179,  351,   44,  101,  379,  179,  103,
 /*  2130 */   103,  264,  199,  194,   47,   44,  198,   44,   44,  391,
 /*  2140 */     3,  393,   47,  104,   99,   47,   44,   35,  104,   35,
 /*  2150 */   104,  103,  379,  104,  103,   35,   35,  103,   35,   35,
 /*  2160 */   258,    0,  103,   44,  391,  264,  393,  104,    0,  264,
 /*  2170 */     0,    0,   47,  104,  426,   39,  428,   47,  103,  431,
 /*  2180 */   432,  433,  434,  435,  436,  103,  438,  104,  341,  104,
 /*  2190 */   104,    0,  104,   39,   47,  103,   44,  113,  351,  426,
 /*  2200 */   103,  428,  103,  341,  431,  432,  433,  434,  435,  436,
 /*  2210 */   103,  438,  101,  351,    2,  245,  101,   22,   22,  223,
 /*  2220 */    47,  103,  341,   47,  225,  103,  379,   35,   35,   35,
 /*  2230 */   104,  104,  351,  104,  103,  175,  103,  103,  391,  341,
 /*  2240 */   393,  379,  104,  173,  103,  103,  114,  104,  104,  351,
 /*  2250 */   104,  103,   35,  391,  103,  393,   35,  104,  103,   35,
 /*  2260 */   379,  104,  103,   35,  104,  103,  103,   44,  103,   35,
 /*  2270 */   125,   22,  391,  426,  393,  428,   69,  379,  431,  432,
 /*  2280 */   433,  434,  435,  436,  103,  438,   68,   35,  426,  391,
 /*  2290 */   428,  393,  125,  431,  432,  433,  434,  435,  436,  125,
 /*  2300 */   438,   35,  125,   35,   35,   35,   35,  426,  341,  428,
 /*  2310 */    35,   35,  431,  432,  433,  434,  435,  436,  351,  438,
 /*  2320 */    75,   44,   97,   35,  426,   35,  428,   35,   22,  431,
 /*  2330 */   432,  433,  434,  435,  436,  341,  438,   35,   35,   35,
 /*  2340 */    75,   22,   35,   35,    0,  351,  379,   35,   35,   35,
 /*  2350 */    35,   35,    0,   35,  341,    0,   39,    0,  391,   49,
 /*  2360 */   393,   39,   35,   39,  351,   35,    0,   39,   35,  341,
 /*  2370 */    49,   35,   49,  379,   49,    0,   22,   21,  486,  351,
 /*  2380 */    22,   22,   21,   20,  486,  391,  486,  393,  486,  486,
 /*  2390 */   486,  486,  379,  426,  486,  428,  486,  486,  431,  432,
 /*  2400 */   433,  434,  435,  436,  391,  438,  393,  379,  486,  486,
 /*  2410 */   486,  486,  486,  486,  486,  486,  486,  486,  486,  391,
 /*  2420 */   426,  393,  428,  486,  486,  431,  432,  433,  434,  435,
 /*  2430 */   436,  486,  438,  486,  486,  486,  486,  486,  486,  426,
 /*  2440 */   486,  428,  341,  486,  431,  432,  433,  434,  435,  436,
 /*  2450 */   486,  438,  351,  486,  426,  486,  428,  486,  486,  431,
 /*  2460 */   432,  433,  434,  435,  436,  486,  438,  486,  486,  341,
 /*  2470 */   486,  486,  486,  486,  486,  486,  486,  486,  486,  351,
 /*  2480 */   379,  486,  486,  486,  486,  486,  486,  486,  486,  486,
 /*  2490 */   486,  486,  391,  486,  393,  486,  486,  486,  486,  486,
 /*  2500 */   486,  486,  486,  486,  486,  486,  486,  379,  486,  486,
 /*  2510 */   486,  486,  486,  486,  486,  486,  486,  486,  486,  391,
 /*  2520 */   486,  393,  486,  486,  486,  486,  486,  426,  486,  428,
 /*  2530 */   341,  486,  431,  432,  433,  434,  435,  436,  486,  438,
 /*  2540 */   351,  341,  486,  486,  486,  486,  486,  486,  486,  486,
 /*  2550 */   486,  351,  486,  486,  426,  486,  428,  486,  486,  431,
 /*  2560 */   432,  433,  434,  435,  436,  486,  438,  486,  379,  486,
 /*  2570 */   486,  486,  486,  486,  486,  486,  486,  486,  486,  379,
 /*  2580 */   391,  486,  393,  486,  486,  486,  486,  486,  486,  486,
 /*  2590 */   486,  391,  486,  393,  486,  486,  486,  486,  486,  486,
 /*  2600 */   486,  486,  341,  486,  486,  486,  486,  486,  486,  486,
 /*  2610 */   486,  486,  351,  486,  486,  426,  486,  428,  486,  341,
 /*  2620 */   431,  432,  433,  434,  435,  436,  426,  438,  428,  351,
 /*  2630 */   486,  431,  432,  433,  434,  435,  436,  486,  438,  486,
 /*  2640 */   379,  486,  486,  486,  486,  486,  486,  486,  486,  486,
 /*  2650 */   341,  486,  391,  486,  393,  486,  486,  379,  486,  486,
 /*  2660 */   351,  486,  486,  486,  486,  486,  486,  486,  486,  391,
 /*  2670 */   486,  393,  486,  486,  486,  486,  486,  486,  486,  486,
 /*  2680 */   486,  486,  486,  486,  486,  486,  486,  426,  379,  428,
 /*  2690 */   486,  486,  431,  432,  433,  434,  435,  436,  486,  438,
 /*  2700 */   391,  486,  393,  486,  426,  486,  428,  486,  486,  431,
 /*  2710 */   432,  433,  434,  435,  436,  341,  438,  486,  486,  486,
 /*  2720 */   486,  486,  486,  486,  486,  351,  486,  486,  486,  486,
 /*  2730 */   486,  486,  486,  486,  486,  426,  486,  428,  486,  486,
 /*  2740 */   431,  432,  433,  434,  435,  436,  341,  438,  486,  486,
 /*  2750 */   486,  486,  486,  379,  486,  486,  351,  486,  486,  486,
 /*  2760 */   486,  341,  486,  486,  486,  391,  486,  393,  486,  486,
 /*  2770 */   486,  351,  486,  486,  486,  486,  486,  486,  486,  486,
 /*  2780 */   486,  486,  486,  486,  379,  486,  486,  486,  486,  486,
 /*  2790 */   486,  486,  486,  486,  486,  486,  391,  486,  393,  379,
 /*  2800 */   426,  486,  428,  486,  486,  431,  432,  433,  434,  435,
 /*  2810 */   436,  391,  438,  393,  486,  486,  486,  486,  486,  486,
 /*  2820 */   486,  486,  486,  486,  486,  486,  486,  486,  486,  486,
 /*  2830 */   486,  426,  486,  428,  486,  486,  431,  432,  433,  434,
 /*  2840 */   435,  436,  486,  438,  486,  486,  426,  486,  428,  486,
 /*  2850 */   486,  431,  432,  433,  434,  435,  436,  486,  438,  338,
 /*  2860 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2870 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2880 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2890 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2900 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2910 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2920 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2930 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2940 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2950 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2960 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2970 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2980 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  2990 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3000 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3010 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3020 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3030 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3040 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3050 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3060 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3070 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3080 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3090 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3100 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3110 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3120 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3130 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3140 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3150 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3160 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3170 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3180 */   338,  338,  338,  338,  338,  338,  338,  338,  338,  338,
 /*  3190 */   338,  338,  338,  338,  338,  338,  338,
1167
};
wmmhello's avatar
wmmhello 已提交
1168
#define YY_SHIFT_COUNT    (801)
1169
#define YY_SHIFT_MIN      (0)
wmmhello's avatar
wmmhello 已提交
1170
#define YY_SHIFT_MAX      (2375)
1171
static const unsigned short int yy_shift_ofst[] = {
wmmhello's avatar
wmmhello 已提交
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252
 /*     0 */  1005,    0,  104,    0,  337,  337,  337,  337,  337,  337,
 /*    10 */   337,  337,  337,  337,  337,  337,  441,  673,  673,  777,
 /*    20 */   673,  673,  673,  673,  673,  673,  673,  673,  673,  673,
 /*    30 */   673,  673,  673,  673,  673,  673,  673,  673,  673,  673,
 /*    40 */   673,  673,  673,  673,  673,  673,  673,  673,  673,  673,
 /*    50 */   673,  154,  205,  290,  428,  338,  174,  299,  174,  428,
 /*    60 */   428, 1234,  174, 1234, 1234,  109,  174,  102,  801,  172,
 /*    70 */   172,  801,  455,  455,  520,  110,  590,  590,  172,  172,
 /*    80 */   172,  172,  172,  172,  172,  202,  172,  172,  416,  102,
 /*    90 */   172,  172,  172,  256,  172,  102,  172,  202,  172,  202,
 /*   100 */   102,  172,  172,  102,  172,  102,  102,  102,  172,  655,
 /*   110 */  1004,   15,   15,  379,  686,  666,  666,  666,  666,  666,
 /*   120 */   666,  666,  666,  666,  666,  666,  666,  666,  666,  666,
 /*   130 */   666,  666,  666,  666,  327,  767,  520,  110,  493,  493,
 /*   140 */    13,   39,   39,   39,  702,  681,  681,   13,  778,  778,
 /*   150 */   778,  416,  695,  575,  102,  761,  102,  761,  761,  749,
 /*   160 */   803,  260,  260,  260,  260,  260,  260,  260,  260, 1933,
 /*   170 */   111,  494,   31,  792,  282,  238,  130,  350,  350,  128,
 /*   180 */   684,  145,  226, 1252,  874,  972,  811, 1068, 1135,  973,
 /*   190 */  1068, 1138,  730, 1182, 1198, 1434, 1473, 1292,  416, 1473,
 /*   200 */   416, 1318, 1467, 1491, 1467, 1345, 1496, 1496, 1467, 1345,
 /*   210 */  1345, 1421, 1425, 1496, 1429, 1496, 1496, 1496, 1512, 1489,
 /*   220 */  1512, 1489, 1473,  416, 1523,  416, 1529, 1530,  416, 1529,
 /*   230 */   416,  416,  416, 1496,  416, 1512,  102,  102,  102,  102,
 /*   240 */   102,  102,  102,  102,  102,  102,  102, 1496, 1512,  761,
 /*   250 */   761,  761, 1367, 1472, 1473,  655, 1381, 1383, 1523,  655,
 /*   260 */  1412, 1198, 1496, 1198, 1496, 1491, 1491,  761, 1369, 1376,
 /*   270 */   761, 1369, 1376,  761,  761,  102, 1384, 1460, 1369, 1385,
 /*   280 */  1391, 1380, 1198, 1386, 1390, 1382, 1403,  778, 1655, 1198,
 /*   290 */  1496, 1529,  655,  655, 1662, 1376,  761,  761,  761,  761,
 /*   300 */   761, 1376,  761, 1553,  655,  749,  655,  778, 1629, 1631,
 /*   310 */   761,  803, 1496,  655, 1704, 1512, 2859, 2859, 2859, 2859,
 /*   320 */  2859, 2859, 2859, 2859, 2859, 1002,  587,  597,  270,  925,
 /*   330 */   948, 1107,  504,  414, 1122,  644,  619, 1050, 1050, 1050,
 /*   340 */  1050, 1050, 1050, 1050, 1050, 1050,  186,  975,   51,   51,
 /*   350 */   727,  478,  656,  307,  893,  823, 1217,  122,  831,  267,
 /*   360 */   527,  527,  481, 1037,  485,  481,  481,  481,  312, 1146,
 /*   370 */    74, 1240, 1192, 1126,  371, 1244, 1251, 1255, 1260, 1336,
 /*   380 */  1337, 1356, 1364, 1366, 1059, 1235, 1275, 1271, 1306, 1277,
 /*   390 */  1325, 1331, 1233, 1214, 1258, 1339, 1348, 1349, 1357, 1358,
 /*   400 */  1359, 1389, 1360, 1242, 1362, 1333, 1363, 1365, 1373, 1374,
 /*   410 */  1375, 1377,  482,  729, 1342, 1387, 1395, 1379, 1396, 1764,
 /*   420 */  1766, 1768, 1727, 1783, 1752, 1572, 1754, 1755, 1756, 1576,
 /*   430 */  1793, 1759, 1760, 1580, 1798, 1584, 1801, 1767, 1803, 1782,
 /*   440 */  1805, 1771, 1596, 1808, 1610, 1810, 1612, 1613, 1622, 1625,
 /*   450 */  1817, 1818, 1819, 1633, 1635, 1823, 1824, 1778, 1827, 1829,
 /*   460 */  1830, 1789, 1833, 1835, 1836, 1843, 1845, 1851, 1852, 1853,
 /*   470 */  1688, 1813, 1849, 1695, 1857, 1858, 1859, 1860, 1865, 1872,
 /*   480 */  1874, 1875, 1876, 1877, 1878, 1879, 1885, 1886, 1887, 1888,
 /*   490 */  1839, 1882, 1883, 1889, 1890, 1891, 1892, 1871, 1894, 1895,
 /*   500 */  1900, 1758, 1908, 1910, 1893, 1864, 1897, 1866, 1913, 1854,
 /*   510 */  1907, 1917, 1861, 1920, 1863, 1924, 1926, 1909, 1880, 1896,
 /*   520 */  1927, 1911, 1899, 1912, 1928, 1915, 1904, 1916, 1930, 1921,
 /*   530 */  1947, 1922, 1918, 1914, 1923, 1929, 1945, 1931, 1962, 1935,
 /*   540 */  1932, 1973, 1977, 1979, 1941, 1785, 1968, 1969, 1981, 1919,
 /*   550 */  1983, 1984, 1950, 1937, 1948, 1997, 1959, 1951, 1972, 2018,
 /*   560 */  1986, 1974, 1985, 2022, 1990, 1980, 1987, 2030, 2031, 2032,
 /*   570 */  2033, 2034, 2036, 1925, 1934, 1993, 2020, 2040, 2008, 2010,
 /*   580 */  2011, 2012, 2014, 2015, 2016, 2009, 2017, 2019, 2021, 2035,
 /*   590 */  2023, 2052, 2037, 2055, 2041, 2024, 2064, 2043, 2038, 2066,
 /*   600 */  2042, 2067, 2050, 2068, 2047, 2058, 2053, 2056, 2057, 1966,
 /*   610 */  1991, 2072, 1936, 1995, 1938, 2061, 2065, 2090, 1939, 2071,
 /*   620 */  1940, 1942, 2109, 2110, 1943, 1944, 2113, 2117, 1946, 1949,
 /*   630 */  2116, 2076, 1867, 2026, 2039, 2027, 2073, 2025, 2074, 2045,
 /*   640 */  2044, 2081, 2091, 2046, 2048, 2051, 2054, 2049, 2093, 2087,
 /*   650 */  2095, 2059, 2094, 1901, 2063, 2069, 2137, 2102, 1905, 2112,
 /*   660 */  2114, 2120, 2121, 2123, 2124, 2083, 2085, 2098, 1902, 2119,
 /*   670 */  2125, 2161, 2168, 2170, 2171, 2075, 2136, 1923, 2130, 2082,
 /*   680 */  2086, 2088, 2092, 2097, 2060, 2099, 2191, 2154, 2070, 2107,
 /*   690 */  2084, 1923, 2147, 2152, 2111, 1970, 2115, 2212, 2195, 1996,
 /*   700 */  2118, 2126, 2122, 2127, 2131, 2129, 2173, 2133, 2134, 2176,
 /*   710 */  2138, 2196, 1999, 2141, 2132, 2143, 2192, 2193, 2142, 2144,
 /*   720 */  2194, 2148, 2146, 2217, 2151, 2153, 2221, 2155, 2157, 2224,
 /*   730 */  2159, 2160, 2228, 2162, 2145, 2167, 2174, 2177, 2163, 2223,
 /*   740 */  2165, 2234, 2181, 2223, 2223, 2249, 2207, 2218, 2252, 2266,
 /*   750 */  2268, 2269, 2270, 2271, 2275, 2276, 2245, 2225, 2277, 2288,
 /*   760 */  2290, 2292, 2306, 2302, 2303, 2304, 2265, 2009, 2307, 2017,
 /*   770 */  2308, 2312, 2313, 2314, 2319, 2315, 2344, 2316, 2310, 2317,
 /*   780 */  2352, 2318, 2321, 2322, 2355, 2327, 2323, 2324, 2357, 2330,
 /*   790 */  2325, 2328, 2366, 2333, 2336, 2375, 2354, 2356, 2358, 2359,
 /*   800 */  2361, 2363,
1253
};
wmmhello's avatar
wmmhello 已提交
1254 1255 1256
#define YY_REDUCE_COUNT (324)
#define YY_REDUCE_MIN   (-439)
#define YY_REDUCE_MAX   (2420)
1257
static const short yy_reduce_ofst[] = {
wmmhello's avatar
wmmhello 已提交
1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290
 /*     0 */   509, -341, -281,  -25, -132,  158,  500,  850,  880,  910,
 /*    10 */  1006, 1054, 1154,  346, 1190, 1221,   53, -218,  392, 1257,
 /*    20 */  1286, 1317, 1346, 1406, 1435, 1471, 1505, 1570, 1581, 1648,
 /*    30 */  1669, 1748, 1773, 1847, 1862, 1881, 1898, 1967, 1994, 2013,
 /*    40 */  2028, 2101, 2128, 2189, 2200, 2261, 2278, 2309, 2374, 2405,
 /*    50 */  2420,  380,  269, -404, -165, -402, -361,  569,  719, -102,
 /*    60 */   646, -232, -439,  758,  759,  243,  405,  654,  124, -245,
 /*    70 */   452, -392,  -93,  197, -374,  213, -343, -266, -269,  -41,
 /*    80 */   263,  265,  280,  370,  377,   17,  517,  570,  224, -325,
 /*    90 */   601,  622,  762,  155,  822, -248,  834,  413,  858,  444,
 /*   100 */  -243,  862,  865, -199,  868,  388,  -21,  505,  894,  848,
 /*   110 */  -261,   25,   25,  142, -338, -284,  355,  397,  491,  589,
 /*   120 */   641,  720,  726,  786,  857,  869,  896,  901,  913,  914,
 /*   130 */   916,  929,  931,  933,  209,  106,   52,  400,  638,  787,
 /*   140 */   780,  106,  306,  591,   60, -410,  544,  885,  354,  705,
 /*   150 */   817,  748,  276,  610,  580,  903,  315,  940,  944,  905,
 /*   160 */   971, -365,  503,  518,  557,  566, 1007, 1009,  566, -397,
 /*   170 */   631, 1040,  983,  926,  939,  774,  946, 1031, 1048, 1041,
 /*   180 */  1041, 1062, 1022, 1075, 1077, 1036, 1030,  989,  989,  982,
 /*   190 */   989,  999, 1023, 1041, 1057, 1064, 1074, 1076, 1141, 1082,
 /*   200 */  1147, 1095, 1112, 1111, 1115, 1119, 1167, 1168, 1121, 1124,
 /*   210 */  1125, 1160, 1163, 1176, 1169, 1178, 1179, 1184, 1193, 1191,
 /*   220 */  1196, 1197, 1120, 1187, 1155, 1194, 1199, 1140, 1195, 1203,
 /*   230 */  1200, 1201, 1202, 1206, 1204, 1215, 1185, 1186, 1188, 1189,
 /*   240 */  1205, 1212, 1216, 1222, 1223, 1226, 1227, 1207, 1228, 1175,
 /*   250 */  1183, 1218, 1149, 1148, 1156, 1236, 1177, 1211, 1220, 1237,
 /*   260 */  1213, 1208, 1261, 1209, 1265, 1230, 1231, 1219, 1151, 1239,
 /*   270 */  1243, 1180, 1245, 1250, 1269, 1041, 1164, 1210, 1232, 1229,
 /*   280 */  1241, 1246, 1256, 1238, 1224, 1248,  989, 1323, 1254, 1270,
 /*   290 */  1326, 1328, 1329, 1343, 1295, 1298, 1315, 1320, 1322, 1324,
 /*   300 */  1338, 1310, 1340, 1330, 1371, 1361, 1378, 1393, 1290, 1388,
 /*   310 */  1350, 1392, 1404, 1399, 1398, 1416, 1332, 1341, 1353, 1368,
 /*   320 */  1394, 1397, 1400, 1405, 1426,
1291 1292
};
static const YYACTIONTYPE yy_default[] = {
wmmhello's avatar
wmmhello 已提交
1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373
 /*     0 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*    10 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*    20 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*    30 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*    40 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*    50 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*    60 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*    70 */  1778, 1778, 1778, 1778, 2059, 1778, 1778, 1778, 1778, 1778,
 /*    80 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1867, 1778,
 /*    90 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   100 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1865,
 /*   110 */  2052, 2279, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   120 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   130 */  1778, 1778, 1778, 1778, 1778, 2291, 1778, 1778, 1841, 1841,
 /*   140 */  1778, 2291, 2291, 2291, 1865, 2251, 2251, 1778, 1778, 1778,
 /*   150 */  1778, 1867, 2121, 1778, 1778, 1778, 1778, 1778, 1778, 1987,
 /*   160 */  1778, 1778, 1778, 1778, 1778, 2011, 1778, 1778, 1778, 2113,
 /*   170 */  1778, 1778, 2316, 2373, 1778, 1778, 2319, 1778, 1778, 1778,
 /*   180 */  1778, 1778, 2064, 1778, 1778, 1940, 2306, 2283, 2297, 2357,
 /*   190 */  2284, 2281, 2300, 1778, 2310, 1778, 1778, 2135, 1867, 1778,
 /*   200 */  1867, 2100, 2057, 1778, 2057, 2054, 1778, 1778, 2057, 2054,
 /*   210 */  2054, 1929, 1925, 1778, 1923, 1778, 1778, 1778, 1778, 1825,
 /*   220 */  1778, 1825, 1778, 1867, 1778, 1867, 1778, 1778, 1867, 1778,
 /*   230 */  1867, 1867, 1867, 1778, 1867, 1778, 1778, 1778, 1778, 1778,
 /*   240 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   250 */  1778, 1778, 2133, 2119, 1778, 1865, 2111, 2109, 1778, 1865,
 /*   260 */  2107, 2310, 1778, 2310, 1778, 1778, 1778, 1778, 2327, 2325,
 /*   270 */  1778, 2327, 2325, 1778, 1778, 1778, 2341, 2337, 2327, 2346,
 /*   280 */  2343, 2312, 2310, 2376, 2363, 2359, 2297, 1778, 1778, 2310,
 /*   290 */  1778, 1778, 1865, 1865, 1778, 2325, 1778, 1778, 1778, 1778,
 /*   300 */  1778, 2325, 1778, 1778, 1865, 1778, 1865, 1778, 1778, 1956,
 /*   310 */  1778, 1778, 1778, 1865, 1810, 1778, 2102, 2124, 2082, 2082,
 /*   320 */  1990, 1990, 1990, 1868, 1783, 1778, 1778, 1778, 1778, 1778,
 /*   330 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 2340, 2339, 2206,
 /*   340 */  1778, 2255, 2254, 2253, 2244, 2205, 1952, 1778, 2204, 2203,
 /*   350 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   360 */  2073, 2072, 2197, 1778, 1778, 2198, 2196, 2195, 1778, 1778,
 /*   370 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   380 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   390 */  1778, 1778, 1778, 2360, 2364, 1778, 1778, 1778, 1778, 1778,
 /*   400 */  1778, 2280, 1778, 1778, 1778, 2179, 1778, 1778, 1778, 1778,
 /*   410 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   420 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   430 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   440 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   450 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   460 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   470 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   480 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   490 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   500 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   510 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   520 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   530 */  1778, 1778, 1778, 1815, 2184, 1778, 1778, 1778, 1778, 1778,
 /*   540 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   550 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   560 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   570 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   580 */  1778, 1778, 1778, 1778, 1778, 1906, 1905, 1778, 1778, 1778,
 /*   590 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   600 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 2188,
 /*   610 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   620 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   630 */  2356, 2313, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   640 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   650 */  2179, 1778, 2338, 1778, 1778, 2354, 1778, 2358, 1778, 1778,
 /*   660 */  1778, 1778, 1778, 1778, 1778, 2290, 2286, 1778, 1778, 2282,
 /*   670 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 2187, 1778, 1778,
 /*   680 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   690 */  1778, 2178, 1778, 2241, 1778, 1778, 1778, 2275, 1778, 1778,
 /*   700 */  2226, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   710 */  2188, 1778, 2191, 1778, 1778, 1778, 1778, 1778, 1984, 1778,
 /*   720 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   730 */  1778, 1778, 1778, 1778, 1968, 1966, 1965, 1964, 1778, 1997,
 /*   740 */  1778, 1778, 1778, 1993, 1992, 1778, 1778, 1778, 1778, 1778,
 /*   750 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1886, 1778,
 /*   760 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1878, 1778, 1877,
 /*   770 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   780 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   790 */  1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778, 1778,
 /*   800 */  1778, 1778,
1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392
};
/********** 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[] = {
X
Xiaoyu Wang 已提交
1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426
    0,  /*          $ => nothing */
    0,  /*         OR => nothing */
    0,  /*        AND => nothing */
    0,  /*      UNION => nothing */
    0,  /*        ALL => nothing */
    0,  /*      MINUS => nothing */
    0,  /*     EXCEPT => nothing */
    0,  /*  INTERSECT => nothing */
    0,  /*  NK_BITAND => nothing */
    0,  /*   NK_BITOR => nothing */
    0,  /*  NK_LSHIFT => nothing */
    0,  /*  NK_RSHIFT => nothing */
    0,  /*    NK_PLUS => nothing */
    0,  /*   NK_MINUS => nothing */
    0,  /*    NK_STAR => nothing */
    0,  /*   NK_SLASH => nothing */
    0,  /*     NK_REM => nothing */
    0,  /*  NK_CONCAT => nothing */
    0,  /*     CREATE => nothing */
    0,  /*    ACCOUNT => nothing */
    0,  /*      NK_ID => nothing */
    0,  /*       PASS => nothing */
    0,  /*  NK_STRING => nothing */
    0,  /*      ALTER => nothing */
    0,  /*        PPS => nothing */
    0,  /*    TSERIES => nothing */
    0,  /*    STORAGE => nothing */
    0,  /*    STREAMS => nothing */
    0,  /*      QTIME => nothing */
    0,  /*        DBS => nothing */
    0,  /*      USERS => nothing */
    0,  /*      CONNS => nothing */
    0,  /*      STATE => nothing */
    0,  /*       USER => nothing */
X
Xiaoyu Wang 已提交
1427 1428 1429
    0,  /*     ENABLE => nothing */
    0,  /* NK_INTEGER => nothing */
    0,  /*    SYSINFO => nothing */
X
Xiaoyu Wang 已提交
1430
    0,  /*       DROP => nothing */
1431 1432 1433 1434 1435
    0,  /*      GRANT => nothing */
    0,  /*         ON => nothing */
    0,  /*         TO => nothing */
    0,  /*     REVOKE => nothing */
    0,  /*       FROM => nothing */
1436
    0,  /*  SUBSCRIBE => nothing */
1437 1438 1439 1440
    0,  /*   NK_COMMA => nothing */
    0,  /*       READ => nothing */
    0,  /*      WRITE => nothing */
    0,  /*     NK_DOT => nothing */
X
Xiaoyu Wang 已提交
1441
    0,  /*       WITH => nothing */
X
Xiaoyu Wang 已提交
1442 1443 1444
    0,  /*      DNODE => nothing */
    0,  /*       PORT => nothing */
    0,  /*     DNODES => nothing */
D
dapan1121 已提交
1445
    0,  /*    RESTORE => nothing */
1446
    0,  /* NK_IPTOKEN => nothing */
1447
    0,  /*      FORCE => nothing */
D
dapan1121 已提交
1448
    0,  /*     UNSAFE => nothing */
X
Xiaoyu Wang 已提交
1449 1450 1451 1452 1453
    0,  /*      LOCAL => nothing */
    0,  /*      QNODE => nothing */
    0,  /*      BNODE => nothing */
    0,  /*      SNODE => nothing */
    0,  /*      MNODE => nothing */
D
dapan1121 已提交
1454
    0,  /*      VNODE => nothing */
X
Xiaoyu Wang 已提交
1455 1456
    0,  /*   DATABASE => nothing */
    0,  /*        USE => nothing */
X
Xiaoyu Wang 已提交
1457
    0,  /*      FLUSH => nothing */
X
Xiaoyu Wang 已提交
1458
    0,  /*       TRIM => nothing */
X
Xiaoyu Wang 已提交
1459
    0,  /*    COMPACT => nothing */
X
Xiaoyu Wang 已提交
1460 1461 1462
    0,  /*         IF => nothing */
    0,  /*        NOT => nothing */
    0,  /*     EXISTS => nothing */
X
Xiaoyu Wang 已提交
1463
    0,  /*     BUFFER => nothing */
1464 1465
    0,  /* CACHEMODEL => nothing */
    0,  /*  CACHESIZE => nothing */
X
Xiaoyu Wang 已提交
1466
    0,  /*       COMP => nothing */
X
Xiaoyu Wang 已提交
1467
    0,  /*   DURATION => nothing */
X
Xiaoyu Wang 已提交
1468 1469 1470 1471
    0,  /* NK_VARIABLE => nothing */
    0,  /*    MAXROWS => nothing */
    0,  /*    MINROWS => nothing */
    0,  /*       KEEP => nothing */
X
Xiaoyu Wang 已提交
1472 1473
    0,  /*      PAGES => nothing */
    0,  /*   PAGESIZE => nothing */
1474
    0,  /* TSDB_PAGESIZE => nothing */
X
Xiaoyu Wang 已提交
1475 1476 1477 1478 1479
    0,  /*  PRECISION => nothing */
    0,  /*    REPLICA => nothing */
    0,  /*    VGROUPS => nothing */
    0,  /* SINGLE_STABLE => nothing */
    0,  /* RETENTIONS => nothing */
X
Xiaoyu Wang 已提交
1480
    0,  /* SCHEMALESS => nothing */
X
Xiaoyu Wang 已提交
1481 1482
    0,  /*  WAL_LEVEL => nothing */
    0,  /* WAL_FSYNC_PERIOD => nothing */
X
Xiaoyu Wang 已提交
1483 1484 1485 1486
    0,  /* WAL_RETENTION_PERIOD => nothing */
    0,  /* WAL_RETENTION_SIZE => nothing */
    0,  /* WAL_ROLL_PERIOD => nothing */
    0,  /* WAL_SEGMENT_SIZE => nothing */
1487
    0,  /* STT_TRIGGER => nothing */
1488 1489
    0,  /* TABLE_PREFIX => nothing */
    0,  /* TABLE_SUFFIX => nothing */
X
Xiaoyu Wang 已提交
1490
    0,  /*   NK_COLON => nothing */
1491
    0,  /*  MAX_SPEED => nothing */
1492 1493
    0,  /*      START => nothing */
    0,  /*  TIMESTAMP => nothing */
wmmhello's avatar
wmmhello 已提交
1494
  287,  /*        END => ABORT */
X
Xiaoyu Wang 已提交
1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523
    0,  /*      TABLE => nothing */
    0,  /*      NK_LP => nothing */
    0,  /*      NK_RP => nothing */
    0,  /*     STABLE => nothing */
    0,  /*        ADD => nothing */
    0,  /*     COLUMN => nothing */
    0,  /*     MODIFY => nothing */
    0,  /*     RENAME => nothing */
    0,  /*        TAG => nothing */
    0,  /*        SET => nothing */
    0,  /*      NK_EQ => nothing */
    0,  /*      USING => nothing */
    0,  /*       TAGS => nothing */
    0,  /*       BOOL => nothing */
    0,  /*    TINYINT => nothing */
    0,  /*   SMALLINT => nothing */
    0,  /*        INT => nothing */
    0,  /*    INTEGER => nothing */
    0,  /*     BIGINT => nothing */
    0,  /*      FLOAT => nothing */
    0,  /*     DOUBLE => nothing */
    0,  /*     BINARY => nothing */
    0,  /*      NCHAR => nothing */
    0,  /*   UNSIGNED => nothing */
    0,  /*       JSON => nothing */
    0,  /*    VARCHAR => nothing */
    0,  /* MEDIUMBLOB => nothing */
    0,  /*       BLOB => nothing */
    0,  /*  VARBINARY => nothing */
D
Dingle Zhang 已提交
1524
    0,  /*   GEOMETRY => nothing */
X
Xiaoyu Wang 已提交
1525
    0,  /*    DECIMAL => nothing */
1526
    0,  /*    COMMENT => nothing */
X
Xiaoyu Wang 已提交
1527 1528
    0,  /*  MAX_DELAY => nothing */
    0,  /*  WATERMARK => nothing */
X
Xiaoyu Wang 已提交
1529 1530 1531
    0,  /*     ROLLUP => nothing */
    0,  /*        TTL => nothing */
    0,  /*        SMA => nothing */
1532
    0,  /* DELETE_MARK => nothing */
X
Xiaoyu Wang 已提交
1533 1534
    0,  /*      FIRST => nothing */
    0,  /*       LAST => nothing */
X
Xiaoyu Wang 已提交
1535
    0,  /*       SHOW => nothing */
1536
    0,  /* PRIVILEGES => nothing */
X
Xiaoyu Wang 已提交
1537 1538 1539 1540 1541 1542 1543 1544 1545 1546
    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 */
X
Xiaoyu Wang 已提交
1547
    0,  /*   LICENCES => nothing */
X
Xiaoyu Wang 已提交
1548 1549 1550 1551 1552
    0,  /*     GRANTS => nothing */
    0,  /*    QUERIES => nothing */
    0,  /*     SCORES => nothing */
    0,  /*     TOPICS => nothing */
    0,  /*  VARIABLES => nothing */
1553
    0,  /*    CLUSTER => nothing */
X
Xiaoyu Wang 已提交
1554 1555
    0,  /*     BNODES => nothing */
    0,  /*     SNODES => nothing */
1556
    0,  /* TRANSACTIONS => nothing */
1557
    0,  /* DISTRIBUTED => nothing */
1558 1559
    0,  /*  CONSUMERS => nothing */
    0,  /* SUBSCRIPTIONS => nothing */
1560
    0,  /*     VNODES => nothing */
1561
    0,  /*      ALIVE => nothing */
X
Xiaoyu Wang 已提交
1562
    0,  /*       LIKE => nothing */
1563 1564 1565
    0,  /*     TBNAME => nothing */
    0,  /*      QTAGS => nothing */
    0,  /*         AS => nothing */
X
Xiaoyu Wang 已提交
1566 1567 1568
    0,  /*      INDEX => nothing */
    0,  /*   FUNCTION => nothing */
    0,  /*   INTERVAL => nothing */
1569 1570
    0,  /*      COUNT => nothing */
    0,  /*   LAST_ROW => nothing */
X
Xiaoyu Wang 已提交
1571
    0,  /*      TOPIC => nothing */
X
Xiaoyu Wang 已提交
1572
    0,  /*       META => nothing */
wmmhello's avatar
wmmhello 已提交
1573
    0,  /*       ONLY => nothing */
1574 1575
    0,  /*   CONSUMER => nothing */
    0,  /*      GROUP => nothing */
X
Xiaoyu Wang 已提交
1576 1577 1578 1579
    0,  /*       DESC => nothing */
    0,  /*   DESCRIBE => nothing */
    0,  /*      RESET => nothing */
    0,  /*      QUERY => nothing */
X
Xiaoyu Wang 已提交
1580
    0,  /*      CACHE => nothing */
X
Xiaoyu Wang 已提交
1581 1582 1583 1584 1585
    0,  /*    EXPLAIN => nothing */
    0,  /*    ANALYZE => nothing */
    0,  /*    VERBOSE => nothing */
    0,  /*    NK_BOOL => nothing */
    0,  /*      RATIO => nothing */
X
Xiaoyu Wang 已提交
1586
    0,  /*   NK_FLOAT => nothing */
X
Xiaoyu Wang 已提交
1587 1588 1589
    0,  /* OUTPUTTYPE => nothing */
    0,  /*  AGGREGATE => nothing */
    0,  /*    BUFSIZE => nothing */
1590
    0,  /*   LANGUAGE => nothing */
1591
    0,  /*    REPLACE => nothing */
X
Xiaoyu Wang 已提交
1592 1593
    0,  /*     STREAM => nothing */
    0,  /*       INTO => nothing */
1594 1595
    0,  /*      PAUSE => nothing */
    0,  /*     RESUME => nothing */
X
Xiaoyu Wang 已提交
1596 1597 1598
    0,  /*    TRIGGER => nothing */
    0,  /*    AT_ONCE => nothing */
    0,  /* WINDOW_CLOSE => nothing */
1599 1600
    0,  /*     IGNORE => nothing */
    0,  /*    EXPIRED => nothing */
1601
    0,  /* FILL_HISTORY => nothing */
1602
    0,  /*     UPDATE => nothing */
1603
    0,  /*   SUBTABLE => nothing */
1604
    0,  /*  UNTREATED => nothing */
X
Xiaoyu Wang 已提交
1605 1606
    0,  /*       KILL => nothing */
    0,  /* CONNECTION => nothing */
1607
    0,  /* TRANSACTION => nothing */
X
Xiaoyu Wang 已提交
1608
    0,  /*    BALANCE => nothing */
X
Xiaoyu Wang 已提交
1609
    0,  /*     VGROUP => nothing */
1610
    0,  /*     LEADER => nothing */
X
Xiaoyu Wang 已提交
1611
    0,  /*      MERGE => nothing */
X
Xiaoyu Wang 已提交
1612
    0,  /* REDISTRIBUTE => nothing */
1613
    0,  /*      SPLIT => nothing */
X
Xiaoyu Wang 已提交
1614
    0,  /*     DELETE => nothing */
1615
    0,  /*     INSERT => nothing */
X
Xiaoyu Wang 已提交
1616 1617 1618 1619
    0,  /*       NULL => nothing */
    0,  /* NK_QUESTION => nothing */
    0,  /*   NK_ARROW => nothing */
    0,  /*      ROWTS => nothing */
1620 1621 1622 1623 1624
    0,  /*     QSTART => nothing */
    0,  /*       QEND => nothing */
    0,  /*  QDURATION => nothing */
    0,  /*     WSTART => nothing */
    0,  /*       WEND => nothing */
X
Xiaoyu Wang 已提交
1625
    0,  /*  WDURATION => nothing */
1626
    0,  /*     IROWTS => nothing */
1627
    0,  /*   ISFILLED => nothing */
X
Xiaoyu Wang 已提交
1628 1629 1630 1631
    0,  /*       CAST => nothing */
    0,  /*        NOW => nothing */
    0,  /*      TODAY => nothing */
    0,  /*   TIMEZONE => nothing */
1632 1633 1634 1635
    0,  /* CLIENT_VERSION => nothing */
    0,  /* SERVER_VERSION => nothing */
    0,  /* SERVER_STATUS => nothing */
    0,  /* CURRENT_USER => nothing */
X
Xiaoyu Wang 已提交
1636 1637 1638 1639
    0,  /*       CASE => nothing */
    0,  /*       WHEN => nothing */
    0,  /*       THEN => nothing */
    0,  /*       ELSE => nothing */
X
Xiaoyu Wang 已提交
1640 1641 1642 1643 1644 1645 1646 1647 1648 1649
    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 */
X
Xiaoyu Wang 已提交
1650
    0,  /*         IN => nothing */
X
Xiaoyu Wang 已提交
1651 1652 1653 1654 1655 1656 1657 1658 1659
    0,  /*       JOIN => nothing */
    0,  /*      INNER => nothing */
    0,  /*     SELECT => nothing */
    0,  /*   DISTINCT => nothing */
    0,  /*      WHERE => nothing */
    0,  /*  PARTITION => nothing */
    0,  /*         BY => nothing */
    0,  /*    SESSION => nothing */
    0,  /* STATE_WINDOW => nothing */
X
Xiaoyu Wang 已提交
1660
    0,  /* EVENT_WINDOW => nothing */
X
Xiaoyu Wang 已提交
1661 1662 1663
    0,  /*    SLIDING => nothing */
    0,  /*       FILL => nothing */
    0,  /*      VALUE => nothing */
D
dapan1121 已提交
1664
    0,  /*    VALUE_F => nothing */
X
Xiaoyu Wang 已提交
1665 1666
    0,  /*       NONE => nothing */
    0,  /*       PREV => nothing */
D
dapan1121 已提交
1667
    0,  /*     NULL_F => nothing */
X
Xiaoyu Wang 已提交
1668 1669 1670
    0,  /*     LINEAR => nothing */
    0,  /*       NEXT => nothing */
    0,  /*     HAVING => nothing */
X
Xiaoyu Wang 已提交
1671 1672
    0,  /*      RANGE => nothing */
    0,  /*      EVERY => nothing */
X
Xiaoyu Wang 已提交
1673 1674 1675 1676 1677 1678 1679
    0,  /*      ORDER => nothing */
    0,  /*     SLIMIT => nothing */
    0,  /*    SOFFSET => nothing */
    0,  /*      LIMIT => nothing */
    0,  /*     OFFSET => nothing */
    0,  /*        ASC => nothing */
    0,  /*      NULLS => nothing */
X
Xiaoyu Wang 已提交
1680
    0,  /*      ABORT => nothing */
wmmhello's avatar
wmmhello 已提交
1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730
  287,  /*      AFTER => ABORT */
  287,  /*     ATTACH => ABORT */
  287,  /*     BEFORE => ABORT */
  287,  /*      BEGIN => ABORT */
  287,  /*     BITAND => ABORT */
  287,  /*     BITNOT => ABORT */
  287,  /*      BITOR => ABORT */
  287,  /*     BLOCKS => ABORT */
  287,  /*     CHANGE => ABORT */
  287,  /*      COMMA => ABORT */
  287,  /*     CONCAT => ABORT */
  287,  /*   CONFLICT => ABORT */
  287,  /*       COPY => ABORT */
  287,  /*   DEFERRED => ABORT */
  287,  /* DELIMITERS => ABORT */
  287,  /*     DETACH => ABORT */
  287,  /*     DIVIDE => ABORT */
  287,  /*        DOT => ABORT */
  287,  /*       EACH => ABORT */
  287,  /*       FAIL => ABORT */
  287,  /*       FILE => ABORT */
  287,  /*        FOR => ABORT */
  287,  /*       GLOB => ABORT */
  287,  /*         ID => ABORT */
  287,  /*  IMMEDIATE => ABORT */
  287,  /*     IMPORT => ABORT */
  287,  /*  INITIALLY => ABORT */
  287,  /*    INSTEAD => ABORT */
  287,  /*     ISNULL => ABORT */
  287,  /*        KEY => ABORT */
  287,  /*    MODULES => ABORT */
  287,  /*  NK_BITNOT => ABORT */
  287,  /*    NK_SEMI => ABORT */
  287,  /*    NOTNULL => ABORT */
  287,  /*         OF => ABORT */
  287,  /*       PLUS => ABORT */
  287,  /*  PRIVILEGE => ABORT */
  287,  /*      RAISE => ABORT */
  287,  /*   RESTRICT => ABORT */
  287,  /*        ROW => ABORT */
  287,  /*       SEMI => ABORT */
  287,  /*       STAR => ABORT */
  287,  /*  STATEMENT => ABORT */
  287,  /*     STRICT => ABORT */
  287,  /*     STRING => ABORT */
  287,  /*      TIMES => ABORT */
  287,  /*     VALUES => ABORT */
  287,  /*   VARIABLE => ABORT */
  287,  /*       VIEW => ABORT */
  287,  /*        WAL => ABORT */
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768
};
#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
X
Xiaoyu Wang 已提交
1769 1770
  ParseARG_SDECL                /* A place to hold %extra_argument */
  ParseCTX_SDECL                /* A place to hold %extra_context */
1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783
#if YYSTACKDEPTH<=0
  int yystksz;                  /* Current side of the stack */
  yyStackEntry *yystack;        /* The parser's stack */
  yyStackEntry yystk0;          /* First stack entry */
#else
  yyStackEntry yystack[YYSTACKDEPTH];  /* The parser's stack */
  yyStackEntry *yystackEnd;            /* Last entry in the stack */
#endif
};
typedef struct yyParser yyParser;

#ifndef NDEBUG
#include <stdio.h>
wmmhello's avatar
wmmhello 已提交
1784
#include <assert.h>
1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806
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.
*/
X
Xiaoyu Wang 已提交
1807
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819
  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 */ "$",
1820 1821
  /*    1 */ "OR",
  /*    2 */ "AND",
1822 1823 1824 1825 1826
  /*    3 */ "UNION",
  /*    4 */ "ALL",
  /*    5 */ "MINUS",
  /*    6 */ "EXCEPT",
  /*    7 */ "INTERSECT",
1827 1828 1829 1830 1831 1832 1833 1834 1835 1836
  /*    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",
1837
  /*   18 */ "CREATE",
1838 1839 1840
  /*   19 */ "ACCOUNT",
  /*   20 */ "NK_ID",
  /*   21 */ "PASS",
1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852
  /*   22 */ "NK_STRING",
  /*   23 */ "ALTER",
  /*   24 */ "PPS",
  /*   25 */ "TSERIES",
  /*   26 */ "STORAGE",
  /*   27 */ "STREAMS",
  /*   28 */ "QTIME",
  /*   29 */ "DBS",
  /*   30 */ "USERS",
  /*   31 */ "CONNS",
  /*   32 */ "STATE",
  /*   33 */ "USER",
X
Xiaoyu Wang 已提交
1853 1854 1855 1856 1857 1858 1859 1860 1861
  /*   34 */ "ENABLE",
  /*   35 */ "NK_INTEGER",
  /*   36 */ "SYSINFO",
  /*   37 */ "DROP",
  /*   38 */ "GRANT",
  /*   39 */ "ON",
  /*   40 */ "TO",
  /*   41 */ "REVOKE",
  /*   42 */ "FROM",
1862 1863 1864 1865 1866
  /*   43 */ "SUBSCRIBE",
  /*   44 */ "NK_COMMA",
  /*   45 */ "READ",
  /*   46 */ "WRITE",
  /*   47 */ "NK_DOT",
X
Xiaoyu Wang 已提交
1867 1868 1869 1870
  /*   48 */ "WITH",
  /*   49 */ "DNODE",
  /*   50 */ "PORT",
  /*   51 */ "DNODES",
D
dapan1121 已提交
1871 1872 1873
  /*   52 */ "RESTORE",
  /*   53 */ "NK_IPTOKEN",
  /*   54 */ "FORCE",
D
dapan1121 已提交
1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949
  /*   55 */ "UNSAFE",
  /*   56 */ "LOCAL",
  /*   57 */ "QNODE",
  /*   58 */ "BNODE",
  /*   59 */ "SNODE",
  /*   60 */ "MNODE",
  /*   61 */ "VNODE",
  /*   62 */ "DATABASE",
  /*   63 */ "USE",
  /*   64 */ "FLUSH",
  /*   65 */ "TRIM",
  /*   66 */ "COMPACT",
  /*   67 */ "IF",
  /*   68 */ "NOT",
  /*   69 */ "EXISTS",
  /*   70 */ "BUFFER",
  /*   71 */ "CACHEMODEL",
  /*   72 */ "CACHESIZE",
  /*   73 */ "COMP",
  /*   74 */ "DURATION",
  /*   75 */ "NK_VARIABLE",
  /*   76 */ "MAXROWS",
  /*   77 */ "MINROWS",
  /*   78 */ "KEEP",
  /*   79 */ "PAGES",
  /*   80 */ "PAGESIZE",
  /*   81 */ "TSDB_PAGESIZE",
  /*   82 */ "PRECISION",
  /*   83 */ "REPLICA",
  /*   84 */ "VGROUPS",
  /*   85 */ "SINGLE_STABLE",
  /*   86 */ "RETENTIONS",
  /*   87 */ "SCHEMALESS",
  /*   88 */ "WAL_LEVEL",
  /*   89 */ "WAL_FSYNC_PERIOD",
  /*   90 */ "WAL_RETENTION_PERIOD",
  /*   91 */ "WAL_RETENTION_SIZE",
  /*   92 */ "WAL_ROLL_PERIOD",
  /*   93 */ "WAL_SEGMENT_SIZE",
  /*   94 */ "STT_TRIGGER",
  /*   95 */ "TABLE_PREFIX",
  /*   96 */ "TABLE_SUFFIX",
  /*   97 */ "NK_COLON",
  /*   98 */ "MAX_SPEED",
  /*   99 */ "START",
  /*  100 */ "TIMESTAMP",
  /*  101 */ "END",
  /*  102 */ "TABLE",
  /*  103 */ "NK_LP",
  /*  104 */ "NK_RP",
  /*  105 */ "STABLE",
  /*  106 */ "ADD",
  /*  107 */ "COLUMN",
  /*  108 */ "MODIFY",
  /*  109 */ "RENAME",
  /*  110 */ "TAG",
  /*  111 */ "SET",
  /*  112 */ "NK_EQ",
  /*  113 */ "USING",
  /*  114 */ "TAGS",
  /*  115 */ "BOOL",
  /*  116 */ "TINYINT",
  /*  117 */ "SMALLINT",
  /*  118 */ "INT",
  /*  119 */ "INTEGER",
  /*  120 */ "BIGINT",
  /*  121 */ "FLOAT",
  /*  122 */ "DOUBLE",
  /*  123 */ "BINARY",
  /*  124 */ "NCHAR",
  /*  125 */ "UNSIGNED",
  /*  126 */ "JSON",
  /*  127 */ "VARCHAR",
  /*  128 */ "MEDIUMBLOB",
  /*  129 */ "BLOB",
  /*  130 */ "VARBINARY",
D
Dingle Zhang 已提交
1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998
  /*  131 */ "GEOMETRY",
  /*  132 */ "DECIMAL",
  /*  133 */ "COMMENT",
  /*  134 */ "MAX_DELAY",
  /*  135 */ "WATERMARK",
  /*  136 */ "ROLLUP",
  /*  137 */ "TTL",
  /*  138 */ "SMA",
  /*  139 */ "DELETE_MARK",
  /*  140 */ "FIRST",
  /*  141 */ "LAST",
  /*  142 */ "SHOW",
  /*  143 */ "PRIVILEGES",
  /*  144 */ "DATABASES",
  /*  145 */ "TABLES",
  /*  146 */ "STABLES",
  /*  147 */ "MNODES",
  /*  148 */ "QNODES",
  /*  149 */ "FUNCTIONS",
  /*  150 */ "INDEXES",
  /*  151 */ "ACCOUNTS",
  /*  152 */ "APPS",
  /*  153 */ "CONNECTIONS",
  /*  154 */ "LICENCES",
  /*  155 */ "GRANTS",
  /*  156 */ "QUERIES",
  /*  157 */ "SCORES",
  /*  158 */ "TOPICS",
  /*  159 */ "VARIABLES",
  /*  160 */ "CLUSTER",
  /*  161 */ "BNODES",
  /*  162 */ "SNODES",
  /*  163 */ "TRANSACTIONS",
  /*  164 */ "DISTRIBUTED",
  /*  165 */ "CONSUMERS",
  /*  166 */ "SUBSCRIPTIONS",
  /*  167 */ "VNODES",
  /*  168 */ "ALIVE",
  /*  169 */ "LIKE",
  /*  170 */ "TBNAME",
  /*  171 */ "QTAGS",
  /*  172 */ "AS",
  /*  173 */ "INDEX",
  /*  174 */ "FUNCTION",
  /*  175 */ "INTERVAL",
  /*  176 */ "COUNT",
  /*  177 */ "LAST_ROW",
  /*  178 */ "TOPIC",
  /*  179 */ "META",
wmmhello's avatar
wmmhello 已提交
1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304
  /*  180 */ "ONLY",
  /*  181 */ "CONSUMER",
  /*  182 */ "GROUP",
  /*  183 */ "DESC",
  /*  184 */ "DESCRIBE",
  /*  185 */ "RESET",
  /*  186 */ "QUERY",
  /*  187 */ "CACHE",
  /*  188 */ "EXPLAIN",
  /*  189 */ "ANALYZE",
  /*  190 */ "VERBOSE",
  /*  191 */ "NK_BOOL",
  /*  192 */ "RATIO",
  /*  193 */ "NK_FLOAT",
  /*  194 */ "OUTPUTTYPE",
  /*  195 */ "AGGREGATE",
  /*  196 */ "BUFSIZE",
  /*  197 */ "LANGUAGE",
  /*  198 */ "REPLACE",
  /*  199 */ "STREAM",
  /*  200 */ "INTO",
  /*  201 */ "PAUSE",
  /*  202 */ "RESUME",
  /*  203 */ "TRIGGER",
  /*  204 */ "AT_ONCE",
  /*  205 */ "WINDOW_CLOSE",
  /*  206 */ "IGNORE",
  /*  207 */ "EXPIRED",
  /*  208 */ "FILL_HISTORY",
  /*  209 */ "UPDATE",
  /*  210 */ "SUBTABLE",
  /*  211 */ "UNTREATED",
  /*  212 */ "KILL",
  /*  213 */ "CONNECTION",
  /*  214 */ "TRANSACTION",
  /*  215 */ "BALANCE",
  /*  216 */ "VGROUP",
  /*  217 */ "LEADER",
  /*  218 */ "MERGE",
  /*  219 */ "REDISTRIBUTE",
  /*  220 */ "SPLIT",
  /*  221 */ "DELETE",
  /*  222 */ "INSERT",
  /*  223 */ "NULL",
  /*  224 */ "NK_QUESTION",
  /*  225 */ "NK_ARROW",
  /*  226 */ "ROWTS",
  /*  227 */ "QSTART",
  /*  228 */ "QEND",
  /*  229 */ "QDURATION",
  /*  230 */ "WSTART",
  /*  231 */ "WEND",
  /*  232 */ "WDURATION",
  /*  233 */ "IROWTS",
  /*  234 */ "ISFILLED",
  /*  235 */ "CAST",
  /*  236 */ "NOW",
  /*  237 */ "TODAY",
  /*  238 */ "TIMEZONE",
  /*  239 */ "CLIENT_VERSION",
  /*  240 */ "SERVER_VERSION",
  /*  241 */ "SERVER_STATUS",
  /*  242 */ "CURRENT_USER",
  /*  243 */ "CASE",
  /*  244 */ "WHEN",
  /*  245 */ "THEN",
  /*  246 */ "ELSE",
  /*  247 */ "BETWEEN",
  /*  248 */ "IS",
  /*  249 */ "NK_LT",
  /*  250 */ "NK_GT",
  /*  251 */ "NK_LE",
  /*  252 */ "NK_GE",
  /*  253 */ "NK_NE",
  /*  254 */ "MATCH",
  /*  255 */ "NMATCH",
  /*  256 */ "CONTAINS",
  /*  257 */ "IN",
  /*  258 */ "JOIN",
  /*  259 */ "INNER",
  /*  260 */ "SELECT",
  /*  261 */ "DISTINCT",
  /*  262 */ "WHERE",
  /*  263 */ "PARTITION",
  /*  264 */ "BY",
  /*  265 */ "SESSION",
  /*  266 */ "STATE_WINDOW",
  /*  267 */ "EVENT_WINDOW",
  /*  268 */ "SLIDING",
  /*  269 */ "FILL",
  /*  270 */ "VALUE",
  /*  271 */ "VALUE_F",
  /*  272 */ "NONE",
  /*  273 */ "PREV",
  /*  274 */ "NULL_F",
  /*  275 */ "LINEAR",
  /*  276 */ "NEXT",
  /*  277 */ "HAVING",
  /*  278 */ "RANGE",
  /*  279 */ "EVERY",
  /*  280 */ "ORDER",
  /*  281 */ "SLIMIT",
  /*  282 */ "SOFFSET",
  /*  283 */ "LIMIT",
  /*  284 */ "OFFSET",
  /*  285 */ "ASC",
  /*  286 */ "NULLS",
  /*  287 */ "ABORT",
  /*  288 */ "AFTER",
  /*  289 */ "ATTACH",
  /*  290 */ "BEFORE",
  /*  291 */ "BEGIN",
  /*  292 */ "BITAND",
  /*  293 */ "BITNOT",
  /*  294 */ "BITOR",
  /*  295 */ "BLOCKS",
  /*  296 */ "CHANGE",
  /*  297 */ "COMMA",
  /*  298 */ "CONCAT",
  /*  299 */ "CONFLICT",
  /*  300 */ "COPY",
  /*  301 */ "DEFERRED",
  /*  302 */ "DELIMITERS",
  /*  303 */ "DETACH",
  /*  304 */ "DIVIDE",
  /*  305 */ "DOT",
  /*  306 */ "EACH",
  /*  307 */ "FAIL",
  /*  308 */ "FILE",
  /*  309 */ "FOR",
  /*  310 */ "GLOB",
  /*  311 */ "ID",
  /*  312 */ "IMMEDIATE",
  /*  313 */ "IMPORT",
  /*  314 */ "INITIALLY",
  /*  315 */ "INSTEAD",
  /*  316 */ "ISNULL",
  /*  317 */ "KEY",
  /*  318 */ "MODULES",
  /*  319 */ "NK_BITNOT",
  /*  320 */ "NK_SEMI",
  /*  321 */ "NOTNULL",
  /*  322 */ "OF",
  /*  323 */ "PLUS",
  /*  324 */ "PRIVILEGE",
  /*  325 */ "RAISE",
  /*  326 */ "RESTRICT",
  /*  327 */ "ROW",
  /*  328 */ "SEMI",
  /*  329 */ "STAR",
  /*  330 */ "STATEMENT",
  /*  331 */ "STRICT",
  /*  332 */ "STRING",
  /*  333 */ "TIMES",
  /*  334 */ "VALUES",
  /*  335 */ "VARIABLE",
  /*  336 */ "VIEW",
  /*  337 */ "WAL",
  /*  338 */ "cmd",
  /*  339 */ "account_options",
  /*  340 */ "alter_account_options",
  /*  341 */ "literal",
  /*  342 */ "alter_account_option",
  /*  343 */ "user_name",
  /*  344 */ "sysinfo_opt",
  /*  345 */ "privileges",
  /*  346 */ "priv_level",
  /*  347 */ "with_opt",
  /*  348 */ "priv_type_list",
  /*  349 */ "priv_type",
  /*  350 */ "db_name",
  /*  351 */ "table_name",
  /*  352 */ "topic_name",
  /*  353 */ "search_condition",
  /*  354 */ "dnode_endpoint",
  /*  355 */ "force_opt",
  /*  356 */ "unsafe_opt",
  /*  357 */ "not_exists_opt",
  /*  358 */ "db_options",
  /*  359 */ "exists_opt",
  /*  360 */ "alter_db_options",
  /*  361 */ "speed_opt",
  /*  362 */ "start_opt",
  /*  363 */ "end_opt",
  /*  364 */ "integer_list",
  /*  365 */ "variable_list",
  /*  366 */ "retention_list",
  /*  367 */ "signed",
  /*  368 */ "alter_db_option",
  /*  369 */ "retention",
  /*  370 */ "full_table_name",
  /*  371 */ "column_def_list",
  /*  372 */ "tags_def_opt",
  /*  373 */ "table_options",
  /*  374 */ "multi_create_clause",
  /*  375 */ "tags_def",
  /*  376 */ "multi_drop_clause",
  /*  377 */ "alter_table_clause",
  /*  378 */ "alter_table_options",
  /*  379 */ "column_name",
  /*  380 */ "type_name",
  /*  381 */ "signed_literal",
  /*  382 */ "create_subtable_clause",
  /*  383 */ "specific_cols_opt",
  /*  384 */ "expression_list",
  /*  385 */ "drop_table_clause",
  /*  386 */ "col_name_list",
  /*  387 */ "column_def",
  /*  388 */ "duration_list",
  /*  389 */ "rollup_func_list",
  /*  390 */ "alter_table_option",
  /*  391 */ "duration_literal",
  /*  392 */ "rollup_func_name",
  /*  393 */ "function_name",
  /*  394 */ "col_name",
  /*  395 */ "db_name_cond_opt",
  /*  396 */ "like_pattern_opt",
  /*  397 */ "table_name_cond",
  /*  398 */ "from_db_opt",
  /*  399 */ "tag_list_opt",
  /*  400 */ "tag_item",
  /*  401 */ "column_alias",
  /*  402 */ "full_index_name",
  /*  403 */ "index_options",
  /*  404 */ "index_name",
  /*  405 */ "func_list",
  /*  406 */ "sliding_opt",
  /*  407 */ "sma_stream_opt",
  /*  408 */ "func",
  /*  409 */ "sma_func_name",
  /*  410 */ "query_or_subquery",
  /*  411 */ "where_clause_opt",
  /*  412 */ "cgroup_name",
  /*  413 */ "analyze_opt",
  /*  414 */ "explain_options",
  /*  415 */ "insert_query",
  /*  416 */ "or_replace_opt",
  /*  417 */ "agg_func_opt",
  /*  418 */ "bufsize_opt",
  /*  419 */ "language_opt",
  /*  420 */ "stream_name",
  /*  421 */ "stream_options",
  /*  422 */ "col_list_opt",
  /*  423 */ "tag_def_or_ref_opt",
  /*  424 */ "subtable_opt",
  /*  425 */ "ignore_opt",
  /*  426 */ "expression",
  /*  427 */ "dnode_list",
  /*  428 */ "literal_func",
  /*  429 */ "literal_list",
  /*  430 */ "table_alias",
  /*  431 */ "expr_or_subquery",
  /*  432 */ "pseudo_column",
  /*  433 */ "column_reference",
  /*  434 */ "function_expression",
  /*  435 */ "case_when_expression",
  /*  436 */ "star_func",
  /*  437 */ "star_func_para_list",
  /*  438 */ "noarg_func",
  /*  439 */ "other_para_list",
  /*  440 */ "star_func_para",
  /*  441 */ "when_then_list",
  /*  442 */ "case_when_else_opt",
  /*  443 */ "common_expression",
  /*  444 */ "when_then_expr",
  /*  445 */ "predicate",
  /*  446 */ "compare_op",
  /*  447 */ "in_op",
  /*  448 */ "in_predicate_value",
  /*  449 */ "boolean_value_expression",
  /*  450 */ "boolean_primary",
  /*  451 */ "from_clause_opt",
  /*  452 */ "table_reference_list",
  /*  453 */ "table_reference",
  /*  454 */ "table_primary",
  /*  455 */ "joined_table",
  /*  456 */ "alias_opt",
  /*  457 */ "subquery",
  /*  458 */ "parenthesized_joined_table",
  /*  459 */ "join_type",
  /*  460 */ "query_specification",
  /*  461 */ "set_quantifier_opt",
  /*  462 */ "select_list",
  /*  463 */ "partition_by_clause_opt",
  /*  464 */ "range_opt",
  /*  465 */ "every_opt",
  /*  466 */ "fill_opt",
  /*  467 */ "twindow_clause_opt",
  /*  468 */ "group_by_clause_opt",
  /*  469 */ "having_clause_opt",
  /*  470 */ "select_item",
  /*  471 */ "partition_list",
  /*  472 */ "partition_item",
  /*  473 */ "fill_mode",
  /*  474 */ "group_by_list",
  /*  475 */ "query_expression",
  /*  476 */ "query_simple",
  /*  477 */ "order_by_clause_opt",
  /*  478 */ "slimit_clause_opt",
  /*  479 */ "limit_clause_opt",
  /*  480 */ "union_query_expression",
  /*  481 */ "query_simple_or_subquery",
  /*  482 */ "sort_specification_list",
  /*  483 */ "sort_specification",
  /*  484 */ "ordering_specification_opt",
  /*  485 */ "null_ordering_opt",
2305 2306 2307 2308 2309 2310 2311
};
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */

#ifndef NDEBUG
/* For tracing reduce actions, the names of all rules are required.
*/
static const char *const yyRuleName[] = {
2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335
 /*   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",
X
Xiaoyu Wang 已提交
2336
 /*  24 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt",
2337
 /*  25 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
X
Xiaoyu Wang 已提交
2338 2339 2340 2341 2342
 /*  26 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
 /*  27 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
 /*  28 */ "cmd ::= DROP USER user_name",
 /*  29 */ "sysinfo_opt ::=",
 /*  30 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
X
Xiaoyu Wang 已提交
2343 2344
 /*  31 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
 /*  32 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
X
Xiaoyu Wang 已提交
2345 2346
 /*  33 */ "privileges ::= ALL",
 /*  34 */ "privileges ::= priv_type_list",
2347 2348 2349 2350 2351 2352 2353
 /*  35 */ "privileges ::= SUBSCRIBE",
 /*  36 */ "priv_type_list ::= priv_type",
 /*  37 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
 /*  38 */ "priv_type ::= READ",
 /*  39 */ "priv_type ::= WRITE",
 /*  40 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
 /*  41 */ "priv_level ::= db_name NK_DOT NK_STAR",
X
Xiaoyu Wang 已提交
2354 2355 2356 2357 2358 2359 2360 2361
 /*  42 */ "priv_level ::= db_name NK_DOT table_name",
 /*  43 */ "priv_level ::= topic_name",
 /*  44 */ "with_opt ::=",
 /*  45 */ "with_opt ::= WITH search_condition",
 /*  46 */ "cmd ::= CREATE DNODE dnode_endpoint",
 /*  47 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
 /*  48 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
 /*  49 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
D
dapan1121 已提交
2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513
 /*  50 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
 /*  51 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
 /*  52 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
 /*  53 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
 /*  54 */ "cmd ::= ALTER ALL DNODES NK_STRING",
 /*  55 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
 /*  56 */ "cmd ::= RESTORE DNODE NK_INTEGER",
 /*  57 */ "dnode_endpoint ::= NK_STRING",
 /*  58 */ "dnode_endpoint ::= NK_ID",
 /*  59 */ "dnode_endpoint ::= NK_IPTOKEN",
 /*  60 */ "force_opt ::=",
 /*  61 */ "force_opt ::= FORCE",
 /*  62 */ "unsafe_opt ::= UNSAFE",
 /*  63 */ "cmd ::= ALTER LOCAL NK_STRING",
 /*  64 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
 /*  65 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
 /*  66 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
 /*  67 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
 /*  68 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
 /*  69 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
 /*  70 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
 /*  71 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
 /*  72 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
 /*  73 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
 /*  74 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
 /*  75 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
 /*  76 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
 /*  77 */ "cmd ::= DROP DATABASE exists_opt db_name",
 /*  78 */ "cmd ::= USE db_name",
 /*  79 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
 /*  80 */ "cmd ::= FLUSH DATABASE db_name",
 /*  81 */ "cmd ::= TRIM DATABASE db_name speed_opt",
 /*  82 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
 /*  83 */ "not_exists_opt ::= IF NOT EXISTS",
 /*  84 */ "not_exists_opt ::=",
 /*  85 */ "exists_opt ::= IF EXISTS",
 /*  86 */ "exists_opt ::=",
 /*  87 */ "db_options ::=",
 /*  88 */ "db_options ::= db_options BUFFER NK_INTEGER",
 /*  89 */ "db_options ::= db_options CACHEMODEL NK_STRING",
 /*  90 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
 /*  91 */ "db_options ::= db_options COMP NK_INTEGER",
 /*  92 */ "db_options ::= db_options DURATION NK_INTEGER",
 /*  93 */ "db_options ::= db_options DURATION NK_VARIABLE",
 /*  94 */ "db_options ::= db_options MAXROWS NK_INTEGER",
 /*  95 */ "db_options ::= db_options MINROWS NK_INTEGER",
 /*  96 */ "db_options ::= db_options KEEP integer_list",
 /*  97 */ "db_options ::= db_options KEEP variable_list",
 /*  98 */ "db_options ::= db_options PAGES NK_INTEGER",
 /*  99 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
 /* 100 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
 /* 101 */ "db_options ::= db_options PRECISION NK_STRING",
 /* 102 */ "db_options ::= db_options REPLICA NK_INTEGER",
 /* 103 */ "db_options ::= db_options VGROUPS NK_INTEGER",
 /* 104 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
 /* 105 */ "db_options ::= db_options RETENTIONS retention_list",
 /* 106 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
 /* 107 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
 /* 108 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
 /* 109 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
 /* 110 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
 /* 111 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
 /* 112 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
 /* 113 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
 /* 114 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
 /* 115 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
 /* 116 */ "db_options ::= db_options TABLE_PREFIX signed",
 /* 117 */ "db_options ::= db_options TABLE_SUFFIX signed",
 /* 118 */ "alter_db_options ::= alter_db_option",
 /* 119 */ "alter_db_options ::= alter_db_options alter_db_option",
 /* 120 */ "alter_db_option ::= BUFFER NK_INTEGER",
 /* 121 */ "alter_db_option ::= CACHEMODEL NK_STRING",
 /* 122 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
 /* 123 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
 /* 124 */ "alter_db_option ::= KEEP integer_list",
 /* 125 */ "alter_db_option ::= KEEP variable_list",
 /* 126 */ "alter_db_option ::= PAGES NK_INTEGER",
 /* 127 */ "alter_db_option ::= REPLICA NK_INTEGER",
 /* 128 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
 /* 129 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
 /* 130 */ "alter_db_option ::= MINROWS NK_INTEGER",
 /* 131 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
 /* 132 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
 /* 133 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
 /* 134 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
 /* 135 */ "integer_list ::= NK_INTEGER",
 /* 136 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
 /* 137 */ "variable_list ::= NK_VARIABLE",
 /* 138 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
 /* 139 */ "retention_list ::= retention",
 /* 140 */ "retention_list ::= retention_list NK_COMMA retention",
 /* 141 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
 /* 142 */ "speed_opt ::=",
 /* 143 */ "speed_opt ::= MAX_SPEED NK_INTEGER",
 /* 144 */ "start_opt ::=",
 /* 145 */ "start_opt ::= START WITH NK_INTEGER",
 /* 146 */ "start_opt ::= START WITH NK_STRING",
 /* 147 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
 /* 148 */ "end_opt ::=",
 /* 149 */ "end_opt ::= END WITH NK_INTEGER",
 /* 150 */ "end_opt ::= END WITH NK_STRING",
 /* 151 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
 /* 152 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
 /* 153 */ "cmd ::= CREATE TABLE multi_create_clause",
 /* 154 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
 /* 155 */ "cmd ::= DROP TABLE multi_drop_clause",
 /* 156 */ "cmd ::= DROP STABLE exists_opt full_table_name",
 /* 157 */ "cmd ::= ALTER TABLE alter_table_clause",
 /* 158 */ "cmd ::= ALTER STABLE alter_table_clause",
 /* 159 */ "alter_table_clause ::= full_table_name alter_table_options",
 /* 160 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
 /* 161 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
 /* 162 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
 /* 163 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
 /* 164 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
 /* 165 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
 /* 166 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
 /* 167 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
 /* 168 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
 /* 169 */ "multi_create_clause ::= create_subtable_clause",
 /* 170 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
 /* 171 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options",
 /* 172 */ "multi_drop_clause ::= drop_table_clause",
 /* 173 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
 /* 174 */ "drop_table_clause ::= exists_opt full_table_name",
 /* 175 */ "specific_cols_opt ::=",
 /* 176 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
 /* 177 */ "full_table_name ::= table_name",
 /* 178 */ "full_table_name ::= db_name NK_DOT table_name",
 /* 179 */ "column_def_list ::= column_def",
 /* 180 */ "column_def_list ::= column_def_list NK_COMMA column_def",
 /* 181 */ "column_def ::= column_name type_name",
 /* 182 */ "type_name ::= BOOL",
 /* 183 */ "type_name ::= TINYINT",
 /* 184 */ "type_name ::= SMALLINT",
 /* 185 */ "type_name ::= INT",
 /* 186 */ "type_name ::= INTEGER",
 /* 187 */ "type_name ::= BIGINT",
 /* 188 */ "type_name ::= FLOAT",
 /* 189 */ "type_name ::= DOUBLE",
 /* 190 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
 /* 191 */ "type_name ::= TIMESTAMP",
 /* 192 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
 /* 193 */ "type_name ::= TINYINT UNSIGNED",
 /* 194 */ "type_name ::= SMALLINT UNSIGNED",
 /* 195 */ "type_name ::= INT UNSIGNED",
 /* 196 */ "type_name ::= BIGINT UNSIGNED",
 /* 197 */ "type_name ::= JSON",
 /* 198 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
 /* 199 */ "type_name ::= MEDIUMBLOB",
 /* 200 */ "type_name ::= BLOB",
 /* 201 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
D
Dingle Zhang 已提交
2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619
 /* 202 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
 /* 203 */ "type_name ::= DECIMAL",
 /* 204 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
 /* 205 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
 /* 206 */ "tags_def_opt ::=",
 /* 207 */ "tags_def_opt ::= tags_def",
 /* 208 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
 /* 209 */ "table_options ::=",
 /* 210 */ "table_options ::= table_options COMMENT NK_STRING",
 /* 211 */ "table_options ::= table_options MAX_DELAY duration_list",
 /* 212 */ "table_options ::= table_options WATERMARK duration_list",
 /* 213 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
 /* 214 */ "table_options ::= table_options TTL NK_INTEGER",
 /* 215 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
 /* 216 */ "table_options ::= table_options DELETE_MARK duration_list",
 /* 217 */ "alter_table_options ::= alter_table_option",
 /* 218 */ "alter_table_options ::= alter_table_options alter_table_option",
 /* 219 */ "alter_table_option ::= COMMENT NK_STRING",
 /* 220 */ "alter_table_option ::= TTL NK_INTEGER",
 /* 221 */ "duration_list ::= duration_literal",
 /* 222 */ "duration_list ::= duration_list NK_COMMA duration_literal",
 /* 223 */ "rollup_func_list ::= rollup_func_name",
 /* 224 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
 /* 225 */ "rollup_func_name ::= function_name",
 /* 226 */ "rollup_func_name ::= FIRST",
 /* 227 */ "rollup_func_name ::= LAST",
 /* 228 */ "col_name_list ::= col_name",
 /* 229 */ "col_name_list ::= col_name_list NK_COMMA col_name",
 /* 230 */ "col_name ::= column_name",
 /* 231 */ "cmd ::= SHOW DNODES",
 /* 232 */ "cmd ::= SHOW USERS",
 /* 233 */ "cmd ::= SHOW USER PRIVILEGES",
 /* 234 */ "cmd ::= SHOW DATABASES",
 /* 235 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt",
 /* 236 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
 /* 237 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
 /* 238 */ "cmd ::= SHOW MNODES",
 /* 239 */ "cmd ::= SHOW QNODES",
 /* 240 */ "cmd ::= SHOW FUNCTIONS",
 /* 241 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
 /* 242 */ "cmd ::= SHOW STREAMS",
 /* 243 */ "cmd ::= SHOW ACCOUNTS",
 /* 244 */ "cmd ::= SHOW APPS",
 /* 245 */ "cmd ::= SHOW CONNECTIONS",
 /* 246 */ "cmd ::= SHOW LICENCES",
 /* 247 */ "cmd ::= SHOW GRANTS",
 /* 248 */ "cmd ::= SHOW CREATE DATABASE db_name",
 /* 249 */ "cmd ::= SHOW CREATE TABLE full_table_name",
 /* 250 */ "cmd ::= SHOW CREATE STABLE full_table_name",
 /* 251 */ "cmd ::= SHOW QUERIES",
 /* 252 */ "cmd ::= SHOW SCORES",
 /* 253 */ "cmd ::= SHOW TOPICS",
 /* 254 */ "cmd ::= SHOW VARIABLES",
 /* 255 */ "cmd ::= SHOW CLUSTER VARIABLES",
 /* 256 */ "cmd ::= SHOW LOCAL VARIABLES",
 /* 257 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
 /* 258 */ "cmd ::= SHOW BNODES",
 /* 259 */ "cmd ::= SHOW SNODES",
 /* 260 */ "cmd ::= SHOW CLUSTER",
 /* 261 */ "cmd ::= SHOW TRANSACTIONS",
 /* 262 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
 /* 263 */ "cmd ::= SHOW CONSUMERS",
 /* 264 */ "cmd ::= SHOW SUBSCRIPTIONS",
 /* 265 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
 /* 266 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
 /* 267 */ "cmd ::= SHOW VNODES NK_INTEGER",
 /* 268 */ "cmd ::= SHOW VNODES NK_STRING",
 /* 269 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
 /* 270 */ "cmd ::= SHOW CLUSTER ALIVE",
 /* 271 */ "db_name_cond_opt ::=",
 /* 272 */ "db_name_cond_opt ::= db_name NK_DOT",
 /* 273 */ "like_pattern_opt ::=",
 /* 274 */ "like_pattern_opt ::= LIKE NK_STRING",
 /* 275 */ "table_name_cond ::= table_name",
 /* 276 */ "from_db_opt ::=",
 /* 277 */ "from_db_opt ::= FROM db_name",
 /* 278 */ "tag_list_opt ::=",
 /* 279 */ "tag_list_opt ::= tag_item",
 /* 280 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
 /* 281 */ "tag_item ::= TBNAME",
 /* 282 */ "tag_item ::= QTAGS",
 /* 283 */ "tag_item ::= column_name",
 /* 284 */ "tag_item ::= column_name column_alias",
 /* 285 */ "tag_item ::= column_name AS column_alias",
 /* 286 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options",
 /* 287 */ "cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP",
 /* 288 */ "cmd ::= DROP INDEX exists_opt full_index_name",
 /* 289 */ "full_index_name ::= index_name",
 /* 290 */ "full_index_name ::= db_name NK_DOT index_name",
 /* 291 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
 /* 292 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt",
 /* 293 */ "func_list ::= func",
 /* 294 */ "func_list ::= func_list NK_COMMA func",
 /* 295 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
 /* 296 */ "sma_func_name ::= function_name",
 /* 297 */ "sma_func_name ::= COUNT",
 /* 298 */ "sma_func_name ::= FIRST",
 /* 299 */ "sma_func_name ::= LAST",
 /* 300 */ "sma_func_name ::= LAST_ROW",
 /* 301 */ "sma_stream_opt ::=",
 /* 302 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
 /* 303 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
 /* 304 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
 /* 305 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
 /* 306 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name",
 /* 307 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name",
wmmhello's avatar
wmmhello 已提交
2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909
 /* 308 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name ONLY META AS DATABASE db_name",
 /* 309 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name where_clause_opt",
 /* 310 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name where_clause_opt",
 /* 311 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name ONLY META AS STABLE full_table_name where_clause_opt",
 /* 312 */ "cmd ::= DROP TOPIC exists_opt topic_name",
 /* 313 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
 /* 314 */ "cmd ::= DESC full_table_name",
 /* 315 */ "cmd ::= DESCRIBE full_table_name",
 /* 316 */ "cmd ::= RESET QUERY CACHE",
 /* 317 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
 /* 318 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
 /* 319 */ "analyze_opt ::=",
 /* 320 */ "analyze_opt ::= ANALYZE",
 /* 321 */ "explain_options ::=",
 /* 322 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
 /* 323 */ "explain_options ::= explain_options RATIO NK_FLOAT",
 /* 324 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
 /* 325 */ "cmd ::= DROP FUNCTION exists_opt function_name",
 /* 326 */ "agg_func_opt ::=",
 /* 327 */ "agg_func_opt ::= AGGREGATE",
 /* 328 */ "bufsize_opt ::=",
 /* 329 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
 /* 330 */ "language_opt ::=",
 /* 331 */ "language_opt ::= LANGUAGE NK_STRING",
 /* 332 */ "or_replace_opt ::=",
 /* 333 */ "or_replace_opt ::= OR REPLACE",
 /* 334 */ "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",
 /* 335 */ "cmd ::= DROP STREAM exists_opt stream_name",
 /* 336 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
 /* 337 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
 /* 338 */ "col_list_opt ::=",
 /* 339 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
 /* 340 */ "tag_def_or_ref_opt ::=",
 /* 341 */ "tag_def_or_ref_opt ::= tags_def",
 /* 342 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
 /* 343 */ "stream_options ::=",
 /* 344 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
 /* 345 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
 /* 346 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
 /* 347 */ "stream_options ::= stream_options WATERMARK duration_literal",
 /* 348 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
 /* 349 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
 /* 350 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
 /* 351 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
 /* 352 */ "subtable_opt ::=",
 /* 353 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
 /* 354 */ "ignore_opt ::=",
 /* 355 */ "ignore_opt ::= IGNORE UNTREATED",
 /* 356 */ "cmd ::= KILL CONNECTION NK_INTEGER",
 /* 357 */ "cmd ::= KILL QUERY NK_STRING",
 /* 358 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
 /* 359 */ "cmd ::= BALANCE VGROUP",
 /* 360 */ "cmd ::= BALANCE VGROUP LEADER",
 /* 361 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
 /* 362 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
 /* 363 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
 /* 364 */ "dnode_list ::= DNODE NK_INTEGER",
 /* 365 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
 /* 366 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
 /* 367 */ "cmd ::= query_or_subquery",
 /* 368 */ "cmd ::= insert_query",
 /* 369 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
 /* 370 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
 /* 371 */ "literal ::= NK_INTEGER",
 /* 372 */ "literal ::= NK_FLOAT",
 /* 373 */ "literal ::= NK_STRING",
 /* 374 */ "literal ::= NK_BOOL",
 /* 375 */ "literal ::= TIMESTAMP NK_STRING",
 /* 376 */ "literal ::= duration_literal",
 /* 377 */ "literal ::= NULL",
 /* 378 */ "literal ::= NK_QUESTION",
 /* 379 */ "duration_literal ::= NK_VARIABLE",
 /* 380 */ "signed ::= NK_INTEGER",
 /* 381 */ "signed ::= NK_PLUS NK_INTEGER",
 /* 382 */ "signed ::= NK_MINUS NK_INTEGER",
 /* 383 */ "signed ::= NK_FLOAT",
 /* 384 */ "signed ::= NK_PLUS NK_FLOAT",
 /* 385 */ "signed ::= NK_MINUS NK_FLOAT",
 /* 386 */ "signed_literal ::= signed",
 /* 387 */ "signed_literal ::= NK_STRING",
 /* 388 */ "signed_literal ::= NK_BOOL",
 /* 389 */ "signed_literal ::= TIMESTAMP NK_STRING",
 /* 390 */ "signed_literal ::= duration_literal",
 /* 391 */ "signed_literal ::= NULL",
 /* 392 */ "signed_literal ::= literal_func",
 /* 393 */ "signed_literal ::= NK_QUESTION",
 /* 394 */ "literal_list ::= signed_literal",
 /* 395 */ "literal_list ::= literal_list NK_COMMA signed_literal",
 /* 396 */ "db_name ::= NK_ID",
 /* 397 */ "table_name ::= NK_ID",
 /* 398 */ "column_name ::= NK_ID",
 /* 399 */ "function_name ::= NK_ID",
 /* 400 */ "table_alias ::= NK_ID",
 /* 401 */ "column_alias ::= NK_ID",
 /* 402 */ "user_name ::= NK_ID",
 /* 403 */ "topic_name ::= NK_ID",
 /* 404 */ "stream_name ::= NK_ID",
 /* 405 */ "cgroup_name ::= NK_ID",
 /* 406 */ "index_name ::= NK_ID",
 /* 407 */ "expr_or_subquery ::= expression",
 /* 408 */ "expression ::= literal",
 /* 409 */ "expression ::= pseudo_column",
 /* 410 */ "expression ::= column_reference",
 /* 411 */ "expression ::= function_expression",
 /* 412 */ "expression ::= case_when_expression",
 /* 413 */ "expression ::= NK_LP expression NK_RP",
 /* 414 */ "expression ::= NK_PLUS expr_or_subquery",
 /* 415 */ "expression ::= NK_MINUS expr_or_subquery",
 /* 416 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
 /* 417 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
 /* 418 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
 /* 419 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
 /* 420 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
 /* 421 */ "expression ::= column_reference NK_ARROW NK_STRING",
 /* 422 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
 /* 423 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
 /* 424 */ "expression_list ::= expr_or_subquery",
 /* 425 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
 /* 426 */ "column_reference ::= column_name",
 /* 427 */ "column_reference ::= table_name NK_DOT column_name",
 /* 428 */ "pseudo_column ::= ROWTS",
 /* 429 */ "pseudo_column ::= TBNAME",
 /* 430 */ "pseudo_column ::= table_name NK_DOT TBNAME",
 /* 431 */ "pseudo_column ::= QSTART",
 /* 432 */ "pseudo_column ::= QEND",
 /* 433 */ "pseudo_column ::= QDURATION",
 /* 434 */ "pseudo_column ::= WSTART",
 /* 435 */ "pseudo_column ::= WEND",
 /* 436 */ "pseudo_column ::= WDURATION",
 /* 437 */ "pseudo_column ::= IROWTS",
 /* 438 */ "pseudo_column ::= ISFILLED",
 /* 439 */ "pseudo_column ::= QTAGS",
 /* 440 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
 /* 441 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
 /* 442 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
 /* 443 */ "function_expression ::= literal_func",
 /* 444 */ "literal_func ::= noarg_func NK_LP NK_RP",
 /* 445 */ "literal_func ::= NOW",
 /* 446 */ "noarg_func ::= NOW",
 /* 447 */ "noarg_func ::= TODAY",
 /* 448 */ "noarg_func ::= TIMEZONE",
 /* 449 */ "noarg_func ::= DATABASE",
 /* 450 */ "noarg_func ::= CLIENT_VERSION",
 /* 451 */ "noarg_func ::= SERVER_VERSION",
 /* 452 */ "noarg_func ::= SERVER_STATUS",
 /* 453 */ "noarg_func ::= CURRENT_USER",
 /* 454 */ "noarg_func ::= USER",
 /* 455 */ "star_func ::= COUNT",
 /* 456 */ "star_func ::= FIRST",
 /* 457 */ "star_func ::= LAST",
 /* 458 */ "star_func ::= LAST_ROW",
 /* 459 */ "star_func_para_list ::= NK_STAR",
 /* 460 */ "star_func_para_list ::= other_para_list",
 /* 461 */ "other_para_list ::= star_func_para",
 /* 462 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
 /* 463 */ "star_func_para ::= expr_or_subquery",
 /* 464 */ "star_func_para ::= table_name NK_DOT NK_STAR",
 /* 465 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
 /* 466 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
 /* 467 */ "when_then_list ::= when_then_expr",
 /* 468 */ "when_then_list ::= when_then_list when_then_expr",
 /* 469 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
 /* 470 */ "case_when_else_opt ::=",
 /* 471 */ "case_when_else_opt ::= ELSE common_expression",
 /* 472 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
 /* 473 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
 /* 474 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
 /* 475 */ "predicate ::= expr_or_subquery IS NULL",
 /* 476 */ "predicate ::= expr_or_subquery IS NOT NULL",
 /* 477 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
 /* 478 */ "compare_op ::= NK_LT",
 /* 479 */ "compare_op ::= NK_GT",
 /* 480 */ "compare_op ::= NK_LE",
 /* 481 */ "compare_op ::= NK_GE",
 /* 482 */ "compare_op ::= NK_NE",
 /* 483 */ "compare_op ::= NK_EQ",
 /* 484 */ "compare_op ::= LIKE",
 /* 485 */ "compare_op ::= NOT LIKE",
 /* 486 */ "compare_op ::= MATCH",
 /* 487 */ "compare_op ::= NMATCH",
 /* 488 */ "compare_op ::= CONTAINS",
 /* 489 */ "in_op ::= IN",
 /* 490 */ "in_op ::= NOT IN",
 /* 491 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
 /* 492 */ "boolean_value_expression ::= boolean_primary",
 /* 493 */ "boolean_value_expression ::= NOT boolean_primary",
 /* 494 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
 /* 495 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
 /* 496 */ "boolean_primary ::= predicate",
 /* 497 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
 /* 498 */ "common_expression ::= expr_or_subquery",
 /* 499 */ "common_expression ::= boolean_value_expression",
 /* 500 */ "from_clause_opt ::=",
 /* 501 */ "from_clause_opt ::= FROM table_reference_list",
 /* 502 */ "table_reference_list ::= table_reference",
 /* 503 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
 /* 504 */ "table_reference ::= table_primary",
 /* 505 */ "table_reference ::= joined_table",
 /* 506 */ "table_primary ::= table_name alias_opt",
 /* 507 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
 /* 508 */ "table_primary ::= subquery alias_opt",
 /* 509 */ "table_primary ::= parenthesized_joined_table",
 /* 510 */ "alias_opt ::=",
 /* 511 */ "alias_opt ::= table_alias",
 /* 512 */ "alias_opt ::= AS table_alias",
 /* 513 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
 /* 514 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
 /* 515 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
 /* 516 */ "join_type ::=",
 /* 517 */ "join_type ::= INNER",
 /* 518 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
 /* 519 */ "set_quantifier_opt ::=",
 /* 520 */ "set_quantifier_opt ::= DISTINCT",
 /* 521 */ "set_quantifier_opt ::= ALL",
 /* 522 */ "select_list ::= select_item",
 /* 523 */ "select_list ::= select_list NK_COMMA select_item",
 /* 524 */ "select_item ::= NK_STAR",
 /* 525 */ "select_item ::= common_expression",
 /* 526 */ "select_item ::= common_expression column_alias",
 /* 527 */ "select_item ::= common_expression AS column_alias",
 /* 528 */ "select_item ::= table_name NK_DOT NK_STAR",
 /* 529 */ "where_clause_opt ::=",
 /* 530 */ "where_clause_opt ::= WHERE search_condition",
 /* 531 */ "partition_by_clause_opt ::=",
 /* 532 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
 /* 533 */ "partition_list ::= partition_item",
 /* 534 */ "partition_list ::= partition_list NK_COMMA partition_item",
 /* 535 */ "partition_item ::= expr_or_subquery",
 /* 536 */ "partition_item ::= expr_or_subquery column_alias",
 /* 537 */ "partition_item ::= expr_or_subquery AS column_alias",
 /* 538 */ "twindow_clause_opt ::=",
 /* 539 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
 /* 540 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
 /* 541 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
 /* 542 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
 /* 543 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
 /* 544 */ "sliding_opt ::=",
 /* 545 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
 /* 546 */ "fill_opt ::=",
 /* 547 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
 /* 548 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
 /* 549 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
 /* 550 */ "fill_mode ::= NONE",
 /* 551 */ "fill_mode ::= PREV",
 /* 552 */ "fill_mode ::= NULL",
 /* 553 */ "fill_mode ::= NULL_F",
 /* 554 */ "fill_mode ::= LINEAR",
 /* 555 */ "fill_mode ::= NEXT",
 /* 556 */ "group_by_clause_opt ::=",
 /* 557 */ "group_by_clause_opt ::= GROUP BY group_by_list",
 /* 558 */ "group_by_list ::= expr_or_subquery",
 /* 559 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
 /* 560 */ "having_clause_opt ::=",
 /* 561 */ "having_clause_opt ::= HAVING search_condition",
 /* 562 */ "range_opt ::=",
 /* 563 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
 /* 564 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
 /* 565 */ "every_opt ::=",
 /* 566 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
 /* 567 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
 /* 568 */ "query_simple ::= query_specification",
 /* 569 */ "query_simple ::= union_query_expression",
 /* 570 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
 /* 571 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
 /* 572 */ "query_simple_or_subquery ::= query_simple",
 /* 573 */ "query_simple_or_subquery ::= subquery",
 /* 574 */ "query_or_subquery ::= query_expression",
 /* 575 */ "query_or_subquery ::= subquery",
 /* 576 */ "order_by_clause_opt ::=",
 /* 577 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
 /* 578 */ "slimit_clause_opt ::=",
 /* 579 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
 /* 580 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
 /* 581 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
 /* 582 */ "limit_clause_opt ::=",
 /* 583 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
 /* 584 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
 /* 585 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
 /* 586 */ "subquery ::= NK_LP query_expression NK_RP",
 /* 587 */ "subquery ::= NK_LP subquery NK_RP",
 /* 588 */ "search_condition ::= common_expression",
 /* 589 */ "sort_specification_list ::= sort_specification",
 /* 590 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
 /* 591 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
 /* 592 */ "ordering_specification_opt ::=",
 /* 593 */ "ordering_specification_opt ::= ASC",
 /* 594 */ "ordering_specification_opt ::= DESC",
 /* 595 */ "null_ordering_opt ::=",
 /* 596 */ "null_ordering_opt ::= NULLS FIRST",
 /* 597 */ "null_ordering_opt ::= NULLS LAST",
2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926
};
#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 ){
X
Xiaoyu Wang 已提交
2927
    pNew = malloc(newSize*sizeof(pNew[0]));
2928 2929
    if( pNew ) pNew[0] = p->yystk0;
  }else{
X
Xiaoyu Wang 已提交
2930
    pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947
  }
  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
X
Xiaoyu Wang 已提交
2948
** second argument to ParseAlloc() below.  This can be changed by
2949 2950 2951 2952 2953 2954 2955 2956 2957
** 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.
*/
X
Xiaoyu Wang 已提交
2958
void ParseInit(void *yypRawParser ParseCTX_PDECL){
2959
  yyParser *yypParser = (yyParser*)yypRawParser;
X
Xiaoyu Wang 已提交
2960
  ParseCTX_STORE
2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983
#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
}

X
Xiaoyu Wang 已提交
2984
#ifndef Parse_ENGINEALWAYSONSTACK
2985 2986 2987 2988 2989 2990 2991 2992 2993 2994
/* 
** 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
X
Xiaoyu Wang 已提交
2995
** to Parse and ParseFree.
2996
*/
X
Xiaoyu Wang 已提交
2997
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
2998 2999 3000
  yyParser *yypParser;
  yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
  if( yypParser ){
X
Xiaoyu Wang 已提交
3001 3002
    ParseCTX_STORE
    ParseInit(yypParser ParseCTX_PARAM);
3003 3004 3005
  }
  return (void*)yypParser;
}
X
Xiaoyu Wang 已提交
3006
#endif /* Parse_ENGINEALWAYSONSTACK */
3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020


/* 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 */
){
X
Xiaoyu Wang 已提交
3021 3022
  ParseARG_FETCH
  ParseCTX_FETCH
3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035
  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 */
wmmhello's avatar
wmmhello 已提交
3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109
    case 338: /* cmd */
    case 341: /* literal */
    case 347: /* with_opt */
    case 353: /* search_condition */
    case 358: /* db_options */
    case 360: /* alter_db_options */
    case 362: /* start_opt */
    case 363: /* end_opt */
    case 367: /* signed */
    case 369: /* retention */
    case 370: /* full_table_name */
    case 373: /* table_options */
    case 377: /* alter_table_clause */
    case 378: /* alter_table_options */
    case 381: /* signed_literal */
    case 382: /* create_subtable_clause */
    case 385: /* drop_table_clause */
    case 387: /* column_def */
    case 391: /* duration_literal */
    case 392: /* rollup_func_name */
    case 394: /* col_name */
    case 395: /* db_name_cond_opt */
    case 396: /* like_pattern_opt */
    case 397: /* table_name_cond */
    case 398: /* from_db_opt */
    case 400: /* tag_item */
    case 402: /* full_index_name */
    case 403: /* index_options */
    case 406: /* sliding_opt */
    case 407: /* sma_stream_opt */
    case 408: /* func */
    case 410: /* query_or_subquery */
    case 411: /* where_clause_opt */
    case 414: /* explain_options */
    case 415: /* insert_query */
    case 421: /* stream_options */
    case 424: /* subtable_opt */
    case 426: /* expression */
    case 428: /* literal_func */
    case 431: /* expr_or_subquery */
    case 432: /* pseudo_column */
    case 433: /* column_reference */
    case 434: /* function_expression */
    case 435: /* case_when_expression */
    case 440: /* star_func_para */
    case 442: /* case_when_else_opt */
    case 443: /* common_expression */
    case 444: /* when_then_expr */
    case 445: /* predicate */
    case 448: /* in_predicate_value */
    case 449: /* boolean_value_expression */
    case 450: /* boolean_primary */
    case 451: /* from_clause_opt */
    case 452: /* table_reference_list */
    case 453: /* table_reference */
    case 454: /* table_primary */
    case 455: /* joined_table */
    case 457: /* subquery */
    case 458: /* parenthesized_joined_table */
    case 460: /* query_specification */
    case 464: /* range_opt */
    case 465: /* every_opt */
    case 466: /* fill_opt */
    case 467: /* twindow_clause_opt */
    case 469: /* having_clause_opt */
    case 470: /* select_item */
    case 472: /* partition_item */
    case 475: /* query_expression */
    case 476: /* query_simple */
    case 478: /* slimit_clause_opt */
    case 479: /* limit_clause_opt */
    case 480: /* union_query_expression */
    case 481: /* query_simple_or_subquery */
    case 483: /* sort_specification */
X
Xiaoyu Wang 已提交
3110
{
wmmhello's avatar
wmmhello 已提交
3111
 nodesDestroyNode((yypminor->yy560)); 
X
Xiaoyu Wang 已提交
3112 3113
}
      break;
wmmhello's avatar
wmmhello 已提交
3114 3115 3116 3117 3118
    case 339: /* account_options */
    case 340: /* alter_account_options */
    case 342: /* alter_account_option */
    case 361: /* speed_opt */
    case 418: /* bufsize_opt */
3119
{
X
Xiaoyu Wang 已提交
3120
 
3121 3122
}
      break;
wmmhello's avatar
wmmhello 已提交
3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139
    case 343: /* user_name */
    case 350: /* db_name */
    case 351: /* table_name */
    case 352: /* topic_name */
    case 354: /* dnode_endpoint */
    case 379: /* column_name */
    case 393: /* function_name */
    case 401: /* column_alias */
    case 404: /* index_name */
    case 409: /* sma_func_name */
    case 412: /* cgroup_name */
    case 419: /* language_opt */
    case 420: /* stream_name */
    case 430: /* table_alias */
    case 436: /* star_func */
    case 438: /* noarg_func */
    case 456: /* alias_opt */
3140
{
3141
 
3142 3143
}
      break;
wmmhello's avatar
wmmhello 已提交
3144
    case 344: /* sysinfo_opt */
3145
{
3146
 
3147 3148
}
      break;
wmmhello's avatar
wmmhello 已提交
3149 3150 3151
    case 345: /* privileges */
    case 348: /* priv_type_list */
    case 349: /* priv_type */
X
Xiaoyu Wang 已提交
3152 3153 3154 3155
{
 
}
      break;
wmmhello's avatar
wmmhello 已提交
3156
    case 346: /* priv_level */
3157
{
3158
 
3159 3160
}
      break;
wmmhello's avatar
wmmhello 已提交
3161 3162 3163 3164 3165 3166 3167 3168 3169
    case 355: /* force_opt */
    case 356: /* unsafe_opt */
    case 357: /* not_exists_opt */
    case 359: /* exists_opt */
    case 413: /* analyze_opt */
    case 416: /* or_replace_opt */
    case 417: /* agg_func_opt */
    case 425: /* ignore_opt */
    case 461: /* set_quantifier_opt */
3170
{
3171 3172 3173
 
}
      break;
wmmhello's avatar
wmmhello 已提交
3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202
    case 364: /* integer_list */
    case 365: /* variable_list */
    case 366: /* retention_list */
    case 371: /* column_def_list */
    case 372: /* tags_def_opt */
    case 374: /* multi_create_clause */
    case 375: /* tags_def */
    case 376: /* multi_drop_clause */
    case 383: /* specific_cols_opt */
    case 384: /* expression_list */
    case 386: /* col_name_list */
    case 388: /* duration_list */
    case 389: /* rollup_func_list */
    case 399: /* tag_list_opt */
    case 405: /* func_list */
    case 422: /* col_list_opt */
    case 423: /* tag_def_or_ref_opt */
    case 427: /* dnode_list */
    case 429: /* literal_list */
    case 437: /* star_func_para_list */
    case 439: /* other_para_list */
    case 441: /* when_then_list */
    case 462: /* select_list */
    case 463: /* partition_by_clause_opt */
    case 468: /* group_by_clause_opt */
    case 471: /* partition_list */
    case 474: /* group_by_list */
    case 477: /* order_by_clause_opt */
    case 482: /* sort_specification_list */
3203
{
wmmhello's avatar
wmmhello 已提交
3204
 nodesDestroyList((yypminor->yy496)); 
3205 3206
}
      break;
wmmhello's avatar
wmmhello 已提交
3207 3208
    case 368: /* alter_db_option */
    case 390: /* alter_table_option */
3209
{
X
Xiaoyu Wang 已提交
3210
 
3211 3212
}
      break;
wmmhello's avatar
wmmhello 已提交
3213
    case 380: /* type_name */
3214
{
3215
 
3216 3217
}
      break;
wmmhello's avatar
wmmhello 已提交
3218 3219
    case 446: /* compare_op */
    case 447: /* in_op */
3220
{
3221
 
3222 3223
}
      break;
wmmhello's avatar
wmmhello 已提交
3224
    case 459: /* join_type */
3225
{
3226
 
3227 3228
}
      break;
wmmhello's avatar
wmmhello 已提交
3229
    case 473: /* fill_mode */
3230
{
3231
 
3232 3233
}
      break;
wmmhello's avatar
wmmhello 已提交
3234
    case 484: /* ordering_specification_opt */
3235
{
3236
 
3237 3238
}
      break;
wmmhello's avatar
wmmhello 已提交
3239
    case 485: /* null_ordering_opt */
3240
{
3241
 
3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272
}
      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
*/
X
Xiaoyu Wang 已提交
3273
void ParseFinalize(void *p){
3274 3275 3276
  yyParser *pParser = (yyParser*)p;
  while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
#if YYSTACKDEPTH<=0
X
Xiaoyu Wang 已提交
3277
  if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
3278 3279 3280
#endif
}

X
Xiaoyu Wang 已提交
3281
#ifndef Parse_ENGINEALWAYSONSTACK
3282 3283 3284 3285 3286 3287 3288 3289
/* 
** 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.
*/
X
Xiaoyu Wang 已提交
3290
void ParseFree(
3291 3292 3293 3294 3295 3296
  void *p,                    /* The parser to be deleted */
  void (*freeProc)(void*)     /* Function used to reclaim memory */
){
#ifndef YYPARSEFREENEVERNULL
  if( p==0 ) return;
#endif
X
Xiaoyu Wang 已提交
3297
  ParseFinalize(p);
3298 3299
  (*freeProc)(p);
}
X
Xiaoyu Wang 已提交
3300
#endif /* Parse_ENGINEALWAYSONSTACK */
3301 3302 3303 3304 3305

/*
** Return the peak depth of the stack for a parser.
*/
#ifdef YYTRACKMAXSTACKDEPTH
X
Xiaoyu Wang 已提交
3306
int ParseStackPeak(void *p){
3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329
  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)
X
Xiaoyu Wang 已提交
3330
int ParseCoverage(FILE *out){
3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366
  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 );
D
dapan1121 已提交
3367 3368
    assert( i<=YY_ACTTAB_COUNT );
    assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD );
3369 3370 3371
    assert( iLookAhead!=YYNOCODE );
    assert( iLookAhead < YYNTOKEN );
    i += iLookAhead;
D
dapan1121 已提交
3372 3373
    assert( i<(int)YY_NLOOKAHEAD );
    if( yy_lookahead[i]!=iLookAhead ){
3374 3375
#ifdef YYFALLBACK
      YYCODETYPE iFallback;            /* Fallback token */
D
dapan1121 已提交
3376 3377 3378
      assert( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) );
      iFallback = yyFallback[iLookAhead];
      if( iFallback!=0 ){
3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392
#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;
D
dapan1121 已提交
3393 3394
        assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) );
        if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){
3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407
#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{
wmmhello's avatar
wmmhello 已提交
3408
      assert( i>=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) );
3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447
      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){
X
Xiaoyu Wang 已提交
3448 3449
   ParseARG_FETCH
   ParseCTX_FETCH
3450 3451 3452 3453 3454 3455 3456 3457 3458 3459
#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 ********************************************/
X
Xiaoyu Wang 已提交
3460 3461
   ParseARG_STORE /* Suppress warning about unused %extra_argument var */
   ParseCTX_STORE
3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491
}

/*
** 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 */
X
Xiaoyu Wang 已提交
3492
  ParseTOKENTYPE yyMinor        /* The minor token to shift in */
3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526
){
  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");
}

D
dapan1121 已提交
3527 3528 3529
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static const YYCODETYPE yyRuleInfoLhs[] = {
wmmhello's avatar
wmmhello 已提交
3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127
   338,  /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
   338,  /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
   339,  /* (2) account_options ::= */
   339,  /* (3) account_options ::= account_options PPS literal */
   339,  /* (4) account_options ::= account_options TSERIES literal */
   339,  /* (5) account_options ::= account_options STORAGE literal */
   339,  /* (6) account_options ::= account_options STREAMS literal */
   339,  /* (7) account_options ::= account_options QTIME literal */
   339,  /* (8) account_options ::= account_options DBS literal */
   339,  /* (9) account_options ::= account_options USERS literal */
   339,  /* (10) account_options ::= account_options CONNS literal */
   339,  /* (11) account_options ::= account_options STATE literal */
   340,  /* (12) alter_account_options ::= alter_account_option */
   340,  /* (13) alter_account_options ::= alter_account_options alter_account_option */
   342,  /* (14) alter_account_option ::= PASS literal */
   342,  /* (15) alter_account_option ::= PPS literal */
   342,  /* (16) alter_account_option ::= TSERIES literal */
   342,  /* (17) alter_account_option ::= STORAGE literal */
   342,  /* (18) alter_account_option ::= STREAMS literal */
   342,  /* (19) alter_account_option ::= QTIME literal */
   342,  /* (20) alter_account_option ::= DBS literal */
   342,  /* (21) alter_account_option ::= USERS literal */
   342,  /* (22) alter_account_option ::= CONNS literal */
   342,  /* (23) alter_account_option ::= STATE literal */
   338,  /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
   338,  /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
   338,  /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
   338,  /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
   338,  /* (28) cmd ::= DROP USER user_name */
   344,  /* (29) sysinfo_opt ::= */
   344,  /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */
   338,  /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
   338,  /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
   345,  /* (33) privileges ::= ALL */
   345,  /* (34) privileges ::= priv_type_list */
   345,  /* (35) privileges ::= SUBSCRIBE */
   348,  /* (36) priv_type_list ::= priv_type */
   348,  /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */
   349,  /* (38) priv_type ::= READ */
   349,  /* (39) priv_type ::= WRITE */
   346,  /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */
   346,  /* (41) priv_level ::= db_name NK_DOT NK_STAR */
   346,  /* (42) priv_level ::= db_name NK_DOT table_name */
   346,  /* (43) priv_level ::= topic_name */
   347,  /* (44) with_opt ::= */
   347,  /* (45) with_opt ::= WITH search_condition */
   338,  /* (46) cmd ::= CREATE DNODE dnode_endpoint */
   338,  /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
   338,  /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */
   338,  /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */
   338,  /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
   338,  /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
   338,  /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
   338,  /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
   338,  /* (54) cmd ::= ALTER ALL DNODES NK_STRING */
   338,  /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
   338,  /* (56) cmd ::= RESTORE DNODE NK_INTEGER */
   354,  /* (57) dnode_endpoint ::= NK_STRING */
   354,  /* (58) dnode_endpoint ::= NK_ID */
   354,  /* (59) dnode_endpoint ::= NK_IPTOKEN */
   355,  /* (60) force_opt ::= */
   355,  /* (61) force_opt ::= FORCE */
   356,  /* (62) unsafe_opt ::= UNSAFE */
   338,  /* (63) cmd ::= ALTER LOCAL NK_STRING */
   338,  /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
   338,  /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
   338,  /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
   338,  /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
   338,  /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
   338,  /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
   338,  /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
   338,  /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
   338,  /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
   338,  /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
   338,  /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
   338,  /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
   338,  /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
   338,  /* (77) cmd ::= DROP DATABASE exists_opt db_name */
   338,  /* (78) cmd ::= USE db_name */
   338,  /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */
   338,  /* (80) cmd ::= FLUSH DATABASE db_name */
   338,  /* (81) cmd ::= TRIM DATABASE db_name speed_opt */
   338,  /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
   357,  /* (83) not_exists_opt ::= IF NOT EXISTS */
   357,  /* (84) not_exists_opt ::= */
   359,  /* (85) exists_opt ::= IF EXISTS */
   359,  /* (86) exists_opt ::= */
   358,  /* (87) db_options ::= */
   358,  /* (88) db_options ::= db_options BUFFER NK_INTEGER */
   358,  /* (89) db_options ::= db_options CACHEMODEL NK_STRING */
   358,  /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */
   358,  /* (91) db_options ::= db_options COMP NK_INTEGER */
   358,  /* (92) db_options ::= db_options DURATION NK_INTEGER */
   358,  /* (93) db_options ::= db_options DURATION NK_VARIABLE */
   358,  /* (94) db_options ::= db_options MAXROWS NK_INTEGER */
   358,  /* (95) db_options ::= db_options MINROWS NK_INTEGER */
   358,  /* (96) db_options ::= db_options KEEP integer_list */
   358,  /* (97) db_options ::= db_options KEEP variable_list */
   358,  /* (98) db_options ::= db_options PAGES NK_INTEGER */
   358,  /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */
   358,  /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
   358,  /* (101) db_options ::= db_options PRECISION NK_STRING */
   358,  /* (102) db_options ::= db_options REPLICA NK_INTEGER */
   358,  /* (103) db_options ::= db_options VGROUPS NK_INTEGER */
   358,  /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
   358,  /* (105) db_options ::= db_options RETENTIONS retention_list */
   358,  /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */
   358,  /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */
   358,  /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
   358,  /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
   358,  /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
   358,  /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
   358,  /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
   358,  /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
   358,  /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
   358,  /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */
   358,  /* (116) db_options ::= db_options TABLE_PREFIX signed */
   358,  /* (117) db_options ::= db_options TABLE_SUFFIX signed */
   360,  /* (118) alter_db_options ::= alter_db_option */
   360,  /* (119) alter_db_options ::= alter_db_options alter_db_option */
   368,  /* (120) alter_db_option ::= BUFFER NK_INTEGER */
   368,  /* (121) alter_db_option ::= CACHEMODEL NK_STRING */
   368,  /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */
   368,  /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
   368,  /* (124) alter_db_option ::= KEEP integer_list */
   368,  /* (125) alter_db_option ::= KEEP variable_list */
   368,  /* (126) alter_db_option ::= PAGES NK_INTEGER */
   368,  /* (127) alter_db_option ::= REPLICA NK_INTEGER */
   368,  /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */
   368,  /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */
   368,  /* (130) alter_db_option ::= MINROWS NK_INTEGER */
   368,  /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
   368,  /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
   368,  /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
   368,  /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
   364,  /* (135) integer_list ::= NK_INTEGER */
   364,  /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */
   365,  /* (137) variable_list ::= NK_VARIABLE */
   365,  /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
   366,  /* (139) retention_list ::= retention */
   366,  /* (140) retention_list ::= retention_list NK_COMMA retention */
   369,  /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
   361,  /* (142) speed_opt ::= */
   361,  /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */
   362,  /* (144) start_opt ::= */
   362,  /* (145) start_opt ::= START WITH NK_INTEGER */
   362,  /* (146) start_opt ::= START WITH NK_STRING */
   362,  /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */
   363,  /* (148) end_opt ::= */
   363,  /* (149) end_opt ::= END WITH NK_INTEGER */
   363,  /* (150) end_opt ::= END WITH NK_STRING */
   363,  /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */
   338,  /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
   338,  /* (153) cmd ::= CREATE TABLE multi_create_clause */
   338,  /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
   338,  /* (155) cmd ::= DROP TABLE multi_drop_clause */
   338,  /* (156) cmd ::= DROP STABLE exists_opt full_table_name */
   338,  /* (157) cmd ::= ALTER TABLE alter_table_clause */
   338,  /* (158) cmd ::= ALTER STABLE alter_table_clause */
   377,  /* (159) alter_table_clause ::= full_table_name alter_table_options */
   377,  /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
   377,  /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */
   377,  /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
   377,  /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
   377,  /* (164) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
   377,  /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */
   377,  /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
   377,  /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
   377,  /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
   374,  /* (169) multi_create_clause ::= create_subtable_clause */
   374,  /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */
   382,  /* (171) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
   376,  /* (172) multi_drop_clause ::= drop_table_clause */
   376,  /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
   385,  /* (174) drop_table_clause ::= exists_opt full_table_name */
   383,  /* (175) specific_cols_opt ::= */
   383,  /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */
   370,  /* (177) full_table_name ::= table_name */
   370,  /* (178) full_table_name ::= db_name NK_DOT table_name */
   371,  /* (179) column_def_list ::= column_def */
   371,  /* (180) column_def_list ::= column_def_list NK_COMMA column_def */
   387,  /* (181) column_def ::= column_name type_name */
   380,  /* (182) type_name ::= BOOL */
   380,  /* (183) type_name ::= TINYINT */
   380,  /* (184) type_name ::= SMALLINT */
   380,  /* (185) type_name ::= INT */
   380,  /* (186) type_name ::= INTEGER */
   380,  /* (187) type_name ::= BIGINT */
   380,  /* (188) type_name ::= FLOAT */
   380,  /* (189) type_name ::= DOUBLE */
   380,  /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
   380,  /* (191) type_name ::= TIMESTAMP */
   380,  /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
   380,  /* (193) type_name ::= TINYINT UNSIGNED */
   380,  /* (194) type_name ::= SMALLINT UNSIGNED */
   380,  /* (195) type_name ::= INT UNSIGNED */
   380,  /* (196) type_name ::= BIGINT UNSIGNED */
   380,  /* (197) type_name ::= JSON */
   380,  /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
   380,  /* (199) type_name ::= MEDIUMBLOB */
   380,  /* (200) type_name ::= BLOB */
   380,  /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
   380,  /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
   380,  /* (203) type_name ::= DECIMAL */
   380,  /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
   380,  /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
   372,  /* (206) tags_def_opt ::= */
   372,  /* (207) tags_def_opt ::= tags_def */
   375,  /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */
   373,  /* (209) table_options ::= */
   373,  /* (210) table_options ::= table_options COMMENT NK_STRING */
   373,  /* (211) table_options ::= table_options MAX_DELAY duration_list */
   373,  /* (212) table_options ::= table_options WATERMARK duration_list */
   373,  /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
   373,  /* (214) table_options ::= table_options TTL NK_INTEGER */
   373,  /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
   373,  /* (216) table_options ::= table_options DELETE_MARK duration_list */
   378,  /* (217) alter_table_options ::= alter_table_option */
   378,  /* (218) alter_table_options ::= alter_table_options alter_table_option */
   390,  /* (219) alter_table_option ::= COMMENT NK_STRING */
   390,  /* (220) alter_table_option ::= TTL NK_INTEGER */
   388,  /* (221) duration_list ::= duration_literal */
   388,  /* (222) duration_list ::= duration_list NK_COMMA duration_literal */
   389,  /* (223) rollup_func_list ::= rollup_func_name */
   389,  /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
   392,  /* (225) rollup_func_name ::= function_name */
   392,  /* (226) rollup_func_name ::= FIRST */
   392,  /* (227) rollup_func_name ::= LAST */
   386,  /* (228) col_name_list ::= col_name */
   386,  /* (229) col_name_list ::= col_name_list NK_COMMA col_name */
   394,  /* (230) col_name ::= column_name */
   338,  /* (231) cmd ::= SHOW DNODES */
   338,  /* (232) cmd ::= SHOW USERS */
   338,  /* (233) cmd ::= SHOW USER PRIVILEGES */
   338,  /* (234) cmd ::= SHOW DATABASES */
   338,  /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
   338,  /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
   338,  /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */
   338,  /* (238) cmd ::= SHOW MNODES */
   338,  /* (239) cmd ::= SHOW QNODES */
   338,  /* (240) cmd ::= SHOW FUNCTIONS */
   338,  /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
   338,  /* (242) cmd ::= SHOW STREAMS */
   338,  /* (243) cmd ::= SHOW ACCOUNTS */
   338,  /* (244) cmd ::= SHOW APPS */
   338,  /* (245) cmd ::= SHOW CONNECTIONS */
   338,  /* (246) cmd ::= SHOW LICENCES */
   338,  /* (247) cmd ::= SHOW GRANTS */
   338,  /* (248) cmd ::= SHOW CREATE DATABASE db_name */
   338,  /* (249) cmd ::= SHOW CREATE TABLE full_table_name */
   338,  /* (250) cmd ::= SHOW CREATE STABLE full_table_name */
   338,  /* (251) cmd ::= SHOW QUERIES */
   338,  /* (252) cmd ::= SHOW SCORES */
   338,  /* (253) cmd ::= SHOW TOPICS */
   338,  /* (254) cmd ::= SHOW VARIABLES */
   338,  /* (255) cmd ::= SHOW CLUSTER VARIABLES */
   338,  /* (256) cmd ::= SHOW LOCAL VARIABLES */
   338,  /* (257) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
   338,  /* (258) cmd ::= SHOW BNODES */
   338,  /* (259) cmd ::= SHOW SNODES */
   338,  /* (260) cmd ::= SHOW CLUSTER */
   338,  /* (261) cmd ::= SHOW TRANSACTIONS */
   338,  /* (262) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
   338,  /* (263) cmd ::= SHOW CONSUMERS */
   338,  /* (264) cmd ::= SHOW SUBSCRIPTIONS */
   338,  /* (265) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
   338,  /* (266) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
   338,  /* (267) cmd ::= SHOW VNODES NK_INTEGER */
   338,  /* (268) cmd ::= SHOW VNODES NK_STRING */
   338,  /* (269) cmd ::= SHOW db_name_cond_opt ALIVE */
   338,  /* (270) cmd ::= SHOW CLUSTER ALIVE */
   395,  /* (271) db_name_cond_opt ::= */
   395,  /* (272) db_name_cond_opt ::= db_name NK_DOT */
   396,  /* (273) like_pattern_opt ::= */
   396,  /* (274) like_pattern_opt ::= LIKE NK_STRING */
   397,  /* (275) table_name_cond ::= table_name */
   398,  /* (276) from_db_opt ::= */
   398,  /* (277) from_db_opt ::= FROM db_name */
   399,  /* (278) tag_list_opt ::= */
   399,  /* (279) tag_list_opt ::= tag_item */
   399,  /* (280) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
   400,  /* (281) tag_item ::= TBNAME */
   400,  /* (282) tag_item ::= QTAGS */
   400,  /* (283) tag_item ::= column_name */
   400,  /* (284) tag_item ::= column_name column_alias */
   400,  /* (285) tag_item ::= column_name AS column_alias */
   338,  /* (286) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
   338,  /* (287) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */
   338,  /* (288) cmd ::= DROP INDEX exists_opt full_index_name */
   402,  /* (289) full_index_name ::= index_name */
   402,  /* (290) full_index_name ::= db_name NK_DOT index_name */
   403,  /* (291) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
   403,  /* (292) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
   405,  /* (293) func_list ::= func */
   405,  /* (294) func_list ::= func_list NK_COMMA func */
   408,  /* (295) func ::= sma_func_name NK_LP expression_list NK_RP */
   409,  /* (296) sma_func_name ::= function_name */
   409,  /* (297) sma_func_name ::= COUNT */
   409,  /* (298) sma_func_name ::= FIRST */
   409,  /* (299) sma_func_name ::= LAST */
   409,  /* (300) sma_func_name ::= LAST_ROW */
   407,  /* (301) sma_stream_opt ::= */
   407,  /* (302) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
   407,  /* (303) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
   407,  /* (304) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
   338,  /* (305) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
   338,  /* (306) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */
   338,  /* (307) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */
   338,  /* (308) cmd ::= CREATE TOPIC not_exists_opt topic_name ONLY META AS DATABASE db_name */
   338,  /* (309) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name where_clause_opt */
   338,  /* (310) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name where_clause_opt */
   338,  /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name ONLY META AS STABLE full_table_name where_clause_opt */
   338,  /* (312) cmd ::= DROP TOPIC exists_opt topic_name */
   338,  /* (313) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
   338,  /* (314) cmd ::= DESC full_table_name */
   338,  /* (315) cmd ::= DESCRIBE full_table_name */
   338,  /* (316) cmd ::= RESET QUERY CACHE */
   338,  /* (317) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
   338,  /* (318) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
   413,  /* (319) analyze_opt ::= */
   413,  /* (320) analyze_opt ::= ANALYZE */
   414,  /* (321) explain_options ::= */
   414,  /* (322) explain_options ::= explain_options VERBOSE NK_BOOL */
   414,  /* (323) explain_options ::= explain_options RATIO NK_FLOAT */
   338,  /* (324) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
   338,  /* (325) cmd ::= DROP FUNCTION exists_opt function_name */
   417,  /* (326) agg_func_opt ::= */
   417,  /* (327) agg_func_opt ::= AGGREGATE */
   418,  /* (328) bufsize_opt ::= */
   418,  /* (329) bufsize_opt ::= BUFSIZE NK_INTEGER */
   419,  /* (330) language_opt ::= */
   419,  /* (331) language_opt ::= LANGUAGE NK_STRING */
   416,  /* (332) or_replace_opt ::= */
   416,  /* (333) or_replace_opt ::= OR REPLACE */
   338,  /* (334) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
   338,  /* (335) cmd ::= DROP STREAM exists_opt stream_name */
   338,  /* (336) cmd ::= PAUSE STREAM exists_opt stream_name */
   338,  /* (337) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
   422,  /* (338) col_list_opt ::= */
   422,  /* (339) col_list_opt ::= NK_LP col_name_list NK_RP */
   423,  /* (340) tag_def_or_ref_opt ::= */
   423,  /* (341) tag_def_or_ref_opt ::= tags_def */
   423,  /* (342) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
   421,  /* (343) stream_options ::= */
   421,  /* (344) stream_options ::= stream_options TRIGGER AT_ONCE */
   421,  /* (345) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
   421,  /* (346) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
   421,  /* (347) stream_options ::= stream_options WATERMARK duration_literal */
   421,  /* (348) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
   421,  /* (349) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
   421,  /* (350) stream_options ::= stream_options DELETE_MARK duration_literal */
   421,  /* (351) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
   424,  /* (352) subtable_opt ::= */
   424,  /* (353) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
   425,  /* (354) ignore_opt ::= */
   425,  /* (355) ignore_opt ::= IGNORE UNTREATED */
   338,  /* (356) cmd ::= KILL CONNECTION NK_INTEGER */
   338,  /* (357) cmd ::= KILL QUERY NK_STRING */
   338,  /* (358) cmd ::= KILL TRANSACTION NK_INTEGER */
   338,  /* (359) cmd ::= BALANCE VGROUP */
   338,  /* (360) cmd ::= BALANCE VGROUP LEADER */
   338,  /* (361) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
   338,  /* (362) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
   338,  /* (363) cmd ::= SPLIT VGROUP NK_INTEGER */
   427,  /* (364) dnode_list ::= DNODE NK_INTEGER */
   427,  /* (365) dnode_list ::= dnode_list DNODE NK_INTEGER */
   338,  /* (366) cmd ::= DELETE FROM full_table_name where_clause_opt */
   338,  /* (367) cmd ::= query_or_subquery */
   338,  /* (368) cmd ::= insert_query */
   415,  /* (369) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
   415,  /* (370) insert_query ::= INSERT INTO full_table_name query_or_subquery */
   341,  /* (371) literal ::= NK_INTEGER */
   341,  /* (372) literal ::= NK_FLOAT */
   341,  /* (373) literal ::= NK_STRING */
   341,  /* (374) literal ::= NK_BOOL */
   341,  /* (375) literal ::= TIMESTAMP NK_STRING */
   341,  /* (376) literal ::= duration_literal */
   341,  /* (377) literal ::= NULL */
   341,  /* (378) literal ::= NK_QUESTION */
   391,  /* (379) duration_literal ::= NK_VARIABLE */
   367,  /* (380) signed ::= NK_INTEGER */
   367,  /* (381) signed ::= NK_PLUS NK_INTEGER */
   367,  /* (382) signed ::= NK_MINUS NK_INTEGER */
   367,  /* (383) signed ::= NK_FLOAT */
   367,  /* (384) signed ::= NK_PLUS NK_FLOAT */
   367,  /* (385) signed ::= NK_MINUS NK_FLOAT */
   381,  /* (386) signed_literal ::= signed */
   381,  /* (387) signed_literal ::= NK_STRING */
   381,  /* (388) signed_literal ::= NK_BOOL */
   381,  /* (389) signed_literal ::= TIMESTAMP NK_STRING */
   381,  /* (390) signed_literal ::= duration_literal */
   381,  /* (391) signed_literal ::= NULL */
   381,  /* (392) signed_literal ::= literal_func */
   381,  /* (393) signed_literal ::= NK_QUESTION */
   429,  /* (394) literal_list ::= signed_literal */
   429,  /* (395) literal_list ::= literal_list NK_COMMA signed_literal */
   350,  /* (396) db_name ::= NK_ID */
   351,  /* (397) table_name ::= NK_ID */
   379,  /* (398) column_name ::= NK_ID */
   393,  /* (399) function_name ::= NK_ID */
   430,  /* (400) table_alias ::= NK_ID */
   401,  /* (401) column_alias ::= NK_ID */
   343,  /* (402) user_name ::= NK_ID */
   352,  /* (403) topic_name ::= NK_ID */
   420,  /* (404) stream_name ::= NK_ID */
   412,  /* (405) cgroup_name ::= NK_ID */
   404,  /* (406) index_name ::= NK_ID */
   431,  /* (407) expr_or_subquery ::= expression */
   426,  /* (408) expression ::= literal */
   426,  /* (409) expression ::= pseudo_column */
   426,  /* (410) expression ::= column_reference */
   426,  /* (411) expression ::= function_expression */
   426,  /* (412) expression ::= case_when_expression */
   426,  /* (413) expression ::= NK_LP expression NK_RP */
   426,  /* (414) expression ::= NK_PLUS expr_or_subquery */
   426,  /* (415) expression ::= NK_MINUS expr_or_subquery */
   426,  /* (416) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
   426,  /* (417) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
   426,  /* (418) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
   426,  /* (419) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
   426,  /* (420) expression ::= expr_or_subquery NK_REM expr_or_subquery */
   426,  /* (421) expression ::= column_reference NK_ARROW NK_STRING */
   426,  /* (422) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
   426,  /* (423) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
   384,  /* (424) expression_list ::= expr_or_subquery */
   384,  /* (425) expression_list ::= expression_list NK_COMMA expr_or_subquery */
   433,  /* (426) column_reference ::= column_name */
   433,  /* (427) column_reference ::= table_name NK_DOT column_name */
   432,  /* (428) pseudo_column ::= ROWTS */
   432,  /* (429) pseudo_column ::= TBNAME */
   432,  /* (430) pseudo_column ::= table_name NK_DOT TBNAME */
   432,  /* (431) pseudo_column ::= QSTART */
   432,  /* (432) pseudo_column ::= QEND */
   432,  /* (433) pseudo_column ::= QDURATION */
   432,  /* (434) pseudo_column ::= WSTART */
   432,  /* (435) pseudo_column ::= WEND */
   432,  /* (436) pseudo_column ::= WDURATION */
   432,  /* (437) pseudo_column ::= IROWTS */
   432,  /* (438) pseudo_column ::= ISFILLED */
   432,  /* (439) pseudo_column ::= QTAGS */
   434,  /* (440) function_expression ::= function_name NK_LP expression_list NK_RP */
   434,  /* (441) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
   434,  /* (442) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
   434,  /* (443) function_expression ::= literal_func */
   428,  /* (444) literal_func ::= noarg_func NK_LP NK_RP */
   428,  /* (445) literal_func ::= NOW */
   438,  /* (446) noarg_func ::= NOW */
   438,  /* (447) noarg_func ::= TODAY */
   438,  /* (448) noarg_func ::= TIMEZONE */
   438,  /* (449) noarg_func ::= DATABASE */
   438,  /* (450) noarg_func ::= CLIENT_VERSION */
   438,  /* (451) noarg_func ::= SERVER_VERSION */
   438,  /* (452) noarg_func ::= SERVER_STATUS */
   438,  /* (453) noarg_func ::= CURRENT_USER */
   438,  /* (454) noarg_func ::= USER */
   436,  /* (455) star_func ::= COUNT */
   436,  /* (456) star_func ::= FIRST */
   436,  /* (457) star_func ::= LAST */
   436,  /* (458) star_func ::= LAST_ROW */
   437,  /* (459) star_func_para_list ::= NK_STAR */
   437,  /* (460) star_func_para_list ::= other_para_list */
   439,  /* (461) other_para_list ::= star_func_para */
   439,  /* (462) other_para_list ::= other_para_list NK_COMMA star_func_para */
   440,  /* (463) star_func_para ::= expr_or_subquery */
   440,  /* (464) star_func_para ::= table_name NK_DOT NK_STAR */
   435,  /* (465) case_when_expression ::= CASE when_then_list case_when_else_opt END */
   435,  /* (466) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
   441,  /* (467) when_then_list ::= when_then_expr */
   441,  /* (468) when_then_list ::= when_then_list when_then_expr */
   444,  /* (469) when_then_expr ::= WHEN common_expression THEN common_expression */
   442,  /* (470) case_when_else_opt ::= */
   442,  /* (471) case_when_else_opt ::= ELSE common_expression */
   445,  /* (472) predicate ::= expr_or_subquery compare_op expr_or_subquery */
   445,  /* (473) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
   445,  /* (474) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
   445,  /* (475) predicate ::= expr_or_subquery IS NULL */
   445,  /* (476) predicate ::= expr_or_subquery IS NOT NULL */
   445,  /* (477) predicate ::= expr_or_subquery in_op in_predicate_value */
   446,  /* (478) compare_op ::= NK_LT */
   446,  /* (479) compare_op ::= NK_GT */
   446,  /* (480) compare_op ::= NK_LE */
   446,  /* (481) compare_op ::= NK_GE */
   446,  /* (482) compare_op ::= NK_NE */
   446,  /* (483) compare_op ::= NK_EQ */
   446,  /* (484) compare_op ::= LIKE */
   446,  /* (485) compare_op ::= NOT LIKE */
   446,  /* (486) compare_op ::= MATCH */
   446,  /* (487) compare_op ::= NMATCH */
   446,  /* (488) compare_op ::= CONTAINS */
   447,  /* (489) in_op ::= IN */
   447,  /* (490) in_op ::= NOT IN */
   448,  /* (491) in_predicate_value ::= NK_LP literal_list NK_RP */
   449,  /* (492) boolean_value_expression ::= boolean_primary */
   449,  /* (493) boolean_value_expression ::= NOT boolean_primary */
   449,  /* (494) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
   449,  /* (495) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
   450,  /* (496) boolean_primary ::= predicate */
   450,  /* (497) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
   443,  /* (498) common_expression ::= expr_or_subquery */
   443,  /* (499) common_expression ::= boolean_value_expression */
   451,  /* (500) from_clause_opt ::= */
   451,  /* (501) from_clause_opt ::= FROM table_reference_list */
   452,  /* (502) table_reference_list ::= table_reference */
   452,  /* (503) table_reference_list ::= table_reference_list NK_COMMA table_reference */
   453,  /* (504) table_reference ::= table_primary */
   453,  /* (505) table_reference ::= joined_table */
   454,  /* (506) table_primary ::= table_name alias_opt */
   454,  /* (507) table_primary ::= db_name NK_DOT table_name alias_opt */
   454,  /* (508) table_primary ::= subquery alias_opt */
   454,  /* (509) table_primary ::= parenthesized_joined_table */
   456,  /* (510) alias_opt ::= */
   456,  /* (511) alias_opt ::= table_alias */
   456,  /* (512) alias_opt ::= AS table_alias */
   458,  /* (513) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
   458,  /* (514) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
   455,  /* (515) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
   459,  /* (516) join_type ::= */
   459,  /* (517) join_type ::= INNER */
   460,  /* (518) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
   461,  /* (519) set_quantifier_opt ::= */
   461,  /* (520) set_quantifier_opt ::= DISTINCT */
   461,  /* (521) set_quantifier_opt ::= ALL */
   462,  /* (522) select_list ::= select_item */
   462,  /* (523) select_list ::= select_list NK_COMMA select_item */
   470,  /* (524) select_item ::= NK_STAR */
   470,  /* (525) select_item ::= common_expression */
   470,  /* (526) select_item ::= common_expression column_alias */
   470,  /* (527) select_item ::= common_expression AS column_alias */
   470,  /* (528) select_item ::= table_name NK_DOT NK_STAR */
   411,  /* (529) where_clause_opt ::= */
   411,  /* (530) where_clause_opt ::= WHERE search_condition */
   463,  /* (531) partition_by_clause_opt ::= */
   463,  /* (532) partition_by_clause_opt ::= PARTITION BY partition_list */
   471,  /* (533) partition_list ::= partition_item */
   471,  /* (534) partition_list ::= partition_list NK_COMMA partition_item */
   472,  /* (535) partition_item ::= expr_or_subquery */
   472,  /* (536) partition_item ::= expr_or_subquery column_alias */
   472,  /* (537) partition_item ::= expr_or_subquery AS column_alias */
   467,  /* (538) twindow_clause_opt ::= */
   467,  /* (539) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
   467,  /* (540) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
   467,  /* (541) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
   467,  /* (542) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
   467,  /* (543) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
   406,  /* (544) sliding_opt ::= */
   406,  /* (545) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
   466,  /* (546) fill_opt ::= */
   466,  /* (547) fill_opt ::= FILL NK_LP fill_mode NK_RP */
   466,  /* (548) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
   466,  /* (549) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
   473,  /* (550) fill_mode ::= NONE */
   473,  /* (551) fill_mode ::= PREV */
   473,  /* (552) fill_mode ::= NULL */
   473,  /* (553) fill_mode ::= NULL_F */
   473,  /* (554) fill_mode ::= LINEAR */
   473,  /* (555) fill_mode ::= NEXT */
   468,  /* (556) group_by_clause_opt ::= */
   468,  /* (557) group_by_clause_opt ::= GROUP BY group_by_list */
   474,  /* (558) group_by_list ::= expr_or_subquery */
   474,  /* (559) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
   469,  /* (560) having_clause_opt ::= */
   469,  /* (561) having_clause_opt ::= HAVING search_condition */
   464,  /* (562) range_opt ::= */
   464,  /* (563) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
   464,  /* (564) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
   465,  /* (565) every_opt ::= */
   465,  /* (566) every_opt ::= EVERY NK_LP duration_literal NK_RP */
   475,  /* (567) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
   476,  /* (568) query_simple ::= query_specification */
   476,  /* (569) query_simple ::= union_query_expression */
   480,  /* (570) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
   480,  /* (571) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
   481,  /* (572) query_simple_or_subquery ::= query_simple */
   481,  /* (573) query_simple_or_subquery ::= subquery */
   410,  /* (574) query_or_subquery ::= query_expression */
   410,  /* (575) query_or_subquery ::= subquery */
   477,  /* (576) order_by_clause_opt ::= */
   477,  /* (577) order_by_clause_opt ::= ORDER BY sort_specification_list */
   478,  /* (578) slimit_clause_opt ::= */
   478,  /* (579) slimit_clause_opt ::= SLIMIT NK_INTEGER */
   478,  /* (580) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
   478,  /* (581) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
   479,  /* (582) limit_clause_opt ::= */
   479,  /* (583) limit_clause_opt ::= LIMIT NK_INTEGER */
   479,  /* (584) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
   479,  /* (585) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
   457,  /* (586) subquery ::= NK_LP query_expression NK_RP */
   457,  /* (587) subquery ::= NK_LP subquery NK_RP */
   353,  /* (588) search_condition ::= common_expression */
   482,  /* (589) sort_specification_list ::= sort_specification */
   482,  /* (590) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
   483,  /* (591) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
   484,  /* (592) ordering_specification_opt ::= */
   484,  /* (593) ordering_specification_opt ::= ASC */
   484,  /* (594) ordering_specification_opt ::= DESC */
   485,  /* (595) null_ordering_opt ::= */
   485,  /* (596) null_ordering_opt ::= NULLS FIRST */
   485,  /* (597) null_ordering_opt ::= NULLS LAST */
D
dapan1121 已提交
4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182
};

/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static const signed char yyRuleInfoNRhs[] = {
   -6,  /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
   -4,  /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
    0,  /* (2) account_options ::= */
   -3,  /* (3) account_options ::= account_options PPS literal */
   -3,  /* (4) account_options ::= account_options TSERIES literal */
   -3,  /* (5) account_options ::= account_options STORAGE literal */
   -3,  /* (6) account_options ::= account_options STREAMS literal */
   -3,  /* (7) account_options ::= account_options QTIME literal */
   -3,  /* (8) account_options ::= account_options DBS literal */
   -3,  /* (9) account_options ::= account_options USERS literal */
   -3,  /* (10) account_options ::= account_options CONNS literal */
   -3,  /* (11) account_options ::= account_options STATE literal */
   -1,  /* (12) alter_account_options ::= alter_account_option */
   -2,  /* (13) alter_account_options ::= alter_account_options alter_account_option */
   -2,  /* (14) alter_account_option ::= PASS literal */
   -2,  /* (15) alter_account_option ::= PPS literal */
   -2,  /* (16) alter_account_option ::= TSERIES literal */
   -2,  /* (17) alter_account_option ::= STORAGE literal */
   -2,  /* (18) alter_account_option ::= STREAMS literal */
   -2,  /* (19) alter_account_option ::= QTIME literal */
   -2,  /* (20) alter_account_option ::= DBS literal */
   -2,  /* (21) alter_account_option ::= USERS literal */
   -2,  /* (22) alter_account_option ::= CONNS literal */
   -2,  /* (23) alter_account_option ::= STATE literal */
   -6,  /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
   -5,  /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */
   -5,  /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
   -5,  /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
   -3,  /* (28) cmd ::= DROP USER user_name */
    0,  /* (29) sysinfo_opt ::= */
   -2,  /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */
   -7,  /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
   -7,  /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
   -1,  /* (33) privileges ::= ALL */
   -1,  /* (34) privileges ::= priv_type_list */
   -1,  /* (35) privileges ::= SUBSCRIBE */
   -1,  /* (36) priv_type_list ::= priv_type */
   -3,  /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */
   -1,  /* (38) priv_type ::= READ */
   -1,  /* (39) priv_type ::= WRITE */
   -3,  /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */
   -3,  /* (41) priv_level ::= db_name NK_DOT NK_STAR */
   -3,  /* (42) priv_level ::= db_name NK_DOT table_name */
   -1,  /* (43) priv_level ::= topic_name */
    0,  /* (44) with_opt ::= */
   -2,  /* (45) with_opt ::= WITH search_condition */
   -3,  /* (46) cmd ::= CREATE DNODE dnode_endpoint */
   -5,  /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
   -4,  /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */
   -4,  /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */
D
dapan1121 已提交
4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334
   -4,  /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
   -4,  /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
   -4,  /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
   -5,  /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
   -4,  /* (54) cmd ::= ALTER ALL DNODES NK_STRING */
   -5,  /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
   -3,  /* (56) cmd ::= RESTORE DNODE NK_INTEGER */
   -1,  /* (57) dnode_endpoint ::= NK_STRING */
   -1,  /* (58) dnode_endpoint ::= NK_ID */
   -1,  /* (59) dnode_endpoint ::= NK_IPTOKEN */
    0,  /* (60) force_opt ::= */
   -1,  /* (61) force_opt ::= FORCE */
   -1,  /* (62) unsafe_opt ::= UNSAFE */
   -3,  /* (63) cmd ::= ALTER LOCAL NK_STRING */
   -4,  /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
   -5,  /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
   -5,  /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
   -5,  /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
   -5,  /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
   -5,  /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
   -5,  /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
   -5,  /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
   -5,  /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
   -5,  /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
   -5,  /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
   -5,  /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
   -5,  /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
   -4,  /* (77) cmd ::= DROP DATABASE exists_opt db_name */
   -2,  /* (78) cmd ::= USE db_name */
   -4,  /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */
   -3,  /* (80) cmd ::= FLUSH DATABASE db_name */
   -4,  /* (81) cmd ::= TRIM DATABASE db_name speed_opt */
   -5,  /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
   -3,  /* (83) not_exists_opt ::= IF NOT EXISTS */
    0,  /* (84) not_exists_opt ::= */
   -2,  /* (85) exists_opt ::= IF EXISTS */
    0,  /* (86) exists_opt ::= */
    0,  /* (87) db_options ::= */
   -3,  /* (88) db_options ::= db_options BUFFER NK_INTEGER */
   -3,  /* (89) db_options ::= db_options CACHEMODEL NK_STRING */
   -3,  /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */
   -3,  /* (91) db_options ::= db_options COMP NK_INTEGER */
   -3,  /* (92) db_options ::= db_options DURATION NK_INTEGER */
   -3,  /* (93) db_options ::= db_options DURATION NK_VARIABLE */
   -3,  /* (94) db_options ::= db_options MAXROWS NK_INTEGER */
   -3,  /* (95) db_options ::= db_options MINROWS NK_INTEGER */
   -3,  /* (96) db_options ::= db_options KEEP integer_list */
   -3,  /* (97) db_options ::= db_options KEEP variable_list */
   -3,  /* (98) db_options ::= db_options PAGES NK_INTEGER */
   -3,  /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */
   -3,  /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
   -3,  /* (101) db_options ::= db_options PRECISION NK_STRING */
   -3,  /* (102) db_options ::= db_options REPLICA NK_INTEGER */
   -3,  /* (103) db_options ::= db_options VGROUPS NK_INTEGER */
   -3,  /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
   -3,  /* (105) db_options ::= db_options RETENTIONS retention_list */
   -3,  /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */
   -3,  /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */
   -3,  /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
   -3,  /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
   -4,  /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
   -3,  /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
   -4,  /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
   -3,  /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
   -3,  /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
   -3,  /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */
   -3,  /* (116) db_options ::= db_options TABLE_PREFIX signed */
   -3,  /* (117) db_options ::= db_options TABLE_SUFFIX signed */
   -1,  /* (118) alter_db_options ::= alter_db_option */
   -2,  /* (119) alter_db_options ::= alter_db_options alter_db_option */
   -2,  /* (120) alter_db_option ::= BUFFER NK_INTEGER */
   -2,  /* (121) alter_db_option ::= CACHEMODEL NK_STRING */
   -2,  /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */
   -2,  /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
   -2,  /* (124) alter_db_option ::= KEEP integer_list */
   -2,  /* (125) alter_db_option ::= KEEP variable_list */
   -2,  /* (126) alter_db_option ::= PAGES NK_INTEGER */
   -2,  /* (127) alter_db_option ::= REPLICA NK_INTEGER */
   -2,  /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */
   -2,  /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */
   -2,  /* (130) alter_db_option ::= MINROWS NK_INTEGER */
   -2,  /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
   -3,  /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
   -2,  /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
   -3,  /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
   -1,  /* (135) integer_list ::= NK_INTEGER */
   -3,  /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */
   -1,  /* (137) variable_list ::= NK_VARIABLE */
   -3,  /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
   -1,  /* (139) retention_list ::= retention */
   -3,  /* (140) retention_list ::= retention_list NK_COMMA retention */
   -3,  /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
    0,  /* (142) speed_opt ::= */
   -2,  /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */
    0,  /* (144) start_opt ::= */
   -3,  /* (145) start_opt ::= START WITH NK_INTEGER */
   -3,  /* (146) start_opt ::= START WITH NK_STRING */
   -4,  /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */
    0,  /* (148) end_opt ::= */
   -3,  /* (149) end_opt ::= END WITH NK_INTEGER */
   -3,  /* (150) end_opt ::= END WITH NK_STRING */
   -4,  /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */
   -9,  /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
   -3,  /* (153) cmd ::= CREATE TABLE multi_create_clause */
   -9,  /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
   -3,  /* (155) cmd ::= DROP TABLE multi_drop_clause */
   -4,  /* (156) cmd ::= DROP STABLE exists_opt full_table_name */
   -3,  /* (157) cmd ::= ALTER TABLE alter_table_clause */
   -3,  /* (158) cmd ::= ALTER STABLE alter_table_clause */
   -2,  /* (159) alter_table_clause ::= full_table_name alter_table_options */
   -5,  /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
   -4,  /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */
   -5,  /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
   -5,  /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
   -5,  /* (164) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
   -4,  /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */
   -5,  /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
   -5,  /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
   -6,  /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
   -1,  /* (169) multi_create_clause ::= create_subtable_clause */
   -2,  /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */
  -10,  /* (171) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
   -1,  /* (172) multi_drop_clause ::= drop_table_clause */
   -3,  /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
   -2,  /* (174) drop_table_clause ::= exists_opt full_table_name */
    0,  /* (175) specific_cols_opt ::= */
   -3,  /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */
   -1,  /* (177) full_table_name ::= table_name */
   -3,  /* (178) full_table_name ::= db_name NK_DOT table_name */
   -1,  /* (179) column_def_list ::= column_def */
   -3,  /* (180) column_def_list ::= column_def_list NK_COMMA column_def */
   -2,  /* (181) column_def ::= column_name type_name */
   -1,  /* (182) type_name ::= BOOL */
   -1,  /* (183) type_name ::= TINYINT */
   -1,  /* (184) type_name ::= SMALLINT */
   -1,  /* (185) type_name ::= INT */
   -1,  /* (186) type_name ::= INTEGER */
   -1,  /* (187) type_name ::= BIGINT */
   -1,  /* (188) type_name ::= FLOAT */
   -1,  /* (189) type_name ::= DOUBLE */
   -4,  /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
   -1,  /* (191) type_name ::= TIMESTAMP */
   -4,  /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
   -2,  /* (193) type_name ::= TINYINT UNSIGNED */
   -2,  /* (194) type_name ::= SMALLINT UNSIGNED */
   -2,  /* (195) type_name ::= INT UNSIGNED */
   -2,  /* (196) type_name ::= BIGINT UNSIGNED */
   -1,  /* (197) type_name ::= JSON */
   -4,  /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
   -1,  /* (199) type_name ::= MEDIUMBLOB */
   -1,  /* (200) type_name ::= BLOB */
   -4,  /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
D
Dingle Zhang 已提交
4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440
   -4,  /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
   -1,  /* (203) type_name ::= DECIMAL */
   -4,  /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
   -6,  /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
    0,  /* (206) tags_def_opt ::= */
   -1,  /* (207) tags_def_opt ::= tags_def */
   -4,  /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */
    0,  /* (209) table_options ::= */
   -3,  /* (210) table_options ::= table_options COMMENT NK_STRING */
   -3,  /* (211) table_options ::= table_options MAX_DELAY duration_list */
   -3,  /* (212) table_options ::= table_options WATERMARK duration_list */
   -5,  /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
   -3,  /* (214) table_options ::= table_options TTL NK_INTEGER */
   -5,  /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
   -3,  /* (216) table_options ::= table_options DELETE_MARK duration_list */
   -1,  /* (217) alter_table_options ::= alter_table_option */
   -2,  /* (218) alter_table_options ::= alter_table_options alter_table_option */
   -2,  /* (219) alter_table_option ::= COMMENT NK_STRING */
   -2,  /* (220) alter_table_option ::= TTL NK_INTEGER */
   -1,  /* (221) duration_list ::= duration_literal */
   -3,  /* (222) duration_list ::= duration_list NK_COMMA duration_literal */
   -1,  /* (223) rollup_func_list ::= rollup_func_name */
   -3,  /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
   -1,  /* (225) rollup_func_name ::= function_name */
   -1,  /* (226) rollup_func_name ::= FIRST */
   -1,  /* (227) rollup_func_name ::= LAST */
   -1,  /* (228) col_name_list ::= col_name */
   -3,  /* (229) col_name_list ::= col_name_list NK_COMMA col_name */
   -1,  /* (230) col_name ::= column_name */
   -2,  /* (231) cmd ::= SHOW DNODES */
   -2,  /* (232) cmd ::= SHOW USERS */
   -3,  /* (233) cmd ::= SHOW USER PRIVILEGES */
   -2,  /* (234) cmd ::= SHOW DATABASES */
   -4,  /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
   -4,  /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
   -3,  /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */
   -2,  /* (238) cmd ::= SHOW MNODES */
   -2,  /* (239) cmd ::= SHOW QNODES */
   -2,  /* (240) cmd ::= SHOW FUNCTIONS */
   -5,  /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
   -2,  /* (242) cmd ::= SHOW STREAMS */
   -2,  /* (243) cmd ::= SHOW ACCOUNTS */
   -2,  /* (244) cmd ::= SHOW APPS */
   -2,  /* (245) cmd ::= SHOW CONNECTIONS */
   -2,  /* (246) cmd ::= SHOW LICENCES */
   -2,  /* (247) cmd ::= SHOW GRANTS */
   -4,  /* (248) cmd ::= SHOW CREATE DATABASE db_name */
   -4,  /* (249) cmd ::= SHOW CREATE TABLE full_table_name */
   -4,  /* (250) cmd ::= SHOW CREATE STABLE full_table_name */
   -2,  /* (251) cmd ::= SHOW QUERIES */
   -2,  /* (252) cmd ::= SHOW SCORES */
   -2,  /* (253) cmd ::= SHOW TOPICS */
   -2,  /* (254) cmd ::= SHOW VARIABLES */
   -3,  /* (255) cmd ::= SHOW CLUSTER VARIABLES */
   -3,  /* (256) cmd ::= SHOW LOCAL VARIABLES */
   -5,  /* (257) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
   -2,  /* (258) cmd ::= SHOW BNODES */
   -2,  /* (259) cmd ::= SHOW SNODES */
   -2,  /* (260) cmd ::= SHOW CLUSTER */
   -2,  /* (261) cmd ::= SHOW TRANSACTIONS */
   -4,  /* (262) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
   -2,  /* (263) cmd ::= SHOW CONSUMERS */
   -2,  /* (264) cmd ::= SHOW SUBSCRIPTIONS */
   -5,  /* (265) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
   -7,  /* (266) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
   -3,  /* (267) cmd ::= SHOW VNODES NK_INTEGER */
   -3,  /* (268) cmd ::= SHOW VNODES NK_STRING */
   -3,  /* (269) cmd ::= SHOW db_name_cond_opt ALIVE */
   -3,  /* (270) cmd ::= SHOW CLUSTER ALIVE */
    0,  /* (271) db_name_cond_opt ::= */
   -2,  /* (272) db_name_cond_opt ::= db_name NK_DOT */
    0,  /* (273) like_pattern_opt ::= */
   -2,  /* (274) like_pattern_opt ::= LIKE NK_STRING */
   -1,  /* (275) table_name_cond ::= table_name */
    0,  /* (276) from_db_opt ::= */
   -2,  /* (277) from_db_opt ::= FROM db_name */
    0,  /* (278) tag_list_opt ::= */
   -1,  /* (279) tag_list_opt ::= tag_item */
   -3,  /* (280) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
   -1,  /* (281) tag_item ::= TBNAME */
   -1,  /* (282) tag_item ::= QTAGS */
   -1,  /* (283) tag_item ::= column_name */
   -2,  /* (284) tag_item ::= column_name column_alias */
   -3,  /* (285) tag_item ::= column_name AS column_alias */
   -8,  /* (286) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
   -9,  /* (287) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */
   -4,  /* (288) cmd ::= DROP INDEX exists_opt full_index_name */
   -1,  /* (289) full_index_name ::= index_name */
   -3,  /* (290) full_index_name ::= db_name NK_DOT index_name */
  -10,  /* (291) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
  -12,  /* (292) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
   -1,  /* (293) func_list ::= func */
   -3,  /* (294) func_list ::= func_list NK_COMMA func */
   -4,  /* (295) func ::= sma_func_name NK_LP expression_list NK_RP */
   -1,  /* (296) sma_func_name ::= function_name */
   -1,  /* (297) sma_func_name ::= COUNT */
   -1,  /* (298) sma_func_name ::= FIRST */
   -1,  /* (299) sma_func_name ::= LAST */
   -1,  /* (300) sma_func_name ::= LAST_ROW */
    0,  /* (301) sma_stream_opt ::= */
   -3,  /* (302) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
   -3,  /* (303) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
   -3,  /* (304) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
   -6,  /* (305) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
   -7,  /* (306) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */
   -9,  /* (307) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */
wmmhello's avatar
wmmhello 已提交
4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730
   -9,  /* (308) cmd ::= CREATE TOPIC not_exists_opt topic_name ONLY META AS DATABASE db_name */
   -8,  /* (309) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name where_clause_opt */
  -10,  /* (310) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name where_clause_opt */
  -10,  /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name ONLY META AS STABLE full_table_name where_clause_opt */
   -4,  /* (312) cmd ::= DROP TOPIC exists_opt topic_name */
   -7,  /* (313) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
   -2,  /* (314) cmd ::= DESC full_table_name */
   -2,  /* (315) cmd ::= DESCRIBE full_table_name */
   -3,  /* (316) cmd ::= RESET QUERY CACHE */
   -4,  /* (317) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
   -4,  /* (318) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
    0,  /* (319) analyze_opt ::= */
   -1,  /* (320) analyze_opt ::= ANALYZE */
    0,  /* (321) explain_options ::= */
   -3,  /* (322) explain_options ::= explain_options VERBOSE NK_BOOL */
   -3,  /* (323) explain_options ::= explain_options RATIO NK_FLOAT */
  -12,  /* (324) 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,  /* (325) cmd ::= DROP FUNCTION exists_opt function_name */
    0,  /* (326) agg_func_opt ::= */
   -1,  /* (327) agg_func_opt ::= AGGREGATE */
    0,  /* (328) bufsize_opt ::= */
   -2,  /* (329) bufsize_opt ::= BUFSIZE NK_INTEGER */
    0,  /* (330) language_opt ::= */
   -2,  /* (331) language_opt ::= LANGUAGE NK_STRING */
    0,  /* (332) or_replace_opt ::= */
   -2,  /* (333) or_replace_opt ::= OR REPLACE */
  -12,  /* (334) 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,  /* (335) cmd ::= DROP STREAM exists_opt stream_name */
   -4,  /* (336) cmd ::= PAUSE STREAM exists_opt stream_name */
   -5,  /* (337) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
    0,  /* (338) col_list_opt ::= */
   -3,  /* (339) col_list_opt ::= NK_LP col_name_list NK_RP */
    0,  /* (340) tag_def_or_ref_opt ::= */
   -1,  /* (341) tag_def_or_ref_opt ::= tags_def */
   -4,  /* (342) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
    0,  /* (343) stream_options ::= */
   -3,  /* (344) stream_options ::= stream_options TRIGGER AT_ONCE */
   -3,  /* (345) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
   -4,  /* (346) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
   -3,  /* (347) stream_options ::= stream_options WATERMARK duration_literal */
   -4,  /* (348) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
   -3,  /* (349) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
   -3,  /* (350) stream_options ::= stream_options DELETE_MARK duration_literal */
   -4,  /* (351) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
    0,  /* (352) subtable_opt ::= */
   -4,  /* (353) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
    0,  /* (354) ignore_opt ::= */
   -2,  /* (355) ignore_opt ::= IGNORE UNTREATED */
   -3,  /* (356) cmd ::= KILL CONNECTION NK_INTEGER */
   -3,  /* (357) cmd ::= KILL QUERY NK_STRING */
   -3,  /* (358) cmd ::= KILL TRANSACTION NK_INTEGER */
   -2,  /* (359) cmd ::= BALANCE VGROUP */
   -3,  /* (360) cmd ::= BALANCE VGROUP LEADER */
   -4,  /* (361) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
   -4,  /* (362) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
   -3,  /* (363) cmd ::= SPLIT VGROUP NK_INTEGER */
   -2,  /* (364) dnode_list ::= DNODE NK_INTEGER */
   -3,  /* (365) dnode_list ::= dnode_list DNODE NK_INTEGER */
   -4,  /* (366) cmd ::= DELETE FROM full_table_name where_clause_opt */
   -1,  /* (367) cmd ::= query_or_subquery */
   -1,  /* (368) cmd ::= insert_query */
   -7,  /* (369) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
   -4,  /* (370) insert_query ::= INSERT INTO full_table_name query_or_subquery */
   -1,  /* (371) literal ::= NK_INTEGER */
   -1,  /* (372) literal ::= NK_FLOAT */
   -1,  /* (373) literal ::= NK_STRING */
   -1,  /* (374) literal ::= NK_BOOL */
   -2,  /* (375) literal ::= TIMESTAMP NK_STRING */
   -1,  /* (376) literal ::= duration_literal */
   -1,  /* (377) literal ::= NULL */
   -1,  /* (378) literal ::= NK_QUESTION */
   -1,  /* (379) duration_literal ::= NK_VARIABLE */
   -1,  /* (380) signed ::= NK_INTEGER */
   -2,  /* (381) signed ::= NK_PLUS NK_INTEGER */
   -2,  /* (382) signed ::= NK_MINUS NK_INTEGER */
   -1,  /* (383) signed ::= NK_FLOAT */
   -2,  /* (384) signed ::= NK_PLUS NK_FLOAT */
   -2,  /* (385) signed ::= NK_MINUS NK_FLOAT */
   -1,  /* (386) signed_literal ::= signed */
   -1,  /* (387) signed_literal ::= NK_STRING */
   -1,  /* (388) signed_literal ::= NK_BOOL */
   -2,  /* (389) signed_literal ::= TIMESTAMP NK_STRING */
   -1,  /* (390) signed_literal ::= duration_literal */
   -1,  /* (391) signed_literal ::= NULL */
   -1,  /* (392) signed_literal ::= literal_func */
   -1,  /* (393) signed_literal ::= NK_QUESTION */
   -1,  /* (394) literal_list ::= signed_literal */
   -3,  /* (395) literal_list ::= literal_list NK_COMMA signed_literal */
   -1,  /* (396) db_name ::= NK_ID */
   -1,  /* (397) table_name ::= NK_ID */
   -1,  /* (398) column_name ::= NK_ID */
   -1,  /* (399) function_name ::= NK_ID */
   -1,  /* (400) table_alias ::= NK_ID */
   -1,  /* (401) column_alias ::= NK_ID */
   -1,  /* (402) user_name ::= NK_ID */
   -1,  /* (403) topic_name ::= NK_ID */
   -1,  /* (404) stream_name ::= NK_ID */
   -1,  /* (405) cgroup_name ::= NK_ID */
   -1,  /* (406) index_name ::= NK_ID */
   -1,  /* (407) expr_or_subquery ::= expression */
   -1,  /* (408) expression ::= literal */
   -1,  /* (409) expression ::= pseudo_column */
   -1,  /* (410) expression ::= column_reference */
   -1,  /* (411) expression ::= function_expression */
   -1,  /* (412) expression ::= case_when_expression */
   -3,  /* (413) expression ::= NK_LP expression NK_RP */
   -2,  /* (414) expression ::= NK_PLUS expr_or_subquery */
   -2,  /* (415) expression ::= NK_MINUS expr_or_subquery */
   -3,  /* (416) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
   -3,  /* (417) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
   -3,  /* (418) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
   -3,  /* (419) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
   -3,  /* (420) expression ::= expr_or_subquery NK_REM expr_or_subquery */
   -3,  /* (421) expression ::= column_reference NK_ARROW NK_STRING */
   -3,  /* (422) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
   -3,  /* (423) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
   -1,  /* (424) expression_list ::= expr_or_subquery */
   -3,  /* (425) expression_list ::= expression_list NK_COMMA expr_or_subquery */
   -1,  /* (426) column_reference ::= column_name */
   -3,  /* (427) column_reference ::= table_name NK_DOT column_name */
   -1,  /* (428) pseudo_column ::= ROWTS */
   -1,  /* (429) pseudo_column ::= TBNAME */
   -3,  /* (430) pseudo_column ::= table_name NK_DOT TBNAME */
   -1,  /* (431) pseudo_column ::= QSTART */
   -1,  /* (432) pseudo_column ::= QEND */
   -1,  /* (433) pseudo_column ::= QDURATION */
   -1,  /* (434) pseudo_column ::= WSTART */
   -1,  /* (435) pseudo_column ::= WEND */
   -1,  /* (436) pseudo_column ::= WDURATION */
   -1,  /* (437) pseudo_column ::= IROWTS */
   -1,  /* (438) pseudo_column ::= ISFILLED */
   -1,  /* (439) pseudo_column ::= QTAGS */
   -4,  /* (440) function_expression ::= function_name NK_LP expression_list NK_RP */
   -4,  /* (441) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
   -6,  /* (442) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
   -1,  /* (443) function_expression ::= literal_func */
   -3,  /* (444) literal_func ::= noarg_func NK_LP NK_RP */
   -1,  /* (445) literal_func ::= NOW */
   -1,  /* (446) noarg_func ::= NOW */
   -1,  /* (447) noarg_func ::= TODAY */
   -1,  /* (448) noarg_func ::= TIMEZONE */
   -1,  /* (449) noarg_func ::= DATABASE */
   -1,  /* (450) noarg_func ::= CLIENT_VERSION */
   -1,  /* (451) noarg_func ::= SERVER_VERSION */
   -1,  /* (452) noarg_func ::= SERVER_STATUS */
   -1,  /* (453) noarg_func ::= CURRENT_USER */
   -1,  /* (454) noarg_func ::= USER */
   -1,  /* (455) star_func ::= COUNT */
   -1,  /* (456) star_func ::= FIRST */
   -1,  /* (457) star_func ::= LAST */
   -1,  /* (458) star_func ::= LAST_ROW */
   -1,  /* (459) star_func_para_list ::= NK_STAR */
   -1,  /* (460) star_func_para_list ::= other_para_list */
   -1,  /* (461) other_para_list ::= star_func_para */
   -3,  /* (462) other_para_list ::= other_para_list NK_COMMA star_func_para */
   -1,  /* (463) star_func_para ::= expr_or_subquery */
   -3,  /* (464) star_func_para ::= table_name NK_DOT NK_STAR */
   -4,  /* (465) case_when_expression ::= CASE when_then_list case_when_else_opt END */
   -5,  /* (466) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
   -1,  /* (467) when_then_list ::= when_then_expr */
   -2,  /* (468) when_then_list ::= when_then_list when_then_expr */
   -4,  /* (469) when_then_expr ::= WHEN common_expression THEN common_expression */
    0,  /* (470) case_when_else_opt ::= */
   -2,  /* (471) case_when_else_opt ::= ELSE common_expression */
   -3,  /* (472) predicate ::= expr_or_subquery compare_op expr_or_subquery */
   -5,  /* (473) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
   -6,  /* (474) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
   -3,  /* (475) predicate ::= expr_or_subquery IS NULL */
   -4,  /* (476) predicate ::= expr_or_subquery IS NOT NULL */
   -3,  /* (477) predicate ::= expr_or_subquery in_op in_predicate_value */
   -1,  /* (478) compare_op ::= NK_LT */
   -1,  /* (479) compare_op ::= NK_GT */
   -1,  /* (480) compare_op ::= NK_LE */
   -1,  /* (481) compare_op ::= NK_GE */
   -1,  /* (482) compare_op ::= NK_NE */
   -1,  /* (483) compare_op ::= NK_EQ */
   -1,  /* (484) compare_op ::= LIKE */
   -2,  /* (485) compare_op ::= NOT LIKE */
   -1,  /* (486) compare_op ::= MATCH */
   -1,  /* (487) compare_op ::= NMATCH */
   -1,  /* (488) compare_op ::= CONTAINS */
   -1,  /* (489) in_op ::= IN */
   -2,  /* (490) in_op ::= NOT IN */
   -3,  /* (491) in_predicate_value ::= NK_LP literal_list NK_RP */
   -1,  /* (492) boolean_value_expression ::= boolean_primary */
   -2,  /* (493) boolean_value_expression ::= NOT boolean_primary */
   -3,  /* (494) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
   -3,  /* (495) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
   -1,  /* (496) boolean_primary ::= predicate */
   -3,  /* (497) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
   -1,  /* (498) common_expression ::= expr_or_subquery */
   -1,  /* (499) common_expression ::= boolean_value_expression */
    0,  /* (500) from_clause_opt ::= */
   -2,  /* (501) from_clause_opt ::= FROM table_reference_list */
   -1,  /* (502) table_reference_list ::= table_reference */
   -3,  /* (503) table_reference_list ::= table_reference_list NK_COMMA table_reference */
   -1,  /* (504) table_reference ::= table_primary */
   -1,  /* (505) table_reference ::= joined_table */
   -2,  /* (506) table_primary ::= table_name alias_opt */
   -4,  /* (507) table_primary ::= db_name NK_DOT table_name alias_opt */
   -2,  /* (508) table_primary ::= subquery alias_opt */
   -1,  /* (509) table_primary ::= parenthesized_joined_table */
    0,  /* (510) alias_opt ::= */
   -1,  /* (511) alias_opt ::= table_alias */
   -2,  /* (512) alias_opt ::= AS table_alias */
   -3,  /* (513) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
   -3,  /* (514) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
   -6,  /* (515) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
    0,  /* (516) join_type ::= */
   -1,  /* (517) join_type ::= INNER */
  -12,  /* (518) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
    0,  /* (519) set_quantifier_opt ::= */
   -1,  /* (520) set_quantifier_opt ::= DISTINCT */
   -1,  /* (521) set_quantifier_opt ::= ALL */
   -1,  /* (522) select_list ::= select_item */
   -3,  /* (523) select_list ::= select_list NK_COMMA select_item */
   -1,  /* (524) select_item ::= NK_STAR */
   -1,  /* (525) select_item ::= common_expression */
   -2,  /* (526) select_item ::= common_expression column_alias */
   -3,  /* (527) select_item ::= common_expression AS column_alias */
   -3,  /* (528) select_item ::= table_name NK_DOT NK_STAR */
    0,  /* (529) where_clause_opt ::= */
   -2,  /* (530) where_clause_opt ::= WHERE search_condition */
    0,  /* (531) partition_by_clause_opt ::= */
   -3,  /* (532) partition_by_clause_opt ::= PARTITION BY partition_list */
   -1,  /* (533) partition_list ::= partition_item */
   -3,  /* (534) partition_list ::= partition_list NK_COMMA partition_item */
   -1,  /* (535) partition_item ::= expr_or_subquery */
   -2,  /* (536) partition_item ::= expr_or_subquery column_alias */
   -3,  /* (537) partition_item ::= expr_or_subquery AS column_alias */
    0,  /* (538) twindow_clause_opt ::= */
   -6,  /* (539) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
   -4,  /* (540) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
   -6,  /* (541) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
   -8,  /* (542) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
   -7,  /* (543) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
    0,  /* (544) sliding_opt ::= */
   -4,  /* (545) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
    0,  /* (546) fill_opt ::= */
   -4,  /* (547) fill_opt ::= FILL NK_LP fill_mode NK_RP */
   -6,  /* (548) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
   -6,  /* (549) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
   -1,  /* (550) fill_mode ::= NONE */
   -1,  /* (551) fill_mode ::= PREV */
   -1,  /* (552) fill_mode ::= NULL */
   -1,  /* (553) fill_mode ::= NULL_F */
   -1,  /* (554) fill_mode ::= LINEAR */
   -1,  /* (555) fill_mode ::= NEXT */
    0,  /* (556) group_by_clause_opt ::= */
   -3,  /* (557) group_by_clause_opt ::= GROUP BY group_by_list */
   -1,  /* (558) group_by_list ::= expr_or_subquery */
   -3,  /* (559) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
    0,  /* (560) having_clause_opt ::= */
   -2,  /* (561) having_clause_opt ::= HAVING search_condition */
    0,  /* (562) range_opt ::= */
   -6,  /* (563) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
   -4,  /* (564) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
    0,  /* (565) every_opt ::= */
   -4,  /* (566) every_opt ::= EVERY NK_LP duration_literal NK_RP */
   -4,  /* (567) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
   -1,  /* (568) query_simple ::= query_specification */
   -1,  /* (569) query_simple ::= union_query_expression */
   -4,  /* (570) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
   -3,  /* (571) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
   -1,  /* (572) query_simple_or_subquery ::= query_simple */
   -1,  /* (573) query_simple_or_subquery ::= subquery */
   -1,  /* (574) query_or_subquery ::= query_expression */
   -1,  /* (575) query_or_subquery ::= subquery */
    0,  /* (576) order_by_clause_opt ::= */
   -3,  /* (577) order_by_clause_opt ::= ORDER BY sort_specification_list */
    0,  /* (578) slimit_clause_opt ::= */
   -2,  /* (579) slimit_clause_opt ::= SLIMIT NK_INTEGER */
   -4,  /* (580) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
   -4,  /* (581) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
    0,  /* (582) limit_clause_opt ::= */
   -2,  /* (583) limit_clause_opt ::= LIMIT NK_INTEGER */
   -4,  /* (584) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
   -4,  /* (585) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
   -3,  /* (586) subquery ::= NK_LP query_expression NK_RP */
   -3,  /* (587) subquery ::= NK_LP subquery NK_RP */
   -1,  /* (588) search_condition ::= common_expression */
   -1,  /* (589) sort_specification_list ::= sort_specification */
   -3,  /* (590) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
   -3,  /* (591) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
    0,  /* (592) ordering_specification_opt ::= */
   -1,  /* (593) ordering_specification_opt ::= ASC */
   -1,  /* (594) ordering_specification_opt ::= DESC */
    0,  /* (595) null_ordering_opt ::= */
   -2,  /* (596) null_ordering_opt ::= NULLS FIRST */
   -2,  /* (597) null_ordering_opt ::= NULLS LAST */
4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748
};

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 */
X
Xiaoyu Wang 已提交
4749 4750
  ParseTOKENTYPE yyLookaheadToken  /* Value of the lookahead token */
  ParseCTX_PDECL                   /* %extra_context */
4751 4752 4753 4754 4755
){
  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 */
X
Xiaoyu Wang 已提交
4756
  ParseARG_FETCH
4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771
  (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;
4772
      case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
4773
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
wmmhello's avatar
wmmhello 已提交
4774
  yy_destructor(yypParser,339,&yymsp[0].minor);
4775
        break;
4776
      case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
4777
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
wmmhello's avatar
wmmhello 已提交
4778
  yy_destructor(yypParser,340,&yymsp[0].minor);
4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791
        break;
      case 2: /* account_options ::= */
{ }
        break;
      case 3: /* account_options ::= account_options PPS literal */
      case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4);
      case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5);
      case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6);
      case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7);
      case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8);
      case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9);
      case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10);
      case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11);
wmmhello's avatar
wmmhello 已提交
4792
{  yy_destructor(yypParser,339,&yymsp[-2].minor);
4793
{ }
wmmhello's avatar
wmmhello 已提交
4794
  yy_destructor(yypParser,341,&yymsp[0].minor);
4795
}
4796
        break;
4797
      case 12: /* alter_account_options ::= alter_account_option */
wmmhello's avatar
wmmhello 已提交
4798
{  yy_destructor(yypParser,342,&yymsp[0].minor);
4799 4800 4801
{ }
}
        break;
4802
      case 13: /* alter_account_options ::= alter_account_options alter_account_option */
wmmhello's avatar
wmmhello 已提交
4803
{  yy_destructor(yypParser,340,&yymsp[-1].minor);
4804
{ }
wmmhello's avatar
wmmhello 已提交
4805
  yy_destructor(yypParser,342,&yymsp[0].minor);
4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817
}
        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);
4818
{ }
wmmhello's avatar
wmmhello 已提交
4819
  yy_destructor(yypParser,341,&yymsp[0].minor);
4820
        break;
X
Xiaoyu Wang 已提交
4821
      case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */
wmmhello's avatar
wmmhello 已提交
4822
{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy533, &yymsp[-1].minor.yy0, yymsp[0].minor.yy719); }
4823
        break;
4824
      case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */
wmmhello's avatar
wmmhello 已提交
4825
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
4826
        break;
X
Xiaoyu Wang 已提交
4827
      case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
4828
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
4829
        break;
X
Xiaoyu Wang 已提交
4830
      case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
4831
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
4832
        break;
X
Xiaoyu Wang 已提交
4833
      case 28: /* cmd ::= DROP USER user_name */
wmmhello's avatar
wmmhello 已提交
4834
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy533); }
4835
        break;
X
Xiaoyu Wang 已提交
4836
      case 29: /* sysinfo_opt ::= */
wmmhello's avatar
wmmhello 已提交
4837
{ yymsp[1].minor.yy719 = 1; }
4838
        break;
X
Xiaoyu Wang 已提交
4839
      case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
4840
{ yymsp[-1].minor.yy719 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
4841
        break;
X
Xiaoyu Wang 已提交
4842
      case 31: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
wmmhello's avatar
wmmhello 已提交
4843
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy261, &yymsp[-3].minor.yy885, &yymsp[0].minor.yy533, yymsp[-2].minor.yy560); }
4844
        break;
X
Xiaoyu Wang 已提交
4845
      case 32: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
wmmhello's avatar
wmmhello 已提交
4846
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy261, &yymsp[-3].minor.yy885, &yymsp[0].minor.yy533, yymsp[-2].minor.yy560); }
4847
        break;
X
Xiaoyu Wang 已提交
4848
      case 33: /* privileges ::= ALL */
wmmhello's avatar
wmmhello 已提交
4849
{ yymsp[0].minor.yy261 = PRIVILEGE_TYPE_ALL; }
4850
        break;
X
Xiaoyu Wang 已提交
4851
      case 34: /* privileges ::= priv_type_list */
4852
      case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36);
wmmhello's avatar
wmmhello 已提交
4853 4854
{ yylhsminor.yy261 = yymsp[0].minor.yy261; }
  yymsp[0].minor.yy261 = yylhsminor.yy261;
4855
        break;
4856
      case 35: /* privileges ::= SUBSCRIBE */
wmmhello's avatar
wmmhello 已提交
4857
{ yymsp[0].minor.yy261 = PRIVILEGE_TYPE_SUBSCRIBE; }
4858
        break;
4859
      case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
wmmhello's avatar
wmmhello 已提交
4860 4861
{ yylhsminor.yy261 = yymsp[-2].minor.yy261 | yymsp[0].minor.yy261; }
  yymsp[-2].minor.yy261 = yylhsminor.yy261;
4862
        break;
4863
      case 38: /* priv_type ::= READ */
wmmhello's avatar
wmmhello 已提交
4864
{ yymsp[0].minor.yy261 = PRIVILEGE_TYPE_READ; }
4865
        break;
4866
      case 39: /* priv_type ::= WRITE */
wmmhello's avatar
wmmhello 已提交
4867
{ yymsp[0].minor.yy261 = PRIVILEGE_TYPE_WRITE; }
4868
        break;
4869
      case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
wmmhello's avatar
wmmhello 已提交
4870 4871
{ yylhsminor.yy885.first = yymsp[-2].minor.yy0; yylhsminor.yy885.second = yymsp[0].minor.yy0; }
  yymsp[-2].minor.yy885 = yylhsminor.yy885;
X
Xiaoyu Wang 已提交
4872
        break;
4873
      case 41: /* priv_level ::= db_name NK_DOT NK_STAR */
wmmhello's avatar
wmmhello 已提交
4874 4875
{ yylhsminor.yy885.first = yymsp[-2].minor.yy533; yylhsminor.yy885.second = yymsp[0].minor.yy0; }
  yymsp[-2].minor.yy885 = yylhsminor.yy885;
X
Xiaoyu Wang 已提交
4876 4877
        break;
      case 42: /* priv_level ::= db_name NK_DOT table_name */
wmmhello's avatar
wmmhello 已提交
4878 4879
{ yylhsminor.yy885.first = yymsp[-2].minor.yy533; yylhsminor.yy885.second = yymsp[0].minor.yy533; }
  yymsp[-2].minor.yy885 = yylhsminor.yy885;
X
Xiaoyu Wang 已提交
4880 4881
        break;
      case 43: /* priv_level ::= topic_name */
wmmhello's avatar
wmmhello 已提交
4882 4883
{ yylhsminor.yy885.first = yymsp[0].minor.yy533; yylhsminor.yy885.second = nil_token; }
  yymsp[0].minor.yy885 = yylhsminor.yy885;
X
Xiaoyu Wang 已提交
4884 4885
        break;
      case 44: /* with_opt ::= */
D
dapan1121 已提交
4886 4887
      case 144: /* start_opt ::= */ yytestcase(yyruleno==144);
      case 148: /* end_opt ::= */ yytestcase(yyruleno==148);
D
Dingle Zhang 已提交
4888
      case 273: /* like_pattern_opt ::= */ yytestcase(yyruleno==273);
wmmhello's avatar
wmmhello 已提交
4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901
      case 352: /* subtable_opt ::= */ yytestcase(yyruleno==352);
      case 470: /* case_when_else_opt ::= */ yytestcase(yyruleno==470);
      case 500: /* from_clause_opt ::= */ yytestcase(yyruleno==500);
      case 529: /* where_clause_opt ::= */ yytestcase(yyruleno==529);
      case 538: /* twindow_clause_opt ::= */ yytestcase(yyruleno==538);
      case 544: /* sliding_opt ::= */ yytestcase(yyruleno==544);
      case 546: /* fill_opt ::= */ yytestcase(yyruleno==546);
      case 560: /* having_clause_opt ::= */ yytestcase(yyruleno==560);
      case 562: /* range_opt ::= */ yytestcase(yyruleno==562);
      case 565: /* every_opt ::= */ yytestcase(yyruleno==565);
      case 578: /* slimit_clause_opt ::= */ yytestcase(yyruleno==578);
      case 582: /* limit_clause_opt ::= */ yytestcase(yyruleno==582);
{ yymsp[1].minor.yy560 = NULL; }
X
Xiaoyu Wang 已提交
4902 4903
        break;
      case 45: /* with_opt ::= WITH search_condition */
wmmhello's avatar
wmmhello 已提交
4904 4905 4906 4907
      case 501: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==501);
      case 530: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==530);
      case 561: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==561);
{ yymsp[-1].minor.yy560 = yymsp[0].minor.yy560; }
X
Xiaoyu Wang 已提交
4908 4909
        break;
      case 46: /* cmd ::= CREATE DNODE dnode_endpoint */
wmmhello's avatar
wmmhello 已提交
4910
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy533, NULL); }
X
Xiaoyu Wang 已提交
4911 4912
        break;
      case 47: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
4913
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0); }
X
Xiaoyu Wang 已提交
4914 4915
        break;
      case 48: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
wmmhello's avatar
wmmhello 已提交
4916
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy173, false); }
X
Xiaoyu Wang 已提交
4917 4918
        break;
      case 49: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
wmmhello's avatar
wmmhello 已提交
4919
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy173, false); }
X
Xiaoyu Wang 已提交
4920
        break;
D
dapan1121 已提交
4921
      case 50: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
wmmhello's avatar
wmmhello 已提交
4922
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy173); }
D
dapan1121 已提交
4923 4924
        break;
      case 51: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
wmmhello's avatar
wmmhello 已提交
4925
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy533, false, yymsp[0].minor.yy173); }
D
dapan1121 已提交
4926 4927
        break;
      case 52: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
4928 4929
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
        break;
D
dapan1121 已提交
4930
      case 53: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
4931 4932
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
D
dapan1121 已提交
4933
      case 54: /* cmd ::= ALTER ALL DNODES NK_STRING */
4934 4935
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
        break;
D
dapan1121 已提交
4936
      case 55: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
4937 4938
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
D
dapan1121 已提交
4939
      case 56: /* cmd ::= RESTORE DNODE NK_INTEGER */
D
dapan1121 已提交
4940
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
D
dapan1121 已提交
4941 4942 4943 4944
        break;
      case 57: /* dnode_endpoint ::= NK_STRING */
      case 58: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==58);
      case 59: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==59);
D
Dingle Zhang 已提交
4945 4946 4947 4948
      case 297: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==297);
      case 298: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==298);
      case 299: /* sma_func_name ::= LAST */ yytestcase(yyruleno==299);
      case 300: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==300);
wmmhello's avatar
wmmhello 已提交
4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974
      case 396: /* db_name ::= NK_ID */ yytestcase(yyruleno==396);
      case 397: /* table_name ::= NK_ID */ yytestcase(yyruleno==397);
      case 398: /* column_name ::= NK_ID */ yytestcase(yyruleno==398);
      case 399: /* function_name ::= NK_ID */ yytestcase(yyruleno==399);
      case 400: /* table_alias ::= NK_ID */ yytestcase(yyruleno==400);
      case 401: /* column_alias ::= NK_ID */ yytestcase(yyruleno==401);
      case 402: /* user_name ::= NK_ID */ yytestcase(yyruleno==402);
      case 403: /* topic_name ::= NK_ID */ yytestcase(yyruleno==403);
      case 404: /* stream_name ::= NK_ID */ yytestcase(yyruleno==404);
      case 405: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==405);
      case 406: /* index_name ::= NK_ID */ yytestcase(yyruleno==406);
      case 446: /* noarg_func ::= NOW */ yytestcase(yyruleno==446);
      case 447: /* noarg_func ::= TODAY */ yytestcase(yyruleno==447);
      case 448: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==448);
      case 449: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==449);
      case 450: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==450);
      case 451: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==451);
      case 452: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==452);
      case 453: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==453);
      case 454: /* noarg_func ::= USER */ yytestcase(yyruleno==454);
      case 455: /* star_func ::= COUNT */ yytestcase(yyruleno==455);
      case 456: /* star_func ::= FIRST */ yytestcase(yyruleno==456);
      case 457: /* star_func ::= LAST */ yytestcase(yyruleno==457);
      case 458: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==458);
{ yylhsminor.yy533 = yymsp[0].minor.yy0; }
  yymsp[0].minor.yy533 = yylhsminor.yy533;
D
dapan1121 已提交
4975 4976 4977 4978
        break;
      case 60: /* force_opt ::= */
      case 84: /* not_exists_opt ::= */ yytestcase(yyruleno==84);
      case 86: /* exists_opt ::= */ yytestcase(yyruleno==86);
wmmhello's avatar
wmmhello 已提交
4979 4980 4981 4982 4983 4984
      case 319: /* analyze_opt ::= */ yytestcase(yyruleno==319);
      case 326: /* agg_func_opt ::= */ yytestcase(yyruleno==326);
      case 332: /* or_replace_opt ::= */ yytestcase(yyruleno==332);
      case 354: /* ignore_opt ::= */ yytestcase(yyruleno==354);
      case 519: /* set_quantifier_opt ::= */ yytestcase(yyruleno==519);
{ yymsp[1].minor.yy173 = false; }
D
dapan1121 已提交
4985 4986 4987
        break;
      case 61: /* force_opt ::= FORCE */
      case 62: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==62);
wmmhello's avatar
wmmhello 已提交
4988 4989 4990 4991
      case 320: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==320);
      case 327: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==327);
      case 520: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==520);
{ yymsp[0].minor.yy173 = true; }
D
dapan1121 已提交
4992 4993
        break;
      case 63: /* cmd ::= ALTER LOCAL NK_STRING */
4994 4995
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
        break;
D
dapan1121 已提交
4996
      case 64: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
4997 4998
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
D
dapan1121 已提交
4999
      case 65: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
5000
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
X
Xiaoyu Wang 已提交
5001
        break;
D
dapan1121 已提交
5002
      case 66: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
5003
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
5004
        break;
D
dapan1121 已提交
5005
      case 67: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
D
dapan1121 已提交
5006 5007
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
        break;
D
dapan1121 已提交
5008
      case 68: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
5009
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
X
Xiaoyu Wang 已提交
5010
        break;
D
dapan1121 已提交
5011
      case 69: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
5012
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
X
Xiaoyu Wang 已提交
5013
        break;
D
dapan1121 已提交
5014
      case 70: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
5015
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
5016
        break;
D
dapan1121 已提交
5017
      case 71: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
5018
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
5019
        break;
D
dapan1121 已提交
5020
      case 72: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
5021
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
5022
        break;
D
dapan1121 已提交
5023
      case 73: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
5024
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
5025
        break;
D
dapan1121 已提交
5026
      case 74: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
D
dapan1121 已提交
5027 5028
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
        break;
D
dapan1121 已提交
5029
      case 75: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
D
dapan1121 已提交
5030
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
D
dapan1121 已提交
5031 5032
        break;
      case 76: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
wmmhello's avatar
wmmhello 已提交
5033
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy173, &yymsp[-1].minor.yy533, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5034 5035
        break;
      case 77: /* cmd ::= DROP DATABASE exists_opt db_name */
wmmhello's avatar
wmmhello 已提交
5036
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5037 5038
        break;
      case 78: /* cmd ::= USE db_name */
wmmhello's avatar
wmmhello 已提交
5039
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5040 5041
        break;
      case 79: /* cmd ::= ALTER DATABASE db_name alter_db_options */
wmmhello's avatar
wmmhello 已提交
5042
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5043 5044
        break;
      case 80: /* cmd ::= FLUSH DATABASE db_name */
wmmhello's avatar
wmmhello 已提交
5045
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5046 5047
        break;
      case 81: /* cmd ::= TRIM DATABASE db_name speed_opt */
wmmhello's avatar
wmmhello 已提交
5048
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy964); }
D
dapan1121 已提交
5049 5050
        break;
      case 82: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
wmmhello's avatar
wmmhello 已提交
5051
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy533, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5052 5053
        break;
      case 83: /* not_exists_opt ::= IF NOT EXISTS */
wmmhello's avatar
wmmhello 已提交
5054
{ yymsp[-2].minor.yy173 = true; }
D
dapan1121 已提交
5055 5056
        break;
      case 85: /* exists_opt ::= IF EXISTS */
wmmhello's avatar
wmmhello 已提交
5057 5058 5059
      case 333: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==333);
      case 355: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==355);
{ yymsp[-1].minor.yy173 = true; }
D
dapan1121 已提交
5060 5061
        break;
      case 87: /* db_options ::= */
wmmhello's avatar
wmmhello 已提交
5062
{ yymsp[1].minor.yy560 = createDefaultDatabaseOptions(pCxt); }
D
dapan1121 已提交
5063 5064
        break;
      case 88: /* db_options ::= db_options BUFFER NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5065 5066
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5067 5068
        break;
      case 89: /* db_options ::= db_options CACHEMODEL NK_STRING */
wmmhello's avatar
wmmhello 已提交
5069 5070
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5071 5072
        break;
      case 90: /* db_options ::= db_options CACHESIZE NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5073 5074
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5075 5076
        break;
      case 91: /* db_options ::= db_options COMP NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5077 5078
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5079 5080 5081
        break;
      case 92: /* db_options ::= db_options DURATION NK_INTEGER */
      case 93: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==93);
wmmhello's avatar
wmmhello 已提交
5082 5083
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5084 5085
        break;
      case 94: /* db_options ::= db_options MAXROWS NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5086 5087
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5088 5089
        break;
      case 95: /* db_options ::= db_options MINROWS NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5090 5091
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5092 5093 5094
        break;
      case 96: /* db_options ::= db_options KEEP integer_list */
      case 97: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==97);
wmmhello's avatar
wmmhello 已提交
5095 5096
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_KEEP, yymsp[0].minor.yy496); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5097 5098
        break;
      case 98: /* db_options ::= db_options PAGES NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5099 5100
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5101 5102
        break;
      case 99: /* db_options ::= db_options PAGESIZE NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5103 5104
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5105 5106
        break;
      case 100: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5107 5108
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5109 5110
        break;
      case 101: /* db_options ::= db_options PRECISION NK_STRING */
wmmhello's avatar
wmmhello 已提交
5111 5112
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5113 5114
        break;
      case 102: /* db_options ::= db_options REPLICA NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5115 5116
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5117 5118
        break;
      case 103: /* db_options ::= db_options VGROUPS NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5119 5120
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5121 5122
        break;
      case 104: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5123 5124
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5125 5126
        break;
      case 105: /* db_options ::= db_options RETENTIONS retention_list */
wmmhello's avatar
wmmhello 已提交
5127 5128
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_RETENTIONS, yymsp[0].minor.yy496); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5129 5130
        break;
      case 106: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5131 5132
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5133 5134
        break;
      case 107: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5135 5136
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5137 5138
        break;
      case 108: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5139 5140
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5141 5142
        break;
      case 109: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5143 5144
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5145 5146
        break;
      case 110: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
X
Xiaoyu Wang 已提交
5147 5148 5149
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
wmmhello's avatar
wmmhello 已提交
5150
                                                                                    yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-3].minor.yy560, DB_OPTION_WAL_RETENTION_PERIOD, &t);
X
Xiaoyu Wang 已提交
5151
                                                                                  }
wmmhello's avatar
wmmhello 已提交
5152
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
X
Xiaoyu Wang 已提交
5153
        break;
D
dapan1121 已提交
5154
      case 111: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5155 5156
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
X
Xiaoyu Wang 已提交
5157
        break;
D
dapan1121 已提交
5158
      case 112: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
X
Xiaoyu Wang 已提交
5159 5160 5161
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
wmmhello's avatar
wmmhello 已提交
5162
                                                                                    yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-3].minor.yy560, DB_OPTION_WAL_RETENTION_SIZE, &t);
X
Xiaoyu Wang 已提交
5163
                                                                                  }
wmmhello's avatar
wmmhello 已提交
5164
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5165 5166
        break;
      case 113: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5167 5168
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5169 5170
        break;
      case 114: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5171 5172
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5173 5174
        break;
      case 115: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5175 5176
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5177 5178
        break;
      case 116: /* db_options ::= db_options TABLE_PREFIX signed */
wmmhello's avatar
wmmhello 已提交
5179 5180
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy560); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5181 5182
        break;
      case 117: /* db_options ::= db_options TABLE_SUFFIX signed */
wmmhello's avatar
wmmhello 已提交
5183 5184
{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy560); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5185 5186
        break;
      case 118: /* alter_db_options ::= alter_db_option */
wmmhello's avatar
wmmhello 已提交
5187 5188
{ yylhsminor.yy560 = createAlterDatabaseOptions(pCxt); yylhsminor.yy560 = setAlterDatabaseOption(pCxt, yylhsminor.yy560, &yymsp[0].minor.yy713); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5189 5190
        break;
      case 119: /* alter_db_options ::= alter_db_options alter_db_option */
wmmhello's avatar
wmmhello 已提交
5191 5192
{ yylhsminor.yy560 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy560, &yymsp[0].minor.yy713); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5193 5194
        break;
      case 120: /* alter_db_option ::= BUFFER NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5195
{ yymsp[-1].minor.yy713.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5196 5197
        break;
      case 121: /* alter_db_option ::= CACHEMODEL NK_STRING */
wmmhello's avatar
wmmhello 已提交
5198
{ yymsp[-1].minor.yy713.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5199 5200
        break;
      case 122: /* alter_db_option ::= CACHESIZE NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5201
{ yymsp[-1].minor.yy713.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5202 5203
        break;
      case 123: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5204
{ yymsp[-1].minor.yy713.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5205 5206 5207
        break;
      case 124: /* alter_db_option ::= KEEP integer_list */
      case 125: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==125);
wmmhello's avatar
wmmhello 已提交
5208
{ yymsp[-1].minor.yy713.type = DB_OPTION_KEEP; yymsp[-1].minor.yy713.pList = yymsp[0].minor.yy496; }
D
dapan1121 已提交
5209 5210
        break;
      case 126: /* alter_db_option ::= PAGES NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5211
{ yymsp[-1].minor.yy713.type = DB_OPTION_PAGES; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5212 5213
        break;
      case 127: /* alter_db_option ::= REPLICA NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5214
{ yymsp[-1].minor.yy713.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5215 5216
        break;
      case 128: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5217
{ yymsp[-1].minor.yy713.type = DB_OPTION_WAL; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5218 5219
        break;
      case 129: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5220
{ yymsp[-1].minor.yy713.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5221 5222
        break;
      case 130: /* alter_db_option ::= MINROWS NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5223
{ yymsp[-1].minor.yy713.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5224 5225
        break;
      case 131: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5226
{ yymsp[-1].minor.yy713.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5227 5228
        break;
      case 132: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
5229 5230 5231
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
wmmhello's avatar
wmmhello 已提交
5232
                                                                                    yymsp[-2].minor.yy713.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy713.val = t;
5233 5234
                                                                                  }
        break;
D
dapan1121 已提交
5235
      case 133: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5236
{ yymsp[-1].minor.yy713.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
5237
        break;
D
dapan1121 已提交
5238
      case 134: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
5239 5240 5241
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
wmmhello's avatar
wmmhello 已提交
5242
                                                                                    yymsp[-2].minor.yy713.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy713.val = t;
5243
                                                                                  }
D
dapan1121 已提交
5244 5245
        break;
      case 135: /* integer_list ::= NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5246 5247
{ yylhsminor.yy496 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5248 5249
        break;
      case 136: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5250 5251 5252
      case 365: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==365);
{ yylhsminor.yy496 = addNodeToList(pCxt, yymsp[-2].minor.yy496, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
  yymsp[-2].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5253 5254
        break;
      case 137: /* variable_list ::= NK_VARIABLE */
wmmhello's avatar
wmmhello 已提交
5255 5256
{ yylhsminor.yy496 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5257 5258
        break;
      case 138: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
wmmhello's avatar
wmmhello 已提交
5259 5260
{ yylhsminor.yy496 = addNodeToList(pCxt, yymsp[-2].minor.yy496, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[-2].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5261 5262 5263 5264 5265
        break;
      case 139: /* retention_list ::= retention */
      case 169: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==169);
      case 172: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==172);
      case 179: /* column_def_list ::= column_def */ yytestcase(yyruleno==179);
D
Dingle Zhang 已提交
5266 5267 5268 5269
      case 223: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==223);
      case 228: /* col_name_list ::= col_name */ yytestcase(yyruleno==228);
      case 279: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==279);
      case 293: /* func_list ::= func */ yytestcase(yyruleno==293);
wmmhello's avatar
wmmhello 已提交
5270 5271 5272 5273 5274 5275 5276 5277
      case 394: /* literal_list ::= signed_literal */ yytestcase(yyruleno==394);
      case 461: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==461);
      case 467: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==467);
      case 522: /* select_list ::= select_item */ yytestcase(yyruleno==522);
      case 533: /* partition_list ::= partition_item */ yytestcase(yyruleno==533);
      case 589: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==589);
{ yylhsminor.yy496 = createNodeList(pCxt, yymsp[0].minor.yy560); }
  yymsp[0].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5278 5279 5280 5281
        break;
      case 140: /* retention_list ::= retention_list NK_COMMA retention */
      case 173: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==173);
      case 180: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==180);
D
Dingle Zhang 已提交
5282 5283 5284 5285
      case 224: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==224);
      case 229: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==229);
      case 280: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==280);
      case 294: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==294);
wmmhello's avatar
wmmhello 已提交
5286 5287 5288 5289 5290 5291 5292
      case 395: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==395);
      case 462: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==462);
      case 523: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==523);
      case 534: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==534);
      case 590: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==590);
{ yylhsminor.yy496 = addNodeToList(pCxt, yymsp[-2].minor.yy496, yymsp[0].minor.yy560); }
  yymsp[-2].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5293 5294
        break;
      case 141: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
wmmhello's avatar
wmmhello 已提交
5295 5296
{ yylhsminor.yy560 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5297 5298
        break;
      case 142: /* speed_opt ::= */
wmmhello's avatar
wmmhello 已提交
5299 5300
      case 328: /* bufsize_opt ::= */ yytestcase(yyruleno==328);
{ yymsp[1].minor.yy964 = 0; }
D
dapan1121 已提交
5301 5302
        break;
      case 143: /* speed_opt ::= MAX_SPEED NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5303 5304
      case 329: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==329);
{ yymsp[-1].minor.yy964 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
D
dapan1121 已提交
5305 5306 5307
        break;
      case 145: /* start_opt ::= START WITH NK_INTEGER */
      case 149: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==149);
wmmhello's avatar
wmmhello 已提交
5308
{ yymsp[-2].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
D
dapan1121 已提交
5309 5310 5311
        break;
      case 146: /* start_opt ::= START WITH NK_STRING */
      case 150: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==150);
wmmhello's avatar
wmmhello 已提交
5312
{ yymsp[-2].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
D
dapan1121 已提交
5313 5314 5315
        break;
      case 147: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
      case 151: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==151);
wmmhello's avatar
wmmhello 已提交
5316
{ yymsp[-3].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
D
dapan1121 已提交
5317 5318 5319
        break;
      case 152: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
      case 154: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==154);
wmmhello's avatar
wmmhello 已提交
5320
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy173, yymsp[-5].minor.yy560, yymsp[-3].minor.yy496, yymsp[-1].minor.yy496, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5321 5322
        break;
      case 153: /* cmd ::= CREATE TABLE multi_create_clause */
wmmhello's avatar
wmmhello 已提交
5323
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy496); }
D
dapan1121 已提交
5324 5325
        break;
      case 155: /* cmd ::= DROP TABLE multi_drop_clause */
wmmhello's avatar
wmmhello 已提交
5326
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy496); }
D
dapan1121 已提交
5327 5328
        break;
      case 156: /* cmd ::= DROP STABLE exists_opt full_table_name */
wmmhello's avatar
wmmhello 已提交
5329
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5330 5331
        break;
      case 157: /* cmd ::= ALTER TABLE alter_table_clause */
wmmhello's avatar
wmmhello 已提交
5332 5333 5334
      case 367: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==367);
      case 368: /* cmd ::= insert_query */ yytestcase(yyruleno==368);
{ pCxt->pRootNode = yymsp[0].minor.yy560; }
D
dapan1121 已提交
5335 5336
        break;
      case 158: /* cmd ::= ALTER STABLE alter_table_clause */
wmmhello's avatar
wmmhello 已提交
5337
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy560); }
D
dapan1121 已提交
5338 5339
        break;
      case 159: /* alter_table_clause ::= full_table_name alter_table_options */
wmmhello's avatar
wmmhello 已提交
5340 5341
{ yylhsminor.yy560 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5342 5343
        break;
      case 160: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
wmmhello's avatar
wmmhello 已提交
5344 5345
{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy533, yymsp[0].minor.yy952); }
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5346 5347
        break;
      case 161: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
wmmhello's avatar
wmmhello 已提交
5348 5349
{ yylhsminor.yy560 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy560, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy533); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5350 5351
        break;
      case 162: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
wmmhello's avatar
wmmhello 已提交
5352 5353
{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy533, yymsp[0].minor.yy952); }
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5354 5355
        break;
      case 163: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
wmmhello's avatar
wmmhello 已提交
5356 5357
{ yylhsminor.yy560 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); }
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5358 5359
        break;
      case 164: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
wmmhello's avatar
wmmhello 已提交
5360 5361
{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy533, yymsp[0].minor.yy952); }
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5362 5363
        break;
      case 165: /* alter_table_clause ::= full_table_name DROP TAG column_name */
wmmhello's avatar
wmmhello 已提交
5364 5365
{ yylhsminor.yy560 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy560, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy533); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5366 5367
        break;
      case 166: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
wmmhello's avatar
wmmhello 已提交
5368 5369
{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy533, yymsp[0].minor.yy952); }
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5370 5371
        break;
      case 167: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
wmmhello's avatar
wmmhello 已提交
5372 5373
{ yylhsminor.yy560 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); }
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5374 5375
        break;
      case 168: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
wmmhello's avatar
wmmhello 已提交
5376 5377
{ yylhsminor.yy560 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy560, &yymsp[-2].minor.yy533, yymsp[0].minor.yy560); }
  yymsp[-5].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5378 5379
        break;
      case 170: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
wmmhello's avatar
wmmhello 已提交
5380 5381 5382
      case 468: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==468);
{ yylhsminor.yy496 = addNodeToList(pCxt, yymsp[-1].minor.yy496, yymsp[0].minor.yy560); }
  yymsp[-1].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5383 5384
        break;
      case 171: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
wmmhello's avatar
wmmhello 已提交
5385 5386
{ yylhsminor.yy560 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy173, yymsp[-8].minor.yy560, yymsp[-6].minor.yy560, yymsp[-5].minor.yy496, yymsp[-2].minor.yy496, yymsp[0].minor.yy560); }
  yymsp[-9].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5387 5388
        break;
      case 174: /* drop_table_clause ::= exists_opt full_table_name */
wmmhello's avatar
wmmhello 已提交
5389 5390
{ yylhsminor.yy560 = createDropTableClause(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5391 5392
        break;
      case 175: /* specific_cols_opt ::= */
D
Dingle Zhang 已提交
5393 5394
      case 206: /* tags_def_opt ::= */ yytestcase(yyruleno==206);
      case 278: /* tag_list_opt ::= */ yytestcase(yyruleno==278);
wmmhello's avatar
wmmhello 已提交
5395 5396 5397 5398 5399 5400
      case 338: /* col_list_opt ::= */ yytestcase(yyruleno==338);
      case 340: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==340);
      case 531: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==531);
      case 556: /* group_by_clause_opt ::= */ yytestcase(yyruleno==556);
      case 576: /* order_by_clause_opt ::= */ yytestcase(yyruleno==576);
{ yymsp[1].minor.yy496 = NULL; }
D
dapan1121 已提交
5401 5402
        break;
      case 176: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
wmmhello's avatar
wmmhello 已提交
5403 5404
      case 339: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==339);
{ yymsp[-2].minor.yy496 = yymsp[-1].minor.yy496; }
D
dapan1121 已提交
5405 5406
        break;
      case 177: /* full_table_name ::= table_name */
wmmhello's avatar
wmmhello 已提交
5407 5408
{ yylhsminor.yy560 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy533, NULL); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5409 5410
        break;
      case 178: /* full_table_name ::= db_name NK_DOT table_name */
wmmhello's avatar
wmmhello 已提交
5411 5412
{ yylhsminor.yy560 = createRealTableNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533, NULL); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5413 5414
        break;
      case 181: /* column_def ::= column_name type_name */
wmmhello's avatar
wmmhello 已提交
5415 5416
{ yylhsminor.yy560 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy952, NULL); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5417 5418
        break;
      case 182: /* type_name ::= BOOL */
wmmhello's avatar
wmmhello 已提交
5419
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_BOOL); }
D
dapan1121 已提交
5420 5421
        break;
      case 183: /* type_name ::= TINYINT */
wmmhello's avatar
wmmhello 已提交
5422
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_TINYINT); }
D
dapan1121 已提交
5423 5424
        break;
      case 184: /* type_name ::= SMALLINT */
wmmhello's avatar
wmmhello 已提交
5425
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
D
dapan1121 已提交
5426 5427 5428
        break;
      case 185: /* type_name ::= INT */
      case 186: /* type_name ::= INTEGER */ yytestcase(yyruleno==186);
wmmhello's avatar
wmmhello 已提交
5429
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_INT); }
D
dapan1121 已提交
5430 5431
        break;
      case 187: /* type_name ::= BIGINT */
wmmhello's avatar
wmmhello 已提交
5432
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_BIGINT); }
D
dapan1121 已提交
5433 5434
        break;
      case 188: /* type_name ::= FLOAT */
wmmhello's avatar
wmmhello 已提交
5435
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_FLOAT); }
D
dapan1121 已提交
5436 5437
        break;
      case 189: /* type_name ::= DOUBLE */
wmmhello's avatar
wmmhello 已提交
5438
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
D
dapan1121 已提交
5439 5440
        break;
      case 190: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
wmmhello's avatar
wmmhello 已提交
5441
{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
D
dapan1121 已提交
5442 5443
        break;
      case 191: /* type_name ::= TIMESTAMP */
wmmhello's avatar
wmmhello 已提交
5444
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
D
dapan1121 已提交
5445 5446
        break;
      case 192: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
wmmhello's avatar
wmmhello 已提交
5447
{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
D
dapan1121 已提交
5448 5449
        break;
      case 193: /* type_name ::= TINYINT UNSIGNED */
wmmhello's avatar
wmmhello 已提交
5450
{ yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
D
dapan1121 已提交
5451 5452
        break;
      case 194: /* type_name ::= SMALLINT UNSIGNED */
wmmhello's avatar
wmmhello 已提交
5453
{ yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
D
dapan1121 已提交
5454 5455
        break;
      case 195: /* type_name ::= INT UNSIGNED */
wmmhello's avatar
wmmhello 已提交
5456
{ yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_UINT); }
D
dapan1121 已提交
5457 5458
        break;
      case 196: /* type_name ::= BIGINT UNSIGNED */
wmmhello's avatar
wmmhello 已提交
5459
{ yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
D
dapan1121 已提交
5460 5461
        break;
      case 197: /* type_name ::= JSON */
wmmhello's avatar
wmmhello 已提交
5462
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_JSON); }
D
dapan1121 已提交
5463 5464
        break;
      case 198: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
wmmhello's avatar
wmmhello 已提交
5465
{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
D
dapan1121 已提交
5466 5467
        break;
      case 199: /* type_name ::= MEDIUMBLOB */
wmmhello's avatar
wmmhello 已提交
5468
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
D
dapan1121 已提交
5469 5470
        break;
      case 200: /* type_name ::= BLOB */
wmmhello's avatar
wmmhello 已提交
5471
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_BLOB); }
D
dapan1121 已提交
5472 5473
        break;
      case 201: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
wmmhello's avatar
wmmhello 已提交
5474
{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
D
Dingle Zhang 已提交
5475 5476
        break;
      case 202: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
wmmhello's avatar
wmmhello 已提交
5477
{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
D
dapan1121 已提交
5478
        break;
D
Dingle Zhang 已提交
5479
      case 203: /* type_name ::= DECIMAL */
wmmhello's avatar
wmmhello 已提交
5480
{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
D
dapan1121 已提交
5481
        break;
D
Dingle Zhang 已提交
5482
      case 204: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
wmmhello's avatar
wmmhello 已提交
5483
{ yymsp[-3].minor.yy952 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
D
dapan1121 已提交
5484
        break;
D
Dingle Zhang 已提交
5485
      case 205: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
wmmhello's avatar
wmmhello 已提交
5486
{ yymsp[-5].minor.yy952 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
D
dapan1121 已提交
5487
        break;
D
Dingle Zhang 已提交
5488
      case 207: /* tags_def_opt ::= tags_def */
wmmhello's avatar
wmmhello 已提交
5489 5490 5491 5492
      case 341: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==341);
      case 460: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==460);
{ yylhsminor.yy496 = yymsp[0].minor.yy496; }
  yymsp[0].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5493
        break;
D
Dingle Zhang 已提交
5494
      case 208: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
wmmhello's avatar
wmmhello 已提交
5495 5496
      case 342: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==342);
{ yymsp[-3].minor.yy496 = yymsp[-1].minor.yy496; }
D
dapan1121 已提交
5497
        break;
D
Dingle Zhang 已提交
5498
      case 209: /* table_options ::= */
wmmhello's avatar
wmmhello 已提交
5499
{ yymsp[1].minor.yy560 = createDefaultTableOptions(pCxt); }
D
dapan1121 已提交
5500
        break;
D
Dingle Zhang 已提交
5501
      case 210: /* table_options ::= table_options COMMENT NK_STRING */
wmmhello's avatar
wmmhello 已提交
5502 5503
{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5504
        break;
D
Dingle Zhang 已提交
5505
      case 211: /* table_options ::= table_options MAX_DELAY duration_list */
wmmhello's avatar
wmmhello 已提交
5506 5507
{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy496); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5508
        break;
D
Dingle Zhang 已提交
5509
      case 212: /* table_options ::= table_options WATERMARK duration_list */
wmmhello's avatar
wmmhello 已提交
5510 5511
{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy496); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5512
        break;
D
Dingle Zhang 已提交
5513
      case 213: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
wmmhello's avatar
wmmhello 已提交
5514 5515
{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-4].minor.yy560, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy496); }
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5516
        break;
D
Dingle Zhang 已提交
5517
      case 214: /* table_options ::= table_options TTL NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5518 5519
{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5520
        break;
D
Dingle Zhang 已提交
5521
      case 215: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
wmmhello's avatar
wmmhello 已提交
5522 5523
{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-4].minor.yy560, TABLE_OPTION_SMA, yymsp[-1].minor.yy496); }
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5524
        break;
D
Dingle Zhang 已提交
5525
      case 216: /* table_options ::= table_options DELETE_MARK duration_list */
wmmhello's avatar
wmmhello 已提交
5526 5527
{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy496); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5528
        break;
D
Dingle Zhang 已提交
5529
      case 217: /* alter_table_options ::= alter_table_option */
wmmhello's avatar
wmmhello 已提交
5530 5531
{ yylhsminor.yy560 = createAlterTableOptions(pCxt); yylhsminor.yy560 = setTableOption(pCxt, yylhsminor.yy560, yymsp[0].minor.yy713.type, &yymsp[0].minor.yy713.val); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5532
        break;
D
Dingle Zhang 已提交
5533
      case 218: /* alter_table_options ::= alter_table_options alter_table_option */
wmmhello's avatar
wmmhello 已提交
5534 5535
{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy713.type, &yymsp[0].minor.yy713.val); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5536
        break;
D
Dingle Zhang 已提交
5537
      case 219: /* alter_table_option ::= COMMENT NK_STRING */
wmmhello's avatar
wmmhello 已提交
5538
{ yymsp[-1].minor.yy713.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5539
        break;
D
Dingle Zhang 已提交
5540
      case 220: /* alter_table_option ::= TTL NK_INTEGER */
wmmhello's avatar
wmmhello 已提交
5541
{ yymsp[-1].minor.yy713.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy713.val = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5542
        break;
D
Dingle Zhang 已提交
5543
      case 221: /* duration_list ::= duration_literal */
wmmhello's avatar
wmmhello 已提交
5544 5545 5546
      case 424: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==424);
{ yylhsminor.yy496 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); }
  yymsp[0].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5547
        break;
D
Dingle Zhang 已提交
5548
      case 222: /* duration_list ::= duration_list NK_COMMA duration_literal */
wmmhello's avatar
wmmhello 已提交
5549 5550 5551
      case 425: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==425);
{ yylhsminor.yy496 = addNodeToList(pCxt, yymsp[-2].minor.yy496, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); }
  yymsp[-2].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
5552
        break;
D
Dingle Zhang 已提交
5553
      case 225: /* rollup_func_name ::= function_name */
wmmhello's avatar
wmmhello 已提交
5554 5555
{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[0].minor.yy533, NULL); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5556
        break;
D
Dingle Zhang 已提交
5557 5558 5559
      case 226: /* rollup_func_name ::= FIRST */
      case 227: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==227);
      case 282: /* tag_item ::= QTAGS */ yytestcase(yyruleno==282);
wmmhello's avatar
wmmhello 已提交
5560 5561
{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5562
        break;
D
Dingle Zhang 已提交
5563 5564
      case 230: /* col_name ::= column_name */
      case 283: /* tag_item ::= column_name */ yytestcase(yyruleno==283);
wmmhello's avatar
wmmhello 已提交
5565 5566
{ yylhsminor.yy560 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy533); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5567
        break;
D
Dingle Zhang 已提交
5568
      case 231: /* cmd ::= SHOW DNODES */
X
Xiaoyu Wang 已提交
5569
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
5570
        break;
D
Dingle Zhang 已提交
5571
      case 232: /* cmd ::= SHOW USERS */
X
Xiaoyu Wang 已提交
5572
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
5573
        break;
D
Dingle Zhang 已提交
5574
      case 233: /* cmd ::= SHOW USER PRIVILEGES */
X
Xiaoyu Wang 已提交
5575
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
5576
        break;
D
Dingle Zhang 已提交
5577
      case 234: /* cmd ::= SHOW DATABASES */
X
Xiaoyu Wang 已提交
5578
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); }
5579
        break;
D
Dingle Zhang 已提交
5580
      case 235: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */
wmmhello's avatar
wmmhello 已提交
5581
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, OP_TYPE_LIKE); }
5582
        break;
D
Dingle Zhang 已提交
5583
      case 236: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
wmmhello's avatar
wmmhello 已提交
5584
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, OP_TYPE_LIKE); }
5585
        break;
D
Dingle Zhang 已提交
5586
      case 237: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
wmmhello's avatar
wmmhello 已提交
5587
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy560, NULL, OP_TYPE_LIKE); }
5588
        break;
D
Dingle Zhang 已提交
5589
      case 238: /* cmd ::= SHOW MNODES */
5590
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
5591
        break;
D
Dingle Zhang 已提交
5592
      case 239: /* cmd ::= SHOW QNODES */
5593
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
5594
        break;
D
Dingle Zhang 已提交
5595
      case 240: /* cmd ::= SHOW FUNCTIONS */
5596
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
5597
        break;
D
Dingle Zhang 已提交
5598
      case 241: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
wmmhello's avatar
wmmhello 已提交
5599
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy560, yymsp[-1].minor.yy560, OP_TYPE_EQUAL); }
5600
        break;
D
Dingle Zhang 已提交
5601
      case 242: /* cmd ::= SHOW STREAMS */
5602
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
5603
        break;
D
Dingle Zhang 已提交
5604
      case 243: /* cmd ::= SHOW ACCOUNTS */
5605
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
5606
        break;
D
Dingle Zhang 已提交
5607
      case 244: /* cmd ::= SHOW APPS */
5608
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
5609
        break;
D
Dingle Zhang 已提交
5610
      case 245: /* cmd ::= SHOW CONNECTIONS */
5611
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
5612
        break;
D
Dingle Zhang 已提交
5613 5614
      case 246: /* cmd ::= SHOW LICENCES */
      case 247: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==247);
X
Xiaoyu Wang 已提交
5615
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
5616
        break;
D
Dingle Zhang 已提交
5617
      case 248: /* cmd ::= SHOW CREATE DATABASE db_name */
wmmhello's avatar
wmmhello 已提交
5618
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy533); }
5619
        break;
D
Dingle Zhang 已提交
5620
      case 249: /* cmd ::= SHOW CREATE TABLE full_table_name */
wmmhello's avatar
wmmhello 已提交
5621
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy560); }
5622
        break;
D
Dingle Zhang 已提交
5623
      case 250: /* cmd ::= SHOW CREATE STABLE full_table_name */
wmmhello's avatar
wmmhello 已提交
5624
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy560); }
5625
        break;
D
Dingle Zhang 已提交
5626
      case 251: /* cmd ::= SHOW QUERIES */
5627
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
5628
        break;
D
Dingle Zhang 已提交
5629
      case 252: /* cmd ::= SHOW SCORES */
5630
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
5631
        break;
D
Dingle Zhang 已提交
5632
      case 253: /* cmd ::= SHOW TOPICS */
5633
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
5634
        break;
D
Dingle Zhang 已提交
5635 5636
      case 254: /* cmd ::= SHOW VARIABLES */
      case 255: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==255);
5637
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
X
Xiaoyu Wang 已提交
5638
        break;
D
Dingle Zhang 已提交
5639
      case 256: /* cmd ::= SHOW LOCAL VARIABLES */
5640 5641
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
        break;
D
Dingle Zhang 已提交
5642
      case 257: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
wmmhello's avatar
wmmhello 已提交
5643
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy560); }
5644
        break;
D
Dingle Zhang 已提交
5645
      case 258: /* cmd ::= SHOW BNODES */
5646
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
5647
        break;
D
Dingle Zhang 已提交
5648
      case 259: /* cmd ::= SHOW SNODES */
5649
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
5650
        break;
D
Dingle Zhang 已提交
5651
      case 260: /* cmd ::= SHOW CLUSTER */
5652
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
5653
        break;
D
Dingle Zhang 已提交
5654
      case 261: /* cmd ::= SHOW TRANSACTIONS */
5655 5656
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
        break;
D
Dingle Zhang 已提交
5657
      case 262: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
wmmhello's avatar
wmmhello 已提交
5658
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy560); }
X
Xiaoyu Wang 已提交
5659
        break;
D
Dingle Zhang 已提交
5660
      case 263: /* cmd ::= SHOW CONSUMERS */
5661
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
X
Xiaoyu Wang 已提交
5662
        break;
D
Dingle Zhang 已提交
5663
      case 264: /* cmd ::= SHOW SUBSCRIPTIONS */
5664
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
X
Xiaoyu Wang 已提交
5665
        break;
D
Dingle Zhang 已提交
5666
      case 265: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
wmmhello's avatar
wmmhello 已提交
5667
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy560, yymsp[-1].minor.yy560, OP_TYPE_EQUAL); }
5668
        break;
D
Dingle Zhang 已提交
5669
      case 266: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
wmmhello's avatar
wmmhello 已提交
5670
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560, yymsp[-3].minor.yy496); }
5671
        break;
D
Dingle Zhang 已提交
5672
      case 267: /* cmd ::= SHOW VNODES NK_INTEGER */
5673 5674
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
        break;
D
Dingle Zhang 已提交
5675
      case 268: /* cmd ::= SHOW VNODES NK_STRING */
5676
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, createValueNode(pCxt, TSDB_DATA_TYPE_VARCHAR, &yymsp[0].minor.yy0)); }
5677
        break;
D
Dingle Zhang 已提交
5678
      case 269: /* cmd ::= SHOW db_name_cond_opt ALIVE */
wmmhello's avatar
wmmhello 已提交
5679
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy560,    QUERY_NODE_SHOW_DB_ALIVE_STMT); }
5680
        break;
D
Dingle Zhang 已提交
5681
      case 270: /* cmd ::= SHOW CLUSTER ALIVE */
5682
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
D
dapan1121 已提交
5683
        break;
D
Dingle Zhang 已提交
5684 5685
      case 271: /* db_name_cond_opt ::= */
      case 276: /* from_db_opt ::= */ yytestcase(yyruleno==276);
wmmhello's avatar
wmmhello 已提交
5686
{ yymsp[1].minor.yy560 = createDefaultDatabaseCondValue(pCxt); }
D
dapan1121 已提交
5687
        break;
D
Dingle Zhang 已提交
5688
      case 272: /* db_name_cond_opt ::= db_name NK_DOT */
wmmhello's avatar
wmmhello 已提交
5689 5690
{ yylhsminor.yy560 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy533); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5691
        break;
D
Dingle Zhang 已提交
5692
      case 274: /* like_pattern_opt ::= LIKE NK_STRING */
wmmhello's avatar
wmmhello 已提交
5693
{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
D
dapan1121 已提交
5694
        break;
D
Dingle Zhang 已提交
5695
      case 275: /* table_name_cond ::= table_name */
wmmhello's avatar
wmmhello 已提交
5696 5697
{ yylhsminor.yy560 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy533); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5698
        break;
D
Dingle Zhang 已提交
5699
      case 277: /* from_db_opt ::= FROM db_name */
wmmhello's avatar
wmmhello 已提交
5700
{ yymsp[-1].minor.yy560 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5701
        break;
D
Dingle Zhang 已提交
5702
      case 281: /* tag_item ::= TBNAME */
wmmhello's avatar
wmmhello 已提交
5703 5704
{ yylhsminor.yy560 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5705
        break;
D
Dingle Zhang 已提交
5706
      case 284: /* tag_item ::= column_name column_alias */
wmmhello's avatar
wmmhello 已提交
5707 5708
{ yylhsminor.yy560 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy533), &yymsp[0].minor.yy533); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5709
        break;
D
Dingle Zhang 已提交
5710
      case 285: /* tag_item ::= column_name AS column_alias */
wmmhello's avatar
wmmhello 已提交
5711 5712
{ yylhsminor.yy560 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy533), &yymsp[0].minor.yy533); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5713
        break;
D
Dingle Zhang 已提交
5714
      case 286: /* cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */
wmmhello's avatar
wmmhello 已提交
5715
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy173, yymsp[-3].minor.yy560, yymsp[-1].minor.yy560, NULL, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5716
        break;
D
Dingle Zhang 已提交
5717
      case 287: /* cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */
wmmhello's avatar
wmmhello 已提交
5718
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy173, yymsp[-5].minor.yy560, yymsp[-3].minor.yy560, yymsp[-1].minor.yy496, NULL); }
D
dapan1121 已提交
5719
        break;
D
Dingle Zhang 已提交
5720
      case 288: /* cmd ::= DROP INDEX exists_opt full_index_name */
wmmhello's avatar
wmmhello 已提交
5721
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5722
        break;
D
Dingle Zhang 已提交
5723
      case 289: /* full_index_name ::= index_name */
wmmhello's avatar
wmmhello 已提交
5724 5725
{ yylhsminor.yy560 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy533); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5726
        break;
D
Dingle Zhang 已提交
5727
      case 290: /* full_index_name ::= db_name NK_DOT index_name */
wmmhello's avatar
wmmhello 已提交
5728 5729
{ yylhsminor.yy560 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5730
        break;
D
Dingle Zhang 已提交
5731
      case 291: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
wmmhello's avatar
wmmhello 已提交
5732
{ yymsp[-9].minor.yy560 = createIndexOption(pCxt, yymsp[-7].minor.yy496, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5733
        break;
D
Dingle Zhang 已提交
5734
      case 292: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
wmmhello's avatar
wmmhello 已提交
5735
{ yymsp[-11].minor.yy560 = createIndexOption(pCxt, yymsp[-9].minor.yy496, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy560, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5736
        break;
D
Dingle Zhang 已提交
5737
      case 295: /* func ::= sma_func_name NK_LP expression_list NK_RP */
wmmhello's avatar
wmmhello 已提交
5738 5739
{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[-3].minor.yy533, yymsp[-1].minor.yy496); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5740
        break;
D
Dingle Zhang 已提交
5741
      case 296: /* sma_func_name ::= function_name */
wmmhello's avatar
wmmhello 已提交
5742 5743 5744
      case 511: /* alias_opt ::= table_alias */ yytestcase(yyruleno==511);
{ yylhsminor.yy533 = yymsp[0].minor.yy533; }
  yymsp[0].minor.yy533 = yylhsminor.yy533;
D
dapan1121 已提交
5745
        break;
D
Dingle Zhang 已提交
5746
      case 301: /* sma_stream_opt ::= */
wmmhello's avatar
wmmhello 已提交
5747 5748
      case 343: /* stream_options ::= */ yytestcase(yyruleno==343);
{ yymsp[1].minor.yy560 = createStreamOptions(pCxt); }
D
dapan1121 已提交
5749
        break;
D
Dingle Zhang 已提交
5750
      case 302: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
wmmhello's avatar
wmmhello 已提交
5751 5752
{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5753
        break;
D
Dingle Zhang 已提交
5754
      case 303: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
wmmhello's avatar
wmmhello 已提交
5755 5756
{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5757
        break;
D
Dingle Zhang 已提交
5758
      case 304: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
wmmhello's avatar
wmmhello 已提交
5759 5760
{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5761
        break;
D
Dingle Zhang 已提交
5762
      case 305: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
wmmhello's avatar
wmmhello 已提交
5763
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy533, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5764
        break;
D
Dingle Zhang 已提交
5765
      case 306: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */
wmmhello's avatar
wmmhello 已提交
5766
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy173, &yymsp[-3].minor.yy533, &yymsp[0].minor.yy533, 0); }
D
dapan1121 已提交
5767
        break;
D
Dingle Zhang 已提交
5768
      case 307: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */
wmmhello's avatar
wmmhello 已提交
5769 5770 5771 5772 5773 5774 5775
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy173, &yymsp[-5].minor.yy533, &yymsp[0].minor.yy533, 1); }
        break;
      case 308: /* cmd ::= CREATE TOPIC not_exists_opt topic_name ONLY META AS DATABASE db_name */
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy173, &yymsp[-5].minor.yy533, &yymsp[0].minor.yy533, 2); }
        break;
      case 309: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name where_clause_opt */
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy173, &yymsp[-4].minor.yy533, yymsp[-1].minor.yy560, 0, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5776
        break;
wmmhello's avatar
wmmhello 已提交
5777 5778
      case 310: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name where_clause_opt */
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-7].minor.yy173, &yymsp[-6].minor.yy533, yymsp[-1].minor.yy560, 1, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5779
        break;
wmmhello's avatar
wmmhello 已提交
5780 5781
      case 311: /* cmd ::= CREATE TOPIC not_exists_opt topic_name ONLY META AS STABLE full_table_name where_clause_opt */
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-7].minor.yy173, &yymsp[-6].minor.yy533, yymsp[-1].minor.yy560, 2, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5782
        break;
wmmhello's avatar
wmmhello 已提交
5783 5784
      case 312: /* cmd ::= DROP TOPIC exists_opt topic_name */
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5785
        break;
wmmhello's avatar
wmmhello 已提交
5786 5787
      case 313: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5788
        break;
wmmhello's avatar
wmmhello 已提交
5789 5790 5791
      case 314: /* cmd ::= DESC full_table_name */
      case 315: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==315);
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5792
        break;
wmmhello's avatar
wmmhello 已提交
5793
      case 316: /* cmd ::= RESET QUERY CACHE */
5794
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
D
dapan1121 已提交
5795
        break;
wmmhello's avatar
wmmhello 已提交
5796 5797 5798
      case 317: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
      case 318: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==318);
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy173, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); }
D
dapan1121 已提交
5799
        break;
wmmhello's avatar
wmmhello 已提交
5800 5801
      case 321: /* explain_options ::= */
{ yymsp[1].minor.yy560 = createDefaultExplainOptions(pCxt); }
D
dapan1121 已提交
5802
        break;
wmmhello's avatar
wmmhello 已提交
5803 5804 5805
      case 322: /* explain_options ::= explain_options VERBOSE NK_BOOL */
{ yylhsminor.yy560 = setExplainVerbose(pCxt, yymsp[-2].minor.yy560, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5806
        break;
wmmhello's avatar
wmmhello 已提交
5807 5808 5809
      case 323: /* explain_options ::= explain_options RATIO NK_FLOAT */
{ yylhsminor.yy560 = setExplainRatio(pCxt, yymsp[-2].minor.yy560, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5810
        break;
wmmhello's avatar
wmmhello 已提交
5811 5812
      case 324: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy173, yymsp[-9].minor.yy173, &yymsp[-6].minor.yy533, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy952, yymsp[-1].minor.yy964, &yymsp[0].minor.yy533, yymsp[-10].minor.yy173); }
D
dapan1121 已提交
5813
        break;
wmmhello's avatar
wmmhello 已提交
5814 5815
      case 325: /* cmd ::= DROP FUNCTION exists_opt function_name */
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5816
        break;
wmmhello's avatar
wmmhello 已提交
5817 5818
      case 330: /* language_opt ::= */
{ yymsp[1].minor.yy533 = nil_token; }
D
dapan1121 已提交
5819
        break;
wmmhello's avatar
wmmhello 已提交
5820 5821
      case 331: /* language_opt ::= LANGUAGE NK_STRING */
{ yymsp[-1].minor.yy533 = yymsp[0].minor.yy0; }
D
dapan1121 已提交
5822
        break;
wmmhello's avatar
wmmhello 已提交
5823 5824
      case 334: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy173, &yymsp[-8].minor.yy533, yymsp[-5].minor.yy560, yymsp[-7].minor.yy560, yymsp[-3].minor.yy496, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, yymsp[-4].minor.yy496); }
D
dapan1121 已提交
5825
        break;
wmmhello's avatar
wmmhello 已提交
5826 5827
      case 335: /* cmd ::= DROP STREAM exists_opt stream_name */
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5828
        break;
wmmhello's avatar
wmmhello 已提交
5829 5830
      case 336: /* cmd ::= PAUSE STREAM exists_opt stream_name */
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5831
        break;
wmmhello's avatar
wmmhello 已提交
5832 5833
      case 337: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy173, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); }
D
dapan1121 已提交
5834
        break;
wmmhello's avatar
wmmhello 已提交
5835 5836 5837 5838
      case 344: /* stream_options ::= stream_options TRIGGER AT_ONCE */
      case 345: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==345);
{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-2].minor.yy560, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5839
        break;
wmmhello's avatar
wmmhello 已提交
5840 5841 5842
      case 346: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-3].minor.yy560, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5843
        break;
wmmhello's avatar
wmmhello 已提交
5844 5845 5846
      case 347: /* stream_options ::= stream_options WATERMARK duration_literal */
{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-2].minor.yy560, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5847
        break;
wmmhello's avatar
wmmhello 已提交
5848 5849 5850
      case 348: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-3].minor.yy560, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5851
        break;
wmmhello's avatar
wmmhello 已提交
5852 5853 5854
      case 349: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-2].minor.yy560, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5855
        break;
wmmhello's avatar
wmmhello 已提交
5856 5857 5858
      case 350: /* stream_options ::= stream_options DELETE_MARK duration_literal */
{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-2].minor.yy560, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5859
        break;
wmmhello's avatar
wmmhello 已提交
5860 5861 5862
      case 351: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-3].minor.yy560, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5863
        break;
wmmhello's avatar
wmmhello 已提交
5864 5865 5866 5867
      case 353: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
      case 545: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==545);
      case 566: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==566);
{ yymsp[-3].minor.yy560 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy560); }
D
dapan1121 已提交
5868
        break;
wmmhello's avatar
wmmhello 已提交
5869
      case 356: /* cmd ::= KILL CONNECTION NK_INTEGER */
5870 5871
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
        break;
wmmhello's avatar
wmmhello 已提交
5872
      case 357: /* cmd ::= KILL QUERY NK_STRING */
X
Xiaoyu Wang 已提交
5873
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
5874
        break;
wmmhello's avatar
wmmhello 已提交
5875
      case 358: /* cmd ::= KILL TRANSACTION NK_INTEGER */
5876 5877
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
        break;
wmmhello's avatar
wmmhello 已提交
5878
      case 359: /* cmd ::= BALANCE VGROUP */
5879 5880
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
        break;
wmmhello's avatar
wmmhello 已提交
5881
      case 360: /* cmd ::= BALANCE VGROUP LEADER */
C
cadem 已提交
5882
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); }
X
Xiaoyu Wang 已提交
5883
        break;
wmmhello's avatar
wmmhello 已提交
5884
      case 361: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
5885 5886
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
        break;
wmmhello's avatar
wmmhello 已提交
5887 5888
      case 362: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy496); }
5889
        break;
wmmhello's avatar
wmmhello 已提交
5890
      case 363: /* cmd ::= SPLIT VGROUP NK_INTEGER */
5891
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
D
dapan1121 已提交
5892
        break;
wmmhello's avatar
wmmhello 已提交
5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968
      case 364: /* dnode_list ::= DNODE NK_INTEGER */
{ yymsp[-1].minor.yy496 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
        break;
      case 366: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); }
        break;
      case 369: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
{ yymsp[-6].minor.yy560 = createInsertStmt(pCxt, yymsp[-4].minor.yy560, yymsp[-2].minor.yy496, yymsp[0].minor.yy560); }
        break;
      case 370: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
{ yymsp[-3].minor.yy560 = createInsertStmt(pCxt, yymsp[-1].minor.yy560, NULL, yymsp[0].minor.yy560); }
        break;
      case 371: /* literal ::= NK_INTEGER */
{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 372: /* literal ::= NK_FLOAT */
{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 373: /* literal ::= NK_STRING */
{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 374: /* literal ::= NK_BOOL */
{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 375: /* literal ::= TIMESTAMP NK_STRING */
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
        break;
      case 376: /* literal ::= duration_literal */
      case 386: /* signed_literal ::= signed */ yytestcase(yyruleno==386);
      case 407: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==407);
      case 408: /* expression ::= literal */ yytestcase(yyruleno==408);
      case 409: /* expression ::= pseudo_column */ yytestcase(yyruleno==409);
      case 410: /* expression ::= column_reference */ yytestcase(yyruleno==410);
      case 411: /* expression ::= function_expression */ yytestcase(yyruleno==411);
      case 412: /* expression ::= case_when_expression */ yytestcase(yyruleno==412);
      case 443: /* function_expression ::= literal_func */ yytestcase(yyruleno==443);
      case 492: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==492);
      case 496: /* boolean_primary ::= predicate */ yytestcase(yyruleno==496);
      case 498: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==498);
      case 499: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==499);
      case 502: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==502);
      case 504: /* table_reference ::= table_primary */ yytestcase(yyruleno==504);
      case 505: /* table_reference ::= joined_table */ yytestcase(yyruleno==505);
      case 509: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==509);
      case 568: /* query_simple ::= query_specification */ yytestcase(yyruleno==568);
      case 569: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==569);
      case 572: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==572);
      case 574: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==574);
{ yylhsminor.yy560 = yymsp[0].minor.yy560; }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 377: /* literal ::= NULL */
{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 378: /* literal ::= NK_QUESTION */
{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 379: /* duration_literal ::= NK_VARIABLE */
{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 380: /* signed ::= NK_INTEGER */
{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 381: /* signed ::= NK_PLUS NK_INTEGER */
{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
        break;
      case 382: /* signed ::= NK_MINUS NK_INTEGER */
X
Xiaoyu Wang 已提交
5969 5970 5971
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
wmmhello's avatar
wmmhello 已提交
5972
                                                                                    yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
X
Xiaoyu Wang 已提交
5973
                                                                                  }
wmmhello's avatar
wmmhello 已提交
5974
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5975
        break;
wmmhello's avatar
wmmhello 已提交
5976 5977 5978
      case 383: /* signed ::= NK_FLOAT */
{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
5979
        break;
wmmhello's avatar
wmmhello 已提交
5980 5981
      case 384: /* signed ::= NK_PLUS NK_FLOAT */
{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
D
dapan1121 已提交
5982
        break;
wmmhello's avatar
wmmhello 已提交
5983
      case 385: /* signed ::= NK_MINUS NK_FLOAT */
X
Xiaoyu Wang 已提交
5984 5985 5986
{ 
                                                                                    SToken t = yymsp[-1].minor.yy0;
                                                                                    t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
wmmhello's avatar
wmmhello 已提交
5987
                                                                                    yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
X
Xiaoyu Wang 已提交
5988
                                                                                  }
wmmhello's avatar
wmmhello 已提交
5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
        break;
      case 387: /* signed_literal ::= NK_STRING */
{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 388: /* signed_literal ::= NK_BOOL */
{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 389: /* signed_literal ::= TIMESTAMP NK_STRING */
{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
        break;
      case 390: /* signed_literal ::= duration_literal */
      case 392: /* signed_literal ::= literal_func */ yytestcase(yyruleno==392);
      case 463: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==463);
      case 525: /* select_item ::= common_expression */ yytestcase(yyruleno==525);
      case 535: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==535);
      case 573: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==573);
      case 575: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==575);
      case 588: /* search_condition ::= common_expression */ yytestcase(yyruleno==588);
{ yylhsminor.yy560 = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 391: /* signed_literal ::= NULL */
{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 393: /* signed_literal ::= NK_QUESTION */
{ yylhsminor.yy560 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 413: /* expression ::= NK_LP expression NK_RP */
      case 497: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==497);
      case 587: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==587);
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
        break;
      case 414: /* expression ::= NK_PLUS expr_or_subquery */
X
Xiaoyu Wang 已提交
6028
{
wmmhello's avatar
wmmhello 已提交
6029 6030
                                                                                    SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy560));
X
Xiaoyu Wang 已提交
6031
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6032
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
X
Xiaoyu Wang 已提交
6033
        break;
wmmhello's avatar
wmmhello 已提交
6034
      case 415: /* expression ::= NK_MINUS expr_or_subquery */
X
Xiaoyu Wang 已提交
6035
{
wmmhello's avatar
wmmhello 已提交
6036 6037
                                                                                    SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy560), NULL));
X
Xiaoyu Wang 已提交
6038
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6039
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
6040
        break;
wmmhello's avatar
wmmhello 已提交
6041
      case 416: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
6042
{
wmmhello's avatar
wmmhello 已提交
6043 6044 6045
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); 
6046
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6047
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
X
Xiaoyu Wang 已提交
6048
        break;
wmmhello's avatar
wmmhello 已提交
6049
      case 417: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
6050
{
wmmhello's avatar
wmmhello 已提交
6051 6052 6053
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); 
6054
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6055
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
6056
        break;
wmmhello's avatar
wmmhello 已提交
6057
      case 418: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
6058
{
wmmhello's avatar
wmmhello 已提交
6059 6060 6061
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); 
6062
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6063
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
6064
        break;
wmmhello's avatar
wmmhello 已提交
6065
      case 419: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
6066
{
wmmhello's avatar
wmmhello 已提交
6067 6068 6069
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); 
6070
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6071
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
6072
        break;
wmmhello's avatar
wmmhello 已提交
6073
      case 420: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
6074
{
wmmhello's avatar
wmmhello 已提交
6075 6076 6077
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)));
6078
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6079
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
6080
        break;
wmmhello's avatar
wmmhello 已提交
6081
      case 421: /* expression ::= column_reference NK_ARROW NK_STRING */
6082
{
wmmhello's avatar
wmmhello 已提交
6083 6084
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); 
6085
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6086
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
6087
        break;
wmmhello's avatar
wmmhello 已提交
6088
      case 422: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
6089
{
wmmhello's avatar
wmmhello 已提交
6090 6091 6092
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)));
6093
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6094
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
6095
        break;
wmmhello's avatar
wmmhello 已提交
6096
      case 423: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
6097
{
wmmhello's avatar
wmmhello 已提交
6098 6099 6100
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)));
6101
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
        break;
      case 426: /* column_reference ::= column_name */
{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy533, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy533)); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 427: /* column_reference ::= table_name NK_DOT column_name */
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533, createColumnNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533)); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
        break;
      case 428: /* pseudo_column ::= ROWTS */
      case 429: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==429);
      case 431: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==431);
      case 432: /* pseudo_column ::= QEND */ yytestcase(yyruleno==432);
      case 433: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==433);
      case 434: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==434);
      case 435: /* pseudo_column ::= WEND */ yytestcase(yyruleno==435);
      case 436: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==436);
      case 437: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==437);
      case 438: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==438);
      case 439: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==439);
      case 445: /* literal_func ::= NOW */ yytestcase(yyruleno==445);
{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
        break;
      case 430: /* pseudo_column ::= table_name NK_DOT TBNAME */
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy533)))); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
        break;
      case 440: /* function_expression ::= function_name NK_LP expression_list NK_RP */
      case 441: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==441);
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy533, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy533, yymsp[-1].minor.yy496)); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
        break;
      case 442: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy952)); }
  yymsp[-5].minor.yy560 = yylhsminor.yy560;
        break;
      case 444: /* literal_func ::= noarg_func NK_LP NK_RP */
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy533, NULL)); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
        break;
      case 459: /* star_func_para_list ::= NK_STAR */
{ yylhsminor.yy496 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
  yymsp[0].minor.yy496 = yylhsminor.yy496;
        break;
      case 464: /* star_func_para ::= table_name NK_DOT NK_STAR */
      case 528: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==528);
{ yylhsminor.yy560 = createColumnNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
        break;
      case 465: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy496, yymsp[-1].minor.yy560)); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
        break;
      case 466: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-2].minor.yy496, yymsp[-1].minor.yy560)); }
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
        break;
      case 469: /* when_then_expr ::= WHEN common_expression THEN common_expression */
{ yymsp[-3].minor.yy560 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); }
        break;
      case 471: /* case_when_else_opt ::= ELSE common_expression */
{ yymsp[-1].minor.yy560 = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); }
        break;
      case 472: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
      case 477: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==477);
6169
{
wmmhello's avatar
wmmhello 已提交
6170 6171 6172
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy344, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)));
6173
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6174
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
6175
        break;
wmmhello's avatar
wmmhello 已提交
6176
      case 473: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
6177
{
wmmhello's avatar
wmmhello 已提交
6178 6179 6180
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy560), releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)));
6181
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6182
  yymsp[-4].minor.yy560 = yylhsminor.yy560;
6183
        break;
wmmhello's avatar
wmmhello 已提交
6184
      case 474: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
6185
{
wmmhello's avatar
wmmhello 已提交
6186 6187 6188
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)));
6189
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6190
  yymsp[-5].minor.yy560 = yylhsminor.yy560;
6191
        break;
wmmhello's avatar
wmmhello 已提交
6192
      case 475: /* predicate ::= expr_or_subquery IS NULL */
6193
{
wmmhello's avatar
wmmhello 已提交
6194 6195
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), NULL));
6196
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6197
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
6198
        break;
wmmhello's avatar
wmmhello 已提交
6199
      case 476: /* predicate ::= expr_or_subquery IS NOT NULL */
6200
{
wmmhello's avatar
wmmhello 已提交
6201 6202
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL));
6203
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6204
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6205
        break;
wmmhello's avatar
wmmhello 已提交
6206 6207
      case 478: /* compare_op ::= NK_LT */
{ yymsp[0].minor.yy344 = OP_TYPE_LOWER_THAN; }
D
dapan1121 已提交
6208
        break;
wmmhello's avatar
wmmhello 已提交
6209 6210
      case 479: /* compare_op ::= NK_GT */
{ yymsp[0].minor.yy344 = OP_TYPE_GREATER_THAN; }
D
dapan1121 已提交
6211
        break;
wmmhello's avatar
wmmhello 已提交
6212 6213
      case 480: /* compare_op ::= NK_LE */
{ yymsp[0].minor.yy344 = OP_TYPE_LOWER_EQUAL; }
D
dapan1121 已提交
6214
        break;
wmmhello's avatar
wmmhello 已提交
6215 6216
      case 481: /* compare_op ::= NK_GE */
{ yymsp[0].minor.yy344 = OP_TYPE_GREATER_EQUAL; }
D
dapan1121 已提交
6217
        break;
wmmhello's avatar
wmmhello 已提交
6218 6219
      case 482: /* compare_op ::= NK_NE */
{ yymsp[0].minor.yy344 = OP_TYPE_NOT_EQUAL; }
D
dapan1121 已提交
6220
        break;
wmmhello's avatar
wmmhello 已提交
6221 6222
      case 483: /* compare_op ::= NK_EQ */
{ yymsp[0].minor.yy344 = OP_TYPE_EQUAL; }
D
dapan1121 已提交
6223
        break;
wmmhello's avatar
wmmhello 已提交
6224 6225
      case 484: /* compare_op ::= LIKE */
{ yymsp[0].minor.yy344 = OP_TYPE_LIKE; }
D
dapan1121 已提交
6226
        break;
wmmhello's avatar
wmmhello 已提交
6227 6228
      case 485: /* compare_op ::= NOT LIKE */
{ yymsp[-1].minor.yy344 = OP_TYPE_NOT_LIKE; }
D
dapan1121 已提交
6229
        break;
wmmhello's avatar
wmmhello 已提交
6230 6231
      case 486: /* compare_op ::= MATCH */
{ yymsp[0].minor.yy344 = OP_TYPE_MATCH; }
D
dapan1121 已提交
6232
        break;
wmmhello's avatar
wmmhello 已提交
6233 6234
      case 487: /* compare_op ::= NMATCH */
{ yymsp[0].minor.yy344 = OP_TYPE_NMATCH; }
D
dapan1121 已提交
6235
        break;
wmmhello's avatar
wmmhello 已提交
6236 6237
      case 488: /* compare_op ::= CONTAINS */
{ yymsp[0].minor.yy344 = OP_TYPE_JSON_CONTAINS; }
D
dapan1121 已提交
6238
        break;
wmmhello's avatar
wmmhello 已提交
6239 6240
      case 489: /* in_op ::= IN */
{ yymsp[0].minor.yy344 = OP_TYPE_IN; }
D
dapan1121 已提交
6241
        break;
wmmhello's avatar
wmmhello 已提交
6242 6243
      case 490: /* in_op ::= NOT IN */
{ yymsp[-1].minor.yy344 = OP_TYPE_NOT_IN; }
D
dapan1121 已提交
6244
        break;
wmmhello's avatar
wmmhello 已提交
6245 6246 6247
      case 491: /* in_predicate_value ::= NK_LP literal_list NK_RP */
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy496)); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6248
        break;
wmmhello's avatar
wmmhello 已提交
6249
      case 493: /* boolean_value_expression ::= NOT boolean_primary */
6250
{
wmmhello's avatar
wmmhello 已提交
6251 6252
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy560), NULL));
6253
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6254
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
6255
        break;
wmmhello's avatar
wmmhello 已提交
6256
      case 494: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
6257
{
wmmhello's avatar
wmmhello 已提交
6258 6259 6260
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)));
6261
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6262
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
6263
        break;
wmmhello's avatar
wmmhello 已提交
6264
      case 495: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
6265
{
wmmhello's avatar
wmmhello 已提交
6266 6267 6268
                                                                                    SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560);
                                                                                    SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560);
                                                                                    yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)));
6269
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6270
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6271
        break;
wmmhello's avatar
wmmhello 已提交
6272 6273 6274
      case 503: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
{ yylhsminor.yy560 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, NULL); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6275
        break;
wmmhello's avatar
wmmhello 已提交
6276 6277 6278
      case 506: /* table_primary ::= table_name alias_opt */
{ yylhsminor.yy560 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6279
        break;
wmmhello's avatar
wmmhello 已提交
6280 6281 6282
      case 507: /* table_primary ::= db_name NK_DOT table_name alias_opt */
{ yylhsminor.yy560 = createRealTableNode(pCxt, &yymsp[-3].minor.yy533, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6283
        break;
wmmhello's avatar
wmmhello 已提交
6284 6285 6286
      case 508: /* table_primary ::= subquery alias_opt */
{ yylhsminor.yy560 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), &yymsp[0].minor.yy533); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6287
        break;
wmmhello's avatar
wmmhello 已提交
6288 6289
      case 510: /* alias_opt ::= */
{ yymsp[1].minor.yy533 = nil_token;  }
D
dapan1121 已提交
6290
        break;
wmmhello's avatar
wmmhello 已提交
6291 6292
      case 512: /* alias_opt ::= AS table_alias */
{ yymsp[-1].minor.yy533 = yymsp[0].minor.yy533; }
D
dapan1121 已提交
6293
        break;
wmmhello's avatar
wmmhello 已提交
6294 6295 6296
      case 513: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
      case 514: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==514);
{ yymsp[-2].minor.yy560 = yymsp[-1].minor.yy560; }
D
dapan1121 已提交
6297
        break;
wmmhello's avatar
wmmhello 已提交
6298 6299 6300
      case 515: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
{ yylhsminor.yy560 = createJoinTableNode(pCxt, yymsp[-4].minor.yy360, yymsp[-5].minor.yy560, yymsp[-2].minor.yy560, yymsp[0].minor.yy560); }
  yymsp[-5].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6301
        break;
wmmhello's avatar
wmmhello 已提交
6302 6303
      case 516: /* join_type ::= */
{ yymsp[1].minor.yy360 = JOIN_TYPE_INNER; }
D
dapan1121 已提交
6304
        break;
wmmhello's avatar
wmmhello 已提交
6305 6306
      case 517: /* join_type ::= INNER */
{ yymsp[0].minor.yy360 = JOIN_TYPE_INNER; }
D
dapan1121 已提交
6307
        break;
wmmhello's avatar
wmmhello 已提交
6308
      case 518: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
6309
{ 
wmmhello's avatar
wmmhello 已提交
6310 6311 6312 6313 6314 6315 6316 6317 6318
                                                                                    yymsp[-11].minor.yy560 = createSelectStmt(pCxt, yymsp[-10].minor.yy173, yymsp[-9].minor.yy496, yymsp[-8].minor.yy560);
                                                                                    yymsp[-11].minor.yy560 = addWhereClause(pCxt, yymsp[-11].minor.yy560, yymsp[-7].minor.yy560);
                                                                                    yymsp[-11].minor.yy560 = addPartitionByClause(pCxt, yymsp[-11].minor.yy560, yymsp[-6].minor.yy496);
                                                                                    yymsp[-11].minor.yy560 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy560, yymsp[-2].minor.yy560);
                                                                                    yymsp[-11].minor.yy560 = addGroupByClause(pCxt, yymsp[-11].minor.yy560, yymsp[-1].minor.yy496);
                                                                                    yymsp[-11].minor.yy560 = addHavingClause(pCxt, yymsp[-11].minor.yy560, yymsp[0].minor.yy560);
                                                                                    yymsp[-11].minor.yy560 = addRangeClause(pCxt, yymsp[-11].minor.yy560, yymsp[-5].minor.yy560);
                                                                                    yymsp[-11].minor.yy560 = addEveryClause(pCxt, yymsp[-11].minor.yy560, yymsp[-4].minor.yy560);
                                                                                    yymsp[-11].minor.yy560 = addFillClause(pCxt, yymsp[-11].minor.yy560, yymsp[-3].minor.yy560);
6319
                                                                                  }
D
dapan1121 已提交
6320
        break;
wmmhello's avatar
wmmhello 已提交
6321 6322
      case 521: /* set_quantifier_opt ::= ALL */
{ yymsp[0].minor.yy173 = false; }
D
dapan1121 已提交
6323
        break;
wmmhello's avatar
wmmhello 已提交
6324 6325 6326
      case 524: /* select_item ::= NK_STAR */
{ yylhsminor.yy560 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
  yymsp[0].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6327
        break;
wmmhello's avatar
wmmhello 已提交
6328 6329 6330 6331
      case 526: /* select_item ::= common_expression column_alias */
      case 536: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==536);
{ yylhsminor.yy560 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), &yymsp[0].minor.yy533); }
  yymsp[-1].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6332
        break;
wmmhello's avatar
wmmhello 已提交
6333 6334 6335 6336
      case 527: /* select_item ::= common_expression AS column_alias */
      case 537: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==537);
{ yylhsminor.yy560 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), &yymsp[0].minor.yy533); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6337
        break;
wmmhello's avatar
wmmhello 已提交
6338 6339 6340 6341
      case 532: /* partition_by_clause_opt ::= PARTITION BY partition_list */
      case 557: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==557);
      case 577: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==577);
{ yymsp[-2].minor.yy496 = yymsp[0].minor.yy496; }
D
dapan1121 已提交
6342
        break;
wmmhello's avatar
wmmhello 已提交
6343 6344
      case 539: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
{ yymsp[-5].minor.yy560 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); }
D
dapan1121 已提交
6345
        break;
wmmhello's avatar
wmmhello 已提交
6346 6347
      case 540: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy560 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); }
D
dapan1121 已提交
6348
        break;
wmmhello's avatar
wmmhello 已提交
6349 6350
      case 541: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-5].minor.yy560 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); }
D
dapan1121 已提交
6351
        break;
wmmhello's avatar
wmmhello 已提交
6352 6353
      case 542: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
{ yymsp[-7].minor.yy560 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy560, yymsp[0].minor.yy560); }
D
dapan1121 已提交
6354
        break;
wmmhello's avatar
wmmhello 已提交
6355 6356
      case 543: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
{ yymsp[-6].minor.yy560 = createEventWindowNode(pCxt, yymsp[-3].minor.yy560, yymsp[0].minor.yy560); }
D
dapan1121 已提交
6357
        break;
wmmhello's avatar
wmmhello 已提交
6358 6359
      case 547: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
{ yymsp[-3].minor.yy560 = createFillNode(pCxt, yymsp[-1].minor.yy18, NULL); }
D
dapan1121 已提交
6360
        break;
wmmhello's avatar
wmmhello 已提交
6361 6362
      case 548: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy560 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy496)); }
D
dapan1121 已提交
6363
        break;
wmmhello's avatar
wmmhello 已提交
6364 6365
      case 549: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
{ yymsp[-5].minor.yy560 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy496)); }
D
dapan1121 已提交
6366
        break;
wmmhello's avatar
wmmhello 已提交
6367 6368
      case 550: /* fill_mode ::= NONE */
{ yymsp[0].minor.yy18 = FILL_MODE_NONE; }
D
dapan1121 已提交
6369
        break;
wmmhello's avatar
wmmhello 已提交
6370 6371
      case 551: /* fill_mode ::= PREV */
{ yymsp[0].minor.yy18 = FILL_MODE_PREV; }
D
dapan1121 已提交
6372
        break;
wmmhello's avatar
wmmhello 已提交
6373 6374
      case 552: /* fill_mode ::= NULL */
{ yymsp[0].minor.yy18 = FILL_MODE_NULL; }
D
dapan1121 已提交
6375
        break;
wmmhello's avatar
wmmhello 已提交
6376 6377
      case 553: /* fill_mode ::= NULL_F */
{ yymsp[0].minor.yy18 = FILL_MODE_NULL_F; }
D
dapan1121 已提交
6378
        break;
wmmhello's avatar
wmmhello 已提交
6379 6380
      case 554: /* fill_mode ::= LINEAR */
{ yymsp[0].minor.yy18 = FILL_MODE_LINEAR; }
D
dapan1121 已提交
6381
        break;
wmmhello's avatar
wmmhello 已提交
6382 6383
      case 555: /* fill_mode ::= NEXT */
{ yymsp[0].minor.yy18 = FILL_MODE_NEXT; }
D
dapan1121 已提交
6384
        break;
wmmhello's avatar
wmmhello 已提交
6385 6386 6387
      case 558: /* group_by_list ::= expr_or_subquery */
{ yylhsminor.yy496 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); }
  yymsp[0].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
6388
        break;
wmmhello's avatar
wmmhello 已提交
6389 6390 6391
      case 559: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
{ yylhsminor.yy496 = addNodeToList(pCxt, yymsp[-2].minor.yy496, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); }
  yymsp[-2].minor.yy496 = yylhsminor.yy496;
D
dapan1121 已提交
6392
        break;
wmmhello's avatar
wmmhello 已提交
6393 6394
      case 563: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
{ yymsp[-5].minor.yy560 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); }
D
dapan1121 已提交
6395
        break;
wmmhello's avatar
wmmhello 已提交
6396 6397
      case 564: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
{ yymsp[-3].minor.yy560 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); }
6398
        break;
wmmhello's avatar
wmmhello 已提交
6399
      case 567: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
X
Xiaoyu Wang 已提交
6400
{
wmmhello's avatar
wmmhello 已提交
6401 6402 6403
                                                                                    yylhsminor.yy560 = addOrderByClause(pCxt, yymsp[-3].minor.yy560, yymsp[-2].minor.yy496);
                                                                                    yylhsminor.yy560 = addSlimitClause(pCxt, yylhsminor.yy560, yymsp[-1].minor.yy560);
                                                                                    yylhsminor.yy560 = addLimitClause(pCxt, yylhsminor.yy560, yymsp[0].minor.yy560);
6404
                                                                                  }
wmmhello's avatar
wmmhello 已提交
6405
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6406
        break;
wmmhello's avatar
wmmhello 已提交
6407 6408 6409
      case 570: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
{ yylhsminor.yy560 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy560, yymsp[0].minor.yy560); }
  yymsp[-3].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6410
        break;
wmmhello's avatar
wmmhello 已提交
6411 6412 6413
      case 571: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
{ yylhsminor.yy560 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy560, yymsp[0].minor.yy560); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6414
        break;
wmmhello's avatar
wmmhello 已提交
6415 6416 6417
      case 579: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
      case 583: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==583);
{ yymsp[-1].minor.yy560 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
D
dapan1121 已提交
6418
        break;
wmmhello's avatar
wmmhello 已提交
6419 6420 6421
      case 580: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
      case 584: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==584);
{ yymsp[-3].minor.yy560 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
D
dapan1121 已提交
6422
        break;
wmmhello's avatar
wmmhello 已提交
6423 6424 6425
      case 581: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
      case 585: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==585);
{ yymsp[-3].minor.yy560 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
D
dapan1121 已提交
6426
        break;
wmmhello's avatar
wmmhello 已提交
6427 6428 6429
      case 586: /* subquery ::= NK_LP query_expression NK_RP */
{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy560); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6430
        break;
wmmhello's avatar
wmmhello 已提交
6431 6432 6433
      case 591: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
{ yylhsminor.yy560 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), yymsp[-1].minor.yy2, yymsp[0].minor.yy109); }
  yymsp[-2].minor.yy560 = yylhsminor.yy560;
D
dapan1121 已提交
6434
        break;
wmmhello's avatar
wmmhello 已提交
6435 6436
      case 592: /* ordering_specification_opt ::= */
{ yymsp[1].minor.yy2 = ORDER_ASC; }
D
dapan1121 已提交
6437
        break;
wmmhello's avatar
wmmhello 已提交
6438 6439
      case 593: /* ordering_specification_opt ::= ASC */
{ yymsp[0].minor.yy2 = ORDER_ASC; }
D
dapan1121 已提交
6440
        break;
wmmhello's avatar
wmmhello 已提交
6441 6442
      case 594: /* ordering_specification_opt ::= DESC */
{ yymsp[0].minor.yy2 = ORDER_DESC; }
D
dapan1121 已提交
6443
        break;
wmmhello's avatar
wmmhello 已提交
6444 6445
      case 595: /* null_ordering_opt ::= */
{ yymsp[1].minor.yy109 = NULL_ORDER_DEFAULT; }
D
dapan1121 已提交
6446
        break;
wmmhello's avatar
wmmhello 已提交
6447 6448
      case 596: /* null_ordering_opt ::= NULLS FIRST */
{ yymsp[-1].minor.yy109 = NULL_ORDER_FIRST; }
D
dapan1121 已提交
6449
        break;
wmmhello's avatar
wmmhello 已提交
6450 6451
      case 597: /* null_ordering_opt ::= NULLS LAST */
{ yymsp[-1].minor.yy109 = NULL_ORDER_LAST; }
C
cadem 已提交
6452
        break;
6453 6454 6455 6456
      default:
        break;
/********** End reduce actions ************************************************/
  };
D
dapan1121 已提交
6457 6458 6459
  assert( yyruleno<sizeof(yyRuleInfoLhs)/sizeof(yyRuleInfoLhs[0]) );
  yygoto = yyRuleInfoLhs[yyruleno];
  yysize = yyRuleInfoNRhs[yyruleno];
6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483
  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 */
){
X
Xiaoyu Wang 已提交
6484 6485
  ParseARG_FETCH
  ParseCTX_FETCH
6486 6487 6488 6489 6490 6491 6492 6493 6494 6495
#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 *****************************************/
X
Xiaoyu Wang 已提交
6496 6497
  ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
  ParseCTX_STORE
6498 6499 6500 6501 6502 6503 6504 6505 6506
}
#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 */
X
Xiaoyu Wang 已提交
6507
  ParseTOKENTYPE yyminor         /* The minor type of the error token */
6508
){
X
Xiaoyu Wang 已提交
6509 6510
  ParseARG_FETCH
  ParseCTX_FETCH
6511 6512
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
6513

6514
  if (TSDB_CODE_SUCCESS == pCxt->errCode) {
6515
    if(TOKEN.z) {
6516
      pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
6517
    } else {
6518
      pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL);
6519
    }
6520 6521
  } 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);
6522 6523
  }
/************ End %syntax_error code ******************************************/
X
Xiaoyu Wang 已提交
6524 6525
  ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
  ParseCTX_STORE
6526 6527 6528 6529 6530 6531 6532 6533
}

/*
** The following is executed when the parser accepts
*/
static void yy_accept(
  yyParser *yypParser           /* The parser */
){
X
Xiaoyu Wang 已提交
6534 6535
  ParseARG_FETCH
  ParseCTX_FETCH
6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548
#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 *******************************************/
X
Xiaoyu Wang 已提交
6549 6550
  ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
  ParseCTX_STORE
6551 6552 6553 6554
}

/* The main parser program.
** The first argument is a pointer to a structure obtained from
X
Xiaoyu Wang 已提交
6555
** "ParseAlloc" which describes the current state of the parser.
6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571
** 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.
*/
X
Xiaoyu Wang 已提交
6572
void Parse(
6573 6574
  void *yyp,                   /* The parser */
  int yymajor,                 /* The major token code number */
X
Xiaoyu Wang 已提交
6575 6576
  ParseTOKENTYPE yyminor       /* The value for the token */
  ParseARG_PDECL               /* Optional %extra_argument parameter */
6577 6578 6579 6580 6581 6582 6583 6584 6585 6586
){
  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 */
X
Xiaoyu Wang 已提交
6587 6588
  ParseCTX_FETCH
  ParseARG_STORE
6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607

  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

wmmhello's avatar
wmmhello 已提交
6608 6609
  while(1){ /* Exit by "break" */
    assert( yypParser->yytos>=yypParser->yystack );
6610 6611 6612
    assert( yyact==yypParser->yytos->stateno );
    yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
    if( yyact >= YY_MIN_REDUCE ){
wmmhello's avatar
wmmhello 已提交
6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657
      unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */
      assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) );
#ifndef NDEBUG
      if( yyTraceFILE ){
        int yysize = yyRuleInfoNRhs[yyruleno];
        if( yysize ){
          fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
            yyTracePrompt,
            yyruleno, yyRuleName[yyruleno],
            yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
            yypParser->yytos[yysize].stateno);
        }else{
          fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
            yyTracePrompt, yyruleno, yyRuleName[yyruleno],
            yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
        }
      }
#endif /* NDEBUG */

      /* Check that the stack is large enough to grow by a single entry
      ** if the RHS of the rule is empty.  This ensures that there is room
      ** enough on the stack to push the LHS value */
      if( yyRuleInfoNRhs[yyruleno]==0 ){
#ifdef YYTRACKMAXSTACKDEPTH
        if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
          yypParser->yyhwm++;
          assert( yypParser->yyhwm ==
                  (int)(yypParser->yytos - yypParser->yystack));
        }
#endif
#if YYSTACKDEPTH>0 
        if( yypParser->yytos>=yypParser->yystackEnd ){
          yyStackOverflow(yypParser);
          break;
        }
#else
        if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
          if( yyGrowStack(yypParser) ){
            yyStackOverflow(yypParser);
            break;
          }
        }
#endif
      }
      yyact = yy_reduce(yypParser,yyruleno,yymajor,yyminor ParseCTX_PARAM);
6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712
    }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{
wmmhello's avatar
wmmhello 已提交
6713 6714 6715 6716
        while( yypParser->yytos > yypParser->yystack ){
          yyact = yy_find_reduce_action(yypParser->yytos->stateno,
                                        YYERRORSYMBOL);
          if( yyact<=YY_MAX_SHIFTREDUCE ) break;
6717 6718
          yy_pop_parser_stack(yypParser);
        }
wmmhello's avatar
wmmhello 已提交
6719
        if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){
6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768
          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
    }
wmmhello's avatar
wmmhello 已提交
6769
  }
6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788
#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.
*/
X
Xiaoyu Wang 已提交
6789
int ParseFallback(int iToken){
6790
#ifdef YYFALLBACK
D
dapan1121 已提交
6791 6792
  assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
  return yyFallback[iToken];
6793 6794
#else
  (void)iToken;
X
Xiaoyu Wang 已提交
6795
  return 0;
D
dapan1121 已提交
6796
#endif
6797
}