7973 lines
382 KiB
C
7973 lines
382 KiB
C
/* This file is automatically generated by Lemon from input grammar
|
|
** source file "sql.y". */
|
|
/*
|
|
** 2000-05-29
|
|
**
|
|
** The author disclaims copyright to this source code. In place of
|
|
** a legal notice, here is a blessing:
|
|
**
|
|
** May you do good and not evil.
|
|
** May you find forgiveness for yourself and forgive others.
|
|
** May you share freely, never taking more than you give.
|
|
**
|
|
*************************************************************************
|
|
** Driver template for the LEMON parser generator.
|
|
**
|
|
** The "lemon" program processes an LALR(1) input grammar file, then uses
|
|
** this template to construct a parser. The "lemon" program inserts text
|
|
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
|
|
** interstitial "-" characters) contained in this template is changed into
|
|
** the value of the %name directive from the grammar. Otherwise, the content
|
|
** of this template is copied straight through into the generate parser
|
|
** source file.
|
|
**
|
|
** The following is the concatenation of all %include directives from the
|
|
** input grammar file:
|
|
*/
|
|
/************ Begin %include sections from the grammar ************************/
|
|
#line 11 "sql.y"
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
|
|
#define ALLOW_FORBID_FUNC
|
|
|
|
#include "functionMgt.h"
|
|
#include "nodes.h"
|
|
#include "parToken.h"
|
|
#include "ttokendef.h"
|
|
#include "parAst.h"
|
|
|
|
#define YYSTACKDEPTH 0
|
|
#line 46 "sql.c"
|
|
/**************** End of %include directives **********************************/
|
|
/* These constants specify the various numeric values for terminal symbols.
|
|
***************** Begin token definitions *************************************/
|
|
#ifndef TK_OR
|
|
#define TK_OR 1
|
|
#define TK_AND 2
|
|
#define TK_UNION 3
|
|
#define TK_ALL 4
|
|
#define TK_MINUS 5
|
|
#define TK_EXCEPT 6
|
|
#define TK_INTERSECT 7
|
|
#define TK_NK_BITAND 8
|
|
#define TK_NK_BITOR 9
|
|
#define TK_NK_LSHIFT 10
|
|
#define TK_NK_RSHIFT 11
|
|
#define TK_NK_PLUS 12
|
|
#define TK_NK_MINUS 13
|
|
#define TK_NK_STAR 14
|
|
#define TK_NK_SLASH 15
|
|
#define TK_NK_REM 16
|
|
#define TK_NK_CONCAT 17
|
|
#define TK_CREATE 18
|
|
#define TK_ACCOUNT 19
|
|
#define TK_NK_ID 20
|
|
#define TK_PASS 21
|
|
#define TK_NK_STRING 22
|
|
#define TK_ALTER 23
|
|
#define TK_PPS 24
|
|
#define TK_TSERIES 25
|
|
#define TK_STORAGE 26
|
|
#define TK_STREAMS 27
|
|
#define TK_QTIME 28
|
|
#define TK_DBS 29
|
|
#define TK_USERS 30
|
|
#define TK_CONNS 31
|
|
#define TK_STATE 32
|
|
#define TK_NK_COMMA 33
|
|
#define TK_HOST 34
|
|
#define TK_USER 35
|
|
#define TK_ENABLE 36
|
|
#define TK_NK_INTEGER 37
|
|
#define TK_SYSINFO 38
|
|
#define TK_ADD 39
|
|
#define TK_DROP 40
|
|
#define TK_GRANT 41
|
|
#define TK_ON 42
|
|
#define TK_TO 43
|
|
#define TK_REVOKE 44
|
|
#define TK_FROM 45
|
|
#define TK_SUBSCRIBE 46
|
|
#define TK_READ 47
|
|
#define TK_WRITE 48
|
|
#define TK_NK_DOT 49
|
|
#define TK_WITH 50
|
|
#define TK_DNODE 51
|
|
#define TK_PORT 52
|
|
#define TK_DNODES 53
|
|
#define TK_RESTORE 54
|
|
#define TK_NK_IPTOKEN 55
|
|
#define TK_FORCE 56
|
|
#define TK_UNSAFE 57
|
|
#define TK_LOCAL 58
|
|
#define TK_QNODE 59
|
|
#define TK_BNODE 60
|
|
#define TK_SNODE 61
|
|
#define TK_MNODE 62
|
|
#define TK_VNODE 63
|
|
#define TK_DATABASE 64
|
|
#define TK_USE 65
|
|
#define TK_FLUSH 66
|
|
#define TK_TRIM 67
|
|
#define TK_COMPACT 68
|
|
#define TK_IF 69
|
|
#define TK_NOT 70
|
|
#define TK_EXISTS 71
|
|
#define TK_BUFFER 72
|
|
#define TK_CACHEMODEL 73
|
|
#define TK_CACHESIZE 74
|
|
#define TK_COMP 75
|
|
#define TK_DURATION 76
|
|
#define TK_NK_VARIABLE 77
|
|
#define TK_MAXROWS 78
|
|
#define TK_MINROWS 79
|
|
#define TK_KEEP 80
|
|
#define TK_PAGES 81
|
|
#define TK_PAGESIZE 82
|
|
#define TK_TSDB_PAGESIZE 83
|
|
#define TK_PRECISION 84
|
|
#define TK_REPLICA 85
|
|
#define TK_VGROUPS 86
|
|
#define TK_SINGLE_STABLE 87
|
|
#define TK_RETENTIONS 88
|
|
#define TK_SCHEMALESS 89
|
|
#define TK_WAL_LEVEL 90
|
|
#define TK_WAL_FSYNC_PERIOD 91
|
|
#define TK_WAL_RETENTION_PERIOD 92
|
|
#define TK_WAL_RETENTION_SIZE 93
|
|
#define TK_WAL_ROLL_PERIOD 94
|
|
#define TK_WAL_SEGMENT_SIZE 95
|
|
#define TK_STT_TRIGGER 96
|
|
#define TK_TABLE_PREFIX 97
|
|
#define TK_TABLE_SUFFIX 98
|
|
#define TK_KEEP_TIME_OFFSET 99
|
|
#define TK_NK_COLON 100
|
|
#define TK_BWLIMIT 101
|
|
#define TK_START 102
|
|
#define TK_TIMESTAMP 103
|
|
#define TK_END 104
|
|
#define TK_TABLE 105
|
|
#define TK_NK_LP 106
|
|
#define TK_NK_RP 107
|
|
#define TK_STABLE 108
|
|
#define TK_COLUMN 109
|
|
#define TK_MODIFY 110
|
|
#define TK_RENAME 111
|
|
#define TK_TAG 112
|
|
#define TK_SET 113
|
|
#define TK_NK_EQ 114
|
|
#define TK_USING 115
|
|
#define TK_TAGS 116
|
|
#define TK_BOOL 117
|
|
#define TK_TINYINT 118
|
|
#define TK_SMALLINT 119
|
|
#define TK_INT 120
|
|
#define TK_INTEGER 121
|
|
#define TK_BIGINT 122
|
|
#define TK_FLOAT 123
|
|
#define TK_DOUBLE 124
|
|
#define TK_BINARY 125
|
|
#define TK_NCHAR 126
|
|
#define TK_UNSIGNED 127
|
|
#define TK_JSON 128
|
|
#define TK_VARCHAR 129
|
|
#define TK_MEDIUMBLOB 130
|
|
#define TK_BLOB 131
|
|
#define TK_VARBINARY 132
|
|
#define TK_GEOMETRY 133
|
|
#define TK_DECIMAL 134
|
|
#define TK_COMMENT 135
|
|
#define TK_MAX_DELAY 136
|
|
#define TK_WATERMARK 137
|
|
#define TK_ROLLUP 138
|
|
#define TK_TTL 139
|
|
#define TK_SMA 140
|
|
#define TK_DELETE_MARK 141
|
|
#define TK_FIRST 142
|
|
#define TK_LAST 143
|
|
#define TK_SHOW 144
|
|
#define TK_PRIVILEGES 145
|
|
#define TK_DATABASES 146
|
|
#define TK_TABLES 147
|
|
#define TK_STABLES 148
|
|
#define TK_MNODES 149
|
|
#define TK_QNODES 150
|
|
#define TK_FUNCTIONS 151
|
|
#define TK_INDEXES 152
|
|
#define TK_ACCOUNTS 153
|
|
#define TK_APPS 154
|
|
#define TK_CONNECTIONS 155
|
|
#define TK_LICENCES 156
|
|
#define TK_GRANTS 157
|
|
#define TK_QUERIES 158
|
|
#define TK_SCORES 159
|
|
#define TK_TOPICS 160
|
|
#define TK_VARIABLES 161
|
|
#define TK_CLUSTER 162
|
|
#define TK_BNODES 163
|
|
#define TK_SNODES 164
|
|
#define TK_TRANSACTIONS 165
|
|
#define TK_DISTRIBUTED 166
|
|
#define TK_CONSUMERS 167
|
|
#define TK_SUBSCRIPTIONS 168
|
|
#define TK_VNODES 169
|
|
#define TK_ALIVE 170
|
|
#define TK_NORMAL 171
|
|
#define TK_CHILD 172
|
|
#define TK_LIKE 173
|
|
#define TK_TBNAME 174
|
|
#define TK_QTAGS 175
|
|
#define TK_AS 176
|
|
#define TK_SYSTEM 177
|
|
#define TK_INDEX 178
|
|
#define TK_FUNCTION 179
|
|
#define TK_INTERVAL 180
|
|
#define TK_COUNT 181
|
|
#define TK_LAST_ROW 182
|
|
#define TK_META 183
|
|
#define TK_ONLY 184
|
|
#define TK_TOPIC 185
|
|
#define TK_CONSUMER 186
|
|
#define TK_GROUP 187
|
|
#define TK_DESC 188
|
|
#define TK_DESCRIBE 189
|
|
#define TK_RESET 190
|
|
#define TK_QUERY 191
|
|
#define TK_CACHE 192
|
|
#define TK_EXPLAIN 193
|
|
#define TK_ANALYZE 194
|
|
#define TK_VERBOSE 195
|
|
#define TK_NK_BOOL 196
|
|
#define TK_RATIO 197
|
|
#define TK_NK_FLOAT 198
|
|
#define TK_OUTPUTTYPE 199
|
|
#define TK_AGGREGATE 200
|
|
#define TK_BUFSIZE 201
|
|
#define TK_LANGUAGE 202
|
|
#define TK_REPLACE 203
|
|
#define TK_STREAM 204
|
|
#define TK_INTO 205
|
|
#define TK_PAUSE 206
|
|
#define TK_RESUME 207
|
|
#define TK_TRIGGER 208
|
|
#define TK_AT_ONCE 209
|
|
#define TK_WINDOW_CLOSE 210
|
|
#define TK_IGNORE 211
|
|
#define TK_EXPIRED 212
|
|
#define TK_FILL_HISTORY 213
|
|
#define TK_UPDATE 214
|
|
#define TK_SUBTABLE 215
|
|
#define TK_UNTREATED 216
|
|
#define TK_KILL 217
|
|
#define TK_CONNECTION 218
|
|
#define TK_TRANSACTION 219
|
|
#define TK_BALANCE 220
|
|
#define TK_VGROUP 221
|
|
#define TK_LEADER 222
|
|
#define TK_MERGE 223
|
|
#define TK_REDISTRIBUTE 224
|
|
#define TK_SPLIT 225
|
|
#define TK_DELETE 226
|
|
#define TK_INSERT 227
|
|
#define TK_NULL 228
|
|
#define TK_NK_QUESTION 229
|
|
#define TK_NK_ARROW 230
|
|
#define TK_ROWTS 231
|
|
#define TK_QSTART 232
|
|
#define TK_QEND 233
|
|
#define TK_QDURATION 234
|
|
#define TK_WSTART 235
|
|
#define TK_WEND 236
|
|
#define TK_WDURATION 237
|
|
#define TK_IROWTS 238
|
|
#define TK_ISFILLED 239
|
|
#define TK_CAST 240
|
|
#define TK_NOW 241
|
|
#define TK_TODAY 242
|
|
#define TK_TIMEZONE 243
|
|
#define TK_CLIENT_VERSION 244
|
|
#define TK_SERVER_VERSION 245
|
|
#define TK_SERVER_STATUS 246
|
|
#define TK_CURRENT_USER 247
|
|
#define TK_CASE 248
|
|
#define TK_WHEN 249
|
|
#define TK_THEN 250
|
|
#define TK_ELSE 251
|
|
#define TK_BETWEEN 252
|
|
#define TK_IS 253
|
|
#define TK_NK_LT 254
|
|
#define TK_NK_GT 255
|
|
#define TK_NK_LE 256
|
|
#define TK_NK_GE 257
|
|
#define TK_NK_NE 258
|
|
#define TK_MATCH 259
|
|
#define TK_NMATCH 260
|
|
#define TK_CONTAINS 261
|
|
#define TK_IN 262
|
|
#define TK_JOIN 263
|
|
#define TK_INNER 264
|
|
#define TK_SELECT 265
|
|
#define TK_NK_HINT 266
|
|
#define TK_DISTINCT 267
|
|
#define TK_WHERE 268
|
|
#define TK_PARTITION 269
|
|
#define TK_BY 270
|
|
#define TK_SESSION 271
|
|
#define TK_STATE_WINDOW 272
|
|
#define TK_EVENT_WINDOW 273
|
|
#define TK_SLIDING 274
|
|
#define TK_FILL 275
|
|
#define TK_VALUE 276
|
|
#define TK_VALUE_F 277
|
|
#define TK_NONE 278
|
|
#define TK_PREV 279
|
|
#define TK_NULL_F 280
|
|
#define TK_LINEAR 281
|
|
#define TK_NEXT 282
|
|
#define TK_HAVING 283
|
|
#define TK_RANGE 284
|
|
#define TK_EVERY 285
|
|
#define TK_ORDER 286
|
|
#define TK_SLIMIT 287
|
|
#define TK_SOFFSET 288
|
|
#define TK_LIMIT 289
|
|
#define TK_OFFSET 290
|
|
#define TK_ASC 291
|
|
#define TK_NULLS 292
|
|
#define TK_ABORT 293
|
|
#define TK_AFTER 294
|
|
#define TK_ATTACH 295
|
|
#define TK_BEFORE 296
|
|
#define TK_BEGIN 297
|
|
#define TK_BITAND 298
|
|
#define TK_BITNOT 299
|
|
#define TK_BITOR 300
|
|
#define TK_BLOCKS 301
|
|
#define TK_CHANGE 302
|
|
#define TK_COMMA 303
|
|
#define TK_CONCAT 304
|
|
#define TK_CONFLICT 305
|
|
#define TK_COPY 306
|
|
#define TK_DEFERRED 307
|
|
#define TK_DELIMITERS 308
|
|
#define TK_DETACH 309
|
|
#define TK_DIVIDE 310
|
|
#define TK_DOT 311
|
|
#define TK_EACH 312
|
|
#define TK_FAIL 313
|
|
#define TK_FILE 314
|
|
#define TK_FOR 315
|
|
#define TK_GLOB 316
|
|
#define TK_ID 317
|
|
#define TK_IMMEDIATE 318
|
|
#define TK_IMPORT 319
|
|
#define TK_INITIALLY 320
|
|
#define TK_INSTEAD 321
|
|
#define TK_ISNULL 322
|
|
#define TK_KEY 323
|
|
#define TK_MODULES 324
|
|
#define TK_NK_BITNOT 325
|
|
#define TK_NK_SEMI 326
|
|
#define TK_NOTNULL 327
|
|
#define TK_OF 328
|
|
#define TK_PLUS 329
|
|
#define TK_PRIVILEGE 330
|
|
#define TK_RAISE 331
|
|
#define TK_RESTRICT 332
|
|
#define TK_ROW 333
|
|
#define TK_SEMI 334
|
|
#define TK_STAR 335
|
|
#define TK_STATEMENT 336
|
|
#define TK_STRICT 337
|
|
#define TK_STRING 338
|
|
#define TK_TIMES 339
|
|
#define TK_VALUES 340
|
|
#define TK_VARIABLE 341
|
|
#define TK_VIEW 342
|
|
#define TK_WAL 343
|
|
#endif
|
|
/**************** End token definitions ***************************************/
|
|
|
|
/* The next sections is a series of control #defines.
|
|
** various aspects of the generated parser.
|
|
** YYCODETYPE is the data type used to store the integer codes
|
|
** that represent terminal and non-terminal symbols.
|
|
** "unsigned char" is used if there are fewer than
|
|
** 256 symbols. Larger types otherwise.
|
|
** YYNOCODE is a number of type YYCODETYPE that is not used for
|
|
** any terminal or nonterminal symbol.
|
|
** YYFALLBACK If defined, this indicates that one or more tokens
|
|
** (also known as: "terminal symbols") have fall-back
|
|
** values which should be used if the original symbol
|
|
** would not parse. This permits keywords to sometimes
|
|
** be used as identifiers, for example.
|
|
** YYACTIONTYPE is the data type used for "action codes" - numbers
|
|
** that indicate what to do in response to the next
|
|
** token.
|
|
** ParseTOKENTYPE is the data type used for minor type for terminal
|
|
** symbols. Background: A "minor type" is a semantic
|
|
** value associated with a terminal or non-terminal
|
|
** symbols. For example, for an "ID" terminal symbol,
|
|
** the minor type might be the name of the identifier.
|
|
** Each non-terminal can have a different minor type.
|
|
** Terminal symbols all have the same minor type, though.
|
|
** This macros defines the minor type for terminal
|
|
** symbols.
|
|
** YYMINORTYPE is the data type used for all minor types.
|
|
** This is typically a union of many types, one of
|
|
** which is ParseTOKENTYPE. The entry in the union
|
|
** for terminal symbols is called "yy0".
|
|
** YYSTACKDEPTH is the maximum depth of the parser's stack. If
|
|
** zero the stack is dynamically sized using realloc()
|
|
** ParseARG_SDECL A static variable declaration for the %extra_argument
|
|
** ParseARG_PDECL A parameter declaration for the %extra_argument
|
|
** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter
|
|
** ParseARG_STORE Code to store %extra_argument into yypParser
|
|
** ParseARG_FETCH Code to extract %extra_argument from yypParser
|
|
** ParseCTX_* As ParseARG_ except for %extra_context
|
|
** YYERRORSYMBOL is the code number of the error symbol. If not
|
|
** defined, then do no error processing.
|
|
** YYNSTATE the combined number of states.
|
|
** YYNRULE the number of rules in the grammar
|
|
** YYNTOKEN Number of terminal symbols
|
|
** YY_MAX_SHIFT Maximum value for shift actions
|
|
** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions
|
|
** YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions
|
|
** YY_ERROR_ACTION The yy_action[] code for syntax error
|
|
** YY_ACCEPT_ACTION The yy_action[] code for accept
|
|
** YY_NO_ACTION The yy_action[] code for no-op
|
|
** YY_MIN_REDUCE Minimum value for reduce actions
|
|
** YY_MAX_REDUCE Maximum value for reduce actions
|
|
*/
|
|
#ifndef INTERFACE
|
|
# define INTERFACE 1
|
|
#endif
|
|
/************* Begin control #defines *****************************************/
|
|
#define YYCODETYPE unsigned short int
|
|
#define YYNOCODE 502
|
|
#define YYACTIONTYPE unsigned short int
|
|
#define ParseTOKENTYPE SToken
|
|
typedef union {
|
|
int yyinit;
|
|
ParseTOKENTYPE yy0;
|
|
int32_t yy88;
|
|
EJoinType yy184;
|
|
SAlterOption yy233;
|
|
SToken yy269;
|
|
bool yy345;
|
|
SNode* yy348;
|
|
EShowKind yy361;
|
|
int8_t yy371;
|
|
int64_t yy537;
|
|
EOperatorType yy696;
|
|
SDataType yy720;
|
|
SShowTablesOption yy749;
|
|
EFillMode yy758;
|
|
ENullOrder yy841;
|
|
SNodeList* yy860;
|
|
EOrder yy870;
|
|
STokenPair yy993;
|
|
} YYMINORTYPE;
|
|
#ifndef YYSTACKDEPTH
|
|
#define YYSTACKDEPTH 100
|
|
#endif
|
|
#define ParseARG_SDECL SAstCreateContext* pCxt ;
|
|
#define ParseARG_PDECL , SAstCreateContext* pCxt
|
|
#define ParseARG_PARAM ,pCxt
|
|
#define ParseARG_FETCH SAstCreateContext* pCxt =yypParser->pCxt ;
|
|
#define ParseARG_STORE yypParser->pCxt =pCxt ;
|
|
#define ParseCTX_SDECL
|
|
#define ParseCTX_PDECL
|
|
#define ParseCTX_PARAM
|
|
#define ParseCTX_FETCH
|
|
#define ParseCTX_STORE
|
|
#define YYFALLBACK 1
|
|
#define YYNSTATE 820
|
|
#define YYNRULE 624
|
|
#define YYNRULE_WITH_ACTION 624
|
|
#define YYNTOKEN 344
|
|
#define YY_MAX_SHIFT 819
|
|
#define YY_MIN_SHIFTREDUCE 1211
|
|
#define YY_MAX_SHIFTREDUCE 1834
|
|
#define YY_ERROR_ACTION 1835
|
|
#define YY_ACCEPT_ACTION 1836
|
|
#define YY_NO_ACTION 1837
|
|
#define YY_MIN_REDUCE 1838
|
|
#define YY_MAX_REDUCE 2461
|
|
/************* End control #defines *******************************************/
|
|
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))
|
|
|
|
/* Define the yytestcase() macro to be a no-op if is not already defined
|
|
** otherwise.
|
|
**
|
|
** Applications can choose to define yytestcase() in the %include section
|
|
** to a macro that can assist in verifying code coverage. For production
|
|
** code the yytestcase() macro should be turned off. But it is useful
|
|
** for testing.
|
|
*/
|
|
#ifndef yytestcase
|
|
# define yytestcase(X)
|
|
#endif
|
|
|
|
|
|
/* Next are the tables used to determine what action to take based on the
|
|
** current state and lookahead token. These tables are used to implement
|
|
** functions that take a state number and lookahead value and return an
|
|
** action integer.
|
|
**
|
|
** Suppose the action integer is N. Then the action is determined as
|
|
** follows
|
|
**
|
|
** 0 <= N <= YY_MAX_SHIFT Shift N. That is, push the lookahead
|
|
** token onto the stack and goto state N.
|
|
**
|
|
** N between YY_MIN_SHIFTREDUCE Shift to an arbitrary state then
|
|
** and YY_MAX_SHIFTREDUCE reduce by rule N-YY_MIN_SHIFTREDUCE.
|
|
**
|
|
** N == YY_ERROR_ACTION A syntax error has occurred.
|
|
**
|
|
** N == YY_ACCEPT_ACTION The parser accepts its input.
|
|
**
|
|
** N == YY_NO_ACTION No such action. Denotes unused
|
|
** slots in the yy_action[] table.
|
|
**
|
|
** N between YY_MIN_REDUCE Reduce by rule N-YY_MIN_REDUCE
|
|
** and YY_MAX_REDUCE
|
|
**
|
|
** The action table is constructed as a single large table named yy_action[].
|
|
** Given state S and lookahead X, the action is computed as either:
|
|
**
|
|
** (A) N = yy_action[ yy_shift_ofst[S] + X ]
|
|
** (B) N = yy_default[S]
|
|
**
|
|
** The (A) formula is preferred. The B formula is used instead if
|
|
** yy_lookahead[yy_shift_ofst[S]+X] is not equal to X.
|
|
**
|
|
** The formulas above are for computing the action when the lookahead is
|
|
** a terminal symbol. If the lookahead is a non-terminal (as occurs after
|
|
** a reduce action) then the yy_reduce_ofst[] array is used in place of
|
|
** the yy_shift_ofst[] array.
|
|
**
|
|
** The following are the tables generated in this section:
|
|
**
|
|
** yy_action[] A single table containing all actions.
|
|
** yy_lookahead[] A table containing the lookahead for each entry in
|
|
** yy_action. Used to detect hash collisions.
|
|
** yy_shift_ofst[] For each state, the offset into yy_action for
|
|
** shifting terminals.
|
|
** yy_reduce_ofst[] For each state, the offset into yy_action for
|
|
** shifting non-terminals after a reduce.
|
|
** yy_default[] Default action for each state.
|
|
**
|
|
*********** Begin parsing tables **********************************************/
|
|
#define YY_ACTTAB_COUNT (3215)
|
|
static const YYACTIONTYPE yy_action[] = {
|
|
/* 0 */ 403, 707, 2024, 412, 674, 2217, 2437, 2432, 167, 2432,
|
|
/* 10 */ 2199, 164, 48, 46, 1761, 463, 2026, 668, 391, 2026,
|
|
/* 20 */ 409, 133, 1606, 1839, 673, 189, 2075, 2436, 590, 2433,
|
|
/* 30 */ 675, 2433, 2435, 418, 417, 1687, 1921, 1604, 47, 45,
|
|
/* 40 */ 44, 43, 42, 1758, 123, 2286, 2268, 122, 121, 120,
|
|
/* 50 */ 119, 118, 117, 116, 115, 114, 686, 142, 1613, 689,
|
|
/* 60 */ 515, 513, 260, 361, 1682, 1838, 1631, 203, 548, 706,
|
|
/* 70 */ 19, 549, 1881, 1836, 2246, 123, 2371, 1612, 122, 121,
|
|
/* 80 */ 120, 119, 118, 117, 116, 115, 114, 2286, 2015, 132,
|
|
/* 90 */ 131, 130, 129, 128, 127, 126, 125, 124, 2250, 2236,
|
|
/* 100 */ 1632, 723, 2368, 816, 667, 706, 15, 553, 791, 790,
|
|
/* 110 */ 789, 788, 421, 550, 787, 786, 146, 781, 780, 779,
|
|
/* 120 */ 778, 777, 776, 775, 158, 771, 770, 769, 420, 419,
|
|
/* 130 */ 766, 765, 764, 177, 176, 763, 1631, 182, 2267, 648,
|
|
/* 140 */ 2252, 2303, 1689, 1690, 110, 2269, 727, 2271, 2272, 722,
|
|
/* 150 */ 717, 717, 424, 707, 2024, 51, 186, 423, 2356, 377,
|
|
/* 160 */ 2436, 2135, 405, 2352, 292, 2364, 685, 62, 134, 684,
|
|
/* 170 */ 563, 2432, 2155, 133, 1662, 1672, 2437, 191, 706, 2432,
|
|
/* 180 */ 595, 1688, 1691, 185, 67, 2386, 1765, 402, 673, 189,
|
|
/* 190 */ 2152, 694, 1631, 2433, 675, 2064, 1607, 2436, 1605, 625,
|
|
/* 200 */ 649, 2433, 2434, 2432, 556, 41, 40, 549, 1881, 47,
|
|
/* 210 */ 45, 44, 43, 42, 623, 1632, 621, 255, 254, 1616,
|
|
/* 220 */ 2438, 189, 1530, 1531, 1697, 2433, 675, 196, 1610, 1611,
|
|
/* 230 */ 1631, 1661, 1664, 1665, 1666, 1667, 1668, 1669, 1670, 1671,
|
|
/* 240 */ 719, 715, 1680, 1681, 1683, 1684, 1685, 1686, 2, 48,
|
|
/* 250 */ 46, 2155, 169, 1631, 360, 2268, 1629, 409, 2437, 1606,
|
|
/* 260 */ 1964, 1529, 1532, 500, 51, 60, 518, 369, 724, 2153,
|
|
/* 270 */ 694, 517, 1687, 646, 1604, 1633, 41, 40, 2077, 182,
|
|
/* 280 */ 47, 45, 44, 43, 42, 390, 62, 483, 1634, 519,
|
|
/* 290 */ 1510, 1511, 1251, 2075, 485, 414, 2286, 2077, 2070, 2072,
|
|
/* 300 */ 456, 1682, 1411, 2136, 399, 455, 1757, 19, 2236, 224,
|
|
/* 310 */ 723, 1716, 2075, 551, 1612, 1888, 1402, 752, 751, 750,
|
|
/* 320 */ 1406, 749, 1408, 1409, 748, 745, 296, 1417, 742, 1419,
|
|
/* 330 */ 1420, 739, 736, 733, 1253, 1256, 1257, 1446, 1447, 62,
|
|
/* 340 */ 816, 378, 1276, 15, 1275, 2002, 1663, 2267, 649, 1861,
|
|
/* 350 */ 2303, 2432, 471, 110, 2269, 727, 2271, 2272, 722, 138,
|
|
/* 360 */ 717, 567, 1824, 145, 1860, 151, 2327, 2356, 2438, 189,
|
|
/* 370 */ 1717, 405, 2352, 2433, 675, 469, 2131, 1277, 147, 1689,
|
|
/* 380 */ 1690, 52, 2142, 2121, 1663, 507, 506, 505, 504, 499,
|
|
/* 390 */ 498, 497, 496, 495, 491, 490, 489, 488, 359, 480,
|
|
/* 400 */ 479, 478, 2236, 473, 472, 376, 2371, 1498, 1499, 664,
|
|
/* 410 */ 226, 1662, 1672, 1517, 551, 1366, 1888, 2236, 1688, 1691,
|
|
/* 420 */ 259, 41, 40, 296, 205, 47, 45, 44, 43, 42,
|
|
/* 430 */ 1365, 294, 2367, 1607, 1924, 1605, 760, 156, 155, 757,
|
|
/* 440 */ 756, 755, 153, 677, 272, 296, 30, 707, 2024, 37,
|
|
/* 450 */ 407, 1711, 1712, 1713, 1714, 1715, 1719, 1720, 1721, 1722,
|
|
/* 460 */ 170, 564, 1850, 686, 142, 1610, 1611, 194, 1661, 1664,
|
|
/* 470 */ 1665, 1666, 1667, 1668, 1669, 1670, 1671, 719, 715, 1680,
|
|
/* 480 */ 1681, 1683, 1684, 1685, 1686, 2, 12, 48, 46, 707,
|
|
/* 490 */ 2024, 2268, 669, 1575, 1576, 409, 520, 1606, 296, 594,
|
|
/* 500 */ 670, 665, 658, 593, 689, 1633, 609, 608, 607, 56,
|
|
/* 510 */ 1687, 1859, 1604, 599, 139, 603, 2077, 565, 2148, 602,
|
|
/* 520 */ 1801, 91, 1631, 375, 601, 606, 385, 384, 14, 13,
|
|
/* 530 */ 600, 2075, 2286, 596, 686, 142, 707, 2024, 379, 1682,
|
|
/* 540 */ 296, 609, 608, 607, 2236, 19, 723, 2019, 599, 139,
|
|
/* 550 */ 603, 12, 1612, 10, 602, 167, 460, 707, 2024, 601,
|
|
/* 560 */ 606, 385, 384, 2027, 2236, 600, 475, 2131, 596, 762,
|
|
/* 570 */ 688, 187, 2364, 2365, 634, 140, 2369, 461, 816, 38,
|
|
/* 580 */ 313, 15, 2268, 2267, 258, 1606, 2303, 12, 257, 110,
|
|
/* 590 */ 2269, 727, 2271, 2272, 722, 724, 717, 1890, 1259, 674,
|
|
/* 600 */ 1604, 186, 2432, 2356, 1630, 41, 40, 405, 2352, 47,
|
|
/* 610 */ 45, 44, 43, 42, 108, 208, 2108, 1689, 1690, 673,
|
|
/* 620 */ 189, 707, 2024, 2286, 2433, 675, 1858, 2229, 707, 2024,
|
|
/* 630 */ 2387, 143, 1908, 1857, 1730, 2236, 1856, 723, 2077, 2016,
|
|
/* 640 */ 1612, 477, 188, 2364, 2365, 404, 140, 2369, 492, 1662,
|
|
/* 650 */ 1672, 545, 94, 2075, 610, 364, 1688, 1691, 389, 543,
|
|
/* 660 */ 627, 294, 539, 535, 383, 382, 816, 2001, 707, 2024,
|
|
/* 670 */ 1276, 1607, 1275, 1605, 2267, 649, 1663, 2303, 2432, 2236,
|
|
/* 680 */ 110, 2269, 727, 2271, 2272, 722, 2236, 717, 493, 2236,
|
|
/* 690 */ 502, 2131, 2452, 1355, 2356, 2438, 189, 1612, 405, 2352,
|
|
/* 700 */ 2433, 675, 1789, 1610, 1611, 1277, 1661, 1664, 1665, 1666,
|
|
/* 710 */ 1667, 1668, 1669, 1670, 1671, 719, 715, 1680, 1681, 1683,
|
|
/* 720 */ 1684, 1685, 1686, 2, 48, 46, 1692, 2268, 707, 2024,
|
|
/* 730 */ 2077, 2077, 409, 1357, 1606, 381, 380, 413, 592, 213,
|
|
/* 740 */ 724, 1999, 2394, 707, 2024, 2075, 693, 1687, 566, 1604,
|
|
/* 750 */ 661, 660, 1787, 1788, 1790, 1791, 1792, 686, 142, 1607,
|
|
/* 760 */ 594, 1605, 753, 2021, 593, 41, 40, 2371, 2286, 47,
|
|
/* 770 */ 45, 44, 43, 42, 707, 2024, 1682, 487, 707, 2024,
|
|
/* 780 */ 2236, 1370, 723, 304, 305, 1831, 486, 1855, 303, 1612,
|
|
/* 790 */ 773, 1610, 1611, 2366, 261, 91, 1369, 2268, 269, 44,
|
|
/* 800 */ 43, 42, 760, 156, 155, 757, 756, 755, 153, 102,
|
|
/* 810 */ 724, 709, 2407, 2328, 62, 816, 707, 2024, 49, 2267,
|
|
/* 820 */ 2268, 2020, 2303, 2071, 2072, 110, 2269, 727, 2271, 2272,
|
|
/* 830 */ 722, 444, 717, 724, 2017, 656, 692, 2452, 2286, 2356,
|
|
/* 840 */ 2236, 41, 40, 405, 2352, 47, 45, 44, 43, 42,
|
|
/* 850 */ 2236, 711, 723, 2328, 1689, 1690, 1279, 1280, 446, 442,
|
|
/* 860 */ 2000, 2286, 522, 1854, 1800, 190, 2364, 2365, 2013, 140,
|
|
/* 870 */ 2369, 586, 585, 2236, 319, 723, 760, 156, 155, 757,
|
|
/* 880 */ 756, 755, 153, 210, 707, 2024, 1662, 1672, 1830, 2267,
|
|
/* 890 */ 588, 587, 2303, 1688, 1691, 110, 2269, 727, 2271, 2272,
|
|
/* 900 */ 722, 2009, 717, 454, 308, 453, 1634, 2452, 1607, 2356,
|
|
/* 910 */ 1605, 1899, 2267, 405, 2352, 2303, 2236, 2011, 110, 2269,
|
|
/* 920 */ 727, 2271, 2272, 722, 87, 717, 412, 86, 1853, 762,
|
|
/* 930 */ 2452, 2230, 2356, 612, 167, 452, 405, 2352, 1852, 509,
|
|
/* 940 */ 1610, 1611, 2026, 1661, 1664, 1665, 1666, 1667, 1668, 1669,
|
|
/* 950 */ 1670, 1671, 719, 715, 1680, 1681, 1683, 1684, 1685, 1686,
|
|
/* 960 */ 2, 48, 46, 2246, 2007, 2268, 1849, 605, 604, 409,
|
|
/* 970 */ 2077, 1606, 2028, 296, 785, 783, 1634, 2255, 724, 649,
|
|
/* 980 */ 2425, 2236, 2432, 614, 1687, 702, 1604, 2250, 9, 41,
|
|
/* 990 */ 40, 2236, 1848, 47, 45, 44, 43, 42, 626, 2438,
|
|
/* 1000 */ 189, 214, 707, 2024, 2433, 675, 2286, 1718, 144, 166,
|
|
/* 1010 */ 678, 2327, 754, 1682, 256, 2068, 707, 2024, 2236, 2236,
|
|
/* 1020 */ 723, 34, 704, 508, 707, 2024, 1612, 41, 40, 2252,
|
|
/* 1030 */ 617, 47, 45, 44, 43, 42, 705, 611, 415, 717,
|
|
/* 1040 */ 1847, 707, 2024, 253, 314, 2236, 167, 632, 758, 265,
|
|
/* 1050 */ 1846, 2068, 816, 718, 2026, 49, 2268, 2267, 681, 2246,
|
|
/* 1060 */ 2303, 416, 206, 110, 2269, 727, 2271, 2272, 722, 724,
|
|
/* 1070 */ 717, 2375, 714, 2254, 1845, 2452, 1844, 2356, 1866, 811,
|
|
/* 1080 */ 1851, 405, 2352, 2250, 71, 2220, 35, 70, 1777, 1843,
|
|
/* 1090 */ 1842, 1689, 1690, 2236, 36, 649, 1723, 2286, 2432, 1841,
|
|
/* 1100 */ 41, 40, 690, 2236, 47, 45, 44, 43, 42, 2236,
|
|
/* 1110 */ 629, 723, 628, 2077, 759, 2438, 189, 2068, 268, 328,
|
|
/* 1120 */ 2433, 675, 2054, 1662, 1672, 2252, 406, 2236, 2076, 2236,
|
|
/* 1130 */ 1688, 1691, 271, 41, 40, 717, 431, 47, 45, 44,
|
|
/* 1140 */ 43, 42, 2236, 2236, 154, 1607, 774, 1605, 2267, 1986,
|
|
/* 1150 */ 649, 2303, 2236, 2432, 110, 2269, 727, 2271, 2272, 722,
|
|
/* 1160 */ 154, 717, 1256, 1257, 2376, 1750, 2452, 3, 2356, 2118,
|
|
/* 1170 */ 2438, 189, 405, 2352, 75, 2433, 675, 1610, 1611, 54,
|
|
/* 1180 */ 1661, 1664, 1665, 1666, 1667, 1668, 1669, 1670, 1671, 719,
|
|
/* 1190 */ 715, 1680, 1681, 1683, 1684, 1685, 1686, 2, 48, 46,
|
|
/* 1200 */ 135, 597, 2268, 598, 246, 154, 409, 244, 1606, 1897,
|
|
/* 1210 */ 1750, 467, 84, 248, 250, 724, 247, 249, 1570, 252,
|
|
/* 1220 */ 270, 1687, 251, 1604, 85, 1352, 2257, 1350, 1833, 1834,
|
|
/* 1230 */ 1708, 615, 50, 1310, 55, 2268, 50, 276, 1615, 154,
|
|
/* 1240 */ 1965, 14, 13, 2286, 107, 1614, 50, 301, 721, 72,
|
|
/* 1250 */ 1682, 152, 154, 104, 2400, 2236, 289, 723, 65, 662,
|
|
/* 1260 */ 137, 283, 767, 1612, 95, 679, 1962, 768, 1961, 50,
|
|
/* 1270 */ 50, 731, 1891, 1311, 392, 152, 2286, 154, 422, 1573,
|
|
/* 1280 */ 136, 152, 2287, 2259, 2140, 1882, 1329, 2390, 2236, 816,
|
|
/* 1290 */ 723, 1327, 15, 1887, 2267, 2065, 687, 2303, 291, 5,
|
|
/* 1300 */ 110, 2269, 727, 2271, 2272, 722, 1786, 717, 288, 425,
|
|
/* 1310 */ 1785, 278, 2331, 691, 2356, 682, 430, 373, 405, 2352,
|
|
/* 1320 */ 1527, 306, 295, 699, 809, 310, 1396, 2267, 1689, 1690,
|
|
/* 1330 */ 2303, 438, 1724, 350, 2269, 727, 2271, 2272, 722, 720,
|
|
/* 1340 */ 717, 708, 2321, 1673, 327, 1424, 439, 168, 1637, 1428,
|
|
/* 1350 */ 448, 1435, 335, 447, 1433, 157, 197, 198, 450, 200,
|
|
/* 1360 */ 1662, 1672, 1551, 322, 1629, 464, 1630, 1688, 1691, 332,
|
|
/* 1370 */ 74, 468, 212, 73, 470, 1634, 2141, 474, 476, 481,
|
|
/* 1380 */ 511, 494, 1607, 357, 1605, 503, 501, 2133, 510, 512,
|
|
/* 1390 */ 523, 217, 524, 521, 222, 530, 528, 525, 216, 1618,
|
|
/* 1400 */ 526, 219, 529, 527, 531, 1635, 1617, 546, 4, 547,
|
|
/* 1410 */ 555, 554, 227, 557, 1610, 1611, 1632, 1661, 1664, 1665,
|
|
/* 1420 */ 1666, 1667, 1668, 1669, 1670, 1671, 719, 715, 1680, 1681,
|
|
/* 1430 */ 1683, 1684, 1685, 1686, 2, 62, 418, 417, 558, 229,
|
|
/* 1440 */ 1636, 559, 1638, 560, 232, 562, 1620, 234, 1639, 89,
|
|
/* 1450 */ 2149, 90, 568, 589, 591, 239, 2014, 243, 2010, 1687,
|
|
/* 1460 */ 245, 1613, 160, 161, 618, 2012, 2008, 112, 619, 354,
|
|
/* 1470 */ 162, 2268, 631, 63, 633, 93, 163, 637, 262, 636,
|
|
/* 1480 */ 323, 148, 638, 264, 724, 266, 642, 1558, 1682, 2208,
|
|
/* 1490 */ 2205, 2204, 644, 8, 2406, 663, 641, 643, 653, 659,
|
|
/* 1500 */ 697, 1612, 395, 2405, 672, 284, 666, 2268, 2378, 2391,
|
|
/* 1510 */ 2401, 652, 2286, 282, 654, 285, 396, 82, 81, 459,
|
|
/* 1520 */ 724, 274, 202, 175, 2236, 277, 723, 713, 651, 1633,
|
|
/* 1530 */ 286, 2455, 683, 287, 2431, 451, 449, 680, 2268, 141,
|
|
/* 1540 */ 1750, 1755, 290, 1753, 2372, 179, 358, 297, 2286, 440,
|
|
/* 1550 */ 324, 724, 437, 433, 429, 426, 452, 695, 149, 696,
|
|
/* 1560 */ 2236, 2163, 723, 2267, 2162, 2161, 2303, 325, 700, 110,
|
|
/* 1570 */ 2269, 727, 2271, 2272, 722, 401, 717, 701, 150, 2286,
|
|
/* 1580 */ 61, 2329, 326, 2356, 2337, 103, 729, 405, 2352, 101,
|
|
/* 1590 */ 1, 2236, 2025, 723, 296, 192, 317, 2069, 329, 2267,
|
|
/* 1600 */ 1987, 1235, 2303, 2268, 813, 110, 2269, 727, 2271, 2272,
|
|
/* 1610 */ 722, 810, 717, 159, 815, 338, 724, 710, 331, 2356,
|
|
/* 1620 */ 1621, 353, 1616, 405, 2352, 333, 2228, 53, 352, 2227,
|
|
/* 1630 */ 2267, 2226, 79, 2303, 365, 342, 111, 2269, 727, 2271,
|
|
/* 1640 */ 2272, 722, 2221, 717, 2286, 427, 1597, 366, 428, 1598,
|
|
/* 1650 */ 2356, 195, 1624, 1626, 2355, 2352, 2236, 2219, 723, 432,
|
|
/* 1660 */ 434, 435, 436, 2218, 1596, 715, 1680, 1681, 1683, 1684,
|
|
/* 1670 */ 1685, 1686, 374, 2216, 441, 2215, 443, 2268, 2214, 1586,
|
|
/* 1680 */ 445, 2195, 199, 2194, 201, 1554, 80, 1553, 2176, 2175,
|
|
/* 1690 */ 724, 2174, 457, 2173, 458, 2267, 2172, 2123, 2303, 462,
|
|
/* 1700 */ 2268, 111, 2269, 727, 2271, 2272, 722, 1497, 717, 2117,
|
|
/* 1710 */ 466, 465, 2114, 724, 204, 2356, 83, 2112, 2286, 712,
|
|
/* 1720 */ 2352, 2113, 2111, 2116, 2115, 207, 2110, 2109, 2107, 2106,
|
|
/* 1730 */ 2236, 209, 723, 2105, 482, 2104, 484, 2120, 2103, 2102,
|
|
/* 1740 */ 2101, 2286, 2100, 2099, 2098, 2097, 2096, 2095, 2094, 2093,
|
|
/* 1750 */ 2092, 2091, 2090, 2236, 2089, 723, 211, 2088, 88, 2087,
|
|
/* 1760 */ 2086, 2085, 2119, 2084, 2083, 215, 2081, 514, 2268, 725,
|
|
/* 1770 */ 2082, 2080, 2303, 516, 2079, 111, 2269, 727, 2271, 2272,
|
|
/* 1780 */ 722, 724, 717, 2268, 2078, 1927, 362, 1503, 1926, 2356,
|
|
/* 1790 */ 1367, 1371, 2267, 368, 2352, 2303, 724, 1925, 171, 2269,
|
|
/* 1800 */ 727, 2271, 2272, 722, 1363, 717, 363, 1923, 1920, 2286,
|
|
/* 1810 */ 532, 1919, 1912, 536, 534, 1901, 540, 218, 544, 220,
|
|
/* 1820 */ 1877, 2236, 221, 723, 2286, 538, 533, 223, 241, 537,
|
|
/* 1830 */ 1258, 541, 542, 77, 183, 2256, 2236, 1876, 723, 2193,
|
|
/* 1840 */ 650, 2397, 225, 2183, 174, 184, 78, 552, 2171, 2268,
|
|
/* 1850 */ 2170, 231, 584, 580, 576, 572, 233, 240, 2147, 236,
|
|
/* 1860 */ 2267, 2003, 724, 2303, 1922, 1918, 172, 2269, 727, 2271,
|
|
/* 1870 */ 2272, 722, 569, 717, 1303, 2267, 570, 1916, 2303, 573,
|
|
/* 1880 */ 571, 111, 2269, 727, 2271, 2272, 722, 574, 717, 575,
|
|
/* 1890 */ 2286, 1914, 577, 579, 1911, 2356, 578, 581, 92, 583,
|
|
/* 1900 */ 2353, 238, 2236, 582, 723, 1896, 1894, 1895, 1893, 1873,
|
|
/* 1910 */ 2005, 1440, 242, 2004, 2268, 1439, 64, 1354, 1353, 676,
|
|
/* 1920 */ 2453, 1351, 1349, 1348, 1347, 1346, 1345, 724, 782, 2268,
|
|
/* 1930 */ 784, 1909, 1900, 1342, 1340, 1341, 1339, 1898, 386, 387,
|
|
/* 1940 */ 388, 2267, 724, 613, 2303, 1872, 1871, 171, 2269, 727,
|
|
/* 1950 */ 2271, 2272, 722, 1870, 717, 2286, 616, 620, 1869, 622,
|
|
/* 1960 */ 393, 1868, 624, 113, 1580, 1582, 1579, 2236, 29, 723,
|
|
/* 1970 */ 2286, 237, 230, 1584, 2192, 394, 68, 1562, 235, 561,
|
|
/* 1980 */ 1564, 57, 2236, 2182, 723, 2268, 1560, 639, 165, 640,
|
|
/* 1990 */ 2398, 2169, 2168, 267, 1539, 1538, 2437, 228, 724, 20,
|
|
/* 2000 */ 645, 6, 17, 281, 647, 21, 2267, 31, 273, 2303,
|
|
/* 2010 */ 1803, 275, 351, 2269, 727, 2271, 2272, 722, 655, 717,
|
|
/* 2020 */ 7, 2267, 22, 657, 2303, 2257, 2286, 351, 2269, 727,
|
|
/* 2030 */ 2271, 2272, 722, 1784, 717, 280, 173, 33, 2236, 279,
|
|
/* 2040 */ 723, 32, 66, 1776, 96, 24, 1823, 1818, 2268, 1824,
|
|
/* 2050 */ 1817, 397, 1822, 1821, 398, 293, 59, 23, 58, 1747,
|
|
/* 2060 */ 178, 724, 18, 2268, 1746, 2167, 2146, 98, 97, 25,
|
|
/* 2070 */ 2145, 300, 698, 99, 1782, 302, 724, 2267, 2268, 307,
|
|
/* 2080 */ 2303, 69, 312, 344, 2269, 727, 2271, 2272, 722, 2286,
|
|
/* 2090 */ 717, 721, 104, 100, 26, 13, 11, 1622, 1699, 1698,
|
|
/* 2100 */ 1709, 2236, 309, 723, 2286, 2306, 180, 1677, 1675, 400,
|
|
/* 2110 */ 1674, 716, 193, 39, 16, 27, 2236, 1654, 723, 2286,
|
|
/* 2120 */ 730, 411, 734, 737, 740, 1646, 28, 732, 671, 1425,
|
|
/* 2130 */ 726, 2236, 735, 723, 1422, 728, 1421, 1418, 738, 743,
|
|
/* 2140 */ 2267, 2268, 741, 2303, 1412, 1410, 172, 2269, 727, 2271,
|
|
/* 2150 */ 2272, 722, 744, 717, 724, 2267, 746, 747, 2303, 105,
|
|
/* 2160 */ 315, 351, 2269, 727, 2271, 2272, 722, 1416, 717, 1415,
|
|
/* 2170 */ 2267, 2268, 1414, 2303, 1413, 106, 350, 2269, 727, 2271,
|
|
/* 2180 */ 2272, 722, 2286, 717, 724, 2322, 1434, 408, 76, 1430,
|
|
/* 2190 */ 1336, 1301, 761, 1333, 2236, 1332, 723, 1331, 635, 1330,
|
|
/* 2200 */ 2454, 1328, 1326, 1325, 772, 1324, 1361, 316, 1322, 1321,
|
|
/* 2210 */ 1320, 1319, 2286, 1318, 1317, 1316, 819, 410, 1358, 1356,
|
|
/* 2220 */ 1313, 1312, 1307, 1309, 2236, 1308, 723, 1306, 1917, 792,
|
|
/* 2230 */ 793, 1915, 321, 2267, 1913, 794, 2303, 798, 796, 351,
|
|
/* 2240 */ 2269, 727, 2271, 2272, 722, 797, 717, 800, 181, 801,
|
|
/* 2250 */ 802, 1910, 804, 805, 806, 1892, 807, 803, 799, 795,
|
|
/* 2260 */ 808, 318, 2268, 2267, 1248, 1867, 2303, 1236, 812, 351,
|
|
/* 2270 */ 2269, 727, 2271, 2272, 722, 724, 717, 818, 320, 814,
|
|
/* 2280 */ 1837, 1608, 330, 817, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2290 */ 1837, 1837, 1837, 1837, 1837, 2268, 1837, 1837, 1837, 1837,
|
|
/* 2300 */ 1837, 1837, 109, 2286, 1837, 311, 1837, 1837, 724, 1837,
|
|
/* 2310 */ 1837, 1837, 1837, 1837, 1837, 2236, 1837, 723, 2268, 1837,
|
|
/* 2320 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2330 */ 1837, 724, 1837, 2268, 1837, 1837, 2286, 703, 1837, 1837,
|
|
/* 2340 */ 1837, 1837, 1837, 1837, 1837, 1837, 724, 1837, 2236, 1837,
|
|
/* 2350 */ 723, 1837, 1837, 1837, 630, 1837, 1837, 2303, 1837, 2286,
|
|
/* 2360 */ 346, 2269, 727, 2271, 2272, 722, 1837, 717, 1837, 1837,
|
|
/* 2370 */ 1837, 2236, 1837, 723, 2286, 299, 1837, 1837, 1837, 1837,
|
|
/* 2380 */ 1837, 1837, 298, 1837, 1837, 1837, 2236, 2267, 723, 1837,
|
|
/* 2390 */ 2303, 1837, 1837, 336, 2269, 727, 2271, 2272, 722, 1837,
|
|
/* 2400 */ 717, 263, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 2268,
|
|
/* 2410 */ 2267, 1837, 1837, 2303, 1837, 1837, 334, 2269, 727, 2271,
|
|
/* 2420 */ 2272, 722, 724, 717, 2268, 2267, 1837, 1837, 2303, 1837,
|
|
/* 2430 */ 1837, 337, 2269, 727, 2271, 2272, 722, 724, 717, 2268,
|
|
/* 2440 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2450 */ 2286, 1837, 724, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2460 */ 1837, 1837, 2236, 1837, 723, 2286, 1837, 1837, 1837, 1837,
|
|
/* 2470 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 2236, 1837, 723,
|
|
/* 2480 */ 2286, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2490 */ 1837, 1837, 2236, 1837, 723, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2500 */ 1837, 2267, 2268, 1837, 2303, 1837, 1837, 343, 2269, 727,
|
|
/* 2510 */ 2271, 2272, 722, 1837, 717, 724, 2267, 1837, 1837, 2303,
|
|
/* 2520 */ 1837, 1837, 347, 2269, 727, 2271, 2272, 722, 1837, 717,
|
|
/* 2530 */ 1837, 2267, 2268, 1837, 2303, 1837, 1837, 339, 2269, 727,
|
|
/* 2540 */ 2271, 2272, 722, 2286, 717, 724, 1837, 1837, 1837, 1837,
|
|
/* 2550 */ 1837, 1837, 1837, 1837, 1837, 2236, 1837, 723, 1837, 1837,
|
|
/* 2560 */ 1837, 1837, 1837, 1837, 1837, 2268, 1837, 1837, 1837, 1837,
|
|
/* 2570 */ 1837, 1837, 1837, 2286, 1837, 1837, 1837, 1837, 724, 1837,
|
|
/* 2580 */ 1837, 1837, 1837, 1837, 1837, 2236, 1837, 723, 1837, 1837,
|
|
/* 2590 */ 1837, 1837, 1837, 1837, 2267, 1837, 1837, 2303, 1837, 1837,
|
|
/* 2600 */ 348, 2269, 727, 2271, 2272, 722, 2286, 717, 1837, 1837,
|
|
/* 2610 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 2236, 1837,
|
|
/* 2620 */ 723, 1837, 1837, 1837, 2267, 1837, 1837, 2303, 1837, 1837,
|
|
/* 2630 */ 340, 2269, 727, 2271, 2272, 722, 1837, 717, 1837, 1837,
|
|
/* 2640 */ 1837, 1837, 1837, 2268, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2650 */ 1837, 1837, 1837, 1837, 1837, 1837, 724, 2267, 1837, 1837,
|
|
/* 2660 */ 2303, 1837, 1837, 349, 2269, 727, 2271, 2272, 722, 1837,
|
|
/* 2670 */ 717, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 2268,
|
|
/* 2680 */ 1837, 1837, 1837, 1837, 2286, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2690 */ 1837, 1837, 724, 1837, 1837, 1837, 2236, 1837, 723, 1837,
|
|
/* 2700 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 2268, 1837,
|
|
/* 2710 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2720 */ 2286, 724, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2730 */ 1837, 1837, 2236, 1837, 723, 2267, 1837, 1837, 2303, 1837,
|
|
/* 2740 */ 1837, 341, 2269, 727, 2271, 2272, 722, 1837, 717, 2286,
|
|
/* 2750 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2760 */ 1837, 2236, 1837, 723, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2770 */ 1837, 2267, 1837, 2268, 2303, 1837, 1837, 355, 2269, 727,
|
|
/* 2780 */ 2271, 2272, 722, 1837, 717, 1837, 724, 1837, 1837, 1837,
|
|
/* 2790 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2800 */ 2267, 1837, 1837, 2303, 1837, 1837, 356, 2269, 727, 2271,
|
|
/* 2810 */ 2272, 722, 1837, 717, 2286, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2820 */ 1837, 1837, 1837, 1837, 1837, 1837, 2236, 1837, 723, 1837,
|
|
/* 2830 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2840 */ 2268, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2850 */ 1837, 1837, 1837, 724, 1837, 1837, 2268, 1837, 1837, 1837,
|
|
/* 2860 */ 1837, 1837, 1837, 1837, 1837, 2267, 1837, 1837, 2303, 724,
|
|
/* 2870 */ 1837, 2280, 2269, 727, 2271, 2272, 722, 1837, 717, 1837,
|
|
/* 2880 */ 1837, 2286, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2890 */ 1837, 1837, 1837, 2236, 1837, 723, 1837, 2286, 1837, 1837,
|
|
/* 2900 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 2236,
|
|
/* 2910 */ 1837, 723, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2920 */ 1837, 2268, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2930 */ 1837, 1837, 2267, 1837, 724, 2303, 1837, 1837, 2279, 2269,
|
|
/* 2940 */ 727, 2271, 2272, 722, 1837, 717, 1837, 1837, 2267, 1837,
|
|
/* 2950 */ 2268, 2303, 1837, 1837, 2278, 2269, 727, 2271, 2272, 722,
|
|
/* 2960 */ 1837, 717, 2286, 724, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2970 */ 1837, 1837, 1837, 1837, 2236, 1837, 723, 1837, 1837, 1837,
|
|
/* 2980 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 2990 */ 1837, 2286, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 3000 */ 1837, 1837, 1837, 2236, 1837, 723, 1837, 1837, 1837, 1837,
|
|
/* 3010 */ 1837, 1837, 1837, 2267, 1837, 2268, 2303, 1837, 1837, 370,
|
|
/* 3020 */ 2269, 727, 2271, 2272, 722, 1837, 717, 1837, 724, 1837,
|
|
/* 3030 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 3040 */ 1837, 1837, 2267, 1837, 2268, 2303, 1837, 1837, 371, 2269,
|
|
/* 3050 */ 727, 2271, 2272, 722, 1837, 717, 2286, 724, 1837, 1837,
|
|
/* 3060 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 2236, 1837,
|
|
/* 3070 */ 723, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 3080 */ 2268, 1837, 1837, 1837, 1837, 2286, 1837, 1837, 1837, 1837,
|
|
/* 3090 */ 1837, 1837, 1837, 724, 1837, 1837, 1837, 2236, 1837, 723,
|
|
/* 3100 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 2267, 1837, 2268,
|
|
/* 3110 */ 2303, 1837, 1837, 367, 2269, 727, 2271, 2272, 722, 1837,
|
|
/* 3120 */ 717, 2286, 724, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 3130 */ 1837, 1837, 1837, 2236, 1837, 723, 2267, 1837, 1837, 2303,
|
|
/* 3140 */ 1837, 1837, 372, 2269, 727, 2271, 2272, 722, 1837, 717,
|
|
/* 3150 */ 2286, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 3160 */ 1837, 1837, 2236, 1837, 723, 1837, 1837, 1837, 1837, 1837,
|
|
/* 3170 */ 1837, 1837, 725, 1837, 1837, 2303, 1837, 1837, 346, 2269,
|
|
/* 3180 */ 727, 2271, 2272, 722, 1837, 717, 1837, 1837, 1837, 1837,
|
|
/* 3190 */ 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837, 1837,
|
|
/* 3200 */ 1837, 2267, 1837, 1837, 2303, 1837, 1837, 345, 2269, 727,
|
|
/* 3210 */ 2271, 2272, 722, 1837, 717,
|
|
};
|
|
static const YYCODETYPE yy_lookahead[] = {
|
|
/* 0 */ 380, 359, 360, 380, 471, 0, 471, 474, 388, 474,
|
|
/* 10 */ 384, 388, 12, 13, 14, 359, 396, 360, 395, 396,
|
|
/* 20 */ 20, 379, 22, 0, 491, 492, 403, 492, 386, 496,
|
|
/* 30 */ 497, 496, 497, 12, 13, 35, 0, 37, 12, 13,
|
|
/* 40 */ 14, 15, 16, 4, 21, 388, 347, 24, 25, 26,
|
|
/* 50 */ 27, 28, 29, 30, 31, 32, 359, 360, 37, 360,
|
|
/* 60 */ 404, 405, 436, 407, 64, 0, 20, 411, 354, 20,
|
|
/* 70 */ 70, 357, 358, 344, 376, 21, 444, 77, 24, 25,
|
|
/* 80 */ 26, 27, 28, 29, 30, 31, 32, 388, 390, 24,
|
|
/* 90 */ 25, 26, 27, 28, 29, 30, 31, 32, 400, 400,
|
|
/* 100 */ 20, 402, 470, 103, 447, 20, 106, 14, 72, 73,
|
|
/* 110 */ 74, 75, 76, 20, 78, 79, 80, 81, 82, 83,
|
|
/* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
|
|
/* 130 */ 94, 95, 96, 97, 98, 99, 20, 388, 439, 50,
|
|
/* 140 */ 442, 442, 142, 143, 445, 446, 447, 448, 449, 450,
|
|
/* 150 */ 452, 452, 423, 359, 360, 106, 457, 428, 459, 410,
|
|
/* 160 */ 3, 412, 463, 464, 467, 468, 469, 106, 471, 472,
|
|
/* 170 */ 20, 474, 402, 379, 174, 175, 471, 478, 20, 474,
|
|
/* 180 */ 386, 181, 182, 387, 4, 486, 14, 417, 491, 492,
|
|
/* 190 */ 420, 421, 20, 496, 497, 399, 196, 492, 198, 21,
|
|
/* 200 */ 471, 496, 497, 474, 354, 8, 9, 357, 358, 12,
|
|
/* 210 */ 13, 14, 15, 16, 36, 20, 38, 39, 40, 198,
|
|
/* 220 */ 491, 492, 142, 143, 14, 496, 497, 222, 228, 229,
|
|
/* 230 */ 20, 231, 232, 233, 234, 235, 236, 237, 238, 239,
|
|
/* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 12,
|
|
/* 250 */ 13, 402, 369, 20, 18, 347, 20, 20, 3, 22,
|
|
/* 260 */ 377, 181, 182, 27, 106, 176, 30, 70, 360, 420,
|
|
/* 270 */ 421, 35, 35, 184, 37, 20, 8, 9, 388, 388,
|
|
/* 280 */ 12, 13, 14, 15, 16, 395, 106, 51, 20, 53,
|
|
/* 290 */ 174, 175, 4, 403, 58, 398, 388, 388, 401, 402,
|
|
/* 300 */ 423, 64, 103, 412, 395, 428, 267, 70, 400, 355,
|
|
/* 310 */ 402, 114, 403, 359, 77, 361, 117, 118, 119, 120,
|
|
/* 320 */ 121, 122, 123, 124, 125, 126, 265, 128, 129, 130,
|
|
/* 330 */ 131, 132, 133, 134, 46, 47, 48, 142, 143, 106,
|
|
/* 340 */ 103, 105, 20, 106, 22, 0, 174, 439, 471, 347,
|
|
/* 350 */ 442, 474, 116, 445, 446, 447, 448, 449, 450, 37,
|
|
/* 360 */ 452, 69, 107, 455, 347, 457, 458, 459, 491, 492,
|
|
/* 370 */ 173, 463, 464, 496, 497, 359, 360, 55, 33, 142,
|
|
/* 380 */ 143, 106, 146, 147, 174, 149, 150, 151, 152, 153,
|
|
/* 390 */ 154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
|
|
/* 400 */ 164, 165, 400, 167, 168, 169, 444, 171, 172, 180,
|
|
/* 410 */ 355, 174, 175, 177, 359, 22, 361, 400, 181, 182,
|
|
/* 420 */ 136, 8, 9, 265, 408, 12, 13, 14, 15, 16,
|
|
/* 430 */ 37, 176, 470, 196, 0, 198, 135, 136, 137, 138,
|
|
/* 440 */ 139, 140, 141, 286, 176, 265, 33, 359, 360, 252,
|
|
/* 450 */ 253, 254, 255, 256, 257, 258, 259, 260, 261, 262,
|
|
/* 460 */ 346, 359, 348, 359, 360, 228, 229, 379, 231, 232,
|
|
/* 470 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
/* 480 */ 243, 244, 245, 246, 247, 248, 249, 12, 13, 359,
|
|
/* 490 */ 360, 347, 20, 209, 210, 20, 103, 22, 265, 135,
|
|
/* 500 */ 271, 272, 273, 139, 360, 20, 72, 73, 74, 379,
|
|
/* 510 */ 35, 347, 37, 79, 80, 81, 388, 415, 416, 85,
|
|
/* 520 */ 107, 368, 20, 395, 90, 91, 92, 93, 1, 2,
|
|
/* 530 */ 96, 403, 388, 99, 359, 360, 359, 360, 385, 64,
|
|
/* 540 */ 265, 72, 73, 74, 400, 70, 402, 394, 79, 80,
|
|
/* 550 */ 81, 249, 77, 251, 85, 388, 379, 359, 360, 90,
|
|
/* 560 */ 91, 92, 93, 396, 400, 96, 359, 360, 99, 69,
|
|
/* 570 */ 466, 467, 468, 469, 116, 471, 472, 379, 103, 460,
|
|
/* 580 */ 461, 106, 347, 439, 137, 22, 442, 249, 141, 445,
|
|
/* 590 */ 446, 447, 448, 449, 450, 360, 452, 362, 14, 471,
|
|
/* 600 */ 37, 457, 474, 459, 20, 8, 9, 463, 464, 12,
|
|
/* 610 */ 13, 14, 15, 16, 366, 408, 0, 142, 143, 491,
|
|
/* 620 */ 492, 359, 360, 388, 496, 497, 347, 423, 359, 360,
|
|
/* 630 */ 486, 383, 0, 347, 107, 400, 347, 402, 388, 391,
|
|
/* 640 */ 77, 379, 467, 468, 469, 395, 471, 472, 379, 174,
|
|
/* 650 */ 175, 51, 205, 403, 22, 208, 181, 182, 211, 59,
|
|
/* 660 */ 213, 176, 62, 63, 39, 40, 103, 0, 359, 360,
|
|
/* 670 */ 20, 196, 22, 198, 439, 471, 174, 442, 474, 400,
|
|
/* 680 */ 445, 446, 447, 448, 449, 450, 400, 452, 379, 400,
|
|
/* 690 */ 359, 360, 457, 37, 459, 491, 492, 77, 463, 464,
|
|
/* 700 */ 496, 497, 228, 228, 229, 55, 231, 232, 233, 234,
|
|
/* 710 */ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
/* 720 */ 245, 246, 247, 248, 12, 13, 14, 347, 359, 360,
|
|
/* 730 */ 388, 388, 20, 77, 22, 110, 111, 395, 113, 408,
|
|
/* 740 */ 360, 0, 362, 359, 360, 403, 403, 35, 379, 37,
|
|
/* 750 */ 276, 277, 278, 279, 280, 281, 282, 359, 360, 196,
|
|
/* 760 */ 135, 198, 116, 379, 139, 8, 9, 444, 388, 12,
|
|
/* 770 */ 13, 14, 15, 16, 359, 360, 64, 161, 359, 360,
|
|
/* 780 */ 400, 22, 402, 136, 137, 188, 170, 347, 141, 77,
|
|
/* 790 */ 77, 228, 229, 470, 379, 368, 37, 347, 379, 14,
|
|
/* 800 */ 15, 16, 135, 136, 137, 138, 139, 140, 141, 366,
|
|
/* 810 */ 360, 456, 362, 458, 106, 103, 359, 360, 106, 439,
|
|
/* 820 */ 347, 394, 442, 401, 402, 445, 446, 447, 448, 449,
|
|
/* 830 */ 450, 191, 452, 360, 391, 362, 379, 457, 388, 459,
|
|
/* 840 */ 400, 8, 9, 463, 464, 12, 13, 14, 15, 16,
|
|
/* 850 */ 400, 456, 402, 458, 142, 143, 56, 57, 218, 219,
|
|
/* 860 */ 0, 388, 103, 347, 107, 467, 468, 469, 389, 471,
|
|
/* 870 */ 472, 364, 365, 400, 34, 402, 135, 136, 137, 138,
|
|
/* 880 */ 139, 140, 141, 64, 359, 360, 174, 175, 291, 439,
|
|
/* 890 */ 364, 365, 442, 181, 182, 445, 446, 447, 448, 449,
|
|
/* 900 */ 450, 389, 452, 195, 379, 197, 20, 457, 196, 459,
|
|
/* 910 */ 198, 0, 439, 463, 464, 442, 400, 389, 445, 446,
|
|
/* 920 */ 447, 448, 449, 450, 105, 452, 380, 108, 347, 69,
|
|
/* 930 */ 457, 423, 459, 22, 388, 227, 463, 464, 347, 86,
|
|
/* 940 */ 228, 229, 396, 231, 232, 233, 234, 235, 236, 237,
|
|
/* 950 */ 238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
|
|
/* 960 */ 248, 12, 13, 376, 389, 347, 347, 373, 374, 20,
|
|
/* 970 */ 388, 22, 389, 265, 373, 374, 20, 390, 360, 471,
|
|
/* 980 */ 362, 400, 474, 4, 35, 403, 37, 400, 42, 8,
|
|
/* 990 */ 9, 400, 347, 12, 13, 14, 15, 16, 19, 491,
|
|
/* 1000 */ 492, 148, 359, 360, 496, 497, 388, 173, 455, 176,
|
|
/* 1010 */ 33, 458, 397, 64, 35, 400, 359, 360, 400, 400,
|
|
/* 1020 */ 402, 2, 379, 170, 359, 360, 77, 8, 9, 442,
|
|
/* 1030 */ 51, 12, 13, 14, 15, 16, 379, 58, 380, 452,
|
|
/* 1040 */ 347, 359, 360, 64, 379, 400, 388, 423, 397, 389,
|
|
/* 1050 */ 347, 400, 103, 389, 396, 106, 347, 439, 33, 376,
|
|
/* 1060 */ 442, 379, 176, 445, 446, 447, 448, 449, 450, 360,
|
|
/* 1070 */ 452, 362, 70, 390, 347, 457, 347, 459, 350, 351,
|
|
/* 1080 */ 348, 463, 464, 400, 105, 0, 252, 108, 107, 347,
|
|
/* 1090 */ 347, 142, 143, 400, 2, 471, 262, 388, 474, 347,
|
|
/* 1100 */ 8, 9, 423, 400, 12, 13, 14, 15, 16, 400,
|
|
/* 1110 */ 212, 402, 214, 388, 397, 491, 492, 400, 429, 381,
|
|
/* 1120 */ 496, 497, 384, 174, 175, 442, 443, 400, 403, 400,
|
|
/* 1130 */ 181, 182, 176, 8, 9, 452, 51, 12, 13, 14,
|
|
/* 1140 */ 15, 16, 400, 400, 33, 196, 375, 198, 439, 378,
|
|
/* 1150 */ 471, 442, 400, 474, 445, 446, 447, 448, 449, 450,
|
|
/* 1160 */ 33, 452, 47, 48, 263, 264, 457, 33, 459, 0,
|
|
/* 1170 */ 491, 492, 463, 464, 116, 496, 497, 228, 229, 45,
|
|
/* 1180 */ 231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
/* 1190 */ 241, 242, 243, 244, 245, 246, 247, 248, 12, 13,
|
|
/* 1200 */ 33, 13, 347, 13, 109, 33, 20, 112, 22, 0,
|
|
/* 1210 */ 264, 42, 45, 109, 109, 360, 112, 112, 107, 109,
|
|
/* 1220 */ 64, 35, 112, 37, 166, 37, 49, 37, 142, 143,
|
|
/* 1230 */ 228, 22, 33, 37, 107, 347, 33, 33, 37, 33,
|
|
/* 1240 */ 377, 1, 2, 388, 106, 37, 33, 33, 360, 33,
|
|
/* 1250 */ 64, 33, 33, 115, 413, 400, 500, 402, 33, 489,
|
|
/* 1260 */ 363, 483, 13, 77, 108, 288, 376, 13, 376, 33,
|
|
/* 1270 */ 33, 33, 0, 77, 422, 33, 388, 33, 363, 107,
|
|
/* 1280 */ 33, 33, 388, 106, 413, 358, 37, 413, 400, 103,
|
|
/* 1290 */ 402, 37, 106, 360, 439, 399, 473, 442, 493, 268,
|
|
/* 1300 */ 445, 446, 447, 448, 449, 450, 107, 452, 465, 424,
|
|
/* 1310 */ 107, 107, 457, 107, 459, 290, 51, 441, 463, 464,
|
|
/* 1320 */ 107, 107, 476, 107, 52, 107, 107, 439, 142, 143,
|
|
/* 1330 */ 442, 42, 107, 445, 446, 447, 448, 449, 450, 451,
|
|
/* 1340 */ 452, 453, 454, 107, 107, 107, 440, 18, 20, 107,
|
|
/* 1350 */ 433, 107, 23, 211, 107, 107, 438, 368, 433, 368,
|
|
/* 1360 */ 174, 175, 194, 426, 20, 359, 20, 181, 182, 40,
|
|
/* 1370 */ 41, 360, 45, 44, 409, 20, 413, 360, 409, 406,
|
|
/* 1380 */ 173, 359, 196, 54, 198, 409, 360, 359, 406, 406,
|
|
/* 1390 */ 104, 359, 372, 102, 65, 66, 67, 68, 371, 198,
|
|
/* 1400 */ 101, 359, 359, 370, 359, 20, 198, 352, 50, 356,
|
|
/* 1410 */ 356, 352, 368, 433, 228, 229, 20, 231, 232, 233,
|
|
/* 1420 */ 234, 235, 236, 237, 238, 239, 240, 241, 242, 243,
|
|
/* 1430 */ 244, 245, 246, 247, 248, 106, 12, 13, 402, 368,
|
|
/* 1440 */ 20, 361, 20, 425, 368, 361, 22, 368, 20, 368,
|
|
/* 1450 */ 416, 368, 359, 352, 388, 368, 388, 388, 388, 35,
|
|
/* 1460 */ 388, 37, 388, 388, 350, 388, 388, 359, 350, 352,
|
|
/* 1470 */ 388, 347, 215, 144, 437, 106, 388, 202, 366, 201,
|
|
/* 1480 */ 433, 435, 432, 431, 360, 366, 430, 200, 64, 400,
|
|
/* 1490 */ 400, 400, 359, 283, 482, 275, 402, 424, 400, 400,
|
|
/* 1500 */ 274, 77, 400, 482, 187, 481, 400, 347, 485, 413,
|
|
/* 1510 */ 413, 284, 388, 484, 285, 480, 292, 188, 189, 190,
|
|
/* 1520 */ 360, 418, 193, 482, 400, 418, 402, 103, 269, 20,
|
|
/* 1530 */ 479, 501, 289, 424, 495, 206, 207, 287, 347, 360,
|
|
/* 1540 */ 264, 116, 494, 266, 444, 361, 217, 366, 388, 220,
|
|
/* 1550 */ 418, 360, 223, 224, 225, 226, 227, 400, 366, 400,
|
|
/* 1560 */ 400, 400, 402, 439, 400, 400, 442, 418, 179, 445,
|
|
/* 1570 */ 446, 447, 448, 449, 450, 400, 452, 414, 366, 388,
|
|
/* 1580 */ 106, 457, 384, 459, 462, 106, 392, 463, 464, 366,
|
|
/* 1590 */ 477, 400, 360, 402, 265, 475, 366, 400, 359, 439,
|
|
/* 1600 */ 378, 22, 442, 347, 349, 445, 446, 447, 448, 449,
|
|
/* 1610 */ 450, 38, 452, 353, 352, 382, 360, 457, 367, 459,
|
|
/* 1620 */ 196, 434, 198, 463, 464, 345, 0, 427, 382, 0,
|
|
/* 1630 */ 439, 0, 45, 442, 419, 382, 445, 446, 447, 448,
|
|
/* 1640 */ 449, 450, 0, 452, 388, 37, 37, 419, 221, 37,
|
|
/* 1650 */ 459, 37, 228, 229, 463, 464, 400, 0, 402, 221,
|
|
/* 1660 */ 37, 37, 221, 0, 37, 241, 242, 243, 244, 245,
|
|
/* 1670 */ 246, 247, 221, 0, 37, 0, 22, 347, 0, 216,
|
|
/* 1680 */ 37, 0, 204, 0, 204, 198, 205, 196, 0, 0,
|
|
/* 1690 */ 360, 0, 192, 0, 191, 439, 0, 147, 442, 49,
|
|
/* 1700 */ 347, 445, 446, 447, 448, 449, 450, 49, 452, 0,
|
|
/* 1710 */ 51, 37, 0, 360, 49, 459, 45, 0, 388, 463,
|
|
/* 1720 */ 464, 0, 0, 0, 0, 49, 0, 0, 0, 0,
|
|
/* 1730 */ 400, 161, 402, 0, 37, 0, 161, 0, 0, 0,
|
|
/* 1740 */ 0, 388, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
/* 1750 */ 0, 0, 0, 400, 0, 402, 49, 0, 45, 0,
|
|
/* 1760 */ 0, 0, 0, 0, 0, 147, 0, 146, 347, 439,
|
|
/* 1770 */ 0, 0, 442, 145, 0, 445, 446, 447, 448, 449,
|
|
/* 1780 */ 450, 360, 452, 347, 0, 0, 50, 22, 0, 459,
|
|
/* 1790 */ 22, 22, 439, 463, 464, 442, 360, 0, 445, 446,
|
|
/* 1800 */ 447, 448, 449, 450, 37, 452, 50, 0, 0, 388,
|
|
/* 1810 */ 37, 0, 0, 37, 42, 0, 37, 64, 37, 64,
|
|
/* 1820 */ 0, 400, 64, 402, 388, 42, 51, 45, 35, 51,
|
|
/* 1830 */ 14, 51, 42, 42, 33, 49, 400, 0, 402, 0,
|
|
/* 1840 */ 487, 488, 43, 0, 51, 49, 42, 49, 0, 347,
|
|
/* 1850 */ 0, 42, 59, 60, 61, 62, 187, 64, 0, 49,
|
|
/* 1860 */ 439, 0, 360, 442, 0, 0, 445, 446, 447, 448,
|
|
/* 1870 */ 449, 450, 37, 452, 71, 439, 51, 0, 442, 37,
|
|
/* 1880 */ 42, 445, 446, 447, 448, 449, 450, 51, 452, 42,
|
|
/* 1890 */ 388, 0, 37, 42, 0, 459, 51, 37, 105, 42,
|
|
/* 1900 */ 464, 108, 400, 51, 402, 0, 0, 0, 0, 0,
|
|
/* 1910 */ 0, 37, 112, 0, 347, 22, 114, 37, 37, 498,
|
|
/* 1920 */ 499, 37, 37, 37, 37, 37, 37, 360, 33, 347,
|
|
/* 1930 */ 33, 0, 0, 37, 22, 37, 37, 0, 22, 22,
|
|
/* 1940 */ 22, 439, 360, 53, 442, 0, 0, 445, 446, 447,
|
|
/* 1950 */ 448, 449, 450, 0, 452, 388, 37, 37, 0, 37,
|
|
/* 1960 */ 393, 0, 22, 20, 37, 37, 37, 400, 106, 402,
|
|
/* 1970 */ 388, 178, 179, 107, 0, 393, 106, 22, 185, 186,
|
|
/* 1980 */ 203, 176, 400, 0, 402, 347, 37, 22, 199, 176,
|
|
/* 1990 */ 488, 0, 0, 179, 176, 176, 3, 204, 360, 33,
|
|
/* 2000 */ 183, 50, 270, 49, 183, 33, 439, 106, 106, 442,
|
|
/* 2010 */ 107, 107, 445, 446, 447, 448, 449, 450, 104, 452,
|
|
/* 2020 */ 50, 439, 33, 102, 442, 49, 388, 445, 446, 447,
|
|
/* 2030 */ 448, 449, 450, 107, 452, 33, 106, 33, 400, 106,
|
|
/* 2040 */ 402, 106, 3, 107, 106, 33, 107, 37, 347, 107,
|
|
/* 2050 */ 37, 37, 37, 37, 37, 49, 33, 270, 263, 107,
|
|
/* 2060 */ 49, 360, 270, 347, 107, 0, 0, 42, 106, 106,
|
|
/* 2070 */ 0, 107, 180, 42, 107, 106, 360, 439, 347, 106,
|
|
/* 2080 */ 442, 106, 49, 445, 446, 447, 448, 449, 450, 388,
|
|
/* 2090 */ 452, 360, 115, 106, 33, 2, 250, 22, 104, 104,
|
|
/* 2100 */ 228, 400, 178, 402, 388, 106, 49, 107, 107, 393,
|
|
/* 2110 */ 107, 106, 49, 106, 106, 106, 400, 22, 402, 388,
|
|
/* 2120 */ 37, 37, 37, 37, 37, 107, 106, 106, 490, 107,
|
|
/* 2130 */ 230, 400, 106, 402, 107, 116, 107, 107, 106, 37,
|
|
/* 2140 */ 439, 347, 106, 442, 107, 107, 445, 446, 447, 448,
|
|
/* 2150 */ 449, 450, 106, 452, 360, 439, 37, 106, 442, 106,
|
|
/* 2160 */ 33, 445, 446, 447, 448, 449, 450, 127, 452, 127,
|
|
/* 2170 */ 439, 347, 127, 442, 127, 106, 445, 446, 447, 448,
|
|
/* 2180 */ 449, 450, 388, 452, 360, 454, 37, 393, 106, 22,
|
|
/* 2190 */ 37, 71, 70, 37, 400, 37, 402, 37, 1, 37,
|
|
/* 2200 */ 499, 37, 37, 37, 100, 37, 77, 33, 37, 37,
|
|
/* 2210 */ 37, 22, 388, 37, 37, 37, 19, 393, 77, 37,
|
|
/* 2220 */ 37, 37, 22, 37, 400, 37, 402, 37, 0, 37,
|
|
/* 2230 */ 51, 0, 35, 439, 0, 42, 442, 42, 37, 445,
|
|
/* 2240 */ 446, 447, 448, 449, 450, 51, 452, 37, 51, 51,
|
|
/* 2250 */ 42, 0, 37, 51, 42, 0, 59, 60, 61, 62,
|
|
/* 2260 */ 37, 64, 347, 439, 37, 0, 442, 22, 33, 445,
|
|
/* 2270 */ 446, 447, 448, 449, 450, 360, 452, 20, 22, 21,
|
|
/* 2280 */ 502, 22, 22, 21, 502, 502, 502, 502, 502, 502,
|
|
/* 2290 */ 502, 502, 502, 502, 502, 347, 502, 502, 502, 502,
|
|
/* 2300 */ 502, 502, 105, 388, 502, 108, 502, 502, 360, 502,
|
|
/* 2310 */ 502, 502, 502, 502, 502, 400, 502, 402, 347, 502,
|
|
/* 2320 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2330 */ 502, 360, 502, 347, 502, 502, 388, 140, 502, 502,
|
|
/* 2340 */ 502, 502, 502, 502, 502, 502, 360, 502, 400, 502,
|
|
/* 2350 */ 402, 502, 502, 502, 439, 502, 502, 442, 502, 388,
|
|
/* 2360 */ 445, 446, 447, 448, 449, 450, 502, 452, 502, 502,
|
|
/* 2370 */ 502, 400, 502, 402, 388, 178, 502, 502, 502, 502,
|
|
/* 2380 */ 502, 502, 185, 502, 502, 502, 400, 439, 402, 502,
|
|
/* 2390 */ 442, 502, 502, 445, 446, 447, 448, 449, 450, 502,
|
|
/* 2400 */ 452, 204, 502, 502, 502, 502, 502, 502, 502, 347,
|
|
/* 2410 */ 439, 502, 502, 442, 502, 502, 445, 446, 447, 448,
|
|
/* 2420 */ 449, 450, 360, 452, 347, 439, 502, 502, 442, 502,
|
|
/* 2430 */ 502, 445, 446, 447, 448, 449, 450, 360, 452, 347,
|
|
/* 2440 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2450 */ 388, 502, 360, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2460 */ 502, 502, 400, 502, 402, 388, 502, 502, 502, 502,
|
|
/* 2470 */ 502, 502, 502, 502, 502, 502, 502, 400, 502, 402,
|
|
/* 2480 */ 388, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2490 */ 502, 502, 400, 502, 402, 502, 502, 502, 502, 502,
|
|
/* 2500 */ 502, 439, 347, 502, 442, 502, 502, 445, 446, 447,
|
|
/* 2510 */ 448, 449, 450, 502, 452, 360, 439, 502, 502, 442,
|
|
/* 2520 */ 502, 502, 445, 446, 447, 448, 449, 450, 502, 452,
|
|
/* 2530 */ 502, 439, 347, 502, 442, 502, 502, 445, 446, 447,
|
|
/* 2540 */ 448, 449, 450, 388, 452, 360, 502, 502, 502, 502,
|
|
/* 2550 */ 502, 502, 502, 502, 502, 400, 502, 402, 502, 502,
|
|
/* 2560 */ 502, 502, 502, 502, 502, 347, 502, 502, 502, 502,
|
|
/* 2570 */ 502, 502, 502, 388, 502, 502, 502, 502, 360, 502,
|
|
/* 2580 */ 502, 502, 502, 502, 502, 400, 502, 402, 502, 502,
|
|
/* 2590 */ 502, 502, 502, 502, 439, 502, 502, 442, 502, 502,
|
|
/* 2600 */ 445, 446, 447, 448, 449, 450, 388, 452, 502, 502,
|
|
/* 2610 */ 502, 502, 502, 502, 502, 502, 502, 502, 400, 502,
|
|
/* 2620 */ 402, 502, 502, 502, 439, 502, 502, 442, 502, 502,
|
|
/* 2630 */ 445, 446, 447, 448, 449, 450, 502, 452, 502, 502,
|
|
/* 2640 */ 502, 502, 502, 347, 502, 502, 502, 502, 502, 502,
|
|
/* 2650 */ 502, 502, 502, 502, 502, 502, 360, 439, 502, 502,
|
|
/* 2660 */ 442, 502, 502, 445, 446, 447, 448, 449, 450, 502,
|
|
/* 2670 */ 452, 502, 502, 502, 502, 502, 502, 502, 502, 347,
|
|
/* 2680 */ 502, 502, 502, 502, 388, 502, 502, 502, 502, 502,
|
|
/* 2690 */ 502, 502, 360, 502, 502, 502, 400, 502, 402, 502,
|
|
/* 2700 */ 502, 502, 502, 502, 502, 502, 502, 502, 347, 502,
|
|
/* 2710 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2720 */ 388, 360, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2730 */ 502, 502, 400, 502, 402, 439, 502, 502, 442, 502,
|
|
/* 2740 */ 502, 445, 446, 447, 448, 449, 450, 502, 452, 388,
|
|
/* 2750 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2760 */ 502, 400, 502, 402, 502, 502, 502, 502, 502, 502,
|
|
/* 2770 */ 502, 439, 502, 347, 442, 502, 502, 445, 446, 447,
|
|
/* 2780 */ 448, 449, 450, 502, 452, 502, 360, 502, 502, 502,
|
|
/* 2790 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2800 */ 439, 502, 502, 442, 502, 502, 445, 446, 447, 448,
|
|
/* 2810 */ 449, 450, 502, 452, 388, 502, 502, 502, 502, 502,
|
|
/* 2820 */ 502, 502, 502, 502, 502, 502, 400, 502, 402, 502,
|
|
/* 2830 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2840 */ 347, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2850 */ 502, 502, 502, 360, 502, 502, 347, 502, 502, 502,
|
|
/* 2860 */ 502, 502, 502, 502, 502, 439, 502, 502, 442, 360,
|
|
/* 2870 */ 502, 445, 446, 447, 448, 449, 450, 502, 452, 502,
|
|
/* 2880 */ 502, 388, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2890 */ 502, 502, 502, 400, 502, 402, 502, 388, 502, 502,
|
|
/* 2900 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 400,
|
|
/* 2910 */ 502, 402, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2920 */ 502, 347, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2930 */ 502, 502, 439, 502, 360, 442, 502, 502, 445, 446,
|
|
/* 2940 */ 447, 448, 449, 450, 502, 452, 502, 502, 439, 502,
|
|
/* 2950 */ 347, 442, 502, 502, 445, 446, 447, 448, 449, 450,
|
|
/* 2960 */ 502, 452, 388, 360, 502, 502, 502, 502, 502, 502,
|
|
/* 2970 */ 502, 502, 502, 502, 400, 502, 402, 502, 502, 502,
|
|
/* 2980 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 2990 */ 502, 388, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 3000 */ 502, 502, 502, 400, 502, 402, 502, 502, 502, 502,
|
|
/* 3010 */ 502, 502, 502, 439, 502, 347, 442, 502, 502, 445,
|
|
/* 3020 */ 446, 447, 448, 449, 450, 502, 452, 502, 360, 502,
|
|
/* 3030 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 3040 */ 502, 502, 439, 502, 347, 442, 502, 502, 445, 446,
|
|
/* 3050 */ 447, 448, 449, 450, 502, 452, 388, 360, 502, 502,
|
|
/* 3060 */ 502, 502, 502, 502, 502, 502, 502, 502, 400, 502,
|
|
/* 3070 */ 402, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 3080 */ 347, 502, 502, 502, 502, 388, 502, 502, 502, 502,
|
|
/* 3090 */ 502, 502, 502, 360, 502, 502, 502, 400, 502, 402,
|
|
/* 3100 */ 502, 502, 502, 502, 502, 502, 502, 439, 502, 347,
|
|
/* 3110 */ 442, 502, 502, 445, 446, 447, 448, 449, 450, 502,
|
|
/* 3120 */ 452, 388, 360, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 3130 */ 502, 502, 502, 400, 502, 402, 439, 502, 502, 442,
|
|
/* 3140 */ 502, 502, 445, 446, 447, 448, 449, 450, 502, 452,
|
|
/* 3150 */ 388, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 3160 */ 502, 502, 400, 502, 402, 502, 502, 502, 502, 502,
|
|
/* 3170 */ 502, 502, 439, 502, 502, 442, 502, 502, 445, 446,
|
|
/* 3180 */ 447, 448, 449, 450, 502, 452, 502, 502, 502, 502,
|
|
/* 3190 */ 502, 502, 502, 502, 502, 502, 502, 502, 502, 502,
|
|
/* 3200 */ 502, 439, 502, 502, 442, 502, 502, 445, 446, 447,
|
|
/* 3210 */ 448, 449, 450, 502, 452, 344, 344, 344, 344, 344,
|
|
/* 3220 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3230 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3240 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3250 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3260 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3270 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3280 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3290 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3300 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3310 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3320 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3330 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3340 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3350 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3360 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3370 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3380 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3390 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3400 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3410 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3420 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3430 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3440 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3450 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3460 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3470 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3480 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3490 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3500 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3510 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3520 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3530 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3540 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
/* 3550 */ 344, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
};
|
|
#define YY_SHIFT_COUNT (819)
|
|
#define YY_SHIFT_MIN (0)
|
|
#define YY_SHIFT_MAX (2265)
|
|
static const unsigned short int yy_shift_ofst[] = {
|
|
/* 0 */ 1329, 0, 237, 0, 475, 475, 475, 475, 475, 475,
|
|
/* 10 */ 475, 475, 475, 475, 475, 475, 712, 949, 949, 1186,
|
|
/* 20 */ 949, 949, 949, 949, 949, 949, 949, 949, 949, 949,
|
|
/* 30 */ 949, 949, 949, 949, 949, 949, 949, 949, 949, 949,
|
|
/* 40 */ 949, 949, 949, 949, 949, 949, 949, 949, 949, 949,
|
|
/* 50 */ 949, 158, 233, 708, 49, 61, 275, 61, 49, 49,
|
|
/* 60 */ 61, 1424, 61, 236, 1424, 1424, 180, 61, 46, 80,
|
|
/* 70 */ 85, 85, 80, 288, 288, 116, 195, 93, 93, 85,
|
|
/* 80 */ 85, 85, 85, 85, 85, 85, 85, 85, 85, 150,
|
|
/* 90 */ 85, 85, 292, 46, 85, 85, 472, 46, 85, 85,
|
|
/* 100 */ 46, 85, 85, 46, 85, 46, 46, 46, 85, 500,
|
|
/* 110 */ 197, 197, 469, 54, 563, 563, 563, 563, 563, 563,
|
|
/* 120 */ 563, 563, 563, 563, 563, 563, 563, 563, 563, 563,
|
|
/* 130 */ 563, 563, 563, 625, 255, 116, 195, 800, 800, 656,
|
|
/* 140 */ 485, 485, 485, 860, 302, 302, 656, 292, 458, 46,
|
|
/* 150 */ 46, 338, 46, 620, 46, 620, 620, 646, 713, 840,
|
|
/* 160 */ 199, 199, 199, 199, 199, 199, 199, 199, 2197, 434,
|
|
/* 170 */ 23, 268, 597, 474, 322, 229, 21, 21, 172, 89,
|
|
/* 180 */ 210, 650, 886, 1115, 584, 364, 956, 901, 946, 157,
|
|
/* 190 */ 901, 1134, 39, 502, 1031, 1265, 1289, 1328, 1142, 292,
|
|
/* 200 */ 1328, 292, 1168, 1344, 1346, 1327, 1355, 1346, 1327, 1207,
|
|
/* 210 */ 1344, 1346, 1344, 1327, 1207, 1207, 1286, 1291, 1344, 1299,
|
|
/* 220 */ 1344, 1344, 1344, 1385, 1358, 1385, 1358, 1328, 292, 1396,
|
|
/* 230 */ 292, 1420, 1422, 292, 1420, 292, 1428, 292, 292, 1344,
|
|
/* 240 */ 292, 1385, 46, 46, 46, 46, 46, 46, 46, 46,
|
|
/* 250 */ 46, 46, 46, 1344, 840, 840, 1385, 620, 620, 620,
|
|
/* 260 */ 1257, 1369, 1328, 500, 1275, 1278, 1396, 500, 1287, 1031,
|
|
/* 270 */ 1344, 1355, 1355, 620, 1220, 1226, 620, 1220, 1226, 620,
|
|
/* 280 */ 620, 46, 1210, 1317, 1220, 1229, 1227, 1259, 1031, 1224,
|
|
/* 290 */ 1243, 1250, 1276, 1346, 1509, 1425, 1277, 1420, 500, 500,
|
|
/* 300 */ 1226, 620, 620, 620, 620, 620, 1226, 620, 1389, 500,
|
|
/* 310 */ 646, 500, 1346, 1474, 1479, 620, 713, 1344, 500, 1579,
|
|
/* 320 */ 1573, 1385, 3215, 3215, 3215, 3215, 3215, 3215, 3215, 3215,
|
|
/* 330 */ 3215, 36, 1793, 65, 413, 979, 757, 981, 667, 1019,
|
|
/* 340 */ 1092, 833, 741, 1125, 1125, 1125, 1125, 1125, 1125, 1125,
|
|
/* 350 */ 1125, 1125, 301, 447, 178, 26, 26, 600, 640, 616,
|
|
/* 360 */ 819, 853, 393, 759, 284, 647, 647, 785, 527, 834,
|
|
/* 370 */ 785, 785, 785, 1085, 5, 1127, 1169, 1167, 1058, 345,
|
|
/* 380 */ 1095, 1104, 1105, 1110, 1188, 1190, 632, 911, 1209, 898,
|
|
/* 390 */ 1111, 1172, 1156, 1199, 1203, 1204, 1086, 977, 1025, 1206,
|
|
/* 400 */ 1213, 1214, 1216, 1218, 1219, 1240, 1225, 1002, 1236, 1177,
|
|
/* 410 */ 1237, 1238, 1242, 1244, 1247, 1248, 1138, 1201, 1208, 1249,
|
|
/* 420 */ 1254, 1196, 1272, 1626, 1629, 1631, 1587, 1642, 1608, 1427,
|
|
/* 430 */ 1609, 1612, 1614, 1438, 1657, 1623, 1624, 1441, 1627, 1663,
|
|
/* 440 */ 1451, 1673, 1637, 1675, 1654, 1678, 1643, 1463, 1681, 1478,
|
|
/* 450 */ 1683, 1480, 1481, 1487, 1491, 1688, 1689, 1691, 1500, 1503,
|
|
/* 460 */ 1693, 1696, 1550, 1650, 1658, 1709, 1674, 1659, 1712, 1665,
|
|
/* 470 */ 1721, 1671, 1717, 1722, 1723, 1676, 1724, 1726, 1727, 1728,
|
|
/* 480 */ 1729, 1733, 1570, 1697, 1735, 1575, 1737, 1738, 1739, 1740,
|
|
/* 490 */ 1742, 1743, 1744, 1745, 1746, 1747, 1748, 1749, 1750, 1751,
|
|
/* 500 */ 1752, 1754, 1707, 1757, 1713, 1759, 1760, 1761, 1762, 1763,
|
|
/* 510 */ 1764, 1765, 1770, 1618, 1766, 1621, 1771, 1628, 1774, 1784,
|
|
/* 520 */ 1768, 1736, 1769, 1756, 1785, 1753, 1767, 1788, 1755, 1797,
|
|
/* 530 */ 1758, 1807, 1808, 1773, 1775, 1772, 1811, 1776, 1778, 1783,
|
|
/* 540 */ 1812, 1779, 1780, 1790, 1815, 1781, 1820, 1782, 1791, 1801,
|
|
/* 550 */ 1786, 1796, 1816, 1798, 1837, 1799, 1804, 1839, 1843, 1848,
|
|
/* 560 */ 1809, 1669, 1850, 1786, 1810, 1858, 1861, 1803, 1864, 1865,
|
|
/* 570 */ 1835, 1825, 1838, 1877, 1842, 1836, 1847, 1891, 1855, 1845,
|
|
/* 580 */ 1851, 1894, 1860, 1852, 1857, 1905, 1906, 1907, 1908, 1909,
|
|
/* 590 */ 1910, 1802, 1800, 1874, 1893, 1913, 1880, 1881, 1884, 1885,
|
|
/* 600 */ 1886, 1887, 1888, 1889, 1895, 1897, 1896, 1898, 1912, 1899,
|
|
/* 610 */ 1931, 1916, 1932, 1917, 1890, 1937, 1918, 1919, 1945, 1946,
|
|
/* 620 */ 1953, 1920, 1958, 1922, 1961, 1940, 1943, 1927, 1928, 1929,
|
|
/* 630 */ 1866, 1862, 1974, 1805, 1870, 1777, 1949, 1955, 1983, 1789,
|
|
/* 640 */ 1965, 1813, 1814, 1991, 1992, 1818, 1817, 1819, 1821, 1993,
|
|
/* 650 */ 1966, 1732, 1901, 1903, 1902, 1951, 1914, 1970, 1921, 1904,
|
|
/* 660 */ 1972, 1989, 1926, 1930, 1933, 1935, 1936, 2002, 1954, 1976,
|
|
/* 670 */ 1938, 2004, 1787, 1939, 1942, 2039, 2012, 1792, 2010, 2013,
|
|
/* 680 */ 2014, 2015, 2016, 2017, 1952, 1957, 2006, 1795, 2023, 2011,
|
|
/* 690 */ 2065, 2066, 1962, 2025, 1963, 1964, 1967, 1969, 1973, 1892,
|
|
/* 700 */ 1975, 2070, 2031, 1924, 1987, 1977, 1786, 2033, 2061, 1994,
|
|
/* 710 */ 1846, 1995, 2093, 2075, 1872, 1999, 2000, 2005, 2001, 2007,
|
|
/* 720 */ 2003, 2057, 2008, 2009, 2063, 2018, 2095, 1900, 2020, 2019,
|
|
/* 730 */ 2022, 2083, 2084, 2021, 2027, 2085, 2026, 2029, 2086, 2032,
|
|
/* 740 */ 2030, 2087, 2036, 2037, 2102, 2046, 2038, 2119, 2051, 2040,
|
|
/* 750 */ 2042, 2045, 2047, 2053, 2127, 2069, 2149, 2082, 2127, 2127,
|
|
/* 760 */ 2167, 2120, 2122, 2153, 2156, 2158, 2160, 2162, 2164, 2165,
|
|
/* 770 */ 2166, 2168, 2129, 2104, 2174, 2171, 2172, 2173, 2189, 2176,
|
|
/* 780 */ 2177, 2178, 2141, 1895, 2182, 1897, 2183, 2184, 2186, 2188,
|
|
/* 790 */ 2200, 2190, 2228, 2192, 2179, 2193, 2231, 2201, 2194, 2195,
|
|
/* 800 */ 2234, 2210, 2198, 2208, 2251, 2215, 2202, 2212, 2255, 2223,
|
|
/* 810 */ 2227, 2265, 2245, 2235, 2256, 2258, 2259, 2260, 2262, 2257,
|
|
};
|
|
#define YY_REDUCE_COUNT (330)
|
|
#define YY_REDUCE_MIN (-467)
|
|
#define YY_REDUCE_MAX (2762)
|
|
static const short yy_reduce_ofst[] = {
|
|
/* 0 */ -271, -301, -92, 144, 235, 380, 450, 473, 618, 709,
|
|
/* 10 */ 855, 1124, 1160, 1191, 1256, 1330, 888, 1353, 1421, 1436,
|
|
/* 20 */ 1502, 1567, 1582, 1638, 1701, 1716, 1731, 1794, 1824, 1915,
|
|
/* 30 */ 1948, 1971, 1986, 2062, 2077, 2092, 2155, 2185, 2218, 2296,
|
|
/* 40 */ 2332, 2361, 2426, 2493, 2509, 2574, 2603, 2668, 2697, 2733,
|
|
/* 50 */ 2762, -303, 128, -123, 104, 204, 508, 624, 175, 398,
|
|
/* 60 */ 679, 683, -467, -344, -302, 587, -465, -295, -377, -230,
|
|
/* 70 */ -358, -206, -151, -286, -150, -251, -103, -46, 55, 88,
|
|
/* 80 */ 130, 177, 198, 16, 207, 262, 269, 309, 331, 102,
|
|
/* 90 */ 369, 384, 153, -110, 415, 419, -343, -91, 457, 525,
|
|
/* 100 */ -380, 643, 657, 250, 665, 546, 342, 658, 682, 248,
|
|
/* 110 */ 119, 119, -117, 114, 2, 17, 164, 279, 286, 289,
|
|
/* 120 */ 440, 516, 581, 591, 619, 645, 693, 703, 727, 729,
|
|
/* 130 */ 742, 743, 752, -204, -368, -109, 422, 507, 526, 594,
|
|
/* 140 */ -368, -38, 323, 443, 355, 395, 601, 427, -374, 343,
|
|
/* 150 */ 582, 553, 167, 615, 725, 651, 717, 738, 771, 728,
|
|
/* 160 */ 479, 512, 528, 575, 583, 660, 664, 583, 689, 863,
|
|
/* 170 */ 732, 841, 756, 770, 897, 778, 890, 892, 894, 852,
|
|
/* 180 */ 894, 915, 871, 927, 933, 896, 874, 823, 823, 805,
|
|
/* 190 */ 823, 843, 846, 894, 885, 876, 906, 917, 918, 989,
|
|
/* 200 */ 925, 991, 937, 1006, 1011, 965, 963, 1017, 969, 973,
|
|
/* 210 */ 1022, 1026, 1028, 976, 982, 983, 1020, 1027, 1032, 1033,
|
|
/* 220 */ 1042, 1043, 1045, 1055, 1053, 1059, 1054, 980, 1044, 1036,
|
|
/* 230 */ 1071, 1080, 1018, 1076, 1084, 1079, 1034, 1081, 1083, 1093,
|
|
/* 240 */ 1087, 1101, 1066, 1068, 1069, 1070, 1072, 1074, 1075, 1077,
|
|
/* 250 */ 1078, 1082, 1088, 1108, 1114, 1118, 1117, 1089, 1090, 1091,
|
|
/* 260 */ 1037, 1046, 1047, 1112, 1050, 1052, 1094, 1119, 1056, 1073,
|
|
/* 270 */ 1133, 1096, 1097, 1098, 1012, 1103, 1099, 1021, 1107, 1102,
|
|
/* 280 */ 1106, 894, 1023, 1029, 1041, 1024, 1035, 1051, 1109, 1030,
|
|
/* 290 */ 1039, 1048, 823, 1179, 1100, 1113, 1120, 1184, 1181, 1192,
|
|
/* 300 */ 1132, 1157, 1159, 1161, 1164, 1165, 1149, 1175, 1163, 1212,
|
|
/* 310 */ 1198, 1223, 1232, 1122, 1194, 1197, 1222, 1239, 1230, 1255,
|
|
/* 320 */ 1260, 1262, 1200, 1187, 1215, 1228, 1233, 1246, 1253, 1251,
|
|
/* 330 */ 1280,
|
|
};
|
|
static const YYACTIONTYPE yy_default[] = {
|
|
/* 0 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 10 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 20 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 30 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 40 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 50 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 60 */ 2164, 1835, 1835, 2127, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 70 */ 1835, 1835, 1835, 1835, 1835, 2134, 1835, 1835, 1835, 1835,
|
|
/* 80 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 90 */ 1835, 1835, 1931, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 100 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1929,
|
|
/* 110 */ 2358, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 120 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 130 */ 1835, 1835, 1835, 1835, 2370, 1835, 1835, 1905, 1905, 1835,
|
|
/* 140 */ 2370, 2370, 2370, 1929, 2330, 2330, 1835, 1931, 2198, 1835,
|
|
/* 150 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 2053, 1835, 1865,
|
|
/* 160 */ 1835, 1835, 1835, 1835, 2077, 1835, 1835, 1835, 2190, 1835,
|
|
/* 170 */ 1835, 2399, 2456, 1835, 1835, 2402, 1835, 1835, 1835, 1835,
|
|
/* 180 */ 1835, 1835, 2139, 1835, 1835, 2006, 2389, 2362, 2376, 2440,
|
|
/* 190 */ 2363, 2360, 2383, 1835, 2393, 1835, 2222, 1835, 2212, 1931,
|
|
/* 200 */ 1835, 1931, 2177, 2122, 1835, 2132, 1835, 1835, 2132, 2129,
|
|
/* 210 */ 1835, 1835, 1835, 2132, 2129, 2129, 1995, 1991, 1835, 1989,
|
|
/* 220 */ 1835, 1835, 1835, 1835, 1889, 1835, 1889, 1835, 1931, 1835,
|
|
/* 230 */ 1931, 1835, 1835, 1931, 1835, 1931, 1835, 1931, 1931, 1835,
|
|
/* 240 */ 1931, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 250 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 260 */ 2210, 2196, 1835, 1929, 2188, 2186, 1835, 1929, 2184, 2393,
|
|
/* 270 */ 1835, 1835, 1835, 1835, 2410, 2408, 1835, 2410, 2408, 1835,
|
|
/* 280 */ 1835, 1835, 2424, 2420, 2410, 2429, 2426, 2395, 2393, 2459,
|
|
/* 290 */ 2446, 2442, 2376, 1835, 1835, 2381, 2379, 1835, 1929, 1929,
|
|
/* 300 */ 2408, 1835, 1835, 1835, 1835, 1835, 2408, 1835, 1835, 1929,
|
|
/* 310 */ 1835, 1929, 1835, 1835, 2022, 1835, 1835, 1835, 1929, 1835,
|
|
/* 320 */ 1874, 1835, 2179, 2201, 2160, 2160, 2056, 2056, 2056, 1932,
|
|
/* 330 */ 1840, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 340 */ 1835, 1835, 1835, 2423, 2422, 2285, 1835, 2334, 2333, 2332,
|
|
/* 350 */ 2323, 2284, 2018, 1835, 1835, 2283, 2282, 1835, 1835, 1835,
|
|
/* 360 */ 1835, 1835, 1835, 1835, 1835, 2151, 2150, 2276, 1835, 1835,
|
|
/* 370 */ 2277, 2275, 2274, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 380 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 390 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 2443, 2447, 1835,
|
|
/* 400 */ 1835, 1835, 1835, 1835, 1835, 2359, 1835, 1835, 1835, 2258,
|
|
/* 410 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 420 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 430 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 440 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 450 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 460 */ 1835, 1835, 2128, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 470 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 480 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 490 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 500 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 510 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 2143, 1835, 1835,
|
|
/* 520 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 530 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 540 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1879,
|
|
/* 550 */ 2263, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 560 */ 1835, 1835, 1835, 2266, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 570 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 580 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 590 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 600 */ 1835, 1835, 1835, 1835, 1971, 1970, 1835, 1835, 1835, 1835,
|
|
/* 610 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 620 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 630 */ 2267, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 640 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 2439,
|
|
/* 650 */ 2396, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 660 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 2258,
|
|
/* 670 */ 1835, 2421, 1835, 1835, 2437, 1835, 2441, 1835, 1835, 1835,
|
|
/* 680 */ 1835, 1835, 1835, 1835, 2369, 2365, 1835, 1835, 2361, 1835,
|
|
/* 690 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 700 */ 1835, 1835, 1835, 1835, 1835, 1835, 2257, 1835, 2320, 1835,
|
|
/* 710 */ 1835, 1835, 2354, 1835, 1835, 2305, 1835, 1835, 1835, 1835,
|
|
/* 720 */ 1835, 1835, 1835, 1835, 1835, 2267, 1835, 2270, 1835, 1835,
|
|
/* 730 */ 1835, 1835, 1835, 2050, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 740 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 2034,
|
|
/* 750 */ 2032, 2031, 2030, 1835, 2063, 1835, 1835, 1835, 2059, 2058,
|
|
/* 760 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 770 */ 1835, 1835, 1835, 1835, 1950, 1835, 1835, 1835, 1835, 1835,
|
|
/* 780 */ 1835, 1835, 1835, 1942, 1835, 1941, 1835, 1835, 1835, 1835,
|
|
/* 790 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 800 */ 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
/* 810 */ 1835, 1835, 1835, 1864, 1835, 1835, 1835, 1835, 1835, 1835,
|
|
};
|
|
/********** End of lemon-generated parsing tables *****************************/
|
|
|
|
/* The next table maps tokens (terminal symbols) into fallback tokens.
|
|
** If a construct like the following:
|
|
**
|
|
** %fallback ID X Y Z.
|
|
**
|
|
** appears in the grammar, then ID becomes a fallback token for X, Y,
|
|
** and Z. Whenever one of the tokens X, Y, or Z is input to the parser
|
|
** but it does not parse, the type of the token is changed to ID and
|
|
** the parse is retried before an error is thrown.
|
|
**
|
|
** This feature can be used, for example, to cause some keywords in a language
|
|
** to revert to identifiers if they keyword does not apply in the context where
|
|
** it appears.
|
|
*/
|
|
#ifdef YYFALLBACK
|
|
static const YYCODETYPE yyFallback[] = {
|
|
0, /* $ => nothing */
|
|
0, /* OR => nothing */
|
|
0, /* AND => nothing */
|
|
0, /* UNION => nothing */
|
|
0, /* ALL => nothing */
|
|
0, /* MINUS => nothing */
|
|
0, /* EXCEPT => nothing */
|
|
0, /* INTERSECT => nothing */
|
|
0, /* NK_BITAND => nothing */
|
|
0, /* NK_BITOR => nothing */
|
|
0, /* NK_LSHIFT => nothing */
|
|
0, /* NK_RSHIFT => nothing */
|
|
0, /* NK_PLUS => nothing */
|
|
0, /* NK_MINUS => nothing */
|
|
0, /* NK_STAR => nothing */
|
|
0, /* NK_SLASH => nothing */
|
|
0, /* NK_REM => nothing */
|
|
0, /* NK_CONCAT => nothing */
|
|
0, /* CREATE => nothing */
|
|
0, /* ACCOUNT => nothing */
|
|
0, /* NK_ID => nothing */
|
|
0, /* PASS => nothing */
|
|
0, /* NK_STRING => nothing */
|
|
0, /* ALTER => nothing */
|
|
0, /* PPS => nothing */
|
|
0, /* TSERIES => nothing */
|
|
0, /* STORAGE => nothing */
|
|
0, /* STREAMS => nothing */
|
|
0, /* QTIME => nothing */
|
|
0, /* DBS => nothing */
|
|
0, /* USERS => nothing */
|
|
0, /* CONNS => nothing */
|
|
0, /* STATE => nothing */
|
|
0, /* NK_COMMA => nothing */
|
|
0, /* HOST => nothing */
|
|
0, /* USER => nothing */
|
|
0, /* ENABLE => nothing */
|
|
0, /* NK_INTEGER => nothing */
|
|
0, /* SYSINFO => nothing */
|
|
0, /* ADD => nothing */
|
|
0, /* DROP => nothing */
|
|
0, /* GRANT => nothing */
|
|
0, /* ON => nothing */
|
|
0, /* TO => nothing */
|
|
0, /* REVOKE => nothing */
|
|
0, /* FROM => nothing */
|
|
0, /* SUBSCRIBE => nothing */
|
|
0, /* READ => nothing */
|
|
0, /* WRITE => nothing */
|
|
0, /* NK_DOT => nothing */
|
|
0, /* WITH => nothing */
|
|
0, /* DNODE => nothing */
|
|
0, /* PORT => nothing */
|
|
0, /* DNODES => nothing */
|
|
0, /* RESTORE => nothing */
|
|
0, /* NK_IPTOKEN => nothing */
|
|
0, /* FORCE => nothing */
|
|
0, /* UNSAFE => nothing */
|
|
0, /* LOCAL => nothing */
|
|
0, /* QNODE => nothing */
|
|
0, /* BNODE => nothing */
|
|
0, /* SNODE => nothing */
|
|
0, /* MNODE => nothing */
|
|
0, /* VNODE => nothing */
|
|
0, /* DATABASE => nothing */
|
|
0, /* USE => nothing */
|
|
0, /* FLUSH => nothing */
|
|
0, /* TRIM => nothing */
|
|
0, /* COMPACT => nothing */
|
|
0, /* IF => nothing */
|
|
0, /* NOT => nothing */
|
|
0, /* EXISTS => nothing */
|
|
0, /* BUFFER => nothing */
|
|
0, /* CACHEMODEL => nothing */
|
|
0, /* CACHESIZE => nothing */
|
|
0, /* COMP => nothing */
|
|
0, /* DURATION => nothing */
|
|
0, /* NK_VARIABLE => nothing */
|
|
0, /* MAXROWS => nothing */
|
|
0, /* MINROWS => nothing */
|
|
0, /* KEEP => nothing */
|
|
0, /* PAGES => nothing */
|
|
0, /* PAGESIZE => nothing */
|
|
0, /* TSDB_PAGESIZE => nothing */
|
|
0, /* PRECISION => nothing */
|
|
0, /* REPLICA => nothing */
|
|
0, /* VGROUPS => nothing */
|
|
0, /* SINGLE_STABLE => nothing */
|
|
0, /* RETENTIONS => nothing */
|
|
0, /* SCHEMALESS => nothing */
|
|
0, /* WAL_LEVEL => nothing */
|
|
0, /* WAL_FSYNC_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_SIZE => nothing */
|
|
0, /* WAL_ROLL_PERIOD => nothing */
|
|
0, /* WAL_SEGMENT_SIZE => nothing */
|
|
0, /* STT_TRIGGER => nothing */
|
|
0, /* TABLE_PREFIX => nothing */
|
|
0, /* TABLE_SUFFIX => nothing */
|
|
0, /* KEEP_TIME_OFFSET => nothing */
|
|
0, /* NK_COLON => nothing */
|
|
0, /* BWLIMIT => nothing */
|
|
0, /* START => nothing */
|
|
0, /* TIMESTAMP => nothing */
|
|
293, /* END => ABORT */
|
|
0, /* TABLE => nothing */
|
|
0, /* NK_LP => nothing */
|
|
0, /* NK_RP => nothing */
|
|
0, /* STABLE => nothing */
|
|
0, /* COLUMN => nothing */
|
|
0, /* MODIFY => nothing */
|
|
0, /* RENAME => nothing */
|
|
0, /* TAG => nothing */
|
|
0, /* SET => nothing */
|
|
0, /* NK_EQ => nothing */
|
|
0, /* USING => nothing */
|
|
0, /* TAGS => nothing */
|
|
0, /* BOOL => nothing */
|
|
0, /* TINYINT => nothing */
|
|
0, /* SMALLINT => nothing */
|
|
0, /* INT => nothing */
|
|
0, /* INTEGER => nothing */
|
|
0, /* BIGINT => nothing */
|
|
0, /* FLOAT => nothing */
|
|
0, /* DOUBLE => nothing */
|
|
0, /* BINARY => nothing */
|
|
0, /* NCHAR => nothing */
|
|
0, /* UNSIGNED => nothing */
|
|
0, /* JSON => nothing */
|
|
0, /* VARCHAR => nothing */
|
|
0, /* MEDIUMBLOB => nothing */
|
|
0, /* BLOB => nothing */
|
|
0, /* VARBINARY => nothing */
|
|
0, /* GEOMETRY => nothing */
|
|
0, /* DECIMAL => nothing */
|
|
0, /* COMMENT => nothing */
|
|
0, /* MAX_DELAY => nothing */
|
|
0, /* WATERMARK => nothing */
|
|
0, /* ROLLUP => nothing */
|
|
0, /* TTL => nothing */
|
|
0, /* SMA => nothing */
|
|
0, /* DELETE_MARK => nothing */
|
|
0, /* FIRST => nothing */
|
|
0, /* LAST => nothing */
|
|
0, /* SHOW => nothing */
|
|
0, /* PRIVILEGES => nothing */
|
|
0, /* DATABASES => nothing */
|
|
0, /* TABLES => nothing */
|
|
0, /* STABLES => nothing */
|
|
0, /* MNODES => nothing */
|
|
0, /* QNODES => nothing */
|
|
0, /* FUNCTIONS => nothing */
|
|
0, /* INDEXES => nothing */
|
|
0, /* ACCOUNTS => nothing */
|
|
0, /* APPS => nothing */
|
|
0, /* CONNECTIONS => nothing */
|
|
0, /* LICENCES => nothing */
|
|
0, /* GRANTS => nothing */
|
|
0, /* QUERIES => nothing */
|
|
0, /* SCORES => nothing */
|
|
0, /* TOPICS => nothing */
|
|
0, /* VARIABLES => nothing */
|
|
0, /* CLUSTER => nothing */
|
|
0, /* BNODES => nothing */
|
|
0, /* SNODES => nothing */
|
|
0, /* TRANSACTIONS => nothing */
|
|
0, /* DISTRIBUTED => nothing */
|
|
0, /* CONSUMERS => nothing */
|
|
0, /* SUBSCRIPTIONS => nothing */
|
|
0, /* VNODES => nothing */
|
|
0, /* ALIVE => nothing */
|
|
0, /* NORMAL => nothing */
|
|
0, /* CHILD => nothing */
|
|
0, /* LIKE => nothing */
|
|
0, /* TBNAME => nothing */
|
|
0, /* QTAGS => nothing */
|
|
0, /* AS => nothing */
|
|
0, /* SYSTEM => nothing */
|
|
0, /* INDEX => nothing */
|
|
0, /* FUNCTION => nothing */
|
|
0, /* INTERVAL => nothing */
|
|
0, /* COUNT => nothing */
|
|
0, /* LAST_ROW => nothing */
|
|
0, /* META => nothing */
|
|
0, /* ONLY => nothing */
|
|
0, /* TOPIC => nothing */
|
|
0, /* CONSUMER => nothing */
|
|
0, /* GROUP => nothing */
|
|
0, /* DESC => nothing */
|
|
0, /* DESCRIBE => nothing */
|
|
0, /* RESET => nothing */
|
|
0, /* QUERY => nothing */
|
|
0, /* CACHE => nothing */
|
|
0, /* EXPLAIN => nothing */
|
|
0, /* ANALYZE => nothing */
|
|
0, /* VERBOSE => nothing */
|
|
0, /* NK_BOOL => nothing */
|
|
0, /* RATIO => nothing */
|
|
0, /* NK_FLOAT => nothing */
|
|
0, /* OUTPUTTYPE => nothing */
|
|
0, /* AGGREGATE => nothing */
|
|
0, /* BUFSIZE => nothing */
|
|
0, /* LANGUAGE => nothing */
|
|
0, /* REPLACE => nothing */
|
|
0, /* STREAM => nothing */
|
|
0, /* INTO => nothing */
|
|
0, /* PAUSE => nothing */
|
|
0, /* RESUME => nothing */
|
|
0, /* TRIGGER => nothing */
|
|
0, /* AT_ONCE => nothing */
|
|
0, /* WINDOW_CLOSE => nothing */
|
|
0, /* IGNORE => nothing */
|
|
0, /* EXPIRED => nothing */
|
|
0, /* FILL_HISTORY => nothing */
|
|
0, /* UPDATE => nothing */
|
|
0, /* SUBTABLE => nothing */
|
|
0, /* UNTREATED => nothing */
|
|
0, /* KILL => nothing */
|
|
0, /* CONNECTION => nothing */
|
|
0, /* TRANSACTION => nothing */
|
|
0, /* BALANCE => nothing */
|
|
0, /* VGROUP => nothing */
|
|
0, /* LEADER => nothing */
|
|
0, /* MERGE => nothing */
|
|
0, /* REDISTRIBUTE => nothing */
|
|
0, /* SPLIT => nothing */
|
|
0, /* DELETE => nothing */
|
|
0, /* INSERT => nothing */
|
|
0, /* NULL => nothing */
|
|
0, /* NK_QUESTION => nothing */
|
|
0, /* NK_ARROW => nothing */
|
|
0, /* ROWTS => nothing */
|
|
0, /* QSTART => nothing */
|
|
0, /* QEND => nothing */
|
|
0, /* QDURATION => nothing */
|
|
0, /* WSTART => nothing */
|
|
0, /* WEND => nothing */
|
|
0, /* WDURATION => nothing */
|
|
0, /* IROWTS => nothing */
|
|
0, /* ISFILLED => nothing */
|
|
0, /* CAST => nothing */
|
|
0, /* NOW => nothing */
|
|
0, /* TODAY => nothing */
|
|
0, /* TIMEZONE => nothing */
|
|
0, /* CLIENT_VERSION => nothing */
|
|
0, /* SERVER_VERSION => nothing */
|
|
0, /* SERVER_STATUS => nothing */
|
|
0, /* CURRENT_USER => nothing */
|
|
0, /* CASE => nothing */
|
|
0, /* WHEN => nothing */
|
|
0, /* THEN => nothing */
|
|
0, /* ELSE => nothing */
|
|
0, /* BETWEEN => nothing */
|
|
0, /* IS => nothing */
|
|
0, /* NK_LT => nothing */
|
|
0, /* NK_GT => nothing */
|
|
0, /* NK_LE => nothing */
|
|
0, /* NK_GE => nothing */
|
|
0, /* NK_NE => nothing */
|
|
0, /* MATCH => nothing */
|
|
0, /* NMATCH => nothing */
|
|
0, /* CONTAINS => nothing */
|
|
0, /* IN => nothing */
|
|
0, /* JOIN => nothing */
|
|
0, /* INNER => nothing */
|
|
0, /* SELECT => nothing */
|
|
0, /* NK_HINT => nothing */
|
|
0, /* DISTINCT => nothing */
|
|
0, /* WHERE => nothing */
|
|
0, /* PARTITION => nothing */
|
|
0, /* BY => nothing */
|
|
0, /* SESSION => nothing */
|
|
0, /* STATE_WINDOW => nothing */
|
|
0, /* EVENT_WINDOW => nothing */
|
|
0, /* SLIDING => nothing */
|
|
0, /* FILL => nothing */
|
|
0, /* VALUE => nothing */
|
|
0, /* VALUE_F => nothing */
|
|
0, /* NONE => nothing */
|
|
0, /* PREV => nothing */
|
|
0, /* NULL_F => nothing */
|
|
0, /* LINEAR => nothing */
|
|
0, /* NEXT => nothing */
|
|
0, /* HAVING => nothing */
|
|
0, /* RANGE => nothing */
|
|
0, /* EVERY => nothing */
|
|
0, /* ORDER => nothing */
|
|
0, /* SLIMIT => nothing */
|
|
0, /* SOFFSET => nothing */
|
|
0, /* LIMIT => nothing */
|
|
0, /* OFFSET => nothing */
|
|
0, /* ASC => nothing */
|
|
0, /* NULLS => nothing */
|
|
0, /* ABORT => nothing */
|
|
293, /* AFTER => ABORT */
|
|
293, /* ATTACH => ABORT */
|
|
293, /* BEFORE => ABORT */
|
|
293, /* BEGIN => ABORT */
|
|
293, /* BITAND => ABORT */
|
|
293, /* BITNOT => ABORT */
|
|
293, /* BITOR => ABORT */
|
|
293, /* BLOCKS => ABORT */
|
|
293, /* CHANGE => ABORT */
|
|
293, /* COMMA => ABORT */
|
|
293, /* CONCAT => ABORT */
|
|
293, /* CONFLICT => ABORT */
|
|
293, /* COPY => ABORT */
|
|
293, /* DEFERRED => ABORT */
|
|
293, /* DELIMITERS => ABORT */
|
|
293, /* DETACH => ABORT */
|
|
293, /* DIVIDE => ABORT */
|
|
293, /* DOT => ABORT */
|
|
293, /* EACH => ABORT */
|
|
293, /* FAIL => ABORT */
|
|
293, /* FILE => ABORT */
|
|
293, /* FOR => ABORT */
|
|
293, /* GLOB => ABORT */
|
|
293, /* ID => ABORT */
|
|
293, /* IMMEDIATE => ABORT */
|
|
293, /* IMPORT => ABORT */
|
|
293, /* INITIALLY => ABORT */
|
|
293, /* INSTEAD => ABORT */
|
|
293, /* ISNULL => ABORT */
|
|
293, /* KEY => ABORT */
|
|
293, /* MODULES => ABORT */
|
|
293, /* NK_BITNOT => ABORT */
|
|
293, /* NK_SEMI => ABORT */
|
|
293, /* NOTNULL => ABORT */
|
|
293, /* OF => ABORT */
|
|
293, /* PLUS => ABORT */
|
|
293, /* PRIVILEGE => ABORT */
|
|
293, /* RAISE => ABORT */
|
|
293, /* RESTRICT => ABORT */
|
|
293, /* ROW => ABORT */
|
|
293, /* SEMI => ABORT */
|
|
293, /* STAR => ABORT */
|
|
293, /* STATEMENT => ABORT */
|
|
293, /* STRICT => ABORT */
|
|
293, /* STRING => ABORT */
|
|
293, /* TIMES => ABORT */
|
|
293, /* VALUES => ABORT */
|
|
293, /* VARIABLE => ABORT */
|
|
293, /* VIEW => ABORT */
|
|
293, /* WAL => ABORT */
|
|
};
|
|
#endif /* YYFALLBACK */
|
|
|
|
/* The following structure represents a single element of the
|
|
** parser's stack. Information stored includes:
|
|
**
|
|
** + The state number for the parser at this level of the stack.
|
|
**
|
|
** + The value of the token stored at this level of the stack.
|
|
** (In other words, the "major" token.)
|
|
**
|
|
** + The semantic value stored at this level of the stack. This is
|
|
** the information used by the action routines in the grammar.
|
|
** It is sometimes called the "minor" token.
|
|
**
|
|
** After the "shift" half of a SHIFTREDUCE action, the stateno field
|
|
** actually contains the reduce action for the second half of the
|
|
** SHIFTREDUCE.
|
|
*/
|
|
struct yyStackEntry {
|
|
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
|
|
YYCODETYPE major; /* The major token value. This is the code
|
|
** number for the token at this stack level */
|
|
YYMINORTYPE minor; /* The user-supplied minor token value. This
|
|
** is the value of the token */
|
|
};
|
|
typedef struct yyStackEntry yyStackEntry;
|
|
|
|
/* The state of the parser is completely contained in an instance of
|
|
** the following structure */
|
|
struct yyParser {
|
|
yyStackEntry *yytos; /* Pointer to top element of the stack */
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
int yyhwm; /* High-water mark of the stack */
|
|
#endif
|
|
#ifndef YYNOERRORRECOVERY
|
|
int yyerrcnt; /* Shifts left before out of the error */
|
|
#endif
|
|
ParseARG_SDECL /* A place to hold %extra_argument */
|
|
ParseCTX_SDECL /* A place to hold %extra_context */
|
|
#if YYSTACKDEPTH<=0
|
|
int yystksz; /* Current side of the stack */
|
|
yyStackEntry *yystack; /* The parser's stack */
|
|
yyStackEntry yystk0; /* First stack entry */
|
|
#else
|
|
yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
|
|
yyStackEntry *yystackEnd; /* Last entry in the stack */
|
|
#endif
|
|
};
|
|
typedef struct yyParser yyParser;
|
|
|
|
#include <assert.h>
|
|
#ifndef NDEBUG
|
|
#include <stdio.h>
|
|
static FILE *yyTraceFILE = 0;
|
|
static char *yyTracePrompt = 0;
|
|
#endif /* NDEBUG */
|
|
|
|
#ifndef NDEBUG
|
|
/*
|
|
** Turn parser tracing on by giving a stream to which to write the trace
|
|
** and a prompt to preface each trace message. Tracing is turned off
|
|
** by making either argument NULL
|
|
**
|
|
** Inputs:
|
|
** <ul>
|
|
** <li> A FILE* to which trace output should be written.
|
|
** If NULL, then tracing is turned off.
|
|
** <li> A prefix string written at the beginning of every
|
|
** line of trace output. If NULL, then tracing is
|
|
** turned off.
|
|
** </ul>
|
|
**
|
|
** Outputs:
|
|
** None.
|
|
*/
|
|
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
|
|
yyTraceFILE = TraceFILE;
|
|
yyTracePrompt = zTracePrompt;
|
|
if( yyTraceFILE==0 ) yyTracePrompt = 0;
|
|
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
|
|
}
|
|
#endif /* NDEBUG */
|
|
|
|
#if defined(YYCOVERAGE) || !defined(NDEBUG)
|
|
/* For tracing shifts, the names of all terminals and nonterminals
|
|
** are required. The following table supplies these names */
|
|
static const char *const yyTokenName[] = {
|
|
/* 0 */ "$",
|
|
/* 1 */ "OR",
|
|
/* 2 */ "AND",
|
|
/* 3 */ "UNION",
|
|
/* 4 */ "ALL",
|
|
/* 5 */ "MINUS",
|
|
/* 6 */ "EXCEPT",
|
|
/* 7 */ "INTERSECT",
|
|
/* 8 */ "NK_BITAND",
|
|
/* 9 */ "NK_BITOR",
|
|
/* 10 */ "NK_LSHIFT",
|
|
/* 11 */ "NK_RSHIFT",
|
|
/* 12 */ "NK_PLUS",
|
|
/* 13 */ "NK_MINUS",
|
|
/* 14 */ "NK_STAR",
|
|
/* 15 */ "NK_SLASH",
|
|
/* 16 */ "NK_REM",
|
|
/* 17 */ "NK_CONCAT",
|
|
/* 18 */ "CREATE",
|
|
/* 19 */ "ACCOUNT",
|
|
/* 20 */ "NK_ID",
|
|
/* 21 */ "PASS",
|
|
/* 22 */ "NK_STRING",
|
|
/* 23 */ "ALTER",
|
|
/* 24 */ "PPS",
|
|
/* 25 */ "TSERIES",
|
|
/* 26 */ "STORAGE",
|
|
/* 27 */ "STREAMS",
|
|
/* 28 */ "QTIME",
|
|
/* 29 */ "DBS",
|
|
/* 30 */ "USERS",
|
|
/* 31 */ "CONNS",
|
|
/* 32 */ "STATE",
|
|
/* 33 */ "NK_COMMA",
|
|
/* 34 */ "HOST",
|
|
/* 35 */ "USER",
|
|
/* 36 */ "ENABLE",
|
|
/* 37 */ "NK_INTEGER",
|
|
/* 38 */ "SYSINFO",
|
|
/* 39 */ "ADD",
|
|
/* 40 */ "DROP",
|
|
/* 41 */ "GRANT",
|
|
/* 42 */ "ON",
|
|
/* 43 */ "TO",
|
|
/* 44 */ "REVOKE",
|
|
/* 45 */ "FROM",
|
|
/* 46 */ "SUBSCRIBE",
|
|
/* 47 */ "READ",
|
|
/* 48 */ "WRITE",
|
|
/* 49 */ "NK_DOT",
|
|
/* 50 */ "WITH",
|
|
/* 51 */ "DNODE",
|
|
/* 52 */ "PORT",
|
|
/* 53 */ "DNODES",
|
|
/* 54 */ "RESTORE",
|
|
/* 55 */ "NK_IPTOKEN",
|
|
/* 56 */ "FORCE",
|
|
/* 57 */ "UNSAFE",
|
|
/* 58 */ "LOCAL",
|
|
/* 59 */ "QNODE",
|
|
/* 60 */ "BNODE",
|
|
/* 61 */ "SNODE",
|
|
/* 62 */ "MNODE",
|
|
/* 63 */ "VNODE",
|
|
/* 64 */ "DATABASE",
|
|
/* 65 */ "USE",
|
|
/* 66 */ "FLUSH",
|
|
/* 67 */ "TRIM",
|
|
/* 68 */ "COMPACT",
|
|
/* 69 */ "IF",
|
|
/* 70 */ "NOT",
|
|
/* 71 */ "EXISTS",
|
|
/* 72 */ "BUFFER",
|
|
/* 73 */ "CACHEMODEL",
|
|
/* 74 */ "CACHESIZE",
|
|
/* 75 */ "COMP",
|
|
/* 76 */ "DURATION",
|
|
/* 77 */ "NK_VARIABLE",
|
|
/* 78 */ "MAXROWS",
|
|
/* 79 */ "MINROWS",
|
|
/* 80 */ "KEEP",
|
|
/* 81 */ "PAGES",
|
|
/* 82 */ "PAGESIZE",
|
|
/* 83 */ "TSDB_PAGESIZE",
|
|
/* 84 */ "PRECISION",
|
|
/* 85 */ "REPLICA",
|
|
/* 86 */ "VGROUPS",
|
|
/* 87 */ "SINGLE_STABLE",
|
|
/* 88 */ "RETENTIONS",
|
|
/* 89 */ "SCHEMALESS",
|
|
/* 90 */ "WAL_LEVEL",
|
|
/* 91 */ "WAL_FSYNC_PERIOD",
|
|
/* 92 */ "WAL_RETENTION_PERIOD",
|
|
/* 93 */ "WAL_RETENTION_SIZE",
|
|
/* 94 */ "WAL_ROLL_PERIOD",
|
|
/* 95 */ "WAL_SEGMENT_SIZE",
|
|
/* 96 */ "STT_TRIGGER",
|
|
/* 97 */ "TABLE_PREFIX",
|
|
/* 98 */ "TABLE_SUFFIX",
|
|
/* 99 */ "KEEP_TIME_OFFSET",
|
|
/* 100 */ "NK_COLON",
|
|
/* 101 */ "BWLIMIT",
|
|
/* 102 */ "START",
|
|
/* 103 */ "TIMESTAMP",
|
|
/* 104 */ "END",
|
|
/* 105 */ "TABLE",
|
|
/* 106 */ "NK_LP",
|
|
/* 107 */ "NK_RP",
|
|
/* 108 */ "STABLE",
|
|
/* 109 */ "COLUMN",
|
|
/* 110 */ "MODIFY",
|
|
/* 111 */ "RENAME",
|
|
/* 112 */ "TAG",
|
|
/* 113 */ "SET",
|
|
/* 114 */ "NK_EQ",
|
|
/* 115 */ "USING",
|
|
/* 116 */ "TAGS",
|
|
/* 117 */ "BOOL",
|
|
/* 118 */ "TINYINT",
|
|
/* 119 */ "SMALLINT",
|
|
/* 120 */ "INT",
|
|
/* 121 */ "INTEGER",
|
|
/* 122 */ "BIGINT",
|
|
/* 123 */ "FLOAT",
|
|
/* 124 */ "DOUBLE",
|
|
/* 125 */ "BINARY",
|
|
/* 126 */ "NCHAR",
|
|
/* 127 */ "UNSIGNED",
|
|
/* 128 */ "JSON",
|
|
/* 129 */ "VARCHAR",
|
|
/* 130 */ "MEDIUMBLOB",
|
|
/* 131 */ "BLOB",
|
|
/* 132 */ "VARBINARY",
|
|
/* 133 */ "GEOMETRY",
|
|
/* 134 */ "DECIMAL",
|
|
/* 135 */ "COMMENT",
|
|
/* 136 */ "MAX_DELAY",
|
|
/* 137 */ "WATERMARK",
|
|
/* 138 */ "ROLLUP",
|
|
/* 139 */ "TTL",
|
|
/* 140 */ "SMA",
|
|
/* 141 */ "DELETE_MARK",
|
|
/* 142 */ "FIRST",
|
|
/* 143 */ "LAST",
|
|
/* 144 */ "SHOW",
|
|
/* 145 */ "PRIVILEGES",
|
|
/* 146 */ "DATABASES",
|
|
/* 147 */ "TABLES",
|
|
/* 148 */ "STABLES",
|
|
/* 149 */ "MNODES",
|
|
/* 150 */ "QNODES",
|
|
/* 151 */ "FUNCTIONS",
|
|
/* 152 */ "INDEXES",
|
|
/* 153 */ "ACCOUNTS",
|
|
/* 154 */ "APPS",
|
|
/* 155 */ "CONNECTIONS",
|
|
/* 156 */ "LICENCES",
|
|
/* 157 */ "GRANTS",
|
|
/* 158 */ "QUERIES",
|
|
/* 159 */ "SCORES",
|
|
/* 160 */ "TOPICS",
|
|
/* 161 */ "VARIABLES",
|
|
/* 162 */ "CLUSTER",
|
|
/* 163 */ "BNODES",
|
|
/* 164 */ "SNODES",
|
|
/* 165 */ "TRANSACTIONS",
|
|
/* 166 */ "DISTRIBUTED",
|
|
/* 167 */ "CONSUMERS",
|
|
/* 168 */ "SUBSCRIPTIONS",
|
|
/* 169 */ "VNODES",
|
|
/* 170 */ "ALIVE",
|
|
/* 171 */ "NORMAL",
|
|
/* 172 */ "CHILD",
|
|
/* 173 */ "LIKE",
|
|
/* 174 */ "TBNAME",
|
|
/* 175 */ "QTAGS",
|
|
/* 176 */ "AS",
|
|
/* 177 */ "SYSTEM",
|
|
/* 178 */ "INDEX",
|
|
/* 179 */ "FUNCTION",
|
|
/* 180 */ "INTERVAL",
|
|
/* 181 */ "COUNT",
|
|
/* 182 */ "LAST_ROW",
|
|
/* 183 */ "META",
|
|
/* 184 */ "ONLY",
|
|
/* 185 */ "TOPIC",
|
|
/* 186 */ "CONSUMER",
|
|
/* 187 */ "GROUP",
|
|
/* 188 */ "DESC",
|
|
/* 189 */ "DESCRIBE",
|
|
/* 190 */ "RESET",
|
|
/* 191 */ "QUERY",
|
|
/* 192 */ "CACHE",
|
|
/* 193 */ "EXPLAIN",
|
|
/* 194 */ "ANALYZE",
|
|
/* 195 */ "VERBOSE",
|
|
/* 196 */ "NK_BOOL",
|
|
/* 197 */ "RATIO",
|
|
/* 198 */ "NK_FLOAT",
|
|
/* 199 */ "OUTPUTTYPE",
|
|
/* 200 */ "AGGREGATE",
|
|
/* 201 */ "BUFSIZE",
|
|
/* 202 */ "LANGUAGE",
|
|
/* 203 */ "REPLACE",
|
|
/* 204 */ "STREAM",
|
|
/* 205 */ "INTO",
|
|
/* 206 */ "PAUSE",
|
|
/* 207 */ "RESUME",
|
|
/* 208 */ "TRIGGER",
|
|
/* 209 */ "AT_ONCE",
|
|
/* 210 */ "WINDOW_CLOSE",
|
|
/* 211 */ "IGNORE",
|
|
/* 212 */ "EXPIRED",
|
|
/* 213 */ "FILL_HISTORY",
|
|
/* 214 */ "UPDATE",
|
|
/* 215 */ "SUBTABLE",
|
|
/* 216 */ "UNTREATED",
|
|
/* 217 */ "KILL",
|
|
/* 218 */ "CONNECTION",
|
|
/* 219 */ "TRANSACTION",
|
|
/* 220 */ "BALANCE",
|
|
/* 221 */ "VGROUP",
|
|
/* 222 */ "LEADER",
|
|
/* 223 */ "MERGE",
|
|
/* 224 */ "REDISTRIBUTE",
|
|
/* 225 */ "SPLIT",
|
|
/* 226 */ "DELETE",
|
|
/* 227 */ "INSERT",
|
|
/* 228 */ "NULL",
|
|
/* 229 */ "NK_QUESTION",
|
|
/* 230 */ "NK_ARROW",
|
|
/* 231 */ "ROWTS",
|
|
/* 232 */ "QSTART",
|
|
/* 233 */ "QEND",
|
|
/* 234 */ "QDURATION",
|
|
/* 235 */ "WSTART",
|
|
/* 236 */ "WEND",
|
|
/* 237 */ "WDURATION",
|
|
/* 238 */ "IROWTS",
|
|
/* 239 */ "ISFILLED",
|
|
/* 240 */ "CAST",
|
|
/* 241 */ "NOW",
|
|
/* 242 */ "TODAY",
|
|
/* 243 */ "TIMEZONE",
|
|
/* 244 */ "CLIENT_VERSION",
|
|
/* 245 */ "SERVER_VERSION",
|
|
/* 246 */ "SERVER_STATUS",
|
|
/* 247 */ "CURRENT_USER",
|
|
/* 248 */ "CASE",
|
|
/* 249 */ "WHEN",
|
|
/* 250 */ "THEN",
|
|
/* 251 */ "ELSE",
|
|
/* 252 */ "BETWEEN",
|
|
/* 253 */ "IS",
|
|
/* 254 */ "NK_LT",
|
|
/* 255 */ "NK_GT",
|
|
/* 256 */ "NK_LE",
|
|
/* 257 */ "NK_GE",
|
|
/* 258 */ "NK_NE",
|
|
/* 259 */ "MATCH",
|
|
/* 260 */ "NMATCH",
|
|
/* 261 */ "CONTAINS",
|
|
/* 262 */ "IN",
|
|
/* 263 */ "JOIN",
|
|
/* 264 */ "INNER",
|
|
/* 265 */ "SELECT",
|
|
/* 266 */ "NK_HINT",
|
|
/* 267 */ "DISTINCT",
|
|
/* 268 */ "WHERE",
|
|
/* 269 */ "PARTITION",
|
|
/* 270 */ "BY",
|
|
/* 271 */ "SESSION",
|
|
/* 272 */ "STATE_WINDOW",
|
|
/* 273 */ "EVENT_WINDOW",
|
|
/* 274 */ "SLIDING",
|
|
/* 275 */ "FILL",
|
|
/* 276 */ "VALUE",
|
|
/* 277 */ "VALUE_F",
|
|
/* 278 */ "NONE",
|
|
/* 279 */ "PREV",
|
|
/* 280 */ "NULL_F",
|
|
/* 281 */ "LINEAR",
|
|
/* 282 */ "NEXT",
|
|
/* 283 */ "HAVING",
|
|
/* 284 */ "RANGE",
|
|
/* 285 */ "EVERY",
|
|
/* 286 */ "ORDER",
|
|
/* 287 */ "SLIMIT",
|
|
/* 288 */ "SOFFSET",
|
|
/* 289 */ "LIMIT",
|
|
/* 290 */ "OFFSET",
|
|
/* 291 */ "ASC",
|
|
/* 292 */ "NULLS",
|
|
/* 293 */ "ABORT",
|
|
/* 294 */ "AFTER",
|
|
/* 295 */ "ATTACH",
|
|
/* 296 */ "BEFORE",
|
|
/* 297 */ "BEGIN",
|
|
/* 298 */ "BITAND",
|
|
/* 299 */ "BITNOT",
|
|
/* 300 */ "BITOR",
|
|
/* 301 */ "BLOCKS",
|
|
/* 302 */ "CHANGE",
|
|
/* 303 */ "COMMA",
|
|
/* 304 */ "CONCAT",
|
|
/* 305 */ "CONFLICT",
|
|
/* 306 */ "COPY",
|
|
/* 307 */ "DEFERRED",
|
|
/* 308 */ "DELIMITERS",
|
|
/* 309 */ "DETACH",
|
|
/* 310 */ "DIVIDE",
|
|
/* 311 */ "DOT",
|
|
/* 312 */ "EACH",
|
|
/* 313 */ "FAIL",
|
|
/* 314 */ "FILE",
|
|
/* 315 */ "FOR",
|
|
/* 316 */ "GLOB",
|
|
/* 317 */ "ID",
|
|
/* 318 */ "IMMEDIATE",
|
|
/* 319 */ "IMPORT",
|
|
/* 320 */ "INITIALLY",
|
|
/* 321 */ "INSTEAD",
|
|
/* 322 */ "ISNULL",
|
|
/* 323 */ "KEY",
|
|
/* 324 */ "MODULES",
|
|
/* 325 */ "NK_BITNOT",
|
|
/* 326 */ "NK_SEMI",
|
|
/* 327 */ "NOTNULL",
|
|
/* 328 */ "OF",
|
|
/* 329 */ "PLUS",
|
|
/* 330 */ "PRIVILEGE",
|
|
/* 331 */ "RAISE",
|
|
/* 332 */ "RESTRICT",
|
|
/* 333 */ "ROW",
|
|
/* 334 */ "SEMI",
|
|
/* 335 */ "STAR",
|
|
/* 336 */ "STATEMENT",
|
|
/* 337 */ "STRICT",
|
|
/* 338 */ "STRING",
|
|
/* 339 */ "TIMES",
|
|
/* 340 */ "VALUES",
|
|
/* 341 */ "VARIABLE",
|
|
/* 342 */ "VIEW",
|
|
/* 343 */ "WAL",
|
|
/* 344 */ "cmd",
|
|
/* 345 */ "account_options",
|
|
/* 346 */ "alter_account_options",
|
|
/* 347 */ "literal",
|
|
/* 348 */ "alter_account_option",
|
|
/* 349 */ "ip_range_list",
|
|
/* 350 */ "white_list",
|
|
/* 351 */ "white_list_opt",
|
|
/* 352 */ "user_name",
|
|
/* 353 */ "sysinfo_opt",
|
|
/* 354 */ "privileges",
|
|
/* 355 */ "priv_level",
|
|
/* 356 */ "with_opt",
|
|
/* 357 */ "priv_type_list",
|
|
/* 358 */ "priv_type",
|
|
/* 359 */ "db_name",
|
|
/* 360 */ "table_name",
|
|
/* 361 */ "topic_name",
|
|
/* 362 */ "search_condition",
|
|
/* 363 */ "dnode_endpoint",
|
|
/* 364 */ "force_opt",
|
|
/* 365 */ "unsafe_opt",
|
|
/* 366 */ "not_exists_opt",
|
|
/* 367 */ "db_options",
|
|
/* 368 */ "exists_opt",
|
|
/* 369 */ "alter_db_options",
|
|
/* 370 */ "speed_opt",
|
|
/* 371 */ "start_opt",
|
|
/* 372 */ "end_opt",
|
|
/* 373 */ "integer_list",
|
|
/* 374 */ "variable_list",
|
|
/* 375 */ "retention_list",
|
|
/* 376 */ "signed",
|
|
/* 377 */ "alter_db_option",
|
|
/* 378 */ "retention",
|
|
/* 379 */ "full_table_name",
|
|
/* 380 */ "column_def_list",
|
|
/* 381 */ "tags_def_opt",
|
|
/* 382 */ "table_options",
|
|
/* 383 */ "multi_create_clause",
|
|
/* 384 */ "tags_def",
|
|
/* 385 */ "multi_drop_clause",
|
|
/* 386 */ "alter_table_clause",
|
|
/* 387 */ "alter_table_options",
|
|
/* 388 */ "column_name",
|
|
/* 389 */ "type_name",
|
|
/* 390 */ "signed_literal",
|
|
/* 391 */ "create_subtable_clause",
|
|
/* 392 */ "specific_cols_opt",
|
|
/* 393 */ "expression_list",
|
|
/* 394 */ "drop_table_clause",
|
|
/* 395 */ "col_name_list",
|
|
/* 396 */ "column_def",
|
|
/* 397 */ "duration_list",
|
|
/* 398 */ "rollup_func_list",
|
|
/* 399 */ "alter_table_option",
|
|
/* 400 */ "duration_literal",
|
|
/* 401 */ "rollup_func_name",
|
|
/* 402 */ "function_name",
|
|
/* 403 */ "col_name",
|
|
/* 404 */ "db_kind_opt",
|
|
/* 405 */ "table_kind_db_name_cond_opt",
|
|
/* 406 */ "like_pattern_opt",
|
|
/* 407 */ "db_name_cond_opt",
|
|
/* 408 */ "table_name_cond",
|
|
/* 409 */ "from_db_opt",
|
|
/* 410 */ "tag_list_opt",
|
|
/* 411 */ "table_kind",
|
|
/* 412 */ "tag_item",
|
|
/* 413 */ "column_alias",
|
|
/* 414 */ "index_options",
|
|
/* 415 */ "full_index_name",
|
|
/* 416 */ "index_name",
|
|
/* 417 */ "func_list",
|
|
/* 418 */ "sliding_opt",
|
|
/* 419 */ "sma_stream_opt",
|
|
/* 420 */ "func",
|
|
/* 421 */ "sma_func_name",
|
|
/* 422 */ "with_meta",
|
|
/* 423 */ "query_or_subquery",
|
|
/* 424 */ "where_clause_opt",
|
|
/* 425 */ "cgroup_name",
|
|
/* 426 */ "analyze_opt",
|
|
/* 427 */ "explain_options",
|
|
/* 428 */ "insert_query",
|
|
/* 429 */ "or_replace_opt",
|
|
/* 430 */ "agg_func_opt",
|
|
/* 431 */ "bufsize_opt",
|
|
/* 432 */ "language_opt",
|
|
/* 433 */ "stream_name",
|
|
/* 434 */ "stream_options",
|
|
/* 435 */ "col_list_opt",
|
|
/* 436 */ "tag_def_or_ref_opt",
|
|
/* 437 */ "subtable_opt",
|
|
/* 438 */ "ignore_opt",
|
|
/* 439 */ "expression",
|
|
/* 440 */ "on_vgroup_id",
|
|
/* 441 */ "dnode_list",
|
|
/* 442 */ "literal_func",
|
|
/* 443 */ "literal_list",
|
|
/* 444 */ "table_alias",
|
|
/* 445 */ "expr_or_subquery",
|
|
/* 446 */ "pseudo_column",
|
|
/* 447 */ "column_reference",
|
|
/* 448 */ "function_expression",
|
|
/* 449 */ "case_when_expression",
|
|
/* 450 */ "star_func",
|
|
/* 451 */ "star_func_para_list",
|
|
/* 452 */ "noarg_func",
|
|
/* 453 */ "other_para_list",
|
|
/* 454 */ "star_func_para",
|
|
/* 455 */ "when_then_list",
|
|
/* 456 */ "case_when_else_opt",
|
|
/* 457 */ "common_expression",
|
|
/* 458 */ "when_then_expr",
|
|
/* 459 */ "predicate",
|
|
/* 460 */ "compare_op",
|
|
/* 461 */ "in_op",
|
|
/* 462 */ "in_predicate_value",
|
|
/* 463 */ "boolean_value_expression",
|
|
/* 464 */ "boolean_primary",
|
|
/* 465 */ "from_clause_opt",
|
|
/* 466 */ "table_reference_list",
|
|
/* 467 */ "table_reference",
|
|
/* 468 */ "table_primary",
|
|
/* 469 */ "joined_table",
|
|
/* 470 */ "alias_opt",
|
|
/* 471 */ "subquery",
|
|
/* 472 */ "parenthesized_joined_table",
|
|
/* 473 */ "join_type",
|
|
/* 474 */ "query_specification",
|
|
/* 475 */ "hint_list",
|
|
/* 476 */ "set_quantifier_opt",
|
|
/* 477 */ "tag_mode_opt",
|
|
/* 478 */ "select_list",
|
|
/* 479 */ "partition_by_clause_opt",
|
|
/* 480 */ "range_opt",
|
|
/* 481 */ "every_opt",
|
|
/* 482 */ "fill_opt",
|
|
/* 483 */ "twindow_clause_opt",
|
|
/* 484 */ "group_by_clause_opt",
|
|
/* 485 */ "having_clause_opt",
|
|
/* 486 */ "select_item",
|
|
/* 487 */ "partition_list",
|
|
/* 488 */ "partition_item",
|
|
/* 489 */ "fill_mode",
|
|
/* 490 */ "group_by_list",
|
|
/* 491 */ "query_expression",
|
|
/* 492 */ "query_simple",
|
|
/* 493 */ "order_by_clause_opt",
|
|
/* 494 */ "slimit_clause_opt",
|
|
/* 495 */ "limit_clause_opt",
|
|
/* 496 */ "union_query_expression",
|
|
/* 497 */ "query_simple_or_subquery",
|
|
/* 498 */ "sort_specification_list",
|
|
/* 499 */ "sort_specification",
|
|
/* 500 */ "ordering_specification_opt",
|
|
/* 501 */ "null_ordering_opt",
|
|
};
|
|
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
|
|
|
|
#ifndef NDEBUG
|
|
/* For tracing reduce actions, the names of all rules are required.
|
|
*/
|
|
static const char *const yyRuleName[] = {
|
|
/* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
|
|
/* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
|
|
/* 2 */ "account_options ::=",
|
|
/* 3 */ "account_options ::= account_options PPS literal",
|
|
/* 4 */ "account_options ::= account_options TSERIES literal",
|
|
/* 5 */ "account_options ::= account_options STORAGE literal",
|
|
/* 6 */ "account_options ::= account_options STREAMS literal",
|
|
/* 7 */ "account_options ::= account_options QTIME literal",
|
|
/* 8 */ "account_options ::= account_options DBS literal",
|
|
/* 9 */ "account_options ::= account_options USERS literal",
|
|
/* 10 */ "account_options ::= account_options CONNS literal",
|
|
/* 11 */ "account_options ::= account_options STATE literal",
|
|
/* 12 */ "alter_account_options ::= alter_account_option",
|
|
/* 13 */ "alter_account_options ::= alter_account_options alter_account_option",
|
|
/* 14 */ "alter_account_option ::= PASS literal",
|
|
/* 15 */ "alter_account_option ::= PPS literal",
|
|
/* 16 */ "alter_account_option ::= TSERIES literal",
|
|
/* 17 */ "alter_account_option ::= STORAGE literal",
|
|
/* 18 */ "alter_account_option ::= STREAMS literal",
|
|
/* 19 */ "alter_account_option ::= QTIME literal",
|
|
/* 20 */ "alter_account_option ::= DBS literal",
|
|
/* 21 */ "alter_account_option ::= USERS literal",
|
|
/* 22 */ "alter_account_option ::= CONNS literal",
|
|
/* 23 */ "alter_account_option ::= STATE literal",
|
|
/* 24 */ "ip_range_list ::= NK_STRING",
|
|
/* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING",
|
|
/* 26 */ "white_list ::= HOST ip_range_list",
|
|
/* 27 */ "white_list_opt ::=",
|
|
/* 28 */ "white_list_opt ::= white_list",
|
|
/* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt",
|
|
/* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
|
|
/* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
|
|
/* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
|
|
/* 33 */ "cmd ::= ALTER USER user_name ADD white_list",
|
|
/* 34 */ "cmd ::= ALTER USER user_name DROP white_list",
|
|
/* 35 */ "cmd ::= DROP USER user_name",
|
|
/* 36 */ "sysinfo_opt ::=",
|
|
/* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
|
|
/* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
|
|
/* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
|
|
/* 40 */ "privileges ::= ALL",
|
|
/* 41 */ "privileges ::= priv_type_list",
|
|
/* 42 */ "privileges ::= SUBSCRIBE",
|
|
/* 43 */ "priv_type_list ::= priv_type",
|
|
/* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
|
|
/* 45 */ "priv_type ::= READ",
|
|
/* 46 */ "priv_type ::= WRITE",
|
|
/* 47 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
|
|
/* 48 */ "priv_level ::= db_name NK_DOT NK_STAR",
|
|
/* 49 */ "priv_level ::= db_name NK_DOT table_name",
|
|
/* 50 */ "priv_level ::= topic_name",
|
|
/* 51 */ "with_opt ::=",
|
|
/* 52 */ "with_opt ::= WITH search_condition",
|
|
/* 53 */ "cmd ::= CREATE DNODE dnode_endpoint",
|
|
/* 54 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
|
|
/* 55 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
|
|
/* 56 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
|
|
/* 57 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
|
|
/* 58 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
|
|
/* 59 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
|
|
/* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
|
|
/* 61 */ "cmd ::= ALTER ALL DNODES NK_STRING",
|
|
/* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
|
|
/* 63 */ "cmd ::= RESTORE DNODE NK_INTEGER",
|
|
/* 64 */ "dnode_endpoint ::= NK_STRING",
|
|
/* 65 */ "dnode_endpoint ::= NK_ID",
|
|
/* 66 */ "dnode_endpoint ::= NK_IPTOKEN",
|
|
/* 67 */ "force_opt ::=",
|
|
/* 68 */ "force_opt ::= FORCE",
|
|
/* 69 */ "unsafe_opt ::= UNSAFE",
|
|
/* 70 */ "cmd ::= ALTER LOCAL NK_STRING",
|
|
/* 71 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
|
|
/* 72 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
|
|
/* 73 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
|
|
/* 74 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
|
|
/* 75 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
|
|
/* 76 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
|
|
/* 77 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
|
|
/* 78 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
|
|
/* 79 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
|
|
/* 80 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
|
|
/* 81 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
|
|
/* 82 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
|
|
/* 83 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
|
|
/* 84 */ "cmd ::= DROP DATABASE exists_opt db_name",
|
|
/* 85 */ "cmd ::= USE db_name",
|
|
/* 86 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
|
|
/* 87 */ "cmd ::= FLUSH DATABASE db_name",
|
|
/* 88 */ "cmd ::= TRIM DATABASE db_name speed_opt",
|
|
/* 89 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
|
|
/* 90 */ "not_exists_opt ::= IF NOT EXISTS",
|
|
/* 91 */ "not_exists_opt ::=",
|
|
/* 92 */ "exists_opt ::= IF EXISTS",
|
|
/* 93 */ "exists_opt ::=",
|
|
/* 94 */ "db_options ::=",
|
|
/* 95 */ "db_options ::= db_options BUFFER NK_INTEGER",
|
|
/* 96 */ "db_options ::= db_options CACHEMODEL NK_STRING",
|
|
/* 97 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
|
|
/* 98 */ "db_options ::= db_options COMP NK_INTEGER",
|
|
/* 99 */ "db_options ::= db_options DURATION NK_INTEGER",
|
|
/* 100 */ "db_options ::= db_options DURATION NK_VARIABLE",
|
|
/* 101 */ "db_options ::= db_options MAXROWS NK_INTEGER",
|
|
/* 102 */ "db_options ::= db_options MINROWS NK_INTEGER",
|
|
/* 103 */ "db_options ::= db_options KEEP integer_list",
|
|
/* 104 */ "db_options ::= db_options KEEP variable_list",
|
|
/* 105 */ "db_options ::= db_options PAGES NK_INTEGER",
|
|
/* 106 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
|
|
/* 107 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
|
|
/* 108 */ "db_options ::= db_options PRECISION NK_STRING",
|
|
/* 109 */ "db_options ::= db_options REPLICA NK_INTEGER",
|
|
/* 110 */ "db_options ::= db_options VGROUPS NK_INTEGER",
|
|
/* 111 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
|
|
/* 112 */ "db_options ::= db_options RETENTIONS retention_list",
|
|
/* 113 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
|
|
/* 114 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
|
|
/* 115 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 116 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 117 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 118 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 119 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 120 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
|
|
/* 121 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
|
|
/* 122 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
|
|
/* 123 */ "db_options ::= db_options TABLE_PREFIX signed",
|
|
/* 124 */ "db_options ::= db_options TABLE_SUFFIX signed",
|
|
/* 125 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
|
|
/* 126 */ "alter_db_options ::= alter_db_option",
|
|
/* 127 */ "alter_db_options ::= alter_db_options alter_db_option",
|
|
/* 128 */ "alter_db_option ::= BUFFER NK_INTEGER",
|
|
/* 129 */ "alter_db_option ::= CACHEMODEL NK_STRING",
|
|
/* 130 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
|
|
/* 131 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 132 */ "alter_db_option ::= KEEP integer_list",
|
|
/* 133 */ "alter_db_option ::= KEEP variable_list",
|
|
/* 134 */ "alter_db_option ::= PAGES NK_INTEGER",
|
|
/* 135 */ "alter_db_option ::= REPLICA NK_INTEGER",
|
|
/* 136 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
|
|
/* 137 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
|
|
/* 138 */ "alter_db_option ::= MINROWS NK_INTEGER",
|
|
/* 139 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 140 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 141 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 142 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 143 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
|
|
/* 144 */ "integer_list ::= NK_INTEGER",
|
|
/* 145 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
|
|
/* 146 */ "variable_list ::= NK_VARIABLE",
|
|
/* 147 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
|
|
/* 148 */ "retention_list ::= retention",
|
|
/* 149 */ "retention_list ::= retention_list NK_COMMA retention",
|
|
/* 150 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
|
|
/* 151 */ "speed_opt ::=",
|
|
/* 152 */ "speed_opt ::= BWLIMIT NK_INTEGER",
|
|
/* 153 */ "start_opt ::=",
|
|
/* 154 */ "start_opt ::= START WITH NK_INTEGER",
|
|
/* 155 */ "start_opt ::= START WITH NK_STRING",
|
|
/* 156 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
|
|
/* 157 */ "end_opt ::=",
|
|
/* 158 */ "end_opt ::= END WITH NK_INTEGER",
|
|
/* 159 */ "end_opt ::= END WITH NK_STRING",
|
|
/* 160 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
|
|
/* 161 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
|
|
/* 162 */ "cmd ::= CREATE TABLE multi_create_clause",
|
|
/* 163 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
|
|
/* 164 */ "cmd ::= DROP TABLE multi_drop_clause",
|
|
/* 165 */ "cmd ::= DROP STABLE exists_opt full_table_name",
|
|
/* 166 */ "cmd ::= ALTER TABLE alter_table_clause",
|
|
/* 167 */ "cmd ::= ALTER STABLE alter_table_clause",
|
|
/* 168 */ "alter_table_clause ::= full_table_name alter_table_options",
|
|
/* 169 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
|
|
/* 170 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
|
|
/* 171 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
|
|
/* 172 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
|
|
/* 173 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
|
|
/* 174 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
|
|
/* 175 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
|
|
/* 176 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
|
|
/* 177 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
|
|
/* 178 */ "multi_create_clause ::= create_subtable_clause",
|
|
/* 179 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
|
|
/* 180 */ "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",
|
|
/* 181 */ "multi_drop_clause ::= drop_table_clause",
|
|
/* 182 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
|
|
/* 183 */ "drop_table_clause ::= exists_opt full_table_name",
|
|
/* 184 */ "specific_cols_opt ::=",
|
|
/* 185 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 186 */ "full_table_name ::= table_name",
|
|
/* 187 */ "full_table_name ::= db_name NK_DOT table_name",
|
|
/* 188 */ "column_def_list ::= column_def",
|
|
/* 189 */ "column_def_list ::= column_def_list NK_COMMA column_def",
|
|
/* 190 */ "column_def ::= column_name type_name",
|
|
/* 191 */ "type_name ::= BOOL",
|
|
/* 192 */ "type_name ::= TINYINT",
|
|
/* 193 */ "type_name ::= SMALLINT",
|
|
/* 194 */ "type_name ::= INT",
|
|
/* 195 */ "type_name ::= INTEGER",
|
|
/* 196 */ "type_name ::= BIGINT",
|
|
/* 197 */ "type_name ::= FLOAT",
|
|
/* 198 */ "type_name ::= DOUBLE",
|
|
/* 199 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 200 */ "type_name ::= TIMESTAMP",
|
|
/* 201 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 202 */ "type_name ::= TINYINT UNSIGNED",
|
|
/* 203 */ "type_name ::= SMALLINT UNSIGNED",
|
|
/* 204 */ "type_name ::= INT UNSIGNED",
|
|
/* 205 */ "type_name ::= BIGINT UNSIGNED",
|
|
/* 206 */ "type_name ::= JSON",
|
|
/* 207 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 208 */ "type_name ::= MEDIUMBLOB",
|
|
/* 209 */ "type_name ::= BLOB",
|
|
/* 210 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 211 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
|
|
/* 212 */ "type_name ::= DECIMAL",
|
|
/* 213 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
|
|
/* 214 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
/* 215 */ "tags_def_opt ::=",
|
|
/* 216 */ "tags_def_opt ::= tags_def",
|
|
/* 217 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
|
|
/* 218 */ "table_options ::=",
|
|
/* 219 */ "table_options ::= table_options COMMENT NK_STRING",
|
|
/* 220 */ "table_options ::= table_options MAX_DELAY duration_list",
|
|
/* 221 */ "table_options ::= table_options WATERMARK duration_list",
|
|
/* 222 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
|
|
/* 223 */ "table_options ::= table_options TTL NK_INTEGER",
|
|
/* 224 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
|
|
/* 225 */ "table_options ::= table_options DELETE_MARK duration_list",
|
|
/* 226 */ "alter_table_options ::= alter_table_option",
|
|
/* 227 */ "alter_table_options ::= alter_table_options alter_table_option",
|
|
/* 228 */ "alter_table_option ::= COMMENT NK_STRING",
|
|
/* 229 */ "alter_table_option ::= TTL NK_INTEGER",
|
|
/* 230 */ "duration_list ::= duration_literal",
|
|
/* 231 */ "duration_list ::= duration_list NK_COMMA duration_literal",
|
|
/* 232 */ "rollup_func_list ::= rollup_func_name",
|
|
/* 233 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
|
|
/* 234 */ "rollup_func_name ::= function_name",
|
|
/* 235 */ "rollup_func_name ::= FIRST",
|
|
/* 236 */ "rollup_func_name ::= LAST",
|
|
/* 237 */ "col_name_list ::= col_name",
|
|
/* 238 */ "col_name_list ::= col_name_list NK_COMMA col_name",
|
|
/* 239 */ "col_name ::= column_name",
|
|
/* 240 */ "cmd ::= SHOW DNODES",
|
|
/* 241 */ "cmd ::= SHOW USERS",
|
|
/* 242 */ "cmd ::= SHOW USER PRIVILEGES",
|
|
/* 243 */ "cmd ::= SHOW db_kind_opt DATABASES",
|
|
/* 244 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
|
|
/* 245 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
|
|
/* 246 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
|
|
/* 247 */ "cmd ::= SHOW MNODES",
|
|
/* 248 */ "cmd ::= SHOW QNODES",
|
|
/* 249 */ "cmd ::= SHOW FUNCTIONS",
|
|
/* 250 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
/* 251 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
/* 252 */ "cmd ::= SHOW STREAMS",
|
|
/* 253 */ "cmd ::= SHOW ACCOUNTS",
|
|
/* 254 */ "cmd ::= SHOW APPS",
|
|
/* 255 */ "cmd ::= SHOW CONNECTIONS",
|
|
/* 256 */ "cmd ::= SHOW LICENCES",
|
|
/* 257 */ "cmd ::= SHOW GRANTS",
|
|
/* 258 */ "cmd ::= SHOW CREATE DATABASE db_name",
|
|
/* 259 */ "cmd ::= SHOW CREATE TABLE full_table_name",
|
|
/* 260 */ "cmd ::= SHOW CREATE STABLE full_table_name",
|
|
/* 261 */ "cmd ::= SHOW QUERIES",
|
|
/* 262 */ "cmd ::= SHOW SCORES",
|
|
/* 263 */ "cmd ::= SHOW TOPICS",
|
|
/* 264 */ "cmd ::= SHOW VARIABLES",
|
|
/* 265 */ "cmd ::= SHOW CLUSTER VARIABLES",
|
|
/* 266 */ "cmd ::= SHOW LOCAL VARIABLES",
|
|
/* 267 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
|
|
/* 268 */ "cmd ::= SHOW BNODES",
|
|
/* 269 */ "cmd ::= SHOW SNODES",
|
|
/* 270 */ "cmd ::= SHOW CLUSTER",
|
|
/* 271 */ "cmd ::= SHOW TRANSACTIONS",
|
|
/* 272 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
|
|
/* 273 */ "cmd ::= SHOW CONSUMERS",
|
|
/* 274 */ "cmd ::= SHOW SUBSCRIPTIONS",
|
|
/* 275 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
|
|
/* 276 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
|
|
/* 277 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
|
|
/* 278 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
|
|
/* 279 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
|
|
/* 280 */ "cmd ::= SHOW VNODES",
|
|
/* 281 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
|
|
/* 282 */ "cmd ::= SHOW CLUSTER ALIVE",
|
|
/* 283 */ "table_kind_db_name_cond_opt ::=",
|
|
/* 284 */ "table_kind_db_name_cond_opt ::= table_kind",
|
|
/* 285 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 286 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
|
|
/* 287 */ "table_kind ::= NORMAL",
|
|
/* 288 */ "table_kind ::= CHILD",
|
|
/* 289 */ "db_name_cond_opt ::=",
|
|
/* 290 */ "db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 291 */ "like_pattern_opt ::=",
|
|
/* 292 */ "like_pattern_opt ::= LIKE NK_STRING",
|
|
/* 293 */ "table_name_cond ::= table_name",
|
|
/* 294 */ "from_db_opt ::=",
|
|
/* 295 */ "from_db_opt ::= FROM db_name",
|
|
/* 296 */ "tag_list_opt ::=",
|
|
/* 297 */ "tag_list_opt ::= tag_item",
|
|
/* 298 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
|
|
/* 299 */ "tag_item ::= TBNAME",
|
|
/* 300 */ "tag_item ::= QTAGS",
|
|
/* 301 */ "tag_item ::= column_name",
|
|
/* 302 */ "tag_item ::= column_name column_alias",
|
|
/* 303 */ "tag_item ::= column_name AS column_alias",
|
|
/* 304 */ "db_kind_opt ::=",
|
|
/* 305 */ "db_kind_opt ::= USER",
|
|
/* 306 */ "db_kind_opt ::= SYSTEM",
|
|
/* 307 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
|
|
/* 308 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
|
|
/* 309 */ "cmd ::= DROP INDEX exists_opt full_index_name",
|
|
/* 310 */ "full_index_name ::= index_name",
|
|
/* 311 */ "full_index_name ::= db_name NK_DOT index_name",
|
|
/* 312 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
/* 313 */ "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",
|
|
/* 314 */ "func_list ::= func",
|
|
/* 315 */ "func_list ::= func_list NK_COMMA func",
|
|
/* 316 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
|
|
/* 317 */ "sma_func_name ::= function_name",
|
|
/* 318 */ "sma_func_name ::= COUNT",
|
|
/* 319 */ "sma_func_name ::= FIRST",
|
|
/* 320 */ "sma_func_name ::= LAST",
|
|
/* 321 */ "sma_func_name ::= LAST_ROW",
|
|
/* 322 */ "sma_stream_opt ::=",
|
|
/* 323 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
|
|
/* 324 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
|
|
/* 325 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
|
|
/* 326 */ "with_meta ::= AS",
|
|
/* 327 */ "with_meta ::= WITH META AS",
|
|
/* 328 */ "with_meta ::= ONLY META AS",
|
|
/* 329 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
|
|
/* 330 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
|
|
/* 331 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
|
|
/* 332 */ "cmd ::= DROP TOPIC exists_opt topic_name",
|
|
/* 333 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
|
|
/* 334 */ "cmd ::= DESC full_table_name",
|
|
/* 335 */ "cmd ::= DESCRIBE full_table_name",
|
|
/* 336 */ "cmd ::= RESET QUERY CACHE",
|
|
/* 337 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
|
|
/* 338 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
|
|
/* 339 */ "analyze_opt ::=",
|
|
/* 340 */ "analyze_opt ::= ANALYZE",
|
|
/* 341 */ "explain_options ::=",
|
|
/* 342 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
|
|
/* 343 */ "explain_options ::= explain_options RATIO NK_FLOAT",
|
|
/* 344 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
|
|
/* 345 */ "cmd ::= DROP FUNCTION exists_opt function_name",
|
|
/* 346 */ "agg_func_opt ::=",
|
|
/* 347 */ "agg_func_opt ::= AGGREGATE",
|
|
/* 348 */ "bufsize_opt ::=",
|
|
/* 349 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
|
|
/* 350 */ "language_opt ::=",
|
|
/* 351 */ "language_opt ::= LANGUAGE NK_STRING",
|
|
/* 352 */ "or_replace_opt ::=",
|
|
/* 353 */ "or_replace_opt ::= OR REPLACE",
|
|
/* 354 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery",
|
|
/* 355 */ "cmd ::= DROP STREAM exists_opt stream_name",
|
|
/* 356 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
|
|
/* 357 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
|
|
/* 358 */ "col_list_opt ::=",
|
|
/* 359 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 360 */ "tag_def_or_ref_opt ::=",
|
|
/* 361 */ "tag_def_or_ref_opt ::= tags_def",
|
|
/* 362 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
|
|
/* 363 */ "stream_options ::=",
|
|
/* 364 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
|
|
/* 365 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
|
|
/* 366 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
|
|
/* 367 */ "stream_options ::= stream_options WATERMARK duration_literal",
|
|
/* 368 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
|
|
/* 369 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
|
|
/* 370 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
|
|
/* 371 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
|
|
/* 372 */ "subtable_opt ::=",
|
|
/* 373 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
|
|
/* 374 */ "ignore_opt ::=",
|
|
/* 375 */ "ignore_opt ::= IGNORE UNTREATED",
|
|
/* 376 */ "cmd ::= KILL CONNECTION NK_INTEGER",
|
|
/* 377 */ "cmd ::= KILL QUERY NK_STRING",
|
|
/* 378 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
|
|
/* 379 */ "cmd ::= BALANCE VGROUP",
|
|
/* 380 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
|
|
/* 381 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
|
|
/* 382 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
|
|
/* 383 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
|
|
/* 384 */ "on_vgroup_id ::=",
|
|
/* 385 */ "on_vgroup_id ::= ON NK_INTEGER",
|
|
/* 386 */ "dnode_list ::= DNODE NK_INTEGER",
|
|
/* 387 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
|
|
/* 388 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
|
|
/* 389 */ "cmd ::= query_or_subquery",
|
|
/* 390 */ "cmd ::= insert_query",
|
|
/* 391 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
|
|
/* 392 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
|
|
/* 393 */ "literal ::= NK_INTEGER",
|
|
/* 394 */ "literal ::= NK_FLOAT",
|
|
/* 395 */ "literal ::= NK_STRING",
|
|
/* 396 */ "literal ::= NK_BOOL",
|
|
/* 397 */ "literal ::= TIMESTAMP NK_STRING",
|
|
/* 398 */ "literal ::= duration_literal",
|
|
/* 399 */ "literal ::= NULL",
|
|
/* 400 */ "literal ::= NK_QUESTION",
|
|
/* 401 */ "duration_literal ::= NK_VARIABLE",
|
|
/* 402 */ "signed ::= NK_INTEGER",
|
|
/* 403 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
/* 404 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
/* 405 */ "signed ::= NK_FLOAT",
|
|
/* 406 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
/* 407 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
/* 408 */ "signed_literal ::= signed",
|
|
/* 409 */ "signed_literal ::= NK_STRING",
|
|
/* 410 */ "signed_literal ::= NK_BOOL",
|
|
/* 411 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
/* 412 */ "signed_literal ::= duration_literal",
|
|
/* 413 */ "signed_literal ::= NULL",
|
|
/* 414 */ "signed_literal ::= literal_func",
|
|
/* 415 */ "signed_literal ::= NK_QUESTION",
|
|
/* 416 */ "literal_list ::= signed_literal",
|
|
/* 417 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
/* 418 */ "db_name ::= NK_ID",
|
|
/* 419 */ "table_name ::= NK_ID",
|
|
/* 420 */ "column_name ::= NK_ID",
|
|
/* 421 */ "function_name ::= NK_ID",
|
|
/* 422 */ "table_alias ::= NK_ID",
|
|
/* 423 */ "column_alias ::= NK_ID",
|
|
/* 424 */ "user_name ::= NK_ID",
|
|
/* 425 */ "topic_name ::= NK_ID",
|
|
/* 426 */ "stream_name ::= NK_ID",
|
|
/* 427 */ "cgroup_name ::= NK_ID",
|
|
/* 428 */ "index_name ::= NK_ID",
|
|
/* 429 */ "expr_or_subquery ::= expression",
|
|
/* 430 */ "expression ::= literal",
|
|
/* 431 */ "expression ::= pseudo_column",
|
|
/* 432 */ "expression ::= column_reference",
|
|
/* 433 */ "expression ::= function_expression",
|
|
/* 434 */ "expression ::= case_when_expression",
|
|
/* 435 */ "expression ::= NK_LP expression NK_RP",
|
|
/* 436 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
/* 437 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
/* 438 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
/* 439 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
/* 440 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
/* 441 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
/* 442 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
/* 443 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
/* 444 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
/* 445 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
/* 446 */ "expression_list ::= expr_or_subquery",
|
|
/* 447 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
/* 448 */ "column_reference ::= column_name",
|
|
/* 449 */ "column_reference ::= table_name NK_DOT column_name",
|
|
/* 450 */ "pseudo_column ::= ROWTS",
|
|
/* 451 */ "pseudo_column ::= TBNAME",
|
|
/* 452 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
/* 453 */ "pseudo_column ::= QSTART",
|
|
/* 454 */ "pseudo_column ::= QEND",
|
|
/* 455 */ "pseudo_column ::= QDURATION",
|
|
/* 456 */ "pseudo_column ::= WSTART",
|
|
/* 457 */ "pseudo_column ::= WEND",
|
|
/* 458 */ "pseudo_column ::= WDURATION",
|
|
/* 459 */ "pseudo_column ::= IROWTS",
|
|
/* 460 */ "pseudo_column ::= ISFILLED",
|
|
/* 461 */ "pseudo_column ::= QTAGS",
|
|
/* 462 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
/* 463 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
/* 464 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
/* 465 */ "function_expression ::= literal_func",
|
|
/* 466 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
/* 467 */ "literal_func ::= NOW",
|
|
/* 468 */ "noarg_func ::= NOW",
|
|
/* 469 */ "noarg_func ::= TODAY",
|
|
/* 470 */ "noarg_func ::= TIMEZONE",
|
|
/* 471 */ "noarg_func ::= DATABASE",
|
|
/* 472 */ "noarg_func ::= CLIENT_VERSION",
|
|
/* 473 */ "noarg_func ::= SERVER_VERSION",
|
|
/* 474 */ "noarg_func ::= SERVER_STATUS",
|
|
/* 475 */ "noarg_func ::= CURRENT_USER",
|
|
/* 476 */ "noarg_func ::= USER",
|
|
/* 477 */ "star_func ::= COUNT",
|
|
/* 478 */ "star_func ::= FIRST",
|
|
/* 479 */ "star_func ::= LAST",
|
|
/* 480 */ "star_func ::= LAST_ROW",
|
|
/* 481 */ "star_func_para_list ::= NK_STAR",
|
|
/* 482 */ "star_func_para_list ::= other_para_list",
|
|
/* 483 */ "other_para_list ::= star_func_para",
|
|
/* 484 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
/* 485 */ "star_func_para ::= expr_or_subquery",
|
|
/* 486 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
/* 487 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
/* 488 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
/* 489 */ "when_then_list ::= when_then_expr",
|
|
/* 490 */ "when_then_list ::= when_then_list when_then_expr",
|
|
/* 491 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
/* 492 */ "case_when_else_opt ::=",
|
|
/* 493 */ "case_when_else_opt ::= ELSE common_expression",
|
|
/* 494 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
/* 495 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 496 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 497 */ "predicate ::= expr_or_subquery IS NULL",
|
|
/* 498 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
/* 499 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
/* 500 */ "compare_op ::= NK_LT",
|
|
/* 501 */ "compare_op ::= NK_GT",
|
|
/* 502 */ "compare_op ::= NK_LE",
|
|
/* 503 */ "compare_op ::= NK_GE",
|
|
/* 504 */ "compare_op ::= NK_NE",
|
|
/* 505 */ "compare_op ::= NK_EQ",
|
|
/* 506 */ "compare_op ::= LIKE",
|
|
/* 507 */ "compare_op ::= NOT LIKE",
|
|
/* 508 */ "compare_op ::= MATCH",
|
|
/* 509 */ "compare_op ::= NMATCH",
|
|
/* 510 */ "compare_op ::= CONTAINS",
|
|
/* 511 */ "in_op ::= IN",
|
|
/* 512 */ "in_op ::= NOT IN",
|
|
/* 513 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
/* 514 */ "boolean_value_expression ::= boolean_primary",
|
|
/* 515 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
/* 516 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
/* 517 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
/* 518 */ "boolean_primary ::= predicate",
|
|
/* 519 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
/* 520 */ "common_expression ::= expr_or_subquery",
|
|
/* 521 */ "common_expression ::= boolean_value_expression",
|
|
/* 522 */ "from_clause_opt ::=",
|
|
/* 523 */ "from_clause_opt ::= FROM table_reference_list",
|
|
/* 524 */ "table_reference_list ::= table_reference",
|
|
/* 525 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
/* 526 */ "table_reference ::= table_primary",
|
|
/* 527 */ "table_reference ::= joined_table",
|
|
/* 528 */ "table_primary ::= table_name alias_opt",
|
|
/* 529 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
/* 530 */ "table_primary ::= subquery alias_opt",
|
|
/* 531 */ "table_primary ::= parenthesized_joined_table",
|
|
/* 532 */ "alias_opt ::=",
|
|
/* 533 */ "alias_opt ::= table_alias",
|
|
/* 534 */ "alias_opt ::= AS table_alias",
|
|
/* 535 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
/* 536 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
/* 537 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
|
|
/* 538 */ "join_type ::=",
|
|
/* 539 */ "join_type ::= INNER",
|
|
/* 540 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt",
|
|
/* 541 */ "hint_list ::=",
|
|
/* 542 */ "hint_list ::= NK_HINT",
|
|
/* 543 */ "tag_mode_opt ::=",
|
|
/* 544 */ "tag_mode_opt ::= TAGS",
|
|
/* 545 */ "set_quantifier_opt ::=",
|
|
/* 546 */ "set_quantifier_opt ::= DISTINCT",
|
|
/* 547 */ "set_quantifier_opt ::= ALL",
|
|
/* 548 */ "select_list ::= select_item",
|
|
/* 549 */ "select_list ::= select_list NK_COMMA select_item",
|
|
/* 550 */ "select_item ::= NK_STAR",
|
|
/* 551 */ "select_item ::= common_expression",
|
|
/* 552 */ "select_item ::= common_expression column_alias",
|
|
/* 553 */ "select_item ::= common_expression AS column_alias",
|
|
/* 554 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
/* 555 */ "where_clause_opt ::=",
|
|
/* 556 */ "where_clause_opt ::= WHERE search_condition",
|
|
/* 557 */ "partition_by_clause_opt ::=",
|
|
/* 558 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
/* 559 */ "partition_list ::= partition_item",
|
|
/* 560 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
/* 561 */ "partition_item ::= expr_or_subquery",
|
|
/* 562 */ "partition_item ::= expr_or_subquery column_alias",
|
|
/* 563 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
/* 564 */ "twindow_clause_opt ::=",
|
|
/* 565 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
|
|
/* 566 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
/* 567 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 568 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 569 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
|
/* 570 */ "sliding_opt ::=",
|
|
/* 571 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
|
|
/* 572 */ "fill_opt ::=",
|
|
/* 573 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
/* 574 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
/* 575 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
/* 576 */ "fill_mode ::= NONE",
|
|
/* 577 */ "fill_mode ::= PREV",
|
|
/* 578 */ "fill_mode ::= NULL",
|
|
/* 579 */ "fill_mode ::= NULL_F",
|
|
/* 580 */ "fill_mode ::= LINEAR",
|
|
/* 581 */ "fill_mode ::= NEXT",
|
|
/* 582 */ "group_by_clause_opt ::=",
|
|
/* 583 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
/* 584 */ "group_by_list ::= expr_or_subquery",
|
|
/* 585 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
/* 586 */ "having_clause_opt ::=",
|
|
/* 587 */ "having_clause_opt ::= HAVING search_condition",
|
|
/* 588 */ "range_opt ::=",
|
|
/* 589 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
/* 590 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
/* 591 */ "every_opt ::=",
|
|
/* 592 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
/* 593 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
/* 594 */ "query_simple ::= query_specification",
|
|
/* 595 */ "query_simple ::= union_query_expression",
|
|
/* 596 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
/* 597 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
/* 598 */ "query_simple_or_subquery ::= query_simple",
|
|
/* 599 */ "query_simple_or_subquery ::= subquery",
|
|
/* 600 */ "query_or_subquery ::= query_expression",
|
|
/* 601 */ "query_or_subquery ::= subquery",
|
|
/* 602 */ "order_by_clause_opt ::=",
|
|
/* 603 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
/* 604 */ "slimit_clause_opt ::=",
|
|
/* 605 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
/* 606 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
/* 607 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 608 */ "limit_clause_opt ::=",
|
|
/* 609 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
/* 610 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
/* 611 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 612 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
/* 613 */ "subquery ::= NK_LP subquery NK_RP",
|
|
/* 614 */ "search_condition ::= common_expression",
|
|
/* 615 */ "sort_specification_list ::= sort_specification",
|
|
/* 616 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
/* 617 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
/* 618 */ "ordering_specification_opt ::=",
|
|
/* 619 */ "ordering_specification_opt ::= ASC",
|
|
/* 620 */ "ordering_specification_opt ::= DESC",
|
|
/* 621 */ "null_ordering_opt ::=",
|
|
/* 622 */ "null_ordering_opt ::= NULLS FIRST",
|
|
/* 623 */ "null_ordering_opt ::= NULLS LAST",
|
|
};
|
|
#endif /* NDEBUG */
|
|
|
|
|
|
#if YYSTACKDEPTH<=0
|
|
/*
|
|
** Try to increase the size of the parser stack. Return the number
|
|
** of errors. Return 0 on success.
|
|
*/
|
|
static int yyGrowStack(yyParser *p){
|
|
int newSize;
|
|
int idx;
|
|
yyStackEntry *pNew;
|
|
|
|
newSize = p->yystksz*2 + 100;
|
|
idx = p->yytos ? (int)(p->yytos - p->yystack) : 0;
|
|
if( p->yystack==&p->yystk0 ){
|
|
pNew = malloc(newSize*sizeof(pNew[0]));
|
|
if( pNew ) pNew[0] = p->yystk0;
|
|
}else{
|
|
pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
|
|
}
|
|
if( pNew ){
|
|
p->yystack = pNew;
|
|
p->yytos = &p->yystack[idx];
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n",
|
|
yyTracePrompt, p->yystksz, newSize);
|
|
}
|
|
#endif
|
|
p->yystksz = newSize;
|
|
}
|
|
return pNew==0;
|
|
}
|
|
#endif
|
|
|
|
/* Datatype of the argument to the memory allocated passed as the
|
|
** second argument to ParseAlloc() below. This can be changed by
|
|
** putting an appropriate #define in the %include section of the input
|
|
** grammar.
|
|
*/
|
|
#ifndef YYMALLOCARGTYPE
|
|
# define YYMALLOCARGTYPE size_t
|
|
#endif
|
|
|
|
/* Initialize a new parser that has already been allocated.
|
|
*/
|
|
void ParseInit(void *yypRawParser ParseCTX_PDECL){
|
|
yyParser *yypParser = (yyParser*)yypRawParser;
|
|
ParseCTX_STORE
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
yypParser->yyhwm = 0;
|
|
#endif
|
|
#if YYSTACKDEPTH<=0
|
|
yypParser->yytos = NULL;
|
|
yypParser->yystack = NULL;
|
|
yypParser->yystksz = 0;
|
|
if( yyGrowStack(yypParser) ){
|
|
yypParser->yystack = &yypParser->yystk0;
|
|
yypParser->yystksz = 1;
|
|
}
|
|
#endif
|
|
#ifndef YYNOERRORRECOVERY
|
|
yypParser->yyerrcnt = -1;
|
|
#endif
|
|
yypParser->yytos = yypParser->yystack;
|
|
yypParser->yystack[0].stateno = 0;
|
|
yypParser->yystack[0].major = 0;
|
|
#if YYSTACKDEPTH>0
|
|
yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1];
|
|
#endif
|
|
}
|
|
|
|
#ifndef Parse_ENGINEALWAYSONSTACK
|
|
/*
|
|
** This function allocates a new parser.
|
|
** The only argument is a pointer to a function which works like
|
|
** malloc.
|
|
**
|
|
** Inputs:
|
|
** A pointer to the function used to allocate memory.
|
|
**
|
|
** Outputs:
|
|
** A pointer to a parser. This pointer is used in subsequent calls
|
|
** to Parse and ParseFree.
|
|
*/
|
|
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
|
|
yyParser *yypParser;
|
|
yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
|
|
if( yypParser ){
|
|
ParseCTX_STORE
|
|
ParseInit(yypParser ParseCTX_PARAM);
|
|
}
|
|
return (void*)yypParser;
|
|
}
|
|
#endif /* Parse_ENGINEALWAYSONSTACK */
|
|
|
|
|
|
/* The following function deletes the "minor type" or semantic value
|
|
** associated with a symbol. The symbol can be either a terminal
|
|
** or nonterminal. "yymajor" is the symbol code, and "yypminor" is
|
|
** a pointer to the value to be deleted. The code used to do the
|
|
** deletions is derived from the %destructor and/or %token_destructor
|
|
** directives of the input grammar.
|
|
*/
|
|
static void yy_destructor(
|
|
yyParser *yypParser, /* The parser */
|
|
YYCODETYPE yymajor, /* Type code for object to destroy */
|
|
YYMINORTYPE *yypminor /* The object to be destroyed */
|
|
){
|
|
ParseARG_FETCH
|
|
ParseCTX_FETCH
|
|
switch( yymajor ){
|
|
/* Here is inserted the actions which take place when a
|
|
** terminal or non-terminal is destroyed. This can happen
|
|
** when the symbol is popped from the stack during a
|
|
** reduce or during error processing or when a parser is
|
|
** being destroyed before it is finished parsing.
|
|
**
|
|
** Note: during a reduce, the only symbols destroyed are those
|
|
** which appear on the RHS of the rule, but which are *not* used
|
|
** inside the C code.
|
|
*/
|
|
/********* Begin destructor definitions ***************************************/
|
|
/* Default NON-TERMINAL Destructor */
|
|
case 344: /* cmd */
|
|
case 347: /* literal */
|
|
case 356: /* with_opt */
|
|
case 362: /* search_condition */
|
|
case 367: /* db_options */
|
|
case 369: /* alter_db_options */
|
|
case 371: /* start_opt */
|
|
case 372: /* end_opt */
|
|
case 376: /* signed */
|
|
case 378: /* retention */
|
|
case 379: /* full_table_name */
|
|
case 382: /* table_options */
|
|
case 386: /* alter_table_clause */
|
|
case 387: /* alter_table_options */
|
|
case 390: /* signed_literal */
|
|
case 391: /* create_subtable_clause */
|
|
case 394: /* drop_table_clause */
|
|
case 396: /* column_def */
|
|
case 400: /* duration_literal */
|
|
case 401: /* rollup_func_name */
|
|
case 403: /* col_name */
|
|
case 406: /* like_pattern_opt */
|
|
case 407: /* db_name_cond_opt */
|
|
case 408: /* table_name_cond */
|
|
case 409: /* from_db_opt */
|
|
case 412: /* tag_item */
|
|
case 414: /* index_options */
|
|
case 415: /* full_index_name */
|
|
case 418: /* sliding_opt */
|
|
case 419: /* sma_stream_opt */
|
|
case 420: /* func */
|
|
case 423: /* query_or_subquery */
|
|
case 424: /* where_clause_opt */
|
|
case 427: /* explain_options */
|
|
case 428: /* insert_query */
|
|
case 434: /* stream_options */
|
|
case 437: /* subtable_opt */
|
|
case 439: /* expression */
|
|
case 442: /* literal_func */
|
|
case 445: /* expr_or_subquery */
|
|
case 446: /* pseudo_column */
|
|
case 447: /* column_reference */
|
|
case 448: /* function_expression */
|
|
case 449: /* case_when_expression */
|
|
case 454: /* star_func_para */
|
|
case 456: /* case_when_else_opt */
|
|
case 457: /* common_expression */
|
|
case 458: /* when_then_expr */
|
|
case 459: /* predicate */
|
|
case 462: /* in_predicate_value */
|
|
case 463: /* boolean_value_expression */
|
|
case 464: /* boolean_primary */
|
|
case 465: /* from_clause_opt */
|
|
case 466: /* table_reference_list */
|
|
case 467: /* table_reference */
|
|
case 468: /* table_primary */
|
|
case 469: /* joined_table */
|
|
case 471: /* subquery */
|
|
case 472: /* parenthesized_joined_table */
|
|
case 474: /* query_specification */
|
|
case 480: /* range_opt */
|
|
case 481: /* every_opt */
|
|
case 482: /* fill_opt */
|
|
case 483: /* twindow_clause_opt */
|
|
case 485: /* having_clause_opt */
|
|
case 486: /* select_item */
|
|
case 488: /* partition_item */
|
|
case 491: /* query_expression */
|
|
case 492: /* query_simple */
|
|
case 494: /* slimit_clause_opt */
|
|
case 495: /* limit_clause_opt */
|
|
case 496: /* union_query_expression */
|
|
case 497: /* query_simple_or_subquery */
|
|
case 499: /* sort_specification */
|
|
{
|
|
#line 7 "sql.y"
|
|
nodesDestroyNode((yypminor->yy348));
|
|
#line 3247 "sql.c"
|
|
}
|
|
break;
|
|
case 345: /* account_options */
|
|
case 346: /* alter_account_options */
|
|
case 348: /* alter_account_option */
|
|
case 370: /* speed_opt */
|
|
case 422: /* with_meta */
|
|
case 431: /* bufsize_opt */
|
|
{
|
|
#line 54 "sql.y"
|
|
|
|
#line 3259 "sql.c"
|
|
}
|
|
break;
|
|
case 349: /* ip_range_list */
|
|
case 350: /* white_list */
|
|
case 351: /* white_list_opt */
|
|
case 373: /* integer_list */
|
|
case 374: /* variable_list */
|
|
case 375: /* retention_list */
|
|
case 380: /* column_def_list */
|
|
case 381: /* tags_def_opt */
|
|
case 383: /* multi_create_clause */
|
|
case 384: /* tags_def */
|
|
case 385: /* multi_drop_clause */
|
|
case 392: /* specific_cols_opt */
|
|
case 393: /* expression_list */
|
|
case 395: /* col_name_list */
|
|
case 397: /* duration_list */
|
|
case 398: /* rollup_func_list */
|
|
case 410: /* tag_list_opt */
|
|
case 417: /* func_list */
|
|
case 435: /* col_list_opt */
|
|
case 436: /* tag_def_or_ref_opt */
|
|
case 441: /* dnode_list */
|
|
case 443: /* literal_list */
|
|
case 451: /* star_func_para_list */
|
|
case 453: /* other_para_list */
|
|
case 455: /* when_then_list */
|
|
case 475: /* hint_list */
|
|
case 478: /* select_list */
|
|
case 479: /* partition_by_clause_opt */
|
|
case 484: /* group_by_clause_opt */
|
|
case 487: /* partition_list */
|
|
case 490: /* group_by_list */
|
|
case 493: /* order_by_clause_opt */
|
|
case 498: /* sort_specification_list */
|
|
{
|
|
#line 85 "sql.y"
|
|
nodesDestroyList((yypminor->yy860));
|
|
#line 3298 "sql.c"
|
|
}
|
|
break;
|
|
case 352: /* user_name */
|
|
case 359: /* db_name */
|
|
case 360: /* table_name */
|
|
case 361: /* topic_name */
|
|
case 363: /* dnode_endpoint */
|
|
case 388: /* column_name */
|
|
case 402: /* function_name */
|
|
case 413: /* column_alias */
|
|
case 416: /* index_name */
|
|
case 421: /* sma_func_name */
|
|
case 425: /* cgroup_name */
|
|
case 432: /* language_opt */
|
|
case 433: /* stream_name */
|
|
case 440: /* on_vgroup_id */
|
|
case 444: /* table_alias */
|
|
case 450: /* star_func */
|
|
case 452: /* noarg_func */
|
|
case 470: /* alias_opt */
|
|
{
|
|
#line 792 "sql.y"
|
|
|
|
#line 3322 "sql.c"
|
|
}
|
|
break;
|
|
case 353: /* sysinfo_opt */
|
|
{
|
|
#line 112 "sql.y"
|
|
|
|
#line 3329 "sql.c"
|
|
}
|
|
break;
|
|
case 354: /* privileges */
|
|
case 357: /* priv_type_list */
|
|
case 358: /* priv_type */
|
|
{
|
|
#line 121 "sql.y"
|
|
|
|
#line 3338 "sql.c"
|
|
}
|
|
break;
|
|
case 355: /* priv_level */
|
|
{
|
|
#line 137 "sql.y"
|
|
|
|
#line 3345 "sql.c"
|
|
}
|
|
break;
|
|
case 364: /* force_opt */
|
|
case 365: /* unsafe_opt */
|
|
case 366: /* not_exists_opt */
|
|
case 368: /* exists_opt */
|
|
case 426: /* analyze_opt */
|
|
case 429: /* or_replace_opt */
|
|
case 430: /* agg_func_opt */
|
|
case 438: /* ignore_opt */
|
|
case 476: /* set_quantifier_opt */
|
|
case 477: /* tag_mode_opt */
|
|
{
|
|
#line 166 "sql.y"
|
|
|
|
#line 3361 "sql.c"
|
|
}
|
|
break;
|
|
case 377: /* alter_db_option */
|
|
case 399: /* alter_table_option */
|
|
{
|
|
#line 264 "sql.y"
|
|
|
|
#line 3369 "sql.c"
|
|
}
|
|
break;
|
|
case 389: /* type_name */
|
|
{
|
|
#line 386 "sql.y"
|
|
|
|
#line 3376 "sql.c"
|
|
}
|
|
break;
|
|
case 404: /* db_kind_opt */
|
|
case 411: /* table_kind */
|
|
{
|
|
#line 547 "sql.y"
|
|
|
|
#line 3384 "sql.c"
|
|
}
|
|
break;
|
|
case 405: /* table_kind_db_name_cond_opt */
|
|
{
|
|
#line 512 "sql.y"
|
|
|
|
#line 3391 "sql.c"
|
|
}
|
|
break;
|
|
case 460: /* compare_op */
|
|
case 461: /* in_op */
|
|
{
|
|
#line 980 "sql.y"
|
|
|
|
#line 3399 "sql.c"
|
|
}
|
|
break;
|
|
case 473: /* join_type */
|
|
{
|
|
#line 1056 "sql.y"
|
|
|
|
#line 3406 "sql.c"
|
|
}
|
|
break;
|
|
case 489: /* fill_mode */
|
|
{
|
|
#line 1142 "sql.y"
|
|
|
|
#line 3413 "sql.c"
|
|
}
|
|
break;
|
|
case 500: /* ordering_specification_opt */
|
|
{
|
|
#line 1227 "sql.y"
|
|
|
|
#line 3420 "sql.c"
|
|
}
|
|
break;
|
|
case 501: /* null_ordering_opt */
|
|
{
|
|
#line 1233 "sql.y"
|
|
|
|
#line 3427 "sql.c"
|
|
}
|
|
break;
|
|
/********* End destructor definitions *****************************************/
|
|
default: break; /* If no destructor action specified: do nothing */
|
|
}
|
|
}
|
|
|
|
/*
|
|
** Pop the parser's stack once.
|
|
**
|
|
** If there is a destructor routine associated with the token which
|
|
** is popped from the stack, then call it.
|
|
*/
|
|
static void yy_pop_parser_stack(yyParser *pParser){
|
|
yyStackEntry *yytos;
|
|
assert( pParser->yytos!=0 );
|
|
assert( pParser->yytos > pParser->yystack );
|
|
yytos = pParser->yytos--;
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sPopping %s\n",
|
|
yyTracePrompt,
|
|
yyTokenName[yytos->major]);
|
|
}
|
|
#endif
|
|
yy_destructor(pParser, yytos->major, &yytos->minor);
|
|
}
|
|
|
|
/*
|
|
** Clear all secondary memory allocations from the parser
|
|
*/
|
|
void ParseFinalize(void *p){
|
|
yyParser *pParser = (yyParser*)p;
|
|
while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
|
|
#if YYSTACKDEPTH<=0
|
|
if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
|
|
#endif
|
|
}
|
|
|
|
#ifndef Parse_ENGINEALWAYSONSTACK
|
|
/*
|
|
** Deallocate and destroy a parser. Destructors are called for
|
|
** all stack elements before shutting the parser down.
|
|
**
|
|
** If the YYPARSEFREENEVERNULL macro exists (for example because it
|
|
** is defined in a %include section of the input grammar) then it is
|
|
** assumed that the input pointer is never NULL.
|
|
*/
|
|
void ParseFree(
|
|
void *p, /* The parser to be deleted */
|
|
void (*freeProc)(void*) /* Function used to reclaim memory */
|
|
){
|
|
#ifndef YYPARSEFREENEVERNULL
|
|
if( p==0 ) return;
|
|
#endif
|
|
ParseFinalize(p);
|
|
(*freeProc)(p);
|
|
}
|
|
#endif /* Parse_ENGINEALWAYSONSTACK */
|
|
|
|
/*
|
|
** Return the peak depth of the stack for a parser.
|
|
*/
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
int ParseStackPeak(void *p){
|
|
yyParser *pParser = (yyParser*)p;
|
|
return pParser->yyhwm;
|
|
}
|
|
#endif
|
|
|
|
/* This array of booleans keeps track of the parser statement
|
|
** coverage. The element yycoverage[X][Y] is set when the parser
|
|
** is in state X and has a lookahead token Y. In a well-tested
|
|
** systems, every element of this matrix should end up being set.
|
|
*/
|
|
#if defined(YYCOVERAGE)
|
|
static unsigned char yycoverage[YYNSTATE][YYNTOKEN];
|
|
#endif
|
|
|
|
/*
|
|
** Write into out a description of every state/lookahead combination that
|
|
**
|
|
** (1) has not been used by the parser, and
|
|
** (2) is not a syntax error.
|
|
**
|
|
** Return the number of missed state/lookahead combinations.
|
|
*/
|
|
#if defined(YYCOVERAGE)
|
|
int ParseCoverage(FILE *out){
|
|
int stateno, iLookAhead, i;
|
|
int nMissed = 0;
|
|
for(stateno=0; stateno<YYNSTATE; stateno++){
|
|
i = yy_shift_ofst[stateno];
|
|
for(iLookAhead=0; iLookAhead<YYNTOKEN; iLookAhead++){
|
|
if( yy_lookahead[i+iLookAhead]!=iLookAhead ) continue;
|
|
if( yycoverage[stateno][iLookAhead]==0 ) nMissed++;
|
|
if( out ){
|
|
fprintf(out,"State %d lookahead %s %s\n", stateno,
|
|
yyTokenName[iLookAhead],
|
|
yycoverage[stateno][iLookAhead] ? "ok" : "missed");
|
|
}
|
|
}
|
|
}
|
|
return nMissed;
|
|
}
|
|
#endif
|
|
|
|
/*
|
|
** Find the appropriate action for a parser given the terminal
|
|
** look-ahead token iLookAhead.
|
|
*/
|
|
static YYACTIONTYPE yy_find_shift_action(
|
|
YYCODETYPE iLookAhead, /* The look-ahead token */
|
|
YYACTIONTYPE stateno /* Current state number */
|
|
){
|
|
int i;
|
|
|
|
if( stateno>YY_MAX_SHIFT ) return stateno;
|
|
assert( stateno <= YY_SHIFT_COUNT );
|
|
#if defined(YYCOVERAGE)
|
|
yycoverage[stateno][iLookAhead] = 1;
|
|
#endif
|
|
do{
|
|
i = yy_shift_ofst[stateno];
|
|
assert( i>=0 );
|
|
assert( i<=YY_ACTTAB_COUNT );
|
|
assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD );
|
|
assert( iLookAhead!=YYNOCODE );
|
|
assert( iLookAhead < YYNTOKEN );
|
|
i += iLookAhead;
|
|
assert( i<(int)YY_NLOOKAHEAD );
|
|
if( yy_lookahead[i]!=iLookAhead ){
|
|
#ifdef YYFALLBACK
|
|
YYCODETYPE iFallback; /* Fallback token */
|
|
assert( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) );
|
|
iFallback = yyFallback[iLookAhead];
|
|
if( iFallback!=0 ){
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
|
|
yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
|
|
}
|
|
#endif
|
|
assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
|
|
iLookAhead = iFallback;
|
|
continue;
|
|
}
|
|
#endif
|
|
#ifdef YYWILDCARD
|
|
{
|
|
int j = i - iLookAhead + YYWILDCARD;
|
|
assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) );
|
|
if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
|
|
yyTracePrompt, yyTokenName[iLookAhead],
|
|
yyTokenName[YYWILDCARD]);
|
|
}
|
|
#endif /* NDEBUG */
|
|
return yy_action[j];
|
|
}
|
|
}
|
|
#endif /* YYWILDCARD */
|
|
return yy_default[stateno];
|
|
}else{
|
|
assert( i>=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) );
|
|
return yy_action[i];
|
|
}
|
|
}while(1);
|
|
}
|
|
|
|
/*
|
|
** Find the appropriate action for a parser given the non-terminal
|
|
** look-ahead token iLookAhead.
|
|
*/
|
|
static YYACTIONTYPE yy_find_reduce_action(
|
|
YYACTIONTYPE stateno, /* Current state number */
|
|
YYCODETYPE iLookAhead /* The look-ahead token */
|
|
){
|
|
int i;
|
|
#ifdef YYERRORSYMBOL
|
|
if( stateno>YY_REDUCE_COUNT ){
|
|
return yy_default[stateno];
|
|
}
|
|
#else
|
|
assert( stateno<=YY_REDUCE_COUNT );
|
|
#endif
|
|
i = yy_reduce_ofst[stateno];
|
|
assert( iLookAhead!=YYNOCODE );
|
|
i += iLookAhead;
|
|
#ifdef YYERRORSYMBOL
|
|
if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){
|
|
return yy_default[stateno];
|
|
}
|
|
#else
|
|
assert( i>=0 && i<YY_ACTTAB_COUNT );
|
|
assert( yy_lookahead[i]==iLookAhead );
|
|
#endif
|
|
return yy_action[i];
|
|
}
|
|
|
|
/*
|
|
** The following routine is called if the stack overflows.
|
|
*/
|
|
static void yyStackOverflow(yyParser *yypParser){
|
|
ParseARG_FETCH
|
|
ParseCTX_FETCH
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
|
|
}
|
|
#endif
|
|
while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
|
|
/* Here code is inserted which will execute if the parser
|
|
** stack every overflows */
|
|
/******** Begin %stack_overflow code ******************************************/
|
|
/******** End %stack_overflow code ********************************************/
|
|
ParseARG_STORE /* Suppress warning about unused %extra_argument var */
|
|
ParseCTX_STORE
|
|
}
|
|
|
|
/*
|
|
** Print tracing information for a SHIFT action
|
|
*/
|
|
#ifndef NDEBUG
|
|
static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
|
|
if( yyTraceFILE ){
|
|
if( yyNewState<YYNSTATE ){
|
|
fprintf(yyTraceFILE,"%s%s '%s', go to state %d\n",
|
|
yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
|
|
yyNewState);
|
|
}else{
|
|
fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n",
|
|
yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
|
|
yyNewState - YY_MIN_REDUCE);
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
# define yyTraceShift(X,Y,Z)
|
|
#endif
|
|
|
|
/*
|
|
** Perform a shift action.
|
|
*/
|
|
static void yy_shift(
|
|
yyParser *yypParser, /* The parser to be shifted */
|
|
YYACTIONTYPE yyNewState, /* The new state to shift in */
|
|
YYCODETYPE yyMajor, /* The major token to shift in */
|
|
ParseTOKENTYPE yyMinor /* The minor token to shift in */
|
|
){
|
|
yyStackEntry *yytos;
|
|
yypParser->yytos++;
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
|
|
yypParser->yyhwm++;
|
|
assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) );
|
|
}
|
|
#endif
|
|
#if YYSTACKDEPTH>0
|
|
if( yypParser->yytos>yypParser->yystackEnd ){
|
|
yypParser->yytos--;
|
|
yyStackOverflow(yypParser);
|
|
return;
|
|
}
|
|
#else
|
|
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
|
|
if( yyGrowStack(yypParser) ){
|
|
yypParser->yytos--;
|
|
yyStackOverflow(yypParser);
|
|
return;
|
|
}
|
|
}
|
|
#endif
|
|
if( yyNewState > YY_MAX_SHIFT ){
|
|
yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE;
|
|
}
|
|
yytos = yypParser->yytos;
|
|
yytos->stateno = yyNewState;
|
|
yytos->major = yyMajor;
|
|
yytos->minor.yy0 = yyMinor;
|
|
yyTraceShift(yypParser, yyNewState, "Shift");
|
|
}
|
|
|
|
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
|
|
** of that rule */
|
|
static const YYCODETYPE yyRuleInfoLhs[] = {
|
|
344, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
344, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
345, /* (2) account_options ::= */
|
|
345, /* (3) account_options ::= account_options PPS literal */
|
|
345, /* (4) account_options ::= account_options TSERIES literal */
|
|
345, /* (5) account_options ::= account_options STORAGE literal */
|
|
345, /* (6) account_options ::= account_options STREAMS literal */
|
|
345, /* (7) account_options ::= account_options QTIME literal */
|
|
345, /* (8) account_options ::= account_options DBS literal */
|
|
345, /* (9) account_options ::= account_options USERS literal */
|
|
345, /* (10) account_options ::= account_options CONNS literal */
|
|
345, /* (11) account_options ::= account_options STATE literal */
|
|
346, /* (12) alter_account_options ::= alter_account_option */
|
|
346, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
348, /* (14) alter_account_option ::= PASS literal */
|
|
348, /* (15) alter_account_option ::= PPS literal */
|
|
348, /* (16) alter_account_option ::= TSERIES literal */
|
|
348, /* (17) alter_account_option ::= STORAGE literal */
|
|
348, /* (18) alter_account_option ::= STREAMS literal */
|
|
348, /* (19) alter_account_option ::= QTIME literal */
|
|
348, /* (20) alter_account_option ::= DBS literal */
|
|
348, /* (21) alter_account_option ::= USERS literal */
|
|
348, /* (22) alter_account_option ::= CONNS literal */
|
|
348, /* (23) alter_account_option ::= STATE literal */
|
|
349, /* (24) ip_range_list ::= NK_STRING */
|
|
349, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
350, /* (26) white_list ::= HOST ip_range_list */
|
|
351, /* (27) white_list_opt ::= */
|
|
351, /* (28) white_list_opt ::= white_list */
|
|
344, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
344, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
344, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
344, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
344, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
344, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
344, /* (35) cmd ::= DROP USER user_name */
|
|
353, /* (36) sysinfo_opt ::= */
|
|
353, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
344, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
344, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
354, /* (40) privileges ::= ALL */
|
|
354, /* (41) privileges ::= priv_type_list */
|
|
354, /* (42) privileges ::= SUBSCRIBE */
|
|
357, /* (43) priv_type_list ::= priv_type */
|
|
357, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
358, /* (45) priv_type ::= READ */
|
|
358, /* (46) priv_type ::= WRITE */
|
|
355, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
355, /* (48) priv_level ::= db_name NK_DOT NK_STAR */
|
|
355, /* (49) priv_level ::= db_name NK_DOT table_name */
|
|
355, /* (50) priv_level ::= topic_name */
|
|
356, /* (51) with_opt ::= */
|
|
356, /* (52) with_opt ::= WITH search_condition */
|
|
344, /* (53) cmd ::= CREATE DNODE dnode_endpoint */
|
|
344, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
344, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
344, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
344, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
344, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
344, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
344, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
344, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
344, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
344, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
363, /* (64) dnode_endpoint ::= NK_STRING */
|
|
363, /* (65) dnode_endpoint ::= NK_ID */
|
|
363, /* (66) dnode_endpoint ::= NK_IPTOKEN */
|
|
364, /* (67) force_opt ::= */
|
|
364, /* (68) force_opt ::= FORCE */
|
|
365, /* (69) unsafe_opt ::= UNSAFE */
|
|
344, /* (70) cmd ::= ALTER LOCAL NK_STRING */
|
|
344, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
344, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
344, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
344, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
344, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
344, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
344, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
344, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
344, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
344, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
344, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
344, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
344, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
344, /* (84) cmd ::= DROP DATABASE exists_opt db_name */
|
|
344, /* (85) cmd ::= USE db_name */
|
|
344, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
344, /* (87) cmd ::= FLUSH DATABASE db_name */
|
|
344, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
344, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
366, /* (90) not_exists_opt ::= IF NOT EXISTS */
|
|
366, /* (91) not_exists_opt ::= */
|
|
368, /* (92) exists_opt ::= IF EXISTS */
|
|
368, /* (93) exists_opt ::= */
|
|
367, /* (94) db_options ::= */
|
|
367, /* (95) db_options ::= db_options BUFFER NK_INTEGER */
|
|
367, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
367, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
367, /* (98) db_options ::= db_options COMP NK_INTEGER */
|
|
367, /* (99) db_options ::= db_options DURATION NK_INTEGER */
|
|
367, /* (100) db_options ::= db_options DURATION NK_VARIABLE */
|
|
367, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
367, /* (102) db_options ::= db_options MINROWS NK_INTEGER */
|
|
367, /* (103) db_options ::= db_options KEEP integer_list */
|
|
367, /* (104) db_options ::= db_options KEEP variable_list */
|
|
367, /* (105) db_options ::= db_options PAGES NK_INTEGER */
|
|
367, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
367, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
367, /* (108) db_options ::= db_options PRECISION NK_STRING */
|
|
367, /* (109) db_options ::= db_options REPLICA NK_INTEGER */
|
|
367, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
367, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
367, /* (112) db_options ::= db_options RETENTIONS retention_list */
|
|
367, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
367, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
367, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
367, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
367, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
367, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
367, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
367, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
367, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
367, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
367, /* (123) db_options ::= db_options TABLE_PREFIX signed */
|
|
367, /* (124) db_options ::= db_options TABLE_SUFFIX signed */
|
|
367, /* (125) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
369, /* (126) alter_db_options ::= alter_db_option */
|
|
369, /* (127) alter_db_options ::= alter_db_options alter_db_option */
|
|
377, /* (128) alter_db_option ::= BUFFER NK_INTEGER */
|
|
377, /* (129) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
377, /* (130) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
377, /* (131) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
377, /* (132) alter_db_option ::= KEEP integer_list */
|
|
377, /* (133) alter_db_option ::= KEEP variable_list */
|
|
377, /* (134) alter_db_option ::= PAGES NK_INTEGER */
|
|
377, /* (135) alter_db_option ::= REPLICA NK_INTEGER */
|
|
377, /* (136) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
377, /* (137) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
377, /* (138) alter_db_option ::= MINROWS NK_INTEGER */
|
|
377, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
377, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
377, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
377, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
377, /* (143) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
373, /* (144) integer_list ::= NK_INTEGER */
|
|
373, /* (145) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
374, /* (146) variable_list ::= NK_VARIABLE */
|
|
374, /* (147) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
375, /* (148) retention_list ::= retention */
|
|
375, /* (149) retention_list ::= retention_list NK_COMMA retention */
|
|
378, /* (150) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
370, /* (151) speed_opt ::= */
|
|
370, /* (152) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
371, /* (153) start_opt ::= */
|
|
371, /* (154) start_opt ::= START WITH NK_INTEGER */
|
|
371, /* (155) start_opt ::= START WITH NK_STRING */
|
|
371, /* (156) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
372, /* (157) end_opt ::= */
|
|
372, /* (158) end_opt ::= END WITH NK_INTEGER */
|
|
372, /* (159) end_opt ::= END WITH NK_STRING */
|
|
372, /* (160) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
344, /* (161) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
344, /* (162) cmd ::= CREATE TABLE multi_create_clause */
|
|
344, /* (163) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
344, /* (164) cmd ::= DROP TABLE multi_drop_clause */
|
|
344, /* (165) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
344, /* (166) cmd ::= ALTER TABLE alter_table_clause */
|
|
344, /* (167) cmd ::= ALTER STABLE alter_table_clause */
|
|
386, /* (168) alter_table_clause ::= full_table_name alter_table_options */
|
|
386, /* (169) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
386, /* (170) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
386, /* (171) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
386, /* (172) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
386, /* (173) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
386, /* (174) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
386, /* (175) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
386, /* (176) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
386, /* (177) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
383, /* (178) multi_create_clause ::= create_subtable_clause */
|
|
383, /* (179) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
391, /* (180) 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 */
|
|
385, /* (181) multi_drop_clause ::= drop_table_clause */
|
|
385, /* (182) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
394, /* (183) drop_table_clause ::= exists_opt full_table_name */
|
|
392, /* (184) specific_cols_opt ::= */
|
|
392, /* (185) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
379, /* (186) full_table_name ::= table_name */
|
|
379, /* (187) full_table_name ::= db_name NK_DOT table_name */
|
|
380, /* (188) column_def_list ::= column_def */
|
|
380, /* (189) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
396, /* (190) column_def ::= column_name type_name */
|
|
389, /* (191) type_name ::= BOOL */
|
|
389, /* (192) type_name ::= TINYINT */
|
|
389, /* (193) type_name ::= SMALLINT */
|
|
389, /* (194) type_name ::= INT */
|
|
389, /* (195) type_name ::= INTEGER */
|
|
389, /* (196) type_name ::= BIGINT */
|
|
389, /* (197) type_name ::= FLOAT */
|
|
389, /* (198) type_name ::= DOUBLE */
|
|
389, /* (199) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
389, /* (200) type_name ::= TIMESTAMP */
|
|
389, /* (201) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
389, /* (202) type_name ::= TINYINT UNSIGNED */
|
|
389, /* (203) type_name ::= SMALLINT UNSIGNED */
|
|
389, /* (204) type_name ::= INT UNSIGNED */
|
|
389, /* (205) type_name ::= BIGINT UNSIGNED */
|
|
389, /* (206) type_name ::= JSON */
|
|
389, /* (207) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
389, /* (208) type_name ::= MEDIUMBLOB */
|
|
389, /* (209) type_name ::= BLOB */
|
|
389, /* (210) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
389, /* (211) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
389, /* (212) type_name ::= DECIMAL */
|
|
389, /* (213) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
389, /* (214) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
381, /* (215) tags_def_opt ::= */
|
|
381, /* (216) tags_def_opt ::= tags_def */
|
|
384, /* (217) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
382, /* (218) table_options ::= */
|
|
382, /* (219) table_options ::= table_options COMMENT NK_STRING */
|
|
382, /* (220) table_options ::= table_options MAX_DELAY duration_list */
|
|
382, /* (221) table_options ::= table_options WATERMARK duration_list */
|
|
382, /* (222) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
382, /* (223) table_options ::= table_options TTL NK_INTEGER */
|
|
382, /* (224) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
382, /* (225) table_options ::= table_options DELETE_MARK duration_list */
|
|
387, /* (226) alter_table_options ::= alter_table_option */
|
|
387, /* (227) alter_table_options ::= alter_table_options alter_table_option */
|
|
399, /* (228) alter_table_option ::= COMMENT NK_STRING */
|
|
399, /* (229) alter_table_option ::= TTL NK_INTEGER */
|
|
397, /* (230) duration_list ::= duration_literal */
|
|
397, /* (231) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
398, /* (232) rollup_func_list ::= rollup_func_name */
|
|
398, /* (233) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
401, /* (234) rollup_func_name ::= function_name */
|
|
401, /* (235) rollup_func_name ::= FIRST */
|
|
401, /* (236) rollup_func_name ::= LAST */
|
|
395, /* (237) col_name_list ::= col_name */
|
|
395, /* (238) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
403, /* (239) col_name ::= column_name */
|
|
344, /* (240) cmd ::= SHOW DNODES */
|
|
344, /* (241) cmd ::= SHOW USERS */
|
|
344, /* (242) cmd ::= SHOW USER PRIVILEGES */
|
|
344, /* (243) cmd ::= SHOW db_kind_opt DATABASES */
|
|
344, /* (244) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
344, /* (245) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
344, /* (246) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
344, /* (247) cmd ::= SHOW MNODES */
|
|
344, /* (248) cmd ::= SHOW QNODES */
|
|
344, /* (249) cmd ::= SHOW FUNCTIONS */
|
|
344, /* (250) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
344, /* (251) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
344, /* (252) cmd ::= SHOW STREAMS */
|
|
344, /* (253) cmd ::= SHOW ACCOUNTS */
|
|
344, /* (254) cmd ::= SHOW APPS */
|
|
344, /* (255) cmd ::= SHOW CONNECTIONS */
|
|
344, /* (256) cmd ::= SHOW LICENCES */
|
|
344, /* (257) cmd ::= SHOW GRANTS */
|
|
344, /* (258) cmd ::= SHOW CREATE DATABASE db_name */
|
|
344, /* (259) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
344, /* (260) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
344, /* (261) cmd ::= SHOW QUERIES */
|
|
344, /* (262) cmd ::= SHOW SCORES */
|
|
344, /* (263) cmd ::= SHOW TOPICS */
|
|
344, /* (264) cmd ::= SHOW VARIABLES */
|
|
344, /* (265) cmd ::= SHOW CLUSTER VARIABLES */
|
|
344, /* (266) cmd ::= SHOW LOCAL VARIABLES */
|
|
344, /* (267) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
344, /* (268) cmd ::= SHOW BNODES */
|
|
344, /* (269) cmd ::= SHOW SNODES */
|
|
344, /* (270) cmd ::= SHOW CLUSTER */
|
|
344, /* (271) cmd ::= SHOW TRANSACTIONS */
|
|
344, /* (272) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
344, /* (273) cmd ::= SHOW CONSUMERS */
|
|
344, /* (274) cmd ::= SHOW SUBSCRIPTIONS */
|
|
344, /* (275) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
344, /* (276) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
344, /* (277) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
344, /* (278) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
344, /* (279) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
344, /* (280) cmd ::= SHOW VNODES */
|
|
344, /* (281) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
344, /* (282) cmd ::= SHOW CLUSTER ALIVE */
|
|
405, /* (283) table_kind_db_name_cond_opt ::= */
|
|
405, /* (284) table_kind_db_name_cond_opt ::= table_kind */
|
|
405, /* (285) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
405, /* (286) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
411, /* (287) table_kind ::= NORMAL */
|
|
411, /* (288) table_kind ::= CHILD */
|
|
407, /* (289) db_name_cond_opt ::= */
|
|
407, /* (290) db_name_cond_opt ::= db_name NK_DOT */
|
|
406, /* (291) like_pattern_opt ::= */
|
|
406, /* (292) like_pattern_opt ::= LIKE NK_STRING */
|
|
408, /* (293) table_name_cond ::= table_name */
|
|
409, /* (294) from_db_opt ::= */
|
|
409, /* (295) from_db_opt ::= FROM db_name */
|
|
410, /* (296) tag_list_opt ::= */
|
|
410, /* (297) tag_list_opt ::= tag_item */
|
|
410, /* (298) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
412, /* (299) tag_item ::= TBNAME */
|
|
412, /* (300) tag_item ::= QTAGS */
|
|
412, /* (301) tag_item ::= column_name */
|
|
412, /* (302) tag_item ::= column_name column_alias */
|
|
412, /* (303) tag_item ::= column_name AS column_alias */
|
|
404, /* (304) db_kind_opt ::= */
|
|
404, /* (305) db_kind_opt ::= USER */
|
|
404, /* (306) db_kind_opt ::= SYSTEM */
|
|
344, /* (307) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
344, /* (308) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
344, /* (309) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
415, /* (310) full_index_name ::= index_name */
|
|
415, /* (311) full_index_name ::= db_name NK_DOT index_name */
|
|
414, /* (312) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
414, /* (313) 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 */
|
|
417, /* (314) func_list ::= func */
|
|
417, /* (315) func_list ::= func_list NK_COMMA func */
|
|
420, /* (316) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
421, /* (317) sma_func_name ::= function_name */
|
|
421, /* (318) sma_func_name ::= COUNT */
|
|
421, /* (319) sma_func_name ::= FIRST */
|
|
421, /* (320) sma_func_name ::= LAST */
|
|
421, /* (321) sma_func_name ::= LAST_ROW */
|
|
419, /* (322) sma_stream_opt ::= */
|
|
419, /* (323) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
419, /* (324) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
419, /* (325) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
422, /* (326) with_meta ::= AS */
|
|
422, /* (327) with_meta ::= WITH META AS */
|
|
422, /* (328) with_meta ::= ONLY META AS */
|
|
344, /* (329) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
344, /* (330) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
344, /* (331) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
344, /* (332) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
344, /* (333) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
344, /* (334) cmd ::= DESC full_table_name */
|
|
344, /* (335) cmd ::= DESCRIBE full_table_name */
|
|
344, /* (336) cmd ::= RESET QUERY CACHE */
|
|
344, /* (337) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
344, /* (338) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
426, /* (339) analyze_opt ::= */
|
|
426, /* (340) analyze_opt ::= ANALYZE */
|
|
427, /* (341) explain_options ::= */
|
|
427, /* (342) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
427, /* (343) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
344, /* (344) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
344, /* (345) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
430, /* (346) agg_func_opt ::= */
|
|
430, /* (347) agg_func_opt ::= AGGREGATE */
|
|
431, /* (348) bufsize_opt ::= */
|
|
431, /* (349) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
432, /* (350) language_opt ::= */
|
|
432, /* (351) language_opt ::= LANGUAGE NK_STRING */
|
|
429, /* (352) or_replace_opt ::= */
|
|
429, /* (353) or_replace_opt ::= OR REPLACE */
|
|
344, /* (354) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
|
|
344, /* (355) cmd ::= DROP STREAM exists_opt stream_name */
|
|
344, /* (356) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
344, /* (357) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
435, /* (358) col_list_opt ::= */
|
|
435, /* (359) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
436, /* (360) tag_def_or_ref_opt ::= */
|
|
436, /* (361) tag_def_or_ref_opt ::= tags_def */
|
|
436, /* (362) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
434, /* (363) stream_options ::= */
|
|
434, /* (364) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
434, /* (365) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
434, /* (366) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
434, /* (367) stream_options ::= stream_options WATERMARK duration_literal */
|
|
434, /* (368) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
434, /* (369) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
434, /* (370) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
434, /* (371) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
437, /* (372) subtable_opt ::= */
|
|
437, /* (373) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
438, /* (374) ignore_opt ::= */
|
|
438, /* (375) ignore_opt ::= IGNORE UNTREATED */
|
|
344, /* (376) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
344, /* (377) cmd ::= KILL QUERY NK_STRING */
|
|
344, /* (378) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
344, /* (379) cmd ::= BALANCE VGROUP */
|
|
344, /* (380) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
344, /* (381) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
344, /* (382) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
344, /* (383) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
440, /* (384) on_vgroup_id ::= */
|
|
440, /* (385) on_vgroup_id ::= ON NK_INTEGER */
|
|
441, /* (386) dnode_list ::= DNODE NK_INTEGER */
|
|
441, /* (387) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
344, /* (388) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
344, /* (389) cmd ::= query_or_subquery */
|
|
344, /* (390) cmd ::= insert_query */
|
|
428, /* (391) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
428, /* (392) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
347, /* (393) literal ::= NK_INTEGER */
|
|
347, /* (394) literal ::= NK_FLOAT */
|
|
347, /* (395) literal ::= NK_STRING */
|
|
347, /* (396) literal ::= NK_BOOL */
|
|
347, /* (397) literal ::= TIMESTAMP NK_STRING */
|
|
347, /* (398) literal ::= duration_literal */
|
|
347, /* (399) literal ::= NULL */
|
|
347, /* (400) literal ::= NK_QUESTION */
|
|
400, /* (401) duration_literal ::= NK_VARIABLE */
|
|
376, /* (402) signed ::= NK_INTEGER */
|
|
376, /* (403) signed ::= NK_PLUS NK_INTEGER */
|
|
376, /* (404) signed ::= NK_MINUS NK_INTEGER */
|
|
376, /* (405) signed ::= NK_FLOAT */
|
|
376, /* (406) signed ::= NK_PLUS NK_FLOAT */
|
|
376, /* (407) signed ::= NK_MINUS NK_FLOAT */
|
|
390, /* (408) signed_literal ::= signed */
|
|
390, /* (409) signed_literal ::= NK_STRING */
|
|
390, /* (410) signed_literal ::= NK_BOOL */
|
|
390, /* (411) signed_literal ::= TIMESTAMP NK_STRING */
|
|
390, /* (412) signed_literal ::= duration_literal */
|
|
390, /* (413) signed_literal ::= NULL */
|
|
390, /* (414) signed_literal ::= literal_func */
|
|
390, /* (415) signed_literal ::= NK_QUESTION */
|
|
443, /* (416) literal_list ::= signed_literal */
|
|
443, /* (417) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
359, /* (418) db_name ::= NK_ID */
|
|
360, /* (419) table_name ::= NK_ID */
|
|
388, /* (420) column_name ::= NK_ID */
|
|
402, /* (421) function_name ::= NK_ID */
|
|
444, /* (422) table_alias ::= NK_ID */
|
|
413, /* (423) column_alias ::= NK_ID */
|
|
352, /* (424) user_name ::= NK_ID */
|
|
361, /* (425) topic_name ::= NK_ID */
|
|
433, /* (426) stream_name ::= NK_ID */
|
|
425, /* (427) cgroup_name ::= NK_ID */
|
|
416, /* (428) index_name ::= NK_ID */
|
|
445, /* (429) expr_or_subquery ::= expression */
|
|
439, /* (430) expression ::= literal */
|
|
439, /* (431) expression ::= pseudo_column */
|
|
439, /* (432) expression ::= column_reference */
|
|
439, /* (433) expression ::= function_expression */
|
|
439, /* (434) expression ::= case_when_expression */
|
|
439, /* (435) expression ::= NK_LP expression NK_RP */
|
|
439, /* (436) expression ::= NK_PLUS expr_or_subquery */
|
|
439, /* (437) expression ::= NK_MINUS expr_or_subquery */
|
|
439, /* (438) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
439, /* (439) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
439, /* (440) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
439, /* (441) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
439, /* (442) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
439, /* (443) expression ::= column_reference NK_ARROW NK_STRING */
|
|
439, /* (444) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
439, /* (445) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
393, /* (446) expression_list ::= expr_or_subquery */
|
|
393, /* (447) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
447, /* (448) column_reference ::= column_name */
|
|
447, /* (449) column_reference ::= table_name NK_DOT column_name */
|
|
446, /* (450) pseudo_column ::= ROWTS */
|
|
446, /* (451) pseudo_column ::= TBNAME */
|
|
446, /* (452) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
446, /* (453) pseudo_column ::= QSTART */
|
|
446, /* (454) pseudo_column ::= QEND */
|
|
446, /* (455) pseudo_column ::= QDURATION */
|
|
446, /* (456) pseudo_column ::= WSTART */
|
|
446, /* (457) pseudo_column ::= WEND */
|
|
446, /* (458) pseudo_column ::= WDURATION */
|
|
446, /* (459) pseudo_column ::= IROWTS */
|
|
446, /* (460) pseudo_column ::= ISFILLED */
|
|
446, /* (461) pseudo_column ::= QTAGS */
|
|
448, /* (462) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
448, /* (463) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
448, /* (464) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
448, /* (465) function_expression ::= literal_func */
|
|
442, /* (466) literal_func ::= noarg_func NK_LP NK_RP */
|
|
442, /* (467) literal_func ::= NOW */
|
|
452, /* (468) noarg_func ::= NOW */
|
|
452, /* (469) noarg_func ::= TODAY */
|
|
452, /* (470) noarg_func ::= TIMEZONE */
|
|
452, /* (471) noarg_func ::= DATABASE */
|
|
452, /* (472) noarg_func ::= CLIENT_VERSION */
|
|
452, /* (473) noarg_func ::= SERVER_VERSION */
|
|
452, /* (474) noarg_func ::= SERVER_STATUS */
|
|
452, /* (475) noarg_func ::= CURRENT_USER */
|
|
452, /* (476) noarg_func ::= USER */
|
|
450, /* (477) star_func ::= COUNT */
|
|
450, /* (478) star_func ::= FIRST */
|
|
450, /* (479) star_func ::= LAST */
|
|
450, /* (480) star_func ::= LAST_ROW */
|
|
451, /* (481) star_func_para_list ::= NK_STAR */
|
|
451, /* (482) star_func_para_list ::= other_para_list */
|
|
453, /* (483) other_para_list ::= star_func_para */
|
|
453, /* (484) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
454, /* (485) star_func_para ::= expr_or_subquery */
|
|
454, /* (486) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
449, /* (487) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
449, /* (488) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
455, /* (489) when_then_list ::= when_then_expr */
|
|
455, /* (490) when_then_list ::= when_then_list when_then_expr */
|
|
458, /* (491) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
456, /* (492) case_when_else_opt ::= */
|
|
456, /* (493) case_when_else_opt ::= ELSE common_expression */
|
|
459, /* (494) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
459, /* (495) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
459, /* (496) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
459, /* (497) predicate ::= expr_or_subquery IS NULL */
|
|
459, /* (498) predicate ::= expr_or_subquery IS NOT NULL */
|
|
459, /* (499) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
460, /* (500) compare_op ::= NK_LT */
|
|
460, /* (501) compare_op ::= NK_GT */
|
|
460, /* (502) compare_op ::= NK_LE */
|
|
460, /* (503) compare_op ::= NK_GE */
|
|
460, /* (504) compare_op ::= NK_NE */
|
|
460, /* (505) compare_op ::= NK_EQ */
|
|
460, /* (506) compare_op ::= LIKE */
|
|
460, /* (507) compare_op ::= NOT LIKE */
|
|
460, /* (508) compare_op ::= MATCH */
|
|
460, /* (509) compare_op ::= NMATCH */
|
|
460, /* (510) compare_op ::= CONTAINS */
|
|
461, /* (511) in_op ::= IN */
|
|
461, /* (512) in_op ::= NOT IN */
|
|
462, /* (513) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
463, /* (514) boolean_value_expression ::= boolean_primary */
|
|
463, /* (515) boolean_value_expression ::= NOT boolean_primary */
|
|
463, /* (516) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
463, /* (517) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
464, /* (518) boolean_primary ::= predicate */
|
|
464, /* (519) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
457, /* (520) common_expression ::= expr_or_subquery */
|
|
457, /* (521) common_expression ::= boolean_value_expression */
|
|
465, /* (522) from_clause_opt ::= */
|
|
465, /* (523) from_clause_opt ::= FROM table_reference_list */
|
|
466, /* (524) table_reference_list ::= table_reference */
|
|
466, /* (525) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
467, /* (526) table_reference ::= table_primary */
|
|
467, /* (527) table_reference ::= joined_table */
|
|
468, /* (528) table_primary ::= table_name alias_opt */
|
|
468, /* (529) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
468, /* (530) table_primary ::= subquery alias_opt */
|
|
468, /* (531) table_primary ::= parenthesized_joined_table */
|
|
470, /* (532) alias_opt ::= */
|
|
470, /* (533) alias_opt ::= table_alias */
|
|
470, /* (534) alias_opt ::= AS table_alias */
|
|
472, /* (535) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
472, /* (536) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
469, /* (537) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
473, /* (538) join_type ::= */
|
|
473, /* (539) join_type ::= INNER */
|
|
474, /* (540) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
475, /* (541) hint_list ::= */
|
|
475, /* (542) hint_list ::= NK_HINT */
|
|
477, /* (543) tag_mode_opt ::= */
|
|
477, /* (544) tag_mode_opt ::= TAGS */
|
|
476, /* (545) set_quantifier_opt ::= */
|
|
476, /* (546) set_quantifier_opt ::= DISTINCT */
|
|
476, /* (547) set_quantifier_opt ::= ALL */
|
|
478, /* (548) select_list ::= select_item */
|
|
478, /* (549) select_list ::= select_list NK_COMMA select_item */
|
|
486, /* (550) select_item ::= NK_STAR */
|
|
486, /* (551) select_item ::= common_expression */
|
|
486, /* (552) select_item ::= common_expression column_alias */
|
|
486, /* (553) select_item ::= common_expression AS column_alias */
|
|
486, /* (554) select_item ::= table_name NK_DOT NK_STAR */
|
|
424, /* (555) where_clause_opt ::= */
|
|
424, /* (556) where_clause_opt ::= WHERE search_condition */
|
|
479, /* (557) partition_by_clause_opt ::= */
|
|
479, /* (558) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
487, /* (559) partition_list ::= partition_item */
|
|
487, /* (560) partition_list ::= partition_list NK_COMMA partition_item */
|
|
488, /* (561) partition_item ::= expr_or_subquery */
|
|
488, /* (562) partition_item ::= expr_or_subquery column_alias */
|
|
488, /* (563) partition_item ::= expr_or_subquery AS column_alias */
|
|
483, /* (564) twindow_clause_opt ::= */
|
|
483, /* (565) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
483, /* (566) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
483, /* (567) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
483, /* (568) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
483, /* (569) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
418, /* (570) sliding_opt ::= */
|
|
418, /* (571) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
|
|
482, /* (572) fill_opt ::= */
|
|
482, /* (573) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
482, /* (574) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
482, /* (575) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
489, /* (576) fill_mode ::= NONE */
|
|
489, /* (577) fill_mode ::= PREV */
|
|
489, /* (578) fill_mode ::= NULL */
|
|
489, /* (579) fill_mode ::= NULL_F */
|
|
489, /* (580) fill_mode ::= LINEAR */
|
|
489, /* (581) fill_mode ::= NEXT */
|
|
484, /* (582) group_by_clause_opt ::= */
|
|
484, /* (583) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
490, /* (584) group_by_list ::= expr_or_subquery */
|
|
490, /* (585) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
485, /* (586) having_clause_opt ::= */
|
|
485, /* (587) having_clause_opt ::= HAVING search_condition */
|
|
480, /* (588) range_opt ::= */
|
|
480, /* (589) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
480, /* (590) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
481, /* (591) every_opt ::= */
|
|
481, /* (592) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
491, /* (593) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
492, /* (594) query_simple ::= query_specification */
|
|
492, /* (595) query_simple ::= union_query_expression */
|
|
496, /* (596) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
496, /* (597) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
497, /* (598) query_simple_or_subquery ::= query_simple */
|
|
497, /* (599) query_simple_or_subquery ::= subquery */
|
|
423, /* (600) query_or_subquery ::= query_expression */
|
|
423, /* (601) query_or_subquery ::= subquery */
|
|
493, /* (602) order_by_clause_opt ::= */
|
|
493, /* (603) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
494, /* (604) slimit_clause_opt ::= */
|
|
494, /* (605) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
494, /* (606) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
494, /* (607) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
495, /* (608) limit_clause_opt ::= */
|
|
495, /* (609) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
495, /* (610) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
495, /* (611) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
471, /* (612) subquery ::= NK_LP query_expression NK_RP */
|
|
471, /* (613) subquery ::= NK_LP subquery NK_RP */
|
|
362, /* (614) search_condition ::= common_expression */
|
|
498, /* (615) sort_specification_list ::= sort_specification */
|
|
498, /* (616) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
499, /* (617) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
500, /* (618) ordering_specification_opt ::= */
|
|
500, /* (619) ordering_specification_opt ::= ASC */
|
|
500, /* (620) ordering_specification_opt ::= DESC */
|
|
501, /* (621) null_ordering_opt ::= */
|
|
501, /* (622) null_ordering_opt ::= NULLS FIRST */
|
|
501, /* (623) null_ordering_opt ::= NULLS LAST */
|
|
};
|
|
|
|
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
|
|
** of symbols on the right-hand side of that rule. */
|
|
static const signed char yyRuleInfoNRhs[] = {
|
|
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
0, /* (2) account_options ::= */
|
|
-3, /* (3) account_options ::= account_options PPS literal */
|
|
-3, /* (4) account_options ::= account_options TSERIES literal */
|
|
-3, /* (5) account_options ::= account_options STORAGE literal */
|
|
-3, /* (6) account_options ::= account_options STREAMS literal */
|
|
-3, /* (7) account_options ::= account_options QTIME literal */
|
|
-3, /* (8) account_options ::= account_options DBS literal */
|
|
-3, /* (9) account_options ::= account_options USERS literal */
|
|
-3, /* (10) account_options ::= account_options CONNS literal */
|
|
-3, /* (11) account_options ::= account_options STATE literal */
|
|
-1, /* (12) alter_account_options ::= alter_account_option */
|
|
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
-2, /* (14) alter_account_option ::= PASS literal */
|
|
-2, /* (15) alter_account_option ::= PPS literal */
|
|
-2, /* (16) alter_account_option ::= TSERIES literal */
|
|
-2, /* (17) alter_account_option ::= STORAGE literal */
|
|
-2, /* (18) alter_account_option ::= STREAMS literal */
|
|
-2, /* (19) alter_account_option ::= QTIME literal */
|
|
-2, /* (20) alter_account_option ::= DBS literal */
|
|
-2, /* (21) alter_account_option ::= USERS literal */
|
|
-2, /* (22) alter_account_option ::= CONNS literal */
|
|
-2, /* (23) alter_account_option ::= STATE literal */
|
|
-1, /* (24) ip_range_list ::= NK_STRING */
|
|
-3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
-2, /* (26) white_list ::= HOST ip_range_list */
|
|
0, /* (27) white_list_opt ::= */
|
|
-1, /* (28) white_list_opt ::= white_list */
|
|
-7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
-5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
-5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
-5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
-5, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
-5, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
-3, /* (35) cmd ::= DROP USER user_name */
|
|
0, /* (36) sysinfo_opt ::= */
|
|
-2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
-7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
-7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
-1, /* (40) privileges ::= ALL */
|
|
-1, /* (41) privileges ::= priv_type_list */
|
|
-1, /* (42) privileges ::= SUBSCRIBE */
|
|
-1, /* (43) priv_type_list ::= priv_type */
|
|
-3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
-1, /* (45) priv_type ::= READ */
|
|
-1, /* (46) priv_type ::= WRITE */
|
|
-3, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
-3, /* (48) priv_level ::= db_name NK_DOT NK_STAR */
|
|
-3, /* (49) priv_level ::= db_name NK_DOT table_name */
|
|
-1, /* (50) priv_level ::= topic_name */
|
|
0, /* (51) with_opt ::= */
|
|
-2, /* (52) with_opt ::= WITH search_condition */
|
|
-3, /* (53) cmd ::= CREATE DNODE dnode_endpoint */
|
|
-5, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
-4, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
-4, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
-4, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
-4, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
-4, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
-5, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
-4, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
-5, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
-3, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
-1, /* (64) dnode_endpoint ::= NK_STRING */
|
|
-1, /* (65) dnode_endpoint ::= NK_ID */
|
|
-1, /* (66) dnode_endpoint ::= NK_IPTOKEN */
|
|
0, /* (67) force_opt ::= */
|
|
-1, /* (68) force_opt ::= FORCE */
|
|
-1, /* (69) unsafe_opt ::= UNSAFE */
|
|
-3, /* (70) cmd ::= ALTER LOCAL NK_STRING */
|
|
-4, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
-5, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
-5, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
-4, /* (84) cmd ::= DROP DATABASE exists_opt db_name */
|
|
-2, /* (85) cmd ::= USE db_name */
|
|
-4, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
-3, /* (87) cmd ::= FLUSH DATABASE db_name */
|
|
-4, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
-5, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
-3, /* (90) not_exists_opt ::= IF NOT EXISTS */
|
|
0, /* (91) not_exists_opt ::= */
|
|
-2, /* (92) exists_opt ::= IF EXISTS */
|
|
0, /* (93) exists_opt ::= */
|
|
0, /* (94) db_options ::= */
|
|
-3, /* (95) db_options ::= db_options BUFFER NK_INTEGER */
|
|
-3, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
-3, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
-3, /* (98) db_options ::= db_options COMP NK_INTEGER */
|
|
-3, /* (99) db_options ::= db_options DURATION NK_INTEGER */
|
|
-3, /* (100) db_options ::= db_options DURATION NK_VARIABLE */
|
|
-3, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
-3, /* (102) db_options ::= db_options MINROWS NK_INTEGER */
|
|
-3, /* (103) db_options ::= db_options KEEP integer_list */
|
|
-3, /* (104) db_options ::= db_options KEEP variable_list */
|
|
-3, /* (105) db_options ::= db_options PAGES NK_INTEGER */
|
|
-3, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
-3, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
-3, /* (108) db_options ::= db_options PRECISION NK_STRING */
|
|
-3, /* (109) db_options ::= db_options REPLICA NK_INTEGER */
|
|
-3, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
-3, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
-3, /* (112) db_options ::= db_options RETENTIONS retention_list */
|
|
-3, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
-3, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
-3, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-3, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-4, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-3, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
-4, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-3, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
-3, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
-3, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
-3, /* (123) db_options ::= db_options TABLE_PREFIX signed */
|
|
-3, /* (124) db_options ::= db_options TABLE_SUFFIX signed */
|
|
-3, /* (125) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
-1, /* (126) alter_db_options ::= alter_db_option */
|
|
-2, /* (127) alter_db_options ::= alter_db_options alter_db_option */
|
|
-2, /* (128) alter_db_option ::= BUFFER NK_INTEGER */
|
|
-2, /* (129) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
-2, /* (130) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
-2, /* (131) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-2, /* (132) alter_db_option ::= KEEP integer_list */
|
|
-2, /* (133) alter_db_option ::= KEEP variable_list */
|
|
-2, /* (134) alter_db_option ::= PAGES NK_INTEGER */
|
|
-2, /* (135) alter_db_option ::= REPLICA NK_INTEGER */
|
|
-2, /* (136) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
-2, /* (137) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
-2, /* (138) alter_db_option ::= MINROWS NK_INTEGER */
|
|
-2, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-3, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-2, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
-3, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-2, /* (143) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
-1, /* (144) integer_list ::= NK_INTEGER */
|
|
-3, /* (145) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
-1, /* (146) variable_list ::= NK_VARIABLE */
|
|
-3, /* (147) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
-1, /* (148) retention_list ::= retention */
|
|
-3, /* (149) retention_list ::= retention_list NK_COMMA retention */
|
|
-3, /* (150) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
0, /* (151) speed_opt ::= */
|
|
-2, /* (152) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
0, /* (153) start_opt ::= */
|
|
-3, /* (154) start_opt ::= START WITH NK_INTEGER */
|
|
-3, /* (155) start_opt ::= START WITH NK_STRING */
|
|
-4, /* (156) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
0, /* (157) end_opt ::= */
|
|
-3, /* (158) end_opt ::= END WITH NK_INTEGER */
|
|
-3, /* (159) end_opt ::= END WITH NK_STRING */
|
|
-4, /* (160) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
-9, /* (161) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
-3, /* (162) cmd ::= CREATE TABLE multi_create_clause */
|
|
-9, /* (163) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
-3, /* (164) cmd ::= DROP TABLE multi_drop_clause */
|
|
-4, /* (165) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
-3, /* (166) cmd ::= ALTER TABLE alter_table_clause */
|
|
-3, /* (167) cmd ::= ALTER STABLE alter_table_clause */
|
|
-2, /* (168) alter_table_clause ::= full_table_name alter_table_options */
|
|
-5, /* (169) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
-4, /* (170) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
-5, /* (171) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
-5, /* (172) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
-5, /* (173) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
-4, /* (174) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
-5, /* (175) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
-5, /* (176) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
-6, /* (177) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
-1, /* (178) multi_create_clause ::= create_subtable_clause */
|
|
-2, /* (179) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
-10, /* (180) 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, /* (181) multi_drop_clause ::= drop_table_clause */
|
|
-3, /* (182) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
-2, /* (183) drop_table_clause ::= exists_opt full_table_name */
|
|
0, /* (184) specific_cols_opt ::= */
|
|
-3, /* (185) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
-1, /* (186) full_table_name ::= table_name */
|
|
-3, /* (187) full_table_name ::= db_name NK_DOT table_name */
|
|
-1, /* (188) column_def_list ::= column_def */
|
|
-3, /* (189) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
-2, /* (190) column_def ::= column_name type_name */
|
|
-1, /* (191) type_name ::= BOOL */
|
|
-1, /* (192) type_name ::= TINYINT */
|
|
-1, /* (193) type_name ::= SMALLINT */
|
|
-1, /* (194) type_name ::= INT */
|
|
-1, /* (195) type_name ::= INTEGER */
|
|
-1, /* (196) type_name ::= BIGINT */
|
|
-1, /* (197) type_name ::= FLOAT */
|
|
-1, /* (198) type_name ::= DOUBLE */
|
|
-4, /* (199) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (200) type_name ::= TIMESTAMP */
|
|
-4, /* (201) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
-2, /* (202) type_name ::= TINYINT UNSIGNED */
|
|
-2, /* (203) type_name ::= SMALLINT UNSIGNED */
|
|
-2, /* (204) type_name ::= INT UNSIGNED */
|
|
-2, /* (205) type_name ::= BIGINT UNSIGNED */
|
|
-1, /* (206) type_name ::= JSON */
|
|
-4, /* (207) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (208) type_name ::= MEDIUMBLOB */
|
|
-1, /* (209) type_name ::= BLOB */
|
|
-4, /* (210) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
-4, /* (211) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (212) type_name ::= DECIMAL */
|
|
-4, /* (213) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
-6, /* (214) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
0, /* (215) tags_def_opt ::= */
|
|
-1, /* (216) tags_def_opt ::= tags_def */
|
|
-4, /* (217) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
0, /* (218) table_options ::= */
|
|
-3, /* (219) table_options ::= table_options COMMENT NK_STRING */
|
|
-3, /* (220) table_options ::= table_options MAX_DELAY duration_list */
|
|
-3, /* (221) table_options ::= table_options WATERMARK duration_list */
|
|
-5, /* (222) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
-3, /* (223) table_options ::= table_options TTL NK_INTEGER */
|
|
-5, /* (224) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
-3, /* (225) table_options ::= table_options DELETE_MARK duration_list */
|
|
-1, /* (226) alter_table_options ::= alter_table_option */
|
|
-2, /* (227) alter_table_options ::= alter_table_options alter_table_option */
|
|
-2, /* (228) alter_table_option ::= COMMENT NK_STRING */
|
|
-2, /* (229) alter_table_option ::= TTL NK_INTEGER */
|
|
-1, /* (230) duration_list ::= duration_literal */
|
|
-3, /* (231) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
-1, /* (232) rollup_func_list ::= rollup_func_name */
|
|
-3, /* (233) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
-1, /* (234) rollup_func_name ::= function_name */
|
|
-1, /* (235) rollup_func_name ::= FIRST */
|
|
-1, /* (236) rollup_func_name ::= LAST */
|
|
-1, /* (237) col_name_list ::= col_name */
|
|
-3, /* (238) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
-1, /* (239) col_name ::= column_name */
|
|
-2, /* (240) cmd ::= SHOW DNODES */
|
|
-2, /* (241) cmd ::= SHOW USERS */
|
|
-3, /* (242) cmd ::= SHOW USER PRIVILEGES */
|
|
-3, /* (243) cmd ::= SHOW db_kind_opt DATABASES */
|
|
-4, /* (244) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
-4, /* (245) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
-3, /* (246) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
-2, /* (247) cmd ::= SHOW MNODES */
|
|
-2, /* (248) cmd ::= SHOW QNODES */
|
|
-2, /* (249) cmd ::= SHOW FUNCTIONS */
|
|
-5, /* (250) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
-6, /* (251) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
-2, /* (252) cmd ::= SHOW STREAMS */
|
|
-2, /* (253) cmd ::= SHOW ACCOUNTS */
|
|
-2, /* (254) cmd ::= SHOW APPS */
|
|
-2, /* (255) cmd ::= SHOW CONNECTIONS */
|
|
-2, /* (256) cmd ::= SHOW LICENCES */
|
|
-2, /* (257) cmd ::= SHOW GRANTS */
|
|
-4, /* (258) cmd ::= SHOW CREATE DATABASE db_name */
|
|
-4, /* (259) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
-4, /* (260) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
-2, /* (261) cmd ::= SHOW QUERIES */
|
|
-2, /* (262) cmd ::= SHOW SCORES */
|
|
-2, /* (263) cmd ::= SHOW TOPICS */
|
|
-2, /* (264) cmd ::= SHOW VARIABLES */
|
|
-3, /* (265) cmd ::= SHOW CLUSTER VARIABLES */
|
|
-3, /* (266) cmd ::= SHOW LOCAL VARIABLES */
|
|
-5, /* (267) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
-2, /* (268) cmd ::= SHOW BNODES */
|
|
-2, /* (269) cmd ::= SHOW SNODES */
|
|
-2, /* (270) cmd ::= SHOW CLUSTER */
|
|
-2, /* (271) cmd ::= SHOW TRANSACTIONS */
|
|
-4, /* (272) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
-2, /* (273) cmd ::= SHOW CONSUMERS */
|
|
-2, /* (274) cmd ::= SHOW SUBSCRIPTIONS */
|
|
-5, /* (275) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
-6, /* (276) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
-7, /* (277) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
-8, /* (278) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
-5, /* (279) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
-2, /* (280) cmd ::= SHOW VNODES */
|
|
-3, /* (281) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
-3, /* (282) cmd ::= SHOW CLUSTER ALIVE */
|
|
0, /* (283) table_kind_db_name_cond_opt ::= */
|
|
-1, /* (284) table_kind_db_name_cond_opt ::= table_kind */
|
|
-2, /* (285) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
-3, /* (286) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
-1, /* (287) table_kind ::= NORMAL */
|
|
-1, /* (288) table_kind ::= CHILD */
|
|
0, /* (289) db_name_cond_opt ::= */
|
|
-2, /* (290) db_name_cond_opt ::= db_name NK_DOT */
|
|
0, /* (291) like_pattern_opt ::= */
|
|
-2, /* (292) like_pattern_opt ::= LIKE NK_STRING */
|
|
-1, /* (293) table_name_cond ::= table_name */
|
|
0, /* (294) from_db_opt ::= */
|
|
-2, /* (295) from_db_opt ::= FROM db_name */
|
|
0, /* (296) tag_list_opt ::= */
|
|
-1, /* (297) tag_list_opt ::= tag_item */
|
|
-3, /* (298) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
-1, /* (299) tag_item ::= TBNAME */
|
|
-1, /* (300) tag_item ::= QTAGS */
|
|
-1, /* (301) tag_item ::= column_name */
|
|
-2, /* (302) tag_item ::= column_name column_alias */
|
|
-3, /* (303) tag_item ::= column_name AS column_alias */
|
|
0, /* (304) db_kind_opt ::= */
|
|
-1, /* (305) db_kind_opt ::= USER */
|
|
-1, /* (306) db_kind_opt ::= SYSTEM */
|
|
-8, /* (307) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
-9, /* (308) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
-4, /* (309) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
-1, /* (310) full_index_name ::= index_name */
|
|
-3, /* (311) full_index_name ::= db_name NK_DOT index_name */
|
|
-10, /* (312) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
-12, /* (313) 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, /* (314) func_list ::= func */
|
|
-3, /* (315) func_list ::= func_list NK_COMMA func */
|
|
-4, /* (316) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
-1, /* (317) sma_func_name ::= function_name */
|
|
-1, /* (318) sma_func_name ::= COUNT */
|
|
-1, /* (319) sma_func_name ::= FIRST */
|
|
-1, /* (320) sma_func_name ::= LAST */
|
|
-1, /* (321) sma_func_name ::= LAST_ROW */
|
|
0, /* (322) sma_stream_opt ::= */
|
|
-3, /* (323) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
-3, /* (324) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
-3, /* (325) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
-1, /* (326) with_meta ::= AS */
|
|
-3, /* (327) with_meta ::= WITH META AS */
|
|
-3, /* (328) with_meta ::= ONLY META AS */
|
|
-6, /* (329) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
-7, /* (330) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
-8, /* (331) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
-4, /* (332) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
-7, /* (333) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
-2, /* (334) cmd ::= DESC full_table_name */
|
|
-2, /* (335) cmd ::= DESCRIBE full_table_name */
|
|
-3, /* (336) cmd ::= RESET QUERY CACHE */
|
|
-4, /* (337) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
-4, /* (338) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
0, /* (339) analyze_opt ::= */
|
|
-1, /* (340) analyze_opt ::= ANALYZE */
|
|
0, /* (341) explain_options ::= */
|
|
-3, /* (342) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
-3, /* (343) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
-12, /* (344) 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, /* (345) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
0, /* (346) agg_func_opt ::= */
|
|
-1, /* (347) agg_func_opt ::= AGGREGATE */
|
|
0, /* (348) bufsize_opt ::= */
|
|
-2, /* (349) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
0, /* (350) language_opt ::= */
|
|
-2, /* (351) language_opt ::= LANGUAGE NK_STRING */
|
|
0, /* (352) or_replace_opt ::= */
|
|
-2, /* (353) or_replace_opt ::= OR REPLACE */
|
|
-12, /* (354) 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, /* (355) cmd ::= DROP STREAM exists_opt stream_name */
|
|
-4, /* (356) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
-5, /* (357) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
0, /* (358) col_list_opt ::= */
|
|
-3, /* (359) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
0, /* (360) tag_def_or_ref_opt ::= */
|
|
-1, /* (361) tag_def_or_ref_opt ::= tags_def */
|
|
-4, /* (362) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
0, /* (363) stream_options ::= */
|
|
-3, /* (364) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
-3, /* (365) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
-4, /* (366) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
-3, /* (367) stream_options ::= stream_options WATERMARK duration_literal */
|
|
-4, /* (368) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
-3, /* (369) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
-3, /* (370) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
-4, /* (371) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
0, /* (372) subtable_opt ::= */
|
|
-4, /* (373) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
0, /* (374) ignore_opt ::= */
|
|
-2, /* (375) ignore_opt ::= IGNORE UNTREATED */
|
|
-3, /* (376) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
-3, /* (377) cmd ::= KILL QUERY NK_STRING */
|
|
-3, /* (378) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
-2, /* (379) cmd ::= BALANCE VGROUP */
|
|
-4, /* (380) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
-4, /* (381) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
-4, /* (382) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
-3, /* (383) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
0, /* (384) on_vgroup_id ::= */
|
|
-2, /* (385) on_vgroup_id ::= ON NK_INTEGER */
|
|
-2, /* (386) dnode_list ::= DNODE NK_INTEGER */
|
|
-3, /* (387) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
-4, /* (388) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
-1, /* (389) cmd ::= query_or_subquery */
|
|
-1, /* (390) cmd ::= insert_query */
|
|
-7, /* (391) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
-4, /* (392) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
-1, /* (393) literal ::= NK_INTEGER */
|
|
-1, /* (394) literal ::= NK_FLOAT */
|
|
-1, /* (395) literal ::= NK_STRING */
|
|
-1, /* (396) literal ::= NK_BOOL */
|
|
-2, /* (397) literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (398) literal ::= duration_literal */
|
|
-1, /* (399) literal ::= NULL */
|
|
-1, /* (400) literal ::= NK_QUESTION */
|
|
-1, /* (401) duration_literal ::= NK_VARIABLE */
|
|
-1, /* (402) signed ::= NK_INTEGER */
|
|
-2, /* (403) signed ::= NK_PLUS NK_INTEGER */
|
|
-2, /* (404) signed ::= NK_MINUS NK_INTEGER */
|
|
-1, /* (405) signed ::= NK_FLOAT */
|
|
-2, /* (406) signed ::= NK_PLUS NK_FLOAT */
|
|
-2, /* (407) signed ::= NK_MINUS NK_FLOAT */
|
|
-1, /* (408) signed_literal ::= signed */
|
|
-1, /* (409) signed_literal ::= NK_STRING */
|
|
-1, /* (410) signed_literal ::= NK_BOOL */
|
|
-2, /* (411) signed_literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (412) signed_literal ::= duration_literal */
|
|
-1, /* (413) signed_literal ::= NULL */
|
|
-1, /* (414) signed_literal ::= literal_func */
|
|
-1, /* (415) signed_literal ::= NK_QUESTION */
|
|
-1, /* (416) literal_list ::= signed_literal */
|
|
-3, /* (417) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
-1, /* (418) db_name ::= NK_ID */
|
|
-1, /* (419) table_name ::= NK_ID */
|
|
-1, /* (420) column_name ::= NK_ID */
|
|
-1, /* (421) function_name ::= NK_ID */
|
|
-1, /* (422) table_alias ::= NK_ID */
|
|
-1, /* (423) column_alias ::= NK_ID */
|
|
-1, /* (424) user_name ::= NK_ID */
|
|
-1, /* (425) topic_name ::= NK_ID */
|
|
-1, /* (426) stream_name ::= NK_ID */
|
|
-1, /* (427) cgroup_name ::= NK_ID */
|
|
-1, /* (428) index_name ::= NK_ID */
|
|
-1, /* (429) expr_or_subquery ::= expression */
|
|
-1, /* (430) expression ::= literal */
|
|
-1, /* (431) expression ::= pseudo_column */
|
|
-1, /* (432) expression ::= column_reference */
|
|
-1, /* (433) expression ::= function_expression */
|
|
-1, /* (434) expression ::= case_when_expression */
|
|
-3, /* (435) expression ::= NK_LP expression NK_RP */
|
|
-2, /* (436) expression ::= NK_PLUS expr_or_subquery */
|
|
-2, /* (437) expression ::= NK_MINUS expr_or_subquery */
|
|
-3, /* (438) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
-3, /* (439) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
-3, /* (440) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
-3, /* (441) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
-3, /* (442) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
-3, /* (443) expression ::= column_reference NK_ARROW NK_STRING */
|
|
-3, /* (444) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
-3, /* (445) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
-1, /* (446) expression_list ::= expr_or_subquery */
|
|
-3, /* (447) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
-1, /* (448) column_reference ::= column_name */
|
|
-3, /* (449) column_reference ::= table_name NK_DOT column_name */
|
|
-1, /* (450) pseudo_column ::= ROWTS */
|
|
-1, /* (451) pseudo_column ::= TBNAME */
|
|
-3, /* (452) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
-1, /* (453) pseudo_column ::= QSTART */
|
|
-1, /* (454) pseudo_column ::= QEND */
|
|
-1, /* (455) pseudo_column ::= QDURATION */
|
|
-1, /* (456) pseudo_column ::= WSTART */
|
|
-1, /* (457) pseudo_column ::= WEND */
|
|
-1, /* (458) pseudo_column ::= WDURATION */
|
|
-1, /* (459) pseudo_column ::= IROWTS */
|
|
-1, /* (460) pseudo_column ::= ISFILLED */
|
|
-1, /* (461) pseudo_column ::= QTAGS */
|
|
-4, /* (462) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
-4, /* (463) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
-6, /* (464) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
-1, /* (465) function_expression ::= literal_func */
|
|
-3, /* (466) literal_func ::= noarg_func NK_LP NK_RP */
|
|
-1, /* (467) literal_func ::= NOW */
|
|
-1, /* (468) noarg_func ::= NOW */
|
|
-1, /* (469) noarg_func ::= TODAY */
|
|
-1, /* (470) noarg_func ::= TIMEZONE */
|
|
-1, /* (471) noarg_func ::= DATABASE */
|
|
-1, /* (472) noarg_func ::= CLIENT_VERSION */
|
|
-1, /* (473) noarg_func ::= SERVER_VERSION */
|
|
-1, /* (474) noarg_func ::= SERVER_STATUS */
|
|
-1, /* (475) noarg_func ::= CURRENT_USER */
|
|
-1, /* (476) noarg_func ::= USER */
|
|
-1, /* (477) star_func ::= COUNT */
|
|
-1, /* (478) star_func ::= FIRST */
|
|
-1, /* (479) star_func ::= LAST */
|
|
-1, /* (480) star_func ::= LAST_ROW */
|
|
-1, /* (481) star_func_para_list ::= NK_STAR */
|
|
-1, /* (482) star_func_para_list ::= other_para_list */
|
|
-1, /* (483) other_para_list ::= star_func_para */
|
|
-3, /* (484) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
-1, /* (485) star_func_para ::= expr_or_subquery */
|
|
-3, /* (486) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
-4, /* (487) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
-5, /* (488) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
-1, /* (489) when_then_list ::= when_then_expr */
|
|
-2, /* (490) when_then_list ::= when_then_list when_then_expr */
|
|
-4, /* (491) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
0, /* (492) case_when_else_opt ::= */
|
|
-2, /* (493) case_when_else_opt ::= ELSE common_expression */
|
|
-3, /* (494) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
-5, /* (495) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-6, /* (496) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-3, /* (497) predicate ::= expr_or_subquery IS NULL */
|
|
-4, /* (498) predicate ::= expr_or_subquery IS NOT NULL */
|
|
-3, /* (499) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
-1, /* (500) compare_op ::= NK_LT */
|
|
-1, /* (501) compare_op ::= NK_GT */
|
|
-1, /* (502) compare_op ::= NK_LE */
|
|
-1, /* (503) compare_op ::= NK_GE */
|
|
-1, /* (504) compare_op ::= NK_NE */
|
|
-1, /* (505) compare_op ::= NK_EQ */
|
|
-1, /* (506) compare_op ::= LIKE */
|
|
-2, /* (507) compare_op ::= NOT LIKE */
|
|
-1, /* (508) compare_op ::= MATCH */
|
|
-1, /* (509) compare_op ::= NMATCH */
|
|
-1, /* (510) compare_op ::= CONTAINS */
|
|
-1, /* (511) in_op ::= IN */
|
|
-2, /* (512) in_op ::= NOT IN */
|
|
-3, /* (513) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
-1, /* (514) boolean_value_expression ::= boolean_primary */
|
|
-2, /* (515) boolean_value_expression ::= NOT boolean_primary */
|
|
-3, /* (516) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
-3, /* (517) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
-1, /* (518) boolean_primary ::= predicate */
|
|
-3, /* (519) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
-1, /* (520) common_expression ::= expr_or_subquery */
|
|
-1, /* (521) common_expression ::= boolean_value_expression */
|
|
0, /* (522) from_clause_opt ::= */
|
|
-2, /* (523) from_clause_opt ::= FROM table_reference_list */
|
|
-1, /* (524) table_reference_list ::= table_reference */
|
|
-3, /* (525) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
-1, /* (526) table_reference ::= table_primary */
|
|
-1, /* (527) table_reference ::= joined_table */
|
|
-2, /* (528) table_primary ::= table_name alias_opt */
|
|
-4, /* (529) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
-2, /* (530) table_primary ::= subquery alias_opt */
|
|
-1, /* (531) table_primary ::= parenthesized_joined_table */
|
|
0, /* (532) alias_opt ::= */
|
|
-1, /* (533) alias_opt ::= table_alias */
|
|
-2, /* (534) alias_opt ::= AS table_alias */
|
|
-3, /* (535) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
-3, /* (536) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
-6, /* (537) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
0, /* (538) join_type ::= */
|
|
-1, /* (539) join_type ::= INNER */
|
|
-14, /* (540) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
0, /* (541) hint_list ::= */
|
|
-1, /* (542) hint_list ::= NK_HINT */
|
|
0, /* (543) tag_mode_opt ::= */
|
|
-1, /* (544) tag_mode_opt ::= TAGS */
|
|
0, /* (545) set_quantifier_opt ::= */
|
|
-1, /* (546) set_quantifier_opt ::= DISTINCT */
|
|
-1, /* (547) set_quantifier_opt ::= ALL */
|
|
-1, /* (548) select_list ::= select_item */
|
|
-3, /* (549) select_list ::= select_list NK_COMMA select_item */
|
|
-1, /* (550) select_item ::= NK_STAR */
|
|
-1, /* (551) select_item ::= common_expression */
|
|
-2, /* (552) select_item ::= common_expression column_alias */
|
|
-3, /* (553) select_item ::= common_expression AS column_alias */
|
|
-3, /* (554) select_item ::= table_name NK_DOT NK_STAR */
|
|
0, /* (555) where_clause_opt ::= */
|
|
-2, /* (556) where_clause_opt ::= WHERE search_condition */
|
|
0, /* (557) partition_by_clause_opt ::= */
|
|
-3, /* (558) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
-1, /* (559) partition_list ::= partition_item */
|
|
-3, /* (560) partition_list ::= partition_list NK_COMMA partition_item */
|
|
-1, /* (561) partition_item ::= expr_or_subquery */
|
|
-2, /* (562) partition_item ::= expr_or_subquery column_alias */
|
|
-3, /* (563) partition_item ::= expr_or_subquery AS column_alias */
|
|
0, /* (564) twindow_clause_opt ::= */
|
|
-6, /* (565) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
-4, /* (566) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
-6, /* (567) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
-8, /* (568) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
-7, /* (569) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
0, /* (570) sliding_opt ::= */
|
|
-4, /* (571) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
|
|
0, /* (572) fill_opt ::= */
|
|
-4, /* (573) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
-6, /* (574) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
-6, /* (575) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
-1, /* (576) fill_mode ::= NONE */
|
|
-1, /* (577) fill_mode ::= PREV */
|
|
-1, /* (578) fill_mode ::= NULL */
|
|
-1, /* (579) fill_mode ::= NULL_F */
|
|
-1, /* (580) fill_mode ::= LINEAR */
|
|
-1, /* (581) fill_mode ::= NEXT */
|
|
0, /* (582) group_by_clause_opt ::= */
|
|
-3, /* (583) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
-1, /* (584) group_by_list ::= expr_or_subquery */
|
|
-3, /* (585) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
0, /* (586) having_clause_opt ::= */
|
|
-2, /* (587) having_clause_opt ::= HAVING search_condition */
|
|
0, /* (588) range_opt ::= */
|
|
-6, /* (589) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
-4, /* (590) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
0, /* (591) every_opt ::= */
|
|
-4, /* (592) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
-4, /* (593) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
-1, /* (594) query_simple ::= query_specification */
|
|
-1, /* (595) query_simple ::= union_query_expression */
|
|
-4, /* (596) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
-3, /* (597) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
-1, /* (598) query_simple_or_subquery ::= query_simple */
|
|
-1, /* (599) query_simple_or_subquery ::= subquery */
|
|
-1, /* (600) query_or_subquery ::= query_expression */
|
|
-1, /* (601) query_or_subquery ::= subquery */
|
|
0, /* (602) order_by_clause_opt ::= */
|
|
-3, /* (603) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
0, /* (604) slimit_clause_opt ::= */
|
|
-2, /* (605) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
-4, /* (606) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
-4, /* (607) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
0, /* (608) limit_clause_opt ::= */
|
|
-2, /* (609) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
-4, /* (610) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
-4, /* (611) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
-3, /* (612) subquery ::= NK_LP query_expression NK_RP */
|
|
-3, /* (613) subquery ::= NK_LP subquery NK_RP */
|
|
-1, /* (614) search_condition ::= common_expression */
|
|
-1, /* (615) sort_specification_list ::= sort_specification */
|
|
-3, /* (616) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
-3, /* (617) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
0, /* (618) ordering_specification_opt ::= */
|
|
-1, /* (619) ordering_specification_opt ::= ASC */
|
|
-1, /* (620) ordering_specification_opt ::= DESC */
|
|
0, /* (621) null_ordering_opt ::= */
|
|
-2, /* (622) null_ordering_opt ::= NULLS FIRST */
|
|
-2, /* (623) null_ordering_opt ::= NULLS LAST */
|
|
};
|
|
|
|
static void yy_accept(yyParser*); /* Forward Declaration */
|
|
|
|
/*
|
|
** Perform a reduce action and the shift that must immediately
|
|
** follow the reduce.
|
|
**
|
|
** The yyLookahead and yyLookaheadToken parameters provide reduce actions
|
|
** access to the lookahead token (if any). The yyLookahead will be YYNOCODE
|
|
** if the lookahead token has already been consumed. As this procedure is
|
|
** only called from one place, optimizing compilers will in-line it, which
|
|
** means that the extra parameters have no performance impact.
|
|
*/
|
|
static YYACTIONTYPE yy_reduce(
|
|
yyParser *yypParser, /* The parser */
|
|
unsigned int yyruleno, /* Number of the rule by which to reduce */
|
|
int yyLookahead, /* Lookahead token, or YYNOCODE if none */
|
|
ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */
|
|
ParseCTX_PDECL /* %extra_context */
|
|
){
|
|
int yygoto; /* The next state */
|
|
YYACTIONTYPE yyact; /* The next action */
|
|
yyStackEntry *yymsp; /* The top of the parser's stack */
|
|
int yysize; /* Amount to pop the stack */
|
|
ParseARG_FETCH
|
|
(void)yyLookahead;
|
|
(void)yyLookaheadToken;
|
|
yymsp = yypParser->yytos;
|
|
|
|
switch( yyruleno ){
|
|
/* Beginning here are the reduction cases. A typical example
|
|
** follows:
|
|
** case 0:
|
|
** #line <lineno> <grammarfile>
|
|
** { ... } // User supplied code
|
|
** #line <lineno> <thisfile>
|
|
** break;
|
|
*/
|
|
/********** Begin reduce actions **********************************************/
|
|
YYMINORTYPE yylhsminor;
|
|
case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
#line 50 "sql.y"
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
#line 5013 "sql.c"
|
|
yy_destructor(yypParser,345,&yymsp[0].minor);
|
|
break;
|
|
case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
#line 51 "sql.y"
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
#line 5019 "sql.c"
|
|
yy_destructor(yypParser,346,&yymsp[0].minor);
|
|
break;
|
|
case 2: /* account_options ::= */
|
|
#line 55 "sql.y"
|
|
{ }
|
|
#line 5025 "sql.c"
|
|
break;
|
|
case 3: /* account_options ::= account_options PPS literal */
|
|
case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4);
|
|
case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5);
|
|
case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6);
|
|
case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7);
|
|
case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8);
|
|
case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9);
|
|
case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10);
|
|
case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11);
|
|
{ yy_destructor(yypParser,345,&yymsp[-2].minor);
|
|
#line 56 "sql.y"
|
|
{ }
|
|
#line 5039 "sql.c"
|
|
yy_destructor(yypParser,347,&yymsp[0].minor);
|
|
}
|
|
break;
|
|
case 12: /* alter_account_options ::= alter_account_option */
|
|
{ yy_destructor(yypParser,348,&yymsp[0].minor);
|
|
#line 68 "sql.y"
|
|
{ }
|
|
#line 5047 "sql.c"
|
|
}
|
|
break;
|
|
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
|
|
{ yy_destructor(yypParser,346,&yymsp[-1].minor);
|
|
#line 69 "sql.y"
|
|
{ }
|
|
#line 5054 "sql.c"
|
|
yy_destructor(yypParser,348,&yymsp[0].minor);
|
|
}
|
|
break;
|
|
case 14: /* alter_account_option ::= PASS literal */
|
|
case 15: /* alter_account_option ::= PPS literal */ yytestcase(yyruleno==15);
|
|
case 16: /* alter_account_option ::= TSERIES literal */ yytestcase(yyruleno==16);
|
|
case 17: /* alter_account_option ::= STORAGE literal */ yytestcase(yyruleno==17);
|
|
case 18: /* alter_account_option ::= STREAMS literal */ yytestcase(yyruleno==18);
|
|
case 19: /* alter_account_option ::= QTIME literal */ yytestcase(yyruleno==19);
|
|
case 20: /* alter_account_option ::= DBS literal */ yytestcase(yyruleno==20);
|
|
case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21);
|
|
case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22);
|
|
case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23);
|
|
#line 73 "sql.y"
|
|
{ }
|
|
#line 5070 "sql.c"
|
|
yy_destructor(yypParser,347,&yymsp[0].minor);
|
|
break;
|
|
case 24: /* ip_range_list ::= NK_STRING */
|
|
#line 86 "sql.y"
|
|
{ yylhsminor.yy860 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
#line 5076 "sql.c"
|
|
yymsp[0].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
#line 87 "sql.y"
|
|
{ yylhsminor.yy860 = addNodeToList(pCxt, yymsp[-2].minor.yy860, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
#line 5082 "sql.c"
|
|
yymsp[-2].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 26: /* white_list ::= HOST ip_range_list */
|
|
#line 91 "sql.y"
|
|
{ yymsp[-1].minor.yy860 = yymsp[0].minor.yy860; }
|
|
#line 5088 "sql.c"
|
|
break;
|
|
case 27: /* white_list_opt ::= */
|
|
case 184: /* specific_cols_opt ::= */ yytestcase(yyruleno==184);
|
|
case 215: /* tags_def_opt ::= */ yytestcase(yyruleno==215);
|
|
case 296: /* tag_list_opt ::= */ yytestcase(yyruleno==296);
|
|
case 358: /* col_list_opt ::= */ yytestcase(yyruleno==358);
|
|
case 360: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==360);
|
|
case 557: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==557);
|
|
case 582: /* group_by_clause_opt ::= */ yytestcase(yyruleno==582);
|
|
case 602: /* order_by_clause_opt ::= */ yytestcase(yyruleno==602);
|
|
#line 95 "sql.y"
|
|
{ yymsp[1].minor.yy860 = NULL; }
|
|
#line 5101 "sql.c"
|
|
break;
|
|
case 28: /* white_list_opt ::= white_list */
|
|
case 216: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==216);
|
|
case 361: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==361);
|
|
case 482: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==482);
|
|
#line 96 "sql.y"
|
|
{ yylhsminor.yy860 = yymsp[0].minor.yy860; }
|
|
#line 5109 "sql.c"
|
|
yymsp[0].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
#line 100 "sql.y"
|
|
{
|
|
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy269, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy371);
|
|
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy860);
|
|
}
|
|
#line 5118 "sql.c"
|
|
break;
|
|
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
#line 104 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy269, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
|
|
#line 5123 "sql.c"
|
|
break;
|
|
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
#line 105 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy269, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
|
|
#line 5128 "sql.c"
|
|
break;
|
|
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
#line 106 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy269, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
|
|
#line 5133 "sql.c"
|
|
break;
|
|
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
|
|
#line 107 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy269, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy860); }
|
|
#line 5138 "sql.c"
|
|
break;
|
|
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
|
|
#line 108 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy269, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy860); }
|
|
#line 5143 "sql.c"
|
|
break;
|
|
case 35: /* cmd ::= DROP USER user_name */
|
|
#line 109 "sql.y"
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy269); }
|
|
#line 5148 "sql.c"
|
|
break;
|
|
case 36: /* sysinfo_opt ::= */
|
|
#line 113 "sql.y"
|
|
{ yymsp[1].minor.yy371 = 1; }
|
|
#line 5153 "sql.c"
|
|
break;
|
|
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
#line 114 "sql.y"
|
|
{ yymsp[-1].minor.yy371 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
#line 5158 "sql.c"
|
|
break;
|
|
case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
#line 117 "sql.y"
|
|
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy537, &yymsp[-3].minor.yy993, &yymsp[0].minor.yy269, yymsp[-2].minor.yy348); }
|
|
#line 5163 "sql.c"
|
|
break;
|
|
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
#line 118 "sql.y"
|
|
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy537, &yymsp[-3].minor.yy993, &yymsp[0].minor.yy269, yymsp[-2].minor.yy348); }
|
|
#line 5168 "sql.c"
|
|
break;
|
|
case 40: /* privileges ::= ALL */
|
|
#line 122 "sql.y"
|
|
{ yymsp[0].minor.yy537 = PRIVILEGE_TYPE_ALL; }
|
|
#line 5173 "sql.c"
|
|
break;
|
|
case 41: /* privileges ::= priv_type_list */
|
|
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
|
|
#line 123 "sql.y"
|
|
{ yylhsminor.yy537 = yymsp[0].minor.yy537; }
|
|
#line 5179 "sql.c"
|
|
yymsp[0].minor.yy537 = yylhsminor.yy537;
|
|
break;
|
|
case 42: /* privileges ::= SUBSCRIBE */
|
|
#line 124 "sql.y"
|
|
{ yymsp[0].minor.yy537 = PRIVILEGE_TYPE_SUBSCRIBE; }
|
|
#line 5185 "sql.c"
|
|
break;
|
|
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
#line 129 "sql.y"
|
|
{ yylhsminor.yy537 = yymsp[-2].minor.yy537 | yymsp[0].minor.yy537; }
|
|
#line 5190 "sql.c"
|
|
yymsp[-2].minor.yy537 = yylhsminor.yy537;
|
|
break;
|
|
case 45: /* priv_type ::= READ */
|
|
#line 133 "sql.y"
|
|
{ yymsp[0].minor.yy537 = PRIVILEGE_TYPE_READ; }
|
|
#line 5196 "sql.c"
|
|
break;
|
|
case 46: /* priv_type ::= WRITE */
|
|
#line 134 "sql.y"
|
|
{ yymsp[0].minor.yy537 = PRIVILEGE_TYPE_WRITE; }
|
|
#line 5201 "sql.c"
|
|
break;
|
|
case 47: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
#line 138 "sql.y"
|
|
{ yylhsminor.yy993.first = yymsp[-2].minor.yy0; yylhsminor.yy993.second = yymsp[0].minor.yy0; }
|
|
#line 5206 "sql.c"
|
|
yymsp[-2].minor.yy993 = yylhsminor.yy993;
|
|
break;
|
|
case 48: /* priv_level ::= db_name NK_DOT NK_STAR */
|
|
#line 139 "sql.y"
|
|
{ yylhsminor.yy993.first = yymsp[-2].minor.yy269; yylhsminor.yy993.second = yymsp[0].minor.yy0; }
|
|
#line 5212 "sql.c"
|
|
yymsp[-2].minor.yy993 = yylhsminor.yy993;
|
|
break;
|
|
case 49: /* priv_level ::= db_name NK_DOT table_name */
|
|
#line 140 "sql.y"
|
|
{ yylhsminor.yy993.first = yymsp[-2].minor.yy269; yylhsminor.yy993.second = yymsp[0].minor.yy269; }
|
|
#line 5218 "sql.c"
|
|
yymsp[-2].minor.yy993 = yylhsminor.yy993;
|
|
break;
|
|
case 50: /* priv_level ::= topic_name */
|
|
#line 141 "sql.y"
|
|
{ yylhsminor.yy993.first = yymsp[0].minor.yy269; yylhsminor.yy993.second = nil_token; }
|
|
#line 5224 "sql.c"
|
|
yymsp[0].minor.yy993 = yylhsminor.yy993;
|
|
break;
|
|
case 51: /* with_opt ::= */
|
|
case 153: /* start_opt ::= */ yytestcase(yyruleno==153);
|
|
case 157: /* end_opt ::= */ yytestcase(yyruleno==157);
|
|
case 291: /* like_pattern_opt ::= */ yytestcase(yyruleno==291);
|
|
case 372: /* subtable_opt ::= */ yytestcase(yyruleno==372);
|
|
case 492: /* case_when_else_opt ::= */ yytestcase(yyruleno==492);
|
|
case 522: /* from_clause_opt ::= */ yytestcase(yyruleno==522);
|
|
case 555: /* where_clause_opt ::= */ yytestcase(yyruleno==555);
|
|
case 564: /* twindow_clause_opt ::= */ yytestcase(yyruleno==564);
|
|
case 570: /* sliding_opt ::= */ yytestcase(yyruleno==570);
|
|
case 572: /* fill_opt ::= */ yytestcase(yyruleno==572);
|
|
case 586: /* having_clause_opt ::= */ yytestcase(yyruleno==586);
|
|
case 588: /* range_opt ::= */ yytestcase(yyruleno==588);
|
|
case 591: /* every_opt ::= */ yytestcase(yyruleno==591);
|
|
case 604: /* slimit_clause_opt ::= */ yytestcase(yyruleno==604);
|
|
case 608: /* limit_clause_opt ::= */ yytestcase(yyruleno==608);
|
|
#line 143 "sql.y"
|
|
{ yymsp[1].minor.yy348 = NULL; }
|
|
#line 5245 "sql.c"
|
|
break;
|
|
case 52: /* with_opt ::= WITH search_condition */
|
|
case 523: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==523);
|
|
case 556: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==556);
|
|
case 587: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==587);
|
|
#line 144 "sql.y"
|
|
{ yymsp[-1].minor.yy348 = yymsp[0].minor.yy348; }
|
|
#line 5253 "sql.c"
|
|
break;
|
|
case 53: /* cmd ::= CREATE DNODE dnode_endpoint */
|
|
#line 147 "sql.y"
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy269, NULL); }
|
|
#line 5258 "sql.c"
|
|
break;
|
|
case 54: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
#line 148 "sql.y"
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy269, &yymsp[0].minor.yy0); }
|
|
#line 5263 "sql.c"
|
|
break;
|
|
case 55: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
#line 149 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy345, false); }
|
|
#line 5268 "sql.c"
|
|
break;
|
|
case 56: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
#line 150 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy269, yymsp[0].minor.yy345, false); }
|
|
#line 5273 "sql.c"
|
|
break;
|
|
case 57: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
#line 151 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy345); }
|
|
#line 5278 "sql.c"
|
|
break;
|
|
case 58: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
#line 152 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy269, false, yymsp[0].minor.yy345); }
|
|
#line 5283 "sql.c"
|
|
break;
|
|
case 59: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
#line 153 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
|
|
#line 5288 "sql.c"
|
|
break;
|
|
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
#line 154 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 5293 "sql.c"
|
|
break;
|
|
case 61: /* cmd ::= ALTER ALL DNODES NK_STRING */
|
|
#line 155 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
|
|
#line 5298 "sql.c"
|
|
break;
|
|
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
#line 156 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 5303 "sql.c"
|
|
break;
|
|
case 63: /* cmd ::= RESTORE DNODE NK_INTEGER */
|
|
#line 157 "sql.y"
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5308 "sql.c"
|
|
break;
|
|
case 64: /* dnode_endpoint ::= NK_STRING */
|
|
case 65: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==65);
|
|
case 66: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==66);
|
|
case 318: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==318);
|
|
case 319: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==319);
|
|
case 320: /* sma_func_name ::= LAST */ yytestcase(yyruleno==320);
|
|
case 321: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==321);
|
|
case 418: /* db_name ::= NK_ID */ yytestcase(yyruleno==418);
|
|
case 419: /* table_name ::= NK_ID */ yytestcase(yyruleno==419);
|
|
case 420: /* column_name ::= NK_ID */ yytestcase(yyruleno==420);
|
|
case 421: /* function_name ::= NK_ID */ yytestcase(yyruleno==421);
|
|
case 422: /* table_alias ::= NK_ID */ yytestcase(yyruleno==422);
|
|
case 423: /* column_alias ::= NK_ID */ yytestcase(yyruleno==423);
|
|
case 424: /* user_name ::= NK_ID */ yytestcase(yyruleno==424);
|
|
case 425: /* topic_name ::= NK_ID */ yytestcase(yyruleno==425);
|
|
case 426: /* stream_name ::= NK_ID */ yytestcase(yyruleno==426);
|
|
case 427: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==427);
|
|
case 428: /* index_name ::= NK_ID */ yytestcase(yyruleno==428);
|
|
case 468: /* noarg_func ::= NOW */ yytestcase(yyruleno==468);
|
|
case 469: /* noarg_func ::= TODAY */ yytestcase(yyruleno==469);
|
|
case 470: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==470);
|
|
case 471: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==471);
|
|
case 472: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==472);
|
|
case 473: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==473);
|
|
case 474: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==474);
|
|
case 475: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==475);
|
|
case 476: /* noarg_func ::= USER */ yytestcase(yyruleno==476);
|
|
case 477: /* star_func ::= COUNT */ yytestcase(yyruleno==477);
|
|
case 478: /* star_func ::= FIRST */ yytestcase(yyruleno==478);
|
|
case 479: /* star_func ::= LAST */ yytestcase(yyruleno==479);
|
|
case 480: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==480);
|
|
#line 161 "sql.y"
|
|
{ yylhsminor.yy269 = yymsp[0].minor.yy0; }
|
|
#line 5343 "sql.c"
|
|
yymsp[0].minor.yy269 = yylhsminor.yy269;
|
|
break;
|
|
case 67: /* force_opt ::= */
|
|
case 91: /* not_exists_opt ::= */ yytestcase(yyruleno==91);
|
|
case 93: /* exists_opt ::= */ yytestcase(yyruleno==93);
|
|
case 339: /* analyze_opt ::= */ yytestcase(yyruleno==339);
|
|
case 346: /* agg_func_opt ::= */ yytestcase(yyruleno==346);
|
|
case 352: /* or_replace_opt ::= */ yytestcase(yyruleno==352);
|
|
case 374: /* ignore_opt ::= */ yytestcase(yyruleno==374);
|
|
case 543: /* tag_mode_opt ::= */ yytestcase(yyruleno==543);
|
|
case 545: /* set_quantifier_opt ::= */ yytestcase(yyruleno==545);
|
|
#line 167 "sql.y"
|
|
{ yymsp[1].minor.yy345 = false; }
|
|
#line 5357 "sql.c"
|
|
break;
|
|
case 68: /* force_opt ::= FORCE */
|
|
case 69: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==69);
|
|
case 340: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==340);
|
|
case 347: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==347);
|
|
case 544: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==544);
|
|
case 546: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==546);
|
|
#line 168 "sql.y"
|
|
{ yymsp[0].minor.yy345 = true; }
|
|
#line 5367 "sql.c"
|
|
break;
|
|
case 70: /* cmd ::= ALTER LOCAL NK_STRING */
|
|
#line 175 "sql.y"
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 5372 "sql.c"
|
|
break;
|
|
case 71: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
#line 176 "sql.y"
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 5377 "sql.c"
|
|
break;
|
|
case 72: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
#line 179 "sql.y"
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5382 "sql.c"
|
|
break;
|
|
case 73: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
#line 180 "sql.y"
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5387 "sql.c"
|
|
break;
|
|
case 74: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
#line 181 "sql.y"
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5392 "sql.c"
|
|
break;
|
|
case 75: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
#line 184 "sql.y"
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5397 "sql.c"
|
|
break;
|
|
case 76: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
#line 185 "sql.y"
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5402 "sql.c"
|
|
break;
|
|
case 77: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
#line 188 "sql.y"
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5407 "sql.c"
|
|
break;
|
|
case 78: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
#line 189 "sql.y"
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5412 "sql.c"
|
|
break;
|
|
case 79: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
#line 192 "sql.y"
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5417 "sql.c"
|
|
break;
|
|
case 80: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
#line 193 "sql.y"
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5422 "sql.c"
|
|
break;
|
|
case 81: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
#line 194 "sql.y"
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5427 "sql.c"
|
|
break;
|
|
case 82: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
#line 197 "sql.y"
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5432 "sql.c"
|
|
break;
|
|
case 83: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
#line 200 "sql.y"
|
|
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy345, &yymsp[-1].minor.yy269, yymsp[0].minor.yy348); }
|
|
#line 5437 "sql.c"
|
|
break;
|
|
case 84: /* cmd ::= DROP DATABASE exists_opt db_name */
|
|
#line 201 "sql.y"
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy269); }
|
|
#line 5442 "sql.c"
|
|
break;
|
|
case 85: /* cmd ::= USE db_name */
|
|
#line 202 "sql.y"
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy269); }
|
|
#line 5447 "sql.c"
|
|
break;
|
|
case 86: /* cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
#line 203 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy269, yymsp[0].minor.yy348); }
|
|
#line 5452 "sql.c"
|
|
break;
|
|
case 87: /* cmd ::= FLUSH DATABASE db_name */
|
|
#line 204 "sql.y"
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy269); }
|
|
#line 5457 "sql.c"
|
|
break;
|
|
case 88: /* cmd ::= TRIM DATABASE db_name speed_opt */
|
|
#line 205 "sql.y"
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy269, yymsp[0].minor.yy88); }
|
|
#line 5462 "sql.c"
|
|
break;
|
|
case 89: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
#line 206 "sql.y"
|
|
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy269, yymsp[-1].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 5467 "sql.c"
|
|
break;
|
|
case 90: /* not_exists_opt ::= IF NOT EXISTS */
|
|
#line 210 "sql.y"
|
|
{ yymsp[-2].minor.yy345 = true; }
|
|
#line 5472 "sql.c"
|
|
break;
|
|
case 92: /* exists_opt ::= IF EXISTS */
|
|
case 353: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==353);
|
|
case 375: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==375);
|
|
#line 215 "sql.y"
|
|
{ yymsp[-1].minor.yy345 = true; }
|
|
#line 5479 "sql.c"
|
|
break;
|
|
case 94: /* db_options ::= */
|
|
#line 218 "sql.y"
|
|
{ yymsp[1].minor.yy348 = createDefaultDatabaseOptions(pCxt); }
|
|
#line 5484 "sql.c"
|
|
break;
|
|
case 95: /* db_options ::= db_options BUFFER NK_INTEGER */
|
|
#line 219 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
#line 5489 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 96: /* db_options ::= db_options CACHEMODEL NK_STRING */
|
|
#line 220 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
#line 5495 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 97: /* db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
#line 221 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
#line 5501 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 98: /* db_options ::= db_options COMP NK_INTEGER */
|
|
#line 222 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
#line 5507 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 99: /* db_options ::= db_options DURATION NK_INTEGER */
|
|
case 100: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==100);
|
|
#line 223 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
#line 5514 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 101: /* db_options ::= db_options MAXROWS NK_INTEGER */
|
|
#line 225 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
#line 5520 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 102: /* db_options ::= db_options MINROWS NK_INTEGER */
|
|
#line 226 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
#line 5526 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 103: /* db_options ::= db_options KEEP integer_list */
|
|
case 104: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==104);
|
|
#line 227 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_KEEP, yymsp[0].minor.yy860); }
|
|
#line 5533 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 105: /* db_options ::= db_options PAGES NK_INTEGER */
|
|
#line 229 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
#line 5539 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 106: /* db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
#line 230 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
#line 5545 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 107: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
#line 231 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
#line 5551 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 108: /* db_options ::= db_options PRECISION NK_STRING */
|
|
#line 232 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
#line 5557 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 109: /* db_options ::= db_options REPLICA NK_INTEGER */
|
|
#line 233 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
#line 5563 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 110: /* db_options ::= db_options VGROUPS NK_INTEGER */
|
|
#line 235 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
#line 5569 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 111: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
#line 236 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
#line 5575 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 112: /* db_options ::= db_options RETENTIONS retention_list */
|
|
#line 237 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_RETENTIONS, yymsp[0].minor.yy860); }
|
|
#line 5581 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 113: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
#line 238 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
#line 5587 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 114: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
#line 239 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
#line 5593 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 115: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
#line 240 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
#line 5599 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 116: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
#line 241 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
#line 5605 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 117: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
#line 242 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-3].minor.yy348, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
|
}
|
|
#line 5615 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 118: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
#line 247 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
#line 5621 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 119: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
#line 248 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-3].minor.yy348, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
|
}
|
|
#line 5631 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 120: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
#line 253 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
#line 5637 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 121: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
#line 254 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
#line 5643 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 122: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
#line 255 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
#line 5649 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 123: /* db_options ::= db_options TABLE_PREFIX signed */
|
|
#line 256 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy348); }
|
|
#line 5655 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 124: /* db_options ::= db_options TABLE_SUFFIX signed */
|
|
#line 257 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy348); }
|
|
#line 5661 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 125: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
#line 258 "sql.y"
|
|
{ yylhsminor.yy348 = setDatabaseOption(pCxt, yymsp[-2].minor.yy348, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
|
|
#line 5667 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 126: /* alter_db_options ::= alter_db_option */
|
|
#line 260 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterDatabaseOptions(pCxt); yylhsminor.yy348 = setAlterDatabaseOption(pCxt, yylhsminor.yy348, &yymsp[0].minor.yy233); }
|
|
#line 5673 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 127: /* alter_db_options ::= alter_db_options alter_db_option */
|
|
#line 261 "sql.y"
|
|
{ yylhsminor.yy348 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy348, &yymsp[0].minor.yy233); }
|
|
#line 5679 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 128: /* alter_db_option ::= BUFFER NK_INTEGER */
|
|
#line 265 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5685 "sql.c"
|
|
break;
|
|
case 129: /* alter_db_option ::= CACHEMODEL NK_STRING */
|
|
#line 266 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5690 "sql.c"
|
|
break;
|
|
case 130: /* alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
#line 267 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5695 "sql.c"
|
|
break;
|
|
case 131: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
#line 268 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5700 "sql.c"
|
|
break;
|
|
case 132: /* alter_db_option ::= KEEP integer_list */
|
|
case 133: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==133);
|
|
#line 269 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_KEEP; yymsp[-1].minor.yy233.pList = yymsp[0].minor.yy860; }
|
|
#line 5706 "sql.c"
|
|
break;
|
|
case 134: /* alter_db_option ::= PAGES NK_INTEGER */
|
|
#line 271 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_PAGES; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5711 "sql.c"
|
|
break;
|
|
case 135: /* alter_db_option ::= REPLICA NK_INTEGER */
|
|
#line 272 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5716 "sql.c"
|
|
break;
|
|
case 136: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
#line 274 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_WAL; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5721 "sql.c"
|
|
break;
|
|
case 137: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
#line 275 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5726 "sql.c"
|
|
break;
|
|
case 138: /* alter_db_option ::= MINROWS NK_INTEGER */
|
|
#line 276 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5731 "sql.c"
|
|
break;
|
|
case 139: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
#line 277 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5736 "sql.c"
|
|
break;
|
|
case 140: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
#line 278 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy233.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy233.val = t;
|
|
}
|
|
#line 5745 "sql.c"
|
|
break;
|
|
case 141: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
#line 283 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5750 "sql.c"
|
|
break;
|
|
case 142: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
#line 284 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy233.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy233.val = t;
|
|
}
|
|
#line 5759 "sql.c"
|
|
break;
|
|
case 143: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
#line 289 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 5764 "sql.c"
|
|
break;
|
|
case 144: /* integer_list ::= NK_INTEGER */
|
|
#line 293 "sql.y"
|
|
{ yylhsminor.yy860 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 5769 "sql.c"
|
|
yymsp[0].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 145: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
case 387: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==387);
|
|
#line 294 "sql.y"
|
|
{ yylhsminor.yy860 = addNodeToList(pCxt, yymsp[-2].minor.yy860, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 5776 "sql.c"
|
|
yymsp[-2].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 146: /* variable_list ::= NK_VARIABLE */
|
|
#line 298 "sql.y"
|
|
{ yylhsminor.yy860 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 5782 "sql.c"
|
|
yymsp[0].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 147: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
#line 299 "sql.y"
|
|
{ yylhsminor.yy860 = addNodeToList(pCxt, yymsp[-2].minor.yy860, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 5788 "sql.c"
|
|
yymsp[-2].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 148: /* retention_list ::= retention */
|
|
case 178: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==178);
|
|
case 181: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==181);
|
|
case 188: /* column_def_list ::= column_def */ yytestcase(yyruleno==188);
|
|
case 232: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==232);
|
|
case 237: /* col_name_list ::= col_name */ yytestcase(yyruleno==237);
|
|
case 297: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==297);
|
|
case 314: /* func_list ::= func */ yytestcase(yyruleno==314);
|
|
case 416: /* literal_list ::= signed_literal */ yytestcase(yyruleno==416);
|
|
case 483: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==483);
|
|
case 489: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==489);
|
|
case 548: /* select_list ::= select_item */ yytestcase(yyruleno==548);
|
|
case 559: /* partition_list ::= partition_item */ yytestcase(yyruleno==559);
|
|
case 615: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==615);
|
|
#line 303 "sql.y"
|
|
{ yylhsminor.yy860 = createNodeList(pCxt, yymsp[0].minor.yy348); }
|
|
#line 5807 "sql.c"
|
|
yymsp[0].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 149: /* retention_list ::= retention_list NK_COMMA retention */
|
|
case 182: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==182);
|
|
case 189: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==189);
|
|
case 233: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==233);
|
|
case 238: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==238);
|
|
case 298: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==298);
|
|
case 315: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==315);
|
|
case 417: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==417);
|
|
case 484: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==484);
|
|
case 549: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==549);
|
|
case 560: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==560);
|
|
case 616: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==616);
|
|
#line 304 "sql.y"
|
|
{ yylhsminor.yy860 = addNodeToList(pCxt, yymsp[-2].minor.yy860, yymsp[0].minor.yy348); }
|
|
#line 5824 "sql.c"
|
|
yymsp[-2].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 150: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
#line 306 "sql.y"
|
|
{ yylhsminor.yy348 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 5830 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 151: /* speed_opt ::= */
|
|
case 348: /* bufsize_opt ::= */ yytestcase(yyruleno==348);
|
|
#line 310 "sql.y"
|
|
{ yymsp[1].minor.yy88 = 0; }
|
|
#line 5837 "sql.c"
|
|
break;
|
|
case 152: /* speed_opt ::= BWLIMIT NK_INTEGER */
|
|
case 349: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==349);
|
|
#line 311 "sql.y"
|
|
{ yymsp[-1].minor.yy88 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
#line 5843 "sql.c"
|
|
break;
|
|
case 154: /* start_opt ::= START WITH NK_INTEGER */
|
|
case 158: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==158);
|
|
#line 314 "sql.y"
|
|
{ yymsp[-2].minor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
|
|
#line 5849 "sql.c"
|
|
break;
|
|
case 155: /* start_opt ::= START WITH NK_STRING */
|
|
case 159: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==159);
|
|
#line 315 "sql.y"
|
|
{ yymsp[-2].minor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
#line 5855 "sql.c"
|
|
break;
|
|
case 156: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
case 160: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==160);
|
|
#line 316 "sql.y"
|
|
{ yymsp[-3].minor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
#line 5861 "sql.c"
|
|
break;
|
|
case 161: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
case 163: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==163);
|
|
#line 325 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy345, yymsp[-5].minor.yy348, yymsp[-3].minor.yy860, yymsp[-1].minor.yy860, yymsp[0].minor.yy348); }
|
|
#line 5867 "sql.c"
|
|
break;
|
|
case 162: /* cmd ::= CREATE TABLE multi_create_clause */
|
|
#line 326 "sql.y"
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy860); }
|
|
#line 5872 "sql.c"
|
|
break;
|
|
case 164: /* cmd ::= DROP TABLE multi_drop_clause */
|
|
#line 329 "sql.y"
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy860); }
|
|
#line 5877 "sql.c"
|
|
break;
|
|
case 165: /* cmd ::= DROP STABLE exists_opt full_table_name */
|
|
#line 330 "sql.y"
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy345, yymsp[0].minor.yy348); }
|
|
#line 5882 "sql.c"
|
|
break;
|
|
case 166: /* cmd ::= ALTER TABLE alter_table_clause */
|
|
case 389: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==389);
|
|
case 390: /* cmd ::= insert_query */ yytestcase(yyruleno==390);
|
|
#line 332 "sql.y"
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy348; }
|
|
#line 5889 "sql.c"
|
|
break;
|
|
case 167: /* cmd ::= ALTER STABLE alter_table_clause */
|
|
#line 333 "sql.y"
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy348); }
|
|
#line 5894 "sql.c"
|
|
break;
|
|
case 168: /* alter_table_clause ::= full_table_name alter_table_options */
|
|
#line 335 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 5899 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 169: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
#line 337 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy348, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy269, yymsp[0].minor.yy720); }
|
|
#line 5905 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 170: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
#line 338 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy348, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy269); }
|
|
#line 5911 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 171: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
#line 340 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy348, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy269, yymsp[0].minor.yy720); }
|
|
#line 5917 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 172: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
#line 342 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy348, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy269, &yymsp[0].minor.yy269); }
|
|
#line 5923 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 173: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
#line 344 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy348, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy269, yymsp[0].minor.yy720); }
|
|
#line 5929 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 174: /* alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
#line 345 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy348, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy269); }
|
|
#line 5935 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 175: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
#line 347 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy348, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy269, yymsp[0].minor.yy720); }
|
|
#line 5941 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 176: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
#line 349 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy348, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy269, &yymsp[0].minor.yy269); }
|
|
#line 5947 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 177: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
#line 351 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy348, &yymsp[-2].minor.yy269, yymsp[0].minor.yy348); }
|
|
#line 5953 "sql.c"
|
|
yymsp[-5].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 179: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
case 490: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==490);
|
|
#line 356 "sql.y"
|
|
{ yylhsminor.yy860 = addNodeToList(pCxt, yymsp[-1].minor.yy860, yymsp[0].minor.yy348); }
|
|
#line 5960 "sql.c"
|
|
yymsp[-1].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 180: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
#line 360 "sql.y"
|
|
{ yylhsminor.yy348 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy345, yymsp[-8].minor.yy348, yymsp[-6].minor.yy348, yymsp[-5].minor.yy860, yymsp[-2].minor.yy860, yymsp[0].minor.yy348); }
|
|
#line 5966 "sql.c"
|
|
yymsp[-9].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 183: /* drop_table_clause ::= exists_opt full_table_name */
|
|
#line 367 "sql.y"
|
|
{ yylhsminor.yy348 = createDropTableClause(pCxt, yymsp[-1].minor.yy345, yymsp[0].minor.yy348); }
|
|
#line 5972 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 185: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
case 359: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==359);
|
|
#line 372 "sql.y"
|
|
{ yymsp[-2].minor.yy860 = yymsp[-1].minor.yy860; }
|
|
#line 5979 "sql.c"
|
|
break;
|
|
case 186: /* full_table_name ::= table_name */
|
|
#line 374 "sql.y"
|
|
{ yylhsminor.yy348 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy269, NULL); }
|
|
#line 5984 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 187: /* full_table_name ::= db_name NK_DOT table_name */
|
|
#line 375 "sql.y"
|
|
{ yylhsminor.yy348 = createRealTableNode(pCxt, &yymsp[-2].minor.yy269, &yymsp[0].minor.yy269, NULL); }
|
|
#line 5990 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 190: /* column_def ::= column_name type_name */
|
|
#line 382 "sql.y"
|
|
{ yylhsminor.yy348 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy269, yymsp[0].minor.yy720, NULL); }
|
|
#line 5996 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 191: /* type_name ::= BOOL */
|
|
#line 387 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_BOOL); }
|
|
#line 6002 "sql.c"
|
|
break;
|
|
case 192: /* type_name ::= TINYINT */
|
|
#line 388 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_TINYINT); }
|
|
#line 6007 "sql.c"
|
|
break;
|
|
case 193: /* type_name ::= SMALLINT */
|
|
#line 389 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
|
|
#line 6012 "sql.c"
|
|
break;
|
|
case 194: /* type_name ::= INT */
|
|
case 195: /* type_name ::= INTEGER */ yytestcase(yyruleno==195);
|
|
#line 390 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_INT); }
|
|
#line 6018 "sql.c"
|
|
break;
|
|
case 196: /* type_name ::= BIGINT */
|
|
#line 392 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_BIGINT); }
|
|
#line 6023 "sql.c"
|
|
break;
|
|
case 197: /* type_name ::= FLOAT */
|
|
#line 393 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_FLOAT); }
|
|
#line 6028 "sql.c"
|
|
break;
|
|
case 198: /* type_name ::= DOUBLE */
|
|
#line 394 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
|
|
#line 6033 "sql.c"
|
|
break;
|
|
case 199: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
#line 395 "sql.y"
|
|
{ yymsp[-3].minor.yy720 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
|
|
#line 6038 "sql.c"
|
|
break;
|
|
case 200: /* type_name ::= TIMESTAMP */
|
|
#line 396 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
|
|
#line 6043 "sql.c"
|
|
break;
|
|
case 201: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
#line 397 "sql.y"
|
|
{ yymsp[-3].minor.yy720 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
|
|
#line 6048 "sql.c"
|
|
break;
|
|
case 202: /* type_name ::= TINYINT UNSIGNED */
|
|
#line 398 "sql.y"
|
|
{ yymsp[-1].minor.yy720 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
|
|
#line 6053 "sql.c"
|
|
break;
|
|
case 203: /* type_name ::= SMALLINT UNSIGNED */
|
|
#line 399 "sql.y"
|
|
{ yymsp[-1].minor.yy720 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
|
|
#line 6058 "sql.c"
|
|
break;
|
|
case 204: /* type_name ::= INT UNSIGNED */
|
|
#line 400 "sql.y"
|
|
{ yymsp[-1].minor.yy720 = createDataType(TSDB_DATA_TYPE_UINT); }
|
|
#line 6063 "sql.c"
|
|
break;
|
|
case 205: /* type_name ::= BIGINT UNSIGNED */
|
|
#line 401 "sql.y"
|
|
{ yymsp[-1].minor.yy720 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
|
|
#line 6068 "sql.c"
|
|
break;
|
|
case 206: /* type_name ::= JSON */
|
|
#line 402 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_JSON); }
|
|
#line 6073 "sql.c"
|
|
break;
|
|
case 207: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
#line 403 "sql.y"
|
|
{ yymsp[-3].minor.yy720 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
|
|
#line 6078 "sql.c"
|
|
break;
|
|
case 208: /* type_name ::= MEDIUMBLOB */
|
|
#line 404 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
|
|
#line 6083 "sql.c"
|
|
break;
|
|
case 209: /* type_name ::= BLOB */
|
|
#line 405 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_BLOB); }
|
|
#line 6088 "sql.c"
|
|
break;
|
|
case 210: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
#line 406 "sql.y"
|
|
{ yymsp[-3].minor.yy720 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
|
|
#line 6093 "sql.c"
|
|
break;
|
|
case 211: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
#line 407 "sql.y"
|
|
{ yymsp[-3].minor.yy720 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
|
|
#line 6098 "sql.c"
|
|
break;
|
|
case 212: /* type_name ::= DECIMAL */
|
|
#line 408 "sql.y"
|
|
{ yymsp[0].minor.yy720 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
#line 6103 "sql.c"
|
|
break;
|
|
case 213: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
#line 409 "sql.y"
|
|
{ yymsp[-3].minor.yy720 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
#line 6108 "sql.c"
|
|
break;
|
|
case 214: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
#line 410 "sql.y"
|
|
{ yymsp[-5].minor.yy720 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
#line 6113 "sql.c"
|
|
break;
|
|
case 217: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
case 362: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==362);
|
|
#line 419 "sql.y"
|
|
{ yymsp[-3].minor.yy860 = yymsp[-1].minor.yy860; }
|
|
#line 6119 "sql.c"
|
|
break;
|
|
case 218: /* table_options ::= */
|
|
#line 421 "sql.y"
|
|
{ yymsp[1].minor.yy348 = createDefaultTableOptions(pCxt); }
|
|
#line 6124 "sql.c"
|
|
break;
|
|
case 219: /* table_options ::= table_options COMMENT NK_STRING */
|
|
#line 422 "sql.y"
|
|
{ yylhsminor.yy348 = setTableOption(pCxt, yymsp[-2].minor.yy348, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
#line 6129 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 220: /* table_options ::= table_options MAX_DELAY duration_list */
|
|
#line 423 "sql.y"
|
|
{ yylhsminor.yy348 = setTableOption(pCxt, yymsp[-2].minor.yy348, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy860); }
|
|
#line 6135 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 221: /* table_options ::= table_options WATERMARK duration_list */
|
|
#line 424 "sql.y"
|
|
{ yylhsminor.yy348 = setTableOption(pCxt, yymsp[-2].minor.yy348, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy860); }
|
|
#line 6141 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 222: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
#line 425 "sql.y"
|
|
{ yylhsminor.yy348 = setTableOption(pCxt, yymsp[-4].minor.yy348, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy860); }
|
|
#line 6147 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 223: /* table_options ::= table_options TTL NK_INTEGER */
|
|
#line 426 "sql.y"
|
|
{ yylhsminor.yy348 = setTableOption(pCxt, yymsp[-2].minor.yy348, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
#line 6153 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 224: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
#line 427 "sql.y"
|
|
{ yylhsminor.yy348 = setTableOption(pCxt, yymsp[-4].minor.yy348, TABLE_OPTION_SMA, yymsp[-1].minor.yy860); }
|
|
#line 6159 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 225: /* table_options ::= table_options DELETE_MARK duration_list */
|
|
#line 428 "sql.y"
|
|
{ yylhsminor.yy348 = setTableOption(pCxt, yymsp[-2].minor.yy348, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy860); }
|
|
#line 6165 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 226: /* alter_table_options ::= alter_table_option */
|
|
#line 430 "sql.y"
|
|
{ yylhsminor.yy348 = createAlterTableOptions(pCxt); yylhsminor.yy348 = setTableOption(pCxt, yylhsminor.yy348, yymsp[0].minor.yy233.type, &yymsp[0].minor.yy233.val); }
|
|
#line 6171 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 227: /* alter_table_options ::= alter_table_options alter_table_option */
|
|
#line 431 "sql.y"
|
|
{ yylhsminor.yy348 = setTableOption(pCxt, yymsp[-1].minor.yy348, yymsp[0].minor.yy233.type, &yymsp[0].minor.yy233.val); }
|
|
#line 6177 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 228: /* alter_table_option ::= COMMENT NK_STRING */
|
|
#line 435 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 6183 "sql.c"
|
|
break;
|
|
case 229: /* alter_table_option ::= TTL NK_INTEGER */
|
|
#line 436 "sql.y"
|
|
{ yymsp[-1].minor.yy233.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; }
|
|
#line 6188 "sql.c"
|
|
break;
|
|
case 230: /* duration_list ::= duration_literal */
|
|
case 446: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==446);
|
|
#line 440 "sql.y"
|
|
{ yylhsminor.yy860 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy348)); }
|
|
#line 6194 "sql.c"
|
|
yymsp[0].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 231: /* duration_list ::= duration_list NK_COMMA duration_literal */
|
|
case 447: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==447);
|
|
#line 441 "sql.y"
|
|
{ yylhsminor.yy860 = addNodeToList(pCxt, yymsp[-2].minor.yy860, releaseRawExprNode(pCxt, yymsp[0].minor.yy348)); }
|
|
#line 6201 "sql.c"
|
|
yymsp[-2].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 234: /* rollup_func_name ::= function_name */
|
|
#line 448 "sql.y"
|
|
{ yylhsminor.yy348 = createFunctionNode(pCxt, &yymsp[0].minor.yy269, NULL); }
|
|
#line 6207 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 235: /* rollup_func_name ::= FIRST */
|
|
case 236: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==236);
|
|
case 300: /* tag_item ::= QTAGS */ yytestcase(yyruleno==300);
|
|
#line 449 "sql.y"
|
|
{ yylhsminor.yy348 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6215 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 239: /* col_name ::= column_name */
|
|
case 301: /* tag_item ::= column_name */ yytestcase(yyruleno==301);
|
|
#line 457 "sql.y"
|
|
{ yylhsminor.yy348 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy269); }
|
|
#line 6222 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 240: /* cmd ::= SHOW DNODES */
|
|
#line 460 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
|
|
#line 6228 "sql.c"
|
|
break;
|
|
case 241: /* cmd ::= SHOW USERS */
|
|
#line 461 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
|
|
#line 6233 "sql.c"
|
|
break;
|
|
case 242: /* cmd ::= SHOW USER PRIVILEGES */
|
|
#line 462 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
|
|
#line 6238 "sql.c"
|
|
break;
|
|
case 243: /* cmd ::= SHOW db_kind_opt DATABASES */
|
|
#line 463 "sql.y"
|
|
{
|
|
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
|
|
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy361);
|
|
}
|
|
#line 6246 "sql.c"
|
|
break;
|
|
case 244: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
#line 467 "sql.y"
|
|
{
|
|
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy749, yymsp[0].minor.yy348, OP_TYPE_LIKE);
|
|
}
|
|
#line 6253 "sql.c"
|
|
break;
|
|
case 245: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
#line 470 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy348, yymsp[0].minor.yy348, OP_TYPE_LIKE); }
|
|
#line 6258 "sql.c"
|
|
break;
|
|
case 246: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
#line 471 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy348, NULL, OP_TYPE_LIKE); }
|
|
#line 6263 "sql.c"
|
|
break;
|
|
case 247: /* cmd ::= SHOW MNODES */
|
|
#line 472 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
|
#line 6268 "sql.c"
|
|
break;
|
|
case 248: /* cmd ::= SHOW QNODES */
|
|
#line 474 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
|
#line 6273 "sql.c"
|
|
break;
|
|
case 249: /* cmd ::= SHOW FUNCTIONS */
|
|
#line 475 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
|
#line 6278 "sql.c"
|
|
break;
|
|
case 250: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
#line 476 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy348, yymsp[-1].minor.yy348, OP_TYPE_EQUAL); }
|
|
#line 6283 "sql.c"
|
|
break;
|
|
case 251: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
#line 477 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy269), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy269), OP_TYPE_EQUAL); }
|
|
#line 6288 "sql.c"
|
|
break;
|
|
case 252: /* cmd ::= SHOW STREAMS */
|
|
#line 478 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
|
|
#line 6293 "sql.c"
|
|
break;
|
|
case 253: /* cmd ::= SHOW ACCOUNTS */
|
|
#line 479 "sql.y"
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
#line 6298 "sql.c"
|
|
break;
|
|
case 254: /* cmd ::= SHOW APPS */
|
|
#line 480 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
|
#line 6303 "sql.c"
|
|
break;
|
|
case 255: /* cmd ::= SHOW CONNECTIONS */
|
|
#line 481 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
|
#line 6308 "sql.c"
|
|
break;
|
|
case 256: /* cmd ::= SHOW LICENCES */
|
|
case 257: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==257);
|
|
#line 482 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
|
|
#line 6314 "sql.c"
|
|
break;
|
|
case 258: /* cmd ::= SHOW CREATE DATABASE db_name */
|
|
#line 484 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy269); }
|
|
#line 6319 "sql.c"
|
|
break;
|
|
case 259: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
|
#line 485 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy348); }
|
|
#line 6324 "sql.c"
|
|
break;
|
|
case 260: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
|
#line 486 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy348); }
|
|
#line 6329 "sql.c"
|
|
break;
|
|
case 261: /* cmd ::= SHOW QUERIES */
|
|
#line 487 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
|
#line 6334 "sql.c"
|
|
break;
|
|
case 262: /* cmd ::= SHOW SCORES */
|
|
#line 488 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
|
#line 6339 "sql.c"
|
|
break;
|
|
case 263: /* cmd ::= SHOW TOPICS */
|
|
#line 489 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
|
#line 6344 "sql.c"
|
|
break;
|
|
case 264: /* cmd ::= SHOW VARIABLES */
|
|
case 265: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==265);
|
|
#line 490 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
|
|
#line 6350 "sql.c"
|
|
break;
|
|
case 266: /* cmd ::= SHOW LOCAL VARIABLES */
|
|
#line 492 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
|
|
#line 6355 "sql.c"
|
|
break;
|
|
case 267: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
#line 493 "sql.y"
|
|
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy348); }
|
|
#line 6360 "sql.c"
|
|
break;
|
|
case 268: /* cmd ::= SHOW BNODES */
|
|
#line 494 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
|
#line 6365 "sql.c"
|
|
break;
|
|
case 269: /* cmd ::= SHOW SNODES */
|
|
#line 495 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
|
#line 6370 "sql.c"
|
|
break;
|
|
case 270: /* cmd ::= SHOW CLUSTER */
|
|
#line 496 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
|
|
#line 6375 "sql.c"
|
|
break;
|
|
case 271: /* cmd ::= SHOW TRANSACTIONS */
|
|
#line 497 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
|
|
#line 6380 "sql.c"
|
|
break;
|
|
case 272: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
#line 498 "sql.y"
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy348); }
|
|
#line 6385 "sql.c"
|
|
break;
|
|
case 273: /* cmd ::= SHOW CONSUMERS */
|
|
#line 499 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
|
|
#line 6390 "sql.c"
|
|
break;
|
|
case 274: /* cmd ::= SHOW SUBSCRIPTIONS */
|
|
#line 500 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
|
|
#line 6395 "sql.c"
|
|
break;
|
|
case 275: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
#line 501 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy348, yymsp[-1].minor.yy348, OP_TYPE_EQUAL); }
|
|
#line 6400 "sql.c"
|
|
break;
|
|
case 276: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
#line 502 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy269), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy269), OP_TYPE_EQUAL); }
|
|
#line 6405 "sql.c"
|
|
break;
|
|
case 277: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
#line 503 "sql.y"
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy348, yymsp[0].minor.yy348, yymsp[-3].minor.yy860); }
|
|
#line 6410 "sql.c"
|
|
break;
|
|
case 278: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
#line 504 "sql.y"
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy269), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy269), yymsp[-4].minor.yy860); }
|
|
#line 6415 "sql.c"
|
|
break;
|
|
case 279: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
#line 505 "sql.y"
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
|
|
#line 6420 "sql.c"
|
|
break;
|
|
case 280: /* cmd ::= SHOW VNODES */
|
|
#line 506 "sql.y"
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
|
|
#line 6425 "sql.c"
|
|
break;
|
|
case 281: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
#line 508 "sql.y"
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy348, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
|
#line 6430 "sql.c"
|
|
break;
|
|
case 282: /* cmd ::= SHOW CLUSTER ALIVE */
|
|
#line 509 "sql.y"
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
|
#line 6435 "sql.c"
|
|
break;
|
|
case 283: /* table_kind_db_name_cond_opt ::= */
|
|
#line 513 "sql.y"
|
|
{ yymsp[1].minor.yy749.kind = SHOW_KIND_ALL; yymsp[1].minor.yy749.dbName = nil_token; }
|
|
#line 6440 "sql.c"
|
|
break;
|
|
case 284: /* table_kind_db_name_cond_opt ::= table_kind */
|
|
#line 514 "sql.y"
|
|
{ yylhsminor.yy749.kind = yymsp[0].minor.yy361; yylhsminor.yy749.dbName = nil_token; }
|
|
#line 6445 "sql.c"
|
|
yymsp[0].minor.yy749 = yylhsminor.yy749;
|
|
break;
|
|
case 285: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
#line 515 "sql.y"
|
|
{ yylhsminor.yy749.kind = SHOW_KIND_ALL; yylhsminor.yy749.dbName = yymsp[-1].minor.yy269; }
|
|
#line 6451 "sql.c"
|
|
yymsp[-1].minor.yy749 = yylhsminor.yy749;
|
|
break;
|
|
case 286: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
#line 516 "sql.y"
|
|
{ yylhsminor.yy749.kind = yymsp[-2].minor.yy361; yylhsminor.yy749.dbName = yymsp[-1].minor.yy269; }
|
|
#line 6457 "sql.c"
|
|
yymsp[-2].minor.yy749 = yylhsminor.yy749;
|
|
break;
|
|
case 287: /* table_kind ::= NORMAL */
|
|
#line 520 "sql.y"
|
|
{ yymsp[0].minor.yy361 = SHOW_KIND_TABLES_NORMAL; }
|
|
#line 6463 "sql.c"
|
|
break;
|
|
case 288: /* table_kind ::= CHILD */
|
|
#line 521 "sql.y"
|
|
{ yymsp[0].minor.yy361 = SHOW_KIND_TABLES_CHILD; }
|
|
#line 6468 "sql.c"
|
|
break;
|
|
case 289: /* db_name_cond_opt ::= */
|
|
case 294: /* from_db_opt ::= */ yytestcase(yyruleno==294);
|
|
#line 523 "sql.y"
|
|
{ yymsp[1].minor.yy348 = createDefaultDatabaseCondValue(pCxt); }
|
|
#line 6474 "sql.c"
|
|
break;
|
|
case 290: /* db_name_cond_opt ::= db_name NK_DOT */
|
|
#line 524 "sql.y"
|
|
{ yylhsminor.yy348 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy269); }
|
|
#line 6479 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 292: /* like_pattern_opt ::= LIKE NK_STRING */
|
|
#line 527 "sql.y"
|
|
{ yymsp[-1].minor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
#line 6485 "sql.c"
|
|
break;
|
|
case 293: /* table_name_cond ::= table_name */
|
|
#line 529 "sql.y"
|
|
{ yylhsminor.yy348 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy269); }
|
|
#line 6490 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 295: /* from_db_opt ::= FROM db_name */
|
|
#line 532 "sql.y"
|
|
{ yymsp[-1].minor.yy348 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy269); }
|
|
#line 6496 "sql.c"
|
|
break;
|
|
case 299: /* tag_item ::= TBNAME */
|
|
#line 540 "sql.y"
|
|
{ yylhsminor.yy348 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
#line 6501 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 302: /* tag_item ::= column_name column_alias */
|
|
#line 543 "sql.y"
|
|
{ yylhsminor.yy348 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy269), &yymsp[0].minor.yy269); }
|
|
#line 6507 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 303: /* tag_item ::= column_name AS column_alias */
|
|
#line 544 "sql.y"
|
|
{ yylhsminor.yy348 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy269), &yymsp[0].minor.yy269); }
|
|
#line 6513 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 304: /* db_kind_opt ::= */
|
|
#line 548 "sql.y"
|
|
{ yymsp[1].minor.yy361 = SHOW_KIND_ALL; }
|
|
#line 6519 "sql.c"
|
|
break;
|
|
case 305: /* db_kind_opt ::= USER */
|
|
#line 549 "sql.y"
|
|
{ yymsp[0].minor.yy361 = SHOW_KIND_DATABASES_USER; }
|
|
#line 6524 "sql.c"
|
|
break;
|
|
case 306: /* db_kind_opt ::= SYSTEM */
|
|
#line 550 "sql.y"
|
|
{ yymsp[0].minor.yy361 = SHOW_KIND_DATABASES_SYSTEM; }
|
|
#line 6529 "sql.c"
|
|
break;
|
|
case 307: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
#line 554 "sql.y"
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy345, yymsp[-3].minor.yy348, yymsp[-1].minor.yy348, NULL, yymsp[0].minor.yy348); }
|
|
#line 6534 "sql.c"
|
|
break;
|
|
case 308: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
#line 556 "sql.y"
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy345, yymsp[-5].minor.yy348, yymsp[-3].minor.yy348, yymsp[-1].minor.yy860, NULL); }
|
|
#line 6539 "sql.c"
|
|
break;
|
|
case 309: /* cmd ::= DROP INDEX exists_opt full_index_name */
|
|
#line 557 "sql.y"
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy345, yymsp[0].minor.yy348); }
|
|
#line 6544 "sql.c"
|
|
break;
|
|
case 310: /* full_index_name ::= index_name */
|
|
#line 559 "sql.y"
|
|
{ yylhsminor.yy348 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy269); }
|
|
#line 6549 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 311: /* full_index_name ::= db_name NK_DOT index_name */
|
|
#line 560 "sql.y"
|
|
{ yylhsminor.yy348 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy269, &yymsp[0].minor.yy269); }
|
|
#line 6555 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 312: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
#line 563 "sql.y"
|
|
{ yymsp[-9].minor.yy348 = createIndexOption(pCxt, yymsp[-7].minor.yy860, releaseRawExprNode(pCxt, yymsp[-3].minor.yy348), NULL, yymsp[-1].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 6561 "sql.c"
|
|
break;
|
|
case 313: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
#line 566 "sql.y"
|
|
{ yymsp[-11].minor.yy348 = createIndexOption(pCxt, yymsp[-9].minor.yy860, releaseRawExprNode(pCxt, yymsp[-5].minor.yy348), releaseRawExprNode(pCxt, yymsp[-3].minor.yy348), yymsp[-1].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 6566 "sql.c"
|
|
break;
|
|
case 316: /* func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
#line 573 "sql.y"
|
|
{ yylhsminor.yy348 = createFunctionNode(pCxt, &yymsp[-3].minor.yy269, yymsp[-1].minor.yy860); }
|
|
#line 6571 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 317: /* sma_func_name ::= function_name */
|
|
case 533: /* alias_opt ::= table_alias */ yytestcase(yyruleno==533);
|
|
#line 577 "sql.y"
|
|
{ yylhsminor.yy269 = yymsp[0].minor.yy269; }
|
|
#line 6578 "sql.c"
|
|
yymsp[0].minor.yy269 = yylhsminor.yy269;
|
|
break;
|
|
case 322: /* sma_stream_opt ::= */
|
|
case 363: /* stream_options ::= */ yytestcase(yyruleno==363);
|
|
#line 583 "sql.y"
|
|
{ yymsp[1].minor.yy348 = createStreamOptions(pCxt); }
|
|
#line 6585 "sql.c"
|
|
break;
|
|
case 323: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
#line 584 "sql.y"
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy348)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy348); yylhsminor.yy348 = yymsp[-2].minor.yy348; }
|
|
#line 6590 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 324: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
#line 585 "sql.y"
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy348)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy348); yylhsminor.yy348 = yymsp[-2].minor.yy348; }
|
|
#line 6596 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 325: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
#line 586 "sql.y"
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy348)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy348); yylhsminor.yy348 = yymsp[-2].minor.yy348; }
|
|
#line 6602 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 326: /* with_meta ::= AS */
|
|
#line 591 "sql.y"
|
|
{ yymsp[0].minor.yy88 = 0; }
|
|
#line 6608 "sql.c"
|
|
break;
|
|
case 327: /* with_meta ::= WITH META AS */
|
|
#line 592 "sql.y"
|
|
{ yymsp[-2].minor.yy88 = 1; }
|
|
#line 6613 "sql.c"
|
|
break;
|
|
case 328: /* with_meta ::= ONLY META AS */
|
|
#line 593 "sql.y"
|
|
{ yymsp[-2].minor.yy88 = 2; }
|
|
#line 6618 "sql.c"
|
|
break;
|
|
case 329: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
#line 595 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy345, &yymsp[-2].minor.yy269, yymsp[0].minor.yy348); }
|
|
#line 6623 "sql.c"
|
|
break;
|
|
case 330: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
#line 597 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy345, &yymsp[-3].minor.yy269, &yymsp[0].minor.yy269, yymsp[-2].minor.yy88); }
|
|
#line 6628 "sql.c"
|
|
break;
|
|
case 331: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
#line 599 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy345, &yymsp[-4].minor.yy269, yymsp[-1].minor.yy348, yymsp[-3].minor.yy88, yymsp[0].minor.yy348); }
|
|
#line 6633 "sql.c"
|
|
break;
|
|
case 332: /* cmd ::= DROP TOPIC exists_opt topic_name */
|
|
#line 601 "sql.y"
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy269); }
|
|
#line 6638 "sql.c"
|
|
break;
|
|
case 333: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
#line 602 "sql.y"
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy345, &yymsp[-2].minor.yy269, &yymsp[0].minor.yy269); }
|
|
#line 6643 "sql.c"
|
|
break;
|
|
case 334: /* cmd ::= DESC full_table_name */
|
|
case 335: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==335);
|
|
#line 605 "sql.y"
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy348); }
|
|
#line 6649 "sql.c"
|
|
break;
|
|
case 336: /* cmd ::= RESET QUERY CACHE */
|
|
#line 609 "sql.y"
|
|
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
|
|
#line 6654 "sql.c"
|
|
break;
|
|
case 337: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
case 338: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==338);
|
|
#line 612 "sql.y"
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy345, yymsp[-1].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 6660 "sql.c"
|
|
break;
|
|
case 341: /* explain_options ::= */
|
|
#line 620 "sql.y"
|
|
{ yymsp[1].minor.yy348 = createDefaultExplainOptions(pCxt); }
|
|
#line 6665 "sql.c"
|
|
break;
|
|
case 342: /* explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
#line 621 "sql.y"
|
|
{ yylhsminor.yy348 = setExplainVerbose(pCxt, yymsp[-2].minor.yy348, &yymsp[0].minor.yy0); }
|
|
#line 6670 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 343: /* explain_options ::= explain_options RATIO NK_FLOAT */
|
|
#line 622 "sql.y"
|
|
{ yylhsminor.yy348 = setExplainRatio(pCxt, yymsp[-2].minor.yy348, &yymsp[0].minor.yy0); }
|
|
#line 6676 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 344: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
#line 627 "sql.y"
|
|
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy345, yymsp[-9].minor.yy345, &yymsp[-6].minor.yy269, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy720, yymsp[-1].minor.yy88, &yymsp[0].minor.yy269, yymsp[-10].minor.yy345); }
|
|
#line 6682 "sql.c"
|
|
break;
|
|
case 345: /* cmd ::= DROP FUNCTION exists_opt function_name */
|
|
#line 628 "sql.y"
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy269); }
|
|
#line 6687 "sql.c"
|
|
break;
|
|
case 350: /* language_opt ::= */
|
|
case 384: /* on_vgroup_id ::= */ yytestcase(yyruleno==384);
|
|
#line 642 "sql.y"
|
|
{ yymsp[1].minor.yy269 = nil_token; }
|
|
#line 6693 "sql.c"
|
|
break;
|
|
case 351: /* language_opt ::= LANGUAGE NK_STRING */
|
|
case 385: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==385);
|
|
#line 643 "sql.y"
|
|
{ yymsp[-1].minor.yy269 = yymsp[0].minor.yy0; }
|
|
#line 6699 "sql.c"
|
|
break;
|
|
case 354: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
|
|
#line 653 "sql.y"
|
|
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy345, &yymsp[-8].minor.yy269, yymsp[-5].minor.yy348, yymsp[-7].minor.yy348, yymsp[-3].minor.yy860, yymsp[-2].minor.yy348, yymsp[0].minor.yy348, yymsp[-4].minor.yy860); }
|
|
#line 6704 "sql.c"
|
|
break;
|
|
case 355: /* cmd ::= DROP STREAM exists_opt stream_name */
|
|
#line 654 "sql.y"
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy269); }
|
|
#line 6709 "sql.c"
|
|
break;
|
|
case 356: /* cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
#line 655 "sql.y"
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy269); }
|
|
#line 6714 "sql.c"
|
|
break;
|
|
case 357: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
#line 656 "sql.y"
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy345, yymsp[-1].minor.yy345, &yymsp[0].minor.yy269); }
|
|
#line 6719 "sql.c"
|
|
break;
|
|
case 364: /* stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
case 365: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==365);
|
|
#line 670 "sql.y"
|
|
{ yylhsminor.yy348 = setStreamOptions(pCxt, yymsp[-2].minor.yy348, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6725 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 366: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
#line 672 "sql.y"
|
|
{ yylhsminor.yy348 = setStreamOptions(pCxt, yymsp[-3].minor.yy348, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy348)); }
|
|
#line 6731 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 367: /* stream_options ::= stream_options WATERMARK duration_literal */
|
|
#line 673 "sql.y"
|
|
{ yylhsminor.yy348 = setStreamOptions(pCxt, yymsp[-2].minor.yy348, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy348)); }
|
|
#line 6737 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 368: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
#line 674 "sql.y"
|
|
{ yylhsminor.yy348 = setStreamOptions(pCxt, yymsp[-3].minor.yy348, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6743 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 369: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
#line 675 "sql.y"
|
|
{ yylhsminor.yy348 = setStreamOptions(pCxt, yymsp[-2].minor.yy348, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6749 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 370: /* stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
#line 676 "sql.y"
|
|
{ yylhsminor.yy348 = setStreamOptions(pCxt, yymsp[-2].minor.yy348, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy348)); }
|
|
#line 6755 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 371: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
#line 677 "sql.y"
|
|
{ yylhsminor.yy348 = setStreamOptions(pCxt, yymsp[-3].minor.yy348, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6761 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 373: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
case 571: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==571);
|
|
case 592: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==592);
|
|
#line 680 "sql.y"
|
|
{ yymsp[-3].minor.yy348 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy348); }
|
|
#line 6769 "sql.c"
|
|
break;
|
|
case 376: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
|
#line 688 "sql.y"
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
|
|
#line 6774 "sql.c"
|
|
break;
|
|
case 377: /* cmd ::= KILL QUERY NK_STRING */
|
|
#line 689 "sql.y"
|
|
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 6779 "sql.c"
|
|
break;
|
|
case 378: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
#line 690 "sql.y"
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
|
|
#line 6784 "sql.c"
|
|
break;
|
|
case 379: /* cmd ::= BALANCE VGROUP */
|
|
#line 693 "sql.y"
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
|
#line 6789 "sql.c"
|
|
break;
|
|
case 380: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
#line 694 "sql.y"
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy269); }
|
|
#line 6794 "sql.c"
|
|
break;
|
|
case 381: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
#line 695 "sql.y"
|
|
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 6799 "sql.c"
|
|
break;
|
|
case 382: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
#line 696 "sql.y"
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy860); }
|
|
#line 6804 "sql.c"
|
|
break;
|
|
case 383: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
#line 697 "sql.y"
|
|
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 6809 "sql.c"
|
|
break;
|
|
case 386: /* dnode_list ::= DNODE NK_INTEGER */
|
|
#line 706 "sql.y"
|
|
{ yymsp[-1].minor.yy860 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 6814 "sql.c"
|
|
break;
|
|
case 388: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
#line 713 "sql.y"
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 6819 "sql.c"
|
|
break;
|
|
case 391: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
#line 722 "sql.y"
|
|
{ yymsp[-6].minor.yy348 = createInsertStmt(pCxt, yymsp[-4].minor.yy348, yymsp[-2].minor.yy860, yymsp[0].minor.yy348); }
|
|
#line 6824 "sql.c"
|
|
break;
|
|
case 392: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
#line 723 "sql.y"
|
|
{ yymsp[-3].minor.yy348 = createInsertStmt(pCxt, yymsp[-1].minor.yy348, NULL, yymsp[0].minor.yy348); }
|
|
#line 6829 "sql.c"
|
|
break;
|
|
case 393: /* literal ::= NK_INTEGER */
|
|
#line 726 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 6834 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 394: /* literal ::= NK_FLOAT */
|
|
#line 727 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
#line 6840 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 395: /* literal ::= NK_STRING */
|
|
#line 728 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
#line 6846 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 396: /* literal ::= NK_BOOL */
|
|
#line 729 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
#line 6852 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 397: /* literal ::= TIMESTAMP NK_STRING */
|
|
#line 730 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
#line 6858 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 398: /* literal ::= duration_literal */
|
|
case 408: /* signed_literal ::= signed */ yytestcase(yyruleno==408);
|
|
case 429: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==429);
|
|
case 430: /* expression ::= literal */ yytestcase(yyruleno==430);
|
|
case 432: /* expression ::= column_reference */ yytestcase(yyruleno==432);
|
|
case 433: /* expression ::= function_expression */ yytestcase(yyruleno==433);
|
|
case 434: /* expression ::= case_when_expression */ yytestcase(yyruleno==434);
|
|
case 465: /* function_expression ::= literal_func */ yytestcase(yyruleno==465);
|
|
case 514: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==514);
|
|
case 518: /* boolean_primary ::= predicate */ yytestcase(yyruleno==518);
|
|
case 520: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==520);
|
|
case 521: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==521);
|
|
case 524: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==524);
|
|
case 526: /* table_reference ::= table_primary */ yytestcase(yyruleno==526);
|
|
case 527: /* table_reference ::= joined_table */ yytestcase(yyruleno==527);
|
|
case 531: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==531);
|
|
case 594: /* query_simple ::= query_specification */ yytestcase(yyruleno==594);
|
|
case 595: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==595);
|
|
case 598: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==598);
|
|
case 600: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==600);
|
|
#line 731 "sql.y"
|
|
{ yylhsminor.yy348 = yymsp[0].minor.yy348; }
|
|
#line 6883 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 399: /* literal ::= NULL */
|
|
#line 732 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
#line 6889 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 400: /* literal ::= NK_QUESTION */
|
|
#line 733 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 6895 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 401: /* duration_literal ::= NK_VARIABLE */
|
|
#line 735 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 6901 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 402: /* signed ::= NK_INTEGER */
|
|
#line 737 "sql.y"
|
|
{ yylhsminor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
#line 6907 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 403: /* signed ::= NK_PLUS NK_INTEGER */
|
|
#line 738 "sql.y"
|
|
{ yymsp[-1].minor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
#line 6913 "sql.c"
|
|
break;
|
|
case 404: /* signed ::= NK_MINUS NK_INTEGER */
|
|
#line 739 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
|
}
|
|
#line 6922 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 405: /* signed ::= NK_FLOAT */
|
|
#line 744 "sql.y"
|
|
{ yylhsminor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
#line 6928 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 406: /* signed ::= NK_PLUS NK_FLOAT */
|
|
#line 745 "sql.y"
|
|
{ yymsp[-1].minor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
#line 6934 "sql.c"
|
|
break;
|
|
case 407: /* signed ::= NK_MINUS NK_FLOAT */
|
|
#line 746 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
|
}
|
|
#line 6943 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 409: /* signed_literal ::= NK_STRING */
|
|
#line 753 "sql.y"
|
|
{ yylhsminor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
#line 6949 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 410: /* signed_literal ::= NK_BOOL */
|
|
#line 754 "sql.y"
|
|
{ yylhsminor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
#line 6955 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 411: /* signed_literal ::= TIMESTAMP NK_STRING */
|
|
#line 755 "sql.y"
|
|
{ yymsp[-1].minor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
#line 6961 "sql.c"
|
|
break;
|
|
case 412: /* signed_literal ::= duration_literal */
|
|
case 414: /* signed_literal ::= literal_func */ yytestcase(yyruleno==414);
|
|
case 485: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==485);
|
|
case 551: /* select_item ::= common_expression */ yytestcase(yyruleno==551);
|
|
case 561: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==561);
|
|
case 599: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==599);
|
|
case 601: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==601);
|
|
case 614: /* search_condition ::= common_expression */ yytestcase(yyruleno==614);
|
|
#line 756 "sql.y"
|
|
{ yylhsminor.yy348 = releaseRawExprNode(pCxt, yymsp[0].minor.yy348); }
|
|
#line 6973 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 413: /* signed_literal ::= NULL */
|
|
#line 757 "sql.y"
|
|
{ yylhsminor.yy348 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
#line 6979 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 415: /* signed_literal ::= NK_QUESTION */
|
|
#line 759 "sql.y"
|
|
{ yylhsminor.yy348 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 6985 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 431: /* expression ::= pseudo_column */
|
|
#line 816 "sql.y"
|
|
{ yylhsminor.yy348 = yymsp[0].minor.yy348; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy348, true); }
|
|
#line 6991 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 435: /* expression ::= NK_LP expression NK_RP */
|
|
case 519: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==519);
|
|
case 613: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==613);
|
|
#line 820 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy348)); }
|
|
#line 6999 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 436: /* expression ::= NK_PLUS expr_or_subquery */
|
|
#line 821 "sql.y"
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy348));
|
|
}
|
|
#line 7008 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 437: /* expression ::= NK_MINUS expr_or_subquery */
|
|
#line 825 "sql.y"
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy348), NULL));
|
|
}
|
|
#line 7017 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 438: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
#line 829 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7027 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 439: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
#line 834 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7037 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 440: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
#line 839 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7047 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 441: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
#line 844 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7057 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 442: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
#line 849 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7067 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 443: /* expression ::= column_reference NK_ARROW NK_STRING */
|
|
#line 854 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
|
}
|
|
#line 7076 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 444: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
#line 858 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7086 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 445: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
#line 863 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7096 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 448: /* column_reference ::= column_name */
|
|
#line 874 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNode(pCxt, &yymsp[0].minor.yy269, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy269)); }
|
|
#line 7102 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 449: /* column_reference ::= table_name NK_DOT column_name */
|
|
#line 875 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy269, &yymsp[0].minor.yy269, createColumnNode(pCxt, &yymsp[-2].minor.yy269, &yymsp[0].minor.yy269)); }
|
|
#line 7108 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 450: /* pseudo_column ::= ROWTS */
|
|
case 451: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==451);
|
|
case 453: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==453);
|
|
case 454: /* pseudo_column ::= QEND */ yytestcase(yyruleno==454);
|
|
case 455: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==455);
|
|
case 456: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==456);
|
|
case 457: /* pseudo_column ::= WEND */ yytestcase(yyruleno==457);
|
|
case 458: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==458);
|
|
case 459: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==459);
|
|
case 460: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==460);
|
|
case 461: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==461);
|
|
case 467: /* literal_func ::= NOW */ yytestcase(yyruleno==467);
|
|
#line 877 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
#line 7125 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 452: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
|
#line 879 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy269, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy269)))); }
|
|
#line 7131 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 462: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
case 463: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==463);
|
|
#line 890 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy269, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy269, yymsp[-1].minor.yy860)); }
|
|
#line 7138 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 464: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
#line 893 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy348), yymsp[-1].minor.yy720)); }
|
|
#line 7144 "sql.c"
|
|
yymsp[-5].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 466: /* literal_func ::= noarg_func NK_LP NK_RP */
|
|
#line 896 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy269, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy269, NULL)); }
|
|
#line 7150 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 481: /* star_func_para_list ::= NK_STAR */
|
|
#line 920 "sql.y"
|
|
{ yylhsminor.yy860 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
#line 7156 "sql.c"
|
|
yymsp[0].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 486: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
case 554: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==554);
|
|
#line 929 "sql.y"
|
|
{ yylhsminor.yy348 = createColumnNode(pCxt, &yymsp[-2].minor.yy269, &yymsp[0].minor.yy0); }
|
|
#line 7163 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 487: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
#line 932 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy860, yymsp[-1].minor.yy348)); }
|
|
#line 7169 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 488: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
#line 934 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy348), yymsp[-2].minor.yy860, yymsp[-1].minor.yy348)); }
|
|
#line 7175 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 491: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
#line 941 "sql.y"
|
|
{ yymsp[-3].minor.yy348 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)); }
|
|
#line 7181 "sql.c"
|
|
break;
|
|
case 493: /* case_when_else_opt ::= ELSE common_expression */
|
|
#line 944 "sql.y"
|
|
{ yymsp[-1].minor.yy348 = releaseRawExprNode(pCxt, yymsp[0].minor.yy348); }
|
|
#line 7186 "sql.c"
|
|
break;
|
|
case 494: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
case 499: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==499);
|
|
#line 947 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy696, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7196 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 495: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
#line 954 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy348), releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7206 "sql.c"
|
|
yymsp[-4].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 496: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
#line 960 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy348), releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7216 "sql.c"
|
|
yymsp[-5].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 497: /* predicate ::= expr_or_subquery IS NULL */
|
|
#line 965 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), NULL));
|
|
}
|
|
#line 7225 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 498: /* predicate ::= expr_or_subquery IS NOT NULL */
|
|
#line 969 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy348), NULL));
|
|
}
|
|
#line 7234 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 500: /* compare_op ::= NK_LT */
|
|
#line 981 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_LOWER_THAN; }
|
|
#line 7240 "sql.c"
|
|
break;
|
|
case 501: /* compare_op ::= NK_GT */
|
|
#line 982 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_GREATER_THAN; }
|
|
#line 7245 "sql.c"
|
|
break;
|
|
case 502: /* compare_op ::= NK_LE */
|
|
#line 983 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_LOWER_EQUAL; }
|
|
#line 7250 "sql.c"
|
|
break;
|
|
case 503: /* compare_op ::= NK_GE */
|
|
#line 984 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_GREATER_EQUAL; }
|
|
#line 7255 "sql.c"
|
|
break;
|
|
case 504: /* compare_op ::= NK_NE */
|
|
#line 985 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_NOT_EQUAL; }
|
|
#line 7260 "sql.c"
|
|
break;
|
|
case 505: /* compare_op ::= NK_EQ */
|
|
#line 986 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_EQUAL; }
|
|
#line 7265 "sql.c"
|
|
break;
|
|
case 506: /* compare_op ::= LIKE */
|
|
#line 987 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_LIKE; }
|
|
#line 7270 "sql.c"
|
|
break;
|
|
case 507: /* compare_op ::= NOT LIKE */
|
|
#line 988 "sql.y"
|
|
{ yymsp[-1].minor.yy696 = OP_TYPE_NOT_LIKE; }
|
|
#line 7275 "sql.c"
|
|
break;
|
|
case 508: /* compare_op ::= MATCH */
|
|
#line 989 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_MATCH; }
|
|
#line 7280 "sql.c"
|
|
break;
|
|
case 509: /* compare_op ::= NMATCH */
|
|
#line 990 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_NMATCH; }
|
|
#line 7285 "sql.c"
|
|
break;
|
|
case 510: /* compare_op ::= CONTAINS */
|
|
#line 991 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_JSON_CONTAINS; }
|
|
#line 7290 "sql.c"
|
|
break;
|
|
case 511: /* in_op ::= IN */
|
|
#line 995 "sql.y"
|
|
{ yymsp[0].minor.yy696 = OP_TYPE_IN; }
|
|
#line 7295 "sql.c"
|
|
break;
|
|
case 512: /* in_op ::= NOT IN */
|
|
#line 996 "sql.y"
|
|
{ yymsp[-1].minor.yy696 = OP_TYPE_NOT_IN; }
|
|
#line 7300 "sql.c"
|
|
break;
|
|
case 513: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
#line 998 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy860)); }
|
|
#line 7305 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 515: /* boolean_value_expression ::= NOT boolean_primary */
|
|
#line 1002 "sql.y"
|
|
{
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy348), NULL));
|
|
}
|
|
#line 7314 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 516: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
#line 1007 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7324 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 517: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
#line 1013 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy348);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy348);
|
|
yylhsminor.yy348 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), releaseRawExprNode(pCxt, yymsp[0].minor.yy348)));
|
|
}
|
|
#line 7334 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 525: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
#line 1031 "sql.y"
|
|
{ yylhsminor.yy348 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy348, yymsp[0].minor.yy348, NULL); }
|
|
#line 7340 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 528: /* table_primary ::= table_name alias_opt */
|
|
#line 1037 "sql.y"
|
|
{ yylhsminor.yy348 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy269, &yymsp[0].minor.yy269); }
|
|
#line 7346 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 529: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
#line 1038 "sql.y"
|
|
{ yylhsminor.yy348 = createRealTableNode(pCxt, &yymsp[-3].minor.yy269, &yymsp[-1].minor.yy269, &yymsp[0].minor.yy269); }
|
|
#line 7352 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 530: /* table_primary ::= subquery alias_opt */
|
|
#line 1039 "sql.y"
|
|
{ yylhsminor.yy348 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy348), &yymsp[0].minor.yy269); }
|
|
#line 7358 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 532: /* alias_opt ::= */
|
|
#line 1044 "sql.y"
|
|
{ yymsp[1].minor.yy269 = nil_token; }
|
|
#line 7364 "sql.c"
|
|
break;
|
|
case 534: /* alias_opt ::= AS table_alias */
|
|
#line 1046 "sql.y"
|
|
{ yymsp[-1].minor.yy269 = yymsp[0].minor.yy269; }
|
|
#line 7369 "sql.c"
|
|
break;
|
|
case 535: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
case 536: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==536);
|
|
#line 1048 "sql.y"
|
|
{ yymsp[-2].minor.yy348 = yymsp[-1].minor.yy348; }
|
|
#line 7375 "sql.c"
|
|
break;
|
|
case 537: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
#line 1053 "sql.y"
|
|
{ yylhsminor.yy348 = createJoinTableNode(pCxt, yymsp[-4].minor.yy184, yymsp[-5].minor.yy348, yymsp[-2].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 7380 "sql.c"
|
|
yymsp[-5].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 538: /* join_type ::= */
|
|
#line 1057 "sql.y"
|
|
{ yymsp[1].minor.yy184 = JOIN_TYPE_INNER; }
|
|
#line 7386 "sql.c"
|
|
break;
|
|
case 539: /* join_type ::= INNER */
|
|
#line 1058 "sql.y"
|
|
{ yymsp[0].minor.yy184 = JOIN_TYPE_INNER; }
|
|
#line 7391 "sql.c"
|
|
break;
|
|
case 540: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
#line 1064 "sql.y"
|
|
{
|
|
yymsp[-13].minor.yy348 = createSelectStmt(pCxt, yymsp[-11].minor.yy345, yymsp[-9].minor.yy860, yymsp[-8].minor.yy348, yymsp[-12].minor.yy860);
|
|
yymsp[-13].minor.yy348 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy348, yymsp[-10].minor.yy345);
|
|
yymsp[-13].minor.yy348 = addWhereClause(pCxt, yymsp[-13].minor.yy348, yymsp[-7].minor.yy348);
|
|
yymsp[-13].minor.yy348 = addPartitionByClause(pCxt, yymsp[-13].minor.yy348, yymsp[-6].minor.yy860);
|
|
yymsp[-13].minor.yy348 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy348, yymsp[-2].minor.yy348);
|
|
yymsp[-13].minor.yy348 = addGroupByClause(pCxt, yymsp[-13].minor.yy348, yymsp[-1].minor.yy860);
|
|
yymsp[-13].minor.yy348 = addHavingClause(pCxt, yymsp[-13].minor.yy348, yymsp[0].minor.yy348);
|
|
yymsp[-13].minor.yy348 = addRangeClause(pCxt, yymsp[-13].minor.yy348, yymsp[-5].minor.yy348);
|
|
yymsp[-13].minor.yy348 = addEveryClause(pCxt, yymsp[-13].minor.yy348, yymsp[-4].minor.yy348);
|
|
yymsp[-13].minor.yy348 = addFillClause(pCxt, yymsp[-13].minor.yy348, yymsp[-3].minor.yy348);
|
|
}
|
|
#line 7407 "sql.c"
|
|
break;
|
|
case 541: /* hint_list ::= */
|
|
#line 1079 "sql.y"
|
|
{ yymsp[1].minor.yy860 = createHintNodeList(pCxt, NULL); }
|
|
#line 7412 "sql.c"
|
|
break;
|
|
case 542: /* hint_list ::= NK_HINT */
|
|
#line 1080 "sql.y"
|
|
{ yylhsminor.yy860 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 7417 "sql.c"
|
|
yymsp[0].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 547: /* set_quantifier_opt ::= ALL */
|
|
#line 1091 "sql.y"
|
|
{ yymsp[0].minor.yy345 = false; }
|
|
#line 7423 "sql.c"
|
|
break;
|
|
case 550: /* select_item ::= NK_STAR */
|
|
#line 1098 "sql.y"
|
|
{ yylhsminor.yy348 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
#line 7428 "sql.c"
|
|
yymsp[0].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 552: /* select_item ::= common_expression column_alias */
|
|
case 562: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==562);
|
|
#line 1100 "sql.y"
|
|
{ yylhsminor.yy348 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy348), &yymsp[0].minor.yy269); }
|
|
#line 7435 "sql.c"
|
|
yymsp[-1].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 553: /* select_item ::= common_expression AS column_alias */
|
|
case 563: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==563);
|
|
#line 1101 "sql.y"
|
|
{ yylhsminor.yy348 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), &yymsp[0].minor.yy269); }
|
|
#line 7442 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 558: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
case 583: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==583);
|
|
case 603: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==603);
|
|
#line 1110 "sql.y"
|
|
{ yymsp[-2].minor.yy860 = yymsp[0].minor.yy860; }
|
|
#line 7450 "sql.c"
|
|
break;
|
|
case 565: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
#line 1123 "sql.y"
|
|
{ yymsp[-5].minor.yy348 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy348), releaseRawExprNode(pCxt, yymsp[-1].minor.yy348)); }
|
|
#line 7455 "sql.c"
|
|
break;
|
|
case 566: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
#line 1124 "sql.y"
|
|
{ yymsp[-3].minor.yy348 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy348)); }
|
|
#line 7460 "sql.c"
|
|
break;
|
|
case 567: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
#line 1126 "sql.y"
|
|
{ yymsp[-5].minor.yy348 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy348), NULL, yymsp[-1].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 7465 "sql.c"
|
|
break;
|
|
case 568: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
#line 1129 "sql.y"
|
|
{ yymsp[-7].minor.yy348 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy348), releaseRawExprNode(pCxt, yymsp[-3].minor.yy348), yymsp[-1].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 7470 "sql.c"
|
|
break;
|
|
case 569: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
#line 1131 "sql.y"
|
|
{ yymsp[-6].minor.yy348 = createEventWindowNode(pCxt, yymsp[-3].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 7475 "sql.c"
|
|
break;
|
|
case 573: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
#line 1137 "sql.y"
|
|
{ yymsp[-3].minor.yy348 = createFillNode(pCxt, yymsp[-1].minor.yy758, NULL); }
|
|
#line 7480 "sql.c"
|
|
break;
|
|
case 574: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
#line 1138 "sql.y"
|
|
{ yymsp[-5].minor.yy348 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy860)); }
|
|
#line 7485 "sql.c"
|
|
break;
|
|
case 575: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
#line 1139 "sql.y"
|
|
{ yymsp[-5].minor.yy348 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy860)); }
|
|
#line 7490 "sql.c"
|
|
break;
|
|
case 576: /* fill_mode ::= NONE */
|
|
#line 1143 "sql.y"
|
|
{ yymsp[0].minor.yy758 = FILL_MODE_NONE; }
|
|
#line 7495 "sql.c"
|
|
break;
|
|
case 577: /* fill_mode ::= PREV */
|
|
#line 1144 "sql.y"
|
|
{ yymsp[0].minor.yy758 = FILL_MODE_PREV; }
|
|
#line 7500 "sql.c"
|
|
break;
|
|
case 578: /* fill_mode ::= NULL */
|
|
#line 1145 "sql.y"
|
|
{ yymsp[0].minor.yy758 = FILL_MODE_NULL; }
|
|
#line 7505 "sql.c"
|
|
break;
|
|
case 579: /* fill_mode ::= NULL_F */
|
|
#line 1146 "sql.y"
|
|
{ yymsp[0].minor.yy758 = FILL_MODE_NULL_F; }
|
|
#line 7510 "sql.c"
|
|
break;
|
|
case 580: /* fill_mode ::= LINEAR */
|
|
#line 1147 "sql.y"
|
|
{ yymsp[0].minor.yy758 = FILL_MODE_LINEAR; }
|
|
#line 7515 "sql.c"
|
|
break;
|
|
case 581: /* fill_mode ::= NEXT */
|
|
#line 1148 "sql.y"
|
|
{ yymsp[0].minor.yy758 = FILL_MODE_NEXT; }
|
|
#line 7520 "sql.c"
|
|
break;
|
|
case 584: /* group_by_list ::= expr_or_subquery */
|
|
#line 1157 "sql.y"
|
|
{ yylhsminor.yy860 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy348))); }
|
|
#line 7525 "sql.c"
|
|
yymsp[0].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 585: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
#line 1158 "sql.y"
|
|
{ yylhsminor.yy860 = addNodeToList(pCxt, yymsp[-2].minor.yy860, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy348))); }
|
|
#line 7531 "sql.c"
|
|
yymsp[-2].minor.yy860 = yylhsminor.yy860;
|
|
break;
|
|
case 589: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
#line 1165 "sql.y"
|
|
{ yymsp[-5].minor.yy348 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy348), releaseRawExprNode(pCxt, yymsp[-1].minor.yy348)); }
|
|
#line 7537 "sql.c"
|
|
break;
|
|
case 590: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
#line 1167 "sql.y"
|
|
{ yymsp[-3].minor.yy348 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy348)); }
|
|
#line 7542 "sql.c"
|
|
break;
|
|
case 593: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
#line 1174 "sql.y"
|
|
{
|
|
yylhsminor.yy348 = addOrderByClause(pCxt, yymsp[-3].minor.yy348, yymsp[-2].minor.yy860);
|
|
yylhsminor.yy348 = addSlimitClause(pCxt, yylhsminor.yy348, yymsp[-1].minor.yy348);
|
|
yylhsminor.yy348 = addLimitClause(pCxt, yylhsminor.yy348, yymsp[0].minor.yy348);
|
|
}
|
|
#line 7551 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 596: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
#line 1184 "sql.y"
|
|
{ yylhsminor.yy348 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 7557 "sql.c"
|
|
yymsp[-3].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 597: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
#line 1186 "sql.y"
|
|
{ yylhsminor.yy348 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy348, yymsp[0].minor.yy348); }
|
|
#line 7563 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 605: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
case 609: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==609);
|
|
#line 1200 "sql.y"
|
|
{ yymsp[-1].minor.yy348 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 7570 "sql.c"
|
|
break;
|
|
case 606: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
case 610: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==610);
|
|
#line 1201 "sql.y"
|
|
{ yymsp[-3].minor.yy348 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 7576 "sql.c"
|
|
break;
|
|
case 607: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
case 611: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==611);
|
|
#line 1202 "sql.y"
|
|
{ yymsp[-3].minor.yy348 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
|
#line 7582 "sql.c"
|
|
break;
|
|
case 612: /* subquery ::= NK_LP query_expression NK_RP */
|
|
#line 1210 "sql.y"
|
|
{ yylhsminor.yy348 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy348); }
|
|
#line 7587 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 617: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
#line 1224 "sql.y"
|
|
{ yylhsminor.yy348 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy348), yymsp[-1].minor.yy870, yymsp[0].minor.yy841); }
|
|
#line 7593 "sql.c"
|
|
yymsp[-2].minor.yy348 = yylhsminor.yy348;
|
|
break;
|
|
case 618: /* ordering_specification_opt ::= */
|
|
#line 1228 "sql.y"
|
|
{ yymsp[1].minor.yy870 = ORDER_ASC; }
|
|
#line 7599 "sql.c"
|
|
break;
|
|
case 619: /* ordering_specification_opt ::= ASC */
|
|
#line 1229 "sql.y"
|
|
{ yymsp[0].minor.yy870 = ORDER_ASC; }
|
|
#line 7604 "sql.c"
|
|
break;
|
|
case 620: /* ordering_specification_opt ::= DESC */
|
|
#line 1230 "sql.y"
|
|
{ yymsp[0].minor.yy870 = ORDER_DESC; }
|
|
#line 7609 "sql.c"
|
|
break;
|
|
case 621: /* null_ordering_opt ::= */
|
|
#line 1234 "sql.y"
|
|
{ yymsp[1].minor.yy841 = NULL_ORDER_DEFAULT; }
|
|
#line 7614 "sql.c"
|
|
break;
|
|
case 622: /* null_ordering_opt ::= NULLS FIRST */
|
|
#line 1235 "sql.y"
|
|
{ yymsp[-1].minor.yy841 = NULL_ORDER_FIRST; }
|
|
#line 7619 "sql.c"
|
|
break;
|
|
case 623: /* null_ordering_opt ::= NULLS LAST */
|
|
#line 1236 "sql.y"
|
|
{ yymsp[-1].minor.yy841 = NULL_ORDER_LAST; }
|
|
#line 7624 "sql.c"
|
|
break;
|
|
default:
|
|
break;
|
|
/********** End reduce actions ************************************************/
|
|
};
|
|
assert( yyruleno<sizeof(yyRuleInfoLhs)/sizeof(yyRuleInfoLhs[0]) );
|
|
yygoto = yyRuleInfoLhs[yyruleno];
|
|
yysize = yyRuleInfoNRhs[yyruleno];
|
|
yyact = yy_find_reduce_action(yymsp[yysize].stateno,(YYCODETYPE)yygoto);
|
|
|
|
/* There are no SHIFTREDUCE actions on nonterminals because the table
|
|
** generator has simplified them to pure REDUCE actions. */
|
|
assert( !(yyact>YY_MAX_SHIFT && yyact<=YY_MAX_SHIFTREDUCE) );
|
|
|
|
/* It is not possible for a REDUCE to be followed by an error */
|
|
assert( yyact!=YY_ERROR_ACTION );
|
|
|
|
yymsp += yysize+1;
|
|
yypParser->yytos = yymsp;
|
|
yymsp->stateno = (YYACTIONTYPE)yyact;
|
|
yymsp->major = (YYCODETYPE)yygoto;
|
|
yyTraceShift(yypParser, yyact, "... then shift");
|
|
return yyact;
|
|
}
|
|
|
|
/*
|
|
** The following code executes when the parse fails
|
|
*/
|
|
#ifndef YYNOERRORRECOVERY
|
|
static void yy_parse_failed(
|
|
yyParser *yypParser /* The parser */
|
|
){
|
|
ParseARG_FETCH
|
|
ParseCTX_FETCH
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt);
|
|
}
|
|
#endif
|
|
while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
|
|
/* Here code is inserted which will be executed whenever the
|
|
** parser fails */
|
|
/************ Begin %parse_failure code ***************************************/
|
|
/************ End %parse_failure code *****************************************/
|
|
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
|
|
ParseCTX_STORE
|
|
}
|
|
#endif /* YYNOERRORRECOVERY */
|
|
|
|
/*
|
|
** The following code executes when a syntax error first occurs.
|
|
*/
|
|
static void yy_syntax_error(
|
|
yyParser *yypParser, /* The parser */
|
|
int yymajor, /* The major type of the error token */
|
|
ParseTOKENTYPE yyminor /* The minor type of the error token */
|
|
){
|
|
ParseARG_FETCH
|
|
ParseCTX_FETCH
|
|
#define TOKEN yyminor
|
|
/************ Begin %syntax_error code ****************************************/
|
|
#line 29 "sql.y"
|
|
|
|
if (TSDB_CODE_SUCCESS == pCxt->errCode) {
|
|
if(TOKEN.z) {
|
|
pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
|
|
} else {
|
|
pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL);
|
|
}
|
|
} else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) {
|
|
pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
|
|
}
|
|
#line 7697 "sql.c"
|
|
/************ End %syntax_error code ******************************************/
|
|
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
|
|
ParseCTX_STORE
|
|
}
|
|
|
|
/*
|
|
** The following is executed when the parser accepts
|
|
*/
|
|
static void yy_accept(
|
|
yyParser *yypParser /* The parser */
|
|
){
|
|
ParseARG_FETCH
|
|
ParseCTX_FETCH
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt);
|
|
}
|
|
#endif
|
|
#ifndef YYNOERRORRECOVERY
|
|
yypParser->yyerrcnt = -1;
|
|
#endif
|
|
assert( yypParser->yytos==yypParser->yystack );
|
|
/* Here code is inserted which will be executed whenever the
|
|
** parser accepts */
|
|
/*********** Begin %parse_accept code *****************************************/
|
|
/*********** End %parse_accept code *******************************************/
|
|
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
|
|
ParseCTX_STORE
|
|
}
|
|
|
|
/* The main parser program.
|
|
** The first argument is a pointer to a structure obtained from
|
|
** "ParseAlloc" which describes the current state of the parser.
|
|
** The second argument is the major token number. The third is
|
|
** the minor token. The fourth optional argument is whatever the
|
|
** user wants (and specified in the grammar) and is available for
|
|
** use by the action routines.
|
|
**
|
|
** Inputs:
|
|
** <ul>
|
|
** <li> A pointer to the parser (an opaque structure.)
|
|
** <li> The major token number.
|
|
** <li> The minor token number.
|
|
** <li> An option argument of a grammar-specified type.
|
|
** </ul>
|
|
**
|
|
** Outputs:
|
|
** None.
|
|
*/
|
|
void Parse(
|
|
void *yyp, /* The parser */
|
|
int yymajor, /* The major token code number */
|
|
ParseTOKENTYPE yyminor /* The value for the token */
|
|
ParseARG_PDECL /* Optional %extra_argument parameter */
|
|
){
|
|
YYMINORTYPE yyminorunion;
|
|
YYACTIONTYPE yyact; /* The parser action. */
|
|
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
|
|
int yyendofinput; /* True if we are at the end of input */
|
|
#endif
|
|
#ifdef YYERRORSYMBOL
|
|
int yyerrorhit = 0; /* True if yymajor has invoked an error */
|
|
#endif
|
|
yyParser *yypParser = (yyParser*)yyp; /* The parser */
|
|
ParseCTX_FETCH
|
|
ParseARG_STORE
|
|
|
|
assert( yypParser->yytos!=0 );
|
|
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
|
|
yyendofinput = (yymajor==0);
|
|
#endif
|
|
|
|
yyact = yypParser->yytos->stateno;
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
if( yyact < YY_MIN_REDUCE ){
|
|
fprintf(yyTraceFILE,"%sInput '%s' in state %d\n",
|
|
yyTracePrompt,yyTokenName[yymajor],yyact);
|
|
}else{
|
|
fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n",
|
|
yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
while(1){ /* Exit by "break" */
|
|
assert( yypParser->yytos>=yypParser->yystack );
|
|
assert( yyact==yypParser->yytos->stateno );
|
|
yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
|
|
if( yyact >= YY_MIN_REDUCE ){
|
|
unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */
|
|
#ifndef NDEBUG
|
|
assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) );
|
|
if( yyTraceFILE ){
|
|
int yysize = yyRuleInfoNRhs[yyruleno];
|
|
if( yysize ){
|
|
fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
|
|
yyTracePrompt,
|
|
yyruleno, yyRuleName[yyruleno],
|
|
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
|
|
yypParser->yytos[yysize].stateno);
|
|
}else{
|
|
fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
|
|
yyTracePrompt, yyruleno, yyRuleName[yyruleno],
|
|
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
|
|
}
|
|
}
|
|
#endif /* NDEBUG */
|
|
|
|
/* Check that the stack is large enough to grow by a single entry
|
|
** if the RHS of the rule is empty. This ensures that there is room
|
|
** enough on the stack to push the LHS value */
|
|
if( yyRuleInfoNRhs[yyruleno]==0 ){
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
|
|
yypParser->yyhwm++;
|
|
assert( yypParser->yyhwm ==
|
|
(int)(yypParser->yytos - yypParser->yystack));
|
|
}
|
|
#endif
|
|
#if YYSTACKDEPTH>0
|
|
if( yypParser->yytos>=yypParser->yystackEnd ){
|
|
yyStackOverflow(yypParser);
|
|
break;
|
|
}
|
|
#else
|
|
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
|
|
if( yyGrowStack(yypParser) ){
|
|
yyStackOverflow(yypParser);
|
|
break;
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
yyact = yy_reduce(yypParser,yyruleno,yymajor,yyminor ParseCTX_PARAM);
|
|
}else if( yyact <= YY_MAX_SHIFTREDUCE ){
|
|
yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor);
|
|
#ifndef YYNOERRORRECOVERY
|
|
yypParser->yyerrcnt--;
|
|
#endif
|
|
break;
|
|
}else if( yyact==YY_ACCEPT_ACTION ){
|
|
yypParser->yytos--;
|
|
yy_accept(yypParser);
|
|
return;
|
|
}else{
|
|
assert( yyact == YY_ERROR_ACTION );
|
|
yyminorunion.yy0 = yyminor;
|
|
#ifdef YYERRORSYMBOL
|
|
int yymx;
|
|
#endif
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt);
|
|
}
|
|
#endif
|
|
#ifdef YYERRORSYMBOL
|
|
/* A syntax error has occurred.
|
|
** The response to an error depends upon whether or not the
|
|
** grammar defines an error token "ERROR".
|
|
**
|
|
** This is what we do if the grammar does define ERROR:
|
|
**
|
|
** * Call the %syntax_error function.
|
|
**
|
|
** * Begin popping the stack until we enter a state where
|
|
** it is legal to shift the error symbol, then shift
|
|
** the error symbol.
|
|
**
|
|
** * Set the error count to three.
|
|
**
|
|
** * Begin accepting and shifting new tokens. No new error
|
|
** processing will occur until three tokens have been
|
|
** shifted successfully.
|
|
**
|
|
*/
|
|
if( yypParser->yyerrcnt<0 ){
|
|
yy_syntax_error(yypParser,yymajor,yyminor);
|
|
}
|
|
yymx = yypParser->yytos->major;
|
|
if( yymx==YYERRORSYMBOL || yyerrorhit ){
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sDiscard input token %s\n",
|
|
yyTracePrompt,yyTokenName[yymajor]);
|
|
}
|
|
#endif
|
|
yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion);
|
|
yymajor = YYNOCODE;
|
|
}else{
|
|
while( yypParser->yytos > yypParser->yystack ){
|
|
yyact = yy_find_reduce_action(yypParser->yytos->stateno,
|
|
YYERRORSYMBOL);
|
|
if( yyact<=YY_MAX_SHIFTREDUCE ) break;
|
|
yy_pop_parser_stack(yypParser);
|
|
}
|
|
if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){
|
|
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
|
|
yy_parse_failed(yypParser);
|
|
#ifndef YYNOERRORRECOVERY
|
|
yypParser->yyerrcnt = -1;
|
|
#endif
|
|
yymajor = YYNOCODE;
|
|
}else if( yymx!=YYERRORSYMBOL ){
|
|
yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor);
|
|
}
|
|
}
|
|
yypParser->yyerrcnt = 3;
|
|
yyerrorhit = 1;
|
|
if( yymajor==YYNOCODE ) break;
|
|
yyact = yypParser->yytos->stateno;
|
|
#elif defined(YYNOERRORRECOVERY)
|
|
/* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
|
|
** do any kind of error recovery. Instead, simply invoke the syntax
|
|
** error routine and continue going as if nothing had happened.
|
|
**
|
|
** Applications can set this macro (for example inside %include) if
|
|
** they intend to abandon the parse upon the first syntax error seen.
|
|
*/
|
|
yy_syntax_error(yypParser,yymajor, yyminor);
|
|
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
|
|
break;
|
|
#else /* YYERRORSYMBOL is not defined */
|
|
/* This is what we do if the grammar does not define ERROR:
|
|
**
|
|
** * Report an error message, and throw away the input token.
|
|
**
|
|
** * If the input token is $, then fail the parse.
|
|
**
|
|
** As before, subsequent error messages are suppressed until
|
|
** three input tokens have been successfully shifted.
|
|
*/
|
|
if( yypParser->yyerrcnt<=0 ){
|
|
yy_syntax_error(yypParser,yymajor, yyminor);
|
|
}
|
|
yypParser->yyerrcnt = 3;
|
|
yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
|
|
if( yyendofinput ){
|
|
yy_parse_failed(yypParser);
|
|
#ifndef YYNOERRORRECOVERY
|
|
yypParser->yyerrcnt = -1;
|
|
#endif
|
|
}
|
|
break;
|
|
#endif
|
|
}
|
|
}
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
yyStackEntry *i;
|
|
char cDiv = '[';
|
|
fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt);
|
|
for(i=&yypParser->yystack[1]; i<=yypParser->yytos; i++){
|
|
fprintf(yyTraceFILE,"%c%s", cDiv, yyTokenName[i->major]);
|
|
cDiv = ' ';
|
|
}
|
|
fprintf(yyTraceFILE,"]\n");
|
|
}
|
|
#endif
|
|
return;
|
|
}
|
|
|
|
/*
|
|
** Return the fallback token corresponding to canonical token iToken, or
|
|
** 0 if iToken has no fallback.
|
|
*/
|
|
int ParseFallback(int iToken){
|
|
#ifdef YYFALLBACK
|
|
assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
|
|
return yyFallback[iToken];
|
|
#else
|
|
(void)iToken;
|
|
return 0;
|
|
#endif
|
|
}
|