8183 lines
391 KiB
C
8183 lines
391 KiB
C
/* This file is automatically generated by Lemon from input grammar
|
|
** source file "sql.y". */
|
|
/*
|
|
** 2000-05-29
|
|
**
|
|
** The author disclaims copyright to this source code. In place of
|
|
** a legal notice, here is a blessing:
|
|
**
|
|
** May you do good and not evil.
|
|
** May you find forgiveness for yourself and forgive others.
|
|
** May you share freely, never taking more than you give.
|
|
**
|
|
*************************************************************************
|
|
** Driver template for the LEMON parser generator.
|
|
**
|
|
** The "lemon" program processes an LALR(1) input grammar file, then uses
|
|
** this template to construct a parser. The "lemon" program inserts text
|
|
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
|
|
** interstitial "-" characters) contained in this template is changed into
|
|
** the value of the %name directive from the grammar. Otherwise, the content
|
|
** of this template is copied straight through into the generate parser
|
|
** source file.
|
|
**
|
|
** The following is the concatenation of all %include directives from the
|
|
** input grammar file:
|
|
*/
|
|
/************ Begin %include sections from the grammar ************************/
|
|
#line 11 "sql.y"
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
|
|
#define ALLOW_FORBID_FUNC
|
|
|
|
#include "functionMgt.h"
|
|
#include "nodes.h"
|
|
#include "parToken.h"
|
|
#include "ttokendef.h"
|
|
#include "parAst.h"
|
|
|
|
#define YYSTACKDEPTH 0
|
|
#line 46 "sql.c"
|
|
/**************** End of %include directives **********************************/
|
|
/* These constants specify the various numeric values for terminal symbols.
|
|
***************** Begin token definitions *************************************/
|
|
#ifndef TK_OR
|
|
#define TK_OR 1
|
|
#define TK_AND 2
|
|
#define TK_UNION 3
|
|
#define TK_ALL 4
|
|
#define TK_MINUS 5
|
|
#define TK_EXCEPT 6
|
|
#define TK_INTERSECT 7
|
|
#define TK_NK_BITAND 8
|
|
#define TK_NK_BITOR 9
|
|
#define TK_NK_LSHIFT 10
|
|
#define TK_NK_RSHIFT 11
|
|
#define TK_NK_PLUS 12
|
|
#define TK_NK_MINUS 13
|
|
#define TK_NK_STAR 14
|
|
#define TK_NK_SLASH 15
|
|
#define TK_NK_REM 16
|
|
#define TK_NK_CONCAT 17
|
|
#define TK_CREATE 18
|
|
#define TK_ACCOUNT 19
|
|
#define TK_NK_ID 20
|
|
#define TK_PASS 21
|
|
#define TK_NK_STRING 22
|
|
#define TK_ALTER 23
|
|
#define TK_PPS 24
|
|
#define TK_TSERIES 25
|
|
#define TK_STORAGE 26
|
|
#define TK_STREAMS 27
|
|
#define TK_QTIME 28
|
|
#define TK_DBS 29
|
|
#define TK_USERS 30
|
|
#define TK_CONNS 31
|
|
#define TK_STATE 32
|
|
#define TK_NK_COMMA 33
|
|
#define TK_HOST 34
|
|
#define TK_USER 35
|
|
#define TK_ENABLE 36
|
|
#define TK_NK_INTEGER 37
|
|
#define TK_SYSINFO 38
|
|
#define TK_ADD 39
|
|
#define TK_DROP 40
|
|
#define TK_GRANT 41
|
|
#define TK_ON 42
|
|
#define TK_TO 43
|
|
#define TK_REVOKE 44
|
|
#define TK_FROM 45
|
|
#define TK_SUBSCRIBE 46
|
|
#define TK_READ 47
|
|
#define TK_WRITE 48
|
|
#define TK_NK_DOT 49
|
|
#define TK_WITH 50
|
|
#define TK_DNODE 51
|
|
#define TK_PORT 52
|
|
#define TK_DNODES 53
|
|
#define TK_RESTORE 54
|
|
#define TK_NK_IPTOKEN 55
|
|
#define TK_FORCE 56
|
|
#define TK_UNSAFE 57
|
|
#define TK_CLUSTER 58
|
|
#define TK_LOCAL 59
|
|
#define TK_QNODE 60
|
|
#define TK_BNODE 61
|
|
#define TK_SNODE 62
|
|
#define TK_MNODE 63
|
|
#define TK_VNODE 64
|
|
#define TK_DATABASE 65
|
|
#define TK_USE 66
|
|
#define TK_FLUSH 67
|
|
#define TK_TRIM 68
|
|
#define TK_COMPACT 69
|
|
#define TK_IF 70
|
|
#define TK_NOT 71
|
|
#define TK_EXISTS 72
|
|
#define TK_BUFFER 73
|
|
#define TK_CACHEMODEL 74
|
|
#define TK_CACHESIZE 75
|
|
#define TK_COMP 76
|
|
#define TK_DURATION 77
|
|
#define TK_NK_VARIABLE 78
|
|
#define TK_MAXROWS 79
|
|
#define TK_MINROWS 80
|
|
#define TK_KEEP 81
|
|
#define TK_PAGES 82
|
|
#define TK_PAGESIZE 83
|
|
#define TK_TSDB_PAGESIZE 84
|
|
#define TK_PRECISION 85
|
|
#define TK_REPLICA 86
|
|
#define TK_VGROUPS 87
|
|
#define TK_SINGLE_STABLE 88
|
|
#define TK_RETENTIONS 89
|
|
#define TK_SCHEMALESS 90
|
|
#define TK_WAL_LEVEL 91
|
|
#define TK_WAL_FSYNC_PERIOD 92
|
|
#define TK_WAL_RETENTION_PERIOD 93
|
|
#define TK_WAL_RETENTION_SIZE 94
|
|
#define TK_WAL_ROLL_PERIOD 95
|
|
#define TK_WAL_SEGMENT_SIZE 96
|
|
#define TK_STT_TRIGGER 97
|
|
#define TK_TABLE_PREFIX 98
|
|
#define TK_TABLE_SUFFIX 99
|
|
#define TK_KEEP_TIME_OFFSET 100
|
|
#define TK_NK_COLON 101
|
|
#define TK_BWLIMIT 102
|
|
#define TK_START 103
|
|
#define TK_TIMESTAMP 104
|
|
#define TK_END 105
|
|
#define TK_TABLE 106
|
|
#define TK_NK_LP 107
|
|
#define TK_NK_RP 108
|
|
#define TK_STABLE 109
|
|
#define TK_COLUMN 110
|
|
#define TK_MODIFY 111
|
|
#define TK_RENAME 112
|
|
#define TK_TAG 113
|
|
#define TK_SET 114
|
|
#define TK_NK_EQ 115
|
|
#define TK_USING 116
|
|
#define TK_TAGS 117
|
|
#define TK_BOOL 118
|
|
#define TK_TINYINT 119
|
|
#define TK_SMALLINT 120
|
|
#define TK_INT 121
|
|
#define TK_INTEGER 122
|
|
#define TK_BIGINT 123
|
|
#define TK_FLOAT 124
|
|
#define TK_DOUBLE 125
|
|
#define TK_BINARY 126
|
|
#define TK_NCHAR 127
|
|
#define TK_UNSIGNED 128
|
|
#define TK_JSON 129
|
|
#define TK_VARCHAR 130
|
|
#define TK_MEDIUMBLOB 131
|
|
#define TK_BLOB 132
|
|
#define TK_VARBINARY 133
|
|
#define TK_GEOMETRY 134
|
|
#define TK_DECIMAL 135
|
|
#define TK_COMMENT 136
|
|
#define TK_MAX_DELAY 137
|
|
#define TK_WATERMARK 138
|
|
#define TK_ROLLUP 139
|
|
#define TK_TTL 140
|
|
#define TK_SMA 141
|
|
#define TK_DELETE_MARK 142
|
|
#define TK_FIRST 143
|
|
#define TK_LAST 144
|
|
#define TK_SHOW 145
|
|
#define TK_PRIVILEGES 146
|
|
#define TK_DATABASES 147
|
|
#define TK_TABLES 148
|
|
#define TK_STABLES 149
|
|
#define TK_MNODES 150
|
|
#define TK_QNODES 151
|
|
#define TK_FUNCTIONS 152
|
|
#define TK_INDEXES 153
|
|
#define TK_ACCOUNTS 154
|
|
#define TK_APPS 155
|
|
#define TK_CONNECTIONS 156
|
|
#define TK_LICENCES 157
|
|
#define TK_GRANTS 158
|
|
#define TK_FULL 159
|
|
#define TK_LOGS 160
|
|
#define TK_MACHINES 161
|
|
#define TK_QUERIES 162
|
|
#define TK_SCORES 163
|
|
#define TK_TOPICS 164
|
|
#define TK_VARIABLES 165
|
|
#define TK_BNODES 166
|
|
#define TK_SNODES 167
|
|
#define TK_TRANSACTIONS 168
|
|
#define TK_DISTRIBUTED 169
|
|
#define TK_CONSUMERS 170
|
|
#define TK_SUBSCRIPTIONS 171
|
|
#define TK_VNODES 172
|
|
#define TK_ALIVE 173
|
|
#define TK_VIEWS 174
|
|
#define TK_VIEW 175
|
|
#define TK_COMPACTS 176
|
|
#define TK_NORMAL 177
|
|
#define TK_CHILD 178
|
|
#define TK_LIKE 179
|
|
#define TK_TBNAME 180
|
|
#define TK_QTAGS 181
|
|
#define TK_AS 182
|
|
#define TK_SYSTEM 183
|
|
#define TK_INDEX 184
|
|
#define TK_FUNCTION 185
|
|
#define TK_INTERVAL 186
|
|
#define TK_COUNT 187
|
|
#define TK_LAST_ROW 188
|
|
#define TK_META 189
|
|
#define TK_ONLY 190
|
|
#define TK_TOPIC 191
|
|
#define TK_CONSUMER 192
|
|
#define TK_GROUP 193
|
|
#define TK_DESC 194
|
|
#define TK_DESCRIBE 195
|
|
#define TK_RESET 196
|
|
#define TK_QUERY 197
|
|
#define TK_CACHE 198
|
|
#define TK_EXPLAIN 199
|
|
#define TK_ANALYZE 200
|
|
#define TK_VERBOSE 201
|
|
#define TK_NK_BOOL 202
|
|
#define TK_RATIO 203
|
|
#define TK_NK_FLOAT 204
|
|
#define TK_OUTPUTTYPE 205
|
|
#define TK_AGGREGATE 206
|
|
#define TK_BUFSIZE 207
|
|
#define TK_LANGUAGE 208
|
|
#define TK_REPLACE 209
|
|
#define TK_STREAM 210
|
|
#define TK_INTO 211
|
|
#define TK_PAUSE 212
|
|
#define TK_RESUME 213
|
|
#define TK_TRIGGER 214
|
|
#define TK_AT_ONCE 215
|
|
#define TK_WINDOW_CLOSE 216
|
|
#define TK_IGNORE 217
|
|
#define TK_EXPIRED 218
|
|
#define TK_FILL_HISTORY 219
|
|
#define TK_UPDATE 220
|
|
#define TK_SUBTABLE 221
|
|
#define TK_UNTREATED 222
|
|
#define TK_KILL 223
|
|
#define TK_CONNECTION 224
|
|
#define TK_TRANSACTION 225
|
|
#define TK_BALANCE 226
|
|
#define TK_VGROUP 227
|
|
#define TK_LEADER 228
|
|
#define TK_MERGE 229
|
|
#define TK_REDISTRIBUTE 230
|
|
#define TK_SPLIT 231
|
|
#define TK_DELETE 232
|
|
#define TK_INSERT 233
|
|
#define TK_NULL 234
|
|
#define TK_NK_QUESTION 235
|
|
#define TK_NK_ALIAS 236
|
|
#define TK_NK_ARROW 237
|
|
#define TK_ROWTS 238
|
|
#define TK_QSTART 239
|
|
#define TK_QEND 240
|
|
#define TK_QDURATION 241
|
|
#define TK_WSTART 242
|
|
#define TK_WEND 243
|
|
#define TK_WDURATION 244
|
|
#define TK_IROWTS 245
|
|
#define TK_ISFILLED 246
|
|
#define TK_CAST 247
|
|
#define TK_NOW 248
|
|
#define TK_TODAY 249
|
|
#define TK_TIMEZONE 250
|
|
#define TK_CLIENT_VERSION 251
|
|
#define TK_SERVER_VERSION 252
|
|
#define TK_SERVER_STATUS 253
|
|
#define TK_CURRENT_USER 254
|
|
#define TK_CASE 255
|
|
#define TK_WHEN 256
|
|
#define TK_THEN 257
|
|
#define TK_ELSE 258
|
|
#define TK_BETWEEN 259
|
|
#define TK_IS 260
|
|
#define TK_NK_LT 261
|
|
#define TK_NK_GT 262
|
|
#define TK_NK_LE 263
|
|
#define TK_NK_GE 264
|
|
#define TK_NK_NE 265
|
|
#define TK_MATCH 266
|
|
#define TK_NMATCH 267
|
|
#define TK_CONTAINS 268
|
|
#define TK_IN 269
|
|
#define TK_JOIN 270
|
|
#define TK_INNER 271
|
|
#define TK_SELECT 272
|
|
#define TK_NK_HINT 273
|
|
#define TK_DISTINCT 274
|
|
#define TK_WHERE 275
|
|
#define TK_PARTITION 276
|
|
#define TK_BY 277
|
|
#define TK_SESSION 278
|
|
#define TK_STATE_WINDOW 279
|
|
#define TK_EVENT_WINDOW 280
|
|
#define TK_COUNT_WINDOW 281
|
|
#define TK_SLIDING 282
|
|
#define TK_FILL 283
|
|
#define TK_VALUE 284
|
|
#define TK_VALUE_F 285
|
|
#define TK_NONE 286
|
|
#define TK_PREV 287
|
|
#define TK_NULL_F 288
|
|
#define TK_LINEAR 289
|
|
#define TK_NEXT 290
|
|
#define TK_HAVING 291
|
|
#define TK_RANGE 292
|
|
#define TK_EVERY 293
|
|
#define TK_ORDER 294
|
|
#define TK_SLIMIT 295
|
|
#define TK_SOFFSET 296
|
|
#define TK_LIMIT 297
|
|
#define TK_OFFSET 298
|
|
#define TK_ASC 299
|
|
#define TK_NULLS 300
|
|
#define TK_ABORT 301
|
|
#define TK_AFTER 302
|
|
#define TK_ATTACH 303
|
|
#define TK_BEFORE 304
|
|
#define TK_BEGIN 305
|
|
#define TK_BITAND 306
|
|
#define TK_BITNOT 307
|
|
#define TK_BITOR 308
|
|
#define TK_BLOCKS 309
|
|
#define TK_CHANGE 310
|
|
#define TK_COMMA 311
|
|
#define TK_CONCAT 312
|
|
#define TK_CONFLICT 313
|
|
#define TK_COPY 314
|
|
#define TK_DEFERRED 315
|
|
#define TK_DELIMITERS 316
|
|
#define TK_DETACH 317
|
|
#define TK_DIVIDE 318
|
|
#define TK_DOT 319
|
|
#define TK_EACH 320
|
|
#define TK_FAIL 321
|
|
#define TK_FILE 322
|
|
#define TK_FOR 323
|
|
#define TK_GLOB 324
|
|
#define TK_ID 325
|
|
#define TK_IMMEDIATE 326
|
|
#define TK_IMPORT 327
|
|
#define TK_INITIALLY 328
|
|
#define TK_INSTEAD 329
|
|
#define TK_ISNULL 330
|
|
#define TK_KEY 331
|
|
#define TK_MODULES 332
|
|
#define TK_NK_BITNOT 333
|
|
#define TK_NK_SEMI 334
|
|
#define TK_NOTNULL 335
|
|
#define TK_OF 336
|
|
#define TK_PLUS 337
|
|
#define TK_PRIVILEGE 338
|
|
#define TK_RAISE 339
|
|
#define TK_RESTRICT 340
|
|
#define TK_ROW 341
|
|
#define TK_SEMI 342
|
|
#define TK_STAR 343
|
|
#define TK_STATEMENT 344
|
|
#define TK_STRICT 345
|
|
#define TK_STRING 346
|
|
#define TK_TIMES 347
|
|
#define TK_VALUES 348
|
|
#define TK_VARIABLE 349
|
|
#define TK_WAL 350
|
|
#define TK_ENCODE 351
|
|
#define TK_COMPRESS 352
|
|
#define TK_LEVEL 353
|
|
#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 518
|
|
#define YYACTIONTYPE unsigned short int
|
|
#define ParseTOKENTYPE SToken
|
|
typedef union {
|
|
int yyinit;
|
|
ParseTOKENTYPE yy0;
|
|
STokenPair yy21;
|
|
int32_t yy396;
|
|
SNodeList* yy404;
|
|
EFillMode yy466;
|
|
SDataType yy504;
|
|
SAlterOption yy529;
|
|
ENullOrder yy669;
|
|
EJoinType yy680;
|
|
SToken yy701;
|
|
EShowKind yy705;
|
|
bool yy733;
|
|
EOperatorType yy884;
|
|
SNode* yy896;
|
|
int8_t yy915;
|
|
EOrder yy918;
|
|
int64_t yy949;
|
|
SShowTablesOption yy989;
|
|
} 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 860
|
|
#define YYNRULE 657
|
|
#define YYNRULE_WITH_ACTION 657
|
|
#define YYNTOKEN 354
|
|
#define YY_MAX_SHIFT 859
|
|
#define YY_MIN_SHIFTREDUCE 1269
|
|
#define YY_MAX_SHIFTREDUCE 1925
|
|
#define YY_ERROR_ACTION 1926
|
|
#define YY_ACCEPT_ACTION 1927
|
|
#define YY_NO_ACTION 1928
|
|
#define YY_MIN_REDUCE 1929
|
|
#define YY_MAX_REDUCE 2585
|
|
/************* 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 (2797)
|
|
static const YYACTIONTYPE yy_action[] = {
|
|
/* 0 */ 2261, 742, 2120, 2109, 473, 742, 2120, 429, 2176, 472,
|
|
/* 10 */ 2169, 2171, 48, 46, 1843, 417, 404, 34, 2258, 729,
|
|
/* 20 */ 424, 210, 1684, 41, 40, 138, 2174, 47, 45, 44,
|
|
/* 30 */ 43, 42, 615, 36, 1840, 1769, 2015, 1682, 1709, 41,
|
|
/* 40 */ 40, 169, 2381, 47, 45, 44, 43, 42, 1712, 405,
|
|
/* 50 */ 427, 2122, 721, 147, 680, 724, 2176, 2552, 814, 2174,
|
|
/* 60 */ 112, 2080, 41, 40, 414, 1764, 47, 45, 44, 43,
|
|
/* 70 */ 42, 19, 186, 1927, 2174, 2558, 205, 148, 1690, 2557,
|
|
/* 80 */ 2553, 710, 2552, 2399, 41, 40, 2112, 30, 47, 45,
|
|
/* 90 */ 44, 43, 42, 47, 45, 44, 43, 42, 2347, 2242,
|
|
/* 100 */ 758, 2556, 396, 395, 856, 2553, 2555, 15, 577, 831,
|
|
/* 110 */ 830, 829, 828, 436, 574, 827, 826, 152, 821, 820,
|
|
/* 120 */ 819, 818, 817, 816, 815, 151, 809, 808, 807, 435,
|
|
/* 130 */ 434, 804, 803, 802, 185, 184, 801, 572, 704, 2380,
|
|
/* 140 */ 573, 1972, 2418, 1771, 1772, 114, 2382, 762, 2384, 2385,
|
|
/* 150 */ 757, 276, 752, 1710, 1335, 439, 1334, 188, 480, 2471,
|
|
/* 160 */ 438, 198, 1888, 420, 2467, 303, 2479, 720, 63, 139,
|
|
/* 170 */ 719, 143, 2552, 173, 394, 393, 2163, 617, 207, 1309,
|
|
/* 180 */ 1744, 1754, 427, 2122, 1887, 741, 2501, 1770, 1773, 1336,
|
|
/* 190 */ 708, 205, 161, 721, 147, 2553, 710, 2194, 1316, 619,
|
|
/* 200 */ 433, 432, 1685, 618, 1683, 680, 539, 537, 2552, 370,
|
|
/* 210 */ 305, 41, 40, 219, 457, 47, 45, 44, 43, 42,
|
|
/* 220 */ 664, 1311, 1314, 1315, 2381, 1691, 2558, 205, 225, 1652,
|
|
/* 230 */ 1653, 2553, 710, 741, 1688, 1689, 1741, 759, 1743, 1746,
|
|
/* 240 */ 1747, 1748, 1749, 1750, 1751, 1752, 1753, 754, 750, 1762,
|
|
/* 250 */ 1763, 1765, 1766, 1767, 1768, 2, 48, 46, 2381, 1929,
|
|
/* 260 */ 1710, 368, 1709, 1707, 424, 2399, 1684, 55, 186, 90,
|
|
/* 270 */ 523, 724, 89, 542, 381, 703, 1512, 1513, 541, 1769,
|
|
/* 280 */ 2347, 1682, 758, 137, 136, 135, 134, 133, 132, 131,
|
|
/* 290 */ 130, 129, 2331, 390, 503, 2241, 543, 582, 2300, 2399,
|
|
/* 300 */ 2340, 369, 505, 2399, 1839, 723, 203, 2479, 2480, 1764,
|
|
/* 310 */ 145, 2484, 483, 811, 2347, 19, 758, 2261, 1798, 240,
|
|
/* 320 */ 51, 2380, 1690, 575, 2418, 1980, 663, 114, 2382, 762,
|
|
/* 330 */ 2384, 2385, 757, 307, 752, 2259, 729, 150, 88, 157,
|
|
/* 340 */ 2442, 2471, 461, 446, 589, 420, 2467, 68, 856, 391,
|
|
/* 350 */ 680, 15, 741, 2552, 1741, 2380, 518, 517, 2418, 2357,
|
|
/* 360 */ 491, 114, 2382, 762, 2384, 2385, 757, 702, 752, 463,
|
|
/* 370 */ 459, 2558, 205, 188, 2111, 2471, 2553, 710, 813, 420,
|
|
/* 380 */ 2467, 699, 1799, 1603, 1604, 99, 2361, 1771, 1772, 1952,
|
|
/* 390 */ 2248, 2227, 1694, 530, 529, 528, 527, 522, 521, 520,
|
|
/* 400 */ 519, 372, 2502, 590, 2254, 509, 508, 507, 506, 500,
|
|
/* 410 */ 499, 498, 2557, 493, 492, 389, 1631, 742, 2120, 484,
|
|
/* 420 */ 1571, 1572, 1583, 1584, 1744, 1754, 1590, 1602, 1605, 1712,
|
|
/* 430 */ 2363, 1770, 1773, 588, 634, 633, 632, 138, 172, 51,
|
|
/* 440 */ 752, 624, 144, 628, 620, 2347, 1685, 627, 1683, 2126,
|
|
/* 450 */ 63, 1847, 626, 631, 398, 397, 580, 1709, 625, 573,
|
|
/* 460 */ 1972, 621, 37, 422, 1793, 1794, 1795, 1796, 1797, 1801,
|
|
/* 470 */ 1802, 1803, 1804, 705, 700, 693, 689, 52, 1688, 1689,
|
|
/* 480 */ 1741, 2486, 1743, 1746, 1747, 1748, 1749, 1750, 1751, 1752,
|
|
/* 490 */ 1753, 754, 750, 1762, 1763, 1765, 1766, 1767, 1768, 2,
|
|
/* 500 */ 12, 48, 46, 2381, 652, 489, 2237, 2483, 242, 424,
|
|
/* 510 */ 2210, 1684, 575, 592, 1980, 533, 759, 1911, 1982, 650,
|
|
/* 520 */ 1477, 648, 272, 271, 1769, 1709, 1682, 798, 163, 162,
|
|
/* 530 */ 795, 794, 793, 160, 1468, 790, 789, 788, 1472, 787,
|
|
/* 540 */ 1474, 1475, 786, 783, 2399, 1483, 780, 1485, 1486, 777,
|
|
/* 550 */ 774, 771, 38, 323, 1764, 2018, 1713, 221, 175, 2347,
|
|
/* 560 */ 19, 758, 44, 43, 42, 128, 2058, 1690, 127, 126,
|
|
/* 570 */ 125, 124, 123, 122, 121, 120, 119, 230, 742, 2120,
|
|
/* 580 */ 41, 40, 2381, 1779, 47, 45, 44, 43, 42, 1709,
|
|
/* 590 */ 664, 305, 1713, 856, 800, 759, 15, 2509, 56, 1428,
|
|
/* 600 */ 2380, 532, 229, 2418, 307, 661, 114, 2382, 762, 2384,
|
|
/* 610 */ 2385, 757, 63, 752, 1427, 307, 1318, 1745, 2572, 1335,
|
|
/* 620 */ 2471, 1334, 1708, 2399, 420, 2467, 495, 2237, 634, 633,
|
|
/* 630 */ 632, 418, 1771, 1772, 106, 624, 144, 628, 2347, 172,
|
|
/* 640 */ 758, 627, 307, 2095, 525, 2237, 626, 631, 398, 397,
|
|
/* 650 */ 2125, 176, 625, 1941, 1336, 621, 1876, 41, 40, 2381,
|
|
/* 660 */ 2113, 47, 45, 44, 43, 42, 12, 666, 2300, 1744,
|
|
/* 670 */ 1754, 516, 759, 1742, 2522, 515, 1770, 1773, 223, 2380,
|
|
/* 680 */ 2176, 544, 2418, 514, 1690, 114, 2382, 762, 2384, 2385,
|
|
/* 690 */ 757, 1685, 752, 1683, 742, 2120, 228, 2572, 728, 2471,
|
|
/* 700 */ 2399, 2170, 2171, 420, 2467, 1684, 696, 695, 1874, 1875,
|
|
/* 710 */ 1877, 1878, 1879, 800, 477, 2347, 63, 758, 721, 147,
|
|
/* 720 */ 1682, 2104, 375, 1688, 1689, 1741, 1713, 1743, 1746, 1747,
|
|
/* 730 */ 1748, 1749, 1750, 1751, 1752, 1753, 754, 750, 1762, 1763,
|
|
/* 740 */ 1765, 1766, 1767, 1768, 2, 48, 46, 1774, 3, 1745,
|
|
/* 750 */ 767, 766, 765, 424, 201, 1684, 2380, 1859, 2381, 2418,
|
|
/* 760 */ 54, 1690, 114, 2382, 762, 2384, 2385, 757, 1769, 752,
|
|
/* 770 */ 1682, 759, 1714, 691, 2572, 679, 2471, 307, 41, 40,
|
|
/* 780 */ 420, 2467, 47, 45, 44, 43, 42, 856, 2357, 2381,
|
|
/* 790 */ 314, 315, 95, 742, 2120, 313, 14, 13, 1764, 2399,
|
|
/* 800 */ 742, 2120, 759, 2365, 2545, 1742, 1338, 1339, 1714, 392,
|
|
/* 810 */ 471, 1690, 470, 478, 2347, 2361, 758, 41, 40, 2115,
|
|
/* 820 */ 497, 47, 45, 44, 43, 42, 2381, 1316, 742, 2120,
|
|
/* 830 */ 2399, 204, 2479, 2480, 1432, 145, 2484, 856, 791, 759,
|
|
/* 840 */ 49, 2490, 469, 2107, 1951, 2347, 275, 758, 510, 1431,
|
|
/* 850 */ 274, 1314, 1315, 611, 610, 2380, 1950, 1416, 2418, 2363,
|
|
/* 860 */ 421, 114, 2382, 762, 2384, 2385, 757, 2399, 752, 752,
|
|
/* 870 */ 742, 2120, 12, 2572, 10, 2471, 1771, 1772, 95, 420,
|
|
/* 880 */ 2467, 307, 2347, 2176, 758, 1685, 2380, 1683, 196, 2418,
|
|
/* 890 */ 511, 419, 114, 2382, 762, 2384, 2385, 757, 1418, 752,
|
|
/* 900 */ 2347, 2174, 2002, 1812, 2572, 2116, 2471, 61, 742, 2120,
|
|
/* 910 */ 420, 2467, 2347, 1744, 1754, 677, 546, 1688, 1689, 98,
|
|
/* 920 */ 1770, 1773, 376, 2380, 635, 403, 2418, 654, 512, 114,
|
|
/* 930 */ 2382, 762, 2384, 2385, 757, 1685, 752, 1683, 2328, 742,
|
|
/* 940 */ 2120, 2572, 1714, 2471, 2176, 742, 2120, 420, 2467, 1949,
|
|
/* 950 */ 41, 40, 428, 2381, 47, 45, 44, 43, 42, 591,
|
|
/* 960 */ 1713, 744, 2174, 2443, 1918, 2117, 759, 1688, 1689, 1741,
|
|
/* 970 */ 9, 1743, 1746, 1747, 1748, 1749, 1750, 1751, 1752, 1753,
|
|
/* 980 */ 754, 750, 1762, 1763, 1765, 1766, 1767, 1768, 2, 48,
|
|
/* 990 */ 46, 2381, 1930, 2096, 2399, 742, 2120, 424, 746, 1684,
|
|
/* 1000 */ 2443, 613, 612, 2557, 759, 2347, 2552, 630, 629, 2347,
|
|
/* 1010 */ 2176, 758, 1769, 128, 1682, 278, 127, 126, 125, 124,
|
|
/* 1020 */ 123, 122, 121, 120, 119, 2556, 1868, 2176, 737, 2553,
|
|
/* 1030 */ 2554, 569, 2399, 2094, 1948, 388, 1947, 1946, 825, 823,
|
|
/* 1040 */ 567, 1869, 1764, 563, 559, 2174, 1945, 2347, 2556, 758,
|
|
/* 1050 */ 2380, 1944, 2486, 2418, 430, 1690, 114, 2382, 762, 2384,
|
|
/* 1060 */ 2385, 757, 172, 752, 1800, 742, 2120, 1943, 2446, 1917,
|
|
/* 1070 */ 2471, 1957, 851, 2125, 420, 2467, 2491, 1832, 2482, 173,
|
|
/* 1080 */ 1709, 856, 1867, 709, 49, 286, 2552, 2381, 2380, 2123,
|
|
/* 1090 */ 2347, 2418, 2347, 2347, 114, 2382, 762, 2384, 2385, 757,
|
|
/* 1100 */ 759, 752, 2347, 1940, 708, 205, 2444, 2347, 2471, 2553,
|
|
/* 1110 */ 710, 1939, 420, 2467, 149, 709, 1709, 2442, 2552, 2220,
|
|
/* 1120 */ 1771, 1772, 200, 2347, 171, 2357, 742, 2120, 2399, 798,
|
|
/* 1130 */ 163, 162, 795, 794, 793, 160, 708, 205, 2176, 328,
|
|
/* 1140 */ 2366, 2553, 710, 2347, 35, 758, 727, 2381, 742, 2120,
|
|
/* 1150 */ 713, 1938, 2361, 2309, 1805, 2000, 2175, 1744, 1754, 2347,
|
|
/* 1160 */ 759, 487, 742, 2120, 1770, 1773, 212, 2347, 318, 798,
|
|
/* 1170 */ 163, 162, 795, 794, 793, 160, 1714, 637, 1991, 1685,
|
|
/* 1180 */ 1937, 1683, 739, 76, 2380, 716, 1936, 2418, 2399, 1935,
|
|
/* 1190 */ 114, 2382, 762, 2384, 2385, 757, 2363, 752, 792, 1832,
|
|
/* 1200 */ 639, 2167, 745, 2347, 2471, 758, 752, 2347, 420, 2467,
|
|
/* 1210 */ 277, 1688, 1689, 1741, 1934, 1743, 1746, 1747, 1748, 1749,
|
|
/* 1220 */ 1750, 1751, 1752, 1753, 754, 750, 1762, 1763, 1765, 1766,
|
|
/* 1230 */ 1767, 1768, 2, 48, 46, 87, 2347, 140, 1933, 2341,
|
|
/* 1240 */ 1745, 424, 2347, 1684, 2380, 2347, 641, 2418, 1932, 86,
|
|
/* 1250 */ 115, 2382, 762, 2384, 2385, 757, 1769, 752, 1682, 742,
|
|
/* 1260 */ 2120, 653, 742, 2120, 2471, 742, 2120, 161, 2470, 2467,
|
|
/* 1270 */ 2347, 796, 2486, 797, 2167, 2097, 2167, 273, 2381, 740,
|
|
/* 1280 */ 338, 263, 324, 2153, 261, 431, 1764, 265, 161, 680,
|
|
/* 1290 */ 264, 759, 2552, 644, 2347, 687, 1742, 622, 2481, 1690,
|
|
/* 1300 */ 638, 636, 619, 623, 2347, 287, 618, 270, 153, 267,
|
|
/* 1310 */ 2558, 205, 266, 1989, 749, 2553, 710, 269, 174, 2399,
|
|
/* 1320 */ 268, 1413, 656, 344, 655, 856, 2102, 1411, 15, 50,
|
|
/* 1330 */ 50, 189, 1742, 2381, 2347, 642, 758, 1920, 1921, 712,
|
|
/* 1340 */ 342, 74, 1647, 659, 73, 2124, 759, 161, 72, 100,
|
|
/* 1350 */ 283, 71, 2368, 111, 371, 1693, 50, 312, 14, 13,
|
|
/* 1360 */ 753, 337, 108, 1650, 1771, 1772, 238, 554, 552, 549,
|
|
/* 1370 */ 1863, 75, 158, 161, 2399, 2380, 66, 50, 2418, 199,
|
|
/* 1380 */ 408, 115, 2382, 762, 2384, 2385, 757, 1692, 752, 2347,
|
|
/* 1390 */ 2059, 758, 1942, 680, 2515, 2471, 2552, 805, 300, 747,
|
|
/* 1400 */ 2467, 1744, 1754, 50, 1873, 1872, 292, 63, 1770, 1773,
|
|
/* 1410 */ 2370, 769, 159, 714, 2558, 205, 697, 294, 161, 2553,
|
|
/* 1420 */ 710, 1390, 726, 1685, 142, 1683, 2400, 721, 147, 806,
|
|
/* 1430 */ 2380, 1600, 316, 2418, 141, 2056, 361, 2382, 762, 2384,
|
|
/* 1440 */ 2385, 757, 158, 752, 1371, 64, 734, 320, 1459, 1983,
|
|
/* 1450 */ 717, 1806, 1755, 1388, 2055, 1688, 1689, 1741, 2246, 1743,
|
|
/* 1460 */ 1746, 1747, 1748, 1749, 1750, 1751, 1752, 1753, 754, 750,
|
|
/* 1470 */ 1762, 1763, 1765, 1766, 1767, 1768, 2, 1790, 336, 2381,
|
|
/* 1480 */ 1973, 433, 432, 2505, 437, 1372, 1490, 1494, 694, 410,
|
|
/* 1490 */ 701, 1698, 759, 1501, 84, 83, 476, 406, 731, 218,
|
|
/* 1500 */ 2247, 849, 1979, 2164, 1769, 2381, 1691, 673, 2506, 1499,
|
|
/* 1510 */ 2516, 722, 468, 466, 302, 299, 306, 164, 756, 2081,
|
|
/* 1520 */ 2399, 445, 1696, 367, 5, 440, 455, 386, 453, 452,
|
|
/* 1530 */ 448, 444, 441, 469, 1764, 2347, 454, 758, 1717, 2381,
|
|
/* 1540 */ 206, 2479, 2480, 465, 145, 2484, 2399, 1690, 464, 467,
|
|
/* 1550 */ 213, 214, 759, 216, 1695, 1624, 481, 331, 1707, 1708,
|
|
/* 1560 */ 488, 2347, 2381, 758, 227, 490, 494, 496, 535, 501,
|
|
/* 1570 */ 513, 2239, 307, 748, 548, 759, 760, 531, 524, 2418,
|
|
/* 1580 */ 2399, 526, 115, 2382, 762, 2384, 2385, 757, 534, 752,
|
|
/* 1590 */ 547, 536, 545, 232, 233, 2347, 2471, 758, 550, 551,
|
|
/* 1600 */ 380, 2467, 2380, 2399, 235, 2418, 553, 555, 360, 2382,
|
|
/* 1610 */ 762, 2384, 2385, 757, 755, 752, 743, 2436, 2347, 1715,
|
|
/* 1620 */ 758, 570, 4, 571, 579, 578, 243, 581, 92, 665,
|
|
/* 1630 */ 1710, 583, 246, 1716, 1718, 584, 2380, 587, 585, 2418,
|
|
/* 1640 */ 1719, 614, 177, 2382, 762, 2384, 2385, 757, 249, 752,
|
|
/* 1650 */ 251, 2255, 93, 658, 94, 593, 256, 2318, 616, 2380,
|
|
/* 1660 */ 725, 645, 2418, 2110, 117, 177, 2382, 762, 2384, 2385,
|
|
/* 1670 */ 757, 1699, 752, 1694, 364, 260, 646, 97, 2106, 680,
|
|
/* 1680 */ 262, 166, 2552, 2381, 681, 2512, 116, 2108, 660, 2103,
|
|
/* 1690 */ 167, 168, 1711, 279, 2315, 154, 759, 669, 2314, 2381,
|
|
/* 1700 */ 2558, 205, 668, 1702, 1704, 2553, 710, 667, 2513, 332,
|
|
/* 1710 */ 680, 284, 759, 2552, 2301, 282, 675, 750, 1762, 1763,
|
|
/* 1720 */ 1765, 1766, 1767, 1768, 2399, 672, 698, 2521, 684, 732,
|
|
/* 1730 */ 289, 2558, 205, 291, 707, 8, 2553, 710, 2520, 2347,
|
|
/* 1740 */ 2399, 758, 674, 685, 683, 298, 411, 2493, 682, 295,
|
|
/* 1750 */ 293, 718, 1832, 180, 715, 2347, 2575, 758, 146, 2381,
|
|
/* 1760 */ 1712, 1837, 192, 296, 1835, 2487, 308, 297, 155, 730,
|
|
/* 1770 */ 735, 2269, 759, 2268, 2267, 416, 333, 334, 736, 301,
|
|
/* 1780 */ 2380, 2381, 156, 2418, 208, 2121, 178, 2382, 762, 2384,
|
|
/* 1790 */ 2385, 757, 335, 752, 759, 2381, 2380, 105, 2551, 2418,
|
|
/* 1800 */ 2399, 1, 115, 2382, 762, 2384, 2385, 757, 759, 752,
|
|
/* 1810 */ 62, 2452, 2168, 107, 2381, 2347, 2471, 758, 326, 1293,
|
|
/* 1820 */ 764, 2468, 2399, 853, 339, 850, 165, 759, 409, 855,
|
|
/* 1830 */ 363, 348, 377, 53, 385, 378, 2399, 2347, 341, 758,
|
|
/* 1840 */ 711, 2573, 343, 362, 2339, 352, 2338, 2337, 81, 2332,
|
|
/* 1850 */ 442, 2347, 443, 758, 447, 2399, 2380, 1675, 1676, 2418,
|
|
/* 1860 */ 211, 415, 354, 2382, 762, 2384, 2385, 757, 2330, 752,
|
|
/* 1870 */ 2347, 449, 758, 450, 451, 1674, 2329, 387, 2380, 2327,
|
|
/* 1880 */ 456, 2418, 2326, 2325, 361, 2382, 762, 2384, 2385, 757,
|
|
/* 1890 */ 458, 752, 2380, 2381, 460, 2418, 2324, 462, 178, 2382,
|
|
/* 1900 */ 762, 2384, 2385, 757, 1663, 752, 756, 2305, 706, 215,
|
|
/* 1910 */ 2304, 2380, 217, 1627, 2418, 82, 1626, 361, 2382, 762,
|
|
/* 1920 */ 2384, 2385, 757, 662, 752, 2282, 2281, 2280, 474, 475,
|
|
/* 1930 */ 2381, 2279, 2278, 2229, 2399, 479, 1570, 2226, 482, 258,
|
|
/* 1940 */ 2225, 859, 2219, 759, 486, 485, 2216, 220, 2215, 2347,
|
|
/* 1950 */ 85, 758, 2214, 2574, 2213, 181, 2218, 330, 222, 2217,
|
|
/* 1960 */ 2212, 2381, 2211, 2209, 609, 605, 601, 597, 226, 257,
|
|
/* 1970 */ 2208, 2399, 2207, 195, 759, 224, 502, 423, 2206, 504,
|
|
/* 1980 */ 2204, 2203, 847, 843, 839, 835, 2347, 327, 758, 2202,
|
|
/* 1990 */ 2380, 2201, 2224, 2418, 2200, 2199, 360, 2382, 762, 2384,
|
|
/* 2000 */ 2385, 757, 2399, 752, 2198, 2437, 2222, 2205, 425, 2197,
|
|
/* 2010 */ 96, 2196, 2195, 255, 2193, 2192, 2191, 2347, 2190, 758,
|
|
/* 2020 */ 2189, 2188, 2187, 2186, 91, 2185, 2184, 2380, 113, 2223,
|
|
/* 2030 */ 2418, 321, 2221, 361, 2382, 762, 2384, 2385, 757, 1576,
|
|
/* 2040 */ 752, 2381, 2183, 2182, 2181, 231, 2180, 538, 2179, 540,
|
|
/* 2050 */ 2178, 2177, 1429, 373, 759, 1433, 2021, 2020, 2380, 2019,
|
|
/* 2060 */ 374, 2418, 2381, 738, 361, 2382, 762, 2384, 2385, 757,
|
|
/* 2070 */ 234, 752, 1425, 236, 2017, 759, 2014, 556, 2381, 245,
|
|
/* 2080 */ 558, 2013, 2399, 562, 237, 557, 560, 561, 254, 247,
|
|
/* 2090 */ 2006, 759, 564, 1993, 566, 252, 586, 2347, 2381, 758,
|
|
/* 2100 */ 568, 1968, 187, 2399, 565, 239, 310, 78, 1317, 1967,
|
|
/* 2110 */ 2367, 759, 79, 309, 244, 197, 576, 2303, 2347, 2399,
|
|
/* 2120 */ 758, 241, 2299, 2289, 2277, 248, 250, 2276, 253, 2253,
|
|
/* 2130 */ 2098, 2016, 280, 2012, 2347, 594, 758, 595, 657, 2399,
|
|
/* 2140 */ 1364, 2418, 596, 2010, 356, 2382, 762, 2384, 2385, 757,
|
|
/* 2150 */ 598, 752, 600, 599, 2347, 2008, 758, 602, 2381, 2380,
|
|
/* 2160 */ 604, 2005, 2418, 603, 1988, 346, 2382, 762, 2384, 2385,
|
|
/* 2170 */ 757, 759, 752, 606, 2381, 2380, 607, 1986, 2418, 608,
|
|
/* 2180 */ 1987, 345, 2382, 762, 2384, 2385, 757, 759, 752, 1985,
|
|
/* 2190 */ 1964, 2100, 65, 259, 2381, 2380, 1506, 1505, 2418, 2399,
|
|
/* 2200 */ 2099, 347, 2382, 762, 2384, 2385, 757, 759, 752, 1415,
|
|
/* 2210 */ 1414, 1412, 822, 1410, 2347, 2399, 758, 2003, 1409, 1408,
|
|
/* 2220 */ 1407, 1406, 1403, 1402, 1401, 824, 399, 2001, 400, 1992,
|
|
/* 2230 */ 2347, 1400, 758, 401, 1990, 2399, 402, 1963, 643, 1962,
|
|
/* 2240 */ 640, 1961, 647, 1960, 649, 1959, 651, 2381, 118, 1657,
|
|
/* 2250 */ 2347, 29, 758, 1659, 1661, 2380, 1656, 2302, 2418, 69,
|
|
/* 2260 */ 759, 353, 2382, 762, 2384, 2385, 757, 57, 752, 281,
|
|
/* 2270 */ 2298, 2380, 2381, 58, 2418, 1633, 1635, 357, 2382, 762,
|
|
/* 2280 */ 2384, 2385, 757, 2288, 752, 759, 670, 170, 2399, 671,
|
|
/* 2290 */ 285, 2380, 2275, 1637, 2418, 2274, 1612, 349, 2382, 762,
|
|
/* 2300 */ 2384, 2385, 757, 2347, 752, 758, 2557, 2381, 1611, 20,
|
|
/* 2310 */ 676, 1890, 686, 2399, 17, 31, 288, 678, 1864, 407,
|
|
/* 2320 */ 759, 6, 7, 690, 692, 2381, 21, 22, 2347, 688,
|
|
/* 2330 */ 758, 290, 191, 1871, 1858, 202, 2368, 179, 759, 190,
|
|
/* 2340 */ 32, 33, 80, 2381, 2380, 67, 24, 2418, 2399, 23,
|
|
/* 2350 */ 358, 2382, 762, 2384, 2385, 757, 759, 752, 1910, 1911,
|
|
/* 2360 */ 1905, 1904, 412, 2347, 18, 758, 2399, 1909, 1908, 2380,
|
|
/* 2370 */ 413, 1829, 2418, 1828, 59, 350, 2382, 762, 2384, 2385,
|
|
/* 2380 */ 757, 2347, 752, 758, 2399, 304, 60, 182, 2273, 2252,
|
|
/* 2390 */ 102, 101, 25, 2251, 103, 193, 2381, 311, 1866, 2347,
|
|
/* 2400 */ 322, 758, 26, 317, 2380, 70, 11, 2418, 104, 759,
|
|
/* 2410 */ 359, 2382, 762, 2384, 2385, 757, 108, 752, 13, 1781,
|
|
/* 2420 */ 319, 2381, 2380, 1780, 1700, 2418, 733, 1791, 351, 2382,
|
|
/* 2430 */ 762, 2384, 2385, 757, 759, 752, 1759, 2399, 763, 2421,
|
|
/* 2440 */ 2380, 751, 39, 2418, 183, 1757, 365, 2382, 762, 2384,
|
|
/* 2450 */ 2385, 757, 2347, 752, 758, 1756, 2381, 16, 194, 1734,
|
|
/* 2460 */ 1925, 27, 2399, 1726, 28, 1924, 1923, 1491, 768, 759,
|
|
/* 2470 */ 426, 770, 772, 1488, 773, 776, 2381, 2347, 1487, 758,
|
|
/* 2480 */ 1484, 761, 775, 778, 779, 781, 1478, 782, 784, 759,
|
|
/* 2490 */ 1476, 785, 2381, 2380, 1482, 325, 2418, 2399, 109, 366,
|
|
/* 2500 */ 2382, 762, 2384, 2385, 757, 759, 752, 1481, 110, 1480,
|
|
/* 2510 */ 1500, 1479, 2347, 77, 758, 1496, 1397, 2399, 2380, 1362,
|
|
/* 2520 */ 799, 2418, 1394, 1393, 2393, 2382, 762, 2384, 2385, 757,
|
|
/* 2530 */ 1423, 752, 2347, 2399, 758, 1392, 1391, 1389, 1387, 1386,
|
|
/* 2540 */ 1385, 810, 1422, 812, 209, 1383, 1382, 1381, 2347, 1380,
|
|
/* 2550 */ 758, 1379, 2381, 2380, 1378, 1377, 2418, 1417, 1419, 2392,
|
|
/* 2560 */ 2382, 762, 2384, 2385, 757, 759, 752, 1374, 1373, 1370,
|
|
/* 2570 */ 1369, 1368, 2381, 2380, 1367, 2011, 2418, 832, 2009, 2391,
|
|
/* 2580 */ 2382, 762, 2384, 2385, 757, 759, 752, 833, 2381, 2380,
|
|
/* 2590 */ 834, 836, 2418, 2399, 837, 382, 2382, 762, 2384, 2385,
|
|
/* 2600 */ 757, 759, 752, 838, 2007, 840, 841, 842, 2347, 2004,
|
|
/* 2610 */ 758, 844, 846, 2399, 845, 1984, 848, 1306, 1958, 1294,
|
|
/* 2620 */ 852, 329, 854, 1928, 1686, 340, 857, 858, 2347, 2399,
|
|
/* 2630 */ 758, 1928, 1928, 1928, 1928, 1928, 1928, 1928, 1928, 1928,
|
|
/* 2640 */ 1928, 1928, 1928, 1928, 2347, 1928, 758, 1928, 1928, 2380,
|
|
/* 2650 */ 1928, 1928, 2418, 1928, 1928, 383, 2382, 762, 2384, 2385,
|
|
/* 2660 */ 757, 2381, 752, 1928, 1928, 1928, 1928, 1928, 1928, 2380,
|
|
/* 2670 */ 1928, 1928, 2418, 1928, 759, 379, 2382, 762, 2384, 2385,
|
|
/* 2680 */ 757, 1928, 752, 1928, 1928, 2380, 2381, 1928, 2418, 1928,
|
|
/* 2690 */ 1928, 384, 2382, 762, 2384, 2385, 757, 1928, 752, 759,
|
|
/* 2700 */ 1928, 1928, 2399, 1928, 1928, 1928, 1928, 1928, 1928, 1928,
|
|
/* 2710 */ 1928, 1928, 1928, 1928, 1928, 1928, 1928, 2347, 1928, 758,
|
|
/* 2720 */ 1928, 1928, 1928, 1928, 1928, 1928, 1928, 2399, 1928, 1928,
|
|
/* 2730 */ 1928, 1928, 1928, 1928, 1928, 1928, 1928, 1928, 1928, 1928,
|
|
/* 2740 */ 1928, 1928, 2347, 1928, 758, 1928, 1928, 1928, 1928, 1928,
|
|
/* 2750 */ 1928, 1928, 1928, 1928, 1928, 1928, 1928, 1928, 760, 1928,
|
|
/* 2760 */ 1928, 2418, 1928, 1928, 356, 2382, 762, 2384, 2385, 757,
|
|
/* 2770 */ 1928, 752, 1928, 1928, 1928, 1928, 1928, 1928, 1928, 1928,
|
|
/* 2780 */ 1928, 1928, 1928, 2380, 1928, 1928, 2418, 1928, 1928, 355,
|
|
/* 2790 */ 2382, 762, 2384, 2385, 757, 1928, 752,
|
|
};
|
|
static const YYCODETYPE yy_lookahead[] = {
|
|
/* 0 */ 415, 369, 370, 399, 436, 369, 370, 411, 398, 441,
|
|
/* 10 */ 414, 415, 12, 13, 14, 430, 406, 2, 433, 434,
|
|
/* 20 */ 20, 389, 22, 8, 9, 389, 416, 12, 13, 14,
|
|
/* 30 */ 15, 16, 396, 2, 4, 35, 0, 37, 20, 8,
|
|
/* 40 */ 9, 398, 357, 12, 13, 14, 15, 16, 20, 406,
|
|
/* 50 */ 407, 408, 369, 370, 486, 370, 398, 489, 385, 416,
|
|
/* 60 */ 376, 388, 8, 9, 406, 65, 12, 13, 14, 15,
|
|
/* 70 */ 16, 71, 398, 354, 416, 507, 508, 393, 78, 486,
|
|
/* 80 */ 512, 513, 489, 398, 8, 9, 402, 33, 12, 13,
|
|
/* 90 */ 14, 15, 16, 12, 13, 14, 15, 16, 413, 425,
|
|
/* 100 */ 415, 508, 39, 40, 104, 512, 513, 107, 14, 73,
|
|
/* 110 */ 74, 75, 76, 77, 20, 79, 80, 81, 82, 83,
|
|
/* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
|
|
/* 130 */ 94, 95, 96, 97, 98, 99, 100, 364, 20, 454,
|
|
/* 140 */ 367, 368, 457, 143, 144, 460, 461, 462, 463, 464,
|
|
/* 150 */ 465, 137, 467, 20, 20, 436, 22, 472, 369, 474,
|
|
/* 160 */ 441, 397, 108, 478, 479, 482, 483, 484, 107, 486,
|
|
/* 170 */ 487, 37, 489, 398, 111, 112, 412, 114, 493, 4,
|
|
/* 180 */ 180, 181, 407, 408, 108, 20, 501, 187, 188, 55,
|
|
/* 190 */ 507, 508, 33, 369, 370, 512, 513, 0, 23, 136,
|
|
/* 200 */ 12, 13, 202, 140, 204, 486, 417, 418, 489, 420,
|
|
/* 210 */ 182, 8, 9, 424, 69, 12, 13, 14, 15, 16,
|
|
/* 220 */ 369, 46, 47, 48, 357, 37, 507, 508, 65, 215,
|
|
/* 230 */ 216, 512, 513, 20, 234, 235, 236, 370, 238, 239,
|
|
/* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
|
/* 250 */ 250, 251, 252, 253, 254, 255, 12, 13, 357, 0,
|
|
/* 260 */ 20, 18, 20, 20, 20, 398, 22, 108, 398, 106,
|
|
/* 270 */ 27, 370, 109, 30, 71, 370, 143, 144, 35, 35,
|
|
/* 280 */ 413, 37, 415, 24, 25, 26, 27, 28, 29, 30,
|
|
/* 290 */ 31, 32, 0, 423, 51, 425, 53, 446, 447, 398,
|
|
/* 300 */ 436, 58, 59, 398, 274, 481, 482, 483, 484, 65,
|
|
/* 310 */ 486, 487, 69, 13, 413, 71, 415, 415, 115, 365,
|
|
/* 320 */ 107, 454, 78, 369, 457, 371, 20, 460, 461, 462,
|
|
/* 330 */ 463, 464, 465, 272, 467, 433, 434, 470, 175, 472,
|
|
/* 340 */ 473, 474, 197, 51, 369, 478, 479, 4, 104, 106,
|
|
/* 350 */ 486, 107, 20, 489, 236, 454, 159, 160, 457, 386,
|
|
/* 360 */ 117, 460, 461, 462, 463, 464, 465, 462, 467, 224,
|
|
/* 370 */ 225, 507, 508, 472, 401, 474, 512, 513, 78, 478,
|
|
/* 380 */ 479, 186, 179, 143, 144, 175, 413, 143, 144, 357,
|
|
/* 390 */ 147, 148, 204, 150, 151, 152, 153, 154, 155, 156,
|
|
/* 400 */ 157, 158, 501, 428, 429, 162, 163, 164, 165, 166,
|
|
/* 410 */ 167, 168, 3, 170, 171, 172, 206, 369, 370, 176,
|
|
/* 420 */ 177, 178, 180, 181, 180, 181, 183, 187, 188, 20,
|
|
/* 430 */ 457, 187, 188, 20, 73, 74, 75, 389, 398, 107,
|
|
/* 440 */ 467, 80, 81, 82, 396, 413, 202, 86, 204, 409,
|
|
/* 450 */ 107, 14, 91, 92, 93, 94, 364, 20, 97, 367,
|
|
/* 460 */ 368, 100, 259, 260, 261, 262, 263, 264, 265, 266,
|
|
/* 470 */ 267, 268, 269, 278, 279, 280, 281, 107, 234, 235,
|
|
/* 480 */ 236, 459, 238, 239, 240, 241, 242, 243, 244, 245,
|
|
/* 490 */ 246, 247, 248, 249, 250, 251, 252, 253, 254, 255,
|
|
/* 500 */ 256, 12, 13, 357, 21, 369, 370, 485, 365, 20,
|
|
/* 510 */ 0, 22, 369, 70, 371, 87, 370, 108, 372, 36,
|
|
/* 520 */ 104, 38, 39, 40, 35, 20, 37, 136, 137, 138,
|
|
/* 530 */ 139, 140, 141, 142, 118, 119, 120, 121, 122, 123,
|
|
/* 540 */ 124, 125, 126, 127, 398, 129, 130, 131, 132, 133,
|
|
/* 550 */ 134, 135, 475, 476, 65, 0, 20, 421, 379, 413,
|
|
/* 560 */ 71, 415, 14, 15, 16, 21, 387, 78, 24, 25,
|
|
/* 570 */ 26, 27, 28, 29, 30, 31, 32, 149, 369, 370,
|
|
/* 580 */ 8, 9, 357, 14, 12, 13, 14, 15, 16, 20,
|
|
/* 590 */ 369, 182, 20, 104, 70, 370, 107, 372, 389, 22,
|
|
/* 600 */ 454, 173, 174, 457, 272, 117, 460, 461, 462, 463,
|
|
/* 610 */ 464, 465, 107, 467, 37, 272, 14, 180, 472, 20,
|
|
/* 620 */ 474, 22, 20, 398, 478, 479, 369, 370, 73, 74,
|
|
/* 630 */ 75, 390, 143, 144, 376, 80, 81, 82, 413, 398,
|
|
/* 640 */ 415, 86, 272, 0, 369, 370, 91, 92, 93, 94,
|
|
/* 650 */ 409, 356, 97, 358, 55, 100, 234, 8, 9, 357,
|
|
/* 660 */ 402, 12, 13, 14, 15, 16, 256, 446, 447, 180,
|
|
/* 670 */ 181, 161, 370, 236, 372, 165, 187, 188, 421, 454,
|
|
/* 680 */ 398, 104, 457, 173, 78, 460, 461, 462, 463, 464,
|
|
/* 690 */ 465, 202, 467, 204, 369, 370, 421, 472, 416, 474,
|
|
/* 700 */ 398, 414, 415, 478, 479, 22, 284, 285, 286, 287,
|
|
/* 710 */ 288, 289, 290, 70, 389, 413, 107, 415, 369, 370,
|
|
/* 720 */ 37, 399, 400, 234, 235, 236, 20, 238, 239, 240,
|
|
/* 730 */ 241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
|
|
/* 740 */ 251, 252, 253, 254, 255, 12, 13, 14, 33, 180,
|
|
/* 750 */ 351, 352, 353, 20, 182, 22, 454, 108, 357, 457,
|
|
/* 760 */ 45, 78, 460, 461, 462, 463, 464, 465, 35, 467,
|
|
/* 770 */ 37, 370, 236, 372, 472, 50, 474, 272, 8, 9,
|
|
/* 780 */ 478, 479, 12, 13, 14, 15, 16, 104, 386, 357,
|
|
/* 790 */ 137, 138, 378, 369, 370, 142, 1, 2, 65, 398,
|
|
/* 800 */ 369, 370, 370, 401, 372, 236, 56, 57, 236, 395,
|
|
/* 810 */ 201, 78, 203, 389, 413, 413, 415, 8, 9, 405,
|
|
/* 820 */ 389, 12, 13, 14, 15, 16, 357, 23, 369, 370,
|
|
/* 830 */ 398, 482, 483, 484, 22, 486, 487, 104, 117, 370,
|
|
/* 840 */ 107, 372, 233, 399, 357, 413, 138, 415, 389, 37,
|
|
/* 850 */ 142, 47, 48, 374, 375, 454, 357, 37, 457, 457,
|
|
/* 860 */ 458, 460, 461, 462, 463, 464, 465, 398, 467, 467,
|
|
/* 870 */ 369, 370, 256, 472, 258, 474, 143, 144, 378, 478,
|
|
/* 880 */ 479, 272, 413, 398, 415, 202, 454, 204, 182, 457,
|
|
/* 890 */ 389, 406, 460, 461, 462, 463, 464, 465, 78, 467,
|
|
/* 900 */ 413, 416, 0, 108, 472, 405, 474, 182, 369, 370,
|
|
/* 910 */ 478, 479, 413, 180, 181, 190, 104, 234, 235, 211,
|
|
/* 920 */ 187, 188, 214, 454, 22, 217, 457, 219, 389, 460,
|
|
/* 930 */ 461, 462, 463, 464, 465, 202, 467, 204, 0, 369,
|
|
/* 940 */ 370, 472, 236, 474, 398, 369, 370, 478, 479, 357,
|
|
/* 950 */ 8, 9, 406, 357, 12, 13, 14, 15, 16, 389,
|
|
/* 960 */ 20, 471, 416, 473, 194, 389, 370, 234, 235, 236,
|
|
/* 970 */ 42, 238, 239, 240, 241, 242, 243, 244, 245, 246,
|
|
/* 980 */ 247, 248, 249, 250, 251, 252, 253, 254, 255, 12,
|
|
/* 990 */ 13, 357, 0, 0, 398, 369, 370, 20, 471, 22,
|
|
/* 1000 */ 473, 374, 375, 486, 370, 413, 489, 383, 384, 413,
|
|
/* 1010 */ 398, 415, 35, 21, 37, 389, 24, 25, 26, 27,
|
|
/* 1020 */ 28, 29, 30, 31, 32, 508, 22, 398, 416, 512,
|
|
/* 1030 */ 513, 51, 398, 0, 357, 406, 357, 357, 383, 384,
|
|
/* 1040 */ 60, 37, 65, 63, 64, 416, 357, 413, 3, 415,
|
|
/* 1050 */ 454, 357, 459, 457, 390, 78, 460, 461, 462, 463,
|
|
/* 1060 */ 464, 465, 398, 467, 179, 369, 370, 357, 472, 299,
|
|
/* 1070 */ 474, 360, 361, 409, 478, 479, 270, 271, 485, 398,
|
|
/* 1080 */ 20, 104, 78, 486, 107, 389, 489, 357, 454, 408,
|
|
/* 1090 */ 413, 457, 413, 413, 460, 461, 462, 463, 464, 465,
|
|
/* 1100 */ 370, 467, 413, 357, 507, 508, 472, 413, 474, 512,
|
|
/* 1110 */ 513, 357, 478, 479, 470, 486, 20, 473, 489, 0,
|
|
/* 1120 */ 143, 144, 182, 413, 182, 386, 369, 370, 398, 136,
|
|
/* 1130 */ 137, 138, 139, 140, 141, 142, 507, 508, 398, 34,
|
|
/* 1140 */ 401, 512, 513, 413, 259, 415, 389, 357, 369, 370,
|
|
/* 1150 */ 33, 357, 413, 394, 269, 0, 416, 180, 181, 413,
|
|
/* 1160 */ 370, 42, 369, 370, 187, 188, 228, 413, 389, 136,
|
|
/* 1170 */ 137, 138, 139, 140, 141, 142, 236, 22, 0, 202,
|
|
/* 1180 */ 357, 204, 389, 117, 454, 33, 357, 457, 398, 357,
|
|
/* 1190 */ 460, 461, 462, 463, 464, 465, 457, 467, 410, 271,
|
|
/* 1200 */ 22, 413, 472, 413, 474, 415, 467, 413, 478, 479,
|
|
/* 1210 */ 451, 234, 235, 236, 357, 238, 239, 240, 241, 242,
|
|
/* 1220 */ 243, 244, 245, 246, 247, 248, 249, 250, 251, 252,
|
|
/* 1230 */ 253, 254, 255, 12, 13, 169, 413, 33, 357, 436,
|
|
/* 1240 */ 180, 20, 413, 22, 454, 413, 4, 457, 357, 45,
|
|
/* 1250 */ 460, 461, 462, 463, 464, 465, 35, 467, 37, 369,
|
|
/* 1260 */ 370, 19, 369, 370, 474, 369, 370, 33, 478, 479,
|
|
/* 1270 */ 413, 410, 459, 410, 413, 0, 413, 35, 357, 389,
|
|
/* 1280 */ 391, 110, 389, 394, 113, 389, 65, 110, 33, 486,
|
|
/* 1290 */ 113, 370, 489, 51, 413, 33, 236, 13, 485, 78,
|
|
/* 1300 */ 58, 59, 136, 13, 413, 65, 140, 65, 33, 110,
|
|
/* 1310 */ 507, 508, 113, 0, 71, 512, 513, 110, 18, 398,
|
|
/* 1320 */ 113, 37, 218, 23, 220, 104, 399, 37, 107, 33,
|
|
/* 1330 */ 33, 33, 236, 357, 413, 22, 415, 143, 144, 294,
|
|
/* 1340 */ 40, 41, 108, 436, 44, 399, 370, 33, 106, 109,
|
|
/* 1350 */ 399, 109, 49, 107, 54, 37, 33, 33, 1, 2,
|
|
/* 1360 */ 399, 399, 116, 108, 143, 144, 66, 67, 68, 69,
|
|
/* 1370 */ 108, 33, 33, 33, 398, 454, 33, 33, 457, 442,
|
|
/* 1380 */ 404, 460, 461, 462, 463, 464, 465, 37, 467, 413,
|
|
/* 1390 */ 387, 415, 358, 486, 426, 474, 489, 13, 516, 478,
|
|
/* 1400 */ 479, 180, 181, 33, 108, 108, 108, 107, 187, 188,
|
|
/* 1410 */ 107, 33, 33, 296, 507, 508, 505, 498, 33, 512,
|
|
/* 1420 */ 513, 37, 108, 202, 373, 204, 398, 369, 370, 13,
|
|
/* 1430 */ 454, 108, 108, 457, 33, 386, 460, 461, 462, 463,
|
|
/* 1440 */ 464, 465, 33, 467, 37, 145, 108, 108, 108, 0,
|
|
/* 1450 */ 298, 108, 108, 37, 386, 234, 235, 236, 426, 238,
|
|
/* 1460 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
/* 1470 */ 249, 250, 251, 252, 253, 254, 255, 234, 108, 357,
|
|
/* 1480 */ 368, 12, 13, 426, 373, 78, 108, 108, 504, 504,
|
|
/* 1490 */ 504, 22, 370, 108, 194, 195, 196, 435, 504, 199,
|
|
/* 1500 */ 426, 52, 370, 412, 35, 357, 37, 443, 426, 108,
|
|
/* 1510 */ 426, 488, 212, 213, 509, 480, 491, 108, 370, 388,
|
|
/* 1520 */ 398, 51, 204, 223, 275, 437, 226, 456, 42, 229,
|
|
/* 1530 */ 230, 231, 232, 233, 65, 413, 455, 415, 20, 357,
|
|
/* 1540 */ 482, 483, 484, 448, 486, 487, 398, 78, 217, 448,
|
|
/* 1550 */ 453, 378, 370, 378, 204, 200, 369, 439, 20, 20,
|
|
/* 1560 */ 370, 413, 357, 415, 45, 422, 370, 422, 179, 419,
|
|
/* 1570 */ 369, 369, 272, 104, 382, 370, 454, 419, 370, 457,
|
|
/* 1580 */ 398, 422, 460, 461, 462, 463, 464, 465, 419, 467,
|
|
/* 1590 */ 105, 419, 103, 381, 369, 413, 474, 415, 102, 380,
|
|
/* 1600 */ 478, 479, 454, 398, 369, 457, 369, 369, 460, 461,
|
|
/* 1610 */ 462, 463, 464, 465, 466, 467, 468, 469, 413, 20,
|
|
/* 1620 */ 415, 362, 50, 366, 366, 362, 378, 448, 378, 436,
|
|
/* 1630 */ 20, 415, 378, 20, 20, 371, 454, 371, 438, 457,
|
|
/* 1640 */ 20, 362, 460, 461, 462, 463, 464, 465, 378, 467,
|
|
/* 1650 */ 378, 429, 378, 221, 378, 369, 378, 413, 398, 454,
|
|
/* 1660 */ 436, 360, 457, 398, 369, 460, 461, 462, 463, 464,
|
|
/* 1670 */ 465, 202, 467, 204, 362, 398, 360, 107, 398, 486,
|
|
/* 1680 */ 398, 398, 489, 357, 502, 503, 398, 398, 452, 398,
|
|
/* 1690 */ 398, 398, 20, 376, 413, 450, 370, 445, 413, 357,
|
|
/* 1700 */ 507, 508, 208, 234, 235, 512, 513, 207, 503, 448,
|
|
/* 1710 */ 486, 376, 370, 489, 447, 444, 369, 248, 249, 250,
|
|
/* 1720 */ 251, 252, 253, 254, 398, 415, 283, 497, 413, 282,
|
|
/* 1730 */ 431, 507, 508, 431, 193, 291, 512, 513, 497, 413,
|
|
/* 1740 */ 398, 415, 437, 293, 292, 437, 300, 500, 276, 496,
|
|
/* 1750 */ 499, 297, 271, 497, 295, 413, 517, 415, 370, 357,
|
|
/* 1760 */ 20, 117, 371, 495, 273, 459, 376, 494, 376, 413,
|
|
/* 1770 */ 185, 413, 370, 413, 413, 413, 431, 431, 427, 510,
|
|
/* 1780 */ 454, 357, 376, 457, 490, 370, 460, 461, 462, 463,
|
|
/* 1790 */ 464, 465, 394, 467, 370, 357, 454, 376, 511, 457,
|
|
/* 1800 */ 398, 492, 460, 461, 462, 463, 464, 465, 370, 467,
|
|
/* 1810 */ 107, 477, 413, 107, 357, 413, 474, 415, 376, 22,
|
|
/* 1820 */ 403, 479, 398, 359, 369, 38, 363, 370, 404, 362,
|
|
/* 1830 */ 449, 392, 432, 440, 400, 432, 398, 413, 377, 415,
|
|
/* 1840 */ 514, 515, 355, 392, 0, 392, 0, 0, 45, 0,
|
|
/* 1850 */ 37, 413, 227, 415, 227, 398, 454, 37, 37, 457,
|
|
/* 1860 */ 37, 404, 460, 461, 462, 463, 464, 465, 0, 467,
|
|
/* 1870 */ 413, 37, 415, 37, 227, 37, 0, 227, 454, 0,
|
|
/* 1880 */ 37, 457, 0, 0, 460, 461, 462, 463, 464, 465,
|
|
/* 1890 */ 37, 467, 454, 357, 22, 457, 0, 37, 460, 461,
|
|
/* 1900 */ 462, 463, 464, 465, 222, 467, 370, 0, 506, 210,
|
|
/* 1910 */ 0, 454, 210, 204, 457, 211, 202, 460, 461, 462,
|
|
/* 1920 */ 463, 464, 465, 1, 467, 0, 0, 0, 198, 197,
|
|
/* 1930 */ 357, 0, 0, 148, 398, 49, 49, 0, 37, 35,
|
|
/* 1940 */ 0, 19, 0, 370, 51, 37, 0, 49, 0, 413,
|
|
/* 1950 */ 45, 415, 0, 515, 0, 51, 0, 35, 49, 0,
|
|
/* 1960 */ 0, 357, 0, 0, 60, 61, 62, 63, 49, 65,
|
|
/* 1970 */ 0, 398, 0, 51, 370, 165, 37, 404, 0, 165,
|
|
/* 1980 */ 0, 0, 60, 61, 62, 63, 413, 65, 415, 0,
|
|
/* 1990 */ 454, 0, 0, 457, 0, 0, 460, 461, 462, 463,
|
|
/* 2000 */ 464, 465, 398, 467, 0, 469, 0, 0, 404, 0,
|
|
/* 2010 */ 106, 0, 0, 109, 0, 0, 0, 413, 0, 415,
|
|
/* 2020 */ 0, 0, 0, 0, 45, 0, 0, 454, 106, 0,
|
|
/* 2030 */ 457, 109, 0, 460, 461, 462, 463, 464, 465, 22,
|
|
/* 2040 */ 467, 357, 0, 0, 0, 148, 0, 147, 0, 146,
|
|
/* 2050 */ 0, 0, 22, 50, 370, 22, 0, 0, 454, 0,
|
|
/* 2060 */ 50, 457, 357, 141, 460, 461, 462, 463, 464, 465,
|
|
/* 2070 */ 65, 467, 37, 65, 0, 370, 0, 37, 357, 175,
|
|
/* 2080 */ 42, 0, 398, 42, 65, 51, 37, 51, 184, 185,
|
|
/* 2090 */ 0, 370, 37, 0, 42, 191, 192, 413, 357, 415,
|
|
/* 2100 */ 37, 0, 33, 398, 51, 45, 184, 42, 14, 0,
|
|
/* 2110 */ 49, 370, 42, 191, 210, 49, 49, 0, 413, 398,
|
|
/* 2120 */ 415, 43, 0, 0, 0, 42, 193, 0, 49, 0,
|
|
/* 2130 */ 0, 0, 210, 0, 413, 37, 415, 51, 454, 398,
|
|
/* 2140 */ 72, 457, 42, 0, 460, 461, 462, 463, 464, 465,
|
|
/* 2150 */ 37, 467, 42, 51, 413, 0, 415, 37, 357, 454,
|
|
/* 2160 */ 42, 0, 457, 51, 0, 460, 461, 462, 463, 464,
|
|
/* 2170 */ 465, 370, 467, 37, 357, 454, 51, 0, 457, 42,
|
|
/* 2180 */ 0, 460, 461, 462, 463, 464, 465, 370, 467, 0,
|
|
/* 2190 */ 0, 0, 115, 113, 357, 454, 37, 22, 457, 398,
|
|
/* 2200 */ 0, 460, 461, 462, 463, 464, 465, 370, 467, 37,
|
|
/* 2210 */ 37, 37, 33, 37, 413, 398, 415, 0, 37, 37,
|
|
/* 2220 */ 37, 37, 37, 37, 22, 33, 22, 0, 22, 0,
|
|
/* 2230 */ 413, 37, 415, 22, 0, 398, 22, 0, 37, 0,
|
|
/* 2240 */ 53, 0, 37, 0, 37, 0, 22, 357, 20, 37,
|
|
/* 2250 */ 413, 107, 415, 37, 108, 454, 37, 0, 457, 107,
|
|
/* 2260 */ 370, 460, 461, 462, 463, 464, 465, 182, 467, 49,
|
|
/* 2270 */ 0, 454, 357, 182, 457, 37, 22, 460, 461, 462,
|
|
/* 2280 */ 463, 464, 465, 0, 467, 370, 22, 205, 398, 182,
|
|
/* 2290 */ 185, 454, 0, 209, 457, 0, 182, 460, 461, 462,
|
|
/* 2300 */ 463, 464, 465, 413, 467, 415, 3, 357, 182, 33,
|
|
/* 2310 */ 189, 108, 37, 398, 277, 107, 107, 189, 108, 37,
|
|
/* 2320 */ 370, 50, 50, 105, 103, 357, 33, 33, 413, 107,
|
|
/* 2330 */ 415, 108, 33, 108, 108, 49, 49, 107, 370, 107,
|
|
/* 2340 */ 107, 33, 107, 357, 454, 3, 33, 457, 398, 277,
|
|
/* 2350 */ 460, 461, 462, 463, 464, 465, 370, 467, 108, 108,
|
|
/* 2360 */ 37, 37, 37, 413, 277, 415, 398, 37, 37, 454,
|
|
/* 2370 */ 37, 108, 457, 108, 270, 460, 461, 462, 463, 464,
|
|
/* 2380 */ 465, 413, 467, 415, 398, 49, 33, 49, 0, 0,
|
|
/* 2390 */ 42, 107, 107, 0, 42, 107, 357, 108, 108, 413,
|
|
/* 2400 */ 49, 415, 33, 107, 454, 107, 257, 457, 107, 370,
|
|
/* 2410 */ 460, 461, 462, 463, 464, 465, 116, 467, 2, 105,
|
|
/* 2420 */ 184, 357, 454, 105, 22, 457, 186, 234, 460, 461,
|
|
/* 2430 */ 462, 463, 464, 465, 370, 467, 108, 398, 117, 107,
|
|
/* 2440 */ 454, 107, 107, 457, 49, 108, 460, 461, 462, 463,
|
|
/* 2450 */ 464, 465, 413, 467, 415, 108, 357, 107, 49, 22,
|
|
/* 2460 */ 22, 107, 398, 108, 107, 22, 22, 108, 37, 370,
|
|
/* 2470 */ 37, 107, 37, 108, 107, 107, 357, 413, 108, 415,
|
|
/* 2480 */ 108, 237, 37, 37, 107, 37, 108, 107, 37, 370,
|
|
/* 2490 */ 108, 107, 357, 454, 128, 33, 457, 398, 107, 460,
|
|
/* 2500 */ 461, 462, 463, 464, 465, 370, 467, 128, 107, 128,
|
|
/* 2510 */ 37, 128, 413, 107, 415, 22, 37, 398, 454, 72,
|
|
/* 2520 */ 71, 457, 37, 37, 460, 461, 462, 463, 464, 465,
|
|
/* 2530 */ 78, 467, 413, 398, 415, 37, 37, 37, 37, 37,
|
|
/* 2540 */ 37, 101, 78, 101, 33, 37, 37, 37, 413, 22,
|
|
/* 2550 */ 415, 37, 357, 454, 37, 37, 457, 37, 78, 460,
|
|
/* 2560 */ 461, 462, 463, 464, 465, 370, 467, 37, 37, 37,
|
|
/* 2570 */ 37, 22, 357, 454, 37, 0, 457, 37, 0, 460,
|
|
/* 2580 */ 461, 462, 463, 464, 465, 370, 467, 51, 357, 454,
|
|
/* 2590 */ 42, 37, 457, 398, 51, 460, 461, 462, 463, 464,
|
|
/* 2600 */ 465, 370, 467, 42, 0, 37, 51, 42, 413, 0,
|
|
/* 2610 */ 415, 37, 42, 398, 51, 0, 37, 37, 0, 22,
|
|
/* 2620 */ 33, 22, 21, 518, 22, 22, 21, 20, 413, 398,
|
|
/* 2630 */ 415, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2640 */ 518, 518, 518, 518, 413, 518, 415, 518, 518, 454,
|
|
/* 2650 */ 518, 518, 457, 518, 518, 460, 461, 462, 463, 464,
|
|
/* 2660 */ 465, 357, 467, 518, 518, 518, 518, 518, 518, 454,
|
|
/* 2670 */ 518, 518, 457, 518, 370, 460, 461, 462, 463, 464,
|
|
/* 2680 */ 465, 518, 467, 518, 518, 454, 357, 518, 457, 518,
|
|
/* 2690 */ 518, 460, 461, 462, 463, 464, 465, 518, 467, 370,
|
|
/* 2700 */ 518, 518, 398, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2710 */ 518, 518, 518, 518, 518, 518, 518, 413, 518, 415,
|
|
/* 2720 */ 518, 518, 518, 518, 518, 518, 518, 398, 518, 518,
|
|
/* 2730 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2740 */ 518, 518, 413, 518, 415, 518, 518, 518, 518, 518,
|
|
/* 2750 */ 518, 518, 518, 518, 518, 518, 518, 518, 454, 518,
|
|
/* 2760 */ 518, 457, 518, 518, 460, 461, 462, 463, 464, 465,
|
|
/* 2770 */ 518, 467, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2780 */ 518, 518, 518, 454, 518, 518, 457, 518, 518, 460,
|
|
/* 2790 */ 461, 462, 463, 464, 465, 518, 467, 518, 518, 518,
|
|
/* 2800 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2810 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2820 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2830 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2840 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2850 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2860 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2870 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2880 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2890 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2900 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2910 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2920 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2930 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2940 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2950 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2960 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2970 */ 518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
|
|
/* 2980 */ 518, 518, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 2990 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3000 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3010 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3020 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3030 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3040 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3050 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3060 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3070 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3080 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3090 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3100 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3110 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3120 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3130 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3140 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
/* 3150 */ 354,
|
|
};
|
|
#define YY_SHIFT_COUNT (859)
|
|
#define YY_SHIFT_MIN (0)
|
|
#define YY_SHIFT_MAX (2618)
|
|
static const unsigned short int yy_shift_ofst[] = {
|
|
/* 0 */ 1300, 0, 244, 0, 489, 489, 489, 489, 489, 489,
|
|
/* 10 */ 489, 489, 489, 489, 489, 489, 733, 977, 977, 1221,
|
|
/* 20 */ 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
|
|
/* 30 */ 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
|
|
/* 40 */ 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
|
|
/* 50 */ 977, 332, 505, 609, 213, 61, 370, 61, 61, 213,
|
|
/* 60 */ 213, 61, 1469, 61, 243, 1469, 1469, 343, 61, 18,
|
|
/* 70 */ 240, 165, 165, 175, 175, 240, 242, 133, 94, 94,
|
|
/* 80 */ 118, 165, 165, 165, 165, 165, 165, 165, 165, 165,
|
|
/* 90 */ 165, 165, 306, 413, 165, 165, 443, 18, 165, 306,
|
|
/* 100 */ 165, 18, 165, 165, 18, 165, 165, 18, 165, 18,
|
|
/* 110 */ 18, 18, 165, 524, 203, 203, 416, 361, 544, 683,
|
|
/* 120 */ 683, 683, 683, 683, 683, 683, 683, 683, 683, 683,
|
|
/* 130 */ 683, 683, 683, 683, 683, 683, 683, 683, 63, 409,
|
|
/* 140 */ 242, 133, 750, 750, 820, 28, 28, 28, 643, 616,
|
|
/* 150 */ 616, 300, 820, 443, 488, 18, 18, 410, 18, 18,
|
|
/* 160 */ 606, 18, 606, 606, 721, 1105, 416, 416, 416, 416,
|
|
/* 170 */ 416, 416, 416, 416, 1922, 555, 992, 572, 770, 422,
|
|
/* 180 */ 195, 134, 437, 569, 188, 188, 706, 804, 940, 1004,
|
|
/* 190 */ 1004, 1004, 725, 1004, 1060, 599, 536, 602, 1166, 210,
|
|
/* 200 */ 536, 536, 1096, 806, 928, 1045, 806, 715, 30, 300,
|
|
/* 210 */ 1249, 1470, 1486, 1518, 1331, 443, 1518, 443, 1355, 1538,
|
|
/* 220 */ 1539, 1519, 1539, 1519, 1389, 1538, 1539, 1538, 1519, 1389,
|
|
/* 230 */ 1389, 1389, 1485, 1489, 1538, 1496, 1538, 1538, 1538, 1599,
|
|
/* 240 */ 1572, 1599, 1572, 1518, 443, 443, 1610, 443, 1613, 1614,
|
|
/* 250 */ 443, 1613, 443, 1620, 443, 443, 1538, 443, 1599, 18,
|
|
/* 260 */ 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
|
|
/* 270 */ 1538, 1105, 1105, 1599, 606, 606, 606, 1432, 1570, 1518,
|
|
/* 280 */ 524, 1672, 1494, 1500, 1610, 524, 1249, 1538, 606, 1443,
|
|
/* 290 */ 1447, 1443, 1447, 1444, 1541, 1443, 1450, 1452, 1472, 1249,
|
|
/* 300 */ 1446, 1454, 1459, 1481, 1539, 1740, 1644, 1491, 1613, 524,
|
|
/* 310 */ 524, 1447, 606, 606, 606, 606, 1447, 606, 1585, 524,
|
|
/* 320 */ 721, 524, 1539, 1703, 1706, 606, 1538, 524, 1797, 1787,
|
|
/* 330 */ 1599, 2797, 2797, 2797, 2797, 2797, 2797, 2797, 2797, 2797,
|
|
/* 340 */ 2797, 36, 1904, 259, 1242, 54, 76, 649, 993, 15,
|
|
/* 350 */ 31, 942, 1033, 809, 809, 809, 809, 809, 809, 809,
|
|
/* 360 */ 809, 809, 391, 708, 483, 81, 81, 145, 163, 510,
|
|
/* 370 */ 428, 980, 197, 577, 812, 399, 14, 653, 653, 548,
|
|
/* 380 */ 795, 885, 548, 548, 548, 399, 292, 938, 159, 1119,
|
|
/* 390 */ 1204, 1066, 1275, 1171, 1177, 1199, 1207, 1284, 1290, 902,
|
|
/* 400 */ 1155, 1178, 1313, 1104, 1234, 1255, 1240, 1262, 1296, 1297,
|
|
/* 410 */ 1298, 1194, 1117, 1152, 1314, 1323, 1324, 1338, 1339, 1340,
|
|
/* 420 */ 1357, 1343, 1243, 1344, 1303, 1370, 1378, 1379, 1385, 1401,
|
|
/* 430 */ 1409, 1246, 1318, 1350, 1384, 1416, 1407, 1449, 1844, 1846,
|
|
/* 440 */ 1847, 1803, 1849, 1813, 1625, 1820, 1821, 1823, 1627, 1868,
|
|
/* 450 */ 1834, 1836, 1647, 1838, 1876, 1650, 1879, 1843, 1882, 1853,
|
|
/* 460 */ 1883, 1872, 1896, 1860, 1682, 1907, 1699, 1910, 1702, 1704,
|
|
/* 470 */ 1709, 1714, 1925, 1926, 1927, 1730, 1732, 1931, 1932, 1785,
|
|
/* 480 */ 1886, 1887, 1937, 1901, 1940, 1942, 1908, 1893, 1946, 1898,
|
|
/* 490 */ 1948, 1905, 1952, 1954, 1956, 1909, 1959, 1960, 1962, 1963,
|
|
/* 500 */ 1970, 1972, 1810, 1939, 1978, 1814, 1980, 1981, 1989, 1991,
|
|
/* 510 */ 1992, 1994, 1995, 2004, 2006, 2007, 2009, 2011, 2012, 2014,
|
|
/* 520 */ 2015, 2016, 2018, 2020, 2021, 1919, 2022, 1979, 2023, 2025,
|
|
/* 530 */ 2026, 2029, 2032, 2042, 2043, 2017, 2044, 1897, 2046, 1900,
|
|
/* 540 */ 2048, 1903, 2050, 2051, 2030, 2003, 2033, 2010, 2056, 2005,
|
|
/* 550 */ 2035, 2057, 2008, 2059, 2019, 2074, 2076, 2040, 2034, 2038,
|
|
/* 560 */ 2081, 2049, 2036, 2041, 2090, 2055, 2053, 2052, 2093, 2063,
|
|
/* 570 */ 2101, 2060, 2065, 2069, 2061, 2066, 2094, 2067, 2109, 2078,
|
|
/* 580 */ 2070, 2117, 2122, 2123, 2124, 2083, 1933, 2127, 2061, 2079,
|
|
/* 590 */ 2129, 2130, 2068, 2131, 2133, 2098, 2086, 2100, 2143, 2113,
|
|
/* 600 */ 2102, 2110, 2155, 2120, 2112, 2118, 2161, 2136, 2125, 2137,
|
|
/* 610 */ 2164, 2177, 2180, 2189, 2190, 2191, 2077, 2080, 2159, 2175,
|
|
/* 620 */ 2200, 2172, 2173, 2174, 2176, 2181, 2182, 2183, 2184, 2179,
|
|
/* 630 */ 2192, 2185, 2186, 2202, 2194, 2217, 2204, 2227, 2206, 2229,
|
|
/* 640 */ 2211, 2187, 2234, 2214, 2201, 2237, 2239, 2241, 2205, 2243,
|
|
/* 650 */ 2207, 2245, 2224, 2228, 2212, 2216, 2219, 2146, 2144, 2257,
|
|
/* 660 */ 2085, 2152, 2084, 2061, 2220, 2270, 2091, 2238, 2254, 2283,
|
|
/* 670 */ 2082, 2264, 2107, 2105, 2292, 2295, 2114, 2121, 2126, 2128,
|
|
/* 680 */ 2303, 2276, 2037, 2208, 2203, 2209, 2210, 2275, 2282, 2222,
|
|
/* 690 */ 2271, 2218, 2272, 2221, 2223, 2293, 2294, 2225, 2230, 2232,
|
|
/* 700 */ 2233, 2226, 2299, 2286, 2287, 2235, 2308, 2072, 2250, 2251,
|
|
/* 710 */ 2342, 2313, 2087, 2323, 2324, 2325, 2330, 2331, 2333, 2263,
|
|
/* 720 */ 2265, 2336, 2104, 2353, 2338, 2388, 2389, 2284, 2348, 2285,
|
|
/* 730 */ 2289, 2290, 2288, 2296, 2240, 2298, 2393, 2352, 2236, 2301,
|
|
/* 740 */ 2300, 2061, 2351, 2369, 2314, 2149, 2318, 2416, 2402, 2193,
|
|
/* 750 */ 2332, 2328, 2334, 2337, 2335, 2347, 2395, 2350, 2354, 2409,
|
|
/* 760 */ 2355, 2437, 2244, 2357, 2321, 2438, 2443, 2444, 2359, 2431,
|
|
/* 770 */ 2433, 2364, 2365, 2435, 2367, 2370, 2445, 2368, 2372, 2446,
|
|
/* 780 */ 2377, 2378, 2448, 2380, 2382, 2451, 2384, 2366, 2379, 2381,
|
|
/* 790 */ 2383, 2391, 2462, 2401, 2473, 2406, 2462, 2462, 2493, 2447,
|
|
/* 800 */ 2449, 2479, 2485, 2486, 2498, 2499, 2500, 2501, 2502, 2503,
|
|
/* 810 */ 2452, 2440, 2464, 2442, 2511, 2508, 2509, 2510, 2527, 2514,
|
|
/* 820 */ 2517, 2518, 2480, 2179, 2520, 2192, 2530, 2531, 2532, 2533,
|
|
/* 830 */ 2549, 2537, 2575, 2540, 2536, 2548, 2578, 2554, 2543, 2561,
|
|
/* 840 */ 2604, 2568, 2555, 2565, 2609, 2574, 2563, 2570, 2615, 2579,
|
|
/* 850 */ 2580, 2618, 2597, 2587, 2599, 2601, 2602, 2603, 2605, 2607,
|
|
};
|
|
#define YY_REDUCE_COUNT (340)
|
|
#define YY_REDUCE_MIN (-432)
|
|
#define YY_REDUCE_MAX (2329)
|
|
static const short yy_reduce_ofst[] = {
|
|
/* 0 */ -281, -315, -133, -99, 146, 225, 302, 401, 432, 469,
|
|
/* 10 */ 596, 634, 730, 790, 921, 1122, 1148, 1182, 1326, 1342,
|
|
/* 20 */ 1205, 976, 1424, 1402, 1438, 1457, 1536, 1573, 1604, 1684,
|
|
/* 30 */ 1705, 1721, 1741, 1801, 1817, 1837, 1890, 1915, 1950, 1968,
|
|
/* 40 */ 1986, 2039, 2064, 2099, 2119, 2135, 2195, 2215, 2231, 2304,
|
|
/* 50 */ 2329, -317, 629, -432, -176, -136, 803, 907, 1193, 349,
|
|
/* 60 */ 1058, 1224, 402, 597, -211, -27, 739, -407, 517, -357,
|
|
/* 70 */ -415, -364, 48, -227, 92, -98, -130, -404, -46, 143,
|
|
/* 80 */ -95, -368, 209, 325, 424, 136, 257, 431, 459, 501,
|
|
/* 90 */ 539, 275, -149, -25, 570, 576, 414, -390, 626, 221,
|
|
/* 100 */ 696, -342, 757, 779, 241, 793, 890, 485, 893, -225,
|
|
/* 110 */ 546, 664, 896, -316, 77, 77, 322, 179, 295, 32,
|
|
/* 120 */ 487, 499, 592, 677, 679, 680, 689, 694, 710, 746,
|
|
/* 130 */ 754, 794, 823, 829, 832, 857, 881, 891, -236, 22,
|
|
/* 140 */ -326, 287, 479, 627, 624, 22, 593, 813, 258, 490,
|
|
/* 150 */ 527, -327, 655, 500, 759, 282, 612, 644, 40, 681,
|
|
/* 160 */ 788, 740, 861, 863, 889, 711, -396, 444, 927, 946,
|
|
/* 170 */ 951, 961, 962, 946, 937, 1003, 1034, 968, 882, 911,
|
|
/* 180 */ 919, 1051, 1028, 1028, 1049, 1068, 1032, 1112, 1057, 984,
|
|
/* 190 */ 985, 986, 1062, 994, 1028, 1111, 1074, 1132, 1091, 1064,
|
|
/* 200 */ 1082, 1084, 1028, 1023, 1023, 1005, 1023, 1035, 1025, 1131,
|
|
/* 210 */ 1088, 1071, 1081, 1095, 1097, 1173, 1101, 1175, 1118, 1187,
|
|
/* 220 */ 1190, 1143, 1196, 1145, 1150, 1201, 1208, 1202, 1159, 1158,
|
|
/* 230 */ 1169, 1172, 1192, 1212, 1225, 1219, 1235, 1237, 1238, 1259,
|
|
/* 240 */ 1257, 1263, 1258, 1179, 1248, 1250, 1216, 1254, 1264, 1200,
|
|
/* 250 */ 1270, 1266, 1272, 1222, 1274, 1276, 1286, 1278, 1279, 1260,
|
|
/* 260 */ 1265, 1277, 1280, 1282, 1283, 1288, 1289, 1291, 1292, 1293,
|
|
/* 270 */ 1295, 1301, 1316, 1312, 1244, 1281, 1285, 1236, 1245, 1261,
|
|
/* 280 */ 1317, 1267, 1252, 1271, 1310, 1335, 1305, 1347, 1315, 1230,
|
|
/* 290 */ 1299, 1241, 1302, 1247, 1251, 1256, 1253, 1268, 1273, 1308,
|
|
/* 300 */ 1239, 1287, 1269, 1023, 1388, 1306, 1309, 1294, 1391, 1390,
|
|
/* 310 */ 1392, 1345, 1356, 1358, 1360, 1361, 1346, 1362, 1351, 1406,
|
|
/* 320 */ 1398, 1421, 1415, 1334, 1417, 1399, 1455, 1442, 1464, 1463,
|
|
/* 330 */ 1467, 1393, 1381, 1400, 1403, 1439, 1451, 1434, 1453, 1461,
|
|
/* 340 */ 1487,
|
|
};
|
|
static const YYACTIONTYPE yy_default[] = {
|
|
/* 0 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 10 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 20 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 30 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 40 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 50 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 60 */ 1926, 2270, 1926, 1926, 2233, 1926, 1926, 1926, 1926, 1926,
|
|
/* 70 */ 1926, 1926, 1926, 1926, 1926, 1926, 2240, 1926, 1926, 1926,
|
|
/* 80 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 90 */ 1926, 1926, 1926, 1926, 1926, 1926, 2025, 1926, 1926, 1926,
|
|
/* 100 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 110 */ 1926, 1926, 1926, 2023, 2473, 1926, 2582, 1926, 1926, 1926,
|
|
/* 120 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 130 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 2485,
|
|
/* 140 */ 1926, 1926, 1997, 1997, 1926, 2485, 2485, 2485, 2023, 2445,
|
|
/* 150 */ 2445, 1926, 1926, 2025, 2308, 1926, 1926, 1926, 1926, 1926,
|
|
/* 160 */ 1926, 1926, 1926, 1926, 2152, 1956, 1926, 1926, 1926, 2176,
|
|
/* 170 */ 1926, 1926, 1926, 1926, 2296, 1926, 1926, 2514, 2576, 1926,
|
|
/* 180 */ 2517, 1926, 1926, 1926, 1926, 1926, 2245, 1926, 2504, 1926,
|
|
/* 190 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 2101, 2290,
|
|
/* 200 */ 1926, 1926, 1926, 2477, 2491, 2560, 2478, 2475, 2498, 1926,
|
|
/* 210 */ 2508, 1926, 2333, 1926, 2322, 2025, 1926, 2025, 2283, 2228,
|
|
/* 220 */ 1926, 2238, 1926, 2238, 2235, 1926, 1926, 1926, 2238, 2235,
|
|
/* 230 */ 2235, 2235, 2090, 2086, 1926, 2084, 1926, 1926, 1926, 1926,
|
|
/* 240 */ 1981, 1926, 1981, 1926, 2025, 2025, 1926, 2025, 1926, 1926,
|
|
/* 250 */ 2025, 1926, 2025, 1926, 2025, 2025, 1926, 2025, 1926, 1926,
|
|
/* 260 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 270 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 2320, 2306, 1926,
|
|
/* 280 */ 2023, 1926, 2294, 2292, 1926, 2023, 2508, 1926, 1926, 2530,
|
|
/* 290 */ 2525, 2530, 2525, 2544, 2540, 2530, 2549, 2546, 2510, 2508,
|
|
/* 300 */ 2579, 2566, 2562, 2491, 1926, 1926, 2496, 2494, 1926, 2023,
|
|
/* 310 */ 2023, 2525, 1926, 1926, 1926, 1926, 2525, 1926, 1926, 2023,
|
|
/* 320 */ 1926, 2023, 1926, 1926, 2118, 1926, 1926, 2023, 1926, 1965,
|
|
/* 330 */ 1926, 2285, 2311, 2266, 2266, 2155, 2155, 2582, 2155, 2026,
|
|
/* 340 */ 1931, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 350 */ 1926, 1926, 1926, 2543, 2542, 2398, 1926, 2449, 2448, 2447,
|
|
/* 360 */ 2438, 2397, 2114, 1926, 1926, 2396, 2395, 1926, 1926, 1926,
|
|
/* 370 */ 1926, 1926, 1926, 1926, 1926, 2105, 1926, 2257, 2256, 2389,
|
|
/* 380 */ 1926, 1926, 2390, 2388, 2387, 2127, 1926, 1926, 1926, 1926,
|
|
/* 390 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 400 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 410 */ 1926, 1926, 2563, 2567, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 420 */ 2474, 1926, 1926, 1926, 2369, 1926, 1926, 1926, 1926, 1926,
|
|
/* 430 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 440 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 450 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 460 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 470 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 2234,
|
|
/* 480 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 490 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 500 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 510 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 520 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 530 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 540 */ 1926, 2249, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 550 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 560 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 570 */ 1926, 1926, 1926, 1970, 2376, 1926, 1926, 1926, 1926, 1926,
|
|
/* 580 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 2379, 1926,
|
|
/* 590 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 600 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 610 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 620 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 2065,
|
|
/* 630 */ 2064, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 640 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 650 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 2380, 1926, 1926,
|
|
/* 660 */ 1926, 1926, 1926, 2371, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 670 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 680 */ 2559, 2511, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 690 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 700 */ 1926, 1926, 1926, 1926, 2369, 1926, 2541, 1926, 1926, 2557,
|
|
/* 710 */ 1926, 2561, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 2484,
|
|
/* 720 */ 2480, 1926, 1926, 2476, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 730 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 740 */ 1926, 2368, 1926, 2435, 1926, 1926, 1926, 2469, 1926, 1926,
|
|
/* 750 */ 2420, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 760 */ 2380, 1926, 2383, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 770 */ 1926, 2149, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 780 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 2133, 2131, 2130,
|
|
/* 790 */ 2129, 1926, 2162, 1926, 1926, 1926, 2158, 2157, 1926, 1926,
|
|
/* 800 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 810 */ 1926, 1926, 1926, 1926, 2044, 1926, 1926, 1926, 1926, 1926,
|
|
/* 820 */ 1926, 1926, 1926, 2036, 1926, 2035, 1926, 1926, 1926, 1926,
|
|
/* 830 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 840 */ 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
/* 850 */ 1926, 1926, 1926, 1955, 1926, 1926, 1926, 1926, 1926, 1926,
|
|
};
|
|
/********** End of lemon-generated parsing tables *****************************/
|
|
|
|
/* The next table maps tokens (terminal symbols) into fallback tokens.
|
|
** If a construct like the following:
|
|
**
|
|
** %fallback ID X Y Z.
|
|
**
|
|
** appears in the grammar, then ID becomes a fallback token for X, Y,
|
|
** and Z. Whenever one of the tokens X, Y, or Z is input to the parser
|
|
** but it does not parse, the type of the token is changed to ID and
|
|
** the parse is retried before an error is thrown.
|
|
**
|
|
** This feature can be used, for example, to cause some keywords in a language
|
|
** to revert to identifiers if they keyword does not apply in the context where
|
|
** it appears.
|
|
*/
|
|
#ifdef YYFALLBACK
|
|
static const YYCODETYPE yyFallback[] = {
|
|
0, /* $ => nothing */
|
|
0, /* OR => nothing */
|
|
0, /* AND => nothing */
|
|
0, /* UNION => nothing */
|
|
0, /* ALL => nothing */
|
|
0, /* MINUS => nothing */
|
|
0, /* EXCEPT => nothing */
|
|
0, /* INTERSECT => nothing */
|
|
0, /* NK_BITAND => nothing */
|
|
0, /* NK_BITOR => nothing */
|
|
0, /* NK_LSHIFT => nothing */
|
|
0, /* NK_RSHIFT => nothing */
|
|
0, /* NK_PLUS => nothing */
|
|
0, /* NK_MINUS => nothing */
|
|
0, /* NK_STAR => nothing */
|
|
0, /* NK_SLASH => nothing */
|
|
0, /* NK_REM => nothing */
|
|
0, /* NK_CONCAT => nothing */
|
|
0, /* CREATE => nothing */
|
|
0, /* ACCOUNT => nothing */
|
|
0, /* NK_ID => nothing */
|
|
0, /* PASS => nothing */
|
|
0, /* NK_STRING => nothing */
|
|
0, /* ALTER => nothing */
|
|
0, /* PPS => nothing */
|
|
0, /* TSERIES => nothing */
|
|
0, /* STORAGE => nothing */
|
|
0, /* STREAMS => nothing */
|
|
0, /* QTIME => nothing */
|
|
0, /* DBS => nothing */
|
|
0, /* USERS => nothing */
|
|
0, /* CONNS => nothing */
|
|
0, /* STATE => nothing */
|
|
0, /* NK_COMMA => nothing */
|
|
0, /* HOST => nothing */
|
|
0, /* USER => nothing */
|
|
0, /* ENABLE => nothing */
|
|
0, /* NK_INTEGER => nothing */
|
|
0, /* SYSINFO => nothing */
|
|
0, /* ADD => nothing */
|
|
0, /* DROP => nothing */
|
|
0, /* GRANT => nothing */
|
|
0, /* ON => nothing */
|
|
0, /* TO => nothing */
|
|
0, /* REVOKE => nothing */
|
|
0, /* FROM => nothing */
|
|
0, /* SUBSCRIBE => nothing */
|
|
0, /* READ => nothing */
|
|
0, /* WRITE => nothing */
|
|
0, /* NK_DOT => nothing */
|
|
0, /* WITH => nothing */
|
|
0, /* DNODE => nothing */
|
|
0, /* PORT => nothing */
|
|
0, /* DNODES => nothing */
|
|
0, /* RESTORE => nothing */
|
|
0, /* NK_IPTOKEN => nothing */
|
|
0, /* FORCE => nothing */
|
|
0, /* UNSAFE => nothing */
|
|
0, /* CLUSTER => nothing */
|
|
0, /* LOCAL => nothing */
|
|
0, /* QNODE => nothing */
|
|
0, /* BNODE => nothing */
|
|
0, /* SNODE => nothing */
|
|
0, /* MNODE => nothing */
|
|
0, /* VNODE => nothing */
|
|
0, /* DATABASE => nothing */
|
|
0, /* USE => nothing */
|
|
0, /* FLUSH => nothing */
|
|
0, /* TRIM => nothing */
|
|
0, /* COMPACT => nothing */
|
|
0, /* IF => nothing */
|
|
0, /* NOT => nothing */
|
|
0, /* EXISTS => nothing */
|
|
0, /* BUFFER => nothing */
|
|
0, /* CACHEMODEL => nothing */
|
|
0, /* CACHESIZE => nothing */
|
|
0, /* COMP => nothing */
|
|
0, /* DURATION => nothing */
|
|
0, /* NK_VARIABLE => nothing */
|
|
0, /* MAXROWS => nothing */
|
|
0, /* MINROWS => nothing */
|
|
0, /* KEEP => nothing */
|
|
0, /* PAGES => nothing */
|
|
0, /* PAGESIZE => nothing */
|
|
0, /* TSDB_PAGESIZE => nothing */
|
|
0, /* PRECISION => nothing */
|
|
0, /* REPLICA => nothing */
|
|
0, /* VGROUPS => nothing */
|
|
0, /* SINGLE_STABLE => nothing */
|
|
0, /* RETENTIONS => nothing */
|
|
0, /* SCHEMALESS => nothing */
|
|
0, /* WAL_LEVEL => nothing */
|
|
0, /* WAL_FSYNC_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_PERIOD => nothing */
|
|
0, /* WAL_RETENTION_SIZE => nothing */
|
|
0, /* WAL_ROLL_PERIOD => nothing */
|
|
0, /* WAL_SEGMENT_SIZE => nothing */
|
|
0, /* STT_TRIGGER => nothing */
|
|
0, /* TABLE_PREFIX => nothing */
|
|
0, /* TABLE_SUFFIX => nothing */
|
|
0, /* KEEP_TIME_OFFSET => nothing */
|
|
0, /* NK_COLON => nothing */
|
|
0, /* BWLIMIT => nothing */
|
|
0, /* START => nothing */
|
|
0, /* TIMESTAMP => nothing */
|
|
301, /* 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, /* FULL => nothing */
|
|
0, /* LOGS => nothing */
|
|
0, /* MACHINES => nothing */
|
|
0, /* QUERIES => nothing */
|
|
0, /* SCORES => nothing */
|
|
0, /* TOPICS => nothing */
|
|
0, /* VARIABLES => nothing */
|
|
0, /* BNODES => nothing */
|
|
0, /* SNODES => nothing */
|
|
0, /* TRANSACTIONS => nothing */
|
|
0, /* DISTRIBUTED => nothing */
|
|
0, /* CONSUMERS => nothing */
|
|
0, /* SUBSCRIPTIONS => nothing */
|
|
0, /* VNODES => nothing */
|
|
0, /* ALIVE => nothing */
|
|
0, /* VIEWS => nothing */
|
|
301, /* VIEW => ABORT */
|
|
0, /* COMPACTS => nothing */
|
|
0, /* NORMAL => nothing */
|
|
0, /* CHILD => nothing */
|
|
0, /* LIKE => nothing */
|
|
0, /* TBNAME => nothing */
|
|
0, /* QTAGS => nothing */
|
|
0, /* AS => nothing */
|
|
0, /* SYSTEM => nothing */
|
|
0, /* INDEX => nothing */
|
|
0, /* FUNCTION => nothing */
|
|
0, /* INTERVAL => nothing */
|
|
0, /* COUNT => nothing */
|
|
0, /* LAST_ROW => nothing */
|
|
0, /* META => nothing */
|
|
0, /* ONLY => nothing */
|
|
0, /* TOPIC => nothing */
|
|
0, /* CONSUMER => nothing */
|
|
0, /* GROUP => nothing */
|
|
0, /* DESC => nothing */
|
|
0, /* DESCRIBE => nothing */
|
|
0, /* RESET => nothing */
|
|
0, /* QUERY => nothing */
|
|
0, /* CACHE => nothing */
|
|
0, /* EXPLAIN => nothing */
|
|
0, /* ANALYZE => nothing */
|
|
0, /* VERBOSE => nothing */
|
|
0, /* NK_BOOL => nothing */
|
|
0, /* RATIO => nothing */
|
|
0, /* NK_FLOAT => nothing */
|
|
0, /* OUTPUTTYPE => nothing */
|
|
0, /* AGGREGATE => nothing */
|
|
0, /* BUFSIZE => nothing */
|
|
0, /* LANGUAGE => nothing */
|
|
0, /* REPLACE => nothing */
|
|
0, /* STREAM => nothing */
|
|
0, /* INTO => nothing */
|
|
0, /* PAUSE => nothing */
|
|
0, /* RESUME => nothing */
|
|
0, /* TRIGGER => nothing */
|
|
0, /* AT_ONCE => nothing */
|
|
0, /* WINDOW_CLOSE => nothing */
|
|
0, /* IGNORE => nothing */
|
|
0, /* EXPIRED => nothing */
|
|
0, /* FILL_HISTORY => nothing */
|
|
0, /* UPDATE => nothing */
|
|
0, /* SUBTABLE => nothing */
|
|
0, /* UNTREATED => nothing */
|
|
0, /* KILL => nothing */
|
|
0, /* CONNECTION => nothing */
|
|
0, /* TRANSACTION => nothing */
|
|
0, /* BALANCE => nothing */
|
|
0, /* VGROUP => nothing */
|
|
0, /* LEADER => nothing */
|
|
0, /* MERGE => nothing */
|
|
0, /* REDISTRIBUTE => nothing */
|
|
0, /* SPLIT => nothing */
|
|
0, /* DELETE => nothing */
|
|
0, /* INSERT => nothing */
|
|
0, /* NULL => nothing */
|
|
0, /* NK_QUESTION => nothing */
|
|
0, /* NK_ALIAS => nothing */
|
|
0, /* NK_ARROW => nothing */
|
|
0, /* ROWTS => nothing */
|
|
0, /* QSTART => nothing */
|
|
0, /* QEND => nothing */
|
|
0, /* QDURATION => nothing */
|
|
0, /* WSTART => nothing */
|
|
0, /* WEND => nothing */
|
|
0, /* WDURATION => nothing */
|
|
0, /* IROWTS => nothing */
|
|
0, /* ISFILLED => nothing */
|
|
0, /* CAST => nothing */
|
|
0, /* NOW => nothing */
|
|
0, /* TODAY => nothing */
|
|
0, /* TIMEZONE => nothing */
|
|
0, /* CLIENT_VERSION => nothing */
|
|
0, /* SERVER_VERSION => nothing */
|
|
0, /* SERVER_STATUS => nothing */
|
|
0, /* CURRENT_USER => nothing */
|
|
0, /* CASE => nothing */
|
|
0, /* WHEN => nothing */
|
|
0, /* THEN => nothing */
|
|
0, /* ELSE => nothing */
|
|
0, /* BETWEEN => nothing */
|
|
0, /* IS => nothing */
|
|
0, /* NK_LT => nothing */
|
|
0, /* NK_GT => nothing */
|
|
0, /* NK_LE => nothing */
|
|
0, /* NK_GE => nothing */
|
|
0, /* NK_NE => nothing */
|
|
0, /* MATCH => nothing */
|
|
0, /* NMATCH => nothing */
|
|
0, /* CONTAINS => nothing */
|
|
0, /* IN => nothing */
|
|
0, /* JOIN => nothing */
|
|
0, /* INNER => nothing */
|
|
0, /* SELECT => nothing */
|
|
0, /* NK_HINT => nothing */
|
|
0, /* DISTINCT => nothing */
|
|
0, /* WHERE => nothing */
|
|
0, /* PARTITION => nothing */
|
|
0, /* BY => nothing */
|
|
0, /* SESSION => nothing */
|
|
0, /* STATE_WINDOW => nothing */
|
|
0, /* EVENT_WINDOW => nothing */
|
|
0, /* COUNT_WINDOW => nothing */
|
|
0, /* SLIDING => nothing */
|
|
0, /* FILL => nothing */
|
|
0, /* VALUE => nothing */
|
|
0, /* VALUE_F => nothing */
|
|
0, /* NONE => nothing */
|
|
0, /* PREV => nothing */
|
|
0, /* NULL_F => nothing */
|
|
0, /* LINEAR => nothing */
|
|
0, /* NEXT => nothing */
|
|
0, /* HAVING => nothing */
|
|
0, /* RANGE => nothing */
|
|
0, /* EVERY => nothing */
|
|
0, /* ORDER => nothing */
|
|
0, /* SLIMIT => nothing */
|
|
0, /* SOFFSET => nothing */
|
|
0, /* LIMIT => nothing */
|
|
0, /* OFFSET => nothing */
|
|
0, /* ASC => nothing */
|
|
0, /* NULLS => nothing */
|
|
0, /* ABORT => nothing */
|
|
301, /* AFTER => ABORT */
|
|
301, /* ATTACH => ABORT */
|
|
301, /* BEFORE => ABORT */
|
|
301, /* BEGIN => ABORT */
|
|
301, /* BITAND => ABORT */
|
|
301, /* BITNOT => ABORT */
|
|
301, /* BITOR => ABORT */
|
|
301, /* BLOCKS => ABORT */
|
|
301, /* CHANGE => ABORT */
|
|
301, /* COMMA => ABORT */
|
|
301, /* CONCAT => ABORT */
|
|
301, /* CONFLICT => ABORT */
|
|
301, /* COPY => ABORT */
|
|
301, /* DEFERRED => ABORT */
|
|
301, /* DELIMITERS => ABORT */
|
|
301, /* DETACH => ABORT */
|
|
301, /* DIVIDE => ABORT */
|
|
301, /* DOT => ABORT */
|
|
301, /* EACH => ABORT */
|
|
301, /* FAIL => ABORT */
|
|
301, /* FILE => ABORT */
|
|
301, /* FOR => ABORT */
|
|
301, /* GLOB => ABORT */
|
|
301, /* ID => ABORT */
|
|
301, /* IMMEDIATE => ABORT */
|
|
301, /* IMPORT => ABORT */
|
|
301, /* INITIALLY => ABORT */
|
|
301, /* INSTEAD => ABORT */
|
|
301, /* ISNULL => ABORT */
|
|
301, /* KEY => ABORT */
|
|
301, /* MODULES => ABORT */
|
|
301, /* NK_BITNOT => ABORT */
|
|
301, /* NK_SEMI => ABORT */
|
|
301, /* NOTNULL => ABORT */
|
|
301, /* OF => ABORT */
|
|
301, /* PLUS => ABORT */
|
|
301, /* PRIVILEGE => ABORT */
|
|
301, /* RAISE => ABORT */
|
|
301, /* RESTRICT => ABORT */
|
|
301, /* ROW => ABORT */
|
|
301, /* SEMI => ABORT */
|
|
301, /* STAR => ABORT */
|
|
301, /* STATEMENT => ABORT */
|
|
301, /* STRICT => ABORT */
|
|
301, /* STRING => ABORT */
|
|
301, /* TIMES => ABORT */
|
|
301, /* VALUES => ABORT */
|
|
301, /* VARIABLE => ABORT */
|
|
301, /* WAL => ABORT */
|
|
0, /* ENCODE => nothing */
|
|
0, /* COMPRESS => nothing */
|
|
0, /* LEVEL => nothing */
|
|
};
|
|
#endif /* YYFALLBACK */
|
|
|
|
/* The following structure represents a single element of the
|
|
** parser's stack. Information stored includes:
|
|
**
|
|
** + The state number for the parser at this level of the stack.
|
|
**
|
|
** + The value of the token stored at this level of the stack.
|
|
** (In other words, the "major" token.)
|
|
**
|
|
** + The semantic value stored at this level of the stack. This is
|
|
** the information used by the action routines in the grammar.
|
|
** It is sometimes called the "minor" token.
|
|
**
|
|
** After the "shift" half of a SHIFTREDUCE action, the stateno field
|
|
** actually contains the reduce action for the second half of the
|
|
** SHIFTREDUCE.
|
|
*/
|
|
struct yyStackEntry {
|
|
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
|
|
YYCODETYPE major; /* The major token value. This is the code
|
|
** number for the token at this stack level */
|
|
YYMINORTYPE minor; /* The user-supplied minor token value. This
|
|
** is the value of the token */
|
|
};
|
|
typedef struct yyStackEntry yyStackEntry;
|
|
|
|
/* The state of the parser is completely contained in an instance of
|
|
** the following structure */
|
|
struct yyParser {
|
|
yyStackEntry *yytos; /* Pointer to top element of the stack */
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
int yyhwm; /* High-water mark of the stack */
|
|
#endif
|
|
#ifndef YYNOERRORRECOVERY
|
|
int yyerrcnt; /* Shifts left before out of the error */
|
|
#endif
|
|
ParseARG_SDECL /* A place to hold %extra_argument */
|
|
ParseCTX_SDECL /* A place to hold %extra_context */
|
|
#if YYSTACKDEPTH<=0
|
|
int yystksz; /* Current side of the stack */
|
|
yyStackEntry *yystack; /* The parser's stack */
|
|
yyStackEntry yystk0; /* First stack entry */
|
|
#else
|
|
yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */
|
|
yyStackEntry *yystackEnd; /* Last entry in the stack */
|
|
#endif
|
|
};
|
|
typedef struct yyParser yyParser;
|
|
|
|
#include <assert.h>
|
|
#ifndef NDEBUG
|
|
#include <stdio.h>
|
|
static FILE *yyTraceFILE = 0;
|
|
static char *yyTracePrompt = 0;
|
|
#endif /* NDEBUG */
|
|
|
|
#ifndef NDEBUG
|
|
/*
|
|
** Turn parser tracing on by giving a stream to which to write the trace
|
|
** and a prompt to preface each trace message. Tracing is turned off
|
|
** by making either argument NULL
|
|
**
|
|
** Inputs:
|
|
** <ul>
|
|
** <li> A FILE* to which trace output should be written.
|
|
** If NULL, then tracing is turned off.
|
|
** <li> A prefix string written at the beginning of every
|
|
** line of trace output. If NULL, then tracing is
|
|
** turned off.
|
|
** </ul>
|
|
**
|
|
** Outputs:
|
|
** None.
|
|
*/
|
|
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
|
|
yyTraceFILE = TraceFILE;
|
|
yyTracePrompt = zTracePrompt;
|
|
if( yyTraceFILE==0 ) yyTracePrompt = 0;
|
|
else if( yyTracePrompt==0 ) yyTraceFILE = 0;
|
|
}
|
|
#endif /* NDEBUG */
|
|
|
|
#if defined(YYCOVERAGE) || !defined(NDEBUG)
|
|
/* For tracing shifts, the names of all terminals and nonterminals
|
|
** are required. The following table supplies these names */
|
|
static const char *const yyTokenName[] = {
|
|
/* 0 */ "$",
|
|
/* 1 */ "OR",
|
|
/* 2 */ "AND",
|
|
/* 3 */ "UNION",
|
|
/* 4 */ "ALL",
|
|
/* 5 */ "MINUS",
|
|
/* 6 */ "EXCEPT",
|
|
/* 7 */ "INTERSECT",
|
|
/* 8 */ "NK_BITAND",
|
|
/* 9 */ "NK_BITOR",
|
|
/* 10 */ "NK_LSHIFT",
|
|
/* 11 */ "NK_RSHIFT",
|
|
/* 12 */ "NK_PLUS",
|
|
/* 13 */ "NK_MINUS",
|
|
/* 14 */ "NK_STAR",
|
|
/* 15 */ "NK_SLASH",
|
|
/* 16 */ "NK_REM",
|
|
/* 17 */ "NK_CONCAT",
|
|
/* 18 */ "CREATE",
|
|
/* 19 */ "ACCOUNT",
|
|
/* 20 */ "NK_ID",
|
|
/* 21 */ "PASS",
|
|
/* 22 */ "NK_STRING",
|
|
/* 23 */ "ALTER",
|
|
/* 24 */ "PPS",
|
|
/* 25 */ "TSERIES",
|
|
/* 26 */ "STORAGE",
|
|
/* 27 */ "STREAMS",
|
|
/* 28 */ "QTIME",
|
|
/* 29 */ "DBS",
|
|
/* 30 */ "USERS",
|
|
/* 31 */ "CONNS",
|
|
/* 32 */ "STATE",
|
|
/* 33 */ "NK_COMMA",
|
|
/* 34 */ "HOST",
|
|
/* 35 */ "USER",
|
|
/* 36 */ "ENABLE",
|
|
/* 37 */ "NK_INTEGER",
|
|
/* 38 */ "SYSINFO",
|
|
/* 39 */ "ADD",
|
|
/* 40 */ "DROP",
|
|
/* 41 */ "GRANT",
|
|
/* 42 */ "ON",
|
|
/* 43 */ "TO",
|
|
/* 44 */ "REVOKE",
|
|
/* 45 */ "FROM",
|
|
/* 46 */ "SUBSCRIBE",
|
|
/* 47 */ "READ",
|
|
/* 48 */ "WRITE",
|
|
/* 49 */ "NK_DOT",
|
|
/* 50 */ "WITH",
|
|
/* 51 */ "DNODE",
|
|
/* 52 */ "PORT",
|
|
/* 53 */ "DNODES",
|
|
/* 54 */ "RESTORE",
|
|
/* 55 */ "NK_IPTOKEN",
|
|
/* 56 */ "FORCE",
|
|
/* 57 */ "UNSAFE",
|
|
/* 58 */ "CLUSTER",
|
|
/* 59 */ "LOCAL",
|
|
/* 60 */ "QNODE",
|
|
/* 61 */ "BNODE",
|
|
/* 62 */ "SNODE",
|
|
/* 63 */ "MNODE",
|
|
/* 64 */ "VNODE",
|
|
/* 65 */ "DATABASE",
|
|
/* 66 */ "USE",
|
|
/* 67 */ "FLUSH",
|
|
/* 68 */ "TRIM",
|
|
/* 69 */ "COMPACT",
|
|
/* 70 */ "IF",
|
|
/* 71 */ "NOT",
|
|
/* 72 */ "EXISTS",
|
|
/* 73 */ "BUFFER",
|
|
/* 74 */ "CACHEMODEL",
|
|
/* 75 */ "CACHESIZE",
|
|
/* 76 */ "COMP",
|
|
/* 77 */ "DURATION",
|
|
/* 78 */ "NK_VARIABLE",
|
|
/* 79 */ "MAXROWS",
|
|
/* 80 */ "MINROWS",
|
|
/* 81 */ "KEEP",
|
|
/* 82 */ "PAGES",
|
|
/* 83 */ "PAGESIZE",
|
|
/* 84 */ "TSDB_PAGESIZE",
|
|
/* 85 */ "PRECISION",
|
|
/* 86 */ "REPLICA",
|
|
/* 87 */ "VGROUPS",
|
|
/* 88 */ "SINGLE_STABLE",
|
|
/* 89 */ "RETENTIONS",
|
|
/* 90 */ "SCHEMALESS",
|
|
/* 91 */ "WAL_LEVEL",
|
|
/* 92 */ "WAL_FSYNC_PERIOD",
|
|
/* 93 */ "WAL_RETENTION_PERIOD",
|
|
/* 94 */ "WAL_RETENTION_SIZE",
|
|
/* 95 */ "WAL_ROLL_PERIOD",
|
|
/* 96 */ "WAL_SEGMENT_SIZE",
|
|
/* 97 */ "STT_TRIGGER",
|
|
/* 98 */ "TABLE_PREFIX",
|
|
/* 99 */ "TABLE_SUFFIX",
|
|
/* 100 */ "KEEP_TIME_OFFSET",
|
|
/* 101 */ "NK_COLON",
|
|
/* 102 */ "BWLIMIT",
|
|
/* 103 */ "START",
|
|
/* 104 */ "TIMESTAMP",
|
|
/* 105 */ "END",
|
|
/* 106 */ "TABLE",
|
|
/* 107 */ "NK_LP",
|
|
/* 108 */ "NK_RP",
|
|
/* 109 */ "STABLE",
|
|
/* 110 */ "COLUMN",
|
|
/* 111 */ "MODIFY",
|
|
/* 112 */ "RENAME",
|
|
/* 113 */ "TAG",
|
|
/* 114 */ "SET",
|
|
/* 115 */ "NK_EQ",
|
|
/* 116 */ "USING",
|
|
/* 117 */ "TAGS",
|
|
/* 118 */ "BOOL",
|
|
/* 119 */ "TINYINT",
|
|
/* 120 */ "SMALLINT",
|
|
/* 121 */ "INT",
|
|
/* 122 */ "INTEGER",
|
|
/* 123 */ "BIGINT",
|
|
/* 124 */ "FLOAT",
|
|
/* 125 */ "DOUBLE",
|
|
/* 126 */ "BINARY",
|
|
/* 127 */ "NCHAR",
|
|
/* 128 */ "UNSIGNED",
|
|
/* 129 */ "JSON",
|
|
/* 130 */ "VARCHAR",
|
|
/* 131 */ "MEDIUMBLOB",
|
|
/* 132 */ "BLOB",
|
|
/* 133 */ "VARBINARY",
|
|
/* 134 */ "GEOMETRY",
|
|
/* 135 */ "DECIMAL",
|
|
/* 136 */ "COMMENT",
|
|
/* 137 */ "MAX_DELAY",
|
|
/* 138 */ "WATERMARK",
|
|
/* 139 */ "ROLLUP",
|
|
/* 140 */ "TTL",
|
|
/* 141 */ "SMA",
|
|
/* 142 */ "DELETE_MARK",
|
|
/* 143 */ "FIRST",
|
|
/* 144 */ "LAST",
|
|
/* 145 */ "SHOW",
|
|
/* 146 */ "PRIVILEGES",
|
|
/* 147 */ "DATABASES",
|
|
/* 148 */ "TABLES",
|
|
/* 149 */ "STABLES",
|
|
/* 150 */ "MNODES",
|
|
/* 151 */ "QNODES",
|
|
/* 152 */ "FUNCTIONS",
|
|
/* 153 */ "INDEXES",
|
|
/* 154 */ "ACCOUNTS",
|
|
/* 155 */ "APPS",
|
|
/* 156 */ "CONNECTIONS",
|
|
/* 157 */ "LICENCES",
|
|
/* 158 */ "GRANTS",
|
|
/* 159 */ "FULL",
|
|
/* 160 */ "LOGS",
|
|
/* 161 */ "MACHINES",
|
|
/* 162 */ "QUERIES",
|
|
/* 163 */ "SCORES",
|
|
/* 164 */ "TOPICS",
|
|
/* 165 */ "VARIABLES",
|
|
/* 166 */ "BNODES",
|
|
/* 167 */ "SNODES",
|
|
/* 168 */ "TRANSACTIONS",
|
|
/* 169 */ "DISTRIBUTED",
|
|
/* 170 */ "CONSUMERS",
|
|
/* 171 */ "SUBSCRIPTIONS",
|
|
/* 172 */ "VNODES",
|
|
/* 173 */ "ALIVE",
|
|
/* 174 */ "VIEWS",
|
|
/* 175 */ "VIEW",
|
|
/* 176 */ "COMPACTS",
|
|
/* 177 */ "NORMAL",
|
|
/* 178 */ "CHILD",
|
|
/* 179 */ "LIKE",
|
|
/* 180 */ "TBNAME",
|
|
/* 181 */ "QTAGS",
|
|
/* 182 */ "AS",
|
|
/* 183 */ "SYSTEM",
|
|
/* 184 */ "INDEX",
|
|
/* 185 */ "FUNCTION",
|
|
/* 186 */ "INTERVAL",
|
|
/* 187 */ "COUNT",
|
|
/* 188 */ "LAST_ROW",
|
|
/* 189 */ "META",
|
|
/* 190 */ "ONLY",
|
|
/* 191 */ "TOPIC",
|
|
/* 192 */ "CONSUMER",
|
|
/* 193 */ "GROUP",
|
|
/* 194 */ "DESC",
|
|
/* 195 */ "DESCRIBE",
|
|
/* 196 */ "RESET",
|
|
/* 197 */ "QUERY",
|
|
/* 198 */ "CACHE",
|
|
/* 199 */ "EXPLAIN",
|
|
/* 200 */ "ANALYZE",
|
|
/* 201 */ "VERBOSE",
|
|
/* 202 */ "NK_BOOL",
|
|
/* 203 */ "RATIO",
|
|
/* 204 */ "NK_FLOAT",
|
|
/* 205 */ "OUTPUTTYPE",
|
|
/* 206 */ "AGGREGATE",
|
|
/* 207 */ "BUFSIZE",
|
|
/* 208 */ "LANGUAGE",
|
|
/* 209 */ "REPLACE",
|
|
/* 210 */ "STREAM",
|
|
/* 211 */ "INTO",
|
|
/* 212 */ "PAUSE",
|
|
/* 213 */ "RESUME",
|
|
/* 214 */ "TRIGGER",
|
|
/* 215 */ "AT_ONCE",
|
|
/* 216 */ "WINDOW_CLOSE",
|
|
/* 217 */ "IGNORE",
|
|
/* 218 */ "EXPIRED",
|
|
/* 219 */ "FILL_HISTORY",
|
|
/* 220 */ "UPDATE",
|
|
/* 221 */ "SUBTABLE",
|
|
/* 222 */ "UNTREATED",
|
|
/* 223 */ "KILL",
|
|
/* 224 */ "CONNECTION",
|
|
/* 225 */ "TRANSACTION",
|
|
/* 226 */ "BALANCE",
|
|
/* 227 */ "VGROUP",
|
|
/* 228 */ "LEADER",
|
|
/* 229 */ "MERGE",
|
|
/* 230 */ "REDISTRIBUTE",
|
|
/* 231 */ "SPLIT",
|
|
/* 232 */ "DELETE",
|
|
/* 233 */ "INSERT",
|
|
/* 234 */ "NULL",
|
|
/* 235 */ "NK_QUESTION",
|
|
/* 236 */ "NK_ALIAS",
|
|
/* 237 */ "NK_ARROW",
|
|
/* 238 */ "ROWTS",
|
|
/* 239 */ "QSTART",
|
|
/* 240 */ "QEND",
|
|
/* 241 */ "QDURATION",
|
|
/* 242 */ "WSTART",
|
|
/* 243 */ "WEND",
|
|
/* 244 */ "WDURATION",
|
|
/* 245 */ "IROWTS",
|
|
/* 246 */ "ISFILLED",
|
|
/* 247 */ "CAST",
|
|
/* 248 */ "NOW",
|
|
/* 249 */ "TODAY",
|
|
/* 250 */ "TIMEZONE",
|
|
/* 251 */ "CLIENT_VERSION",
|
|
/* 252 */ "SERVER_VERSION",
|
|
/* 253 */ "SERVER_STATUS",
|
|
/* 254 */ "CURRENT_USER",
|
|
/* 255 */ "CASE",
|
|
/* 256 */ "WHEN",
|
|
/* 257 */ "THEN",
|
|
/* 258 */ "ELSE",
|
|
/* 259 */ "BETWEEN",
|
|
/* 260 */ "IS",
|
|
/* 261 */ "NK_LT",
|
|
/* 262 */ "NK_GT",
|
|
/* 263 */ "NK_LE",
|
|
/* 264 */ "NK_GE",
|
|
/* 265 */ "NK_NE",
|
|
/* 266 */ "MATCH",
|
|
/* 267 */ "NMATCH",
|
|
/* 268 */ "CONTAINS",
|
|
/* 269 */ "IN",
|
|
/* 270 */ "JOIN",
|
|
/* 271 */ "INNER",
|
|
/* 272 */ "SELECT",
|
|
/* 273 */ "NK_HINT",
|
|
/* 274 */ "DISTINCT",
|
|
/* 275 */ "WHERE",
|
|
/* 276 */ "PARTITION",
|
|
/* 277 */ "BY",
|
|
/* 278 */ "SESSION",
|
|
/* 279 */ "STATE_WINDOW",
|
|
/* 280 */ "EVENT_WINDOW",
|
|
/* 281 */ "COUNT_WINDOW",
|
|
/* 282 */ "SLIDING",
|
|
/* 283 */ "FILL",
|
|
/* 284 */ "VALUE",
|
|
/* 285 */ "VALUE_F",
|
|
/* 286 */ "NONE",
|
|
/* 287 */ "PREV",
|
|
/* 288 */ "NULL_F",
|
|
/* 289 */ "LINEAR",
|
|
/* 290 */ "NEXT",
|
|
/* 291 */ "HAVING",
|
|
/* 292 */ "RANGE",
|
|
/* 293 */ "EVERY",
|
|
/* 294 */ "ORDER",
|
|
/* 295 */ "SLIMIT",
|
|
/* 296 */ "SOFFSET",
|
|
/* 297 */ "LIMIT",
|
|
/* 298 */ "OFFSET",
|
|
/* 299 */ "ASC",
|
|
/* 300 */ "NULLS",
|
|
/* 301 */ "ABORT",
|
|
/* 302 */ "AFTER",
|
|
/* 303 */ "ATTACH",
|
|
/* 304 */ "BEFORE",
|
|
/* 305 */ "BEGIN",
|
|
/* 306 */ "BITAND",
|
|
/* 307 */ "BITNOT",
|
|
/* 308 */ "BITOR",
|
|
/* 309 */ "BLOCKS",
|
|
/* 310 */ "CHANGE",
|
|
/* 311 */ "COMMA",
|
|
/* 312 */ "CONCAT",
|
|
/* 313 */ "CONFLICT",
|
|
/* 314 */ "COPY",
|
|
/* 315 */ "DEFERRED",
|
|
/* 316 */ "DELIMITERS",
|
|
/* 317 */ "DETACH",
|
|
/* 318 */ "DIVIDE",
|
|
/* 319 */ "DOT",
|
|
/* 320 */ "EACH",
|
|
/* 321 */ "FAIL",
|
|
/* 322 */ "FILE",
|
|
/* 323 */ "FOR",
|
|
/* 324 */ "GLOB",
|
|
/* 325 */ "ID",
|
|
/* 326 */ "IMMEDIATE",
|
|
/* 327 */ "IMPORT",
|
|
/* 328 */ "INITIALLY",
|
|
/* 329 */ "INSTEAD",
|
|
/* 330 */ "ISNULL",
|
|
/* 331 */ "KEY",
|
|
/* 332 */ "MODULES",
|
|
/* 333 */ "NK_BITNOT",
|
|
/* 334 */ "NK_SEMI",
|
|
/* 335 */ "NOTNULL",
|
|
/* 336 */ "OF",
|
|
/* 337 */ "PLUS",
|
|
/* 338 */ "PRIVILEGE",
|
|
/* 339 */ "RAISE",
|
|
/* 340 */ "RESTRICT",
|
|
/* 341 */ "ROW",
|
|
/* 342 */ "SEMI",
|
|
/* 343 */ "STAR",
|
|
/* 344 */ "STATEMENT",
|
|
/* 345 */ "STRICT",
|
|
/* 346 */ "STRING",
|
|
/* 347 */ "TIMES",
|
|
/* 348 */ "VALUES",
|
|
/* 349 */ "VARIABLE",
|
|
/* 350 */ "WAL",
|
|
/* 351 */ "ENCODE",
|
|
/* 352 */ "COMPRESS",
|
|
/* 353 */ "LEVEL",
|
|
/* 354 */ "cmd",
|
|
/* 355 */ "account_options",
|
|
/* 356 */ "alter_account_options",
|
|
/* 357 */ "literal",
|
|
/* 358 */ "alter_account_option",
|
|
/* 359 */ "ip_range_list",
|
|
/* 360 */ "white_list",
|
|
/* 361 */ "white_list_opt",
|
|
/* 362 */ "user_name",
|
|
/* 363 */ "sysinfo_opt",
|
|
/* 364 */ "privileges",
|
|
/* 365 */ "priv_level",
|
|
/* 366 */ "with_opt",
|
|
/* 367 */ "priv_type_list",
|
|
/* 368 */ "priv_type",
|
|
/* 369 */ "db_name",
|
|
/* 370 */ "table_name",
|
|
/* 371 */ "topic_name",
|
|
/* 372 */ "search_condition",
|
|
/* 373 */ "dnode_endpoint",
|
|
/* 374 */ "force_opt",
|
|
/* 375 */ "unsafe_opt",
|
|
/* 376 */ "not_exists_opt",
|
|
/* 377 */ "db_options",
|
|
/* 378 */ "exists_opt",
|
|
/* 379 */ "alter_db_options",
|
|
/* 380 */ "speed_opt",
|
|
/* 381 */ "start_opt",
|
|
/* 382 */ "end_opt",
|
|
/* 383 */ "integer_list",
|
|
/* 384 */ "variable_list",
|
|
/* 385 */ "retention_list",
|
|
/* 386 */ "signed",
|
|
/* 387 */ "alter_db_option",
|
|
/* 388 */ "retention",
|
|
/* 389 */ "full_table_name",
|
|
/* 390 */ "column_def_list",
|
|
/* 391 */ "tags_def_opt",
|
|
/* 392 */ "table_options",
|
|
/* 393 */ "multi_create_clause",
|
|
/* 394 */ "tags_def",
|
|
/* 395 */ "multi_drop_clause",
|
|
/* 396 */ "alter_table_clause",
|
|
/* 397 */ "alter_table_options",
|
|
/* 398 */ "column_name",
|
|
/* 399 */ "type_name",
|
|
/* 400 */ "column_options",
|
|
/* 401 */ "signed_literal",
|
|
/* 402 */ "create_subtable_clause",
|
|
/* 403 */ "specific_cols_opt",
|
|
/* 404 */ "expression_list",
|
|
/* 405 */ "drop_table_clause",
|
|
/* 406 */ "col_name_list",
|
|
/* 407 */ "tag_def_list",
|
|
/* 408 */ "tag_def",
|
|
/* 409 */ "column_def",
|
|
/* 410 */ "duration_list",
|
|
/* 411 */ "rollup_func_list",
|
|
/* 412 */ "alter_table_option",
|
|
/* 413 */ "duration_literal",
|
|
/* 414 */ "rollup_func_name",
|
|
/* 415 */ "function_name",
|
|
/* 416 */ "col_name",
|
|
/* 417 */ "db_kind_opt",
|
|
/* 418 */ "table_kind_db_name_cond_opt",
|
|
/* 419 */ "like_pattern_opt",
|
|
/* 420 */ "db_name_cond_opt",
|
|
/* 421 */ "table_name_cond",
|
|
/* 422 */ "from_db_opt",
|
|
/* 423 */ "tag_list_opt",
|
|
/* 424 */ "table_kind",
|
|
/* 425 */ "tag_item",
|
|
/* 426 */ "column_alias",
|
|
/* 427 */ "index_options",
|
|
/* 428 */ "full_index_name",
|
|
/* 429 */ "index_name",
|
|
/* 430 */ "func_list",
|
|
/* 431 */ "sliding_opt",
|
|
/* 432 */ "sma_stream_opt",
|
|
/* 433 */ "func",
|
|
/* 434 */ "sma_func_name",
|
|
/* 435 */ "with_meta",
|
|
/* 436 */ "query_or_subquery",
|
|
/* 437 */ "where_clause_opt",
|
|
/* 438 */ "cgroup_name",
|
|
/* 439 */ "analyze_opt",
|
|
/* 440 */ "explain_options",
|
|
/* 441 */ "insert_query",
|
|
/* 442 */ "or_replace_opt",
|
|
/* 443 */ "agg_func_opt",
|
|
/* 444 */ "bufsize_opt",
|
|
/* 445 */ "language_opt",
|
|
/* 446 */ "full_view_name",
|
|
/* 447 */ "view_name",
|
|
/* 448 */ "stream_name",
|
|
/* 449 */ "stream_options",
|
|
/* 450 */ "col_list_opt",
|
|
/* 451 */ "tag_def_or_ref_opt",
|
|
/* 452 */ "subtable_opt",
|
|
/* 453 */ "ignore_opt",
|
|
/* 454 */ "expression",
|
|
/* 455 */ "on_vgroup_id",
|
|
/* 456 */ "dnode_list",
|
|
/* 457 */ "literal_func",
|
|
/* 458 */ "literal_list",
|
|
/* 459 */ "table_alias",
|
|
/* 460 */ "expr_or_subquery",
|
|
/* 461 */ "pseudo_column",
|
|
/* 462 */ "column_reference",
|
|
/* 463 */ "function_expression",
|
|
/* 464 */ "case_when_expression",
|
|
/* 465 */ "star_func",
|
|
/* 466 */ "star_func_para_list",
|
|
/* 467 */ "noarg_func",
|
|
/* 468 */ "other_para_list",
|
|
/* 469 */ "star_func_para",
|
|
/* 470 */ "when_then_list",
|
|
/* 471 */ "case_when_else_opt",
|
|
/* 472 */ "common_expression",
|
|
/* 473 */ "when_then_expr",
|
|
/* 474 */ "predicate",
|
|
/* 475 */ "compare_op",
|
|
/* 476 */ "in_op",
|
|
/* 477 */ "in_predicate_value",
|
|
/* 478 */ "boolean_value_expression",
|
|
/* 479 */ "boolean_primary",
|
|
/* 480 */ "from_clause_opt",
|
|
/* 481 */ "table_reference_list",
|
|
/* 482 */ "table_reference",
|
|
/* 483 */ "table_primary",
|
|
/* 484 */ "joined_table",
|
|
/* 485 */ "alias_opt",
|
|
/* 486 */ "subquery",
|
|
/* 487 */ "parenthesized_joined_table",
|
|
/* 488 */ "join_type",
|
|
/* 489 */ "query_specification",
|
|
/* 490 */ "hint_list",
|
|
/* 491 */ "set_quantifier_opt",
|
|
/* 492 */ "tag_mode_opt",
|
|
/* 493 */ "select_list",
|
|
/* 494 */ "partition_by_clause_opt",
|
|
/* 495 */ "range_opt",
|
|
/* 496 */ "every_opt",
|
|
/* 497 */ "fill_opt",
|
|
/* 498 */ "twindow_clause_opt",
|
|
/* 499 */ "group_by_clause_opt",
|
|
/* 500 */ "having_clause_opt",
|
|
/* 501 */ "select_item",
|
|
/* 502 */ "partition_list",
|
|
/* 503 */ "partition_item",
|
|
/* 504 */ "interval_sliding_duration_literal",
|
|
/* 505 */ "fill_mode",
|
|
/* 506 */ "group_by_list",
|
|
/* 507 */ "query_expression",
|
|
/* 508 */ "query_simple",
|
|
/* 509 */ "order_by_clause_opt",
|
|
/* 510 */ "slimit_clause_opt",
|
|
/* 511 */ "limit_clause_opt",
|
|
/* 512 */ "union_query_expression",
|
|
/* 513 */ "query_simple_or_subquery",
|
|
/* 514 */ "sort_specification_list",
|
|
/* 515 */ "sort_specification",
|
|
/* 516 */ "ordering_specification_opt",
|
|
/* 517 */ "null_ordering_opt",
|
|
};
|
|
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
|
|
|
|
#ifndef NDEBUG
|
|
/* For tracing reduce actions, the names of all rules are required.
|
|
*/
|
|
static const char *const yyRuleName[] = {
|
|
/* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options",
|
|
/* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options",
|
|
/* 2 */ "account_options ::=",
|
|
/* 3 */ "account_options ::= account_options PPS literal",
|
|
/* 4 */ "account_options ::= account_options TSERIES literal",
|
|
/* 5 */ "account_options ::= account_options STORAGE literal",
|
|
/* 6 */ "account_options ::= account_options STREAMS literal",
|
|
/* 7 */ "account_options ::= account_options QTIME literal",
|
|
/* 8 */ "account_options ::= account_options DBS literal",
|
|
/* 9 */ "account_options ::= account_options USERS literal",
|
|
/* 10 */ "account_options ::= account_options CONNS literal",
|
|
/* 11 */ "account_options ::= account_options STATE literal",
|
|
/* 12 */ "alter_account_options ::= alter_account_option",
|
|
/* 13 */ "alter_account_options ::= alter_account_options alter_account_option",
|
|
/* 14 */ "alter_account_option ::= PASS literal",
|
|
/* 15 */ "alter_account_option ::= PPS literal",
|
|
/* 16 */ "alter_account_option ::= TSERIES literal",
|
|
/* 17 */ "alter_account_option ::= STORAGE literal",
|
|
/* 18 */ "alter_account_option ::= STREAMS literal",
|
|
/* 19 */ "alter_account_option ::= QTIME literal",
|
|
/* 20 */ "alter_account_option ::= DBS literal",
|
|
/* 21 */ "alter_account_option ::= USERS literal",
|
|
/* 22 */ "alter_account_option ::= CONNS literal",
|
|
/* 23 */ "alter_account_option ::= STATE literal",
|
|
/* 24 */ "ip_range_list ::= NK_STRING",
|
|
/* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING",
|
|
/* 26 */ "white_list ::= HOST ip_range_list",
|
|
/* 27 */ "white_list_opt ::=",
|
|
/* 28 */ "white_list_opt ::= white_list",
|
|
/* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt",
|
|
/* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING",
|
|
/* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER",
|
|
/* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER",
|
|
/* 33 */ "cmd ::= ALTER USER user_name ADD white_list",
|
|
/* 34 */ "cmd ::= ALTER USER user_name DROP white_list",
|
|
/* 35 */ "cmd ::= DROP USER user_name",
|
|
/* 36 */ "sysinfo_opt ::=",
|
|
/* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER",
|
|
/* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name",
|
|
/* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name",
|
|
/* 40 */ "privileges ::= ALL",
|
|
/* 41 */ "privileges ::= priv_type_list",
|
|
/* 42 */ "privileges ::= SUBSCRIBE",
|
|
/* 43 */ "priv_type_list ::= priv_type",
|
|
/* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type",
|
|
/* 45 */ "priv_type ::= READ",
|
|
/* 46 */ "priv_type ::= WRITE",
|
|
/* 47 */ "priv_type ::= ALTER",
|
|
/* 48 */ "priv_level ::= NK_STAR NK_DOT NK_STAR",
|
|
/* 49 */ "priv_level ::= db_name NK_DOT NK_STAR",
|
|
/* 50 */ "priv_level ::= db_name NK_DOT table_name",
|
|
/* 51 */ "priv_level ::= topic_name",
|
|
/* 52 */ "with_opt ::=",
|
|
/* 53 */ "with_opt ::= WITH search_condition",
|
|
/* 54 */ "cmd ::= CREATE DNODE dnode_endpoint",
|
|
/* 55 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER",
|
|
/* 56 */ "cmd ::= DROP DNODE NK_INTEGER force_opt",
|
|
/* 57 */ "cmd ::= DROP DNODE dnode_endpoint force_opt",
|
|
/* 58 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt",
|
|
/* 59 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt",
|
|
/* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING",
|
|
/* 61 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING",
|
|
/* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING",
|
|
/* 63 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING",
|
|
/* 64 */ "cmd ::= RESTORE DNODE NK_INTEGER",
|
|
/* 65 */ "dnode_endpoint ::= NK_STRING",
|
|
/* 66 */ "dnode_endpoint ::= NK_ID",
|
|
/* 67 */ "dnode_endpoint ::= NK_IPTOKEN",
|
|
/* 68 */ "force_opt ::=",
|
|
/* 69 */ "force_opt ::= FORCE",
|
|
/* 70 */ "unsafe_opt ::= UNSAFE",
|
|
/* 71 */ "cmd ::= ALTER CLUSTER NK_STRING",
|
|
/* 72 */ "cmd ::= ALTER CLUSTER NK_STRING NK_STRING",
|
|
/* 73 */ "cmd ::= ALTER LOCAL NK_STRING",
|
|
/* 74 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING",
|
|
/* 75 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER",
|
|
/* 76 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER",
|
|
/* 77 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER",
|
|
/* 78 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER",
|
|
/* 79 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER",
|
|
/* 80 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER",
|
|
/* 81 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER",
|
|
/* 82 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER",
|
|
/* 83 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER",
|
|
/* 84 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER",
|
|
/* 85 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER",
|
|
/* 86 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options",
|
|
/* 87 */ "cmd ::= DROP DATABASE exists_opt db_name",
|
|
/* 88 */ "cmd ::= USE db_name",
|
|
/* 89 */ "cmd ::= ALTER DATABASE db_name alter_db_options",
|
|
/* 90 */ "cmd ::= FLUSH DATABASE db_name",
|
|
/* 91 */ "cmd ::= TRIM DATABASE db_name speed_opt",
|
|
/* 92 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
|
|
/* 93 */ "not_exists_opt ::= IF NOT EXISTS",
|
|
/* 94 */ "not_exists_opt ::=",
|
|
/* 95 */ "exists_opt ::= IF EXISTS",
|
|
/* 96 */ "exists_opt ::=",
|
|
/* 97 */ "db_options ::=",
|
|
/* 98 */ "db_options ::= db_options BUFFER NK_INTEGER",
|
|
/* 99 */ "db_options ::= db_options CACHEMODEL NK_STRING",
|
|
/* 100 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
|
|
/* 101 */ "db_options ::= db_options COMP NK_INTEGER",
|
|
/* 102 */ "db_options ::= db_options DURATION NK_INTEGER",
|
|
/* 103 */ "db_options ::= db_options DURATION NK_VARIABLE",
|
|
/* 104 */ "db_options ::= db_options MAXROWS NK_INTEGER",
|
|
/* 105 */ "db_options ::= db_options MINROWS NK_INTEGER",
|
|
/* 106 */ "db_options ::= db_options KEEP integer_list",
|
|
/* 107 */ "db_options ::= db_options KEEP variable_list",
|
|
/* 108 */ "db_options ::= db_options PAGES NK_INTEGER",
|
|
/* 109 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
|
|
/* 110 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
|
|
/* 111 */ "db_options ::= db_options PRECISION NK_STRING",
|
|
/* 112 */ "db_options ::= db_options REPLICA NK_INTEGER",
|
|
/* 113 */ "db_options ::= db_options VGROUPS NK_INTEGER",
|
|
/* 114 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
|
|
/* 115 */ "db_options ::= db_options RETENTIONS retention_list",
|
|
/* 116 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
|
|
/* 117 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
|
|
/* 118 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 119 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 120 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 121 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 122 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 123 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
|
|
/* 124 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
|
|
/* 125 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
|
|
/* 126 */ "db_options ::= db_options TABLE_PREFIX signed",
|
|
/* 127 */ "db_options ::= db_options TABLE_SUFFIX signed",
|
|
/* 128 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
|
|
/* 129 */ "alter_db_options ::= alter_db_option",
|
|
/* 130 */ "alter_db_options ::= alter_db_options alter_db_option",
|
|
/* 131 */ "alter_db_option ::= BUFFER NK_INTEGER",
|
|
/* 132 */ "alter_db_option ::= CACHEMODEL NK_STRING",
|
|
/* 133 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
|
|
/* 134 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
|
|
/* 135 */ "alter_db_option ::= KEEP integer_list",
|
|
/* 136 */ "alter_db_option ::= KEEP variable_list",
|
|
/* 137 */ "alter_db_option ::= PAGES NK_INTEGER",
|
|
/* 138 */ "alter_db_option ::= REPLICA NK_INTEGER",
|
|
/* 139 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
|
|
/* 140 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
|
|
/* 141 */ "alter_db_option ::= MINROWS NK_INTEGER",
|
|
/* 142 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
|
|
/* 143 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
/* 144 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
|
|
/* 145 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
/* 146 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
|
|
/* 147 */ "integer_list ::= NK_INTEGER",
|
|
/* 148 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
|
|
/* 149 */ "variable_list ::= NK_VARIABLE",
|
|
/* 150 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
|
|
/* 151 */ "retention_list ::= retention",
|
|
/* 152 */ "retention_list ::= retention_list NK_COMMA retention",
|
|
/* 153 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
|
|
/* 154 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
|
|
/* 155 */ "speed_opt ::=",
|
|
/* 156 */ "speed_opt ::= BWLIMIT NK_INTEGER",
|
|
/* 157 */ "start_opt ::=",
|
|
/* 158 */ "start_opt ::= START WITH NK_INTEGER",
|
|
/* 159 */ "start_opt ::= START WITH NK_STRING",
|
|
/* 160 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
|
|
/* 161 */ "end_opt ::=",
|
|
/* 162 */ "end_opt ::= END WITH NK_INTEGER",
|
|
/* 163 */ "end_opt ::= END WITH NK_STRING",
|
|
/* 164 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
|
|
/* 165 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
|
|
/* 166 */ "cmd ::= CREATE TABLE multi_create_clause",
|
|
/* 167 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
|
|
/* 168 */ "cmd ::= DROP TABLE multi_drop_clause",
|
|
/* 169 */ "cmd ::= DROP STABLE exists_opt full_table_name",
|
|
/* 170 */ "cmd ::= ALTER TABLE alter_table_clause",
|
|
/* 171 */ "cmd ::= ALTER STABLE alter_table_clause",
|
|
/* 172 */ "alter_table_clause ::= full_table_name alter_table_options",
|
|
/* 173 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
|
|
/* 174 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
|
|
/* 175 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
|
|
/* 176 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options",
|
|
/* 177 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
|
|
/* 178 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
|
|
/* 179 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
|
|
/* 180 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
|
|
/* 181 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
|
|
/* 182 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
|
|
/* 183 */ "multi_create_clause ::= create_subtable_clause",
|
|
/* 184 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
|
|
/* 185 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options",
|
|
/* 186 */ "multi_drop_clause ::= drop_table_clause",
|
|
/* 187 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
|
|
/* 188 */ "drop_table_clause ::= exists_opt full_table_name",
|
|
/* 189 */ "specific_cols_opt ::=",
|
|
/* 190 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 191 */ "full_table_name ::= table_name",
|
|
/* 192 */ "full_table_name ::= db_name NK_DOT table_name",
|
|
/* 193 */ "tag_def_list ::= tag_def",
|
|
/* 194 */ "tag_def_list ::= tag_def_list NK_COMMA tag_def",
|
|
/* 195 */ "tag_def ::= column_name type_name",
|
|
/* 196 */ "column_def_list ::= column_def",
|
|
/* 197 */ "column_def_list ::= column_def_list NK_COMMA column_def",
|
|
/* 198 */ "column_def ::= column_name type_name column_options",
|
|
/* 199 */ "type_name ::= BOOL",
|
|
/* 200 */ "type_name ::= TINYINT",
|
|
/* 201 */ "type_name ::= SMALLINT",
|
|
/* 202 */ "type_name ::= INT",
|
|
/* 203 */ "type_name ::= INTEGER",
|
|
/* 204 */ "type_name ::= BIGINT",
|
|
/* 205 */ "type_name ::= FLOAT",
|
|
/* 206 */ "type_name ::= DOUBLE",
|
|
/* 207 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 208 */ "type_name ::= TIMESTAMP",
|
|
/* 209 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 210 */ "type_name ::= TINYINT UNSIGNED",
|
|
/* 211 */ "type_name ::= SMALLINT UNSIGNED",
|
|
/* 212 */ "type_name ::= INT UNSIGNED",
|
|
/* 213 */ "type_name ::= BIGINT UNSIGNED",
|
|
/* 214 */ "type_name ::= JSON",
|
|
/* 215 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
|
|
/* 216 */ "type_name ::= MEDIUMBLOB",
|
|
/* 217 */ "type_name ::= BLOB",
|
|
/* 218 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
|
|
/* 219 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
|
|
/* 220 */ "type_name ::= DECIMAL",
|
|
/* 221 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
|
|
/* 222 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
/* 223 */ "tags_def_opt ::=",
|
|
/* 224 */ "tags_def_opt ::= tags_def",
|
|
/* 225 */ "tags_def ::= TAGS NK_LP tag_def_list NK_RP",
|
|
/* 226 */ "table_options ::=",
|
|
/* 227 */ "table_options ::= table_options COMMENT NK_STRING",
|
|
/* 228 */ "table_options ::= table_options MAX_DELAY duration_list",
|
|
/* 229 */ "table_options ::= table_options WATERMARK duration_list",
|
|
/* 230 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
|
|
/* 231 */ "table_options ::= table_options TTL NK_INTEGER",
|
|
/* 232 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
|
|
/* 233 */ "table_options ::= table_options DELETE_MARK duration_list",
|
|
/* 234 */ "alter_table_options ::= alter_table_option",
|
|
/* 235 */ "alter_table_options ::= alter_table_options alter_table_option",
|
|
/* 236 */ "alter_table_option ::= COMMENT NK_STRING",
|
|
/* 237 */ "alter_table_option ::= TTL NK_INTEGER",
|
|
/* 238 */ "duration_list ::= duration_literal",
|
|
/* 239 */ "duration_list ::= duration_list NK_COMMA duration_literal",
|
|
/* 240 */ "rollup_func_list ::= rollup_func_name",
|
|
/* 241 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
|
|
/* 242 */ "rollup_func_name ::= function_name",
|
|
/* 243 */ "rollup_func_name ::= FIRST",
|
|
/* 244 */ "rollup_func_name ::= LAST",
|
|
/* 245 */ "col_name_list ::= col_name",
|
|
/* 246 */ "col_name_list ::= col_name_list NK_COMMA col_name",
|
|
/* 247 */ "col_name ::= column_name",
|
|
/* 248 */ "cmd ::= SHOW DNODES",
|
|
/* 249 */ "cmd ::= SHOW USERS",
|
|
/* 250 */ "cmd ::= SHOW USER PRIVILEGES",
|
|
/* 251 */ "cmd ::= SHOW db_kind_opt DATABASES",
|
|
/* 252 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
|
|
/* 253 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
|
|
/* 254 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
|
|
/* 255 */ "cmd ::= SHOW MNODES",
|
|
/* 256 */ "cmd ::= SHOW QNODES",
|
|
/* 257 */ "cmd ::= SHOW FUNCTIONS",
|
|
/* 258 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
/* 259 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
/* 260 */ "cmd ::= SHOW STREAMS",
|
|
/* 261 */ "cmd ::= SHOW ACCOUNTS",
|
|
/* 262 */ "cmd ::= SHOW APPS",
|
|
/* 263 */ "cmd ::= SHOW CONNECTIONS",
|
|
/* 264 */ "cmd ::= SHOW LICENCES",
|
|
/* 265 */ "cmd ::= SHOW GRANTS",
|
|
/* 266 */ "cmd ::= SHOW GRANTS FULL",
|
|
/* 267 */ "cmd ::= SHOW GRANTS LOGS",
|
|
/* 268 */ "cmd ::= SHOW CLUSTER MACHINES",
|
|
/* 269 */ "cmd ::= SHOW CREATE DATABASE db_name",
|
|
/* 270 */ "cmd ::= SHOW CREATE TABLE full_table_name",
|
|
/* 271 */ "cmd ::= SHOW CREATE STABLE full_table_name",
|
|
/* 272 */ "cmd ::= SHOW QUERIES",
|
|
/* 273 */ "cmd ::= SHOW SCORES",
|
|
/* 274 */ "cmd ::= SHOW TOPICS",
|
|
/* 275 */ "cmd ::= SHOW VARIABLES",
|
|
/* 276 */ "cmd ::= SHOW CLUSTER VARIABLES",
|
|
/* 277 */ "cmd ::= SHOW LOCAL VARIABLES",
|
|
/* 278 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
|
|
/* 279 */ "cmd ::= SHOW BNODES",
|
|
/* 280 */ "cmd ::= SHOW SNODES",
|
|
/* 281 */ "cmd ::= SHOW CLUSTER",
|
|
/* 282 */ "cmd ::= SHOW TRANSACTIONS",
|
|
/* 283 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
|
|
/* 284 */ "cmd ::= SHOW CONSUMERS",
|
|
/* 285 */ "cmd ::= SHOW SUBSCRIPTIONS",
|
|
/* 286 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
|
|
/* 287 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
|
|
/* 288 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
|
|
/* 289 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
|
|
/* 290 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
|
|
/* 291 */ "cmd ::= SHOW VNODES",
|
|
/* 292 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
|
|
/* 293 */ "cmd ::= SHOW CLUSTER ALIVE",
|
|
/* 294 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt",
|
|
/* 295 */ "cmd ::= SHOW CREATE VIEW full_table_name",
|
|
/* 296 */ "cmd ::= SHOW COMPACTS",
|
|
/* 297 */ "cmd ::= SHOW COMPACT NK_INTEGER",
|
|
/* 298 */ "table_kind_db_name_cond_opt ::=",
|
|
/* 299 */ "table_kind_db_name_cond_opt ::= table_kind",
|
|
/* 300 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 301 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
|
|
/* 302 */ "table_kind ::= NORMAL",
|
|
/* 303 */ "table_kind ::= CHILD",
|
|
/* 304 */ "db_name_cond_opt ::=",
|
|
/* 305 */ "db_name_cond_opt ::= db_name NK_DOT",
|
|
/* 306 */ "like_pattern_opt ::=",
|
|
/* 307 */ "like_pattern_opt ::= LIKE NK_STRING",
|
|
/* 308 */ "table_name_cond ::= table_name",
|
|
/* 309 */ "from_db_opt ::=",
|
|
/* 310 */ "from_db_opt ::= FROM db_name",
|
|
/* 311 */ "tag_list_opt ::=",
|
|
/* 312 */ "tag_list_opt ::= tag_item",
|
|
/* 313 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
|
|
/* 314 */ "tag_item ::= TBNAME",
|
|
/* 315 */ "tag_item ::= QTAGS",
|
|
/* 316 */ "tag_item ::= column_name",
|
|
/* 317 */ "tag_item ::= column_name column_alias",
|
|
/* 318 */ "tag_item ::= column_name AS column_alias",
|
|
/* 319 */ "db_kind_opt ::=",
|
|
/* 320 */ "db_kind_opt ::= USER",
|
|
/* 321 */ "db_kind_opt ::= SYSTEM",
|
|
/* 322 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
|
|
/* 323 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
|
|
/* 324 */ "cmd ::= DROP INDEX exists_opt full_index_name",
|
|
/* 325 */ "full_index_name ::= index_name",
|
|
/* 326 */ "full_index_name ::= db_name NK_DOT index_name",
|
|
/* 327 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
/* 328 */ "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",
|
|
/* 329 */ "func_list ::= func",
|
|
/* 330 */ "func_list ::= func_list NK_COMMA func",
|
|
/* 331 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
|
|
/* 332 */ "sma_func_name ::= function_name",
|
|
/* 333 */ "sma_func_name ::= COUNT",
|
|
/* 334 */ "sma_func_name ::= FIRST",
|
|
/* 335 */ "sma_func_name ::= LAST",
|
|
/* 336 */ "sma_func_name ::= LAST_ROW",
|
|
/* 337 */ "sma_stream_opt ::=",
|
|
/* 338 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
|
|
/* 339 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
|
|
/* 340 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
|
|
/* 341 */ "with_meta ::= AS",
|
|
/* 342 */ "with_meta ::= WITH META AS",
|
|
/* 343 */ "with_meta ::= ONLY META AS",
|
|
/* 344 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
|
|
/* 345 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
|
|
/* 346 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
|
|
/* 347 */ "cmd ::= DROP TOPIC exists_opt topic_name",
|
|
/* 348 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
|
|
/* 349 */ "cmd ::= DESC full_table_name",
|
|
/* 350 */ "cmd ::= DESCRIBE full_table_name",
|
|
/* 351 */ "cmd ::= RESET QUERY CACHE",
|
|
/* 352 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
|
|
/* 353 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
|
|
/* 354 */ "analyze_opt ::=",
|
|
/* 355 */ "analyze_opt ::= ANALYZE",
|
|
/* 356 */ "explain_options ::=",
|
|
/* 357 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
|
|
/* 358 */ "explain_options ::= explain_options RATIO NK_FLOAT",
|
|
/* 359 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
|
|
/* 360 */ "cmd ::= DROP FUNCTION exists_opt function_name",
|
|
/* 361 */ "agg_func_opt ::=",
|
|
/* 362 */ "agg_func_opt ::= AGGREGATE",
|
|
/* 363 */ "bufsize_opt ::=",
|
|
/* 364 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
|
|
/* 365 */ "language_opt ::=",
|
|
/* 366 */ "language_opt ::= LANGUAGE NK_STRING",
|
|
/* 367 */ "or_replace_opt ::=",
|
|
/* 368 */ "or_replace_opt ::= OR REPLACE",
|
|
/* 369 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
|
|
/* 370 */ "cmd ::= DROP VIEW exists_opt full_view_name",
|
|
/* 371 */ "full_view_name ::= view_name",
|
|
/* 372 */ "full_view_name ::= db_name NK_DOT view_name",
|
|
/* 373 */ "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",
|
|
/* 374 */ "cmd ::= DROP STREAM exists_opt stream_name",
|
|
/* 375 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
|
|
/* 376 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
|
|
/* 377 */ "col_list_opt ::=",
|
|
/* 378 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
|
|
/* 379 */ "tag_def_or_ref_opt ::=",
|
|
/* 380 */ "tag_def_or_ref_opt ::= tags_def",
|
|
/* 381 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
|
|
/* 382 */ "stream_options ::=",
|
|
/* 383 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
|
|
/* 384 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
|
|
/* 385 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
|
|
/* 386 */ "stream_options ::= stream_options WATERMARK duration_literal",
|
|
/* 387 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
|
|
/* 388 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
|
|
/* 389 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
|
|
/* 390 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
|
|
/* 391 */ "subtable_opt ::=",
|
|
/* 392 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
|
|
/* 393 */ "ignore_opt ::=",
|
|
/* 394 */ "ignore_opt ::= IGNORE UNTREATED",
|
|
/* 395 */ "cmd ::= KILL CONNECTION NK_INTEGER",
|
|
/* 396 */ "cmd ::= KILL QUERY NK_STRING",
|
|
/* 397 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
|
|
/* 398 */ "cmd ::= KILL COMPACT NK_INTEGER",
|
|
/* 399 */ "cmd ::= BALANCE VGROUP",
|
|
/* 400 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
|
|
/* 401 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
|
|
/* 402 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
|
|
/* 403 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
|
|
/* 404 */ "on_vgroup_id ::=",
|
|
/* 405 */ "on_vgroup_id ::= ON NK_INTEGER",
|
|
/* 406 */ "dnode_list ::= DNODE NK_INTEGER",
|
|
/* 407 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
|
|
/* 408 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
|
|
/* 409 */ "cmd ::= query_or_subquery",
|
|
/* 410 */ "cmd ::= insert_query",
|
|
/* 411 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
|
|
/* 412 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
|
|
/* 413 */ "literal ::= NK_INTEGER",
|
|
/* 414 */ "literal ::= NK_FLOAT",
|
|
/* 415 */ "literal ::= NK_STRING",
|
|
/* 416 */ "literal ::= NK_BOOL",
|
|
/* 417 */ "literal ::= TIMESTAMP NK_STRING",
|
|
/* 418 */ "literal ::= duration_literal",
|
|
/* 419 */ "literal ::= NULL",
|
|
/* 420 */ "literal ::= NK_QUESTION",
|
|
/* 421 */ "duration_literal ::= NK_VARIABLE",
|
|
/* 422 */ "signed ::= NK_INTEGER",
|
|
/* 423 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
/* 424 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
/* 425 */ "signed ::= NK_FLOAT",
|
|
/* 426 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
/* 427 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
/* 428 */ "signed_literal ::= signed",
|
|
/* 429 */ "signed_literal ::= NK_STRING",
|
|
/* 430 */ "signed_literal ::= NK_BOOL",
|
|
/* 431 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
/* 432 */ "signed_literal ::= duration_literal",
|
|
/* 433 */ "signed_literal ::= NULL",
|
|
/* 434 */ "signed_literal ::= literal_func",
|
|
/* 435 */ "signed_literal ::= NK_QUESTION",
|
|
/* 436 */ "literal_list ::= signed_literal",
|
|
/* 437 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
/* 438 */ "db_name ::= NK_ID",
|
|
/* 439 */ "table_name ::= NK_ID",
|
|
/* 440 */ "column_name ::= NK_ID",
|
|
/* 441 */ "function_name ::= NK_ID",
|
|
/* 442 */ "view_name ::= NK_ID",
|
|
/* 443 */ "table_alias ::= NK_ID",
|
|
/* 444 */ "column_alias ::= NK_ID",
|
|
/* 445 */ "column_alias ::= NK_ALIAS",
|
|
/* 446 */ "user_name ::= NK_ID",
|
|
/* 447 */ "topic_name ::= NK_ID",
|
|
/* 448 */ "stream_name ::= NK_ID",
|
|
/* 449 */ "cgroup_name ::= NK_ID",
|
|
/* 450 */ "index_name ::= NK_ID",
|
|
/* 451 */ "expr_or_subquery ::= expression",
|
|
/* 452 */ "expression ::= literal",
|
|
/* 453 */ "expression ::= pseudo_column",
|
|
/* 454 */ "expression ::= column_reference",
|
|
/* 455 */ "expression ::= function_expression",
|
|
/* 456 */ "expression ::= case_when_expression",
|
|
/* 457 */ "expression ::= NK_LP expression NK_RP",
|
|
/* 458 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
/* 459 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
/* 460 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
/* 461 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
/* 462 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
/* 463 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
/* 464 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
/* 465 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
/* 466 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
/* 467 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
/* 468 */ "expression_list ::= expr_or_subquery",
|
|
/* 469 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
/* 470 */ "column_reference ::= column_name",
|
|
/* 471 */ "column_reference ::= table_name NK_DOT column_name",
|
|
/* 472 */ "column_reference ::= NK_ALIAS",
|
|
/* 473 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
|
|
/* 474 */ "pseudo_column ::= ROWTS",
|
|
/* 475 */ "pseudo_column ::= TBNAME",
|
|
/* 476 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
/* 477 */ "pseudo_column ::= QSTART",
|
|
/* 478 */ "pseudo_column ::= QEND",
|
|
/* 479 */ "pseudo_column ::= QDURATION",
|
|
/* 480 */ "pseudo_column ::= WSTART",
|
|
/* 481 */ "pseudo_column ::= WEND",
|
|
/* 482 */ "pseudo_column ::= WDURATION",
|
|
/* 483 */ "pseudo_column ::= IROWTS",
|
|
/* 484 */ "pseudo_column ::= ISFILLED",
|
|
/* 485 */ "pseudo_column ::= QTAGS",
|
|
/* 486 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
/* 487 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
/* 488 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
/* 489 */ "function_expression ::= literal_func",
|
|
/* 490 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
/* 491 */ "literal_func ::= NOW",
|
|
/* 492 */ "noarg_func ::= NOW",
|
|
/* 493 */ "noarg_func ::= TODAY",
|
|
/* 494 */ "noarg_func ::= TIMEZONE",
|
|
/* 495 */ "noarg_func ::= DATABASE",
|
|
/* 496 */ "noarg_func ::= CLIENT_VERSION",
|
|
/* 497 */ "noarg_func ::= SERVER_VERSION",
|
|
/* 498 */ "noarg_func ::= SERVER_STATUS",
|
|
/* 499 */ "noarg_func ::= CURRENT_USER",
|
|
/* 500 */ "noarg_func ::= USER",
|
|
/* 501 */ "star_func ::= COUNT",
|
|
/* 502 */ "star_func ::= FIRST",
|
|
/* 503 */ "star_func ::= LAST",
|
|
/* 504 */ "star_func ::= LAST_ROW",
|
|
/* 505 */ "star_func_para_list ::= NK_STAR",
|
|
/* 506 */ "star_func_para_list ::= other_para_list",
|
|
/* 507 */ "other_para_list ::= star_func_para",
|
|
/* 508 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
/* 509 */ "star_func_para ::= expr_or_subquery",
|
|
/* 510 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
/* 511 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
/* 512 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
/* 513 */ "when_then_list ::= when_then_expr",
|
|
/* 514 */ "when_then_list ::= when_then_list when_then_expr",
|
|
/* 515 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
/* 516 */ "case_when_else_opt ::=",
|
|
/* 517 */ "case_when_else_opt ::= ELSE common_expression",
|
|
/* 518 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
/* 519 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 520 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
/* 521 */ "predicate ::= expr_or_subquery IS NULL",
|
|
/* 522 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
/* 523 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
/* 524 */ "compare_op ::= NK_LT",
|
|
/* 525 */ "compare_op ::= NK_GT",
|
|
/* 526 */ "compare_op ::= NK_LE",
|
|
/* 527 */ "compare_op ::= NK_GE",
|
|
/* 528 */ "compare_op ::= NK_NE",
|
|
/* 529 */ "compare_op ::= NK_EQ",
|
|
/* 530 */ "compare_op ::= LIKE",
|
|
/* 531 */ "compare_op ::= NOT LIKE",
|
|
/* 532 */ "compare_op ::= MATCH",
|
|
/* 533 */ "compare_op ::= NMATCH",
|
|
/* 534 */ "compare_op ::= CONTAINS",
|
|
/* 535 */ "in_op ::= IN",
|
|
/* 536 */ "in_op ::= NOT IN",
|
|
/* 537 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
/* 538 */ "boolean_value_expression ::= boolean_primary",
|
|
/* 539 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
/* 540 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
/* 541 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
/* 542 */ "boolean_primary ::= predicate",
|
|
/* 543 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
/* 544 */ "common_expression ::= expr_or_subquery",
|
|
/* 545 */ "common_expression ::= boolean_value_expression",
|
|
/* 546 */ "from_clause_opt ::=",
|
|
/* 547 */ "from_clause_opt ::= FROM table_reference_list",
|
|
/* 548 */ "table_reference_list ::= table_reference",
|
|
/* 549 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
/* 550 */ "table_reference ::= table_primary",
|
|
/* 551 */ "table_reference ::= joined_table",
|
|
/* 552 */ "table_primary ::= table_name alias_opt",
|
|
/* 553 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
/* 554 */ "table_primary ::= subquery alias_opt",
|
|
/* 555 */ "table_primary ::= parenthesized_joined_table",
|
|
/* 556 */ "alias_opt ::=",
|
|
/* 557 */ "alias_opt ::= table_alias",
|
|
/* 558 */ "alias_opt ::= AS table_alias",
|
|
/* 559 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
/* 560 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
/* 561 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
|
|
/* 562 */ "join_type ::=",
|
|
/* 563 */ "join_type ::= INNER",
|
|
/* 564 */ "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",
|
|
/* 565 */ "hint_list ::=",
|
|
/* 566 */ "hint_list ::= NK_HINT",
|
|
/* 567 */ "tag_mode_opt ::=",
|
|
/* 568 */ "tag_mode_opt ::= TAGS",
|
|
/* 569 */ "set_quantifier_opt ::=",
|
|
/* 570 */ "set_quantifier_opt ::= DISTINCT",
|
|
/* 571 */ "set_quantifier_opt ::= ALL",
|
|
/* 572 */ "select_list ::= select_item",
|
|
/* 573 */ "select_list ::= select_list NK_COMMA select_item",
|
|
/* 574 */ "select_item ::= NK_STAR",
|
|
/* 575 */ "select_item ::= common_expression",
|
|
/* 576 */ "select_item ::= common_expression column_alias",
|
|
/* 577 */ "select_item ::= common_expression AS column_alias",
|
|
/* 578 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
/* 579 */ "where_clause_opt ::=",
|
|
/* 580 */ "where_clause_opt ::= WHERE search_condition",
|
|
/* 581 */ "partition_by_clause_opt ::=",
|
|
/* 582 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
/* 583 */ "partition_list ::= partition_item",
|
|
/* 584 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
/* 585 */ "partition_item ::= expr_or_subquery",
|
|
/* 586 */ "partition_item ::= expr_or_subquery column_alias",
|
|
/* 587 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
/* 588 */ "twindow_clause_opt ::=",
|
|
/* 589 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
|
|
/* 590 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
/* 591 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 592 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
/* 593 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
|
/* 594 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP",
|
|
/* 595 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
/* 596 */ "sliding_opt ::=",
|
|
/* 597 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
|
|
/* 598 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
|
|
/* 599 */ "interval_sliding_duration_literal ::= NK_STRING",
|
|
/* 600 */ "interval_sliding_duration_literal ::= NK_INTEGER",
|
|
/* 601 */ "fill_opt ::=",
|
|
/* 602 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
/* 603 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
/* 604 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
/* 605 */ "fill_mode ::= NONE",
|
|
/* 606 */ "fill_mode ::= PREV",
|
|
/* 607 */ "fill_mode ::= NULL",
|
|
/* 608 */ "fill_mode ::= NULL_F",
|
|
/* 609 */ "fill_mode ::= LINEAR",
|
|
/* 610 */ "fill_mode ::= NEXT",
|
|
/* 611 */ "group_by_clause_opt ::=",
|
|
/* 612 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
/* 613 */ "group_by_list ::= expr_or_subquery",
|
|
/* 614 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
/* 615 */ "having_clause_opt ::=",
|
|
/* 616 */ "having_clause_opt ::= HAVING search_condition",
|
|
/* 617 */ "range_opt ::=",
|
|
/* 618 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
/* 619 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
/* 620 */ "every_opt ::=",
|
|
/* 621 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
/* 622 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
/* 623 */ "query_simple ::= query_specification",
|
|
/* 624 */ "query_simple ::= union_query_expression",
|
|
/* 625 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
/* 626 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
/* 627 */ "query_simple_or_subquery ::= query_simple",
|
|
/* 628 */ "query_simple_or_subquery ::= subquery",
|
|
/* 629 */ "query_or_subquery ::= query_expression",
|
|
/* 630 */ "query_or_subquery ::= subquery",
|
|
/* 631 */ "order_by_clause_opt ::=",
|
|
/* 632 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
/* 633 */ "slimit_clause_opt ::=",
|
|
/* 634 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
/* 635 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
/* 636 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 637 */ "limit_clause_opt ::=",
|
|
/* 638 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
/* 639 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
/* 640 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
/* 641 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
/* 642 */ "subquery ::= NK_LP subquery NK_RP",
|
|
/* 643 */ "search_condition ::= common_expression",
|
|
/* 644 */ "sort_specification_list ::= sort_specification",
|
|
/* 645 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
/* 646 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
/* 647 */ "ordering_specification_opt ::=",
|
|
/* 648 */ "ordering_specification_opt ::= ASC",
|
|
/* 649 */ "ordering_specification_opt ::= DESC",
|
|
/* 650 */ "null_ordering_opt ::=",
|
|
/* 651 */ "null_ordering_opt ::= NULLS FIRST",
|
|
/* 652 */ "null_ordering_opt ::= NULLS LAST",
|
|
/* 653 */ "column_options ::=",
|
|
/* 654 */ "column_options ::= column_options ENCODE NK_STRING",
|
|
/* 655 */ "column_options ::= column_options COMPRESS NK_STRING",
|
|
/* 656 */ "column_options ::= column_options LEVEL NK_STRING",
|
|
};
|
|
#endif /* NDEBUG */
|
|
|
|
|
|
#if YYSTACKDEPTH<=0
|
|
/*
|
|
** Try to increase the size of the parser stack. Return the number
|
|
** of errors. Return 0 on success.
|
|
*/
|
|
static int yyGrowStack(yyParser *p){
|
|
int newSize;
|
|
int idx;
|
|
yyStackEntry *pNew;
|
|
|
|
newSize = p->yystksz*2 + 100;
|
|
idx = p->yytos ? (int)(p->yytos - p->yystack) : 0;
|
|
if( p->yystack==&p->yystk0 ){
|
|
pNew = malloc(newSize*sizeof(pNew[0]));
|
|
if( pNew ) pNew[0] = p->yystk0;
|
|
}else{
|
|
pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
|
|
}
|
|
if( pNew ){
|
|
p->yystack = pNew;
|
|
p->yytos = &p->yystack[idx];
|
|
#ifndef NDEBUG
|
|
if( yyTraceFILE ){
|
|
fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n",
|
|
yyTracePrompt, p->yystksz, newSize);
|
|
}
|
|
#endif
|
|
p->yystksz = newSize;
|
|
}
|
|
return pNew==0;
|
|
}
|
|
#endif
|
|
|
|
/* Datatype of the argument to the memory allocated passed as the
|
|
** second argument to ParseAlloc() below. This can be changed by
|
|
** putting an appropriate #define in the %include section of the input
|
|
** grammar.
|
|
*/
|
|
#ifndef YYMALLOCARGTYPE
|
|
# define YYMALLOCARGTYPE size_t
|
|
#endif
|
|
|
|
/* Initialize a new parser that has already been allocated.
|
|
*/
|
|
void ParseInit(void *yypRawParser ParseCTX_PDECL){
|
|
yyParser *yypParser = (yyParser*)yypRawParser;
|
|
ParseCTX_STORE
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
yypParser->yyhwm = 0;
|
|
#endif
|
|
#if YYSTACKDEPTH<=0
|
|
yypParser->yytos = NULL;
|
|
yypParser->yystack = NULL;
|
|
yypParser->yystksz = 0;
|
|
if( yyGrowStack(yypParser) ){
|
|
yypParser->yystack = &yypParser->yystk0;
|
|
yypParser->yystksz = 1;
|
|
}
|
|
#endif
|
|
#ifndef YYNOERRORRECOVERY
|
|
yypParser->yyerrcnt = -1;
|
|
#endif
|
|
yypParser->yytos = yypParser->yystack;
|
|
yypParser->yystack[0].stateno = 0;
|
|
yypParser->yystack[0].major = 0;
|
|
#if YYSTACKDEPTH>0
|
|
yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1];
|
|
#endif
|
|
}
|
|
|
|
#ifndef Parse_ENGINEALWAYSONSTACK
|
|
/*
|
|
** This function allocates a new parser.
|
|
** The only argument is a pointer to a function which works like
|
|
** malloc.
|
|
**
|
|
** Inputs:
|
|
** A pointer to the function used to allocate memory.
|
|
**
|
|
** Outputs:
|
|
** A pointer to a parser. This pointer is used in subsequent calls
|
|
** to Parse and ParseFree.
|
|
*/
|
|
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
|
|
yyParser *yypParser;
|
|
yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
|
|
if( yypParser ){
|
|
ParseCTX_STORE
|
|
ParseInit(yypParser ParseCTX_PARAM);
|
|
}
|
|
return (void*)yypParser;
|
|
}
|
|
#endif /* Parse_ENGINEALWAYSONSTACK */
|
|
|
|
|
|
/* The following function deletes the "minor type" or semantic value
|
|
** associated with a symbol. The symbol can be either a terminal
|
|
** or nonterminal. "yymajor" is the symbol code, and "yypminor" is
|
|
** a pointer to the value to be deleted. The code used to do the
|
|
** deletions is derived from the %destructor and/or %token_destructor
|
|
** directives of the input grammar.
|
|
*/
|
|
static void yy_destructor(
|
|
yyParser *yypParser, /* The parser */
|
|
YYCODETYPE yymajor, /* Type code for object to destroy */
|
|
YYMINORTYPE *yypminor /* The object to be destroyed */
|
|
){
|
|
ParseARG_FETCH
|
|
ParseCTX_FETCH
|
|
switch( yymajor ){
|
|
/* Here is inserted the actions which take place when a
|
|
** terminal or non-terminal is destroyed. This can happen
|
|
** when the symbol is popped from the stack during a
|
|
** reduce or during error processing or when a parser is
|
|
** being destroyed before it is finished parsing.
|
|
**
|
|
** Note: during a reduce, the only symbols destroyed are those
|
|
** which appear on the RHS of the rule, but which are *not* used
|
|
** inside the C code.
|
|
*/
|
|
/********* Begin destructor definitions ***************************************/
|
|
/* Default NON-TERMINAL Destructor */
|
|
case 354: /* cmd */
|
|
case 357: /* literal */
|
|
case 366: /* with_opt */
|
|
case 372: /* search_condition */
|
|
case 377: /* db_options */
|
|
case 379: /* alter_db_options */
|
|
case 381: /* start_opt */
|
|
case 382: /* end_opt */
|
|
case 386: /* signed */
|
|
case 388: /* retention */
|
|
case 389: /* full_table_name */
|
|
case 392: /* table_options */
|
|
case 396: /* alter_table_clause */
|
|
case 397: /* alter_table_options */
|
|
case 400: /* column_options */
|
|
case 401: /* signed_literal */
|
|
case 402: /* create_subtable_clause */
|
|
case 405: /* drop_table_clause */
|
|
case 408: /* tag_def */
|
|
case 409: /* column_def */
|
|
case 413: /* duration_literal */
|
|
case 414: /* rollup_func_name */
|
|
case 416: /* col_name */
|
|
case 419: /* like_pattern_opt */
|
|
case 420: /* db_name_cond_opt */
|
|
case 421: /* table_name_cond */
|
|
case 422: /* from_db_opt */
|
|
case 425: /* tag_item */
|
|
case 427: /* index_options */
|
|
case 428: /* full_index_name */
|
|
case 431: /* sliding_opt */
|
|
case 432: /* sma_stream_opt */
|
|
case 433: /* func */
|
|
case 436: /* query_or_subquery */
|
|
case 437: /* where_clause_opt */
|
|
case 440: /* explain_options */
|
|
case 441: /* insert_query */
|
|
case 446: /* full_view_name */
|
|
case 449: /* stream_options */
|
|
case 452: /* subtable_opt */
|
|
case 454: /* expression */
|
|
case 457: /* literal_func */
|
|
case 460: /* expr_or_subquery */
|
|
case 461: /* pseudo_column */
|
|
case 462: /* column_reference */
|
|
case 463: /* function_expression */
|
|
case 464: /* case_when_expression */
|
|
case 469: /* star_func_para */
|
|
case 471: /* case_when_else_opt */
|
|
case 472: /* common_expression */
|
|
case 473: /* when_then_expr */
|
|
case 474: /* predicate */
|
|
case 477: /* in_predicate_value */
|
|
case 478: /* boolean_value_expression */
|
|
case 479: /* boolean_primary */
|
|
case 480: /* from_clause_opt */
|
|
case 481: /* table_reference_list */
|
|
case 482: /* table_reference */
|
|
case 483: /* table_primary */
|
|
case 484: /* joined_table */
|
|
case 486: /* subquery */
|
|
case 487: /* parenthesized_joined_table */
|
|
case 489: /* query_specification */
|
|
case 495: /* range_opt */
|
|
case 496: /* every_opt */
|
|
case 497: /* fill_opt */
|
|
case 498: /* twindow_clause_opt */
|
|
case 500: /* having_clause_opt */
|
|
case 501: /* select_item */
|
|
case 503: /* partition_item */
|
|
case 504: /* interval_sliding_duration_literal */
|
|
case 507: /* query_expression */
|
|
case 508: /* query_simple */
|
|
case 510: /* slimit_clause_opt */
|
|
case 511: /* limit_clause_opt */
|
|
case 512: /* union_query_expression */
|
|
case 513: /* query_simple_or_subquery */
|
|
case 515: /* sort_specification */
|
|
{
|
|
#line 7 "sql.y"
|
|
nodesDestroyNode((yypminor->yy896));
|
|
#line 3247 "sql.c"
|
|
}
|
|
break;
|
|
case 355: /* account_options */
|
|
case 356: /* alter_account_options */
|
|
case 358: /* alter_account_option */
|
|
case 380: /* speed_opt */
|
|
case 435: /* with_meta */
|
|
case 444: /* bufsize_opt */
|
|
{
|
|
#line 54 "sql.y"
|
|
|
|
#line 3259 "sql.c"
|
|
}
|
|
break;
|
|
case 359: /* ip_range_list */
|
|
case 360: /* white_list */
|
|
case 361: /* white_list_opt */
|
|
case 383: /* integer_list */
|
|
case 384: /* variable_list */
|
|
case 385: /* retention_list */
|
|
case 390: /* column_def_list */
|
|
case 391: /* tags_def_opt */
|
|
case 393: /* multi_create_clause */
|
|
case 394: /* tags_def */
|
|
case 395: /* multi_drop_clause */
|
|
case 403: /* specific_cols_opt */
|
|
case 404: /* expression_list */
|
|
case 406: /* col_name_list */
|
|
case 407: /* tag_def_list */
|
|
case 410: /* duration_list */
|
|
case 411: /* rollup_func_list */
|
|
case 423: /* tag_list_opt */
|
|
case 430: /* func_list */
|
|
case 450: /* col_list_opt */
|
|
case 451: /* tag_def_or_ref_opt */
|
|
case 456: /* dnode_list */
|
|
case 458: /* literal_list */
|
|
case 466: /* star_func_para_list */
|
|
case 468: /* other_para_list */
|
|
case 470: /* when_then_list */
|
|
case 490: /* hint_list */
|
|
case 493: /* select_list */
|
|
case 494: /* partition_by_clause_opt */
|
|
case 499: /* group_by_clause_opt */
|
|
case 502: /* partition_list */
|
|
case 506: /* group_by_list */
|
|
case 509: /* order_by_clause_opt */
|
|
case 514: /* sort_specification_list */
|
|
{
|
|
#line 85 "sql.y"
|
|
nodesDestroyList((yypminor->yy404));
|
|
#line 3299 "sql.c"
|
|
}
|
|
break;
|
|
case 362: /* user_name */
|
|
case 369: /* db_name */
|
|
case 370: /* table_name */
|
|
case 371: /* topic_name */
|
|
case 373: /* dnode_endpoint */
|
|
case 398: /* column_name */
|
|
case 415: /* function_name */
|
|
case 426: /* column_alias */
|
|
case 429: /* index_name */
|
|
case 434: /* sma_func_name */
|
|
case 438: /* cgroup_name */
|
|
case 445: /* language_opt */
|
|
case 447: /* view_name */
|
|
case 448: /* stream_name */
|
|
case 455: /* on_vgroup_id */
|
|
case 459: /* table_alias */
|
|
case 465: /* star_func */
|
|
case 467: /* noarg_func */
|
|
case 485: /* alias_opt */
|
|
{
|
|
#line 827 "sql.y"
|
|
|
|
#line 3324 "sql.c"
|
|
}
|
|
break;
|
|
case 363: /* sysinfo_opt */
|
|
{
|
|
#line 112 "sql.y"
|
|
|
|
#line 3331 "sql.c"
|
|
}
|
|
break;
|
|
case 364: /* privileges */
|
|
case 367: /* priv_type_list */
|
|
case 368: /* priv_type */
|
|
{
|
|
#line 121 "sql.y"
|
|
|
|
#line 3340 "sql.c"
|
|
}
|
|
break;
|
|
case 365: /* priv_level */
|
|
{
|
|
#line 138 "sql.y"
|
|
|
|
#line 3347 "sql.c"
|
|
}
|
|
break;
|
|
case 374: /* force_opt */
|
|
case 375: /* unsafe_opt */
|
|
case 376: /* not_exists_opt */
|
|
case 378: /* exists_opt */
|
|
case 439: /* analyze_opt */
|
|
case 442: /* or_replace_opt */
|
|
case 443: /* agg_func_opt */
|
|
case 453: /* ignore_opt */
|
|
case 491: /* set_quantifier_opt */
|
|
case 492: /* tag_mode_opt */
|
|
{
|
|
#line 167 "sql.y"
|
|
|
|
#line 3363 "sql.c"
|
|
}
|
|
break;
|
|
case 387: /* alter_db_option */
|
|
case 412: /* alter_table_option */
|
|
{
|
|
#line 269 "sql.y"
|
|
|
|
#line 3371 "sql.c"
|
|
}
|
|
break;
|
|
case 399: /* type_name */
|
|
{
|
|
#line 400 "sql.y"
|
|
|
|
#line 3378 "sql.c"
|
|
}
|
|
break;
|
|
case 417: /* db_kind_opt */
|
|
case 424: /* table_kind */
|
|
{
|
|
#line 568 "sql.y"
|
|
|
|
#line 3386 "sql.c"
|
|
}
|
|
break;
|
|
case 418: /* table_kind_db_name_cond_opt */
|
|
{
|
|
#line 533 "sql.y"
|
|
|
|
#line 3393 "sql.c"
|
|
}
|
|
break;
|
|
case 475: /* compare_op */
|
|
case 476: /* in_op */
|
|
{
|
|
#line 1017 "sql.y"
|
|
|
|
#line 3401 "sql.c"
|
|
}
|
|
break;
|
|
case 488: /* join_type */
|
|
{
|
|
#line 1093 "sql.y"
|
|
|
|
#line 3408 "sql.c"
|
|
}
|
|
break;
|
|
case 505: /* fill_mode */
|
|
{
|
|
#line 1188 "sql.y"
|
|
|
|
#line 3415 "sql.c"
|
|
}
|
|
break;
|
|
case 516: /* ordering_specification_opt */
|
|
{
|
|
#line 1273 "sql.y"
|
|
|
|
#line 3422 "sql.c"
|
|
}
|
|
break;
|
|
case 517: /* null_ordering_opt */
|
|
{
|
|
#line 1279 "sql.y"
|
|
|
|
#line 3429 "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[] = {
|
|
354, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
354, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
355, /* (2) account_options ::= */
|
|
355, /* (3) account_options ::= account_options PPS literal */
|
|
355, /* (4) account_options ::= account_options TSERIES literal */
|
|
355, /* (5) account_options ::= account_options STORAGE literal */
|
|
355, /* (6) account_options ::= account_options STREAMS literal */
|
|
355, /* (7) account_options ::= account_options QTIME literal */
|
|
355, /* (8) account_options ::= account_options DBS literal */
|
|
355, /* (9) account_options ::= account_options USERS literal */
|
|
355, /* (10) account_options ::= account_options CONNS literal */
|
|
355, /* (11) account_options ::= account_options STATE literal */
|
|
356, /* (12) alter_account_options ::= alter_account_option */
|
|
356, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
358, /* (14) alter_account_option ::= PASS literal */
|
|
358, /* (15) alter_account_option ::= PPS literal */
|
|
358, /* (16) alter_account_option ::= TSERIES literal */
|
|
358, /* (17) alter_account_option ::= STORAGE literal */
|
|
358, /* (18) alter_account_option ::= STREAMS literal */
|
|
358, /* (19) alter_account_option ::= QTIME literal */
|
|
358, /* (20) alter_account_option ::= DBS literal */
|
|
358, /* (21) alter_account_option ::= USERS literal */
|
|
358, /* (22) alter_account_option ::= CONNS literal */
|
|
358, /* (23) alter_account_option ::= STATE literal */
|
|
359, /* (24) ip_range_list ::= NK_STRING */
|
|
359, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
360, /* (26) white_list ::= HOST ip_range_list */
|
|
361, /* (27) white_list_opt ::= */
|
|
361, /* (28) white_list_opt ::= white_list */
|
|
354, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
354, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
354, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
354, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
354, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
354, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
354, /* (35) cmd ::= DROP USER user_name */
|
|
363, /* (36) sysinfo_opt ::= */
|
|
363, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
354, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
354, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
364, /* (40) privileges ::= ALL */
|
|
364, /* (41) privileges ::= priv_type_list */
|
|
364, /* (42) privileges ::= SUBSCRIBE */
|
|
367, /* (43) priv_type_list ::= priv_type */
|
|
367, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
368, /* (45) priv_type ::= READ */
|
|
368, /* (46) priv_type ::= WRITE */
|
|
368, /* (47) priv_type ::= ALTER */
|
|
365, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
365, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
|
|
365, /* (50) priv_level ::= db_name NK_DOT table_name */
|
|
365, /* (51) priv_level ::= topic_name */
|
|
366, /* (52) with_opt ::= */
|
|
366, /* (53) with_opt ::= WITH search_condition */
|
|
354, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
|
|
354, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
354, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
354, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
354, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
354, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
354, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
354, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
354, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
354, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
354, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
373, /* (65) dnode_endpoint ::= NK_STRING */
|
|
373, /* (66) dnode_endpoint ::= NK_ID */
|
|
373, /* (67) dnode_endpoint ::= NK_IPTOKEN */
|
|
374, /* (68) force_opt ::= */
|
|
374, /* (69) force_opt ::= FORCE */
|
|
375, /* (70) unsafe_opt ::= UNSAFE */
|
|
354, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
|
|
354, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
354, /* (73) cmd ::= ALTER LOCAL NK_STRING */
|
|
354, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
354, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
354, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
354, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
354, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
354, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
354, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
354, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
354, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
354, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
354, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
354, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
354, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
354, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
|
|
354, /* (88) cmd ::= USE db_name */
|
|
354, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
354, /* (90) cmd ::= FLUSH DATABASE db_name */
|
|
354, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
354, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
376, /* (93) not_exists_opt ::= IF NOT EXISTS */
|
|
376, /* (94) not_exists_opt ::= */
|
|
378, /* (95) exists_opt ::= IF EXISTS */
|
|
378, /* (96) exists_opt ::= */
|
|
377, /* (97) db_options ::= */
|
|
377, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
|
|
377, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
377, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
377, /* (101) db_options ::= db_options COMP NK_INTEGER */
|
|
377, /* (102) db_options ::= db_options DURATION NK_INTEGER */
|
|
377, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
|
|
377, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
377, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
|
|
377, /* (106) db_options ::= db_options KEEP integer_list */
|
|
377, /* (107) db_options ::= db_options KEEP variable_list */
|
|
377, /* (108) db_options ::= db_options PAGES NK_INTEGER */
|
|
377, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
377, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
377, /* (111) db_options ::= db_options PRECISION NK_STRING */
|
|
377, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
|
|
377, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
377, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
377, /* (115) db_options ::= db_options RETENTIONS retention_list */
|
|
377, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
377, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
377, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
377, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
377, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
377, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
377, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
377, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
377, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
377, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
377, /* (126) db_options ::= db_options TABLE_PREFIX signed */
|
|
377, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
|
|
377, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
379, /* (129) alter_db_options ::= alter_db_option */
|
|
379, /* (130) alter_db_options ::= alter_db_options alter_db_option */
|
|
387, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
|
|
387, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
387, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
387, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
387, /* (135) alter_db_option ::= KEEP integer_list */
|
|
387, /* (136) alter_db_option ::= KEEP variable_list */
|
|
387, /* (137) alter_db_option ::= PAGES NK_INTEGER */
|
|
387, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
|
|
387, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
387, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
387, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
|
|
387, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
387, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
387, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
387, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
387, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
383, /* (147) integer_list ::= NK_INTEGER */
|
|
383, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
384, /* (149) variable_list ::= NK_VARIABLE */
|
|
384, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
385, /* (151) retention_list ::= retention */
|
|
385, /* (152) retention_list ::= retention_list NK_COMMA retention */
|
|
388, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
388, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
380, /* (155) speed_opt ::= */
|
|
380, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
381, /* (157) start_opt ::= */
|
|
381, /* (158) start_opt ::= START WITH NK_INTEGER */
|
|
381, /* (159) start_opt ::= START WITH NK_STRING */
|
|
381, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
382, /* (161) end_opt ::= */
|
|
382, /* (162) end_opt ::= END WITH NK_INTEGER */
|
|
382, /* (163) end_opt ::= END WITH NK_STRING */
|
|
382, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
354, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
354, /* (166) cmd ::= CREATE TABLE multi_create_clause */
|
|
354, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
354, /* (168) cmd ::= DROP TABLE multi_drop_clause */
|
|
354, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
354, /* (170) cmd ::= ALTER TABLE alter_table_clause */
|
|
354, /* (171) cmd ::= ALTER STABLE alter_table_clause */
|
|
396, /* (172) alter_table_clause ::= full_table_name alter_table_options */
|
|
396, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
396, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
396, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
396, /* (176) alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */
|
|
396, /* (177) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
396, /* (178) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
396, /* (179) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
396, /* (180) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
396, /* (181) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
396, /* (182) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
393, /* (183) multi_create_clause ::= create_subtable_clause */
|
|
393, /* (184) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
402, /* (185) 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 */
|
|
395, /* (186) multi_drop_clause ::= drop_table_clause */
|
|
395, /* (187) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
405, /* (188) drop_table_clause ::= exists_opt full_table_name */
|
|
403, /* (189) specific_cols_opt ::= */
|
|
403, /* (190) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
389, /* (191) full_table_name ::= table_name */
|
|
389, /* (192) full_table_name ::= db_name NK_DOT table_name */
|
|
407, /* (193) tag_def_list ::= tag_def */
|
|
407, /* (194) tag_def_list ::= tag_def_list NK_COMMA tag_def */
|
|
408, /* (195) tag_def ::= column_name type_name */
|
|
390, /* (196) column_def_list ::= column_def */
|
|
390, /* (197) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
409, /* (198) column_def ::= column_name type_name column_options */
|
|
399, /* (199) type_name ::= BOOL */
|
|
399, /* (200) type_name ::= TINYINT */
|
|
399, /* (201) type_name ::= SMALLINT */
|
|
399, /* (202) type_name ::= INT */
|
|
399, /* (203) type_name ::= INTEGER */
|
|
399, /* (204) type_name ::= BIGINT */
|
|
399, /* (205) type_name ::= FLOAT */
|
|
399, /* (206) type_name ::= DOUBLE */
|
|
399, /* (207) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
399, /* (208) type_name ::= TIMESTAMP */
|
|
399, /* (209) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
399, /* (210) type_name ::= TINYINT UNSIGNED */
|
|
399, /* (211) type_name ::= SMALLINT UNSIGNED */
|
|
399, /* (212) type_name ::= INT UNSIGNED */
|
|
399, /* (213) type_name ::= BIGINT UNSIGNED */
|
|
399, /* (214) type_name ::= JSON */
|
|
399, /* (215) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
399, /* (216) type_name ::= MEDIUMBLOB */
|
|
399, /* (217) type_name ::= BLOB */
|
|
399, /* (218) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
399, /* (219) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
399, /* (220) type_name ::= DECIMAL */
|
|
399, /* (221) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
399, /* (222) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
391, /* (223) tags_def_opt ::= */
|
|
391, /* (224) tags_def_opt ::= tags_def */
|
|
394, /* (225) tags_def ::= TAGS NK_LP tag_def_list NK_RP */
|
|
392, /* (226) table_options ::= */
|
|
392, /* (227) table_options ::= table_options COMMENT NK_STRING */
|
|
392, /* (228) table_options ::= table_options MAX_DELAY duration_list */
|
|
392, /* (229) table_options ::= table_options WATERMARK duration_list */
|
|
392, /* (230) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
392, /* (231) table_options ::= table_options TTL NK_INTEGER */
|
|
392, /* (232) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
392, /* (233) table_options ::= table_options DELETE_MARK duration_list */
|
|
397, /* (234) alter_table_options ::= alter_table_option */
|
|
397, /* (235) alter_table_options ::= alter_table_options alter_table_option */
|
|
412, /* (236) alter_table_option ::= COMMENT NK_STRING */
|
|
412, /* (237) alter_table_option ::= TTL NK_INTEGER */
|
|
410, /* (238) duration_list ::= duration_literal */
|
|
410, /* (239) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
411, /* (240) rollup_func_list ::= rollup_func_name */
|
|
411, /* (241) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
414, /* (242) rollup_func_name ::= function_name */
|
|
414, /* (243) rollup_func_name ::= FIRST */
|
|
414, /* (244) rollup_func_name ::= LAST */
|
|
406, /* (245) col_name_list ::= col_name */
|
|
406, /* (246) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
416, /* (247) col_name ::= column_name */
|
|
354, /* (248) cmd ::= SHOW DNODES */
|
|
354, /* (249) cmd ::= SHOW USERS */
|
|
354, /* (250) cmd ::= SHOW USER PRIVILEGES */
|
|
354, /* (251) cmd ::= SHOW db_kind_opt DATABASES */
|
|
354, /* (252) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
354, /* (253) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
354, /* (254) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
354, /* (255) cmd ::= SHOW MNODES */
|
|
354, /* (256) cmd ::= SHOW QNODES */
|
|
354, /* (257) cmd ::= SHOW FUNCTIONS */
|
|
354, /* (258) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
354, /* (259) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
354, /* (260) cmd ::= SHOW STREAMS */
|
|
354, /* (261) cmd ::= SHOW ACCOUNTS */
|
|
354, /* (262) cmd ::= SHOW APPS */
|
|
354, /* (263) cmd ::= SHOW CONNECTIONS */
|
|
354, /* (264) cmd ::= SHOW LICENCES */
|
|
354, /* (265) cmd ::= SHOW GRANTS */
|
|
354, /* (266) cmd ::= SHOW GRANTS FULL */
|
|
354, /* (267) cmd ::= SHOW GRANTS LOGS */
|
|
354, /* (268) cmd ::= SHOW CLUSTER MACHINES */
|
|
354, /* (269) cmd ::= SHOW CREATE DATABASE db_name */
|
|
354, /* (270) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
354, /* (271) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
354, /* (272) cmd ::= SHOW QUERIES */
|
|
354, /* (273) cmd ::= SHOW SCORES */
|
|
354, /* (274) cmd ::= SHOW TOPICS */
|
|
354, /* (275) cmd ::= SHOW VARIABLES */
|
|
354, /* (276) cmd ::= SHOW CLUSTER VARIABLES */
|
|
354, /* (277) cmd ::= SHOW LOCAL VARIABLES */
|
|
354, /* (278) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
354, /* (279) cmd ::= SHOW BNODES */
|
|
354, /* (280) cmd ::= SHOW SNODES */
|
|
354, /* (281) cmd ::= SHOW CLUSTER */
|
|
354, /* (282) cmd ::= SHOW TRANSACTIONS */
|
|
354, /* (283) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
354, /* (284) cmd ::= SHOW CONSUMERS */
|
|
354, /* (285) cmd ::= SHOW SUBSCRIPTIONS */
|
|
354, /* (286) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
354, /* (287) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
354, /* (288) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
354, /* (289) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
354, /* (290) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
354, /* (291) cmd ::= SHOW VNODES */
|
|
354, /* (292) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
354, /* (293) cmd ::= SHOW CLUSTER ALIVE */
|
|
354, /* (294) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
|
|
354, /* (295) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
354, /* (296) cmd ::= SHOW COMPACTS */
|
|
354, /* (297) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
418, /* (298) table_kind_db_name_cond_opt ::= */
|
|
418, /* (299) table_kind_db_name_cond_opt ::= table_kind */
|
|
418, /* (300) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
418, /* (301) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
424, /* (302) table_kind ::= NORMAL */
|
|
424, /* (303) table_kind ::= CHILD */
|
|
420, /* (304) db_name_cond_opt ::= */
|
|
420, /* (305) db_name_cond_opt ::= db_name NK_DOT */
|
|
419, /* (306) like_pattern_opt ::= */
|
|
419, /* (307) like_pattern_opt ::= LIKE NK_STRING */
|
|
421, /* (308) table_name_cond ::= table_name */
|
|
422, /* (309) from_db_opt ::= */
|
|
422, /* (310) from_db_opt ::= FROM db_name */
|
|
423, /* (311) tag_list_opt ::= */
|
|
423, /* (312) tag_list_opt ::= tag_item */
|
|
423, /* (313) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
425, /* (314) tag_item ::= TBNAME */
|
|
425, /* (315) tag_item ::= QTAGS */
|
|
425, /* (316) tag_item ::= column_name */
|
|
425, /* (317) tag_item ::= column_name column_alias */
|
|
425, /* (318) tag_item ::= column_name AS column_alias */
|
|
417, /* (319) db_kind_opt ::= */
|
|
417, /* (320) db_kind_opt ::= USER */
|
|
417, /* (321) db_kind_opt ::= SYSTEM */
|
|
354, /* (322) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
354, /* (323) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
354, /* (324) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
428, /* (325) full_index_name ::= index_name */
|
|
428, /* (326) full_index_name ::= db_name NK_DOT index_name */
|
|
427, /* (327) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
427, /* (328) 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 */
|
|
430, /* (329) func_list ::= func */
|
|
430, /* (330) func_list ::= func_list NK_COMMA func */
|
|
433, /* (331) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
434, /* (332) sma_func_name ::= function_name */
|
|
434, /* (333) sma_func_name ::= COUNT */
|
|
434, /* (334) sma_func_name ::= FIRST */
|
|
434, /* (335) sma_func_name ::= LAST */
|
|
434, /* (336) sma_func_name ::= LAST_ROW */
|
|
432, /* (337) sma_stream_opt ::= */
|
|
432, /* (338) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
432, /* (339) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
432, /* (340) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
435, /* (341) with_meta ::= AS */
|
|
435, /* (342) with_meta ::= WITH META AS */
|
|
435, /* (343) with_meta ::= ONLY META AS */
|
|
354, /* (344) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
354, /* (345) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
354, /* (346) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
354, /* (347) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
354, /* (348) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
354, /* (349) cmd ::= DESC full_table_name */
|
|
354, /* (350) cmd ::= DESCRIBE full_table_name */
|
|
354, /* (351) cmd ::= RESET QUERY CACHE */
|
|
354, /* (352) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
354, /* (353) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
439, /* (354) analyze_opt ::= */
|
|
439, /* (355) analyze_opt ::= ANALYZE */
|
|
440, /* (356) explain_options ::= */
|
|
440, /* (357) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
440, /* (358) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
354, /* (359) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
354, /* (360) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
443, /* (361) agg_func_opt ::= */
|
|
443, /* (362) agg_func_opt ::= AGGREGATE */
|
|
444, /* (363) bufsize_opt ::= */
|
|
444, /* (364) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
445, /* (365) language_opt ::= */
|
|
445, /* (366) language_opt ::= LANGUAGE NK_STRING */
|
|
442, /* (367) or_replace_opt ::= */
|
|
442, /* (368) or_replace_opt ::= OR REPLACE */
|
|
354, /* (369) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
354, /* (370) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
446, /* (371) full_view_name ::= view_name */
|
|
446, /* (372) full_view_name ::= db_name NK_DOT view_name */
|
|
354, /* (373) 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, /* (374) cmd ::= DROP STREAM exists_opt stream_name */
|
|
354, /* (375) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
354, /* (376) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
450, /* (377) col_list_opt ::= */
|
|
450, /* (378) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
451, /* (379) tag_def_or_ref_opt ::= */
|
|
451, /* (380) tag_def_or_ref_opt ::= tags_def */
|
|
451, /* (381) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
449, /* (382) stream_options ::= */
|
|
449, /* (383) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
449, /* (384) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
449, /* (385) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
449, /* (386) stream_options ::= stream_options WATERMARK duration_literal */
|
|
449, /* (387) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
449, /* (388) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
449, /* (389) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
449, /* (390) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
452, /* (391) subtable_opt ::= */
|
|
452, /* (392) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
453, /* (393) ignore_opt ::= */
|
|
453, /* (394) ignore_opt ::= IGNORE UNTREATED */
|
|
354, /* (395) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
354, /* (396) cmd ::= KILL QUERY NK_STRING */
|
|
354, /* (397) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
354, /* (398) cmd ::= KILL COMPACT NK_INTEGER */
|
|
354, /* (399) cmd ::= BALANCE VGROUP */
|
|
354, /* (400) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
354, /* (401) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
354, /* (402) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
354, /* (403) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
455, /* (404) on_vgroup_id ::= */
|
|
455, /* (405) on_vgroup_id ::= ON NK_INTEGER */
|
|
456, /* (406) dnode_list ::= DNODE NK_INTEGER */
|
|
456, /* (407) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
354, /* (408) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
354, /* (409) cmd ::= query_or_subquery */
|
|
354, /* (410) cmd ::= insert_query */
|
|
441, /* (411) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
441, /* (412) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
357, /* (413) literal ::= NK_INTEGER */
|
|
357, /* (414) literal ::= NK_FLOAT */
|
|
357, /* (415) literal ::= NK_STRING */
|
|
357, /* (416) literal ::= NK_BOOL */
|
|
357, /* (417) literal ::= TIMESTAMP NK_STRING */
|
|
357, /* (418) literal ::= duration_literal */
|
|
357, /* (419) literal ::= NULL */
|
|
357, /* (420) literal ::= NK_QUESTION */
|
|
413, /* (421) duration_literal ::= NK_VARIABLE */
|
|
386, /* (422) signed ::= NK_INTEGER */
|
|
386, /* (423) signed ::= NK_PLUS NK_INTEGER */
|
|
386, /* (424) signed ::= NK_MINUS NK_INTEGER */
|
|
386, /* (425) signed ::= NK_FLOAT */
|
|
386, /* (426) signed ::= NK_PLUS NK_FLOAT */
|
|
386, /* (427) signed ::= NK_MINUS NK_FLOAT */
|
|
401, /* (428) signed_literal ::= signed */
|
|
401, /* (429) signed_literal ::= NK_STRING */
|
|
401, /* (430) signed_literal ::= NK_BOOL */
|
|
401, /* (431) signed_literal ::= TIMESTAMP NK_STRING */
|
|
401, /* (432) signed_literal ::= duration_literal */
|
|
401, /* (433) signed_literal ::= NULL */
|
|
401, /* (434) signed_literal ::= literal_func */
|
|
401, /* (435) signed_literal ::= NK_QUESTION */
|
|
458, /* (436) literal_list ::= signed_literal */
|
|
458, /* (437) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
369, /* (438) db_name ::= NK_ID */
|
|
370, /* (439) table_name ::= NK_ID */
|
|
398, /* (440) column_name ::= NK_ID */
|
|
415, /* (441) function_name ::= NK_ID */
|
|
447, /* (442) view_name ::= NK_ID */
|
|
459, /* (443) table_alias ::= NK_ID */
|
|
426, /* (444) column_alias ::= NK_ID */
|
|
426, /* (445) column_alias ::= NK_ALIAS */
|
|
362, /* (446) user_name ::= NK_ID */
|
|
371, /* (447) topic_name ::= NK_ID */
|
|
448, /* (448) stream_name ::= NK_ID */
|
|
438, /* (449) cgroup_name ::= NK_ID */
|
|
429, /* (450) index_name ::= NK_ID */
|
|
460, /* (451) expr_or_subquery ::= expression */
|
|
454, /* (452) expression ::= literal */
|
|
454, /* (453) expression ::= pseudo_column */
|
|
454, /* (454) expression ::= column_reference */
|
|
454, /* (455) expression ::= function_expression */
|
|
454, /* (456) expression ::= case_when_expression */
|
|
454, /* (457) expression ::= NK_LP expression NK_RP */
|
|
454, /* (458) expression ::= NK_PLUS expr_or_subquery */
|
|
454, /* (459) expression ::= NK_MINUS expr_or_subquery */
|
|
454, /* (460) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
454, /* (461) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
454, /* (462) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
454, /* (463) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
454, /* (464) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
454, /* (465) expression ::= column_reference NK_ARROW NK_STRING */
|
|
454, /* (466) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
454, /* (467) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
404, /* (468) expression_list ::= expr_or_subquery */
|
|
404, /* (469) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
462, /* (470) column_reference ::= column_name */
|
|
462, /* (471) column_reference ::= table_name NK_DOT column_name */
|
|
462, /* (472) column_reference ::= NK_ALIAS */
|
|
462, /* (473) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
461, /* (474) pseudo_column ::= ROWTS */
|
|
461, /* (475) pseudo_column ::= TBNAME */
|
|
461, /* (476) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
461, /* (477) pseudo_column ::= QSTART */
|
|
461, /* (478) pseudo_column ::= QEND */
|
|
461, /* (479) pseudo_column ::= QDURATION */
|
|
461, /* (480) pseudo_column ::= WSTART */
|
|
461, /* (481) pseudo_column ::= WEND */
|
|
461, /* (482) pseudo_column ::= WDURATION */
|
|
461, /* (483) pseudo_column ::= IROWTS */
|
|
461, /* (484) pseudo_column ::= ISFILLED */
|
|
461, /* (485) pseudo_column ::= QTAGS */
|
|
463, /* (486) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
463, /* (487) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
463, /* (488) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
463, /* (489) function_expression ::= literal_func */
|
|
457, /* (490) literal_func ::= noarg_func NK_LP NK_RP */
|
|
457, /* (491) literal_func ::= NOW */
|
|
467, /* (492) noarg_func ::= NOW */
|
|
467, /* (493) noarg_func ::= TODAY */
|
|
467, /* (494) noarg_func ::= TIMEZONE */
|
|
467, /* (495) noarg_func ::= DATABASE */
|
|
467, /* (496) noarg_func ::= CLIENT_VERSION */
|
|
467, /* (497) noarg_func ::= SERVER_VERSION */
|
|
467, /* (498) noarg_func ::= SERVER_STATUS */
|
|
467, /* (499) noarg_func ::= CURRENT_USER */
|
|
467, /* (500) noarg_func ::= USER */
|
|
465, /* (501) star_func ::= COUNT */
|
|
465, /* (502) star_func ::= FIRST */
|
|
465, /* (503) star_func ::= LAST */
|
|
465, /* (504) star_func ::= LAST_ROW */
|
|
466, /* (505) star_func_para_list ::= NK_STAR */
|
|
466, /* (506) star_func_para_list ::= other_para_list */
|
|
468, /* (507) other_para_list ::= star_func_para */
|
|
468, /* (508) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
469, /* (509) star_func_para ::= expr_or_subquery */
|
|
469, /* (510) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
464, /* (511) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
464, /* (512) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
470, /* (513) when_then_list ::= when_then_expr */
|
|
470, /* (514) when_then_list ::= when_then_list when_then_expr */
|
|
473, /* (515) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
471, /* (516) case_when_else_opt ::= */
|
|
471, /* (517) case_when_else_opt ::= ELSE common_expression */
|
|
474, /* (518) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
474, /* (519) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
474, /* (520) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
474, /* (521) predicate ::= expr_or_subquery IS NULL */
|
|
474, /* (522) predicate ::= expr_or_subquery IS NOT NULL */
|
|
474, /* (523) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
475, /* (524) compare_op ::= NK_LT */
|
|
475, /* (525) compare_op ::= NK_GT */
|
|
475, /* (526) compare_op ::= NK_LE */
|
|
475, /* (527) compare_op ::= NK_GE */
|
|
475, /* (528) compare_op ::= NK_NE */
|
|
475, /* (529) compare_op ::= NK_EQ */
|
|
475, /* (530) compare_op ::= LIKE */
|
|
475, /* (531) compare_op ::= NOT LIKE */
|
|
475, /* (532) compare_op ::= MATCH */
|
|
475, /* (533) compare_op ::= NMATCH */
|
|
475, /* (534) compare_op ::= CONTAINS */
|
|
476, /* (535) in_op ::= IN */
|
|
476, /* (536) in_op ::= NOT IN */
|
|
477, /* (537) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
478, /* (538) boolean_value_expression ::= boolean_primary */
|
|
478, /* (539) boolean_value_expression ::= NOT boolean_primary */
|
|
478, /* (540) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
478, /* (541) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
479, /* (542) boolean_primary ::= predicate */
|
|
479, /* (543) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
472, /* (544) common_expression ::= expr_or_subquery */
|
|
472, /* (545) common_expression ::= boolean_value_expression */
|
|
480, /* (546) from_clause_opt ::= */
|
|
480, /* (547) from_clause_opt ::= FROM table_reference_list */
|
|
481, /* (548) table_reference_list ::= table_reference */
|
|
481, /* (549) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
482, /* (550) table_reference ::= table_primary */
|
|
482, /* (551) table_reference ::= joined_table */
|
|
483, /* (552) table_primary ::= table_name alias_opt */
|
|
483, /* (553) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
483, /* (554) table_primary ::= subquery alias_opt */
|
|
483, /* (555) table_primary ::= parenthesized_joined_table */
|
|
485, /* (556) alias_opt ::= */
|
|
485, /* (557) alias_opt ::= table_alias */
|
|
485, /* (558) alias_opt ::= AS table_alias */
|
|
487, /* (559) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
487, /* (560) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
484, /* (561) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
488, /* (562) join_type ::= */
|
|
488, /* (563) join_type ::= INNER */
|
|
489, /* (564) 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 */
|
|
490, /* (565) hint_list ::= */
|
|
490, /* (566) hint_list ::= NK_HINT */
|
|
492, /* (567) tag_mode_opt ::= */
|
|
492, /* (568) tag_mode_opt ::= TAGS */
|
|
491, /* (569) set_quantifier_opt ::= */
|
|
491, /* (570) set_quantifier_opt ::= DISTINCT */
|
|
491, /* (571) set_quantifier_opt ::= ALL */
|
|
493, /* (572) select_list ::= select_item */
|
|
493, /* (573) select_list ::= select_list NK_COMMA select_item */
|
|
501, /* (574) select_item ::= NK_STAR */
|
|
501, /* (575) select_item ::= common_expression */
|
|
501, /* (576) select_item ::= common_expression column_alias */
|
|
501, /* (577) select_item ::= common_expression AS column_alias */
|
|
501, /* (578) select_item ::= table_name NK_DOT NK_STAR */
|
|
437, /* (579) where_clause_opt ::= */
|
|
437, /* (580) where_clause_opt ::= WHERE search_condition */
|
|
494, /* (581) partition_by_clause_opt ::= */
|
|
494, /* (582) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
502, /* (583) partition_list ::= partition_item */
|
|
502, /* (584) partition_list ::= partition_list NK_COMMA partition_item */
|
|
503, /* (585) partition_item ::= expr_or_subquery */
|
|
503, /* (586) partition_item ::= expr_or_subquery column_alias */
|
|
503, /* (587) partition_item ::= expr_or_subquery AS column_alias */
|
|
498, /* (588) twindow_clause_opt ::= */
|
|
498, /* (589) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
498, /* (590) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
498, /* (591) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
498, /* (592) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
498, /* (593) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
498, /* (594) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
|
|
498, /* (595) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
431, /* (596) sliding_opt ::= */
|
|
431, /* (597) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
504, /* (598) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
504, /* (599) interval_sliding_duration_literal ::= NK_STRING */
|
|
504, /* (600) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
497, /* (601) fill_opt ::= */
|
|
497, /* (602) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
497, /* (603) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
497, /* (604) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
505, /* (605) fill_mode ::= NONE */
|
|
505, /* (606) fill_mode ::= PREV */
|
|
505, /* (607) fill_mode ::= NULL */
|
|
505, /* (608) fill_mode ::= NULL_F */
|
|
505, /* (609) fill_mode ::= LINEAR */
|
|
505, /* (610) fill_mode ::= NEXT */
|
|
499, /* (611) group_by_clause_opt ::= */
|
|
499, /* (612) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
506, /* (613) group_by_list ::= expr_or_subquery */
|
|
506, /* (614) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
500, /* (615) having_clause_opt ::= */
|
|
500, /* (616) having_clause_opt ::= HAVING search_condition */
|
|
495, /* (617) range_opt ::= */
|
|
495, /* (618) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
495, /* (619) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
496, /* (620) every_opt ::= */
|
|
496, /* (621) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
507, /* (622) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
508, /* (623) query_simple ::= query_specification */
|
|
508, /* (624) query_simple ::= union_query_expression */
|
|
512, /* (625) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
512, /* (626) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
513, /* (627) query_simple_or_subquery ::= query_simple */
|
|
513, /* (628) query_simple_or_subquery ::= subquery */
|
|
436, /* (629) query_or_subquery ::= query_expression */
|
|
436, /* (630) query_or_subquery ::= subquery */
|
|
509, /* (631) order_by_clause_opt ::= */
|
|
509, /* (632) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
510, /* (633) slimit_clause_opt ::= */
|
|
510, /* (634) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
510, /* (635) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
510, /* (636) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
511, /* (637) limit_clause_opt ::= */
|
|
511, /* (638) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
511, /* (639) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
511, /* (640) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
486, /* (641) subquery ::= NK_LP query_expression NK_RP */
|
|
486, /* (642) subquery ::= NK_LP subquery NK_RP */
|
|
372, /* (643) search_condition ::= common_expression */
|
|
514, /* (644) sort_specification_list ::= sort_specification */
|
|
514, /* (645) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
515, /* (646) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
516, /* (647) ordering_specification_opt ::= */
|
|
516, /* (648) ordering_specification_opt ::= ASC */
|
|
516, /* (649) ordering_specification_opt ::= DESC */
|
|
517, /* (650) null_ordering_opt ::= */
|
|
517, /* (651) null_ordering_opt ::= NULLS FIRST */
|
|
517, /* (652) null_ordering_opt ::= NULLS LAST */
|
|
400, /* (653) column_options ::= */
|
|
400, /* (654) column_options ::= column_options ENCODE NK_STRING */
|
|
400, /* (655) column_options ::= column_options COMPRESS NK_STRING */
|
|
400, /* (656) column_options ::= column_options LEVEL NK_STRING */
|
|
};
|
|
|
|
/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
|
|
** of symbols on the right-hand side of that rule. */
|
|
static const signed char yyRuleInfoNRhs[] = {
|
|
-6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
-4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
0, /* (2) account_options ::= */
|
|
-3, /* (3) account_options ::= account_options PPS literal */
|
|
-3, /* (4) account_options ::= account_options TSERIES literal */
|
|
-3, /* (5) account_options ::= account_options STORAGE literal */
|
|
-3, /* (6) account_options ::= account_options STREAMS literal */
|
|
-3, /* (7) account_options ::= account_options QTIME literal */
|
|
-3, /* (8) account_options ::= account_options DBS literal */
|
|
-3, /* (9) account_options ::= account_options USERS literal */
|
|
-3, /* (10) account_options ::= account_options CONNS literal */
|
|
-3, /* (11) account_options ::= account_options STATE literal */
|
|
-1, /* (12) alter_account_options ::= alter_account_option */
|
|
-2, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
-2, /* (14) alter_account_option ::= PASS literal */
|
|
-2, /* (15) alter_account_option ::= PPS literal */
|
|
-2, /* (16) alter_account_option ::= TSERIES literal */
|
|
-2, /* (17) alter_account_option ::= STORAGE literal */
|
|
-2, /* (18) alter_account_option ::= STREAMS literal */
|
|
-2, /* (19) alter_account_option ::= QTIME literal */
|
|
-2, /* (20) alter_account_option ::= DBS literal */
|
|
-2, /* (21) alter_account_option ::= USERS literal */
|
|
-2, /* (22) alter_account_option ::= CONNS literal */
|
|
-2, /* (23) alter_account_option ::= STATE literal */
|
|
-1, /* (24) ip_range_list ::= NK_STRING */
|
|
-3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
-2, /* (26) white_list ::= HOST ip_range_list */
|
|
0, /* (27) white_list_opt ::= */
|
|
-1, /* (28) white_list_opt ::= white_list */
|
|
-7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
-5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
-5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
-5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
-5, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
-5, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
-3, /* (35) cmd ::= DROP USER user_name */
|
|
0, /* (36) sysinfo_opt ::= */
|
|
-2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
-7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
-7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
-1, /* (40) privileges ::= ALL */
|
|
-1, /* (41) privileges ::= priv_type_list */
|
|
-1, /* (42) privileges ::= SUBSCRIBE */
|
|
-1, /* (43) priv_type_list ::= priv_type */
|
|
-3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
-1, /* (45) priv_type ::= READ */
|
|
-1, /* (46) priv_type ::= WRITE */
|
|
-1, /* (47) priv_type ::= ALTER */
|
|
-3, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
-3, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
|
|
-3, /* (50) priv_level ::= db_name NK_DOT table_name */
|
|
-1, /* (51) priv_level ::= topic_name */
|
|
0, /* (52) with_opt ::= */
|
|
-2, /* (53) with_opt ::= WITH search_condition */
|
|
-3, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
|
|
-5, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
-4, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
-4, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
-4, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
-4, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
-4, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
-5, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
-4, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
-5, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
-3, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
-1, /* (65) dnode_endpoint ::= NK_STRING */
|
|
-1, /* (66) dnode_endpoint ::= NK_ID */
|
|
-1, /* (67) dnode_endpoint ::= NK_IPTOKEN */
|
|
0, /* (68) force_opt ::= */
|
|
-1, /* (69) force_opt ::= FORCE */
|
|
-1, /* (70) unsafe_opt ::= UNSAFE */
|
|
-3, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
|
|
-4, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
-3, /* (73) cmd ::= ALTER LOCAL NK_STRING */
|
|
-4, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
-5, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
-5, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
-5, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
-5, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
-5, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
-5, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
-4, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
|
|
-2, /* (88) cmd ::= USE db_name */
|
|
-4, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
-3, /* (90) cmd ::= FLUSH DATABASE db_name */
|
|
-4, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
-5, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
-3, /* (93) not_exists_opt ::= IF NOT EXISTS */
|
|
0, /* (94) not_exists_opt ::= */
|
|
-2, /* (95) exists_opt ::= IF EXISTS */
|
|
0, /* (96) exists_opt ::= */
|
|
0, /* (97) db_options ::= */
|
|
-3, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
|
|
-3, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
-3, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
-3, /* (101) db_options ::= db_options COMP NK_INTEGER */
|
|
-3, /* (102) db_options ::= db_options DURATION NK_INTEGER */
|
|
-3, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
|
|
-3, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
-3, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
|
|
-3, /* (106) db_options ::= db_options KEEP integer_list */
|
|
-3, /* (107) db_options ::= db_options KEEP variable_list */
|
|
-3, /* (108) db_options ::= db_options PAGES NK_INTEGER */
|
|
-3, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
-3, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
-3, /* (111) db_options ::= db_options PRECISION NK_STRING */
|
|
-3, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
|
|
-3, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
-3, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
-3, /* (115) db_options ::= db_options RETENTIONS retention_list */
|
|
-3, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
-3, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
-3, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-3, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-4, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-3, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
-4, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-3, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
-3, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
-3, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
-3, /* (126) db_options ::= db_options TABLE_PREFIX signed */
|
|
-3, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
|
|
-3, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
-1, /* (129) alter_db_options ::= alter_db_option */
|
|
-2, /* (130) alter_db_options ::= alter_db_options alter_db_option */
|
|
-2, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
|
|
-2, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
-2, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
-2, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
-2, /* (135) alter_db_option ::= KEEP integer_list */
|
|
-2, /* (136) alter_db_option ::= KEEP variable_list */
|
|
-2, /* (137) alter_db_option ::= PAGES NK_INTEGER */
|
|
-2, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
|
|
-2, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
-2, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
-2, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
|
|
-2, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
-3, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
-2, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
-3, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
-2, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
-1, /* (147) integer_list ::= NK_INTEGER */
|
|
-3, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
-1, /* (149) variable_list ::= NK_VARIABLE */
|
|
-3, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
-1, /* (151) retention_list ::= retention */
|
|
-3, /* (152) retention_list ::= retention_list NK_COMMA retention */
|
|
-3, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
-3, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
0, /* (155) speed_opt ::= */
|
|
-2, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
0, /* (157) start_opt ::= */
|
|
-3, /* (158) start_opt ::= START WITH NK_INTEGER */
|
|
-3, /* (159) start_opt ::= START WITH NK_STRING */
|
|
-4, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
0, /* (161) end_opt ::= */
|
|
-3, /* (162) end_opt ::= END WITH NK_INTEGER */
|
|
-3, /* (163) end_opt ::= END WITH NK_STRING */
|
|
-4, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
-9, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
-3, /* (166) cmd ::= CREATE TABLE multi_create_clause */
|
|
-9, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
-3, /* (168) cmd ::= DROP TABLE multi_drop_clause */
|
|
-4, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
-3, /* (170) cmd ::= ALTER TABLE alter_table_clause */
|
|
-3, /* (171) cmd ::= ALTER STABLE alter_table_clause */
|
|
-2, /* (172) alter_table_clause ::= full_table_name alter_table_options */
|
|
-5, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
-4, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
-5, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
-5, /* (176) alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */
|
|
-5, /* (177) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
-5, /* (178) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
-4, /* (179) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
-5, /* (180) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
-5, /* (181) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
-6, /* (182) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
-1, /* (183) multi_create_clause ::= create_subtable_clause */
|
|
-2, /* (184) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
-10, /* (185) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
-1, /* (186) multi_drop_clause ::= drop_table_clause */
|
|
-3, /* (187) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
-2, /* (188) drop_table_clause ::= exists_opt full_table_name */
|
|
0, /* (189) specific_cols_opt ::= */
|
|
-3, /* (190) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
-1, /* (191) full_table_name ::= table_name */
|
|
-3, /* (192) full_table_name ::= db_name NK_DOT table_name */
|
|
-1, /* (193) tag_def_list ::= tag_def */
|
|
-3, /* (194) tag_def_list ::= tag_def_list NK_COMMA tag_def */
|
|
-2, /* (195) tag_def ::= column_name type_name */
|
|
-1, /* (196) column_def_list ::= column_def */
|
|
-3, /* (197) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
-3, /* (198) column_def ::= column_name type_name column_options */
|
|
-1, /* (199) type_name ::= BOOL */
|
|
-1, /* (200) type_name ::= TINYINT */
|
|
-1, /* (201) type_name ::= SMALLINT */
|
|
-1, /* (202) type_name ::= INT */
|
|
-1, /* (203) type_name ::= INTEGER */
|
|
-1, /* (204) type_name ::= BIGINT */
|
|
-1, /* (205) type_name ::= FLOAT */
|
|
-1, /* (206) type_name ::= DOUBLE */
|
|
-4, /* (207) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (208) type_name ::= TIMESTAMP */
|
|
-4, /* (209) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
-2, /* (210) type_name ::= TINYINT UNSIGNED */
|
|
-2, /* (211) type_name ::= SMALLINT UNSIGNED */
|
|
-2, /* (212) type_name ::= INT UNSIGNED */
|
|
-2, /* (213) type_name ::= BIGINT UNSIGNED */
|
|
-1, /* (214) type_name ::= JSON */
|
|
-4, /* (215) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (216) type_name ::= MEDIUMBLOB */
|
|
-1, /* (217) type_name ::= BLOB */
|
|
-4, /* (218) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
-4, /* (219) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
-1, /* (220) type_name ::= DECIMAL */
|
|
-4, /* (221) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
-6, /* (222) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
0, /* (223) tags_def_opt ::= */
|
|
-1, /* (224) tags_def_opt ::= tags_def */
|
|
-4, /* (225) tags_def ::= TAGS NK_LP tag_def_list NK_RP */
|
|
0, /* (226) table_options ::= */
|
|
-3, /* (227) table_options ::= table_options COMMENT NK_STRING */
|
|
-3, /* (228) table_options ::= table_options MAX_DELAY duration_list */
|
|
-3, /* (229) table_options ::= table_options WATERMARK duration_list */
|
|
-5, /* (230) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
-3, /* (231) table_options ::= table_options TTL NK_INTEGER */
|
|
-5, /* (232) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
-3, /* (233) table_options ::= table_options DELETE_MARK duration_list */
|
|
-1, /* (234) alter_table_options ::= alter_table_option */
|
|
-2, /* (235) alter_table_options ::= alter_table_options alter_table_option */
|
|
-2, /* (236) alter_table_option ::= COMMENT NK_STRING */
|
|
-2, /* (237) alter_table_option ::= TTL NK_INTEGER */
|
|
-1, /* (238) duration_list ::= duration_literal */
|
|
-3, /* (239) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
-1, /* (240) rollup_func_list ::= rollup_func_name */
|
|
-3, /* (241) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
-1, /* (242) rollup_func_name ::= function_name */
|
|
-1, /* (243) rollup_func_name ::= FIRST */
|
|
-1, /* (244) rollup_func_name ::= LAST */
|
|
-1, /* (245) col_name_list ::= col_name */
|
|
-3, /* (246) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
-1, /* (247) col_name ::= column_name */
|
|
-2, /* (248) cmd ::= SHOW DNODES */
|
|
-2, /* (249) cmd ::= SHOW USERS */
|
|
-3, /* (250) cmd ::= SHOW USER PRIVILEGES */
|
|
-3, /* (251) cmd ::= SHOW db_kind_opt DATABASES */
|
|
-4, /* (252) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
-4, /* (253) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
-3, /* (254) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
-2, /* (255) cmd ::= SHOW MNODES */
|
|
-2, /* (256) cmd ::= SHOW QNODES */
|
|
-2, /* (257) cmd ::= SHOW FUNCTIONS */
|
|
-5, /* (258) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
-6, /* (259) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
-2, /* (260) cmd ::= SHOW STREAMS */
|
|
-2, /* (261) cmd ::= SHOW ACCOUNTS */
|
|
-2, /* (262) cmd ::= SHOW APPS */
|
|
-2, /* (263) cmd ::= SHOW CONNECTIONS */
|
|
-2, /* (264) cmd ::= SHOW LICENCES */
|
|
-2, /* (265) cmd ::= SHOW GRANTS */
|
|
-3, /* (266) cmd ::= SHOW GRANTS FULL */
|
|
-3, /* (267) cmd ::= SHOW GRANTS LOGS */
|
|
-3, /* (268) cmd ::= SHOW CLUSTER MACHINES */
|
|
-4, /* (269) cmd ::= SHOW CREATE DATABASE db_name */
|
|
-4, /* (270) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
-4, /* (271) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
-2, /* (272) cmd ::= SHOW QUERIES */
|
|
-2, /* (273) cmd ::= SHOW SCORES */
|
|
-2, /* (274) cmd ::= SHOW TOPICS */
|
|
-2, /* (275) cmd ::= SHOW VARIABLES */
|
|
-3, /* (276) cmd ::= SHOW CLUSTER VARIABLES */
|
|
-3, /* (277) cmd ::= SHOW LOCAL VARIABLES */
|
|
-5, /* (278) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
-2, /* (279) cmd ::= SHOW BNODES */
|
|
-2, /* (280) cmd ::= SHOW SNODES */
|
|
-2, /* (281) cmd ::= SHOW CLUSTER */
|
|
-2, /* (282) cmd ::= SHOW TRANSACTIONS */
|
|
-4, /* (283) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
-2, /* (284) cmd ::= SHOW CONSUMERS */
|
|
-2, /* (285) cmd ::= SHOW SUBSCRIPTIONS */
|
|
-5, /* (286) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
-6, /* (287) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
-7, /* (288) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
-8, /* (289) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
-5, /* (290) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
-2, /* (291) cmd ::= SHOW VNODES */
|
|
-3, /* (292) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
-3, /* (293) cmd ::= SHOW CLUSTER ALIVE */
|
|
-4, /* (294) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
|
|
-4, /* (295) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
-2, /* (296) cmd ::= SHOW COMPACTS */
|
|
-3, /* (297) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
0, /* (298) table_kind_db_name_cond_opt ::= */
|
|
-1, /* (299) table_kind_db_name_cond_opt ::= table_kind */
|
|
-2, /* (300) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
-3, /* (301) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
-1, /* (302) table_kind ::= NORMAL */
|
|
-1, /* (303) table_kind ::= CHILD */
|
|
0, /* (304) db_name_cond_opt ::= */
|
|
-2, /* (305) db_name_cond_opt ::= db_name NK_DOT */
|
|
0, /* (306) like_pattern_opt ::= */
|
|
-2, /* (307) like_pattern_opt ::= LIKE NK_STRING */
|
|
-1, /* (308) table_name_cond ::= table_name */
|
|
0, /* (309) from_db_opt ::= */
|
|
-2, /* (310) from_db_opt ::= FROM db_name */
|
|
0, /* (311) tag_list_opt ::= */
|
|
-1, /* (312) tag_list_opt ::= tag_item */
|
|
-3, /* (313) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
-1, /* (314) tag_item ::= TBNAME */
|
|
-1, /* (315) tag_item ::= QTAGS */
|
|
-1, /* (316) tag_item ::= column_name */
|
|
-2, /* (317) tag_item ::= column_name column_alias */
|
|
-3, /* (318) tag_item ::= column_name AS column_alias */
|
|
0, /* (319) db_kind_opt ::= */
|
|
-1, /* (320) db_kind_opt ::= USER */
|
|
-1, /* (321) db_kind_opt ::= SYSTEM */
|
|
-8, /* (322) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
-9, /* (323) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
-4, /* (324) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
-1, /* (325) full_index_name ::= index_name */
|
|
-3, /* (326) full_index_name ::= db_name NK_DOT index_name */
|
|
-10, /* (327) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
-12, /* (328) 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, /* (329) func_list ::= func */
|
|
-3, /* (330) func_list ::= func_list NK_COMMA func */
|
|
-4, /* (331) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
-1, /* (332) sma_func_name ::= function_name */
|
|
-1, /* (333) sma_func_name ::= COUNT */
|
|
-1, /* (334) sma_func_name ::= FIRST */
|
|
-1, /* (335) sma_func_name ::= LAST */
|
|
-1, /* (336) sma_func_name ::= LAST_ROW */
|
|
0, /* (337) sma_stream_opt ::= */
|
|
-3, /* (338) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
-3, /* (339) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
-3, /* (340) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
-1, /* (341) with_meta ::= AS */
|
|
-3, /* (342) with_meta ::= WITH META AS */
|
|
-3, /* (343) with_meta ::= ONLY META AS */
|
|
-6, /* (344) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
-7, /* (345) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
-8, /* (346) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
-4, /* (347) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
-7, /* (348) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
-2, /* (349) cmd ::= DESC full_table_name */
|
|
-2, /* (350) cmd ::= DESCRIBE full_table_name */
|
|
-3, /* (351) cmd ::= RESET QUERY CACHE */
|
|
-4, /* (352) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
-4, /* (353) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
0, /* (354) analyze_opt ::= */
|
|
-1, /* (355) analyze_opt ::= ANALYZE */
|
|
0, /* (356) explain_options ::= */
|
|
-3, /* (357) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
-3, /* (358) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
-12, /* (359) 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, /* (360) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
0, /* (361) agg_func_opt ::= */
|
|
-1, /* (362) agg_func_opt ::= AGGREGATE */
|
|
0, /* (363) bufsize_opt ::= */
|
|
-2, /* (364) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
0, /* (365) language_opt ::= */
|
|
-2, /* (366) language_opt ::= LANGUAGE NK_STRING */
|
|
0, /* (367) or_replace_opt ::= */
|
|
-2, /* (368) or_replace_opt ::= OR REPLACE */
|
|
-6, /* (369) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
-4, /* (370) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
-1, /* (371) full_view_name ::= view_name */
|
|
-3, /* (372) full_view_name ::= db_name NK_DOT view_name */
|
|
-12, /* (373) 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, /* (374) cmd ::= DROP STREAM exists_opt stream_name */
|
|
-4, /* (375) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
-5, /* (376) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
0, /* (377) col_list_opt ::= */
|
|
-3, /* (378) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
0, /* (379) tag_def_or_ref_opt ::= */
|
|
-1, /* (380) tag_def_or_ref_opt ::= tags_def */
|
|
-4, /* (381) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
0, /* (382) stream_options ::= */
|
|
-3, /* (383) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
-3, /* (384) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
-4, /* (385) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
-3, /* (386) stream_options ::= stream_options WATERMARK duration_literal */
|
|
-4, /* (387) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
-3, /* (388) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
-3, /* (389) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
-4, /* (390) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
0, /* (391) subtable_opt ::= */
|
|
-4, /* (392) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
0, /* (393) ignore_opt ::= */
|
|
-2, /* (394) ignore_opt ::= IGNORE UNTREATED */
|
|
-3, /* (395) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
-3, /* (396) cmd ::= KILL QUERY NK_STRING */
|
|
-3, /* (397) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
-3, /* (398) cmd ::= KILL COMPACT NK_INTEGER */
|
|
-2, /* (399) cmd ::= BALANCE VGROUP */
|
|
-4, /* (400) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
-4, /* (401) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
-4, /* (402) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
-3, /* (403) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
0, /* (404) on_vgroup_id ::= */
|
|
-2, /* (405) on_vgroup_id ::= ON NK_INTEGER */
|
|
-2, /* (406) dnode_list ::= DNODE NK_INTEGER */
|
|
-3, /* (407) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
-4, /* (408) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
-1, /* (409) cmd ::= query_or_subquery */
|
|
-1, /* (410) cmd ::= insert_query */
|
|
-7, /* (411) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
-4, /* (412) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
-1, /* (413) literal ::= NK_INTEGER */
|
|
-1, /* (414) literal ::= NK_FLOAT */
|
|
-1, /* (415) literal ::= NK_STRING */
|
|
-1, /* (416) literal ::= NK_BOOL */
|
|
-2, /* (417) literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (418) literal ::= duration_literal */
|
|
-1, /* (419) literal ::= NULL */
|
|
-1, /* (420) literal ::= NK_QUESTION */
|
|
-1, /* (421) duration_literal ::= NK_VARIABLE */
|
|
-1, /* (422) signed ::= NK_INTEGER */
|
|
-2, /* (423) signed ::= NK_PLUS NK_INTEGER */
|
|
-2, /* (424) signed ::= NK_MINUS NK_INTEGER */
|
|
-1, /* (425) signed ::= NK_FLOAT */
|
|
-2, /* (426) signed ::= NK_PLUS NK_FLOAT */
|
|
-2, /* (427) signed ::= NK_MINUS NK_FLOAT */
|
|
-1, /* (428) signed_literal ::= signed */
|
|
-1, /* (429) signed_literal ::= NK_STRING */
|
|
-1, /* (430) signed_literal ::= NK_BOOL */
|
|
-2, /* (431) signed_literal ::= TIMESTAMP NK_STRING */
|
|
-1, /* (432) signed_literal ::= duration_literal */
|
|
-1, /* (433) signed_literal ::= NULL */
|
|
-1, /* (434) signed_literal ::= literal_func */
|
|
-1, /* (435) signed_literal ::= NK_QUESTION */
|
|
-1, /* (436) literal_list ::= signed_literal */
|
|
-3, /* (437) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
-1, /* (438) db_name ::= NK_ID */
|
|
-1, /* (439) table_name ::= NK_ID */
|
|
-1, /* (440) column_name ::= NK_ID */
|
|
-1, /* (441) function_name ::= NK_ID */
|
|
-1, /* (442) view_name ::= NK_ID */
|
|
-1, /* (443) table_alias ::= NK_ID */
|
|
-1, /* (444) column_alias ::= NK_ID */
|
|
-1, /* (445) column_alias ::= NK_ALIAS */
|
|
-1, /* (446) user_name ::= NK_ID */
|
|
-1, /* (447) topic_name ::= NK_ID */
|
|
-1, /* (448) stream_name ::= NK_ID */
|
|
-1, /* (449) cgroup_name ::= NK_ID */
|
|
-1, /* (450) index_name ::= NK_ID */
|
|
-1, /* (451) expr_or_subquery ::= expression */
|
|
-1, /* (452) expression ::= literal */
|
|
-1, /* (453) expression ::= pseudo_column */
|
|
-1, /* (454) expression ::= column_reference */
|
|
-1, /* (455) expression ::= function_expression */
|
|
-1, /* (456) expression ::= case_when_expression */
|
|
-3, /* (457) expression ::= NK_LP expression NK_RP */
|
|
-2, /* (458) expression ::= NK_PLUS expr_or_subquery */
|
|
-2, /* (459) expression ::= NK_MINUS expr_or_subquery */
|
|
-3, /* (460) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
-3, /* (461) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
-3, /* (462) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
-3, /* (463) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
-3, /* (464) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
-3, /* (465) expression ::= column_reference NK_ARROW NK_STRING */
|
|
-3, /* (466) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
-3, /* (467) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
-1, /* (468) expression_list ::= expr_or_subquery */
|
|
-3, /* (469) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
-1, /* (470) column_reference ::= column_name */
|
|
-3, /* (471) column_reference ::= table_name NK_DOT column_name */
|
|
-1, /* (472) column_reference ::= NK_ALIAS */
|
|
-3, /* (473) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
-1, /* (474) pseudo_column ::= ROWTS */
|
|
-1, /* (475) pseudo_column ::= TBNAME */
|
|
-3, /* (476) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
-1, /* (477) pseudo_column ::= QSTART */
|
|
-1, /* (478) pseudo_column ::= QEND */
|
|
-1, /* (479) pseudo_column ::= QDURATION */
|
|
-1, /* (480) pseudo_column ::= WSTART */
|
|
-1, /* (481) pseudo_column ::= WEND */
|
|
-1, /* (482) pseudo_column ::= WDURATION */
|
|
-1, /* (483) pseudo_column ::= IROWTS */
|
|
-1, /* (484) pseudo_column ::= ISFILLED */
|
|
-1, /* (485) pseudo_column ::= QTAGS */
|
|
-4, /* (486) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
-4, /* (487) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
-6, /* (488) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
-1, /* (489) function_expression ::= literal_func */
|
|
-3, /* (490) literal_func ::= noarg_func NK_LP NK_RP */
|
|
-1, /* (491) literal_func ::= NOW */
|
|
-1, /* (492) noarg_func ::= NOW */
|
|
-1, /* (493) noarg_func ::= TODAY */
|
|
-1, /* (494) noarg_func ::= TIMEZONE */
|
|
-1, /* (495) noarg_func ::= DATABASE */
|
|
-1, /* (496) noarg_func ::= CLIENT_VERSION */
|
|
-1, /* (497) noarg_func ::= SERVER_VERSION */
|
|
-1, /* (498) noarg_func ::= SERVER_STATUS */
|
|
-1, /* (499) noarg_func ::= CURRENT_USER */
|
|
-1, /* (500) noarg_func ::= USER */
|
|
-1, /* (501) star_func ::= COUNT */
|
|
-1, /* (502) star_func ::= FIRST */
|
|
-1, /* (503) star_func ::= LAST */
|
|
-1, /* (504) star_func ::= LAST_ROW */
|
|
-1, /* (505) star_func_para_list ::= NK_STAR */
|
|
-1, /* (506) star_func_para_list ::= other_para_list */
|
|
-1, /* (507) other_para_list ::= star_func_para */
|
|
-3, /* (508) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
-1, /* (509) star_func_para ::= expr_or_subquery */
|
|
-3, /* (510) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
-4, /* (511) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
-5, /* (512) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
-1, /* (513) when_then_list ::= when_then_expr */
|
|
-2, /* (514) when_then_list ::= when_then_list when_then_expr */
|
|
-4, /* (515) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
0, /* (516) case_when_else_opt ::= */
|
|
-2, /* (517) case_when_else_opt ::= ELSE common_expression */
|
|
-3, /* (518) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
-5, /* (519) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-6, /* (520) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
-3, /* (521) predicate ::= expr_or_subquery IS NULL */
|
|
-4, /* (522) predicate ::= expr_or_subquery IS NOT NULL */
|
|
-3, /* (523) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
-1, /* (524) compare_op ::= NK_LT */
|
|
-1, /* (525) compare_op ::= NK_GT */
|
|
-1, /* (526) compare_op ::= NK_LE */
|
|
-1, /* (527) compare_op ::= NK_GE */
|
|
-1, /* (528) compare_op ::= NK_NE */
|
|
-1, /* (529) compare_op ::= NK_EQ */
|
|
-1, /* (530) compare_op ::= LIKE */
|
|
-2, /* (531) compare_op ::= NOT LIKE */
|
|
-1, /* (532) compare_op ::= MATCH */
|
|
-1, /* (533) compare_op ::= NMATCH */
|
|
-1, /* (534) compare_op ::= CONTAINS */
|
|
-1, /* (535) in_op ::= IN */
|
|
-2, /* (536) in_op ::= NOT IN */
|
|
-3, /* (537) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
-1, /* (538) boolean_value_expression ::= boolean_primary */
|
|
-2, /* (539) boolean_value_expression ::= NOT boolean_primary */
|
|
-3, /* (540) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
-3, /* (541) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
-1, /* (542) boolean_primary ::= predicate */
|
|
-3, /* (543) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
-1, /* (544) common_expression ::= expr_or_subquery */
|
|
-1, /* (545) common_expression ::= boolean_value_expression */
|
|
0, /* (546) from_clause_opt ::= */
|
|
-2, /* (547) from_clause_opt ::= FROM table_reference_list */
|
|
-1, /* (548) table_reference_list ::= table_reference */
|
|
-3, /* (549) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
-1, /* (550) table_reference ::= table_primary */
|
|
-1, /* (551) table_reference ::= joined_table */
|
|
-2, /* (552) table_primary ::= table_name alias_opt */
|
|
-4, /* (553) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
-2, /* (554) table_primary ::= subquery alias_opt */
|
|
-1, /* (555) table_primary ::= parenthesized_joined_table */
|
|
0, /* (556) alias_opt ::= */
|
|
-1, /* (557) alias_opt ::= table_alias */
|
|
-2, /* (558) alias_opt ::= AS table_alias */
|
|
-3, /* (559) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
-3, /* (560) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
-6, /* (561) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
0, /* (562) join_type ::= */
|
|
-1, /* (563) join_type ::= INNER */
|
|
-14, /* (564) 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, /* (565) hint_list ::= */
|
|
-1, /* (566) hint_list ::= NK_HINT */
|
|
0, /* (567) tag_mode_opt ::= */
|
|
-1, /* (568) tag_mode_opt ::= TAGS */
|
|
0, /* (569) set_quantifier_opt ::= */
|
|
-1, /* (570) set_quantifier_opt ::= DISTINCT */
|
|
-1, /* (571) set_quantifier_opt ::= ALL */
|
|
-1, /* (572) select_list ::= select_item */
|
|
-3, /* (573) select_list ::= select_list NK_COMMA select_item */
|
|
-1, /* (574) select_item ::= NK_STAR */
|
|
-1, /* (575) select_item ::= common_expression */
|
|
-2, /* (576) select_item ::= common_expression column_alias */
|
|
-3, /* (577) select_item ::= common_expression AS column_alias */
|
|
-3, /* (578) select_item ::= table_name NK_DOT NK_STAR */
|
|
0, /* (579) where_clause_opt ::= */
|
|
-2, /* (580) where_clause_opt ::= WHERE search_condition */
|
|
0, /* (581) partition_by_clause_opt ::= */
|
|
-3, /* (582) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
-1, /* (583) partition_list ::= partition_item */
|
|
-3, /* (584) partition_list ::= partition_list NK_COMMA partition_item */
|
|
-1, /* (585) partition_item ::= expr_or_subquery */
|
|
-2, /* (586) partition_item ::= expr_or_subquery column_alias */
|
|
-3, /* (587) partition_item ::= expr_or_subquery AS column_alias */
|
|
0, /* (588) twindow_clause_opt ::= */
|
|
-6, /* (589) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
-4, /* (590) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
-6, /* (591) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
-8, /* (592) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
-7, /* (593) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
-4, /* (594) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
|
|
-6, /* (595) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
0, /* (596) sliding_opt ::= */
|
|
-4, /* (597) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
-1, /* (598) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
-1, /* (599) interval_sliding_duration_literal ::= NK_STRING */
|
|
-1, /* (600) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
0, /* (601) fill_opt ::= */
|
|
-4, /* (602) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
-6, /* (603) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
-6, /* (604) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
-1, /* (605) fill_mode ::= NONE */
|
|
-1, /* (606) fill_mode ::= PREV */
|
|
-1, /* (607) fill_mode ::= NULL */
|
|
-1, /* (608) fill_mode ::= NULL_F */
|
|
-1, /* (609) fill_mode ::= LINEAR */
|
|
-1, /* (610) fill_mode ::= NEXT */
|
|
0, /* (611) group_by_clause_opt ::= */
|
|
-3, /* (612) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
-1, /* (613) group_by_list ::= expr_or_subquery */
|
|
-3, /* (614) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
0, /* (615) having_clause_opt ::= */
|
|
-2, /* (616) having_clause_opt ::= HAVING search_condition */
|
|
0, /* (617) range_opt ::= */
|
|
-6, /* (618) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
-4, /* (619) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
0, /* (620) every_opt ::= */
|
|
-4, /* (621) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
-4, /* (622) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
-1, /* (623) query_simple ::= query_specification */
|
|
-1, /* (624) query_simple ::= union_query_expression */
|
|
-4, /* (625) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
-3, /* (626) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
-1, /* (627) query_simple_or_subquery ::= query_simple */
|
|
-1, /* (628) query_simple_or_subquery ::= subquery */
|
|
-1, /* (629) query_or_subquery ::= query_expression */
|
|
-1, /* (630) query_or_subquery ::= subquery */
|
|
0, /* (631) order_by_clause_opt ::= */
|
|
-3, /* (632) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
0, /* (633) slimit_clause_opt ::= */
|
|
-2, /* (634) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
-4, /* (635) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
-4, /* (636) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
0, /* (637) limit_clause_opt ::= */
|
|
-2, /* (638) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
-4, /* (639) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
-4, /* (640) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
-3, /* (641) subquery ::= NK_LP query_expression NK_RP */
|
|
-3, /* (642) subquery ::= NK_LP subquery NK_RP */
|
|
-1, /* (643) search_condition ::= common_expression */
|
|
-1, /* (644) sort_specification_list ::= sort_specification */
|
|
-3, /* (645) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
-3, /* (646) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
0, /* (647) ordering_specification_opt ::= */
|
|
-1, /* (648) ordering_specification_opt ::= ASC */
|
|
-1, /* (649) ordering_specification_opt ::= DESC */
|
|
0, /* (650) null_ordering_opt ::= */
|
|
-2, /* (651) null_ordering_opt ::= NULLS FIRST */
|
|
-2, /* (652) null_ordering_opt ::= NULLS LAST */
|
|
0, /* (653) column_options ::= */
|
|
-3, /* (654) column_options ::= column_options ENCODE NK_STRING */
|
|
-3, /* (655) column_options ::= column_options COMPRESS NK_STRING */
|
|
-3, /* (656) column_options ::= column_options LEVEL NK_STRING */
|
|
};
|
|
|
|
static void yy_accept(yyParser*); /* Forward Declaration */
|
|
|
|
/*
|
|
** Perform a reduce action and the shift that must immediately
|
|
** follow the reduce.
|
|
**
|
|
** The yyLookahead and yyLookaheadToken parameters provide reduce actions
|
|
** access to the lookahead token (if any). The yyLookahead will be YYNOCODE
|
|
** if the lookahead token has already been consumed. As this procedure is
|
|
** only called from one place, optimizing compilers will in-line it, which
|
|
** means that the extra parameters have no performance impact.
|
|
*/
|
|
static YYACTIONTYPE yy_reduce(
|
|
yyParser *yypParser, /* The parser */
|
|
unsigned int yyruleno, /* Number of the rule by which to reduce */
|
|
int yyLookahead, /* Lookahead token, or YYNOCODE if none */
|
|
ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */
|
|
ParseCTX_PDECL /* %extra_context */
|
|
){
|
|
int yygoto; /* The next state */
|
|
YYACTIONTYPE yyact; /* The next action */
|
|
yyStackEntry *yymsp; /* The top of the parser's stack */
|
|
int yysize; /* Amount to pop the stack */
|
|
ParseARG_FETCH
|
|
(void)yyLookahead;
|
|
(void)yyLookaheadToken;
|
|
yymsp = yypParser->yytos;
|
|
|
|
switch( yyruleno ){
|
|
/* Beginning here are the reduction cases. A typical example
|
|
** follows:
|
|
** case 0:
|
|
** #line <lineno> <grammarfile>
|
|
** { ... } // User supplied code
|
|
** #line <lineno> <thisfile>
|
|
** break;
|
|
*/
|
|
/********** Begin reduce actions **********************************************/
|
|
YYMINORTYPE yylhsminor;
|
|
case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
#line 50 "sql.y"
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
#line 5081 "sql.c"
|
|
yy_destructor(yypParser,355,&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 5087 "sql.c"
|
|
yy_destructor(yypParser,356,&yymsp[0].minor);
|
|
break;
|
|
case 2: /* account_options ::= */
|
|
#line 55 "sql.y"
|
|
{ }
|
|
#line 5093 "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,355,&yymsp[-2].minor);
|
|
#line 56 "sql.y"
|
|
{ }
|
|
#line 5107 "sql.c"
|
|
yy_destructor(yypParser,357,&yymsp[0].minor);
|
|
}
|
|
break;
|
|
case 12: /* alter_account_options ::= alter_account_option */
|
|
{ yy_destructor(yypParser,358,&yymsp[0].minor);
|
|
#line 68 "sql.y"
|
|
{ }
|
|
#line 5115 "sql.c"
|
|
}
|
|
break;
|
|
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
|
|
{ yy_destructor(yypParser,356,&yymsp[-1].minor);
|
|
#line 69 "sql.y"
|
|
{ }
|
|
#line 5122 "sql.c"
|
|
yy_destructor(yypParser,358,&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 5138 "sql.c"
|
|
yy_destructor(yypParser,357,&yymsp[0].minor);
|
|
break;
|
|
case 24: /* ip_range_list ::= NK_STRING */
|
|
#line 86 "sql.y"
|
|
{ yylhsminor.yy404 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
#line 5144 "sql.c"
|
|
yymsp[0].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
#line 87 "sql.y"
|
|
{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
#line 5150 "sql.c"
|
|
yymsp[-2].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 26: /* white_list ::= HOST ip_range_list */
|
|
#line 91 "sql.y"
|
|
{ yymsp[-1].minor.yy404 = yymsp[0].minor.yy404; }
|
|
#line 5156 "sql.c"
|
|
break;
|
|
case 27: /* white_list_opt ::= */
|
|
case 189: /* specific_cols_opt ::= */ yytestcase(yyruleno==189);
|
|
case 223: /* tags_def_opt ::= */ yytestcase(yyruleno==223);
|
|
case 311: /* tag_list_opt ::= */ yytestcase(yyruleno==311);
|
|
case 377: /* col_list_opt ::= */ yytestcase(yyruleno==377);
|
|
case 379: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==379);
|
|
case 581: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==581);
|
|
case 611: /* group_by_clause_opt ::= */ yytestcase(yyruleno==611);
|
|
case 631: /* order_by_clause_opt ::= */ yytestcase(yyruleno==631);
|
|
#line 95 "sql.y"
|
|
{ yymsp[1].minor.yy404 = NULL; }
|
|
#line 5169 "sql.c"
|
|
break;
|
|
case 28: /* white_list_opt ::= white_list */
|
|
case 224: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==224);
|
|
case 380: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==380);
|
|
case 506: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==506);
|
|
#line 96 "sql.y"
|
|
{ yylhsminor.yy404 = yymsp[0].minor.yy404; }
|
|
#line 5177 "sql.c"
|
|
yymsp[0].minor.yy404 = yylhsminor.yy404;
|
|
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.yy701, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy915);
|
|
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy404);
|
|
}
|
|
#line 5186 "sql.c"
|
|
break;
|
|
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
#line 104 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy701, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
|
|
#line 5191 "sql.c"
|
|
break;
|
|
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
#line 105 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy701, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
|
|
#line 5196 "sql.c"
|
|
break;
|
|
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
#line 106 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy701, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
|
|
#line 5201 "sql.c"
|
|
break;
|
|
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
|
|
#line 107 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy701, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy404); }
|
|
#line 5206 "sql.c"
|
|
break;
|
|
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
|
|
#line 108 "sql.y"
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy701, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy404); }
|
|
#line 5211 "sql.c"
|
|
break;
|
|
case 35: /* cmd ::= DROP USER user_name */
|
|
#line 109 "sql.y"
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy701); }
|
|
#line 5216 "sql.c"
|
|
break;
|
|
case 36: /* sysinfo_opt ::= */
|
|
#line 113 "sql.y"
|
|
{ yymsp[1].minor.yy915 = 1; }
|
|
#line 5221 "sql.c"
|
|
break;
|
|
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
#line 114 "sql.y"
|
|
{ yymsp[-1].minor.yy915 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
#line 5226 "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.yy949, &yymsp[-3].minor.yy21, &yymsp[0].minor.yy701, yymsp[-2].minor.yy896); }
|
|
#line 5231 "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.yy949, &yymsp[-3].minor.yy21, &yymsp[0].minor.yy701, yymsp[-2].minor.yy896); }
|
|
#line 5236 "sql.c"
|
|
break;
|
|
case 40: /* privileges ::= ALL */
|
|
#line 122 "sql.y"
|
|
{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_ALL; }
|
|
#line 5241 "sql.c"
|
|
break;
|
|
case 41: /* privileges ::= priv_type_list */
|
|
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
|
|
#line 123 "sql.y"
|
|
{ yylhsminor.yy949 = yymsp[0].minor.yy949; }
|
|
#line 5247 "sql.c"
|
|
yymsp[0].minor.yy949 = yylhsminor.yy949;
|
|
break;
|
|
case 42: /* privileges ::= SUBSCRIBE */
|
|
#line 124 "sql.y"
|
|
{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_SUBSCRIBE; }
|
|
#line 5253 "sql.c"
|
|
break;
|
|
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
#line 129 "sql.y"
|
|
{ yylhsminor.yy949 = yymsp[-2].minor.yy949 | yymsp[0].minor.yy949; }
|
|
#line 5258 "sql.c"
|
|
yymsp[-2].minor.yy949 = yylhsminor.yy949;
|
|
break;
|
|
case 45: /* priv_type ::= READ */
|
|
#line 133 "sql.y"
|
|
{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_READ; }
|
|
#line 5264 "sql.c"
|
|
break;
|
|
case 46: /* priv_type ::= WRITE */
|
|
#line 134 "sql.y"
|
|
{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_WRITE; }
|
|
#line 5269 "sql.c"
|
|
break;
|
|
case 47: /* priv_type ::= ALTER */
|
|
#line 135 "sql.y"
|
|
{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_ALTER; }
|
|
#line 5274 "sql.c"
|
|
break;
|
|
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
#line 139 "sql.y"
|
|
{ yylhsminor.yy21.first = yymsp[-2].minor.yy0; yylhsminor.yy21.second = yymsp[0].minor.yy0; }
|
|
#line 5279 "sql.c"
|
|
yymsp[-2].minor.yy21 = yylhsminor.yy21;
|
|
break;
|
|
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
|
|
#line 140 "sql.y"
|
|
{ yylhsminor.yy21.first = yymsp[-2].minor.yy701; yylhsminor.yy21.second = yymsp[0].minor.yy0; }
|
|
#line 5285 "sql.c"
|
|
yymsp[-2].minor.yy21 = yylhsminor.yy21;
|
|
break;
|
|
case 50: /* priv_level ::= db_name NK_DOT table_name */
|
|
#line 141 "sql.y"
|
|
{ yylhsminor.yy21.first = yymsp[-2].minor.yy701; yylhsminor.yy21.second = yymsp[0].minor.yy701; }
|
|
#line 5291 "sql.c"
|
|
yymsp[-2].minor.yy21 = yylhsminor.yy21;
|
|
break;
|
|
case 51: /* priv_level ::= topic_name */
|
|
#line 142 "sql.y"
|
|
{ yylhsminor.yy21.first = yymsp[0].minor.yy701; yylhsminor.yy21.second = nil_token; }
|
|
#line 5297 "sql.c"
|
|
yymsp[0].minor.yy21 = yylhsminor.yy21;
|
|
break;
|
|
case 52: /* with_opt ::= */
|
|
case 157: /* start_opt ::= */ yytestcase(yyruleno==157);
|
|
case 161: /* end_opt ::= */ yytestcase(yyruleno==161);
|
|
case 306: /* like_pattern_opt ::= */ yytestcase(yyruleno==306);
|
|
case 391: /* subtable_opt ::= */ yytestcase(yyruleno==391);
|
|
case 516: /* case_when_else_opt ::= */ yytestcase(yyruleno==516);
|
|
case 546: /* from_clause_opt ::= */ yytestcase(yyruleno==546);
|
|
case 579: /* where_clause_opt ::= */ yytestcase(yyruleno==579);
|
|
case 588: /* twindow_clause_opt ::= */ yytestcase(yyruleno==588);
|
|
case 596: /* sliding_opt ::= */ yytestcase(yyruleno==596);
|
|
case 601: /* fill_opt ::= */ yytestcase(yyruleno==601);
|
|
case 615: /* having_clause_opt ::= */ yytestcase(yyruleno==615);
|
|
case 617: /* range_opt ::= */ yytestcase(yyruleno==617);
|
|
case 620: /* every_opt ::= */ yytestcase(yyruleno==620);
|
|
case 633: /* slimit_clause_opt ::= */ yytestcase(yyruleno==633);
|
|
case 637: /* limit_clause_opt ::= */ yytestcase(yyruleno==637);
|
|
#line 144 "sql.y"
|
|
{ yymsp[1].minor.yy896 = NULL; }
|
|
#line 5318 "sql.c"
|
|
break;
|
|
case 53: /* with_opt ::= WITH search_condition */
|
|
case 547: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==547);
|
|
case 580: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==580);
|
|
case 616: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==616);
|
|
#line 145 "sql.y"
|
|
{ yymsp[-1].minor.yy896 = yymsp[0].minor.yy896; }
|
|
#line 5326 "sql.c"
|
|
break;
|
|
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
|
|
#line 148 "sql.y"
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy701, NULL); }
|
|
#line 5331 "sql.c"
|
|
break;
|
|
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
#line 149 "sql.y"
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy0); }
|
|
#line 5336 "sql.c"
|
|
break;
|
|
case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
#line 150 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy733, false); }
|
|
#line 5341 "sql.c"
|
|
break;
|
|
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
#line 151 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy701, yymsp[0].minor.yy733, false); }
|
|
#line 5346 "sql.c"
|
|
break;
|
|
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
#line 152 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy733); }
|
|
#line 5351 "sql.c"
|
|
break;
|
|
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
#line 153 "sql.y"
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy701, false, yymsp[0].minor.yy733); }
|
|
#line 5356 "sql.c"
|
|
break;
|
|
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
#line 154 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
|
|
#line 5361 "sql.c"
|
|
break;
|
|
case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
#line 155 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 5366 "sql.c"
|
|
break;
|
|
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */
|
|
#line 156 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
|
|
#line 5371 "sql.c"
|
|
break;
|
|
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
#line 157 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 5376 "sql.c"
|
|
break;
|
|
case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */
|
|
#line 158 "sql.y"
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5381 "sql.c"
|
|
break;
|
|
case 65: /* dnode_endpoint ::= NK_STRING */
|
|
case 66: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==66);
|
|
case 67: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==67);
|
|
case 333: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==333);
|
|
case 334: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==334);
|
|
case 335: /* sma_func_name ::= LAST */ yytestcase(yyruleno==335);
|
|
case 336: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==336);
|
|
case 438: /* db_name ::= NK_ID */ yytestcase(yyruleno==438);
|
|
case 439: /* table_name ::= NK_ID */ yytestcase(yyruleno==439);
|
|
case 440: /* column_name ::= NK_ID */ yytestcase(yyruleno==440);
|
|
case 441: /* function_name ::= NK_ID */ yytestcase(yyruleno==441);
|
|
case 442: /* view_name ::= NK_ID */ yytestcase(yyruleno==442);
|
|
case 443: /* table_alias ::= NK_ID */ yytestcase(yyruleno==443);
|
|
case 444: /* column_alias ::= NK_ID */ yytestcase(yyruleno==444);
|
|
case 445: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==445);
|
|
case 446: /* user_name ::= NK_ID */ yytestcase(yyruleno==446);
|
|
case 447: /* topic_name ::= NK_ID */ yytestcase(yyruleno==447);
|
|
case 448: /* stream_name ::= NK_ID */ yytestcase(yyruleno==448);
|
|
case 449: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==449);
|
|
case 450: /* index_name ::= NK_ID */ yytestcase(yyruleno==450);
|
|
case 492: /* noarg_func ::= NOW */ yytestcase(yyruleno==492);
|
|
case 493: /* noarg_func ::= TODAY */ yytestcase(yyruleno==493);
|
|
case 494: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==494);
|
|
case 495: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==495);
|
|
case 496: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==496);
|
|
case 497: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==497);
|
|
case 498: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==498);
|
|
case 499: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==499);
|
|
case 500: /* noarg_func ::= USER */ yytestcase(yyruleno==500);
|
|
case 501: /* star_func ::= COUNT */ yytestcase(yyruleno==501);
|
|
case 502: /* star_func ::= FIRST */ yytestcase(yyruleno==502);
|
|
case 503: /* star_func ::= LAST */ yytestcase(yyruleno==503);
|
|
case 504: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==504);
|
|
#line 162 "sql.y"
|
|
{ yylhsminor.yy701 = yymsp[0].minor.yy0; }
|
|
#line 5418 "sql.c"
|
|
yymsp[0].minor.yy701 = yylhsminor.yy701;
|
|
break;
|
|
case 68: /* force_opt ::= */
|
|
case 94: /* not_exists_opt ::= */ yytestcase(yyruleno==94);
|
|
case 96: /* exists_opt ::= */ yytestcase(yyruleno==96);
|
|
case 354: /* analyze_opt ::= */ yytestcase(yyruleno==354);
|
|
case 361: /* agg_func_opt ::= */ yytestcase(yyruleno==361);
|
|
case 367: /* or_replace_opt ::= */ yytestcase(yyruleno==367);
|
|
case 393: /* ignore_opt ::= */ yytestcase(yyruleno==393);
|
|
case 567: /* tag_mode_opt ::= */ yytestcase(yyruleno==567);
|
|
case 569: /* set_quantifier_opt ::= */ yytestcase(yyruleno==569);
|
|
#line 168 "sql.y"
|
|
{ yymsp[1].minor.yy733 = false; }
|
|
#line 5432 "sql.c"
|
|
break;
|
|
case 69: /* force_opt ::= FORCE */
|
|
case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70);
|
|
case 355: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==355);
|
|
case 362: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==362);
|
|
case 568: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==568);
|
|
case 570: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==570);
|
|
#line 169 "sql.y"
|
|
{ yymsp[0].minor.yy733 = true; }
|
|
#line 5442 "sql.c"
|
|
break;
|
|
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
|
|
#line 176 "sql.y"
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 5447 "sql.c"
|
|
break;
|
|
case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
#line 177 "sql.y"
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 5452 "sql.c"
|
|
break;
|
|
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
|
|
#line 180 "sql.y"
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 5457 "sql.c"
|
|
break;
|
|
case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
#line 181 "sql.y"
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 5462 "sql.c"
|
|
break;
|
|
case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
#line 184 "sql.y"
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5467 "sql.c"
|
|
break;
|
|
case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
#line 185 "sql.y"
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5472 "sql.c"
|
|
break;
|
|
case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
#line 186 "sql.y"
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5477 "sql.c"
|
|
break;
|
|
case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
#line 189 "sql.y"
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5482 "sql.c"
|
|
break;
|
|
case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
#line 190 "sql.y"
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5487 "sql.c"
|
|
break;
|
|
case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
#line 193 "sql.y"
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5492 "sql.c"
|
|
break;
|
|
case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
#line 194 "sql.y"
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5497 "sql.c"
|
|
break;
|
|
case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
#line 197 "sql.y"
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5502 "sql.c"
|
|
break;
|
|
case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
#line 198 "sql.y"
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5507 "sql.c"
|
|
break;
|
|
case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
#line 199 "sql.y"
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5512 "sql.c"
|
|
break;
|
|
case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
#line 202 "sql.y"
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
|
|
#line 5517 "sql.c"
|
|
break;
|
|
case 86: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
#line 205 "sql.y"
|
|
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy733, &yymsp[-1].minor.yy701, yymsp[0].minor.yy896); }
|
|
#line 5522 "sql.c"
|
|
break;
|
|
case 87: /* cmd ::= DROP DATABASE exists_opt db_name */
|
|
#line 206 "sql.y"
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy733, &yymsp[0].minor.yy701); }
|
|
#line 5527 "sql.c"
|
|
break;
|
|
case 88: /* cmd ::= USE db_name */
|
|
#line 207 "sql.y"
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy701); }
|
|
#line 5532 "sql.c"
|
|
break;
|
|
case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
#line 208 "sql.y"
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy701, yymsp[0].minor.yy896); }
|
|
#line 5537 "sql.c"
|
|
break;
|
|
case 90: /* cmd ::= FLUSH DATABASE db_name */
|
|
#line 209 "sql.y"
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy701); }
|
|
#line 5542 "sql.c"
|
|
break;
|
|
case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */
|
|
#line 210 "sql.y"
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy701, yymsp[0].minor.yy396); }
|
|
#line 5547 "sql.c"
|
|
break;
|
|
case 92: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
#line 211 "sql.y"
|
|
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy701, yymsp[-1].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 5552 "sql.c"
|
|
break;
|
|
case 93: /* not_exists_opt ::= IF NOT EXISTS */
|
|
#line 215 "sql.y"
|
|
{ yymsp[-2].minor.yy733 = true; }
|
|
#line 5557 "sql.c"
|
|
break;
|
|
case 95: /* exists_opt ::= IF EXISTS */
|
|
case 368: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==368);
|
|
case 394: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==394);
|
|
#line 220 "sql.y"
|
|
{ yymsp[-1].minor.yy733 = true; }
|
|
#line 5564 "sql.c"
|
|
break;
|
|
case 97: /* db_options ::= */
|
|
#line 223 "sql.y"
|
|
{ yymsp[1].minor.yy896 = createDefaultDatabaseOptions(pCxt); }
|
|
#line 5569 "sql.c"
|
|
break;
|
|
case 98: /* db_options ::= db_options BUFFER NK_INTEGER */
|
|
#line 224 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
#line 5574 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 99: /* db_options ::= db_options CACHEMODEL NK_STRING */
|
|
#line 225 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
#line 5580 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 100: /* db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
#line 226 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
#line 5586 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 101: /* db_options ::= db_options COMP NK_INTEGER */
|
|
#line 227 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
#line 5592 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 102: /* db_options ::= db_options DURATION NK_INTEGER */
|
|
case 103: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==103);
|
|
#line 228 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
#line 5599 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 104: /* db_options ::= db_options MAXROWS NK_INTEGER */
|
|
#line 230 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
#line 5605 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 105: /* db_options ::= db_options MINROWS NK_INTEGER */
|
|
#line 231 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
#line 5611 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 106: /* db_options ::= db_options KEEP integer_list */
|
|
case 107: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==107);
|
|
#line 232 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_KEEP, yymsp[0].minor.yy404); }
|
|
#line 5618 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 108: /* db_options ::= db_options PAGES NK_INTEGER */
|
|
#line 234 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
#line 5624 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 109: /* db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
#line 235 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
#line 5630 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 110: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
#line 236 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
#line 5636 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 111: /* db_options ::= db_options PRECISION NK_STRING */
|
|
#line 237 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
#line 5642 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 112: /* db_options ::= db_options REPLICA NK_INTEGER */
|
|
#line 238 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
#line 5648 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 113: /* db_options ::= db_options VGROUPS NK_INTEGER */
|
|
#line 240 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
#line 5654 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 114: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
#line 241 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
#line 5660 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 115: /* db_options ::= db_options RETENTIONS retention_list */
|
|
#line 242 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_RETENTIONS, yymsp[0].minor.yy404); }
|
|
#line 5666 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 116: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
#line 243 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
#line 5672 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 117: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
#line 244 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
#line 5678 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 118: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
#line 245 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
#line 5684 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 119: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
#line 246 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
#line 5690 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 120: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
#line 247 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-3].minor.yy896, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
|
}
|
|
#line 5700 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 121: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
#line 252 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
#line 5706 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 122: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
#line 253 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-3].minor.yy896, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
|
}
|
|
#line 5716 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 123: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
#line 258 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
#line 5722 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 124: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
#line 259 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
#line 5728 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 125: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
#line 260 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
#line 5734 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 126: /* db_options ::= db_options TABLE_PREFIX signed */
|
|
#line 261 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy896); }
|
|
#line 5740 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 127: /* db_options ::= db_options TABLE_SUFFIX signed */
|
|
#line 262 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy896); }
|
|
#line 5746 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 128: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
#line 263 "sql.y"
|
|
{ yylhsminor.yy896 = setDatabaseOption(pCxt, yymsp[-2].minor.yy896, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
|
|
#line 5752 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 129: /* alter_db_options ::= alter_db_option */
|
|
#line 265 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterDatabaseOptions(pCxt); yylhsminor.yy896 = setAlterDatabaseOption(pCxt, yylhsminor.yy896, &yymsp[0].minor.yy529); }
|
|
#line 5758 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 130: /* alter_db_options ::= alter_db_options alter_db_option */
|
|
#line 266 "sql.y"
|
|
{ yylhsminor.yy896 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy896, &yymsp[0].minor.yy529); }
|
|
#line 5764 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 131: /* alter_db_option ::= BUFFER NK_INTEGER */
|
|
#line 270 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5770 "sql.c"
|
|
break;
|
|
case 132: /* alter_db_option ::= CACHEMODEL NK_STRING */
|
|
#line 271 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5775 "sql.c"
|
|
break;
|
|
case 133: /* alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
#line 272 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5780 "sql.c"
|
|
break;
|
|
case 134: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
#line 273 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5785 "sql.c"
|
|
break;
|
|
case 135: /* alter_db_option ::= KEEP integer_list */
|
|
case 136: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==136);
|
|
#line 274 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_KEEP; yymsp[-1].minor.yy529.pList = yymsp[0].minor.yy404; }
|
|
#line 5791 "sql.c"
|
|
break;
|
|
case 137: /* alter_db_option ::= PAGES NK_INTEGER */
|
|
#line 276 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_PAGES; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5796 "sql.c"
|
|
break;
|
|
case 138: /* alter_db_option ::= REPLICA NK_INTEGER */
|
|
#line 277 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5801 "sql.c"
|
|
break;
|
|
case 139: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
#line 279 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_WAL; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5806 "sql.c"
|
|
break;
|
|
case 140: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
#line 280 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5811 "sql.c"
|
|
break;
|
|
case 141: /* alter_db_option ::= MINROWS NK_INTEGER */
|
|
#line 281 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5816 "sql.c"
|
|
break;
|
|
case 142: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
#line 282 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5821 "sql.c"
|
|
break;
|
|
case 143: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
#line 283 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy529.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy529.val = t;
|
|
}
|
|
#line 5830 "sql.c"
|
|
break;
|
|
case 144: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
#line 288 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5835 "sql.c"
|
|
break;
|
|
case 145: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
#line 289 "sql.y"
|
|
{
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
|
yymsp[-2].minor.yy529.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy529.val = t;
|
|
}
|
|
#line 5844 "sql.c"
|
|
break;
|
|
case 146: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
#line 294 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 5849 "sql.c"
|
|
break;
|
|
case 147: /* integer_list ::= NK_INTEGER */
|
|
#line 298 "sql.y"
|
|
{ yylhsminor.yy404 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 5854 "sql.c"
|
|
yymsp[0].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 148: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
case 407: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==407);
|
|
#line 299 "sql.y"
|
|
{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 5861 "sql.c"
|
|
yymsp[-2].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 149: /* variable_list ::= NK_VARIABLE */
|
|
#line 303 "sql.y"
|
|
{ yylhsminor.yy404 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 5867 "sql.c"
|
|
yymsp[0].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 150: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
#line 304 "sql.y"
|
|
{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 5873 "sql.c"
|
|
yymsp[-2].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 151: /* retention_list ::= retention */
|
|
case 183: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==183);
|
|
case 186: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==186);
|
|
case 193: /* tag_def_list ::= tag_def */ yytestcase(yyruleno==193);
|
|
case 196: /* column_def_list ::= column_def */ yytestcase(yyruleno==196);
|
|
case 240: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==240);
|
|
case 245: /* col_name_list ::= col_name */ yytestcase(yyruleno==245);
|
|
case 312: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==312);
|
|
case 329: /* func_list ::= func */ yytestcase(yyruleno==329);
|
|
case 436: /* literal_list ::= signed_literal */ yytestcase(yyruleno==436);
|
|
case 507: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==507);
|
|
case 513: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==513);
|
|
case 572: /* select_list ::= select_item */ yytestcase(yyruleno==572);
|
|
case 583: /* partition_list ::= partition_item */ yytestcase(yyruleno==583);
|
|
case 644: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==644);
|
|
#line 308 "sql.y"
|
|
{ yylhsminor.yy404 = createNodeList(pCxt, yymsp[0].minor.yy896); }
|
|
#line 5893 "sql.c"
|
|
yymsp[0].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 152: /* retention_list ::= retention_list NK_COMMA retention */
|
|
case 187: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==187);
|
|
case 194: /* tag_def_list ::= tag_def_list NK_COMMA tag_def */ yytestcase(yyruleno==194);
|
|
case 197: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==197);
|
|
case 241: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==241);
|
|
case 246: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==246);
|
|
case 313: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==313);
|
|
case 330: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==330);
|
|
case 437: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==437);
|
|
case 508: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==508);
|
|
case 573: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==573);
|
|
case 584: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==584);
|
|
case 645: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==645);
|
|
#line 309 "sql.y"
|
|
{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, yymsp[0].minor.yy896); }
|
|
#line 5911 "sql.c"
|
|
yymsp[-2].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 153: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
case 154: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==154);
|
|
#line 311 "sql.y"
|
|
{ yylhsminor.yy896 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 5918 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 155: /* speed_opt ::= */
|
|
case 363: /* bufsize_opt ::= */ yytestcase(yyruleno==363);
|
|
#line 316 "sql.y"
|
|
{ yymsp[1].minor.yy396 = 0; }
|
|
#line 5925 "sql.c"
|
|
break;
|
|
case 156: /* speed_opt ::= BWLIMIT NK_INTEGER */
|
|
case 364: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==364);
|
|
#line 317 "sql.y"
|
|
{ yymsp[-1].minor.yy396 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
#line 5931 "sql.c"
|
|
break;
|
|
case 158: /* start_opt ::= START WITH NK_INTEGER */
|
|
case 162: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==162);
|
|
#line 320 "sql.y"
|
|
{ yymsp[-2].minor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
|
|
#line 5937 "sql.c"
|
|
break;
|
|
case 159: /* start_opt ::= START WITH NK_STRING */
|
|
case 163: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==163);
|
|
#line 321 "sql.y"
|
|
{ yymsp[-2].minor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
#line 5943 "sql.c"
|
|
break;
|
|
case 160: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
case 164: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==164);
|
|
#line 322 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
#line 5949 "sql.c"
|
|
break;
|
|
case 165: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
case 167: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==167);
|
|
#line 331 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy733, yymsp[-5].minor.yy896, yymsp[-3].minor.yy404, yymsp[-1].minor.yy404, yymsp[0].minor.yy896); }
|
|
#line 5955 "sql.c"
|
|
break;
|
|
case 166: /* cmd ::= CREATE TABLE multi_create_clause */
|
|
#line 332 "sql.y"
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy404); }
|
|
#line 5960 "sql.c"
|
|
break;
|
|
case 168: /* cmd ::= DROP TABLE multi_drop_clause */
|
|
#line 335 "sql.y"
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy404); }
|
|
#line 5965 "sql.c"
|
|
break;
|
|
case 169: /* cmd ::= DROP STABLE exists_opt full_table_name */
|
|
#line 336 "sql.y"
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy733, yymsp[0].minor.yy896); }
|
|
#line 5970 "sql.c"
|
|
break;
|
|
case 170: /* cmd ::= ALTER TABLE alter_table_clause */
|
|
case 409: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==409);
|
|
case 410: /* cmd ::= insert_query */ yytestcase(yyruleno==410);
|
|
#line 338 "sql.y"
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy896; }
|
|
#line 5977 "sql.c"
|
|
break;
|
|
case 171: /* cmd ::= ALTER STABLE alter_table_clause */
|
|
#line 339 "sql.y"
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy896); }
|
|
#line 5982 "sql.c"
|
|
break;
|
|
case 172: /* alter_table_clause ::= full_table_name alter_table_options */
|
|
#line 341 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 5987 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 173: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
#line 343 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy896, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy701, yymsp[0].minor.yy504); }
|
|
#line 5993 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 174: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
#line 344 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy896, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy701); }
|
|
#line 5999 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 175: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
#line 346 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy896, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy701, yymsp[0].minor.yy504); }
|
|
#line 6005 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 176: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */
|
|
#line 348 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableAddModifyColOptions(pCxt, yymsp[-4].minor.yy896, TSDB_ALTER_TABLE_UPDATE_COLUMN_COMPRESS, &yymsp[-1].minor.yy701, yymsp[0].minor.yy896); }
|
|
#line 6011 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 177: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
#line 350 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy896, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy701, &yymsp[0].minor.yy701); }
|
|
#line 6017 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 178: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
#line 352 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy896, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy701, yymsp[0].minor.yy504); }
|
|
#line 6023 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 179: /* alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
#line 353 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy896, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy701); }
|
|
#line 6029 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 180: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
#line 355 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy896, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy701, yymsp[0].minor.yy504); }
|
|
#line 6035 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 181: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
#line 357 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy896, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy701, &yymsp[0].minor.yy701); }
|
|
#line 6041 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 182: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
#line 359 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy896, &yymsp[-2].minor.yy701, yymsp[0].minor.yy896); }
|
|
#line 6047 "sql.c"
|
|
yymsp[-5].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 184: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
case 514: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==514);
|
|
#line 364 "sql.y"
|
|
{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-1].minor.yy404, yymsp[0].minor.yy896); }
|
|
#line 6054 "sql.c"
|
|
yymsp[-1].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 185: /* 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 368 "sql.y"
|
|
{ yylhsminor.yy896 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy733, yymsp[-8].minor.yy896, yymsp[-6].minor.yy896, yymsp[-5].minor.yy404, yymsp[-2].minor.yy404, yymsp[0].minor.yy896); }
|
|
#line 6060 "sql.c"
|
|
yymsp[-9].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 188: /* drop_table_clause ::= exists_opt full_table_name */
|
|
#line 375 "sql.y"
|
|
{ yylhsminor.yy896 = createDropTableClause(pCxt, yymsp[-1].minor.yy733, yymsp[0].minor.yy896); }
|
|
#line 6066 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 190: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
case 378: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==378);
|
|
#line 380 "sql.y"
|
|
{ yymsp[-2].minor.yy404 = yymsp[-1].minor.yy404; }
|
|
#line 6073 "sql.c"
|
|
break;
|
|
case 191: /* full_table_name ::= table_name */
|
|
#line 382 "sql.y"
|
|
{ yylhsminor.yy896 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy701, NULL); }
|
|
#line 6078 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 192: /* full_table_name ::= db_name NK_DOT table_name */
|
|
#line 383 "sql.y"
|
|
{ yylhsminor.yy896 = createRealTableNode(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy701, NULL); }
|
|
#line 6084 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 195: /* tag_def ::= column_name type_name */
|
|
#line 389 "sql.y"
|
|
{ yylhsminor.yy896 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy701, yymsp[0].minor.yy504, NULL); }
|
|
#line 6090 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 198: /* column_def ::= column_name type_name column_options */
|
|
#line 397 "sql.y"
|
|
{ yylhsminor.yy896 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy701, yymsp[-1].minor.yy504, yymsp[0].minor.yy896); }
|
|
#line 6096 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 199: /* type_name ::= BOOL */
|
|
#line 401 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_BOOL); }
|
|
#line 6102 "sql.c"
|
|
break;
|
|
case 200: /* type_name ::= TINYINT */
|
|
#line 402 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_TINYINT); }
|
|
#line 6107 "sql.c"
|
|
break;
|
|
case 201: /* type_name ::= SMALLINT */
|
|
#line 403 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
|
|
#line 6112 "sql.c"
|
|
break;
|
|
case 202: /* type_name ::= INT */
|
|
case 203: /* type_name ::= INTEGER */ yytestcase(yyruleno==203);
|
|
#line 404 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_INT); }
|
|
#line 6118 "sql.c"
|
|
break;
|
|
case 204: /* type_name ::= BIGINT */
|
|
#line 406 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_BIGINT); }
|
|
#line 6123 "sql.c"
|
|
break;
|
|
case 205: /* type_name ::= FLOAT */
|
|
#line 407 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_FLOAT); }
|
|
#line 6128 "sql.c"
|
|
break;
|
|
case 206: /* type_name ::= DOUBLE */
|
|
#line 408 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
|
|
#line 6133 "sql.c"
|
|
break;
|
|
case 207: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
#line 409 "sql.y"
|
|
{ yymsp[-3].minor.yy504 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
|
|
#line 6138 "sql.c"
|
|
break;
|
|
case 208: /* type_name ::= TIMESTAMP */
|
|
#line 410 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
|
|
#line 6143 "sql.c"
|
|
break;
|
|
case 209: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
#line 411 "sql.y"
|
|
{ yymsp[-3].minor.yy504 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
|
|
#line 6148 "sql.c"
|
|
break;
|
|
case 210: /* type_name ::= TINYINT UNSIGNED */
|
|
#line 412 "sql.y"
|
|
{ yymsp[-1].minor.yy504 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
|
|
#line 6153 "sql.c"
|
|
break;
|
|
case 211: /* type_name ::= SMALLINT UNSIGNED */
|
|
#line 413 "sql.y"
|
|
{ yymsp[-1].minor.yy504 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
|
|
#line 6158 "sql.c"
|
|
break;
|
|
case 212: /* type_name ::= INT UNSIGNED */
|
|
#line 414 "sql.y"
|
|
{ yymsp[-1].minor.yy504 = createDataType(TSDB_DATA_TYPE_UINT); }
|
|
#line 6163 "sql.c"
|
|
break;
|
|
case 213: /* type_name ::= BIGINT UNSIGNED */
|
|
#line 415 "sql.y"
|
|
{ yymsp[-1].minor.yy504 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
|
|
#line 6168 "sql.c"
|
|
break;
|
|
case 214: /* type_name ::= JSON */
|
|
#line 416 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_JSON); }
|
|
#line 6173 "sql.c"
|
|
break;
|
|
case 215: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
#line 417 "sql.y"
|
|
{ yymsp[-3].minor.yy504 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
|
|
#line 6178 "sql.c"
|
|
break;
|
|
case 216: /* type_name ::= MEDIUMBLOB */
|
|
#line 418 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
|
|
#line 6183 "sql.c"
|
|
break;
|
|
case 217: /* type_name ::= BLOB */
|
|
#line 419 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_BLOB); }
|
|
#line 6188 "sql.c"
|
|
break;
|
|
case 218: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
#line 420 "sql.y"
|
|
{ yymsp[-3].minor.yy504 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
|
|
#line 6193 "sql.c"
|
|
break;
|
|
case 219: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
#line 421 "sql.y"
|
|
{ yymsp[-3].minor.yy504 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
|
|
#line 6198 "sql.c"
|
|
break;
|
|
case 220: /* type_name ::= DECIMAL */
|
|
#line 422 "sql.y"
|
|
{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
#line 6203 "sql.c"
|
|
break;
|
|
case 221: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
#line 423 "sql.y"
|
|
{ yymsp[-3].minor.yy504 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
#line 6208 "sql.c"
|
|
break;
|
|
case 222: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
#line 424 "sql.y"
|
|
{ yymsp[-5].minor.yy504 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
#line 6213 "sql.c"
|
|
break;
|
|
case 225: /* tags_def ::= TAGS NK_LP tag_def_list NK_RP */
|
|
case 381: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==381);
|
|
#line 433 "sql.y"
|
|
{ yymsp[-3].minor.yy404 = yymsp[-1].minor.yy404; }
|
|
#line 6219 "sql.c"
|
|
break;
|
|
case 226: /* table_options ::= */
|
|
#line 435 "sql.y"
|
|
{ yymsp[1].minor.yy896 = createDefaultTableOptions(pCxt); }
|
|
#line 6224 "sql.c"
|
|
break;
|
|
case 227: /* table_options ::= table_options COMMENT NK_STRING */
|
|
#line 436 "sql.y"
|
|
{ yylhsminor.yy896 = setTableOption(pCxt, yymsp[-2].minor.yy896, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
#line 6229 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 228: /* table_options ::= table_options MAX_DELAY duration_list */
|
|
#line 437 "sql.y"
|
|
{ yylhsminor.yy896 = setTableOption(pCxt, yymsp[-2].minor.yy896, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy404); }
|
|
#line 6235 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 229: /* table_options ::= table_options WATERMARK duration_list */
|
|
#line 438 "sql.y"
|
|
{ yylhsminor.yy896 = setTableOption(pCxt, yymsp[-2].minor.yy896, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy404); }
|
|
#line 6241 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 230: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
#line 439 "sql.y"
|
|
{ yylhsminor.yy896 = setTableOption(pCxt, yymsp[-4].minor.yy896, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy404); }
|
|
#line 6247 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 231: /* table_options ::= table_options TTL NK_INTEGER */
|
|
#line 440 "sql.y"
|
|
{ yylhsminor.yy896 = setTableOption(pCxt, yymsp[-2].minor.yy896, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
#line 6253 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 232: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
#line 441 "sql.y"
|
|
{ yylhsminor.yy896 = setTableOption(pCxt, yymsp[-4].minor.yy896, TABLE_OPTION_SMA, yymsp[-1].minor.yy404); }
|
|
#line 6259 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 233: /* table_options ::= table_options DELETE_MARK duration_list */
|
|
#line 442 "sql.y"
|
|
{ yylhsminor.yy896 = setTableOption(pCxt, yymsp[-2].minor.yy896, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy404); }
|
|
#line 6265 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 234: /* alter_table_options ::= alter_table_option */
|
|
#line 444 "sql.y"
|
|
{ yylhsminor.yy896 = createAlterTableOptions(pCxt); yylhsminor.yy896 = setTableOption(pCxt, yylhsminor.yy896, yymsp[0].minor.yy529.type, &yymsp[0].minor.yy529.val); }
|
|
#line 6271 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 235: /* alter_table_options ::= alter_table_options alter_table_option */
|
|
#line 445 "sql.y"
|
|
{ yylhsminor.yy896 = setTableOption(pCxt, yymsp[-1].minor.yy896, yymsp[0].minor.yy529.type, &yymsp[0].minor.yy529.val); }
|
|
#line 6277 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 236: /* alter_table_option ::= COMMENT NK_STRING */
|
|
#line 449 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 6283 "sql.c"
|
|
break;
|
|
case 237: /* alter_table_option ::= TTL NK_INTEGER */
|
|
#line 450 "sql.y"
|
|
{ yymsp[-1].minor.yy529.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy529.val = yymsp[0].minor.yy0; }
|
|
#line 6288 "sql.c"
|
|
break;
|
|
case 238: /* duration_list ::= duration_literal */
|
|
case 468: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==468);
|
|
#line 454 "sql.y"
|
|
{ yylhsminor.yy404 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy896)); }
|
|
#line 6294 "sql.c"
|
|
yymsp[0].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 239: /* duration_list ::= duration_list NK_COMMA duration_literal */
|
|
case 469: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==469);
|
|
#line 455 "sql.y"
|
|
{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, releaseRawExprNode(pCxt, yymsp[0].minor.yy896)); }
|
|
#line 6301 "sql.c"
|
|
yymsp[-2].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 242: /* rollup_func_name ::= function_name */
|
|
#line 462 "sql.y"
|
|
{ yylhsminor.yy896 = createFunctionNode(pCxt, &yymsp[0].minor.yy701, NULL); }
|
|
#line 6307 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 243: /* rollup_func_name ::= FIRST */
|
|
case 244: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==244);
|
|
case 315: /* tag_item ::= QTAGS */ yytestcase(yyruleno==315);
|
|
#line 463 "sql.y"
|
|
{ yylhsminor.yy896 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6315 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 247: /* col_name ::= column_name */
|
|
case 316: /* tag_item ::= column_name */ yytestcase(yyruleno==316);
|
|
#line 471 "sql.y"
|
|
{ yylhsminor.yy896 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy701); }
|
|
#line 6322 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 248: /* cmd ::= SHOW DNODES */
|
|
#line 474 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
|
|
#line 6328 "sql.c"
|
|
break;
|
|
case 249: /* cmd ::= SHOW USERS */
|
|
#line 475 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
|
|
#line 6333 "sql.c"
|
|
break;
|
|
case 250: /* cmd ::= SHOW USER PRIVILEGES */
|
|
#line 476 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
|
|
#line 6338 "sql.c"
|
|
break;
|
|
case 251: /* cmd ::= SHOW db_kind_opt DATABASES */
|
|
#line 477 "sql.y"
|
|
{
|
|
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
|
|
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy705);
|
|
}
|
|
#line 6346 "sql.c"
|
|
break;
|
|
case 252: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
#line 481 "sql.y"
|
|
{
|
|
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy989, yymsp[0].minor.yy896, OP_TYPE_LIKE);
|
|
}
|
|
#line 6353 "sql.c"
|
|
break;
|
|
case 253: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
#line 484 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy896, yymsp[0].minor.yy896, OP_TYPE_LIKE); }
|
|
#line 6358 "sql.c"
|
|
break;
|
|
case 254: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
#line 485 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy896, NULL, OP_TYPE_LIKE); }
|
|
#line 6363 "sql.c"
|
|
break;
|
|
case 255: /* cmd ::= SHOW MNODES */
|
|
#line 486 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
|
#line 6368 "sql.c"
|
|
break;
|
|
case 256: /* cmd ::= SHOW QNODES */
|
|
#line 488 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
|
#line 6373 "sql.c"
|
|
break;
|
|
case 257: /* cmd ::= SHOW FUNCTIONS */
|
|
#line 489 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
|
#line 6378 "sql.c"
|
|
break;
|
|
case 258: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
#line 490 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy896, yymsp[-1].minor.yy896, OP_TYPE_EQUAL); }
|
|
#line 6383 "sql.c"
|
|
break;
|
|
case 259: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
#line 491 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy701), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy701), OP_TYPE_EQUAL); }
|
|
#line 6388 "sql.c"
|
|
break;
|
|
case 260: /* cmd ::= SHOW STREAMS */
|
|
#line 492 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
|
|
#line 6393 "sql.c"
|
|
break;
|
|
case 261: /* cmd ::= SHOW ACCOUNTS */
|
|
#line 493 "sql.y"
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
|
#line 6398 "sql.c"
|
|
break;
|
|
case 262: /* cmd ::= SHOW APPS */
|
|
#line 494 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
|
#line 6403 "sql.c"
|
|
break;
|
|
case 263: /* cmd ::= SHOW CONNECTIONS */
|
|
#line 495 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
|
#line 6408 "sql.c"
|
|
break;
|
|
case 264: /* cmd ::= SHOW LICENCES */
|
|
case 265: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==265);
|
|
#line 496 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
|
|
#line 6414 "sql.c"
|
|
break;
|
|
case 266: /* cmd ::= SHOW GRANTS FULL */
|
|
#line 498 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); }
|
|
#line 6419 "sql.c"
|
|
break;
|
|
case 267: /* cmd ::= SHOW GRANTS LOGS */
|
|
#line 499 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); }
|
|
#line 6424 "sql.c"
|
|
break;
|
|
case 268: /* cmd ::= SHOW CLUSTER MACHINES */
|
|
#line 500 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); }
|
|
#line 6429 "sql.c"
|
|
break;
|
|
case 269: /* cmd ::= SHOW CREATE DATABASE db_name */
|
|
#line 501 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy701); }
|
|
#line 6434 "sql.c"
|
|
break;
|
|
case 270: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
|
#line 502 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy896); }
|
|
#line 6439 "sql.c"
|
|
break;
|
|
case 271: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
|
#line 503 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy896); }
|
|
#line 6444 "sql.c"
|
|
break;
|
|
case 272: /* cmd ::= SHOW QUERIES */
|
|
#line 504 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
|
#line 6449 "sql.c"
|
|
break;
|
|
case 273: /* cmd ::= SHOW SCORES */
|
|
#line 505 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
|
#line 6454 "sql.c"
|
|
break;
|
|
case 274: /* cmd ::= SHOW TOPICS */
|
|
#line 506 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
|
#line 6459 "sql.c"
|
|
break;
|
|
case 275: /* cmd ::= SHOW VARIABLES */
|
|
case 276: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==276);
|
|
#line 507 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
|
|
#line 6465 "sql.c"
|
|
break;
|
|
case 277: /* cmd ::= SHOW LOCAL VARIABLES */
|
|
#line 509 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
|
|
#line 6470 "sql.c"
|
|
break;
|
|
case 278: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
#line 510 "sql.y"
|
|
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy896); }
|
|
#line 6475 "sql.c"
|
|
break;
|
|
case 279: /* cmd ::= SHOW BNODES */
|
|
#line 511 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
|
#line 6480 "sql.c"
|
|
break;
|
|
case 280: /* cmd ::= SHOW SNODES */
|
|
#line 512 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
|
#line 6485 "sql.c"
|
|
break;
|
|
case 281: /* cmd ::= SHOW CLUSTER */
|
|
#line 513 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
|
|
#line 6490 "sql.c"
|
|
break;
|
|
case 282: /* cmd ::= SHOW TRANSACTIONS */
|
|
#line 514 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
|
|
#line 6495 "sql.c"
|
|
break;
|
|
case 283: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
#line 515 "sql.y"
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy896); }
|
|
#line 6500 "sql.c"
|
|
break;
|
|
case 284: /* cmd ::= SHOW CONSUMERS */
|
|
#line 516 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
|
|
#line 6505 "sql.c"
|
|
break;
|
|
case 285: /* cmd ::= SHOW SUBSCRIPTIONS */
|
|
#line 517 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
|
|
#line 6510 "sql.c"
|
|
break;
|
|
case 286: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
#line 518 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy896, yymsp[-1].minor.yy896, OP_TYPE_EQUAL); }
|
|
#line 6515 "sql.c"
|
|
break;
|
|
case 287: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
#line 519 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy701), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy701), OP_TYPE_EQUAL); }
|
|
#line 6520 "sql.c"
|
|
break;
|
|
case 288: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
#line 520 "sql.y"
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy896, yymsp[0].minor.yy896, yymsp[-3].minor.yy404); }
|
|
#line 6525 "sql.c"
|
|
break;
|
|
case 289: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
#line 521 "sql.y"
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy701), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy701), yymsp[-4].minor.yy404); }
|
|
#line 6530 "sql.c"
|
|
break;
|
|
case 290: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
#line 522 "sql.y"
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
|
|
#line 6535 "sql.c"
|
|
break;
|
|
case 291: /* cmd ::= SHOW VNODES */
|
|
#line 523 "sql.y"
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
|
|
#line 6540 "sql.c"
|
|
break;
|
|
case 292: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
#line 525 "sql.y"
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy896, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
|
#line 6545 "sql.c"
|
|
break;
|
|
case 293: /* cmd ::= SHOW CLUSTER ALIVE */
|
|
#line 526 "sql.y"
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
|
#line 6550 "sql.c"
|
|
break;
|
|
case 294: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
|
|
#line 527 "sql.y"
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy896, yymsp[0].minor.yy896, OP_TYPE_LIKE); }
|
|
#line 6555 "sql.c"
|
|
break;
|
|
case 295: /* cmd ::= SHOW CREATE VIEW full_table_name */
|
|
#line 528 "sql.y"
|
|
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy896); }
|
|
#line 6560 "sql.c"
|
|
break;
|
|
case 296: /* cmd ::= SHOW COMPACTS */
|
|
#line 529 "sql.y"
|
|
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
|
|
#line 6565 "sql.c"
|
|
break;
|
|
case 297: /* cmd ::= SHOW COMPACT NK_INTEGER */
|
|
#line 530 "sql.y"
|
|
{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 6570 "sql.c"
|
|
break;
|
|
case 298: /* table_kind_db_name_cond_opt ::= */
|
|
#line 534 "sql.y"
|
|
{ yymsp[1].minor.yy989.kind = SHOW_KIND_ALL; yymsp[1].minor.yy989.dbName = nil_token; }
|
|
#line 6575 "sql.c"
|
|
break;
|
|
case 299: /* table_kind_db_name_cond_opt ::= table_kind */
|
|
#line 535 "sql.y"
|
|
{ yylhsminor.yy989.kind = yymsp[0].minor.yy705; yylhsminor.yy989.dbName = nil_token; }
|
|
#line 6580 "sql.c"
|
|
yymsp[0].minor.yy989 = yylhsminor.yy989;
|
|
break;
|
|
case 300: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
#line 536 "sql.y"
|
|
{ yylhsminor.yy989.kind = SHOW_KIND_ALL; yylhsminor.yy989.dbName = yymsp[-1].minor.yy701; }
|
|
#line 6586 "sql.c"
|
|
yymsp[-1].minor.yy989 = yylhsminor.yy989;
|
|
break;
|
|
case 301: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
#line 537 "sql.y"
|
|
{ yylhsminor.yy989.kind = yymsp[-2].minor.yy705; yylhsminor.yy989.dbName = yymsp[-1].minor.yy701; }
|
|
#line 6592 "sql.c"
|
|
yymsp[-2].minor.yy989 = yylhsminor.yy989;
|
|
break;
|
|
case 302: /* table_kind ::= NORMAL */
|
|
#line 541 "sql.y"
|
|
{ yymsp[0].minor.yy705 = SHOW_KIND_TABLES_NORMAL; }
|
|
#line 6598 "sql.c"
|
|
break;
|
|
case 303: /* table_kind ::= CHILD */
|
|
#line 542 "sql.y"
|
|
{ yymsp[0].minor.yy705 = SHOW_KIND_TABLES_CHILD; }
|
|
#line 6603 "sql.c"
|
|
break;
|
|
case 304: /* db_name_cond_opt ::= */
|
|
case 309: /* from_db_opt ::= */ yytestcase(yyruleno==309);
|
|
#line 544 "sql.y"
|
|
{ yymsp[1].minor.yy896 = createDefaultDatabaseCondValue(pCxt); }
|
|
#line 6609 "sql.c"
|
|
break;
|
|
case 305: /* db_name_cond_opt ::= db_name NK_DOT */
|
|
#line 545 "sql.y"
|
|
{ yylhsminor.yy896 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy701); }
|
|
#line 6614 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 307: /* like_pattern_opt ::= LIKE NK_STRING */
|
|
#line 548 "sql.y"
|
|
{ yymsp[-1].minor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
#line 6620 "sql.c"
|
|
break;
|
|
case 308: /* table_name_cond ::= table_name */
|
|
#line 550 "sql.y"
|
|
{ yylhsminor.yy896 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy701); }
|
|
#line 6625 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 310: /* from_db_opt ::= FROM db_name */
|
|
#line 553 "sql.y"
|
|
{ yymsp[-1].minor.yy896 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy701); }
|
|
#line 6631 "sql.c"
|
|
break;
|
|
case 314: /* tag_item ::= TBNAME */
|
|
#line 561 "sql.y"
|
|
{ yylhsminor.yy896 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
#line 6636 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 317: /* tag_item ::= column_name column_alias */
|
|
#line 564 "sql.y"
|
|
{ yylhsminor.yy896 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy701), &yymsp[0].minor.yy701); }
|
|
#line 6642 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 318: /* tag_item ::= column_name AS column_alias */
|
|
#line 565 "sql.y"
|
|
{ yylhsminor.yy896 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy701), &yymsp[0].minor.yy701); }
|
|
#line 6648 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 319: /* db_kind_opt ::= */
|
|
#line 569 "sql.y"
|
|
{ yymsp[1].minor.yy705 = SHOW_KIND_ALL; }
|
|
#line 6654 "sql.c"
|
|
break;
|
|
case 320: /* db_kind_opt ::= USER */
|
|
#line 570 "sql.y"
|
|
{ yymsp[0].minor.yy705 = SHOW_KIND_DATABASES_USER; }
|
|
#line 6659 "sql.c"
|
|
break;
|
|
case 321: /* db_kind_opt ::= SYSTEM */
|
|
#line 571 "sql.y"
|
|
{ yymsp[0].minor.yy705 = SHOW_KIND_DATABASES_SYSTEM; }
|
|
#line 6664 "sql.c"
|
|
break;
|
|
case 322: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
#line 575 "sql.y"
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy733, yymsp[-3].minor.yy896, yymsp[-1].minor.yy896, NULL, yymsp[0].minor.yy896); }
|
|
#line 6669 "sql.c"
|
|
break;
|
|
case 323: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
#line 577 "sql.y"
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy733, yymsp[-5].minor.yy896, yymsp[-3].minor.yy896, yymsp[-1].minor.yy404, NULL); }
|
|
#line 6674 "sql.c"
|
|
break;
|
|
case 324: /* cmd ::= DROP INDEX exists_opt full_index_name */
|
|
#line 578 "sql.y"
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy733, yymsp[0].minor.yy896); }
|
|
#line 6679 "sql.c"
|
|
break;
|
|
case 325: /* full_index_name ::= index_name */
|
|
#line 580 "sql.y"
|
|
{ yylhsminor.yy896 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy701); }
|
|
#line 6684 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 326: /* full_index_name ::= db_name NK_DOT index_name */
|
|
#line 581 "sql.y"
|
|
{ yylhsminor.yy896 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy701); }
|
|
#line 6690 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 327: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
#line 584 "sql.y"
|
|
{ yymsp[-9].minor.yy896 = createIndexOption(pCxt, yymsp[-7].minor.yy404, releaseRawExprNode(pCxt, yymsp[-3].minor.yy896), NULL, yymsp[-1].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 6696 "sql.c"
|
|
break;
|
|
case 328: /* 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 587 "sql.y"
|
|
{ yymsp[-11].minor.yy896 = createIndexOption(pCxt, yymsp[-9].minor.yy404, releaseRawExprNode(pCxt, yymsp[-5].minor.yy896), releaseRawExprNode(pCxt, yymsp[-3].minor.yy896), yymsp[-1].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 6701 "sql.c"
|
|
break;
|
|
case 331: /* func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
#line 594 "sql.y"
|
|
{ yylhsminor.yy896 = createFunctionNode(pCxt, &yymsp[-3].minor.yy701, yymsp[-1].minor.yy404); }
|
|
#line 6706 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 332: /* sma_func_name ::= function_name */
|
|
case 557: /* alias_opt ::= table_alias */ yytestcase(yyruleno==557);
|
|
#line 598 "sql.y"
|
|
{ yylhsminor.yy701 = yymsp[0].minor.yy701; }
|
|
#line 6713 "sql.c"
|
|
yymsp[0].minor.yy701 = yylhsminor.yy701;
|
|
break;
|
|
case 337: /* sma_stream_opt ::= */
|
|
case 382: /* stream_options ::= */ yytestcase(yyruleno==382);
|
|
#line 604 "sql.y"
|
|
{ yymsp[1].minor.yy896 = createStreamOptions(pCxt); }
|
|
#line 6720 "sql.c"
|
|
break;
|
|
case 338: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
#line 605 "sql.y"
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy896)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy896); yylhsminor.yy896 = yymsp[-2].minor.yy896; }
|
|
#line 6725 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 339: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
#line 606 "sql.y"
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy896)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy896); yylhsminor.yy896 = yymsp[-2].minor.yy896; }
|
|
#line 6731 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 340: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
#line 607 "sql.y"
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy896)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy896); yylhsminor.yy896 = yymsp[-2].minor.yy896; }
|
|
#line 6737 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 341: /* with_meta ::= AS */
|
|
#line 612 "sql.y"
|
|
{ yymsp[0].minor.yy396 = 0; }
|
|
#line 6743 "sql.c"
|
|
break;
|
|
case 342: /* with_meta ::= WITH META AS */
|
|
#line 613 "sql.y"
|
|
{ yymsp[-2].minor.yy396 = 1; }
|
|
#line 6748 "sql.c"
|
|
break;
|
|
case 343: /* with_meta ::= ONLY META AS */
|
|
#line 614 "sql.y"
|
|
{ yymsp[-2].minor.yy396 = 2; }
|
|
#line 6753 "sql.c"
|
|
break;
|
|
case 344: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
#line 616 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy733, &yymsp[-2].minor.yy701, yymsp[0].minor.yy896); }
|
|
#line 6758 "sql.c"
|
|
break;
|
|
case 345: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
#line 618 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy733, &yymsp[-3].minor.yy701, &yymsp[0].minor.yy701, yymsp[-2].minor.yy396); }
|
|
#line 6763 "sql.c"
|
|
break;
|
|
case 346: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
#line 620 "sql.y"
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy733, &yymsp[-4].minor.yy701, yymsp[-1].minor.yy896, yymsp[-3].minor.yy396, yymsp[0].minor.yy896); }
|
|
#line 6768 "sql.c"
|
|
break;
|
|
case 347: /* cmd ::= DROP TOPIC exists_opt topic_name */
|
|
#line 622 "sql.y"
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy733, &yymsp[0].minor.yy701); }
|
|
#line 6773 "sql.c"
|
|
break;
|
|
case 348: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
#line 623 "sql.y"
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy733, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy701); }
|
|
#line 6778 "sql.c"
|
|
break;
|
|
case 349: /* cmd ::= DESC full_table_name */
|
|
case 350: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==350);
|
|
#line 626 "sql.y"
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy896); }
|
|
#line 6784 "sql.c"
|
|
break;
|
|
case 351: /* cmd ::= RESET QUERY CACHE */
|
|
#line 630 "sql.y"
|
|
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
|
|
#line 6789 "sql.c"
|
|
break;
|
|
case 352: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
case 353: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==353);
|
|
#line 633 "sql.y"
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy733, yymsp[-1].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 6795 "sql.c"
|
|
break;
|
|
case 356: /* explain_options ::= */
|
|
#line 641 "sql.y"
|
|
{ yymsp[1].minor.yy896 = createDefaultExplainOptions(pCxt); }
|
|
#line 6800 "sql.c"
|
|
break;
|
|
case 357: /* explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
#line 642 "sql.y"
|
|
{ yylhsminor.yy896 = setExplainVerbose(pCxt, yymsp[-2].minor.yy896, &yymsp[0].minor.yy0); }
|
|
#line 6805 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 358: /* explain_options ::= explain_options RATIO NK_FLOAT */
|
|
#line 643 "sql.y"
|
|
{ yylhsminor.yy896 = setExplainRatio(pCxt, yymsp[-2].minor.yy896, &yymsp[0].minor.yy0); }
|
|
#line 6811 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 359: /* 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 648 "sql.y"
|
|
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy733, yymsp[-9].minor.yy733, &yymsp[-6].minor.yy701, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy504, yymsp[-1].minor.yy396, &yymsp[0].minor.yy701, yymsp[-10].minor.yy733); }
|
|
#line 6817 "sql.c"
|
|
break;
|
|
case 360: /* cmd ::= DROP FUNCTION exists_opt function_name */
|
|
#line 649 "sql.y"
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy733, &yymsp[0].minor.yy701); }
|
|
#line 6822 "sql.c"
|
|
break;
|
|
case 365: /* language_opt ::= */
|
|
case 404: /* on_vgroup_id ::= */ yytestcase(yyruleno==404);
|
|
#line 663 "sql.y"
|
|
{ yymsp[1].minor.yy701 = nil_token; }
|
|
#line 6828 "sql.c"
|
|
break;
|
|
case 366: /* language_opt ::= LANGUAGE NK_STRING */
|
|
case 405: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==405);
|
|
#line 664 "sql.y"
|
|
{ yymsp[-1].minor.yy701 = yymsp[0].minor.yy0; }
|
|
#line 6834 "sql.c"
|
|
break;
|
|
case 369: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
#line 673 "sql.y"
|
|
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy733, yymsp[-2].minor.yy896, &yymsp[-1].minor.yy0, yymsp[0].minor.yy896); }
|
|
#line 6839 "sql.c"
|
|
break;
|
|
case 370: /* cmd ::= DROP VIEW exists_opt full_view_name */
|
|
#line 674 "sql.y"
|
|
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy733, yymsp[0].minor.yy896); }
|
|
#line 6844 "sql.c"
|
|
break;
|
|
case 371: /* full_view_name ::= view_name */
|
|
#line 676 "sql.y"
|
|
{ yylhsminor.yy896 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy701); }
|
|
#line 6849 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 372: /* full_view_name ::= db_name NK_DOT view_name */
|
|
#line 677 "sql.y"
|
|
{ yylhsminor.yy896 = createViewNode(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy701); }
|
|
#line 6855 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 373: /* 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 682 "sql.y"
|
|
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy733, &yymsp[-8].minor.yy701, yymsp[-5].minor.yy896, yymsp[-7].minor.yy896, yymsp[-3].minor.yy404, yymsp[-2].minor.yy896, yymsp[0].minor.yy896, yymsp[-4].minor.yy404); }
|
|
#line 6861 "sql.c"
|
|
break;
|
|
case 374: /* cmd ::= DROP STREAM exists_opt stream_name */
|
|
#line 683 "sql.y"
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy733, &yymsp[0].minor.yy701); }
|
|
#line 6866 "sql.c"
|
|
break;
|
|
case 375: /* cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
#line 684 "sql.y"
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy733, &yymsp[0].minor.yy701); }
|
|
#line 6871 "sql.c"
|
|
break;
|
|
case 376: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
#line 685 "sql.y"
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy733, yymsp[-1].minor.yy733, &yymsp[0].minor.yy701); }
|
|
#line 6876 "sql.c"
|
|
break;
|
|
case 383: /* stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
case 384: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==384);
|
|
#line 699 "sql.y"
|
|
{ yylhsminor.yy896 = setStreamOptions(pCxt, yymsp[-2].minor.yy896, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6882 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 385: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
#line 701 "sql.y"
|
|
{ yylhsminor.yy896 = setStreamOptions(pCxt, yymsp[-3].minor.yy896, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy896)); }
|
|
#line 6888 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 386: /* stream_options ::= stream_options WATERMARK duration_literal */
|
|
#line 702 "sql.y"
|
|
{ yylhsminor.yy896 = setStreamOptions(pCxt, yymsp[-2].minor.yy896, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy896)); }
|
|
#line 6894 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 387: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
#line 703 "sql.y"
|
|
{ yylhsminor.yy896 = setStreamOptions(pCxt, yymsp[-3].minor.yy896, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6900 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 388: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
#line 704 "sql.y"
|
|
{ yylhsminor.yy896 = setStreamOptions(pCxt, yymsp[-2].minor.yy896, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6906 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 389: /* stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
#line 705 "sql.y"
|
|
{ yylhsminor.yy896 = setStreamOptions(pCxt, yymsp[-2].minor.yy896, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy896)); }
|
|
#line 6912 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 390: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
#line 706 "sql.y"
|
|
{ yylhsminor.yy896 = setStreamOptions(pCxt, yymsp[-3].minor.yy896, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
#line 6918 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 392: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
case 597: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==597);
|
|
case 621: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==621);
|
|
#line 709 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy896); }
|
|
#line 6926 "sql.c"
|
|
break;
|
|
case 395: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
|
#line 717 "sql.y"
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
|
|
#line 6931 "sql.c"
|
|
break;
|
|
case 396: /* cmd ::= KILL QUERY NK_STRING */
|
|
#line 718 "sql.y"
|
|
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 6936 "sql.c"
|
|
break;
|
|
case 397: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
#line 719 "sql.y"
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
|
|
#line 6941 "sql.c"
|
|
break;
|
|
case 398: /* cmd ::= KILL COMPACT NK_INTEGER */
|
|
#line 720 "sql.y"
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); }
|
|
#line 6946 "sql.c"
|
|
break;
|
|
case 399: /* cmd ::= BALANCE VGROUP */
|
|
#line 723 "sql.y"
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
|
#line 6951 "sql.c"
|
|
break;
|
|
case 400: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
#line 724 "sql.y"
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy701); }
|
|
#line 6956 "sql.c"
|
|
break;
|
|
case 401: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
#line 725 "sql.y"
|
|
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 6961 "sql.c"
|
|
break;
|
|
case 402: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
#line 726 "sql.y"
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy404); }
|
|
#line 6966 "sql.c"
|
|
break;
|
|
case 403: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
#line 727 "sql.y"
|
|
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 6971 "sql.c"
|
|
break;
|
|
case 406: /* dnode_list ::= DNODE NK_INTEGER */
|
|
#line 736 "sql.y"
|
|
{ yymsp[-1].minor.yy404 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 6976 "sql.c"
|
|
break;
|
|
case 408: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
#line 743 "sql.y"
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 6981 "sql.c"
|
|
break;
|
|
case 411: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
#line 752 "sql.y"
|
|
{ yymsp[-6].minor.yy896 = createInsertStmt(pCxt, yymsp[-4].minor.yy896, yymsp[-2].minor.yy404, yymsp[0].minor.yy896); }
|
|
#line 6986 "sql.c"
|
|
break;
|
|
case 412: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
#line 753 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = createInsertStmt(pCxt, yymsp[-1].minor.yy896, NULL, yymsp[0].minor.yy896); }
|
|
#line 6991 "sql.c"
|
|
break;
|
|
case 413: /* literal ::= NK_INTEGER */
|
|
#line 756 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
#line 6996 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 414: /* literal ::= NK_FLOAT */
|
|
#line 757 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
#line 7002 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 415: /* literal ::= NK_STRING */
|
|
#line 758 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
#line 7008 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 416: /* literal ::= NK_BOOL */
|
|
#line 759 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
#line 7014 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 417: /* literal ::= TIMESTAMP NK_STRING */
|
|
#line 760 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
#line 7020 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 418: /* literal ::= duration_literal */
|
|
case 428: /* signed_literal ::= signed */ yytestcase(yyruleno==428);
|
|
case 451: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==451);
|
|
case 452: /* expression ::= literal */ yytestcase(yyruleno==452);
|
|
case 454: /* expression ::= column_reference */ yytestcase(yyruleno==454);
|
|
case 455: /* expression ::= function_expression */ yytestcase(yyruleno==455);
|
|
case 456: /* expression ::= case_when_expression */ yytestcase(yyruleno==456);
|
|
case 489: /* function_expression ::= literal_func */ yytestcase(yyruleno==489);
|
|
case 538: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==538);
|
|
case 542: /* boolean_primary ::= predicate */ yytestcase(yyruleno==542);
|
|
case 544: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==544);
|
|
case 545: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==545);
|
|
case 548: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==548);
|
|
case 550: /* table_reference ::= table_primary */ yytestcase(yyruleno==550);
|
|
case 551: /* table_reference ::= joined_table */ yytestcase(yyruleno==551);
|
|
case 555: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==555);
|
|
case 623: /* query_simple ::= query_specification */ yytestcase(yyruleno==623);
|
|
case 624: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==624);
|
|
case 627: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==627);
|
|
case 629: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==629);
|
|
#line 761 "sql.y"
|
|
{ yylhsminor.yy896 = yymsp[0].minor.yy896; }
|
|
#line 7045 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 419: /* literal ::= NULL */
|
|
#line 762 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
#line 7051 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 420: /* literal ::= NK_QUESTION */
|
|
#line 763 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 7057 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 421: /* duration_literal ::= NK_VARIABLE */
|
|
case 598: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==598);
|
|
case 599: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==599);
|
|
case 600: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==600);
|
|
#line 765 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
#line 7066 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 422: /* signed ::= NK_INTEGER */
|
|
#line 767 "sql.y"
|
|
{ yylhsminor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
#line 7072 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 423: /* signed ::= NK_PLUS NK_INTEGER */
|
|
#line 768 "sql.y"
|
|
{ yymsp[-1].minor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
#line 7078 "sql.c"
|
|
break;
|
|
case 424: /* signed ::= NK_MINUS NK_INTEGER */
|
|
#line 769 "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.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
|
}
|
|
#line 7087 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 425: /* signed ::= NK_FLOAT */
|
|
#line 774 "sql.y"
|
|
{ yylhsminor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
#line 7093 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 426: /* signed ::= NK_PLUS NK_FLOAT */
|
|
#line 775 "sql.y"
|
|
{ yymsp[-1].minor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
#line 7099 "sql.c"
|
|
break;
|
|
case 427: /* signed ::= NK_MINUS NK_FLOAT */
|
|
#line 776 "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.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
|
}
|
|
#line 7108 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 429: /* signed_literal ::= NK_STRING */
|
|
#line 783 "sql.y"
|
|
{ yylhsminor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
#line 7114 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 430: /* signed_literal ::= NK_BOOL */
|
|
#line 784 "sql.y"
|
|
{ yylhsminor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
#line 7120 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 431: /* signed_literal ::= TIMESTAMP NK_STRING */
|
|
#line 785 "sql.y"
|
|
{ yymsp[-1].minor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
#line 7126 "sql.c"
|
|
break;
|
|
case 432: /* signed_literal ::= duration_literal */
|
|
case 434: /* signed_literal ::= literal_func */ yytestcase(yyruleno==434);
|
|
case 509: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==509);
|
|
case 575: /* select_item ::= common_expression */ yytestcase(yyruleno==575);
|
|
case 585: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==585);
|
|
case 628: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==628);
|
|
case 630: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==630);
|
|
case 643: /* search_condition ::= common_expression */ yytestcase(yyruleno==643);
|
|
#line 786 "sql.y"
|
|
{ yylhsminor.yy896 = releaseRawExprNode(pCxt, yymsp[0].minor.yy896); }
|
|
#line 7138 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 433: /* signed_literal ::= NULL */
|
|
#line 787 "sql.y"
|
|
{ yylhsminor.yy896 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
#line 7144 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 435: /* signed_literal ::= NK_QUESTION */
|
|
#line 789 "sql.y"
|
|
{ yylhsminor.yy896 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 7150 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 453: /* expression ::= pseudo_column */
|
|
#line 851 "sql.y"
|
|
{ yylhsminor.yy896 = yymsp[0].minor.yy896; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy896, true); }
|
|
#line 7156 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 457: /* expression ::= NK_LP expression NK_RP */
|
|
case 543: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==543);
|
|
case 642: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==642);
|
|
#line 855 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy896)); }
|
|
#line 7164 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 458: /* expression ::= NK_PLUS expr_or_subquery */
|
|
#line 856 "sql.y"
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy896));
|
|
}
|
|
#line 7173 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 459: /* expression ::= NK_MINUS expr_or_subquery */
|
|
#line 860 "sql.y"
|
|
{
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy896), NULL));
|
|
}
|
|
#line 7182 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 460: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
#line 864 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7192 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 461: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
#line 869 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7202 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 462: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
#line 874 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7212 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 463: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
#line 879 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7222 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 464: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
#line 884 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7232 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 465: /* expression ::= column_reference NK_ARROW NK_STRING */
|
|
#line 889 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
|
}
|
|
#line 7241 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 466: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
#line 893 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7251 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 467: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
#line 898 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7261 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 470: /* column_reference ::= column_name */
|
|
#line 909 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy701, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy701)); }
|
|
#line 7267 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 471: /* column_reference ::= table_name NK_DOT column_name */
|
|
#line 910 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy701, createColumnNode(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy701)); }
|
|
#line 7273 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 472: /* column_reference ::= NK_ALIAS */
|
|
#line 911 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
#line 7279 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 473: /* column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
#line 912 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy0)); }
|
|
#line 7285 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 474: /* pseudo_column ::= ROWTS */
|
|
case 475: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==475);
|
|
case 477: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==477);
|
|
case 478: /* pseudo_column ::= QEND */ yytestcase(yyruleno==478);
|
|
case 479: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==479);
|
|
case 480: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==480);
|
|
case 481: /* pseudo_column ::= WEND */ yytestcase(yyruleno==481);
|
|
case 482: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==482);
|
|
case 483: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==483);
|
|
case 484: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==484);
|
|
case 485: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==485);
|
|
case 491: /* literal_func ::= NOW */ yytestcase(yyruleno==491);
|
|
#line 914 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
#line 7302 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 476: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
|
#line 916 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy701)))); }
|
|
#line 7308 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 486: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
case 487: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==487);
|
|
#line 927 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy701, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy701, yymsp[-1].minor.yy404)); }
|
|
#line 7315 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 488: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
#line 930 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy896), yymsp[-1].minor.yy504)); }
|
|
#line 7321 "sql.c"
|
|
yymsp[-5].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 490: /* literal_func ::= noarg_func NK_LP NK_RP */
|
|
#line 933 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy701, NULL)); }
|
|
#line 7327 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 505: /* star_func_para_list ::= NK_STAR */
|
|
#line 957 "sql.y"
|
|
{ yylhsminor.yy404 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
#line 7333 "sql.c"
|
|
yymsp[0].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 510: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
case 578: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==578);
|
|
#line 966 "sql.y"
|
|
{ yylhsminor.yy896 = createColumnNode(pCxt, &yymsp[-2].minor.yy701, &yymsp[0].minor.yy0); }
|
|
#line 7340 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 511: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
#line 969 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy404, yymsp[-1].minor.yy896)); }
|
|
#line 7346 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 512: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
#line 971 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy896), yymsp[-2].minor.yy404, yymsp[-1].minor.yy896)); }
|
|
#line 7352 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 515: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
#line 978 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)); }
|
|
#line 7358 "sql.c"
|
|
break;
|
|
case 517: /* case_when_else_opt ::= ELSE common_expression */
|
|
#line 981 "sql.y"
|
|
{ yymsp[-1].minor.yy896 = releaseRawExprNode(pCxt, yymsp[0].minor.yy896); }
|
|
#line 7363 "sql.c"
|
|
break;
|
|
case 518: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
case 523: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==523);
|
|
#line 984 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy884, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7373 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 519: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
#line 991 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy896), releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7383 "sql.c"
|
|
yymsp[-4].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 520: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
#line 997 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy896), releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7393 "sql.c"
|
|
yymsp[-5].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 521: /* predicate ::= expr_or_subquery IS NULL */
|
|
#line 1002 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), NULL));
|
|
}
|
|
#line 7402 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 522: /* predicate ::= expr_or_subquery IS NOT NULL */
|
|
#line 1006 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy896), NULL));
|
|
}
|
|
#line 7411 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 524: /* compare_op ::= NK_LT */
|
|
#line 1018 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_LOWER_THAN; }
|
|
#line 7417 "sql.c"
|
|
break;
|
|
case 525: /* compare_op ::= NK_GT */
|
|
#line 1019 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_GREATER_THAN; }
|
|
#line 7422 "sql.c"
|
|
break;
|
|
case 526: /* compare_op ::= NK_LE */
|
|
#line 1020 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_LOWER_EQUAL; }
|
|
#line 7427 "sql.c"
|
|
break;
|
|
case 527: /* compare_op ::= NK_GE */
|
|
#line 1021 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_GREATER_EQUAL; }
|
|
#line 7432 "sql.c"
|
|
break;
|
|
case 528: /* compare_op ::= NK_NE */
|
|
#line 1022 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_NOT_EQUAL; }
|
|
#line 7437 "sql.c"
|
|
break;
|
|
case 529: /* compare_op ::= NK_EQ */
|
|
#line 1023 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_EQUAL; }
|
|
#line 7442 "sql.c"
|
|
break;
|
|
case 530: /* compare_op ::= LIKE */
|
|
#line 1024 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_LIKE; }
|
|
#line 7447 "sql.c"
|
|
break;
|
|
case 531: /* compare_op ::= NOT LIKE */
|
|
#line 1025 "sql.y"
|
|
{ yymsp[-1].minor.yy884 = OP_TYPE_NOT_LIKE; }
|
|
#line 7452 "sql.c"
|
|
break;
|
|
case 532: /* compare_op ::= MATCH */
|
|
#line 1026 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_MATCH; }
|
|
#line 7457 "sql.c"
|
|
break;
|
|
case 533: /* compare_op ::= NMATCH */
|
|
#line 1027 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_NMATCH; }
|
|
#line 7462 "sql.c"
|
|
break;
|
|
case 534: /* compare_op ::= CONTAINS */
|
|
#line 1028 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_JSON_CONTAINS; }
|
|
#line 7467 "sql.c"
|
|
break;
|
|
case 535: /* in_op ::= IN */
|
|
#line 1032 "sql.y"
|
|
{ yymsp[0].minor.yy884 = OP_TYPE_IN; }
|
|
#line 7472 "sql.c"
|
|
break;
|
|
case 536: /* in_op ::= NOT IN */
|
|
#line 1033 "sql.y"
|
|
{ yymsp[-1].minor.yy884 = OP_TYPE_NOT_IN; }
|
|
#line 7477 "sql.c"
|
|
break;
|
|
case 537: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
#line 1035 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy404)); }
|
|
#line 7482 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 539: /* boolean_value_expression ::= NOT boolean_primary */
|
|
#line 1039 "sql.y"
|
|
{
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy896), NULL));
|
|
}
|
|
#line 7491 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 540: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
#line 1044 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7501 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 541: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
#line 1050 "sql.y"
|
|
{
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy896);
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy896);
|
|
yylhsminor.yy896 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), releaseRawExprNode(pCxt, yymsp[0].minor.yy896)));
|
|
}
|
|
#line 7511 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 549: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
#line 1068 "sql.y"
|
|
{ yylhsminor.yy896 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy896, yymsp[0].minor.yy896, NULL); }
|
|
#line 7517 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 552: /* table_primary ::= table_name alias_opt */
|
|
#line 1074 "sql.y"
|
|
{ yylhsminor.yy896 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy701, &yymsp[0].minor.yy701); }
|
|
#line 7523 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 553: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
#line 1075 "sql.y"
|
|
{ yylhsminor.yy896 = createRealTableNode(pCxt, &yymsp[-3].minor.yy701, &yymsp[-1].minor.yy701, &yymsp[0].minor.yy701); }
|
|
#line 7529 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 554: /* table_primary ::= subquery alias_opt */
|
|
#line 1076 "sql.y"
|
|
{ yylhsminor.yy896 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy896), &yymsp[0].minor.yy701); }
|
|
#line 7535 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 556: /* alias_opt ::= */
|
|
#line 1081 "sql.y"
|
|
{ yymsp[1].minor.yy701 = nil_token; }
|
|
#line 7541 "sql.c"
|
|
break;
|
|
case 558: /* alias_opt ::= AS table_alias */
|
|
#line 1083 "sql.y"
|
|
{ yymsp[-1].minor.yy701 = yymsp[0].minor.yy701; }
|
|
#line 7546 "sql.c"
|
|
break;
|
|
case 559: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
case 560: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==560);
|
|
#line 1085 "sql.y"
|
|
{ yymsp[-2].minor.yy896 = yymsp[-1].minor.yy896; }
|
|
#line 7552 "sql.c"
|
|
break;
|
|
case 561: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
#line 1090 "sql.y"
|
|
{ yylhsminor.yy896 = createJoinTableNode(pCxt, yymsp[-4].minor.yy680, yymsp[-5].minor.yy896, yymsp[-2].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 7557 "sql.c"
|
|
yymsp[-5].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 562: /* join_type ::= */
|
|
#line 1094 "sql.y"
|
|
{ yymsp[1].minor.yy680 = JOIN_TYPE_INNER; }
|
|
#line 7563 "sql.c"
|
|
break;
|
|
case 563: /* join_type ::= INNER */
|
|
#line 1095 "sql.y"
|
|
{ yymsp[0].minor.yy680 = JOIN_TYPE_INNER; }
|
|
#line 7568 "sql.c"
|
|
break;
|
|
case 564: /* 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 1101 "sql.y"
|
|
{
|
|
yymsp[-13].minor.yy896 = createSelectStmt(pCxt, yymsp[-11].minor.yy733, yymsp[-9].minor.yy404, yymsp[-8].minor.yy896, yymsp[-12].minor.yy404);
|
|
yymsp[-13].minor.yy896 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy896, yymsp[-10].minor.yy733);
|
|
yymsp[-13].minor.yy896 = addWhereClause(pCxt, yymsp[-13].minor.yy896, yymsp[-7].minor.yy896);
|
|
yymsp[-13].minor.yy896 = addPartitionByClause(pCxt, yymsp[-13].minor.yy896, yymsp[-6].minor.yy404);
|
|
yymsp[-13].minor.yy896 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy896, yymsp[-2].minor.yy896);
|
|
yymsp[-13].minor.yy896 = addGroupByClause(pCxt, yymsp[-13].minor.yy896, yymsp[-1].minor.yy404);
|
|
yymsp[-13].minor.yy896 = addHavingClause(pCxt, yymsp[-13].minor.yy896, yymsp[0].minor.yy896);
|
|
yymsp[-13].minor.yy896 = addRangeClause(pCxt, yymsp[-13].minor.yy896, yymsp[-5].minor.yy896);
|
|
yymsp[-13].minor.yy896 = addEveryClause(pCxt, yymsp[-13].minor.yy896, yymsp[-4].minor.yy896);
|
|
yymsp[-13].minor.yy896 = addFillClause(pCxt, yymsp[-13].minor.yy896, yymsp[-3].minor.yy896);
|
|
}
|
|
#line 7584 "sql.c"
|
|
break;
|
|
case 565: /* hint_list ::= */
|
|
#line 1116 "sql.y"
|
|
{ yymsp[1].minor.yy404 = createHintNodeList(pCxt, NULL); }
|
|
#line 7589 "sql.c"
|
|
break;
|
|
case 566: /* hint_list ::= NK_HINT */
|
|
#line 1117 "sql.y"
|
|
{ yylhsminor.yy404 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
#line 7594 "sql.c"
|
|
yymsp[0].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 571: /* set_quantifier_opt ::= ALL */
|
|
#line 1128 "sql.y"
|
|
{ yymsp[0].minor.yy733 = false; }
|
|
#line 7600 "sql.c"
|
|
break;
|
|
case 574: /* select_item ::= NK_STAR */
|
|
#line 1135 "sql.y"
|
|
{ yylhsminor.yy896 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
#line 7605 "sql.c"
|
|
yymsp[0].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 576: /* select_item ::= common_expression column_alias */
|
|
case 586: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==586);
|
|
#line 1137 "sql.y"
|
|
{ yylhsminor.yy896 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy896), &yymsp[0].minor.yy701); }
|
|
#line 7612 "sql.c"
|
|
yymsp[-1].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 577: /* select_item ::= common_expression AS column_alias */
|
|
case 587: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==587);
|
|
#line 1138 "sql.y"
|
|
{ yylhsminor.yy896 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), &yymsp[0].minor.yy701); }
|
|
#line 7619 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 582: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
case 612: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==612);
|
|
case 632: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==632);
|
|
#line 1147 "sql.y"
|
|
{ yymsp[-2].minor.yy404 = yymsp[0].minor.yy404; }
|
|
#line 7627 "sql.c"
|
|
break;
|
|
case 589: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
#line 1160 "sql.y"
|
|
{ yymsp[-5].minor.yy896 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy896), releaseRawExprNode(pCxt, yymsp[-1].minor.yy896)); }
|
|
#line 7632 "sql.c"
|
|
break;
|
|
case 590: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
#line 1161 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy896)); }
|
|
#line 7637 "sql.c"
|
|
break;
|
|
case 591: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
#line 1163 "sql.y"
|
|
{ yymsp[-5].minor.yy896 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy896), NULL, yymsp[-1].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 7642 "sql.c"
|
|
break;
|
|
case 592: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
#line 1167 "sql.y"
|
|
{ yymsp[-7].minor.yy896 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy896), releaseRawExprNode(pCxt, yymsp[-3].minor.yy896), yymsp[-1].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 7647 "sql.c"
|
|
break;
|
|
case 593: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
#line 1169 "sql.y"
|
|
{ yymsp[-6].minor.yy896 = createEventWindowNode(pCxt, yymsp[-3].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 7652 "sql.c"
|
|
break;
|
|
case 594: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
|
|
#line 1171 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); }
|
|
#line 7657 "sql.c"
|
|
break;
|
|
case 595: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
#line 1173 "sql.y"
|
|
{ yymsp[-5].minor.yy896 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); }
|
|
#line 7662 "sql.c"
|
|
break;
|
|
case 602: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
#line 1183 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = createFillNode(pCxt, yymsp[-1].minor.yy466, NULL); }
|
|
#line 7667 "sql.c"
|
|
break;
|
|
case 603: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
#line 1184 "sql.y"
|
|
{ yymsp[-5].minor.yy896 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy404)); }
|
|
#line 7672 "sql.c"
|
|
break;
|
|
case 604: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
#line 1185 "sql.y"
|
|
{ yymsp[-5].minor.yy896 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy404)); }
|
|
#line 7677 "sql.c"
|
|
break;
|
|
case 605: /* fill_mode ::= NONE */
|
|
#line 1189 "sql.y"
|
|
{ yymsp[0].minor.yy466 = FILL_MODE_NONE; }
|
|
#line 7682 "sql.c"
|
|
break;
|
|
case 606: /* fill_mode ::= PREV */
|
|
#line 1190 "sql.y"
|
|
{ yymsp[0].minor.yy466 = FILL_MODE_PREV; }
|
|
#line 7687 "sql.c"
|
|
break;
|
|
case 607: /* fill_mode ::= NULL */
|
|
#line 1191 "sql.y"
|
|
{ yymsp[0].minor.yy466 = FILL_MODE_NULL; }
|
|
#line 7692 "sql.c"
|
|
break;
|
|
case 608: /* fill_mode ::= NULL_F */
|
|
#line 1192 "sql.y"
|
|
{ yymsp[0].minor.yy466 = FILL_MODE_NULL_F; }
|
|
#line 7697 "sql.c"
|
|
break;
|
|
case 609: /* fill_mode ::= LINEAR */
|
|
#line 1193 "sql.y"
|
|
{ yymsp[0].minor.yy466 = FILL_MODE_LINEAR; }
|
|
#line 7702 "sql.c"
|
|
break;
|
|
case 610: /* fill_mode ::= NEXT */
|
|
#line 1194 "sql.y"
|
|
{ yymsp[0].minor.yy466 = FILL_MODE_NEXT; }
|
|
#line 7707 "sql.c"
|
|
break;
|
|
case 613: /* group_by_list ::= expr_or_subquery */
|
|
#line 1203 "sql.y"
|
|
{ yylhsminor.yy404 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy896))); }
|
|
#line 7712 "sql.c"
|
|
yymsp[0].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 614: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
#line 1204 "sql.y"
|
|
{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy896))); }
|
|
#line 7718 "sql.c"
|
|
yymsp[-2].minor.yy404 = yylhsminor.yy404;
|
|
break;
|
|
case 618: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
#line 1211 "sql.y"
|
|
{ yymsp[-5].minor.yy896 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy896), releaseRawExprNode(pCxt, yymsp[-1].minor.yy896)); }
|
|
#line 7724 "sql.c"
|
|
break;
|
|
case 619: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
#line 1213 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy896)); }
|
|
#line 7729 "sql.c"
|
|
break;
|
|
case 622: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
#line 1220 "sql.y"
|
|
{
|
|
yylhsminor.yy896 = addOrderByClause(pCxt, yymsp[-3].minor.yy896, yymsp[-2].minor.yy404);
|
|
yylhsminor.yy896 = addSlimitClause(pCxt, yylhsminor.yy896, yymsp[-1].minor.yy896);
|
|
yylhsminor.yy896 = addLimitClause(pCxt, yylhsminor.yy896, yymsp[0].minor.yy896);
|
|
}
|
|
#line 7738 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 625: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
#line 1230 "sql.y"
|
|
{ yylhsminor.yy896 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 7744 "sql.c"
|
|
yymsp[-3].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 626: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
#line 1232 "sql.y"
|
|
{ yylhsminor.yy896 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy896, yymsp[0].minor.yy896); }
|
|
#line 7750 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 634: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
case 638: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==638);
|
|
#line 1246 "sql.y"
|
|
{ yymsp[-1].minor.yy896 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
#line 7757 "sql.c"
|
|
break;
|
|
case 635: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
case 639: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==639);
|
|
#line 1247 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
|
#line 7763 "sql.c"
|
|
break;
|
|
case 636: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
case 640: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==640);
|
|
#line 1248 "sql.y"
|
|
{ yymsp[-3].minor.yy896 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
|
#line 7769 "sql.c"
|
|
break;
|
|
case 641: /* subquery ::= NK_LP query_expression NK_RP */
|
|
#line 1256 "sql.y"
|
|
{ yylhsminor.yy896 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy896); }
|
|
#line 7774 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 646: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
#line 1270 "sql.y"
|
|
{ yylhsminor.yy896 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy896), yymsp[-1].minor.yy918, yymsp[0].minor.yy669); }
|
|
#line 7780 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 647: /* ordering_specification_opt ::= */
|
|
#line 1274 "sql.y"
|
|
{ yymsp[1].minor.yy918 = ORDER_ASC; }
|
|
#line 7786 "sql.c"
|
|
break;
|
|
case 648: /* ordering_specification_opt ::= ASC */
|
|
#line 1275 "sql.y"
|
|
{ yymsp[0].minor.yy918 = ORDER_ASC; }
|
|
#line 7791 "sql.c"
|
|
break;
|
|
case 649: /* ordering_specification_opt ::= DESC */
|
|
#line 1276 "sql.y"
|
|
{ yymsp[0].minor.yy918 = ORDER_DESC; }
|
|
#line 7796 "sql.c"
|
|
break;
|
|
case 650: /* null_ordering_opt ::= */
|
|
#line 1280 "sql.y"
|
|
{ yymsp[1].minor.yy669 = NULL_ORDER_DEFAULT; }
|
|
#line 7801 "sql.c"
|
|
break;
|
|
case 651: /* null_ordering_opt ::= NULLS FIRST */
|
|
#line 1281 "sql.y"
|
|
{ yymsp[-1].minor.yy669 = NULL_ORDER_FIRST; }
|
|
#line 7806 "sql.c"
|
|
break;
|
|
case 652: /* null_ordering_opt ::= NULLS LAST */
|
|
#line 1282 "sql.y"
|
|
{ yymsp[-1].minor.yy669 = NULL_ORDER_LAST; }
|
|
#line 7811 "sql.c"
|
|
break;
|
|
case 653: /* column_options ::= */
|
|
#line 1288 "sql.y"
|
|
{ yymsp[1].minor.yy896 = createDefaultColumnOptions(pCxt); }
|
|
#line 7816 "sql.c"
|
|
break;
|
|
case 654: /* column_options ::= column_options ENCODE NK_STRING */
|
|
#line 1289 "sql.y"
|
|
{ yylhsminor.yy896 = setColumnOptions(pCxt, yymsp[-2].minor.yy896, COLUMN_OPTION_ENCODE, &yymsp[0].minor.yy0); }
|
|
#line 7821 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 655: /* column_options ::= column_options COMPRESS NK_STRING */
|
|
#line 1290 "sql.y"
|
|
{ yylhsminor.yy896 = setColumnOptions(pCxt, yymsp[-2].minor.yy896, COLUMN_OPTION_COMPRESS, &yymsp[0].minor.yy0); }
|
|
#line 7827 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
break;
|
|
case 656: /* column_options ::= column_options LEVEL NK_STRING */
|
|
#line 1291 "sql.y"
|
|
{ yylhsminor.yy896 = setColumnOptions(pCxt, yymsp[-2].minor.yy896, COLUMN_OPTION_LEVEL, &yymsp[0].minor.yy0); }
|
|
#line 7833 "sql.c"
|
|
yymsp[-2].minor.yy896 = yylhsminor.yy896;
|
|
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 7907 "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
|
|
}
|