mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
7924 lines
379 KiB
C
7924 lines
379 KiB
C
/* This file is automatically generated by Lemon from input grammar
|
|
** source file "sql.y". */
|
|
/*
|
|
** 2000-05-29
|
|
**
|
|
** The author disclaims copyright to this source code. In place of
|
|
** a legal notice, here is a blessing:
|
|
**
|
|
** May you do good and not evil.
|
|
** May you find forgiveness for yourself and forgive others.
|
|
** May you share freely, never taking more than you give.
|
|
**
|
|
*************************************************************************
|
|
** Driver template for the LEMON parser generator.
|
|
**
|
|
** The "lemon" program processes an LALR(1) input grammar file, then uses
|
|
** this template to construct a parser. The "lemon" program inserts text
|
|
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
|
|
** interstitial "-" characters) contained in this template is changed into
|
|
** the value of the %name directive from the grammar. Otherwise, the content
|
|
** of this template is copied straight through into the generate parser
|
|
** source file.
|
|
**
|
|
** The following is the concatenation of all %include directives from the
|
|
** input grammar file:
|
|
*/
|
|
/************ Begin %include sections from the grammar ************************/
|
|
#line 11 "sql.y"
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
|
|
#define ALLOW_FORBID_FUNC
|
|
|
|
#include "functionMgt.h"
|
|
#include "nodes.h"
|
|
#include "parToken.h"
|
|
#include "ttokendef.h"
|
|
#include "parAst.h"
|
|
|
|
#define YYSTACKDEPTH 0
|
|
#line 46 "sql.c"
|
|
/**************** End of %include directives **********************************/
|
|
/* These constants specify the various numeric values for terminal symbols.
|
|
***************** Begin token definitions *************************************/
|
|
#ifndef TK_OR
|
|
#define TK_OR 1
|
|
#define TK_AND 2
|
|
#define TK_UNION 3
|
|
#define TK_ALL 4
|
|
#define TK_MINUS 5
|
|
#define TK_EXCEPT 6
|
|
#define TK_INTERSECT 7
|
|
#define TK_NK_BITAND 8
|
|
#define TK_NK_BITOR 9
|
|
#define TK_NK_LSHIFT 10
|
|
#define TK_NK_RSHIFT 11
|
|
#define TK_NK_PLUS 12
|
|
#define TK_NK_MINUS 13
|
|
#define TK_NK_STAR 14
|
|
#define TK_NK_SLASH 15
|
|
#define TK_NK_REM 16
|
|
#define TK_NK_CONCAT 17
|
|
#define TK_CREATE 18
|
|
#define TK_ACCOUNT 19
|
|
#define TK_NK_ID 20
|
|
#define TK_PASS 21
|
|
#define TK_NK_STRING 22
|
|
#define TK_ALTER 23
|
|
#define TK_PPS 24
|
|
#define TK_TSERIES 25
|
|
#define TK_STORAGE 26
|
|
#define TK_STREAMS 27
|
|
#define TK_QTIME 28
|
|
#define TK_DBS 29
|
|
#define TK_USERS 30
|
|
#define TK_CONNS 31
|
|
#define TK_STATE 32
|
|
#define TK_NK_COMMA 33
|
|
#define TK_HOST 34
|
|
#define TK_USER 35
|
|
#define TK_ENABLE 36
|
|
#define TK_NK_INTEGER 37
|
|
#define TK_SYSINFO 38
|
|
#define TK_ADD 39
|
|
#define TK_DROP 40
|
|
#define TK_GRANT 41
|
|
#define TK_ON 42
|
|
#define TK_TO 43
|
|
#define TK_REVOKE 44
|
|
#define TK_FROM 45
|
|
#define TK_SUBSCRIBE 46
|
|
#define TK_READ 47
|
|
#define TK_WRITE 48
|
|
#define TK_NK_DOT 49
|
|
#define TK_WITH 50
|
|
#define TK_DNODE 51
|
|
#define TK_PORT 52
|
|
#define TK_DNODES 53
|
|
#define TK_RESTORE 54
|
|
#define TK_NK_IPTOKEN 55
|
|
#define TK_FORCE 56
|
|
#define TK_UNSAFE 57
|
|
#define TK_LOCAL 58
|
|
#define TK_QNODE 59
|
|
#define TK_BNODE 60
|
|
#define TK_SNODE 61
|
|
#define TK_MNODE 62
|
|
#define TK_VNODE 63
|
|
#define TK_DATABASE 64
|
|
#define TK_USE 65
|
|
#define TK_FLUSH 66
|
|
#define TK_TRIM 67
|
|
#define TK_COMPACT 68
|
|
#define TK_IF 69
|
|
#define TK_NOT 70
|
|
#define TK_EXISTS 71
|
|
#define TK_BUFFER 72
|
|
#define TK_CACHEMODEL 73
|
|
#define TK_CACHESIZE 74
|
|
#define TK_COMP 75
|
|
#define TK_DURATION 76
|
|
#define TK_NK_VARIABLE 77
|
|
#define TK_MAXROWS 78
|
|
#define TK_MINROWS 79
|
|
#define TK_KEEP 80
|
|
#define TK_PAGES 81
|
|
#define TK_PAGESIZE 82
|
|
#define TK_TSDB_PAGESIZE 83
|
|
#define TK_PRECISION 84
|
|
#define TK_REPLICA 85
|
|
#define TK_VGROUPS 86
|
|
#define TK_SINGLE_STABLE 87
|
|
#define TK_RETENTIONS 88
|
|
#define TK_SCHEMALESS 89
|
|
#define TK_WAL_LEVEL 90
|
|
#define TK_WAL_FSYNC_PERIOD 91
|
|
#define TK_WAL_RETENTION_PERIOD 92
|
|
#define TK_WAL_RETENTION_SIZE 93
|
|
#define TK_WAL_ROLL_PERIOD 94
|
|
#define TK_WAL_SEGMENT_SIZE 95
|
|
#define TK_STT_TRIGGER 96
|
|
#define TK_TABLE_PREFIX 97
|
|
#define TK_TABLE_SUFFIX 98
|
|
#define TK_NK_COLON 99
|
|
#define TK_BWLIMIT 100
|
|
#define TK_START 101
|
|
#define TK_TIMESTAMP 102
|
|
#define TK_END 103
|
|
#define TK_TABLE 104
|
|
#define TK_NK_LP 105
|
|
#define TK_NK_RP 106
|
|
#define TK_STABLE 107
|
|
#define TK_COLUMN 108
|
|
#define TK_MODIFY 109
|
|
#define TK_RENAME 110
|
|
#define TK_TAG 111
|
|
#define TK_SET 112
|
|
#define TK_NK_EQ 113
|
|
#define TK_USING 114
|
|
#define TK_TAGS 115
|
|
#define TK_BOOL 116
|
|
#define TK_TINYINT 117
|
|
#define TK_SMALLINT 118
|
|
#define TK_INT 119
|
|
#define TK_INTEGER 120
|
|
#define TK_BIGINT 121
|
|
#define TK_FLOAT 122
|
|
#define TK_DOUBLE 123
|
|
#define TK_BINARY 124
|
|
#define TK_NCHAR 125
|
|
#define TK_UNSIGNED 126
|
|
#define TK_JSON 127
|
|
#define TK_VARCHAR 128
|
|
#define TK_MEDIUMBLOB 129
|
|
#define TK_BLOB 130
|
|
#define TK_VARBINARY 131
|
|
#define TK_GEOMETRY 132
|
|
#define TK_DECIMAL 133
|
|
#define TK_COMMENT 134
|
|
#define TK_MAX_DELAY 135
|
|
#define TK_WATERMARK 136
|
|
#define TK_ROLLUP 137
|
|
#define TK_TTL 138
|
|
#define TK_SMA 139
|
|
#define TK_DELETE_MARK 140
|
|
#define TK_FIRST 141
|
|
#define TK_LAST 142
|
|
#define TK_SHOW 143
|
|
#define TK_PRIVILEGES 144
|
|
#define TK_DATABASES 145
|
|
#define TK_TABLES 146
|
|
#define TK_STABLES 147
|
|
#define TK_MNODES 148
|
|
#define TK_QNODES 149
|
|
#define TK_FUNCTIONS 150
|
|
#define TK_INDEXES 151
|
|
#define TK_ACCOUNTS 152
|
|
#define TK_APPS 153
|
|
#define TK_CONNECTIONS 154
|
|
#define TK_LICENCES 155
|
|
#define TK_GRANTS 156
|
|
#define TK_QUERIES 157
|
|
#define TK_SCORES 158
|
|
#define TK_TOPICS 159
|
|
#define TK_VARIABLES 160
|
|
#define TK_CLUSTER 161
|
|
#define TK_BNODES 162
|
|
#define TK_SNODES 163
|
|
#define TK_TRANSACTIONS 164
|
|
#define TK_DISTRIBUTED 165
|
|
#define TK_CONSUMERS 166
|
|
#define TK_SUBSCRIPTIONS 167
|
|
#define TK_VNODES 168
|
|
#define TK_ALIVE 169
|
|
#define TK_NORMAL 170
|
|
#define TK_CHILD 171
|
|
#define TK_LIKE 172
|
|
#define TK_TBNAME 173
|
|
#define TK_QTAGS 174
|
|
#define TK_AS 175
|
|
#define TK_SYSTEM 176
|
|
#define TK_INDEX 177
|
|
#define TK_FUNCTION 178
|
|
#define TK_INTERVAL 179
|
|
#define TK_COUNT 180
|
|
#define TK_LAST_ROW 181
|
|
#define TK_META 182
|
|
#define TK_ONLY 183
|
|
#define TK_TOPIC 184
|
|
#define TK_CONSUMER 185
|
|
#define TK_GROUP 186
|
|
#define TK_DESC 187
|
|
#define TK_DESCRIBE 188
|
|
#define TK_RESET 189
|
|
#define TK_QUERY 190
|
|
#define TK_CACHE 191
|
|
#define TK_EXPLAIN 192
|
|
#define TK_ANALYZE 193
|
|
#define TK_VERBOSE 194
|
|
#define TK_NK_BOOL 195
|
|
#define TK_RATIO 196
|
|
#define TK_NK_FLOAT 197
|
|
#define TK_OUTPUTTYPE 198
|
|
#define TK_AGGREGATE 199
|
|
#define TK_BUFSIZE 200
|
|
#define TK_LANGUAGE 201
|
|
#define TK_REPLACE 202
|
|
#define TK_STREAM 203
|
|
#define TK_INTO 204
|
|
#define TK_PAUSE 205
|
|
#define TK_RESUME 206
|
|
#define TK_TRIGGER 207
|
|
#define TK_AT_ONCE 208
|
|
#define TK_WINDOW_CLOSE 209
|
|
#define TK_IGNORE 210
|
|
#define TK_EXPIRED 211
|
|
#define TK_FILL_HISTORY 212
|
|
#define TK_UPDATE 213
|
|
#define TK_SUBTABLE 214
|
|
#define TK_UNTREATED 215
|
|
#define TK_KILL 216
|
|
#define TK_CONNECTION 217
|
|
#define TK_TRANSACTION 218
|
|
#define TK_BALANCE 219
|
|
#define TK_VGROUP 220
|
|
#define TK_LEADER 221
|
|
#define TK_MERGE 222
|
|
#define TK_REDISTRIBUTE 223
|
|
#define TK_SPLIT 224
|
|
#define TK_DELETE 225
|
|
#define TK_INSERT 226
|
|
#define TK_NULL 227
|
|
#define TK_NK_QUESTION 228
|
|
#define TK_NK_ARROW 229
|
|
#define TK_ROWTS 230
|
|
#define TK_QSTART 231
|
|
#define TK_QEND 232
|
|
#define TK_QDURATION 233
|
|
#define TK_WSTART 234
|
|
#define TK_WEND 235
|
|
#define TK_WDURATION 236
|
|
#define TK_IROWTS 237
|
|
#define TK_ISFILLED 238
|
|
#define TK_CAST 239
|
|
#define TK_NOW 240
|
|
#define TK_TODAY 241
|
|
#define TK_TIMEZONE 242
|
|
#define TK_CLIENT_VERSION 243
|
|
#define TK_SERVER_VERSION 244
|
|
#define TK_SERVER_STATUS 245
|
|
#define TK_CURRENT_USER 246
|
|
#define TK_CASE 247
|
|
#define TK_WHEN 248
|
|
#define TK_THEN 249
|
|
#define TK_ELSE 250
|
|
#define TK_BETWEEN 251
|
|
#define TK_IS 252
|
|
#define TK_NK_LT 253
|
|
#define TK_NK_GT 254
|
|
#define TK_NK_LE 255
|
|
#define TK_NK_GE 256
|
|
#define TK_NK_NE 257
|
|
#define TK_MATCH 258
|
|
#define TK_NMATCH 259
|
|
#define TK_CONTAINS 260
|
|
#define TK_IN 261
|
|
#define TK_JOIN 262
|
|
#define TK_INNER 263
|
|
#define TK_SELECT 264
|
|
#define TK_NK_HINT 265
|
|
#define TK_DISTINCT 266
|
|
#define TK_WHERE 267
|
|
#define TK_PARTITION 268
|
|
#define TK_BY 269
|
|
#define TK_SESSION 270
|
|
#define TK_STATE_WINDOW 271
|
|
#define TK_EVENT_WINDOW 272
|
|
#define TK_SLIDING 273
|
|
#define TK_FILL 274
|
|
#define TK_VALUE 275
|
|
#define TK_VALUE_F 276
|
|
#define TK_NONE 277
|
|
#define TK_PREV 278
|
|
#define TK_NULL_F 279
|
|
#define TK_LINEAR 280
|
|
#define TK_NEXT 281
|
|
#define TK_HAVING 282
|
|
#define TK_RANGE 283
|
|
#define TK_EVERY 284
|
|
#define TK_ORDER 285
|
|
#define TK_SLIMIT 286
|
|
#define TK_SOFFSET 287
|
|
#define TK_LIMIT 288
|
|
#define TK_OFFSET 289
|
|
#define TK_ASC 290
|
|
#define TK_NULLS 291
|
|
#define TK_ABORT 292
|
|
#define TK_AFTER 293
|
|
#define TK_ATTACH 294
|
|
#define TK_BEFORE 295
|
|
#define TK_BEGIN 296
|
|
#define TK_BITAND 297
|
|
#define TK_BITNOT 298
|
|
#define TK_BITOR 299
|
|
#define TK_BLOCKS 300
|
|
#define TK_CHANGE 301
|
|
#define TK_COMMA 302
|
|
#define TK_CONCAT 303
|
|
#define TK_CONFLICT 304
|
|
#define TK_COPY 305
|
|
#define TK_DEFERRED 306
|
|
#define TK_DELIMITERS 307
|
|
#define TK_DETACH 308
|
|
#define TK_DIVIDE 309
|
|
#define TK_DOT 310
|
|
#define TK_EACH 311
|
|
#define TK_FAIL 312
|
|
#define TK_FILE 313
|
|
#define TK_FOR 314
|
|
#define TK_GLOB 315
|
|
#define TK_ID 316
|
|
#define TK_IMMEDIATE 317
|
|
#define TK_IMPORT 318
|
|
#define TK_INITIALLY 319
|
|
#define TK_INSTEAD 320
|
|
#define TK_ISNULL 321
|
|
#define TK_KEY 322
|
|
#define TK_MODULES 323
|
|
#define TK_NK_BITNOT 324
|
|
#define TK_NK_SEMI 325
|
|
#define TK_NOTNULL 326
|
|
#define TK_OF 327
|
|
#define TK_PLUS 328
|
|
#define TK_PRIVILEGE 329
|
|
#define TK_RAISE 330
|
|
#define TK_RESTRICT 331
|
|
#define TK_ROW 332
|
|
#define TK_SEMI 333
|
|
#define TK_STAR 334
|
|
#define TK_STATEMENT 335
|
|
#define TK_STRICT 336
|
|
#define TK_STRING 337
|
|
#define TK_TIMES 338
|
|
#define TK_VALUES 339
|
|
#define TK_VARIABLE 340
|
|
#define TK_VIEW 341
|
|
#define TK_WAL 342
|
|
#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 501
|
|
#define YYACTIONTYPE unsigned short int
|
|
#define ParseTOKENTYPE SToken
|
|
typedef union {
|
|
int yyinit;
|
|
ParseTOKENTYPE yy0;
|
|
SAlterOption yy29;
|
|
SNode* yy122;
|
|
SToken yy203;
|
|
SNodeList* yy298;
|
|
EFillMode yy312;
|
|
SShowTablesOption yy343;
|
|
STokenPair yy345;
|
|
SDataType yy388;
|
|
EOperatorType yy416;
|
|
EJoinType yy498;
|
|
EShowKind yy579;
|
|
EOrder yy626;
|
|
int32_t yy652;
|
|
int8_t yy797;
|
|
ENullOrder yy877;
|
|
bool yy983;
|
|
int64_t yy999;
|
|
} 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 816
|
|
#define YYNRULE 621
|
|
#define YYNRULE_WITH_ACTION 621
|
|
#define YYNTOKEN 343
|
|
#define YY_MAX_SHIFT 815
|
|
#define YY_MIN_SHIFTREDUCE 1206
|
|
#define YY_MAX_SHIFTREDUCE 1826
|
|
#define YY_ERROR_ACTION 1827
|
|
#define YY_ACCEPT_ACTION 1828
|
|
#define YY_NO_ACTION 1829
|
|
#define YY_MIN_REDUCE 1830
|
|
#define YY_MAX_REDUCE 2450
|
|
/************* 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 (3093)
|
|
static const YYACTIONTYPE yy_action[] = {
|
|
/* 0 */ 454, 2067, 171, 546, 1842, 453, 547, 1873, 389, 2003,
|
|
/* 10 */ 467, 2122, 48, 46, 1753, 1999, 2065, 34, 671, 2001,
|
|
/* 20 */ 408, 2421, 1598, 41, 40, 411, 1623, 47, 45, 44,
|
|
/* 30 */ 43, 42, 183, 165, 622, 1679, 1913, 1596, 670, 190,
|
|
/* 40 */ 390, 2016, 2146, 2422, 672, 2257, 562, 646, 2065, 620,
|
|
/* 50 */ 2421, 618, 254, 253, 376, 683, 142, 2126, 686, 204,
|
|
/* 60 */ 551, 2144, 691, 170, 1674, 1830, 548, 2427, 190, 703,
|
|
/* 70 */ 19, 1955, 2422, 672, 41, 40, 543, 1604, 47, 45,
|
|
/* 80 */ 44, 43, 42, 706, 541, 2317, 2275, 537, 533, 132,
|
|
/* 90 */ 131, 130, 129, 128, 127, 126, 125, 124, 2225, 30,
|
|
/* 100 */ 720, 1883, 812, 563, 2139, 15, 461, 1853, 787, 786,
|
|
/* 110 */ 785, 784, 420, 703, 783, 782, 146, 777, 776, 775,
|
|
/* 120 */ 774, 773, 772, 771, 159, 767, 766, 765, 419, 418,
|
|
/* 130 */ 762, 761, 760, 178, 177, 2108, 704, 2014, 2256, 209,
|
|
/* 140 */ 2292, 1681, 1682, 110, 2258, 724, 2260, 2261, 719, 91,
|
|
/* 150 */ 714, 513, 511, 805, 360, 187, 195, 2345, 147, 2113,
|
|
/* 160 */ 2225, 404, 2341, 291, 2353, 682, 378, 134, 681, 561,
|
|
/* 170 */ 2421, 2067, 1793, 1654, 1664, 2009, 192, 465, 374, 87,
|
|
/* 180 */ 1680, 1683, 86, 703, 2375, 665, 2065, 670, 190, 417,
|
|
/* 190 */ 416, 1623, 2422, 672, 1831, 1599, 1625, 1597, 51, 47,
|
|
/* 200 */ 45, 44, 43, 42, 41, 40, 38, 312, 47, 45,
|
|
/* 210 */ 44, 43, 42, 2275, 1605, 123, 565, 1246, 122, 121,
|
|
/* 220 */ 120, 119, 118, 117, 116, 115, 114, 1602, 1603, 67,
|
|
/* 230 */ 1653, 1656, 1657, 1658, 1659, 1660, 1661, 1662, 1663, 716,
|
|
/* 240 */ 712, 1672, 1673, 1675, 1676, 1677, 1678, 2, 48, 46,
|
|
/* 250 */ 473, 2122, 661, 359, 671, 1621, 408, 2421, 1598, 1248,
|
|
/* 260 */ 1251, 1252, 498, 223, 2257, 516, 368, 549, 51, 1880,
|
|
/* 270 */ 515, 1679, 664, 1596, 670, 190, 63, 721, 2146, 2422,
|
|
/* 280 */ 672, 1852, 1607, 606, 605, 604, 481, 168, 517, 183,
|
|
/* 290 */ 596, 139, 600, 483, 401, 2017, 599, 2143, 691, 207,
|
|
/* 300 */ 1674, 598, 603, 384, 383, 2275, 19, 597, 554, 1708,
|
|
/* 310 */ 392, 547, 1873, 1604, 2127, 704, 2014, 2225, 123, 720,
|
|
/* 320 */ 2257, 122, 121, 120, 119, 118, 117, 116, 115, 114,
|
|
/* 330 */ 63, 683, 142, 686, 2225, 133, 269, 63, 812, 377,
|
|
/* 340 */ 1624, 15, 588, 667, 662, 655, 1626, 1851, 41, 40,
|
|
/* 350 */ 469, 293, 47, 45, 44, 43, 42, 2256, 2235, 2292,
|
|
/* 360 */ 1626, 2275, 350, 2258, 724, 2260, 2261, 719, 1709, 714,
|
|
/* 370 */ 2061, 2062, 2005, 2225, 1608, 720, 1850, 1681, 1682, 95,
|
|
/* 380 */ 2133, 2111, 2239, 505, 504, 503, 502, 497, 496, 495,
|
|
/* 390 */ 494, 493, 489, 488, 487, 486, 358, 478, 477, 476,
|
|
/* 400 */ 2225, 471, 470, 375, 413, 1491, 1492, 2060, 2062, 1654,
|
|
/* 410 */ 1664, 1511, 2098, 2256, 1828, 2292, 1680, 1683, 110, 2258,
|
|
/* 420 */ 724, 2260, 2261, 719, 2241, 714, 452, 295, 451, 2225,
|
|
/* 430 */ 187, 1599, 2345, 1597, 714, 295, 404, 2341, 685, 188,
|
|
/* 440 */ 2353, 2354, 1610, 140, 2358, 704, 2014, 37, 406, 1703,
|
|
/* 450 */ 1704, 1705, 1706, 1707, 1711, 1712, 1713, 1714, 450, 2376,
|
|
/* 460 */ 759, 1439, 1440, 1602, 1603, 56, 1653, 1656, 1657, 1658,
|
|
/* 470 */ 1659, 1660, 1661, 1662, 1663, 716, 712, 1672, 1673, 1675,
|
|
/* 480 */ 1676, 1677, 1678, 2, 12, 48, 46, 2257, 2426, 295,
|
|
/* 490 */ 1598, 2421, 2235, 408, 423, 1598, 295, 704, 2014, 422,
|
|
/* 500 */ 721, 205, 63, 257, 1404, 1596, 2243, 256, 1679, 2425,
|
|
/* 510 */ 1596, 500, 2122, 2422, 2424, 271, 2239, 458, 1395, 749,
|
|
/* 520 */ 748, 747, 1399, 746, 1401, 1402, 745, 742, 2275, 1410,
|
|
/* 530 */ 739, 1412, 1413, 736, 733, 730, 1626, 1674, 1916, 52,
|
|
/* 540 */ 2225, 646, 720, 19, 2421, 1604, 1991, 41, 40, 1623,
|
|
/* 550 */ 1604, 47, 45, 44, 43, 42, 704, 2014, 2241, 405,
|
|
/* 560 */ 212, 2427, 190, 1254, 704, 2014, 2422, 672, 714, 1622,
|
|
/* 570 */ 812, 94, 485, 1849, 363, 812, 133, 388, 15, 624,
|
|
/* 580 */ 2256, 484, 2292, 593, 459, 110, 2258, 724, 2260, 2261,
|
|
/* 590 */ 719, 1781, 714, 258, 1757, 145, 102, 152, 2316, 2345,
|
|
/* 600 */ 1623, 41, 40, 404, 2341, 47, 45, 44, 43, 42,
|
|
/* 610 */ 606, 605, 604, 2235, 1681, 1682, 225, 596, 139, 600,
|
|
/* 620 */ 549, 2007, 1880, 599, 666, 1623, 2225, 2244, 598, 603,
|
|
/* 630 */ 384, 383, 1274, 1275, 597, 2257, 1271, 2239, 1270, 658,
|
|
/* 640 */ 657, 1779, 1780, 1782, 1783, 1784, 1654, 1664, 721, 1624,
|
|
/* 650 */ 1882, 41, 40, 1680, 1683, 47, 45, 44, 43, 42,
|
|
/* 660 */ 2426, 295, 12, 1599, 10, 1597, 1569, 1570, 1599, 107,
|
|
/* 670 */ 1597, 1272, 683, 142, 704, 2014, 2275, 1625, 104, 2241,
|
|
/* 680 */ 757, 157, 156, 754, 753, 752, 154, 1348, 2225, 714,
|
|
/* 690 */ 720, 270, 683, 142, 475, 1602, 1603, 442, 295, 1792,
|
|
/* 700 */ 1602, 1603, 1655, 1653, 1656, 1657, 1658, 1659, 1660, 1661,
|
|
/* 710 */ 1662, 1663, 716, 712, 1672, 1673, 1675, 1676, 1677, 1678,
|
|
/* 720 */ 2, 48, 46, 1684, 444, 440, 1823, 1350, 2256, 408,
|
|
/* 730 */ 2292, 1598, 1621, 110, 2258, 724, 2260, 2261, 719, 1271,
|
|
/* 740 */ 714, 1270, 2257, 2360, 1679, 2441, 1596, 2345, 631, 1769,
|
|
/* 750 */ 2360, 404, 2341, 1655, 36, 721, 138, 2383, 1989, 12,
|
|
/* 760 */ 41, 40, 2257, 1816, 47, 45, 44, 43, 42, 2357,
|
|
/* 770 */ 1524, 1525, 594, 1674, 1272, 721, 2356, 2396, 1504, 1505,
|
|
/* 780 */ 189, 2353, 2354, 2275, 140, 2358, 1604, 757, 157, 156,
|
|
/* 790 */ 754, 753, 752, 154, 186, 2225, 1346, 720, 704, 2014,
|
|
/* 800 */ 191, 2353, 2354, 2275, 140, 2358, 2054, 1359, 507, 1523,
|
|
/* 810 */ 1526, 812, 14, 13, 49, 2225, 2067, 720, 490, 750,
|
|
/* 820 */ 41, 40, 1358, 398, 47, 45, 44, 43, 42, 1822,
|
|
/* 830 */ 402, 2065, 293, 704, 2014, 2256, 144, 2292, 168, 2316,
|
|
/* 840 */ 110, 2258, 724, 2260, 2261, 719, 2016, 714, 704, 2014,
|
|
/* 850 */ 1681, 1682, 2441, 491, 2345, 2256, 1848, 2292, 404, 2341,
|
|
/* 860 */ 110, 2258, 724, 2260, 2261, 719, 632, 714, 564, 213,
|
|
/* 870 */ 602, 601, 2441, 2067, 2345, 1689, 584, 583, 404, 2341,
|
|
/* 880 */ 403, 1623, 1654, 1664, 815, 704, 2014, 518, 2065, 1680,
|
|
/* 890 */ 1683, 506, 757, 157, 156, 754, 753, 752, 154, 592,
|
|
/* 900 */ 320, 704, 2014, 591, 1599, 2011, 1597, 41, 40, 2225,
|
|
/* 910 */ 9, 47, 45, 44, 43, 42, 182, 1722, 704, 2014,
|
|
/* 920 */ 708, 260, 2317, 2218, 803, 799, 795, 791, 1710, 317,
|
|
/* 930 */ 44, 43, 42, 1847, 586, 585, 1602, 1603, 268, 1653,
|
|
/* 940 */ 1656, 1657, 1658, 1659, 1660, 1661, 1662, 1663, 716, 712,
|
|
/* 950 */ 1672, 1673, 1675, 1676, 1677, 1678, 2, 48, 46, 645,
|
|
/* 960 */ 2425, 2257, 1990, 2426, 1604, 408, 2421, 1598, 2067, 109,
|
|
/* 970 */ 646, 462, 310, 2421, 721, 412, 653, 704, 2014, 611,
|
|
/* 980 */ 1679, 1750, 1596, 2065, 2425, 411, 2225, 167, 2422, 2423,
|
|
/* 990 */ 2427, 190, 2208, 168, 623, 2422, 672, 689, 704, 2014,
|
|
/* 1000 */ 2257, 2016, 2275, 240, 700, 704, 2014, 35, 751, 1674,
|
|
/* 1010 */ 255, 2058, 2360, 721, 2225, 2414, 720, 1715, 307, 175,
|
|
/* 1020 */ 675, 1846, 1604, 108, 2114, 701, 614, 582, 578, 574,
|
|
/* 1030 */ 570, 759, 239, 608, 1655, 414, 1606, 1845, 2355, 252,
|
|
/* 1040 */ 143, 2275, 298, 168, 1844, 704, 2014, 812, 2006, 297,
|
|
/* 1050 */ 49, 2016, 1363, 2225, 2256, 720, 2292, 781, 779, 110,
|
|
/* 1060 */ 2258, 724, 2260, 2261, 719, 702, 714, 1362, 262, 704,
|
|
/* 1070 */ 2014, 2441, 92, 2345, 2225, 237, 1841, 404, 2341, 71,
|
|
/* 1080 */ 769, 1840, 70, 1839, 60, 1838, 1681, 1682, 1837, 313,
|
|
/* 1090 */ 2225, 1836, 643, 2256, 1835, 2292, 1834, 2225, 110, 2258,
|
|
/* 1100 */ 724, 2260, 2261, 719, 1992, 714, 303, 304, 1833, 2257,
|
|
/* 1110 */ 2441, 302, 2345, 704, 2014, 2190, 404, 2341, 1654, 1664,
|
|
/* 1120 */ 755, 678, 721, 2058, 2364, 1680, 1683, 756, 91, 2225,
|
|
/* 1130 */ 2058, 1742, 520, 415, 2225, 318, 2225, 148, 2225, 1997,
|
|
/* 1140 */ 1599, 2225, 1597, 595, 2225, 236, 229, 2225, 711, 2225,
|
|
/* 1150 */ 2275, 2067, 234, 559, 2010, 2067, 267, 382, 381, 2067,
|
|
/* 1160 */ 327, 2225, 2225, 2044, 720, 155, 690, 1344, 259, 2211,
|
|
/* 1170 */ 699, 227, 1602, 1603, 2066, 1653, 1656, 1657, 1658, 1659,
|
|
/* 1180 */ 1660, 1661, 1662, 1663, 716, 712, 1672, 1673, 1675, 1676,
|
|
/* 1190 */ 1677, 1678, 2, 48, 46, 770, 1609, 2219, 1976, 629,
|
|
/* 1200 */ 1305, 408, 2256, 1598, 2292, 1858, 807, 110, 2258, 724,
|
|
/* 1210 */ 2260, 2261, 719, 437, 714, 2018, 1679, 3, 1596, 2441,
|
|
/* 1220 */ 430, 2345, 1251, 1252, 135, 404, 2341, 380, 379, 54,
|
|
/* 1230 */ 590, 2365, 1742, 1900, 75, 1891, 84, 2257, 55, 1889,
|
|
/* 1240 */ 1306, 155, 674, 1749, 646, 1674, 646, 2421, 687, 2421,
|
|
/* 1250 */ 721, 245, 592, 1956, 243, 607, 591, 609, 1604, 247,
|
|
/* 1260 */ 249, 612, 246, 248, 2427, 190, 2427, 190, 264, 2422,
|
|
/* 1270 */ 672, 2422, 672, 251, 676, 155, 250, 169, 2275, 626,
|
|
/* 1280 */ 50, 625, 334, 812, 85, 50, 15, 1843, 2257, 2246,
|
|
/* 1290 */ 2225, 715, 720, 275, 155, 646, 1825, 1826, 2421, 331,
|
|
/* 1300 */ 74, 721, 2389, 73, 288, 1700, 50, 763, 659, 300,
|
|
/* 1310 */ 137, 72, 153, 356, 1564, 2427, 190, 14, 13, 155,
|
|
/* 1320 */ 2422, 672, 1681, 1682, 221, 528, 526, 523, 65, 2275,
|
|
/* 1330 */ 2256, 1324, 2292, 50, 50, 343, 2258, 724, 2260, 2261,
|
|
/* 1340 */ 719, 2225, 714, 720, 764, 2248, 282, 1954, 1567, 1953,
|
|
/* 1350 */ 2276, 391, 421, 1778, 1654, 1664, 728, 153, 1777, 155,
|
|
/* 1360 */ 136, 1680, 1683, 153, 63, 2131, 277, 688, 1322, 1874,
|
|
/* 1370 */ 1879, 2055, 2379, 684, 290, 287, 1599, 679, 1597, 1521,
|
|
/* 1380 */ 668, 2256, 305, 2292, 696, 309, 110, 2258, 724, 2260,
|
|
/* 1390 */ 2261, 719, 1389, 714, 294, 5, 429, 1629, 2320, 446,
|
|
/* 1400 */ 2345, 1716, 61, 424, 404, 2341, 1665, 326, 1602, 1603,
|
|
/* 1410 */ 372, 1653, 1656, 1657, 1658, 1659, 1660, 1661, 1662, 1663,
|
|
/* 1420 */ 716, 712, 1672, 1673, 1675, 1676, 1677, 1678, 2, 1417,
|
|
/* 1430 */ 1421, 445, 1428, 1426, 417, 416, 158, 198, 197, 448,
|
|
/* 1440 */ 200, 1545, 321, 1622, 1612, 466, 82, 81, 457, 2257,
|
|
/* 1450 */ 211, 202, 468, 1626, 2132, 472, 474, 1679, 479, 1605,
|
|
/* 1460 */ 509, 499, 721, 492, 449, 447, 2124, 501, 508, 510,
|
|
/* 1470 */ 521, 522, 519, 216, 524, 357, 215, 1627, 438, 525,
|
|
/* 1480 */ 218, 436, 432, 428, 425, 450, 1674, 527, 544, 529,
|
|
/* 1490 */ 2275, 4, 552, 545, 553, 555, 1624, 1628, 556, 1604,
|
|
/* 1500 */ 226, 228, 2225, 1630, 720, 557, 558, 231, 560, 233,
|
|
/* 1510 */ 1631, 2140, 566, 89, 90, 587, 238, 628, 112, 2199,
|
|
/* 1520 */ 2196, 615, 589, 295, 710, 616, 2195, 630, 2257, 353,
|
|
/* 1530 */ 93, 2004, 322, 149, 634, 633, 1552, 242, 261, 635,
|
|
/* 1540 */ 2000, 721, 2256, 244, 2292, 161, 162, 110, 2258, 724,
|
|
/* 1550 */ 2260, 2261, 719, 2002, 714, 1998, 263, 163, 164, 2318,
|
|
/* 1560 */ 265, 2345, 638, 641, 660, 404, 2341, 8, 2395, 2275,
|
|
/* 1570 */ 694, 669, 2394, 650, 176, 651, 2367, 281, 656, 649,
|
|
/* 1580 */ 2380, 2225, 2444, 720, 2257, 394, 640, 639, 663, 283,
|
|
/* 1590 */ 2390, 284, 285, 648, 680, 395, 677, 718, 273, 1742,
|
|
/* 1600 */ 141, 276, 1625, 1747, 1745, 2420, 289, 697, 296, 286,
|
|
/* 1610 */ 180, 150, 1, 692, 323, 693, 2154, 1613, 2153, 1608,
|
|
/* 1620 */ 324, 2256, 2152, 2292, 400, 2275, 110, 2258, 724, 2260,
|
|
/* 1630 */ 2261, 719, 698, 714, 151, 2257, 2361, 2225, 707, 720,
|
|
/* 1640 */ 2345, 325, 101, 2015, 404, 2341, 62, 103, 721, 1616,
|
|
/* 1650 */ 1618, 2326, 2059, 726, 1230, 809, 328, 1977, 316, 806,
|
|
/* 1660 */ 2257, 193, 712, 1672, 1673, 1675, 1676, 1677, 1678, 160,
|
|
/* 1670 */ 811, 53, 332, 721, 364, 365, 2275, 2256, 2217, 2292,
|
|
/* 1680 */ 337, 330, 349, 2258, 724, 2260, 2261, 719, 2225, 714,
|
|
/* 1690 */ 720, 2311, 351, 341, 2216, 2215, 2212, 352, 79, 426,
|
|
/* 1700 */ 427, 2275, 1589, 1590, 196, 431, 2210, 433, 434, 435,
|
|
/* 1710 */ 2209, 2207, 373, 2225, 439, 720, 2206, 2205, 443, 441,
|
|
/* 1720 */ 1580, 2186, 199, 2185, 201, 1548, 80, 1547, 2256, 2167,
|
|
/* 1730 */ 2292, 2166, 2165, 111, 2258, 724, 2260, 2261, 719, 455,
|
|
/* 1740 */ 714, 456, 2164, 2163, 2117, 2107, 463, 2345, 460, 1493,
|
|
/* 1750 */ 2104, 2344, 2341, 2256, 464, 2292, 2257, 203, 111, 2258,
|
|
/* 1760 */ 724, 2260, 2261, 719, 2103, 714, 2102, 83, 2101, 721,
|
|
/* 1770 */ 208, 2094, 2345, 2106, 206, 2105, 709, 2341, 2100, 2099,
|
|
/* 1780 */ 2097, 2257, 2096, 2095, 480, 482, 2110, 2093, 2092, 2091,
|
|
/* 1790 */ 2090, 2089, 2088, 2087, 718, 2086, 2085, 2275, 2084, 2083,
|
|
/* 1800 */ 2082, 2081, 2080, 2079, 210, 2078, 88, 2077, 2076, 2225,
|
|
/* 1810 */ 2075, 720, 2257, 2109, 2074, 2073, 1497, 2072, 214, 2071,
|
|
/* 1820 */ 512, 2070, 2275, 514, 2069, 721, 2068, 361, 1360, 1919,
|
|
/* 1830 */ 1918, 1364, 1917, 217, 2225, 362, 720, 2257, 219, 1915,
|
|
/* 1840 */ 220, 1356, 1912, 1911, 1904, 1893, 1869, 232, 530, 722,
|
|
/* 1850 */ 721, 2292, 1298, 2275, 111, 2258, 724, 2260, 2261, 719,
|
|
/* 1860 */ 532, 714, 534, 531, 536, 2225, 1868, 720, 2345, 540,
|
|
/* 1870 */ 538, 535, 367, 2341, 2256, 1253, 2292, 77, 2275, 349,
|
|
/* 1880 */ 2258, 724, 2260, 2261, 719, 717, 714, 705, 2310, 542,
|
|
/* 1890 */ 2225, 539, 720, 184, 222, 2184, 2245, 224, 78, 185,
|
|
/* 1900 */ 550, 2174, 2162, 2161, 230, 2256, 2257, 2292, 235, 2138,
|
|
/* 1910 */ 172, 2258, 724, 2260, 2261, 719, 1993, 714, 1914, 721,
|
|
/* 1920 */ 1910, 567, 568, 569, 1908, 571, 572, 573, 1906, 575,
|
|
/* 1930 */ 2256, 576, 2292, 577, 1903, 173, 2258, 724, 2260, 2261,
|
|
/* 1940 */ 719, 579, 714, 1888, 580, 1886, 1887, 2275, 1885, 581,
|
|
/* 1950 */ 1865, 1995, 647, 2386, 64, 1432, 1433, 1994, 1347, 2225,
|
|
/* 1960 */ 1345, 720, 1343, 1342, 241, 778, 1341, 1340, 1339, 780,
|
|
/* 1970 */ 1901, 1334, 1336, 2257, 1335, 1333, 385, 1892, 386, 1890,
|
|
/* 1980 */ 610, 387, 1864, 1863, 613, 1862, 721, 1861, 673, 2442,
|
|
/* 1990 */ 617, 1860, 619, 621, 113, 1574, 1578, 2257, 1576, 2256,
|
|
/* 2000 */ 1573, 2292, 29, 2183, 111, 2258, 724, 2260, 2261, 719,
|
|
/* 2010 */ 721, 714, 57, 68, 2275, 1554, 1556, 2173, 2345, 636,
|
|
/* 2020 */ 2160, 2159, 2426, 2342, 58, 1558, 2225, 17, 720, 166,
|
|
/* 2030 */ 637, 20, 21, 1533, 6, 266, 7, 22, 2275, 1532,
|
|
/* 2040 */ 279, 280, 654, 393, 31, 642, 1795, 644, 2257, 272,
|
|
/* 2050 */ 2225, 2246, 720, 23, 66, 652, 33, 24, 292, 1810,
|
|
/* 2060 */ 179, 721, 59, 1809, 396, 174, 2256, 278, 2292, 1814,
|
|
/* 2070 */ 274, 172, 2258, 724, 2260, 2261, 719, 32, 714, 1776,
|
|
/* 2080 */ 2257, 1768, 1815, 1813, 397, 96, 2158, 1816, 2137, 2275,
|
|
/* 2090 */ 2256, 98, 2292, 721, 1739, 350, 2258, 724, 2260, 2261,
|
|
/* 2100 */ 719, 2225, 714, 720, 2136, 18, 99, 1738, 311, 104,
|
|
/* 2110 */ 97, 25, 26, 301, 2387, 306, 2257, 1691, 299, 1774,
|
|
/* 2120 */ 13, 2275, 11, 69, 1614, 1701, 399, 181, 1646, 721,
|
|
/* 2130 */ 100, 1690, 194, 2225, 723, 720, 2295, 727, 410, 1669,
|
|
/* 2140 */ 713, 2256, 1667, 2292, 695, 308, 173, 2258, 724, 2260,
|
|
/* 2150 */ 2261, 719, 725, 714, 1666, 39, 731, 2275, 16, 27,
|
|
/* 2160 */ 734, 1638, 407, 28, 737, 740, 1418, 729, 732, 2225,
|
|
/* 2170 */ 735, 720, 1415, 2256, 1414, 2292, 1411, 738, 350, 2258,
|
|
/* 2180 */ 724, 2260, 2261, 719, 2257, 714, 1405, 741, 743, 314,
|
|
/* 2190 */ 1403, 1427, 744, 1409, 105, 1408, 106, 721, 76, 1407,
|
|
/* 2200 */ 2443, 1406, 1423, 1296, 758, 1328, 1327, 1326, 1325, 2256,
|
|
/* 2210 */ 1323, 2292, 1321, 1320, 350, 2258, 724, 2260, 2261, 719,
|
|
/* 2220 */ 2257, 714, 1319, 1354, 768, 2275, 315, 1317, 1316, 1315,
|
|
/* 2230 */ 409, 1314, 1313, 721, 1312, 2257, 1311, 2225, 1351, 720,
|
|
/* 2240 */ 1349, 1308, 1307, 1304, 1303, 1302, 1909, 1301, 721, 788,
|
|
/* 2250 */ 790, 789, 2257, 1907, 792, 794, 1905, 796, 798, 1902,
|
|
/* 2260 */ 1884, 2275, 793, 802, 800, 721, 797, 804, 1243, 801,
|
|
/* 2270 */ 1859, 1231, 808, 2225, 319, 720, 2275, 2256, 810, 2292,
|
|
/* 2280 */ 1600, 814, 350, 2258, 724, 2260, 2261, 719, 2225, 714,
|
|
/* 2290 */ 720, 329, 813, 2275, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2300 */ 1829, 1829, 1829, 1829, 1829, 2225, 1829, 720, 1829, 1829,
|
|
/* 2310 */ 1829, 1829, 1829, 627, 1829, 2292, 1829, 1829, 345, 2258,
|
|
/* 2320 */ 724, 2260, 2261, 719, 1829, 714, 1829, 1829, 2256, 1829,
|
|
/* 2330 */ 2292, 1829, 1829, 335, 2258, 724, 2260, 2261, 719, 1829,
|
|
/* 2340 */ 714, 1829, 1829, 1829, 1829, 2256, 2257, 2292, 1829, 1829,
|
|
/* 2350 */ 333, 2258, 724, 2260, 2261, 719, 1829, 714, 1829, 721,
|
|
/* 2360 */ 1829, 2257, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2370 */ 1829, 1829, 1829, 1829, 721, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2380 */ 1829, 1829, 1829, 1829, 1829, 2257, 1829, 2275, 1829, 1829,
|
|
/* 2390 */ 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 721, 2225,
|
|
/* 2400 */ 1829, 720, 2275, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2410 */ 1829, 1829, 1829, 1829, 2225, 1829, 720, 1829, 1829, 1829,
|
|
/* 2420 */ 1829, 1829, 1829, 1829, 1829, 1829, 2275, 1829, 1829, 1829,
|
|
/* 2430 */ 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 2225, 2256,
|
|
/* 2440 */ 720, 2292, 1829, 1829, 336, 2258, 724, 2260, 2261, 719,
|
|
/* 2450 */ 1829, 714, 1829, 1829, 2256, 1829, 2292, 1829, 1829, 342,
|
|
/* 2460 */ 2258, 724, 2260, 2261, 719, 1829, 714, 1829, 2257, 1829,
|
|
/* 2470 */ 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 2256, 1829,
|
|
/* 2480 */ 2292, 721, 1829, 346, 2258, 724, 2260, 2261, 719, 1829,
|
|
/* 2490 */ 714, 1829, 1829, 2257, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2500 */ 1829, 1829, 1829, 1829, 2257, 1829, 721, 1829, 1829, 2275,
|
|
/* 2510 */ 1829, 1829, 1829, 1829, 1829, 1829, 1829, 721, 1829, 1829,
|
|
/* 2520 */ 1829, 2225, 1829, 720, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2530 */ 1829, 1829, 1829, 1829, 2275, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2540 */ 1829, 1829, 1829, 1829, 1829, 2275, 2225, 1829, 720, 1829,
|
|
/* 2550 */ 1829, 1829, 1829, 1829, 1829, 1829, 1829, 2225, 1829, 720,
|
|
/* 2560 */ 1829, 2256, 1829, 2292, 1829, 1829, 338, 2258, 724, 2260,
|
|
/* 2570 */ 2261, 719, 2257, 714, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2580 */ 1829, 1829, 1829, 1829, 1829, 721, 2256, 1829, 2292, 1829,
|
|
/* 2590 */ 1829, 347, 2258, 724, 2260, 2261, 719, 2256, 714, 2292,
|
|
/* 2600 */ 1829, 1829, 339, 2258, 724, 2260, 2261, 719, 2257, 714,
|
|
/* 2610 */ 1829, 1829, 1829, 2275, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2620 */ 1829, 721, 1829, 2257, 1829, 2225, 1829, 720, 1829, 1829,
|
|
/* 2630 */ 1829, 1829, 1829, 1829, 1829, 1829, 721, 1829, 1829, 1829,
|
|
/* 2640 */ 2257, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 2275,
|
|
/* 2650 */ 1829, 1829, 1829, 721, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2660 */ 1829, 2225, 1829, 720, 2275, 2256, 1829, 2292, 1829, 1829,
|
|
/* 2670 */ 348, 2258, 724, 2260, 2261, 719, 2225, 714, 720, 1829,
|
|
/* 2680 */ 1829, 2275, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2690 */ 1829, 1829, 1829, 2225, 1829, 720, 1829, 1829, 1829, 1829,
|
|
/* 2700 */ 1829, 2256, 1829, 2292, 1829, 1829, 340, 2258, 724, 2260,
|
|
/* 2710 */ 2261, 719, 1829, 714, 1829, 1829, 2256, 1829, 2292, 1829,
|
|
/* 2720 */ 1829, 354, 2258, 724, 2260, 2261, 719, 1829, 714, 1829,
|
|
/* 2730 */ 1829, 1829, 1829, 2256, 2257, 2292, 1829, 1829, 355, 2258,
|
|
/* 2740 */ 724, 2260, 2261, 719, 1829, 714, 1829, 721, 1829, 2257,
|
|
/* 2750 */ 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2760 */ 1829, 1829, 721, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2770 */ 1829, 1829, 1829, 2257, 1829, 2275, 1829, 1829, 1829, 1829,
|
|
/* 2780 */ 1829, 1829, 1829, 1829, 1829, 1829, 721, 2225, 1829, 720,
|
|
/* 2790 */ 2275, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2800 */ 1829, 1829, 2225, 1829, 720, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2810 */ 1829, 1829, 1829, 1829, 2275, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2820 */ 1829, 1829, 1829, 1829, 1829, 1829, 2225, 2256, 720, 2292,
|
|
/* 2830 */ 1829, 1829, 2269, 2258, 724, 2260, 2261, 719, 1829, 714,
|
|
/* 2840 */ 2257, 1829, 2256, 1829, 2292, 1829, 1829, 2268, 2258, 724,
|
|
/* 2850 */ 2260, 2261, 719, 721, 714, 1829, 2257, 1829, 1829, 1829,
|
|
/* 2860 */ 1829, 1829, 1829, 1829, 1829, 1829, 2256, 1829, 2292, 721,
|
|
/* 2870 */ 1829, 2267, 2258, 724, 2260, 2261, 719, 1829, 714, 1829,
|
|
/* 2880 */ 1829, 2275, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2890 */ 1829, 1829, 1829, 2225, 1829, 720, 1829, 2275, 1829, 1829,
|
|
/* 2900 */ 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 2225,
|
|
/* 2910 */ 1829, 720, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 2257,
|
|
/* 2920 */ 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2930 */ 1829, 1829, 721, 2256, 1829, 2292, 1829, 1829, 369, 2258,
|
|
/* 2940 */ 724, 2260, 2261, 719, 1829, 714, 1829, 1829, 1829, 2256,
|
|
/* 2950 */ 2257, 2292, 1829, 1829, 370, 2258, 724, 2260, 2261, 719,
|
|
/* 2960 */ 2275, 714, 1829, 721, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2970 */ 2257, 1829, 2225, 1829, 720, 1829, 1829, 1829, 1829, 1829,
|
|
/* 2980 */ 1829, 1829, 1829, 721, 1829, 1829, 1829, 2257, 1829, 1829,
|
|
/* 2990 */ 1829, 2275, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 3000 */ 721, 1829, 1829, 2225, 1829, 720, 1829, 1829, 1829, 1829,
|
|
/* 3010 */ 1829, 2275, 2256, 1829, 2292, 1829, 1829, 366, 2258, 724,
|
|
/* 3020 */ 2260, 2261, 719, 2225, 714, 720, 1829, 1829, 2275, 1829,
|
|
/* 3030 */ 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829, 1829,
|
|
/* 3040 */ 2225, 1829, 720, 2256, 1829, 2292, 1829, 1829, 371, 2258,
|
|
/* 3050 */ 724, 2260, 2261, 719, 1829, 714, 1829, 1829, 1829, 1829,
|
|
/* 3060 */ 1829, 1829, 1829, 722, 1829, 2292, 1829, 1829, 345, 2258,
|
|
/* 3070 */ 724, 2260, 2261, 719, 1829, 714, 1829, 1829, 1829, 1829,
|
|
/* 3080 */ 2256, 1829, 2292, 1829, 1829, 344, 2258, 724, 2260, 2261,
|
|
/* 3090 */ 719, 1829, 714,
|
|
};
|
|
static const YYCODETYPE yy_lookahead[] = {
|
|
/* 0 */ 423, 387, 345, 353, 347, 428, 356, 357, 394, 388,
|
|
/* 10 */ 358, 359, 12, 13, 14, 388, 402, 2, 470, 388,
|
|
/* 20 */ 20, 473, 22, 8, 9, 379, 20, 12, 13, 14,
|
|
/* 30 */ 15, 16, 387, 387, 21, 35, 0, 37, 490, 491,
|
|
/* 40 */ 394, 395, 401, 495, 496, 346, 358, 470, 402, 36,
|
|
/* 50 */ 473, 38, 39, 40, 409, 358, 359, 412, 359, 407,
|
|
/* 60 */ 14, 420, 421, 368, 64, 0, 20, 490, 491, 20,
|
|
/* 70 */ 70, 376, 495, 496, 8, 9, 51, 77, 12, 13,
|
|
/* 80 */ 14, 15, 16, 455, 59, 457, 387, 62, 63, 24,
|
|
/* 90 */ 25, 26, 27, 28, 29, 30, 31, 32, 399, 33,
|
|
/* 100 */ 401, 0, 102, 415, 416, 105, 358, 346, 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, 0, 358, 359, 439, 64,
|
|
/* 140 */ 441, 141, 142, 444, 445, 446, 447, 448, 449, 367,
|
|
/* 150 */ 451, 403, 404, 52, 406, 456, 378, 458, 410, 411,
|
|
/* 160 */ 399, 462, 463, 466, 467, 468, 384, 470, 471, 20,
|
|
/* 170 */ 473, 387, 106, 173, 174, 393, 477, 42, 394, 104,
|
|
/* 180 */ 180, 181, 107, 20, 485, 359, 402, 490, 491, 12,
|
|
/* 190 */ 13, 20, 495, 496, 0, 195, 20, 197, 105, 12,
|
|
/* 200 */ 13, 14, 15, 16, 8, 9, 459, 460, 12, 13,
|
|
/* 210 */ 14, 15, 16, 387, 37, 21, 69, 4, 24, 25,
|
|
/* 220 */ 26, 27, 28, 29, 30, 31, 32, 227, 228, 4,
|
|
/* 230 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
|
|
/* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 12, 13,
|
|
/* 250 */ 358, 359, 179, 18, 470, 20, 20, 473, 22, 46,
|
|
/* 260 */ 47, 48, 27, 354, 346, 30, 70, 358, 105, 360,
|
|
/* 270 */ 35, 35, 446, 37, 490, 491, 105, 359, 401, 495,
|
|
/* 280 */ 496, 346, 37, 72, 73, 74, 51, 387, 53, 387,
|
|
/* 290 */ 79, 80, 81, 58, 417, 395, 85, 420, 421, 407,
|
|
/* 300 */ 64, 90, 91, 92, 93, 387, 70, 96, 353, 113,
|
|
/* 310 */ 392, 356, 357, 77, 412, 358, 359, 399, 21, 401,
|
|
/* 320 */ 346, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
/* 330 */ 105, 358, 359, 359, 399, 378, 64, 105, 102, 104,
|
|
/* 340 */ 20, 105, 385, 270, 271, 272, 20, 346, 8, 9,
|
|
/* 350 */ 115, 175, 12, 13, 14, 15, 16, 439, 375, 441,
|
|
/* 360 */ 20, 387, 444, 445, 446, 447, 448, 449, 172, 451,
|
|
/* 370 */ 400, 401, 389, 399, 197, 401, 346, 141, 142, 107,
|
|
/* 380 */ 145, 146, 399, 148, 149, 150, 151, 152, 153, 154,
|
|
/* 390 */ 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
|
|
/* 400 */ 399, 166, 167, 168, 397, 170, 171, 400, 401, 173,
|
|
/* 410 */ 174, 176, 0, 439, 343, 441, 180, 181, 444, 445,
|
|
/* 420 */ 446, 447, 448, 449, 441, 451, 194, 264, 196, 399,
|
|
/* 430 */ 456, 195, 458, 197, 451, 264, 462, 463, 465, 466,
|
|
/* 440 */ 467, 468, 197, 470, 471, 358, 359, 251, 252, 253,
|
|
/* 450 */ 254, 255, 256, 257, 258, 259, 260, 261, 226, 485,
|
|
/* 460 */ 69, 141, 142, 227, 228, 378, 230, 231, 232, 233,
|
|
/* 470 */ 234, 235, 236, 237, 238, 239, 240, 241, 242, 243,
|
|
/* 480 */ 244, 245, 246, 247, 248, 12, 13, 346, 470, 264,
|
|
/* 490 */ 22, 473, 375, 20, 423, 22, 264, 358, 359, 428,
|
|
/* 500 */ 359, 175, 105, 136, 102, 37, 389, 140, 35, 491,
|
|
/* 510 */ 37, 358, 359, 495, 496, 175, 399, 378, 116, 117,
|
|
/* 520 */ 118, 119, 120, 121, 122, 123, 124, 125, 387, 127,
|
|
/* 530 */ 128, 129, 130, 131, 132, 133, 20, 64, 0, 105,
|
|
/* 540 */ 399, 470, 401, 70, 473, 77, 0, 8, 9, 20,
|
|
/* 550 */ 77, 12, 13, 14, 15, 16, 358, 359, 441, 442,
|
|
/* 560 */ 407, 490, 491, 14, 358, 359, 495, 496, 451, 20,
|
|
/* 570 */ 102, 204, 160, 346, 207, 102, 378, 210, 105, 212,
|
|
/* 580 */ 439, 169, 441, 385, 378, 444, 445, 446, 447, 448,
|
|
/* 590 */ 449, 227, 451, 135, 14, 454, 365, 456, 457, 458,
|
|
/* 600 */ 20, 8, 9, 462, 463, 12, 13, 14, 15, 16,
|
|
/* 610 */ 72, 73, 74, 375, 141, 142, 354, 79, 80, 81,
|
|
/* 620 */ 358, 390, 360, 85, 20, 20, 399, 389, 90, 91,
|
|
/* 630 */ 92, 93, 56, 57, 96, 346, 20, 399, 22, 275,
|
|
/* 640 */ 276, 277, 278, 279, 280, 281, 173, 174, 359, 20,
|
|
/* 650 */ 361, 8, 9, 180, 181, 12, 13, 14, 15, 16,
|
|
/* 660 */ 3, 264, 248, 195, 250, 197, 208, 209, 195, 105,
|
|
/* 670 */ 197, 55, 358, 359, 358, 359, 387, 20, 114, 441,
|
|
/* 680 */ 134, 135, 136, 137, 138, 139, 140, 37, 399, 451,
|
|
/* 690 */ 401, 175, 358, 359, 378, 227, 228, 190, 264, 106,
|
|
/* 700 */ 227, 228, 173, 230, 231, 232, 233, 234, 235, 236,
|
|
/* 710 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
|
|
/* 720 */ 247, 12, 13, 14, 217, 218, 187, 77, 439, 20,
|
|
/* 730 */ 441, 22, 20, 444, 445, 446, 447, 448, 449, 20,
|
|
/* 740 */ 451, 22, 346, 443, 35, 456, 37, 458, 115, 106,
|
|
/* 750 */ 443, 462, 463, 173, 2, 359, 37, 361, 0, 248,
|
|
/* 760 */ 8, 9, 346, 106, 12, 13, 14, 15, 16, 469,
|
|
/* 770 */ 141, 142, 13, 64, 55, 359, 469, 361, 173, 174,
|
|
/* 780 */ 466, 467, 468, 387, 470, 471, 77, 134, 135, 136,
|
|
/* 790 */ 137, 138, 139, 140, 386, 399, 37, 401, 358, 359,
|
|
/* 800 */ 466, 467, 468, 387, 470, 471, 398, 22, 86, 180,
|
|
/* 810 */ 181, 102, 1, 2, 105, 399, 387, 401, 378, 115,
|
|
/* 820 */ 8, 9, 37, 394, 12, 13, 14, 15, 16, 290,
|
|
/* 830 */ 379, 402, 175, 358, 359, 439, 454, 441, 387, 457,
|
|
/* 840 */ 444, 445, 446, 447, 448, 449, 395, 451, 358, 359,
|
|
/* 850 */ 141, 142, 456, 378, 458, 439, 346, 441, 462, 463,
|
|
/* 860 */ 444, 445, 446, 447, 448, 449, 1, 451, 378, 147,
|
|
/* 870 */ 372, 373, 456, 387, 458, 14, 363, 364, 462, 463,
|
|
/* 880 */ 394, 20, 173, 174, 19, 358, 359, 102, 402, 180,
|
|
/* 890 */ 181, 169, 134, 135, 136, 137, 138, 139, 140, 134,
|
|
/* 900 */ 35, 358, 359, 138, 195, 378, 197, 8, 9, 399,
|
|
/* 910 */ 42, 12, 13, 14, 15, 16, 51, 106, 358, 359,
|
|
/* 920 */ 455, 378, 457, 423, 59, 60, 61, 62, 172, 64,
|
|
/* 930 */ 14, 15, 16, 346, 363, 364, 227, 228, 378, 230,
|
|
/* 940 */ 231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
/* 950 */ 241, 242, 243, 244, 245, 246, 247, 12, 13, 50,
|
|
/* 960 */ 3, 346, 0, 470, 77, 20, 473, 22, 387, 104,
|
|
/* 970 */ 470, 358, 107, 473, 359, 394, 361, 358, 359, 4,
|
|
/* 980 */ 35, 4, 37, 402, 491, 379, 399, 175, 495, 496,
|
|
/* 990 */ 490, 491, 0, 387, 19, 495, 496, 378, 358, 359,
|
|
/* 1000 */ 346, 395, 387, 35, 139, 358, 359, 251, 396, 64,
|
|
/* 1010 */ 35, 399, 443, 359, 399, 361, 401, 261, 378, 51,
|
|
/* 1020 */ 33, 346, 77, 365, 411, 378, 51, 59, 60, 61,
|
|
/* 1030 */ 62, 69, 64, 58, 173, 379, 37, 346, 469, 64,
|
|
/* 1040 */ 382, 387, 177, 387, 346, 358, 359, 102, 390, 184,
|
|
/* 1050 */ 105, 395, 22, 399, 439, 401, 441, 372, 373, 444,
|
|
/* 1060 */ 445, 446, 447, 448, 449, 378, 451, 37, 203, 358,
|
|
/* 1070 */ 359, 456, 104, 458, 399, 107, 346, 462, 463, 104,
|
|
/* 1080 */ 77, 346, 107, 346, 175, 346, 141, 142, 346, 378,
|
|
/* 1090 */ 399, 346, 183, 439, 346, 441, 346, 399, 444, 445,
|
|
/* 1100 */ 446, 447, 448, 449, 0, 451, 135, 136, 346, 346,
|
|
/* 1110 */ 456, 140, 458, 358, 359, 383, 462, 463, 173, 174,
|
|
/* 1120 */ 396, 33, 359, 399, 361, 180, 181, 396, 367, 399,
|
|
/* 1130 */ 399, 263, 102, 378, 399, 34, 399, 33, 399, 388,
|
|
/* 1140 */ 195, 399, 197, 13, 399, 177, 178, 399, 70, 399,
|
|
/* 1150 */ 387, 387, 184, 185, 393, 387, 429, 39, 40, 387,
|
|
/* 1160 */ 380, 399, 399, 383, 401, 33, 402, 37, 436, 0,
|
|
/* 1170 */ 402, 203, 227, 228, 402, 230, 231, 232, 233, 234,
|
|
/* 1180 */ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
/* 1190 */ 245, 246, 247, 12, 13, 374, 197, 423, 377, 423,
|
|
/* 1200 */ 37, 20, 439, 22, 441, 349, 350, 444, 445, 446,
|
|
/* 1210 */ 447, 448, 449, 221, 451, 388, 35, 33, 37, 456,
|
|
/* 1220 */ 51, 458, 47, 48, 33, 462, 463, 109, 110, 45,
|
|
/* 1230 */ 112, 262, 263, 0, 115, 0, 45, 346, 106, 0,
|
|
/* 1240 */ 77, 33, 285, 266, 470, 64, 470, 473, 423, 473,
|
|
/* 1250 */ 359, 108, 134, 376, 111, 22, 138, 22, 77, 108,
|
|
/* 1260 */ 108, 22, 111, 111, 490, 491, 490, 491, 388, 495,
|
|
/* 1270 */ 496, 495, 496, 108, 287, 33, 111, 18, 387, 211,
|
|
/* 1280 */ 33, 213, 23, 102, 165, 33, 105, 347, 346, 49,
|
|
/* 1290 */ 399, 388, 401, 33, 33, 470, 141, 142, 473, 40,
|
|
/* 1300 */ 41, 359, 413, 44, 499, 227, 33, 13, 488, 33,
|
|
/* 1310 */ 362, 33, 33, 54, 106, 490, 491, 1, 2, 33,
|
|
/* 1320 */ 495, 496, 141, 142, 65, 66, 67, 68, 33, 387,
|
|
/* 1330 */ 439, 37, 441, 33, 33, 444, 445, 446, 447, 448,
|
|
/* 1340 */ 449, 399, 451, 401, 13, 105, 482, 375, 106, 375,
|
|
/* 1350 */ 387, 422, 362, 106, 173, 174, 33, 33, 106, 33,
|
|
/* 1360 */ 33, 180, 181, 33, 105, 413, 106, 106, 37, 357,
|
|
/* 1370 */ 359, 398, 413, 472, 492, 464, 195, 289, 197, 106,
|
|
/* 1380 */ 489, 439, 106, 441, 106, 106, 444, 445, 446, 447,
|
|
/* 1390 */ 448, 449, 106, 451, 475, 267, 51, 20, 456, 433,
|
|
/* 1400 */ 458, 106, 143, 424, 462, 463, 106, 106, 227, 228,
|
|
/* 1410 */ 440, 230, 231, 232, 233, 234, 235, 236, 237, 238,
|
|
/* 1420 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 106,
|
|
/* 1430 */ 106, 210, 106, 106, 12, 13, 106, 367, 438, 433,
|
|
/* 1440 */ 367, 193, 426, 20, 22, 359, 187, 188, 189, 346,
|
|
/* 1450 */ 45, 192, 408, 20, 413, 359, 408, 35, 405, 37,
|
|
/* 1460 */ 172, 359, 359, 358, 205, 206, 358, 408, 405, 405,
|
|
/* 1470 */ 103, 371, 101, 358, 100, 216, 370, 20, 219, 369,
|
|
/* 1480 */ 358, 222, 223, 224, 225, 226, 64, 358, 351, 358,
|
|
/* 1490 */ 387, 50, 351, 355, 355, 433, 20, 20, 401, 77,
|
|
/* 1500 */ 367, 367, 399, 20, 401, 360, 425, 367, 360, 367,
|
|
/* 1510 */ 20, 416, 358, 367, 367, 351, 367, 214, 358, 399,
|
|
/* 1520 */ 399, 349, 387, 264, 102, 349, 399, 437, 346, 351,
|
|
/* 1530 */ 105, 387, 433, 435, 201, 200, 199, 387, 365, 432,
|
|
/* 1540 */ 387, 359, 439, 387, 441, 387, 387, 444, 445, 446,
|
|
/* 1550 */ 447, 448, 449, 387, 451, 387, 431, 387, 387, 456,
|
|
/* 1560 */ 365, 458, 401, 358, 274, 462, 463, 282, 481, 387,
|
|
/* 1570 */ 273, 186, 481, 399, 481, 284, 484, 483, 399, 283,
|
|
/* 1580 */ 413, 399, 500, 401, 346, 399, 424, 430, 399, 480,
|
|
/* 1590 */ 413, 479, 478, 268, 288, 291, 286, 359, 418, 263,
|
|
/* 1600 */ 359, 418, 20, 115, 265, 494, 493, 178, 365, 424,
|
|
/* 1610 */ 360, 365, 476, 399, 418, 399, 399, 195, 399, 197,
|
|
/* 1620 */ 418, 439, 399, 441, 399, 387, 444, 445, 446, 447,
|
|
/* 1630 */ 448, 449, 414, 451, 365, 346, 443, 399, 456, 401,
|
|
/* 1640 */ 458, 383, 365, 359, 462, 463, 105, 105, 359, 227,
|
|
/* 1650 */ 228, 461, 399, 391, 22, 348, 358, 377, 365, 38,
|
|
/* 1660 */ 346, 474, 240, 241, 242, 243, 244, 245, 246, 352,
|
|
/* 1670 */ 351, 427, 344, 359, 419, 419, 387, 439, 0, 441,
|
|
/* 1680 */ 381, 366, 444, 445, 446, 447, 448, 449, 399, 451,
|
|
/* 1690 */ 401, 453, 381, 381, 0, 0, 0, 434, 45, 37,
|
|
/* 1700 */ 220, 387, 37, 37, 37, 220, 0, 37, 37, 220,
|
|
/* 1710 */ 0, 0, 220, 399, 37, 401, 0, 0, 37, 22,
|
|
/* 1720 */ 215, 0, 203, 0, 203, 197, 204, 195, 439, 0,
|
|
/* 1730 */ 441, 0, 0, 444, 445, 446, 447, 448, 449, 191,
|
|
/* 1740 */ 451, 190, 0, 0, 146, 0, 37, 458, 49, 49,
|
|
/* 1750 */ 0, 462, 463, 439, 51, 441, 346, 49, 444, 445,
|
|
/* 1760 */ 446, 447, 448, 449, 0, 451, 0, 45, 0, 359,
|
|
/* 1770 */ 160, 0, 458, 0, 49, 0, 462, 463, 0, 0,
|
|
/* 1780 */ 0, 346, 0, 0, 37, 160, 0, 0, 0, 0,
|
|
/* 1790 */ 0, 0, 0, 0, 359, 0, 0, 387, 0, 0,
|
|
/* 1800 */ 0, 0, 0, 0, 49, 0, 45, 0, 0, 399,
|
|
/* 1810 */ 0, 401, 346, 0, 0, 0, 22, 0, 146, 0,
|
|
/* 1820 */ 145, 0, 387, 144, 0, 359, 0, 50, 22, 0,
|
|
/* 1830 */ 0, 22, 0, 64, 399, 50, 401, 346, 64, 0,
|
|
/* 1840 */ 64, 37, 0, 0, 0, 0, 0, 186, 37, 439,
|
|
/* 1850 */ 359, 441, 71, 387, 444, 445, 446, 447, 448, 449,
|
|
/* 1860 */ 42, 451, 37, 51, 42, 399, 0, 401, 458, 42,
|
|
/* 1870 */ 37, 51, 462, 463, 439, 14, 441, 42, 387, 444,
|
|
/* 1880 */ 445, 446, 447, 448, 449, 450, 451, 452, 453, 37,
|
|
/* 1890 */ 399, 51, 401, 33, 45, 0, 49, 43, 42, 49,
|
|
/* 1900 */ 49, 0, 0, 0, 42, 439, 346, 441, 49, 0,
|
|
/* 1910 */ 444, 445, 446, 447, 448, 449, 0, 451, 0, 359,
|
|
/* 1920 */ 0, 37, 51, 42, 0, 37, 51, 42, 0, 37,
|
|
/* 1930 */ 439, 51, 441, 42, 0, 444, 445, 446, 447, 448,
|
|
/* 1940 */ 449, 37, 451, 0, 51, 0, 0, 387, 0, 42,
|
|
/* 1950 */ 0, 0, 486, 487, 113, 22, 37, 0, 37, 399,
|
|
/* 1960 */ 37, 401, 37, 37, 111, 33, 37, 37, 37, 33,
|
|
/* 1970 */ 0, 22, 37, 346, 37, 37, 22, 0, 22, 0,
|
|
/* 1980 */ 53, 22, 0, 0, 37, 0, 359, 0, 497, 498,
|
|
/* 1990 */ 37, 0, 37, 22, 20, 37, 106, 346, 37, 439,
|
|
/* 2000 */ 37, 441, 105, 0, 444, 445, 446, 447, 448, 449,
|
|
/* 2010 */ 359, 451, 175, 105, 387, 37, 22, 0, 458, 22,
|
|
/* 2020 */ 0, 0, 3, 463, 262, 202, 399, 269, 401, 198,
|
|
/* 2030 */ 175, 33, 33, 175, 50, 178, 50, 33, 387, 175,
|
|
/* 2040 */ 33, 49, 101, 392, 105, 182, 106, 182, 346, 105,
|
|
/* 2050 */ 399, 49, 401, 269, 3, 103, 33, 33, 49, 37,
|
|
/* 2060 */ 49, 359, 33, 37, 37, 105, 439, 105, 441, 37,
|
|
/* 2070 */ 106, 444, 445, 446, 447, 448, 449, 105, 451, 106,
|
|
/* 2080 */ 346, 106, 106, 37, 37, 105, 0, 106, 0, 387,
|
|
/* 2090 */ 439, 42, 441, 359, 106, 444, 445, 446, 447, 448,
|
|
/* 2100 */ 449, 399, 451, 401, 0, 269, 42, 106, 49, 114,
|
|
/* 2110 */ 105, 105, 33, 105, 487, 105, 346, 103, 106, 106,
|
|
/* 2120 */ 2, 387, 249, 105, 22, 227, 392, 49, 22, 359,
|
|
/* 2130 */ 105, 103, 49, 399, 229, 401, 105, 37, 37, 106,
|
|
/* 2140 */ 105, 439, 106, 441, 179, 177, 444, 445, 446, 447,
|
|
/* 2150 */ 448, 449, 115, 451, 106, 105, 37, 387, 105, 105,
|
|
/* 2160 */ 37, 106, 392, 105, 37, 37, 106, 105, 105, 399,
|
|
/* 2170 */ 105, 401, 106, 439, 106, 441, 106, 105, 444, 445,
|
|
/* 2180 */ 446, 447, 448, 449, 346, 451, 106, 105, 37, 33,
|
|
/* 2190 */ 106, 37, 105, 126, 105, 126, 105, 359, 105, 126,
|
|
/* 2200 */ 498, 126, 22, 71, 70, 37, 37, 37, 37, 439,
|
|
/* 2210 */ 37, 441, 37, 37, 444, 445, 446, 447, 448, 449,
|
|
/* 2220 */ 346, 451, 37, 77, 99, 387, 33, 37, 37, 37,
|
|
/* 2230 */ 392, 22, 37, 359, 37, 346, 37, 399, 77, 401,
|
|
/* 2240 */ 37, 37, 37, 37, 37, 22, 0, 37, 359, 37,
|
|
/* 2250 */ 42, 51, 346, 0, 37, 42, 0, 37, 42, 0,
|
|
/* 2260 */ 0, 387, 51, 42, 37, 359, 51, 37, 37, 51,
|
|
/* 2270 */ 0, 22, 33, 399, 22, 401, 387, 439, 21, 441,
|
|
/* 2280 */ 22, 20, 444, 445, 446, 447, 448, 449, 399, 451,
|
|
/* 2290 */ 401, 22, 21, 387, 501, 501, 501, 501, 501, 501,
|
|
/* 2300 */ 501, 501, 501, 501, 501, 399, 501, 401, 501, 501,
|
|
/* 2310 */ 501, 501, 501, 439, 501, 441, 501, 501, 444, 445,
|
|
/* 2320 */ 446, 447, 448, 449, 501, 451, 501, 501, 439, 501,
|
|
/* 2330 */ 441, 501, 501, 444, 445, 446, 447, 448, 449, 501,
|
|
/* 2340 */ 451, 501, 501, 501, 501, 439, 346, 441, 501, 501,
|
|
/* 2350 */ 444, 445, 446, 447, 448, 449, 501, 451, 501, 359,
|
|
/* 2360 */ 501, 346, 501, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 2370 */ 501, 501, 501, 501, 359, 501, 501, 501, 501, 501,
|
|
/* 2380 */ 501, 501, 501, 501, 501, 346, 501, 387, 501, 501,
|
|
/* 2390 */ 501, 501, 501, 501, 501, 501, 501, 501, 359, 399,
|
|
/* 2400 */ 501, 401, 387, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 2410 */ 501, 501, 501, 501, 399, 501, 401, 501, 501, 501,
|
|
/* 2420 */ 501, 501, 501, 501, 501, 501, 387, 501, 501, 501,
|
|
/* 2430 */ 501, 501, 501, 501, 501, 501, 501, 501, 399, 439,
|
|
/* 2440 */ 401, 441, 501, 501, 444, 445, 446, 447, 448, 449,
|
|
/* 2450 */ 501, 451, 501, 501, 439, 501, 441, 501, 501, 444,
|
|
/* 2460 */ 445, 446, 447, 448, 449, 501, 451, 501, 346, 501,
|
|
/* 2470 */ 501, 501, 501, 501, 501, 501, 501, 501, 439, 501,
|
|
/* 2480 */ 441, 359, 501, 444, 445, 446, 447, 448, 449, 501,
|
|
/* 2490 */ 451, 501, 501, 346, 501, 501, 501, 501, 501, 501,
|
|
/* 2500 */ 501, 501, 501, 501, 346, 501, 359, 501, 501, 387,
|
|
/* 2510 */ 501, 501, 501, 501, 501, 501, 501, 359, 501, 501,
|
|
/* 2520 */ 501, 399, 501, 401, 501, 501, 501, 501, 501, 501,
|
|
/* 2530 */ 501, 501, 501, 501, 387, 501, 501, 501, 501, 501,
|
|
/* 2540 */ 501, 501, 501, 501, 501, 387, 399, 501, 401, 501,
|
|
/* 2550 */ 501, 501, 501, 501, 501, 501, 501, 399, 501, 401,
|
|
/* 2560 */ 501, 439, 501, 441, 501, 501, 444, 445, 446, 447,
|
|
/* 2570 */ 448, 449, 346, 451, 501, 501, 501, 501, 501, 501,
|
|
/* 2580 */ 501, 501, 501, 501, 501, 359, 439, 501, 441, 501,
|
|
/* 2590 */ 501, 444, 445, 446, 447, 448, 449, 439, 451, 441,
|
|
/* 2600 */ 501, 501, 444, 445, 446, 447, 448, 449, 346, 451,
|
|
/* 2610 */ 501, 501, 501, 387, 501, 501, 501, 501, 501, 501,
|
|
/* 2620 */ 501, 359, 501, 346, 501, 399, 501, 401, 501, 501,
|
|
/* 2630 */ 501, 501, 501, 501, 501, 501, 359, 501, 501, 501,
|
|
/* 2640 */ 346, 501, 501, 501, 501, 501, 501, 501, 501, 387,
|
|
/* 2650 */ 501, 501, 501, 359, 501, 501, 501, 501, 501, 501,
|
|
/* 2660 */ 501, 399, 501, 401, 387, 439, 501, 441, 501, 501,
|
|
/* 2670 */ 444, 445, 446, 447, 448, 449, 399, 451, 401, 501,
|
|
/* 2680 */ 501, 387, 501, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 2690 */ 501, 501, 501, 399, 501, 401, 501, 501, 501, 501,
|
|
/* 2700 */ 501, 439, 501, 441, 501, 501, 444, 445, 446, 447,
|
|
/* 2710 */ 448, 449, 501, 451, 501, 501, 439, 501, 441, 501,
|
|
/* 2720 */ 501, 444, 445, 446, 447, 448, 449, 501, 451, 501,
|
|
/* 2730 */ 501, 501, 501, 439, 346, 441, 501, 501, 444, 445,
|
|
/* 2740 */ 446, 447, 448, 449, 501, 451, 501, 359, 501, 346,
|
|
/* 2750 */ 501, 501, 501, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 2760 */ 501, 501, 359, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 2770 */ 501, 501, 501, 346, 501, 387, 501, 501, 501, 501,
|
|
/* 2780 */ 501, 501, 501, 501, 501, 501, 359, 399, 501, 401,
|
|
/* 2790 */ 387, 501, 501, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 2800 */ 501, 501, 399, 501, 401, 501, 501, 501, 501, 501,
|
|
/* 2810 */ 501, 501, 501, 501, 387, 501, 501, 501, 501, 501,
|
|
/* 2820 */ 501, 501, 501, 501, 501, 501, 399, 439, 401, 441,
|
|
/* 2830 */ 501, 501, 444, 445, 446, 447, 448, 449, 501, 451,
|
|
/* 2840 */ 346, 501, 439, 501, 441, 501, 501, 444, 445, 446,
|
|
/* 2850 */ 447, 448, 449, 359, 451, 501, 346, 501, 501, 501,
|
|
/* 2860 */ 501, 501, 501, 501, 501, 501, 439, 501, 441, 359,
|
|
/* 2870 */ 501, 444, 445, 446, 447, 448, 449, 501, 451, 501,
|
|
/* 2880 */ 501, 387, 501, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 2890 */ 501, 501, 501, 399, 501, 401, 501, 387, 501, 501,
|
|
/* 2900 */ 501, 501, 501, 501, 501, 501, 501, 501, 501, 399,
|
|
/* 2910 */ 501, 401, 501, 501, 501, 501, 501, 501, 501, 346,
|
|
/* 2920 */ 501, 501, 501, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 2930 */ 501, 501, 359, 439, 501, 441, 501, 501, 444, 445,
|
|
/* 2940 */ 446, 447, 448, 449, 501, 451, 501, 501, 501, 439,
|
|
/* 2950 */ 346, 441, 501, 501, 444, 445, 446, 447, 448, 449,
|
|
/* 2960 */ 387, 451, 501, 359, 501, 501, 501, 501, 501, 501,
|
|
/* 2970 */ 346, 501, 399, 501, 401, 501, 501, 501, 501, 501,
|
|
/* 2980 */ 501, 501, 501, 359, 501, 501, 501, 346, 501, 501,
|
|
/* 2990 */ 501, 387, 501, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 3000 */ 359, 501, 501, 399, 501, 401, 501, 501, 501, 501,
|
|
/* 3010 */ 501, 387, 439, 501, 441, 501, 501, 444, 445, 446,
|
|
/* 3020 */ 447, 448, 449, 399, 451, 401, 501, 501, 387, 501,
|
|
/* 3030 */ 501, 501, 501, 501, 501, 501, 501, 501, 501, 501,
|
|
/* 3040 */ 399, 501, 401, 439, 501, 441, 501, 501, 444, 445,
|
|
/* 3050 */ 446, 447, 448, 449, 501, 451, 501, 501, 501, 501,
|
|
/* 3060 */ 501, 501, 501, 439, 501, 441, 501, 501, 444, 445,
|
|
/* 3070 */ 446, 447, 448, 449, 501, 451, 501, 501, 501, 501,
|
|
/* 3080 */ 439, 501, 441, 501, 501, 444, 445, 446, 447, 448,
|
|
/* 3090 */ 449, 501, 451, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3100 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3110 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3120 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3130 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3140 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3150 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3160 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3170 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3180 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3190 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3200 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3210 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3220 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3230 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3240 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3250 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3260 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3270 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3280 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3290 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3300 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3310 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3320 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3330 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3340 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3350 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3360 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3370 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3380 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3390 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3400 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3410 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3420 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
|
|
/* 3430 */ 343, 343, 343, 343, 343, 343,
|
|
};
|
|
#define YY_SHIFT_COUNT (815)
|
|
#define YY_SHIFT_MIN (0)
|
|
#define YY_SHIFT_MAX (2271)
|
|
static const unsigned short int yy_shift_ofst[] = {
|
|
/* 0 */ 1259, 0, 236, 0, 473, 473, 473, 473, 473, 473,
|
|
/* 10 */ 473, 473, 473, 473, 473, 473, 709, 945, 945, 1181,
|
|
/* 20 */ 945, 945, 945, 945, 945, 945, 945, 945, 945, 945,
|
|
/* 30 */ 945, 945, 945, 945, 945, 945, 945, 945, 945, 945,
|
|
/* 40 */ 945, 945, 945, 945, 945, 945, 945, 945, 945, 945,
|
|
/* 50 */ 945, 163, 171, 232, 93, 397, 434, 397, 93, 93,
|
|
/* 60 */ 397, 235, 1422, 397, 1422, 1422, 225, 397, 6, 629,
|
|
/* 70 */ 49, 49, 629, 213, 213, 605, 320, 46, 46, 49,
|
|
/* 80 */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 149,
|
|
/* 90 */ 49, 49, 147, 6, 49, 49, 604, 6, 49, 49,
|
|
/* 100 */ 6, 49, 49, 6, 49, 6, 6, 6, 49, 391,
|
|
/* 110 */ 196, 196, 211, 297, 468, 468, 468, 468, 468, 468,
|
|
/* 120 */ 468, 468, 468, 468, 468, 468, 468, 468, 468, 468,
|
|
/* 130 */ 468, 468, 468, 1118, 657, 605, 320, 576, 576, 650,
|
|
/* 140 */ 176, 176, 176, 962, 414, 414, 650, 712, 147, 633,
|
|
/* 150 */ 6, 6, 511, 6, 887, 6, 887, 887, 704, 1003,
|
|
/* 160 */ 1101, 402, 402, 402, 402, 402, 402, 402, 402, 865,
|
|
/* 170 */ 538, 194, 340, 539, 364, 719, 73, 177, 177, 580,
|
|
/* 180 */ 909, 861, 616, 326, 1175, 549, 765, 516, 969, 868,
|
|
/* 190 */ 957, 969, 1184, 977, 529, 1128, 1345, 1377, 1221, 147,
|
|
/* 200 */ 1377, 147, 1248, 1423, 1405, 1433, 1423, 1405, 1288, 712,
|
|
/* 210 */ 1423, 712, 1405, 1288, 1288, 1367, 1371, 712, 1374, 712,
|
|
/* 220 */ 712, 712, 1457, 1441, 1457, 1441, 1377, 147, 1476, 147,
|
|
/* 230 */ 1477, 1483, 147, 1477, 147, 1490, 147, 147, 712, 147,
|
|
/* 240 */ 1457, 6, 6, 6, 6, 6, 6, 6, 6, 6,
|
|
/* 250 */ 6, 6, 712, 1101, 1101, 1457, 887, 887, 887, 1303,
|
|
/* 260 */ 1425, 1377, 391, 1333, 1335, 1476, 391, 1337, 1128, 712,
|
|
/* 270 */ 1433, 1433, 887, 1290, 1297, 887, 1290, 1297, 887, 887,
|
|
/* 280 */ 6, 1285, 1385, 1290, 1291, 1296, 1325, 1128, 1304, 1306,
|
|
/* 290 */ 1310, 1336, 1423, 1582, 1488, 1339, 1477, 391, 391, 1297,
|
|
/* 300 */ 887, 887, 887, 887, 887, 1297, 887, 1429, 391, 704,
|
|
/* 310 */ 391, 1423, 1541, 1542, 887, 1003, 712, 391, 1632, 1621,
|
|
/* 320 */ 1457, 3093, 3093, 3093, 3093, 3093, 3093, 3093, 3093, 3093,
|
|
/* 330 */ 36, 968, 65, 66, 975, 593, 643, 546, 15, 752,
|
|
/* 340 */ 812, 758, 899, 899, 899, 899, 899, 899, 899, 899,
|
|
/* 350 */ 899, 653, 367, 13, 187, 187, 25, 507, 412, 75,
|
|
/* 360 */ 722, 785, 1030, 458, 971, 971, 916, 811, 756, 916,
|
|
/* 370 */ 916, 916, 1169, 992, 1132, 135, 1191, 1119, 1104, 1143,
|
|
/* 380 */ 1151, 1152, 1165, 759, 1130, 1233, 1235, 1239, 1068, 1208,
|
|
/* 390 */ 1242, 272, 1247, 1252, 1260, 1155, 987, 1088, 1261, 1273,
|
|
/* 400 */ 1276, 1278, 1279, 1286, 1316, 1295, 1078, 1300, 1240, 1301,
|
|
/* 410 */ 1323, 1324, 1326, 1327, 1330, 564, 245, 999, 1294, 1331,
|
|
/* 420 */ 1163, 101, 1678, 1694, 1695, 1653, 1696, 1662, 1480, 1665,
|
|
/* 430 */ 1666, 1667, 1485, 1706, 1670, 1671, 1489, 1710, 1492, 1711,
|
|
/* 440 */ 1677, 1716, 1697, 1717, 1681, 1505, 1721, 1519, 1723, 1521,
|
|
/* 450 */ 1522, 1528, 1532, 1729, 1731, 1732, 1548, 1551, 1742, 1743,
|
|
/* 460 */ 1598, 1699, 1700, 1745, 1709, 1703, 1750, 1708, 1764, 1722,
|
|
/* 470 */ 1766, 1768, 1773, 1725, 1775, 1778, 1779, 1780, 1782, 1783,
|
|
/* 480 */ 1610, 1747, 1771, 1625, 1786, 1787, 1788, 1789, 1790, 1791,
|
|
/* 490 */ 1792, 1793, 1795, 1796, 1798, 1799, 1800, 1801, 1802, 1803,
|
|
/* 500 */ 1755, 1805, 1761, 1807, 1808, 1810, 1813, 1814, 1815, 1794,
|
|
/* 510 */ 1817, 1672, 1819, 1675, 1821, 1679, 1824, 1826, 1806, 1777,
|
|
/* 520 */ 1809, 1785, 1829, 1769, 1804, 1830, 1774, 1832, 1776, 1839,
|
|
/* 530 */ 1842, 1811, 1812, 1818, 1843, 1825, 1820, 1822, 1844, 1833,
|
|
/* 540 */ 1840, 1827, 1845, 1852, 1846, 1849, 1835, 1860, 1847, 1850,
|
|
/* 550 */ 1861, 1851, 1866, 1854, 1856, 1895, 1901, 1902, 1862, 1661,
|
|
/* 560 */ 1903, 1847, 1859, 1909, 1916, 1781, 1918, 1920, 1884, 1871,
|
|
/* 570 */ 1881, 1924, 1888, 1875, 1885, 1928, 1892, 1880, 1891, 1934,
|
|
/* 580 */ 1904, 1893, 1907, 1943, 1945, 1946, 1948, 1950, 1951, 1841,
|
|
/* 590 */ 1853, 1919, 1933, 1957, 1921, 1923, 1925, 1926, 1929, 1930,
|
|
/* 600 */ 1931, 1932, 1936, 1935, 1937, 1949, 1938, 1970, 1954, 1977,
|
|
/* 610 */ 1956, 1927, 1979, 1959, 1947, 1982, 1983, 1985, 1953, 1987,
|
|
/* 620 */ 1955, 1991, 1971, 1974, 1958, 1961, 1963, 1890, 1897, 2003,
|
|
/* 630 */ 1837, 1908, 1823, 1978, 1994, 2017, 1831, 1997, 1855, 1857,
|
|
/* 640 */ 2020, 2021, 1858, 1863, 1864, 1865, 2019, 1998, 1758, 1939,
|
|
/* 650 */ 1940, 1944, 1984, 1952, 1986, 1941, 1964, 1999, 2004, 1973,
|
|
/* 660 */ 1960, 1962, 1972, 1975, 2007, 1992, 2002, 1980, 2023, 1784,
|
|
/* 670 */ 1976, 1981, 2051, 2024, 1836, 2022, 2026, 2027, 2032, 2046,
|
|
/* 680 */ 2047, 1988, 2001, 2009, 1762, 2029, 2011, 2086, 2088, 2005,
|
|
/* 690 */ 2049, 2006, 2012, 2013, 2008, 2010, 1965, 2018, 2104, 2064,
|
|
/* 700 */ 1968, 2025, 1995, 1847, 2059, 2079, 2014, 1873, 2028, 2118,
|
|
/* 710 */ 2102, 1898, 2031, 2033, 2035, 2036, 2050, 2048, 2078, 2053,
|
|
/* 720 */ 2054, 2083, 2055, 2106, 1905, 2058, 2037, 2060, 2100, 2101,
|
|
/* 730 */ 2062, 2066, 2119, 2063, 2068, 2123, 2065, 2070, 2127, 2072,
|
|
/* 740 */ 2080, 2128, 2082, 2084, 2151, 2087, 2067, 2069, 2073, 2075,
|
|
/* 750 */ 2089, 2156, 2091, 2154, 2093, 2156, 2156, 2180, 2132, 2134,
|
|
/* 760 */ 2168, 2169, 2170, 2171, 2173, 2175, 2176, 2185, 2146, 2125,
|
|
/* 770 */ 2193, 2190, 2191, 2192, 2209, 2195, 2197, 2199, 2161, 1932,
|
|
/* 780 */ 2203, 1936, 2204, 2205, 2206, 2207, 2223, 2210, 2246, 2212,
|
|
/* 790 */ 2200, 2208, 2253, 2217, 2211, 2213, 2256, 2220, 2215, 2216,
|
|
/* 800 */ 2259, 2227, 2218, 2221, 2260, 2230, 2231, 2270, 2249, 2239,
|
|
/* 810 */ 2252, 2257, 2258, 2269, 2271, 2261,
|
|
};
|
|
#define YY_REDUCE_COUNT (329)
|
|
#define YY_REDUCE_MIN (-452)
|
|
#define YY_REDUCE_MAX (2641)
|
|
static const short yy_reduce_ofst[] = {
|
|
/* 0 */ 71, -301, 141, -26, 289, 396, 416, 615, 654, 763,
|
|
/* 10 */ 942, 1103, 1182, 1289, 1314, 1410, 1435, 1466, 1491, 1560,
|
|
/* 20 */ 1627, -82, 1651, 891, 1702, 1734, 1238, 1770, 1838, 1874,
|
|
/* 30 */ 1889, 1906, 2000, 2015, 2039, 2122, 2147, 2158, 2226, 2262,
|
|
/* 40 */ 2277, 2294, 2388, 2403, 2427, 2494, 2510, 2573, 2604, 2624,
|
|
/* 50 */ 2641, -303, -216, -423, -27, 500, 774, 776, 314, 334,
|
|
/* 60 */ 825, -252, 117, -452, -17, 238, 18, 493, -354, -123,
|
|
/* 70 */ -43, 198, -359, -350, -45, -355, 7, -91, 262, -222,
|
|
/* 80 */ 87, 139, 206, -348, -108, 316, 440, 475, 153, -312,
|
|
/* 90 */ 490, 527, -218, -386, 543, 560, -174, 429, 619, 640,
|
|
/* 100 */ 451, 647, 687, 486, 711, 606, 581, 656, 755, 658,
|
|
/* 110 */ -253, -253, -305, -343, -239, -65, 1, 30, 227, 510,
|
|
/* 120 */ 587, 675, 691, 698, 730, 735, 737, 739, 742, 745,
|
|
/* 130 */ 748, 750, 762, 408, 300, -98, -30, 513, 571, 498,
|
|
/* 140 */ 300, 307, 569, 231, -372, 465, 685, 613, 761, 732,
|
|
/* 150 */ 764, 768, 382, -100, 612, 772, 724, 731, 780, 821,
|
|
/* 160 */ 856, -379, -373, -369, 751, 827, 880, 903, 827, 727,
|
|
/* 170 */ 877, 940, 889, 805, 820, 948, 864, 972, 974, 963,
|
|
/* 180 */ 929, 963, 990, 952, 1012, 1011, 973, 959, 901, 901,
|
|
/* 190 */ 882, 901, 911, 919, 963, 979, 970, 966, 1000, 1070,
|
|
/* 200 */ 1006, 1073, 1016, 1086, 1044, 1041, 1096, 1048, 1053, 1105,
|
|
/* 210 */ 1102, 1108, 1059, 1063, 1064, 1100, 1106, 1115, 1110, 1122,
|
|
/* 220 */ 1129, 1131, 1137, 1138, 1141, 1139, 1062, 1133, 1097, 1134,
|
|
/* 230 */ 1145, 1081, 1140, 1148, 1142, 1095, 1146, 1147, 1154, 1149,
|
|
/* 240 */ 1164, 1135, 1144, 1150, 1153, 1156, 1158, 1159, 1166, 1168,
|
|
/* 250 */ 1170, 1171, 1160, 1172, 1176, 1178, 1120, 1121, 1127, 1090,
|
|
/* 260 */ 1098, 1099, 1173, 1107, 1125, 1161, 1195, 1157, 1162, 1205,
|
|
/* 270 */ 1167, 1177, 1174, 1087, 1180, 1179, 1091, 1183, 1186, 1189,
|
|
/* 280 */ 963, 1092, 1094, 1093, 1109, 1112, 1114, 1185, 1082, 1111,
|
|
/* 290 */ 1113, 901, 1241, 1193, 1136, 1187, 1250, 1243, 1246, 1196,
|
|
/* 300 */ 1214, 1216, 1217, 1219, 1223, 1202, 1225, 1218, 1269, 1258,
|
|
/* 310 */ 1277, 1284, 1190, 1262, 1253, 1280, 1298, 1293, 1307, 1317,
|
|
/* 320 */ 1319, 1244, 1263, 1255, 1256, 1299, 1311, 1312, 1315, 1328,
|
|
};
|
|
static const YYACTIONTYPE yy_default[] = {
|
|
/* 0 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 10 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 20 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 30 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 40 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 50 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 60 */ 2155, 2118, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 70 */ 1827, 1827, 1827, 1827, 1827, 2125, 1827, 1827, 1827, 1827,
|
|
/* 80 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 90 */ 1827, 1827, 1923, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 100 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1921,
|
|
/* 110 */ 2347, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 120 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 130 */ 1827, 1827, 1827, 1827, 2359, 1827, 1827, 1897, 1897, 1827,
|
|
/* 140 */ 2359, 2359, 2359, 1921, 2319, 2319, 1827, 2112, 1923, 2189,
|
|
/* 150 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 2043, 1827,
|
|
/* 160 */ 1857, 1827, 1827, 1827, 1827, 2067, 1827, 1827, 1827, 2181,
|
|
/* 170 */ 1827, 1827, 2388, 2445, 1827, 1827, 2391, 1827, 1827, 1827,
|
|
/* 180 */ 1827, 1827, 1827, 2130, 1827, 1827, 1996, 2378, 2351, 2365,
|
|
/* 190 */ 2429, 2352, 2349, 2372, 1827, 2382, 1827, 1827, 2203, 1923,
|
|
/* 200 */ 1827, 1923, 2168, 1827, 2123, 1827, 1827, 2123, 2120, 1827,
|
|
/* 210 */ 1827, 1827, 2123, 2120, 2120, 1985, 1981, 1827, 1979, 1827,
|
|
/* 220 */ 1827, 1827, 1827, 1881, 1827, 1881, 1827, 1923, 1827, 1923,
|
|
/* 230 */ 1827, 1827, 1923, 1827, 1923, 1827, 1923, 1923, 1827, 1923,
|
|
/* 240 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 250 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 2201,
|
|
/* 260 */ 2187, 1827, 1921, 2179, 2177, 1827, 1921, 2175, 2382, 1827,
|
|
/* 270 */ 1827, 1827, 1827, 2399, 2397, 1827, 2399, 2397, 1827, 1827,
|
|
/* 280 */ 1827, 2413, 2409, 2399, 2418, 2415, 2384, 2382, 2448, 2435,
|
|
/* 290 */ 2431, 2365, 1827, 1827, 2370, 2368, 1827, 1921, 1921, 2397,
|
|
/* 300 */ 1827, 1827, 1827, 1827, 1827, 2397, 1827, 1827, 1921, 1827,
|
|
/* 310 */ 1921, 1827, 1827, 2012, 1827, 1827, 1827, 1921, 1827, 1866,
|
|
/* 320 */ 1827, 2170, 2192, 2151, 2151, 2046, 2046, 2046, 1924, 1832,
|
|
/* 330 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 340 */ 1827, 1827, 2412, 2411, 2274, 1827, 2323, 2322, 2321, 2312,
|
|
/* 350 */ 2273, 2008, 1827, 1827, 2272, 2271, 1827, 1827, 1827, 1827,
|
|
/* 360 */ 1827, 1827, 1827, 1827, 2142, 2141, 2265, 1827, 1827, 2266,
|
|
/* 370 */ 2264, 2263, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 380 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 390 */ 1827, 1827, 1827, 1827, 1827, 1827, 2432, 2436, 1827, 1827,
|
|
/* 400 */ 1827, 1827, 1827, 1827, 2348, 1827, 1827, 1827, 2247, 1827,
|
|
/* 410 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 420 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 430 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 440 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 450 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 460 */ 2119, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 470 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 480 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 490 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 500 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 510 */ 1827, 1827, 1827, 1827, 1827, 2134, 1827, 1827, 1827, 1827,
|
|
/* 520 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 530 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 540 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1871, 2252, 1827,
|
|
/* 550 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 560 */ 1827, 2255, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 570 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 580 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 590 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 600 */ 1827, 1962, 1961, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 610 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 620 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 2256, 1827, 1827,
|
|
/* 630 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 640 */ 1827, 1827, 1827, 1827, 1827, 1827, 2428, 2385, 1827, 1827,
|
|
/* 650 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 660 */ 1827, 1827, 1827, 1827, 1827, 1827, 2247, 1827, 2410, 1827,
|
|
/* 670 */ 1827, 2426, 1827, 2430, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 680 */ 1827, 2358, 2354, 1827, 1827, 2350, 1827, 1827, 1827, 1827,
|
|
/* 690 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 700 */ 1827, 1827, 1827, 2246, 1827, 2309, 1827, 1827, 1827, 2343,
|
|
/* 710 */ 1827, 1827, 2294, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 720 */ 1827, 1827, 2256, 1827, 2259, 1827, 1827, 1827, 1827, 1827,
|
|
/* 730 */ 2040, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 740 */ 1827, 1827, 1827, 1827, 1827, 1827, 2024, 2022, 2021, 2020,
|
|
/* 750 */ 1827, 2053, 1827, 1827, 1827, 2049, 2048, 1827, 1827, 1827,
|
|
/* 760 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 770 */ 1942, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1934,
|
|
/* 780 */ 1827, 1933, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 790 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827,
|
|
/* 800 */ 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1827, 1856,
|
|
/* 810 */ 1827, 1827, 1827, 1827, 1827, 1827,
|
|
};
|
|
/********** End of lemon-generated parsing tables *****************************/
|
|
|
|
/* The next table maps tokens (terminal symbols) into fallback tokens.
|
|
** If a construct like the following:
|
|
**
|
|
** %fallback ID X Y Z.
|
|
**
|
|
** appears in the grammar, then ID becomes a fallback token for X, Y,
|
|
** and Z. Whenever one of the tokens X, Y, or Z is input to the parser
|
|
** but it does not parse, the type of the token is changed to ID and
|
|
** the parse is retried before an error is thrown.
|
|
**
|
|
** This feature can be used, for example, to cause some keywords in a language
|
|
** to revert to identifiers if they keyword does not apply in the context where
|
|
** it appears.
|
|
*/
|
|
#ifdef YYFALLBACK
|
|
static const YYCODETYPE yyFallback[] = {
|
|
0, /* $ => nothing */
|
|
0, /* OR => nothing */
|
|
0, /* AND => nothing */
|
|
0, /* UNION => nothing */
|
|
0, /* ALL => nothing */
|
|
0, /* MINUS => nothing */
|
|
0, /* EXCEPT => nothing */
|
|
0, /* INTERSECT => nothing */
|
|
0, /* NK_BITAND => nothing */
|
|
0, /* NK_BITOR => nothing */
|
|
0, /* NK_LSHIFT => nothing */
|
|
0, /* NK_RSHIFT => nothing */
|
|
0, /* NK_PLUS => nothing */
|
|
0, /* NK_MINUS => nothing */
|
|
0, /* NK_STAR => nothing */
|
|
0, /* NK_SLASH => nothing */
|
|
0, /* NK_REM => nothing */
|
|
0, /* NK_CONCAT => nothing */
|
|
0, /* CREATE => nothing */
|
|
0, /* ACCOUNT => nothing */
|
|
0, /* NK_ID => nothing */
|
|
0, /* PASS => nothing */
|
|
0, /* NK_STRING => nothing */
|
|
0, /* ALTER => nothing */
|
|
0, /* PPS => nothing */
|
|
0, /* TSERIES => nothing */
|
|
0, /* STORAGE => nothing */
|
|
0, /* STREAMS => nothing */
|
|
0, /* QTIME => nothing */
|
|
0, /* DBS => nothing */
|
|
0, /* USERS => nothing */
|
|
0, /* CONNS => nothing */
|
|
0, /* STATE => nothing */
|
|
0, /* NK_COMMA => nothing */
|
|
0, /* HOST => nothing */
|
|
0, /* USER => nothing */
|
|
0, /* ENABLE => nothing */
|
|
0, /* NK_INTEGER => nothing */
|
|
0, /* SYSINFO => nothing */
|
|
0, /* ADD => nothing */
|
|
0, /* DROP => nothing */
|
|
0, /* GRANT => nothing */
|
|
0, /* ON => nothing */
|
|
0, /* TO => nothing */
|
|
0, /* REVOKE => nothing */
|
|
0, /* FROM => nothing */
|
|
0, /* SUBSCRIBE => nothing */
|
|
0, /* READ => nothing */
|
|
0, /* WRITE => nothing */
|
|
0, /* NK_DOT => nothing */
|
|
0, /* WITH => nothing */
|
|
0, /* DNODE => nothing */
|
|
0, /* PORT => nothing */
|
|
0, /* DNODES => nothing */
|
|
0, /* RESTORE => nothing */
|
|
0, /* NK_IPTOKEN => nothing */
|
|
0, /* FORCE => nothing */
|
|
0, /* UNSAFE => nothing */
|
|
0, /* LOCAL => nothing */
|
|
0, /* QNODE => nothing */
|
|
0, /* BNODE => nothing */
|
|
0, /* SNODE => nothing */
|
|
0, /* MNODE => nothing */
|
|
0, /* VNODE => nothing */
|
|
0, /* DATABASE => nothing */
|
|
0, /* USE => nothing */
|
|
0, /* FLUSH => nothing */
|
|
0, /* TRIM => nothing */
|
|
0, /* COMPACT => nothing */
|
|
0, /* IF => nothing */
|
|
0, /* NOT => nothing */
|
|
0, /* EXISTS => nothing */
|
|
0, /* BUFFER => nothing */
|
|
0, /* CACHEMODEL => nothing */
|
|
0, /* CACHESIZE => nothing */
|
|
0, /* COMP => nothing */
|
|
0, /* DURATION => nothing */
|
|
0, /* NK_VARIABLE => nothing */
|
|
0, /* MAXROWS => nothing */
|
|
0, /* MINROWS => nothing */
|
|
0, /* KEEP => nothing */
|
|
0, /* PAGES => nothing */
|
|
0, /* PAGESIZE => nothing */
|
|
0, /* TSDB_PAGESIZE => nothing */
|
|
0, /* PRECISION => nothing */
|
|
0, /* REPLICA => nothing */
|
|
0, /* VGROUPS => nothing */
|
|
0, /* SINGLE_STABLE => nothing */
|
|
0, /* RETENTIONS => nothing */
|
|
0, /* SCHEMALESS => nothing */
|
|
0, /* WAL_LEVEL => nothing */
|
|
0, /* WAL_FSYNC_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_SIZE => nothing */
|
|
0, /* WAL_ROLL_PERIOD => nothing */
|
|
0, /* WAL_SEGMENT_SIZE => nothing */
|
|
0, /* STT_TRIGGER => nothing */
|
|
0, /* TABLE_PREFIX => nothing */
|
|
0, /* TABLE_SUFFIX => nothing */
|
|
0, /* NK_COLON => nothing */
|
|
0, /* BWLIMIT => nothing */
|
|
0, /* START => nothing */
|
|
0, /* TIMESTAMP => nothing */
|
|
292, /* 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 */
|
|
292, /* AFTER => ABORT */
|
|
292, /* ATTACH => ABORT */
|
|
292, /* BEFORE => ABORT */
|
|
292, /* BEGIN => ABORT */
|
|
292, /* BITAND => ABORT */
|
|
292, /* BITNOT => ABORT */
|
|
292, /* BITOR => ABORT */
|
|
292, /* BLOCKS => ABORT */
|
|
292, /* CHANGE => ABORT */
|
|
292, /* COMMA => ABORT */
|
|
292, /* CONCAT => ABORT */
|
|
292, /* CONFLICT => ABORT */
|
|
292, /* COPY => ABORT */
|
|
292, /* DEFERRED => ABORT */
|
|
292, /* DELIMITERS => ABORT */
|
|
292, /* DETACH => ABORT */
|
|
292, /* DIVIDE => ABORT */
|
|
292, /* DOT => ABORT */
|
|
292, /* EACH => ABORT */
|
|
292, /* FAIL => ABORT */
|
|
292, /* FILE => ABORT */
|
|
292, /* FOR => ABORT */
|
|
292, /* GLOB => ABORT */
|
|
292, /* ID => ABORT */
|
|
292, /* IMMEDIATE => ABORT */
|
|
292, /* IMPORT => ABORT */
|
|
292, /* INITIALLY => ABORT */
|
|
292, /* INSTEAD => ABORT */
|
|
292, /* ISNULL => ABORT */
|
|
292, /* KEY => ABORT */
|
|
292, /* MODULES => ABORT */
|
|
292, /* NK_BITNOT => ABORT */
|
|
292, /* NK_SEMI => ABORT */
|
|
292, /* NOTNULL => ABORT */
|
|
292, /* OF => ABORT */
|
|
292, /* PLUS => ABORT */
|
|
292, /* PRIVILEGE => ABORT */
|
|
292, /* RAISE => ABORT */
|
|
292, /* RESTRICT => ABORT */
|
|
292, /* ROW => ABORT */
|
|
292, /* SEMI => ABORT */
|
|
292, /* STAR => ABORT */
|
|
292, /* STATEMENT => ABORT */
|
|
292, /* STRICT => ABORT */
|
|
292, /* STRING => ABORT */
|
|
292, /* TIMES => ABORT */
|
|
292, /* VALUES => ABORT */
|
|
292, /* VARIABLE => ABORT */
|
|
292, /* VIEW => ABORT */
|
|
292, /* WAL => ABORT */
|
|
};
|
|
#endif /* YYFALLBACK */
|
|
|
|
/* The following structure represents a single element of the
|
|
** parser's stack. Information stored includes:
|
|
**
|
|
** + The state number for the parser at this level of the stack.
|
|
**
|
|
** + The value of the token stored at this level of the stack.
|
|
** (In other words, the "major" token.)
|
|
**
|
|
** + The semantic value stored at this level of the stack. This is
|
|
** the information used by the action routines in the grammar.
|
|
** It is sometimes called the "minor" token.
|
|
**
|
|
** After the "shift" half of a SHIFTREDUCE action, the stateno field
|
|
** actually contains the reduce action for the second half of the
|
|
** SHIFTREDUCE.
|
|
*/
|
|
struct yyStackEntry {
|
|
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
|
|
YYCODETYPE major; /* The major token value. This is the code
|
|
** number for the token at this stack level */
|
|
YYMINORTYPE minor; /* The user-supplied minor token value. This
|
|
** is the value of the token */
|
|
};
|
|
typedef struct yyStackEntry yyStackEntry;
|
|
|
|
/* The state of the parser is completely contained in an instance of
|
|
** the following structure */
|
|
struct yyParser {
|
|
yyStackEntry *yytos; /* Pointer to top element of the stack */
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
int yyhwm; /* High-water mark of the stack */
|
|
#endif
|
|
#ifndef YYNOERRORRECOVERY
|
|
int yyerrcnt; /* Shifts left before out of the error */
|
|
#endif
|
|
ParseARG_SDECL /* A place to hold %extra_argument */
|
|
ParseCTX_SDECL /* A place to hold %extra_context */
|
|
#if YYSTACKDEPTH<=0
|
|
int yystksz; /* Current side of the stack */
|
|
yyStackEntry *yystack; /* The parser's stack */
|
|
yyStackEntry yystk0; /* First stack entry */
|
|
#else
|
|
yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
|
|
yyStackEntry *yystackEnd; /* Last entry in the stack */
|
|
#endif
|
|
};
|
|
typedef struct yyParser yyParser;
|
|
|
|
#include <assert.h>
|
|
#ifndef NDEBUG
|
|
#include <stdio.h>
|
|
static FILE *yyTraceFILE = 0;
|
|
static char *yyTracePrompt = 0;
|
|
#endif /* NDEBUG */
|
|
|
|
#ifndef NDEBUG
|
|
/*
|
|
** Turn parser tracing on by giving a stream to which to write the trace
|
|
** and a prompt to preface each trace message. Tracing is turned off
|
|
** by making either argument NULL
|
|
**
|
|
** Inputs:
|
|
** <ul>
|
|
** <li> A FILE* to which trace output should be written.
|
|
** If NULL, then tracing is turned off.
|
|
** <li> A prefix string written at the beginning of every
|
|
** line of trace output. If NULL, then tracing is
|
|
** turned off.
|
|
** </ul>
|
|
**
|
|
** Outputs:
|
|
** None.
|
|
*/
|
|
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
|
|
yyTraceFILE = TraceFILE;
|
|
yyTracePrompt = zTracePrompt;
|
|
if( yyTraceFILE==0 ) yyTracePrompt = 0;
|
|
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
|
|
}
|
|
#endif /* NDEBUG */
|
|
|
|
#if defined(YYCOVERAGE) || !defined(NDEBUG)
|
|
/* For tracing shifts, the names of all terminals and nonterminals
|
|
** are required. The following table supplies these names */
|
|
static const char *const yyTokenName[] = {
|
|
/* 0 */ "$",
|
|
/* 1 */ "OR",
|
|
/* 2 */ "AND",
|
|
/* 3 */ "UNION",
|
|
/* 4 */ "ALL",
|
|
/* 5 */ "MINUS",
|
|
/* 6 */ "EXCEPT",
|
|
/* 7 */ "INTERSECT",
|
|
/* 8 */ "NK_BITAND",
|
|
/* 9 */ "NK_BITOR",
|
|
/* 10 */ "NK_LSHIFT",
|
|
/* 11 */ "NK_RSHIFT",
|
|
/* 12 */ "NK_PLUS",
|
|
/* 13 */ "NK_MINUS",
|
|
/* 14 */ "NK_STAR",
|
|
/* 15 */ "NK_SLASH",
|
|
/* 16 */ "NK_REM",
|
|
/* 17 */ "NK_CONCAT",
|
|
/* 18 */ "CREATE",
|
|
/* 19 */ "ACCOUNT",
|
|
/* 20 */ "NK_ID",
|
|
/* 21 */ "PASS",
|
|
/* 22 */ "NK_STRING",
|
|
/* 23 */ "ALTER",
|
|
/* 24 */ "PPS",
|
|
/* 25 */ "TSERIES",
|
|
/* 26 */ "STORAGE",
|
|
/* 27 */ "STREAMS",
|
|
/* 28 */ "QTIME",
|
|
/* 29 */ "DBS",
|
|
/* 30 */ "USERS",
|
|
/* 31 */ "CONNS",
|
|
/* 32 */ "STATE",
|
|
/* 33 */ "NK_COMMA",
|
|
/* 34 */ "HOST",
|
|
/* 35 */ "USER",
|
|
/* 36 */ "ENABLE",
|
|
/* 37 */ "NK_INTEGER",
|
|
/* 38 */ "SYSINFO",
|
|
/* 39 */ "ADD",
|
|
/* 40 */ "DROP",
|
|
/* 41 */ "GRANT",
|
|
/* 42 */ "ON",
|
|
/* 43 */ "TO",
|
|
/* 44 */ "REVOKE",
|
|
/* 45 */ "FROM",
|
|
/* 46 */ "SUBSCRIBE",
|
|
/* 47 */ "READ",
|
|
/* 48 */ "WRITE",
|
|
/* 49 */ "NK_DOT",
|
|
/* 50 */ "WITH",
|
|
/* 51 */ "DNODE",
|
|
/* 52 */ "PORT",
|
|
/* 53 */ "DNODES",
|
|
/* 54 */ "RESTORE",
|
|
/* 55 */ "NK_IPTOKEN",
|
|
/* 56 */ "FORCE",
|
|
/* 57 */ "UNSAFE",
|
|
/* 58 */ "LOCAL",
|
|
/* 59 */ "QNODE",
|
|
/* 60 */ "BNODE",
|
|
/* 61 */ "SNODE",
|
|
/* 62 */ "MNODE",
|
|
/* 63 */ "VNODE",
|
|
/* 64 */ "DATABASE",
|
|
/* 65 */ "USE",
|
|
/* 66 */ "FLUSH",
|
|
/* 67 */ "TRIM",
|
|
/* 68 */ "COMPACT",
|
|
/* 69 */ "IF",
|
|
/* 70 */ "NOT",
|
|
/* 71 */ "EXISTS",
|
|
/* 72 */ "BUFFER",
|
|
/* 73 */ "CACHEMODEL",
|
|
/* 74 */ "CACHESIZE",
|
|
/* 75 */ "COMP",
|
|
/* 76 */ "DURATION",
|
|
/* 77 */ "NK_VARIABLE",
|
|
/* 78 */ "MAXROWS",
|
|
/* 79 */ "MINROWS",
|
|
/* 80 */ "KEEP",
|
|
/* 81 */ "PAGES",
|
|
/* 82 */ "PAGESIZE",
|
|
/* 83 */ "TSDB_PAGESIZE",
|
|
/* 84 */ "PRECISION",
|
|
/* 85 */ "REPLICA",
|
|
/* 86 */ "VGROUPS",
|
|
/* 87 */ "SINGLE_STABLE",
|
|
/* 88 */ "RETENTIONS",
|
|
/* 89 */ "SCHEMALESS",
|
|
/* 90 */ "WAL_LEVEL",
|
|
/* 91 */ "WAL_FSYNC_PERIOD",
|
|
/* 92 */ "WAL_RETENTION_PERIOD",
|
|
/* 93 */ "WAL_RETENTION_SIZE",
|
|
/* 94 */ "WAL_ROLL_PERIOD",
|
|
/* 95 */ "WAL_SEGMENT_SIZE",
|
|
/* 96 */ "STT_TRIGGER",
|
|
/* 97 */ "TABLE_PREFIX",
|
|
/* 98 */ "TABLE_SUFFIX",
|
|
/* 99 */ "NK_COLON",
|
|
/* 100 */ "BWLIMIT",
|
|
/* 101 */ "START",
|
|
/* 102 */ "TIMESTAMP",
|
|
/* 103 */ "END",
|
|
/* 104 */ "TABLE",
|
|
/* 105 */ "NK_LP",
|
|
/* 106 */ "NK_RP",
|
|
/* 107 */ "STABLE",
|
|
/* 108 */ "COLUMN",
|
|
/* 109 */ "MODIFY",
|
|
/* 110 */ "RENAME",
|
|
/* 111 */ "TAG",
|
|
/* 112 */ "SET",
|
|
/* 113 */ "NK_EQ",
|
|
/* 114 */ "USING",
|
|
/* 115 */ "TAGS",
|
|
/* 116 */ "BOOL",
|
|
/* 117 */ "TINYINT",
|
|
/* 118 */ "SMALLINT",
|
|
/* 119 */ "INT",
|
|
/* 120 */ "INTEGER",
|
|
/* 121 */ "BIGINT",
|
|
/* 122 */ "FLOAT",
|
|
/* 123 */ "DOUBLE",
|
|
/* 124 */ "BINARY",
|
|
/* 125 */ "NCHAR",
|
|
/* 126 */ "UNSIGNED",
|
|
/* 127 */ "JSON",
|
|
/* 128 */ "VARCHAR",
|
|
/* 129 */ "MEDIUMBLOB",
|
|
/* 130 */ "BLOB",
|
|
/* 131 */ "VARBINARY",
|
|
/* 132 */ "GEOMETRY",
|
|
/* 133 */ "DECIMAL",
|
|
/* 134 */ "COMMENT",
|
|
/* 135 */ "MAX_DELAY",
|
|
/* 136 */ "WATERMARK",
|
|
/* 137 */ "ROLLUP",
|
|
/* 138 */ "TTL",
|
|
/* 139 */ "SMA",
|
|
/* 140 */ "DELETE_MARK",
|
|
/* 141 */ "FIRST",
|
|
/* 142 */ "LAST",
|
|
/* 143 */ "SHOW",
|
|
/* 144 */ "PRIVILEGES",
|
|
/* 145 */ "DATABASES",
|
|
/* 146 */ "TABLES",
|
|
/* 147 */ "STABLES",
|
|
/* 148 */ "MNODES",
|
|
/* 149 */ "QNODES",
|
|
/* 150 */ "FUNCTIONS",
|
|
/* 151 */ "INDEXES",
|
|
/* 152 */ "ACCOUNTS",
|
|
/* 153 */ "APPS",
|
|
/* 154 */ "CONNECTIONS",
|
|
/* 155 */ "LICENCES",
|
|
/* 156 */ "GRANTS",
|
|
/* 157 */ "QUERIES",
|
|
/* 158 */ "SCORES",
|
|
/* 159 */ "TOPICS",
|
|
/* 160 */ "VARIABLES",
|
|
/* 161 */ "CLUSTER",
|
|
/* 162 */ "BNODES",
|
|
/* 163 */ "SNODES",
|
|
/* 164 */ "TRANSACTIONS",
|
|
/* 165 */ "DISTRIBUTED",
|
|
/* 166 */ "CONSUMERS",
|
|
/* 167 */ "SUBSCRIPTIONS",
|
|
/* 168 */ "VNODES",
|
|
/* 169 */ "ALIVE",
|
|
/* 170 */ "NORMAL",
|
|
/* 171 */ "CHILD",
|
|
/* 172 */ "LIKE",
|
|
/* 173 */ "TBNAME",
|
|
/* 174 */ "QTAGS",
|
|
/* 175 */ "AS",
|
|
/* 176 */ "SYSTEM",
|
|
/* 177 */ "INDEX",
|
|
/* 178 */ "FUNCTION",
|
|
/* 179 */ "INTERVAL",
|
|
/* 180 */ "COUNT",
|
|
/* 181 */ "LAST_ROW",
|
|
/* 182 */ "META",
|
|
/* 183 */ "ONLY",
|
|
/* 184 */ "TOPIC",
|
|
/* 185 */ "CONSUMER",
|
|
/* 186 */ "GROUP",
|
|
/* 187 */ "DESC",
|
|
/* 188 */ "DESCRIBE",
|
|
/* 189 */ "RESET",
|
|
/* 190 */ "QUERY",
|
|
/* 191 */ "CACHE",
|
|
/* 192 */ "EXPLAIN",
|
|
/* 193 */ "ANALYZE",
|
|
/* 194 */ "VERBOSE",
|
|
/* 195 */ "NK_BOOL",
|
|
/* 196 */ "RATIO",
|
|
/* 197 */ "NK_FLOAT",
|
|
/* 198 */ "OUTPUTTYPE",
|
|
/* 199 */ "AGGREGATE",
|
|
/* 200 */ "BUFSIZE",
|
|
/* 201 */ "LANGUAGE",
|
|
/* 202 */ "REPLACE",
|
|
/* 203 */ "STREAM",
|
|
/* 204 */ "INTO",
|
|
/* 205 */ "PAUSE",
|
|
/* 206 */ "RESUME",
|
|
/* 207 */ "TRIGGER",
|
|
/* 208 */ "AT_ONCE",
|
|
/* 209 */ "WINDOW_CLOSE",
|
|
/* 210 */ "IGNORE",
|
|
/* 211 */ "EXPIRED",
|
|
/* 212 */ "FILL_HISTORY",
|
|
/* 213 */ "UPDATE",
|
|
/* 214 */ "SUBTABLE",
|
|
/* 215 */ "UNTREATED",
|
|
/* 216 */ "KILL",
|
|
/* 217 */ "CONNECTION",
|
|
/* 218 */ "TRANSACTION",
|
|
/* 219 */ "BALANCE",
|
|
/* 220 */ "VGROUP",
|
|
/* 221 */ "LEADER",
|
|
/* 222 */ "MERGE",
|
|
/* 223 */ "REDISTRIBUTE",
|
|
/* 224 */ "SPLIT",
|
|
/* 225 */ "DELETE",
|
|
/* 226 */ "INSERT",
|
|
/* 227 */ "NULL",
|
|
/* 228 */ "NK_QUESTION",
|
|
/* 229 */ "NK_ARROW",
|
|
/* 230 */ "ROWTS",
|
|
/* 231 */ "QSTART",
|
|
/* 232 */ "QEND",
|
|
/* 233 */ "QDURATION",
|
|
/* 234 */ "WSTART",
|
|
/* 235 */ "WEND",
|
|
/* 236 */ "WDURATION",
|
|
/* 237 */ "IROWTS",
|
|
/* 238 */ "ISFILLED",
|
|
/* 239 */ "CAST",
|
|
/* 240 */ "NOW",
|
|
/* 241 */ "TODAY",
|
|
/* 242 */ "TIMEZONE",
|
|
/* 243 */ "CLIENT_VERSION",
|
|
/* 244 */ "SERVER_VERSION",
|
|
/* 245 */ "SERVER_STATUS",
|
|
/* 246 */ "CURRENT_USER",
|
|
/* 247 */ "CASE",
|
|
/* 248 */ "WHEN",
|
|
/* 249 */ "THEN",
|
|
/* 250 */ "ELSE",
|
|
/* 251 */ "BETWEEN",
|
|
/* 252 */ "IS",
|
|
/* 253 */ "NK_LT",
|
|
/* 254 */ "NK_GT",
|
|
/* 255 */ "NK_LE",
|
|
/* 256 */ "NK_GE",
|
|
/* 257 */ "NK_NE",
|
|
/* 258 */ "MATCH",
|
|
/* 259 */ "NMATCH",
|
|
/* 260 */ "CONTAINS",
|
|
/* 261 */ "IN",
|
|
/* 262 */ "JOIN",
|
|
/* 263 */ "INNER",
|
|
/* 264 */ "SELECT",
|
|
/* 265 */ "NK_HINT",
|
|
/* 266 */ "DISTINCT",
|
|
/* 267 */ "WHERE",
|
|
/* 268 */ "PARTITION",
|
|
/* 269 */ "BY",
|
|
/* 270 */ "SESSION",
|
|
/* 271 */ "STATE_WINDOW",
|
|
/* 272 */ "EVENT_WINDOW",
|
|
/* 273 */ "SLIDING",
|
|
/* 274 */ "FILL",
|
|
/* 275 */ "VALUE",
|
|
/* 276 */ "VALUE_F",
|
|
/* 277 */ "NONE",
|
|
/* 278 */ "PREV",
|
|
/* 279 */ "NULL_F",
|
|
/* 280 */ "LINEAR",
|
|
/* 281 */ "NEXT",
|
|
/* 282 */ "HAVING",
|
|
/* 283 */ "RANGE",
|
|
/* 284 */ "EVERY",
|
|
/* 285 */ "ORDER",
|
|
/* 286 */ "SLIMIT",
|
|
/* 287 */ "SOFFSET",
|
|
/* 288 */ "LIMIT",
|
|
/* 289 */ "OFFSET",
|
|
/* 290 */ "ASC",
|
|
/* 291 */ "NULLS",
|
|
/* 292 */ "ABORT",
|
|
/* 293 */ "AFTER",
|
|
/* 294 */ "ATTACH",
|
|
/* 295 */ "BEFORE",
|
|
/* 296 */ "BEGIN",
|
|
/* 297 */ "BITAND",
|
|
/* 298 */ "BITNOT",
|
|
/* 299 */ "BITOR",
|
|
/* 300 */ "BLOCKS",
|
|
/* 301 */ "CHANGE",
|
|
/* 302 */ "COMMA",
|
|
/* 303 */ "CONCAT",
|
|
/* 304 */ "CONFLICT",
|
|
/* 305 */ "COPY",
|
|
/* 306 */ "DEFERRED",
|
|
/* 307 */ "DELIMITERS",
|
|
/* 308 */ "DETACH",
|
|
/* 309 */ "DIVIDE",
|
|
/* 310 */ "DOT",
|
|
/* 311 */ "EACH",
|
|
/* 312 */ "FAIL",
|
|
/* 313 */ "FILE",
|
|
/* 314 */ "FOR",
|
|
/* 315 */ "GLOB",
|
|
/* 316 */ "ID",
|
|
/* 317 */ "IMMEDIATE",
|
|
/* 318 */ "IMPORT",
|
|
/* 319 */ "INITIALLY",
|
|
/* 320 */ "INSTEAD",
|
|
/* 321 */ "ISNULL",
|
|
/* 322 */ "KEY",
|
|
/* 323 */ "MODULES",
|
|
/* 324 */ "NK_BITNOT",
|
|
/* 325 */ "NK_SEMI",
|
|
/* 326 */ "NOTNULL",
|
|
/* 327 */ "OF",
|
|
/* 328 */ "PLUS",
|
|
/* 329 */ "PRIVILEGE",
|
|
/* 330 */ "RAISE",
|
|
/* 331 */ "RESTRICT",
|
|
/* 332 */ "ROW",
|
|
/* 333 */ "SEMI",
|
|
/* 334 */ "STAR",
|
|
/* 335 */ "STATEMENT",
|
|
/* 336 */ "STRICT",
|
|
/* 337 */ "STRING",
|
|
/* 338 */ "TIMES",
|
|
/* 339 */ "VALUES",
|
|
/* 340 */ "VARIABLE",
|
|
/* 341 */ "VIEW",
|
|
/* 342 */ "WAL",
|
|
/* 343 */ "cmd",
|
|
/* 344 */ "account_options",
|
|
/* 345 */ "alter_account_options",
|
|
/* 346 */ "literal",
|
|
/* 347 */ "alter_account_option",
|
|
/* 348 */ "ip_range_list",
|
|
/* 349 */ "white_list",
|
|
/* 350 */ "white_list_opt",
|
|
/* 351 */ "user_name",
|
|
/* 352 */ "sysinfo_opt",
|
|
/* 353 */ "privileges",
|
|
/* 354 */ "priv_level",
|
|
/* 355 */ "with_opt",
|
|
/* 356 */ "priv_type_list",
|
|
/* 357 */ "priv_type",
|
|
/* 358 */ "db_name",
|
|
/* 359 */ "table_name",
|
|
/* 360 */ "topic_name",
|
|
/* 361 */ "search_condition",
|
|
/* 362 */ "dnode_endpoint",
|
|
/* 363 */ "force_opt",
|
|
/* 364 */ "unsafe_opt",
|
|
/* 365 */ "not_exists_opt",
|
|
/* 366 */ "db_options",
|
|
/* 367 */ "exists_opt",
|
|
/* 368 */ "alter_db_options",
|
|
/* 369 */ "speed_opt",
|
|
/* 370 */ "start_opt",
|
|
/* 371 */ "end_opt",
|
|
/* 372 */ "integer_list",
|
|
/* 373 */ "variable_list",
|
|
/* 374 */ "retention_list",
|
|
/* 375 */ "signed",
|
|
/* 376 */ "alter_db_option",
|
|
/* 377 */ "retention",
|
|
/* 378 */ "full_table_name",
|
|
/* 379 */ "column_def_list",
|
|
/* 380 */ "tags_def_opt",
|
|
/* 381 */ "table_options",
|
|
/* 382 */ "multi_create_clause",
|
|
/* 383 */ "tags_def",
|
|
/* 384 */ "multi_drop_clause",
|
|
/* 385 */ "alter_table_clause",
|
|
/* 386 */ "alter_table_options",
|
|
/* 387 */ "column_name",
|
|
/* 388 */ "type_name",
|
|
/* 389 */ "signed_literal",
|
|
/* 390 */ "create_subtable_clause",
|
|
/* 391 */ "specific_cols_opt",
|
|
/* 392 */ "expression_list",
|
|
/* 393 */ "drop_table_clause",
|
|
/* 394 */ "col_name_list",
|
|
/* 395 */ "column_def",
|
|
/* 396 */ "duration_list",
|
|
/* 397 */ "rollup_func_list",
|
|
/* 398 */ "alter_table_option",
|
|
/* 399 */ "duration_literal",
|
|
/* 400 */ "rollup_func_name",
|
|
/* 401 */ "function_name",
|
|
/* 402 */ "col_name",
|
|
/* 403 */ "db_kind_opt",
|
|
/* 404 */ "table_kind_db_name_cond_opt",
|
|
/* 405 */ "like_pattern_opt",
|
|
/* 406 */ "db_name_cond_opt",
|
|
/* 407 */ "table_name_cond",
|
|
/* 408 */ "from_db_opt",
|
|
/* 409 */ "tag_list_opt",
|
|
/* 410 */ "table_kind",
|
|
/* 411 */ "db_name_cond",
|
|
/* 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 */ "dnode_list",
|
|
/* 441 */ "literal_func",
|
|
/* 442 */ "literal_list",
|
|
/* 443 */ "table_alias",
|
|
/* 444 */ "expr_or_subquery",
|
|
/* 445 */ "pseudo_column",
|
|
/* 446 */ "column_reference",
|
|
/* 447 */ "function_expression",
|
|
/* 448 */ "case_when_expression",
|
|
/* 449 */ "star_func",
|
|
/* 450 */ "star_func_para_list",
|
|
/* 451 */ "noarg_func",
|
|
/* 452 */ "other_para_list",
|
|
/* 453 */ "star_func_para",
|
|
/* 454 */ "when_then_list",
|
|
/* 455 */ "case_when_else_opt",
|
|
/* 456 */ "common_expression",
|
|
/* 457 */ "when_then_expr",
|
|
/* 458 */ "predicate",
|
|
/* 459 */ "compare_op",
|
|
/* 460 */ "in_op",
|
|
/* 461 */ "in_predicate_value",
|
|
/* 462 */ "boolean_value_expression",
|
|
/* 463 */ "boolean_primary",
|
|
/* 464 */ "from_clause_opt",
|
|
/* 465 */ "table_reference_list",
|
|
/* 466 */ "table_reference",
|
|
/* 467 */ "table_primary",
|
|
/* 468 */ "joined_table",
|
|
/* 469 */ "alias_opt",
|
|
/* 470 */ "subquery",
|
|
/* 471 */ "parenthesized_joined_table",
|
|
/* 472 */ "join_type",
|
|
/* 473 */ "query_specification",
|
|
/* 474 */ "hint_list",
|
|
/* 475 */ "set_quantifier_opt",
|
|
/* 476 */ "tag_mode_opt",
|
|
/* 477 */ "select_list",
|
|
/* 478 */ "partition_by_clause_opt",
|
|
/* 479 */ "range_opt",
|
|
/* 480 */ "every_opt",
|
|
/* 481 */ "fill_opt",
|
|
/* 482 */ "twindow_clause_opt",
|
|
/* 483 */ "group_by_clause_opt",
|
|
/* 484 */ "having_clause_opt",
|
|
/* 485 */ "select_item",
|
|
/* 486 */ "partition_list",
|
|
/* 487 */ "partition_item",
|
|
/* 488 */ "fill_mode",
|
|
/* 489 */ "group_by_list",
|
|
/* 490 */ "query_expression",
|
|
/* 491 */ "query_simple",
|
|
/* 492 */ "order_by_clause_opt",
|
|
/* 493 */ "slimit_clause_opt",
|
|
/* 494 */ "limit_clause_opt",
|
|
/* 495 */ "union_query_expression",
|
|
/* 496 */ "query_simple_or_subquery",
|
|
/* 497 */ "sort_specification_list",
|
|
/* 498 */ "sort_specification",
|
|
/* 499 */ "ordering_specification_opt",
|
|
/* 500 */ "null_ordering_opt",
|
|
};
|
|
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
|
|
|
|
#ifndef NDEBUG
|
|
/* For tracing reduce actions, the names of all rules are required.
|
|
*/
|
|
static const char *const yyRuleName[] = {
|
|
/* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
|
|
/* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
|
|
/* 2 */ "account_options ::=",
|
|
/* 3 */ "account_options ::= account_options PPS literal",
|
|
/* 4 */ "account_options ::= account_options TSERIES literal",
|
|
/* 5 */ "account_options ::= account_options STORAGE literal",
|
|
/* 6 */ "account_options ::= account_options STREAMS literal",
|
|
/* 7 */ "account_options ::= account_options QTIME literal",
|
|
/* 8 */ "account_options ::= account_options DBS literal",
|
|
/* 9 */ "account_options ::= account_options USERS literal",
|
|
/* 10 */ "account_options ::= account_options CONNS literal",
|
|
/* 11 */ "account_options ::= account_options STATE literal",
|
|
/* 12 */ "alter_account_options ::= alter_account_option",
|
|
/* 13 */ "alter_account_options ::= alter_account_options alter_account_option",
|
|
/* 14 */ "alter_account_option ::= PASS literal",
|
|
/* 15 */ "alter_account_option ::= PPS literal",
|
|
/* 16 */ "alter_account_option ::= TSERIES literal",
|
|
/* 17 */ "alter_account_option ::= STORAGE literal",
|
|
/* 18 */ "alter_account_option ::= STREAMS literal",
|
|
/* 19 */ "alter_account_option ::= QTIME literal",
|
|
/* 20 */ "alter_account_option ::= DBS literal",
|
|
/* 21 */ "alter_account_option ::= USERS literal",
|
|
/* 22 */ "alter_account_option ::= CONNS literal",
|
|
/* 23 */ "alter_account_option ::= STATE literal",
|
|
/* 24 */ "ip_range_list ::= NK_STRING",
|
|
/* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING",
|
|
/* 26 */ "white_list ::= HOST ip_range_list",
|
|
/* 27 */ "white_list_opt ::=",
|
|
/* 28 */ "white_list_opt ::= white_list",
|
|
/* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt",
|
|
/* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
|
|
/* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
|
|
/* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
|
|
/* 33 */ "cmd ::= ALTER USER user_name ADD white_list",
|
|
/* 34 */ "cmd ::= ALTER USER user_name DROP white_list",
|
|
/* 35 */ "cmd ::= DROP USER user_name",
|
|
/* 36 */ "sysinfo_opt ::=",
|
|
/* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
|
|
/* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
|
|
/* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
|
|
/* 40 */ "privileges ::= ALL",
|
|
/* 41 */ "privileges ::= priv_type_list",
|
|
/* 42 */ "privileges ::= SUBSCRIBE",
|
|
/* 43 */ "priv_type_list ::= priv_type",
|
|
/* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
|
|
/* 45 */ "priv_type ::= READ",
|
|
/* 46 */ "priv_type ::= WRITE",
|
|
/* 47 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
|
|
/* 48 */ "priv_level ::= db_name NK_DOT NK_STAR",
|
|
/* 49 */ "priv_level ::= db_name NK_DOT table_name",
|
|
/* 50 */ "priv_level ::= topic_name",
|
|
/* 51 */ "with_opt ::=",
|
|
/* 52 */ "with_opt ::= WITH search_condition",
|
|
/* 53 */ "cmd ::= CREATE DNODE dnode_endpoint",
|
|
/* 54 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
|
|
/* 55 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
|
|
/* 56 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
|
|
/* 57 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
|
|
/* 58 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
|
|
/* 59 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
|
|
/* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
|
|
/* 61 */ "cmd ::= ALTER ALL DNODES NK_STRING",
|
|
/* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
|
|
/* 63 */ "cmd ::= RESTORE DNODE NK_INTEGER",
|
|
/* 64 */ "dnode_endpoint ::= NK_STRING",
|
|
/* 65 */ "dnode_endpoint ::= NK_ID",
|
|
/* 66 */ "dnode_endpoint ::= NK_IPTOKEN",
|
|
/* 67 */ "force_opt ::=",
|
|
/* 68 */ "force_opt ::= FORCE",
|
|
/* 69 */ "unsafe_opt ::= UNSAFE",
|
|
/* 70 */ "cmd ::= ALTER LOCAL NK_STRING",
|
|
/* 71 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
|
|
/* 72 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
|
|
/* 73 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
|
|
/* 74 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
|
|
/* 75 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
|
|
/* 76 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
|
|
/* 77 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
|
|
/* 78 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
|
|
/* 79 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
|
|
/* 80 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
|
|
/* 81 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
|
|
/* 82 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
|
|
/* 83 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
|
|
/* 84 */ "cmd ::= DROP DATABASE exists_opt db_name",
|
|
/* 85 */ "cmd ::= USE db_name",
|
|
/* 86 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
|
|
/* 87 */ "cmd ::= FLUSH DATABASE db_name",
|
|
/* 88 */ "cmd ::= TRIM DATABASE db_name speed_opt",
|
|
/* 89 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
|
|
/* 90 */ "not_exists_opt ::= IF NOT EXISTS",
|
|
/* 91 */ "not_exists_opt ::=",
|
|
/* 92 */ "exists_opt ::= IF EXISTS",
|
|
/* 93 */ "exists_opt ::=",
|
|
/* 94 */ "db_options ::=",
|
|
/* 95 */ "db_options ::= db_options BUFFER NK_INTEGER",
|
|
/* 96 */ "db_options ::= db_options CACHEMODEL NK_STRING",
|
|
/* 97 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
|
|
/* 98 */ "db_options ::= db_options COMP NK_INTEGER",
|
|
/* 99 */ "db_options ::= db_options DURATION NK_INTEGER",
|
|
/* 100 */ "db_options ::= db_options DURATION NK_VARIABLE",
|
|
/* 101 */ "db_options ::= db_options MAXROWS NK_INTEGER",
|
|
/* 102 */ "db_options ::= db_options MINROWS NK_INTEGER",
|
|
/* 103 */ "db_options ::= db_options KEEP integer_list",
|
|
/* 104 */ "db_options ::= db_options KEEP variable_list",
|
|
/* 105 */ "db_options ::= db_options PAGES NK_INTEGER",
|
|
/* 106 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
|
|
/* 107 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
|
|
/* 108 */ "db_options ::= db_options PRECISION NK_STRING",
|
|
/* 109 */ "db_options ::= db_options REPLICA NK_INTEGER",
|
|
/* 110 */ "db_options ::= db_options VGROUPS NK_INTEGER",
|
|
/* 111 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
|
|
/* 112 */ "db_options ::= db_options RETENTIONS retention_list",
|
|
/* 113 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
|
|
/* 114 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
|
|
/* 115 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 116 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 117 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 118 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 119 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 120 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
|
|
/* 121 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
|
|
/* 122 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
|
|
/* 123 */ "db_options ::= db_options TABLE_PREFIX signed",
|
|
/* 124 */ "db_options ::= db_options TABLE_SUFFIX signed",
|
|
/* 125 */ "alter_db_options ::= alter_db_option",
|
|
/* 126 */ "alter_db_options ::= alter_db_options alter_db_option",
|
|
/* 127 */ "alter_db_option ::= BUFFER NK_INTEGER",
|
|
/* 128 */ "alter_db_option ::= CACHEMODEL NK_STRING",
|
|
/* 129 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
|
|
/* 130 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 131 */ "alter_db_option ::= KEEP integer_list",
|
|
/* 132 */ "alter_db_option ::= KEEP variable_list",
|
|
/* 133 */ "alter_db_option ::= PAGES NK_INTEGER",
|
|
/* 134 */ "alter_db_option ::= REPLICA NK_INTEGER",
|
|
/* 135 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
|
|
/* 136 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
|
|
/* 137 */ "alter_db_option ::= MINROWS NK_INTEGER",
|
|
/* 138 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 139 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 140 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 141 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 142 */ "integer_list ::= NK_INTEGER",
|
|
/* 143 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
|
|
/* 144 */ "variable_list ::= NK_VARIABLE",
|
|
/* 145 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
|
|
/* 146 */ "retention_list ::= retention",
|
|
/* 147 */ "retention_list ::= retention_list NK_COMMA retention",
|
|
/* 148 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
|
|
/* 149 */ "speed_opt ::=",
|
|
/* 150 */ "speed_opt ::= BWLIMIT NK_INTEGER",
|
|
/* 151 */ "start_opt ::=",
|
|
/* 152 */ "start_opt ::= START WITH NK_INTEGER",
|
|
/* 153 */ "start_opt ::= START WITH NK_STRING",
|
|
/* 154 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
|
|
/* 155 */ "end_opt ::=",
|
|
/* 156 */ "end_opt ::= END WITH NK_INTEGER",
|
|
/* 157 */ "end_opt ::= END WITH NK_STRING",
|
|
/* 158 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
|
|
/* 159 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
|
|
/* 160 */ "cmd ::= CREATE TABLE multi_create_clause",
|
|
/* 161 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
|
|
/* 162 */ "cmd ::= DROP TABLE multi_drop_clause",
|
|
/* 163 */ "cmd ::= DROP STABLE exists_opt full_table_name",
|
|
/* 164 */ "cmd ::= ALTER TABLE alter_table_clause",
|
|
/* 165 */ "cmd ::= ALTER STABLE alter_table_clause",
|
|
/* 166 */ "alter_table_clause ::= full_table_name alter_table_options",
|
|
/* 167 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
|
|
/* 168 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
|
|
/* 169 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
|
|
/* 170 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
|
|
/* 171 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
|
|
/* 172 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
|
|
/* 173 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
|
|
/* 174 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
|
|
/* 175 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
|
|
/* 176 */ "multi_create_clause ::= create_subtable_clause",
|
|
/* 177 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
|
|
/* 178 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options",
|
|
/* 179 */ "multi_drop_clause ::= drop_table_clause",
|
|
/* 180 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
|
|
/* 181 */ "drop_table_clause ::= exists_opt full_table_name",
|
|
/* 182 */ "specific_cols_opt ::=",
|
|
/* 183 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 184 */ "full_table_name ::= table_name",
|
|
/* 185 */ "full_table_name ::= db_name NK_DOT table_name",
|
|
/* 186 */ "column_def_list ::= column_def",
|
|
/* 187 */ "column_def_list ::= column_def_list NK_COMMA column_def",
|
|
/* 188 */ "column_def ::= column_name type_name",
|
|
/* 189 */ "type_name ::= BOOL",
|
|
/* 190 */ "type_name ::= TINYINT",
|
|
/* 191 */ "type_name ::= SMALLINT",
|
|
/* 192 */ "type_name ::= INT",
|
|
/* 193 */ "type_name ::= INTEGER",
|
|
/* 194 */ "type_name ::= BIGINT",
|
|
/* 195 */ "type_name ::= FLOAT",
|
|
/* 196 */ "type_name ::= DOUBLE",
|
|
/* 197 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 198 */ "type_name ::= TIMESTAMP",
|
|
/* 199 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 200 */ "type_name ::= TINYINT UNSIGNED",
|
|
/* 201 */ "type_name ::= SMALLINT UNSIGNED",
|
|
/* 202 */ "type_name ::= INT UNSIGNED",
|
|
/* 203 */ "type_name ::= BIGINT UNSIGNED",
|
|
/* 204 */ "type_name ::= JSON",
|
|
/* 205 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 206 */ "type_name ::= MEDIUMBLOB",
|
|
/* 207 */ "type_name ::= BLOB",
|
|
/* 208 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 209 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
|
|
/* 210 */ "type_name ::= DECIMAL",
|
|
/* 211 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
|
|
/* 212 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
/* 213 */ "tags_def_opt ::=",
|
|
/* 214 */ "tags_def_opt ::= tags_def",
|
|
/* 215 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
|
|
/* 216 */ "table_options ::=",
|
|
/* 217 */ "table_options ::= table_options COMMENT NK_STRING",
|
|
/* 218 */ "table_options ::= table_options MAX_DELAY duration_list",
|
|
/* 219 */ "table_options ::= table_options WATERMARK duration_list",
|
|
/* 220 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
|
|
/* 221 */ "table_options ::= table_options TTL NK_INTEGER",
|
|
/* 222 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
|
|
/* 223 */ "table_options ::= table_options DELETE_MARK duration_list",
|
|
/* 224 */ "alter_table_options ::= alter_table_option",
|
|
/* 225 */ "alter_table_options ::= alter_table_options alter_table_option",
|
|
/* 226 */ "alter_table_option ::= COMMENT NK_STRING",
|
|
/* 227 */ "alter_table_option ::= TTL NK_INTEGER",
|
|
/* 228 */ "duration_list ::= duration_literal",
|
|
/* 229 */ "duration_list ::= duration_list NK_COMMA duration_literal",
|
|
/* 230 */ "rollup_func_list ::= rollup_func_name",
|
|
/* 231 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
|
|
/* 232 */ "rollup_func_name ::= function_name",
|
|
/* 233 */ "rollup_func_name ::= FIRST",
|
|
/* 234 */ "rollup_func_name ::= LAST",
|
|
/* 235 */ "col_name_list ::= col_name",
|
|
/* 236 */ "col_name_list ::= col_name_list NK_COMMA col_name",
|
|
/* 237 */ "col_name ::= column_name",
|
|
/* 238 */ "cmd ::= SHOW DNODES",
|
|
/* 239 */ "cmd ::= SHOW USERS",
|
|
/* 240 */ "cmd ::= SHOW USER PRIVILEGES",
|
|
/* 241 */ "cmd ::= SHOW db_kind_opt DATABASES",
|
|
/* 242 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
|
|
/* 243 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
|
|
/* 244 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
|
|
/* 245 */ "cmd ::= SHOW MNODES",
|
|
/* 246 */ "cmd ::= SHOW QNODES",
|
|
/* 247 */ "cmd ::= SHOW FUNCTIONS",
|
|
/* 248 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
/* 249 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
/* 250 */ "cmd ::= SHOW STREAMS",
|
|
/* 251 */ "cmd ::= SHOW ACCOUNTS",
|
|
/* 252 */ "cmd ::= SHOW APPS",
|
|
/* 253 */ "cmd ::= SHOW CONNECTIONS",
|
|
/* 254 */ "cmd ::= SHOW LICENCES",
|
|
/* 255 */ "cmd ::= SHOW GRANTS",
|
|
/* 256 */ "cmd ::= SHOW CREATE DATABASE db_name",
|
|
/* 257 */ "cmd ::= SHOW CREATE TABLE full_table_name",
|
|
/* 258 */ "cmd ::= SHOW CREATE STABLE full_table_name",
|
|
/* 259 */ "cmd ::= SHOW QUERIES",
|
|
/* 260 */ "cmd ::= SHOW SCORES",
|
|
/* 261 */ "cmd ::= SHOW TOPICS",
|
|
/* 262 */ "cmd ::= SHOW VARIABLES",
|
|
/* 263 */ "cmd ::= SHOW CLUSTER VARIABLES",
|
|
/* 264 */ "cmd ::= SHOW LOCAL VARIABLES",
|
|
/* 265 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
|
|
/* 266 */ "cmd ::= SHOW BNODES",
|
|
/* 267 */ "cmd ::= SHOW SNODES",
|
|
/* 268 */ "cmd ::= SHOW CLUSTER",
|
|
/* 269 */ "cmd ::= SHOW TRANSACTIONS",
|
|
/* 270 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
|
|
/* 271 */ "cmd ::= SHOW CONSUMERS",
|
|
/* 272 */ "cmd ::= SHOW SUBSCRIPTIONS",
|
|
/* 273 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
|
|
/* 274 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
|
|
/* 275 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
|
|
/* 276 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
|
|
/* 277 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
|
|
/* 278 */ "cmd ::= SHOW VNODES",
|
|
/* 279 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
|
|
/* 280 */ "cmd ::= SHOW CLUSTER ALIVE",
|
|
/* 281 */ "table_kind_db_name_cond_opt ::=",
|
|
/* 282 */ "table_kind_db_name_cond_opt ::= table_kind",
|
|
/* 283 */ "table_kind_db_name_cond_opt ::= db_name_cond",
|
|
/* 284 */ "table_kind_db_name_cond_opt ::= table_kind db_name_cond",
|
|
/* 285 */ "table_kind ::= NORMAL",
|
|
/* 286 */ "table_kind ::= CHILD",
|
|
/* 287 */ "db_name_cond ::= db_name NK_DOT",
|
|
/* 288 */ "db_name_cond_opt ::=",
|
|
/* 289 */ "db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 290 */ "like_pattern_opt ::=",
|
|
/* 291 */ "like_pattern_opt ::= LIKE NK_STRING",
|
|
/* 292 */ "table_name_cond ::= table_name",
|
|
/* 293 */ "from_db_opt ::=",
|
|
/* 294 */ "from_db_opt ::= FROM db_name",
|
|
/* 295 */ "tag_list_opt ::=",
|
|
/* 296 */ "tag_list_opt ::= tag_item",
|
|
/* 297 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
|
|
/* 298 */ "tag_item ::= TBNAME",
|
|
/* 299 */ "tag_item ::= QTAGS",
|
|
/* 300 */ "tag_item ::= column_name",
|
|
/* 301 */ "tag_item ::= column_name column_alias",
|
|
/* 302 */ "tag_item ::= column_name AS column_alias",
|
|
/* 303 */ "db_kind_opt ::=",
|
|
/* 304 */ "db_kind_opt ::= USER",
|
|
/* 305 */ "db_kind_opt ::= SYSTEM",
|
|
/* 306 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
|
|
/* 307 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
|
|
/* 308 */ "cmd ::= DROP INDEX exists_opt full_index_name",
|
|
/* 309 */ "full_index_name ::= index_name",
|
|
/* 310 */ "full_index_name ::= db_name NK_DOT index_name",
|
|
/* 311 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
/* 312 */ "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",
|
|
/* 313 */ "func_list ::= func",
|
|
/* 314 */ "func_list ::= func_list NK_COMMA func",
|
|
/* 315 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
|
|
/* 316 */ "sma_func_name ::= function_name",
|
|
/* 317 */ "sma_func_name ::= COUNT",
|
|
/* 318 */ "sma_func_name ::= FIRST",
|
|
/* 319 */ "sma_func_name ::= LAST",
|
|
/* 320 */ "sma_func_name ::= LAST_ROW",
|
|
/* 321 */ "sma_stream_opt ::=",
|
|
/* 322 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
|
|
/* 323 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
|
|
/* 324 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
|
|
/* 325 */ "with_meta ::= AS",
|
|
/* 326 */ "with_meta ::= WITH META AS",
|
|
/* 327 */ "with_meta ::= ONLY META AS",
|
|
/* 328 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
|
|
/* 329 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
|
|
/* 330 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
|
|
/* 331 */ "cmd ::= DROP TOPIC exists_opt topic_name",
|
|
/* 332 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
|
|
/* 333 */ "cmd ::= DESC full_table_name",
|
|
/* 334 */ "cmd ::= DESCRIBE full_table_name",
|
|
/* 335 */ "cmd ::= RESET QUERY CACHE",
|
|
/* 336 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
|
|
/* 337 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
|
|
/* 338 */ "analyze_opt ::=",
|
|
/* 339 */ "analyze_opt ::= ANALYZE",
|
|
/* 340 */ "explain_options ::=",
|
|
/* 341 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
|
|
/* 342 */ "explain_options ::= explain_options RATIO NK_FLOAT",
|
|
/* 343 */ "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 */ "cmd ::= DROP FUNCTION exists_opt function_name",
|
|
/* 345 */ "agg_func_opt ::=",
|
|
/* 346 */ "agg_func_opt ::= AGGREGATE",
|
|
/* 347 */ "bufsize_opt ::=",
|
|
/* 348 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
|
|
/* 349 */ "language_opt ::=",
|
|
/* 350 */ "language_opt ::= LANGUAGE NK_STRING",
|
|
/* 351 */ "or_replace_opt ::=",
|
|
/* 352 */ "or_replace_opt ::= OR REPLACE",
|
|
/* 353 */ "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",
|
|
/* 354 */ "cmd ::= DROP STREAM exists_opt stream_name",
|
|
/* 355 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
|
|
/* 356 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
|
|
/* 357 */ "col_list_opt ::=",
|
|
/* 358 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 359 */ "tag_def_or_ref_opt ::=",
|
|
/* 360 */ "tag_def_or_ref_opt ::= tags_def",
|
|
/* 361 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
|
|
/* 362 */ "stream_options ::=",
|
|
/* 363 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
|
|
/* 364 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
|
|
/* 365 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
|
|
/* 366 */ "stream_options ::= stream_options WATERMARK duration_literal",
|
|
/* 367 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
|
|
/* 368 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
|
|
/* 369 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
|
|
/* 370 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
|
|
/* 371 */ "subtable_opt ::=",
|
|
/* 372 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
|
|
/* 373 */ "ignore_opt ::=",
|
|
/* 374 */ "ignore_opt ::= IGNORE UNTREATED",
|
|
/* 375 */ "cmd ::= KILL CONNECTION NK_INTEGER",
|
|
/* 376 */ "cmd ::= KILL QUERY NK_STRING",
|
|
/* 377 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
|
|
/* 378 */ "cmd ::= BALANCE VGROUP",
|
|
/* 379 */ "cmd ::= BALANCE VGROUP LEADER",
|
|
/* 380 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
|
|
/* 381 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
|
|
/* 382 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
|
|
/* 383 */ "dnode_list ::= DNODE NK_INTEGER",
|
|
/* 384 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
|
|
/* 385 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
|
|
/* 386 */ "cmd ::= query_or_subquery",
|
|
/* 387 */ "cmd ::= insert_query",
|
|
/* 388 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
|
|
/* 389 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
|
|
/* 390 */ "literal ::= NK_INTEGER",
|
|
/* 391 */ "literal ::= NK_FLOAT",
|
|
/* 392 */ "literal ::= NK_STRING",
|
|
/* 393 */ "literal ::= NK_BOOL",
|
|
/* 394 */ "literal ::= TIMESTAMP NK_STRING",
|
|
/* 395 */ "literal ::= duration_literal",
|
|
/* 396 */ "literal ::= NULL",
|
|
/* 397 */ "literal ::= NK_QUESTION",
|
|
/* 398 */ "duration_literal ::= NK_VARIABLE",
|
|
/* 399 */ "signed ::= NK_INTEGER",
|
|
/* 400 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
/* 401 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
/* 402 */ "signed ::= NK_FLOAT",
|
|
/* 403 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
/* 404 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
/* 405 */ "signed_literal ::= signed",
|
|
/* 406 */ "signed_literal ::= NK_STRING",
|
|
/* 407 */ "signed_literal ::= NK_BOOL",
|
|
/* 408 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
/* 409 */ "signed_literal ::= duration_literal",
|
|
/* 410 */ "signed_literal ::= NULL",
|
|
/* 411 */ "signed_literal ::= literal_func",
|
|
/* 412 */ "signed_literal ::= NK_QUESTION",
|
|
/* 413 */ "literal_list ::= signed_literal",
|
|
/* 414 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
/* 415 */ "db_name ::= NK_ID",
|
|
/* 416 */ "table_name ::= NK_ID",
|
|
/* 417 */ "column_name ::= NK_ID",
|
|
/* 418 */ "function_name ::= NK_ID",
|
|
/* 419 */ "table_alias ::= NK_ID",
|
|
/* 420 */ "column_alias ::= NK_ID",
|
|
/* 421 */ "user_name ::= NK_ID",
|
|
/* 422 */ "topic_name ::= NK_ID",
|
|
/* 423 */ "stream_name ::= NK_ID",
|
|
/* 424 */ "cgroup_name ::= NK_ID",
|
|
/* 425 */ "index_name ::= NK_ID",
|
|
/* 426 */ "expr_or_subquery ::= expression",
|
|
/* 427 */ "expression ::= literal",
|
|
/* 428 */ "expression ::= pseudo_column",
|
|
/* 429 */ "expression ::= column_reference",
|
|
/* 430 */ "expression ::= function_expression",
|
|
/* 431 */ "expression ::= case_when_expression",
|
|
/* 432 */ "expression ::= NK_LP expression NK_RP",
|
|
/* 433 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
/* 434 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
/* 435 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
/* 436 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
/* 437 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
/* 438 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
/* 439 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
/* 440 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
/* 441 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
/* 442 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
/* 443 */ "expression_list ::= expr_or_subquery",
|
|
/* 444 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
/* 445 */ "column_reference ::= column_name",
|
|
/* 446 */ "column_reference ::= table_name NK_DOT column_name",
|
|
/* 447 */ "pseudo_column ::= ROWTS",
|
|
/* 448 */ "pseudo_column ::= TBNAME",
|
|
/* 449 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
/* 450 */ "pseudo_column ::= QSTART",
|
|
/* 451 */ "pseudo_column ::= QEND",
|
|
/* 452 */ "pseudo_column ::= QDURATION",
|
|
/* 453 */ "pseudo_column ::= WSTART",
|
|
/* 454 */ "pseudo_column ::= WEND",
|
|
/* 455 */ "pseudo_column ::= WDURATION",
|
|
/* 456 */ "pseudo_column ::= IROWTS",
|
|
/* 457 */ "pseudo_column ::= ISFILLED",
|
|
/* 458 */ "pseudo_column ::= QTAGS",
|
|
/* 459 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
/* 460 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
/* 461 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
/* 462 */ "function_expression ::= literal_func",
|
|
/* 463 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
/* 464 */ "literal_func ::= NOW",
|
|
/* 465 */ "noarg_func ::= NOW",
|
|
/* 466 */ "noarg_func ::= TODAY",
|
|
/* 467 */ "noarg_func ::= TIMEZONE",
|
|
/* 468 */ "noarg_func ::= DATABASE",
|
|
/* 469 */ "noarg_func ::= CLIENT_VERSION",
|
|
/* 470 */ "noarg_func ::= SERVER_VERSION",
|
|
/* 471 */ "noarg_func ::= SERVER_STATUS",
|
|
/* 472 */ "noarg_func ::= CURRENT_USER",
|
|
/* 473 */ "noarg_func ::= USER",
|
|
/* 474 */ "star_func ::= COUNT",
|
|
/* 475 */ "star_func ::= FIRST",
|
|
/* 476 */ "star_func ::= LAST",
|
|
/* 477 */ "star_func ::= LAST_ROW",
|
|
/* 478 */ "star_func_para_list ::= NK_STAR",
|
|
/* 479 */ "star_func_para_list ::= other_para_list",
|
|
/* 480 */ "other_para_list ::= star_func_para",
|
|
/* 481 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
/* 482 */ "star_func_para ::= expr_or_subquery",
|
|
/* 483 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
/* 484 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
/* 485 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
/* 486 */ "when_then_list ::= when_then_expr",
|
|
/* 487 */ "when_then_list ::= when_then_list when_then_expr",
|
|
/* 488 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
/* 489 */ "case_when_else_opt ::=",
|
|
/* 490 */ "case_when_else_opt ::= ELSE common_expression",
|
|
/* 491 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
/* 492 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 493 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 494 */ "predicate ::= expr_or_subquery IS NULL",
|
|
/* 495 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
/* 496 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
/* 497 */ "compare_op ::= NK_LT",
|
|
/* 498 */ "compare_op ::= NK_GT",
|
|
/* 499 */ "compare_op ::= NK_LE",
|
|
/* 500 */ "compare_op ::= NK_GE",
|
|
/* 501 */ "compare_op ::= NK_NE",
|
|
/* 502 */ "compare_op ::= NK_EQ",
|
|
/* 503 */ "compare_op ::= LIKE",
|
|
/* 504 */ "compare_op ::= NOT LIKE",
|
|
/* 505 */ "compare_op ::= MATCH",
|
|
/* 506 */ "compare_op ::= NMATCH",
|
|
/* 507 */ "compare_op ::= CONTAINS",
|
|
/* 508 */ "in_op ::= IN",
|
|
/* 509 */ "in_op ::= NOT IN",
|
|
/* 510 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
/* 511 */ "boolean_value_expression ::= boolean_primary",
|
|
/* 512 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
/* 513 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
/* 514 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
/* 515 */ "boolean_primary ::= predicate",
|
|
/* 516 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
/* 517 */ "common_expression ::= expr_or_subquery",
|
|
/* 518 */ "common_expression ::= boolean_value_expression",
|
|
/* 519 */ "from_clause_opt ::=",
|
|
/* 520 */ "from_clause_opt ::= FROM table_reference_list",
|
|
/* 521 */ "table_reference_list ::= table_reference",
|
|
/* 522 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
/* 523 */ "table_reference ::= table_primary",
|
|
/* 524 */ "table_reference ::= joined_table",
|
|
/* 525 */ "table_primary ::= table_name alias_opt",
|
|
/* 526 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
/* 527 */ "table_primary ::= subquery alias_opt",
|
|
/* 528 */ "table_primary ::= parenthesized_joined_table",
|
|
/* 529 */ "alias_opt ::=",
|
|
/* 530 */ "alias_opt ::= table_alias",
|
|
/* 531 */ "alias_opt ::= AS table_alias",
|
|
/* 532 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
/* 533 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
/* 534 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
|
|
/* 535 */ "join_type ::=",
|
|
/* 536 */ "join_type ::= INNER",
|
|
/* 537 */ "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",
|
|
/* 538 */ "hint_list ::=",
|
|
/* 539 */ "hint_list ::= NK_HINT",
|
|
/* 540 */ "tag_mode_opt ::=",
|
|
/* 541 */ "tag_mode_opt ::= TAGS",
|
|
/* 542 */ "set_quantifier_opt ::=",
|
|
/* 543 */ "set_quantifier_opt ::= DISTINCT",
|
|
/* 544 */ "set_quantifier_opt ::= ALL",
|
|
/* 545 */ "select_list ::= select_item",
|
|
/* 546 */ "select_list ::= select_list NK_COMMA select_item",
|
|
/* 547 */ "select_item ::= NK_STAR",
|
|
/* 548 */ "select_item ::= common_expression",
|
|
/* 549 */ "select_item ::= common_expression column_alias",
|
|
/* 550 */ "select_item ::= common_expression AS column_alias",
|
|
/* 551 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
/* 552 */ "where_clause_opt ::=",
|
|
/* 553 */ "where_clause_opt ::= WHERE search_condition",
|
|
/* 554 */ "partition_by_clause_opt ::=",
|
|
/* 555 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
/* 556 */ "partition_list ::= partition_item",
|
|
/* 557 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
/* 558 */ "partition_item ::= expr_or_subquery",
|
|
/* 559 */ "partition_item ::= expr_or_subquery column_alias",
|
|
/* 560 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
/* 561 */ "twindow_clause_opt ::=",
|
|
/* 562 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP",
|
|
/* 563 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
/* 564 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 565 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 566 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
|
/* 567 */ "sliding_opt ::=",
|
|
/* 568 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP",
|
|
/* 569 */ "fill_opt ::=",
|
|
/* 570 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
/* 571 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
/* 572 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
/* 573 */ "fill_mode ::= NONE",
|
|
/* 574 */ "fill_mode ::= PREV",
|
|
/* 575 */ "fill_mode ::= NULL",
|
|
/* 576 */ "fill_mode ::= NULL_F",
|
|
/* 577 */ "fill_mode ::= LINEAR",
|
|
/* 578 */ "fill_mode ::= NEXT",
|
|
/* 579 */ "group_by_clause_opt ::=",
|
|
/* 580 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
/* 581 */ "group_by_list ::= expr_or_subquery",
|
|
/* 582 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
/* 583 */ "having_clause_opt ::=",
|
|
/* 584 */ "having_clause_opt ::= HAVING search_condition",
|
|
/* 585 */ "range_opt ::=",
|
|
/* 586 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
/* 587 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
/* 588 */ "every_opt ::=",
|
|
/* 589 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
/* 590 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
/* 591 */ "query_simple ::= query_specification",
|
|
/* 592 */ "query_simple ::= union_query_expression",
|
|
/* 593 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
/* 594 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
/* 595 */ "query_simple_or_subquery ::= query_simple",
|
|
/* 596 */ "query_simple_or_subquery ::= subquery",
|
|
/* 597 */ "query_or_subquery ::= query_expression",
|
|
/* 598 */ "query_or_subquery ::= subquery",
|
|
/* 599 */ "order_by_clause_opt ::=",
|
|
/* 600 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
/* 601 */ "slimit_clause_opt ::=",
|
|
/* 602 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
/* 603 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
/* 604 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 605 */ "limit_clause_opt ::=",
|
|
/* 606 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
/* 607 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
/* 608 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 609 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
/* 610 */ "subquery ::= NK_LP subquery NK_RP",
|
|
/* 611 */ "search_condition ::= common_expression",
|
|
/* 612 */ "sort_specification_list ::= sort_specification",
|
|
/* 613 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
/* 614 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
/* 615 */ "ordering_specification_opt ::=",
|
|
/* 616 */ "ordering_specification_opt ::= ASC",
|
|
/* 617 */ "ordering_specification_opt ::= DESC",
|
|
/* 618 */ "null_ordering_opt ::=",
|
|
/* 619 */ "null_ordering_opt ::= NULLS FIRST",
|
|
/* 620 */ "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 343: /* cmd */
|
|
case 346: /* literal */
|
|
case 355: /* with_opt */
|
|
case 361: /* search_condition */
|
|
case 366: /* db_options */
|
|
case 368: /* alter_db_options */
|
|
case 370: /* start_opt */
|
|
case 371: /* end_opt */
|
|
case 375: /* signed */
|
|
case 377: /* retention */
|
|
case 378: /* full_table_name */
|
|
case 381: /* table_options */
|
|
case 385: /* alter_table_clause */
|
|
case 386: /* alter_table_options */
|
|
case 389: /* signed_literal */
|
|
case 390: /* create_subtable_clause */
|
|
case 393: /* drop_table_clause */
|
|
case 395: /* column_def */
|
|
case 399: /* duration_literal */
|
|
case 400: /* rollup_func_name */
|
|
case 402: /* col_name */
|
|
case 405: /* like_pattern_opt */
|
|
case 406: /* db_name_cond_opt */
|
|
case 407: /* table_name_cond */
|
|
case 408: /* from_db_opt */
|
|
case 411: /* db_name_cond */
|
|
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 441: /* literal_func */
|
|
case 444: /* expr_or_subquery */
|
|
case 445: /* pseudo_column */
|
|
case 446: /* column_reference */
|
|
case 447: /* function_expression */
|
|
case 448: /* case_when_expression */
|
|
case 453: /* star_func_para */
|
|
case 455: /* case_when_else_opt */
|
|
case 456: /* common_expression */
|
|
case 457: /* when_then_expr */
|
|
case 458: /* predicate */
|
|
case 461: /* in_predicate_value */
|
|
case 462: /* boolean_value_expression */
|
|
case 463: /* boolean_primary */
|
|
case 464: /* from_clause_opt */
|
|
case 465: /* table_reference_list */
|
|
case 466: /* table_reference */
|
|
case 467: /* table_primary */
|
|
case 468: /* joined_table */
|
|
case 470: /* subquery */
|
|
case 471: /* parenthesized_joined_table */
|
|
case 473: /* query_specification */
|
|
case 479: /* range_opt */
|
|
case 480: /* every_opt */
|
|
case 481: /* fill_opt */
|
|
case 482: /* twindow_clause_opt */
|
|
case 484: /* having_clause_opt */
|
|
case 485: /* select_item */
|
|
case 487: /* partition_item */
|
|
case 490: /* query_expression */
|
|
case 491: /* query_simple */
|
|
case 493: /* slimit_clause_opt */
|
|
case 494: /* limit_clause_opt */
|
|
case 495: /* union_query_expression */
|
|
case 496: /* query_simple_or_subquery */
|
|
case 498: /* sort_specification */
|
|
{
|
|
#line 7 "sql.y"
|
|
nodesDestroyNode((yypminor->yy122));
|
|
#line 3217 "sql.c"
|
|
}
|
|
break;
|
|
case 344: /* account_options */
|
|
case 345: /* alter_account_options */
|
|
case 347: /* alter_account_option */
|
|
case 369: /* speed_opt */
|
|
case 422: /* with_meta */
|
|
case 431: /* bufsize_opt */
|
|
{
|
|
#line 54 "sql.y"
|
|
|
|
#line 3229 "sql.c"
|
|
}
|
|
break;
|
|
case 348: /* ip_range_list */
|
|
case 349: /* white_list */
|
|
case 350: /* white_list_opt */
|
|
case 372: /* integer_list */
|
|
case 373: /* variable_list */
|
|
case 374: /* retention_list */
|
|
case 379: /* column_def_list */
|
|
case 380: /* tags_def_opt */
|
|
case 382: /* multi_create_clause */
|
|
case 383: /* tags_def */
|
|
case 384: /* multi_drop_clause */
|
|
case 391: /* specific_cols_opt */
|
|
case 392: /* expression_list */
|
|
case 394: /* col_name_list */
|
|
case 396: /* duration_list */
|
|
case 397: /* rollup_func_list */
|
|
case 409: /* tag_list_opt */
|
|
case 417: /* func_list */
|
|
case 435: /* col_list_opt */
|
|
case 436: /* tag_def_or_ref_opt */
|
|
case 440: /* dnode_list */
|
|
case 442: /* literal_list */
|
|
case 450: /* star_func_para_list */
|
|
case 452: /* other_para_list */
|
|
case 454: /* when_then_list */
|
|
case 474: /* hint_list */
|
|
case 477: /* select_list */
|
|
case 478: /* partition_by_clause_opt */
|
|
case 483: /* group_by_clause_opt */
|
|
case 486: /* partition_list */
|
|
case 489: /* group_by_list */
|
|
case 492: /* order_by_clause_opt */
|
|
case 497: /* sort_specification_list */
|
|
{
|
|
#line 85 "sql.y"
|
|
nodesDestroyList((yypminor->yy298));
|
|
#line 3268 "sql.c"
|
|
}
|
|
break;
|
|
case 351: /* user_name */
|
|
case 358: /* db_name */
|
|
case 359: /* table_name */
|
|
case 360: /* topic_name */
|
|
case 362: /* dnode_endpoint */
|
|
case 387: /* column_name */
|
|
case 401: /* 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 443: /* table_alias */
|
|
case 449: /* star_func */
|
|
case 451: /* noarg_func */
|
|
case 469: /* alias_opt */
|
|
{
|
|
#line 788 "sql.y"
|
|
|
|
#line 3291 "sql.c"
|
|
}
|
|
break;
|
|
case 352: /* sysinfo_opt */
|
|
{
|
|
#line 112 "sql.y"
|
|
|
|
#line 3298 "sql.c"
|
|
}
|
|
break;
|
|
case 353: /* privileges */
|
|
case 356: /* priv_type_list */
|
|
case 357: /* priv_type */
|
|
{
|
|
#line 121 "sql.y"
|
|
|
|
#line 3307 "sql.c"
|
|
}
|
|
break;
|
|
case 354: /* priv_level */
|
|
{
|
|
#line 137 "sql.y"
|
|
|
|
#line 3314 "sql.c"
|
|
}
|
|
break;
|
|
case 363: /* force_opt */
|
|
case 364: /* unsafe_opt */
|
|
case 365: /* not_exists_opt */
|
|
case 367: /* exists_opt */
|
|
case 426: /* analyze_opt */
|
|
case 429: /* or_replace_opt */
|
|
case 430: /* agg_func_opt */
|
|
case 438: /* ignore_opt */
|
|
case 475: /* set_quantifier_opt */
|
|
case 476: /* tag_mode_opt */
|
|
{
|
|
#line 166 "sql.y"
|
|
|
|
#line 3330 "sql.c"
|
|
}
|
|
break;
|
|
case 376: /* alter_db_option */
|
|
case 398: /* alter_table_option */
|
|
{
|
|
#line 263 "sql.y"
|
|
|
|
#line 3338 "sql.c"
|
|
}
|
|
break;
|
|
case 388: /* type_name */
|
|
{
|
|
#line 384 "sql.y"
|
|
|
|
#line 3345 "sql.c"
|
|
}
|
|
break;
|
|
case 403: /* db_kind_opt */
|
|
case 410: /* table_kind */
|
|
{
|
|
#line 548 "sql.y"
|
|
|
|
#line 3353 "sql.c"
|
|
}
|
|
break;
|
|
case 404: /* table_kind_db_name_cond_opt */
|
|
{
|
|
#line 511 "sql.y"
|
|
|
|
#line 3360 "sql.c"
|
|
}
|
|
break;
|
|
case 459: /* compare_op */
|
|
case 460: /* in_op */
|
|
{
|
|
#line 976 "sql.y"
|
|
|
|
#line 3368 "sql.c"
|
|
}
|
|
break;
|
|
case 472: /* join_type */
|
|
{
|
|
#line 1052 "sql.y"
|
|
|
|
#line 3375 "sql.c"
|
|
}
|
|
break;
|
|
case 488: /* fill_mode */
|
|
{
|
|
#line 1138 "sql.y"
|
|
|
|
#line 3382 "sql.c"
|
|
}
|
|
break;
|
|
case 499: /* ordering_specification_opt */
|
|
{
|
|
#line 1223 "sql.y"
|
|
|
|
#line 3389 "sql.c"
|
|
}
|
|
break;
|
|
case 500: /* null_ordering_opt */
|
|
{
|
|
#line 1229 "sql.y"
|
|
|
|
#line 3396 "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[] = {
|
|
343, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
343, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
344, /* (2) account_options ::= */
|
|
344, /* (3) account_options ::= account_options PPS literal */
|
|
344, /* (4) account_options ::= account_options TSERIES literal */
|
|
344, /* (5) account_options ::= account_options STORAGE literal */
|
|
344, /* (6) account_options ::= account_options STREAMS literal */
|
|
344, /* (7) account_options ::= account_options QTIME literal */
|
|
344, /* (8) account_options ::= account_options DBS literal */
|
|
344, /* (9) account_options ::= account_options USERS literal */
|
|
344, /* (10) account_options ::= account_options CONNS literal */
|
|
344, /* (11) account_options ::= account_options STATE literal */
|
|
345, /* (12) alter_account_options ::= alter_account_option */
|
|
345, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
347, /* (14) alter_account_option ::= PASS literal */
|
|
347, /* (15) alter_account_option ::= PPS literal */
|
|
347, /* (16) alter_account_option ::= TSERIES literal */
|
|
347, /* (17) alter_account_option ::= STORAGE literal */
|
|
347, /* (18) alter_account_option ::= STREAMS literal */
|
|
347, /* (19) alter_account_option ::= QTIME literal */
|
|
347, /* (20) alter_account_option ::= DBS literal */
|
|
347, /* (21) alter_account_option ::= USERS literal */
|
|
347, /* (22) alter_account_option ::= CONNS literal */
|
|
347, /* (23) alter_account_option ::= STATE literal */
|
|
348, /* (24) ip_range_list ::= NK_STRING */
|
|
348, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
349, /* (26) white_list ::= HOST ip_range_list */
|
|
350, /* (27) white_list_opt ::= */
|
|
350, /* (28) white_list_opt ::= white_list */
|
|
343, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
343, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
343, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
343, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
343, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
343, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
343, /* (35) cmd ::= DROP USER user_name */
|
|
352, /* (36) sysinfo_opt ::= */
|
|
352, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
343, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
343, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
353, /* (40) privileges ::= ALL */
|
|
353, /* (41) privileges ::= priv_type_list */
|
|
353, /* (42) privileges ::= SUBSCRIBE */
|
|
356, /* (43) priv_type_list ::= priv_type */
|
|
356, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
357, /* (45) priv_type ::= READ */
|
|
357, /* (46) priv_type ::= WRITE */
|
|
354, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
354, /* (48) priv_level ::= db_name NK_DOT NK_STAR */
|
|
354, /* (49) priv_level ::= db_name NK_DOT table_name */
|
|
354, /* (50) priv_level ::= topic_name */
|
|
355, /* (51) with_opt ::= */
|
|
355, /* (52) with_opt ::= WITH search_condition */
|
|
343, /* (53) cmd ::= CREATE DNODE dnode_endpoint */
|
|
343, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
343, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
343, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
343, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
343, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
343, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
343, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
343, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
343, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
343, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
362, /* (64) dnode_endpoint ::= NK_STRING */
|
|
362, /* (65) dnode_endpoint ::= NK_ID */
|
|
362, /* (66) dnode_endpoint ::= NK_IPTOKEN */
|
|
363, /* (67) force_opt ::= */
|
|
363, /* (68) force_opt ::= FORCE */
|
|
364, /* (69) unsafe_opt ::= UNSAFE */
|
|
343, /* (70) cmd ::= ALTER LOCAL NK_STRING */
|
|
343, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
343, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
343, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
343, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
343, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
343, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
343, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
343, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
343, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
343, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
343, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
343, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
343, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
343, /* (84) cmd ::= DROP DATABASE exists_opt db_name */
|
|
343, /* (85) cmd ::= USE db_name */
|
|
343, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
343, /* (87) cmd ::= FLUSH DATABASE db_name */
|
|
343, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
343, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
365, /* (90) not_exists_opt ::= IF NOT EXISTS */
|
|
365, /* (91) not_exists_opt ::= */
|
|
367, /* (92) exists_opt ::= IF EXISTS */
|
|
367, /* (93) exists_opt ::= */
|
|
366, /* (94) db_options ::= */
|
|
366, /* (95) db_options ::= db_options BUFFER NK_INTEGER */
|
|
366, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
366, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
366, /* (98) db_options ::= db_options COMP NK_INTEGER */
|
|
366, /* (99) db_options ::= db_options DURATION NK_INTEGER */
|
|
366, /* (100) db_options ::= db_options DURATION NK_VARIABLE */
|
|
366, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
366, /* (102) db_options ::= db_options MINROWS NK_INTEGER */
|
|
366, /* (103) db_options ::= db_options KEEP integer_list */
|
|
366, /* (104) db_options ::= db_options KEEP variable_list */
|
|
366, /* (105) db_options ::= db_options PAGES NK_INTEGER */
|
|
366, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
366, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
366, /* (108) db_options ::= db_options PRECISION NK_STRING */
|
|
366, /* (109) db_options ::= db_options REPLICA NK_INTEGER */
|
|
366, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
366, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
366, /* (112) db_options ::= db_options RETENTIONS retention_list */
|
|
366, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
366, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
366, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
366, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
366, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
366, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
366, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
366, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
366, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
366, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
366, /* (123) db_options ::= db_options TABLE_PREFIX signed */
|
|
366, /* (124) db_options ::= db_options TABLE_SUFFIX signed */
|
|
368, /* (125) alter_db_options ::= alter_db_option */
|
|
368, /* (126) alter_db_options ::= alter_db_options alter_db_option */
|
|
376, /* (127) alter_db_option ::= BUFFER NK_INTEGER */
|
|
376, /* (128) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
376, /* (129) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
376, /* (130) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
376, /* (131) alter_db_option ::= KEEP integer_list */
|
|
376, /* (132) alter_db_option ::= KEEP variable_list */
|
|
376, /* (133) alter_db_option ::= PAGES NK_INTEGER */
|
|
376, /* (134) alter_db_option ::= REPLICA NK_INTEGER */
|
|
376, /* (135) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
376, /* (136) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
376, /* (137) alter_db_option ::= MINROWS NK_INTEGER */
|
|
376, /* (138) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
376, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
376, /* (140) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
376, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
372, /* (142) integer_list ::= NK_INTEGER */
|
|
372, /* (143) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
373, /* (144) variable_list ::= NK_VARIABLE */
|
|
373, /* (145) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
374, /* (146) retention_list ::= retention */
|
|
374, /* (147) retention_list ::= retention_list NK_COMMA retention */
|
|
377, /* (148) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
369, /* (149) speed_opt ::= */
|
|
369, /* (150) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
370, /* (151) start_opt ::= */
|
|
370, /* (152) start_opt ::= START WITH NK_INTEGER */
|
|
370, /* (153) start_opt ::= START WITH NK_STRING */
|
|
370, /* (154) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
371, /* (155) end_opt ::= */
|
|
371, /* (156) end_opt ::= END WITH NK_INTEGER */
|
|
371, /* (157) end_opt ::= END WITH NK_STRING */
|
|
371, /* (158) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
343, /* (159) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
343, /* (160) cmd ::= CREATE TABLE multi_create_clause */
|
|
343, /* (161) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
343, /* (162) cmd ::= DROP TABLE multi_drop_clause */
|
|
343, /* (163) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
343, /* (164) cmd ::= ALTER TABLE alter_table_clause */
|
|
343, /* (165) cmd ::= ALTER STABLE alter_table_clause */
|
|
385, /* (166) alter_table_clause ::= full_table_name alter_table_options */
|
|
385, /* (167) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
385, /* (168) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
385, /* (169) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
385, /* (170) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
385, /* (171) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
385, /* (172) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
385, /* (173) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
385, /* (174) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
385, /* (175) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
382, /* (176) multi_create_clause ::= create_subtable_clause */
|
|
382, /* (177) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
390, /* (178) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
384, /* (179) multi_drop_clause ::= drop_table_clause */
|
|
384, /* (180) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
393, /* (181) drop_table_clause ::= exists_opt full_table_name */
|
|
391, /* (182) specific_cols_opt ::= */
|
|
391, /* (183) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
378, /* (184) full_table_name ::= table_name */
|
|
378, /* (185) full_table_name ::= db_name NK_DOT table_name */
|
|
379, /* (186) column_def_list ::= column_def */
|
|
379, /* (187) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
395, /* (188) column_def ::= column_name type_name */
|
|
388, /* (189) type_name ::= BOOL */
|
|
388, /* (190) type_name ::= TINYINT */
|
|
388, /* (191) type_name ::= SMALLINT */
|
|
388, /* (192) type_name ::= INT */
|
|
388, /* (193) type_name ::= INTEGER */
|
|
388, /* (194) type_name ::= BIGINT */
|
|
388, /* (195) type_name ::= FLOAT */
|
|
388, /* (196) type_name ::= DOUBLE */
|
|
388, /* (197) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
388, /* (198) type_name ::= TIMESTAMP */
|
|
388, /* (199) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
388, /* (200) type_name ::= TINYINT UNSIGNED */
|
|
388, /* (201) type_name ::= SMALLINT UNSIGNED */
|
|
388, /* (202) type_name ::= INT UNSIGNED */
|
|
388, /* (203) type_name ::= BIGINT UNSIGNED */
|
|
388, /* (204) type_name ::= JSON */
|
|
388, /* (205) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
388, /* (206) type_name ::= MEDIUMBLOB */
|
|
388, /* (207) type_name ::= BLOB */
|
|
388, /* (208) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
388, /* (209) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
388, /* (210) type_name ::= DECIMAL */
|
|
388, /* (211) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
388, /* (212) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
380, /* (213) tags_def_opt ::= */
|
|
380, /* (214) tags_def_opt ::= tags_def */
|
|
383, /* (215) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
381, /* (216) table_options ::= */
|
|
381, /* (217) table_options ::= table_options COMMENT NK_STRING */
|
|
381, /* (218) table_options ::= table_options MAX_DELAY duration_list */
|
|
381, /* (219) table_options ::= table_options WATERMARK duration_list */
|
|
381, /* (220) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
381, /* (221) table_options ::= table_options TTL NK_INTEGER */
|
|
381, /* (222) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
381, /* (223) table_options ::= table_options DELETE_MARK duration_list */
|
|
386, /* (224) alter_table_options ::= alter_table_option */
|
|
386, /* (225) alter_table_options ::= alter_table_options alter_table_option */
|
|
398, /* (226) alter_table_option ::= COMMENT NK_STRING */
|
|
398, /* (227) alter_table_option ::= TTL NK_INTEGER */
|
|
396, /* (228) duration_list ::= duration_literal */
|
|
396, /* (229) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
397, /* (230) rollup_func_list ::= rollup_func_name */
|
|
397, /* (231) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
400, /* (232) rollup_func_name ::= function_name */
|
|
400, /* (233) rollup_func_name ::= FIRST */
|
|
400, /* (234) rollup_func_name ::= LAST */
|
|
394, /* (235) col_name_list ::= col_name */
|
|
394, /* (236) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
402, /* (237) col_name ::= column_name */
|
|
343, /* (238) cmd ::= SHOW DNODES */
|
|
343, /* (239) cmd ::= SHOW USERS */
|
|
343, /* (240) cmd ::= SHOW USER PRIVILEGES */
|
|
343, /* (241) cmd ::= SHOW db_kind_opt DATABASES */
|
|
343, /* (242) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
343, /* (243) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
343, /* (244) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
343, /* (245) cmd ::= SHOW MNODES */
|
|
343, /* (246) cmd ::= SHOW QNODES */
|
|
343, /* (247) cmd ::= SHOW FUNCTIONS */
|
|
343, /* (248) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
343, /* (249) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
343, /* (250) cmd ::= SHOW STREAMS */
|
|
343, /* (251) cmd ::= SHOW ACCOUNTS */
|
|
343, /* (252) cmd ::= SHOW APPS */
|
|
343, /* (253) cmd ::= SHOW CONNECTIONS */
|
|
343, /* (254) cmd ::= SHOW LICENCES */
|
|
343, /* (255) cmd ::= SHOW GRANTS */
|
|
343, /* (256) cmd ::= SHOW CREATE DATABASE db_name */
|
|
343, /* (257) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
343, /* (258) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
343, /* (259) cmd ::= SHOW QUERIES */
|
|
343, /* (260) cmd ::= SHOW SCORES */
|
|
343, /* (261) cmd ::= SHOW TOPICS */
|
|
343, /* (262) cmd ::= SHOW VARIABLES */
|
|
343, /* (263) cmd ::= SHOW CLUSTER VARIABLES */
|
|
343, /* (264) cmd ::= SHOW LOCAL VARIABLES */
|
|
343, /* (265) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
343, /* (266) cmd ::= SHOW BNODES */
|
|
343, /* (267) cmd ::= SHOW SNODES */
|
|
343, /* (268) cmd ::= SHOW CLUSTER */
|
|
343, /* (269) cmd ::= SHOW TRANSACTIONS */
|
|
343, /* (270) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
343, /* (271) cmd ::= SHOW CONSUMERS */
|
|
343, /* (272) cmd ::= SHOW SUBSCRIPTIONS */
|
|
343, /* (273) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
343, /* (274) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
343, /* (275) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
343, /* (276) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
343, /* (277) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
343, /* (278) cmd ::= SHOW VNODES */
|
|
343, /* (279) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
343, /* (280) cmd ::= SHOW CLUSTER ALIVE */
|
|
404, /* (281) table_kind_db_name_cond_opt ::= */
|
|
404, /* (282) table_kind_db_name_cond_opt ::= table_kind */
|
|
404, /* (283) table_kind_db_name_cond_opt ::= db_name_cond */
|
|
404, /* (284) table_kind_db_name_cond_opt ::= table_kind db_name_cond */
|
|
410, /* (285) table_kind ::= NORMAL */
|
|
410, /* (286) table_kind ::= CHILD */
|
|
411, /* (287) db_name_cond ::= db_name NK_DOT */
|
|
406, /* (288) db_name_cond_opt ::= */
|
|
406, /* (289) db_name_cond_opt ::= db_name NK_DOT */
|
|
405, /* (290) like_pattern_opt ::= */
|
|
405, /* (291) like_pattern_opt ::= LIKE NK_STRING */
|
|
407, /* (292) table_name_cond ::= table_name */
|
|
408, /* (293) from_db_opt ::= */
|
|
408, /* (294) from_db_opt ::= FROM db_name */
|
|
409, /* (295) tag_list_opt ::= */
|
|
409, /* (296) tag_list_opt ::= tag_item */
|
|
409, /* (297) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
412, /* (298) tag_item ::= TBNAME */
|
|
412, /* (299) tag_item ::= QTAGS */
|
|
412, /* (300) tag_item ::= column_name */
|
|
412, /* (301) tag_item ::= column_name column_alias */
|
|
412, /* (302) tag_item ::= column_name AS column_alias */
|
|
403, /* (303) db_kind_opt ::= */
|
|
403, /* (304) db_kind_opt ::= USER */
|
|
403, /* (305) db_kind_opt ::= SYSTEM */
|
|
343, /* (306) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
343, /* (307) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
343, /* (308) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
415, /* (309) full_index_name ::= index_name */
|
|
415, /* (310) full_index_name ::= db_name NK_DOT index_name */
|
|
414, /* (311) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
414, /* (312) 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, /* (313) func_list ::= func */
|
|
417, /* (314) func_list ::= func_list NK_COMMA func */
|
|
420, /* (315) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
421, /* (316) sma_func_name ::= function_name */
|
|
421, /* (317) sma_func_name ::= COUNT */
|
|
421, /* (318) sma_func_name ::= FIRST */
|
|
421, /* (319) sma_func_name ::= LAST */
|
|
421, /* (320) sma_func_name ::= LAST_ROW */
|
|
419, /* (321) sma_stream_opt ::= */
|
|
419, /* (322) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
419, /* (323) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
419, /* (324) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
422, /* (325) with_meta ::= AS */
|
|
422, /* (326) with_meta ::= WITH META AS */
|
|
422, /* (327) with_meta ::= ONLY META AS */
|
|
343, /* (328) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
343, /* (329) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
343, /* (330) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
343, /* (331) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
343, /* (332) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
343, /* (333) cmd ::= DESC full_table_name */
|
|
343, /* (334) cmd ::= DESCRIBE full_table_name */
|
|
343, /* (335) cmd ::= RESET QUERY CACHE */
|
|
343, /* (336) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
343, /* (337) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
426, /* (338) analyze_opt ::= */
|
|
426, /* (339) analyze_opt ::= ANALYZE */
|
|
427, /* (340) explain_options ::= */
|
|
427, /* (341) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
427, /* (342) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
343, /* (343) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
343, /* (344) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
430, /* (345) agg_func_opt ::= */
|
|
430, /* (346) agg_func_opt ::= AGGREGATE */
|
|
431, /* (347) bufsize_opt ::= */
|
|
431, /* (348) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
432, /* (349) language_opt ::= */
|
|
432, /* (350) language_opt ::= LANGUAGE NK_STRING */
|
|
429, /* (351) or_replace_opt ::= */
|
|
429, /* (352) or_replace_opt ::= OR REPLACE */
|
|
343, /* (353) 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 */
|
|
343, /* (354) cmd ::= DROP STREAM exists_opt stream_name */
|
|
343, /* (355) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
343, /* (356) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
435, /* (357) col_list_opt ::= */
|
|
435, /* (358) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
436, /* (359) tag_def_or_ref_opt ::= */
|
|
436, /* (360) tag_def_or_ref_opt ::= tags_def */
|
|
436, /* (361) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
434, /* (362) stream_options ::= */
|
|
434, /* (363) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
434, /* (364) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
434, /* (365) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
434, /* (366) stream_options ::= stream_options WATERMARK duration_literal */
|
|
434, /* (367) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
434, /* (368) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
434, /* (369) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
434, /* (370) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
437, /* (371) subtable_opt ::= */
|
|
437, /* (372) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
438, /* (373) ignore_opt ::= */
|
|
438, /* (374) ignore_opt ::= IGNORE UNTREATED */
|
|
343, /* (375) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
343, /* (376) cmd ::= KILL QUERY NK_STRING */
|
|
343, /* (377) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
343, /* (378) cmd ::= BALANCE VGROUP */
|
|
343, /* (379) cmd ::= BALANCE VGROUP LEADER */
|
|
343, /* (380) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
343, /* (381) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
343, /* (382) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
440, /* (383) dnode_list ::= DNODE NK_INTEGER */
|
|
440, /* (384) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
343, /* (385) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
343, /* (386) cmd ::= query_or_subquery */
|
|
343, /* (387) cmd ::= insert_query */
|
|
428, /* (388) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
428, /* (389) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
346, /* (390) literal ::= NK_INTEGER */
|
|
346, /* (391) literal ::= NK_FLOAT */
|
|
346, /* (392) literal ::= NK_STRING */
|
|
346, /* (393) literal ::= NK_BOOL */
|
|
346, /* (394) literal ::= TIMESTAMP NK_STRING */
|
|
346, /* (395) literal ::= duration_literal */
|
|
346, /* (396) literal ::= NULL */
|
|
346, /* (397) literal ::= NK_QUESTION */
|
|
399, /* (398) duration_literal ::= NK_VARIABLE */
|
|
375, /* (399) signed ::= NK_INTEGER */
|
|
375, /* (400) signed ::= NK_PLUS NK_INTEGER */
|
|
375, /* (401) signed ::= NK_MINUS NK_INTEGER */
|
|
375, /* (402) signed ::= NK_FLOAT */
|
|
375, /* (403) signed ::= NK_PLUS NK_FLOAT */
|
|
375, /* (404) signed ::= NK_MINUS NK_FLOAT */
|
|
389, /* (405) signed_literal ::= signed */
|
|
389, /* (406) signed_literal ::= NK_STRING */
|
|
389, /* (407) signed_literal ::= NK_BOOL */
|
|
389, /* (408) signed_literal ::= TIMESTAMP NK_STRING */
|
|
389, /* (409) signed_literal ::= duration_literal */
|
|
389, /* (410) signed_literal ::= NULL */
|
|
389, /* (411) signed_literal ::= literal_func */
|
|
389, /* (412) signed_literal ::= NK_QUESTION */
|
|
442, /* (413) literal_list ::= signed_literal */
|
|
442, /* (414) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
358, /* (415) db_name ::= NK_ID */
|
|
359, /* (416) table_name ::= NK_ID */
|
|
387, /* (417) column_name ::= NK_ID */
|
|
401, /* (418) function_name ::= NK_ID */
|
|
443, /* (419) table_alias ::= NK_ID */
|
|
413, /* (420) column_alias ::= NK_ID */
|
|
351, /* (421) user_name ::= NK_ID */
|
|
360, /* (422) topic_name ::= NK_ID */
|
|
433, /* (423) stream_name ::= NK_ID */
|
|
425, /* (424) cgroup_name ::= NK_ID */
|
|
416, /* (425) index_name ::= NK_ID */
|
|
444, /* (426) expr_or_subquery ::= expression */
|
|
439, /* (427) expression ::= literal */
|
|
439, /* (428) expression ::= pseudo_column */
|
|
439, /* (429) expression ::= column_reference */
|
|
439, /* (430) expression ::= function_expression */
|
|
439, /* (431) expression ::= case_when_expression */
|
|
439, /* (432) expression ::= NK_LP expression NK_RP */
|
|
439, /* (433) expression ::= NK_PLUS expr_or_subquery */
|
|
439, /* (434) expression ::= NK_MINUS expr_or_subquery */
|
|
439, /* (435) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
439, /* (436) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
439, /* (437) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
439, /* (438) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
439, /* (439) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
439, /* (440) expression ::= column_reference NK_ARROW NK_STRING */
|
|
439, /* (441) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
439, /* (442) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
392, /* (443) expression_list ::= expr_or_subquery */
|
|
392, /* (444) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
446, /* (445) column_reference ::= column_name */
|
|
446, /* (446) column_reference ::= table_name NK_DOT column_name */
|
|
445, /* (447) pseudo_column ::= ROWTS */
|
|
445, /* (448) pseudo_column ::= TBNAME */
|
|
445, /* (449) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
445, /* (450) pseudo_column ::= QSTART */
|
|
445, /* (451) pseudo_column ::= QEND */
|
|
445, /* (452) pseudo_column ::= QDURATION */
|
|
445, /* (453) pseudo_column ::= WSTART */
|
|
445, /* (454) pseudo_column ::= WEND */
|
|
445, /* (455) pseudo_column ::= WDURATION */
|
|
445, /* (456) pseudo_column ::= IROWTS */
|
|
445, /* (457) pseudo_column ::= ISFILLED */
|
|
445, /* (458) pseudo_column ::= QTAGS */
|
|
447, /* (459) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
447, /* (460) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
447, /* (461) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
447, /* (462) function_expression ::= literal_func */
|
|
441, /* (463) literal_func ::= noarg_func NK_LP NK_RP */
|
|
441, /* (464) literal_func ::= NOW */
|
|
451, /* (465) noarg_func ::= NOW */
|
|
451, /* (466) noarg_func ::= TODAY */
|
|
451, /* (467) noarg_func ::= TIMEZONE */
|
|
451, /* (468) noarg_func ::= DATABASE */
|
|
451, /* (469) noarg_func ::= CLIENT_VERSION */
|
|
451, /* (470) noarg_func ::= SERVER_VERSION */
|
|
451, /* (471) noarg_func ::= SERVER_STATUS */
|
|
451, /* (472) noarg_func ::= CURRENT_USER */
|
|
451, /* (473) noarg_func ::= USER */
|
|
449, /* (474) star_func ::= COUNT */
|
|
449, /* (475) star_func ::= FIRST */
|
|
449, /* (476) star_func ::= LAST */
|
|
449, /* (477) star_func ::= LAST_ROW */
|
|
450, /* (478) star_func_para_list ::= NK_STAR */
|
|
450, /* (479) star_func_para_list ::= other_para_list */
|
|
452, /* (480) other_para_list ::= star_func_para */
|
|
452, /* (481) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
453, /* (482) star_func_para ::= expr_or_subquery */
|
|
453, /* (483) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
448, /* (484) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
448, /* (485) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
454, /* (486) when_then_list ::= when_then_expr */
|
|
454, /* (487) when_then_list ::= when_then_list when_then_expr */
|
|
457, /* (488) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
455, /* (489) case_when_else_opt ::= */
|
|
455, /* (490) case_when_else_opt ::= ELSE common_expression */
|
|
458, /* (491) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
458, /* (492) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
458, /* (493) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
458, /* (494) predicate ::= expr_or_subquery IS NULL */
|
|
458, /* (495) predicate ::= expr_or_subquery IS NOT NULL */
|
|
458, /* (496) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
459, /* (497) compare_op ::= NK_LT */
|
|
459, /* (498) compare_op ::= NK_GT */
|
|
459, /* (499) compare_op ::= NK_LE */
|
|
459, /* (500) compare_op ::= NK_GE */
|
|
459, /* (501) compare_op ::= NK_NE */
|
|
459, /* (502) compare_op ::= NK_EQ */
|
|
459, /* (503) compare_op ::= LIKE */
|
|
459, /* (504) compare_op ::= NOT LIKE */
|
|
459, /* (505) compare_op ::= MATCH */
|
|
459, /* (506) compare_op ::= NMATCH */
|
|
459, /* (507) compare_op ::= CONTAINS */
|
|
460, /* (508) in_op ::= IN */
|
|
460, /* (509) in_op ::= NOT IN */
|
|
461, /* (510) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
462, /* (511) boolean_value_expression ::= boolean_primary */
|
|
462, /* (512) boolean_value_expression ::= NOT boolean_primary */
|
|
462, /* (513) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
462, /* (514) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
463, /* (515) boolean_primary ::= predicate */
|
|
463, /* (516) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
456, /* (517) common_expression ::= expr_or_subquery */
|
|
456, /* (518) common_expression ::= boolean_value_expression */
|
|
464, /* (519) from_clause_opt ::= */
|
|
464, /* (520) from_clause_opt ::= FROM table_reference_list */
|
|
465, /* (521) table_reference_list ::= table_reference */
|
|
465, /* (522) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
466, /* (523) table_reference ::= table_primary */
|
|
466, /* (524) table_reference ::= joined_table */
|
|
467, /* (525) table_primary ::= table_name alias_opt */
|
|
467, /* (526) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
467, /* (527) table_primary ::= subquery alias_opt */
|
|
467, /* (528) table_primary ::= parenthesized_joined_table */
|
|
469, /* (529) alias_opt ::= */
|
|
469, /* (530) alias_opt ::= table_alias */
|
|
469, /* (531) alias_opt ::= AS table_alias */
|
|
471, /* (532) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
471, /* (533) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
468, /* (534) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
472, /* (535) join_type ::= */
|
|
472, /* (536) join_type ::= INNER */
|
|
473, /* (537) 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 */
|
|
474, /* (538) hint_list ::= */
|
|
474, /* (539) hint_list ::= NK_HINT */
|
|
476, /* (540) tag_mode_opt ::= */
|
|
476, /* (541) tag_mode_opt ::= TAGS */
|
|
475, /* (542) set_quantifier_opt ::= */
|
|
475, /* (543) set_quantifier_opt ::= DISTINCT */
|
|
475, /* (544) set_quantifier_opt ::= ALL */
|
|
477, /* (545) select_list ::= select_item */
|
|
477, /* (546) select_list ::= select_list NK_COMMA select_item */
|
|
485, /* (547) select_item ::= NK_STAR */
|
|
485, /* (548) select_item ::= common_expression */
|
|
485, /* (549) select_item ::= common_expression column_alias */
|
|
485, /* (550) select_item ::= common_expression AS column_alias */
|
|
485, /* (551) select_item ::= table_name NK_DOT NK_STAR */
|
|
424, /* (552) where_clause_opt ::= */
|
|
424, /* (553) where_clause_opt ::= WHERE search_condition */
|
|
478, /* (554) partition_by_clause_opt ::= */
|
|
478, /* (555) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
486, /* (556) partition_list ::= partition_item */
|
|
486, /* (557) partition_list ::= partition_list NK_COMMA partition_item */
|
|
487, /* (558) partition_item ::= expr_or_subquery */
|
|
487, /* (559) partition_item ::= expr_or_subquery column_alias */
|
|
487, /* (560) partition_item ::= expr_or_subquery AS column_alias */
|
|
482, /* (561) twindow_clause_opt ::= */
|
|
482, /* (562) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
482, /* (563) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
482, /* (564) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
482, /* (565) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
482, /* (566) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
418, /* (567) sliding_opt ::= */
|
|
418, /* (568) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
|
|
481, /* (569) fill_opt ::= */
|
|
481, /* (570) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
481, /* (571) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
481, /* (572) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
488, /* (573) fill_mode ::= NONE */
|
|
488, /* (574) fill_mode ::= PREV */
|
|
488, /* (575) fill_mode ::= NULL */
|
|
488, /* (576) fill_mode ::= NULL_F */
|
|
488, /* (577) fill_mode ::= LINEAR */
|
|
488, /* (578) fill_mode ::= NEXT */
|
|
483, /* (579) group_by_clause_opt ::= */
|
|
483, /* (580) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
489, /* (581) group_by_list ::= expr_or_subquery */
|
|
489, /* (582) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
484, /* (583) having_clause_opt ::= */
|
|
484, /* (584) having_clause_opt ::= HAVING search_condition */
|
|
479, /* (585) range_opt ::= */
|
|
479, /* (586) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
479, /* (587) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
480, /* (588) every_opt ::= */
|
|
480, /* (589) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
490, /* (590) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
491, /* (591) query_simple ::= query_specification */
|
|
491, /* (592) query_simple ::= union_query_expression */
|
|
495, /* (593) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
495, /* (594) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
496, /* (595) query_simple_or_subquery ::= query_simple */
|
|
496, /* (596) query_simple_or_subquery ::= subquery */
|
|
423, /* (597) query_or_subquery ::= query_expression */
|
|
423, /* (598) query_or_subquery ::= subquery */
|
|
492, /* (599) order_by_clause_opt ::= */
|
|
492, /* (600) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
493, /* (601) slimit_clause_opt ::= */
|
|
493, /* (602) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
493, /* (603) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
493, /* (604) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
494, /* (605) limit_clause_opt ::= */
|
|
494, /* (606) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
494, /* (607) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
494, /* (608) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
470, /* (609) subquery ::= NK_LP query_expression NK_RP */
|
|
470, /* (610) subquery ::= NK_LP subquery NK_RP */
|
|
361, /* (611) search_condition ::= common_expression */
|
|
497, /* (612) sort_specification_list ::= sort_specification */
|
|
497, /* (613) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
498, /* (614) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
499, /* (615) ordering_specification_opt ::= */
|
|
499, /* (616) ordering_specification_opt ::= ASC */
|
|
499, /* (617) ordering_specification_opt ::= DESC */
|
|
500, /* (618) null_ordering_opt ::= */
|
|
500, /* (619) null_ordering_opt ::= NULLS FIRST */
|
|
500, /* (620) null_ordering_opt ::= NULLS LAST */
|
|
};
|
|
|
|
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
|
|
** of symbols on the right-hand side of that rule. */
|
|
static const signed char yyRuleInfoNRhs[] = {
|
|
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
0, /* (2) account_options ::= */
|
|
-3, /* (3) account_options ::= account_options PPS literal */
|
|
-3, /* (4) account_options ::= account_options TSERIES literal */
|
|
-3, /* (5) account_options ::= account_options STORAGE literal */
|
|
-3, /* (6) account_options ::= account_options STREAMS literal */
|
|
-3, /* (7) account_options ::= account_options QTIME literal */
|
|
-3, /* (8) account_options ::= account_options DBS literal */
|
|
-3, /* (9) account_options ::= account_options USERS literal */
|
|
-3, /* (10) account_options ::= account_options CONNS literal */
|
|
-3, /* (11) account_options ::= account_options STATE literal */
|
|
-1, /* (12) alter_account_options ::= alter_account_option */
|
|
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
-2, /* (14) alter_account_option ::= PASS literal */
|
|
-2, /* (15) alter_account_option ::= PPS literal */
|
|
-2, /* (16) alter_account_option ::= TSERIES literal */
|
|
-2, /* (17) alter_account_option ::= STORAGE literal */
|
|
-2, /* (18) alter_account_option ::= STREAMS literal */
|
|
-2, /* (19) alter_account_option ::= QTIME literal */
|
|
-2, /* (20) alter_account_option ::= DBS literal */
|
|
-2, /* (21) alter_account_option ::= USERS literal */
|
|
-2, /* (22) alter_account_option ::= CONNS literal */
|
|
-2, /* (23) alter_account_option ::= STATE literal */
|
|
-1, /* (24) ip_range_list ::= NK_STRING */
|
|
-3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
-2, /* (26) white_list ::= HOST ip_range_list */
|
|
0, /* (27) white_list_opt ::= */
|
|
-1, /* (28) white_list_opt ::= white_list */
|
|
-7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
-5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
-5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
-5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
-5, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
-5, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
-3, /* (35) cmd ::= DROP USER user_name */
|
|
0, /* (36) sysinfo_opt ::= */
|
|
-2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
-7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
-7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
-1, /* (40) privileges ::= ALL */
|
|
-1, /* (41) privileges ::= priv_type_list */
|
|
-1, /* (42) privileges ::= SUBSCRIBE */
|
|
-1, /* (43) priv_type_list ::= priv_type */
|
|
-3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
-1, /* (45) priv_type ::= READ */
|
|
-1, /* (46) priv_type ::= WRITE */
|
|
-3, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
-3, /* (48) priv_level ::= db_name NK_DOT NK_STAR */
|
|
-3, /* (49) priv_level ::= db_name NK_DOT table_name */
|
|
-1, /* (50) priv_level ::= topic_name */
|
|
0, /* (51) with_opt ::= */
|
|
-2, /* (52) with_opt ::= WITH search_condition */
|
|
-3, /* (53) cmd ::= CREATE DNODE dnode_endpoint */
|
|
-5, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
-4, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
-4, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
-4, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
-4, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
-4, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
-5, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
-4, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
-5, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
-3, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
-1, /* (64) dnode_endpoint ::= NK_STRING */
|
|
-1, /* (65) dnode_endpoint ::= NK_ID */
|
|
-1, /* (66) dnode_endpoint ::= NK_IPTOKEN */
|
|
0, /* (67) force_opt ::= */
|
|
-1, /* (68) force_opt ::= FORCE */
|
|
-1, /* (69) unsafe_opt ::= UNSAFE */
|
|
-3, /* (70) cmd ::= ALTER LOCAL NK_STRING */
|
|
-4, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
-5, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
-5, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
-4, /* (84) cmd ::= DROP DATABASE exists_opt db_name */
|
|
-2, /* (85) cmd ::= USE db_name */
|
|
-4, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
-3, /* (87) cmd ::= FLUSH DATABASE db_name */
|
|
-4, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
-5, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
-3, /* (90) not_exists_opt ::= IF NOT EXISTS */
|
|
0, /* (91) not_exists_opt ::= */
|
|
-2, /* (92) exists_opt ::= IF EXISTS */
|
|
0, /* (93) exists_opt ::= */
|
|
0, /* (94) db_options ::= */
|
|
-3, /* (95) db_options ::= db_options BUFFER NK_INTEGER */
|
|
-3, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
-3, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
-3, /* (98) db_options ::= db_options COMP NK_INTEGER */
|
|
-3, /* (99) db_options ::= db_options DURATION NK_INTEGER */
|
|
-3, /* (100) db_options ::= db_options DURATION NK_VARIABLE */
|
|
-3, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
-3, /* (102) db_options ::= db_options MINROWS NK_INTEGER */
|
|
-3, /* (103) db_options ::= db_options KEEP integer_list */
|
|
-3, /* (104) db_options ::= db_options KEEP variable_list */
|
|
-3, /* (105) db_options ::= db_options PAGES NK_INTEGER */
|
|
-3, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
-3, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
-3, /* (108) db_options ::= db_options PRECISION NK_STRING */
|
|
-3, /* (109) db_options ::= db_options REPLICA NK_INTEGER */
|
|
-3, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
-3, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
-3, /* (112) db_options ::= db_options RETENTIONS retention_list */
|
|
-3, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
-3, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
-3, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-3, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-4, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-3, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
-4, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-3, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
-3, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
-3, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
-3, /* (123) db_options ::= db_options TABLE_PREFIX signed */
|
|
-3, /* (124) db_options ::= db_options TABLE_SUFFIX signed */
|
|
-1, /* (125) alter_db_options ::= alter_db_option */
|
|
-2, /* (126) alter_db_options ::= alter_db_options alter_db_option */
|
|
-2, /* (127) alter_db_option ::= BUFFER NK_INTEGER */
|
|
-2, /* (128) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
-2, /* (129) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
-2, /* (130) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-2, /* (131) alter_db_option ::= KEEP integer_list */
|
|
-2, /* (132) alter_db_option ::= KEEP variable_list */
|
|
-2, /* (133) alter_db_option ::= PAGES NK_INTEGER */
|
|
-2, /* (134) alter_db_option ::= REPLICA NK_INTEGER */
|
|
-2, /* (135) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
-2, /* (136) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
-2, /* (137) alter_db_option ::= MINROWS NK_INTEGER */
|
|
-2, /* (138) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-3, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-2, /* (140) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
-3, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-1, /* (142) integer_list ::= NK_INTEGER */
|
|
-3, /* (143) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
-1, /* (144) variable_list ::= NK_VARIABLE */
|
|
-3, /* (145) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
-1, /* (146) retention_list ::= retention */
|
|
-3, /* (147) retention_list ::= retention_list NK_COMMA retention */
|
|
-3, /* (148) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
0, /* (149) speed_opt ::= */
|
|
-2, /* (150) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
0, /* (151) start_opt ::= */
|
|
-3, /* (152) start_opt ::= START WITH NK_INTEGER */
|
|
-3, /* (153) start_opt ::= START WITH NK_STRING */
|
|
-4, /* (154) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
0, /* (155) end_opt ::= */
|
|
-3, /* (156) end_opt ::= END WITH NK_INTEGER */
|
|
-3, /* (157) end_opt ::= END WITH NK_STRING */
|
|
-4, /* (158) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
-9, /* (159) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
-3, /* (160) cmd ::= CREATE TABLE multi_create_clause */
|
|
-9, /* (161) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
-3, /* (162) cmd ::= DROP TABLE multi_drop_clause */
|
|
-4, /* (163) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
-3, /* (164) cmd ::= ALTER TABLE alter_table_clause */
|
|
-3, /* (165) cmd ::= ALTER STABLE alter_table_clause */
|
|
-2, /* (166) alter_table_clause ::= full_table_name alter_table_options */
|
|
-5, /* (167) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
-4, /* (168) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
-5, /* (169) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
-5, /* (170) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
-5, /* (171) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
-4, /* (172) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
-5, /* (173) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
-5, /* (174) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
-6, /* (175) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
-1, /* (176) multi_create_clause ::= create_subtable_clause */
|
|
-2, /* (177) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
-10, /* (178) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
-1, /* (179) multi_drop_clause ::= drop_table_clause */
|
|
-3, /* (180) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
-2, /* (181) drop_table_clause ::= exists_opt full_table_name */
|
|
0, /* (182) specific_cols_opt ::= */
|
|
-3, /* (183) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
-1, /* (184) full_table_name ::= table_name */
|
|
-3, /* (185) full_table_name ::= db_name NK_DOT table_name */
|
|
-1, /* (186) column_def_list ::= column_def */
|
|
-3, /* (187) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
-2, /* (188) column_def ::= column_name type_name */
|
|
-1, /* (189) type_name ::= BOOL */
|
|
-1, /* (190) type_name ::= TINYINT */
|
|
-1, /* (191) type_name ::= SMALLINT */
|
|
-1, /* (192) type_name ::= INT */
|
|
-1, /* (193) type_name ::= INTEGER */
|
|
-1, /* (194) type_name ::= BIGINT */
|
|
-1, /* (195) type_name ::= FLOAT */
|
|
-1, /* (196) type_name ::= DOUBLE */
|
|
-4, /* (197) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (198) type_name ::= TIMESTAMP */
|
|
-4, /* (199) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
-2, /* (200) type_name ::= TINYINT UNSIGNED */
|
|
-2, /* (201) type_name ::= SMALLINT UNSIGNED */
|
|
-2, /* (202) type_name ::= INT UNSIGNED */
|
|
-2, /* (203) type_name ::= BIGINT UNSIGNED */
|
|
-1, /* (204) type_name ::= JSON */
|
|
-4, /* (205) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (206) type_name ::= MEDIUMBLOB */
|
|
-1, /* (207) type_name ::= BLOB */
|
|
-4, /* (208) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
-4, /* (209) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (210) type_name ::= DECIMAL */
|
|
-4, /* (211) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
-6, /* (212) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
0, /* (213) tags_def_opt ::= */
|
|
-1, /* (214) tags_def_opt ::= tags_def */
|
|
-4, /* (215) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
0, /* (216) table_options ::= */
|
|
-3, /* (217) table_options ::= table_options COMMENT NK_STRING */
|
|
-3, /* (218) table_options ::= table_options MAX_DELAY duration_list */
|
|
-3, /* (219) table_options ::= table_options WATERMARK duration_list */
|
|
-5, /* (220) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
-3, /* (221) table_options ::= table_options TTL NK_INTEGER */
|
|
-5, /* (222) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
-3, /* (223) table_options ::= table_options DELETE_MARK duration_list */
|
|
-1, /* (224) alter_table_options ::= alter_table_option */
|
|
-2, /* (225) alter_table_options ::= alter_table_options alter_table_option */
|
|
-2, /* (226) alter_table_option ::= COMMENT NK_STRING */
|
|
-2, /* (227) alter_table_option ::= TTL NK_INTEGER */
|
|
-1, /* (228) duration_list ::= duration_literal */
|
|
-3, /* (229) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
-1, /* (230) rollup_func_list ::= rollup_func_name */
|
|
-3, /* (231) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
-1, /* (232) rollup_func_name ::= function_name */
|
|
-1, /* (233) rollup_func_name ::= FIRST */
|
|
-1, /* (234) rollup_func_name ::= LAST */
|
|
-1, /* (235) col_name_list ::= col_name */
|
|
-3, /* (236) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
-1, /* (237) col_name ::= column_name */
|
|
-2, /* (238) cmd ::= SHOW DNODES */
|
|
-2, /* (239) cmd ::= SHOW USERS */
|
|
-3, /* (240) cmd ::= SHOW USER PRIVILEGES */
|
|
-3, /* (241) cmd ::= SHOW db_kind_opt DATABASES */
|
|
-4, /* (242) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
-4, /* (243) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
-3, /* (244) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
-2, /* (245) cmd ::= SHOW MNODES */
|
|
-2, /* (246) cmd ::= SHOW QNODES */
|
|
-2, /* (247) cmd ::= SHOW FUNCTIONS */
|
|
-5, /* (248) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
-6, /* (249) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
-2, /* (250) cmd ::= SHOW STREAMS */
|
|
-2, /* (251) cmd ::= SHOW ACCOUNTS */
|
|
-2, /* (252) cmd ::= SHOW APPS */
|
|
-2, /* (253) cmd ::= SHOW CONNECTIONS */
|
|
-2, /* (254) cmd ::= SHOW LICENCES */
|
|
-2, /* (255) cmd ::= SHOW GRANTS */
|
|
-4, /* (256) cmd ::= SHOW CREATE DATABASE db_name */
|
|
-4, /* (257) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
-4, /* (258) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
-2, /* (259) cmd ::= SHOW QUERIES */
|
|
-2, /* (260) cmd ::= SHOW SCORES */
|
|
-2, /* (261) cmd ::= SHOW TOPICS */
|
|
-2, /* (262) cmd ::= SHOW VARIABLES */
|
|
-3, /* (263) cmd ::= SHOW CLUSTER VARIABLES */
|
|
-3, /* (264) cmd ::= SHOW LOCAL VARIABLES */
|
|
-5, /* (265) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
-2, /* (266) cmd ::= SHOW BNODES */
|
|
-2, /* (267) cmd ::= SHOW SNODES */
|
|
-2, /* (268) cmd ::= SHOW CLUSTER */
|
|
-2, /* (269) cmd ::= SHOW TRANSACTIONS */
|
|
-4, /* (270) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
-2, /* (271) cmd ::= SHOW CONSUMERS */
|
|
-2, /* (272) cmd ::= SHOW SUBSCRIPTIONS */
|
|
-5, /* (273) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
-6, /* (274) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
-7, /* (275) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
-8, /* (276) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
-5, /* (277) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
-2, /* (278) cmd ::= SHOW VNODES */
|
|
-3, /* (279) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
-3, /* (280) cmd ::= SHOW CLUSTER ALIVE */
|
|
0, /* (281) table_kind_db_name_cond_opt ::= */
|
|
-1, /* (282) table_kind_db_name_cond_opt ::= table_kind */
|
|
-1, /* (283) table_kind_db_name_cond_opt ::= db_name_cond */
|
|
-2, /* (284) table_kind_db_name_cond_opt ::= table_kind db_name_cond */
|
|
-1, /* (285) table_kind ::= NORMAL */
|
|
-1, /* (286) table_kind ::= CHILD */
|
|
-2, /* (287) db_name_cond ::= db_name NK_DOT */
|
|
0, /* (288) db_name_cond_opt ::= */
|
|
-2, /* (289) db_name_cond_opt ::= db_name NK_DOT */
|
|
0, /* (290) like_pattern_opt ::= */
|
|
-2, /* (291) like_pattern_opt ::= LIKE NK_STRING */
|
|
-1, /* (292) table_name_cond ::= table_name */
|
|
0, /* (293) from_db_opt ::= */
|
|
-2, /* (294) from_db_opt ::= FROM db_name */
|
|
0, /* (295) tag_list_opt ::= */
|
|
-1, /* (296) tag_list_opt ::= tag_item */
|
|
-3, /* (297) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
-1, /* (298) tag_item ::= TBNAME */
|
|
-1, /* (299) tag_item ::= QTAGS */
|
|
-1, /* (300) tag_item ::= column_name */
|
|
-2, /* (301) tag_item ::= column_name column_alias */
|
|
-3, /* (302) tag_item ::= column_name AS column_alias */
|
|
0, /* (303) db_kind_opt ::= */
|
|
-1, /* (304) db_kind_opt ::= USER */
|
|
-1, /* (305) db_kind_opt ::= SYSTEM */
|
|
-8, /* (306) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
-9, /* (307) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
-4, /* (308) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
-1, /* (309) full_index_name ::= index_name */
|
|
-3, /* (310) full_index_name ::= db_name NK_DOT index_name */
|
|
-10, /* (311) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
-12, /* (312) 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, /* (313) func_list ::= func */
|
|
-3, /* (314) func_list ::= func_list NK_COMMA func */
|
|
-4, /* (315) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
-1, /* (316) sma_func_name ::= function_name */
|
|
-1, /* (317) sma_func_name ::= COUNT */
|
|
-1, /* (318) sma_func_name ::= FIRST */
|
|
-1, /* (319) sma_func_name ::= LAST */
|
|
-1, /* (320) sma_func_name ::= LAST_ROW */
|
|
0, /* (321) sma_stream_opt ::= */
|
|
-3, /* (322) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
-3, /* (323) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
-3, /* (324) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
-1, /* (325) with_meta ::= AS */
|
|
-3, /* (326) with_meta ::= WITH META AS */
|
|
-3, /* (327) with_meta ::= ONLY META AS */
|
|
-6, /* (328) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
-7, /* (329) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
-8, /* (330) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
-4, /* (331) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
-7, /* (332) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
-2, /* (333) cmd ::= DESC full_table_name */
|
|
-2, /* (334) cmd ::= DESCRIBE full_table_name */
|
|
-3, /* (335) cmd ::= RESET QUERY CACHE */
|
|
-4, /* (336) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
-4, /* (337) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
0, /* (338) analyze_opt ::= */
|
|
-1, /* (339) analyze_opt ::= ANALYZE */
|
|
0, /* (340) explain_options ::= */
|
|
-3, /* (341) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
-3, /* (342) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
-12, /* (343) 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, /* (344) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
0, /* (345) agg_func_opt ::= */
|
|
-1, /* (346) agg_func_opt ::= AGGREGATE */
|
|
0, /* (347) bufsize_opt ::= */
|
|
-2, /* (348) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
0, /* (349) language_opt ::= */
|
|
-2, /* (350) language_opt ::= LANGUAGE NK_STRING */
|
|
0, /* (351) or_replace_opt ::= */
|
|
-2, /* (352) or_replace_opt ::= OR REPLACE */
|
|
-12, /* (353) 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, /* (354) cmd ::= DROP STREAM exists_opt stream_name */
|
|
-4, /* (355) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
-5, /* (356) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
0, /* (357) col_list_opt ::= */
|
|
-3, /* (358) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
0, /* (359) tag_def_or_ref_opt ::= */
|
|
-1, /* (360) tag_def_or_ref_opt ::= tags_def */
|
|
-4, /* (361) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
0, /* (362) stream_options ::= */
|
|
-3, /* (363) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
-3, /* (364) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
-4, /* (365) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
-3, /* (366) stream_options ::= stream_options WATERMARK duration_literal */
|
|
-4, /* (367) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
-3, /* (368) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
-3, /* (369) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
-4, /* (370) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
0, /* (371) subtable_opt ::= */
|
|
-4, /* (372) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
0, /* (373) ignore_opt ::= */
|
|
-2, /* (374) ignore_opt ::= IGNORE UNTREATED */
|
|
-3, /* (375) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
-3, /* (376) cmd ::= KILL QUERY NK_STRING */
|
|
-3, /* (377) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
-2, /* (378) cmd ::= BALANCE VGROUP */
|
|
-3, /* (379) cmd ::= BALANCE VGROUP LEADER */
|
|
-4, /* (380) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
-4, /* (381) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
-3, /* (382) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
-2, /* (383) dnode_list ::= DNODE NK_INTEGER */
|
|
-3, /* (384) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
-4, /* (385) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
-1, /* (386) cmd ::= query_or_subquery */
|
|
-1, /* (387) cmd ::= insert_query */
|
|
-7, /* (388) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
-4, /* (389) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
-1, /* (390) literal ::= NK_INTEGER */
|
|
-1, /* (391) literal ::= NK_FLOAT */
|
|
-1, /* (392) literal ::= NK_STRING */
|
|
-1, /* (393) literal ::= NK_BOOL */
|
|
-2, /* (394) literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (395) literal ::= duration_literal */
|
|
-1, /* (396) literal ::= NULL */
|
|
-1, /* (397) literal ::= NK_QUESTION */
|
|
-1, /* (398) duration_literal ::= NK_VARIABLE */
|
|
-1, /* (399) signed ::= NK_INTEGER */
|
|
-2, /* (400) signed ::= NK_PLUS NK_INTEGER */
|
|
-2, /* (401) signed ::= NK_MINUS NK_INTEGER */
|
|
-1, /* (402) signed ::= NK_FLOAT */
|
|
-2, /* (403) signed ::= NK_PLUS NK_FLOAT */
|
|
-2, /* (404) signed ::= NK_MINUS NK_FLOAT */
|
|
-1, /* (405) signed_literal ::= signed */
|
|
-1, /* (406) signed_literal ::= NK_STRING */
|
|
-1, /* (407) signed_literal ::= NK_BOOL */
|
|
-2, /* (408) signed_literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (409) signed_literal ::= duration_literal */
|
|
-1, /* (410) signed_literal ::= NULL */
|
|
-1, /* (411) signed_literal ::= literal_func */
|
|
-1, /* (412) signed_literal ::= NK_QUESTION */
|
|
-1, /* (413) literal_list ::= signed_literal */
|
|
-3, /* (414) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
-1, /* (415) db_name ::= NK_ID */
|
|
-1, /* (416) table_name ::= NK_ID */
|
|
-1, /* (417) column_name ::= NK_ID */
|
|
-1, /* (418) function_name ::= NK_ID */
|
|
-1, /* (419) table_alias ::= NK_ID */
|
|
-1, /* (420) column_alias ::= NK_ID */
|
|
-1, /* (421) user_name ::= NK_ID */
|
|
-1, /* (422) topic_name ::= NK_ID */
|
|
-1, /* (423) stream_name ::= NK_ID */
|
|
-1, /* (424) cgroup_name ::= NK_ID */
|
|
-1, /* (425) index_name ::= NK_ID */
|
|
-1, /* (426) expr_or_subquery ::= expression */
|
|
-1, /* (427) expression ::= literal */
|
|
-1, /* (428) expression ::= pseudo_column */
|
|
-1, /* (429) expression ::= column_reference */
|
|
-1, /* (430) expression ::= function_expression */
|
|
-1, /* (431) expression ::= case_when_expression */
|
|
-3, /* (432) expression ::= NK_LP expression NK_RP */
|
|
-2, /* (433) expression ::= NK_PLUS expr_or_subquery */
|
|
-2, /* (434) expression ::= NK_MINUS expr_or_subquery */
|
|
-3, /* (435) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
-3, /* (436) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
-3, /* (437) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
-3, /* (438) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
-3, /* (439) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
-3, /* (440) expression ::= column_reference NK_ARROW NK_STRING */
|
|
-3, /* (441) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
-3, /* (442) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
-1, /* (443) expression_list ::= expr_or_subquery */
|
|
-3, /* (444) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
-1, /* (445) column_reference ::= column_name */
|
|
-3, /* (446) column_reference ::= table_name NK_DOT column_name */
|
|
-1, /* (447) pseudo_column ::= ROWTS */
|
|
-1, /* (448) pseudo_column ::= TBNAME */
|
|
-3, /* (449) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
-1, /* (450) pseudo_column ::= QSTART */
|
|
-1, /* (451) pseudo_column ::= QEND */
|
|
-1, /* (452) pseudo_column ::= QDURATION */
|
|
-1, /* (453) pseudo_column ::= WSTART */
|
|
-1, /* (454) pseudo_column ::= WEND */
|
|
-1, /* (455) pseudo_column ::= WDURATION */
|
|
-1, /* (456) pseudo_column ::= IROWTS */
|
|
-1, /* (457) pseudo_column ::= ISFILLED */
|
|
-1, /* (458) pseudo_column ::= QTAGS */
|
|
-4, /* (459) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
-4, /* (460) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
-6, /* (461) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
-1, /* (462) function_expression ::= literal_func */
|
|
-3, /* (463) literal_func ::= noarg_func NK_LP NK_RP */
|
|
-1, /* (464) literal_func ::= NOW */
|
|
-1, /* (465) noarg_func ::= NOW */
|
|
-1, /* (466) noarg_func ::= TODAY */
|
|
-1, /* (467) noarg_func ::= TIMEZONE */
|
|
-1, /* (468) noarg_func ::= DATABASE */
|
|
-1, /* (469) noarg_func ::= CLIENT_VERSION */
|
|
-1, /* (470) noarg_func ::= SERVER_VERSION */
|
|
-1, /* (471) noarg_func ::= SERVER_STATUS */
|
|
-1, /* (472) noarg_func ::= CURRENT_USER */
|
|
-1, /* (473) noarg_func ::= USER */
|
|
-1, /* (474) star_func ::= COUNT */
|
|
-1, /* (475) star_func ::= FIRST */
|
|
-1, /* (476) star_func ::= LAST */
|
|
-1, /* (477) star_func ::= LAST_ROW */
|
|
-1, /* (478) star_func_para_list ::= NK_STAR */
|
|
-1, /* (479) star_func_para_list ::= other_para_list */
|
|
-1, /* (480) other_para_list ::= star_func_para */
|
|
-3, /* (481) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
-1, /* (482) star_func_para ::= expr_or_subquery */
|
|
-3, /* (483) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
-4, /* (484) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
-5, /* (485) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
-1, /* (486) when_then_list ::= when_then_expr */
|
|
-2, /* (487) when_then_list ::= when_then_list when_then_expr */
|
|
-4, /* (488) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
0, /* (489) case_when_else_opt ::= */
|
|
-2, /* (490) case_when_else_opt ::= ELSE common_expression */
|
|
-3, /* (491) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
-5, /* (492) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-6, /* (493) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-3, /* (494) predicate ::= expr_or_subquery IS NULL */
|
|
-4, /* (495) predicate ::= expr_or_subquery IS NOT NULL */
|
|
-3, /* (496) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
-1, /* (497) compare_op ::= NK_LT */
|
|
-1, /* (498) compare_op ::= NK_GT */
|
|
-1, /* (499) compare_op ::= NK_LE */
|
|
-1, /* (500) compare_op ::= NK_GE */
|
|
-1, /* (501) compare_op ::= NK_NE */
|
|
-1, /* (502) compare_op ::= NK_EQ */
|
|
-1, /* (503) compare_op ::= LIKE */
|
|
-2, /* (504) compare_op ::= NOT LIKE */
|
|
-1, /* (505) compare_op ::= MATCH */
|
|
-1, /* (506) compare_op ::= NMATCH */
|
|
-1, /* (507) compare_op ::= CONTAINS */
|
|
-1, /* (508) in_op ::= IN */
|
|
-2, /* (509) in_op ::= NOT IN */
|
|
-3, /* (510) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
-1, /* (511) boolean_value_expression ::= boolean_primary */
|
|
-2, /* (512) boolean_value_expression ::= NOT boolean_primary */
|
|
-3, /* (513) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
-3, /* (514) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
-1, /* (515) boolean_primary ::= predicate */
|
|
-3, /* (516) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
-1, /* (517) common_expression ::= expr_or_subquery */
|
|
-1, /* (518) common_expression ::= boolean_value_expression */
|
|
0, /* (519) from_clause_opt ::= */
|
|
-2, /* (520) from_clause_opt ::= FROM table_reference_list */
|
|
-1, /* (521) table_reference_list ::= table_reference */
|
|
-3, /* (522) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
-1, /* (523) table_reference ::= table_primary */
|
|
-1, /* (524) table_reference ::= joined_table */
|
|
-2, /* (525) table_primary ::= table_name alias_opt */
|
|
-4, /* (526) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
-2, /* (527) table_primary ::= subquery alias_opt */
|
|
-1, /* (528) table_primary ::= parenthesized_joined_table */
|
|
0, /* (529) alias_opt ::= */
|
|
-1, /* (530) alias_opt ::= table_alias */
|
|
-2, /* (531) alias_opt ::= AS table_alias */
|
|
-3, /* (532) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
-3, /* (533) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
-6, /* (534) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
0, /* (535) join_type ::= */
|
|
-1, /* (536) join_type ::= INNER */
|
|
-14, /* (537) 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, /* (538) hint_list ::= */
|
|
-1, /* (539) hint_list ::= NK_HINT */
|
|
0, /* (540) tag_mode_opt ::= */
|
|
-1, /* (541) tag_mode_opt ::= TAGS */
|
|
0, /* (542) set_quantifier_opt ::= */
|
|
-1, /* (543) set_quantifier_opt ::= DISTINCT */
|
|
-1, /* (544) set_quantifier_opt ::= ALL */
|
|
-1, /* (545) select_list ::= select_item */
|
|
-3, /* (546) select_list ::= select_list NK_COMMA select_item */
|
|
-1, /* (547) select_item ::= NK_STAR */
|
|
-1, /* (548) select_item ::= common_expression */
|
|
-2, /* (549) select_item ::= common_expression column_alias */
|
|
-3, /* (550) select_item ::= common_expression AS column_alias */
|
|
-3, /* (551) select_item ::= table_name NK_DOT NK_STAR */
|
|
0, /* (552) where_clause_opt ::= */
|
|
-2, /* (553) where_clause_opt ::= WHERE search_condition */
|
|
0, /* (554) partition_by_clause_opt ::= */
|
|
-3, /* (555) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
-1, /* (556) partition_list ::= partition_item */
|
|
-3, /* (557) partition_list ::= partition_list NK_COMMA partition_item */
|
|
-1, /* (558) partition_item ::= expr_or_subquery */
|
|
-2, /* (559) partition_item ::= expr_or_subquery column_alias */
|
|
-3, /* (560) partition_item ::= expr_or_subquery AS column_alias */
|
|
0, /* (561) twindow_clause_opt ::= */
|
|
-6, /* (562) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
-4, /* (563) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
-6, /* (564) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
-8, /* (565) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
-7, /* (566) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
0, /* (567) sliding_opt ::= */
|
|
-4, /* (568) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */
|
|
0, /* (569) fill_opt ::= */
|
|
-4, /* (570) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
-6, /* (571) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
-6, /* (572) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
-1, /* (573) fill_mode ::= NONE */
|
|
-1, /* (574) fill_mode ::= PREV */
|
|
-1, /* (575) fill_mode ::= NULL */
|
|
-1, /* (576) fill_mode ::= NULL_F */
|
|
-1, /* (577) fill_mode ::= LINEAR */
|
|
-1, /* (578) fill_mode ::= NEXT */
|
|
0, /* (579) group_by_clause_opt ::= */
|
|
-3, /* (580) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
-1, /* (581) group_by_list ::= expr_or_subquery */
|
|
-3, /* (582) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
0, /* (583) having_clause_opt ::= */
|
|
-2, /* (584) having_clause_opt ::= HAVING search_condition */
|
|
0, /* (585) range_opt ::= */
|
|
-6, /* (586) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
-4, /* (587) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
0, /* (588) every_opt ::= */
|
|
-4, /* (589) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
-4, /* (590) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
-1, /* (591) query_simple ::= query_specification */
|
|
-1, /* (592) query_simple ::= union_query_expression */
|
|
-4, /* (593) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
-3, /* (594) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
-1, /* (595) query_simple_or_subquery ::= query_simple */
|
|
-1, /* (596) query_simple_or_subquery ::= subquery */
|
|
-1, /* (597) query_or_subquery ::= query_expression */
|
|
-1, /* (598) query_or_subquery ::= subquery */
|
|
0, /* (599) order_by_clause_opt ::= */
|
|
-3, /* (600) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
0, /* (601) slimit_clause_opt ::= */
|
|
-2, /* (602) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
-4, /* (603) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
-4, /* (604) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
0, /* (605) limit_clause_opt ::= */
|
|
-2, /* (606) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
-4, /* (607) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
-4, /* (608) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
-3, /* (609) subquery ::= NK_LP query_expression NK_RP */
|
|
-3, /* (610) subquery ::= NK_LP subquery NK_RP */
|
|
-1, /* (611) search_condition ::= common_expression */
|
|
-1, /* (612) sort_specification_list ::= sort_specification */
|
|
-3, /* (613) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
-3, /* (614) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
0, /* (615) ordering_specification_opt ::= */
|
|
-1, /* (616) ordering_specification_opt ::= ASC */
|
|
-1, /* (617) ordering_specification_opt ::= DESC */
|
|
0, /* (618) null_ordering_opt ::= */
|
|
-2, /* (619) null_ordering_opt ::= NULLS FIRST */
|
|
-2, /* (620) 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 4976 "sql.c"
|
|
yy_destructor(yypParser,344,&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 4982 "sql.c"
|
|
yy_destructor(yypParser,345,&yymsp[0].minor);
|
|
break;
|
|
case 2: /* account_options ::= */
|
|
#line 55 "sql.y"
|
|
{ }
|
|
#line 4988 "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,344,&yymsp[-2].minor);
|
|
#line 56 "sql.y"
|
|
{ }
|
|
#line 5002 "sql.c"
|
|
yy_destructor(yypParser,346,&yymsp[0].minor);
|
|
}
|
|
break;
|
|
case 12: /* alter_account_options ::= alter_account_option */
|
|
{ yy_destructor(yypParser,347,&yymsp[0].minor);
|
|
#line 68 "sql.y"
|
|
{ }
|
|
#line 5010 "sql.c"
|
|
}
|
|
break;
|
|
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
|
|
{ yy_destructor(yypParser,345,&yymsp[-1].minor);
|
|
#line 69 "sql.y"
|
|
{ }
|
|
#line 5017 "sql.c"
|
|
yy_destructor(yypParser,347,&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 5033 "sql.c"
|
|
yy_destructor(yypParser,346,&yymsp[0].minor);
|
|
break;
|
|
case 24: /* ip_range_list ::= NK_STRING */
|
|
#line 86 "sql.y"
|
|
{ yylhsminor.yy298 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
#line 5039 "sql.c"
|
|
yymsp[0].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
#line 87 "sql.y"
|
|
{ yylhsminor.yy298 = addNodeToList(pCxt, yymsp[-2].minor.yy298, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
#line 5045 "sql.c"
|
|
yymsp[-2].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 26: /* white_list ::= HOST ip_range_list */
|
|
#line 91 "sql.y"
|
|
{ yymsp[-1].minor.yy298 = yymsp[0].minor.yy298; }
|
|
#line 5051 "sql.c"
|
|
break;
|
|
case 27: /* white_list_opt ::= */
|
|
case 182: /* specific_cols_opt ::= */ yytestcase(yyruleno==182);
|
|
case 213: /* tags_def_opt ::= */ yytestcase(yyruleno==213);
|
|
case 295: /* tag_list_opt ::= */ yytestcase(yyruleno==295);
|
|
case 357: /* col_list_opt ::= */ yytestcase(yyruleno==357);
|
|
case 359: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==359);
|
|
case 554: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==554);
|
|
case 579: /* group_by_clause_opt ::= */ yytestcase(yyruleno==579);
|
|
case 599: /* order_by_clause_opt ::= */ yytestcase(yyruleno==599);
|
|
#line 95 "sql.y"
|
|
{ yymsp[1].minor.yy298 = NULL; }
|
|
#line 5064 "sql.c"
|
|
break;
|
|
case 28: /* white_list_opt ::= white_list */
|
|
case 214: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==214);
|
|
case 360: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==360);
|
|
case 479: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==479);
|
|
#line 96 "sql.y"
|
|
{ yylhsminor.yy298 = yymsp[0].minor.yy298; }
|
|
#line 5072 "sql.c"
|
|
yymsp[0].minor.yy298 = yylhsminor.yy298;
|
|
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.yy203, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy797);
|
|
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy298);
|
|
}
|
|
#line 5081 "sql.c"
|
|
break;
|
|
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
#line 104 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy203, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
|
|
#line 5086 "sql.c"
|
|
break;
|
|
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
#line 105 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy203, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
|
|
#line 5091 "sql.c"
|
|
break;
|
|
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
#line 106 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy203, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
|
|
#line 5096 "sql.c"
|
|
break;
|
|
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
|
|
#line 107 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy203, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy298); }
|
|
#line 5101 "sql.c"
|
|
break;
|
|
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
|
|
#line 108 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy203, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy298); }
|
|
#line 5106 "sql.c"
|
|
break;
|
|
case 35: /* cmd ::= DROP USER user_name */
|
|
#line 109 "sql.y"
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy203); }
|
|
#line 5111 "sql.c"
|
|
break;
|
|
case 36: /* sysinfo_opt ::= */
|
|
#line 113 "sql.y"
|
|
{ yymsp[1].minor.yy797 = 1; }
|
|
#line 5116 "sql.c"
|
|
break;
|
|
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
#line 114 "sql.y"
|
|
{ yymsp[-1].minor.yy797 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
#line 5121 "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.yy999, &yymsp[-3].minor.yy345, &yymsp[0].minor.yy203, yymsp[-2].minor.yy122); }
|
|
#line 5126 "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.yy999, &yymsp[-3].minor.yy345, &yymsp[0].minor.yy203, yymsp[-2].minor.yy122); }
|
|
#line 5131 "sql.c"
|
|
break;
|
|
case 40: /* privileges ::= ALL */
|
|
#line 122 "sql.y"
|
|
{ yymsp[0].minor.yy999 = PRIVILEGE_TYPE_ALL; }
|
|
#line 5136 "sql.c"
|
|
break;
|
|
case 41: /* privileges ::= priv_type_list */
|
|
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
|
|
#line 123 "sql.y"
|
|
{ yylhsminor.yy999 = yymsp[0].minor.yy999; }
|
|
#line 5142 "sql.c"
|
|
yymsp[0].minor.yy999 = yylhsminor.yy999;
|
|
break;
|
|
case 42: /* privileges ::= SUBSCRIBE */
|
|
#line 124 "sql.y"
|
|
{ yymsp[0].minor.yy999 = PRIVILEGE_TYPE_SUBSCRIBE; }
|
|
#line 5148 "sql.c"
|
|
break;
|
|
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
#line 129 "sql.y"
|
|
{ yylhsminor.yy999 = yymsp[-2].minor.yy999 | yymsp[0].minor.yy999; }
|
|
#line 5153 "sql.c"
|
|
yymsp[-2].minor.yy999 = yylhsminor.yy999;
|
|
break;
|
|
case 45: /* priv_type ::= READ */
|
|
#line 133 "sql.y"
|
|
{ yymsp[0].minor.yy999 = PRIVILEGE_TYPE_READ; }
|
|
#line 5159 "sql.c"
|
|
break;
|
|
case 46: /* priv_type ::= WRITE */
|
|
#line 134 "sql.y"
|
|
{ yymsp[0].minor.yy999 = PRIVILEGE_TYPE_WRITE; }
|
|
#line 5164 "sql.c"
|
|
break;
|
|
case 47: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
#line 138 "sql.y"
|
|
{ yylhsminor.yy345.first = yymsp[-2].minor.yy0; yylhsminor.yy345.second = yymsp[0].minor.yy0; }
|
|
#line 5169 "sql.c"
|
|
yymsp[-2].minor.yy345 = yylhsminor.yy345;
|
|
break;
|
|
case 48: /* priv_level ::= db_name NK_DOT NK_STAR */
|
|
#line 139 "sql.y"
|
|
{ yylhsminor.yy345.first = yymsp[-2].minor.yy203; yylhsminor.yy345.second = yymsp[0].minor.yy0; }
|
|
#line 5175 "sql.c"
|
|
yymsp[-2].minor.yy345 = yylhsminor.yy345;
|
|
break;
|
|
case 49: /* priv_level ::= db_name NK_DOT table_name */
|
|
#line 140 "sql.y"
|
|
{ yylhsminor.yy345.first = yymsp[-2].minor.yy203; yylhsminor.yy345.second = yymsp[0].minor.yy203; }
|
|
#line 5181 "sql.c"
|
|
yymsp[-2].minor.yy345 = yylhsminor.yy345;
|
|
break;
|
|
case 50: /* priv_level ::= topic_name */
|
|
#line 141 "sql.y"
|
|
{ yylhsminor.yy345.first = yymsp[0].minor.yy203; yylhsminor.yy345.second = nil_token; }
|
|
#line 5187 "sql.c"
|
|
yymsp[0].minor.yy345 = yylhsminor.yy345;
|
|
break;
|
|
case 51: /* with_opt ::= */
|
|
case 151: /* start_opt ::= */ yytestcase(yyruleno==151);
|
|
case 155: /* end_opt ::= */ yytestcase(yyruleno==155);
|
|
case 290: /* like_pattern_opt ::= */ yytestcase(yyruleno==290);
|
|
case 371: /* subtable_opt ::= */ yytestcase(yyruleno==371);
|
|
case 489: /* case_when_else_opt ::= */ yytestcase(yyruleno==489);
|
|
case 519: /* from_clause_opt ::= */ yytestcase(yyruleno==519);
|
|
case 552: /* where_clause_opt ::= */ yytestcase(yyruleno==552);
|
|
case 561: /* twindow_clause_opt ::= */ yytestcase(yyruleno==561);
|
|
case 567: /* sliding_opt ::= */ yytestcase(yyruleno==567);
|
|
case 569: /* fill_opt ::= */ yytestcase(yyruleno==569);
|
|
case 583: /* having_clause_opt ::= */ yytestcase(yyruleno==583);
|
|
case 585: /* range_opt ::= */ yytestcase(yyruleno==585);
|
|
case 588: /* every_opt ::= */ yytestcase(yyruleno==588);
|
|
case 601: /* slimit_clause_opt ::= */ yytestcase(yyruleno==601);
|
|
case 605: /* limit_clause_opt ::= */ yytestcase(yyruleno==605);
|
|
#line 143 "sql.y"
|
|
{ yymsp[1].minor.yy122 = NULL; }
|
|
#line 5208 "sql.c"
|
|
break;
|
|
case 52: /* with_opt ::= WITH search_condition */
|
|
case 520: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==520);
|
|
case 553: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==553);
|
|
case 584: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==584);
|
|
#line 144 "sql.y"
|
|
{ yymsp[-1].minor.yy122 = yymsp[0].minor.yy122; }
|
|
#line 5216 "sql.c"
|
|
break;
|
|
case 53: /* cmd ::= CREATE DNODE dnode_endpoint */
|
|
#line 147 "sql.y"
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy203, NULL); }
|
|
#line 5221 "sql.c"
|
|
break;
|
|
case 54: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
#line 148 "sql.y"
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy203, &yymsp[0].minor.yy0); }
|
|
#line 5226 "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.yy983, false); }
|
|
#line 5231 "sql.c"
|
|
break;
|
|
case 56: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
#line 150 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy203, yymsp[0].minor.yy983, false); }
|
|
#line 5236 "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.yy983); }
|
|
#line 5241 "sql.c"
|
|
break;
|
|
case 58: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
#line 152 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy203, false, yymsp[0].minor.yy983); }
|
|
#line 5246 "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 5251 "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 5256 "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 5261 "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 5266 "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 5271 "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 317: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==317);
|
|
case 318: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==318);
|
|
case 319: /* sma_func_name ::= LAST */ yytestcase(yyruleno==319);
|
|
case 320: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==320);
|
|
case 415: /* db_name ::= NK_ID */ yytestcase(yyruleno==415);
|
|
case 416: /* table_name ::= NK_ID */ yytestcase(yyruleno==416);
|
|
case 417: /* column_name ::= NK_ID */ yytestcase(yyruleno==417);
|
|
case 418: /* function_name ::= NK_ID */ yytestcase(yyruleno==418);
|
|
case 419: /* table_alias ::= NK_ID */ yytestcase(yyruleno==419);
|
|
case 420: /* column_alias ::= NK_ID */ yytestcase(yyruleno==420);
|
|
case 421: /* user_name ::= NK_ID */ yytestcase(yyruleno==421);
|
|
case 422: /* topic_name ::= NK_ID */ yytestcase(yyruleno==422);
|
|
case 423: /* stream_name ::= NK_ID */ yytestcase(yyruleno==423);
|
|
case 424: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==424);
|
|
case 425: /* index_name ::= NK_ID */ yytestcase(yyruleno==425);
|
|
case 465: /* noarg_func ::= NOW */ yytestcase(yyruleno==465);
|
|
case 466: /* noarg_func ::= TODAY */ yytestcase(yyruleno==466);
|
|
case 467: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==467);
|
|
case 468: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==468);
|
|
case 469: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==469);
|
|
case 470: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==470);
|
|
case 471: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==471);
|
|
case 472: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==472);
|
|
case 473: /* noarg_func ::= USER */ yytestcase(yyruleno==473);
|
|
case 474: /* star_func ::= COUNT */ yytestcase(yyruleno==474);
|
|
case 475: /* star_func ::= FIRST */ yytestcase(yyruleno==475);
|
|
case 476: /* star_func ::= LAST */ yytestcase(yyruleno==476);
|
|
case 477: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==477);
|
|
#line 161 "sql.y"
|
|
{ yylhsminor.yy203 = yymsp[0].minor.yy0; }
|
|
#line 5306 "sql.c"
|
|
yymsp[0].minor.yy203 = yylhsminor.yy203;
|
|
break;
|
|
case 67: /* force_opt ::= */
|
|
case 91: /* not_exists_opt ::= */ yytestcase(yyruleno==91);
|
|
case 93: /* exists_opt ::= */ yytestcase(yyruleno==93);
|
|
case 338: /* analyze_opt ::= */ yytestcase(yyruleno==338);
|
|
case 345: /* agg_func_opt ::= */ yytestcase(yyruleno==345);
|
|
case 351: /* or_replace_opt ::= */ yytestcase(yyruleno==351);
|
|
case 373: /* ignore_opt ::= */ yytestcase(yyruleno==373);
|
|
case 540: /* tag_mode_opt ::= */ yytestcase(yyruleno==540);
|
|
case 542: /* set_quantifier_opt ::= */ yytestcase(yyruleno==542);
|
|
#line 167 "sql.y"
|
|
{ yymsp[1].minor.yy983 = false; }
|
|
#line 5320 "sql.c"
|
|
break;
|
|
case 68: /* force_opt ::= FORCE */
|
|
case 69: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==69);
|
|
case 339: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==339);
|
|
case 346: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==346);
|
|
case 541: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==541);
|
|
case 543: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==543);
|
|
#line 168 "sql.y"
|
|
{ yymsp[0].minor.yy983 = true; }
|
|
#line 5330 "sql.c"
|
|
break;
|
|
case 70: /* cmd ::= ALTER LOCAL NK_STRING */
|
|
#line 175 "sql.y"
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 5335 "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 5340 "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 5345 "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 5350 "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 5355 "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 5360 "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 5365 "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 5370 "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 5375 "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 5380 "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 5385 "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 5390 "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 5395 "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.yy983, &yymsp[-1].minor.yy203, yymsp[0].minor.yy122); }
|
|
#line 5400 "sql.c"
|
|
break;
|
|
case 84: /* cmd ::= DROP DATABASE exists_opt db_name */
|
|
#line 201 "sql.y"
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy983, &yymsp[0].minor.yy203); }
|
|
#line 5405 "sql.c"
|
|
break;
|
|
case 85: /* cmd ::= USE db_name */
|
|
#line 202 "sql.y"
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy203); }
|
|
#line 5410 "sql.c"
|
|
break;
|
|
case 86: /* cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
#line 203 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy203, yymsp[0].minor.yy122); }
|
|
#line 5415 "sql.c"
|
|
break;
|
|
case 87: /* cmd ::= FLUSH DATABASE db_name */
|
|
#line 204 "sql.y"
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy203); }
|
|
#line 5420 "sql.c"
|
|
break;
|
|
case 88: /* cmd ::= TRIM DATABASE db_name speed_opt */
|
|
#line 205 "sql.y"
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy203, yymsp[0].minor.yy652); }
|
|
#line 5425 "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.yy203, yymsp[-1].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 5430 "sql.c"
|
|
break;
|
|
case 90: /* not_exists_opt ::= IF NOT EXISTS */
|
|
#line 210 "sql.y"
|
|
{ yymsp[-2].minor.yy983 = true; }
|
|
#line 5435 "sql.c"
|
|
break;
|
|
case 92: /* exists_opt ::= IF EXISTS */
|
|
case 352: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==352);
|
|
case 374: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==374);
|
|
#line 215 "sql.y"
|
|
{ yymsp[-1].minor.yy983 = true; }
|
|
#line 5442 "sql.c"
|
|
break;
|
|
case 94: /* db_options ::= */
|
|
#line 218 "sql.y"
|
|
{ yymsp[1].minor.yy122 = createDefaultDatabaseOptions(pCxt); }
|
|
#line 5447 "sql.c"
|
|
break;
|
|
case 95: /* db_options ::= db_options BUFFER NK_INTEGER */
|
|
#line 219 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
#line 5452 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 96: /* db_options ::= db_options CACHEMODEL NK_STRING */
|
|
#line 220 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
#line 5458 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 97: /* db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
#line 221 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
#line 5464 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 98: /* db_options ::= db_options COMP NK_INTEGER */
|
|
#line 222 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
#line 5470 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
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.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
#line 5477 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 101: /* db_options ::= db_options MAXROWS NK_INTEGER */
|
|
#line 225 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
#line 5483 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 102: /* db_options ::= db_options MINROWS NK_INTEGER */
|
|
#line 226 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
#line 5489 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
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.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_KEEP, yymsp[0].minor.yy298); }
|
|
#line 5496 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 105: /* db_options ::= db_options PAGES NK_INTEGER */
|
|
#line 229 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
#line 5502 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 106: /* db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
#line 230 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
#line 5508 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 107: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
#line 231 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
#line 5514 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 108: /* db_options ::= db_options PRECISION NK_STRING */
|
|
#line 232 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
#line 5520 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 109: /* db_options ::= db_options REPLICA NK_INTEGER */
|
|
#line 233 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
#line 5526 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 110: /* db_options ::= db_options VGROUPS NK_INTEGER */
|
|
#line 235 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
#line 5532 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 111: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
#line 236 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
#line 5538 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 112: /* db_options ::= db_options RETENTIONS retention_list */
|
|
#line 237 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_RETENTIONS, yymsp[0].minor.yy298); }
|
|
#line 5544 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 113: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
#line 238 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
#line 5550 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 114: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
#line 239 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
#line 5556 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 115: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
#line 240 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
#line 5562 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 116: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
#line 241 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
#line 5568 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
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.yy122 = setDatabaseOption(pCxt, yymsp[-3].minor.yy122, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
|
}
|
|
#line 5578 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 118: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
#line 247 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
#line 5584 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
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.yy122 = setDatabaseOption(pCxt, yymsp[-3].minor.yy122, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
|
}
|
|
#line 5594 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 120: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
#line 253 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
#line 5600 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 121: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
#line 254 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
#line 5606 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 122: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
#line 255 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
#line 5612 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 123: /* db_options ::= db_options TABLE_PREFIX signed */
|
|
#line 256 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy122); }
|
|
#line 5618 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 124: /* db_options ::= db_options TABLE_SUFFIX signed */
|
|
#line 257 "sql.y"
|
|
{ yylhsminor.yy122 = setDatabaseOption(pCxt, yymsp[-2].minor.yy122, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy122); }
|
|
#line 5624 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 125: /* alter_db_options ::= alter_db_option */
|
|
#line 259 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterDatabaseOptions(pCxt); yylhsminor.yy122 = setAlterDatabaseOption(pCxt, yylhsminor.yy122, &yymsp[0].minor.yy29); }
|
|
#line 5630 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 126: /* alter_db_options ::= alter_db_options alter_db_option */
|
|
#line 260 "sql.y"
|
|
{ yylhsminor.yy122 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy122, &yymsp[0].minor.yy29); }
|
|
#line 5636 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 127: /* alter_db_option ::= BUFFER NK_INTEGER */
|
|
#line 264 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5642 "sql.c"
|
|
break;
|
|
case 128: /* alter_db_option ::= CACHEMODEL NK_STRING */
|
|
#line 265 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5647 "sql.c"
|
|
break;
|
|
case 129: /* alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
#line 266 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5652 "sql.c"
|
|
break;
|
|
case 130: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
#line 267 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5657 "sql.c"
|
|
break;
|
|
case 131: /* alter_db_option ::= KEEP integer_list */
|
|
case 132: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==132);
|
|
#line 268 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_KEEP; yymsp[-1].minor.yy29.pList = yymsp[0].minor.yy298; }
|
|
#line 5663 "sql.c"
|
|
break;
|
|
case 133: /* alter_db_option ::= PAGES NK_INTEGER */
|
|
#line 270 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_PAGES; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5668 "sql.c"
|
|
break;
|
|
case 134: /* alter_db_option ::= REPLICA NK_INTEGER */
|
|
#line 271 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5673 "sql.c"
|
|
break;
|
|
case 135: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
#line 273 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_WAL; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5678 "sql.c"
|
|
break;
|
|
case 136: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
#line 274 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5683 "sql.c"
|
|
break;
|
|
case 137: /* alter_db_option ::= MINROWS NK_INTEGER */
|
|
#line 275 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5688 "sql.c"
|
|
break;
|
|
case 138: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
#line 276 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5693 "sql.c"
|
|
break;
|
|
case 139: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
#line 277 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy29.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy29.val = t;
|
|
}
|
|
#line 5702 "sql.c"
|
|
break;
|
|
case 140: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
#line 282 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 5707 "sql.c"
|
|
break;
|
|
case 141: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
#line 283 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy29.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy29.val = t;
|
|
}
|
|
#line 5716 "sql.c"
|
|
break;
|
|
case 142: /* integer_list ::= NK_INTEGER */
|
|
#line 291 "sql.y"
|
|
{ yylhsminor.yy298 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 5721 "sql.c"
|
|
yymsp[0].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 143: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
case 384: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==384);
|
|
#line 292 "sql.y"
|
|
{ yylhsminor.yy298 = addNodeToList(pCxt, yymsp[-2].minor.yy298, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 5728 "sql.c"
|
|
yymsp[-2].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 144: /* variable_list ::= NK_VARIABLE */
|
|
#line 296 "sql.y"
|
|
{ yylhsminor.yy298 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 5734 "sql.c"
|
|
yymsp[0].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 145: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
#line 297 "sql.y"
|
|
{ yylhsminor.yy298 = addNodeToList(pCxt, yymsp[-2].minor.yy298, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 5740 "sql.c"
|
|
yymsp[-2].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 146: /* retention_list ::= retention */
|
|
case 176: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==176);
|
|
case 179: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==179);
|
|
case 186: /* column_def_list ::= column_def */ yytestcase(yyruleno==186);
|
|
case 230: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==230);
|
|
case 235: /* col_name_list ::= col_name */ yytestcase(yyruleno==235);
|
|
case 296: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==296);
|
|
case 313: /* func_list ::= func */ yytestcase(yyruleno==313);
|
|
case 413: /* literal_list ::= signed_literal */ yytestcase(yyruleno==413);
|
|
case 480: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==480);
|
|
case 486: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==486);
|
|
case 545: /* select_list ::= select_item */ yytestcase(yyruleno==545);
|
|
case 556: /* partition_list ::= partition_item */ yytestcase(yyruleno==556);
|
|
case 612: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==612);
|
|
#line 301 "sql.y"
|
|
{ yylhsminor.yy298 = createNodeList(pCxt, yymsp[0].minor.yy122); }
|
|
#line 5759 "sql.c"
|
|
yymsp[0].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 147: /* retention_list ::= retention_list NK_COMMA retention */
|
|
case 180: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==180);
|
|
case 187: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==187);
|
|
case 231: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==231);
|
|
case 236: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==236);
|
|
case 297: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==297);
|
|
case 314: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==314);
|
|
case 414: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==414);
|
|
case 481: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==481);
|
|
case 546: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==546);
|
|
case 557: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==557);
|
|
case 613: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==613);
|
|
#line 302 "sql.y"
|
|
{ yylhsminor.yy298 = addNodeToList(pCxt, yymsp[-2].minor.yy298, yymsp[0].minor.yy122); }
|
|
#line 5776 "sql.c"
|
|
yymsp[-2].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 148: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
#line 304 "sql.y"
|
|
{ yylhsminor.yy122 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 5782 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 149: /* speed_opt ::= */
|
|
case 347: /* bufsize_opt ::= */ yytestcase(yyruleno==347);
|
|
#line 308 "sql.y"
|
|
{ yymsp[1].minor.yy652 = 0; }
|
|
#line 5789 "sql.c"
|
|
break;
|
|
case 150: /* speed_opt ::= BWLIMIT NK_INTEGER */
|
|
case 348: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==348);
|
|
#line 309 "sql.y"
|
|
{ yymsp[-1].minor.yy652 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
#line 5795 "sql.c"
|
|
break;
|
|
case 152: /* start_opt ::= START WITH NK_INTEGER */
|
|
case 156: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==156);
|
|
#line 312 "sql.y"
|
|
{ yymsp[-2].minor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
|
|
#line 5801 "sql.c"
|
|
break;
|
|
case 153: /* start_opt ::= START WITH NK_STRING */
|
|
case 157: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==157);
|
|
#line 313 "sql.y"
|
|
{ yymsp[-2].minor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
#line 5807 "sql.c"
|
|
break;
|
|
case 154: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
case 158: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==158);
|
|
#line 314 "sql.y"
|
|
{ yymsp[-3].minor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
#line 5813 "sql.c"
|
|
break;
|
|
case 159: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
case 161: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==161);
|
|
#line 323 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy983, yymsp[-5].minor.yy122, yymsp[-3].minor.yy298, yymsp[-1].minor.yy298, yymsp[0].minor.yy122); }
|
|
#line 5819 "sql.c"
|
|
break;
|
|
case 160: /* cmd ::= CREATE TABLE multi_create_clause */
|
|
#line 324 "sql.y"
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy298); }
|
|
#line 5824 "sql.c"
|
|
break;
|
|
case 162: /* cmd ::= DROP TABLE multi_drop_clause */
|
|
#line 327 "sql.y"
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy298); }
|
|
#line 5829 "sql.c"
|
|
break;
|
|
case 163: /* cmd ::= DROP STABLE exists_opt full_table_name */
|
|
#line 328 "sql.y"
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy983, yymsp[0].minor.yy122); }
|
|
#line 5834 "sql.c"
|
|
break;
|
|
case 164: /* cmd ::= ALTER TABLE alter_table_clause */
|
|
case 386: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==386);
|
|
case 387: /* cmd ::= insert_query */ yytestcase(yyruleno==387);
|
|
#line 330 "sql.y"
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy122; }
|
|
#line 5841 "sql.c"
|
|
break;
|
|
case 165: /* cmd ::= ALTER STABLE alter_table_clause */
|
|
#line 331 "sql.y"
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy122); }
|
|
#line 5846 "sql.c"
|
|
break;
|
|
case 166: /* alter_table_clause ::= full_table_name alter_table_options */
|
|
#line 333 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 5851 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 167: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
#line 335 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy122, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy203, yymsp[0].minor.yy388); }
|
|
#line 5857 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 168: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
#line 336 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy122, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy203); }
|
|
#line 5863 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 169: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
#line 338 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy122, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy203, yymsp[0].minor.yy388); }
|
|
#line 5869 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 170: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
#line 340 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy122, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy203, &yymsp[0].minor.yy203); }
|
|
#line 5875 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 171: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
#line 342 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy122, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy203, yymsp[0].minor.yy388); }
|
|
#line 5881 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 172: /* alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
#line 343 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy122, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy203); }
|
|
#line 5887 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 173: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
#line 345 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy122, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy203, yymsp[0].minor.yy388); }
|
|
#line 5893 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 174: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
#line 347 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy122, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy203, &yymsp[0].minor.yy203); }
|
|
#line 5899 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 175: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
#line 349 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy122, &yymsp[-2].minor.yy203, yymsp[0].minor.yy122); }
|
|
#line 5905 "sql.c"
|
|
yymsp[-5].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 177: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
case 487: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==487);
|
|
#line 354 "sql.y"
|
|
{ yylhsminor.yy298 = addNodeToList(pCxt, yymsp[-1].minor.yy298, yymsp[0].minor.yy122); }
|
|
#line 5912 "sql.c"
|
|
yymsp[-1].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 178: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
#line 358 "sql.y"
|
|
{ yylhsminor.yy122 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy983, yymsp[-8].minor.yy122, yymsp[-6].minor.yy122, yymsp[-5].minor.yy298, yymsp[-2].minor.yy298, yymsp[0].minor.yy122); }
|
|
#line 5918 "sql.c"
|
|
yymsp[-9].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 181: /* drop_table_clause ::= exists_opt full_table_name */
|
|
#line 365 "sql.y"
|
|
{ yylhsminor.yy122 = createDropTableClause(pCxt, yymsp[-1].minor.yy983, yymsp[0].minor.yy122); }
|
|
#line 5924 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 183: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
case 358: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==358);
|
|
#line 370 "sql.y"
|
|
{ yymsp[-2].minor.yy298 = yymsp[-1].minor.yy298; }
|
|
#line 5931 "sql.c"
|
|
break;
|
|
case 184: /* full_table_name ::= table_name */
|
|
#line 372 "sql.y"
|
|
{ yylhsminor.yy122 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy203, NULL); }
|
|
#line 5936 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 185: /* full_table_name ::= db_name NK_DOT table_name */
|
|
#line 373 "sql.y"
|
|
{ yylhsminor.yy122 = createRealTableNode(pCxt, &yymsp[-2].minor.yy203, &yymsp[0].minor.yy203, NULL); }
|
|
#line 5942 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 188: /* column_def ::= column_name type_name */
|
|
#line 380 "sql.y"
|
|
{ yylhsminor.yy122 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy203, yymsp[0].minor.yy388, NULL); }
|
|
#line 5948 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 189: /* type_name ::= BOOL */
|
|
#line 385 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_BOOL); }
|
|
#line 5954 "sql.c"
|
|
break;
|
|
case 190: /* type_name ::= TINYINT */
|
|
#line 386 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_TINYINT); }
|
|
#line 5959 "sql.c"
|
|
break;
|
|
case 191: /* type_name ::= SMALLINT */
|
|
#line 387 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
|
|
#line 5964 "sql.c"
|
|
break;
|
|
case 192: /* type_name ::= INT */
|
|
case 193: /* type_name ::= INTEGER */ yytestcase(yyruleno==193);
|
|
#line 388 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_INT); }
|
|
#line 5970 "sql.c"
|
|
break;
|
|
case 194: /* type_name ::= BIGINT */
|
|
#line 390 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_BIGINT); }
|
|
#line 5975 "sql.c"
|
|
break;
|
|
case 195: /* type_name ::= FLOAT */
|
|
#line 391 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_FLOAT); }
|
|
#line 5980 "sql.c"
|
|
break;
|
|
case 196: /* type_name ::= DOUBLE */
|
|
#line 392 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
|
|
#line 5985 "sql.c"
|
|
break;
|
|
case 197: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
#line 393 "sql.y"
|
|
{ yymsp[-3].minor.yy388 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
|
|
#line 5990 "sql.c"
|
|
break;
|
|
case 198: /* type_name ::= TIMESTAMP */
|
|
#line 394 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
|
|
#line 5995 "sql.c"
|
|
break;
|
|
case 199: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
#line 395 "sql.y"
|
|
{ yymsp[-3].minor.yy388 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
|
|
#line 6000 "sql.c"
|
|
break;
|
|
case 200: /* type_name ::= TINYINT UNSIGNED */
|
|
#line 396 "sql.y"
|
|
{ yymsp[-1].minor.yy388 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
|
|
#line 6005 "sql.c"
|
|
break;
|
|
case 201: /* type_name ::= SMALLINT UNSIGNED */
|
|
#line 397 "sql.y"
|
|
{ yymsp[-1].minor.yy388 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
|
|
#line 6010 "sql.c"
|
|
break;
|
|
case 202: /* type_name ::= INT UNSIGNED */
|
|
#line 398 "sql.y"
|
|
{ yymsp[-1].minor.yy388 = createDataType(TSDB_DATA_TYPE_UINT); }
|
|
#line 6015 "sql.c"
|
|
break;
|
|
case 203: /* type_name ::= BIGINT UNSIGNED */
|
|
#line 399 "sql.y"
|
|
{ yymsp[-1].minor.yy388 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
|
|
#line 6020 "sql.c"
|
|
break;
|
|
case 204: /* type_name ::= JSON */
|
|
#line 400 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_JSON); }
|
|
#line 6025 "sql.c"
|
|
break;
|
|
case 205: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
#line 401 "sql.y"
|
|
{ yymsp[-3].minor.yy388 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
|
|
#line 6030 "sql.c"
|
|
break;
|
|
case 206: /* type_name ::= MEDIUMBLOB */
|
|
#line 402 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
|
|
#line 6035 "sql.c"
|
|
break;
|
|
case 207: /* type_name ::= BLOB */
|
|
#line 403 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_BLOB); }
|
|
#line 6040 "sql.c"
|
|
break;
|
|
case 208: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
#line 404 "sql.y"
|
|
{ yymsp[-3].minor.yy388 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
|
|
#line 6045 "sql.c"
|
|
break;
|
|
case 209: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
#line 405 "sql.y"
|
|
{ yymsp[-3].minor.yy388 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
|
|
#line 6050 "sql.c"
|
|
break;
|
|
case 210: /* type_name ::= DECIMAL */
|
|
#line 406 "sql.y"
|
|
{ yymsp[0].minor.yy388 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
#line 6055 "sql.c"
|
|
break;
|
|
case 211: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
#line 407 "sql.y"
|
|
{ yymsp[-3].minor.yy388 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
#line 6060 "sql.c"
|
|
break;
|
|
case 212: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
#line 408 "sql.y"
|
|
{ yymsp[-5].minor.yy388 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
#line 6065 "sql.c"
|
|
break;
|
|
case 215: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
case 361: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==361);
|
|
#line 417 "sql.y"
|
|
{ yymsp[-3].minor.yy298 = yymsp[-1].minor.yy298; }
|
|
#line 6071 "sql.c"
|
|
break;
|
|
case 216: /* table_options ::= */
|
|
#line 419 "sql.y"
|
|
{ yymsp[1].minor.yy122 = createDefaultTableOptions(pCxt); }
|
|
#line 6076 "sql.c"
|
|
break;
|
|
case 217: /* table_options ::= table_options COMMENT NK_STRING */
|
|
#line 420 "sql.y"
|
|
{ yylhsminor.yy122 = setTableOption(pCxt, yymsp[-2].minor.yy122, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
#line 6081 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 218: /* table_options ::= table_options MAX_DELAY duration_list */
|
|
#line 421 "sql.y"
|
|
{ yylhsminor.yy122 = setTableOption(pCxt, yymsp[-2].minor.yy122, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy298); }
|
|
#line 6087 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 219: /* table_options ::= table_options WATERMARK duration_list */
|
|
#line 422 "sql.y"
|
|
{ yylhsminor.yy122 = setTableOption(pCxt, yymsp[-2].minor.yy122, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy298); }
|
|
#line 6093 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 220: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
#line 423 "sql.y"
|
|
{ yylhsminor.yy122 = setTableOption(pCxt, yymsp[-4].minor.yy122, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy298); }
|
|
#line 6099 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 221: /* table_options ::= table_options TTL NK_INTEGER */
|
|
#line 424 "sql.y"
|
|
{ yylhsminor.yy122 = setTableOption(pCxt, yymsp[-2].minor.yy122, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
#line 6105 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 222: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
#line 425 "sql.y"
|
|
{ yylhsminor.yy122 = setTableOption(pCxt, yymsp[-4].minor.yy122, TABLE_OPTION_SMA, yymsp[-1].minor.yy298); }
|
|
#line 6111 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 223: /* table_options ::= table_options DELETE_MARK duration_list */
|
|
#line 426 "sql.y"
|
|
{ yylhsminor.yy122 = setTableOption(pCxt, yymsp[-2].minor.yy122, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy298); }
|
|
#line 6117 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 224: /* alter_table_options ::= alter_table_option */
|
|
#line 428 "sql.y"
|
|
{ yylhsminor.yy122 = createAlterTableOptions(pCxt); yylhsminor.yy122 = setTableOption(pCxt, yylhsminor.yy122, yymsp[0].minor.yy29.type, &yymsp[0].minor.yy29.val); }
|
|
#line 6123 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 225: /* alter_table_options ::= alter_table_options alter_table_option */
|
|
#line 429 "sql.y"
|
|
{ yylhsminor.yy122 = setTableOption(pCxt, yymsp[-1].minor.yy122, yymsp[0].minor.yy29.type, &yymsp[0].minor.yy29.val); }
|
|
#line 6129 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 226: /* alter_table_option ::= COMMENT NK_STRING */
|
|
#line 433 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 6135 "sql.c"
|
|
break;
|
|
case 227: /* alter_table_option ::= TTL NK_INTEGER */
|
|
#line 434 "sql.y"
|
|
{ yymsp[-1].minor.yy29.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; }
|
|
#line 6140 "sql.c"
|
|
break;
|
|
case 228: /* duration_list ::= duration_literal */
|
|
case 443: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==443);
|
|
#line 438 "sql.y"
|
|
{ yylhsminor.yy298 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy122)); }
|
|
#line 6146 "sql.c"
|
|
yymsp[0].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 229: /* duration_list ::= duration_list NK_COMMA duration_literal */
|
|
case 444: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==444);
|
|
#line 439 "sql.y"
|
|
{ yylhsminor.yy298 = addNodeToList(pCxt, yymsp[-2].minor.yy298, releaseRawExprNode(pCxt, yymsp[0].minor.yy122)); }
|
|
#line 6153 "sql.c"
|
|
yymsp[-2].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 232: /* rollup_func_name ::= function_name */
|
|
#line 446 "sql.y"
|
|
{ yylhsminor.yy122 = createFunctionNode(pCxt, &yymsp[0].minor.yy203, NULL); }
|
|
#line 6159 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 233: /* rollup_func_name ::= FIRST */
|
|
case 234: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==234);
|
|
case 299: /* tag_item ::= QTAGS */ yytestcase(yyruleno==299);
|
|
#line 447 "sql.y"
|
|
{ yylhsminor.yy122 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6167 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 237: /* col_name ::= column_name */
|
|
case 300: /* tag_item ::= column_name */ yytestcase(yyruleno==300);
|
|
#line 455 "sql.y"
|
|
{ yylhsminor.yy122 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy203); }
|
|
#line 6174 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 238: /* cmd ::= SHOW DNODES */
|
|
#line 458 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
|
|
#line 6180 "sql.c"
|
|
break;
|
|
case 239: /* cmd ::= SHOW USERS */
|
|
#line 459 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
|
|
#line 6185 "sql.c"
|
|
break;
|
|
case 240: /* cmd ::= SHOW USER PRIVILEGES */
|
|
#line 460 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
|
|
#line 6190 "sql.c"
|
|
break;
|
|
case 241: /* cmd ::= SHOW db_kind_opt DATABASES */
|
|
#line 461 "sql.y"
|
|
{
|
|
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
|
|
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy579);
|
|
}
|
|
#line 6198 "sql.c"
|
|
break;
|
|
case 242: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
#line 465 "sql.y"
|
|
{
|
|
pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy343.pDbName, yymsp[0].minor.yy122, OP_TYPE_LIKE);
|
|
setShowKind(pCxt, pCxt->pRootNode, yymsp[-2].minor.yy343.kind);
|
|
}
|
|
#line 6206 "sql.c"
|
|
break;
|
|
case 243: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
#line 469 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy122, yymsp[0].minor.yy122, OP_TYPE_LIKE); }
|
|
#line 6211 "sql.c"
|
|
break;
|
|
case 244: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
#line 470 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy122, NULL, OP_TYPE_LIKE); }
|
|
#line 6216 "sql.c"
|
|
break;
|
|
case 245: /* cmd ::= SHOW MNODES */
|
|
#line 471 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
|
#line 6221 "sql.c"
|
|
break;
|
|
case 246: /* cmd ::= SHOW QNODES */
|
|
#line 473 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
|
#line 6226 "sql.c"
|
|
break;
|
|
case 247: /* cmd ::= SHOW FUNCTIONS */
|
|
#line 474 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
|
#line 6231 "sql.c"
|
|
break;
|
|
case 248: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
#line 475 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy122, yymsp[-1].minor.yy122, OP_TYPE_EQUAL); }
|
|
#line 6236 "sql.c"
|
|
break;
|
|
case 249: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
#line 476 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy203), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy203), OP_TYPE_EQUAL); }
|
|
#line 6241 "sql.c"
|
|
break;
|
|
case 250: /* cmd ::= SHOW STREAMS */
|
|
#line 477 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
|
|
#line 6246 "sql.c"
|
|
break;
|
|
case 251: /* cmd ::= SHOW ACCOUNTS */
|
|
#line 478 "sql.y"
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
#line 6251 "sql.c"
|
|
break;
|
|
case 252: /* cmd ::= SHOW APPS */
|
|
#line 479 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
|
#line 6256 "sql.c"
|
|
break;
|
|
case 253: /* cmd ::= SHOW CONNECTIONS */
|
|
#line 480 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
|
#line 6261 "sql.c"
|
|
break;
|
|
case 254: /* cmd ::= SHOW LICENCES */
|
|
case 255: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==255);
|
|
#line 481 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
|
|
#line 6267 "sql.c"
|
|
break;
|
|
case 256: /* cmd ::= SHOW CREATE DATABASE db_name */
|
|
#line 483 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy203); }
|
|
#line 6272 "sql.c"
|
|
break;
|
|
case 257: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
|
#line 484 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy122); }
|
|
#line 6277 "sql.c"
|
|
break;
|
|
case 258: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
|
#line 485 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy122); }
|
|
#line 6282 "sql.c"
|
|
break;
|
|
case 259: /* cmd ::= SHOW QUERIES */
|
|
#line 486 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
|
#line 6287 "sql.c"
|
|
break;
|
|
case 260: /* cmd ::= SHOW SCORES */
|
|
#line 487 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
|
#line 6292 "sql.c"
|
|
break;
|
|
case 261: /* cmd ::= SHOW TOPICS */
|
|
#line 488 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
|
#line 6297 "sql.c"
|
|
break;
|
|
case 262: /* cmd ::= SHOW VARIABLES */
|
|
case 263: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==263);
|
|
#line 489 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
|
|
#line 6303 "sql.c"
|
|
break;
|
|
case 264: /* cmd ::= SHOW LOCAL VARIABLES */
|
|
#line 491 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
|
|
#line 6308 "sql.c"
|
|
break;
|
|
case 265: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
#line 492 "sql.y"
|
|
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy122); }
|
|
#line 6313 "sql.c"
|
|
break;
|
|
case 266: /* cmd ::= SHOW BNODES */
|
|
#line 493 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
|
#line 6318 "sql.c"
|
|
break;
|
|
case 267: /* cmd ::= SHOW SNODES */
|
|
#line 494 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
|
#line 6323 "sql.c"
|
|
break;
|
|
case 268: /* cmd ::= SHOW CLUSTER */
|
|
#line 495 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
|
|
#line 6328 "sql.c"
|
|
break;
|
|
case 269: /* cmd ::= SHOW TRANSACTIONS */
|
|
#line 496 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
|
|
#line 6333 "sql.c"
|
|
break;
|
|
case 270: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
#line 497 "sql.y"
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy122); }
|
|
#line 6338 "sql.c"
|
|
break;
|
|
case 271: /* cmd ::= SHOW CONSUMERS */
|
|
#line 498 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
|
|
#line 6343 "sql.c"
|
|
break;
|
|
case 272: /* cmd ::= SHOW SUBSCRIPTIONS */
|
|
#line 499 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
|
|
#line 6348 "sql.c"
|
|
break;
|
|
case 273: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
#line 500 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy122, yymsp[-1].minor.yy122, OP_TYPE_EQUAL); }
|
|
#line 6353 "sql.c"
|
|
break;
|
|
case 274: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
#line 501 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy203), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy203), OP_TYPE_EQUAL); }
|
|
#line 6358 "sql.c"
|
|
break;
|
|
case 275: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
#line 502 "sql.y"
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy122, yymsp[0].minor.yy122, yymsp[-3].minor.yy298); }
|
|
#line 6363 "sql.c"
|
|
break;
|
|
case 276: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
#line 503 "sql.y"
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy203), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy203), yymsp[-4].minor.yy298); }
|
|
#line 6368 "sql.c"
|
|
break;
|
|
case 277: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
#line 504 "sql.y"
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
|
|
#line 6373 "sql.c"
|
|
break;
|
|
case 278: /* cmd ::= SHOW VNODES */
|
|
#line 505 "sql.y"
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
|
|
#line 6378 "sql.c"
|
|
break;
|
|
case 279: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
#line 507 "sql.y"
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy122, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
|
#line 6383 "sql.c"
|
|
break;
|
|
case 280: /* cmd ::= SHOW CLUSTER ALIVE */
|
|
#line 508 "sql.y"
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
|
#line 6388 "sql.c"
|
|
break;
|
|
case 281: /* table_kind_db_name_cond_opt ::= */
|
|
#line 512 "sql.y"
|
|
{ yymsp[1].minor.yy343.kind = SHOW_KIND_ALL; yymsp[1].minor.yy343.pDbName = createDefaultDatabaseCondValue(pCxt); }
|
|
#line 6393 "sql.c"
|
|
break;
|
|
case 282: /* table_kind_db_name_cond_opt ::= table_kind */
|
|
#line 513 "sql.y"
|
|
{ yylhsminor.yy343.kind = yymsp[0].minor.yy579; yylhsminor.yy343.pDbName = createDefaultDatabaseCondValue(pCxt); }
|
|
#line 6398 "sql.c"
|
|
yymsp[0].minor.yy343 = yylhsminor.yy343;
|
|
break;
|
|
case 283: /* table_kind_db_name_cond_opt ::= db_name_cond */
|
|
#line 514 "sql.y"
|
|
{ yylhsminor.yy343.kind = SHOW_KIND_ALL; yylhsminor.yy343.pDbName = yymsp[0].minor.yy122; }
|
|
#line 6404 "sql.c"
|
|
yymsp[0].minor.yy343 = yylhsminor.yy343;
|
|
break;
|
|
case 284: /* table_kind_db_name_cond_opt ::= table_kind db_name_cond */
|
|
#line 515 "sql.y"
|
|
{ yylhsminor.yy343.kind = yymsp[-1].minor.yy579; yylhsminor.yy343.pDbName = yymsp[0].minor.yy122; }
|
|
#line 6410 "sql.c"
|
|
yymsp[-1].minor.yy343 = yylhsminor.yy343;
|
|
break;
|
|
case 285: /* table_kind ::= NORMAL */
|
|
#line 519 "sql.y"
|
|
{ yymsp[0].minor.yy579 = SHOW_KIND_TABLES_NORMAL; }
|
|
#line 6416 "sql.c"
|
|
break;
|
|
case 286: /* table_kind ::= CHILD */
|
|
#line 520 "sql.y"
|
|
{ yymsp[0].minor.yy579 = SHOW_KIND_TABLES_CHILD; }
|
|
#line 6421 "sql.c"
|
|
break;
|
|
case 287: /* db_name_cond ::= db_name NK_DOT */
|
|
case 289: /* db_name_cond_opt ::= db_name NK_DOT */ yytestcase(yyruleno==289);
|
|
#line 522 "sql.y"
|
|
{ yylhsminor.yy122 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy203); }
|
|
#line 6427 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 288: /* db_name_cond_opt ::= */
|
|
case 293: /* from_db_opt ::= */ yytestcase(yyruleno==293);
|
|
#line 524 "sql.y"
|
|
{ yymsp[1].minor.yy122 = createDefaultDatabaseCondValue(pCxt); }
|
|
#line 6434 "sql.c"
|
|
break;
|
|
case 291: /* like_pattern_opt ::= LIKE NK_STRING */
|
|
#line 528 "sql.y"
|
|
{ yymsp[-1].minor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
#line 6439 "sql.c"
|
|
break;
|
|
case 292: /* table_name_cond ::= table_name */
|
|
#line 530 "sql.y"
|
|
{ yylhsminor.yy122 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy203); }
|
|
#line 6444 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 294: /* from_db_opt ::= FROM db_name */
|
|
#line 533 "sql.y"
|
|
{ yymsp[-1].minor.yy122 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy203); }
|
|
#line 6450 "sql.c"
|
|
break;
|
|
case 298: /* tag_item ::= TBNAME */
|
|
#line 541 "sql.y"
|
|
{ yylhsminor.yy122 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
#line 6455 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 301: /* tag_item ::= column_name column_alias */
|
|
#line 544 "sql.y"
|
|
{ yylhsminor.yy122 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy203), &yymsp[0].minor.yy203); }
|
|
#line 6461 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 302: /* tag_item ::= column_name AS column_alias */
|
|
#line 545 "sql.y"
|
|
{ yylhsminor.yy122 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy203), &yymsp[0].minor.yy203); }
|
|
#line 6467 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 303: /* db_kind_opt ::= */
|
|
#line 549 "sql.y"
|
|
{ yymsp[1].minor.yy579 = SHOW_KIND_ALL; }
|
|
#line 6473 "sql.c"
|
|
break;
|
|
case 304: /* db_kind_opt ::= USER */
|
|
#line 550 "sql.y"
|
|
{ yymsp[0].minor.yy579 = SHOW_KIND_DATABASES_USER; }
|
|
#line 6478 "sql.c"
|
|
break;
|
|
case 305: /* db_kind_opt ::= SYSTEM */
|
|
#line 551 "sql.y"
|
|
{ yymsp[0].minor.yy579 = SHOW_KIND_DATABASES_SYSTEM; }
|
|
#line 6483 "sql.c"
|
|
break;
|
|
case 306: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
#line 555 "sql.y"
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy983, yymsp[-3].minor.yy122, yymsp[-1].minor.yy122, NULL, yymsp[0].minor.yy122); }
|
|
#line 6488 "sql.c"
|
|
break;
|
|
case 307: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
#line 557 "sql.y"
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy983, yymsp[-5].minor.yy122, yymsp[-3].minor.yy122, yymsp[-1].minor.yy298, NULL); }
|
|
#line 6493 "sql.c"
|
|
break;
|
|
case 308: /* cmd ::= DROP INDEX exists_opt full_index_name */
|
|
#line 558 "sql.y"
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy983, yymsp[0].minor.yy122); }
|
|
#line 6498 "sql.c"
|
|
break;
|
|
case 309: /* full_index_name ::= index_name */
|
|
#line 560 "sql.y"
|
|
{ yylhsminor.yy122 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy203); }
|
|
#line 6503 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 310: /* full_index_name ::= db_name NK_DOT index_name */
|
|
#line 561 "sql.y"
|
|
{ yylhsminor.yy122 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy203, &yymsp[0].minor.yy203); }
|
|
#line 6509 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 311: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
#line 564 "sql.y"
|
|
{ yymsp[-9].minor.yy122 = createIndexOption(pCxt, yymsp[-7].minor.yy298, releaseRawExprNode(pCxt, yymsp[-3].minor.yy122), NULL, yymsp[-1].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 6515 "sql.c"
|
|
break;
|
|
case 312: /* 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 567 "sql.y"
|
|
{ yymsp[-11].minor.yy122 = createIndexOption(pCxt, yymsp[-9].minor.yy298, releaseRawExprNode(pCxt, yymsp[-5].minor.yy122), releaseRawExprNode(pCxt, yymsp[-3].minor.yy122), yymsp[-1].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 6520 "sql.c"
|
|
break;
|
|
case 315: /* func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
#line 574 "sql.y"
|
|
{ yylhsminor.yy122 = createFunctionNode(pCxt, &yymsp[-3].minor.yy203, yymsp[-1].minor.yy298); }
|
|
#line 6525 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 316: /* sma_func_name ::= function_name */
|
|
case 530: /* alias_opt ::= table_alias */ yytestcase(yyruleno==530);
|
|
#line 578 "sql.y"
|
|
{ yylhsminor.yy203 = yymsp[0].minor.yy203; }
|
|
#line 6532 "sql.c"
|
|
yymsp[0].minor.yy203 = yylhsminor.yy203;
|
|
break;
|
|
case 321: /* sma_stream_opt ::= */
|
|
case 362: /* stream_options ::= */ yytestcase(yyruleno==362);
|
|
#line 584 "sql.y"
|
|
{ yymsp[1].minor.yy122 = createStreamOptions(pCxt); }
|
|
#line 6539 "sql.c"
|
|
break;
|
|
case 322: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
#line 585 "sql.y"
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy122)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy122); yylhsminor.yy122 = yymsp[-2].minor.yy122; }
|
|
#line 6544 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 323: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
#line 586 "sql.y"
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy122)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy122); yylhsminor.yy122 = yymsp[-2].minor.yy122; }
|
|
#line 6550 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 324: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
#line 587 "sql.y"
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy122)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy122); yylhsminor.yy122 = yymsp[-2].minor.yy122; }
|
|
#line 6556 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 325: /* with_meta ::= AS */
|
|
#line 592 "sql.y"
|
|
{ yymsp[0].minor.yy652 = 0; }
|
|
#line 6562 "sql.c"
|
|
break;
|
|
case 326: /* with_meta ::= WITH META AS */
|
|
#line 593 "sql.y"
|
|
{ yymsp[-2].minor.yy652 = 1; }
|
|
#line 6567 "sql.c"
|
|
break;
|
|
case 327: /* with_meta ::= ONLY META AS */
|
|
#line 594 "sql.y"
|
|
{ yymsp[-2].minor.yy652 = 2; }
|
|
#line 6572 "sql.c"
|
|
break;
|
|
case 328: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
#line 596 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy983, &yymsp[-2].minor.yy203, yymsp[0].minor.yy122); }
|
|
#line 6577 "sql.c"
|
|
break;
|
|
case 329: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
#line 598 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy983, &yymsp[-3].minor.yy203, &yymsp[0].minor.yy203, yymsp[-2].minor.yy652); }
|
|
#line 6582 "sql.c"
|
|
break;
|
|
case 330: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
#line 600 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy983, &yymsp[-4].minor.yy203, yymsp[-1].minor.yy122, yymsp[-3].minor.yy652, yymsp[0].minor.yy122); }
|
|
#line 6587 "sql.c"
|
|
break;
|
|
case 331: /* cmd ::= DROP TOPIC exists_opt topic_name */
|
|
#line 602 "sql.y"
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy983, &yymsp[0].minor.yy203); }
|
|
#line 6592 "sql.c"
|
|
break;
|
|
case 332: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
#line 603 "sql.y"
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy983, &yymsp[-2].minor.yy203, &yymsp[0].minor.yy203); }
|
|
#line 6597 "sql.c"
|
|
break;
|
|
case 333: /* cmd ::= DESC full_table_name */
|
|
case 334: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==334);
|
|
#line 606 "sql.y"
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy122); }
|
|
#line 6603 "sql.c"
|
|
break;
|
|
case 335: /* cmd ::= RESET QUERY CACHE */
|
|
#line 610 "sql.y"
|
|
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
|
|
#line 6608 "sql.c"
|
|
break;
|
|
case 336: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
case 337: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==337);
|
|
#line 613 "sql.y"
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy983, yymsp[-1].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 6614 "sql.c"
|
|
break;
|
|
case 340: /* explain_options ::= */
|
|
#line 621 "sql.y"
|
|
{ yymsp[1].minor.yy122 = createDefaultExplainOptions(pCxt); }
|
|
#line 6619 "sql.c"
|
|
break;
|
|
case 341: /* explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
#line 622 "sql.y"
|
|
{ yylhsminor.yy122 = setExplainVerbose(pCxt, yymsp[-2].minor.yy122, &yymsp[0].minor.yy0); }
|
|
#line 6624 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 342: /* explain_options ::= explain_options RATIO NK_FLOAT */
|
|
#line 623 "sql.y"
|
|
{ yylhsminor.yy122 = setExplainRatio(pCxt, yymsp[-2].minor.yy122, &yymsp[0].minor.yy0); }
|
|
#line 6630 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 343: /* 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 628 "sql.y"
|
|
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy983, yymsp[-9].minor.yy983, &yymsp[-6].minor.yy203, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy388, yymsp[-1].minor.yy652, &yymsp[0].minor.yy203, yymsp[-10].minor.yy983); }
|
|
#line 6636 "sql.c"
|
|
break;
|
|
case 344: /* cmd ::= DROP FUNCTION exists_opt function_name */
|
|
#line 629 "sql.y"
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy983, &yymsp[0].minor.yy203); }
|
|
#line 6641 "sql.c"
|
|
break;
|
|
case 349: /* language_opt ::= */
|
|
#line 643 "sql.y"
|
|
{ yymsp[1].minor.yy203 = nil_token; }
|
|
#line 6646 "sql.c"
|
|
break;
|
|
case 350: /* language_opt ::= LANGUAGE NK_STRING */
|
|
#line 644 "sql.y"
|
|
{ yymsp[-1].minor.yy203 = yymsp[0].minor.yy0; }
|
|
#line 6651 "sql.c"
|
|
break;
|
|
case 353: /* 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 654 "sql.y"
|
|
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy983, &yymsp[-8].minor.yy203, yymsp[-5].minor.yy122, yymsp[-7].minor.yy122, yymsp[-3].minor.yy298, yymsp[-2].minor.yy122, yymsp[0].minor.yy122, yymsp[-4].minor.yy298); }
|
|
#line 6656 "sql.c"
|
|
break;
|
|
case 354: /* cmd ::= DROP STREAM exists_opt stream_name */
|
|
#line 655 "sql.y"
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy983, &yymsp[0].minor.yy203); }
|
|
#line 6661 "sql.c"
|
|
break;
|
|
case 355: /* cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
#line 656 "sql.y"
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy983, &yymsp[0].minor.yy203); }
|
|
#line 6666 "sql.c"
|
|
break;
|
|
case 356: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
#line 657 "sql.y"
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy983, yymsp[-1].minor.yy983, &yymsp[0].minor.yy203); }
|
|
#line 6671 "sql.c"
|
|
break;
|
|
case 363: /* stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
case 364: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==364);
|
|
#line 671 "sql.y"
|
|
{ yylhsminor.yy122 = setStreamOptions(pCxt, yymsp[-2].minor.yy122, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6677 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 365: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
#line 673 "sql.y"
|
|
{ yylhsminor.yy122 = setStreamOptions(pCxt, yymsp[-3].minor.yy122, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy122)); }
|
|
#line 6683 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 366: /* stream_options ::= stream_options WATERMARK duration_literal */
|
|
#line 674 "sql.y"
|
|
{ yylhsminor.yy122 = setStreamOptions(pCxt, yymsp[-2].minor.yy122, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy122)); }
|
|
#line 6689 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 367: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
#line 675 "sql.y"
|
|
{ yylhsminor.yy122 = setStreamOptions(pCxt, yymsp[-3].minor.yy122, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6695 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 368: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
#line 676 "sql.y"
|
|
{ yylhsminor.yy122 = setStreamOptions(pCxt, yymsp[-2].minor.yy122, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6701 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 369: /* stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
#line 677 "sql.y"
|
|
{ yylhsminor.yy122 = setStreamOptions(pCxt, yymsp[-2].minor.yy122, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy122)); }
|
|
#line 6707 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 370: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
#line 678 "sql.y"
|
|
{ yylhsminor.yy122 = setStreamOptions(pCxt, yymsp[-3].minor.yy122, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6713 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 372: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
case 568: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==568);
|
|
case 589: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==589);
|
|
#line 681 "sql.y"
|
|
{ yymsp[-3].minor.yy122 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy122); }
|
|
#line 6721 "sql.c"
|
|
break;
|
|
case 375: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
|
#line 689 "sql.y"
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
|
|
#line 6726 "sql.c"
|
|
break;
|
|
case 376: /* cmd ::= KILL QUERY NK_STRING */
|
|
#line 690 "sql.y"
|
|
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 6731 "sql.c"
|
|
break;
|
|
case 377: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
#line 691 "sql.y"
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
|
|
#line 6736 "sql.c"
|
|
break;
|
|
case 378: /* cmd ::= BALANCE VGROUP */
|
|
#line 694 "sql.y"
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
|
#line 6741 "sql.c"
|
|
break;
|
|
case 379: /* cmd ::= BALANCE VGROUP LEADER */
|
|
#line 695 "sql.y"
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); }
|
|
#line 6746 "sql.c"
|
|
break;
|
|
case 380: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
#line 696 "sql.y"
|
|
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 6751 "sql.c"
|
|
break;
|
|
case 381: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
#line 697 "sql.y"
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy298); }
|
|
#line 6756 "sql.c"
|
|
break;
|
|
case 382: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
#line 698 "sql.y"
|
|
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 6761 "sql.c"
|
|
break;
|
|
case 383: /* dnode_list ::= DNODE NK_INTEGER */
|
|
#line 702 "sql.y"
|
|
{ yymsp[-1].minor.yy298 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 6766 "sql.c"
|
|
break;
|
|
case 385: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
#line 709 "sql.y"
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 6771 "sql.c"
|
|
break;
|
|
case 388: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
#line 718 "sql.y"
|
|
{ yymsp[-6].minor.yy122 = createInsertStmt(pCxt, yymsp[-4].minor.yy122, yymsp[-2].minor.yy298, yymsp[0].minor.yy122); }
|
|
#line 6776 "sql.c"
|
|
break;
|
|
case 389: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
#line 719 "sql.y"
|
|
{ yymsp[-3].minor.yy122 = createInsertStmt(pCxt, yymsp[-1].minor.yy122, NULL, yymsp[0].minor.yy122); }
|
|
#line 6781 "sql.c"
|
|
break;
|
|
case 390: /* literal ::= NK_INTEGER */
|
|
#line 722 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 6786 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 391: /* literal ::= NK_FLOAT */
|
|
#line 723 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
#line 6792 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 392: /* literal ::= NK_STRING */
|
|
#line 724 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
#line 6798 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 393: /* literal ::= NK_BOOL */
|
|
#line 725 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
#line 6804 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 394: /* literal ::= TIMESTAMP NK_STRING */
|
|
#line 726 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
#line 6810 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 395: /* literal ::= duration_literal */
|
|
case 405: /* signed_literal ::= signed */ yytestcase(yyruleno==405);
|
|
case 426: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==426);
|
|
case 427: /* expression ::= literal */ yytestcase(yyruleno==427);
|
|
case 429: /* expression ::= column_reference */ yytestcase(yyruleno==429);
|
|
case 430: /* expression ::= function_expression */ yytestcase(yyruleno==430);
|
|
case 431: /* expression ::= case_when_expression */ yytestcase(yyruleno==431);
|
|
case 462: /* function_expression ::= literal_func */ yytestcase(yyruleno==462);
|
|
case 511: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==511);
|
|
case 515: /* boolean_primary ::= predicate */ yytestcase(yyruleno==515);
|
|
case 517: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==517);
|
|
case 518: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==518);
|
|
case 521: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==521);
|
|
case 523: /* table_reference ::= table_primary */ yytestcase(yyruleno==523);
|
|
case 524: /* table_reference ::= joined_table */ yytestcase(yyruleno==524);
|
|
case 528: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==528);
|
|
case 591: /* query_simple ::= query_specification */ yytestcase(yyruleno==591);
|
|
case 592: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==592);
|
|
case 595: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==595);
|
|
case 597: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==597);
|
|
#line 727 "sql.y"
|
|
{ yylhsminor.yy122 = yymsp[0].minor.yy122; }
|
|
#line 6835 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 396: /* literal ::= NULL */
|
|
#line 728 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
#line 6841 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 397: /* literal ::= NK_QUESTION */
|
|
#line 729 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 6847 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 398: /* duration_literal ::= NK_VARIABLE */
|
|
#line 731 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 6853 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 399: /* signed ::= NK_INTEGER */
|
|
#line 733 "sql.y"
|
|
{ yylhsminor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
#line 6859 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 400: /* signed ::= NK_PLUS NK_INTEGER */
|
|
#line 734 "sql.y"
|
|
{ yymsp[-1].minor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
#line 6865 "sql.c"
|
|
break;
|
|
case 401: /* signed ::= NK_MINUS NK_INTEGER */
|
|
#line 735 "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.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
|
}
|
|
#line 6874 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 402: /* signed ::= NK_FLOAT */
|
|
#line 740 "sql.y"
|
|
{ yylhsminor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
#line 6880 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 403: /* signed ::= NK_PLUS NK_FLOAT */
|
|
#line 741 "sql.y"
|
|
{ yymsp[-1].minor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
#line 6886 "sql.c"
|
|
break;
|
|
case 404: /* signed ::= NK_MINUS NK_FLOAT */
|
|
#line 742 "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.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
|
}
|
|
#line 6895 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 406: /* signed_literal ::= NK_STRING */
|
|
#line 749 "sql.y"
|
|
{ yylhsminor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
#line 6901 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 407: /* signed_literal ::= NK_BOOL */
|
|
#line 750 "sql.y"
|
|
{ yylhsminor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
#line 6907 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 408: /* signed_literal ::= TIMESTAMP NK_STRING */
|
|
#line 751 "sql.y"
|
|
{ yymsp[-1].minor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
#line 6913 "sql.c"
|
|
break;
|
|
case 409: /* signed_literal ::= duration_literal */
|
|
case 411: /* signed_literal ::= literal_func */ yytestcase(yyruleno==411);
|
|
case 482: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==482);
|
|
case 548: /* select_item ::= common_expression */ yytestcase(yyruleno==548);
|
|
case 558: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==558);
|
|
case 596: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==596);
|
|
case 598: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==598);
|
|
case 611: /* search_condition ::= common_expression */ yytestcase(yyruleno==611);
|
|
#line 752 "sql.y"
|
|
{ yylhsminor.yy122 = releaseRawExprNode(pCxt, yymsp[0].minor.yy122); }
|
|
#line 6925 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 410: /* signed_literal ::= NULL */
|
|
#line 753 "sql.y"
|
|
{ yylhsminor.yy122 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
#line 6931 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 412: /* signed_literal ::= NK_QUESTION */
|
|
#line 755 "sql.y"
|
|
{ yylhsminor.yy122 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 6937 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 428: /* expression ::= pseudo_column */
|
|
#line 812 "sql.y"
|
|
{ yylhsminor.yy122 = yymsp[0].minor.yy122; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy122, true); }
|
|
#line 6943 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 432: /* expression ::= NK_LP expression NK_RP */
|
|
case 516: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==516);
|
|
case 610: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==610);
|
|
#line 816 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy122)); }
|
|
#line 6951 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 433: /* expression ::= NK_PLUS expr_or_subquery */
|
|
#line 817 "sql.y"
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy122));
|
|
}
|
|
#line 6960 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 434: /* expression ::= NK_MINUS expr_or_subquery */
|
|
#line 821 "sql.y"
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy122), NULL));
|
|
}
|
|
#line 6969 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 435: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
#line 825 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 6979 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 436: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
#line 830 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 6989 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 437: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
#line 835 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 6999 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 438: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
#line 840 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 7009 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 439: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
#line 845 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 7019 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 440: /* expression ::= column_reference NK_ARROW NK_STRING */
|
|
#line 850 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
|
}
|
|
#line 7028 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 441: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
#line 854 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 7038 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 442: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
#line 859 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 7048 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 445: /* column_reference ::= column_name */
|
|
#line 870 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNode(pCxt, &yymsp[0].minor.yy203, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy203)); }
|
|
#line 7054 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 446: /* column_reference ::= table_name NK_DOT column_name */
|
|
#line 871 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy203, &yymsp[0].minor.yy203, createColumnNode(pCxt, &yymsp[-2].minor.yy203, &yymsp[0].minor.yy203)); }
|
|
#line 7060 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 447: /* pseudo_column ::= ROWTS */
|
|
case 448: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==448);
|
|
case 450: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==450);
|
|
case 451: /* pseudo_column ::= QEND */ yytestcase(yyruleno==451);
|
|
case 452: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==452);
|
|
case 453: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==453);
|
|
case 454: /* pseudo_column ::= WEND */ yytestcase(yyruleno==454);
|
|
case 455: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==455);
|
|
case 456: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==456);
|
|
case 457: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==457);
|
|
case 458: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==458);
|
|
case 464: /* literal_func ::= NOW */ yytestcase(yyruleno==464);
|
|
#line 873 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
#line 7077 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 449: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
|
#line 875 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy203, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy203)))); }
|
|
#line 7083 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 459: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
case 460: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==460);
|
|
#line 886 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy203, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy203, yymsp[-1].minor.yy298)); }
|
|
#line 7090 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 461: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
#line 889 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy122), yymsp[-1].minor.yy388)); }
|
|
#line 7096 "sql.c"
|
|
yymsp[-5].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 463: /* literal_func ::= noarg_func NK_LP NK_RP */
|
|
#line 892 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy203, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy203, NULL)); }
|
|
#line 7102 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 478: /* star_func_para_list ::= NK_STAR */
|
|
#line 916 "sql.y"
|
|
{ yylhsminor.yy298 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
#line 7108 "sql.c"
|
|
yymsp[0].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 483: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
case 551: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==551);
|
|
#line 925 "sql.y"
|
|
{ yylhsminor.yy122 = createColumnNode(pCxt, &yymsp[-2].minor.yy203, &yymsp[0].minor.yy0); }
|
|
#line 7115 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 484: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
#line 928 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy298, yymsp[-1].minor.yy122)); }
|
|
#line 7121 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 485: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
#line 930 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy122), yymsp[-2].minor.yy298, yymsp[-1].minor.yy122)); }
|
|
#line 7127 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 488: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
#line 937 "sql.y"
|
|
{ yymsp[-3].minor.yy122 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)); }
|
|
#line 7133 "sql.c"
|
|
break;
|
|
case 490: /* case_when_else_opt ::= ELSE common_expression */
|
|
#line 940 "sql.y"
|
|
{ yymsp[-1].minor.yy122 = releaseRawExprNode(pCxt, yymsp[0].minor.yy122); }
|
|
#line 7138 "sql.c"
|
|
break;
|
|
case 491: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
case 496: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==496);
|
|
#line 943 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy416, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 7148 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 492: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
#line 950 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy122), releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 7158 "sql.c"
|
|
yymsp[-4].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 493: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
#line 956 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy122), releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 7168 "sql.c"
|
|
yymsp[-5].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 494: /* predicate ::= expr_or_subquery IS NULL */
|
|
#line 961 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), NULL));
|
|
}
|
|
#line 7177 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 495: /* predicate ::= expr_or_subquery IS NOT NULL */
|
|
#line 965 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy122), NULL));
|
|
}
|
|
#line 7186 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 497: /* compare_op ::= NK_LT */
|
|
#line 977 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_LOWER_THAN; }
|
|
#line 7192 "sql.c"
|
|
break;
|
|
case 498: /* compare_op ::= NK_GT */
|
|
#line 978 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_GREATER_THAN; }
|
|
#line 7197 "sql.c"
|
|
break;
|
|
case 499: /* compare_op ::= NK_LE */
|
|
#line 979 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_LOWER_EQUAL; }
|
|
#line 7202 "sql.c"
|
|
break;
|
|
case 500: /* compare_op ::= NK_GE */
|
|
#line 980 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_GREATER_EQUAL; }
|
|
#line 7207 "sql.c"
|
|
break;
|
|
case 501: /* compare_op ::= NK_NE */
|
|
#line 981 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_NOT_EQUAL; }
|
|
#line 7212 "sql.c"
|
|
break;
|
|
case 502: /* compare_op ::= NK_EQ */
|
|
#line 982 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_EQUAL; }
|
|
#line 7217 "sql.c"
|
|
break;
|
|
case 503: /* compare_op ::= LIKE */
|
|
#line 983 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_LIKE; }
|
|
#line 7222 "sql.c"
|
|
break;
|
|
case 504: /* compare_op ::= NOT LIKE */
|
|
#line 984 "sql.y"
|
|
{ yymsp[-1].minor.yy416 = OP_TYPE_NOT_LIKE; }
|
|
#line 7227 "sql.c"
|
|
break;
|
|
case 505: /* compare_op ::= MATCH */
|
|
#line 985 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_MATCH; }
|
|
#line 7232 "sql.c"
|
|
break;
|
|
case 506: /* compare_op ::= NMATCH */
|
|
#line 986 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_NMATCH; }
|
|
#line 7237 "sql.c"
|
|
break;
|
|
case 507: /* compare_op ::= CONTAINS */
|
|
#line 987 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_JSON_CONTAINS; }
|
|
#line 7242 "sql.c"
|
|
break;
|
|
case 508: /* in_op ::= IN */
|
|
#line 991 "sql.y"
|
|
{ yymsp[0].minor.yy416 = OP_TYPE_IN; }
|
|
#line 7247 "sql.c"
|
|
break;
|
|
case 509: /* in_op ::= NOT IN */
|
|
#line 992 "sql.y"
|
|
{ yymsp[-1].minor.yy416 = OP_TYPE_NOT_IN; }
|
|
#line 7252 "sql.c"
|
|
break;
|
|
case 510: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
#line 994 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy298)); }
|
|
#line 7257 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 512: /* boolean_value_expression ::= NOT boolean_primary */
|
|
#line 998 "sql.y"
|
|
{
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy122), NULL));
|
|
}
|
|
#line 7266 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 513: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
#line 1003 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 7276 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 514: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
#line 1009 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy122);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy122);
|
|
yylhsminor.yy122 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), releaseRawExprNode(pCxt, yymsp[0].minor.yy122)));
|
|
}
|
|
#line 7286 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 522: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
#line 1027 "sql.y"
|
|
{ yylhsminor.yy122 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy122, yymsp[0].minor.yy122, NULL); }
|
|
#line 7292 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 525: /* table_primary ::= table_name alias_opt */
|
|
#line 1033 "sql.y"
|
|
{ yylhsminor.yy122 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy203, &yymsp[0].minor.yy203); }
|
|
#line 7298 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 526: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
#line 1034 "sql.y"
|
|
{ yylhsminor.yy122 = createRealTableNode(pCxt, &yymsp[-3].minor.yy203, &yymsp[-1].minor.yy203, &yymsp[0].minor.yy203); }
|
|
#line 7304 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 527: /* table_primary ::= subquery alias_opt */
|
|
#line 1035 "sql.y"
|
|
{ yylhsminor.yy122 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy122), &yymsp[0].minor.yy203); }
|
|
#line 7310 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 529: /* alias_opt ::= */
|
|
#line 1040 "sql.y"
|
|
{ yymsp[1].minor.yy203 = nil_token; }
|
|
#line 7316 "sql.c"
|
|
break;
|
|
case 531: /* alias_opt ::= AS table_alias */
|
|
#line 1042 "sql.y"
|
|
{ yymsp[-1].minor.yy203 = yymsp[0].minor.yy203; }
|
|
#line 7321 "sql.c"
|
|
break;
|
|
case 532: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
case 533: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==533);
|
|
#line 1044 "sql.y"
|
|
{ yymsp[-2].minor.yy122 = yymsp[-1].minor.yy122; }
|
|
#line 7327 "sql.c"
|
|
break;
|
|
case 534: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
#line 1049 "sql.y"
|
|
{ yylhsminor.yy122 = createJoinTableNode(pCxt, yymsp[-4].minor.yy498, yymsp[-5].minor.yy122, yymsp[-2].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 7332 "sql.c"
|
|
yymsp[-5].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 535: /* join_type ::= */
|
|
#line 1053 "sql.y"
|
|
{ yymsp[1].minor.yy498 = JOIN_TYPE_INNER; }
|
|
#line 7338 "sql.c"
|
|
break;
|
|
case 536: /* join_type ::= INNER */
|
|
#line 1054 "sql.y"
|
|
{ yymsp[0].minor.yy498 = JOIN_TYPE_INNER; }
|
|
#line 7343 "sql.c"
|
|
break;
|
|
case 537: /* 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 1060 "sql.y"
|
|
{
|
|
yymsp[-13].minor.yy122 = createSelectStmt(pCxt, yymsp[-11].minor.yy983, yymsp[-9].minor.yy298, yymsp[-8].minor.yy122, yymsp[-12].minor.yy298);
|
|
yymsp[-13].minor.yy122 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy122, yymsp[-10].minor.yy983);
|
|
yymsp[-13].minor.yy122 = addWhereClause(pCxt, yymsp[-13].minor.yy122, yymsp[-7].minor.yy122);
|
|
yymsp[-13].minor.yy122 = addPartitionByClause(pCxt, yymsp[-13].minor.yy122, yymsp[-6].minor.yy298);
|
|
yymsp[-13].minor.yy122 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy122, yymsp[-2].minor.yy122);
|
|
yymsp[-13].minor.yy122 = addGroupByClause(pCxt, yymsp[-13].minor.yy122, yymsp[-1].minor.yy298);
|
|
yymsp[-13].minor.yy122 = addHavingClause(pCxt, yymsp[-13].minor.yy122, yymsp[0].minor.yy122);
|
|
yymsp[-13].minor.yy122 = addRangeClause(pCxt, yymsp[-13].minor.yy122, yymsp[-5].minor.yy122);
|
|
yymsp[-13].minor.yy122 = addEveryClause(pCxt, yymsp[-13].minor.yy122, yymsp[-4].minor.yy122);
|
|
yymsp[-13].minor.yy122 = addFillClause(pCxt, yymsp[-13].minor.yy122, yymsp[-3].minor.yy122);
|
|
}
|
|
#line 7359 "sql.c"
|
|
break;
|
|
case 538: /* hint_list ::= */
|
|
#line 1075 "sql.y"
|
|
{ yymsp[1].minor.yy298 = createHintNodeList(pCxt, NULL); }
|
|
#line 7364 "sql.c"
|
|
break;
|
|
case 539: /* hint_list ::= NK_HINT */
|
|
#line 1076 "sql.y"
|
|
{ yylhsminor.yy298 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 7369 "sql.c"
|
|
yymsp[0].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 544: /* set_quantifier_opt ::= ALL */
|
|
#line 1087 "sql.y"
|
|
{ yymsp[0].minor.yy983 = false; }
|
|
#line 7375 "sql.c"
|
|
break;
|
|
case 547: /* select_item ::= NK_STAR */
|
|
#line 1094 "sql.y"
|
|
{ yylhsminor.yy122 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
#line 7380 "sql.c"
|
|
yymsp[0].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 549: /* select_item ::= common_expression column_alias */
|
|
case 559: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==559);
|
|
#line 1096 "sql.y"
|
|
{ yylhsminor.yy122 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy122), &yymsp[0].minor.yy203); }
|
|
#line 7387 "sql.c"
|
|
yymsp[-1].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 550: /* select_item ::= common_expression AS column_alias */
|
|
case 560: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==560);
|
|
#line 1097 "sql.y"
|
|
{ yylhsminor.yy122 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), &yymsp[0].minor.yy203); }
|
|
#line 7394 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 555: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
case 580: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==580);
|
|
case 600: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==600);
|
|
#line 1106 "sql.y"
|
|
{ yymsp[-2].minor.yy298 = yymsp[0].minor.yy298; }
|
|
#line 7402 "sql.c"
|
|
break;
|
|
case 562: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */
|
|
#line 1119 "sql.y"
|
|
{ yymsp[-5].minor.yy122 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy122), releaseRawExprNode(pCxt, yymsp[-1].minor.yy122)); }
|
|
#line 7407 "sql.c"
|
|
break;
|
|
case 563: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
#line 1120 "sql.y"
|
|
{ yymsp[-3].minor.yy122 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy122)); }
|
|
#line 7412 "sql.c"
|
|
break;
|
|
case 564: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */
|
|
#line 1122 "sql.y"
|
|
{ yymsp[-5].minor.yy122 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy122), NULL, yymsp[-1].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 7417 "sql.c"
|
|
break;
|
|
case 565: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */
|
|
#line 1125 "sql.y"
|
|
{ yymsp[-7].minor.yy122 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy122), releaseRawExprNode(pCxt, yymsp[-3].minor.yy122), yymsp[-1].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 7422 "sql.c"
|
|
break;
|
|
case 566: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
#line 1127 "sql.y"
|
|
{ yymsp[-6].minor.yy122 = createEventWindowNode(pCxt, yymsp[-3].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 7427 "sql.c"
|
|
break;
|
|
case 570: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
#line 1133 "sql.y"
|
|
{ yymsp[-3].minor.yy122 = createFillNode(pCxt, yymsp[-1].minor.yy312, NULL); }
|
|
#line 7432 "sql.c"
|
|
break;
|
|
case 571: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
#line 1134 "sql.y"
|
|
{ yymsp[-5].minor.yy122 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy298)); }
|
|
#line 7437 "sql.c"
|
|
break;
|
|
case 572: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
#line 1135 "sql.y"
|
|
{ yymsp[-5].minor.yy122 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy298)); }
|
|
#line 7442 "sql.c"
|
|
break;
|
|
case 573: /* fill_mode ::= NONE */
|
|
#line 1139 "sql.y"
|
|
{ yymsp[0].minor.yy312 = FILL_MODE_NONE; }
|
|
#line 7447 "sql.c"
|
|
break;
|
|
case 574: /* fill_mode ::= PREV */
|
|
#line 1140 "sql.y"
|
|
{ yymsp[0].minor.yy312 = FILL_MODE_PREV; }
|
|
#line 7452 "sql.c"
|
|
break;
|
|
case 575: /* fill_mode ::= NULL */
|
|
#line 1141 "sql.y"
|
|
{ yymsp[0].minor.yy312 = FILL_MODE_NULL; }
|
|
#line 7457 "sql.c"
|
|
break;
|
|
case 576: /* fill_mode ::= NULL_F */
|
|
#line 1142 "sql.y"
|
|
{ yymsp[0].minor.yy312 = FILL_MODE_NULL_F; }
|
|
#line 7462 "sql.c"
|
|
break;
|
|
case 577: /* fill_mode ::= LINEAR */
|
|
#line 1143 "sql.y"
|
|
{ yymsp[0].minor.yy312 = FILL_MODE_LINEAR; }
|
|
#line 7467 "sql.c"
|
|
break;
|
|
case 578: /* fill_mode ::= NEXT */
|
|
#line 1144 "sql.y"
|
|
{ yymsp[0].minor.yy312 = FILL_MODE_NEXT; }
|
|
#line 7472 "sql.c"
|
|
break;
|
|
case 581: /* group_by_list ::= expr_or_subquery */
|
|
#line 1153 "sql.y"
|
|
{ yylhsminor.yy298 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy122))); }
|
|
#line 7477 "sql.c"
|
|
yymsp[0].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 582: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
#line 1154 "sql.y"
|
|
{ yylhsminor.yy298 = addNodeToList(pCxt, yymsp[-2].minor.yy298, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy122))); }
|
|
#line 7483 "sql.c"
|
|
yymsp[-2].minor.yy298 = yylhsminor.yy298;
|
|
break;
|
|
case 586: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
#line 1161 "sql.y"
|
|
{ yymsp[-5].minor.yy122 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy122), releaseRawExprNode(pCxt, yymsp[-1].minor.yy122)); }
|
|
#line 7489 "sql.c"
|
|
break;
|
|
case 587: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
#line 1163 "sql.y"
|
|
{ yymsp[-3].minor.yy122 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy122)); }
|
|
#line 7494 "sql.c"
|
|
break;
|
|
case 590: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
#line 1170 "sql.y"
|
|
{
|
|
yylhsminor.yy122 = addOrderByClause(pCxt, yymsp[-3].minor.yy122, yymsp[-2].minor.yy298);
|
|
yylhsminor.yy122 = addSlimitClause(pCxt, yylhsminor.yy122, yymsp[-1].minor.yy122);
|
|
yylhsminor.yy122 = addLimitClause(pCxt, yylhsminor.yy122, yymsp[0].minor.yy122);
|
|
}
|
|
#line 7503 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 593: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
#line 1180 "sql.y"
|
|
{ yylhsminor.yy122 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 7509 "sql.c"
|
|
yymsp[-3].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 594: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
#line 1182 "sql.y"
|
|
{ yylhsminor.yy122 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy122, yymsp[0].minor.yy122); }
|
|
#line 7515 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 602: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
case 606: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==606);
|
|
#line 1196 "sql.y"
|
|
{ yymsp[-1].minor.yy122 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 7522 "sql.c"
|
|
break;
|
|
case 603: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
case 607: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==607);
|
|
#line 1197 "sql.y"
|
|
{ yymsp[-3].minor.yy122 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 7528 "sql.c"
|
|
break;
|
|
case 604: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
case 608: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==608);
|
|
#line 1198 "sql.y"
|
|
{ yymsp[-3].minor.yy122 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
|
#line 7534 "sql.c"
|
|
break;
|
|
case 609: /* subquery ::= NK_LP query_expression NK_RP */
|
|
#line 1206 "sql.y"
|
|
{ yylhsminor.yy122 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy122); }
|
|
#line 7539 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 614: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
#line 1220 "sql.y"
|
|
{ yylhsminor.yy122 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy122), yymsp[-1].minor.yy626, yymsp[0].minor.yy877); }
|
|
#line 7545 "sql.c"
|
|
yymsp[-2].minor.yy122 = yylhsminor.yy122;
|
|
break;
|
|
case 615: /* ordering_specification_opt ::= */
|
|
#line 1224 "sql.y"
|
|
{ yymsp[1].minor.yy626 = ORDER_ASC; }
|
|
#line 7551 "sql.c"
|
|
break;
|
|
case 616: /* ordering_specification_opt ::= ASC */
|
|
#line 1225 "sql.y"
|
|
{ yymsp[0].minor.yy626 = ORDER_ASC; }
|
|
#line 7556 "sql.c"
|
|
break;
|
|
case 617: /* ordering_specification_opt ::= DESC */
|
|
#line 1226 "sql.y"
|
|
{ yymsp[0].minor.yy626 = ORDER_DESC; }
|
|
#line 7561 "sql.c"
|
|
break;
|
|
case 618: /* null_ordering_opt ::= */
|
|
#line 1230 "sql.y"
|
|
{ yymsp[1].minor.yy877 = NULL_ORDER_DEFAULT; }
|
|
#line 7566 "sql.c"
|
|
break;
|
|
case 619: /* null_ordering_opt ::= NULLS FIRST */
|
|
#line 1231 "sql.y"
|
|
{ yymsp[-1].minor.yy877 = NULL_ORDER_FIRST; }
|
|
#line 7571 "sql.c"
|
|
break;
|
|
case 620: /* null_ordering_opt ::= NULLS LAST */
|
|
#line 1232 "sql.y"
|
|
{ yymsp[-1].minor.yy877 = NULL_ORDER_LAST; }
|
|
#line 7576 "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 7649 "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
|
|
}
|